/* Beam browser demo. Colours, corners, shadows, glass, type and durations come from the Beam design system
   (tokens.css, a byte-identical copy of beam-design-system/build/tokens.css, 9055912): the same buttons, focus ring,
   panels and accent as beam.eyeware.tech. Replicas of the app's tray keep the app's density and colours
   (color.app.*). Deliberate exception: secondary text actions (Skip this, Keep using the demo) stay dim white so
   optional controls do not compete with the cockpit (Bastjan, 2026-10-27). Finish is the next step: an accent button. */
@font-face{font-family:"Lato";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/lato-400.woff2) format("woff2")}
@font-face{font-family:"Lato";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/lato-700.woff2) format("woff2")}
@font-face{font-family:"Lato";font-style:normal;font-weight:900;font-display:swap;src:url(fonts/lato-900.woff2) format("woff2")}

:root{
  --accent:var(--beam-color-accent);--bg:var(--beam-color-ground-top);--text:var(--beam-color-text-primary);--dim:var(--beam-color-text-dimmed);
  --welcome-background:var(--beam-gradient-ground-top);
  --shadow:var(--beam-shadow-panel);--glass:var(--beam-color-glass-panel);
  --control:var(--beam-color-app-control);--track:var(--beam-color-app-control);
  /* The site's button (button.md): the accent with the shine at rest (owner ruling 2026-10-27: the sheen, the light
     line inside the top edge, the soft shadow; still carried as legacy tokens), the split highlight, the 1px edge
     and the grown shadow under the pointer, 1px up. */
  --btn-rest:var(--beam-legacy-gradient-sheen),linear-gradient(var(--beam-color-accent),var(--beam-color-accent));
  --btn-hover:var(--beam-gradient-split),linear-gradient(var(--beam-color-accent),var(--beam-color-accent));
  --btn-shadow:var(--beam-legacy-shadow-glass-edge),var(--beam-legacy-shadow-glass-drop);
  --btn-motion:background-color var(--beam-duration-state) var(--beam-easing-standard),box-shadow var(--beam-duration-state) var(--beam-easing-standard),translate var(--beam-duration-state) var(--beam-easing-standard),scale var(--beam-duration-state) var(--beam-easing-standard);
  --glass-white:linear-gradient(180deg,#fff 0%,rgba(255,255,255,.74) 100%);   /* white by Liquid Glass rules: lit from the top, a touch translucent toward the bottom; the logo, the instruction lines, the path's outline and the recenter point all take it (Bastjan, 2026-09-21: no new frames, the same rules) */
  --glass-fill:var(--beam-glass-surface-tint);--glass-purple:var(--btn-rest);--glass-purple-hover:var(--btn-hover);--glass-line:var(--beam-glass-surface-edge);--glass-blur:var(--beam-recipe-panel-backdrop);--glass-edge:inset 0 1px 0 rgba(255,255,255,.16),0 6px 22px rgba(0,0,0,.2);
  --inset-top:max(16px,env(safe-area-inset-top));--inset-bottom:max(16px,env(safe-area-inset-bottom));
  --inset-left:max(20px,env(safe-area-inset-left));--inset-right:max(20px,env(safe-area-inset-right));
}
html{color-scheme:dark;background:var(--bg);color:var(--text);font:400 16px/1.5 "Lato",sans-serif;-webkit-text-size-adjust:100%}
body{margin:0;height:100dvh;overflow:hidden;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
a{color:inherit}
/* Every control answers a tap at once: no double-tap zoom, no tap delay on a phone */
button,label,select,input,a{touch-action:manipulation}

/* The scene */
.viewer{position:fixed;inset:0;background:var(--bg)}
/* Reveal the scene behind the first explanation, without moving the game camera. */
.viewer::after{content:"";position:absolute;inset:0;z-index:2;background-color:var(--bg);background-image:var(--welcome-background);pointer-events:none;opacity:0;transition:opacity 1.6s ease-in-out}
body.pre-cockpit .viewer::after{opacity:1;transition:none}
/* The cover stays for the moment the scene's frames are timed as the demo opens (babylon-viewer.js fitQuality) */
body.quality-fitting .viewer::after{opacity:1;transition:none}
body.pre-cockpit .credits{visibility:hidden}
/* The welcome's backdrop: the teaser loop over the gradient cover, under the chrome and the title. A dim keeps the
   logo and the lines readable (deepest behind the title). It fades out as Get Started moves on, leaving the plain
   gradient under setup; reduced motion shows the poster only (app.js never plays it). */
#welcome-backdrop{position:absolute;inset:0;z-index:3;overflow:hidden;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .8s ease-in-out,visibility 0s .8s}
body.title-screen #welcome-backdrop{opacity:1;visibility:visible;transition:opacity .8s ease-in-out}
#welcome-video{display:block;width:100%;height:100%;object-fit:cover;object-view-box:inset(0% 5% 1.5% 5%)}   /* hero.mp4 carries black side bars and a light bottom strip: cropped off until the video is re-exported (Bastjan, 2026-11-12) */
/* Get Beam darkens the frozen scene behind it with the welcome's dim, so the offer reads without the cockpit
   competing (Bastjan, 2026-11-19). Under the panel and the webcam preview (both z-index 6), over the scene. */
.viewer::before{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;opacity:0;transition:opacity .5s ease-in-out;
  background:radial-gradient(ellipse 55% 50% at 50% 44%,rgba(14,8,36,.82),rgba(14,8,36,0) 100%),linear-gradient(180deg,rgba(21,23,29,.8),rgba(14,8,36,.92))}
body:has(#find:not([hidden])) .viewer::before{opacity:1}
@media(prefers-reduced-motion:reduce){.viewer::before{transition:none}}
#welcome-backdrop::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 55% 50% at 50% 44%,rgba(14,8,36,.82),rgba(14,8,36,0) 100%),linear-gradient(180deg,rgba(21,23,29,.8),rgba(14,8,36,.92))}
@media(prefers-reduced-motion:reduce){#welcome-backdrop{transition:none}}
/* The loader panel paints the gradient itself under setup; under the title it must let the backdrop through */
body.title-screen #loader{background:none}
.beam-cockpit>canvas{display:block;width:100%;height:100%;outline:none;touch-action:none}

/* Camera feed, bottom left, directly above the privacy block (same column, so the two always stack) */
/* The feed in a glass frame, the chrome's container like every other (Bastjan, 2026-09-21) */
.feed{position:relative;padding:3px;border:1px solid var(--glass-line);border-radius:var(--beam-radius-md);background:var(--glass-fill);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);box-shadow:var(--glass-edge)}
.feed-note{position:absolute;inset:3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:8px;border-radius:9px;
  background:rgba(21,23,29,.86);font-size:13px;line-height:1.3;text-align:center;color:#fff}
#feed-note-text{white-space:pre-line}   /* the Beam app's two-line "Not tracking you" note */
#preview{display:block;width:211px;aspect-ratio:4/3;object-fit:cover;
  border-radius:9px;border:0;background:#000;transform:scaleX(-1);opacity:0;transition:opacity .4s;pointer-events:none}
#preview.on{opacity:1}
/* The privacy mark in the feed's corner (the video is mirrored, the mark is not) */
.privacy-btn{position:absolute;right:4px;bottom:4px;z-index:1;width:30px;height:30px;padding:3px;border:0;border-radius:var(--beam-radius-sm);background:transparent;color:rgba(255,255,255,.7);cursor:pointer;pointer-events:auto;touch-action:manipulation;transition:color var(--beam-duration-state),background var(--beam-duration-state)}
.privacy-btn svg{display:block;width:100%;height:100%}
body:not(.touch) .privacy-btn:hover,.privacy-btn[aria-expanded=true]{color:#fff;background:var(--glass-fill);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);box-shadow:var(--glass-edge)}
.privacy-btn:focus-visible{outline:2px solid #fff;outline-offset:2px}
body[data-state=ended] .privacy-btn,body[data-state=problem] .privacy-btn{display:none}   /* the mark works on every screen the camera is on */
body[data-state=ended] #preview,body[data-state=problem] #preview{opacity:0}
body[data-state=ended] .feed,body[data-state=problem] .feed{visibility:hidden}   /* no camera, no empty frame: the end card and the problem screens (Bastjan, 2026-11-12) */

/* Floating chrome */
.chrome{position:fixed;left:0;right:0;z-index:7;display:flex;align-items:center;justify-content:space-between;gap:16px;pointer-events:none}
.chrome>*{pointer-events:auto}
.chrome-top{top:0;padding:var(--inset-top) var(--inset-right) 0 var(--inset-left)}
.chrome-bottom{bottom:0;align-items:flex-end;padding:0 var(--inset-right) var(--inset-bottom) var(--inset-left)}
.chrome-actions{display:flex;align-items:center;gap:8px}
/* The logo's file has air around the drawing (the drawing spans 34 to 342 of its 375 units across, 9 to 111 of 120
   down): the image hangs 22px left so the hexagon starts at the inset, and the button under it runs to the wordmark's
   right edge (204px at this height) 12px under it */
.logo img{display:block;height:78px;margin-left:-22px;-webkit-mask-image:var(--glass-white);mask-image:var(--glass-white)}   /* the mark in the glass white */
:root{--brand-w:204px;--brand-h:78px;--title-scale:1.4;--title-gap:calc(var(--action-gap) + var(--instruction-gap) + 31px)}   /* logo to lines: one action gap and one line gap (52px, 32px on phones), and the room of the demo name's line under the logo */   /* on the root: the title stack reads them too */
.logo{position:relative;transform-origin:top left;transition:transform .75s cubic-bezier(.22,.7,.25,1),opacity .3s}
/* The welcome's second beat (the camera allowed): the trust row has done its job and goes, and the logo moves to its corner, giving way to the
   path ahead, the progress path itself one title gap over the lines, as the explainer says "follow these steps"
   (Bastjan, 2026-10-29). Get Started then takes the path to the top as before. */
.title-screen.camera-ready #title-trust{display:none}
.title-screen.camera-ready .logo{transform:none;pointer-events:auto}   /* the logo moves to its corner here, as on every later screen, clear of the path */
body.title-screen.camera-ready .chrome-top .steps{display:flex;top:calc(var(--instruction-top) + var(--title-offset) - var(--title-gap));transform:translate(-50%,-100%);pointer-events:none}
/* The logo and the lines end one action gap above the action slot, like content before an action on every screen:
   --title-offset is what the measured stack leaves of --instruction-block (app.js keeps --title-stack-h current) */
:root{--title-action-h:48px;--title-block:calc(var(--action-top) - var(--instruction-top));--title-offset:max(0px,var(--title-block) - var(--title-stack-h,0px) - var(--action-gap));--title-logo-offset:max(0px,var(--title-block) - var(--title-first-h,var(--title-stack-h,0px)) - var(--action-gap))}   /* the logo stands over the first beat's lines and stays there (owner 2026-10-27) */
.title-screen .logo{transform:translate(calc((100vw - var(--brand-w) * var(--title-scale)) / 2 - var(--inset-left)),calc(var(--instruction-top) + var(--title-logo-offset) - var(--title-gap) - var(--brand-h) * var(--title-scale) * (111 / 120) - var(--inset-top))) scale(var(--title-scale));pointer-events:none}
.title-screen #info-btn,.title-screen .chrome-bottom{visibility:hidden}   /* the welcome shows the language menu, full screen and the X (owner 2026-10-27: a visitor may land in the wrong language); only the restart waits */
.title-screen .feed:has(#preview.on),.title-screen #privacy-text{visibility:visible}   /* the camera shows the moment it is allowed, before Get Started, with its privacy mark */
.title-screen .chrome-top{align-items:flex-start}
/* The title: the logo, the tagline and the start action one equal gap apart. The stack starts that gap under the logo's
   drawing (it ends at 111 of the file's 120 units; the logo's top is the title transform's), so a tagline of any length
   keeps the button the same distance below it. */
#title-stack{position:fixed;z-index:8;left:50%;top:calc(var(--instruction-top) + var(--title-offset));transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:var(--instruction-gap);width:calc(100vw - 40px);pointer-events:none}
#title-stack>*{pointer-events:auto}
body:not(.title-screen) #title-stack{visibility:hidden}
:is(#title-stack,.chrome){transition:opacity .25s}
body.booting :is(#title-stack,.chrome){opacity:0;pointer-events:none;animation:booting-fallback .25s 6s forwards}   /* until app.js has filled and measured the welcome: no bare first paint, no part of it alone (opacity, which no child overrides; Bastjan, 2026-10-30); shown anyway after 6s */
@keyframes booting-fallback{to{opacity:1;pointer-events:auto}}
/* The title's subtext speaks the instruction layout's language and nothing else (owner ruling 2026-10-27): the promise
   is a primary line, every other line is a secondary line, and the action slot holds Get Started, or, until the camera
   is ready, the camera request. Two distances only: --instruction-gap between lines, --action-gap before the action. */
#title-tagline{position:relative;z-index:6;width:min(650px,100%);margin:0;font:700 var(--instruction-size)/1.3 "Lato",sans-serif;text-align:center;text-wrap:balance;color:var(--beam-color-text-primary);text-shadow:var(--instruction-shadow);pointer-events:none;opacity:0;visibility:hidden;transition:opacity .25s,visibility 0s .25s}
.title-screen #title-tagline{opacity:1;visibility:visible;transition:none}
#title-stack .title-line{position:relative;z-index:6;width:min(560px,100%);margin:0;font-size:var(--instruction-secondary);font-weight:400;line-height:1.4;text-align:center;text-wrap:balance;color:rgba(255,255,255,.72);text-shadow:var(--instruction-shadow);pointer-events:none}
/* The action slot holds the camera request until the camera is ready, then Get Started, both the same height so
   nothing above moves. The request and the privacy promise are the setup screen's own status and privacy
   components (.setup-loading, .privacy), unchanged in size; only their place in the stack is set here. */
#title-permission{order:0;min-height:var(--title-action-h);z-index:6}
/* The waiting words stand exactly where the button label stood; the ring hangs off their left, outside the centring */
#title-permission .spinner{position:absolute;right:100%;top:50%;margin:-8px 10px 0 0}
.title-screen #title-permission[hidden]{display:none}
/* The action slot is the layout's own (--action-top, --instruction-block under the main line); the privacy line follows it */
#title-stack>:is(#title-start,#title-camera,#title-permission){position:absolute;top:calc(var(--title-block) - var(--title-offset));left:50%;transform:translateX(-50%);margin:0}
/* Under the action, one action gap below it: the trust row. Three marks with a short label each, hairline dividers
   between, the whole row centred; on phones the items stack and align left. */
/* The terms line under the action, in the trust row's small type with a dimmed link (Bastjan, 2026-11-13); the trust
   row moves down by its room */
:root{--title-terms-room:calc(12px * 1.4 + var(--beam-space-12))}
#title-terms{position:absolute;top:calc(var(--title-block) - var(--title-offset) + var(--title-action-h) + var(--beam-space-12));left:50%;transform:translateX(-50%);z-index:6;width:max-content;max-width:calc(100vw - 40px);margin:0;font-size:12px;line-height:1.4;text-align:center;color:rgba(255,255,255,.55)}
#title-terms a{color:rgba(255,255,255,.72);text-decoration:underline}
#title-terms a:hover{color:#fff}
#title-trust{position:absolute;top:calc(var(--title-block) - var(--title-offset) + var(--title-action-h) + var(--title-terms-room) + var(--action-gap));left:50%;transform:translateX(-50%);z-index:6;display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch;gap:0;margin:0;padding:0;list-style:none;width:max-content;max-width:calc(100vw - 40px);font-size:12px;line-height:1.4;color:rgba(255,255,255,.72);pointer-events:none}
.trust-item{display:flex;align-items:center;gap:8px;padding:2px 14px;border-left:1px solid rgba(255,255,255,.18);white-space:nowrap;pointer-events:auto}
.trust-item:first-child{border-left:0}
.trust-item svg{flex:none;width:20px;height:20px;display:block}   /* one box for all three marks, centred on the text */
.trust-steam{color:#fff}
.trust-item .trust-shield{transform:scale(1.21)}   /* the shield fills 16x20 of its 24 box: drawn as tall as the flag and the Steam mark (Bastjan, 2026-10-29) */
.trust-score{font-weight:700;color:#fff}
.trust-item .trust-stars{width:auto;height:1.1em;color:#f5a623;fill:currentColor}   /* the site's rating stars, their gold */
.trust-item a{color:rgba(255,255,255,.55);text-decoration:underline}
.trust-item a:hover{color:#fff}
/* A phone held sideways: the row's bottom stands on the webcam preview's bottom (Bastjan, 2026-10-29), never over the
   action, centred and clear of the preview on both sides. The stack is the row's containing block, so the preview's
   bottom is turned into the stack's coordinates. */
@media (pointer:coarse) and (max-height:500px){#title-trust{top:max(calc(100dvh - var(--feed-down,20px) - var(--instruction-top) - var(--title-offset)),calc(var(--title-block) - var(--title-offset) + var(--title-action-h) + var(--title-terms-room) + var(--beam-space-8) + 2em));transform:translate(-50%,-100%);
  max-width:calc(100vw - 2 * (var(--feed-left,20px) + var(--feed-w,104px) + var(--beam-space-12)));flex-wrap:nowrap;
  font-size:min(12px,calc((100vw - 2 * (var(--feed-left,20px) + var(--feed-w,104px) + var(--beam-space-12))) / 56))}   /* one line, never broken (Bastjan, 2026-10-29): the row is 56 of its font sizes wide, so the type shrinks with the room */
  #title-trust .trust-item{gap:.67em;padding:2px 1.17em}#title-trust .trust-item svg:not(.trust-stars){width:1.67em;height:1.67em}}   /* marks and spacing in proportion to the type */
@media (max-width:600px){.step:is([data-step=head],[data-step=eyes])>span{width:min-content;padding:0;overflow-wrap:normal}}   /* upright: Head / Movement and Eye / Movement, each on two lines (Bastjan, 2026-10-29) */
@media (max-width:600px){#title-trust{flex-direction:column;align-items:center;gap:var(--beam-space-12)}.trust-item{justify-content:center;padding:0;border-left:0;white-space:normal;text-align:center}}   /* phones: the three lines stacked and centred, as everything else on the welcome */
body:not(.title-screen) :is(#title-stack .title-line,#title-trust,#title-terms){display:none}
@media (max-height:400px){#title-trust{display:none}}   /* a phone on its side (up to 400px tall; 360px until the terms line came, Bastjan 2026-11-12/13): room under Allow camera access for the terms line only, so the trust row is left out rather than drawn off the screen */
/* Two beats: first the promise with the camera request and the trust row; once the camera is allowed the promise
   gives way to the explainer, in the secondary size, and the request becomes Get Started in the same slot. The lines
   end one action gap over the slot (--title-stack-h); the logo, the action slot and the trust row never move. */
.title-screen:not(.camera-ready) #title-demo-line{display:none}
.title-screen.camera-ready :is(#title-tagline,#title-camera-why){display:none}
body:not(.title-screen) :is(#title-start,#title-camera),.title-screen #loader .setup-loading{display:none}
#fullscreen{position:relative}
/* The full-screen hint: the design system has no tooltip, so it is the system's floating glass panel (the globe and
   cockpit menus' recipe: tint, blur, hairline edge, 12px corners, panel shadow) with caption type in white, not a solid
   accent box (Bastjan, 2026-11-11). No pointer: a panel hangs under its control without one. */
/* The full-screen hint is a speech bubble pointing at the button (Bastjan, 2026-11-12). Drawn the classic way so the
   outline is one line: an opaque fill (the glass panel's colour over the dark start screens, the only place it shows)
   and the point, a square turned 45 degrees with the same fill and only its two upper edges outlined, laid over the
   body's top edge so the edge never runs under the point. Translucent glass made a seam there. It sits inside the
   full-screen button: hovering it shows the lens sheen the icon buttons get, and a click on it goes full screen.
   --point is the button's centre, measured from the bubble's right edge. */
/* The regular purple button's look (Bastjan, 2026-11-13): its accent fill, sheen and shadow; the point takes the colour
   of the button's top edge (the accent under the sheen's 24%), so bubble and point are one shape */
#fullscreen-hint{--point:calc(clamp(34px,5.8vmin,44px) / 2);--fill:var(--beam-color-accent);--top:rgba(255,255,255,.24);
  position:absolute;top:calc(100% + var(--beam-glass-panel-padding) + 11px);right:0;   /* the point's tip clears the hover circle */
  width:max-content;max-width:220px;padding:8px 12px;cursor:pointer;
  border:0;border-radius:var(--beam-glass-panel-radius);
  background:var(--btn-rest);box-shadow:var(--btn-shadow);
  font:var(--beam-type-caption);text-align:center;color:var(--beam-color-text-primary);
  transform-origin:90% 0;animation:fullscreen-hint-nudge 1.1s ease-out 1s both;
  transition:background var(--beam-duration-state)}
#fullscreen-hint::before{content:'';position:absolute;top:-7px;right:calc(var(--point) - 6px);width:12px;height:12px;
  transform:rotate(45deg);border-radius:2px 0 0 0;
  background:linear-gradient(var(--top),var(--top)),var(--fill)}
body:not(.touch) #fullscreen-hint:hover{background:var(--btn-hover);--top:rgba(255,255,255,.26)}
@keyframes fullscreen-hint-nudge{0%{opacity:0;visibility:hidden;transform:translateY(-8px)}12%{opacity:1;visibility:visible;transform:translateY(0)}25%,55%{opacity:1;visibility:visible;transform:translateX(-12px) rotate(-4deg)}40%,70%{transform:translateX(6px) rotate(3deg)}85%{transform:translateX(-5px) rotate(-2deg)}100%{opacity:1;visibility:visible;transform:none}}
@keyframes fullscreen-hint-reveal{from{opacity:0;visibility:hidden}to{opacity:1;visibility:visible}}
@media(prefers-reduced-motion:reduce){#fullscreen-hint{animation:fullscreen-hint-reveal 0s 1s both}}
@media (max-height:500px){body:not([data-state=live]) #fullscreen-hint{top:50%;right:calc(100% + 60px);margin-top:-15px;white-space:nowrap;max-width:none}}   /* a short screen (a phone held sideways), no path in the header yet: one line in the empty header row, left of the corner icons, clear of the setup title (Bastjan, 2026-11-12) */
.brand-title{position:relative;display:block}
/* The demo's name with Beta stands with the logo. Logo in the corner: beside it, after a hairline, both centred on the
   logo's middle; only where the header has room (app.js placeHeader sets brand-alone otherwise). Logo centred on the
   welcome: under it, the line running from the hexagon's left edge to the wordmark's right edge (app.js fitDemoName),
   at its own size whatever scale the welcome draws the logo at. The drawing spans 34 to 342 of the image's 375 units
   across and 9 to 111 of 120 down; the image hangs 0.28 of its height to the left, so .brand-title's left edge is the
   hexagon's and 2.567 times --brand-h is the wordmark's right edge. The tag is the design system's tag beside a white
   label. */
.demo-name{position:absolute;left:calc(var(--brand-h) * 2.567);top:calc(var(--brand-h) * .12);height:calc(var(--brand-h) * .76);display:flex;align-items:center;white-space:nowrap;color:#fff;pointer-events:none;font:700 clamp(11px,calc(var(--brand-h) * .218),17px)/1.3 "Lato",sans-serif;letter-spacing:.06em;text-transform:uppercase}
.demo-name-rule{flex:none;align-self:stretch;width:1px;margin:0 calc(var(--brand-h) * .25);background:rgba(255,255,255,.32)}
.demo-name-text{display:flex;align-items:flex-start}
.demo-name-tag{flex:none;margin:2px 0 0 calc(.25em + 3px);padding:1px 4px;border:1px solid rgba(255,255,255,.8);border-radius:3px;font-size:max(8px,.53em);line-height:1.3;letter-spacing:.05em;vertical-align:baseline}
body.brand-alone:is(:not(.title-screen),.camera-ready) .demo-name{visibility:hidden}
/* Where the logo is small (the name at its 11px least), the tag keeps its raised place above the baseline: smaller and
   tighter, its top above the capitals and its foot above the baseline, as at full size */
@media (max-height:500px),(max-width:500px){.demo-name-tag{margin-top:1px;padding:1px 3px;font-size:7px;line-height:1}}
/* The upright form in the corner of a short screen: the welcome's lockup scaled exactly to the corner logo. On the
   welcome the logo is drawn 109.2px tall (78px at the title scale 1.4) with the line 15px under the hexagon and the name
   6 % of the logo's width; here every measure keeps that proportion to the logo's own height, with no least size */
body.brand-under:is(:not(.title-screen),.camera-ready) .demo-name{left:0;top:calc(var(--brand-h) * (.925 + 15 / 109.2));height:auto;width:calc(var(--brand-h) * 2.567);align-items:flex-start;font-size:calc(var(--brand-h) * 2.567 * .06);letter-spacing:0}
body.brand-under:is(:not(.title-screen),.camera-ready) .demo-name-rule{display:none}
body.brand-under:is(:not(.title-screen),.camera-ready) .demo-name-text{width:100%}
body.brand-under:is(:not(.title-screen),.camera-ready) .demo-name-tag{margin:-.1em 0 0;padding:.11em .45em;font-size:.667em;line-height:1.3}
/* The welcome's first beat draws the logo centred; from the camera allowed on it stands in its corner, with the name beside it */
.title-screen:not(.camera-ready) .demo-name{left:0;top:calc(var(--brand-h) * .925 + 15px / var(--title-scale));height:auto;width:calc(var(--brand-h) * 2.567 * var(--title-scale));align-items:flex-start;transform:scale(calc(1 / var(--title-scale)));transform-origin:left top;font-size:max(12px,calc(var(--brand-h) * 2.567 * var(--title-scale) * .06));letter-spacing:0}
.title-screen:not(.camera-ready) .demo-name-rule{display:none}
.title-screen:not(.camera-ready) .demo-name-text{width:100%}
.title-screen:not(.camera-ready) .demo-name-tag{margin:-.1em 0 0;padding:.11em .45em;font-size:.667em}
#loader>.welcome-intro,#loader>.welcome-actions,#loader>.privacy{opacity:1;visibility:visible;transition:opacity .45s .3s,visibility 0s .3s}
.title-screen #loader>.welcome-intro,.title-screen #loader>.welcome-actions,.title-screen #loader>.privacy{opacity:0;visibility:hidden;transition:none}
.title-screen #loader .setup-loading{position:fixed;top:calc(50dvh + 160px);left:20px;right:20px}
/* The icons alone; the site's glass lens appears under the pointer only (icon.md) */
.icon-btn{width:44px;height:44px;border-radius:50%;border:0;background:transparent;color:#fff;display:grid;place-items:center;cursor:pointer;transition:background var(--beam-duration-state),box-shadow var(--beam-duration-state)}
.icon-btn svg{width:20px;height:20px}
a.icon-btn{text-decoration:none}
body:not(.touch) .icon-btn:hover,.icon-btn:focus-visible{background:var(--beam-gradient-lens);box-shadow:var(--beam-shadow-lens)}
.icon-btn:focus-visible{outline:var(--beam-recipe-focus-ring);outline-offset:var(--beam-focus-ring-offset)}
body[data-state=ended] .logo{visibility:hidden}
/* Language menu: the app's dropdown list, under the globe */
.menu{position:fixed;top:calc(var(--inset-top) + 52px);right:var(--inset-right);z-index:9;min-width:200px;padding:var(--beam-glass-panel-padding);border-radius:var(--beam-glass-panel-radius);background:var(--beam-glass-panel-tint);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);border:1px solid var(--glass-line);
  max-height:calc(100dvh - var(--inset-top) - 52px - var(--inset-bottom));overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;   /* fourteen entries: scrolls on a phone */
  box-shadow:var(--beam-shadow-panel);display:flex;flex-direction:column}
.menu button{display:flex;align-items:center;justify-content:space-between;gap:12px;height:40px;padding:0 12px;border:0;border-radius:var(--beam-glass-panel-row-radius);background:transparent;color:#fff;
  font:400 15px "Lato",sans-serif;text-align:left;cursor:pointer}
.menu button:hover,.menu button:focus-visible{background:var(--beam-glass-panel-row-hover)}
.menu button.on{color:var(--accent)}   /* the current entry in the accent, no dot (Bastjan, 2026-09-21) */
.menu button:focus-visible{outline:var(--beam-recipe-focus-ring);outline-offset:-2px}
body:not([data-state=live]) .credits,body[data-state=ended] .privacy-live,body[data-state=problem] .privacy-live{display:none}   /* the privacy lines open from the feed's mark on every screen the camera is on */
body[data-state=ended] .chrome-actions>:not(#close),body[data-state=problem] .chrome-actions>:not(#close){visibility:hidden}

/* Privacy mark: a filled shield with a check, in the site's notice blue */
.privacy{margin:0;display:flex;align-items:center;gap:10px;font-size:12px;line-height:1.4;color:rgba(255,255,255,.72)}
.privacy svg{width:24px;height:24px;flex:none}
.privacy p{margin:0}
.privacy a{color:rgba(255,255,255,.55);text-decoration:underline}
.privacy .swiss-flag,svg.swiss-flag{display:inline-block;width:.8em;height:.8em;vertical-align:-.06em;margin:0 .3em 0 .05em}
.privacy .shield-mark,svg.shield-mark{display:inline-block;width:1em;height:1em;vertical-align:-.12em;margin:0 .3em 0 0}   /* the trust row's shield, at the letters' size, opening the privacy lines */   /* the size of the letters beside it, also inside .privacy where icons are 24px */
.privacy a:hover{color:#fff}
/* One floor: the feed, Recenter and the tray end level, the credit line under the feed (their bottom is the credit's
   height plus its 4px margin above the inset, the same expression for all three). */
.footnote{max-width:max(211px,calc(50% - 124px));display:flex;flex-direction:column;align-items:flex-start}
/* The raised camera feed leaves empty layout space over Recenter on tablets.
   Only the visible footer contents should intercept input, not that space. */
.chrome-bottom>.footnote{pointer-events:none}
.footnote>*{pointer-events:auto}
/* Same grey as the scene credit on the right; the shield takes the text colour */
.privacy-live{pointer-events:auto;margin-top:8px;padding:var(--beam-space-8) var(--beam-space-12);border:1px solid var(--glass-line);border-radius:var(--beam-radius-md);background:var(--beam-glass-panel-tint);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);box-shadow:var(--glass-edge);color:rgba(255,255,255,.85)}   /* the menu's glass: legible over any cockpit (owner 2026-10-27) */
.privacy-live[hidden]{display:none}
body:has(#privacy-text:not([hidden])) .chrome-bottom{z-index:20}   /* open, the privacy lines stand over the title's trust row and everything else (Bastjan, 2026-10-29) */
.privacy-live a{color:inherit}
/* Scene credit (CC BY 4.0), bottom right, tiny */
.fine{margin:0;font-size:10px;line-height:1.4;color:rgba(255,255,255,.4)}
.fine a{color:inherit}
.chrome-bottom .scene-credit{margin:4px 0 0;text-align:left}
/* The credit behind a disclosure: a tiny word with a chevron, the line only when opened */
.credits{margin-top:4px;font-size:10px;color:rgba(255,255,255,.4)}
.credits[open]{padding:var(--beam-space-8) var(--beam-space-12);border:1px solid var(--glass-line);border-radius:var(--beam-radius-md);background:var(--beam-glass-panel-tint);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);box-shadow:var(--glass-edge);color:rgba(255,255,255,.85)}   /* the opened credit line in the same glass */
.credits summary{display:inline-flex;align-items:center;gap:2px;cursor:pointer;list-style:none;user-select:none}
.credits summary::-webkit-details-marker{display:none}
.credits summary svg{width:12px;height:12px;transition:transform .2s}
.credits[open] summary svg{transform:rotate(90deg)}
.credits summary:hover{color:rgba(255,255,255,.7)}

/* Recenter at the bottom, centred: the SDK sample's own button (label from app.js), in the app's button shape,
   as a white outline that fills purple on hover or hold. In the onboarding's recenter stage the copy waits in purple
   (like NEXT) and turns into the outline as it flies down. */
.beam-cockpit>.beam-recenter,#recenter-demo{position:absolute;top:auto;bottom:calc(var(--inset-bottom) + var(--credit-h,17px) + 4px);z-index:2;   /* one floor with the feed and the tray: the credit line sits under it */width:200px;box-sizing:border-box;min-height:48px;padding:0 12px;
  border:1px solid var(--glass-line);border-radius:12px;background:var(--glass-fill);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);box-shadow:var(--glass-edge);color:#fff;font:400 16px/1 "Lato",sans-serif;cursor:pointer;touch-action:none;
  transition:opacity var(--beam-duration-move),var(--btn-motion),border-color var(--beam-duration-state)}
/* Centred, but never over the feed column (feed 211px wide plus 12px) on a narrow window */
.beam-cockpit>.beam-recenter,#recenter-demo{left:max(50%,calc(var(--inset-left) + 323px));transform:translateX(-50%);font-size:0}
.beam-cockpit>.beam-recenter::before,#recenter-demo::before{content:attr(data-label);display:block;font:var(--beam-type-row);text-transform:uppercase}   /* a button's label: capitals (owner ruling 2026-10-22) */
/* Keyboard devices: the shortcut under the label, smaller */
.beam-cockpit>.beam-recenter[data-key]::after,#recenter-demo[data-key]::after{content:attr(data-key);display:block;margin-top:6px;font:400 11px/1 "Lato",sans-serif;opacity:.75}
/* Hover for the mouse only (body.touch after a touch): a touch leaves its hover on the button it tapped.
   Under the pointer: the site's outline hover (the white wash with the split highlight, the grown shadow, 1px up).
   While held: the accent, the action under way. */
body:not(.touch) .beam-cockpit>.beam-recenter:hover,body:not(.touch) #recenter-demo:hover,.beam-cockpit>.beam-recenter:focus-visible{background:var(--beam-recipe-outline-hover-background);box-shadow:var(--beam-shadow-lift);translate:0 var(--beam-glass-motion-lift)}
.beam-recenter[aria-pressed=true],#recenter-demo[aria-pressed=true]{background:var(--btn-hover);border-color:transparent;box-shadow:var(--btn-shadow)}
.beam-recenter[aria-pressed=true]::before,#recenter-demo[aria-pressed=true]::before{content:attr(data-label-active)}
.beam-recenter[aria-pressed=true]::after,#recenter-demo[aria-pressed=true]::after{display:none}
@media (hover:none),(pointer:coarse){.beam-cockpit>.beam-recenter::after,#recenter-demo::after{display:none}}   /* no hotkey without a keyboard */
.beam-recenter:disabled{opacity:.35;pointer-events:none}   /* no tracking data yet: there, but dim */
.beam-recenter:focus-visible{outline:var(--beam-recipe-focus-ring);outline-offset:var(--beam-focus-ring-offset)}
body:not([data-state=live]) .beam-recenter,body.onboarding .beam-recenter,body:not([data-state=live]) #info-btn{display:none}
/* The onboarding's working copy of the button (stage 3): it stands where the stage button normally is, reads
   "Press and hold", and after the first hold flies to the real button's place (flying); the onboarding ends
   there and the real button takes over. */
/* The copy shows in the recenter stage and on its flight only; in the eyes and head stages there is no Recenter, and
   the real button comes back with the demo (Bastjan, 2026-09-21) */
#onboarding:not([data-step=headIntro]):not([data-step=eyeIntro]):not([data-step=eyeSetup]):not([data-step=playSetup]):not([data-step=recenter]) #recenter-demo{display:none}
#onboarding[data-step] #recenter-demo.fading{display:block;pointer-events:none;animation:fadeaway 1.8s ease-in forwards}   /* landed: a slow fade where the real button will be */
@keyframes fadeaway{0%{opacity:1}40%{opacity:1}100%{opacity:0}}
#onboarding[data-step=recenter] #recenter-demo{left:50%;top:calc(50% + var(--figure-h) / 2 + 30px);bottom:auto;transform:translateX(-50%);width:200px}
#onboarding[data-step=recenter] #recenter-demo{background:var(--btn-rest);border-color:transparent;box-shadow:var(--btn-shadow)}
#onboarding[data-step=recenter] #recenter-demo::after{display:block}   /* the instruction line, even without a keyboard */
#onboarding[data-step=recenter] #recenter-demo[aria-pressed=true]::after{display:none}
/* The copy's second line: the stage's instruction, then the hotkey where there is a keyboard */

/* A persistent Finish action beneath the branding during free play. */
.cta{position:fixed;left:var(--inset-left);top:calc(var(--inset-top) + 118px);z-index:6;width:204px}
body:not([data-state=live]) .cta{display:none}
/* Find your game: the last stage, in the centre with the chrome. The values are the site's (guide-base.css in Ray's
   repo: the search field, the table, the EXPERIMENTAL tag); the table drops under the bar on the site's dark, scrolling
   inside a fixed height, sideways too on a narrow screen, as on the site. */
/* The bar sits in the middle of the window (its top 28px above it, half its height), the title floats above it with
   air, the table drops below into the lower half; one column of titles, so 480px wide */
/* Centred by its left edge, not a transform: a transform would make the box the containing block of the fixed title, whose height then depends on the list's */
/* The nudge: the bar swells once and settles, so the eye lands on it (opened again while it is already there) */
#find.nudge .beam-guide-search{animation:nudge .5s cubic-bezier(.2,.7,.2,1)}
@keyframes nudge{0%{transform:scale(1)}40%{transform:scale(1.06)}100%{transform:scale(1)}}
/* One line, never broken: the title is as wide as its words, centred over the bar whatever the bar's width */
.find-title{position:fixed;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 48px);white-space:normal;bottom:calc(50% + var(--figure-h) / 2 + 28px);margin:0;font-size:30px;line-height:1.3;font-weight:700;text-align:center;background:var(--glass-white);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 2px 12px rgba(0,0,0,.6))}   /* the onboarding instruction's size and line height: the same baseline; the glass white */
/* Where every stage's line sits (over the middle, the games bar's title place); the count takes the bar's place under it.
   Chrome like the rest: when the count ends everything goes, the line included (Bastjan, 2026-09-21). */
#try-text{position:fixed;left:50%;bottom:calc(50% + var(--figure-h) / 2 + 28px);top:auto;transform:translateX(-50%);z-index:6}   /* the onboarding line's height exactly, in every format */
.beam-guide{--card-border:var(--beam-color-surface-card-edge);font-family:"Lato",sans-serif;color:var(--text)}
.beam-guide *{box-sizing:border-box;margin:0;padding:0}
.beam-guide-search{display:flex;align-items:stretch;gap:12px}
.beam-guide-search-field{position:relative;flex:1 1 auto;min-width:0}
.beam-guide-search input{width:100%;padding:18px 20px 18px 52px;background:var(--glass-fill);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);box-shadow:var(--glass-edge);border:1px solid var(--glass-line);border-radius:var(--beam-radius-md);color:var(--text);caret-color:#fff;font-family:"Lato",sans-serif;font-size:16px;outline:none;-webkit-appearance:none;appearance:none}
.beam-guide-search input::placeholder{color:var(--beam-color-text-dimmed)}
.beam-guide-search input:focus-visible{outline:var(--beam-recipe-focus-ring);outline-offset:var(--beam-focus-ring-offset)}
.beam-guide-search-field svg{position:absolute;left:20px;top:50%;transform:translateY(-50%);width:20px;height:20px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;transition:stroke 0.2s}
.beam-games-wrap{margin-top:12px;max-height:calc(50vh - 60px);overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding:0 4px;border-radius:var(--beam-radius-md);background:rgba(11,7,22,.38);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);border:1px solid var(--glass-line);box-shadow:var(--glass-edge)}
.beam-games-wrap[hidden]{display:none}
.beam-games{width:100%;table-layout:fixed;border-collapse:collapse;font-size:15px;line-height:1.5}
.beam-games td{overflow-wrap:anywhere}
.beam-games td{padding:14px;border-bottom:1px solid var(--card-border);vertical-align:top;text-align:left}
.beam-games tbody tr{cursor:pointer}
.beam-games tbody tr:hover{background:var(--beam-color-glass-wash)}
.beam-games td:first-child{font-weight:700}
.beam-game-name{display:block}
.beam-game-tags{font-size:var(--beam-type-label-size);line-height:1;vertical-align:top;white-space:nowrap;position:relative;top:2px}
.beam-game-tags .beam-game-tag:first-child{margin-left:3px}
.beam-game-tag{display:inline;padding:1px 4px;border:1px solid var(--beam-color-surface-card-edge);border-radius:var(--beam-radius-sm);background:none;color:var(--beam-color-accent-light);font:var(--beam-type-label);letter-spacing:var(--beam-type-label-tracking);text-transform:uppercase;white-space:nowrap}
.beam-games-none{margin:0;padding:22px 20px 20px;font-size:14px;line-height:1.5;color:rgba(255,255,255,.85)}
.beam-games-none strong{display:block;margin:0 0 6px;font-size:15px;font-weight:700;color:#fff}   /* the verdict, then the ask under it */
.beam-games-none>span{display:block}
.beam-games-none .none-bridge{margin-top:14px}   /* in the meantime: the bridge to the demo under it, in the line's own weight */
.beam-games-none .none-demo{width:100%;margin:18px 0 0;text-decoration:none;white-space:nowrap;text-align:center}   /* the next thing to do: the accent button (Bastjan, 2026-10-29), in the size and type of every button of the format, on one line (Bastjan, 2026-11-12) */
#find .beam-games-wrap{padding-bottom:var(--beam-space-8)}   /* the last row keeps room under it */
#find .find-actions .beam-games-none .none-demo{margin:10px 0 0}   /* over the bottom buttons' margin:0, room between the line and the button */
.beam-games-none a{color:#fff;text-decoration:underline}
.beam-games-none[hidden]{display:none}
.beam-games-none{position:relative}
.beam-games-none .none-close{position:absolute;top:6px;right:6px;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:#fff;opacity:.7;cursor:pointer}
.beam-games-none .none-close svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.beam-games-none .none-close:hover,.beam-games-none .none-close:focus-visible{opacity:1;background:var(--glass-fill)}
.beam-games-none .none-close:focus-visible{outline:var(--beam-recipe-focus-ring);outline-offset:0}
.beam-games-none strong{padding-right:28px}   /* the heading clear of the cross */

/* The controls, bottom right, over the scene: the app's own tray, one dark row per control */
.quick{position:fixed;right:var(--inset-right);bottom:calc(var(--inset-bottom) + var(--credit-h,17px) + 4px);z-index:6;width:230px;box-sizing:border-box;display:flex;flex-direction:column;gap:6px;font-size:15px}
/* Each row a white frame, no filling, like the Recenter button's outline over the scene */
/* Every row the same fixed height (the scene buttons are sized to fit inside it, not the other way round), so the
   left column can mirror the tray exactly */
.q-row{display:flex;align-items:center;justify-content:space-between;gap:12px;height:52px;padding:8px 14px;box-sizing:border-box;border:1px solid var(--glass-line);border-radius:12px;background:var(--glass-fill);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);box-shadow:var(--glass-edge)}
/* The tray's button row: the demo's purple button, as every other button */
/* The tray's button row: the Recenter look, a white outline that fills purple under the mouse or a finger */
/* The cockpit dropdown: the site's select (the games page's .beam-guide-select: the chevron, the dark list) in the chrome's glass */
.select{position:relative}
.select-btn{appearance:none;-webkit-appearance:none;height:34px;padding:0 34px 0 12px;border:1px solid var(--glass-line);border-radius:var(--beam-radius-md);background:var(--glass-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='0.7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px 16px;color:#fff;font:400 15px "Lato",sans-serif;cursor:pointer;outline:none;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:background var(--beam-duration-state),border-color var(--beam-duration-state)}
body:not(.touch) .select-btn:hover,.select-btn[aria-expanded=true]{border-color:var(--beam-color-glass-outline)}
.select-btn:focus-visible{border-color:rgba(255,255,255,.7)}   /* no outline ring: the frame was a thick white box (Bastjan) */
/* The menu is the language menu itself (.menu), hung under the cockpit button instead of the globe */
/* The cockpit menu: the language menu's element, placed under the cockpit button by app.js (it lives outside the tray: a glass row would position it and trap its blur; Bastjan, 2026-09-21: it frosts the rows behind it as the language menu does) */
#scene-menu{left:auto;max-height:none;min-width:160px}
body.onboarding .quick,body:not([data-state=live]) .quick{display:none}
/* Wide screens: the controls as wide as their lines need, each on one line and the cockpit's full name, the switches in
   one column at the right edge; never reaching the centred Finish and Recenter Tracking, where a line wraps instead
   (Bastjan, 2026-10-30) */
@media (min-width:601px){
  html .quick{width:max-content;min-width:184px;max-width:min(420px,calc(50vw - var(--reminder-w,260px) / 2 - var(--inset-right) - var(--beam-space-16)))}   /* every format but upright phones: the room left of Finish and Recenter Tracking (Bastjan, 2026-10-30) */
  .quick .q-row>span{min-width:0}
  html .quick .select-btn{max-width:220px}
}

/* Idle: while live, the chrome fades a second after the mouse stops. Any movement or touch brings it back. */
.chrome-el{transition:opacity .5s}
body.ui-idle{cursor:none}
body.ui-idle .chrome-el,body.ui-idle #preview.on{opacity:0}

/* Hints: one line in the centre */
.hint{position:fixed;left:0;right:0;top:50%;z-index:4;margin:0;padding:0 24px;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;
  text-align:center;pointer-events:none;opacity:0;transition:opacity .4s}
.hint.on{opacity:1}
.hint-text{margin:0;font-size:22px;font-weight:700;line-height:1.3;text-shadow:0 2px 14px rgba(0,0,0,.7)}
.hint-text:empty{display:none}
/* Onboarding: the scene dimmed as under the settings card, the 3D figure above the line, the line in the centre,
   the step markers up top, the button below. The overlay ring stays visible through the dimming. */
.panel.panel-onboarding{z-index:2;justify-content:center;gap:0}   /* below the figure canvas (3) and the overlay ring (4) */
/* The line above, the button below. --figure-h is the height the tutorial's head figure had (the figure is no longer
   drawn); it still spaces the line and the button the same way in every stage. */
:root{--figure-h:26.8dvh}   /* the former head figure's projected height (1.89 units of 7.05 per screen height), set here only: nothing writes it at runtime; on the document, so every stage's line uses it */
#onboarding-text{position:absolute;left:24px;right:24px;bottom:calc(50% + var(--figure-h) / 2 + 28px);text-align:center;font-size:30px;background:var(--glass-white);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none;filter:drop-shadow(0 2px 12px rgba(0,0,0,.6))}
/* The app's setup wizard stages: dots joined by a line, labels underneath; the current and done stages purple */
/* The rings' centres level with the icons' centres: the row is the 78px logo, its middle 39px under the inset, and a
   drawing (20px tall) has its rings 10px under the block's top */
.chrome-top .steps{position:absolute;left:50%;top:calc(var(--inset-top) + 29px);transform:translateX(-50%);display:flex}
body:not([data-state=live]) .steps{display:none}   /* while the demo runs only: not on the end card */
.step{position:relative;display:flex;flex-direction:column;align-items:center;padding-top:25px;width:104px;font-size:11px;line-height:1.2;text-align:center;color:rgba(255,255,255,.55);transition:color .3s}
/* The path's drawing (app.js draws it): one unbroken white outline of rings and bars, a soft shadow under it for
   legibility over the scene, and the walked part purple inside it up to the current ring, which stays hollow */
.path-art{position:absolute;left:0;top:0;display:block;overflow:visible;pointer-events:none;filter:drop-shadow(0 2px 6px rgba(0,0,0,.45)) drop-shadow(0 0 1px rgba(255,255,255,.25))}
/* The stage marks, from the design system: finished and current stages are the accent disc with the buttons' shine
   (the current one ringed), an upcoming one the glass lens (icon.md). No tick. 20px, centred over the label. */
.step-dot{position:absolute;top:0;left:50%;width:20px;height:20px;margin-left:-10px;box-sizing:border-box;border-radius:50%;
  background:var(--beam-gradient-lens),rgba(21,23,29,.55);box-shadow:var(--beam-shadow-lens);transition:background var(--beam-duration-move),box-shadow var(--beam-duration-move)}
.step.done .step-dot,.step.on .step-dot{background:var(--btn-rest);box-shadow:var(--beam-legacy-shadow-glass-edge),var(--beam-shadow-raised)}
.step.on .step-dot{box-shadow:var(--beam-legacy-shadow-glass-edge),var(--beam-shadow-raised),0 0 0 3px rgba(255,255,255,.18)}
.step-dot{transition:background .35s,box-shadow .35s}   /* the marks ease into done, with the walk (owner 2026-10-27) */
.step.on,.step.done{color:#fff}
/* Every stage is a way in: a click opens it at its start (app.js jumpToStage), at any moment. */
.step{margin:0;padding-inline:0;padding-bottom:0;border:0;background:none;font-family:inherit;cursor:pointer;border-radius:var(--beam-radius-sm)}
body:not(.touch) .step:hover,.step:focus-visible{color:#fff}
.step:focus-visible{outline:var(--beam-recipe-focus-ring);outline-offset:var(--beam-focus-ring-offset)}

/* The centre point: while Recenter is held, then through eye-calibration capture and feedback. */
/* Preserve the desktop target: gray outer disc and filled purple center. */
/* The calibration target in the design system's gloss (Bastjan, 2026-11-13): the grey ring with a soft top sheen and an
   inner highlight, the accent centre as the buttons and the check have it (fill, sheen, glass edge). It pops in briefly,
   a little too big, settles to its own size in 0.4 s, and its text appears as it settles (Bastjan, 2026-11-13: shorter). */
#recenter-dot{position:fixed;left:50%;top:50%;width:var(--recenter-target-size);height:var(--recenter-target-size);border-radius:50%;transform:translate(-50%,-50%);box-sizing:border-box;border:2px solid var(--beam-color-ground-top);
  background:linear-gradient(180deg,rgba(255,255,255,.34) 0%,rgba(255,255,255,.08) 38%,rgba(255,255,255,0) 50%),#9b9b9b;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),inset 0 -1px 0 rgba(0,0,0,.18),var(--glass-edge);
  animation:recenter-dot-pop .4s cubic-bezier(.2,.7,.2,1) both}
#recenter-dot::after{content:"";position:absolute;left:50%;top:50%;width:50%;height:50%;border-radius:50%;box-sizing:border-box;background:var(--beam-legacy-gradient-sheen),var(--accent);box-shadow:var(--beam-legacy-shadow-glass-edge);transform:translate(-50%,-50%)}
@keyframes recenter-dot-pop{0%{transform:translate(-50%,-50%) scale(.6);opacity:0}45%{transform:translate(-50%,-50%) scale(1.25);opacity:1}100%{transform:translate(-50%,-50%) scale(1)}}
body:is([data-calibration=held],[data-calibration=capturing]) #calibration-status:not([hidden]){animation:recenter-text-in .15s ease .05s both}
@keyframes recenter-text-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){#recenter-dot,body:is([data-calibration=held],[data-calibration=capturing]) #calibration-status:not([hidden]){animation:none}}
#recenter-dot{z-index:4;display:none;pointer-events:none}
body:has(.beam-recenter[aria-pressed=true]) #recenter-dot{display:block}
body[data-calibration=held] #recenter-dot,body[data-calibration=capturing] #recenter-dot,
body[data-calibration=succeeded] #recenter-dot,body[data-calibration=failed] #recenter-dot{display:block;z-index:8}
body[data-calibration=failed] #recenter-dot::after{background:var(--beam-legacy-gradient-sheen),var(--beam-color-feedback-error)}
#calibration-status{position:fixed;left:50%;top:calc(50% + 40px);transform:translateX(-50%);z-index:8;max-width:80vw;text-align:center;padding:8px 14px;border-radius:12px;background:rgba(21,23,29,.9);color:white;pointer-events:none}
/* Keep the instruction and the measured calibration target at the same center. */
:root{--recenter-target-size:112px}
#calibration-status{top:calc(50% + var(--recenter-target-size)/2 + 10px);margin:0}
body:is([data-calibration=held],[data-calibration=capturing],[data-calibration=succeeded]) #calibration-status{top:50%;transform:translate(-50%,-50%);box-sizing:border-box;width:max-content;min-height:var(--beam-size-control);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--beam-space-8) var(--beam-space-16);border:1px solid var(--glass-line);border-radius:var(--beam-glass-panel-radius);background:var(--beam-glass-panel-tint);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);box-shadow:var(--glass-edge);font:var(--beam-type-button);font-size:22px;line-height:1;text-transform:uppercase;color:#fff}   /* LOOK HERE / DONE: the system's capitals label on the menu's glass (owner 2026-10-27) */
#calibration-status small{display:block;margin:4px 0 0;padding:0;background:none;font-size:.6em;font-weight:700;line-height:1;opacity:.75;white-space:nowrap}   /* the sample count sits inside the label, under the words (owner 2026-10-27) */
#eye-edge-cues{display:none;position:fixed;inset:0;z-index:3;pointer-events:none}
body[data-state=live].onboarding:not(.calibration-active):has(#onboarding[data-step=eyes]:not([hidden])) #eye-edge-cues{display:block}
#eye-edge-cues svg{position:absolute;top:50%;width:24px;height:24px;translate:-50% -50%;color:var(--beam-color-accent-light);filter:drop-shadow(0 1px 2px #000) drop-shadow(0 0 3px #000)}
#eye-edge-cues svg:first-child{left:max(var(--inset-left),5vw)}
#eye-edge-cues svg:last-child{left:auto;right:max(var(--inset-right),5vw);translate:50% -50%}   /* translate, not transform: the pop scales around the chevron's own centre */
/* The first time the gaze gets far enough to that side, the chevron pops once and stays big, in the accent. No
   in-between state: it reacts once, not continuously. */
#eye-edge-cues svg[data-cue=done]{scale:2.2;color:var(--beam-color-accent);animation:edge-cue-pop .45s cubic-bezier(.2,.9,.3,1.4) both}
@keyframes edge-cue-pop{0%{scale:1}50%{scale:2.8}100%{scale:2.2}}
@media(prefers-reduced-motion:reduce){#eye-edge-cues svg[data-cue=done]{animation:none}}

/* Guided objectives remain in the cockpit, without a modal setup surface. */
#onboarding.panel{box-sizing:border-box;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;pointer-events:none}
#onboarding #recenter-demo{pointer-events:auto}
#onboarding:is([data-step=eyeSetup],[data-step=playSetup]) #recenter-demo{display:block;left:50%;top:calc(50% + 80px);bottom:auto;background:var(--glass-purple)}
#onboarding:is([data-step=eyeSetup],[data-step=playSetup]) #onboarding-text,#onboarding[data-step=recenter] #onboarding-text{font-size:clamp(17px,2.2vw,25px);max-width:620px;left:50%;right:auto;width:calc(100vw - 48px);transform:translateX(-50%)}
#onboarding[data-step=head],#onboarding[data-step=eyes]{inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(720px,calc(100vw - 40px));   /* wide enough for either exercise heading on one line at the full size (owner 2026-10-27) */padding:18px 22px;align-items:center;text-align:center;gap:12px;text-shadow:0 2px 5px #000,0 0 12px #000}
#onboarding[data-step=head] #onboarding-text,#onboarding[data-step=eyes] #onboarding-text{position:static;width:auto;transform:none;text-align:center;margin:0}
/* Objectives as a mission list: a numbered mark per row that fills with the accent and a check when done. Open
   rows look alike (any order, no "current" row); finished rows keep their words, never struck through, on a soft
   accent tint. Noninteractive: no hover, no pointer. */
#tutorial-objectives{display:grid;gap:6px;padding:0;margin:0;font-size:18px;line-height:1.4;list-style:none;text-align:left;max-width:100%;box-sizing:border-box}
#tutorial-objectives:empty{display:none}#tutorial-objectives li{margin:0;padding:6px 10px;border-radius:var(--beam-radius-md);transition:background var(--beam-duration-move) var(--beam-easing-standard)}
#tutorial-objectives li.done{background:var(--beam-color-glass-wash)}
.objective-row{display:flex;align-items:center;gap:12px}
.objective-mark{flex:none;display:grid;place-items:center;box-sizing:border-box;width:28px;height:28px;border:2px solid rgba(255,255,255,.85);border-radius:50%;font-size:14px;font-weight:700;line-height:1;text-shadow:none;transition:background var(--beam-duration-state),border-color var(--beam-duration-state)}
/* The one checkmark (objectives, the invitation's list, the chosen experience): a filled accent disc with the shine,
   a white tick drawn by CSS, so every place shows the same mark. Sized by width/height where it sits. */
.beam-check{flex:none;display:inline-grid;place-items:center;box-sizing:border-box;width:28px;height:28px;border:0;border-radius:50%;background:var(--btn-rest);box-shadow:var(--beam-legacy-shadow-glass-edge),var(--beam-shadow-raised);color:#fff;animation:objective-check .45s cubic-bezier(.2,.7,.2,1.3) both}
.beam-check::before{content:"";width:64%;height:64%;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
@keyframes objective-check{from{transform:scale(.4);opacity:0}to{transform:scale(1);opacity:1}}
/* Done: every check stays a moment (app.js CELEBRATION_HOLD_MS), then the instruction and the list give way to one
   card that pops in: the system's see-through panel glass (purple stays for actions), a big white lead line as on the
   accounts page's offer, a dark shadow under the words rather than a glow (owner ruling 2026-10-02). */
.panel.panel-onboarding.objectives-complete{z-index:7}   /* Continue stays above the webcam and camera controls. */
#onboarding.objectives-complete :is(#onboarding-text,#eye-objective-guidance,#tutorial-objectives){display:none}
#tutorial-completion{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;gap:6px;box-sizing:border-box;width:100%;margin:0;padding:28px 24px 24px;
  border:1px solid var(--beam-glass-panel-edge);border-radius:var(--beam-glass-panel-radius);background:var(--beam-glass-panel-tint);backdrop-filter:var(--beam-recipe-panel-backdrop);-webkit-backdrop-filter:var(--beam-recipe-panel-backdrop);box-shadow:var(--beam-shadow-panel);
  text-align:center;text-shadow:none;animation:objective-celebrate .55s cubic-bezier(.2,.9,.25,1.2) both}
#tutorial-completion[hidden]{display:none}
.completion-title{position:relative;padding:0 24px;font-size:56px;font-weight:900;line-height:1.05;letter-spacing:-.5px;
  color:var(--beam-color-text-primary);text-shadow:0 4px 14px rgba(0,0,0,.45);animation:completion-pop .6s .12s cubic-bezier(.2,.9,.3,1.45) both}
.completion-title::before,.completion-title::after{position:absolute;top:4px;content:"✦";font-size:20px;color:var(--beam-color-text-primary);animation:objective-spark .9s ease-out .15s both;pointer-events:none}
.completion-title::before{left:0}.completion-title::after{right:0;animation-delay:.27s}
.completion-text{max-width:300px;text-wrap:balance;font-size:16px;font-weight:700;line-height:1.4;color:var(--beam-color-text-primary)}
@keyframes objective-celebrate{from{opacity:0;transform:translateY(12px) scale(.8)}to{opacity:1;transform:none}}
@keyframes completion-pop{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:none}}
@keyframes objective-spark{0%{opacity:0;transform:scale(.5)}35%{opacity:1;transform:scale(1.2)}100%{opacity:0;transform:translateY(-14px) scale(.7)}}
@media(prefers-reduced-motion:reduce){#tutorial-completion,.completion-title,.beam-check{animation:none}.completion-title::before,.completion-title::after{animation:none;display:none}}
#eye-objective-guidance{margin:0;color:var(--beam-color-text-primary)}
#onboarding #continue-objectives{pointer-events:auto;min-height:var(--beam-size-control);margin:0;padding:0 var(--beam-space-24)}   /* the action slot's height, as every action button (owner 2026-10-27) */
#onboarding #skip-objectives{pointer-events:auto;min-height:var(--beam-size-control);margin:var(--beam-space-24) 0 0;padding:0 16px;text-shadow:0 2px 5px #000}
body.onboarding:has(#onboarding[data-step=head]) .beam-recenter,body.onboarding:has(#onboarding[data-step=eyes]) .beam-recenter{display:block}
#recenter-reminder{position:fixed;left:50%;bottom:calc(var(--inset-bottom) + var(--credit-h,17px) + 4px);transform:translateX(-50%);z-index:3;box-sizing:border-box;width:max-content;max-width:calc(100vw - 40px);margin:0;font-size:16px;line-height:1.3;text-align:center;text-shadow:0 2px 6px #000;pointer-events:none}
/* Hidden while a press could not work (the tracker is still being built, or no tracking data yet): the busy sign
   says to wait instead (Bastjan, 2026-11-12). */
body.recenter-waiting #recenter-demo,body.recenter-waiting #recenter-action,body.recenter-waiting .beam-cockpit>.beam-recenter{visibility:hidden;pointer-events:none}
#recenter-action{box-sizing:border-box;width:100%;min-height:var(--beam-size-control);padding:0 16px;border:1px solid var(--glass-line);border-radius:var(--beam-radius-md);background:var(--glass-fill);box-shadow:var(--glass-edge);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);font:inherit;text-shadow:none;transition:var(--btn-motion)}   /* a button label has no text shadow, as Finish and every other button; only the hotkey line under it keeps the reminder's (Bastjan, 2026-10-29) */
#recenter-action>span{font:var(--beam-type-button);line-height:1;text-transform:uppercase;white-space:nowrap}   /* never broken (Bastjan, 2026-10-29) */   /* the canonical button type, as every button label */
#recenter-reminder small{display:block;width:0;min-width:100%;margin-top:6px;font-size:12px;font-weight:400;line-height:1.4;color:#fff;opacity:.7}   /* the hotkey line (owner 2026-10-27); no "at any time" note under it (Bastjan, 2026-10-29) */
/* The space bar as a key (Bastjan, 2026-11-13): a wide, slightly raised keycap with a soft top highlight and a thicker
   bottom edge, its name inside in small type, as keyboard guides on Mac and Windows draw it */
kbd.keycap-space{display:inline-block;box-sizing:border-box;min-width:5.2em;margin:0 .3em;padding:.1em .8em .15em;border:1px solid rgba(255,255,255,.38);border-bottom-width:2px;border-radius:.4em;
  background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,.06));box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 1px 3px rgba(0,0,0,.35);
  font:inherit;font-size:.9em;font-weight:700;line-height:1.3;text-align:center;color:#fff;text-shadow:none;vertical-align:.05em;white-space:nowrap}
.welcome-intro{max-width:820px;margin:0;text-wrap:balance;font-size:clamp(22px,2.6vw,28px);font-weight:500;line-height:1.5}
.welcome-setup{display:grid;width:min(720px,100%);text-align:center;transition:opacity .4s .25s,visibility 0s .25s}
.welcome-setup>section{grid-area:1/1;align-self:start}
/* Reserve the larger step's space so the forward action does not move. */
.welcome-setup>section[hidden]{display:block!important;visibility:hidden;pointer-events:none}
.welcome-setup>section[hidden] *{visibility:hidden!important}
#experience-guidance{display:none;color:var(--beam-color-text-primary)}
@media(pointer:coarse) and (orientation:portrait){#experience-guidance{display:block}}
.setup-title{font-size:clamp(22px,2.6vw,28px);font-weight:500;margin:0 0 12px;line-height:1.3}
.setup-title:focus{outline:none}
.setup-help{font-size:14px;color:var(--beam-color-text-dimmed);margin:0 0 28px}
.screen-presets{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.screen-presets button{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;padding:14px 2px;color:var(--beam-color-text-dimmed);background:transparent;border:1px solid transparent;border-radius:var(--beam-radius-md);font:inherit;font-size:14px;cursor:pointer;transition:background var(--beam-duration-state),color var(--beam-duration-state)}
.screen-presets svg{width:64px;height:60px;max-width:100%;transition:color var(--beam-duration-state)}
.screen-presets small{font-size:16px}
.screen-presets button[aria-pressed=true]{color:var(--beam-color-text-primary);border-color:var(--beam-color-accent);background:var(--beam-color-surface-card)}
@media(hover:hover){.screen-presets button:not([aria-pressed=true]):hover{color:var(--beam-color-text-primary);background:var(--beam-color-glass-wash)}}
#screen-preset{display:block;box-sizing:border-box;width:calc(100% - 88px);height:44px;margin:12px auto 0;accent-color:var(--beam-color-accent);cursor:pointer}
#screen-selected{display:block;margin:6px 0 0;font-size:18px;color:var(--beam-color-text-primary)}
.experience-cards{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:26px 0 8px}
.experience-card{position:relative;padding:0;overflow:hidden;min-width:0;color:inherit;background:var(--beam-color-surface-card);border:2px solid var(--beam-color-surface-card-edge);border-radius:var(--beam-radius-md);text-align:left;font:inherit;cursor:pointer;transition:border-color var(--beam-duration-state),box-shadow var(--beam-duration-state),translate var(--beam-duration-state)}
.experience-card video{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;pointer-events:none}
.experience-card>span{display:block;padding:16px 44px 16px 18px;font-size:18px}
.experience-card i{position:absolute;right:16px;bottom:16px;display:none}
.experience-card[aria-pressed=true]{border-color:var(--beam-color-accent);background:var(--beam-color-surface-tile)}
.experience-card[aria-pressed=true] i{display:grid}
/* A card the reader can pick: the site's link-card hover (card.md), the white edge and 1px up; the chosen one keeps the accent */
@media(hover:hover){.experience-card:not([aria-pressed=true]):hover{border-color:var(--beam-color-glass-edge);box-shadow:var(--beam-shadow-lift);translate:0 var(--beam-glass-motion-lift)}}
.screen-presets button:focus-visible,.experience-card:focus-visible,#screen-preset:focus-visible{outline:var(--beam-recipe-focus-ring);outline-offset:var(--beam-focus-ring-offset)}
.setup-loading{display:flex;gap:10px;align-items:center;justify-content:center;min-height:24px;order:3}
body:not(.title-screen) .setup-loading[hidden]{display:flex!important;visibility:hidden}
.setup-loading .spinner{width:16px;height:16px;border-width:2px}
.setup-loading #loader-text,.setup-loading p{margin:0;font-size:13px;min-height:0}
.welcome-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 16px}
.title-screen .welcome-setup{opacity:0;visibility:hidden;transition:none}
@media(prefers-reduced-motion:reduce){.welcome-setup{transition:none}}
#loader .spinner{width:32px;height:32px;border-width:3px}
.desktop-platforms{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin-top:12px;color:var(--beam-color-text-dimmed);font-size:12px}
.desktop-platforms span{display:inline-flex;align-items:center;gap:6px}.desktop-platforms svg{width:16px;height:16px}
#find .beam-games td{padding:0}
#find .beam-games-wrap{max-height:25dvh;overflow:auto}
@media(max-width:600px){#onboarding[data-step=head],#onboarding[data-step=eyes]{padding:12px 16px}#recenter-reminder{bottom:45%;font-size:13px}}
@media(max-height:500px){#onboarding[data-step=head],#onboarding[data-step=eyes]{width:320px;padding:10px 16px}#tutorial-objectives{font-size:15px;gap:4px}#tutorial-objectives li{padding:4px 8px}#recenter-reminder{bottom:65px}}

/* Panels over the scene */
.panel{position:fixed;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;
  padding:24px;text-align:center;background:rgba(21,23,29,.62);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.spinner{width:80px;height:80px;border-radius:50%;border:5px solid rgba(255,255,255,.12);border-top-color:var(--accent);animation:spin .9s linear infinite}
.spinner-small{width:18px;height:18px;border-width:3px;flex:none}
/* Live and waiting on the tracker: the sign fills the feed box like "Face the camera", never over the instruction, an
   objective or the card. The feed stays shown meanwhile, even when the chrome has faded */
/* Live and waiting on the tracker: a pill in the middle of the screen (Bastjan, 2026-11-13: back from the feed box) */
.busy{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:6;display:flex;align-items:center;gap:10px;padding:10px 16px;border-radius:999px;
  background:var(--glass);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);font-size:14px;color:rgba(255,255,255,.85);white-space:nowrap;pointer-events:none}
.busy[hidden]{display:none}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spinner{animation-duration:2s}}
#loader-text{margin:0;font-size:17px;min-height:1.5em}
/* The problem screen in the instruction layout: the problem as the primary line, the way out as the secondary line, Try
   again in the action slot one --action-gap below */
#problem{gap:var(--instruction-gap)}
#problem p{margin:0;max-width:min(560px,calc(100vw - 48px));text-align:center;text-wrap:balance}
#problem #problem-text{font:700 var(--instruction-size)/1.3 "Lato",sans-serif;color:var(--beam-color-text-primary)}
#problem #problem-hint{font-size:var(--instruction-secondary);font-weight:400;line-height:1.4;color:rgba(255,255,255,.72)}
#problem{justify-content:flex-start;padding-top:var(--instruction-top);padding-bottom:0}   /* the instruction layout, as every screen */
#problem .btn{position:fixed;top:var(--action-top);left:50%;transform:translateX(-50%);margin:0}   /* Try again stands in the action slot (owner 2026-10-27) */
/* The crossed-out camera next to the blocked-camera sentence: drawn, 1em, in the text colour, sitting on the text line */
.glyph-camera-blocked{width:1em;height:1em;vertical-align:-.15em;margin-right:.3em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}


/* End card after the demo has been tried: the trial first, the demo second */

/* ?debug=1: the loop's state, bottom right, tiny */
#debug{position:fixed;right:8px;bottom:calc(var(--inset-bottom) + 60px);z-index:20;margin:0;padding:6px 8px;border-radius:6px;background:rgba(0,0,0,.6);
  font:11px/1.4 ui-monospace,monospace;color:#9f9;white-space:pre-wrap;max-width:60vw;pointer-events:none}
#crash-diagnostics{position:absolute;top:var(--inset-top);right:var(--inset-right);margin:0;min-height:44px}
#diagnostics-open{position:fixed;right:var(--inset-right);bottom:var(--inset-bottom);z-index:30;min-height:44px;padding:8px 12px;font-size:12px;background:var(--beam-color-ground-top);border:1px solid var(--glass-line);border-radius:var(--beam-radius-md)}
#diagnostics-dialog{box-sizing:border-box;width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:16px;border:1px solid var(--glass-line);border-radius:var(--beam-radius-md);background:var(--beam-color-ground-top);color:white;font:14px/1.4 Lato,sans-serif}
#diagnostics-dialog::backdrop{background:var(--beam-color-overlay-scrim)}
#diagnostics-dialog h2{font-size:18px;margin:0 0 8px}
/* The instruction layout, as every screen (#problem; Bastjan, 2026-11-19): no box, the title on the title line
   (--instruction-top) in the instruction type, the reason and the advice as the secondary line under it, the turtle
   under that, and the three choices in the action slot. The cockpit behind is dimmed as behind Get Beam. */
/* Widths in % of the screen the dialog lies on, as its buttons' centre is: on an iPhone loaded on its side 100vw is wider
   than that and started the words off the middle. */
:is(#performance-warning,#crash-notice,#feedback){position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;box-sizing:border-box;padding:var(--instruction-top) 24px 0;border:0;background:transparent;color:white;font:16px/1.5 Lato,sans-serif;overflow:hidden}
:is(#performance-warning,#crash-notice,#feedback)[open]{display:flex;flex-direction:column;align-items:center;gap:var(--instruction-gap)}
/* The screen's own instruction and its buttons give way: the warning takes the same title line and action slot */
html body.performance-paused :is(#onboarding,#combined-introduction,#recenter-reminder){visibility:hidden}   /* over body.control-start #onboarding */
:is(#performance-warning,#crash-notice,#feedback)::backdrop{background:radial-gradient(ellipse 55% 50% at 50% 44%,rgba(14,8,36,.82),rgba(14,8,36,0) 100%),linear-gradient(180deg,rgba(21,23,29,.8),rgba(14,8,36,.92))}
/* The beta notice opens over the welcome, whose title would show through: its ground is solid, the welcome's colours */
#crash-notice::backdrop{background:linear-gradient(180deg,rgb(21,23,29),rgb(14,8,36))}
:is(#performance-warning,#crash-notice,#feedback) h2{margin:0;max-width:min(560px,100%);font:700 var(--instruction-size)/1.3 "Lato",sans-serif;color:var(--beam-color-text-primary);text-align:center;text-wrap:balance}
/* The reason and the advice as one flowing paragraph (Bastjan, 2026-11-13): no gap between them, no forced break after
   the first sentence, regular wrapping in every language; the type of #problem's secondary line */
:is(#performance-warning,#crash-notice,#feedback) .performance-text{margin:0;max-width:min(560px,100%);text-align:center;text-wrap:balance;font-size:var(--instruction-secondary);font-weight:400;line-height:1.4;color:rgba(255,255,255,.72)}
:is(#performance-warning,#crash-notice,#feedback) .performance-text p{display:inline;margin:0}
/* The turtle under the title, in the accent's colours: slow, friendly, not alarming (Bastjan, 2026-11-13) */
.performance-turtle{display:flex;justify-content:center;margin:var(--beam-space-4) 0 var(--beam-space-16)}
.performance-turtle svg{display:block;overflow:visible}
.turtle-ground{stroke:rgba(255,255,255,.28);stroke-width:2;stroke-linecap:round;stroke-dasharray:10 12;animation:turtle-ground 3.6s linear infinite}
.turtle-shell{fill:var(--beam-color-accent)}
.turtle-plates{fill:none;stroke:var(--beam-color-accent-light);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.turtle-rim{fill:var(--beam-color-accent-light)}
.turtle-skin{fill:#C9BFFF}
.turtle-far{fill:#A99CEB}
.turtle-neck{fill:none;stroke:#C9BFFF;stroke-width:10;stroke-linecap:round}
.turtle-eye{fill:var(--beam-color-ground-top)}
.turtle-glint{fill:#fff}
.turtle-brow{fill:none;stroke:var(--beam-color-ground-top);stroke-width:1.3;stroke-linecap:round;opacity:.8}   /* a small, friendly arched eyebrow (Bastjan, 2026-11-13) */
.turtle-smile{fill:none;stroke:var(--beam-color-ground-top);stroke-width:1.2;stroke-linecap:round;opacity:.55}
.turtle-body{animation:turtle-bob 1.8s ease-in-out infinite}
.turtle-head{transform-origin:100px 40px;animation:turtle-nod 1.8s ease-in-out infinite}
.turtle-blink{transform-box:fill-box;transform-origin:50% 50%;animation:turtle-blink 5.4s linear infinite}
.turtle-leg{transform-box:fill-box;transform-origin:50% 12%;animation:turtle-step 1.8s linear infinite}
.turtle-leg-b{animation-delay:-.9s}
@keyframes turtle-ground{to{stroke-dashoffset:22}}
@keyframes turtle-step{0%,100%{transform:rotate(-15deg)}60%{transform:rotate(15deg)}80%{transform:translateY(-2px) rotate(2deg)}}
@keyframes turtle-bob{0%,50%,100%{transform:translateY(0)}25%,75%{transform:translateY(-1.2px)}}
@keyframes turtle-nod{0%,50%,100%{transform:rotate(0)}25%,75%{transform:rotate(-2.5deg)}}
@keyframes turtle-blink{0%,93%,100%{transform:scaleY(1)}96.5%{transform:scaleY(.1)}}
@media(prefers-reduced-motion:reduce){.turtle-ground,.turtle-body,.turtle-head,.turtle-blink,.turtle-leg{animation:none}}
/* A short screen keeps its room for the words and the buttons */
@media(max-height:500px){.performance-turtle{display:none}}
/* Try another device, one way (Bastjan, 2026-11-19): the turtle fades out and the code and the link fade in in its place;
   the button fades, then folds away (its height and the gap above it), so Continue testing moves up into its place */
#performance-warning .performance-turtle{transition:opacity .3s ease}
#performance-warning.device-open .performance-turtle{opacity:0}
#performance-warning .performance-device{opacity:0;visibility:hidden;transition:opacity .3s ease .15s,visibility 0s .45s}
#performance-warning.device-open .performance-device{opacity:1;visibility:visible;transition:opacity .3s ease .15s,visibility 0s}
#performance-device-toggle{max-height:80px;overflow:hidden;transition:opacity .2s ease,max-height .3s ease .15s,min-height .3s ease .15s,padding .3s ease .15s,margin .3s ease .15s,border-width .3s ease .15s}
#performance-warning.device-open #performance-device-toggle{opacity:0;max-height:0;min-height:0;padding-block:0;margin-top:-12px;border-block-width:0;pointer-events:none}
@media(prefers-reduced-motion:reduce){#performance-warning .performance-turtle,#performance-warning .performance-device,#performance-device-toggle{transition:none}}
/* The turtle stands where the recenter circle does, the middle of the screen, the spot every stage asks the eyes to
   rest on (Bastjan, 2026-11-19). Short screens keep it in the flow. */
@media (min-height:501px){#performance-warning .performance-turtle{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);margin:0}}
/* The opened code and link stand in the middle of the room between the subtitle and the buttons, on every screen, so a
   long subtitle never presses against them */
#performance-warning[open]{padding-bottom:calc(100dvh - var(--action-top) + var(--instruction-gap))}
#performance-warning .performance-device{position:static;transform:none;margin-block:auto}
/* A short screen (a phone on its side): once Try another device is chosen the reason has been read, and the subtitle
   gives its room to the link (measured 844x390 in German: three lines left 74 pixels for a 96-pixel panel) */
@media (max-height:500px){#performance-warning.device-open .performance-text{display:none}}
.performance-device{display:flex;gap:20px;align-items:center;max-width:min(520px,calc(100% - 48px))}
.performance-device img{display:block;background:white;border-radius:4px}
.performance-device>div{min-width:0;overflow-wrap:anywhere}
#performance-warning .performance-device p{margin:0 0 10px;font-size:14px;line-height:1.4;color:rgba(255,255,255,.72)}
/* The website's copy field (game-connection.html .beam-guide-code / .beam-guide-copy), with the demo's white focus ring */
.copy-field{display:flex;align-items:center;gap:8px;padding:8px 8px 8px 16px;border:1px solid var(--glass-line);border-radius:8px;background:rgba(255,255,255,.06)}   /* the text takes the room Copy leaves, in any language */
.copy-field code{flex:1;min-width:0;padding:4px 0;color:#fff;font:400 13.5px/1.6 ui-monospace,Consolas,"SF Mono",monospace;-webkit-user-select:all;user-select:all}
.copy-field button{flex:none;padding:5px 12px;border:1px solid var(--beam-color-accent);border-radius:6px;background:none;color:#fff;font:700 13px/1.4 Lato,sans-serif;cursor:pointer;transition:background .15s ease}
.copy-field button:hover{background:rgba(123,97,255,.22)}
.copy-field button:focus{outline:none}
.copy-field button:focus-visible{outline:var(--beam-recipe-focus-ring);outline-offset:var(--beam-focus-ring-offset)}
/* The choices in the action slot: Restart this stage (the accent) where every screen's action stands, Try another device
   and Continue testing (glass) under it, all one width, as Get Beam's buttons are */
.btn-group.performance-actions{position:fixed;top:var(--action-top);left:50%;transform:translateX(-50%);margin:0;display:grid;grid-auto-flow:row;grid-template-columns:minmax(0,1fr);justify-content:stretch;gap:12px;width:min(360px,calc(100% - 48px))}
/* Short screens (a phone on its side): the three stand side by side in the slot, one width */
@media (max-height:500px){.btn-group.performance-actions{grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:minmax(0,1fr);width:min(720px,calc(100% - 48px))}}
#performance-warning .performance-copy-other{display:none}
@media (max-width:600px),(max-height:500px){.performance-device{display:block;text-align:center}.performance-device>a,.performance-device [data-copy=performanceScan]{display:none}#performance-warning .performance-copy-other{display:block}}   /* phones: no code to scan with the phone in hand; a line saying where to open the link, over the copy field. Any window under 501 pixels tall too: the code does not fit between the words and the buttons (measured at 844x390) */
/* Feedback after Test Drive: the slow-demo warning's layout. Get Beam is already open under it and
   steps aside until it closes. The thumbs, the reasons and Other are glass like Skip, with the glass lens under the
   pointer as the icon buttons have it, and a picked one is the accent button, as a pressed Recenter Tracking. The
   comment is the game search's glass field. */
body.feedback-open #find{visibility:hidden}
/* One column, the action slot's width, every edge flush with Send feedback and Skip under it: the thumbs two equal halves, the reasons an even two by two of equal tiles, the comment the full width. */
/* One width for the choices and the buttons: the card's own, as the buttons' centre is. 100vw can differ from it on an
   iPhone that has been turned, which set the two apart. */
#feedback{--feedback-w:min(360px,calc(100% - 48px));width:100%}
#feedback .feedback-body{flex:none}
#feedback .performance-actions{width:var(--feedback-w)}
/* The choices in the middle of the room between the subtitle and the buttons, as the slow-demo warning's link */
#feedback[open]{padding-bottom:calc(100dvh - var(--action-top) + var(--instruction-gap))}
/* Three levels, each its own group with air between them: the
   thumbs, then the four reasons, then the comment; tight gaps inside a group, wide ones between */
#feedback .feedback-body{display:flex;flex-direction:column;align-items:stretch;gap:28px;width:min(360px,100%);margin-block:auto}
#feedback .feedback-rating{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#feedback .feedback-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;padding:12px 14px;color:#fff;border:1px solid var(--glass-line);background:var(--glass-fill);box-shadow:var(--glass-edge);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);border-radius:var(--beam-radius-md);font:inherit;font-size:14px;line-height:1.3;text-align:center;cursor:pointer;transition:background var(--beam-duration-state),box-shadow var(--beam-duration-state),scale var(--beam-duration-state)}
/* The hierarchy: the thumbs are the choice, large icons alone; the reasons a smaller second level */
#feedback .feedback-rating .feedback-choice{padding:16px 8px}
#feedback h2:focus{outline:none}
#feedback.more .feedback-rating .feedback-choice{padding:10px 8px}#feedback.more .feedback-rating svg{width:34px;height:34px}
#feedback .feedback-choice svg{flex:none;width:44px;height:44px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#feedback .feedback-choice[aria-pressed=true]{font-weight:700;border-color:transparent;background:var(--btn-hover);box-shadow:var(--btn-shadow)}
@media(hover:hover){#feedback .feedback-choice:not([aria-pressed=true]):hover{background:var(--beam-gradient-lens);box-shadow:var(--beam-shadow-lens)}}
#feedback .feedback-choice:active{scale:var(--beam-glass-motion-press)}
#feedback .feedback-choice:focus{outline:none}
#feedback .feedback-choice:focus-visible{outline:var(--beam-recipe-focus-ring);outline-offset:var(--beam-focus-ring-offset)}
#feedback .feedback-more{display:flex;flex-direction:column;align-items:stretch;gap:24px}
/* Once a thumb is picked the subtitle has done its job and gives its room to the choices, on every screen */
#feedback.more .performance-text{display:none}
#feedback .feedback-more[hidden],#feedback .feedback-reasons[hidden]{display:none}
#feedback .feedback-reasons{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:1fr;gap:8px}
#feedback .feedback-reasons .feedback-choice{padding:8px 10px;font-size:13px}
#feedback-comment{box-sizing:border-box;width:100%;min-height:64px;resize:none;padding:12px 16px;background:var(--glass-fill);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);box-shadow:var(--glass-edge);border:1px solid var(--glass-line);border-radius:var(--beam-radius-md);color:var(--text);caret-color:var(--beam-color-accent);font:16px/1.4 Lato,sans-serif}
/* Send feedback before a thumb is picked: the dimmed accent as a solid colour, not the usual 35% opacity, which let the
   cockpit behind show through it as a round blur */
#feedback-send:disabled{opacity:1;background:linear-gradient(rgba(123,97,255,.35),rgba(123,97,255,.35)),var(--beam-color-ground-top);box-shadow:none;color:rgba(255,255,255,.4)}
#feedback-comment::placeholder{color:var(--beam-color-text-dimmed)}
#feedback-comment:focus{outline:none;border-color:var(--beam-color-accent)}
/* Phones upright: the choices stand in the room between the title lines and the action slot; once a thumb is picked
   the subtitle gives its room to them (measured 390x844) */
@media (max-width:600px){#feedback .feedback-body{gap:20px}
  #feedback .feedback-more{gap:16px}#feedback .feedback-reasons .feedback-choice{padding:6px}#feedback.more .feedback-rating .feedback-choice{padding:8px}#feedback.more .feedback-rating svg{width:30px;height:30px}
  #feedback-comment{min-height:40px;padding:9px 14px}}
/* A small phone upright: tighter, so the comment stays clear of Send feedback under the four reasons (measured 360x640) */
@media (max-width:600px) and (max-height:700px){#feedback.more .feedback-body{gap:10px}#feedback .feedback-more{gap:8px}
  #feedback.more .feedback-rating .feedback-choice{padding:4px 8px}#feedback .feedback-reasons .feedback-choice{padding:2px 6px}#feedback .feedback-reasons{gap:6px}#feedback-comment{min-height:36px;padding:6px 14px}}
/* A short screen (a phone on its side): the action slot is one row of two, so the column is that row: the thumbs
   over Send feedback and Skip, the four reasons in one row, the comment one line; the subtitle gives its room */
@media (max-height:500px){#feedback{--feedback-w:min(720px,calc(100% - 48px))}#feedback .feedback-body{width:min(720px,100%);min-height:122px;justify-content:center}#feedback .performance-text{display:none}
  /* The whole block, title to buttons, in the middle of the screen. The choices keep the room of their tallest form, so
     the title and the buttons stay where they are when a thumb is picked. */
  #feedback[open]{justify-content:center;gap:14px;padding:0 24px}
  #feedback .performance-actions{position:static;transform:none;flex:none;width:min(720px,100%)}
  #feedback .feedback-body{margin-block:0;gap:14px}#feedback .feedback-more{gap:12px}
  #feedback .feedback-rating .feedback-choice,#feedback.more .feedback-rating .feedback-choice{padding:5px 8px}#feedback .feedback-rating svg,#feedback.more .feedback-rating svg{width:26px;height:26px}
  #feedback .feedback-reasons{grid-template-columns:repeat(4,1fr)}#feedback .feedback-reasons .feedback-choice{padding:3px 8px;font-size:12px}
  #feedback-comment{min-height:34px;padding:6px 12px}   /* measured 844x390 */
  /* While the comment is typed over the keyboard (app.js): the comment at the top of the visible strip, the buttons under it */
  #feedback.typing[open]{justify-content:flex-start;padding-top:calc(var(--visible-top,0px) + 12px)}
  #feedback.typing :is(h2,.feedback-rating,.feedback-reasons){display:none}
  #feedback.typing .feedback-body{min-height:0}}
.diagnostic-actions{display:flex;flex-wrap:wrap;gap:8px}
.diagnostic-actions button{width:auto;min-height:44px;padding:8px 12px;font-size:14px}
#diagnostics-text{box-sizing:border-box;width:100%;height:160px;background:var(--beam-color-ground-page);color:var(--beam-color-text-primary);border:1px solid var(--glass-line);font:16px/1.3 monospace}

/* The picked game on the end card: "Start your risk-free trial" where the logo was, the game's line under it */
#end.picked .card-logo-link{display:none}
.end-title{margin:4px 0 0;font-size:24px;font-weight:700;text-align:center}
.end-title[hidden]{display:none}
.end-game{margin:0 0 10px;font-size:15px;font-weight:400;text-align:center;color:rgba(255,255,255,.85)}
.end-game .beam-game-tag{display:inline;padding:1px 4px;border:1px solid var(--beam-color-surface-card-edge);border-radius:var(--beam-radius-sm);color:var(--beam-color-accent-light);font:var(--beam-type-label);letter-spacing:var(--beam-type-label-tracking);text-transform:uppercase;vertical-align:middle;position:relative;top:-2px}
.end-game[hidden]{display:none}

/* Cards: the site's top-to-bottom gradient */
.card{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;max-width:360px;padding:36px 28px 22px;box-sizing:border-box;
  border-radius:var(--beam-radius-md);background:linear-gradient(180deg,rgba(21,23,29,.45) 0%,rgba(14,8,36,.45) 100%);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);border:1px solid var(--glass-line);box-shadow:var(--glass-edge),var(--shadow)}
.card-logo-link{display:block;line-height:0}   /* the logo is the way to the site, on the card as in the chrome */
.card-logo-link:focus-visible{outline:var(--beam-recipe-focus-ring);outline-offset:4px;border-radius:var(--beam-radius-sm)}
.card-logo{height:64px;margin-bottom:16px}
/* The site's button (button.md). One accent button per view; the second action is an outline, the third is text.
   As wide as its label plus its padding, centred where it stands alone, never full width (owner ruling 2026-10-24);
   labels in capitals (2026-10-22); the shine at rest (2026-10-27). Hover only where a pointer can hover, so a tap
   leaves nothing lit; keyboard focus shows the hover look plus the white ring. */
.btn{display:flex;align-items:center;justify-content:center;width:max-content;max-width:100%;min-height:var(--beam-size-control);margin-inline:auto;box-sizing:border-box;padding:0 var(--beam-space-24);border:0;border-radius:var(--beam-radius-md);background:var(--btn-rest);backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:var(--btn-shadow);color:var(--beam-color-text-on-accent);
  font:var(--beam-type-button);text-transform:uppercase;text-decoration:none;text-align:center;text-wrap:balance;cursor:pointer;transition:var(--btn-motion)}
@media(hover:hover){.btn:not(.btn-secondary):not(:disabled):hover{background:var(--btn-hover);box-shadow:var(--beam-recipe-hover-shadow);translate:0 var(--beam-glass-motion-lift)}}
.btn:not(.btn-secondary):focus-visible{background:var(--btn-hover);box-shadow:var(--beam-recipe-hover-shadow);translate:0 var(--beam-glass-motion-lift)}
.btn:not(:disabled):active{translate:0 0;scale:var(--beam-glass-motion-press)}
/* The glass action button: the same control as Supported games and the in-game Recenter Tracking at rest, purple on
   hover (owner 2026-10-27: no new button looks). */
.btn.btn-glass{border:1px solid var(--glass-line);background:var(--glass-fill);box-shadow:var(--glass-edge);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);color:#fff}
@media(hover:hover){.btn.btn-glass:not(:disabled):hover{background:var(--btn-rest);box-shadow:var(--glass-edge);translate:none}}
.btn.btn-glass:focus-visible{background:var(--btn-rest);box-shadow:var(--glass-edge);translate:none}
.btn:disabled{opacity:.35;cursor:default}
.btn:focus{outline:none}
.btn:focus-visible{outline:var(--beam-recipe-focus-ring);outline-offset:var(--beam-focus-ring-offset)}
/* Buttons side by side, or stacked as on the end card, take one shared width: the widest label's */
.btn-group{display:grid;grid-auto-flow:row;width:max-content;max-width:100%;gap:var(--beam-space-12);justify-content:center}
.btn-group>.btn{width:auto;margin-inline:0}
@media(prefers-reduced-motion:reduce){.btn,#recenter-action,.experience-card,.beam-recenter,#recenter-demo{translate:none!important;scale:none!important}}
.btn-text{display:inline-flex;align-items:center;gap:8px;margin-top:8px;padding:8px 4px;background:none;border:0;color:rgba(255,255,255,.75);
  font:700 15px/1 "Lato",sans-serif;cursor:pointer;transition:color var(--beam-duration-state)}
.btn-text svg{width:20px;height:20px}
.btn-text:hover{color:#fff;text-decoration:underline}
.btn-text:focus{outline:none}
.btn-text:focus-visible{outline:var(--beam-recipe-focus-ring);outline-offset:var(--beam-focus-ring-offset);border-radius:var(--beam-radius-sm)}
#problem .btn{width:auto}
/* Share row on the end card: the outline button, small */
.share-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin-top:10px}
.share-label{width:100%;font-size:13px;color:var(--dim);margin-bottom:2px}
.pill{display:inline-flex;align-items:center;gap:var(--beam-space-8);min-height:var(--beam-size-target);padding:0 var(--beam-space-16);border:1px solid var(--beam-color-glass-outline);border-radius:var(--beam-radius-md);background:transparent;color:#fff;
  font:var(--beam-type-row);text-transform:uppercase;text-decoration:none;cursor:pointer;transition:var(--btn-motion)}
.pill svg{width:16px;height:16px}
@media(hover:hover){.pill:hover{background:var(--beam-recipe-outline-hover-background);box-shadow:var(--beam-shadow-lift);translate:0 var(--beam-glass-motion-lift)}}
.pill:active{translate:0 0;scale:var(--beam-glass-motion-press)}
.pill:focus{outline:none}
.pill:focus-visible{background:var(--beam-recipe-outline-hover-background);outline:var(--beam-recipe-focus-ring);outline-offset:var(--beam-focus-ring-offset)}

/* The app's layout: the sidebar (Tracker, Immersive Camera, Eye Tracking Overlay), the page beside it. The pages
   share one grid cell, so the card is always as tall as the tallest of them. */
/* The app's toggle: the word, then the pill */
.toggle{display:inline-flex;align-items:center;gap:12px;cursor:pointer;flex:none}
.toggle input{position:absolute;opacity:0;width:0;height:0}
.toggle i{position:relative;display:inline-block;width:56px;height:28px;border-radius:14px;background:var(--track);transition:background var(--beam-duration-state);flex:none}
.toggle i::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:transform var(--beam-duration-state)}
.toggle input:checked+i{background:var(--accent)}   /* on: the accent, as the app's toggle */
.toggle input:checked+i::after{transform:translateX(28px)}
.toggle input:focus-visible+i{outline:var(--beam-recipe-focus-ring);outline-offset:var(--beam-focus-ring-offset)}

/* Upright phones and tablets: no room on one floor. The feed centred, 12px above the privacy line and the
   credit; the buttons centred above the feed. */
@media (max-width:899px){
  /* The feed on the tray's floor: the same bottom as the tray, written the same way, so the two columns end level */
  .feed{position:fixed;left:var(--inset-left);bottom:calc(var(--inset-bottom) + var(--privacy-h,28px) + 4px + var(--credit-h,26px) + 12px);z-index:6}
  #preview{width:150px}
  .quick{width:184px;font-size:14px;bottom:calc(var(--inset-bottom) + var(--privacy-h,28px) + 4px + var(--credit-h,26px) + 12px)}
  .q-row{height:46px;padding:6px 12px}
  .select-btn{height:32px;font-size:14px;max-width:110px}
  .toggle i{width:48px;height:24px}
  .toggle i::after{width:18px;height:18px}
  .toggle input:checked+i::after{transform:translateX(24px)}
  .chrome-bottom{flex-wrap:wrap;gap:4px}
  .footnote{flex:1 1 100%;max-width:none}
  .privacy-live{margin-top:0;font-size:10px}
  .privacy-btn{width:26px;height:26px;right:2px;bottom:2px}   /* the corner of the picture, half the old inset (Bastjan, 2026-10-29) */
  .privacy-full br{display:none}
  .footnote{align-items:center}
  .privacy{justify-content:center;text-align:center}
  .chrome-bottom .scene-credit{text-align:center;font-size:9px}
  .credits{text-align:center}
  .credits summary{justify-content:center}
  .beam-cockpit>.beam-recenter,#recenter-demo{left:50%;bottom:calc(var(--inset-bottom) + var(--privacy-h,28px) + 4px + var(--credit-h,26px) + 12px + 150px * 3 / 4 + 12px)}
}

@media (max-width:767px){
  :root{--inset-top:max(28px,env(safe-area-inset-top))}   /* upright: more air above the chrome */
  :root{--figure-h:13.4dvh}   /* half the full height */
  .logo img{height:53px;margin-left:-15px}   /* the drawing is 139px wide, 49px tall */
  :root{--brand-w:139px;--brand-h:53px;--title-scale:1.6}
  .cta{width:139px;top:calc(var(--inset-top) + 79px)}
  /* Upright: each column centred in its half of the width (never inside the insets): the feed and Recenter on the
     left, the tray on the right */
  .feed{left:max(var(--inset-left),calc(25% - 79px))}   /* the frame is 158 wide: the video's 150 and 4 of glass a side */
  .quick{right:max(var(--inset-right),calc(25% - 92px))}
  .beam-cockpit>.beam-recenter,#recenter-demo{width:160px;padding:0 8px}   /* font-size stays 0: the label is the ::before */
  #onboarding-text{bottom:calc(50% + var(--figure-h) / 2 + 20px);font-size:24px;left:50%;right:auto;width:340px;transform:translateX(-50%)}   /* upright: every line as wide as the path (340px) at most, then it wraps (Bastjan, 2026-09-21) */
  #onboarding[data-step=recenter] #recenter-demo{top:calc(50% + var(--figure-h) / 2 + 24px);width:200px;padding:0 12px}
  /* Phones: the product button under the logo, the path on a line of its own under all of that */
  .chrome-top .steps{top:calc(var(--inset-top) + 161px);transform:translateX(-50%)}   /* 74px under the product button */
  .step{width:68px;font-size:9px;padding-top:24px}
  .beam-cockpit>.beam-recenter::before,#recenter-demo::before{font-size:15px}
  /* Upright: the left column mirrors the tray on the right. Recenter is a row like the tray's top row (46px, 6px gap),
     over the feed, as wide as it, and the feed runs down to the tray's floor (a portrait crop: the tray is five rows,
     254px, so the feed is 202px tall). app.js measures the feed's place into the variables. */
  .beam-cockpit>.beam-recenter,#recenter-demo{left:calc(var(--feed-left,20px) + var(--feed-w,151px) / 2);width:var(--feed-w,151px);height:46px;min-height:46px;bottom:calc(var(--feed-up,200px) + 6px)}   /* the tray's 6px gap: Recenter and Cockpit are level */
  #preview{height:194px;aspect-ratio:auto}   /* 202 with the frame's 8: five rows (254) less Recenter (46) and its gap (6) */
  .beam-games td{padding:12px 10px}
  .find-title{font-size:24px;width:340px;max-width:340px;white-space:normal}   /* upright: as wide as the path, then it wraps */
  #try-text,.find-title{bottom:calc(50% + var(--figure-h) / 2 + 20px)}
  .beam-guide-search input{padding:12px 16px 12px 44px;font-size:15px}
  .beam-guide-search-field svg{left:16px;width:18px;height:18px}
  .hint-text{font-size:19px}
  .card{padding:30px 22px 18px}
  .card-logo{height:56px}
}

/* A short viewport: a phone held sideways, or a short window. Compact chrome, nothing stacked. */
@media (max-height:560px){
  :root{--figure-h:17.42dvh}   /* 0.65 of the full height */
  .logo img{height:53px;margin-left:-15px}
  :root{--brand-w:139px;--brand-h:53px;--title-scale:1.6}
  /* Sideways: the product button under the logo as everywhere, the path in the top row between the logo and the
     icons, sized to the space between them; the chrome takes the top 103px, so the onboarding block sits 30px lower
     than the middle */
  .cta{width:139px;top:calc(var(--inset-top) + 79px)}
  .icon-btn{width:38px;height:38px}
  /* One floor, as on the desktop: the feed column left, Recenter centred, the credit right. The two texts stop
     24px short of the button (160px wide), so they wrap into more lines rather than collide. */
  .feed{position:relative;left:auto;top:auto;transform:none}
  .footnote{align-items:flex-start}
  #preview{width:132px}
  .quick{width:184px;font-size:14px;bottom:var(--inset-bottom)}
  .q-row{height:44px;padding:5px 12px}
  .select-btn{height:32px;font-size:14px;max-width:110px}
  .feed-note{font-size:11px;gap:4px}
  .privacy-live{margin-top:8px;font-size:10px}
  .footnote{max-width:max(132px,calc(50% - 104px))}
  .beam-cockpit>.beam-recenter,#recenter-demo{left:50%;bottom:calc(var(--inset-bottom) + 4px)}
  /* One smaller button size for everything: 160 by 40 */
  .beam-cockpit>.beam-recenter,#recenter-demo{width:160px;min-height:40px;padding:0 8px}
  .beam-cockpit>.beam-recenter::before,#recenter-demo::before{font-size:15px}
  #onboarding-text{bottom:calc(50% - 30px + var(--figure-h) / 2 + 26px)}
  #onboarding[data-step=recenter] #recenter-demo{top:calc(50% + 30px + var(--figure-h) / 2 + 28px);width:160px}
  .hint-text{font-size:18px}
  /* Centred in the window, the rings' centres level with the icons' centres (the row is the 53px logo, its middle
     26.5px under the inset; the drawing is 20px tall, the rings at its middle); the stages narrow on a small
     phone so the path clears the icons */
  .chrome-top .steps{--w:clamp(50px,calc((100vw - 400px) / 5),90px);top:calc(var(--inset-top) + 16.5px);transform:translateX(-50%)}
  .step{width:var(--w);font-size:10px;padding-top:24px}
  .beam-games td{padding:12px 10px}
  .find-title,#onboarding-text{font-size:22px;width:max-content;max-width:calc(100vw - 48px)}   /* sideways: inside the insets, wrapping beyond them (never cut; Bastjan, 2026-09-21); the upright cap at the path's width does not apply */
  #try-text,.find-title{bottom:calc(50% - 30px + var(--figure-h) / 2 + 26px)}
  .beam-guide-search input{padding:10px 16px 10px 44px;font-size:15px}
  .beam-guide-search-field svg{left:16px;width:18px;height:18px}
  .beam-games-wrap{max-height:calc(50vh - 80px)}
  .card{padding:16px 20px;gap:8px}
  .card-logo{height:36px;margin-bottom:6px}
  .toggle i{width:48px;height:24px}
  .toggle i::after{width:18px;height:18px}
  .toggle input:checked+i::after{transform:translateX(24px)}
}

/* The compact four-stage tutorial has no product CTA above its progress row. */
@media(max-width:600px) and (orientation:portrait){
  #loader{gap:16px;padding-bottom:100px}
  .chrome-top .steps{top:calc(var(--inset-top) + 90px)}
  #onboarding[data-step=recenter] #onboarding-text,#onboarding:is([data-step=eyeSetup],[data-step=playSetup]) #onboarding-text{bottom:calc(50% + 55px);font-size:18px}
  #onboarding[data-step=recenter] #recenter-demo{top:calc(50% + 75px)}
}

/* Briefly teach the same controls that remain available in the free-play tray. */
#get-started:disabled{opacity:.35;cursor:default}
/* Beam desktop palette: CommonWindowBackgroundColor and ButtonActiveBackgroundColor. */
#loader,#problem{background-color:var(--bg);background-image:var(--welcome-background);backdrop-filter:none;-webkit-backdrop-filter:none}
.quick .camera-response{height:auto;min-height:52px;line-height:1.3}
.camera-response .toggle{flex-shrink:0}
#controls-introduction{margin:0;text-align:center;font-size:clamp(22px,2.5vw,28px);font-weight:700;line-height:1.3;text-shadow:0 2px 5px #000,0 0 12px #000}
/* One head-control invitation: reserve the action's space while the cockpit fades in. */
body.control-start #quick{display:none}
body.control-start #onboarding{visibility:visible;align-items:center;gap:24px}
body.control-start #onboarding #onboarding-text,#onboarding-instruction{position:static;transform:none;width:min(760px,calc(100vw - 48px));max-width:none;margin:0;font-size:clamp(22px,2.5vw,28px);font-weight:700;line-height:1.3;color:white;background:none;filter:none;text-align:center;text-wrap:balance;text-shadow:0 2px 5px #000,0 0 12px #000}
body.control-start #onboarding #recenter-demo{display:block;position:static;transform:none;margin:0}
body.control-start #onboarding #recenter-demo::after{display:block}
/* Match setup actions; clicking, touching or the hotkey all invoke real recentering. */
body.control-start #onboarding #recenter-demo{box-sizing:border-box;width:max-content;max-width:min(320px,calc(100vw - 48px));height:auto;min-height:var(--beam-size-control);padding:0 var(--beam-space-24);border:0;border-radius:var(--beam-radius-md);background:var(--btn-rest);box-shadow:var(--btn-shadow);backdrop-filter:none;-webkit-backdrop-filter:none;cursor:default;pointer-events:none;font:var(--beam-type-button);line-height:1;text-transform:uppercase;text-align:center;color:var(--beam-color-text-on-accent)}
body.control-start #onboarding #recenter-demo small{position:absolute;top:100%;left:50%;transform:translateX(-50%);margin-top:6px;white-space:nowrap;font-size:12px;font-weight:400;line-height:1.4;text-transform:none;color:#fff;text-shadow:0 2px 6px #000;opacity:.7}   /* the hotkey line under the button: the reminder note's font exactly, wherever the button stands (owner 2026-10-27) */
body.control-start #onboarding #recenter-demo::before,body.control-start #onboarding #recenter-demo::after{display:none}
body.control-start #onboarding:is([data-step=eyeIntro],[data-step=eyeSetup],[data-step=playSetup]) #onboarding-text{color:var(--beam-color-text-primary);text-shadow:0 2px 5px #000,0 0 12px #000}   /* no purple glow behind text (owner ruling 2026-10-02) */
body.recenter-feedback #recenter-dot{display:block}
body.recenter-feedback #onboarding,body.calibration-active #onboarding{visibility:hidden}
#recenter-guidance{position:fixed;top:calc(50% + 40px);left:50%;transform:translateX(-50%);margin:0;width:min(420px,80vw);text-align:center;font-size:20px;text-shadow:0 2px 5px #000;z-index:8;pointer-events:none}
/* The main instruction lines share one size: the intro, the exercise line and its reminder alike */
#onboarding[data-step=head] #onboarding-text,#onboarding[data-step=eyes] #onboarding-text,#eye-objective-guidance{font-size:clamp(22px,2.5vw,28px);font-weight:700;line-height:1.3;text-wrap:balance;color:var(--beam-color-text-primary);background:none;-webkit-text-fill-color:currentColor;filter:none}
/* The animation sets opacity itself. Start it only after the benchmark cover comes off. */
body.scene-entry:not(.quality-fitting) .viewer::after{animation:scene-reveal 1.6s ease-in-out both}
@keyframes scene-reveal{from{opacity:1}to{opacity:0}}
#combined-introduction{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(620px,calc(100vw - 48px));margin:0;text-align:center;font-size:clamp(22px,2.5vw,28px);font-weight:700;line-height:1.3;color:white;text-shadow:0 2px 5px #000,0 0 12px #000;z-index:6;pointer-events:none}
body.combined-intro #quick,body.combined-intro #cta{visibility:hidden}
#combined-introduction{transition:opacity .4s}
body.control-start #onboarding #recenter-demo,#recenter-action{pointer-events:auto;cursor:pointer;font-family:inherit;color:#fff;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
@media(hover:hover){body.control-start #onboarding #recenter-demo:hover{background:var(--btn-hover);box-shadow:var(--beam-recipe-hover-shadow);translate:0 var(--beam-glass-motion-lift)}#recenter-action:hover{background:var(--btn-rest);box-shadow:var(--glass-edge);translate:none}}   /* in play, Recenter Tracking hovers as every glass button (Finish, Get Beam's): purple, its edge kept, no lift */
#onboarding:is([data-step=eyeSetup],[data-step=playSetup]) #recenter-demo{border-color:transparent;box-shadow:var(--btn-shadow)}
[data-recenter-touch]:focus-visible{outline:var(--beam-recipe-focus-ring);outline-offset:var(--beam-focus-ring-offset)}
.cta{left:50%;top:auto;bottom:calc(var(--inset-bottom) + max(20px,var(--credit-h,17px)));transform:translateX(-50%);width:auto;text-align:center}
#finish-demo{margin:0}   /* the glass button, purple only on hover, as Recenter Tracking under it, with every button's motion (Bastjan, 2026-10-29) */
/* Free play on every size: the recenter reminder keeps its place at the bottom centre and Finish stands right above it
   (owner 2026-10-27: phones stack the same way as desktop) */
body[data-state=live]:not(.onboarding) .cta{bottom:calc(var(--inset-bottom) + var(--credit-h,17px) + 4px + var(--reminder-h,100px) + var(--instruction-gap))}
@media (max-width:899px), (max-height:560px){body[data-state=live]:not(.onboarding) #finish-demo{width:var(--reminder-w,auto);min-height:var(--reminder-bh,var(--beam-size-target))}}   /* as wide as the Recenter Tracking box under it (Bastjan, 2026-10-29) */
body[data-state=live]:not(.onboarding) .feed{bottom:calc(var(--inset-bottom) + max(20px,var(--credit-h,17px)) + 110px)}
body.calibration-active #cta{visibility:hidden}
body.combined-intro-fading #combined-introduction{opacity:0}
@media(prefers-reduced-motion:reduce){#combined-introduction{transition:none}}
@media(prefers-reduced-motion:reduce){body.scene-entry:not(.quality-fitting) .viewer::after{animation:none}}
@media(prefers-reduced-motion:reduce){.viewer::after{transition:none}}
@media(prefers-reduced-motion:reduce){.logo,#title-tagline,#loader>.welcome-intro,#loader>.welcome-actions,#loader>.privacy{transition:none}}
/* Phone feedback is a small framing aid, not another large panel. Keep its 4:3
   shape instead of the older tall preview sized to match the settings tray. */
@media (max-width:600px), (pointer:coarse) and (max-height:500px){
  #title-start,#title-camera,#problem .btn,#end-cta,#again,#performance-restart,#performance-device-toggle,#performance-continue,#crash-continue,#feedback-send,#feedback-skip{min-height:var(--beam-size-target);padding:8px 20px;font-size:13px}   /* the phone's action height and type, one for every action button: the size of Recenter Tracking, Finish and Get Beam's buttons (Bastjan, 2026-10-29: canonical) */
  #fullscreen-hint{box-sizing:border-box;max-width:140px;right:-8px;padding:6px 10px}
  #fullscreen-hint{--point:calc(clamp(34px,5.8vmin,44px) / 2 + 8px)}   /* the bubble sits 8px further right here */
  .title-screen #loader .setup-loading{top:calc(50dvh + 116px)}
  :root{--brand-w:105px;--brand-h:40px}
  .cta{width:auto}
  body:has(#find:not([hidden])) :is(#quick,#cta){visibility:hidden}
  #find .desktop-platforms{font-size:10px;gap:10px;margin-top:6px}
  #find .desktop-platforms svg{width:12px;height:12px}
  #find .beam-guide-search input{font-size:16px;height:44px;padding:8px 12px 8px 36px}
  #find .beam-guide-search-field svg{left:12px;width:16px;height:16px}
  .logo img{height:40px;margin-left:-11px}
  #onboarding[data-step=head],#onboarding[data-step=eyes]{width:min(300px,calc(100vw - 40px));padding:8px 12px;gap:6px}
  #onboarding[data-step=head] #onboarding-text,#onboarding[data-step=eyes] #onboarding-text,#eye-objective-guidance{font-size:14px;line-height:1.35}
  #tutorial-objectives{font-size:11px;line-height:1.4;gap:4px}
  #tutorial-objectives li{padding:3px 6px}
  .objective-row{gap:8px}
  .objective-mark{width:20px;height:20px;font-size:10px;border-width:1.5px}
  #tutorial-completion{padding:18px 14px 14px;gap:4px}
  .completion-title{font-size:36px;padding:0 18px}
  .completion-title::before,.completion-title::after{font-size:14px}
  .completion-text{font-size:12px;line-height:1.35}
  #onboarding #continue-objectives,#onboarding #skip-objectives{width:max-content;font-size:12px;padding:8px 16px;min-height:var(--beam-size-target)}
  #onboarding #continue-objectives{font-size:13px}   /* the exercises' Recenter Tracking size: one button size in play (Bastjan, 2026-10-29: canonical) */
  #onboarding #skip-objectives{margin-top:var(--beam-space-12)}
  body.control-start #onboarding{gap:12px}
  body.control-start #onboarding #onboarding-text,#onboarding-instruction,#combined-introduction{font-size:14px;line-height:1.35}
  #recenter-guidance{font-size:12px}
  .step{font-size:8.5px;flex-shrink:0}
  .step>span{box-sizing:border-box;width:max-content;max-width:5.8em;min-width:min-content;padding:0;white-space:normal;overflow-wrap:normal;text-align:center}   /* Head / Movement and Eye / Movement on two lines in every phone format, short labels on one, never a word broken (Bastjan, 2026-10-30) */
  :root{--recenter-target-size:88px}
  body:is([data-calibration=held],[data-calibration=capturing],[data-calibration=succeeded]) #calibration-status{font-size:15px;min-height:var(--beam-size-target)}
  body.control-start #onboarding #recenter-demo{font-size:13px;padding:0 16px;min-height:var(--beam-size-target)}
  body.control-start #onboarding #recenter-demo small{font-size:12px;margin-top:6px}
  #loader{box-sizing:border-box;gap:12px;overflow-y:auto;justify-content:safe center}
  #loader>*{flex-shrink:0}
  .welcome-intro{max-width:460px;font-size:14px;line-height:1.4}
  .welcome-setup{width:min(580px,100%)}
  .setup-title{font-size:18px;margin-bottom:8px}
  .setup-help{font-size:11px;margin-bottom:12px}
  .screen-presets{gap:2px}
  .screen-presets button{font-size:9px;padding:8px 0;gap:5px;min-height:44px}
  .screen-presets svg{width:40px;height:36px}
  .screen-presets small{font-size:12px}
  #screen-preset{width:calc(100% - 42px);margin-top:2px}
  #screen-selected{font-size:14px;margin-top:0}
  .experience-cards{gap:10px;margin:16px 0 0}
  .experience-card>span{padding:12px 28px 12px 10px;font-size:13px}
  .experience-card i{right:10px;bottom:12px;width:20px;height:20px}
  .setup-loading #loader-text,.setup-loading p{font-size:11px}
  .setup-loading{min-height:0}
  #get-started,#setup-next{min-height:var(--beam-size-target);padding:8px 20px;font-size:13px}
  #preview{width:clamp(72px,22vw,96px);height:auto;aspect-ratio:4/3}
  .feed{left:var(--inset-left)}
  .feed-note{font-size:10px;line-height:1.2;padding:4px;gap:2px}
  #feed-note .spinner{display:none}#feed-note{padding:2px}#feed-note-text{font-size:9.5px;line-height:1.12;hyphens:auto;-webkit-hyphens:auto}   /* the small phone box: the whole two-line message, in every language */
  #recenter-reminder{font-size:12px;line-height:1.3;width:max-content;bottom:calc(var(--inset-bottom) + var(--credit-h,17px) + 4px)}   /* the button type as every button, and Get Beam's button width: Finish stands right on it at the same width (Bastjan, 2026-10-29) */
  #recenter-reminder small{width:0;min-width:100%}   /* the lines under the box wrap to its width instead of widening it */
  #recenter-reminder small{font-size:10px;margin-top:4px}
}
/* A phone held sideways: the title composition rises and the logo shrinks so the promise, the two lines and the
   action slot fit above the fold; the text formats stay the layout's own */
@media (pointer:coarse) and (max-height:500px){:root{--title-scale:1.5;--title-gap:calc(var(--beam-space-24) + 31px)}   /* the welcome logo in about the desktop's share of the height (Bastjan, 2026-10-29) */
  body .chrome-top{align-items:flex-start}}   /* the logo stays in the top-left corner when the icons stack beside it */
@media (max-width:600px) and (min-height:501px){
  :root{--title-scale:2}   /* upright phones: the welcome logo larger, nearer the desktop's share of the screen (Bastjan, 2026-10-29) */
  #loader{padding:calc(var(--inset-top) + 100px) 24px calc(var(--inset-bottom) + 110px)}
  body[data-state=live] .feed,body[data-state=live] .quick{bottom:calc(var(--inset-bottom) + var(--credit-h,17px) + 92px)}
}
@media (pointer:coarse) and (max-height:500px){
  .experience-card video{max-height:80px}   /* smaller, with room above and below (Bastjan, 2026-10-29) */
  .experience-cards{margin-top:10px}
  .screen-presets svg{height:20px}
  .screen-presets button{padding:4px 0;gap:2px}
  .setup-help{margin-bottom:8px}
  /* Equal gutters keep setup centered on the viewport, independently of the
     corner overlays. Leave room for branding and utility controls on either side. */
  #loader{padding:var(--inset-top) calc(max(var(--inset-left),var(--inset-right)) + 120px) var(--inset-bottom);gap:10px}
  body[data-state=boot] .feed{position:fixed;left:var(--inset-left);bottom:var(--inset-bottom)}
  .welcome-actions{gap:8px}
  body[data-state=boot] .chrome-actions .icon-btn{width:44px;height:44px}
  .welcome-intro{font-size:14px;line-height:1.35}
  .welcome-setup{width:min(580px,100%)}
  /* Draw the SVG in the same unscaled coordinate system as its label columns. */
  .chrome-top .steps{--w:clamp(44px,calc((100vw - 360px) / 5),68px);top:var(--inset-top);transform:translateX(-50%)}
  #onboarding[data-step=head],#onboarding[data-step=eyes]{inset:calc(var(--inset-top) + 54px) auto var(--inset-bottom) 50%;transform:translateX(-50%)}
  #recenter-reminder{width:max-content;bottom:var(--inset-bottom)}   /* on the bottom edge, as the preview and Credits beside it */
  #recenter-action{min-height:var(--beam-size-target)}
  #recenter-action>span,body[data-state=live]:not(.onboarding) #finish-demo{font-size:13px}   /* Test Drive keeps the exercises' size: Recenter Tracking sized to its label, Finish on it at its width (Bastjan, 2026-10-29) */
  .quick{right:var(--inset-right)}
  body[data-state=live]:not(.onboarding) .cta{bottom:calc(var(--inset-bottom) + var(--reminder-h,48px) + var(--instruction-gap))}   /* Finish right on top of it */
  #recenter-reminder small{width:0;min-width:100%}
  body[data-state=live] .feed,body[data-state=live]:not(.onboarding) .feed{position:fixed;bottom:calc(var(--inset-bottom) + var(--privacy-h,28px) + 4px + var(--credit-h,26px) + 12px)}   /* the feed keeps the floor in every step, as on desktop (Bastjan, 2026-10-29) */
}

/* Instructions: one format on every screen, in three roles (game-tutorial practice: one short line says what to do,
   an optional smaller line says how, then the list or the action).
     primary    what to do: the setup questions, the exercise introductions, the exercise line, Find supported
                games, the controls and
                combined introductions, hints. Large and bold.
     secondary  how, or a reminder: setup help, the recenter prompt's lead-in, keep your head still, recenter
                guidance. 18px (14px on phones), regular weight, softer (white 72 %).
     action     the list or the button: a larger gap before it than between the lines.
   One colour and one shadow for all. Last in the file on purpose: it outranks the older per-screen rules. */
:root{--instruction-size:clamp(22px,2.6vw,28px);--instruction-secondary:18px;--instruction-gap:var(--beam-space-12);--list-gap:28px;--action-gap:40px;--instruction-shadow:0 2px 5px #000,0 0 12px #000}
@media (max-width:600px),(pointer:coarse) and (max-height:500px){:root{--instruction-size:18px;--instruction-secondary:14px;--instruction-gap:var(--beam-space-8);--list-gap:var(--beam-space-16);--action-gap:var(--beam-space-24)}}
:is(body.control-start #onboarding #onboarding-text,#onboarding[data-step=head] #onboarding-text,#onboarding[data-step=eyes] #onboarding-text,body #controls-introduction,body #combined-introduction,body .hint-text,body #find p.find-title,#onboarding #onboarding-instruction,#onboarding #eye-objective-guidance,body #recenter-guidance){
  font:700 var(--instruction-size)/1.3 "Lato",sans-serif;letter-spacing:0;color:var(--beam-color-text-primary);background:none;-webkit-text-fill-color:currentColor;filter:none;text-shadow:var(--instruction-shadow);text-wrap:balance}
:is(html body.control-start #onboarding #onboarding-instruction,#onboarding #eye-objective-guidance,body #recenter-guidance){font-size:var(--instruction-secondary);font-weight:400;line-height:1.4;color:rgba(255,255,255,.72)}   /* the first selector lifts the group above the primary rule */
/* Focus moves to the instruction for screen readers; it is not a control, so no ring around the text */
:is(#onboarding-text,#combined-introduction,#controls-introduction):focus{outline:none}
/* Setup speaks the same way: its question is a primary line, its help a secondary one */
#loader .setup-title{font:700 var(--instruction-size)/1.3 "Lato",sans-serif;margin:0 0 var(--instruction-gap);text-wrap:balance}
#loader .setup-help,#loader #experience-guidance{font-size:var(--instruction-secondary);font-weight:400;line-height:1.4;color:rgba(255,255,255,.72);margin:0 0 28px;text-wrap:balance}
/* One instruction layout for every screen over the cockpit (the exercise introductions, the exercises, their
   completion card, the combined introduction). The main instruction always starts at --instruction-top; the
   secondary line, the list or the card flow down from it. Recenter Tracking, Skip this and Continue always stand at
   --action-top, one fixed distance below (room for the tallest content: three objectives or the card). The block is
   centred on the screen and never rises into the progress path. Nothing here may carry a transform: the actions are
   fixed to the viewport, not to the panel. Calibration keeps its own place: the target and its words at the centre. */
:root{--instruction-block:360px;--instruction-top:max(calc(var(--inset-top) + 120px),calc(50dvh - (var(--instruction-block) + 64px) / 2));--action-top:min(calc(var(--instruction-top) + var(--instruction-block)),calc(100dvh - var(--beam-size-control) - 10px))}   /* the slot never leaves the screen */
@media (max-width:600px){:root{--instruction-block:250px;--instruction-top:max(calc(var(--inset-top) + 190px),calc(50dvh - (var(--instruction-block) + 44px) / 2))}}
@media (max-height:500px){:root{--instruction-block:190px;--instruction-top:max(calc(var(--inset-top) + 80px),calc(50dvh - (var(--instruction-block) + 48px) / 2))}   /* clear of the path, lower as the screen grows, and the same on every screen whatever shows (Bastjan, 2026-10-29: canonical) */
  .btn,#problem .btn,#title-start,#title-camera,#onboarding #continue-objectives,#onboarding #skip-objectives,body.control-start #onboarding #recenter-demo,#find #desktop-cta{min-height:var(--beam-size-target)}}   /* short viewports, sideways phones among them: the compact block and the phone's one action height */
body #combined-introduction{top:var(--instruction-top);transform:translateX(-50%);width:max-content;max-width:calc(100vw - 48px)}   /* one line wherever it fits */
#onboarding.objectives-complete #tutorial-completion{margin-top:0}   /* the card takes the main instruction's place exactly */
@media (max-height:500px), (orientation:portrait){body:has(#onboarding.objectives-complete:not([hidden])) #recenter-reminder{display:none}}   /* Continue takes priority where Recenter Tracking can overlap the action slot. */
body.control-start #onboarding{justify-content:flex-start;gap:var(--instruction-gap);padding-top:var(--instruction-top);padding-bottom:0}
body.control-start #onboarding #recenter-demo{position:fixed;top:var(--action-top);left:50%;transform:translateX(-50%);margin:0}
#onboarding[data-step=head],#onboarding[data-step=eyes]{inset:var(--instruction-top) 0 auto 0;height:calc(var(--action-top) - var(--instruction-top));margin-inline:auto;padding-top:0;padding-bottom:0;transform:none;justify-content:flex-start;gap:0}   /* the panel spans the block exactly: from the instruction height to the action slot */
#onboarding[data-step=head] #onboarding-instruction,#onboarding[data-step=eyes] #onboarding-instruction,#onboarding[data-step=eyes] #eye-objective-guidance{margin-top:var(--instruction-gap)}   /* one line gap under the main line */
#onboarding #tutorial-objectives{margin-block:auto}   /* the list is centred between the lines above it and the action slot: the same room above and below (owner 2026-10-27) */
#onboarding #tutorial-completion{margin-top:var(--list-gap)}   /* the card stands apart from the lines above */
#onboarding #continue-objectives,#onboarding #skip-objectives{position:fixed;top:var(--action-top);left:50%;transform:translateX(-50%);margin:0}
/* Setup speaks the same layout: Continue stands in the action slot, fixed to the viewport, whatever the status line and
   the spinner do (owner 2026-10-27: no spinner may move a button). The question and its cards end one action gap over
   the slot; the status line and the privacy promise have their own fixed places under it. */
#loader{justify-content:flex-start}
#loader .welcome-setup{position:fixed;left:50%;bottom:calc(100dvh - var(--action-top) + var(--action-gap));transform:translateX(-50%);margin:0;max-width:calc(100vw - 48px)}   /* fixed, it ignores #loader's padding: the same 24px gutters, so the cards never touch the sides */
/* Sideways and under 400px tall there is no room under the action: the privacy line stands beside the webcam
   preview, its bottom on the preview's (Bastjan, 2026-10-29) */
/* Every landscape layout (500px tall or less): Recenter Tracking keeps its place at the bottom, so Skip this stands as plain
   text in the bottom-right corner, never over it, and the eye exercise's overlay switch one line above Skip this
   (Bastjan, 2026-10-30) */
@media (max-height:500px){
  html #onboarding #skip-objectives{top:auto;left:auto;right:var(--inset-right);bottom:var(--inset-bottom);transform:none;width:max-content;min-height:0;padding:6px 0;line-height:1.2}
  body.onboarding:has(#onboarding[data-step=eyes]) #quick{width:auto;bottom:calc(var(--inset-bottom) + 44px)}
}
/* Short sideways phones (360px tall or less): a size down */
@media (pointer:coarse) and (max-height:360px){
  #quick .q-row{min-height:0;height:auto;gap:10px;padding:5px 10px;font-size:12px}#quick{gap:4px}   /* every row of the controls compact, in the eye exercise and Test Drive alike */
  #quick .select-btn{height:28px;font-size:12px}
  #quick .toggle i{width:36px;height:18px}#quick .toggle i::after{top:2px;left:2px;width:14px;height:14px}#quick .toggle input:checked+i::after{transform:translateX(18px)}
  /* the header and the centre a size down: the path clear of the corner icons, nothing crammed (Bastjan, 2026-10-29) */
  :root{--brand-w:84px;--brand-h:32px;--instruction-size:15px;--instruction-secondary:12px}
  .logo img{height:32px;margin-left:-9px}
  .chrome-actions{gap:4px}html body .chrome-actions .icon-btn{width:34px;height:34px}.chrome-actions .icon-btn svg{width:17px;height:17px}
  .chrome-top .steps{--w:clamp(64px,calc((100vw - 380px) / 5),68px)}   /* wide enough for the longest word on one line (Augenbewegung), clear of the smaller corner icons */
  #tutorial-objectives{font-size:10px;gap:3px}.objective-mark{width:16px;height:16px;font-size:9px}
}
/* Phones, upright and sideways: Recenter Tracking keeps the introduction button's size and type in the exercises and
   in Test Drive alike, Finish on it at its width (Bastjan, 2026-10-29: no bigger than the screen before it) */
@media (max-width:600px), (pointer:coarse) and (max-height:500px){
  body #recenter-reminder{width:max-content}
  #recenter-action{min-height:var(--beam-size-target)}
  #recenter-action>span,body[data-state=live]:not(.onboarding) #finish-demo{font-size:13px}   /* Test Drive too: no bigger than in the exercises, Finish on it at its width (Bastjan, 2026-10-29) */
  #find #desktop-cta,#find .find-actions .btn{min-height:var(--beam-size-target);font-size:13px}   /* Get Beam's buttons: the same size and type as Finish and Recenter Tracking (Bastjan, 2026-10-29: canonical, only widths differ) */
  #find .return-icon{width:14px;height:14px}
}
/* Upright tablets (portrait, wider than a phone; Bastjan, 2026-10-30): the upright phone layout's placement. The path on a
   line of its own under the logo (the header row has no room for logo, path and icons side by side); the webcam preview
   centred at the bottom, and what stands at the bottom stands on it (its measured top, --feed-up); the controls at the
   top centre under the path, once Test Drive's opening line has gone */
@media (orientation:portrait) and (min-width:601px){
  .chrome-top .steps{top:calc(var(--inset-top) + var(--brand-h) + var(--beam-space-24))}
  body[data-state]:not(.no-lift) .feed.chrome-el{position:fixed;left:50%;right:auto;transform:translateX(-50%);bottom:calc(var(--inset-bottom) + var(--credit-h,17px) + 4px);margin:0}
  body[data-state] #recenter-reminder{bottom:calc(var(--feed-up,190px) + var(--beam-space-8));margin-bottom:0}
  body[data-state=live]:not(.onboarding) .cta{bottom:calc(var(--feed-up,190px) + var(--beam-space-8) + var(--reminder-h,48px) + var(--instruction-gap));margin-bottom:0}
  .chrome-bottom #privacy-text{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--feed-up,190px) + var(--beam-space-8));margin:0;width:max-content;max-width:calc(100vw - 40px)}
  html #find{--find-bottom:calc(var(--feed-up,190px) + var(--beam-space-8));--feed-clear:100vw}
  body[data-state=live] .quick{left:50%;right:auto;transform:translateX(-50%);top:calc(var(--path-bottom,170px) + var(--beam-space-24));bottom:auto}
  body.combined-intro .quick{visibility:hidden}
}
/* Upright phones (Bastjan, 2026-10-29): the webcam preview is placed once, centred at the very bottom over Credits, and
   never moves; what stands at the bottom stands on it (the exercises' Recenter Tracking, and in Test Drive Finish over
   Recenter Tracking, as on Get Beam), and the privacy lines open above it. The controls leave the bottom right for the
   top centre, under the path with room around them, once Test Drive's opening line has gone. */
@media (max-width:600px) and (min-height:501px){
  html #onboarding #skip-objectives{top:min(var(--action-top),calc(100dvh - var(--feed-top-up) - var(--beam-space-8) - var(--beam-size-target) * 2 - var(--instruction-gap)))}   /* short upright screens: the Skip this link rises just enough to clear Recenter Tracking standing on the preview; the action slot itself stays (Bastjan, 2026-10-29) */
  :root{--feed-top-up:calc(var(--inset-bottom) + var(--credit-h,17px) + 4px + clamp(72px,22vmin,211px) * 3 / 4 + 8px)}   /* the preview's top from the bottom, in CSS: its 4:3 video, 3px glass and 1px edge a side */
  :root{--action-top:min(calc(var(--instruction-top) + var(--instruction-block)),calc(100dvh - var(--feed-top-up) - var(--beam-space-8) - var(--beam-size-control)))}   /* the action slot stands on the preview as everything at the bottom does, never under it (a 320x568 phone); one fixed amount, so the same on every screen of a size */
  body[data-state]:not(.no-lift) .feed.chrome-el{position:fixed;left:50%;right:auto;transform:translateX(-50%);bottom:calc(var(--inset-bottom) + var(--credit-h,17px) + 4px);margin:0}
  body[data-state] #recenter-reminder{bottom:calc(var(--feed-top-up) + var(--beam-space-8));margin-bottom:0}
  body[data-state=live]:not(.onboarding) .cta{bottom:calc(var(--feed-top-up) + var(--beam-space-8) + var(--reminder-h,48px) + var(--instruction-gap));margin-bottom:0}
  .chrome-bottom #privacy-text{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--feed-top-up) + var(--beam-space-8));margin:0;width:max-content;max-width:calc(100vw - 40px)}
  body[data-state=live] .quick{left:50%;right:auto;transform:translateX(-50%);top:calc(var(--path-bottom,170px) + var(--beam-space-24));bottom:auto;width:min(320px,calc(100vw - 40px));gap:4px}
  body.combined-intro .quick{visibility:hidden}
  html #find{--find-bottom:calc(var(--feed-top-up) + var(--beam-space-8));--feed-clear:100vw;--verdict-room:0px}   /* Get Beam's buttons stand on the webcam preview, as everything at the bottom does upright, so nothing needs to clear it sideways */
}
/* A phone held sideways: the webcam preview sits on the bottom edge in every state, never lifted; Credits stands at its
   bottom right and the privacy lines open above it; the size help gives way to the tiles (Bastjan, 2026-10-29) */
@media (pointer:coarse) and (max-height:500px){
  body[data-state]:not(.no-lift) .feed.chrome-el{position:fixed;left:var(--inset-left);bottom:var(--inset-bottom);margin:0}
  .chrome-bottom .credits{position:fixed;left:calc(var(--feed-left,20px) + var(--feed-w,104px) + var(--beam-space-8));bottom:var(--inset-bottom);margin:0;text-align:left}
  .chrome-bottom #privacy-text{position:fixed;left:var(--feed-left,20px);bottom:calc(var(--feed-up,100px) + var(--beam-space-8));margin:0;max-width:calc(100vw - 40px)}
  #screen-size-help{display:none}
}
@media (pointer:coarse) and (max-height:500px){#loader .welcome-setup{max-width:calc(100vw - 2 * (max(var(--inset-left),var(--inset-right)) + 150px));top:var(--instruction-top);bottom:auto}   /* the question at the instruction top, as on every screen (Bastjan, 2026-10-29) */
  body #loader .welcome-setup>section{align-self:start}#screen-selected{display:none}}   /* the selected tile already says the size */   /* sideways: clear of the corner branding and controls, as #loader's padding intends */
#loader .welcome-setup>section{align-self:end}
#loader .welcome-setup{top:var(--instruction-top);bottom:auto}body #loader .welcome-setup>section{align-self:start}#screen-selected{display:none}   /* canonical in every format: the question at the instruction top, as every screen's instruction; the selected tile says the size (Bastjan, 2026-10-29) */
#loader #experience-selection{display:flex;flex-direction:column;box-sizing:border-box;height:calc(var(--action-top) - var(--instruction-top));padding-bottom:var(--instruction-gap)}
#loader #experience-selection .experience-cards{flex:0 1 auto;min-height:0;grid-template-rows:minmax(0,1fr);margin-block:auto}
#loader #experience-selection>:is(.setup-title,.setup-help):not(:has(~ .setup-help:not([hidden]))){margin-bottom:var(--instruction-gap)}   /* the same least room above the cards as under them */   /* centred between the question and Continue, as the size step's tiles (Bastjan, 2026-10-30) */
#loader .experience-card{display:flex;flex-direction:column}#loader .experience-card video{flex:0 1 auto;min-height:0}#loader .experience-card>span{flex:none}   /* the cards always end above Continue, in every language: the videos give up height when the lines above take more (Bastjan, 2026-10-29: canonical) */
#loader #screen-selection{display:flex;flex-direction:column;box-sizing:border-box;height:calc(var(--action-top) - var(--instruction-top))}
#loader #screen-presets{margin-top:auto}#loader #screen-preset{margin-bottom:auto}   /* the tiles and slider centred between the question and Continue, never crowding the question (Bastjan, 2026-10-29) */
#loader .welcome-actions{position:fixed;top:var(--action-top);left:50%;transform:translateX(-50%);margin:0}
body:not(.title-screen) #loader .setup-loading{position:fixed;top:var(--action-top);left:20px;right:20px;min-height:var(--beam-size-control);margin:0}   /* the status holds the action slot until ready (Bastjan, 2026-10-29) */
body.setup-waiting:not(.title-screen) #loader .welcome-actions{visibility:hidden;opacity:0;transition:none}   /* hidden at once; it fades in when ready */

/* Desktop: the webcam preview never moves and keeps the bottom-left floor in every state. In free play the recenter
   reminder keeps its own place too, centred at the bottom as during the exercises, and Finish stands right above it,
   one line gap up (owner 2026-10-27: nothing jumps to a new corner when play begins). */
@media (min-width:900px) and (min-height:561px){
  body[data-state=live]:not(.onboarding) .feed{bottom:auto}
  body[data-state=live]:not(.onboarding) #finish-demo{width:var(--reminder-w,260px);max-width:calc(100vw - 40px)}   /* as wide as the Recenter Tracking button under it (owner 2026-10-27), which grows with a long label */
}

/* Get Beam: no heading. One glass frame: the trailer (16:9, muted, looping, no controls), the trial under it and the
   platforms, centred between the path (--path-bottom, measured by app.js) and the two buttons at the very bottom
   (Bastjan, 2026-10-29: the frame centred; the trial follows it here, not the action slot). Return to Test Drive keeps
   the recenter reminder's place, and Is my game supported? stands one line gap over it, both the glass button and one
   width. Is my game supported? turns into the search field in its own place; its results and a picked game's
   celebration open upwards. The frame sits in the true middle between the path and the buttons (Bastjan,
   2026-10-29), and the trailer is as large as leaves a list gap on either side and the celebration's room. #find
   spans the viewport as a flex column that lets clicks through to the path and the chrome. */
#find{--offer-pad:16px;--cta-gap:24px;--offer-rest:150px;--verdict-room:104px;--actions-h:calc(var(--beam-size-control) * 2 + var(--instruction-gap));
  --find-top:var(--path-bottom,96px);--find-bottom:calc(var(--inset-bottom) + var(--credit-h,17px) + 4px);
  --feed-clear:calc(100vw - 2 * (var(--feed-left,20px) + var(--feed-w,220px) + var(--beam-space-16)));   /* centred and clear of the webcam preview, which stays on (Bastjan, 2026-10-29) */
  --trailer-w:min(960px,calc(100vw - 82px),calc(var(--feed-clear) - 42px),calc((100dvh - var(--find-top) - var(--find-bottom) - var(--actions-h) - var(--verdict-room) - var(--list-gap) * 2 - var(--offer-rest)) * 16 / 9));--trailer-h:calc(var(--trailer-w) * 9 / 16);
  position:fixed;inset:0;z-index:6;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;padding:var(--find-top) 20px var(--find-bottom);pointer-events:none}
#find>*{pointer-events:auto}
#find .desktop-offer{margin:auto 0;box-sizing:border-box;display:grid;grid-template-columns:minmax(var(--trailer-w),max-content);justify-items:center;padding:var(--offer-pad) 20px var(--cta-gap);
  border:1px solid var(--beam-glass-panel-edge);border-radius:var(--beam-glass-panel-radius);background:var(--beam-glass-panel-tint);backdrop-filter:var(--beam-recipe-panel-backdrop);-webkit-backdrop-filter:var(--beam-recipe-panel-backdrop);box-shadow:var(--beam-shadow-panel)}
#find .find-trailer{display:block;width:var(--trailer-w);height:var(--trailer-h);margin:0 0 var(--cta-gap);object-fit:cover;border-radius:var(--beam-radius-md);background:#000}
#find #desktop-cta{width:max-content;min-width:min(100%,360px);margin:0}   /* the screen's one obvious click: never narrower than the glass buttons under the frame, growing with a long label rather than breaking it, with room above and below (Bastjan, 2026-10-29) */
#find .desktop-platforms{margin:12px 0 0}
#find .find-actions{flex:none;box-sizing:border-box;display:flex;flex-direction:column;gap:var(--instruction-gap);width:min(320px,calc(100vw - 40px),var(--feed-clear))}
@media (max-width:600px){#find .find-actions,#find #desktop-cta{width:calc(100vw - 82px)}}   /* upright phones: Try Beam risk-free and the two buttons one width, the frame's inner width, so the purple button is never the smaller one; a short screen's smaller trailer does not narrow them (Bastjan, 2026-10-29) */
#find .find-actions .btn{width:100%;margin:0}   /* one width for both (Bastjan, 2026-10-29) */
@media (min-width:601px) and (min-height:501px){#find .find-actions{width:max-content;min-width:min(320px,calc(100vw - 40px),var(--feed-clear));max-width:min(calc(100vw - 40px),var(--feed-clear))}#find #desktop-cta{min-width:max(min(100%,360px),var(--find-pair-w,0px))}}   /* wide screens: the pair as wide as the longer label needs (Wird mein Spiel unterstützt?), one line each, still one width */
#find #keep-playing{gap:8px}
#find .return-icon{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}   /* the way back: a return arrow before the label (Bastjan, 2026-10-29) */
#find .find-search{position:relative;width:100%}
#find .find-actions .beam-guide-search input{height:var(--beam-size-control);padding-block:0}   /* the field takes the button's exact place */
#find .find-search .beam-games-wrap{position:absolute;left:0;right:0;bottom:calc(100% + var(--beam-space-12));margin:0;max-height:min(40dvh,320px);background:rgba(21,23,29,.92)}
/* While the results (or Not supported yet) are open the trailer gives way, so the frame shrinks to Try Beam risk-free and
   the platforms, and the list ends under the frame (--list-room, measured by app.js): Try Beam risk-free is never covered */
@media (min-height:501px){
  #find:has(.beam-games-wrap:not([hidden])) .find-trailer{display:none}
  #find:has(.beam-games-wrap:not([hidden])) .desktop-offer{padding-top:var(--cta-gap)}   /* without the trailer, the same room above Try Beam risk-free as under the platforms */
  #find .find-search .beam-games-wrap{max-height:min(40dvh,320px,var(--list-room,320px))}
  #find .find-search .beam-games-wrap:has(.beam-games-none:not([hidden])){left:50%;right:auto;transform:translateX(-50%);width:min(440px,calc(100vw - 40px))}
  @media (max-width:340px){#find .beam-games-none .none-demo{white-space:normal;text-wrap:balance;line-height:1.25;padding-block:6px}}   /* the narrowest phones: the label takes two balanced lines rather than overflow */
  @media (max-width:600px){#find:has(.beam-games-wrap:not([hidden])) .desktop-offer{margin-top:0}}   /* upright phones: while searching the frame moves up under the path, so the results get the room */   /* Not supported yet: wide enough for its button on one line, centred over the field */
}
#find .game-pick{display:flex;align-items:center;width:100%;padding:14px;border:0;background:none;color:inherit;font:inherit;font-weight:700;text-align:left;cursor:pointer}
#find .game-pick:focus-visible{outline:var(--beam-recipe-focus-ring);outline-offset:-2px;border-radius:var(--beam-radius-sm)}
/* A picked game: the objective's check and its spark (no new look), the line, and the setup guide in the reminder
   note's font */
#find .game-verdict{position:absolute;left:0;right:0;bottom:calc(100% + var(--beam-space-8));border-radius:var(--beam-radius-md);background:rgba(21,23,29,.92);text-align:left}
#find .game-verdict>a{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:0 10px;padding:8px 12px;border-radius:inherit;color:#fff;text-decoration:none}   /* the whole card is the link to the setup guide (Bastjan, 2026-10-29) */
#find .game-verdict>a:focus-visible{outline:var(--beam-recipe-focus-ring);outline-offset:var(--beam-focus-ring-offset)}
#find .game-verdict .beam-check{grid-row:span 2;width:24px;height:24px}
#find .game-verdict strong{position:relative;font-size:15px;line-height:1.3}
#find .game-verdict .beam-game-name{display:inline}
#find .game-verdict strong::after{content:"✦";margin-left:6px;font-size:14px;display:inline-block;animation:objective-spark .9s ease-out .15s both}
#find .game-verdict .verdict-guide{font-size:12px;font-weight:400;line-height:1.4;text-decoration:underline;opacity:.7}
#find .game-verdict>a:hover .verdict-guide,#find .game-verdict>a:focus-visible .verdict-guide{opacity:1}
@media(prefers-reduced-motion:reduce){#find .game-verdict strong::after{animation:none;display:none}}
body:has(#find:not([hidden])) #quick{visibility:hidden}   /* the controls are not needed on Get Beam; the webcam preview stays, in its place, since the camera and tracking keep running (Bastjan, 2026-10-29: the video must clearly still be on) */
@media (max-width:600px){#find{--verdict-room:84px}}   /* narrow: a picked game's line wraps, so more room over the buttons */   /* the phone's action height, as every other action button there */
/* Wide windows not tall enough for the two buttons stacked: side by side, still one width */
@media (min-height:501px) and (max-height:820px) and (min-width:1180px){   /* only where both fit beside the webcam preview */
  #find{--actions-h:var(--beam-size-control)}
  #find .find-actions{flex-direction:row;width:min(652px,var(--feed-clear))}
  #find .find-actions>*{flex:0 0 calc(50% - var(--instruction-gap) / 2);min-width:0}   /* exact halves: a share of free space would add the button's own padding on top */
}
/* A phone held sideways (or any window this short): the frame centred between the path and the bottom edge, with room
   under it as above it, its trailer as large as that allows, so nothing is cut off or crammed (Bastjan, 2026-10-30);
   Try Beam risk-free follows the frame, as on every other format. Is my game supported? and Return to Test Drive stand
   in a smaller stack beside it on the right, centred on Try Beam risk-free */
@media (max-height:500px){
  #find{--side-w:max(min(210px,calc(27vw - 20px)),var(--find-label-w,0px));--frame-rest:131px;   /* at least as wide as the longer label on one line (--find-label-w, measured by app.js) */   /* the frame without its trailer: padding, the button, the platform row, borders */
    --frame-bottom:calc(100dvh - var(--inset-bottom));   /* down to the bottom inset, level with the webcam preview's bottom edge on phones (Bastjan, 2026-10-30) */
    --trailer-w:min(calc(100vw - var(--feed-left,20px) - var(--feed-w,104px) - var(--beam-space-16) - 42px - var(--beam-space-16) - var(--side-w) - var(--inset-right,20px)),calc((var(--frame-bottom) - var(--path-bottom,70px) - var(--beam-space-16) - var(--frame-rest)) * 16 / 9));
    --frame-mid:calc((var(--path-bottom,70px) + var(--beam-space-16) + var(--frame-bottom)) / 2);display:block}
  /* The frame stays centred while the buttons beside it fit inside the right inset; only when they would not (one-line
     labels on a narrow phone) does it move left just enough */
  #find{--frame-w:calc(max(var(--trailer-w),var(--side-w)) + 42px);--frame-cx:max(calc(var(--feed-left,20px) + var(--feed-w,104px) + var(--beam-space-16) + var(--frame-w) / 2),min(50vw,calc(100vw - var(--inset-right,20px) - var(--side-w) - var(--beam-space-16) - var(--frame-w) / 2)))}   /* and never onto the webcam preview on the left: the trailer takes the room between the preview and the buttons */
  #find .desktop-offer{position:fixed;left:var(--frame-cx);top:var(--frame-mid);transform:translate(-50%,-50%);margin:0;grid-template-columns:max(var(--trailer-w),var(--side-w))}
  #find #desktop-cta{width:100%;min-width:0;min-height:var(--beam-size-target);font-size:13px;white-space:normal;line-height:1}   /* as wide as the trailer, never narrower than the glass buttons beside it, in their size and type */
  #find .find-actions{position:fixed;left:calc(var(--frame-cx) + var(--frame-w) / 2 + 16px);top:min(calc(var(--frame-mid) + (var(--trailer-h) + var(--frame-rest)) / 2 - var(--beam-size-target) * 2 - var(--instruction-gap)),calc(100dvh - var(--inset-bottom) - var(--beam-size-target) * 2 - var(--instruction-gap)));width:var(--side-w);padding:0}   /* at the bottom, level with the frame's bottom edge, so a no-match answer has the room over them */
  #find .find-actions .btn{min-height:var(--beam-size-target);padding:0 var(--beam-space-12);font-size:13px;line-height:1;white-space:nowrap}   /* one line each, the return arrow beside its label, as on every other format (Bastjan, 2026-11-12) */   /* every button's line spacing; two lines still fit the 44px of every button here */   /* a long label (Wird mein Spiel unterstützt?) takes two balanced lines rather than overflow */
  #find .find-actions .beam-guide-search input{height:var(--beam-size-target)}
  /* No match: the answer in its place over the search field, read in one view, never scrolled (Bastjan, 2026-10-30):
     readable type in a box as wide as the room allows, right-aligned over the field, growing upwards as far as it needs;
     its button in the size of every button here */
  #find .find-search .beam-games-wrap:has(.beam-games-none:not([hidden])){left:auto;right:0;width:min(560px,calc(100vw - 2 * var(--inset-right)));max-height:none;overflow:visible}
  #find .beam-games-none:not([hidden]){display:grid;grid-template-columns:1fr 160px;column-gap:14px;padding:12px 14px;font-size:12px;line-height:1.35}   /* two columns: the lines, then the free demo's button under the cross */
  #find .beam-games-none>:not(.none-close):not(.none-demo){grid-column:1}
  #find .beam-games-none strong{margin:0 0 4px;font-size:14px}
  #find .beam-games-none .none-bridge{margin-top:6px}
  #find .find-actions .beam-games-none .none-demo{grid-column:2;grid-row:1 / span 3;align-self:end;margin:30px 0 0;font-size:13px;line-height:1.15;padding:6px var(--beam-space-12);white-space:normal;text-wrap:balance}   /* in its column beside the lines, two balanced lines: one line would make the answer too tall for the screen */
  #find .beam-games-none .none-close{top:4px;right:4px}
  #find #keep-playing{gap:6px}
  #find .return-icon{width:14px;height:14px}
}
/* Tall screens (1200px and up): the two buttons stand right under the frame, frame and buttons centred together rather
   than pinned to the bottom; the results, the answer and a picked game then open below Return to Test Drive, where the
   room is (Bastjan, 2026-11-12) */
@media (min-height:1200px) and (min-width:601px){
  #find .desktop-offer{margin:auto 0 var(--list-gap,24px)}
  #find .find-actions{margin-bottom:auto}
  #find .find-search .beam-games-wrap,#find .game-verdict{bottom:auto;top:calc(100% + var(--instruction-gap) + var(--beam-size-control) + var(--beam-space-12))}
  #find .find-search .beam-games-wrap{max-height:min(40dvh,320px)}
}
/* A phone held sideways: typed results take the trailer's place in the frame, over Try Beam risk-free, where there is
   room to read them (Bastjan, 2026-11-12); the Not supported yet answer keeps its own card */
@media (max-height:500px){
  #find:has(.beam-games-wrap:not([hidden]):not(:has(.beam-games-none:not([hidden])))) .find-trailer,#find:has(.game-verdict:not([hidden])) .find-trailer{visibility:hidden}
  #find .game-verdict{position:fixed;left:calc(var(--frame-cx) - var(--trailer-w) / 2);top:calc(var(--frame-mid) - (var(--trailer-h) + var(--frame-rest)) / 2 + 1px + var(--offer-pad));bottom:auto;right:auto;width:var(--trailer-w);height:var(--trailer-h);box-sizing:border-box;display:grid;align-content:center;background:var(--beam-color-ground-top)}   /* a picked game's answer in the same place, solid over the trailer */
  #find .find-search .beam-games-wrap:not(:has(.beam-games-none:not([hidden]))){position:fixed;left:calc(var(--frame-cx) - var(--trailer-w) / 2);top:calc(var(--frame-mid) - (var(--trailer-h) + var(--frame-rest)) / 2 + 1px + var(--offer-pad));bottom:auto;right:auto;width:var(--trailer-w);height:var(--trailer-h);max-height:none;box-sizing:border-box;margin:0}
}
@media (max-height:500px) and (max-width:619px){#find{--side-w:min(210px,calc(27vw - 20px))}#find .find-actions .btn{white-space:normal;text-wrap:balance}}   /* narrower than the preview, the frame and both buttons on one line need: the labels take two balanced lines */
@media (max-height:360px){#find .desktop-platforms{display:none}#find .desktop-offer{padding-bottom:var(--beam-space-8)}#find{--frame-rest:94px}}   /* the shortest screens: the frame ends with the action */

/* ---------------------------------------------------------------- the frame: one model for every size
   (Bastjan, 2026-10-30: continuous, not chosen per format). app.js measures the header (placeHeader): the path in the
   row between the logo and the icons while it fits, else on a line of its own under the logo. The webcam preview grows
   with the screen's shorter side. Landscape, at any size: the preview in the bottom-left corner with Credits beside it
   and the privacy lines opening above it; Recenter Tracking (Finish on it) and Get Beam's buttons at the bottom centre;
   the controls in the bottom-right corner. Portrait, at any size: the preview centred at the bottom with Credits under
   it, and what stands at the bottom stands on it (the upright rules above). */
body.header-placed .chrome-top .steps .step{width:var(--step-w)}
body.header-placed:not(.title-screen) .chrome-top .steps{top:var(--path-top);left:var(--path-left,50%);transform:translateX(-50%)}
/* The logo and the corner icons grow with the screen's shorter side instead of jumping between three sizes */
:root{--brand-h:clamp(32px,10vmin,78px);--brand-w:calc(var(--brand-h) * 2.615)}
html .logo img{height:var(--brand-h);margin-left:calc(var(--brand-h) * -.28)}
html body .chrome-actions .icon-btn{width:clamp(34px,5.8vmin,44px);height:clamp(34px,5.8vmin,44px)}
/* Landscape screens taller than 500px: the shared action slot never lower than where it clears Recenter Tracking (with
   its hotkey line) at the bottom, so Skip this, an exercise's Continue and the welcome's trust row always have room; a
   fixed amount, so the slot is the same on every screen of a size */
@media (orientation:landscape) and (min-height:501px){
  :root{--action-top:min(calc(var(--instruction-top) + var(--instruction-block)),calc(100dvh - var(--inset-bottom) - 72px - var(--instruction-gap) - var(--beam-size-control)))}
}
@media (max-height:500px){body:has(#onboarding.objectives-complete:not([hidden])) #quick{visibility:hidden}}   /* the eye exercise's done card has the room */
html body #preview{width:clamp(96px,27.5vmin,211px);height:auto;aspect-ratio:4/3}
@media (orientation:landscape){
  html body .chrome-bottom{flex-wrap:nowrap}
  html body .footnote{flex-direction:row;align-items:flex-end;gap:var(--beam-space-12);max-width:none}
  html body[data-state] .chrome-bottom .feed.chrome-el{position:relative;left:auto;right:auto;top:auto;bottom:auto;transform:none;margin:0}
  html body .chrome-bottom .credits{margin:0;text-align:left}
  html body .chrome-bottom .credits summary{justify-content:flex-start}
  /* Opened, the credit lines stand above the preview in a narrow glass panel, as the privacy lines do, instead of
     stretching across the bottom and lifting the buttons (Bastjan, 2026-11-13: Credits had become huge and crowded the
     buttons). Only the word Credits stays beside the preview. */
  html body .chrome-bottom .credits[open]{padding:0;border:0;background:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;color:rgba(255,255,255,.7)}
  html body .chrome-bottom .credits .scene-credit{position:fixed;left:var(--feed-left,20px);bottom:calc(var(--feed-up,180px) + var(--beam-space-8));z-index:20;margin:0;box-sizing:border-box;width:max-content;max-width:min(360px,calc(100vw - 40px));padding:var(--beam-space-8) var(--beam-space-12);border:1px solid var(--glass-line);border-radius:var(--beam-radius-md);background:var(--beam-glass-panel-tint);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);box-shadow:var(--glass-edge);color:rgba(255,255,255,.85);text-align:left}
  html body .chrome-bottom #privacy-text{position:fixed;left:var(--feed-left,20px);transform:none;bottom:calc(var(--feed-up,180px) + var(--beam-space-8));margin:0;width:max-content;max-width:min(360px,calc(100vw - 40px));text-align:left;justify-content:flex-start}
  html body[data-state] #recenter-reminder{bottom:var(--inset-bottom);margin-bottom:0}
  html body[data-state=live]:not(.onboarding) .cta{bottom:calc(var(--inset-bottom) + var(--reminder-h,48px) + var(--instruction-gap));margin-bottom:0}
  html #find{--find-bottom:var(--inset-bottom)}
  html body[data-state=live] .quick{right:var(--inset-right);left:auto;top:auto;bottom:var(--inset-bottom);transform:none}
}
@media (orientation:landscape) and (max-height:500px){
  html body[data-state=live]:not(.onboarding) :is(.cta,#recenter-reminder){left:calc(var(--inset-left) + clamp(96px,27.5vmin,211px) + 8px + var(--beam-space-16));transform:none}   /* beside the webcam preview, clear of the controls on the right, on a phone held sideways (Bastjan, 2026-11-12) */
  html body[data-state=live].onboarding:has(#onboarding[data-step=eyes]) .quick{bottom:calc(var(--inset-bottom) + 44px)}   /* over Skip this in its corner */
}
@media (orientation:portrait){
  html body #preview{width:clamp(72px,22vmin,211px)}
  html body .footnote{flex:1 1 100%;max-width:none;align-items:center}
  html body .chrome-bottom .credits{text-align:center}
  html body .chrome-bottom .credits summary{justify-content:center}
}


/* The site's cookie bar (beam.eyeware.tech), its rules and values as the site draws them: the site's system font, a dark
   see-through strip along the bottom, Accept white with purple text, Decline outlined, both in capitals except in
   Japanese, Korean and Chinese; on narrow screens and on short ones (a phone on its side) the site's one-row form.
   While it shows, everything anchored to the bottom (--inset-bottom) stands above it. */
.cookie-bar{position:fixed;left:0;right:0;bottom:0;z-index:100000;background-color:#15171d9e;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Arial,Roboto,"Helvetica Neue",sans-serif;font-size:13px;font-weight:400;letter-spacing:0;line-height:20px;text-align:center;transition:opacity .5s ease}
.cookie-bar[hidden]{display:none}
.cookie-bar.is-leaving{opacity:0;pointer-events:none}
.cookie-bar *,.cookie-bar *::before,.cookie-bar *::after{box-sizing:border-box}
.cookie-bar-in{position:relative;display:block;width:100%;margin:0;padding:15px 30px;color:#fff;text-align:center}
.cookie-bar-text{display:inline-block;margin:0 0 6px;color:#fff;text-wrap:balance}
.cookie-bar-text:lang(ko){word-break:keep-all}
.cookie-bar-text:lang(ja){word-break:auto-phrase}
.cookie-bar-more{color:#fff;font-weight:inherit;text-decoration:underline;text-underline-offset:3px}
.cookie-bar-more:hover{color:#fff}
.cookie-bar-more:focus-visible{outline:2px solid #fff;outline-offset:2px}
.cookie-bar-row{display:inline}
.cookie-bar-choice{display:inline-grid;grid-auto-flow:column;grid-auto-columns:minmax(max-content,1fr);gap:8px;margin-left:10px;vertical-align:middle}
.cookie-bar-btn{position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:34px;margin:0;padding:5px 14px;border:1.5px solid transparent;border-radius:8px;font-family:-apple-system,BlinkMacSystemFont,Arial,Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:700;letter-spacing:.02em;line-height:1.25;text-align:center;text-transform:uppercase;text-decoration:none;text-shadow:none;white-space:nowrap;cursor:pointer;touch-action:manipulation;box-shadow:none;transition:background-color .15s,color .15s,border-color .15s,box-shadow .2s,transform .2s}
.cookie-bar-btn:is(:lang(ja),:lang(ko),:lang(zh)){text-transform:none}
.cookie-bar-btn::after{content:"";position:absolute;left:50%;top:50%;width:max(100% + 3px,44px);height:44px;transform:translate(-50%,-50%)}
.cookie-bar-btn:active{transform:translateY(0) scale(.98)}
.cookie-bar-accept{background-color:#fff;color:#6a52e8}
.cookie-bar-decline{background-color:transparent;border-color:#fff;color:#fff}
.cookie-bar-decline::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(#ffffff24,#fff0 40%);pointer-events:none;transition:opacity .2s}
.cookie-bar-accept:is(:hover,:focus-visible){background:linear-gradient(180deg,#fff 0%,#fff 48%,#f2efff 52%);border-color:transparent;color:#6a52e8;box-shadow:inset 0 1px 0 #fff,inset 0 -2px 3px rgba(0,0,0,.07),0 2px 4px rgba(0,0,0,.08),0 12px 24px -8px rgba(0,0,0,.36);transform:translateY(-1px)}
.cookie-bar-decline:is(:hover,:focus-visible){background:linear-gradient(180deg,rgba(255,255,255,.14) 0%,rgba(255,255,255,.04) 48%,rgba(255,255,255,0) 52%),rgba(255,255,255,.08);border-color:#fff6;color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 2px 4px rgba(0,0,0,.08),0 12px 24px -8px rgba(0,0,0,.36);transform:translateY(-1px)}
.cookie-bar-decline:is(:hover,:focus-visible)::before{background:none}
.cookie-bar-btn:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media(max-width:900px){.cookie-bar-text,.cookie-bar-row{display:block}.cookie-bar-choice{margin:0 5px 5px}}
@media(max-width:480px){.cookie-bar-in{padding:15px 25px}}
@media(max-width:767px),(max-height:500px){.cookie-bar{font-size:12.5px;line-height:1.35}.cookie-bar-in{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px));text-align:left}.cookie-bar-text{flex:1 1 170px;min-width:0;margin:0;text-align:left}.cookie-bar-row{flex:0 0 auto;margin-left:auto}.cookie-bar-choice{margin:0;gap:6px}.cookie-bar-btn{min-height:32px;padding:0 10px;font-size:12.5px}}
@media(max-height:500px){.cookie-bar{font-size:11px;line-height:1.3}.cookie-bar-in{padding:2px 12px calc(2px + env(safe-area-inset-bottom,0px))}.cookie-bar-btn{min-height:24px;padding:0 10px;font-size:11px}}   /* a phone on its side: smaller still, the row under the welcome's terms line */
@media(max-height:500px){:root.has-cookie-bar #title-terms{font-size:11px}}   /* and the terms line one size down while the bar shows */
@media(prefers-reduced-motion:reduce){.cookie-bar-btn,.cookie-bar-btn:is(:hover,:active,:focus-visible){transition:none;transform:none}}
:root.has-cookie-bar{--inset-bottom:calc(var(--cookie-h,0px) + 16px)}
:root.cookie-bar-tight #title-trust{visibility:hidden}   /* the trust row gives way where the bar would cover it (app.js fitCookieBar) */
