/* ------------------------------------------------------------------
   Page shell: everything that is not inside the HUD itself.
------------------------------------------------------------------- */
:root {
  --bg: #07090d;
  --ink: #f4f6f8;
  --ink-2: rgba(244, 246, 248, 0.68);
  --ink-3: rgba(244, 246, 248, 0.42);
  --line: rgba(255, 255, 255, 0.1);
  --glass: rgba(9, 12, 17, 0.6);
  --brand: linear-gradient(92deg, #f77062 0%, #fe5196 100%);
  --logo: linear-gradient(90deg, #f47061, #fb5196); /* the gradient in the logo artwork itself */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); overflow: hidden; overscroll-behavior: none; }
/* Type follows the app: Orbitron for all interface text (see hud.css for the two font variables). */
body { font-family: var(--hud-font); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
/* Orbitron has no glyph for the middle dot or the copyright sign, so those are set in the app's other typeface */
.sep { font-family: var(--caption-font); font-weight: 500; }

#app { position: fixed; inset: 0; overflow: hidden; touch-action: none; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
#app.is-dragging #gl { cursor: grabbing; }

/* soft lens edge so the view reads as "through the glasses" */
.lens { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease;
  background: radial-gradient(120% 90% at 50% 50%, transparent 62%, rgba(4, 6, 10, 0.5) 100%); }
#app[data-state='explore'] .lens, #app[data-state='focus'] .lens { opacity: 1; }
.lens::before, .lens::after { content: ''; position: absolute; left: 0; right: 0; height: 130px; }
.lens::before { top: 0; background: linear-gradient(180deg, rgba(4, 6, 10, 0.5), transparent); }
.lens::after { bottom: 0; height: 90px; background: linear-gradient(0deg, rgba(4, 6, 10, 0.42), transparent); }
.flash { position: absolute; inset: 0; z-index: 30; background: #05070a; opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------------- top bar */
.top { position: absolute; left: 0; right: 0; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(18px, env(safe-area-inset-top)) clamp(18px, 3vw, 40px) 18px; pointer-events: none; }
.top > * { pointer-events: auto; }
/* the logo is always the logo card image, never typed text */
.logo { display: block; flex: none; line-height: 0; }
.logo img { display: block; height: 46px; width: auto; }
.top__actions { display: flex; align-items: center; gap: 10px; }
/* Get LifeHUD is the one call to action in the top bar, so it is larger than the icon button beside it */
#btn-get { height: 50px; padding: 0 20px; gap: 10px; font-size: 13.5px; letter-spacing: 0.14em; border-radius: 14px; }
#btn-get svg { width: 18px; height: 18px; }
/* the mute button beside it: a square of the same height. It mutes everything in the HUD, so it is only shown once the glasses are on. */
#btn-sound { width: 50px; height: 50px; border-radius: 14px; transition: transform 0.35s var(--ease), background 0.25s, box-shadow 0.3s, opacity 0.6s ease, visibility 0.6s; }
#btn-sound svg { width: 18px; height: 18px; }

/* Buttons follow the app's chip recipe, minus its chamfer: a dark glass fill inside a 2px
   gradient outline, 12px corners like the app's buttons, Orbitron SemiBold. A primary or
   engaged button swaps the glass for the full gradient and drops the outline. (The class is
   still called .pill.) --edge is the gradient: the logo's on the page, the HUD accent inside
   the HUD. */
.pill { --edge: var(--logo); position: relative; display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 15px; border: 0; border-radius: 12px; background: rgba(24, 26, 32, 0.55); color: var(--ink);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  font: 600 12px/1 var(--hud-font); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.25s, box-shadow 0.3s; }
/* the outline: a gradient layer with its middle masked out, so the glass fill stays see-through */
.pill::before { content: ''; position: absolute; inset: 0; padding: 2px; border-radius: inherit; background: var(--edge); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.pill:hover { transform: translateY(-2px); background: rgba(44, 47, 56, 0.7); }
.pill:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pill svg { width: 16px; height: 16px; }
.pill--brand, .pill.is-active, .pill--brand:hover, .pill.is-active:hover { background: var(--edge); color: #14080d; }
.pill--brand::before, .pill.is-active::before { display: none; }
.pill--brand { box-shadow: 0 10px 30px rgba(251, 81, 150, 0.3); }
.pill--brand:hover { box-shadow: 0 14px 40px rgba(251, 81, 150, 0.5); }
.pill--icon { width: 42px; padding: 0; justify-content: center; }
.pill__ico { display: inline-flex; }
.pill__chev svg { transition: transform 0.3s var(--ease); }
.pill.is-active .pill__chev svg { transform: rotate(180deg); }
.panel .pill, .foot .pill { --edge: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.panel .pill.is-active, .foot .pill.is-active, .panel .pill.is-active:hover, .foot .pill.is-active:hover { color: var(--on-accent); }
#app[data-state='loading'] .top__actions, #app:not([data-state='explore']):not([data-state='focus']) #btn-sound { opacity: 0; visibility: hidden; pointer-events: none; }
.top__actions { transition: opacity 0.6s ease; }

/* about popover: platforms, socials, legal */
.about { position: absolute; z-index: 25; right: clamp(18px, 3vw, 40px); top: 76px; width: min(340px, calc(100vw - 36px)); padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: rgba(9, 12, 17, 0.84);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.about h3 { margin: 0 0 14px; font: 600 13px/1 var(--hud-font); letter-spacing: 0.18em; text-transform: uppercase; }
.about__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 12.5px; letter-spacing: 0.02em; }
.about__list li { display: flex; justify-content: space-between; gap: 12px; }
.about__list b { font-weight: 600; white-space: nowrap; }
.about__list span { color: var(--ink-2); text-align: right; } /* (where a very narrow phone has no room for both on one line, the device's name stays whole and the date wraps) */
.about__list li:first-child span { background: var(--logo); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
/* a headset you can get today is a link across its whole row: the App Store for Vision Pro */
.about__list a { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px -10px; padding: 6px 10px; border-radius: 10px; color: inherit; text-decoration: none; transition: background 0.2s; }
.about__list a:hover, .about__list a:focus-visible { background: rgba(255, 255, 255, 0.07); }
.about__list a span { display: inline-flex; align-items: center; gap: 6px; }
.about__list a svg { flex: none; width: 14px; height: 14px; color: #fb5196; transition: transform 0.3s var(--ease); }
.about__list a:hover svg { transform: translateX(3px); }
.about h3:not(:first-child) { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
/* Social links, in the Get LifeHUD card: one row of six brand marks. Each icon file is used
   only as a mask, so the logo's gradient shows through its shape. */
.socials { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.social { display: grid; place-items: center; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  transition: transform 0.35s var(--ease), border-color 0.25s, background 0.25s; }
.social::before { content: ''; width: 21px; height: 21px; background: var(--logo); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.social:hover { transform: translateY(-2px); border-color: rgba(251, 81, 150, 0.6); background: rgba(255, 255, 255, 0.08); }
.social:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.social--x::before { -webkit-mask-image: url(../assets/social/x.svg); mask-image: url(../assets/social/x.svg); }
.social--instagram::before { -webkit-mask-image: url(../assets/social/instagram.png); mask-image: url(../assets/social/instagram.png); }
.social--youtube::before { -webkit-mask-image: url(../assets/social/youtube.png); mask-image: url(../assets/social/youtube.png); }
.social--tiktok::before { -webkit-mask-image: url(../assets/social/tiktok.png); mask-image: url(../assets/social/tiktok.png); }
.social--reddit::before { -webkit-mask-image: url(../assets/social/reddit.png); mask-image: url(../assets/social/reddit.png); }
.social--discord::before { -webkit-mask-image: url(../assets/social/discord.svg); mask-image: url(../assets/social/discord.svg); }

/* Bottom of the landing view: Contact, Privacy Policy and Terms in the left corner (under the
   logo), the copyright in the right corner (under the Get LifeHUD button). When there is not
   room for both on one row, the copyright drops under the links, on the left. */
.hero__foot { justify-self: stretch; margin: 0 calc(clamp(18px, 3vw, 40px) - 24px); padding-top: 12px; text-align: left; pointer-events: auto; }
.legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 26px; font: 400 10px/1.5 var(--hud-font); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244, 246, 248, 0.58); }
.legal__links { order: -1; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.legal a { color: inherit; text-decoration: none; transition: color 0.2s; }
.legal a:hover, .legal a:focus-visible { color: var(--ink); }
.panel__foot .pill svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- hero (before the glasses go on) */
.hero { position: absolute; inset: 0; z-index: 10; display: grid; grid-template-rows: 1fr auto; place-items: center; text-align: center; padding: 96px 24px max(18px, env(safe-area-inset-bottom)); pointer-events: none;
  /* The dark backdrop behind this text (darker toward the edges, plus a band at the bottom for the footer line) is not a
     layer of the page: world.js draws it into the 3D view (setScrim), behind the glasses, so that they are shown at full
     strength. It follows this element's opacity. */
  transition: opacity 0.8s ease, visibility 0.8s; }
#app:not([data-state='intro']) .hero { opacity: 0; visibility: hidden; }
.hero__in { max-width: 980px; display: grid; justify-items: center; gap: 0; pointer-events: auto; }
.hero__eyebrow { font: 600 12px/1 var(--hud-font); letter-spacing: 0.42em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 14px; }
.hero__eyebrow::before, .hero__eyebrow::after { content: ''; width: 34px; height: 1px; background: var(--ink-3); }
/* The headline is the page's main heading (h1) at /. At /contact and /features the view's own title is, and the headline
   is served as a plain block with the class hero__h (tools/pages.mjs): every rule for it names both. */
.hero h1, .hero .hero__h { margin: 22px 0 0; font: 600 clamp(30px, 4.6vw, 66px) / 1.08 var(--hud-font); letter-spacing: 0.005em; text-wrap: balance; }
.hero h1 em, .hero .hero__h em { font-style: normal; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { margin: 20px 0 0; max-width: 680px; font-size: clamp(13.5px, 1.12vw, 16px); line-height: 1.75; letter-spacing: 0.02em; color: var(--ink-2); text-wrap: pretty; }
.hero__stage { height: clamp(120px, 24vh, 250px); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
/* side padding matches the space above and below the icon, so the buttons don't look stretched */
.hero__cta .pill { height: 50px; padding: 0 17px 0 16px; gap: 10px; font-size: 13px; border-radius: 14px; }
.hero__cta .pill svg { width: 19px; height: 19px; }
.hero__note { margin-top: 18px; font: 500 11px/1 var(--hud-font); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); }
/* The landing text sits over a busy skyline, so its small text is brighter than elsewhere on the page and has a soft
   shadow. Its strength goes down in even steps: the headline, the glasses and the buttons at 100%, the line above the
   headline and the line under it at 86%, the devices at 72%, the footer line at 58%. */
.hero__eyebrow, .hero__sub { color: rgba(244, 246, 248, 0.86); }
.hero__note { color: rgba(244, 246, 248, 0.72); }
.hero__eyebrow, .hero h1, .hero .hero__h, .hero__sub, .hero__note, .hero__foot .legal { text-shadow: 0 1px 16px rgba(3, 5, 9, 0.7); }
.hero h1 em, .hero .hero__h em { text-shadow: none; } /* a shadow would paint over the gradient lettering */

/* ---------------------------------------------------------------- widget info panel */
.panel { position: absolute; z-index: 15; right: clamp(14px, 2.4vw, 34px); top: 50%; width: min(400px, calc(100vw - 28px)); max-height: calc(100% - 140px); overflow: hidden; display: flex; flex-direction: column;
  padding: 28px 28px 22px; border-radius: 22px; border: 1px solid var(--line); background: var(--glass);
  -webkit-backdrop-filter: blur(26px) saturate(150%); backdrop-filter: blur(26px) saturate(150%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transform: translate(calc(100% + 60px), -50%); opacity: 0; visibility: hidden;
  transition: transform 0.75s var(--ease), opacity 0.5s ease, visibility 0.75s; }
#app[data-state='focus'] .panel { transform: translate(0, -50%); opacity: 1; visibility: visible; }
/* when the card is taller than its room, its text scrolls and the buttons under it stay where they are */
.panel__scroll { flex: 1 1 auto; min-height: 0; overflow: auto; margin: 0 -16px 0 -8px; padding: 0 16px 0 8px; scrollbar-width: thin; } /* (the room at the sides is for what reaches past the text's edge: the list's lozenges are turned squares, and a part that scrolls cuts off whatever pokes out of it) */
.panel__foot { flex: none; }
.panel__meta { display: flex; align-items: center; gap: 12px; font: 600 11px/1 var(--hud-font); letter-spacing: 0.2em; color: var(--ink-3); }
.panel__meta b { color: var(--accent); font-weight: 700; text-transform: uppercase; }
.panel__meta i { flex: 1; height: 1px; background: var(--line); }
.panel__title { margin: 18px 0 0; font: 600 27px/1.18 var(--hud-font); letter-spacing: 0.005em; text-wrap: balance; }
.panel__body { margin: 14px 0 0; font-size: 13px; line-height: 1.75; letter-spacing: 0.02em; color: var(--ink-2); text-wrap: pretty; }
.panel__points { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; font-size: 12px; line-height: 1.55; letter-spacing: 0.02em; color: var(--ink-2); }
.panel__points li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; }
.panel__points li::before { content: ''; width: 7px; height: 7px; margin-top: 6px; border: 1.5px solid var(--accent); border-image: linear-gradient(45deg, var(--accent), var(--accent-2)) 1; transform: rotate(45deg); } /* (45deg, turned with the square: left to right as it is seen) */
.panel__try { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.panel__try-label { width: fit-content; max-width: 100%; font: 700 10.5px/1 var(--hud-font); letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.panel__controls { display: grid; gap: 14px; }
.panel__foot { display: flex; align-items: center; gap: 8px; margin-top: 22px; }
.panel__foot .pill { height: 40px; padding: 0 14px; font-size: 11px; }
.panel__foot .pill--next { flex: 1; min-width: 0; justify-content: center; }
.panel__foot .pill--next span { overflow: hidden; text-overflow: ellipsis; } /* long module names, such as Captions & Translation */
.panel__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; overflow: hidden; border-radius: 0 0 22px 22px; }
.panel__progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* controls used inside the panel */
.ctl__label { display: flex; justify-content: space-between; font-size: 11.5px; letter-spacing: 0.03em; color: var(--ink-2); margin-bottom: 8px; }
.ctl__label b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); font: 600 11px/1 var(--hud-font); letter-spacing: 0.05em; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.25s var(--ease); }
.chip:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-1px); }
.chip.is-sel { background: linear-gradient(90deg, var(--accent), var(--accent-2)) border-box; border-color: transparent; color: var(--on-accent); }
.chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.chip svg { width: 15px; height: 15px; }
.chip span { display: inline-flex; align-items: center; gap: 6px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; margin: 0; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #26335c 0%, #f0a25e 26%, #bfe0ff 50%, #f0a25e 78%, #26335c 100%); }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #26335c 0%, #f0a25e 26%, #bfe0ff 50%, #f0a25e 78%, #26335c 100%); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.ctl__hint { font-size: 11px; line-height: 1.65; letter-spacing: 0.02em; color: var(--ink-3); }

/* ---------------------------------------------------------------- bottom strip */
.foot { position: absolute; z-index: 12; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 18px clamp(18px, 3vw, 40px) max(20px, env(safe-area-inset-bottom)); pointer-events: none;
  font: 500 11px/1.3 var(--hud-font); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); transition: opacity 0.6s ease; }
#app[data-state='loading'] .foot, #app[data-state='intro'] .foot, #app[data-state='enter'] .foot { opacity: 0; }
.foot__hint { display: flex; align-items: center; gap: 12px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.foot__hint svg { width: 18px; height: 18px; color: var(--accent); }
.foot__tag { text-align: right; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.foot__tag b { color: var(--ink); font-weight: 600; }
#app[data-state='focus'] .foot__hint { opacity: 0; }
/* the guided tour lives at the bottom centre once the glasses are on */
.foot__mid { position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); pointer-events: auto; }
#app:not([data-state='explore']):not([data-state='focus']) .foot__mid { pointer-events: none; }
.foot__mid .pill { height: 40px; font-size: 11px; }

/* ---------------------------------------------------------------- what the Scanner puts in the view (src/scan.js) */
/* The brackets round the thing that was tapped and the card that names it, drawn by the page where the thing is in the
   view and moved with it, and the ring that shows where a tap landed. Looks are the app's (ScanMarkers.kt, InfoOverlay.kt). */
.scanfx { position: absolute; inset: 0; z-index: 8; overflow: hidden; pointer-events: none; }
.scanfx__mark, .scanfx__card, .scanfx__tap { position: absolute; left: 0; top: 0; }
.scanfx__mark, .scanfx__card { opacity: 0; visibility: hidden; will-change: transform; transition: opacity 0.22s ease, visibility 0s linear 0.22s; }
.scanfx.is-marked .scanfx__mark, .scanfx.is-marked .scanfx__card { opacity: 1; visibility: visible; transition: opacity 0.22s ease; }
.scanfx.is-away .scanfx__mark, .scanfx.is-away .scanfx__card { visibility: hidden; }
/* the brackets: a hairline with a soft glow under it, breathing slowly, as a selected thing does in the app */
.scanfx__mark svg { position: absolute; display: block; overflow: visible; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 62%, transparent)); }
.scanfx.is-marked .scanfx__mark svg { animation: scanPulse 1.6s ease-in-out infinite; }
@keyframes scanPulse { 0%, 100% { opacity: 0.95; } 50% { opacity: 0.68; } }
/* the card: a dark plate with its bottom left corner cut off, a thin light rim, and a leader in the main colour */
.scanfx__card { --plate: 236px; width: var(--plate); font-family: var(--hud-font); }
.scanfx__lead { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; }
.scanfx__lead path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scanfx__lead circle { fill: var(--accent); }
.scanfx__plate { position: relative; padding: 11px 14px 12px; }
.scanfx__plate > :not(svg) { position: relative; }
.scanfx__shape { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.scanfx__shape path { fill: rgba(11, 18, 32, 0.9); stroke: color-mix(in srgb, color-mix(in srgb, var(--accent) 15%, #fff) 85%, transparent); stroke-width: 1.5; }
.scanfx__kind { padding-bottom: 6px; margin-bottom: 8px; border-bottom: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); font-weight: 600; font-size: 9.5px; line-height: 1; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.scanfx__name { font-weight: 600; font-size: 15px; line-height: 1.3; color: #fff; }
.scanfx__detail { margin-top: 5px; font-weight: 400; font-size: 11.5px; line-height: 1.5; color: #c9d6dc; }
.scanfx__act { margin-top: 8px; display: flex; align-items: center; justify-content: flex-end; gap: 7px; font-weight: 600; font-size: 10.5px; line-height: 1; color: var(--accent); }
.scanfx__act svg { flex: none; width: 6px; height: 10px; }
.scanfx__wait { display: flex; align-items: center; gap: 9px; padding: 1px 0 2px; font-size: 12px; line-height: 1; color: rgba(255, 255, 255, 0.85); }
.scanfx__wait i { flex: none; width: 12px; height: 12px; box-sizing: border-box; border: 2px solid var(--accent); border-top-color: transparent; border-radius: 50%; animation: scanSpin 0.8s linear infinite; }
.scanfx__card:not(.is-named) :is(.scanfx__name, .scanfx__detail, .scanfx__act), .scanfx__card.is-named .scanfx__wait, .scanfx:not(.is-marked) .scanfx__wait { display: none; }
@keyframes scanSpin { to { transform: rotate(360deg); } }
/* where a tap landed */
.scanfx__tap { width: 46px; height: 46px; margin: -23px 0 0 -23px; box-sizing: border-box; border: 2px solid #fff; border-radius: 50%; opacity: 0; }
.scanfx__tap.is-on { animation: scanTap 0.6s ease-out; }
@keyframes scanTap { 0% { opacity: 0.95; transform: scale(0.2); } 100% { opacity: 0; transform: scale(1); } }
/* with the Scanner open the view is something to tap */
#app[data-scan] #gl { cursor: crosshair; }
#app[data-scan].is-dragging #gl { cursor: grabbing; }
/* a phone: the card a size smaller */
@media (max-width: 720px), (orientation: landscape) and (max-height: 520px) {
  .scanfx__card { --plate: 172px; }
  .scanfx__plate { padding: 8px 10px 9px; }
  .scanfx__kind { padding-bottom: 5px; margin-bottom: 6px; font-size: 8.5px; }
  .scanfx__name { font-size: 12.5px; }
  .scanfx__detail { margin-top: 4px; font-size: 10px; }
  .scanfx__act { margin-top: 6px; font-size: 9.5px; }
  .scanfx__wait { font-size: 10.5px; }
  .scanfx__tap { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
}

/* ---------------------------------------------------------------- loader + film modal */
.loader { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--bg); transition: opacity 0.8s ease, visibility 0.8s; }
#app:not([data-state='loading']) .loader { opacity: 0; visibility: hidden; }
/* The card and the bar appear together once the card can be drawn (loader.js adds .is-on).
   The delayed animation is only a fallback, in case that script is slow to arrive. */
.loader__in { display: grid; gap: 20px; width: min(300px, 70vw); opacity: 0; animation: loader-in 0.4s ease 1s forwards; }
.loader.is-on .loader__in { opacity: 1; animation: none; transition: opacity 0.35s ease; }
@keyframes loader-in { to { opacity: 1; } }
.loader__logo { display: block; width: 100%; height: auto; }
/* One rounded bar, exactly as wide as the logo artwork (the image has a sliver of empty margin
   each side), filling with the logo's own coral-to-pink gradient. The lit part is a rounded
   window sliding in from the left; the gradient inside it slides the opposite way, so the
   colours stay put under the logo while the bar fills. */
.loader__bar { width: 97.56%; margin-left: 1.89%; height: 6px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.1); }
.loader__fill { display: block; height: 100%; border-radius: inherit; overflow: hidden; transform: translateX(-100%); will-change: transform; }
.loader__fill i { display: block; height: 100%; background: var(--logo); transform: translateX(100%); will-change: transform; }

/* The film is a popup over the page, and has to read as one: the backdrop only dims and softens
   the page a little, so the site stays clearly visible behind the player. */
.film { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; padding: 76px 24px 28px; background: rgba(4, 5, 9, 0.8); -webkit-backdrop-filter: blur(2.5px); backdrop-filter: blur(2.5px);
  opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s; }
.film.is-open { opacity: 1; visibility: visible; }
/* the close button sits exactly where the Get LifeHUD button is in the top bar: same height, same distance from the top and right */
.film__close { position: absolute; right: clamp(18px, 3vw, 40px); top: max(18px, env(safe-area-inset-top)); width: 50px; height: 50px; border-radius: 14px; }
.film__close svg { width: 18px; height: 18px; }

/* The player: our own controls in the app's look, not the browser's (see src/player.js). */
.player { position: relative; width: min(1180px, 100%, calc((100vh - 120px) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; outline: 0;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7); }
.player::after { content: ''; position: absolute; inset: 0; padding: 2px; border-radius: inherit; background: var(--logo); opacity: 0.8; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.player video { display: block; width: 100%; height: 100%; object-fit: contain; cursor: pointer; }
.player.is-idle, .player.is-idle video { cursor: none; }
/* big play button in the middle while paused */
.player__big { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 22px; background: var(--logo); color: #14080d; cursor: pointer;
  box-shadow: 0 16px 50px rgba(251, 81, 150, 0.45); transition: opacity 0.25s ease, transform 0.35s var(--ease); }
.player__big svg { width: 34px; height: 34px; }
.player__big:hover { transform: scale(1.06); }
.player.is-playing .player__big { opacity: 0; transform: scale(0.8); pointer-events: none; }
/* control strip along the bottom; it fades away while the film plays untouched */
.player__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 46px 18px 16px; background: linear-gradient(0deg, rgba(4, 6, 10, 0.9), transparent); transition: opacity 0.3s ease; }
.player.is-idle .player__bar { opacity: 0; pointer-events: none; }
.player__btn { flex: none; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.09); color: #fff; cursor: pointer; transition: background 0.2s, transform 0.25s var(--ease); }
.player__btn:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-1px); }
.player__btn svg { width: 17px; height: 17px; }
.player__btn:focus-visible, .player__big:focus-visible, .player__seek:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.player__time { flex: none; min-width: 36px; text-align: center; font: 500 11px/1 var(--hud-font); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; color: var(--ink-2); }
/* seek bar: a thin track, how much has loaded, and the played part in the logo's gradient */
.player__seek { position: relative; flex: 1; height: 20px; border-radius: 4px; cursor: pointer; touch-action: none; }
.player__seek::before, .player__seek i { content: ''; position: absolute; left: 0; top: 8px; height: 4px; border-radius: 4px; }
.player__seek::before { right: 0; background: rgba(255, 255, 255, 0.16); }
.player__seek i { width: 0; }
.player__seek i[data-pl='buffer'] { background: rgba(255, 255, 255, 0.24); }
.player__seek i[data-pl='fill'] { background: var(--logo); }
.player__seek i[data-pl='fill']::after { content: ''; position: absolute; right: -6px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgba(251, 81, 150, 0.8); transform: scale(0); transition: transform 0.2s var(--ease); }
.player__seek:hover i[data-pl='fill']::after, .player__seek:focus-visible i[data-pl='fill']::after { transform: scale(1); }
.player:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; }
.player:fullscreen::after { display: none; }

.nogl { position: absolute; inset: 0; z-index: 70; display: grid; place-items: center; padding: 32px; text-align: center; background: var(--bg); overflow: auto; }
.nogl > div { display: grid; justify-items: center; }
.nogl__logo { display: block; width: min(260px, 70vw); height: auto; margin-bottom: 18px; }
.nogl p { max-width: 480px; margin: 0; font-size: 13px; line-height: 1.75; letter-spacing: 0.02em; color: var(--ink-2); }
.nogl video { width: min(860px, 100%); margin-top: 22px; border-radius: 14px; }

/* ---------------------------------------------------------------- small screens */
.only-narrow { display: none; }
/* A phone: everything is a size smaller than on a desk, with room left around it. */
@media (max-width: 350px) {
  .only-wide { display: none; }
  .only-narrow { display: inline; }
}
@media (max-width: 560px) {
  #btn-get { height: 38px; padding: 0 12px; gap: 6px; font-size: 10.5px; letter-spacing: 0.1em; border-radius: 12px; }
  #btn-get svg { width: 15px; height: 15px; }
  #btn-sound { width: 38px; height: 38px; border-radius: 12px; }
  #btn-sound svg { width: 16px; height: 16px; }
  .film__close { right: 14px; width: 44px; height: 44px; }
  .film { padding: 70px 10px 20px; }
  .player__bar { gap: 8px; padding: 36px 10px 10px; }
  .player__time[data-pl='total'] { display: none; }
  .top { padding: max(14px, env(safe-area-inset-top)) 16px 12px; gap: 10px; }
  .top .logo img { height: 32px; }
  .top__actions { gap: 8px; }
  .about { top: 62px; }
  .hero { padding: 70px 22px max(14px, env(safe-area-inset-bottom)); }
  .hero__eyebrow { letter-spacing: 0.3em; font-size: 9.5px; gap: 12px; }
  .hero__eyebrow::before, .hero__eyebrow::after { width: 26px; }
  .hero h1, .hero .hero__h { margin-top: 16px; font-size: clamp(23px, 7vw, 28px); }
  .hero__sub { margin-top: 12px; font-size: 12.5px; line-height: 1.6; }
  .hero__note { margin-top: 14px; font-size: 9.5px; letter-spacing: 0.16em; line-height: 1.7; text-wrap: balance; }
  .hero__cta { gap: 8px; flex-direction: column; align-items: center; } /* one under the other on every phone (now that they are smaller, two fitted side by side on the wider ones, with the third alone under them) */
  .hero__cta .pill { height: 40px; padding: 0 14px 0 13px; gap: 8px; font-size: 11.5px; border-radius: 12px; }
  .hero__cta .pill svg { width: 16px; height: 16px; }
  /* the links on one line and the copyright on the next (they took three) */
  .hero__foot { padding-top: 8px; }
  .legal { gap: 3px 14px; font-size: clamp(7.5px, 2.2vw, 8.5px); letter-spacing: 0.1em; }
  .legal__links { flex-wrap: nowrap; gap: 0 12px; }
  .legal__links a[data-page='features'] { display: none; } /* (the row holds three links here; the Features link is on wider screens, and on the light page, where the row may wrap) */
  .foot { padding-left: 16px; padding-right: 16px; gap: 10px; }
  .foot__mid .pill { height: 36px; padding: 0 13px; font-size: 10px; }
}
/* A phone with a short screen (a small one, or any with the browser's bars showing): the landing
   text closes up, and the gap it leaves for the glasses with it, so that the line of devices and
   the links under it stay on the screen. (The page does not scroll.) */
@media (max-width: 560px) and (max-height: 760px) {
  .hero { padding-top: 64px; }
  .hero h1, .hero .hero__h { margin-top: 12px; font-size: clamp(22px, 6.6vw, 26px); }
  .hero__sub { margin-top: 10px; line-height: 1.55; }
  .hero__stage { height: clamp(70px, 15vh, 130px); }
  .hero__cta .pill { height: 38px; }
  .hero__note { margin-top: 11px; line-height: 1.6; }
}
@media (max-width: 560px) and (max-height: 600px) {
  /* with the glasses on, the modules at the top and bottom of the view come close to the top bar and the tour's button here: both give way a little, and the hint under the button goes */
  .top { padding-top: 8px; }
  #btn-get, #btn-sound { height: 34px; }
  #btn-sound { width: 34px; }
  .foot__hint { display: none; }
  .foot { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .hero { padding-top: 54px; }
  .hero h1, .hero .hero__h { margin-top: 9px; font-size: 21px; }
  .hero__sub { margin-top: 8px; font-size: 12px; }
  .hero__stage { height: clamp(54px, 11vh, 70px); }
  .hero__cta .pill { height: 36px; }
  .hero__note { margin-top: 8px; }
}
/* A phone (or a tablet) held upright, with a module open. Everything gets a part of the screen of its own, so
   that nothing lies over anything else or runs off the edge: the side menu keeps the left edge,
   the module's card is a sheet at the bottom to the right of the menu, the module itself has the
   room above the sheet (the HUD fits it in: see "an upright screen" in main.js, which also sets
   --sheet-left to where the menu ends), the tour's
   subtitle, on the tour, the two lines under the sheet, and the tour's button the bottom edge under that.
   Type and spacing are a size down from the desktop card, to leave the module more of the screen. */
@media (min-width: 561px) and (max-width: 820px) {
  .logo img { height: 38px; }
}
@media (orientation: portrait) and (max-width: 1100px) {
  /* the tour's button and the room under it, as the rules below reckon with them (a phone's are smaller: see the next block) */
  #app { --tour-h: 40px; --foot-pad: max(12px, env(safe-area-inset-bottom)); }
  /* as tall as what is in it, up to what leaves the module above it a fair share of the screen; past that its text scrolls (it fades out at the lower edge to show there is more) */
  .panel { left: var(--sheet-left, 10px); right: 10px; top: auto; bottom: 10px; width: auto; max-width: 560px; margin-left: auto; max-height: max(200px, calc(100% - 330px)); padding: 14px 16px 12px; border-radius: 18px; transform: translateY(calc(100% + 90px)); } /* (max-width: on an upright tablet it keeps to the right rather than stretching across) */
  #app[data-state='focus'] .panel { transform: none; }
  #app.is-touring .panel { bottom: calc(var(--foot-pad) + var(--tour-h) + 60px); max-height: max(190px, calc(100% - 430px)); } /* on the tour the subtitle (two lines of it) and then the tour's button are under it */
  .panel__scroll { margin: 0 -10px 0 -6px; padding: 0 10px 10px 6px; -webkit-mask-image: linear-gradient(#000 calc(100% - 12px), transparent); mask-image: linear-gradient(#000 calc(100% - 12px), transparent); }
  .panel__meta { font-size: 10px; gap: 10px; }
  .panel__title { font-size: 17px; margin-top: 9px; }
  .panel__body { font-size: 12px; line-height: 1.6; margin-top: 7px; }
  .panel__points { display: none; }
  .panel__try { margin-top: 10px; padding-top: 10px; }
  .panel__try-label { font-size: 9.5px; letter-spacing: 0.2em; margin-bottom: 9px; }
  .panel__controls { gap: 9px; }
  .panel .chips { gap: 6px; }
  .panel .chip { height: 32px; padding: 0 11px; font-size: 10.5px; }
  .panel .ctl__label { font-size: 11px; margin-bottom: 4px; }
  .panel .ctl__hint { font-size: 10.5px; line-height: 1.5; }
  .panel__foot { margin-top: 2px; }
  .panel__foot .pill { height: 38px; }
  .panel.is-brief .panel__try { display: none; } /* on the tour, where the card would not fit otherwise (main.js) */
}
/* ...and on a phone a size smaller again, with room between it and the screen's edges */
@media (orientation: portrait) and (max-width: 560px) {
  #app { --tour-h: 36px; }
  .panel { right: 14px; bottom: 14px; max-height: max(180px, calc(100% - 380px)); }
  #app.is-touring .panel { max-height: max(170px, calc(100% - 470px)); }
}
/* the card's type and spacing on a phone, upright or sideways */
@media (orientation: portrait) and (max-width: 560px), (orientation: landscape) and (max-height: 520px) {
  .panel { padding: 12px 14px 10px; border-radius: 16px; }
  .panel__scroll { margin: 0 -10px 0 -6px; padding: 0 10px 10px 6px; -webkit-mask-image: linear-gradient(#000 calc(100% - 12px), transparent); mask-image: linear-gradient(#000 calc(100% - 12px), transparent); }
  .panel__points { display: none; }
  .panel__meta { font-size: 9px; gap: 9px; letter-spacing: 0.18em; }
  .panel__title { font-size: 15px; margin-top: 8px; }
  .panel__body { font-size: 11px; line-height: 1.55; margin-top: 6px; }
  .panel__try { margin-top: 9px; padding-top: 9px; }
  .panel__try-label { font-size: 8.5px; margin-bottom: 8px; }
  .panel__controls { gap: 8px; }
  .panel .chips { gap: 5px; }
  .panel .chip { height: 28px; padding: 0 10px; font-size: 9.5px; border-radius: 8px; }
  .panel .chip svg { width: 13px; height: 13px; }
  .panel .ctl__label { font-size: 10px; margin-bottom: 3px; }
  .panel .ctl__hint { font-size: 9.5px; }
  .panel .range { height: 22px; }
  .panel__foot { gap: 6px; margin-top: 2px; }
  .panel__foot .pill { height: 34px; padding: 0 12px; font-size: 10px; border-radius: 10px; }
  .panel__foot .pill--icon { width: 34px; padding: 0; }
  .panel__foot .pill svg { width: 15px; height: 15px; }
}
/* A phone held sideways: a wide screen with very little height. The HUD has its own places for it
   (lslot in widgets.js, the side menu two abreast). Here the page's own furniture is sized to the
   height so that it keeps the share of the screen it has on a desk: the top bar, the landing text
   (which closes up to fit, with its buttons on one row), the tour's button, and the module's card,
   which stays on the right and is a size smaller. */
@media (orientation: landscape) and (max-height: 520px) {
  #app { --tour-h: clamp(26px, 8vh, 34px); --foot-pad: max(2vh, env(safe-area-inset-bottom)); } /* the tour's button and the room under it: the subtitle is placed by them (further down) */
  .top { padding: 2vh 14px 1.5vh; }
  .top .logo img { height: clamp(20px, 7.6vh, 30px); }
  #btn-get { height: clamp(26px, 9vh, 36px); padding: 0 12px; gap: 6px; font-size: clamp(9px, 2.8vh, 11px); border-radius: 10px; }
  #btn-get svg { width: 13px; height: 13px; }
  #btn-sound { width: clamp(26px, 9vh, 36px); height: clamp(26px, 9vh, 36px); border-radius: 10px; }
  #btn-sound svg { width: 14px; height: 14px; }
  .about { top: calc(11vh + 12px); max-height: calc(100% - 11vh - 22px); overflow: auto; padding: 14px; }
  .hero { padding: calc(12vh + 4px) 20px max(8px, env(safe-area-inset-bottom)); }
  .hero__eyebrow { font-size: 9px; letter-spacing: 0.3em; }
  .hero h1, .hero .hero__h { margin-top: 2.2vh; font-size: clamp(17px, 6.4vh, 28px); }
  .hero__sub { margin-top: 1.6vh; font-size: clamp(11px, 3.4vh, 13.5px); line-height: 1.45; }
  .hero__stage { height: clamp(48px, 21vh, 110px); }
  .hero__cta { gap: 8px; flex-wrap: nowrap; }
  .hero__cta .pill { height: clamp(30px, 9.5vh, 40px); padding: 0 13px 0 12px; gap: 7px; font-size: clamp(9.5px, 2.9vh, 11.5px); border-radius: 11px; }
  .hero__cta .pill svg { width: 15px; height: 15px; }
  .hero__note { margin-top: 2.4vh; font-size: 9px; letter-spacing: 0.18em; }
  .hero__foot { padding-top: 1.4vh; }
  .legal { font-size: 8.5px; letter-spacing: 0.12em; }
  .foot { padding: 0 16px var(--foot-pad); }
  .foot__hint { display: none; }
  .foot__mid .pill { height: var(--tour-h); padding: 0 12px; font-size: clamp(8.5px, 2.6vh, 10px); border-radius: 10px; }
  .foot__mid .pill svg { width: 13px; height: 13px; }
  .panel { right: 12px; top: calc(11vh + 12px); width: min(300px, 38vw); max-height: calc(100% - 11vh - 22px); transform: translateX(calc(100% + 40px)); }
  #app[data-state='focus'] .panel { transform: none; }
}
@media (max-width: 1040px) {
  .foot__tag { display: none; }
  .foot { flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; }
  .foot__mid { position: static; transform: none; order: -1; }
  /* with a module open the card has the bottom of the screen, except on the tour, whose button has to stay in reach: it is the only way to stop it */
  #app[data-state='focus']:not(.is-touring) .foot__mid { display: none; }
  #app[data-state='focus'] .foot__hint { display: none; }
  #app[data-state='focus'] .foot { padding-bottom: var(--foot-pad, max(12px, env(safe-area-inset-bottom))); }
}
@media (max-width: 560px) {
  .foot__hint { font-size: 9.5px; letter-spacing: 0.14em; gap: 8px; } /* on one line */
}

/* ---------------------------------------------------------------- the tour's subtitle
   What the assistant says on the guided tour, written out so the tour also reads with the sound
   off. It is set on the Captions module's own line in the overview, in the same type, size and
   colour, and takes the place of the sample caption there for as long as the tour runs. Where that
   line is and how big its type is come from the HUD itself: main.js sets --cap-x, --cap-y and
   --cap-unit (the screen pixels one of the module's pixels takes) from the module's slot whenever
   the window changes. The caption is 24px type on a line 600px wide, 520px on an upright screen. */
.tourcap { position: absolute; z-index: 13; left: var(--cap-x, 50%); top: var(--cap-y, 83%); width: min(25em, calc(100vw - 32px)); transform: translate(-50%, -0.66em); /* the first line sits on the caption's line, and a longer caption runs on below it */
  font: 500 max(13px, calc(24px * var(--cap-unit, 0.72))) / 1.32 var(--caption-font); text-align: center; pointer-events: none; opacity: 0; transition: opacity 0.35s ease; }
.tourcap.is-on { opacity: 1; }
.tourcap p { margin: 0; color: var(--hud-text); text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 0, 0, 0.6); } /* the HUD's text colour: change it and the caption changes too */
.tourcap span { opacity: 0; animation: capWord 0.24s ease forwards; }
#app.is-touring .w[data-id='captions']:not(.is-focus) .w-inner { opacity: 0; }
@media (orientation: landscape) {
  /* with a module open its card is on the right: in a narrow window the subtitle moves left to stay clear of it */
  #app[data-state='focus'] .tourcap { left: min(var(--cap-x, 50%), calc(100% - clamp(14px, 2.4vw, 34px) - 420px - 12.5em)); }
}
@media (max-width: 1040px) {
  /* the tour button and the hint are stacked right under the caption here, so a longer caption runs upward instead */
  #app:not([data-state='focus']) .tourcap { top: auto; bottom: calc(100% - var(--cap-y, 83%)); transform: translate(-50%, 0.66em); }
}
/* On a phone (and an upright tablet) the subtitle is not tied to the caption line: it is always just
   above the tour's button, a fixed gap from it whatever the screen (the place is worked out from
   the button's own height and the room under it), in the overview and with a module open alike,
   so it stays put from one to the other. A second line runs upward.
   (#app[data-state] only to outrank the rule above.) */
@media (orientation: landscape) and (max-height: 520px) {
  /* a phone held sideways: a wider line, so that few captions need a second one */
  #app[data-state] .tourcap { top: auto; bottom: calc(var(--foot-pad) + var(--tour-h) + 14px); width: min(30em, calc(100vw - 32px)); transform: translateX(-50%); }
  /* with a module open, the subtitle and the tour's button under it share the middle of the room between the side menu (80px) and the card */
  #app[data-state='focus'] .tourcap { left: calc(50% - (min(300px, 38vw) + 24px - 80px) / 2); width: min(30em, calc(100% - min(300px, 38vw) - 156px)); }
  #app[data-state='focus'] .foot__mid { transform: translateX(calc((min(300px, 38vw) + 24px - 80px) / -2)); }
}
@media (orientation: portrait) and (max-width: 1100px) {
  /* upright: in the middle of the screen, across its width. With a module open that is between the module's card and the button (the card leaves room for two lines of it). The hint under the button is put away while the tour runs, so that the button, and the subtitle with it, are at the same height in the overview as with a module open. */
  #app.is-touring .foot__hint { display: none; }
  #app.is-touring .foot { padding-bottom: var(--foot-pad); }
  #app[data-state] .tourcap { left: 50%; top: auto; bottom: calc(var(--foot-pad) + var(--tour-h) + 14px); width: calc(100% - 36px); font-size: 13px; line-height: 1.3; transform: translateX(-50%); }
}
@media (orientation: portrait) and (max-width: 560px) {
  #app[data-state] .tourcap { width: calc(100% - 32px); font-size: 12px; } /* (the longest caption, 90 letters, is then two lines even on a narrow phone) */
}

@media (prefers-reduced-motion: reduce) {
  .w-inner, .panel, .pill, .chip { transition-duration: 0.01s !important; }
  /* the Scanner's brackets and its sign hold still */
  .scanfx__mark svg, .scan__corners { animation: none !important; }
}
