/* Washie: Storms and Suds (/game). The page is the game and nothing else, so the stage fills the
   screen the visitor can see, inside the phone's notch and home bar.

   Three parts: the page shell; the designer's chrome, taken from the art export's stylesheet with
   every rule kept under .frame (so it cannot restyle the site, and the site cannot restyle it);
   and the game's own additions. docs/GAME.md, "The view", says which part a new rule belongs in. */

/* ---- 0. The page's base ----
   The game page links this stylesheet and no other (src/views/public/page.ejs), so it carries the
   site's fonts the game sets its words in and the few base rules of the site's stylesheet that the
   page relied on. The faces are the Latin ones (with Latin-1:
   every Spanish letter and sign): Barlow 400 and 600 for words and numbers (the site's own files), and Saira Extra
   Condensed ExtraBold for display (public/assets/fonts/game/, its licence beside it), chosen to match the lettering of
   the arch and the STORM header (the designer's board type-study). Saira only for the game's name, shift names, the
   heading plates, word pops and the day badge's words, at 18 pixels or more; numbers always in Barlow, in figures of
   one width. */
@font-face{font-family:"Saira Extra Condensed";font-style:normal;font-weight:800;font-display:swap;src:url(/assets/fonts/game/saira-extra-condensed-800.woff2) format('woff2');unicode-range:U+0000-00FF}
@font-face{font-family:Barlow;font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/barlow-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Barlow;font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/barlow-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
*{box-sizing:border-box}
body{margin:0;background:#07122b;color:#e9eefb;font:17px/1.6 Barlow,system-ui,sans-serif}
img{max-width:100%;display:block}
a{color:#f0c790;text-decoration:none}
button{font:inherit;cursor:pointer;touch-action:manipulation}
a{touch-action:manipulation}
[hidden]{display:none!important}
:focus-visible{outline:3px solid #f0c790;outline-offset:4px}
h1,h2,h3{font-family:"Saira Extra Condensed",Barlow,sans-serif;font-weight:800;line-height:1.03;margin:0;color:#fff}
p{margin:0 0 20px;color:#a9b8d8}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;overflow:clip;clip:rect(0,0,0,0);white-space:nowrap}

/* ---- 1. The page shell ---- */
/* Every box that holds the game clips (`clip`, with `hidden` before it for a browser without it):
   a hidden box can still be scrolled by a script, a focus or an assistive tool, which slid the
   whole picture off the screen; a clipped one cannot (app.js also puts back any scroll at once). */
.game-shell{position:relative;box-sizing:border-box;width:100%;height:100vh;height:100dvh;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);overflow:hidden;overflow:clip;background:#07122b}
/* Where the browser reports the part of the screen it leaves the page (visualViewport), the shell is that tall (app.js). */
html[data-game-vh] .game-shell{height:var(--game-vh)}
.game-stage{position:relative;width:100%;height:100%;overflow:hidden;overflow:clip;touch-action:none;overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
/* Nothing on the game page scrolls, zooms, bounces or pulls to refresh: the page is exactly the
   screen, and a finger on it is the game's (the game also refuses Safari's pinch, src/client/game/app.js). */
html:has(body.page-game),body.page-game{height:100%;overflow:hidden;overflow:clip;overscroll-behavior:none;touch-action:none}
.game-stage *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.game-stage img{-webkit-user-drag:none;pointer-events:none}
.game-stage canvas{display:block;position:absolute;left:0;top:0}
/* The standing link home is for a keyboard and a screen reader: it shows when it is focused. The
   pause screen and every message carry a link home that is always in view. */
.game-home{position:absolute;z-index:9;top:calc(env(safe-area-inset-top) + 8px);left:calc(env(safe-area-inset-left) + 8px);padding:12px 16px;border-radius:10px;background:#07122b;border:1px solid #ffffff80;color:#fff;font-size:15px;line-height:1.3;transform:translateY(-300%)}
.game-home:focus{transform:none}
/* The Privacy Policy, beside the link home and shown the same way. */
.game-privacy{left:calc(env(safe-area-inset-left) + 136px)}
.game-overlay{position:absolute;z-index:8;inset:0}
.frame.game-message{position:absolute;inset:0;z-index:7}
/* The page's first paint: the game's title in the page's own HTML (src/views/public/game.ejs),
   over the engine's canvas until the game's own title takes its place. */
.frame.game-first{position:absolute;inset:0;z-index:6}

/* ---- 2. The designer's chrome (art export, ui/game.css) ---- */
.frame{--navy:#07122b;--panel:#0d1d40;--text:#f1f3f7;--soft:#d6dae2;--gold:#f0c790;--orange:#ef7a1e;--teal:#4fd0d6;--line:#ffffff2e;--ink:#0b1630}
.frame,.frame *{box-sizing:border-box}
.frame{font:15px/1.35 Barlow,system-ui,sans-serif;color:var(--text);-webkit-font-smoothing:antialiased}
.frame img{display:block}
.frame h1,.frame h2,.frame h3{font-family:"Saira Extra Condensed",Barlow,sans-serif;font-weight:800;line-height:1.02;margin:0;color:#fff}
.frame p{margin:0}
.frame{position:relative;overflow:hidden;overflow:clip;background:var(--navy)}
.frame .dim{position:absolute;inset:0;background:#040a1cc4;backdrop-filter:blur(3px)}
.frame .photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.frame .photo.top{object-position:50% 0}
.frame .mk{position:absolute;transform:translate(-50%,-100%);display:flex;flex-direction:column;align-items:center;pointer-events:none}
.frame .stem{position:absolute;width:2px;margin-left:-1px;background:#f6f8fc;box-shadow:0 0 0 1px #0b163066;transform-origin:50% 0}
.frame .bubble{position:relative;display:flex;align-items:center;gap:1px;padding:3px 5px;border-radius:11px;background:#f6f8fc;border:1.5px solid #0b163055;box-shadow:0 2px 6px #020a2066}
.frame .bubble img.o{width:24px;height:24px}
.frame .bubble .g-badge{position:absolute;right:-8px;bottom:-7px;width:20px;height:20px;border-radius:50%;background:#f6f8fc;border:1.5px solid #0b163077;display:grid;place-items:center;z-index:1}
.frame .bubble .g-badge img{width:15px;height:15px}
.frame .bubble:after{content:"";position:absolute;left:50%;bottom:-6px;width:9px;height:9px;margin-left:-5px;background:#f6f8fc;border-right:1.5px solid #0b163055;border-bottom:1.5px solid #0b163055;transform:rotate(45deg)}
.frame .bubble.sel{border:2.5px solid #ffb22e;box-shadow:0 0 0 2px #0b1630,0 2px 8px #020a2088}
.frame .bubble.sel:after{border-right:2.5px solid #ffb22e;border-bottom:2.5px solid #ffb22e}
.frame .feel{position:absolute;left:-12px;top:-12px;width:26px;height:26px;border-radius:50%;background:conic-gradient(#ffd66b calc(var(--p)*1%),#3a4666 0);display:grid;place-items:center;box-shadow:0 0 0 1.5px #0b1630,0 1px 4px #020a2088}
.frame .feel img{width:20px;height:20px}
.frame .feel.big{position:static;flex:none;width:34px;height:34px}
.frame .feel.big img{width:26px;height:26px}
.frame .prog{width:36px;height:36px;border-radius:50%;background:conic-gradient(#4fd0d6 calc(var(--p)*1%),#33405f 0);display:grid;place-items:center;box-shadow:0 0 0 1.5px #0b1630,0 2px 6px #020a2088}
.frame .prog>span{width:27px;height:27px;border-radius:50%;background:#f6f8fc;display:grid;place-items:center}
.frame .prog img{width:21px;height:21px}
.frame .prog.done{background:#4fd0d6}
.frame .say{display:flex;flex-direction:column;align-items:center}
.frame .say span{font:700 13px/1 Barlow,sans-serif;color:#0b1630;background:#ffc44d;border-radius:9px;padding:5px 9px;border:1.5px solid #0b1630;box-shadow:0 2px 6px #020a2088;white-space:nowrap}
.frame .say img{width:24px;height:24px;margin-top:1px;filter:drop-shadow(0 2px 2px #020a2088)}
/* A word of warning at its place: the same gold pill, its family icon before the words. */
.frame .say span.flag{display:flex;align-items:center;gap:5px;padding-left:6px}
.frame .mk .say span>img.icon{width:18px;height:18px;margin:0;transform:none;filter:none}
.frame .say.carry{margin-bottom:16px}
/* "Send me on": a held car's own pill, placed as a carried instruction is, over its bubble. */
.frame .nudge{position:absolute;transform:translate(-50%,calc(-100% - 16px));font:700 13px/1 Barlow,sans-serif;color:#0b1630;background:#ffc44d;border-radius:9px;padding:5px 9px;border:1.5px solid #0b1630;box-shadow:0 2px 6px #020a2088;white-space:nowrap;pointer-events:none}
/* "Tap a car": the words a car carries point down at it, with a small arrow in their gap. */
.frame .say.carry.point{margin-bottom:0}
.frame .say.carry.point img{width:16px;height:16px;margin-top:0}
/* Hung below its place (no room under the top bar): the words stand under the point, the arrow up. */
.frame .mk.below{transform:translate(-50%,0)}
.frame .mk.below .say{flex-direction:column-reverse}
.frame .mk.below .say img{transform:rotate(180deg);margin:0 0 1px}
.frame .zone{position:absolute;transform:translate(-50%,-50%);font:600 12px/1 Barlow,sans-serif;color:#fff;background:#07122be6;border:1px solid #ffffff66;border-radius:9px;padding:5px 8px;white-space:nowrap}
.frame .hud{position:absolute;left:8px;right:8px;top:8px;height:56px;display:grid;grid-template-columns:1fr 1fr 1fr 48px 48px;align-items:center;padding:0 4px 0 2px;background:#07122beb;border:1px solid var(--line);border-radius:14px;box-shadow:0 4px 14px #020a2066}
.frame .cell{display:flex;flex-direction:column;align-items:center;gap:3px;padding:0 4px;min-width:0}
.frame .cell+.cell{border-left:1px solid var(--line)}
.frame .cap{font:600 10.5px/1.1 Barlow,sans-serif;letter-spacing:.07em;text-transform:uppercase;color:var(--soft)}
.frame .val{display:flex;align-items:center;gap:4px;font:600 22px/1 Barlow,sans-serif;font-variant-numeric:tabular-nums;color:#fff}
.frame .val img{width:20px;height:20px}
.frame .strikes{display:flex;gap:4px;align-items:center;height:22px}
.frame .strike{width:21px;height:21px;border-radius:50%;border:1.5px dashed #d6dae2;display:grid;place-items:center}
.frame .strike.on{border:1.5px solid #ffcf5c;background:#3a1420}
.frame .strike img{width:16px;height:16px}
.frame .strike:not(.on) img{display:none}
.frame .ib{width:48px;height:48px;display:grid;place-items:center}
.frame .ib>span{width:38px;height:38px;border-radius:50%;background:#16264d;border:1px solid #ffffff66;display:grid;place-items:center}
.frame .ib img{width:21px;height:21px}
.frame .pausebars{display:flex;gap:5px}
.frame .pausebars i{display:block;width:5px;height:15px;border-radius:2px;background:#fff}
.frame .g-notice{display:flex;align-items:center;justify-content:center;min-height:40px;padding:2px 7px;border-radius:9px;background:#3a1420;border:1.5px solid #ffcf5c;font:700 13px/1.1 Barlow,sans-serif;color:#fff;text-align:center}
.frame .chip{position:absolute;left:8px;top:116px;max-width:calc(100% - 64px);font:800 18px/1.1 "Saira Extra Condensed",Barlow,sans-serif;color:#fff;background:#07122be6;border:1px solid var(--line);border-radius:10px;padding:5px 9px}
.frame .g-narrow .val{font-size:20px;gap:3px}
.frame .g-narrow .val img{width:17px;height:17px}
.frame .g-narrow .cap{font-size:10px;letter-spacing:.04em}
.frame .g-narrow .strike{width:19px;height:19px}
.frame .g-narrow .strike img{width:14px;height:14px}
.frame .g-narrow .strikes{gap:3px}
.frame .btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 20px;border-radius:50px;font:700 16px/1.15 Barlow,sans-serif;text-align:center;color:#fff;background:var(--orange);border:1px solid #ffba7944;box-shadow:0 6px 18px #ef7a1e40}
.frame .btn.ghost{background:#16264d;border:1px solid #ffffff80;box-shadow:none;color:#fff}
.frame .btn.block{display:flex;width:100%}
.frame .seg{display:inline-grid;grid-template-columns:1fr 1fr;padding:3px;border-radius:50px;background:#07122be6;border:1px solid #ffffff80}
.frame .seg span{min-height:42px;display:grid;place-items:center;padding:0 18px;border-radius:50px;font:600 15px/1 Barlow,sans-serif;color:#fff}
.frame .seg span.on{background:#f1f3f7;color:#0b1630}
.frame .switch{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:0 8px 0 20px;border-radius:50px;border:1px solid #ffffff80;background:#16264d;font:600 15px/1.15 Barlow,sans-serif;color:#fff}
.frame .switch i{flex:none;display:block;width:48px;height:30px;border-radius:15px;background:var(--teal);position:relative}
.frame .switch i:after{content:"";position:absolute;right:3px;top:3px;width:24px;height:24px;border-radius:50%;background:#07122b}
.frame .rowlink{display:flex;align-items:center;min-height:48px;color:var(--gold);font:600 17px/1.25 Barlow,sans-serif;text-decoration:underline;text-underline-offset:3px}
.frame .sheet{position:absolute;left:12px;right:12px;background:#0b1836ee;backdrop-filter:blur(8px);border:1px solid var(--line);border-radius:20px;padding:16px 16px 16px;box-shadow:0 14px 40px #020a2099}
.frame .sheet h2{font-size:30px}
.frame .g-stars{display:flex;align-items:center;gap:4px;margin:8px 0 4px}
.frame .g-stars img{width:34px;height:34px}
.frame .starsay{margin-left:8px;font:600 15px/1.2 Barlow,sans-serif;color:#fff}
.frame .scoreline{display:flex;align-items:baseline;gap:10px;margin-top:4px}
.frame .big{font:600 44px/1 Barlow,sans-serif;font-variant-numeric:tabular-nums;color:var(--gold)}
.frame .stack{display:grid;gap:9px}
.frame .pair{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.frame .age{position:absolute;left:12px;right:12px;background:#0b1836ee;backdrop-filter:blur(8px);border:1px solid var(--line);border-radius:18px;padding:13px 16px 15px}
.frame .age h3{font:800 19px/1.2 "Saira Extra Condensed",Barlow,sans-serif;color:#fff;margin:0 0 10px}
.frame .age p{font-size:16px;line-height:1.4;color:#fff;min-height:28px;display:flex;align-items:center}
.frame .note{font-size:14px;color:var(--soft)}
.frame .picker{position:absolute;left:0;right:0;bottom:0;padding:11px 10px calc(12px + env(safe-area-inset-bottom,0px));background:#07122bf5;border-top:1px solid var(--line);border-radius:18px 18px 0 0;box-shadow:0 -8px 26px #020a2099}
.frame .picker p{font:700 15px/1.2 Barlow,sans-serif;color:#fff;margin:0 2px 8px}
.frame .picks{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.frame .pick{min-height:56px;border-radius:13px;background:#12224a;border:1px solid #ffffff66;display:flex;align-items:center;justify-content:center;gap:3px;padding:3px 4px}
.frame .pick img.o{width:26px;height:26px;flex:none}
.frame .pick img.t{height:30px;width:auto;min-width:0;max-width:calc(100% - 30px);object-fit:contain}
.frame .picker.dock{position:static;border:1px solid var(--line);border-radius:16px;box-shadow:0 6px 20px #020a2066;padding:13px 14px 14px}
.frame .picker.dock .picks{grid-template-columns:1fr;gap:8px}
.frame .picker.dock .pick{justify-content:flex-start;padding:4px 14px;gap:14px;min-height:60px}
.frame .picker.dock .pick img.o{width:34px;height:34px}
.frame .picker.dock .pick img.t{height:44px;max-width:none}
.frame .legend h3{font:700 12px/1.2 Barlow,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--soft);margin:0 0 8px}
.frame .legend .keys{display:grid;gap:2px;margin-bottom:12px}
.frame .key{display:flex;align-items:center;gap:11px;min-height:40px;font-size:16px;color:#fff}
.frame .key span{flex:1;min-width:0}
.frame .fact{font-size:15px;line-height:1.3;color:#fff;min-height:23px}
.frame .g-lead{font:600 18px/1.35 Barlow,sans-serif;color:#fff}
.frame .key img{width:32px;height:32px;flex:none}
.frame .key img.t{height:34px;width:auto;margin-left:auto}
.frame .key .demo{flex:none;width:44px;height:42px;display:flex;align-items:center}
.frame .key .demo .bubble:after{display:none}
.frame .title-top{position:absolute;left:0;right:0;top:0;padding:22px 22px 70px;background:linear-gradient(#07122bf2 0%,#07122bd0 58%,#07122b00 100%)}
.frame .title-top img.logo{width:104px;height:104px;margin:0 0 10px -6px}
.frame .title-top .name{font-size:45px;letter-spacing:.2px}
.frame .title-top .name em{display:block;font-style:normal;color:var(--gold)}
.frame .title-top p{margin-top:10px;font-size:17px;line-height:1.4;color:#fff;max-width:300px}
.frame .title-bottom{position:absolute;left:0;right:0;bottom:0;padding:70px 22px calc(22px + env(safe-area-inset-bottom,0px));display:grid;gap:12px;justify-items:center;background:linear-gradient(#07122b00 0%,#07122bd9 60%,#07122bf2 100%)}
.frame .title-bottom .btn{min-height:60px;width:100%;max-width:300px;font-size:22px}
.frame .langrow{display:flex;align-items:center;gap:10px;font:600 14px/1 Barlow,sans-serif;color:#fff}
.frame .dock{position:absolute;top:16px;width:258px;display:flex;flex-direction:column;gap:10px}
.frame .card{background:#07122bee;border:1px solid var(--line);border-radius:16px;padding:13px 15px;box-shadow:0 6px 20px #020a2066}
.frame .card h3{font:700 12px/1.2 Barlow,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--soft);margin-bottom:8px}
.frame .stat{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid var(--line)}
.frame .stat:last-child{border-bottom:0;padding-bottom:0}
.frame .stat span{color:var(--soft);font-size:15px}
.frame .stat b{display:flex;align-items:center;gap:6px;font:600 26px/1 Barlow,sans-serif;font-variant-numeric:tabular-nums;color:#fff}
.frame .stat b img{width:23px;height:23px}
.frame .g-brand{display:flex;align-items:center;gap:11px}
.frame .g-brand img{width:50px;height:50px}
.frame .g-brand b{font:800 20px/1.05 "Saira Extra Condensed",Barlow,sans-serif;color:#fff}
.frame .g-brand b em{display:block;font-style:normal;color:var(--gold)}
.frame .wbtns{display:flex;gap:8px}
.frame .wbtns .btn{flex:1;padding:8px 10px;font-size:15px}
.frame .col{position:absolute;left:12px;right:12px;top:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:10px;justify-content:flex-end}
.frame .col.mid{justify-content:center}
.frame .flow{position:static}
.frame .sheet.flow h2+.legend{margin-top:12px}
.frame .sheet .legend .key{min-height:31px}
.frame .sheet .legend .key>img.t{height:30px}
.frame .legend .keys{margin-bottom:10px}
.frame .sheet .legend+.btn{margin-top:12px}
.frame .mini{position:absolute;right:8px;top:70px;width:164px;background:#07122bf2;border:1px solid var(--line);border-radius:14px;padding:9px 10px 7px;box-shadow:0 4px 14px #020a2066}
.frame .mini .key span{line-height:1.1}
.frame .mini .key .demo{width:30px;height:28px}
.frame .mini .key .demo .bubble{padding:2px 3px;border-radius:8px}
.frame .mini .key .demo .bubble img.o{width:16px;height:16px}
.frame .mini .key .demo .bubble .g-badge{width:14px;height:14px;right:-6px;bottom:-5px}
.frame .mini .key .demo .bubble .g-badge img{width:10px;height:10px}
.frame .mini h3{font:700 10.5px/1.25 Barlow,sans-serif;letter-spacing:.03em;text-transform:uppercase;white-space:nowrap;color:var(--soft);margin:0 0 2px 0}
.frame .mini h3~h3{margin-top:7px}
.frame .mini .key{min-height:22px;gap:8px;font-size:13.5px}
.frame .mini .key img{width:21px;height:21px}
.frame .mini .feel.big{width:23px;height:23px}
.frame .mini .feel.big img{width:17px;height:17px}
.frame .mini .x{position:absolute;right:-7px;top:-7px;width:48px;height:48px;display:grid;place-items:center}
.frame .mini .x i{display:block;width:26px;height:26px;border-radius:50%;background:#16264d;border:1px solid #ffffff80;position:relative}
.frame .mini .x i:before,.frame .mini .x i:after{content:"";position:absolute;left:6px;right:6px;top:11px;height:2px;border-radius:1px;background:#fff;transform:rotate(45deg)}
.frame .mini .x i:after{transform:rotate(-45deg)}
.frame .widetitle{position:absolute;left:64px;top:64px;width:560px}
.frame .widetitle img.logo{width:136px;height:136px;margin:0 0 12px -8px}
.frame .widetitle .name{font-size:68px}
.frame .widetitle .name em{display:block;font-style:normal;color:var(--gold)}
.frame .widetitle p{margin:18px 0 28px;font-size:20px;color:#fff}
.frame .widetitle .btn{min-height:64px;width:260px;font-size:23px}
.frame .widetitle .langrow{margin-top:20px}
.frame .turn{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:0 70px;text-align:center}
.frame .turn img{width:92px;height:92px}
.frame .turn h2{font-size:32px}
.frame .dock .legend .key{min-height:36px;font-size:15px}
.frame .dock .legend .key img{width:28px;height:28px}
.frame .dock .legend .feel.big{width:30px;height:30px}
.frame .dock .legend .key .feel.big img{width:23px;height:23px}
.frame .dock .legend .keys{margin-bottom:6px}
.frame .dock .wbtns{margin-top:10px}
.frame .tight{left:8px;right:8px;top:8px;bottom:calc(8px + env(safe-area-inset-bottom,0px));gap:8px}
.frame .tight .sheet{padding:12px 13px 13px}
.frame .tight .sheet h2{font-size:27px}
.frame .tight .g-stars img{width:30px;height:30px}
.frame .tight .starsay{font-size:14px;margin-left:6px}
.frame .tight .big{font-size:38px}
.frame .tight .age{padding:11px 13px 13px}
.frame .tight .age h3{font-size:18px;margin-bottom:8px}
.frame .tight .btn{padding:8px 12px;font-size:15px}
.frame .tight .stack,.frame .tight .pair{gap:8px}
.frame .dock .legend .key .demo{width:44px;height:42px}
.frame .dock .legend .key{gap:11px}
.frame .dock .legend .key>img,.frame .dock .legend .key>.feel{margin:0 8px}
.frame .key .demo .bubble img.o{width:24px;height:24px}
.frame .key .demo .bubble .g-badge img{width:15px;height:15px}
/* S4 G5, the page chrome polished (the export's ui/game.css, its G5 block), every rule under .frame. Colour, one
   meaning each: orange (--orange) the one action on a screen; --now gold "now" and selection (a selected perk, tile or
   row, the step to press, "New"); teal (--teal) progress; --red strikes and leaving; white and --soft for text. The
   logo's own gold (--gold) is for the name "Storms and Suds" only. No beige, never text on a tint of its own colour. */
.frame{--now:#ffc44d;--red:#ff5a4f;--plate:#1a8cff;--cyan:#4cc9f0}
/* Headings: the menu board's slanted plate (blue, an ink edge, the cyan offset outline), white heavy italic. */
.frame .sheet h2,.frame .plate{position:relative;display:inline-block;align-self:flex-start;max-width:calc(100% - 8px);margin:2px 0 10px 3px;padding:6px 16px 7px 13px;font:800 26px/1.05 "Saira Extra Condensed",Barlow,sans-serif;letter-spacing:.01em;color:#fff;background:var(--plate);border:2px solid var(--ink);transform:skewX(-9deg);isolation:isolate}
.frame .sheet h2::after,.frame .plate::after{content:"";position:absolute;inset:-2px;transform:translate(5px,5px);border:2px solid var(--cyan);z-index:-1;pointer-events:none}
.frame .tight .sheet h2{font-size:24px}
/* The line above a heading: sentence case, quiet; it never restates the heading. Sub-heads too: no shouting. */
.frame .eyebrow{font:600 13px/1.25 Barlow,sans-serif;letter-spacing:0;text-transform:none;color:var(--soft);margin-bottom:6px}
.frame .legend h3,.frame .card h3,.frame .mini h3{font:700 13px/1.1 Barlow,sans-serif;letter-spacing:0;text-transform:none;color:var(--soft)}
.frame .mini h3{font-size:11.5px;line-height:1.14}
/* The legend is the tallest sheet: its plate is smaller and sits straight on the rows, so the legend stays as tall as it
   was and whole on every screen it fitted before. */
.frame .sheet.legendsheet h2{font-size:20px;padding:3px 12px 4px 10px;margin-bottom:8px}
.frame .sheet.flow.legendsheet h2+.legend{margin-top:0}
@media (max-height:620px){.frame .sheet.legendsheet h2{font-size:19px;padding:2px 11px 3px 9px;margin-bottom:6px}}
/* A number is a number, not "now": white, in fixed-width digits. */
.frame .big{color:#fff;font-variant-numeric:tabular-nums}
.frame .rowlink{color:#fff}
/* Place words on the lot ("Waiting", "In", "Out", "Self-service", "Vacuums"): small slanted plates, the headings'
   family, never a tooltip. Each stays inside the room the markers' solver keeps for it (view/model.js, wordCharPx,
   wordPadPx, wordTallPx: 24 high, 18 plus 6.4 a letter wide), slant included; a new face must be measured again. */
.frame .zone{font:600 11.5px/1 Barlow,sans-serif;letter-spacing:0;color:#fff;background:var(--plate);border:1.5px solid var(--ink);border-radius:0;padding:4.5px 5px 4.5px;transform:translate(-50%,-50%) skewX(-9deg);box-shadow:2px 2px 0 #0b163099}

/* ---- 3. The game's own additions ---- */
.frame [hidden]{display:none!important}
.frame button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
/* The focus ring is white (gold means selection), and only for the keyboard: none after a finger or a mouse. */
.frame button:focus-visible,.frame a:focus-visible{outline:3px solid #fff;outline-offset:3px}
.game-stage[data-pointer] button:focus-visible,.game-stage[data-pointer] a:focus-visible{outline:none}
.frame a.btn{text-decoration:none}
.frame .btn[disabled]{opacity:.55;cursor:default}
/* The lot's own layer: its children are placed in the frame's pixels, and the layer is moved (and,
   on the wide frame, scaled) to sit exactly over the canvas. */
.frame .lot{position:absolute;left:0;top:0;z-index:1;transform-origin:0 0;pointer-events:none}
/* Every press on the lot is taken by the pad under the squares and settled by where it fell
   (src/client/game/view/hit.js), so nothing on the lot may scroll, zoom, select or open a menu. */
.frame .pad{position:absolute;inset:0;pointer-events:auto;touch-action:none}
.frame .tap{position:absolute;pointer-events:auto;border-radius:12px;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.frame .tap:focus-visible{outline-offset:-3px}
.frame .ui{position:absolute;inset:0;z-index:2;pointer-events:none}
.frame .ui>*{pointer-events:auto}
/* What is over the lot and is not a control takes no press: the shift's name, and the body of the
   first shift's legend (its cross is the control). A press there goes to what is under it. */
.frame .ui>.chip,.frame .ui>.mini{pointer-events:none}
.frame .mini .x{pointer-events:auto}
/* The compact legend opens from a "?" under the top bar, clear of the pause button. It sits on the
   right, or on the left when the right would cover an open spot or the instruction. */
.frame .help{position:absolute;left:4px;top:66px;width:48px;height:48px;display:grid;place-items:center}
.frame .help>span{width:32px;height:32px;border-radius:50%;background:#16264dee;border:1px solid #ffffff80;display:grid;place-items:center;font:600 18px/1 Barlow,sans-serif;color:#fff;box-shadow:0 2px 6px #020a2088}
.frame .mini{top:78px}
/* The compact top bar (view/lot.js, compactChrome), on every phone: one row 44 tall from 4 down: the
   time, the score, the strikes, the goal (its words, or its count where the row leaves too little
   room), the rain countdown in a downpour, the "?" and pause, without their small labels. The sound
   switch is on the pause screen. Its buttons keep their 48-pixel squares, 2 past the row. The goal
   chip, the countdown and the "?" are moved into .hud (view/chrome.js); the classes are the usual ones,
   for a later look to restyle: .frame.compact .hud, .cell, .val, .strikes, .chips, .rainchip, .help, .pausebtn. */
/* Across the row nothing changes width in play, so the goal's words or count, chosen when the row is
   laid out (view/chrome.js), stay whole: the time and the score in figures of one width, the score's
   cell wide enough for five figures with the chain under it or a strike's notice, the "?" keeping its
   place while the legend it opened is up. The goal chip (or the countdown) takes what is left, up to
   its most, and the buttons stand at the row's end. */
.frame.compact .hud{left:4px;right:4px;top:4px;height:44px;display:flex;align-items:center;gap:2px;padding:0 2px}
.frame.compact .hud .cell{flex:none;padding:0 4px}
.frame.compact .hud .cell:nth-child(2){flex:0 0 70px}
.frame.compact .hud .cap,.frame.compact .hud .val img{display:none}
.frame.compact .hud .val{font-size:18px;font-variant-numeric:tabular-nums}
.frame.compact .hud .chain{margin-top:1px}
.frame.compact .hud .g-notice{max-width:100%;min-height:38px;padding:1px 5px;font-size:12px}
.frame.compact .hud .strike{width:17px;height:17px}
.frame.compact .hud .strike img{width:13px;height:13px}
.frame.compact .hud .strikes{gap:2px}
.frame.compact .hud .chips,.frame.compact .hud .rainchip,.frame.compact .hud .help{position:static;flex:none}
.frame.compact .hud .chips,.frame.compact .hud .rainchip{flex:0 1 auto;min-width:0;margin-right:auto}
.frame.compact .hud .goalchip{min-width:0;overflow:hidden}
.frame.compact .hud .chips{max-width:176px}
.frame.compact .hud .goalchip,.frame.compact .hud .rainchip{height:30px;padding:0 6px;gap:4px;width:auto}
.frame.compact .hud .goalchip img{width:18px;height:18px}
/* A count the row cannot hold beside its icon shows alone (view/chrome.js, `bare`). */
.frame.compact .hud .goalchip.bare img{display:none}
.frame.compact .hud .rainchip:not([hidden])+.help{margin-left:0}
.frame.compact .hud:has(.rainchip:not([hidden])) .chips{display:none}
.frame.compact .hud .help,.frame.compact .hud .pausebtn{flex:none;width:48px;height:48px;margin:-2px 0}
.frame.compact .hud .help>span,.frame.compact .hud .pausebtn>span{width:36px;height:36px}
.frame.compact .hud .help[hidden]{display:grid;visibility:hidden}
.frame.compact .g-narrow .hud .help{display:none}
.frame.compact .mini{top:54px}
.frame.compact .chip{top:56px}
.frame .mini.left{right:auto;left:8px}
.frame .mini .x{right:-4px;top:-4px}
/* A wide screen too short for the legend's dock has the phone's "?" instead (view/chrome.js, fitDocks). */
.frame.wide:not(.short) .help{display:none}
.frame.wide.short .ui>.dock.keys{display:none}
.frame .dock.aside>.card{display:none}
/* The page's answer to a press on the lot where there is nothing to press: a small ring where the finger landed, at once. */
.frame .ping{position:absolute;width:26px;height:26px;margin:-13px 0 0 -13px;border-radius:50%;border:2px solid #ffffffb3;box-shadow:0 0 0 1.5px #0b163099;opacity:0;pointer-events:none}
.frame .ping.on{animation:game-ping .28s ease-out}
/* A refusal's few words, by the cross on the place that refused. */
.frame .nopesay{position:absolute;transform:translate(-50%,calc(-100% - 20px));padding:6px 11px;border-radius:10px;background:#0b1836f2;border:1.5px solid #ffffff73;box-shadow:0 2px 8px #020a20aa;font:700 13.5px/1.15 Barlow,sans-serif;color:#fff;white-space:nowrap;pointer-events:none}
.frame .nopesay.below{transform:translate(-50%,20px)}
@keyframes game-ping{0%{opacity:.95;transform:scale(.45)}100%{opacity:0;transform:scale(1.15)}}
@keyframes game-ping-still{0%{opacity:.95}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.frame .ping.on{animation:game-ping-still .2s linear}}
.frame.still .ping.on{animation:game-ping-still .2s linear}
/* Why a tap was refused: a cross and the reason in words, never colour alone. */
.frame .ui>.caption{position:absolute;left:8px;right:8px;top:70px;display:flex;justify-content:center;pointer-events:none}
.frame .caption span{display:flex;align-items:center;gap:8px;max-width:100%;padding:6px 11px 6px 8px;border-radius:10px;background:#3a1420;border:1.5px solid #ffcf5c;box-shadow:0 2px 8px #020a2088;font:700 14px/1.2 Barlow,sans-serif;color:#fff}
.frame .caption span:empty{display:none}
.frame .no{flex:none;position:relative;width:18px;height:18px;border-radius:50%;background:#fff}
.frame .no:before,.frame .no:after{content:"";position:absolute;left:4px;right:4px;top:8px;height:2px;border-radius:1px;background:#3a1420;transform:rotate(45deg)}
.frame .no:after{transform:rotate(-45deg)}
/* The cross: a pale disc with an ink X, the family's own look; no maroon, and no gold (gold is "now" and selection). */
.frame .nope{position:absolute;width:30px;height:30px;margin:-15px 0 0 -15px;border-radius:50%;background:#f6f8fc;border:2px solid var(--ink);box-shadow:0 2px 6px #020a2088;pointer-events:none}
.frame .nope:before,.frame .nope:after{content:"";position:absolute;left:6px;right:6px;top:11px;height:3px;border-radius:2px;background:var(--ink);transform:rotate(45deg)}
.frame .nope:after{transform:rotate(-45deg)}
/* The vacuum hold: the ring fills, and its last part is the marked window (a notch where it
   starts, a brighter track to the top). The instruction says "Let go" inside it. */
.frame .holdring{position:absolute;width:58px;height:58px;margin:-29px 0 0 -29px;border-radius:50%;display:grid;place-items:center;box-shadow:0 0 0 2px #0b1630,0 2px 8px #020a2088;pointer-events:none;background:conic-gradient(#4fd0d6 calc(var(--p)*1%),transparent 0),conic-gradient(#33405f calc(var(--w)*1%),#ffc44d 0)}
.frame .holdring>span{width:42px;height:42px;border-radius:50%;background:#f6f8fc;display:grid;place-items:center}
.frame .holdring img{width:28px;height:28px}
.frame .holdring>i{position:absolute;left:50%;top:-3px;width:3px;height:12px;margin-left:-1.5px;border-radius:1px;background:#0b1630;box-shadow:0 0 0 1px #f6f8fc;transform-origin:50% 32px;transform:rotate(calc(var(--w)*3.6deg))}
.frame .holdring.full{background:#4fd0d6}
/* The sheets: the wash picker (the designer's) and the dial. */
.frame .picker{z-index:3}
.frame .sheethead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 2px 6px}
.frame .sheethead p{margin:0}
.frame .closex{flex:none;width:48px;height:48px;margin:-10px -8px -8px 0;display:grid;place-items:center}
.frame .closex i{display:block;width:30px;height:30px;border-radius:50%;background:#16264d;border:1px solid #ffffff80;position:relative}
.frame .closex i:before,.frame .closex i:after{content:"";position:absolute;left:7px;right:7px;top:13px;height:2px;border-radius:1px;background:#fff;transform:rotate(45deg)}
.frame .closex i:after{transform:rotate(-45deg)}
.frame .pick{flex-direction:row}
.frame .pick .tagcol{display:flex;flex-direction:column;align-items:center;min-width:0;max-width:calc(100% - 30px)}
.frame .pick .tagcol img.t{max-width:100%}
.frame .pick .cost{margin-top:2px;font:700 13px/1 Barlow,sans-serif;color:#fff}
.frame .wants{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:0 2px 9px;font:600 13px/1.2 Barlow,sans-serif;color:var(--soft)}
.frame .wants b{display:inline-flex;align-items:center;min-height:26px;padding:3px 9px;border-radius:8px;background:#f6f8fc;color:#0b1630;font:700 13px/1.1 Barlow,sans-serif}
.frame .wants b.done{background:#33405f;color:#d6dae2;text-decoration:line-through}
.frame .sets{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.frame .set{min-height:48px;padding:3px 3px;border-radius:12px;background:#12224a;border:1px solid #ffffff66;font:600 13px/1.08 Barlow,sans-serif;color:#fff;text-align:center;overflow-wrap:anywhere;hyphens:none}
/* The dial's nine settings fill three rows of three (S4 G5: no hole in the grid), on a phone and docked beside the wide lot. */
.frame .picker.dock .sets{grid-template-columns:repeat(3,1fr)}
/* What this car asked for heads both sheets, in place of a title. */
.frame .sheethead .wants{margin:0;flex:1;min-width:0}
.frame .wants b.tier{gap:5px;padding:2px 9px 2px 4px}
.frame .wants b.tier img.o{width:22px;height:22px}
/* The dial (designer's board dial-sheet-360): the recipe as the settings' chips, done ones ticked; each setting its chip above its word; the next one outlined only where the dial is taught. */
.frame .wants>.say{flex:none}
.frame .dial .recipe{display:flex;align-items:center;gap:4px;padding:4px 7px;border-radius:12px;background:#f1f3f7}
.frame .dial .want{position:relative;width:30px;height:30px;border-radius:8px;display:grid;place-items:center}
.frame .dial .want img{width:28px;height:28px}
.frame .dial .want.done img{opacity:.35}
.frame .dial .want.done:after{content:"";position:absolute;left:9px;top:5px;width:9px;height:16px;border:solid #0b1630;border-width:0 3.5px 3.5px 0;transform:rotate(45deg)}
.frame .dial .then{display:block;width:7px;height:7px;border:solid #0b1630aa;border-width:2px 2px 0 0;transform:rotate(45deg);margin:0 1px 0 -2px}
/* Each setting is its chip above its word, centred, every word on one line, so the nine sit alike: beside their chips at
   393 wide, "Ceramic Seal" and "Foaming Brush" broke one word to a line between one-line neighbours (r2 visual QA, c02).
   On a phone the words are set solid, so the row is no taller than its tool and one line (R5.1, below). The narrow wide dock (73 pixels a button at 258 wide) has no room for "Foaming Brush" on
   one line, so there every word stands on its own line (it broke only "Tire Cleaner", "Foaming Brush" and "Ceramic
   Seal"), and every row is as tall as two lines. */
.frame .dial .set{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:48px;padding:3px 2px;text-align:center}
.frame .picker:not(.dock).dial .set span{white-space:nowrap;line-height:1}
.frame .picker.dock.dial .set{gap:3px;min-height:62px;padding:5px 2px 4px}
.frame .picker.dock.dial .set span{width:min-content;line-height:1.08}
.frame .picker.dock.dial .sets{grid-auto-rows:1fr}
/* The step this car is on, in its recipe: ringed in the selection gold. */
.frame .dial .want.now{box-shadow:0 0 0 2px var(--now)}
.frame .dial .set.next{border:2px solid var(--now);background:#1b2e5e}
/* R5.1: the settings are the wash's tools (docs/GAME.md, "Icons"), drawn at 48 pixels on a phone and 40 in the wide dock.
   A tool's art leaves a clear band inside its square (the soap's foam reaches 3 pixels from the top, its bucket 4 from the
   bottom, the spot-free drop 4 and 5), which the button lends back: the picture stands 2 pixels into the padding and its
   word comes up 4 pixels into the square, so a phone's row is 60 pixels, not 70. With the recipe row 4 pixels lower
   and the sheet's own edges 7 tighter, the dial covers 21 pixels more of the lot than with the 24-pixel chips, not 66.
   The outlined next setting's thicker border is taken from its padding, so the nine stay one height. */
.frame .dial .set img.setchip{width:48px;height:48px;flex:none;margin:-2px 0 -4px}
.frame .picker:not(.dock).dial{padding-top:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}
.frame .picker:not(.dock).dial .sheethead{margin-bottom:4px}
.frame .picker:not(.dock).dial .sets{gap:4px}
.frame .picker:not(.dock).dial .set{gap:0;min-height:60px;padding:2px 2px 1px}
.frame .picker:not(.dock).dial .set.next{padding:1px 1px 0}
.frame .dial .recipe{padding:3px 7px}
.frame .dial .want{width:28px;height:28px}
.frame .dial .want.done:after{left:8px;top:4px}
.frame .picker.dock.dial .set img.setchip{width:40px;height:40px;margin:-2px 0 -3px}
.frame .picker.dock.dial .set.next{padding:4px 1px 3px}
/* A wrong press on a sheet: its few words just above the button. */
.frame .sheetnope{z-index:5;transform:translate(-50%,-50%)}
/* A refusal's whole reason, for a screen reader only: its words are already by the finger. */
.frame .ui>.caption.heard{left:0;right:auto;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.frame .shake{animation:game-shake .3s}
@keyframes game-shake{20%{transform:translateX(-5px)}40%{transform:translateX(5px)}60%{transform:translateX(-4px)}80%{transform:translateX(3px)}}
@media (prefers-reduced-motion:reduce){.frame .shake{animation:none}}
.frame.still .shake{animation:none}
/* Whole screens over the stage: title, pause, the legend, results, turn-upright. */
.frame .screen{position:absolute;inset:0;z-index:5}
.frame .mini{z-index:2}
.frame .name{margin:0;font-family:"Saira Extra Condensed",Barlow,sans-serif;font-weight:800;line-height:1.02;color:#fff}
.frame .loading{display:grid;gap:8px;justify-items:center;width:100%;max-width:300px;min-height:60px;align-content:center}
.frame .loadbar{width:100%;height:14px;border-radius:7px;background:#16264d;border:1px solid #ffffff80;overflow:hidden}
.frame .loadbar i{display:block;height:100%;width:0;background:var(--teal)}
.frame .loadsay{font:600 15px/1.2 Barlow,sans-serif;color:#fff}
.frame .unsaved{max-width:300px;font-size:14px;line-height:1.35;color:var(--soft);text-align:center}
.frame .sheet.msg{bottom:20px}
.frame .sheet.msg .note{margin:6px 0}
/* A short screen (320 by 568): the legend's rows are tightened so its Back button stays on it. */
@media (max-height:620px){.frame .sheet .legend .key{min-height:26px;font-size:15px}.frame .sheet .legend .key>img{width:24px;height:24px}.frame .sheet .legend .key>img.t{width:auto;height:24px}.frame .sheet .legend .feel.big{width:26px;height:26px}.frame .sheet .legend .feel.big img{width:20px;height:20px}.frame .sheet .legend .key .demo{height:28px}.frame .sheet h2{font-size:24px}.frame .sheet .legend .keys{margin-bottom:6px}}
.frame .game-retry{margin-top:6px}
/* The wide frame: the top bar and the sheets become cards docked beside the lot. */
.frame.wide .hud,.frame.wide .chip,.frame.wide:not(.short) .mini{display:none}
.frame.wide .ui>.caption{top:16px}
.frame .dock{z-index:2}
.frame:not(.wide) .dock{display:none}
.frame .dock .picker{position:static}
.frame .dock .stat .strikes{height:26px}
.frame .dock .wbtns .btn{min-height:48px}
.frame.wide .col{left:50%;right:auto;width:420px;margin-left:-210px}
/* A lost shift's photo (results-<frame>-<look>-lost) has the jam at its foot, which the card must leave in sight. On a
   phone the photo ends just under the card's top edge (view/chrome.js, fitResults, sets its height), its foot there;
   on the wide frame the card stands at the right, and the photo, where the screen crops it, keeps its foot and its
   right edge, so the jam (left of its middle) goes left, away from the card. Under the photo the screen is the frame's
   navy, so nothing of the lot behind shows beside the card. */
.frame .screen[data-outcome="lost"]{background:var(--navy)}
.frame .screen[data-outcome="lost"]>.photo{object-position:50% 100%}
.frame.wide .screen[data-outcome="lost"]>.photo{object-position:100% 100%}
.frame.wide .screen[data-outcome="lost"] .col{left:auto;right:20px;margin-left:0}
/* A wide screen too short for the legend in one column (1024 by 500): it is wider, in two, what cars want beside how they feel. */
/* On a phone's browser 540 high or less (where the compact top bar is), the pause screen's legend
   is whole too: how cars feel two to a row, and the rows a little closer (541 high at 393 by 525, Back
   below the foot at 375 by 500, before). */
@media (max-height:540px){.frame:not(.wide) .sheet .legend .keys.feels{grid-template-columns:1fr 1fr;column-gap:8px}.frame:not(.wide) .sheet .legend .key{min-height:24px}.frame:not(.wide) .sheet .legend .fact{font-size:14px;min-height:0}.frame:not(.wide) .sheet .legend h3{margin-bottom:4px}}
@media (max-height:560px){.frame.wide .col{width:640px;margin-left:-320px}.frame.wide .sheet .legend{columns:2;column-gap:28px}.frame.wide .sheet .legend h3~h3{break-before:column;margin-top:0}.frame.wide .sheet .legend .key,.frame.wide .sheet .legend .fact{break-inside:avoid}}
.frame.wide .title-top{left:64px;right:auto;top:56px;width:560px;padding:0;background:none}
.frame.wide .title-top img.logo{width:136px;height:136px;margin:0 0 12px -8px}
.frame.wide .title-top .name{font-size:68px}
.frame.wide .title-top p{margin-top:18px;font-size:20px;max-width:none}
.frame.wide .title-bottom{left:64px;right:auto;bottom:auto;top:430px;width:300px;padding:0;background:none;justify-items:start}
.frame.wide .title-bottom .btn{min-height:64px;width:260px;font-size:23px}
.frame.wide .unsaved{text-align:left}
/* The pause heading stands clear of the buttons under it; leaving asks once. */
.frame .pausesheet h2,.frame .leave h2{margin-bottom:14px}
.frame .leave .note{margin:0 0 14px}
/* The title (S4 G5, board title-390): the photo shows from the top, the player's title on its own panel, Play the one
   action, then Choose a shift, and the Privacy link always there. The page's first paint has the same top and link. */
.frame .title-top{padding:16px 20px 46px;background:linear-gradient(#07122bd9 0%,#07122b99 62%,#07122b00 100%)}
.frame .title-top img.logo{width:84px;height:84px;margin:0 0 6px -4px}
.frame .rank{position:absolute;right:14px;top:16px;display:flex;align-items:center;gap:8px;padding:6px 12px 6px 6px;border-radius:14px;background:#0b1836ee;border:1px solid var(--line)}
.frame .rank img{width:34px;height:34px;flex:none}
.frame .rank b{display:block;font:700 14px/1.1 Barlow,sans-serif;color:#fff}
.frame .rank span{display:block;font-size:12px;line-height:1.2;color:var(--soft)}
.frame .title-bottom{gap:10px;padding-top:56px}
.frame .title-bottom .btn.ghost{width:100%;max-width:300px;min-height:52px;font-size:18px}
.frame .privacy{display:inline-flex;align-items:center;justify-content:center;min-height:48px;min-width:48px;padding:0 12px;font:600 15px/1 Barlow,sans-serif;color:#fff;text-decoration:underline;text-underline-offset:3px}
.frame.wide .title-bottom .btn.ghost{width:260px}
/* A wide screen 680 high or less (1024 by 600, 1024 by 500): a smaller top and Play higher, so Play, Choose a shift and
   the Privacy link are whole on the screen (at 1024 by 600 the link stood 14 pixels past the foot). */
@media (max-height:680px){.frame.wide .title-top{top:32px}.frame.wide .title-top img.logo{width:96px;height:96px;margin-bottom:10px}.frame.wide .title-top .name{font-size:52px}.frame.wide .title-top p{margin-top:10px;font-size:18px}.frame.wide .title-bottom{top:300px}}
/* Choosing a shift (board choose-shift-360): tiles that carry each shift's number, name and stars, by day. On a short
   screen the days scroll inside the sheet, and only they do. */
.frame .choosesheet{display:flex;flex-direction:column;max-height:100%}
.frame .choosesheet>.btn{flex:none;margin-top:12px}
.frame .days{display:grid;gap:8px;min-height:0;overflow-y:auto;touch-action:pan-y;overscroll-behavior:contain;padding:2px}
.frame .day h3{display:flex;align-items:center;gap:8px;margin:0 0 6px;font:700 15px/1.2 Barlow,sans-serif;color:#fff}
.frame .day h3 img{width:26px;height:26px;flex:none}
.frame .day h3 img.off{filter:grayscale(1);opacity:.35}
/* A day's badge whose picture has no address yet (a later screen's pictures are asked for only once it shows) keeps
   its place, so the day's name lines up with the others, and draws nothing: never a broken picture or a stand-in. */
.frame .day h3 img:not([src]),.frame .badgerow img:not([src]){visibility:hidden}
.frame .tiles{display:grid;grid-template-columns:1fr 1fr;gap:6px 7px}
.frame .tile{display:grid;grid-template-columns:26px 1fr;align-items:center;gap:2px 8px;min-height:56px;padding:6px 10px 6px 8px;border-radius:12px;background:#12224a;border:1px solid #ffffff55;color:#fff;text-align:left}
.frame .tile i{grid-row:span 2;font:800 24px/1 "Saira Extra Condensed",Barlow,sans-serif;color:#fff;text-align:center}
.frame .tile b{font:800 18px/1.02 "Saira Extra Condensed",Barlow,sans-serif;color:#fff}
.frame .tile .st{display:flex;gap:2px}
.frame .tile .st img{width:15px;height:15px}
.frame .tile.now{border:2px solid var(--now)}
.frame .tile.shut{background:#0e1a38;border-style:dashed;border-color:#ffffff38}
.frame .tile.shut b,.frame .tile.shut i{color:#aab3c5}
.frame .tile.shut .st{font-size:12px;color:#aab3c5}
/* On a screen 620 high or less the tiles are 48 high (the storm season's twelve fit from 568 high); where the days do not
   fit (with Snowbird Week's four, on phones and most desktops) they scroll, the Shift of the Day over them (its rules at
   the end of this file). */
@media (max-height:620px){.frame .choosesheet .tile{min-height:48px;padding:3px 10px 3px 8px}.frame .choosesheet .tile b{font-size:16px}.frame .choosesheet .tile .st img{width:13px;height:13px}.frame .days{gap:7px}.frame .day h3{margin-bottom:4px;font-size:14px}.frame .day h3 img{width:22px;height:22px}.frame .choosesheet>.btn{margin-top:8px}}
/* Each tile's title has the room of two lines, its words at the foot of it, over a row of stars (or "Not open yet") of
   one height, so a name on two lines ("Morning Commute" at 360 wide; Spanish names are longer) makes its tile no taller
   and its stars no lower than its neighbour's (r2 visual QA 2). The tile Play starts is ringed inside its edge, so it is
   no taller either. On a short screen the tiles keep their 48 pixels. The name is in the display face, Saira Extra
   Condensed ExtraBold, 18 pixels (16 where the tiles are 48 high), as the font decision has shift names; its number,
   stars and "Not open yet" are as they were (r2 visual QA 3: the names were in Barlow). */
.frame .tile{padding:5px 10px 5px 8px}
.frame .tile b{display:flex;align-items:flex-end;min-height:2.04em;line-height:1.02}
.frame .tile .st{height:15px;align-items:center;line-height:1}
.frame .tile.now{border:1px solid var(--now);box-shadow:inset 0 0 0 1px var(--now)}
@media (max-height:620px){.frame .choosesheet .tile{padding:2px 10px 2px 8px}.frame .choosesheet .tile b{font-size:16px}.frame .choosesheet .tile .st{height:13px}.frame .choosesheet .tile.shut .st{font-size:11px}}
/* Where the list of days goes on past its top or its foot (view/chrome.js, markDays), that edge fades, to two fifths and
   no further, so the row it cuts reads as cards going on (r2 visual QA 3: faded to nothing, the few pixels of the next
   row above Back read as left-over marks). */
.frame .days.more-below{-webkit-mask-image:linear-gradient(#000 calc(100% - 36px),#0006);mask-image:linear-gradient(#000 calc(100% - 36px),#0006)}
.frame .days.more-above{-webkit-mask-image:linear-gradient(#0006,#000 36px);mask-image:linear-gradient(#0006,#000 36px)}
.frame .days.more-above.more-below{-webkit-mask-image:linear-gradient(#0006,#000 36px,#000 calc(100% - 36px),#0006);mask-image:linear-gradient(#0006,#000 36px,#000 calc(100% - 36px),#0006)}
/* The chain, by the score, while it lifts points. */
.frame .hud .chain{font:800 11px/1 Barlow,sans-serif;color:#0b1630;background:#ffc44d;border-radius:7px;padding:2px 5px;margin-top:2px}
/* The goal counter: its own chip under the top bar at the left (board midshift-360-storm), just right of the "?", which keeps the corner clear of every tap square. */
/* The lot is fitted below these (view/lot.js, `phoneChrome`): the goal chip ends by 104 px down and
   176 px wide; the "?" by 114, and a downpour's countdown under it by 150, within 56 px of the left. */
.frame .chips{position:absolute;left:56px;top:70px;display:flex;gap:6px;align-items:center;max-width:176px;pointer-events:none}
.frame .goalchip,.frame .rainchip{display:flex;align-items:center;gap:6px;min-width:0;box-sizing:border-box;height:34px;font:700 13px/1.1 Barlow,sans-serif;color:#fff;background:#07122be6;border:1px solid var(--line);border-radius:10px;padding:0 9px;white-space:nowrap}
.frame .goalchip img{width:22px;height:22px;flex:none}
/* The "?" is the family's own help icon in its disc. */
.frame .help>span img{width:24px;height:24px}
/* The goal chip's tap on a phone: a clear 48-pixel button over the chip (a ring only for the keyboard); the goal's
   words in the instruction's gold pill under the bar for 2 seconds (view/chrome.js, sayGoal). */
.frame.compact .hud .chips{position:relative;left:auto;top:auto}
.frame .goaltap{position:absolute;left:50%;top:50%;width:max(100%,48px);height:48px;transform:translate(-50%,-50%);padding:0;border:0;border-radius:12px;background:none;pointer-events:auto}
.frame .goalsay{position:absolute;z-index:4;pointer-events:none}
.frame .rainchip{position:absolute;left:4px;top:116px;width:52px;justify-content:center;gap:2px;padding:0 2px;font-size:12px;background:#22305a;border-color:#7cc4ff99;pointer-events:none}
.frame .rainchip img{width:18px;height:18px;flex:none}
.frame.wide .chips{top:12px;left:50%;max-width:none;transform:translateX(-50%)}
.frame.wide .rainchip{top:12px;left:calc(50% + 96px);width:auto;padding:0 9px}
/* The card before a shift (board shift-card-360). */
.frame .cardsheet h2{font-size:26px}
.frame .cardsheet .goal{display:flex;align-items:center;gap:10px;margin:10px 0 8px;padding:9px 12px;border-radius:12px;background:#16264d;font:700 17px/1.2 Barlow,sans-serif;color:#fff}
.frame .cardsheet .goal img{width:30px;height:30px;flex:none}
.frame .starrow{display:flex;align-items:center;gap:10px;min-height:30px;font-size:15px;line-height:1.25;color:#fff}
.frame .starrow img{width:24px;height:24px;flex:none}
.frame .cardsheet .new{margin:8px 0 2px;font:600 15px/1.3 Barlow,sans-serif;color:var(--now)}
/* Its lines: each "New:" and each "Tip:" its own, the word in bold; a tip is white (gold is "now"). Each line names its
   own colour: the site's plain paragraph colour would win over the one it is in. */
.frame .cardsheet .new p{margin:0;color:var(--now)}
.frame .cardsheet .new p+p{margin-top:4px}
.frame .cardsheet .new b{font-weight:800}
.frame .cardsheet .new .tip{color:#fff}
.frame .cardsheet h3{font:700 15px/1.2 Barlow,sans-serif;letter-spacing:0;text-transform:none;color:#fff;margin:12px 0 7px}
.frame .cardsheet>.btn{margin-top:12px;min-height:54px;font-size:19px}
/* On a short screen (a phone's browser with its bars, 620 high or less) the card is tighter, so a
   card with three stars, a new thing and three perks is whole down to 375 by 500 with Start on the
   screen (it was 571 high there, and 582 at 320 by 568, cut at the top and the foot). Every perk and
   Start stay at least 48 high. */
@media (max-height:620px){
  .frame .tight .cardsheet h2{font-size:24px}
  .frame .tight .cardsheet .goal{margin:6px 0 4px;padding:6px 10px;font-size:15px}
  .frame .tight .cardsheet .goal img{width:26px;height:26px}
  .frame .tight .cardsheet .starrow{min-height:22px;font-size:14px}
  .frame .tight .cardsheet .starrow img{width:20px;height:20px}
  .frame .tight .cardsheet .new{margin:5px 0 0;font-size:14px;line-height:1.25}
  .frame .tight .cardsheet .new p+p{margin-top:2px}
  .frame .tight .cardsheet h3{margin:8px 0 5px}
  .frame .tight .cardsheet .perks{gap:5px}
  .frame .tight .cardsheet .perk{min-height:48px;padding:3px 10px 3px 6px}
  .frame .tight .cardsheet .perk img{width:30px;height:30px}
  .frame .tight .cardsheet .perk b{font-size:14px}
  .frame .tight .cardsheet .perk span{font-size:13px;line-height:1.2}
  .frame .tight .cardsheet>.btn{margin-top:8px;min-height:48px;font-size:17px}
  .frame .tight .cardsheet .perks.row3 .perk,.frame .tight .cardsheet .perks.row2 .perk{min-height:58px;padding:5px 4px}
  .frame .tight .cardsheet .perks.row3 .perk img,.frame .tight .cardsheet .perks.row2 .perk img{width:26px;height:26px}
  .frame .tight .cardsheet .perkwhy{margin-top:5px;font-size:13px;line-height:1.25}
}
.frame .caption.warn .no{display:none}
.frame .perks{display:grid;gap:7px}
.frame .perk{display:flex;align-items:center;gap:11px;min-height:56px;padding:6px 12px 6px 8px;border-radius:13px;background:#12224a;border:1px solid #ffffff66;text-align:left;color:#fff}
.frame .perk img{width:36px;height:36px;flex:none}
.frame .perk b{display:block;font:700 15px/1.15 Barlow,sans-serif;color:#fff}
.frame .perk span{display:block;font-size:13.5px;line-height:1.25;color:var(--soft)}
.frame .perk.on{border:2px solid var(--now);background:#1b2e5e}
/* The results (board results-next-360) and the lost screen (board lost-friendly-360). */
.frame .starnext{font-size:14px;color:var(--soft);margin:2px 0 8px}
/* What comes next: a plain line led by a teal chevron (teal is progress), not a box inside the sheet. */
.frame .nextline{display:flex;align-items:flex-start;gap:9px;margin:2px 0 12px;font:600 15px/1.35 Barlow,sans-serif;color:#fff}
.frame .nextline::before{content:"";flex:none;width:8px;height:8px;margin:6px 1px 0 1px;border:solid var(--teal);border-width:2.5px 2.5px 0 0;transform:rotate(45deg)}
.frame .scorecap{font:600 14px/1 Barlow,sans-serif;color:var(--soft)}
.frame .badgerow{display:flex;align-items:center;gap:12px;margin:2px 0 10px}
.frame .badgerow img{width:56px;height:56px;flex:none}
.frame .badgerow b{display:block;font:800 20px/1.1 "Saira Extra Condensed",Barlow,sans-serif;color:#fff}
.frame .badgerow span{display:block;font-size:14px;color:var(--soft)}
.frame .why{font:600 17px/1.35 Barlow,sans-serif;color:#fff;margin:8px 0 12px}
.frame .offerline{margin:12px 0 0;font-size:14px;line-height:1.35;color:var(--soft)}
.frame .lost>.offerline+.btn.ghost{margin-top:7px}
.frame .lost>.btn.ghost{margin-top:9px}
/* What rises over a car: its points, "Perfect!", "Perfect Storm", a bonus by name. */
/* In the system's colours: points white, "Perfect!" teal, a bonus white; an ink edge all round, drawn in sixteen
   directions so it stays even on the curves. "Perfect Storm" stands on the game's slanted plate. */
.frame .pop{position:absolute;transform:translate(-50%,-100%);font:600 22px/26px Barlow,sans-serif;font-variant-numeric:tabular-nums;color:#fff;text-shadow:2.5px 0 0 #0b1630,-2.5px 0 0 #0b1630,0 2.5px 0 #0b1630,0 -2.5px 0 #0b1630,1.8px 1.8px 0 #0b1630,-1.8px 1.8px 0 #0b1630,1.8px -1.8px 0 #0b1630,-1.8px -1.8px 0 #0b1630,2.3px 1px 0 #0b1630,-2.3px 1px 0 #0b1630,2.3px -1px 0 #0b1630,-2.3px -1px 0 #0b1630,1px 2.3px 0 #0b1630,-1px 2.3px 0 #0b1630,1px -2.3px 0 #0b1630,-1px -2.3px 0 #0b1630,0 3px 8px #020a20aa;white-space:nowrap;pointer-events:none}
.frame .pop.perfect{color:var(--teal);font-family:"Saira Extra Condensed",Barlow,sans-serif;font-weight:800}
.frame .pop.storm{font:800 18px/18px "Saira Extra Condensed",Barlow,sans-serif;color:#fff;padding:2px 9px 2px;background:var(--plate);border:2px solid var(--ink);transform:translate(-50%,-100%) skewX(-9deg);isolation:isolate}
.frame .pop.storm::after{content:"";position:absolute;inset:-2px;transform:translate(4px,4px);border:2px solid var(--cyan);z-index:-1}
.frame .pop.bonus{color:#fff;font-size:18px;font-family:"Saira Extra Condensed",Barlow,sans-serif;font-weight:800}
.frame .brake{position:absolute;width:26px;height:12px;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(closest-side,#ff6a5c,#ff2d2db3 45%,#ff2d2d00);pointer-events:none}
/* The sound as a switch row (pause, the wide card): off, the knob stands left on grey. */
.frame button.switch{width:100%;text-align:left}
.frame .switch.off i{background:#33405f}
.frame .switch.off i:after{right:auto;left:3px;background:#d6dae2}
.frame .dock .switch{margin-top:8px}
/* The wide frame's card names the shift on the plate, smaller than a sheet's heading. */
.frame .dock .card h3.plate{margin:0 0 10px 3px;padding:4px 12px 5px 10px;font:800 20px/1.05 "Saira Extra Condensed",Barlow,sans-serif;color:#fff;letter-spacing:0;text-transform:none}
/* Sound and Motion side by side on the pause screen: one row, so the sheet is no taller than with one. */
.frame .switches{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.frame .switches .switch{padding:0 6px 0 14px;gap:8px}
/* Washie home on the pause screen: a quiet row, centred under the buttons. */
.frame .pausesheet .homelink{justify-content:center;width:100%;font-size:16px}
/* A dial setting's words break only between words, never inside one ("Foaming" whole on the
   smallest phone): the words get a little smaller on a narrow screen instead. */
.frame .set{overflow-wrap:normal;word-break:normal;font-size:min(13px,3.6vw)}
/* What each wash brings an "Any Storm wash" car, under its price (S7). */
.frame .pick .trade{margin-top:2px;font:700 12px/1 Barlow,sans-serif;color:#ffd257;white-space:nowrap}
/* The effects' words over a car (S7), set as a bonus's name is (Saira Extra Condensed ExtraBold at 18, the room
   popBox keeps for it) in the system's colours: a walkout red, cars in a row teal (the chain's), a broken chain grey. */
.frame .pop:is(.walk,.broke,.chain){font:800 18px/26px "Saira Extra Condensed",Barlow,sans-serif}
.frame .pop.walk{color:var(--red)}
.frame .pop.broke{color:var(--soft)}
.frame .pop.chain{color:var(--teal)}
/* The legends (S4 G5): every row's picture in one column, the words on one left edge (the combo's bubble no longer
   pushes its words right), and each face on the pale disc a progress ring has, inside its patience ring. The column
   is the combo bubble's width: 44 on the pause screen and the wide dock, 30 in the compact legend. */
.frame .feel{background:radial-gradient(circle closest-side,#f6f8fc 0 calc(100% - 3.5px),#0000 calc(100% - 3px)),conic-gradient(#ffd66b calc(var(--p)*1%),#3a4666 0)}
.frame .feel img{width:18px;height:18px}
.frame .feel.big img{width:24px;height:24px}
.frame .sheet .legend .key>img:not(.t){margin:0 6px}
.frame .sheet .legend .key>.feel.big{margin:0 5px}
.frame .mini .key>img{margin:0 4.5px}
.frame .mini .key>.feel.big{margin:0 3.5px}
.frame .mini .feel.big img{width:16px;height:16px}
.frame .dock .legend .key>.feel{margin:0 7px}
.frame .dock .legend .key .feel.big img{width:21px;height:21px}
@media (max-height:620px){.frame .sheet .legend .key>img:not(.t){margin:0 10px}.frame .sheet .legend .key>.feel.big{margin:0 9px}.frame .sheet .legend .feel.big img{width:19px;height:19px}}
/* The card before a shift (S4 G5, board shift-card-360): its stars drawn empty, they are conditions; the perks three
   small tiles in a row (two equal halves where the shift offers two: S7 decision c) with the picked one's line under
   them, so the card does not fill the screen. (Its sizes on a
   short screen are in the card's own max-height:620px block above.) */
.frame .cardsheet .starrow img{width:22px;height:22px}
.frame .cardsheet .perks.row3{grid-template-columns:repeat(3,1fr);gap:7px}
.frame .cardsheet .perks.row2{grid-template-columns:repeat(2,1fr);gap:7px}
.frame .cardsheet .perks.row3 .perk,.frame .cardsheet .perks.row2 .perk{flex-direction:column;justify-content:center;gap:4px;min-height:74px;padding:8px 4px;text-align:center}
.frame .cardsheet .perks.row3 .perk img,.frame .cardsheet .perks.row2 .perk img{width:30px;height:30px}
.frame .cardsheet .perks.row3 .perk b,.frame .cardsheet .perks.row2 .perk b{font-size:13.5px;line-height:1.1}
.frame .perkwhy{margin:7px 0 0;font-size:14px;line-height:1.3;color:var(--soft)}
/* The top bar holds still and reads calm (S4 G5), within the one-row bar's own rules (its row, cells and widths are
   the engineer's): the chain is a teal pill (teal is progress) that keeps its line while there is none, so the score
   never moves when a chain starts (it jumped 9 pixels); a strike's notice takes the score and the chain's place. An
   empty strike is a calm slot, not a dashed ring; a strike is red with the keyline bolt. The small labels, where they
   show, are 11.5 pixels. */
.frame .hud .chain{background:var(--teal);color:var(--ink);min-height:11px}
.frame .hud .chain.none{visibility:hidden}
.frame .hud .g-notice:not([hidden])~.chain{display:none}
/* A strike's notice in the strikes' red, not the selection gold. */
.frame .g-notice{border-color:var(--red)}
.frame .strike{border:0;background:#ffffff14;box-shadow:inset 0 0 0 1.5px #ffffff38}
.frame .strike.on{background:var(--red);box-shadow:inset 0 0 0 1.5px var(--ink),0 0 0 1px #ff5a4f66}
.frame .cap{font-size:11.5px}
/* Motion (S4 G5), never with reduce motion: a sheet, the picker or dial, and the compact legend fade in over 160 ms as
   they open; a sheet's heading plate slides in on its slant; the instruction's pill and a warning's pop in; a button
   presses to 0.97. Opacity and transform only, and none on a box that holds a tap target, so nothing a press or a test
   aims at moves or shrinks: no layout shift. A sheet is shown again each time it opens, so each opening plays it. */
@media (prefers-reduced-motion:no-preference){
  .frame:not(.still) .screen .sheet,.frame:not(.still) .picker:not(.dock),.frame:not(.still) .mini{animation:game-fade-in .16s ease-out}
  .frame:not(.still) .sheet h2{animation:game-plate-in .24s cubic-bezier(.2,.8,.2,1)}
  .frame:not(.still) .mk:not([hidden]) .say span,.frame:not(.still) .goalsay:not([hidden]) span{animation:game-pill-in .18s cubic-bezier(.2,.9,.3,1.3)}
  .frame:not(.still) :is(.btn,.pick,.set,.perk,.tile):active{transform:scale(.97)}
  .frame:not(.still) :is(.btn,.pick,.set,.perk,.tile){transition:transform .08s ease-out}
}
@keyframes game-fade-in{from{opacity:0}to{opacity:1}}
@keyframes game-plate-in{from{opacity:0;transform:skewX(-9deg) translateX(-12px)}to{opacity:1;transform:skewX(-9deg)}}
@keyframes game-pill-in{from{opacity:0;transform:scale(.82)}to{opacity:1;transform:none}}
/* S7 part 2: the page's own moments (view/chrome-fx.js). The colours and the words hold with reduce motion (the
   stage's `still`, or the phone's setting); the motion is only without it, opacity and transform only, never on a box
   that holds a tap target, and nothing flashes more than three times a second. */
.frame .hud .val.low,.frame .dock .stat b.low{color:var(--now)}
.frame .hud .val.last,.frame .dock .stat b.last{color:var(--orange)}
.frame .hud .chain.warm{background:var(--now)}
.frame .hud .chain.hot{background:var(--orange)}
.frame .ui>.edgeglow{position:absolute;inset:0;pointer-events:none;opacity:0;box-shadow:inset 0 0 26px 4px #ff5a4f8c}
.frame .goalchip.met{border-color:var(--now);box-shadow:inset 0 0 0 1px var(--now)}
.frame .goalchip.met img{display:none}
.frame .goalchip.met::before{content:"";flex:none;width:6px;height:11px;margin:0 6px 3px 5px;border:solid var(--now);border-width:0 3px 3px 0;transform:rotate(45deg)}
.frame .pop.goal{font:800 18px/26px "Saira Extra Condensed",Barlow,sans-serif;color:var(--now)}
.frame .tally{display:flex;flex-wrap:wrap;gap:2px 12px;margin:6px 0 0;font:600 13px/1.3 Barlow,sans-serif;font-variant-numeric:tabular-nums;color:var(--soft)}
.frame .bestline{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin:6px 0 0;font:600 13px/1.3 Barlow,sans-serif;color:var(--soft)}
.frame .newbest{font:800 15px/1 "Saira Extra Condensed",Barlow,sans-serif;color:var(--ink);background:var(--now);border-radius:6px;padding:3px 7px 2px}
.frame .whyline{font:600 15px/1.35 Barlow,sans-serif;color:var(--soft);margin:-4px 0 12px}
/* A tile's best: a row of its own under the stars (in their row it left them too little room at 320 wide). Once any shift
   has a best, every tile keeps that row's room, shut ones and those without one too, so the tiles stay alike. */
.frame .days:has(.best) .tile{grid-template-rows:auto auto 13px}
.frame .tile .best{grid-column:2;grid-row:3;font:600 11.5px/13px Barlow,sans-serif;font-variant-numeric:tabular-nums;color:var(--soft);white-space:nowrap}
/* The wide frame's tiles have the room beside the stars, and are kept at their own height: there the best stands at the
   end of the stars' row (the two placed in one cell). */
.frame.wide .days:has(.best) .tile{grid-template-rows:auto auto}
.frame.wide .tile .st,.frame.wide .tile .best{grid-row:2;grid-column:2}
.frame.wide .tile .best{justify-self:end;align-self:center;margin-left:6px}
@media (prefers-reduced-motion:no-preference){
  .frame:not(.still) .hud .chain.bump{animation:game-bump .15s ease-out}
  .frame:not(.still) .strike.on.land{animation:game-land .2s ease-out}
  .frame:not(.still) .ui>.edgeglow.on{animation:game-edge .4s ease-out}
  .frame:not(.still) .goalchip.met{animation:game-goal .6s ease-out}
  .frame:not(.still) .g-stars img.lit{animation:game-star .32s cubic-bezier(.2,.9,.3,1.3) both}
  .frame:not(.still) .g-stars img.lit:nth-child(2){animation-delay:.25s}
  .frame:not(.still) .g-stars img.lit:nth-child(3){animation-delay:.5s}
  .frame:not(.still) .newbest{animation:game-pill-in .18s cubic-bezier(.2,.9,.3,1.3) .75s both}
}
@keyframes game-bump{50%{transform:scale(1.15)}}
@keyframes game-land{from{transform:scale(1.4)}to{transform:none}}
@keyframes game-edge{30%{opacity:1}to{opacity:0}}
@keyframes game-goal{30%{box-shadow:inset 0 0 0 1px var(--now),0 0 0 4px #ffc44d73}}
@keyframes game-star{from{opacity:0;transform:scale(1.6)}60%{opacity:1;transform:scale(.92)}to{opacity:1;transform:none}}
/* A desktop screen (1200 by 700 and up): the wide frame's sheets (the shifts, the card, pause, the legend, the results)
   are drawn a fifth larger, type, plates and buttons with them (r2 visual QA: at 1280 by 720 the results, 420 wide in
   15-pixel type, read small on a desktop). So that each is still whole at 720 high, the legend there puts how cars feel
   beside what they want (as under 560 high), and under 780 high the shifts' tiles are the short screen's 48. Phones and
   the 1024-wide screens are as they were. */
@media (min-width:1200px) and (min-height:700px){
  .frame.wide .screen .col{zoom:1.2}
  .frame.wide .col:has(>.legendsheet:not([hidden])){width:640px;margin-left:-320px}
  .frame.wide .sheet .legend{columns:2;column-gap:28px}
  .frame.wide .sheet .legend h3~h3{break-before:column;margin-top:0}
  .frame.wide .sheet .legend .key,.frame.wide .sheet .legend .fact{break-inside:avoid}
}
@media (min-width:1200px) and (min-height:700px) and (max-height:779px){
  .frame.wide .choosesheet .tile{min-height:48px;padding:2px 10px 2px 8px}
  .frame.wide .choosesheet .tile b{font-size:16px}
  .frame.wide .choosesheet .tile .st{height:13px}
  .frame.wide .choosesheet .tile.shut .st{font-size:11px}
  .frame.wide .choosesheet .tile .st img{width:13px;height:13px}
  .frame.wide .days{gap:7px}
  .frame.wide .day h3{margin-bottom:4px;font-size:14px}
  .frame.wide .day h3 img{width:22px;height:22px}
  .frame.wide .choosesheet>.btn{margin-top:8px}
}
/* Paused on a phone, the pause screen's scrim and its blur start under the one-row top bar (its 48-pixel buttons reach
   50 down): the bar stays sharp, its time and score readable, only a little dimmed, since it cannot be pressed while
   paused (r2 visual QA 2: under the scrim they were faint and blurred, unreadable at 360 wide). */
.frame.compact[data-screen="paused"] .screen>.dim{top:52px}
.frame.compact[data-screen="paused"] .hud{opacity:.8}
/* R5's view (boards r5-meter, r5-next-car, r5-combo, r5-freshener; the CEO's musts after Codex's board review).
   Nothing here is ever pressed but the freshener stand: the plate, the tags, the stand's label and the pops stand
   in the lot's layer, which takes no pointer (.lot), and none of them takes one back. */
/* The goal chip as the third-star meter: the keyline star, then the score and the mark (or the mark alone), and a thin
   gold line under them filled to the share of the mark reached (--m, 0 to 1), 2 pixels on its dark track. */
.frame .goalchip.meter{position:relative;border-color:#ffc44d99}
.frame .goalchip.meter::before{display:none}
.frame .goalchip.meter img{display:block}
.frame.compact .hud .goalchip.meter.bare img{display:none}
.frame .goalchip.meter::after{content:"";position:absolute;left:6px;right:6px;bottom:3px;height:2px;border-radius:1px;background:linear-gradient(90deg,#ffc44d calc(var(--m,0)*100%),#ffffff2e 0)}
/* The next car, by the In arrow: navy, "Next", the car head on, its need, "+3"; amber "Rush coming" for the seconds
   before a rush, pulsing gently (still with reduce motion). The model places it and sizes it (view/model.js,
   `platePlace`): left, top, width and height are its, in the lot's pixels, and its notch is --n along the side it is
   on (.left beside the arrow on its left, .right on its right, .down over it, .up under it). Its forms: .row (the
   board's), .stack (the words over the car and the need), .icons (the car and the need, "+3" on a badge; the
   smallest). */
.frame .nextplate{position:absolute;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 8px;box-sizing:border-box;border-radius:12px;background:#0b1836f2;border:1.5px solid #ffffff59;box-shadow:0 2px 8px #020a20aa;font:600 16px/1.1 Barlow,sans-serif;color:#fff;white-space:nowrap;pointer-events:none}
.frame .nextplate .nw{flex:none}
.frame .nextplate .icons{display:flex;align-items:center;gap:4px;flex:none}
.frame .nextplate.two .nw{white-space:normal;width:min-content;line-height:1.05}
.frame .nextplate.stack{flex-direction:column;gap:1px;padding:3px 6px}
.frame .nextplate.stack .nw{white-space:pre;text-align:center;font-size:14px;line-height:16px}
.frame .nextplate.icons{padding:0 4px}
.frame .nextplate.icons .icons{gap:3px}
.frame .nextplate.icons .nw{display:none}
.frame .nextplate .car{width:30px;height:26px;object-fit:contain;flex:none}
.frame .nextplate .car.own{object-fit:cover;object-position:50% 62%;width:30px;height:28px}
.frame .nextplate .need{width:22px;height:22px;flex:none}
.frame .nextplate .more{font:800 16px/1 "Saira Extra Condensed",Barlow,sans-serif;color:#ffc44d}
.frame .nextplate.icons .more{position:absolute;right:-8px;top:-8px;min-width:20px;height:20px;padding:0 4px;box-sizing:border-box;border-radius:10px;background:#ffc44d;border:1.5px solid #0b1630;font-size:14px;line-height:17px;color:#0b1630;text-align:center}
.frame .nextplate::after{content:"";position:absolute;width:12px;height:12px;background:inherit;border:inherit;border-width:0 0 1.5px 1.5px;box-sizing:border-box}
.frame .nextplate.left::after{left:-7px;top:calc(var(--n,18px) - 6px);transform:rotate(45deg)}
.frame .nextplate.right::after{right:-7px;top:calc(var(--n,18px) - 6px);transform:rotate(-135deg)}
.frame .nextplate.down::after{bottom:-7px;left:calc(var(--n,18px) - 6px);transform:rotate(-45deg)}
.frame .nextplate.up::after{top:-7px;left:calc(var(--n,18px) - 6px);transform:rotate(135deg)}
.frame .nextplate.rush{background:#ffc44d;border-color:#0b1630;color:#0b1630}
.frame .nextplate.rush .more{color:#0b1630}
.frame .nextplate.rush.icons .more{background:#0b1630;border-color:#ffc44d;color:#ffc44d}
@keyframes game-rush{50%{box-shadow:0 0 0 4px #ffc44d66,0 2px 8px #020a20aa}}
@media (prefers-reduced-motion:no-preference){.frame:not(.still) .nextplate.rush{animation:game-rush 1s ease-in-out infinite}}
/* The freshener stand: the designer's painted stand is in the lot's picture (spots.freshener); its square over it
   shows nothing of its own but its count on a gold badge, a gold ring while a press gives the picked-up car one, and
   the badge grey once none are left. Its one-time label stands over it, in the instruction's look. */
.frame .standtap{position:absolute;padding:0;border-radius:12px;background:none;border:2px solid transparent;pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.frame .standtap .count{position:absolute;right:-8px;top:-8px;min-width:22px;height:22px;padding:0 5px;box-sizing:border-box;border-radius:11px;background:#ffc44d;border:1.5px solid #0b1630;font:800 15px/19px "Saira Extra Condensed",Barlow,sans-serif;color:#0b1630;text-align:center}
.frame .standtap.on{border-color:#ffc44d;box-shadow:0 0 0 3px #ffc44d59}
.frame .standtap.none .count{background:#8a93a6}
.frame .standsay{position:absolute;transform:translate(-50%,-100%);pointer-events:none;font:700 13px/1 Barlow,sans-serif;color:#0b1630;background:#ffc44d;border-radius:9px;padding:6px 9px;border:1.5px solid #0b1630;box-shadow:0 2px 6px #020a2088;white-space:nowrap}
/* Over a waiting car's bubble: "Tip", its gold line running down as the tip does (--s, 1 to 0); and a car's freshener. */
.frame .tag{position:absolute;transform:translate(-50%,-100%);pointer-events:none}
.frame .tag.tip{font:800 12px/1 "Saira Extra Condensed",Barlow,sans-serif;letter-spacing:.02em;color:#0b1630;background:#fff;border:1.5px solid #0b1630;border-radius:7px;padding:2px 5px 4px}
.frame .tag.tip::after{content:"";position:absolute;left:3px;right:3px;bottom:1px;height:2px;border-radius:1px;background:linear-gradient(90deg,#e0a21b calc(var(--s,1)*100%),#0b16302e 0)}
.frame .tag.fresh{width:20px;height:20px;border-radius:50%;background:#0b1836;border:1.5px solid #7fe0c2;display:grid;place-items:center}
.frame .tag.fresh img{width:15px;height:15px}
/* Day 4: a fleet car's "Fleet 3", in the fleet's yellow; a pair's wash tag over the other pay station, its line running down. */
.frame .tag.fleet{font:800 12px/1 "Saira Extra Condensed",Barlow,sans-serif;letter-spacing:.02em;color:#0b1630;background:#ffc21f;border:1.5px solid #0b1630;border-radius:7px;padding:2px 5px 3px;white-space:nowrap}
.frame .tag.pair{display:flex;background:#0b1630;border:1.5px solid #ffc44d;border-radius:8px;padding:3px 4px 8px;box-shadow:0 2px 6px #0b163066}
.frame .tag.pair img{display:block;height:22px;width:auto}
.frame .tag.pair::after{content:"";position:absolute;left:5px;right:5px;bottom:2.5px;height:3px;border-radius:2px;background:linear-gradient(90deg,#ffc44d calc(var(--s,1)*100%),#ffffff2e 0)}
/* The combo, a tip and a freshener as they rise: Saira at 18, amber, gold and mint, outlined like every pop. */
.frame .pop:is(.combo,.tip,.fresh){font:800 18px/26px "Saira Extra Condensed",Barlow,sans-serif}
.frame .pop.combo{color:#ffb347}
.frame .pop.tip{color:#f0c790}
.frame .pop.fresh{color:#7fe0c2}
/* The legends' points rows: the combo's own sign in its pop's amber, as wide as an icon. */
.frame .key .combosign{flex:none;width:28px;margin:0 6px;text-align:center;font:800 18px/1 "Saira Extra Condensed",Barlow,sans-serif;color:#ffb347}
.frame .mini .key .combosign{width:21px;margin:0 4.5px;font-size:15px}
.frame .key .fleetsign{flex:none;box-sizing:border-box;width:36px;margin:0 4px;padding:2px 0 3px;text-align:center;font:800 14px/1 "Saira Extra Condensed",Barlow,sans-serif;color:#0b1630;background:#ffc21f;border-radius:5px}
.frame .mini .key .fleetsign{width:26px;margin:0 2px;padding:1px 0 2px;font-size:11px}
.frame .key .pairsign{flex:none;display:flex;flex-direction:column;width:36px;margin:0 4px}
.frame .legend .key .pairsign img,.frame .mini .key .pairsign img{width:30px;height:auto;margin:0}
.frame .legend .key .pairsign img+img,.frame .mini .key .pairsign img+img{margin:-3px 0 0 6px}
.frame .mini .key .pairsign{width:26px;margin:0 2px}
.frame .mini .key .pairsign img{width:21px}
.frame .mini .key .pairsign img+img{margin:-2px 0 0 5px}
.frame .legend h3.pointshead,.frame .mini h3.pointshead{margin-top:10px}
.frame.wide .sheet .legend h3.pointshead{break-before:auto;margin-top:10px}
/* On a phone the legend scrolls inside itself where the screen cannot hold it, Back kept in view under it; the edge
   it goes on past fades, as the shifts' list does. */
.frame:not(.wide) .legendsheet{display:flex;flex-direction:column;max-height:100%;box-sizing:border-box}
.frame:not(.wide) .legendsheet>h2,.frame:not(.wide) .legendsheet>.btn{flex:none}
.frame:not(.wide) .legendsheet>.legend{min-height:0;overflow-y:auto;touch-action:pan-y;overscroll-behavior:contain;padding-bottom:2px}
.frame .legendsheet>.legend.more-below{-webkit-mask-image:linear-gradient(#000 calc(100% - 36px),#0006);mask-image:linear-gradient(#000 calc(100% - 36px),#0006)}
.frame .legendsheet>.legend.more-above{-webkit-mask-image:linear-gradient(#0006,#000 36px);mask-image:linear-gradient(#0006,#000 36px)}
.frame .legendsheet>.legend.more-above.more-below{-webkit-mask-image:linear-gradient(#0006,#000 36px,#000 calc(100% - 36px),#0006);mask-image:linear-gradient(#0006,#000 36px,#000 calc(100% - 36px),#0006)}
/* After The Big One: the game is done, over the designer's photo of the lot at first light (.photo.finale, placed as
   the results' photos are); the line on what next in the results' own look. */
.frame .finalesay{margin:6px 0 4px;font:600 16px/1.35 Barlow,sans-serif;color:#fff}
/* The finale's results read as a celebration: an opaque sheet in a gold edge, the photo round it (Codex visual QA, R5). */
.frame .screen.finale .sheet{background:#0b1836;backdrop-filter:none;border-color:#ffc44d;box-shadow:0 0 0 3px #ffc44d33,0 14px 40px #020a20cc}
/* A screen held upright and wider than a phone (a tablet held upright, a computer's window made tall: view/lot.js,
   `uiFor` and `legendBand`): the top bar, the shift's name, the compact legend, the picker, the dial, the goal said in
   full and the whole screens' sheets are drawn --ui times a phone's (CSS zoom, up to 2), so nothing is phone-sized on a
   window 1000 wide; and where there is room the legend stands across the screen under the bar (.keyband, its place and
   size from view/lot.js's `legendAt`), in the "?"'s stead: what cars want, two to a row, beside how they feel. Its
   height is `legendBand.height`. Phones, 440 wide and less, are as they were. */
.frame.tall .hud,.frame.tall .ui>.chip,.frame.tall .mini,.frame.tall .picker:not(.dock),.frame.tall .goalsay,.frame.tall .screen .col,.frame.tall .title-top,.frame.tall .title-bottom,.frame.tall .rank{zoom:var(--ui)}
.frame.compact.tall[data-screen="paused"] .screen>.dim{top:calc(52px * var(--ui))}
.frame .keyband{display:none}
.frame.tall.keyed .ui>.keyband{display:block;position:absolute;left:4px;right:4px;height:124px;padding:7px 12px;background:#07122bf2;border:1px solid var(--line);border-radius:14px;box-shadow:0 4px 14px #020a2066;pointer-events:none}
.frame .keyband .legend{display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;grid-auto-flow:column;justify-content:space-around;column-gap:18px}
.frame .keyband h3{font:700 12px/1.25 Barlow,sans-serif;white-space:nowrap;color:var(--soft);margin:0 0 3px}
.frame .keyband .keys{display:grid;grid-auto-flow:column;grid-template-rows:repeat(4,22px);column-gap:16px;margin:0}
.frame .keyband .key{min-height:22px;gap:8px;font-size:13.5px;white-space:nowrap}
.frame .keyband .key span{line-height:1.1}
.frame .keyband .key img{width:21px;height:21px}
.frame .keyband .key .demo{width:30px;height:22px}
.frame .keyband .key .demo .bubble{padding:2px 3px;border-radius:8px}
.frame .keyband .key .demo .bubble img.o{width:16px;height:16px}
.frame .keyband .key .demo .bubble .g-badge{width:14px;height:14px;right:-6px;bottom:-5px}
.frame .keyband .key .demo .bubble .g-badge img{width:10px;height:10px}
.frame .keyband .feel.big{width:21px;height:21px}
.frame .keyband .feel.big img{width:16px;height:16px}
.frame.compact.keyed .hud .help,.frame.compact.keyed .hud .help[hidden],.frame.keyed .mini{display:none}
/* Icons, Direction A (sign plates, 2026-11-22; docs/GAME.md, "Icons"). A plate is the icon's own ground, so a control
   that holds one is the plate, not a disc round it: the "?" is the help plate itself, the pause button's two bars sit
   on the quiet plate, and a strike is the strike plate in its slot (an empty slot keeps the slot's square). A plate's
   corner is a quarter of its side, as the icons' (6 on 24). */
.frame .help>span:has(>img){background:none;border:0;border-radius:25%;box-shadow:none}
.frame .help>span>img{width:100%;height:100%}
.frame .ib.pausebtn>span{border:0;border-radius:25%;background:#1d2f5c}
.frame .strike{border-radius:25%}
.frame .strike.on{background:none;box-shadow:none}
.frame .strike.on img{width:100%;height:100%}
/* The Shift of the Day (view/daily.js). On the shift list, its group stands over the days and apart from them (it never
   scrolls with them): its heading as a day's, and one tile the sheet's width in the shift tiles' look, its twist's
   picture by the borrowed shift's name, the twist in plain words under it and the day's lines (its best, how many of
   the last 7 days were played) in the paler words, each on a line of its own and never cut. On its results, the same
   lines over the buttons. */
.frame .choosesheet .day.daily{flex:none;margin:0 2px 12px}
.frame .daytile{display:grid;grid-template-columns:26px 1fr;align-items:center;gap:2px 8px;width:100%;min-height:56px;padding:7px 12px 8px 9px;border-radius:12px;background:#12224a;border:1px solid #ffffff55;color:#fff;text-align:left}
.frame .daytile img{width:26px;height:26px}
.frame .daytile b{font:800 18px/1.02 "Saira Extra Condensed",Barlow,sans-serif;color:#fff}
.frame .daytile>span{grid-column:2;font:600 14px/1.25 Barlow,sans-serif;color:#fff}
.frame .daytile>span+span{font-size:13px;color:var(--soft)}
.frame .dayline{gap:2px 14px;margin:8px 0 12px}
@media (max-height:620px){.frame .choosesheet .day.daily{margin-bottom:8px}.frame .choosesheet .daytile{min-height:48px;padding:4px 10px 5px 8px}.frame .choosesheet .daytile b{font-size:16px}}
/* The sheet's heading and the day (view/chrome.js, `choosehead`) have no box of their own: on a phone, two rows of the
   sheet as before. On the wide frame the day is one compact row, 48 high, its heading folded in: its twist's picture,
   "Shift of the Day:" and the shift's name over the twist, and the day's lines at the right. Where that row would make
   the days scroll and without it they all show (`fitDaily`; with sixteen shifts a tall desktop window, 1920 by 1080 or
   1024 by 900), it stands beside the heading, in the heading's own height,
   without its lines (a screen reader still hears them). */
.frame .choosehead{display:contents}
.frame .daytile .lead{display:none}
.frame.wide .choosesheet .day.daily{margin:0 2px 8px}
.frame.wide .day.daily>h3{display:none}
.frame.wide .daytile .lead{display:inline;color:var(--soft)}
.frame.wide .choosesheet .daytile{grid-template-columns:22px minmax(0,1fr) auto;gap:1px 10px;min-height:48px;padding:5px 12px 5px 9px}
.frame.wide .daytile img{grid-row:1/span 2;width:22px;height:22px}
.frame.wide .choosesheet .daytile b{grid-row:1;grid-column:2;font-size:16px}
.frame.wide .daytile>span{grid-row:2;font-size:12.5px}
.frame.wide .daytile>.dl{grid-row:1;grid-column:3;justify-self:end;text-align:right;font-size:12px}
.frame.wide .daytile>.dl+.dl{grid-row:2}
.frame.wide .choosesheet.beside>.choosehead{display:flex;align-items:flex-start;gap:12px;flex:none}
.frame.wide .choosesheet.beside .day.daily{flex:1;min-width:0;margin:2px 0 0}
.frame.wide .choosesheet.beside .daytile{grid-template-columns:22px minmax(0,1fr);gap:1px 8px;padding:4px 9px 4px 8px}
.frame.wide .choosesheet.beside .daytile b{font-size:15px}
.frame.wide .choosesheet.beside .daytile>span{font-size:12px}
.frame.wide .choosesheet.beside .daytile>.dl{display:none}
/* The Tuning panel and its mark (tune/panel.js): only on a page in tuning mode (?tune=1). */
/* One opaque navy (the game's sheets', #0b1836) over the whole stage: at 95% the title's logo words showed through the
   criteria (the lead, 2026-11-25). */
.frame.tune{position:absolute;inset:0;z-index:20;display:flex;justify-content:center;background:#0b1836}
.frame.tune[hidden]{display:none}
.frame .tune-sheet{position:relative;width:100%;max-width:560px;overflow-y:auto;touch-action:pan-y;overscroll-behavior:contain;padding:14px 16px 28px}
.frame .tune-sheet h2{margin:0 64px 2px 0;font:800 30px/1.1 'Saira Extra Condensed',sans-serif;color:var(--text)}
.frame .tune-help{margin:2px 0 0;font-size:13px;line-height:1.3;color:var(--soft)}
.frame .tune-label{margin:14px 0 6px;font-weight:600;font-size:14px;color:var(--gold)}
.frame .tune-chips{display:flex;flex-wrap:wrap;gap:6px}
.frame .tune-chip{min-width:44px;min-height:44px;padding:6px 12px;border-radius:22px;border:1px solid #ffffff60;background:#16264d;color:#fff;font:600 15px/1 Barlow,sans-serif}
.frame .tune-chip[aria-pressed=true]{background:var(--orange);border-color:var(--orange)}
.frame .tune-list{margin-top:6px}
.frame .tune-row{display:flex;align-items:center;gap:8px;padding:8px 0;border-top:1px solid var(--line)}
.frame .tune-what{flex:1;min-width:0}
.frame .tune-name{margin:0;font-weight:600;font-size:16px;color:var(--text)}
.frame .tune-step{display:flex;align-items:center;gap:2px;flex:none}
.frame .tune-step button{width:44px;height:44px;border-radius:22px;border:1px solid #ffffff60;background:#16264d;color:#fff;font:700 22px/1 Barlow,sans-serif}
.frame .tune-step button:disabled{opacity:.35}
.frame .tune-step output{min-width:50px;text-align:center;font-weight:700;font-size:16px;color:var(--soft)}
.frame .tune-step output.set{color:var(--gold)}
.frame .tune-actions{display:flex;flex-direction:column;gap:8px;margin-top:16px}
.frame .tune-actions .btn[hidden]{display:none}
.frame .tune-owned{margin:0;color:var(--gold)}
.frame .tune-code{margin:0;padding:8px 10px;border-radius:8px;background:#ffffff14;font:600 14px/1.35 ui-monospace,Menlo,monospace;word-break:break-all;-webkit-user-select:all;user-select:all}
.frame .tune-paste{display:flex;gap:6px}
.frame .tune-paste input{flex:1;min-width:0;min-height:48px;padding:0 12px;border-radius:24px;border:1px solid #ffffff60;background:#0d1d40;color:#fff;font:15px Barlow,sans-serif;-webkit-user-select:text;user-select:text}
.frame .tune-close{position:absolute;top:12px;right:12px;min-height:44px;padding:0 14px;border-radius:22px;border:1px solid #ffffff60;background:#16264d;color:#fff;font:600 15px/1 Barlow,sans-serif}
.game-shell.tuning{padding-top:calc(env(safe-area-inset-top,0px) + 26px)}
.tune-mark{position:absolute;left:0;right:0;top:env(safe-area-inset-top,0px);height:26px;display:flex;align-items:center;justify-content:center;padding:0 12px;border:0;border-bottom:1px solid #ffba7966;background:#1d1408;color:#ffba79;font:700 13px/1 Barlow,sans-serif;letter-spacing:.03em}
/* The shop (R6; view/shop-sheet.js, docs/GAME.md "The shop's screen"). Dark until the page's start data switches it on:
   until then none of these elements shows, and nothing above changes. The title: once the shop is open, Choose a shift
   and the Shop side by side under Play, as wide together as Play (the Shop with what the wash fund has to spend under
   its word, and a gold dot while something can be bought now). The shifts' sheet: Back and the Shop side by side. */
.frame .title-bottom.shopping{grid-template-columns:repeat(2,minmax(0,145px));justify-content:center;column-gap:10px}
.frame .title-bottom.shopping>*{grid-column:1/-1}
.frame .title-bottom.shopping>.btn.ghost{grid-column:auto;width:100%;min-height:56px;padding:6px 8px;font-size:16px}
.frame .title-bottom.shopping>.btn.btn:not(.ghost){width:100%;max-width:none}
.frame.wide .title-bottom.shopping{grid-template-columns:repeat(2,125px);justify-content:start}
.frame.wide .title-bottom.shopping>.btn.ghost{width:100%}
.frame.wide .title-bottom.shopping>.btn:not(.ghost){width:260px}
.frame .shopbtn{flex-direction:column;gap:2px;line-height:1.1}
.frame .shopbtn .shopfund{display:block;font:600 12px/1.15 Barlow,sans-serif;color:var(--soft);font-variant-numeric:tabular-nums}
.frame .shopbtn.fresh .shopword::after{content:"";display:inline-block;width:8px;height:8px;margin:0 0 2px 6px;border-radius:50%;background:var(--gold);vertical-align:middle}
.frame .choosesheet>.choosefoot{flex:none;margin-top:12px}
@media (max-height:620px){.frame .choosesheet>.choosefoot{margin-top:8px}}
/* The shop's sheet: its heading with the fund (gold) and the lot so far at its right, a line of what a press did (a teal
   edge: progress), and the list of the three parts, which scrolls inside the sheet where the screen cannot hold it, its
   edges fading as the shifts' do; Back kept in view under it. Each item a tile: its picture (the designer's render, 48
   pixels), its name and one line, then what can be done: Buy (the orange button), its On and Off switch with "On your
   lot", Use or In use (the segment's white for the one in use), or in words why not yet (never a dimmed button). A tile
   not on sale yet is dashed, as a shift not open yet is. On the wide frame the sheet is as wide as the legend's, two
   tiles to a row. */
.frame .shopsheet{display:flex;flex-direction:column;max-height:100%}
.frame .shopsheet>.btn{flex:none;margin-top:12px}
.frame .shophead{flex:none;display:flex;align-items:flex-end;justify-content:space-between;gap:6px 12px;flex-wrap:wrap}
.frame .fundline{margin:0;display:flex;flex-direction:column;align-items:flex-end;text-align:right}
.frame .fundline .fund{font:700 17px/1.2 Barlow,sans-serif;color:var(--gold);font-variant-numeric:tabular-nums}
.frame .fundline .lotline{font-size:13px;line-height:1.25;color:var(--soft)}
.frame .shopfirst,.frame .shopclosed{flex:none;margin:8px 0 0;font-size:13.5px;line-height:1.35}
.frame .shopclosed{color:#fff}
.frame .shopsaid{flex:none;margin:8px 0 0;padding:7px 10px;border-radius:10px;background:#12224a;border:1px solid var(--teal);font:600 14px/1.3 Barlow,sans-serif;color:#fff}
.frame .shoplist{min-height:0;overflow-y:auto;touch-action:pan-y;overscroll-behavior:contain;margin-top:10px;padding:2px;display:grid;align-content:start;gap:12px}
.frame .shoplist.more-below{-webkit-mask-image:linear-gradient(#000 calc(100% - 36px),#0006);mask-image:linear-gradient(#000 calc(100% - 36px),#0006)}
.frame .shoplist.more-above{-webkit-mask-image:linear-gradient(#0006,#000 36px);mask-image:linear-gradient(#0006,#000 36px)}
.frame .shoplist.more-above.more-below{-webkit-mask-image:linear-gradient(#0006,#000 36px,#000 calc(100% - 36px),#0006);mask-image:linear-gradient(#0006,#000 36px,#000 calc(100% - 36px),#0006)}
.frame .shoppart h3{margin:0 0 6px;font:700 15px/1.2 Barlow,sans-serif;color:#fff}
.frame .shoptiles{display:grid;gap:7px}
.frame .shoptile{display:grid;grid-template-columns:48px minmax(0,1fr);gap:6px 10px;align-items:start;padding:8px 10px 8px 8px;border-radius:12px;background:#12224a;border:1px solid #ffffff55;color:#fff}
.frame .shoptile .pic{width:48px;height:48px;grid-row:span 2}
.frame .shoptile .pic.none{visibility:hidden}
.frame .shoptile .words b{display:block;font:700 15px/1.15 Barlow,sans-serif;color:#fff}
.frame .shoptile .words .say{display:block;margin-top:2px;font-size:13px;line-height:1.3;color:var(--soft)}
.frame .shoptile .swatches{display:flex;gap:3px;margin-top:6px}
.frame .shoptile .swatches i{display:block;width:14px;height:14px;border-radius:3px;border:1px solid #ffffff55}
.frame .shoptile .act{grid-column:2;display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;min-height:48px}
.frame .shoptile .act .btn{min-height:48px;padding:6px 18px;font-size:15px}
.frame .shoptile .act button.switch{width:auto;min-height:48px;padding:0 8px 0 16px;gap:10px;font-size:15px}
.frame .shoptile .price{font:600 14px/1.2 Barlow,sans-serif;color:#fff;font-variant-numeric:tabular-nums}
.frame .shoptile .note{font-size:13px;line-height:1.3;color:var(--soft)}
.frame .shoptile .inuse{display:inline-flex;align-items:center;min-height:48px;padding:0 14px;border-radius:50px;border:1px solid #ffffff80;font:600 14px/1 Barlow,sans-serif;color:#fff}
.frame .shoptile .inuse.on{background:#f1f3f7;border-color:#f1f3f7;color:#0b1630}
.frame .shoptile.owned,.frame .shoptile.in-use{border-color:var(--teal)}
.frame .shoptile.later{background:#0e1a38;border-style:dashed;border-color:#ffffff38}
.frame .shoptile.later .words b{color:#d6dae2}
.frame.wide .col:has(>.shopsheet){width:640px;margin-left:-320px}
.frame.wide .shoptiles{grid-template-columns:1fr 1fr}
/* "New on the lot: Jet dryers" on the results of the shift that first had it there: a plain line led by the teal chevron,
   as what comes next is (`.nextline`), under the heading. */
.frame .sheet>.newlot{display:flex;align-items:flex-start;gap:9px;margin:4px 0 10px;font:600 15px/1.35 Barlow,sans-serif;color:#fff}
.frame .sheet>.newlot::before{content:"";flex:none;width:8px;height:8px;margin:6px 1px 0 1px;border:solid var(--teal);border-width:2.5px 2.5px 0 0;transform:rotate(45deg)}
/* The results' part of the shop (plan 3c, only while the shop is on): what the shift added to the wash fund, a gold line
   under the score; and the Shop beside the results' one orange button (Next shift, Play again or Try again), in a row
   made only while it shows (view/chrome.js, `placeShop`), so no row is added and every other button keeps its place. */
.frame .won>.fundadd{margin:0 0 8px;font:600 14px/1.3 Barlow,sans-serif;color:var(--gold);font-variant-numeric:tabular-nums}
.frame .shoprow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.frame .shoprow>.resultshop{min-width:96px;padding:6px 16px}
