/* fonts, self-hosted (no requests to Google): Fredoka + Lilita One for the ui, Barlow Condensed for signs in the 3D world */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-700.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 Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-700-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/barlow-condensed-800.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 Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/barlow-condensed-800-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* fruityfly app styles, on Flyworld's "gw" design system (Gossy): dark navy glass, gold hairlines, ruby ribbon titles
   with gems, chunky buttons with a lip, Fredoka for text and Lilita One for titles. Where a rule is copied from Flyworld
   the line numbers in reference/flyworld/index.html are noted (its v1.49 "game look" 373–658 + the "slimmer" pass 659–750). */

/* ---------- tokens: shared/ui-kit.css (linked first) has the real ones, --ff-*; these names are aliases for now (docs/areas/ui-kit.md). Fredoka and Lilita One are there too ---------- */
:root {
  --duo-pill: 0px; --corner: 0px;   /* (shared/edges.js sets both on an iPhone Duo; 0 everywhere else) */
  --sa-r: max(env(safe-area-inset-right, 0px), var(--duo-pill));   /* (the right strip: the system's inset, or Safari's measured control pill when the inset says 0; never the sum of both) */
  --sa-t: env(safe-area-inset-top, 0px);   /* (the top row's top edge: always the system's inset. 2026-11-12: on an unfolded Duo held upright the row was moved up into the 82 px status band beside the pill, and nothing in it could be tapped: iOS does not pass touches in that band to the page. Never put a control inside the top inset) */
  --bot-b: env(safe-area-inset-bottom, 0px);   /* (the bottom row's bottom edge: the system's inset; a Duo's row goes lower, to --duo-bot, shared/edges.js) */
  --bot-r: env(safe-area-inset-right, 0px);   /* (the bottom row's right edge: the system's inset; an unfolded Duo since the 2026-11 iOS update has no side bar any more, only the pill at the top, so there just the rounded corner) */
  --pad-l: max(env(safe-area-inset-left, 0px), var(--corner)); --pad-r: max(var(--sa-r), var(--corner)); --pad-b: max(env(safe-area-inset-bottom, 0px), var(--corner));   /* (what a window keeps clear: each side's own inset, or the rounded corner's margin) */
  --gw-dx: max(40px, calc((var(--pad-l) + var(--pad-r)) / var(--ui, 1) + 24px));   /* (a window is narrower than the screen by this: 24 for the gems and the close button that hang over its edges) */
  --ui: 1; --vw: calc(100vw / var(--ui)); --vh: calc(100vh / var(--ui));   /* L2: the UI scale (core.js applyScale); sizes from the screen are divided by it */
  --wood: #7a4826; --wood-d: #2e1708; --gold: var(--ff-gold); --gold2: var(--ff-gold2); --gold-d: var(--ff-gold-d); --stone: #3a3956; --stone2: #2b2a42; --stone-d: #1a1928;
  --ruby: var(--ff-ruby); --ruby2: var(--ff-ruby2); --cream: var(--ff-cream); --honey: var(--ff-honey); --green: var(--ff-green); --sky: var(--ff-sky); --pink: var(--ff-pink); --red: var(--ff-red); --metal: #c5c9d6;
  --ink: #2a1606; --dim: var(--ff-dim);
  --gw-font: var(--ff-font); --gw-title: var(--ff-title);
  --glass: var(--ff-glass); --glass2: var(--ff-glass2); --hair: var(--ff-hair); --line: var(--ff-line); --gold-line: var(--ff-gold-line);
  /* ours */
  --night: var(--ff-night); --eye: #e0362c; --leaf: var(--ff-green);
  --r-common: var(--ff-r-common); --r-ripe: var(--ff-r-ripe); --r-juicy: var(--ff-r-juicy); --r-overripe: var(--ff-r-overripe); --r-fermented: var(--ff-r-fermented);
  color-scheme: dark;
}
html, body { height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; background: var(--night); color: var(--cream); font: 600 14px/1.35 var(--gw-font); }
button:not(:disabled), label.radio, .apt, #dock, #dock * { cursor: pointer; }   /* one hand everywhere on the dock (its gaps too): a cursor swap flashes an X on some Linux themes */
* { touch-action: manipulation; }   /* (a double tap never zooms the UI, pinch stays. On every element: Safari ignores user-scalable for this, and a scroller starts the rule over, so the root alone misses the windows. Specificity 0: the canvas's own none below wins) */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
html, body { background: #141228; }   /* (2026-11-12, the Duo: the root's and the body's background are the bottom bar's colour. A strip the page cannot draw on (an iOS home-screen app on its side right after a turn keeps the upright status bar's 82 px off the page) shows the body's colour, so it reads as the bar and never as a dark gap; the game's canvas covers the rest) */
@supports (height: 100dvh) { html, body { height: 100dvh; } }   /* (2026-11-12, measured on Jesse's Duo with duo-test.html: in a home-screen app that draws under the status bar, 100% is the screen minus the status bar (869 of 951 upright) while 100dvh is the whole drawable screen; with the root 100% tall the fixed layer ended 82 px short and left a strip under the bar, with the root 100dvh tall everything reaches the real bottom. Sideways after a turn 100dvh is the shortened page (587), still right) */
@supports (height: 100lvh) { html[data-duo-tall], html[data-duo-tall] body { height: 100lvh; } }   /* (2026-11-13, Jesse: after the chat's keyboard closes upright, iOS shrinks 100dvh back to the screen minus the status band (869) and the strip under the bar returned. 100lvh does not move with the keyboard and measured the whole screen upright (951, the probe's Game Fix). Only upright: on its side after a turn 100lvh reaches into a strip nothing can draw in, so that pose keeps 100dvh) */
#dock::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 240px; background: #141228; pointer-events: none; }   /* (fold 2026-11-11: under the bar is always the bar's own colour, never the page's: whatever iOS leaves under it after a turn) */
#stage { height: calc(100% + var(--fixGap, 0px)); } html #gwBack { bottom: calc(var(--fixGap, 0px) * -1); }   /* (fold 2026-11-11: Safari's fixed layer ending short of the screen after a turn: core.js --fixGap; the bar too, in #dock) */
.vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 48%, rgba(6, 4, 16, .7) 100%); }
/* AR2: the loading screen (app/loading.js). Never black: night-blue with a soft glow, then the destination's postcard */
#loading { position: fixed; inset: 0; z-index: 45; display: grid; place-items: end center; padding: 0 max(16px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 38%, #2c2a5c, #14132a 60%, var(--night)); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s ease-out, visibility 0s .35s; }
#loading.on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .22s ease-out; }
#loading.out { transition: opacity .35s ease-in, visibility 0s .35s; }
#loading .ld-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .3s, transform 6s ease-out; }
#loading .ld-pic.in { opacity: 1; transform: scale(1); }   /* a slow drift in: the postcard settles */
#loading::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent 55%, rgba(13, 12, 24, .55)); }   /* (the card reads over any picture) */
#loading .ld-card { z-index: 1; width: min(460px, 100%); padding: 26px 16px 14px; gap: 10px; align-items: stretch; }
#loading.on .ld-card { animation: ldPop .45s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes ldPop { from { transform: translateY(14px) scale(.96); opacity: 0; } }
#loading .ld-name { max-width: calc(min(460px, var(--vw)) - 110px); }
#loading .ld-logo { display: none; }
#loading .ld-row { display: flex; align-items: center; gap: 12px; min-height: 56px; }
#loading .ld-fly { width: 56px; height: 56px; flex: none; object-fit: contain; animation: ldHop 1.1s ease-in-out infinite; }
#loading .ld-fly:not([src]) { visibility: hidden; }
@keyframes ldHop { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
#loading .ld-tip { margin: 0; font: 500 14px/1.35 var(--gw-font); color: var(--cream); }
#loading .ld-tip b { display: block; font: 400 12px/1 var(--gw-title); letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
#loading .ld-bar { height: 10px; }
#loading .ld-bar > i { width: calc(var(--p, 0) * 100%); transition: width .35s ease-out; }
/* the site's start: the logo big in the middle, your fly under it */
#loading.boot { place-items: center; }
#loading.boot .ld-logo { display: block; width: 104px; height: 104px; margin: 0 auto 2px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .5)); }
#loading.boot .ld-pic, #loading.boot::after { display: none; }
body.no-fx #loading .ld-fly, body.lowfx #loading .ld-fly, body.no-fx #loading.on .ld-card { animation: none; }
@media (prefers-reduced-motion: reduce) { #loading .ld-fly, #loading.on .ld-card { animation: none; } #loading .ld-pic { transition: opacity .3s; transform: none; } }
:where(button, input, select, textarea) { font: inherit; color: inherit; }   /* (no weight: anything styled wins) */
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gw-win:focus, .gw-pan:focus { outline: none; } .gw-tabs button:focus-visible { outline-offset: -3px; }   /* (a phone's tab row scrolls: a ring outside would be cut off) */   /* O9: a window takes the focus itself when it opens: no ring round the whole window */
/* O9: the Effects switch off calms what reduced motion stops (the rule further down): windows fade instead of springing, the level-up only fades in */
body.no-fx #gwWin, body.no-fx #veil.open #loot { animation: gwFade .15s ease-out; } body.no-fx #gwBack.closing #gwWin { animation: gwFadeOut .17s ease-in forwards; }
body.no-fx #lvlup, body.no-fx #lvlup.show { transform: translate(-50%, -50%); transition: opacity .25s; }
@media (prefers-reduced-motion: reduce) { .cur.gain::after, .sti.flash::before { display: none; } }
#tray:not(.open), #veil:not(.open), #hatch:not(.open) { visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; }   /* (O9: a layer that's only see-through when shut kept its buttons in the Tab order) */   /* (O9: one-shot flashes that only fade by their animation would stay on screen without it) */
svg.ic { width: 1.05em; height: 1.05em; vertical-align: -.17em; flex: none; }
svg.ico { width: 1.3em; height: 1.3em; vertical-align: -.3em; flex: none; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35)); }
.gw-tabs svg.ico { margin-right: 5px; }
.tm { text-transform: none; letter-spacing: .3px; }   /* (polish r1: a countdown in an uppercase heading stays "14h 11m") */
svg.ico.go-r { transform: rotate(90deg); } svg.ico.go-l { transform: rotate(-90deg); }   /* (polish r1: the drawn arrow pointing right or left, in place of → ← ◀ ▶) */
.dk .well svg.ico { width: 26px; height: 26px; vertical-align: 0; }
.gw-badge svg.ico { width: 22px; height: 22px; vertical-align: 0; filter: none; }
.sti-ic svg.ico, .task > .ic svg.ico, .task-bonus > .ic svg.ico, .mo .av svg.ico { width: 60%; height: 60%; vertical-align: 0; }
.wd-tile svg.ico.e { width: 44px; height: 44px; margin: 4px 0 6px; }
[data-place="home"] .hub-only, [data-place="hub"] .home-only { display: none !important; }
@keyframes gwFade { from { opacity: 0; } }
@keyframes gwPop { 0% { opacity: 0; transform: translateY(24px) scale(.92); } 100% { opacity: 1; transform: none; } }   /* Flyworld 387 */
@keyframes bump { 40% { transform: scale(1.18); } }
@keyframes dotPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(76, 219, 138, .6); } 50% { box-shadow: 0 0 0 5px rgba(76, 219, 138, 0); } }
@keyframes bob { 50% { transform: translateY(-4px); } }

/* a glass panel with a gold hairline (Flyworld 734). M9: no backdrop blur on anything that stays on screen (the dock, the chat bar,
   the messenger, the room tools, Play): a blur over the 3D stage is redrawn every frame, which Edge on a laptop's built-in graphics
   pays for dearly; the panels are .92 opaque, so they look the same. Only the big modal backdrops keep a blur (not on Fast) */
.glass { border: 2px solid var(--gold-line); background: var(--glass);
  box-shadow: 0 0 0 1px #000, 0 6px 20px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .1); border-radius: 12px; }

/* ---------- top HUD ---------- */
#hud { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: calc(10px + var(--sa-t) / var(--ui, 1)) calc(14px + env(safe-area-inset-right, 0px) / var(--ui, 1)) 8px calc(14px + env(safe-area-inset-left, 0px) / var(--ui, 1)); pointer-events: none; z-index: 28; }   /* (#12: a phone on its side: clear of the notch) */
#hud > * { pointer-events: auto; }
.brand { display: flex; align-items: baseline; gap: 10px; flex: 1 1 0; min-width: 0; flex-wrap: wrap; max-height: 34px; overflow: hidden; }   /* (a tablet: a place name that doesn't fit wraps out of sight instead of sitting under the wallet) */
.brand-logo { width: 34px; height: 34px; flex: none; align-self: center; margin-right: -4px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }   /* AM: the logo, the fly's face */
.brand b { font: 400 26px/1 var(--gw-title); letter-spacing: 1.5px; text-transform: uppercase; color: var(--cream); text-shadow: 0 3px 0 #2a1840, 0 0 18px rgba(246, 194, 74, .35); }
.brand span { font: 600 12px/1 var(--gw-font); letter-spacing: 1.6px; text-transform: uppercase; color: var(--dim); white-space: nowrap; padding: 4px 9px; border-radius: 999px; background: rgba(12, 14, 30, .62); box-shadow: inset 0 0 0 1px rgba(246, 194, 74, .18); text-shadow: 0 1px 2px #000; }   /* R6: readable over a bright sky or scenery */
#wallet { display: flex; align-items: center; gap: 6px; flex: none; }   /* (a tablet: the place name gives way, never the wallet) */
.cur { display: flex; align-items: center; gap: 6px; padding: 3px 11px 3px 4px; border-radius: 20px; font: 700 16px/1 var(--gw-font); color: var(--honey); font-variant-numeric: tabular-nums;
  border: 2px solid var(--gold-line); background: var(--glass); box-shadow: 0 0 0 1px #000, 0 4px 12px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .1); }
button.cur:hover { filter: brightness(1.15); }
.cur svg { width: 26px; height: 26px; flex: none; margin: -2px 0; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)); }
#wallet .cur { position: relative; }
/* a gain: the icon does its trick (coin spins, gem flashes, ticket stamps) and a glow ring pops */
.cur.gain svg { animation: coinSpin .7s cubic-bezier(.3, 1.4, .5, 1); }
#cAmber.gain svg { animation: gemFlash .8s ease-out; } #cTickets.gain svg { animation: tixStamp .5s cubic-bezier(.3, 1.6, .5, 1); }
.cur.gain::after { content: ""; position: absolute; left: 1px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; pointer-events: none;
  border: 2px solid #ffe27a; box-shadow: 0 0 14px #ffd23c; animation: ringPop .6s ease-out forwards; }
#cAmber.gain::after { border-color: #ffb36a; box-shadow: 0 0 16px #ff9a2e, inset 0 0 10px #ffe9a0; }
@keyframes coinSpin { 0% { transform: rotateY(0) scale(1); } 50% { transform: rotateY(360deg) scale(1.35); } 100% { transform: rotateY(720deg) scale(1); } }
@keyframes gemFlash { 30% { transform: scale(1.4) rotate(-10deg); filter: brightness(1.6) drop-shadow(0 0 8px #ffb02e); } }
@keyframes tixStamp { 0% { transform: scale(1.6) rotate(12deg); opacity: .4; } 60% { transform: scale(.9) rotate(-4deg); opacity: 1; } }
@keyframes ringPop { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.cur.bump > span:not(.cp-gem) { display: inline-block; animation: bump .35s ease-out; }
#lvl { gap: 7px; padding-right: 10px; cursor: default; }
.lvcoin { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 400 14px/1 var(--gw-title); color: var(--ink);
  background: radial-gradient(circle at 35% 28%, #ffe98c, #e0a02a 75%); border: 2px solid #7a4d05; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5); }
.lvcoin.n3 { font-size: 10.5px; letter-spacing: -.6px; }   /* Q0: level 100+ fits the coin */
/* J1: the one progress bar: <span class="gw-bar"><i style="width:x%"></i></span>; .green when it's done, .shine for a sweep, .thin */
.gw-bar { display: block; height: 9px; border-radius: 5px; background: #150f1c; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); }
.gw-bar > i { display: block; position: relative; overflow: hidden; height: 100%; width: 0; border-radius: inherit; background: repeating-linear-gradient(-45deg, #ffd25a 0 6px, #f0a020 6px 12px); transition: width .5s cubic-bezier(.2, 1.4, .4, 1); }   /* Flyworld 468 */
.gw-bar.green > i, .set.ready .gw-bar > i, .task.done:not(.claimed) .gw-bar > i, .task.claimed .gw-bar > i { background: repeating-linear-gradient(-45deg, #8ae85a 0 6px, #4fae3a 6px 12px); }
.gw-bar.thin { height: 7px; margin-top: 5px; }
.gw-bar.shine > i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%) 0 0 / 250% 100%; animation: shimmer 2.6s ease-in-out infinite; }
#lvl .xp { width: 64px; }

/* ---------- the fly card (replaces the old belly tag under the fly) ---------- */
#flyCard { position: fixed; left: calc(14px + env(safe-area-inset-left, 0px) / var(--ui, 1)); top: calc(54px + var(--sa-t) / var(--ui, 1)); z-index: 27; display: flex; align-items: center; gap: 9px; padding: 5px 8px 5px 5px; border-radius: 34px 14px 14px 34px;
  border: 2px solid var(--gold-line); background: var(--glass); box-shadow: 0 0 0 1px #000, 0 6px 20px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .1); }
#pfp { position: relative; width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%; background: transparent; flex: none; }
#pfp .ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--bc, var(--leaf)) calc(var(--b, 70) * 1%), #2a2840 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px)); transition: --b .4s; }
#pfp img { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); border-radius: 50%; object-fit: cover; background: radial-gradient(circle at 50% 40%, #3e3b5e, var(--glass2));
  box-shadow: inset 0 0 0 2px #000; }
#pfp .mood { position: absolute; right: -5px; bottom: -3px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; background: var(--glass2); border: 2px solid var(--gold-line); }
#pfp:hover img { filter: brightness(1.12); }
.fc-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fc-txt b { font: 400 18px/1 var(--gw-title); letter-spacing: .5px; color: var(--cream); text-shadow: 0 2px 0 rgba(0, 0, 0, .5); white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.fc-txt span { font: 600 11.5px/1.1 var(--gw-font); color: var(--dim); white-space: nowrap; }
.fc-txt span.hungry { color: #ff9a8a; }
#accBtn { padding: 6px 10px; border-radius: 12px; border: 1px solid var(--gold-line); background: rgba(246, 194, 74, .14); color: var(--cream); font: 700 13px/1 var(--gw-font); white-space: nowrap; cursor: pointer; }
#accBtn:hover { border-color: var(--gold); background: rgba(246, 194, 74, .26); }
/* live rooms (B7): other flies' name tags, staff badges, the doorbell, the rooms window */
.flytag { font: 700 12px/1 var(--gw-font); color: var(--cream); background: rgba(10, 12, 24, .72); border: 1px solid var(--line); border-radius: 9px; padding: 3px 7px; text-shadow: 0 1px 0 #000; }
/* a rank's tag (G1): its colour, icon and effect are data the owners set (visit.js RANKS) */
.rank { --rk: #888; --rt: #fff; position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 2px; margin-left: 5px; padding: 1px 5px; border-radius: 6px; font: 800 9.5px/1.3 var(--gw-font); letter-spacing: .4px; text-transform: uppercase; font-style: normal; vertical-align: 1px;
  background-color: var(--rk); background-image: linear-gradient(rgba(255, 255, 255, .3), transparent 55%, rgba(0, 0, 0, .25)); color: var(--rt); border: 1px solid rgba(0, 0, 0, .4); text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
@supports (color: color-mix(in srgb, red 50%, blue)) { .rank { background-image: linear-gradient(color-mix(in srgb, var(--rk) 70%, #fff), var(--rk) 55%, color-mix(in srgb, var(--rk) 75%, #000)); border-color: color-mix(in srgb, var(--rk) 60%, #000); } }
.rank .ico { width: 10px; height: 10px; flex: none; }
.rank.fx-glow { box-shadow: 0 0 7px var(--rk); } @supports (color: color-mix(in srgb, red 50%, blue)) { .rank.fx-glow { box-shadow: 0 0 7px color-mix(in srgb, var(--rk) 80%, transparent); } }
.rank.fx-shine::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .6) 50%, transparent 65%); transform: translateX(-120%); animation: rank-shine 2.6s ease-in-out infinite; }
@keyframes rank-shine { 60%, 100% { transform: translateX(120%); } }
.rank.fx-sparkle { box-shadow: 0 0 5px var(--rk); animation: rank-sparkle 1.8s ease-in-out infinite; } @supports (color: color-mix(in srgb, red 50%, blue)) { .rank.fx-sparkle { box-shadow: 0 0 5px color-mix(in srgb, var(--rk) 60%, transparent); } }
@keyframes rank-sparkle { 50% { box-shadow: 0 0 10px var(--rk), 0 0 2px #fff; filter: brightness(1.15); } } @supports (color: color-mix(in srgb, red 50%, blue)) { @keyframes rank-sparkle { 50% { box-shadow: 0 0 10px color-mix(in srgb, var(--rk) 95%, #fff), 0 0 2px #fff; filter: brightness(1.15); } } }
@media (prefers-reduced-motion: reduce) { .rank.fx-shine::after, .rank.fx-sparkle { animation: none; } }
#bells { position: fixed; right: 14px; top: calc(110px + var(--sa-t)); z-index: 60; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 680px) { #bells { left: 10px; right: 10px; top: calc(160px * var(--ui, 1) + var(--sa-t)); align-items: center; } }   /* (zh: a phone's doorbell and trade cards sit under the fly card and the room bar, not on them) */
.bell { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 2px solid var(--gold-line); background: var(--glass); box-shadow: 0 6px 20px rgba(0, 0, 0, .45); color: var(--cream); font: 600 13px var(--gw-font); }
.nav-table { width: 100%; border-collapse: collapse; }
.nav-table td { padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.nav-table td small { display: block; color: var(--dim); font-size: 11.5px; }
.nav-table td:last-child { text-align: right; white-space: nowrap; }
.nav-table td.num { white-space: nowrap; color: var(--honey); font-weight: 700; }
.nav-table td:has(> .nav-room) { width: 100%; }   /* (N4: a room's name takes the room the buttons leave; no word-per-line at 375) */
.staff-fly > .nav-table td:last-child { white-space: normal; overflow-wrap: anywhere; }   /* the fly's facts wrap at phone width (G1) */
.nav-table .ico { width: 15px; height: 15px; vertical-align: -3px; margin-right: 3px; }
.nav-search { display: flex; gap: 6px; margin: 4px 0 10px; }
.nav-search input { flex: 1; }
.profile { display: flex; flex-direction: column; gap: 8px; }
.profile .btnrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.profile .flysprite { width: 120px; align-self: center; }
.profile table td { padding: 3px 8px 3px 0; } .profile .ok { color: var(--leaf); }
label.radio { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; padding: 6px 0; cursor: pointer; }
label.radio small { grid-column: 2; color: var(--dim); }
#elsewhere, #tabLock { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(6, 8, 16, .82); backdrop-filter: blur(4px); padding: 16px; }
#elsewhere[hidden], #tabLock[hidden] { display: none; }
#elsewhere .gw-card, #tabLock .gw-card { max-width: 360px; padding: 20px; border-radius: 16px; border: 2px solid var(--gold-line); background: var(--glass); color: var(--cream); text-align: center; display: grid; gap: 10px; }
#elsewhere h3, #tabLock h3 { margin: 0; font: 400 22px var(--gw-title); color: var(--gold); }
.staff-fly .btnrow { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.staff-fly .warn, .nav-table .warn { color: #ffb0a0; }
.report { padding: 8px 0; border-bottom: 1px solid var(--line); }
.report p { margin: 2px 0; } .report small { color: var(--dim); } .report .note { color: var(--honey); }
.req-cats { display: flex; flex-direction: column; gap: 4px; } .req-cats > span { font-weight: 700; font-size: 13px; color: var(--cream); } .req-cats .seg { flex-wrap: wrap; }   /* R2: Requests & Reports */
.report.req-news { box-shadow: inset 3px 0 0 var(--gold); padding-left: 8px; } .req-set { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0; } .req-set input { flex: 1 1 100%; min-width: 0; } .req-filter { width: 100%; margin-bottom: 8px; }
.report .context { margin: 6px 0; padding: 6px 8px; border-radius: 8px; background: rgba(0, 0, 0, .3); font: 500 12.5px/1.45 var(--gw-font); max-height: 180px; overflow: auto; }
.report .context .hl { background: rgba(255, 120, 100, .15); }
.report .context .held { color: #ffb0a0; }
#hatch .hatch-login { margin: 14px 0 0; text-align: center; font: 600 13px var(--gw-font); color: var(--dim); }
.dk em, .gw-tabs button em { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; font: 700 11px/16px var(--gw-font);
  font-style: normal; text-align: center; background: var(--ruby); color: #fff; border: 1px solid #4a0f1c; display: none; }
.dk em.on { display: block; animation: bump .5s ease-out; }


/* ---------- labels that follow things in the 3D world ---------- */
.tag { position: fixed; left: 0; top: 0; pointer-events: none; white-space: nowrap; transition: opacity .2s; z-index: 6; }
.tag.off, .tag.near-off { opacity: 0; }   /* near-off: a phone in Juice Valley shows only the nearest 5 names (core.js nearTag) */
.tag.offscr { visibility: hidden; }   /* Z: its thing is off the screen (core.js placeTag) */
.tag.tap { pointer-events: auto; cursor: pointer; } .tag.tap.off, .tag.tap.near-off { pointer-events: none; }   /* Z: a hub tag opens what it names */
.lbl { display: flex; align-items: center; gap: 6px; padding: 3px 9px; font: 700 12px/1.1 var(--gw-font); letter-spacing: .6px; text-transform: uppercase; color: var(--cream);
  border: 1px solid var(--hair); background: var(--glass); border-radius: 9px; box-shadow: 0 3px 10px rgba(0, 0, 0, .4); }
.tag.char-tag { gap: 4px; padding: 2px 8px 2px 5px; font-size: 11.5px; text-transform: none; letter-spacing: .3px; }   /* Y3: a character's name tag (its icon, its name), always on */
.tag.char-tag svg.ico { width: 1.5em; height: 1.5em; }
.tag.char-tag.far { font-size: 9.5px; padding: 1px 6px 1px 3px; }   /* (smaller when your fly is far away) */
.badge { font: 700 10px/1 var(--gw-font); letter-spacing: .8px; padding: 3px 6px; border-radius: 6px; text-transform: uppercase; white-space: nowrap; }
.b-live { background: #4a1220; color: #ff8a9a; } .b-live::before { content: "● "; animation: blink 1.2s infinite; }
.b-new { background: #14361f; color: var(--r-ripe); } .b-hot { background: #3a2410; color: var(--r-juicy); } .b-updated { background: #142a3e; color: var(--sky); }
.b-soon { background: #262540; color: var(--dim); } .b-ready { background: #3a2f10; color: var(--gold); }
@keyframes blink { 50% { opacity: .2; } }
#bubble { display: flex; align-items: center; gap: 6px; padding: 6px 12px; max-width: 230px; white-space: normal; text-align: left; font: 600 13.5px/1.3 var(--gw-font); border-radius: 12px; background: var(--bs, #fffaf0); color: var(--bs-ink, #241a10); opacity: 0;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .25), 0 0 0 2px var(--bs-edge, #241a10); overflow-wrap: anywhere; }   /* A2: the chat-bubble look (.chatb), in your own bubble colour */
#bubble svg.ico, #react svg.ico { width: 20px; height: 20px; flex: none; vertical-align: 0; }
#bubble::after, #react::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 9px; height: 9px; margin-left: -5px; background: var(--bs, #fffaf0); border-radius: 0 0 2px 0; transform: rotate(45deg); box-shadow: 2px 2px 0 var(--bs-edge, #241a10); }   /* a speech tail over its head */
#bubble.show { opacity: 1; }
#react { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bs, #fffaf0); box-shadow: 0 3px 0 rgba(0, 0, 0, .25), 0 0 0 2px var(--bs-edge, #241a10); opacity: 0; }   /* A1: a drawn reaction icon over the head */
#react svg.ico { width: 24px; height: 24px; }
#react.warm { opacity: .01; }   /* (the start: drawn faintly once, from the first paint, so the first real pop costs the graphics chip nothing: its box-shadows are made then; bootDone takes the class off, behind the card) */
svg.ico.rx-heart { color: #ff5f86; }   /* the heart icon fills with the text colour: pink over the head */
#react.show { opacity: 1; animation: reactPop .42s cubic-bezier(.3, 1.6, .5, 1) both, reactBob 1.5s .42s ease-in-out infinite; }
@keyframes reactPop { from { scale: .2; opacity: 0; } 60% { scale: 1.18; } to { scale: 1; } }   /* scale / translate, not transform: transform is the per-frame position (placeTag) */
@keyframes reactBob { 50% { translate: 0 -3px; } }
body.no-fx #react.show { animation: none; }
#hintPop { position: fixed; z-index: 40; pointer-events: none; padding: 5px 11px; border-radius: 999px; background: rgba(20, 16, 34, .92); color: var(--cream); font: 600 12.5px/1.2 var(--gw-font); white-space: nowrap; max-width: calc(100vw - 24px); overflow: hidden; text-overflow: ellipsis; box-shadow: 0 2px 8px rgba(0, 0, 0, .4), 0 0 0 1px var(--gold-line); opacity: 0; transform: translate(-50%, 0); transition: opacity .2s; }   /* A3: a system answer, at the spot you tapped */
#hintPop.show { opacity: 1; animation: hintUp .25s ease-out; }
@keyframes hintUp { from { translate: 0 8px; } }
body.no-fx #hintPop.show { animation: none; }
#belly { gap: 5px; padding: 3px 9px 3px 3px; cursor: pointer; }   /* A4: the belly meter, in the top bar on every width */
#belly .bl-ic { width: 31px; height: 31px; margin: -5px -2px -5px -1px; overflow: visible; }   /* (the apple itself is the gauge (Jesse's pick, 2026-11-19): it is eaten down from the top as the bar empties; it stands out of the chip a little) */
#belly .bl-empty { fill: #ffeccb; stroke: #c43a2a; stroke-width: .8px; transform: translateY(calc(var(--b, 70) * -.152px)); transition: transform .5s cubic-bezier(.2, 1.4, .4, 1), fill .4s; }
#belly.low .bl-empty { fill: #ffe0c4; }
#belly .bl-core { opacity: 0; transition: opacity .4s; } #belly.low .bl-core { opacity: 1; }   /* (nearly gone: the core and its pips show in the bitten part, so a hungry apple reads as eaten, not blank) */   /* (hungry: the pale bitten flesh, never a dark blob on the dark chip; the stroke is the bite's edge) */
#belly .bl-shine { fill: #fff; opacity: 0; }   /* (it ate, or it is full again: one white shine sweeps over the apple) */
#belly.fed .bl-shine { animation: bellyShine .7s ease-out .1s; }
@keyframes bellyShine { 0% { opacity: .85; transform: translateX(0); } 100% { opacity: 0; transform: translateX(36px); } }
#belly .bl { position: relative; width: 50px; height: 11px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6), 0 0 0 1px rgba(246, 194, 74, .38); }
#belly .bl::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent calc(30% - .5px), rgba(255, 255, 255, .28) 0 calc(30% + .5px), transparent 0 calc(70% - .5px), rgba(255, 255, 255, .5) 0 calc(70% + .5px), transparent 0); }   /* (the two marks: Hungry below the first, Well Fed from the second) */
#belly .bl > i { width: calc(var(--b, 70) * 1%); background-color: var(--bc, var(--leaf)); background-image: linear-gradient(rgba(255, 255, 255, .4), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, .2)), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .17) 0 4px, transparent 4px 8px); transition: width .5s cubic-bezier(.2, 1.4, .4, 1), background-color .4s; }
#belly .bl-t { display: none; font: 700 12px/1 var(--gw-font); font-style: normal; color: #86e89a; }   /* A4: Well Fed shows its bonus, not only in the tooltip */
#belly.well .bl-t { display: inline; }
#belly.low .bl { background: #3d1418; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6), 0 0 0 1px #ff5a4a; }
#belly.low .bl > i { background-color: #ff5a4a; }   /* (hungry: a brighter red on a dark red track, so the little that is left reads at phone size) */
/* the chip's glow: a soft red breath while hungry, a soft gold one while the belly is full (opacity only; still and quiet with Effects off) */
#belly::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none; opacity: 0; }
#belly.low::after { box-shadow: 0 0 0 1px var(--eye), 0 0 9px rgba(224, 54, 44, .8); opacity: .5; animation: bellyBreath 2.8s ease-in-out infinite; }
#belly.full::after { box-shadow: 0 0 0 1px var(--honey), 0 0 9px rgba(255, 224, 138, .75); opacity: .45; animation: bellyBreath 3.4s ease-in-out infinite; }
@keyframes bellyBreath { 0%, 100% { opacity: .2; } 50% { opacity: .8; } }
/* it dropped a band: a small shudder. It ate: a gulp, the bar pops and flashes while it fills */
#belly.pulse .bl-ic { animation: bellyPulse .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bellyPulse { 40% { transform: scale(1.25) rotate(-8deg); } }
#belly.fed .bl-ic { animation: bellyGulp .6s ease-out; }
@keyframes bellyGulp { 30% { transform: scale(1.18, .88); } 62% { transform: scale(.96, 1.07); } }
#belly.fed .bl { animation: bellyBarPop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bellyBarPop { 35% { transform: scaleY(1.3); } }
#belly.fed .bl > i { animation: bellyFlash .7s ease-out; }
@keyframes bellyFlash { 20% { filter: brightness(1.3); } }
body.no-fx #belly .bl-ic, body.no-fx #belly .bl-shine, body.no-fx #belly .bl, body.no-fx #belly .bl > i, body.no-fx #belly::after, body.lowfx #belly::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) { #belly .bl-ic, #belly .bl-shine, #belly .bl, #belly .bl > i, #belly::after { animation: none !important; } }
#think { pointer-events: auto; cursor: pointer; margin-left: 34px; width: 46px; height: 40px; padding: 0; border: 0; border-radius: 22px; background: #fff; font-size: 22px; line-height: 40px; text-align: center; box-shadow: 0 3px 0 rgba(0, 0, 0, .25);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
#think::before, #think::after { content: ""; position: absolute; border-radius: 50%; background: #fff; }
#think::before { width: 10px; height: 10px; left: 12px; bottom: -9px; } #think::after { width: 6px; height: 6px; left: 6px; bottom: -16px; }
#think.show { opacity: 1; visibility: visible; animation: thinkBob 1.6s ease-in-out infinite; }
@keyframes thinkBob { 50% { translate: 0 -4px; } }   /* translate, not transform: transform is the per-frame position (placeTag) */
#comboTag { display: flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 10px; border: 1px solid var(--hair); background: var(--glass); opacity: 0; }
#comboTag.show { opacity: 1; }
#comboTag b { font: 400 15px/1 var(--gw-title); color: var(--honey); }
#comboTag .meter { width: 54px; height: 6px; border-radius: 3px; background: #150f1c; overflow: hidden; }
#comboTag .meter i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .1s; }
#comboTag.frenzy { border-color: var(--pink); box-shadow: 0 0 14px rgba(255, 134, 176, .6); }
#comboTag.frenzy b { color: var(--pink); } #comboTag.frenzy .meter i { background: var(--pink); }
.plus { position: fixed; left: 0; top: 0; pointer-events: none; font: 400 22px/1 var(--gw-title); color: var(--honey); text-shadow: 0 2px 0 #4a2a05, 0 0 8px rgba(0, 0, 0, .5); z-index: 24; }
.plus.gold { font-size: 30px; color: #fff3a0; text-shadow: 0 3px 0 #7a4d05, 0 0 18px rgba(255, 210, 60, .9); }
.plus.say { font: 600 15px/1.25 var(--gw-font); width: max-content; max-width: min(240px, 70vw); text-align: center; text-shadow: 0 1px 0 #2a1f3a, 0 0 6px rgba(0, 0, 0, .7); }   /* Mo's lines over her stall: the whole line, wrapped */
.flyer { position: fixed; left: 0; top: 0; width: 26px; height: 26px; pointer-events: none; z-index: 50; filter: drop-shadow(0 0 6px rgba(255, 214, 90, .85)); }
.flyer svg { width: 100%; height: 100%; }
body.pay-up #hud { z-index: 31; }   /* (coins landing while a window is open: the counter rises above the blur, the rest of the bar stays frosted) */
body.pay-up #hud > *:not(#wallet), body.pay-up #wallet > :not(.paying) { opacity: .3; filter: blur(3px); transition: opacity .2s, filter .2s; }
#wallet .cur.paying { filter: drop-shadow(0 0 10px rgba(255, 214, 90, .85)); transition: filter .2s; }
body.pay-up #hud, body.pay-up #hud * { pointer-events: none; }   /* (the lifted bar never takes a tap: the window's X under it stays tappable) */
@media (max-width: 680px) { body.pay-up #hud > *:not(#wallet), body.pay-up #wallet > :not(.paying) { opacity: 0; } }   /* (a phone: the window's X sits under the bar's corner, so only the counter shows) */
.flyer.pips svg { animation: coinFlip .36s linear infinite; }   /* a spinning coin in flight */
.flyer.amber { filter: drop-shadow(0 0 8px rgba(255, 160, 50, .95)); } .flyer.amber svg { animation: gemTwinkle .45s ease-in-out infinite; }
.flyer.tickets svg { animation: tixWob .5s ease-in-out infinite; }
@keyframes coinFlip { 50% { transform: scaleX(.12); } }
@keyframes gemTwinkle { 50% { transform: scale(1.2) rotate(10deg); } }
@keyframes tixWob { 50% { transform: rotate(-18deg) scale(1.1); } }

/* ---------- dock (Flyworld's round metal buttons, 443–445) ---------- */
/* K2: one Habbo toolbar along the bottom, the same in every place: left group · the middle (Play, or the chat bar's spot) · right group */
#dock { position: fixed; left: 0; right: 0; bottom: calc(var(--fixGap, 0px) * -1 / var(--ui, 1)); z-index: 20; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 8px; padding: 5px 12px calc(5px + env(safe-area-inset-bottom, 0px) / var(--ui, 1)); box-sizing: border-box;
  border-top: 2px solid var(--gold-line); background: linear-gradient(180deg, rgba(38, 34, 70, .92), rgba(20, 18, 40, .96)); box-shadow: 0 -1px 0 #000, 0 -6px 20px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08); }
.dk-l, .dk-r { display: flex; align-items: flex-end; gap: 2px; min-width: 0; } .dk-r { justify-content: flex-end; }
.dk-c { display: flex; justify-content: center; min-width: var(--chatW, 0px); }
body:not(.stack) .dk-r { padding-right: calc(var(--msgrW, 0px) + 6px); }   /* the messenger sits at the bar's right end */
#staffBtn { position: relative; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 2px solid var(--gold-line); background: var(--glass); box-shadow: 0 0 0 1px #000, 0 4px 12px rgba(0, 0, 0, .4); }
#staffBtn[hidden] { display: none; } #staffBtn .ico { width: 24px; height: 24px; } #staffBtn:hover { filter: brightness(1.2); }
#staffBtn em { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: var(--ruby); color: #fff; font: 700 10.5px/15px var(--gw-font); font-style: normal; text-align: center; display: none; } #staffBtn em.on { display: block; }
.dk { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 60px; padding: 2px 0; border: 0; background: transparent; font: 400 12.5px/1 var(--gw-title); letter-spacing: .5px; color: #d6cfee; text-shadow: 0 1px 0 rgba(0, 0, 0, .7); cursor: pointer; }   /* the same hand as over the room: no cursor swap (some Linux cursor themes flash an X while swapping) */
.dk .well { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 21px; line-height: 1; border: 3px solid var(--metal);
  background: radial-gradient(circle at 35% 28%, #6a6a92, #2b2a45); box-shadow: 0 0 0 2px var(--stone-d), 0 3px 0 2px rgba(0, 0, 0, .45); transition: transform .1s, filter .12s; }
.dk:hover:not(:disabled) .well { transform: translateY(-3px) scale(1.05); filter: brightness(1.15); }
.dk:active:not(:disabled) .well { transform: translateY(1px); }
.dk[aria-pressed="true"] { color: var(--honey); }
.dk[aria-pressed="true"] .well { border-color: var(--gold); background: radial-gradient(circle at 35% 28%, var(--honey), #c98a1f); box-shadow: 0 0 0 2px var(--wood-d), 0 0 18px rgba(246, 194, 74, .7); }
.dk:disabled { opacity: .45; cursor: default; }
.dk em { top: -4px; right: 6px; }
.dk-sep { width: 1px; align-self: stretch; margin: 6px 4px; background: var(--line); }

/* ---------- gw window (Flyworld 384–439 + slimmer 661–689) ---------- */
#gwBack { position: fixed; inset: 0; z-index: 30; display: none; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(14, 10, 28, .35), rgba(6, 4, 16, .78)); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
#gwBack.open { display: flex; animation: gwFade .2s ease-out; }
#gwBack.closing { animation: gwFadeOut .17s ease-in forwards; pointer-events: none; }   /* I19: a window shrinks away */
#gwBack.closing #gwWin { animation: gwShrink .17s ease-in forwards; }
@keyframes gwFadeOut { to { opacity: 0; } }
@keyframes gwShrink { to { opacity: 0; transform: translateY(12px) scale(.9); } }
.gw-tabs { position: relative; }
.gw-tabs button.on { border-bottom-color: transparent !important; }
.gw-tabs .tab-ind { position: absolute; left: 0; bottom: 0; height: 3px; will-change: transform; border-radius: 2px; background: var(--gold); box-shadow: 0 0 6px rgba(246, 194, 74, .6); pointer-events: none; }   /* I19: the tab underline slides */
.gw-tabs .tab-ind.go { transition: transform .22s cubic-bezier(.3, 1.3, .5, 1); }
.gw-win { position: relative; display: flex; flex-direction: column; font-family: var(--gw-font); }   /* (the frame itself: .gw-win is an alias of .ui-win, shared/ui-kit.css) */
#gwWin { width: min(920px, calc(var(--vw) - var(--gw-dx))); height: min(680px, calc(var(--vh) - 70px)); padding: 46px 14px 14px; animation: gwPop .28s cubic-bezier(.2, 1.45, .4, 1); }
#gwWin.small { width: min(520px, calc(var(--vw) - var(--gw-dx))); height: auto; max-height: calc(var(--vh) - 70px); }
#gwBack.side { justify-content: flex-end; padding-right: 24px; background: linear-gradient(90deg, rgba(6, 4, 16, 0), rgba(6, 4, 16, .55)); backdrop-filter: none; -webkit-backdrop-filter: none; }
#gwWin.side { width: min(700px, calc(var(--vw) - var(--gw-dx))); height: auto; max-height: calc(var(--vh) - 70px); }
.gw-gem { position: absolute; width: 20px; height: 20px; z-index: 3; pointer-events: none; clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); background: linear-gradient(135deg, var(--honey), #b87a14); }
.gw-gem::after { content: ''; position: absolute; inset: 3px; clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); background: radial-gradient(circle at 35% 30%, #ff9fb8, #e23c64 45%, #7a1530); }
.gw-gem.tl { left: -10px; top: -10px; } .gw-gem.tr { right: -10px; top: -10px; } .gw-gem.bl { left: -10px; bottom: -10px; } .gw-gem.br { right: -10px; bottom: -10px; }
.gw-head { position: absolute; left: 0; right: 0; top: -20px; display: flex; justify-content: center; pointer-events: none; z-index: 4; }
.gw-head > * { pointer-events: auto; }
.gw-badge { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 17px; background: radial-gradient(circle at 35% 28%, #ffe98c, #e0a02a 75%); border: 2px solid #4a0f1c; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5); }
.gw-chip { position: absolute; left: 16px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border: 2px solid var(--gold-line); border-radius: 12px; background: #17162a; color: var(--honey); font: 400 15px var(--gw-title); }
.gw-chip svg { width: 18px; height: 18px; }
.gw-tabs { flex: none; }   /* top room for the count badges · Q0: one row that scrolls (the staff window's 11 tabs wrapped onto two) */
.gw-tabs:has(> button:nth-of-type(9)) button { padding-left: 6px; padding-right: 6px; font-size: 13.5px; letter-spacing: .3px; }   /* (a window with many tabs packs them tighter) */
@media (pointer: fine) { .gw-tabs { scrollbar-width: thin; scrollbar-color: rgba(246, 194, 74, .35) transparent; } }   /* (a mouse can still reach a tab past the edge) */
.gw-tabs button em { top: -7px; right: -4px; display: block; }
.gw-tabs button em:empty { display: none; }
.tab-over, #gwWin > .tab-over-menu { display: none; } #gwWin > .tab-over-menu { right: 10px; bottom: auto; z-index: 6; }
@media (max-width: 680px), (max-height: 520px) and (orientation: landscape) { #gwBack > #gwWin::before { inset: -6px; } }   /* (a phone's window sits close to the edge) */
@media (max-width: 680px) { .gw-tabs button.over { display: none; } .gw-tabs .tab-over { display: inline-flex; align-items: center; } #gwWin > .tab-over-menu:not([hidden]) { display: flex; }
  .gw-tabs .tab-over svg.tab-caret { width: 13px; height: 13px; margin: 0 -2px 0 3px; }
  #gwWin > .gw-tabs button em { top: 1px; right: 1px; min-width: 15px; height: 15px; padding: 0 4px; font-size: 9.5px; line-height: 13px; } }   /* (a count stays on its own tab, clear of the close button) */
.gw-body { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(8, 7, 18, .38); box-shadow: inset 0 2px 12px rgba(0, 0, 0, .35);
  scrollbar-width: thin; scrollbar-color: #8a7a5a transparent; animation: gwFade .15s ease-out; }
.gw-btn { white-space: nowrap; }   /* (its look: shared/ui-kit.css. I15: buttons squish a touch) */
/* I15: the UI feels juicy (kept small): badges with news pulse, cards catch the light on hover */
.dk:active .well, .dk button:active .well { transform: scale(.92); transition: transform .08s; }
.dk em.on { animation: bump .5s ease-out, dotPulseR 2.4s ease-in-out .6s infinite; }
@keyframes dotPulseR { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 71, 79, .55); } 50% { box-shadow: 0 0 0 5px rgba(232, 71, 79, 0); } }
.sti:not(.r-juicy):not(.r-overripe):not(.r-fermented)::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .14) 50%, transparent 60%); background-size: 250% 100%; background-position: 130% 0; pointer-events: none; opacity: 0; transition: opacity .2s; }   /* (juicy and up have their own shine and sparkles) */
.sti:not(.r-juicy):not(.r-overripe):not(.r-fermented):hover::after { opacity: 1; animation: shimmer 1.2s ease-out; }
body.no-fx .sti, body.no-fx .sti::after, body.no-fx .sti-stage::before { animation: none !important; } body.no-fx .flyer, body.no-fx .confetti { display: none; }
.gw-btn.sm { font-size: 13.5px; padding: 5px 12px; }
.gw-btn svg { vertical-align: -.2em; margin-right: 4px; }
.gw-sec { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; font: 700 12px var(--gw-font); letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); }
.gw-sec:first-child { margin-top: 0; }
.gw-sec::before { content: ''; width: 6px; height: 6px; transform: rotate(45deg); background: var(--ruby); border: 1px solid var(--gold); flex: none; }
.gw-sec::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(246, 194, 74, .55), transparent); }
.gw-empty { display: grid; justify-items: center; gap: 8px; padding: 26px 10px; text-align: center; color: var(--dim); font-size: 14px; }   /* J1: windows.js emptyHtml / loadFail */
.gw-empty > svg.ico { width: 40px; height: 40px; vertical-align: 0; opacity: .6; filter: grayscale(.35) drop-shadow(0 2px 0 rgba(0, 0, 0, .35)); }
.gw-empty p { margin: 0; max-width: 40ch; }
.gw-empty.fail > svg.ico { opacity: .8; filter: none; }
.wd-grid > .gw-empty, .sti-grid > .gw-empty, .chips > .gw-empty { grid-column: 1 / -1; flex-basis: 100%; }
.gw-pan .gw-empty { padding: 16px 8px; font-size: 13px; } .gw-pan .gw-empty > svg.ico { width: 30px; height: 30px; }
.gw-note { color: var(--dim); font-size: 12.5px; }
/* J1: the one text field (dark navy, a gold hairline). Inputs, selects and textareas in windows, panels and the tray get it
   without the class (no weight: a context rule above or below only sets its size) */
.gw-input, :where(.gw-win, .gw-pan, #tray) :where(input:not([type=checkbox], [type=radio], [type=color], [type=range]), select, textarea) {
  box-sizing: border-box; min-width: 0; padding: 7px 10px; border: 1px solid var(--hair); border-radius: 8px; background: #15142a; color: var(--cream); font: 600 14px var(--gw-font); }
:where(.gw-win, .gw-pan) textarea { width: 100%; resize: vertical; }
.gw-note b { color: var(--honey); }

/* item tiles + colour swatches (Flyworld 483–490, 708–711) */
.wd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.wd-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 11px 5px 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .28);
  color: var(--cream); font: 600 12.5px/1.15 var(--gw-font); text-align: center; transition: transform .1s, background .12s, border-color .12s; }
.wd-tile .e { font-size: 32px; line-height: 1.1; }
/* item pictures (shared/thumbs.js): real renders of the 3D models */
img.thumb { display: block; object-fit: contain; }
.wd-tile img.thumb.e { width: 64px; height: 64px; margin: -6px 0 -4px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35)); background: radial-gradient(closest-side, rgba(255, 246, 220, .2), transparent); border-radius: 50%; }   /* the glow keeps dark items (sunglasses) visible */
img.thumb.xs { display: inline-block; width: 18px; height: 18px; vertical-align: -.3em; margin-right: 3px; }
.spin { display: block; width: 100%; height: 100%; } img.spin { object-fit: contain; } .more-end { display: block; height: 1px; }   /* O3: a card picture turns into the canvas on hover; the end of a paged grid */
.bag-detail .big .spin { position: absolute; inset: 0; margin: auto; width: auto; height: 100%; aspect-ratio: 1; }   /* (N4: fits the box at every size, centred) */
.wd-tile .n { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wd-tile:hover:not(.lock) { transform: translateY(-3px); background: rgba(255, 255, 255, .08); }
.wd-tile.on { border-color: var(--gold); background: rgba(246, 194, 74, .18); color: var(--honey); }
.wd-tile.sel { border-color: var(--honey); box-shadow: 0 0 0 2px var(--honey), 0 0 16px rgba(246, 194, 74, .45); }
.wd-tile .rar { position: absolute; top: 0; left: 12px; right: 12px; height: 3px; border-radius: 0 0 3px 3px; }
.wd-tile .q { position: absolute; top: 5px; right: 6px; min-width: 18px; padding: 0 4px; border-radius: 9px; font: 700 11px/16px var(--gw-font); background: #14341c; color: #bff5cc; border: 1px solid #2f9650; }
.wd-tile .dot { position: absolute; top: 6px; left: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--ruby); box-shadow: 0 0 6px var(--ruby); }
.wd-tile .st { font: 600 10.5px/1 var(--gw-font); letter-spacing: .6px; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 3px; }
.wd-tile.on .st { color: var(--honey); }
.wd-tile.lock { opacity: .6; } .wd-tile.lock .e { filter: grayscale(.8) brightness(.7); }
.wd-tile .club-rib { position: absolute; top: 5px; right: 5px; display: flex; align-items: center; gap: 2px; padding: 1px 6px 1px 3px; border-radius: 9px; font: 700 10px/15px var(--gw-font); letter-spacing: .3px; color: #ffd86a; background: linear-gradient(#5a2a8a, #2e1648); border: 1px solid #c9902a; z-index: 1; }   /* R3: a Fly Club piece in its own part's tab */
.wd-tile .club-rib .ico { width: 12px; height: 12px; }
.wd-tile.club.lock { opacity: .85; } .wd-tile.club.lock .e { filter: grayscale(.35) brightness(.85); }   /* (locked club pieces still look rare: you see what the club brings) */
.wd-c { width: 30px; height: 30px; border-radius: 50%; padding: 0; border: 2px solid var(--stone-d); transition: transform .1s; }
.wd-c:hover { transform: scale(1.15); } .wd-c.on, .wd-c[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--gold); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px; }
.sw { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--line); padding: 0; }
.sw[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(246, 194, 74, .4); }

/* ---------- bag (inventory) ---------- */
.bag { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 14px; align-content: start; align-items: start; }
.bag-grid { align-content: start; }
.bag-detail { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--hair); border-radius: 12px; background: linear-gradient(180deg, #26243d, #1a192c); box-shadow: inset 0 0 30px rgba(0, 0, 0, .35); }
.bag-detail .big { display: grid; place-items: center; height: 120px; border-radius: 10px; background: radial-gradient(circle at 50% 45%, #3e3b5e, var(--glass2)); font-size: 64px; position: relative; overflow: hidden; }
.bag-detail .big img { height: 118px; }
.bag-detail h3 { margin: 0; font: 700 19px/1.1 var(--gw-font); color: var(--cream); }
.bag-detail p { margin: 0; color: var(--dim); font-size: 13px; }
.bag-detail .facts { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 10px; border: 1px solid currentColor; font: 700 10.5px/16px var(--gw-font); letter-spacing: .6px; text-transform: uppercase; vertical-align: middle; }   /* (icons 2026-11-19: an inline-flex chip that starts with an icon takes its baseline from the icon's bottom, so Club rode 1.5 px above Juicy; middle lines every chip up, icon or not) */
.chips:has(> .chip) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }   /* (one rule for every tag row: centred, a 4 px gap, wraps on a narrow screen as inline tags did; the Looks card's rarity + Club touched with no gap) */
.chip.plain { color: var(--dim); border-color: var(--line); background: rgba(0, 0, 0, .25); }
.bag-detail .acts { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.bag-detail .tints { display: flex; flex-wrap: wrap; gap: 7px; }
.bag-detail .hint { color: var(--dim); font-size: 12px; text-align: center; }
.bag-preview { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .22); }
.bag-preview img { width: 76px; height: 76px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #3e3b5e, var(--glass2)); object-fit: cover; border: 2px solid var(--gold-line); }
.bag-preview .worn { display: flex; flex-wrap: wrap; gap: 5px; }

/* bag: the belly preview for snacks */
.belly-bar { position: relative; height: 10px; border-radius: 5px; background: #150f1c; border: 1px solid var(--line); overflow: hidden; }
.belly-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--leaf); }
.belly-bar i.gain { background: repeating-linear-gradient(45deg, var(--gold) 0 5px, var(--honey) 5px 10px); animation: blink 1.4s infinite; }
.bag-detail .hint b { color: var(--honey); }

/* ---------- wardrobe (at home) ---------- */
.wr { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px; align-items: start; }
.wr-look { position: sticky; top: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--hair); border-radius: 12px; background: linear-gradient(180deg, #26243d, #1a192c); }
.wr-look img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; background: radial-gradient(circle at 50% 40%, #3e3b5e, var(--glass2)); border: 2px solid var(--gold-line); }
.wr-look b { font: 700 18px/1 var(--gw-font); color: var(--cream); }
.wr-look .worn { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; } .wr-look .worn i { color: var(--dim); font-style: normal; }
.wr-pick .tints { display: flex; flex-wrap: wrap; gap: 7px; }

/* ---------- account forms (app/auth.js) ---------- */
.authf { display: flex; flex-direction: column; gap: 10px; }
.authf label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 13px; color: var(--cream); }
.authf :where(input:not([type=checkbox], [type=radio]), select, textarea) { padding: 10px 11px; font-size: 15px; }   /* forms: a size up */
.authf label.tick { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }
.authf label.tick input { width: 18px; height: 18px; accent-color: var(--gold); }
.authf .lead { margin: 0; font-size: 13.5px; color: var(--cream); } .authf .lead b { color: var(--honey); }
.authf .fine { margin: 0; font-size: 12px; color: var(--dim); }
.authf .err { margin: 0; min-height: 1.2em; font-size: 13px; font-weight: 700; color: #ff8a9a; }
.authf .code { padding: 14px 10px; border-radius: 10px; border: 2px dashed var(--gold); background: rgba(246, 194, 74, .08); text-align: center; font: 700 20px/1.3 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 1px; color: var(--honey); user-select: all; white-space: nowrap; font-size: min(20px, 4.6vw); }
.apts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.authf label.apt { position: relative; gap: 3px; padding: 7px; border: 2px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .25); cursor: pointer; }
.apt input { position: absolute; opacity: 0; pointer-events: none; }
.apt .pv { height: 46px; border-radius: 8px; background: linear-gradient(135deg, var(--a) 0 46%, var(--b) 46% 76%, var(--c) 76%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); display: flex; align-items: center; justify-content: center; }
svg.shape rect { fill: rgba(255, 250, 240, .85); } svg.shape rect.door { fill: var(--gold); }
.apt .pv svg.shape { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.apts button.apt { display: grid; gap: 3px; padding: 7px; border: 2px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .25); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.apts button.apt .pv { background: rgba(255, 255, 255, .06); } .apts button.apt:hover { border-color: var(--gold); }
.nav-table svg.shape { float: left; margin: 2px 8px 0 0; } .nav-table svg.shape rect { fill: rgba(255, 250, 240, .6); }
.apt b { font-size: 13px; color: var(--cream); } .apt small { font-size: 11px; line-height: 1.25; color: var(--dim); font-weight: 600; }
.apt:has(input:checked) { border-color: var(--gold); background: rgba(246, 194, 74, .12); }
.apt:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.authf label small { font-weight: 600; color: var(--dim); }
.set-row b.warn { color: #ffb36a; }
.linkish { padding: 0; border: 0; background: none; color: var(--honey); font: inherit; text-decoration: underline; cursor: pointer; }
.btnrow { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; } .btnrow > .ui-back { order: -1; margin-right: auto; }   /* (Back stays on the left, the actions on the right) */

/* ---------- boop gym ---------- */
.gym-cap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 4px 0; font-size: 13px; color: var(--cream); }
.gym-cap .gw-bar { height: 12px; border-radius: 6px; }
.gym-cap b { color: var(--honey); white-space: nowrap; }
.ms-row { display: flex; flex-wrap: wrap; gap: 5px; } .ms-row .chip.done { color: var(--leaf); border-color: var(--leaf); }
.ms-row .ic, .gym-cap .ic { width: 14px; height: 14px; vertical-align: -.2em; }

/* ---------- shop (Flyworld's store cards .sti, 502–514 + 691–696) ---------- */
.mo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 8px 12px; border: 1px solid var(--hair); border-radius: 12px; background: linear-gradient(90deg, rgba(246, 194, 74, .12), rgba(0, 0, 0, .2)); }
.mo .av { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; font-size: 26px; background: radial-gradient(circle at 35% 28%, #b9b0e8, #5a4f8f); border: 2px solid var(--gold-line); }
.mo p { margin: 0; flex: 1; font-size: 13.5px; color: var(--cream); } .mo p b { color: var(--honey); }
.vend-head { gap: 12px; padding: 6px 12px 6px 6px; background: linear-gradient(90deg, rgba(255, 255, 255, .08), rgba(0, 0, 0, .2)); } @supports (color: color-mix(in srgb, red 50%, blue)) { .vend-head { background: linear-gradient(90deg, color-mix(in srgb, var(--lc) 30%, transparent), rgba(0, 0, 0, .2)); } }   /* Y3: a counter's top (polish r5: one block everywhere: the character, their name, what they sell, their line in a bubble) */
.vend-head .vend-pic { width: 92px; height: 92px; margin: -6px 0; flex: none; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
.vh-t { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; } .vh-t .vh-n { font: 400 19px/1.15 var(--gw-title); letter-spacing: .5px; color: var(--honey); } .vh-t small { font-size: 12px; line-height: 1.3; color: var(--dim); }
.vend-head .vh-t p { position: relative; flex: none; margin: 5px 0 0 6px; padding: 6px 11px; border: 1px solid var(--hair); border-radius: 12px; background: #23203c; font-size: 13.5px; line-height: 1.35; transform-origin: 0 50%; }
.vend-head .vh-t p::before { content: ""; position: absolute; left: -6px; top: 11px; width: 9px; height: 9px; border: 1px solid var(--hair); border-width: 0 0 1px 1px; background: #23203c; transform: rotate(45deg); }
.vend-head .vh-t p.said { animation: vhSay .38s cubic-bezier(.2, 1.5, .4, 1); } @keyframes vhSay { 0% { opacity: .3; transform: scale(.88); } 100% { opacity: 1; transform: none; } }   /* (a new line pops in its bubble) */
body.no-fx .vend-head .vh-t p.said { animation: none; } @media (prefers-reduced-motion: reduce) { .vend-head .vh-t p.said { animation: none; } }
.gus-soon { margin-top: 10px; gap: 6px; padding: 22px 12px 18px; border: 1px dashed var(--hair); border-radius: 14px; background: rgba(0, 0, 0, .18); } .gus-soon > svg { width: 44px; height: 44px; opacity: .9; color: #ff9a3c; }
.gus-soon .gs-t { font: 400 clamp(26px, 8vw, 34px)/1.1 var(--gw-title); letter-spacing: .6px; color: #ffd34a; text-shadow: 0 2px 0 rgba(0, 0, 0, .5); } .gus-soon .ui-btn { margin-top: 8px; max-width: 280px; }
@media (max-height: 480px) and (orientation: landscape) { .gus-soon { padding: 10px; gap: 3px; } .gus-soon > svg { width: 30px; height: 30px; } .gus-soon .ui-btn { margin-top: 4px; } }
.sti .eat-now { position: absolute; right: 6px; top: 6px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; min-height: 36px; box-sizing: border-box; padding: 0 12px 0 9px; border: 1px solid var(--gold-line); border-radius: 18px; background: linear-gradient(#7fd05a, #3f9a2a); color: #fff; font: 700 13px/1 var(--gw-font); text-shadow: 0 1px 0 rgba(10, 50, 20, .6); cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }   /* (polish r5: 36 px, green: it costs nothing) */
.sti .eat-now .ico { width: 16px; height: 16px; } .sti .eat-now:hover { filter: brightness(1.1); } .sti .eat-now:active { transform: scale(.95); } .sti .eat-now[hidden] { display: none; }
/* AB4: Luh Calm Coffee's stamp card (app/cards.js stampCard): a cream card, 10 cup stamps (5 × 2), the new ones thunked on */
.stamps { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 14px; margin: -4px 0 14px; padding: 10px 14px; border: 1px solid var(--gold-line); border-radius: 12px; background: linear-gradient(135deg, #f6ecd6, #e9dcbf); color: #4a2c1a; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35), 0 3px 8px rgba(0, 0, 0, .3); }
.stamps .stp-t b { display: block; font: 19px/1.1 var(--gw-title); color: #6b3a22; letter-spacing: .5px; } .stamps .stp-t small { display: block; margin-top: 3px; font-size: 12.5px; color: #6a4a34; }
.stp-row { display: grid; grid-template-columns: repeat(5, 36px); gap: 5px; margin: 0; padding: 0; list-style: none; }
.stp-row li { width: 36px; height: 36px; transform: rotate(var(--r)); } .stp-row svg { display: block; width: 100%; height: 100%; }
.stp-row .stp-ring { fill: none; stroke: rgba(107, 58, 34, .35); stroke-width: 1.4; stroke-dasharray: 3 2.6; } .stp-row .stp-ink { opacity: 0; } .stp-row li.on .stp-ink { opacity: .92; } .stp-row li.on .stp-ring { display: none; }
.stp-row li.new { animation: stp-thunk .42s cubic-bezier(.3, 1.5, .5, 1) var(--d) both; }
@keyframes stp-thunk { 0% { transform: rotate(calc(var(--r) - 30deg)) scale(2.2); opacity: 0; } 55% { transform: rotate(var(--r)) scale(.86); opacity: 1; } 100% { transform: rotate(var(--r)) scale(1); } }
.stamps.done { animation: stp-done .6s ease-out both; } @keyframes stp-done { 0%, 100% { transform: none; } 30% { transform: scale(1.04) rotate(-.6deg); } 60% { transform: scale(.99) rotate(.4deg); } }
.stamps.full { background: linear-gradient(135deg, #fff4d8, #f1d99c); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .45), 0 0 18px rgba(246, 194, 74, .55); }
.stp-pick { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; } .stp-pick .gw-btn { display: inline-flex; align-items: center; gap: 4px; } .stp-pick img { width: 24px; height: 24px; margin: -4px 0; object-fit: contain; }
@media (max-width: 520px) { .stamps { grid-template-columns: 1fr; justify-items: center; text-align: center; } .stp-pick { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .stp-row li.new, .stamps.done { animation: none; } }
.mo .bal { display: flex; gap: 10px; font: 700 14px var(--gw-font); color: var(--honey); white-space: nowrap; }
.mo .bal svg { width: 18px; height: 18px; vertical-align: -.25em; margin-right: 3px; }
.sti-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
/* the item turning on a pedestal, lit in its rarity colour */
.sti-stage { position: relative; height: 138px; margin: -11px -11px 0; border-radius: 12px 12px 0 0; overflow: hidden;
  background: linear-gradient(180deg, #2c2a48, #1e1d33); }
@supports (color: color-mix(in srgb, red 50%, blue)) { .sti-stage { background: radial-gradient(ellipse 55% 60% at 50% 58%, color-mix(in srgb, var(--rc, #888) 34%, transparent), transparent 70%), linear-gradient(180deg, #2c2a48, #1e1d33); } }
.sti-stage::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 10px; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .45), transparent); pointer-events: none; }
.sti-stage .spin { position: absolute; inset: 0 0 6px; margin: auto; width: 138px; height: 138px; z-index: 1; }
.sti-stage .emo.big { display: grid; place-items: center; height: 100%; font-size: 56px; }
/* juicy and up get a slow shimmer across the stage */
.r-juicy .sti-stage::before, .r-overripe .sti-stage::before, .r-fermented .sti-stage::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .16) 47%, transparent 58%); background-size: 260% 100%; background-position: 130% 0; }
.sti:hover .sti-stage::before, .sti.rare .sti-stage::before, .deal .sti-stage::before { animation: shimmer 3.4s ease-in-out infinite; }   /* (shop round, 2026-10-22: a grid of 24 cards no longer repaints 24 shimmers every frame while it scrolls: they shine under the pointer; the week's rares and the deal keep theirs) */
.r-fermented .sti-stage::before { background-image: linear-gradient(105deg, transparent 35%, rgba(255, 230, 140, .3) 47%, transparent 58%); }
@keyframes shimmer { 0% { background-position: 130% 0; } 60%, 100% { background-position: -40% 0; } }
.sti .ribbon { position: absolute; top: 10px; left: -26px; z-index: 3; width: 92px; padding: 2px 0; transform: rotate(-38deg); text-align: center; font: 13px/1.2 var(--gw-title); letter-spacing: 1px; text-transform: uppercase;
  color: #fff; background: linear-gradient(#ff5470, #c41e3a); box-shadow: 0 2px 4px rgba(0, 0, 0, .4); }
.sti .tryon { position: absolute; left: 8px; top: 8px; z-index: 3; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--hair); border-radius: 50%; background: rgba(20, 18, 34, .7); color: var(--cream); cursor: pointer; }   /* (N4: a small icon chip opposite the heart, off the art) */
.sti .tryon .ico { width: 16px; height: 16px; margin: 0; } .sti-stage .ribbon ~ .tryon { top: auto; bottom: 8px; }   /* (the New ribbon has the top corner) */
.sti .tryon.sure { width: auto; padding: 0 9px; border-radius: 14px; border-color: var(--gold); background: rgba(20, 18, 34, .9); font: 600 11.5px var(--gw-font); white-space: nowrap; }   /* (gems: the second tap's Sure? needs words) */
.sti .tryon:hover, .sti .tryon.on { border-color: var(--gold); color: var(--honey); }
.sti .sti-tt { container-type: inline-size; } .sti .chips > .chip { flex: none; }   /* (tags in order of importance, Club, rarity, Premium, Hot, set: shop.js card) */
@container (max-width: 209px) { .sti .chips > .chip:nth-child(n+3) { display: none; } }   /* (tags-two 2026-11-20: a narrow card (a phone's two columns) shows the first two tags, whole; a wide card shows all of them and wraps as every tag row does) */
.sti.bought .sti-stage .spin { animation: boughtPop .7s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes boughtPop { 30% { transform: scale(1.3) translateY(-10px); filter: brightness(1.5); } }
.confetti { position: fixed; left: 0; top: 0; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; z-index: 60; }
img.hop { position: fixed; left: 0; top: 0; width: 80px; height: 80px; pointer-events: none; z-index: 60; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
/* today's deal: a wide card above the grid */
.deal { position: relative; display: grid; grid-template-columns: 190px 1fr; gap: 14px; margin-bottom: 14px; padding: 11px; border: 2px solid var(--gold); border-radius: 14px;
  background: linear-gradient(110deg, rgba(246, 194, 74, .16), rgba(0, 0, 0, .25) 55%); box-shadow: 0 0 22px rgba(246, 194, 74, .18); }
.deal .sti-stage { margin: 0; border-radius: 10px; height: 150px; }
.deal-txt { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.deal-tag { align-self: flex-start; padding: 3px 10px; border-radius: 10px; font: 14px var(--gw-title); letter-spacing: .5px; color: #3a1a00; background: linear-gradient(#ffe27a, #f0a81c); text-transform: uppercase; }
.deal-txt b { font: 700 20px/1.1 var(--gw-font); color: var(--cream); } .deal-txt p { margin: 0; font-size: 13px; color: var(--dim); }
.deal .sti-f { margin-top: auto; } .buyrow { display: flex; align-items: center; gap: 8px; } s.was { color: var(--dim); font-size: 13px; } s.was .ic { width: 14px; height: 14px; }
.sti { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 11px; border: 1px solid var(--hair); border-radius: 12px; background: linear-gradient(180deg, #25243d, #1c1b30); box-shadow: 0 2px 0 rgba(0, 0, 0, .35); transition: transform .12s, border-color .12s; }
.sti:hover { transform: translateY(-2px); border-color: var(--gold); }
.sti-top { display: flex; align-items: center; gap: 10px; }
.sti-ic { display: grid; place-items: center; width: 50px; height: 50px; flex: none; border-radius: 50%; font-size: 26px; border: 3px solid var(--rc, var(--r-common));
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .25), rgba(0, 0, 0, .25)), var(--rbg, #3a3956); box-shadow: 0 0 0 2px #14132a, inset 0 2px 0 rgba(255, 255, 255, .3); }
.sti-tt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sti-tt b { font: 700 17px/1.1 var(--gw-font); color: var(--cream); }
.sti p { margin: 0; font-size: 12.5px; color: var(--dim); min-height: 34px; }
.sti-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.sti-own { font-size: 12px; color: var(--dim); } .sti-own.has { color: var(--leaf); }
.sti-own b { white-space: nowrap; }   /* (Z1: "Unlocks at Level 18" breaks before the level, never inside it) */
.sti.locked { opacity: .65; }
.sti .lvls { display: flex; gap: 3px; } .sti .lvls i { width: 14px; height: 6px; border-radius: 3px; background: #150f1c; border: 1px solid var(--line); } .sti .lvls i.on { background: var(--gold); border-color: var(--gold-d); }
.sti.ticket { border-color: var(--gold); background: linear-gradient(180deg, #34301f, #1f1c16); }

/* ---------- tasks ---------- */
.task { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .28); }
.task > .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; background: radial-gradient(circle at 35% 28%, #6a6a92, #2b2a45); border: 2px solid var(--metal); }
.task b { display: block; font: 700 15px/1.2 var(--gw-font); color: var(--cream); }
.task .gw-bar { margin: 6px 0 3px; }
.task small { color: var(--dim); font-size: 12px; } .task small svg { width: 14px; height: 14px; vertical-align: -.2em; }
.task.done { border-color: #7fe04a; background: rgba(127, 224, 74, .08); }   /* AD5: ready to claim is green in every list */
.task.claimed { opacity: .55; border-color: var(--line); background: rgba(0, 0, 0, .28); } .task.claimed > .ic { filter: grayscale(.6); }
/* AD5: one card for tasks, quests, bounties and event quests (app/tasks.js taskCard) */
.task > div { min-width: 0; }
.task b small { font: 600 11.5px var(--gw-font); color: var(--dim); margin-left: 4px; }
.task-sub { margin: 2px 0 0; font-size: 13px; color: var(--cream); opacity: .9; }
.task-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; } .task-meta > span { white-space: nowrap; } .task-meta > span:first-child { white-space: normal; }   /* (a long line, like an errand's, wraps) */
.task-meta .where { display: inline-flex; align-items: center; gap: 3px; color: #9fd0ff; }
.task-act { display: grid; justify-items: center; gap: 6px; }
.task-got { display: inline-flex; align-items: center; gap: 4px; color: #8ae85a; font: 600 12.5px var(--gw-font); white-space: nowrap; } .task-got svg { width: 16px; height: 16px; }
.task.pop { animation: taskPop .6s cubic-bezier(.3, 1.6, .5, 1); } .task.pop .task-got { animation: taskPop .6s .1s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes taskPop { 0% { transform: scale(.94); } 50% { transform: scale(1.03); box-shadow: 0 0 18px rgba(127, 224, 74, .5); } 100% { transform: none; } }
body.no-fx .task.pop, body.no-fx .task.pop .task-got { animation: none; } @media (prefers-reduced-motion: reduce) { .task.pop, .task.pop .task-got { animation: none; } }
.task .steps { margin-top: 6px; }
.task-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(143, 31, 60, .25); font: 600 13px var(--gw-font); color: var(--cream); }
.task-link svg { width: 18px; height: 18px; vertical-align: -.25em; } .task-link b { color: #8ae85a; }
@media (max-width: 420px) { .task { gap: 8px; padding: 8px 10px; grid-template-columns: 36px minmax(0, 1fr) auto; } .task > .ic { width: 36px; height: 36px; } .task .qt img { width: 42px; height: 42px; } }
.task-bonus { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--gold); border-radius: 12px; background: rgba(246, 194, 74, .08); }   /* K1: a row like the tasks above it */
.task-bonus > .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #ffcf5a, #b8761a); border: 2px solid var(--gold); }
.task-bonus b { display: block; font: 700 15px/1.2 var(--gw-font); color: var(--honey); } .task-bonus .gw-bar { margin: 6px 0 3px; } .task-bonus small { color: var(--dim); font-size: 12px; } .task-bonus small svg { width: 14px; height: 14px; vertical-align: -.2em; }
/* AB2a: the Mayor's bounty board (app/errands.js): his line on top, the task rows, the hourly limit and the favour under them */
.bty-mayor { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; margin-bottom: 10px; padding: 8px 12px; border-radius: 12px; background: linear-gradient(90deg, rgba(143, 31, 60, .45), rgba(0, 0, 0, .2)); border: 1px solid var(--ruby2); }
.bty-mayor p { margin: 0; font: 600 14px/1.3 var(--gw-font); color: var(--cream); font-style: italic; }
.bty-face { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #c4485e, #5a1424); border: 2px solid var(--gold); }
.bty-face svg { width: 26px; height: 26px; }
.bty-cap { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--dim); font-size: 12px; } .bty-cap svg { width: 14px; height: 14px; } .bty-cap b { color: var(--honey); }
.bty-gate { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 8px 12px; border: 1px dashed var(--gold); border-radius: 12px; background: rgba(246, 194, 74, .08); color: var(--cream); font-size: 13px; } .bty-gate > svg { width: 22px; height: 22px; flex: none; } .bty-gate span { flex: 1; }
.task-bonus.ready { border-style: solid; box-shadow: 0 0 0 1px var(--gold), 0 0 18px rgba(246, 194, 74, .35); } .task-bonus.ready > .ic { animation: wiggle 1.4s ease-in-out infinite; }
.task-bonus.got { opacity: .8; } .task-bonus.got .gw-note svg { width: 22px; height: 22px; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-12deg); } 20% { transform: rotate(10deg); } 30% { transform: rotate(-6deg); } 40% { transform: rotate(0); } }

/* ---------- settings ---------- */
.set-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 6px; border-radius: 12px; background: rgba(0, 0, 0, .2); box-shadow: inset 0 0 0 1px var(--line); }
.set-row:last-child { margin-bottom: 0; }
.set-row label { font: 400 15.5px/1.25 var(--gw-title); letter-spacing: .4px; color: var(--cream); }
.set-row small { display: block; margin-top: 2px; color: var(--dim); font: 600 12px/1.35 var(--gw-font); letter-spacing: 0; }
.tog { width: 44px; height: 24px; border-radius: 12px; border: 1px solid #000; background: #2a2840; position: relative; padding: 0; }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--dim); transition: .15s; }
.tog[aria-pressed="true"], .chk input:checked + .tog { background: linear-gradient(#66d484, #2f9650); }
.tog[aria-pressed="true"]::after, .chk input:checked + .tog::after { left: 23px; background: #fff; }
label.chk, .authf label.chk { position: relative; display: flex; flex-direction: row; align-items: center; gap: 8px; cursor: pointer; } .chk input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; } .chk .tog { display: inline-block; flex: none; } .chk input:focus-visible + .tog { outline: 2px solid var(--gold); outline-offset: 2px; }   /* (N4: a checkbox drawn as the game's toggle) */
.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 6px 11px; font: 600 13px/1 var(--gw-font); color: var(--dim); }
.seg button[aria-pressed="true"] { background: rgba(246, 194, 74, .2); color: var(--honey); }
.tog, .seg button { transition: transform .08s, background-color .15s; } body:not(.no-fx) .tog:active, body:not(.no-fx) .seg button:active:not(:disabled) { transform: scale(.92); }   /* (polish r1: toggles and segments squish like the buttons; the effects switch stops it) */
@media (prefers-reduced-motion: reduce) { .tog:active, .seg button:active { transform: none !important; } }
.danger { color: #ffb0b0 !important; }

/* ---------- decorate tray (stays at the bottom so the room stays visible) ---------- */
#tray { position: fixed; left: 50%; bottom: calc(var(--dockH, 70px) + 20px); width: min(620px, calc(var(--vw) - 24px)); max-height: calc(var(--vh) * .38); z-index: 21; display: flex; flex-direction: column;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: .2s ease-out;
  border: 2px solid var(--gold-line); background: var(--glass); border-radius: 14px; box-shadow: 0 0 0 1px #000, 0 10px 30px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .1); }
#tray.open { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
#tray header { display: flex; align-items: center; gap: 10px; padding: 9px 12px 7px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
#tray h2 { margin: 0 auto 0 0; font: 400 19px/1 var(--gw-title); letter-spacing: 1px; text-transform: uppercase; color: var(--honey); }
#tray .tabs { display: flex; gap: 2px; }
#tray .tabs button { border: 0; border-bottom: 3px solid transparent; background: transparent; border-radius: 8px 8px 0 0; padding: 5px 10px 4px; font: 600 13px/1 var(--gw-font); color: var(--dim); }
#tray .tabs button[aria-pressed="true"] { color: var(--honey); border-bottom-color: var(--gold); background: linear-gradient(180deg, rgba(246, 194, 74, 0), rgba(246, 194, 74, .16)); }
#tray .hint { padding: 6px 12px 0; font-size: 12px; color: var(--dim); } #tray .hint b { color: var(--honey); }
#tray .body { overflow-y: auto; padding: 8px 10px 10px; }
#tray.placing .body, #tray.placing .tabs, #tray.placing .edit-flies { display: none; } #tray.placing .hint { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 12px 10px; font-size: 13px; } #tray .pl-btns { display: flex; gap: 6px; margin-left: auto; } #tray .pl-cols { flex-basis: 100%; margin: 2px 0 0; }   /* placing: a slim bar, the room in view */
.edit-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 2px 8px; }
.walls-side .seg button { display: flex; align-items: center; gap: 5px; padding: 6px 8px; white-space: nowrap; }   /* a paper for each wall: which wall the next paper goes on */
.walls-side .sw { display: inline-flex; width: 18px; height: 14px; border-radius: 3px; overflow: hidden; border: 1px solid rgba(0, 0, 0, .45); }
.walls-side .sw i { flex: 1; min-width: 0; }
@media (max-width: 640px) { .wd-grid.wd-row { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 6px; } .wd-row > .wd-tile { flex: 0 0 86px; padding: 7px 4px 6px; scroll-snap-align: start; } .wd-row .deco.e { width: 40px; height: 40px; margin: 0 0 4px; } .wd-row .wd-tile svg.ico.e { width: 36px; height: 36px; margin: 2px 0 4px; } }   /* (the Walls tab on a phone: the papers and the trims are each one row that scrolls sideways, so nothing is cut off and the room stays in view) */
#editBody .gw-sec small { font: 500 12px/1 var(--gw-font); letter-spacing: 0; text-transform: none; color: var(--dim); }

/* ---------- the Games page (List 4 step 5): a stage like the front page's showcase, then tiles. --acc and --bg: the game's own colour and gradient ---------- */
#play { position: fixed; inset: 0; z-index: 25; overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity .2s, visibility .2s; visibility: hidden;   /* (O9: hidden, so Tab never lands on its buttons while it's shut) */
  background: radial-gradient(ellipse at 50% 0%, rgba(80, 60, 140, .35), transparent 60%), rgba(13, 12, 24, .96); }
#play.open { opacity: 1; pointer-events: auto; visibility: visible; }
.play-in { max-width: 1240px; margin: 0 auto; padding: calc(136px + var(--sa-t) / var(--ui, 1)) 18px calc(30px + env(safe-area-inset-bottom, 0px) / var(--ui, 1)); display: flex; flex-direction: column; gap: 14px; }
/* the header: Back, the title, Gus with a word, the one Join With Code */
.gp-head { display: flex; align-items: center; gap: 14px; min-height: 54px; }
.gp-head h2 { margin: 0; font: 400 38px/1 var(--gw-title); letter-spacing: 1.5px; text-transform: uppercase; color: var(--cream); text-shadow: 0 3px 0 #2a1840; }
.gp-back { flex: none; max-width: min(320px, 46%); font-size: 16px; }
.gp-back #backName { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gus-say { display: flex; align-items: center; gap: 6px; margin-right: auto; min-width: 0; }
.gus-say img { width: 66px; height: 66px; margin: -8px 0; flex: none; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
.gus-say p { position: relative; margin: 0 0 0 4px; padding: 7px 11px; border-radius: 12px; background: #fffaf0; color: #2a1d10; font: 600 13px/1.25 var(--gw-font); max-width: 300px; }
.gus-say p::before { content: ""; position: absolute; left: -7px; top: 50%; margin-top: -6px; border-style: solid; border-width: 6px 8px 6px 0; border-color: transparent #fffaf0 transparent transparent; }
#gpJoin { flex: none; }

/* the stage: a big framed picture with a glass card over its edge */
.gp-stage { --acc: #f6c24a; margin-bottom: 6px; display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: center; }
.gp-stage:empty { display: none; }
.gp-frame { position: relative; z-index: 0; grid-column: 1; grid-row: 1; aspect-ratio: 16 / 9; min-width: 0; border: 2px solid var(--gold-line); border-radius: 14px; background: #2a2440;
  box-shadow: 0 0 0 1px #000, 0 14px 44px rgba(0, 0, 0, .55), 0 0 70px -10px var(--acc); transition: box-shadow .7s; }
.gp-reel { position: absolute; inset: 0; overflow: hidden; border-radius: 12px; isolation: isolate; }
.gp-reel > img, .gp-reel > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .55s ease-out; }
.gp-reel > .on { opacity: 1; z-index: 1; animation: gpDrift 8s ease-out both; }
@keyframes gpDrift { from { transform: scale(1.05); } to { transform: scale(1); } }
.gp-shine { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 244, 200, .5) 50%, transparent 65%) 130% 0 / 260% 100% no-repeat; }
.gp-mark { position: absolute; left: 12px; top: 12px; z-index: 4; }
/* the pips: one per game, the running one fills in the game's colour and its end moves the stage on (play.js nextOnStage) */
.gp-pips { position: absolute; left: 50%; bottom: 10px; z-index: 4; translate: -50% 0; display: flex; gap: 5px; padding: 5px 7px; border-radius: 99px; background: rgba(14, 12, 28, .62); }
.gp-pips > button { display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; } .gp-pips > button:focus-visible { outline: 2px solid var(--honey); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 680px), (max-height: 480px) {   /* (list 5 stage 4: each pip a 40 px tap; the dark band stays as slim as before) */
  .gp-pips { bottom: 0; gap: 0; padding: 0 4px; background: none; } .gp-pips::before { content: ''; position: absolute; inset: calc(20px / var(--ui, 1) - 7px) 0; z-index: -1; border-radius: 99px; background: rgba(14, 12, 28, .62); }
  .gp-pips > button { width: calc(40px / var(--ui, 1)); min-width: 0; height: calc(40px / var(--ui, 1)); }
}
.gp-pips i { display: block; width: 22px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .28); overflow: hidden; position: relative; }
.gp-pips i.on::after { content: ''; position: absolute; inset: 0; background: var(--acc); transform-origin: 0 50%; animation: gpPip 7s linear both; }
@keyframes gpPip { from { transform: scaleX(0); } }
.gp-stage:has(.gp-frame:hover, .gp-card:hover, .gp-card :focus-visible) .gp-pips i.on::after { animation-play-state: paused; }
#play:not(.open) *, #play:not(.open) *::after { animation-play-state: paused !important; }   /* (nothing runs while the page is closed) */
.gp-stage.held .gp-pips i.on::after { animation: none; }
body.no-fx .gp-pips i.on::after { animation: none; } body.no-fx .gp-reel > .on { animation: none; }
body.no-fx .gp-reel > img { transition: none; } @media (prefers-reduced-motion: reduce) { .gp-pips i.on::after, .gp-reel > .on { animation: none; } .gp-reel > img { transition: none; } }
/* the card */
.gp-card { position: relative; z-index: 1; grid-column: 2; grid-row: 1; margin-left: -56px; padding: 16px 18px 12px; border-radius: 14px; border-bottom-color: var(--acc); }
.gp-card-in { display: grid; justify-items: start; gap: 7px; min-width: 0; }
.gp-fly { position: absolute; right: 8px; top: -66px; width: 96px; height: 96px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .5)); }
.gp-kick { font: 700 12px/1 var(--gw-font); letter-spacing: 1.4px; text-transform: uppercase; color: var(--acc); transition: color .4s; }
.gp-card h3 { margin: 0; font: 400 clamp(30px, 3vw, 42px)/1 var(--gw-title); letter-spacing: .5px; color: var(--honey); text-shadow: 0 3px 0 #2a1840; }
.gp-line { margin: 0; color: #efe5cf; font: 500 15.5px/1.35 var(--gw-font); }
.gp-facts { list-style: none; margin: 2px 0; padding: 0; display: grid; gap: 5px; font: 500 13.5px/1.15 var(--gw-font); color: var(--dim); }
.gp-facts li { display: flex; align-items: center; gap: 7px; min-height: 19px; } .gp-facts .ico { flex: none; width: 17px; height: 17px; color: var(--gold); }
.gp-facts li.has { color: var(--cream); } .gp-facts b { color: var(--honey); font-weight: 700; font-variant-numeric: tabular-nums; }
.gp-facts .gp-livefact:has(.gt-live[hidden]) { display: none; }
.gp-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 3px; width: 100%; }
.gp-acts .gw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: 1 1 auto; white-space: nowrap; }
.gp-acts .gw-btn svg { margin: 0; }
.gp-go { font-size: 20px; padding: 10px 22px; }
.gp-howbtn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 2px; border: 0; background: none; color: var(--dim); font: 600 13px/1 var(--gw-font); cursor: pointer; }
.gp-howbtn:hover, .gp-howbtn:focus-visible { color: var(--honey); } .gp-howbtn .ico { width: 13px; height: 13px; transition: rotate .15s; } .gp-howbtn[aria-expanded="true"] .ico { rotate: 180deg; }
@media (max-width: 680px), (max-height: 480px) { .gp-howbtn { min-height: calc(40px / var(--ui, 1)); padding-inline: 8px; margin-left: -8px; } #gpJoin, #gpParty { min-height: calc(40px / var(--ui, 1)); } }   /* (list 5 stage 4: How To Play, Join With Code and Start A Party land at 40 px) */

/* the details under the stage */
.gp-more { --acc: #f6c24a; padding: 10px 14px 14px; border-radius: 14px; border-top-color: var(--acc); }
.gp-more[hidden] { display: none; }
.gp-more-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.gp-more-x { flex: none; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .05); color: var(--dim); cursor: pointer; } .gp-more-x:hover { color: #fff; border-color: var(--hair); } .gp-more-x .ico { width: 13px; height: 13px; }
.gp-tabs button { cursor: pointer; white-space: nowrap; }
.gp-how { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; }
.gp-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font: 500 14.5px/1.35 var(--gw-font); }
.gp-rules li { position: relative; padding-left: 16px; } .gp-rules li::before { content: ''; position: absolute; left: 1px; top: .5em; width: 6px; height: 6px; transform: rotate(45deg); background: var(--acc); }
.gp-you { display: grid; gap: 10px; align-content: start; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.gp-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gp-num small, .gp-goal small { display: block; font: 600 11.5px/1 var(--gw-font); letter-spacing: .6px; color: var(--dim); margin-bottom: 4px; }
.gp-num b { font: 400 24px/1 var(--gw-title); color: var(--honey); font-variant-numeric: tabular-nums; }
.gp-goal .gw-bar { display: block; } .gp-goal p { margin: 5px 0 0; font: 500 13px/1.25 var(--gw-font); color: var(--cream); } .gp-goal p .ico, .gp-goal p img { width: 15px; height: 15px; vertical-align: -3px; }

/* the tiles: a picture, the game's own little icon, name, type and your best. A tile wakes under the mouse: lifts, its colour glows, a shine crosses the picture */
#gpTiles { display: flex; flex-direction: column; gap: 12px; }
#gpTiles .gw-sec { margin: 4px 0 8px; } #gpTiles .gw-sec small { font: 500 12px/1 var(--gw-font); letter-spacing: 0; text-transform: none; color: var(--dim); }
.gt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } .gt-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gt { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0; text-align: left; font: inherit; color: var(--cream); cursor: pointer; border: 2px solid #000; border-radius: 12px; background: linear-gradient(180deg, #27263f, #1c1b30); box-shadow: 0 3px 0 #15142a; transition: transform .15s cubic-bezier(.3, 1.6, .5, 1), border-color .15s, box-shadow .15s; }
.gt:hover, .gt:focus-visible { transform: translateY(-3px); border-color: var(--acc); box-shadow: 0 3px 0 #15142a, 0 8px 24px -6px var(--acc); }
.gt:active { transform: translateY(1px) scale(.985); }
.gt[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 3px 0 #8a5a0c, 0 0 12px rgba(246, 194, 74, .45); }
.gt-pic { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px 10px 0 0; background: var(--bg); }
.gt-grid.two .gt-pic { aspect-ratio: 3 / 1; }
.gt-pic > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease-out; }
.gt:hover .gt-pic > img, .gt:focus-visible .gt-pic > img { transform: scale(1.05); }
.gt-pic::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 244, 200, .45) 50%, transparent 65%) 130% 0 / 260% 100% no-repeat; }
.gt:hover .gt-pic::after { background-position: -30% 0; transition: background-position .7s ease-out; }
.gt.fresh .gt-pic::after { animation: gtShine 1.3s .4s ease-out 2; }
@keyframes gtShine { from { background-position: 130% 0; } to { background-position: -30% 0; } }
.gt.fresh { border-color: var(--gold); }
.gt-mark { position: absolute; left: 8px; top: 8px; z-index: 1; padding: 3px 8px 4px; border: 2px solid #4a0f1c; border-radius: 6px; background: linear-gradient(#cf4656, #962638); box-shadow: 0 2px 0 #4a1020; font: 400 13px/1 var(--gw-title); font-style: normal; letter-spacing: .5px; color: #fff1c8; text-shadow: 0 1px 0 #5a1424; }
.gt-mark.best { border-color: #7d500c; background: linear-gradient(#ffe08a, #e0a02a); box-shadow: 0 2px 0 #7d500c; color: #3a2204; text-shadow: none; }
.gp-mark .gt-mark { position: static; display: block; font-size: 15px; }
.gt-live { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 4px; border-radius: 99px; background: rgba(10, 34, 20, .92); border: 1px solid #2f6b44; color: #a8f5ba; font: 700 12px/1 var(--gw-font); white-space: nowrap; }
.gt-pic .gt-live { position: absolute; right: 8px; top: 8px; z-index: 1; }
.gt-live[hidden] { display: none; } .gt-live b { color: #dcffe4; font-variant-numeric: tabular-nums; }
.gt-live i { width: 7px; height: 7px; border-radius: 50%; background: #5fe08a; animation: gtPulse 2s ease-in-out infinite; }
.gt-live.none { background: rgba(20, 18, 34, .9); border-color: var(--line); color: var(--dim); } .gt-live.none i { background: var(--dim); animation: none; }
@keyframes gtPulse { 50% { opacity: .45; } }
body.no-fx .gt-live i, body.lowfx .gt-live i, body.no-fx .gt.fresh .gt-pic::after { animation: none; } body.no-fx .gt:hover .gt-pic::after { transition: none; background-position: 130% 0; } body.no-fx .gt { transition: none; } body.no-fx .gt-pic > img { transition: none; }
@media (prefers-reduced-motion: reduce) { .gt-live i, .gt.fresh .gt-pic::after { animation: none; } .gt, .gt-pic > img { transition: none; } .gt:hover .gt-pic::after { transition: none; background-position: 130% 0; } }
.gt-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px 8px 8px; min-width: 0; }
.gt-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; margin-top: -16px; border: 2px solid #000; border-radius: 10px; background: var(--bg); box-shadow: 0 2px 0 rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .25); position: relative; z-index: 1; }
.gt-ico img { width: 26px; height: 26px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); } .gt:hover .gt-ico img { transform: scale(1.18) rotate(-6deg); } body.no-fx .gt:hover .gt-ico img { transform: none; }
.gt-ico .ico { width: 20px; height: 20px; color: #fff3d6; }
.gt-txt { display: grid; gap: 3px; min-width: 0; }
.gt-txt b { font: 400 17px/1 var(--gw-title); letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-txt small { display: flex; align-items: center; gap: 3px; font: 600 11.5px/1 var(--gw-font); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .gt-txt small .ico { flex: none; width: 13px; height: 13px; }
.gt-foot { flex: none; display: flex; align-items: center; gap: 4px; margin-left: auto; font: 500 12.5px/1 var(--gw-font); color: var(--dim); white-space: nowrap; }
.gt-foot .ico { flex: none; width: 13px; height: 13px; color: var(--gold); } .gt-foot b { color: var(--honey); font-weight: 700; font-variant-numeric: tabular-nums; }
/* Flyworld: small, at the bottom */
.gt-soon { display: flex; align-items: center; gap: 10px; align-self: flex-start; max-width: 100%; margin-top: 2px; padding: 6px 12px 6px 7px; border: 2px solid #000; border-radius: 12px; background: linear-gradient(180deg, #27263f, #1c1b30); box-shadow: 0 3px 0 #15142a; color: var(--cream); text-align: left; font: inherit; cursor: pointer; }
.gt-soon .gt-ico { margin: 0; filter: saturate(.7); } .gt-soon .gt-txt b { font-size: 15px; } .gt-soon .gt-txt small { white-space: normal; }
.gt-soon em { flex: none; margin-left: 8px; padding: 3px 8px 4px; border-radius: 6px; border: 1px solid var(--line); font: 700 11.5px/1 var(--gw-font); font-style: normal; color: var(--honey); white-space: nowrap; }

/* Join With Code: one box a letter */
.gp-join-win { display: grid; gap: 10px; } .gp-join-win .lead { margin: 0; }
.gp-comb { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; max-width: 320px; width: 100%; margin: 0 auto; }
.gp-comb input { position: absolute; inset: 0; width: 100%; opacity: 0; font-size: 16px; caret-color: transparent; }
.gp-comb span { display: grid; place-items: center; aspect-ratio: 1 / 1.15; border: 2px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .3); font: 400 30px/1 var(--gw-title); color: var(--honey); text-shadow: 0 2px 0 #2a1840; }
.gp-comb span.in { border-color: var(--gold-line); background: rgba(246, 194, 74, .1); }
.gp-join-out:empty { display: none; }
.gp-comb:focus-within span.at { border-color: var(--honey); box-shadow: 0 0 0 2px rgba(255, 224, 138, .25); }
.gp-comb.nope span { border-color: var(--red); animation: gpShake .3s; } body.no-fx .gp-comb.nope span { animation: none; } @media (prefers-reduced-motion: reduce) { .gp-comb.nope span { animation: none; } }
@keyframes gpShake { 25% { translate: -3px 0; } 75% { translate: 3px 0; } }
.gp-nope { margin: 0; text-align: center; color: #ffb4a8; font: 500 13.5px/1.3 var(--gw-font); }
.gp-found { display: grid; gap: 8px; overflow: hidden; padding-bottom: 10px; border: 2px solid var(--acc); border-radius: 12px; background: rgba(0, 0, 0, .25); } .gp-found > img { display: block; width: 100%; aspect-ratio: 5 / 2; height: auto; object-fit: cover; } .gp-found .gt-row { padding: 0 10px; } .gp-found .gw-btn { width: auto; margin: 0 10px; }
.gp-found .gw-btn svg { margin-right: 6px; }
@media (max-width: 1040px) { .gp-stage { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } .gp-card { margin-left: -36px; } .gp-card h3 { font-size: 30px; } .gp-how { gap: 12px; } }
@media (min-width: 861px) and (max-width: 1240px) { .gt-grid:not(.two) .gt-row { flex-wrap: wrap; padding-bottom: 0; } .gt-grid:not(.two) .gt-txt { flex: 1 1 0; } .gt-grid:not(.two) .gt-foot { display: flex; flex-basis: 100%; margin: 0 -10px 0 -8px; padding: 5px 9px 6px; border-top: 1px solid var(--line); font-size: 12px; box-sizing: content-box; } }
@media (min-width: 721px) and (max-width: 860px) { .gt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gt-grid:not(.two) .gt-pic { aspect-ratio: 2.4 / 1; } }
@media (max-width: 1040px) { .gp-head { gap: 10px; } .gp-head h2 { font-size: 30px; } .gus-say img { width: 52px; height: 52px; } .gus-say p { font-size: 12.5px; } .gp-back { font-size: 15px; } #gpJoin { font-size: 14px; padding: 7px 12px; } }
@media (max-width: 860px) { .gp-stage { grid-template-columns: minmax(0, 1fr); } .gp-frame, .gp-card { grid-column: 1; grid-row: auto; } .gp-card { margin: 8px 0 0; } .gp-fly { width: 80px; height: 80px; top: -50px; } }
/* phones: the picture on top, the card under it, tiles in two columns */
@media (max-width: 720px) {
  .gp-head { flex-wrap: wrap; gap: 6px 8px; min-height: 0; } .gp-head h2 { display: none; } .gp-back { max-width: none; } #gpJoin { margin-left: auto; font-size: 13.5px; padding: 6px 9px; white-space: nowrap; } #gpJoin svg { margin-right: 3px; } .gus-say { order: 3; flex-basis: 100%; margin: 0; } .gus-say img { width: 48px; height: 48px; margin: -4px 0; } .gus-say p { font-size: 12.5px; max-width: none; }
  .gp-card { padding: 11px 13px 6px; }
  .gp-fly { width: 70px; height: 70px; top: -42px; right: 4px; } .gp-card h3 { font-size: 30px; padding-right: 54px; } .gp-line { font-size: 14.5px; } .gp-kick { padding-right: 54px; }
  .gp-go { font-size: 18px; padding: 9px 14px; } .gp-acts .gw-btn.ghost { padding: 8px 10px; font-size: 14px; } .gp-how { grid-template-columns: minmax(0, 1fr); }
  .gp-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; } .gp-facts .gp-len { display: none; }
  .gt-grid, .gt-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; } .gt-grid.two .gt-pic { aspect-ratio: 16 / 9; } .gt-row { flex-wrap: wrap; padding-bottom: 0; } .gt-txt { flex: 1 1 0; } .gt-foot { display: flex; flex-basis: 100%; margin: 0 -8px; padding: 5px 9px 6px; border-top: 1px solid var(--line); font-size: 12px; box-sizing: content-box; }
  #gpTiles .gw-sec small { display: none; } .gt-soon { align-self: stretch; }
}
@media (max-width: 400px) { .gt-txt b { font-size: 14.5px; } .gt-ico { width: 30px; height: 30px; } .gt-ico img { width: 22px; height: 22px; } .gt-row { gap: 6px; padding: 6px 6px 5px; } .gt-foot { margin: 0 -6px; padding: 5px 7px 6px; font-size: 11.5px; } .gt-live { font-size: 11px; padding: 2px 6px 3px; } .gt-pic .gt-live { right: 5px; top: 5px; } .gt-mark { left: 5px; top: 5px; font-size: 12px; padding: 2px 6px 3px; } .gp-acts .gw-btn { font-size: 14.5px; } .gp-acts .gp-go { font-size: 18px; } }
@media (max-width: 360px) { .gp-long { display: none; } .gp-head { flex-wrap: wrap; } #gpJoin { font-size: 12.5px; letter-spacing: .3px; padding: 5px 7px; } }
@media (max-width: 340px) { .gt-txt b { font-size: 13.5px; } .gt-ico { width: 28px; height: 28px; } }
/* a phone on its side: the two side by side again, the stage no taller than the screen */
@media (max-height: 520px) and (min-width: 480px) {
  .gp-head { flex-wrap: nowrap; } .gus-say { order: 0; flex: 1; flex-basis: auto; margin-right: auto; } #gpJoin { margin-left: 0; } .gus-say img { width: 40px; height: 40px; }
  .play-in { gap: 8px; } .gp-stage { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } .gp-frame, .gp-card { grid-row: 1; } .gp-frame { grid-column: 1; } .gp-card { grid-column: 2; margin: 0 0 0 -24px; padding: 10px 12px 6px; }
  .gp-card h3 { font-size: 24px; } .gp-line { font-size: 13px; } .gp-facts { display: none; } .gp-go { font-size: 16px; padding: 7px 12px; } .gp-acts .gw-btn { font-size: 13px; } .gp-card-in { gap: 5px; } .gp-fly { width: 54px; height: 54px; top: -24px; }
  .gt-grid, .gt-grid.two { grid-template-columns: repeat(4, minmax(0, 1fr)); } .gt-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gt-grid.two .gt-pic { aspect-ratio: 3 / 1; }
}
.in-play { margin: 3px 0 0; display: flex; align-items: center; gap: 4px; font: 700 12px/1.2 var(--gw-font); color: #8ff0a4; } .in-play .ico { width: 14px; height: 14px; }
.ms-log p.cp-sys .gw-btn { margin-left: 6px; }
.game-info table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 10px 0; }
.game-info td { padding: 6px 0; border-bottom: 1px solid var(--line); } .game-info td:first-child { color: var(--dim); width: 40%; }
.game-info td small { color: var(--dim); font-size: 12px; }   /* N0: what today used of a cap */
/* P4: Boards and How It Pays (now under the stage) */
.gp-note { margin: 8px 0 0; color: var(--dim); font-size: 12.5px; }
.gp-boards { display: flex; flex-direction: column; gap: 8px; }
.gp-seg { align-self: flex-start; flex-wrap: wrap; }
.gp-tracks { display: flex; flex-wrap: wrap; gap: 5px; }   /* (P audit: each name on one line; a row that doesn't fit wraps as a whole button) */
.gp-tracks button { flex: 1 1 auto; white-space: nowrap; min-height: 34px; padding: 5px 5px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .04); color: var(--dim); font: 600 11.5px/1.15 var(--gw-font); }
.gp-tracks button[aria-pressed="true"] { border-color: var(--hair); background: rgba(246, 194, 74, .16); color: var(--honey); }
.gp-tbl { font-size: 13.5px; } .gp-tbl td.rk { width: 28px; color: var(--dim); font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.gp-tbl td.rk.r1 { color: #ffd34a; } .gp-tbl td.rk.r2 { color: #d8dce6; } .gp-tbl td.rk.r3 { color: #e0a070; } .gp-tbl td.num { font-variant-numeric: tabular-nums; }
.gp-tbl tr.me td { background: rgba(127, 224, 74, .1); } .gp-tbl tr.me td:first-child { box-shadow: inset 3px 0 0 var(--leaf); } .gp-tbl td small { display: inline; color: var(--dim); }
.gp-me { margin: 6px 0 0; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .05); font: 600 13px var(--gw-font); }
.gp-load { color: var(--dim); text-align: center; padding: 18px 0; margin: 0; }
.gp-rule { margin: 0 0 4px; padding: 8px 10px; border-left: 3px solid var(--hair); border-radius: 6px; background: rgba(246, 194, 74, .08); font-size: 13.5px; }
.gp-pays .gw-bar { margin-top: 5px; max-width: 220px; } .gp-pays td:first-child { width: 28%; }
.gp-drops { display: flex; flex-wrap: wrap; gap: 6px; } .gp-drop { display: flex; flex-direction: column; align-items: center; width: 56px; text-align: center; } .gp-drop small { font-size: 11px; line-height: 1.1; }
.gp-drop img.thumb.gp, .gp-drop .emo.gp { width: 40px; height: 40px; }
@media (max-width: 680px) { .gp-seg { align-self: stretch; } }

/* ---------- loot, hatching, toast, level-up ---------- */
#veil { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at center, rgba(14, 10, 28, .35), rgba(6, 4, 16, .82)); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .25s; padding: 16px; z-index: 31; }
#veil.open { opacity: 1; pointer-events: auto; }
#loot { width: min(400px, calc(100% - 24px)); padding: 34px 16px 16px; text-align: center; }
#veil.open #loot { animation: gwPop .3s cubic-bezier(.2, 1.45, .4, 1); }
#loot .k { font: 700 12px/1 var(--gw-font); letter-spacing: 1.6px; color: var(--gold); text-transform: uppercase; }
#loot h3 { margin: 6px 0 2px; font: 400 38px/1 var(--gw-title); letter-spacing: 1px; text-transform: uppercase; color: var(--cream); text-shadow: 0 3px 0 #2a1840; }
#loot .s { font-size: 13px; color: var(--dim); min-height: 1.3em; }
#loot .capped { margin: 8px 0 0; font-size: 12.5px; color: var(--gold); }   /* N0: a day cap this run hit */
#loot .capped p { margin: 2px 0; }
#loot .why { margin: 12px 0 4px; padding: 12px 10px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); font: 400 19px/1.25 var(--gw-title); letter-spacing: .4px; color: var(--honey); }   /* Q0: why a run paid nothing, as the card's hero */
#loot .flysprite { height: 110px; margin: 6px auto 0; display: block; animation: wob 1s ease-in-out infinite; }
@keyframes wob { 50% { transform: translateY(-6px) rotate(3deg); } }
#lootList { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; min-height: 40px; }
.drop { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); animation: dropIn .45s cubic-bezier(.2, 1.6, .4, 1) both; text-align: left; }
.drop .e { font-size: 24px; width: 30px; display: grid; place-items: center; }
.drop .e svg { width: 24px; height: 24px; }
.drop .e img.thumb { width: 44px; height: 44px; margin: -8px -7px; }
.drop .n { flex: 1; min-width: 0; }
.drop .r { font: 700 11px/1 var(--gw-font); letter-spacing: 1px; text-transform: uppercase; }
.drop.fermented { border-color: var(--r-fermented); box-shadow: 0 0 24px rgba(255, 211, 74, .3); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-14px) scale(.85); } }
#loot .gw-bar { margin: 14px 0 4px; }
/* W3: the hatch screen in two steps. The frame itself never scrolls, so its corner gems and ribbon sit where every window has
   them and nothing covers them; only .hatch-body scrolls, and the button band sits inside the frame under it */
#hatch { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -46%); width: min(400px, calc(var(--vw) - 40px)); max-height: calc(var(--vh) - 56px); padding: 34px 14px 14px; text-align: center; z-index: 32; opacity: 0; pointer-events: none; transition: .25s; }
#hatch.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
#hatch .hatch-body { flex: 1 1 auto; min-height: 0; overflow: hidden auto; margin: 0 -6px; padding: 2px 6px 6px; scrollbar-width: thin; }
#hatch .hatch-go { position: relative; flex: none; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
#hatch .hatch-more { display: none; position: absolute; left: 50%; bottom: calc(100% + 4px); width: 14px; height: 14px; margin-left: -7px; border: solid var(--gold); border-width: 0 4px 4px 0; transform: rotate(45deg); pointer-events: none; animation: hatchMore 1.2s ease-in-out infinite; } #hatch.more .hatch-more { display: block; }
@keyframes hatchMore { 50% { translate: 3px 3px; } }
@media (prefers-reduced-motion: reduce) { #hatch .hatch-more { animation: none; } }
#hatch .hatch-steps { display: flex; justify-content: center; gap: 6px; margin: 0 0 6px; } #hatch .hatch-steps i { width: 22px; height: 5px; border-radius: 3px; background: var(--line); } #hatch .hatch-steps i.on { background: var(--gold); }
#hatch p { margin: 0 0 12px; color: var(--dim); font-size: 13.5px; }
#hatch .hatch-me { display: block; width: 190px; height: 190px; margin: -6px auto -4px; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .4)); }
#hatch .hatch-name { display: grid; gap: 4px; } #hatch .hatch-name input { border-radius: 10px; padding: 10px 12px; font-size: 17px; text-align: center; }
#hatch .hatch-name small { font: 600 12px/1.3 var(--gw-font); color: var(--dim); } #hatch .hatch-name small.bad { color: #ff8a9a; font-weight: 700; }
#hatch .swatches { justify-content: center; margin: 12px 0 10px; }
#hatch .sw { width: 34px; height: 34px; border-radius: 50%; }
#hatch .hatch-who { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; text-align: left; } #hatch .hatch-who img { flex: none; width: 64px; height: 64px; }
#hatch .hatch-who p { margin: 0; color: var(--cream); } #hatch .hatch-who b { color: var(--honey); }
#hatch .authf { text-align: left; } #hatch .authf .err:empty { display: none; }
#hatch .hatch-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; } #hatch .hatch-row .ui-back { justify-content: center; font-size: 13.5px; }
@media (max-height: 640px) { #hatch .hatch-me { width: 128px; height: 128px; } }
#toast { position: fixed; left: 50%; top: calc(64px + var(--sa-t) / var(--ui, 1)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; font-size: 13.5px; text-align: center; max-width: calc(var(--vw) - 32px); z-index: 35; }
#toast .tst { padding: 8px 16px; border: 2px solid var(--gold-line); background: var(--glass); border-radius: 12px; box-shadow: 0 0 0 1px #000, 0 8px 24px rgba(0, 0, 0, .5); animation: tstIn .2s ease-out; transition: opacity .2s, transform .2s; }
#toast .tst.out { opacity: 0; transform: translateY(-8px); } #toast .tst.tap { pointer-events: auto; cursor: pointer; } #toast .tst.tap:hover { filter: brightness(1.15); }
@keyframes tstIn { from { opacity: 0; transform: translateY(-8px); } }   /* (K3: a stack of toasts) */
#toast b { color: var(--honey); } #toast small { color: var(--dim); }
#app[data-place="home"] ~ #toast { top: calc(178px + var(--sa-t) / var(--ui, 1)); }
#app.tray-open[data-place] ~ #toast { top: calc(6px + var(--sa-t) / var(--ui, 1)); font-size: 12.5px; }   /* (the decorate tray is open: the toast sits over the top bar, not over the little room you are decorating) */
#app.tray-open[data-place] ~ #toast .tst { padding: 5px 12px; }
#toast:has(.tst-low) { top: calc(124px + var(--sa-t) / var(--ui, 1)); }   /* P5 audit: the held note sits under the fly card and the top chips (homes and open windows keep their own place: their rules weigh more) */
#gwBack.open ~ #toast, #veil.open ~ #toast { top: auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px) / var(--ui, 1)); }
#lvlup { position: fixed; left: 50%; top: 34%; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; text-align: center; font: 400 clamp(46px, 11vw, 92px)/.9 var(--gw-title); letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); text-shadow: 0 0 40px rgba(246, 194, 74, .6), 0 4px 0 #6b4d09; transition: .35s cubic-bezier(.2, 1.6, .4, 1); z-index: 36; }
#lvlup small { display: block; font: 600 .26em/1.4 var(--gw-font); letter-spacing: 1px; color: var(--cream); text-shadow: none; margin-top: 8px; }
#lvlup.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#fatal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(var(--vw) - 32px)); padding: 16px 18px; z-index: 60; display: none;
  border: 2px solid var(--gold-line); background: var(--glass2); border-radius: 14px; }
#fatal.show { display: block; }
#fatal b { font: 400 22px/1.1 var(--gw-title); letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
#fatal p { margin: 8px 0 0; color: var(--dim); }
#fatal button { margin-top: 12px; padding: 9px 20px; border: 0; border-radius: 10px; background: var(--green); color: #0d2a14; font: 400 16px/1 var(--gw-title); letter-spacing: 1px; text-transform: uppercase; }
#fatal button:active { transform: scale(.96); }
#fatal code { color: var(--cream); background: #15142a; padding: 1px 5px; border-radius: 4px; }

/* ---------- phones and small tablets ---------- */
@media (max-width: 680px) {
  .brand span { display: none; }
  .brand b { font-size: 20px; letter-spacing: 1px; } .brand-logo { width: 28px; height: 28px; }
  #hud { gap: 4px; padding-left: 10px; padding-right: 10px; }
  #wallet { gap: 4px; }
  .cur { font-size: 14px; padding: 2px 8px 2px 3px; gap: 4px; }
  .cur svg { width: 20px; height: 20px; }
  #lvl .xp { display: none; } #lvl { padding-right: 3px; }
  #belly { padding: 2px 7px 2px 2px; gap: 3px; } #belly .bl-ic { width: 26px; height: 26px; margin: -5px -1px -5px 0; } #belly .bl { width: 28px; height: 9px; } #belly .bl::after { display: none; } #belly .bl > i { background-image: linear-gradient(rgba(255, 255, 255, .4), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, .2)); }   /* (no marks or stripes in a bar this short: they only blur) */
  #belly.well .bl { display: none; } #belly .bl-t { font-size: 11px; }   /* (phones: Well Fed's +10% takes the bar's place, so the coins keep their room) */
  #flyCard { left: 10px; top: calc(48px + var(--sa-t) / var(--ui, 1)); gap: 7px; }
  #pfp { width: 46px; height: 46px; }
  .fc-txt b { font-size: 15px; max-width: 110px; }
  .dk { width: 50px; font-size: 10.5px; }
  .dk .well { width: 38px; height: 38px; font-size: 18px; }
  #gwBack.side { padding-right: 0; justify-content: center; }
  #gwWin, #gwWin.small, #gwWin.side { width: calc(var(--vw) - 16px); height: calc(var(--vh) - 44px - env(safe-area-inset-top, 0px) / var(--ui, 1)); max-height: none; padding: 40px 8px 8px; margin-top: 18px; }
  .gw-body { padding: 12px 10px; }
  .gw-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .gw-tabs button { padding: 7px 10px 8px; font-size: 14px; white-space: nowrap; }
  .ui-ribbon.big h2 { font-size: 18px; }
  .gw-chip { display: none; }
  .wd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bag { grid-template-columns: 1fr; }
  .wr { grid-template-columns: 1fr; } .wr-look { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; } .wr-look img { width: 84px; height: 84px; }
  .gym-cap { grid-template-columns: 1fr auto; } .gym-cap .gw-bar { grid-column: 1 / -1; grid-row: 2; }
  .bag-detail { position: static; order: -1; }
  .bag-detail .big { height: 90px; font-size: 48px; } .bag-detail .big img { height: 88px; }
  .sti-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .sti p { display: none; } .sti-stage { height: 112px; } .sti-stage .spin { width: 112px; height: 112px; }
  .sti-f { flex-direction: column; align-items: stretch; gap: 5px; } .sti-tt b { font-size: 15px; }
  .deal { grid-template-columns: 120px 1fr; } .deal .sti-stage { height: 120px; } .deal-txt p { display: none; }
  .mo .bal { display: none; }
  #app[data-place="home"] ~ #toast { top: calc(160px + var(--sa-t) / var(--ui, 1)); }
  #gwBack.open ~ #toast, #veil.open ~ #toast { top: auto; }   /* (an open window keeps it at the bottom, off its text) */
}
@media (max-width: 380px) { .dk { width: 44px; } .dk .well { width: 34px; height: 34px; font-size: 16px; } }
@media (max-width: 420px) { .fc-txt b { max-width: 72px; overflow: hidden; text-overflow: ellipsis; } }   /* (I5: the fly card fits a phone with both buttons) */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: 0s !important; } }
.nav-table select { margin-top: 3px; padding: 2px 4px; font-size: 12px; }
/* the profile picture studio (G3; polish r4: the profile's Picture tab) and the badge emblems (G5) */
.bdg { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; }   /* G5: the emblem is an SVG (shared/badgeArt.js) */
.bdg .bdg-art { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .45)); }
.bdg.l5 .bdg-art { animation: bdg-shine 3s ease-in-out infinite; } @keyframes bdg-shine { 50% { filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .45)) drop-shadow(0 0 5px rgba(160, 220, 255, .9)) brightness(1.12); } }
@media (prefers-reduced-motion: reduce) { .bdg.l5 .bdg-art { animation: none; } }
.bdg.off { filter: grayscale(1) brightness(.6); } .bdg.empty { border-radius: 50%; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 2px var(--line); }
.bdg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 8px 0 12px; }
.bdg-card { position: relative; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto 1fr; align-content: start; gap: 0 8px; padding: 8px; text-align: left; border: 2px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .22); color: inherit; font: inherit; }
.bdg-card .bdg { grid-row: span 2; } .bdg-card b { padding-right: 10px; font-size: 13px; color: var(--cream); } .bdg-card small { font-size: 11px; line-height: 1.3; color: var(--dim); }
.bdg-card.on { border-color: var(--gold); background: rgba(246, 194, 74, .12); } .bdg-card:disabled { opacity: .7; }
/* the little choice chips (badge categories, a voice, the marketplace's filters): the same look as the Shop's theme chips, not a browser's grey button */
.chips:has(> button) { display: flex; flex-wrap: wrap; gap: 5px; }
.chips > button:not(.gw-btn) { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0, 0, 0, .22); color: var(--dim); font: 600 12.5px var(--gw-font); cursor: pointer; }
.chips > button:not(.gw-btn):hover { border-color: var(--gold); color: var(--cream); } .chips > button[aria-pressed="true"]:not(.gw-btn) { background: rgba(246, 194, 74, .22); border-color: var(--gold); color: var(--honey); }
/* Z4: the badge window: your shown five, category chips, a bar to the next level, a dot on new ones */
.bdg-top { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; } .bdg-top .pf-badges { display: flex; gap: 6px; padding: 6px 8px; border-radius: 12px; background: rgba(0, 0, 0, .25); } .bdg-top .gw-note { flex: 1 1 200px; margin: 0; }
.bdg-cats { margin: 10px 0 2px; gap: 5px; } .bdg-cats button { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; } .bdg-cats button svg { width: 16px; height: 16px; } .bdg-cats small { font-size: 10.5px; opacity: .75; }
.bdg-cats .dot, .bdg-card .dot { position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--ruby); box-shadow: 0 0 0 2px #14132a, 0 0 6px var(--ruby); } .bdg-card .dot { top: 6px; right: 6px; }
.bdg-bar { grid-column: 1 / -1; height: 6px; margin-top: 7px; border-radius: 3px; overflow: hidden; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px var(--line); } .bdg-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #ffd76a, #e0a02a); }
.bdg-card small.bdg-nx { grid-column: 1 / -1; margin-top: 3px; font-size: 10.5px; color: var(--honey); } .bdg-card.locked small.bdg-nx { color: var(--dim); }
.bdg.empty.q { font: 400 22px/1 var(--gw-title); color: var(--dim); }
/* list 5 stage 4 (phone audit #7): a phone's badge folders are one sideways row (.chips:has(> button) wrapped them: the class pair beats it), each 40 px to tap */
@media (max-width: 680px), (max-height: 480px), (min-width: 681px) and (max-width: 1100px) and (min-height: 481px) { .chips.bdg-cats { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: 6px -2px 0; padding: 4px 4px 6px; } .chips.bdg-cats::-webkit-scrollbar { display: none; } .bdg-cats button { flex: none; min-height: calc(40px / var(--ui, 1)); } }
@media (max-width: 680px), (max-height: 480px), (min-width: 681px) and (max-width: 1100px) and (min-height: 481px) {   /* (navigator.js badgePicker: the row fades where more folders wait; a ruby dot on that edge while a folder with a new badge is out of sight) */
  .bdg-catw { position: relative; } .chips.bdg-cats { position: relative; }
  .bdg-catw.more-r > .bdg-cats { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
  .bdg-catw.more-l > .bdg-cats { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
  .bdg-catw.more-l.more-r > .bdg-cats { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
  .bdg-catw.dot-r::after, .bdg-catw.dot-l::before { content: ''; position: absolute; top: 4px; z-index: 1; width: 10px; height: 10px; border-radius: 50%; background: var(--ruby); box-shadow: 0 0 0 2px #14132a, 0 0 6px var(--ruby); pointer-events: none; }
  .bdg-catw.dot-r::after { right: 0; } .bdg-catw.dot-l::before { left: 0; }
}
@media (max-width: 480px) { .bdg-grid { grid-template-columns: 1fr; gap: 6px; } .bdg-card { padding: 6px 10px; } .bdg-card .bdg { grid-row: span 4; } .bdg-bar, .bdg-card small.bdg-nx { grid-column: 2; } .bdg-bar { margin-top: 5px; } }   /* (phones: one badge a row, the bar beside the emblem) */
.bdg.bdg-new { width: 30px; height: 30px; vertical-align: -10px; margin-right: 4px; }
@media (max-width: 480px) { .bdg { width: 38px; height: 38px; } }
/* Your Looks (D3; polish r6 at the end of this file): the pieces on the left, the fly on its pedestal on the right */
.looks { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 14px; align-items: start; }
.lk-left { min-width: 0; overflow: auto; padding-right: 4px; }
.lk-right { position: sticky; top: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; background: radial-gradient(circle at 50% 35%, #3e3b5e, var(--glass2) 75%); box-shadow: inset 0 0 0 1px var(--line); }
.lk-ped { position: relative; height: 220px; } .lk-stage { display: block; width: 100%; height: 100%; }
.lk-turn, .lk-act { display: flex; justify-content: center; gap: 8px; } .lk-act .gw-btn.green { flex: 1; }
.wd-tile.lock { opacity: .55; } .wd-tile.lock .st { color: var(--dim); } .wd-tile.lock .st svg { width: 11px; height: 11px; vertical-align: -1px; }
@media (min-width: 681px) { .gw-body:has(> .looks) { container-type: size; } .looks { min-height: 100%; grid-template-columns: minmax(0, 1fr) clamp(264px, 34%, 330px); } .lk-right { height: 100cqh; box-sizing: border-box; } .lk-ped { flex: 1; height: auto; min-height: 220px; } }   /* O11 r2: the pedestal takes the window's height (it left the lower half empty at 1280) */
/* the inventory (D4): a filter column, the grid, the panel; walls and floors as swatches */
.inv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; height: 100%; }
.inv-side { display: flex; flex-direction: column; gap: 6px; }
.inv-f { text-align: left; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line); background: rgba(0, 0, 0, .22); color: var(--dim); font: 400 14px var(--gw-title); letter-spacing: .4px; }
.inv-f.on { color: var(--honey); border-color: var(--gold); background: rgba(246, 194, 74, .14); }
.deco { display: inline-block; border-radius: 10px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25), 0 3px 0 rgba(0, 0, 0, .35); }
.deco.e { width: 54px; height: 54px; margin: 0 0 6px; } .deco.big { width: 150px; height: 150px; border-radius: 16px; }
.sti-stage .deco.big { width: 120px; height: 120px; margin: 18px auto 0; display: block; }
.deco-pv { display: grid; place-items: center; width: 100%; height: 100%; perspective: 420px; }   /* Walls & Floors: a tile, a wall panel, a window */
.sti-stage .deco-pv { position: absolute; inset: 0 0 8px; }
.deco-pv .deco.big { width: auto; height: 76%; aspect-ratio: 1; margin: 0; border-radius: 8px; }
.deco-pv.floor .deco.big { height: 62%; border-radius: 4px; transform: rotateX(55deg) rotateZ(45deg); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18), 0 0 0 3px rgba(0, 0, 0, .3); }
.deco-pv.wall .deco.big { aspect-ratio: .82; border-radius: 4px 4px 2px 2px; transform: rotateY(-22deg); box-shadow: inset 0 -9px 0 #4a3424, inset 0 -11px 0 rgba(0, 0, 0, .3), inset 0 0 0 2px rgba(255, 255, 255, .15), 6px 4px 0 rgba(0, 0, 0, .3); }
.deco-pv.trim .deco.big { aspect-ratio: .82; border-radius: 4px; transform: rotateY(-22deg); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15), 6px 4px 0 rgba(0, 0, 0, .3); }   /* a trim: the rail over its panelling */
.deco-pv.land .deco.big { border-radius: 6px; box-shadow: inset 0 0 0 5px #e9dcc3, inset 0 0 0 7px rgba(0, 0, 0, .25), 0 3px 0 rgba(0, 0, 0, .35); }
.inv-rooms svg.shape { float: left; margin: 2px 8px 0 0; }
.inv-view { display: flex; margin: 0 0 4px; } .inv-view button { flex: 1; }   /* (#10: All · By Room on top of the Furniture tab) */
@media (max-width: 680px) { .inv-view { flex: 1 1 100%; } .inv.rv { align-content: start; } }
@media (max-width: 680px) { .inv { grid-template-columns: 1fr; } .inv-side { flex-direction: row; flex-wrap: wrap; } .inv-search { flex: 1 1 100%; } .inv-side { align-items: center; gap: 10px; } .inv-side > .gw-note { margin: 0; flex: 1; min-width: 0; font-size: 12.5px; } }
/* soft redraws (a filter in the inventory), and room for lifted tiles and the chosen colour's ring */
.soft { animation: softIn .2s ease-out; } @keyframes softIn { from { opacity: .35; transform: translateY(3px); } }
.wd-grid { padding-top: 4px; }
.lk-left .tints { display: flex; flex-wrap: wrap; gap: 8px; padding: 7px; }
/* the shop (D5): search + categories, outfit sets, coin items, premium */
.shop-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 10px; } .shop-tools .inv-search { flex: 1 1 180px; }
.chipbtn { padding: 5px 10px; border-radius: 9px; border: 1px solid var(--line); background: rgba(0, 0, 0, .22); color: var(--dim); font: 400 13px var(--gw-title); letter-spacing: .4px; }
.chipbtn.on { color: var(--honey); border-color: var(--gold); background: rgba(246, 194, 74, .14); }
.set-pcs { display: flex; justify-content: center; align-items: center; height: 127px; margin: -11px -11px 0; padding: 0 10px; border-radius: 12px 12px 0 0; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .08), transparent 70%), linear-gradient(180deg, #2c2a4c, #1b1a32); } .set-pcs span.have { opacity: .45; } .set-pcs span + span { margin-left: -10px; } .set-pcs span { flex: 0 1 64px; min-width: 0; } .set-pcs img.thumb.e { display: block; width: 100%; max-width: 64px; height: auto; aspect-ratio: 1; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .4)); }   /* (N4: the pictures shrink to fit a phone card) */
.coinpic { width: 54px; height: 54px; } .coinpic.e { margin: 0 0 6px; } .coinpic.big { width: 110px; height: 110px; display: block; margin: 16px auto 0; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .35)); }
.coin-buys { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 6px 0; } .coin-buys .gw-btn { padding: 5px 6px; font-size: 12.5px; } .coin-buys svg { width: 14px; height: 14px; }
.prem-art { display: grid; place-items: center; min-height: 120px; } .prem-art svg { width: 70px; height: 70px; }
/* ---------- E2: Habbo's bottom row: the dock left, the chat bar in the middle (in a room), the messenger right.
   chat.js layoutBottom() sets --dockW / --dockH / --msgrW, and body.stack when the middle is too narrow (and on phones):
   then the chat bar and the messenger sit one row up, over the dock ---------- */
#chatbar { position: fixed; z-index: 22; bottom: calc(10px + var(--bot-b) / var(--ui, 1)); left: 50%; width: var(--chatW, 420px); transform: translateX(-50%); box-sizing: border-box;
  display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; border: 2px solid var(--gold-line); background: var(--glass); box-shadow: 0 0 0 1px #000, 0 6px 20px rgba(0, 0, 0, .45); }
#chatbar[hidden] { display: none; }
#chatbar input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border: 0; border-radius: 10px; background: rgba(0, 0, 0, .3); color: var(--cream); font: 600 15px var(--gw-font); outline: none; }
#chatbar input::placeholder { color: var(--dim); } #chatbar input:focus { box-shadow: inset 0 0 0 2px var(--gold-line); }
.cb-btn { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.cb-btn .ico { width: 22px; height: 22px; } .cb-btn:hover { filter: brightness(1.2); }
.cb-btn[class*="bs-"] { box-shadow: inset 0 -4px 0 var(--bs); }
#chatbar .wh { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 6px; border-radius: 8px; background: rgba(160, 130, 255, .25); color: #e2d8ff; font: 600 12px var(--gw-font); }
#chatbar .wh .ico { width: 14px; height: 14px; vertical-align: -2px; } #chatbar .wh button { border: 0; background: none; color: inherit; font: 700 14px var(--gw-font); padding: 0 2px; }
#chatbar .wh[hidden] { display: none; }
/* the emote wheel (G3): a ring of buttons around a face, above the chat bar */
#msgr { position: fixed; right: 10px; bottom: calc(8px + var(--bot-b) / var(--ui, 1)); z-index: 22; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 16px;
  border: 2px solid var(--gold-line); background: var(--glass); box-shadow: 0 0 0 1px #000, 0 6px 20px rgba(0, 0, 0, .45); }
#msgr[hidden] { display: none; }
.ms-heads { display: flex; align-items: center; gap: 3px; } .ms-heads[hidden] { display: none; }
.ms-head { position: relative; padding: 0; border: 0; background: none; animation: ms-pop .35s cubic-bezier(.3, 1.6, .5, 1); } @keyframes ms-pop { from { transform: scale(.2); opacity: 0; } } .ms-head .hd { width: 36px; height: 36px; }
.ms-head .dot { position: absolute; right: 0; bottom: 1px; width: 9px; height: 9px; border-radius: 50%; background: #5fe07a; box-shadow: 0 0 0 2px #14132a; }
.ms-head em, .ms-btn em, .rb-btn em, .ms-convs em, .gw-tabs.mini em { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: var(--ruby); color: #fff; font: 700 10.5px/15px var(--gw-font); font-style: normal; text-align: center; border: 1px solid #4a0f1c; display: none; }
.ms-head em.on, .ms-btn em.on, .rb-btn em.on, .ms-convs em.on, .gw-tabs.mini em.on { display: block; }
.ms-find { display: flex; align-items: center; gap: 5px; height: 36px; padding: 0 9px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); color: var(--cream); font: 400 12.5px var(--gw-title); letter-spacing: .4px; white-space: nowrap; }
.ms-find .ico { width: 20px; height: 20px; }
.ms-fold { width: 20px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--dim); font: 700 16px var(--gw-font); } .ms-fold:hover { color: #fff; }
.ms-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 3px solid var(--metal); background: radial-gradient(circle at 35% 28%, #6a6a92, #2b2a45); box-shadow: 0 0 0 2px var(--stone-d), 0 3px 0 2px rgba(0, 0, 0, .45); }
.ms-btn .ico { width: 28px; height: 28px; } .ms-btn:hover { filter: brightness(1.15); }
.ms-btn.ask { border-color: var(--gold); } .ms-btn.bump { animation: bump .5s ease-out; }
  border: 2px solid var(--gold-line); background: var(--glass); box-shadow: 0 0 0 1px #000, 0 6px 20px rgba(0, 0, 0, .4); max-width: calc(var(--vw) - 24px); box-sizing: border-box; }
#tray { z-index: 23; }
body.stack.in-room #tray { bottom: calc(var(--dockH, 70px) + 74px + var(--bot-b) / var(--ui, 1)); }   /* over the chat bar row, not on it */
body.stack.in-room #pan-l { bottom: calc(var(--dockH, 70px) + var(--laneH, 0px) + 14px); }   /* over the lane (the room box, a chat bar that stepped up) */
@media (max-width: 680px) {
  #dock { display: flex; justify-content: space-between; padding: 5px 4px calc(5px + env(safe-area-inset-bottom, 0px) / var(--ui, 1)); }
  .dk-l, .dk-r { gap: 0; }
  .ms-heads, .ms-fold { display: none; } #msgr { padding: 3px; } .ms-btn { width: 40px; height: 40px; }
  #dock .dk { flex: none; width: auto; min-width: 46px; padding: 2px 3px; }   /* long labels (Decorate, Wardrobe) get their room; the dock scrolls if it must */
}

/* the panels (windows.js openPanel): Habbo's small windows, the room stays clickable */
.gw-pan { position: fixed; z-index: 23; display: flex; flex-direction: column; box-sizing: border-box; width: 300px; max-height: calc(var(--vh) - 230px); color: var(--cream); font-family: var(--gw-font);
  border-radius: 14px; border: 2px solid var(--gold-line); background: linear-gradient(180deg, #2a264e, #16142c); box-shadow: 0 0 0 1px #000, 0 10px 30px rgba(0, 0, 0, .55); animation: gwPop .18s ease-out; }   /* (N4: opaque: name tags no longer show through the Messenger) */
.gw-pan[hidden] { display: none; } .gw-pan.top { z-index: 24; }   /* under the Play page (25) */
.gw-pan header { position: relative; display: flex; align-items: center; gap: 7px; padding: 7px 40px 7px 8px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #b0283a, #7a1426); border-radius: 12px 12px 0 0; }
.gw-pan header .gw-badge { width: 26px; height: 26px; } .gw-pan header .gw-badge svg.ico { width: 18px; height: 18px; }
.gw-pan h3 { margin: 0; font: 400 15px/1 var(--gw-title); letter-spacing: .8px; text-transform: uppercase; color: #fff; text-shadow: 0 1px 0 #000; }
.gw-pan .pop-x { top: 5px; right: 6px; width: 26px; height: 26px; font-size: 14px; }
.pan-body { overflow-y: auto; padding: 10px; }
#pan-l { left: 12px; bottom: calc(var(--dockH, 70px) + var(--laneH, 0px) + 14px); max-height: calc(var(--vh) - var(--dockH, 70px) - 250px); }   /* over the room box */
#pan-r { right: 12px; top: calc(70px + var(--sa-t) / var(--ui, 1)); width: 520px; height: min(470px, calc(var(--vh) - 170px)); max-height: none; }
#pan-i { right: 12px; bottom: calc(84px + var(--bot-b) / var(--ui, 1)); width: 290px; }   /* (clear of the bottom bar: it is 78 px tall at the larger UI scales) */
body.stack #pan-i { bottom: calc(var(--dockH, 70px) + 74px + var(--bot-b) / var(--ui, 1)); }
#pan-r .pan-body { flex: 1; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
@media (max-width: 680px) {
  .gw-pan, #pan-r, #pan-i { left: 6px; right: 6px; width: auto; top: auto; bottom: calc(var(--dockH, 64px) + var(--laneH, 0px) + 14px); max-height: 56dvh; }
  #pan-r { height: 56dvh; }
  body.in-room .gw-pan, body.in-room #pan-r, body.in-room #pan-i { bottom: calc(var(--dockH, 64px) + var(--laneH, 0px) + 14px); max-height: 50dvh; }   /* over the room box too */
}

/* heads: the front picture of a fly, cropped to its head */
.hd { position: relative; flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 40% 35%, #4a4670, #22203a); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12); }
.hd img { position: absolute; inset: 0; width: 100%; height: 100%; } .hd .ico { width: 70%; height: 70%; }   /* the head picture (renderFlySprites 'head': framed on the head) */
.hd.in-pic { border-radius: 14px; }   /* the info card: the whole fly (the front picture, framed on the fly) */

/* speech bubbles (E2): the speaker's style; the size is the viewer's own setting */
#bubbles { position: fixed; inset: 0; pointer-events: none; z-index: 21; }
.chatb { position: absolute; left: 0; top: 0; display: flex; align-items: flex-start; gap: 6px; max-width: min(320px, 80vw); padding: 5px 10px 5px 5px; border-radius: 12px; background: var(--bs); color: var(--bs-ink, #241a10);
  font: 600 13.5px/1.3 var(--gw-font); box-shadow: 0 3px 0 rgba(0, 0, 0, .25), 0 0 0 2px var(--bs-edge, #241a10); transition: opacity .5s; overflow-wrap: anywhere; }
.chatb .hd { width: 24px; height: 24px; margin-top: -1px; } .chatb > span { padding-top: 2px; }
.chatb b { color: var(--bs-name, #7a3a1e); }
.chatb.whisper { font-style: italic; box-shadow: 0 3px 0 rgba(0, 0, 0, .25), 0 0 0 2px #6a4ab0; } .chatb.whisper i { color: #6a4ab0; }
.chatb.fade { opacity: 0; }
#bubbles.sz-s .chatb { font-size: 11.5px; max-width: min(260px, 70vw); } #bubbles.sz-s .chatb .hd { width: 20px; height: 20px; }
#bubbles.sz-l .chatb { font-size: 16px; max-width: min(380px, 86vw); } #bubbles.sz-l .chatb .hd { width: 30px; height: 30px; }
.bs-cream { --bs: #fffaf0; } .bs-mint { --bs: #d9f7e4; --bs-name: #1f6a3a; } .bs-sky { --bs: #dcecff; --bs-name: #234f8f; } .bs-rose { --bs: #ffe0e8; --bs-name: #8f2346; }
.bs-lilac { --bs: #ece2ff; --bs-name: #5a3a9a; } .bs-lemon { --bs: #fff6b8; --bs-name: #7a5a00; }
.bs-night { --bs: #1d2450; --bs-ink: #e8ecff; --bs-name: #ffd86a; --bs-edge: #8a9cff; } .bs-gold { --bs: linear-gradient(#ffe9a0, var(--gold)); --bs-name: #6a3a00; --bs-edge: #8a5206; }
.bs-heart { --bs: linear-gradient(#ffd0de, #ff9ab8); --bs-name: #8f1240; --bs-edge: #b0285a; } .bs-letter { --bs: #f6ead0; --bs-name: #6a3a1e; --bs-edge: #8a5a32; }
.bs-leaf { --bs: linear-gradient(#e2ffd0, #a8e48a); --bs-name: #2a5a12; --bs-edge: #3a7a1a; } .bs-staff { --bs: linear-gradient(#dcecff, #9cc4ff); --bs-name: #1a3a8a; --bs-edge: #3a6fd0; } .bs-club { --bs: linear-gradient(#e8d4ff, #b78ae8); --bs-name: #4a1a7a; --bs-edge: #c9902a; }   /* G7: the Fly Club */
.bs-velvet { --bs: linear-gradient(#7a2e6e, #4a1240); --bs-ink: #fbe9f4; --bs-name: #ffd86a; --bs-edge: #e0b04a; } .bs-honey { --bs: linear-gradient(#ffe9a8, #f2b636); --bs-name: #6a3a06; --bs-edge: #b8741a; }   /* AC5: two more club bubbles (velvet: light text on plum) */
.bs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.bs-pick { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 6px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .2); color: var(--dim); font: 600 11.5px var(--gw-font); }
.bs-pick .chatb { position: static; padding: 4px 8px; font-size: 12px; } .bs-pick.on { border-color: var(--gold); background: rgba(246, 194, 74, .14); color: var(--honey); }
.bs-pick:disabled { opacity: .55; } .bs-pick small .ico { width: 12px; height: 12px; vertical-align: -2px; }
.bs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; } .bs-pick { min-width: 0; padding: 7px 3px 5px; line-height: 1.2; text-align: center; } .bs-pick .chatb { max-width: 100%; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* (AD3: 29 styles in three columns: Size and Time come into view sooner) */
.bs-pick { cursor: pointer; transition: border-color .15s, background .15s; } .bs-pick:not(:disabled):hover { border-color: rgba(246, 194, 74, .6); } .bs-pick.picked .chatb { animation: bump .35s ease-out; }
/* AD3: Bubble Size / Bubble Time: a label and a one-line hint over one even control that fills the row (panel and Settings) */
.bub-row { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; margin-bottom: 6px; border-radius: 12px; background: rgba(0, 0, 0, .2); box-shadow: inset 0 0 0 1px var(--line); }
.bub-row:last-child { margin-bottom: 0; }
.bub-row label { font: 400 15.5px/1.25 var(--gw-title); letter-spacing: .4px; color: var(--cream); }
.bub-row label small { display: block; margin-top: 2px; color: var(--dim); font: 600 12px/1.35 var(--gw-font); letter-spacing: 0; }
.seg.bub-seg, #gwWin .seg.bub-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-radius: 10px; background: rgba(0, 0, 0, .18); }
.seg.bub-seg button, #gwWin .seg.bub-seg button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 36px; padding: 6px 2px; font-size: 12.5px; line-height: 1.1; white-space: nowrap; cursor: pointer; }
.seg.bub-seg button + button { box-shadow: inset 1px 0 0 var(--line); }
@media (max-width: 400px) { .seg.bub-seg button, #gwWin .seg.bub-seg button { white-space: normal; text-align: center; } }   /* (the narrowest phones: "Very Long" goes on two lines, all four stay in one row) */
.seg.bub-seg button small { font: 600 10px/1 var(--gw-font); opacity: .65; }
.seg.bub-seg button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--gold); }
.seg.bub-seg button.picked { animation: segPick .35s ease-out; } @keyframes segPick { 40% { filter: brightness(1.6); transform: scale(1.06); } }

/* the room's chat history */
.hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.hist li { display: flex; align-items: flex-start; gap: 6px; font: 600 12.5px/1.35 var(--gw-font); overflow-wrap: anywhere; }
.hist time { flex: none; width: 36px; padding-top: 6px; color: var(--dim); font-size: 10.5px; } .hist li > span:last-child { padding-top: 5px; }
.hist .linkish { font-weight: 700; color: var(--honey); } .hist li.wh { font-style: italic; color: #d8ccff; } .hist li.ev span { color: var(--dim); font-style: italic; }

/* the messenger */
.gw-tabs.mini { display: flex; gap: 2px; padding: 6px 8px 0; border-bottom: 1px solid var(--line); }
.gw-tabs.mini button { min-height: 0; padding: 6px 10px 7px; border: 0; border-bottom: 3px solid transparent; border-radius: 8px 8px 0 0; background: transparent; color: var(--dim); font: 400 13.5px var(--gw-title); letter-spacing: .4px; }
.gw-tabs.mini button.on { color: var(--honey); border-bottom-color: var(--gold); background: rgba(246, 194, 74, .12); }
.gw-tabs.mini em { position: static; margin-left: 5px; vertical-align: 1px; } .gw-tabs.mini em.on { display: inline-block; }   /* (zh: the count sits after the word, never over its last letter) */
.ms-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; padding: 8px; }
.ms-split { flex: 1; min-height: 0; display: grid; grid-template-columns: 170px 1fr; gap: 8px; margin: -8px; }
.ms-convs { list-style: none; margin: 0; padding: 6px; overflow-y: auto; border-right: 1px solid var(--line); }
.ms-convs button { position: relative; width: 100%; display: flex; align-items: center; gap: 6px; padding: 5px; border: 0; border-radius: 9px; background: transparent; color: var(--cream); text-align: left; }
.ms-convs button.on, .ms-convs button:hover { background: rgba(255, 255, 255, .07); } .ms-convs button span { min-width: 0; display: flex; flex-direction: column; }
.ms-convs b { font: 700 13px var(--gw-font); } .ms-convs small { color: var(--dim); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ms-convs em { top: 4px; right: 4px; }
.ms-chat { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 8px 8px 8px 0; }
.ms-who { display: flex; align-items: center; gap: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); } .ms-who .gw-btn { margin-left: auto; } .ms-who [data-ms-back] { display: none; }
.ms-log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 8px 0; }
.ms-log p { align-self: flex-start; max-width: 85%; margin: 0; padding: 5px 9px; border-radius: 12px 12px 12px 4px; background: rgba(255, 255, 255, .08); font: 600 13px/1.35 var(--gw-font); overflow-wrap: anywhere; }
.ms-log p.me { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: rgba(246, 194, 74, .18); } .ms-log time { margin-left: 6px; color: var(--dim); font-size: 10px; }
.ms-log p.cp-sys { align-self: center; background: transparent; color: var(--dim); font-size: 11.5px; text-align: center; }
.ms-in { display: flex; gap: 6px; } .ms-in input { flex: 1; }
.ms-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.ms-list li { display: flex; align-items: center; gap: 7px; padding: 5px; border-radius: 9px; background: rgba(255, 255, 255, .04); } .ms-list li > span:not(.hd) { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; }
.ms-list .ms-here { flex: none; padding: 0 6px; font: 400 13px var(--gw-title); letter-spacing: .4px; color: #8ff0a4; }   /* (zh: a friend in your room: no Go) */
.ms-list li small { flex-basis: 100%; color: var(--dim); font-size: 11px; } .ms-list li.on small { color: #8ff0a4; } .ms-list .hd { width: 32px; height: 32px; }
@media (max-width: 680px) { .ms-split { grid-template-columns: 1fr; } .ms-split.has .ms-convs { display: none; } .ms-split:not(.has) .ms-chat { display: none; } .ms-who [data-ms-back] { display: inline-flex; } .ms-chat { padding-left: 8px; } .ms-convs { border-right: 0; } }
@media (max-width: 680px), (max-height: 480px) {   /* list 5 stage 4 (phone audit #13): the messenger's taps land at 40 px: its tabs, Chat, Go, Join, Add Friend, Send, Report, a fly's name */
  #pan-r .gw-tabs.mini button, #pan-r .ms-body .gw-btn, #pan-r .nav-search > *, #pan-r .ms-in > *, #pan-r .ms-convs button { min-height: calc(40px / var(--ui, 1)); box-sizing: border-box; }
  #pan-r .ms-body .linkish { display: inline-flex; align-items: center; min-height: calc(40px / var(--ui, 1)); }
}

/* the info card (Habbo's infostand) and room info */
.info .in-pic { width: 76px; height: 76px; flex: none; } img.in-pic { object-fit: contain; border-radius: 12px; background: radial-gradient(circle at 40% 35%, #4a4670, #22203a); }
.in-name { margin: 0; } .in-name b { font: 400 18px/1.1 var(--gw-title); letter-spacing: .5px; color: var(--honey); }
.in-mood { margin: 4px 0 0; font: 600 12.5px/1.3 var(--gw-font); color: var(--cream); font-style: italic; overflow-wrap: anywhere; }
.in-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 5px 0 0; font: 700 11.5px var(--gw-font); color: var(--dim); } .in-facts .ico { width: 14px; height: 14px; vertical-align: -3px; } .in-facts .onl { color: #8ff0a4; }
.in-badges { display: flex; gap: 4px; margin: 8px 0; } .in-badges .bdg { width: 36px; height: 36px; }
.in-acts { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; } .in-acts .gw-btn { padding: 5px 9px; font-size: 12.5px; } .in-acts .gw-btn .ico { width: 15px; height: 15px; margin-right: 3px; vertical-align: -3px; }
.gw-btn.gold { color: #3a2400; border-color: #6a4400; background: linear-gradient(var(--honey), #e0a02a); box-shadow: 0 3px 0 #8a5206, inset 0 1px 0 rgba(255, 255, 255, .45); }
.ri-name { margin: 0 0 4px; } .ri-name b { font: 400 18px var(--gw-title); letter-spacing: .5px; color: var(--honey); } .ri-name small { color: var(--dim); }
.ri-desc { margin: 0 0 6px; font: 600 12.5px/1.35 var(--gw-font); font-style: italic; overflow-wrap: anywhere; }
.ri-facts { width: 100%; border-collapse: collapse; font: 600 12.5px var(--gw-font); } .ri-facts td { padding: 3px 0; border-bottom: 1px solid var(--line); } .ri-facts td:first-child { color: var(--dim); width: 40%; }
.ri-edit select { width: 100%; }
.lbl.flytag { text-transform: none; letter-spacing: .2px; }   /* names keep their capitals (C2) */
.flytag.club { color: #ffd86a; background: linear-gradient(rgba(74, 24, 92, .85), rgba(36, 12, 54, .85)); border-color: #c9902a; } .flytag .club-spark { display: inline-flex; vertical-align: -2px; margin-right: 3px; } .flytag .club-spark .ico { width: 11px; height: 11px; color: #ffd86a; animation: clubTw 2.4s ease-in-out infinite; }
@keyframes clubTw { 0%, 100% { opacity: .55; transform: scale(.85) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(20deg); } }   /* AC5: the Fly Club's name tag */
.club-chip { font: 700 10px/1 var(--gw-font); font-style: normal; color: #ffd86a; background: linear-gradient(#5a2a8a, #2e1648); border: 1px solid #c9902a; border-radius: 8px; padding: 2px 6px; margin-left: 4px; white-space: nowrap; }   /* AC5: a club perk shown beside what it changes */
/* the staff page (D7) */
.staff-seg { margin-bottom: 8px; flex-wrap: wrap; } @media (max-width: 560px) { .staff-seg > button { flex: 1 1 30%; } .req-set > button { flex: 1 1 40%; } }   /* R6: phones: even rows (3 + 2 filling the width; the status buttons 2 × 2) */ .staff-chat .row3, .staff-give .row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } @media (max-width: 560px) { .staff-chat .row3, .staff-give .row3 { grid-template-columns: 1fr; } }
/* staff 2.0 (G1): the people list, watching a room, a banner across the top */
.staff-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; } .staff-tools .nav-search { flex: 1; min-width: 180px; margin: 0; }
.staff-list .onl { color: #8ff0a4; } .staff-list td:last-child { white-space: normal; } .staff-list select { display: block; margin: 4px 0 0 auto; } .staff-list select { padding: 4px 6px; font-size: 12.5px; margin-left: 6px; }
.nav-table tr.ac-old { opacity: .5; }
.staff-people { max-height: 46dvh; overflow-y: auto; } .staff-watch { max-height: 52dvh; overflow-y: auto; margin: 8px 0; }
#banner { position: fixed; z-index: 26; left: 50%; top: calc(118px + var(--sa-t) / var(--ui, 1)); transform: translateX(-50%); width: min(560px, calc(var(--vw) - 32px)); display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: linear-gradient(180deg, rgba(150, 30, 50, .96), rgba(100, 18, 34, .96)); border: 1.5px solid var(--gold); border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); color: var(--cream); animation: banner-in .35s ease-out; }
#banner > .ico { width: 26px; height: 26px; flex: none; color: var(--honey); } #banner p { flex: 1; margin: 0; font: 600 14px/1.3 var(--gw-font); } #banner small { display: block; color: var(--dim); font-size: 11px; }
#banner .pop-x { position: static; flex: none; }
@keyframes banner-in { from { transform: translate(-50%, -20px); opacity: 0; } }
.staff-fly .btnrow .bdg, .staff-main .btnrow .bdg { width: 22px; height: 22px; vertical-align: middle; }
#gwWin.staff .gw-body { padding-top: 10px; }
@media (min-width: 681px) { .staff-inv .inv-side { position: sticky; top: 0; align-self: start; max-height: calc(min(680px, var(--vh) - 70px) - 92px); overflow-y: auto; scrollbar-width: thin; } }   /* (zh: the side menu stays put while a long screen scrolls; with God Mode on it scrolls on its own) */
.staff-scores small { display: block; } .staff-scores td.num .gw-btn { margin: 2px 0 2px 4px; }
.staff-hb td { vertical-align: top; } .staff-hb td:first-child { width: 28%; white-space: normal; } .staff-hb td:last-child { font-size: 13px; text-align: left; }
/* U1: the big green Sent! card after a request or report; a fly's impossible results folded open under its row in Economy */
.sent-card { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid #8ff0a4; background: linear-gradient(180deg, rgba(82, 192, 112, .32), rgba(40, 120, 64, .32)); color: var(--cream); animation: sent-in .3s ease-out; }
.sent-card .ico { width: 34px; height: 34px; flex: none; color: #8ff0a4; } .sent-card b { display: block; font: 400 24px/1.1 'Lilita One', var(--gw-font); color: #b8ffc8; } .sent-card p { margin: 2px 0 0; font-size: 13.5px; }
@keyframes sent-in { from { transform: scale(.92); opacity: 0; } }
.authf .gw-btn.wide:disabled { filter: saturate(.4) brightness(.85); cursor: default; }
.nav-table tr.flag-more > td { padding: 0 0 6px 12px; text-align: left; white-space: normal; } .flag-more .nav-table { border-left: 2px solid var(--line); } .flag-more .nav-table { margin: 0; font-size: 12.5px; }
.staff-sudo { max-width: 400px; } .staff-unlocked { color: #8ff0a4; } .staff-wallet { color: var(--cream); }
.staff-logbtn { display: flex; flex-direction: column; justify-content: flex-end; }
/* T (Jesse 2026-10-17): the staff menu at first glance. The Bag's left column (folds; a dropdown on phones), one short line per
   screen, the fly card's chips, one-line history, 5 big buttons with a small panel in place, "Show more" for the rest */
.staff-inv { grid-template-columns: 172px minmax(0, 1fr); height: auto; align-items: start; }
.staff-inv .inv-side { gap: 0; }
.staff-inv .inv-fold { padding: 0 6px 6px; } .staff-inv .inv-fold summary { padding: 7px 4px; }
.staff-inv .inv-fold .inv-f { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin: 0 0 4px; padding: 6px 9px; font-size: 13.5px; cursor: pointer; }
.staff-inv .inv-f:hover { color: var(--cream); } .staff-inv .inv-f.on { color: var(--honey); }
.inv-f em { font-style: normal; min-width: 18px; box-sizing: border-box; padding: 0 5px; border-radius: 9px; background: var(--ruby); color: #fff; font: 700 11px/17px var(--gw-font); text-align: center; letter-spacing: 0; } .inv-f em:empty { display: none; }
.staff-why { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 13px; line-height: 1.4; }
.staff-main .nav-table td:last-child { white-space: normal; overflow-wrap: anywhere; } .staff-main .btnrow { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; } .staff-main .warn { color: #ffb0a0; } .staff-main .onl { color: #8ff0a4; }
.st-chip { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 9px; font: 700 11px/17px var(--gw-font); vertical-align: 2px; background: rgba(255, 255, 255, .1); color: var(--dim); white-space: nowrap; }
.st-chip.flag { background: rgba(255, 110, 90, .2); color: #ffb0a0; } .st-chip.watch { background: rgba(255, 216, 106, .16); color: #ffd86a; } .st-chip.onl { background: rgba(143, 240, 164, .14); color: #8ff0a4; } .st-chip.club { background: rgba(116, 196, 255, .16); color: var(--sky); }
.fc-head { margin: 6px 0 10px; } .fc-name { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; } .fc-name > b:not(.st-chip) { font: 400 22px var(--gw-title); color: var(--honey); margin-right: 2px; }
.fc-sum { margin: 3px 0 0; color: var(--cream); font-size: 13.5px; }
.fc-big { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.fc-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 12px; border: 2px solid #4a1f08; cursor: pointer;
  background: linear-gradient(#ffcf5a, #e8962a 60%, #c66f14); color: #fff3d6; font: 400 14px var(--gw-title); letter-spacing: .5px; text-shadow: 0 1px 0 rgba(60, 20, 0, .5); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), 0 3px 0 #4a1f08; transition: transform .08s; }
.fc-btn .ico { width: 26px; height: 26px; } .fc-btn:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), 0 1px 0 #4a1f08; }
.fc-btn.hot { background: linear-gradient(#ff8a7a, #e2463c 60%, #a8231f); } .fc-btn[aria-pressed="true"] { outline: 2px solid var(--honey); outline-offset: 2px; }
.fc-extra { margin-top: 8px !important; } .fc-extra .gw-btn[aria-pressed="true"] { color: var(--honey); border-color: var(--gold); }
.fc-panel:not(:empty) { margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px var(--gold-line); animation: softIn .2s ease-out; }
.fc-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; } .fc-form input { flex: 1 1 220px; min-width: 0; }
.st-len { width: fit-content; max-width: 100%; margin: 0 0 6px; flex-wrap: wrap; }
.fc-more { margin: 12px 0 0; border-radius: 10px; background: rgba(0, 0, 0, .18); }
.fc-more > summary { cursor: pointer; padding: 8px 12px; font: 600 13px var(--gw-font); color: var(--honey); list-style: none; display: flex; justify-content: space-between; }
.fc-more > summary::after { content: '▾'; opacity: .7; } .fc-more[open] > summary::after { content: '▴'; } .fc-more > summary::-webkit-details-marker { display: none; }
.fc-more > div { padding: 0 12px 10px; }
.case-line { margin: 2px 0 4px; font-size: 14.5px; line-height: 1.45; color: var(--cream); } .case-line b { color: var(--honey); }
.case-do { margin: 6px 0; } .case-name { margin-top: 4px; } .case-list td small { white-space: normal; }
.staff-scores small { display: block; } .staff-scores td.num .gw-btn { margin: 2px 0 2px 4px; }
.staff-fly .btnrow .bdg, .staff-main .btnrow .bdg { width: 22px; height: 22px; vertical-align: middle; }
/* T1: God mode (owners): one switch; a gold glow round the window while it's on */
.god-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px var(--line); }
.god-card.on { box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 18px rgba(246, 194, 74, .18); }
.god-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .god-row span { display: flex; align-items: center; gap: 8px; } .god-row b { font: 400 17px var(--gw-title); color: var(--honey); letter-spacing: .4px; } .god-row .ico { width: 24px; height: 24px; } .god-row .tog { cursor: pointer; flex: none; }
.god-card .gw-note { margin: 0; } .god-links { margin-top: 10px !important; } .god-card.clock { margin-top: 10px; } .god-card.clock .staff-seg { margin: 4px 0; }   /* X2: the World Clock */
#gwWin.god-on { box-shadow: 0 0 0 2px var(--gold), 0 0 28px rgba(246, 194, 74, .45), 0 12px 40px rgba(0, 0, 0, .6); }
/* T4: Give & Take, one small panel */
.give-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; align-items: end; max-width: 620px; }
.give-panel label, .give-l { display: flex; flex-direction: column; gap: 3px; font: 600 12px var(--gw-font); color: var(--dim); } .give-panel .wide { grid-column: 1 / -1; }
.give-panel > div.wide:not(.btnrow):not(.staff-bag) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; } .give-panel > div.wide input { flex: 1 1 180px; min-width: 0; }
.give-why { flex-wrap: wrap; } .give-wallet { margin: 0; color: var(--cream); }
@media (max-width: 680px) { .staff-inv { grid-template-columns: minmax(0, 1fr); gap: 4px; } .fc-big { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; } .fc-btn { padding: 8px 2px 6px; font-size: 12px; letter-spacing: 0; } .fc-btn .ico { width: 22px; height: 22px; }
  .give-panel { grid-template-columns: 1fr 1fr; } .give-panel label:first-child { grid-column: 1 / -1; }
  .staff-scores tr { display: block; padding: 6px 0; border-bottom: 1px solid var(--line); } .staff-scores td { display: block; padding: 0 12px; border: 0; } .staff-scores td.num { text-align: left; } .staff-scores td.num .gw-btn { margin: 6px 6px 0 0; } }
/* T5: game-styled scrollbars on every window, list and side column: a slim honey thumb on a dark rounded track
   (Chromium: the ::-webkit-scrollbar look, so the standard properties stay auto there; Firefox: scrollbar-color) */
@supports selector(::-webkit-scrollbar) {
  .gw-body, .staff-people, .staff-watch, .context, .gw-pan .gw-body { scrollbar-width: auto; scrollbar-color: auto; }
  .gw-body::-webkit-scrollbar, .staff-people::-webkit-scrollbar, .staff-watch::-webkit-scrollbar, .context::-webkit-scrollbar { width: 10px; height: 10px; }
  .gw-body::-webkit-scrollbar-track, .staff-people::-webkit-scrollbar-track, .staff-watch::-webkit-scrollbar-track, .context::-webkit-scrollbar-track { background: rgba(0, 0, 0, .32); border-radius: 8px; margin: 6px 0; }
  .gw-body::-webkit-scrollbar-thumb, .staff-people::-webkit-scrollbar-thumb, .staff-watch::-webkit-scrollbar-thumb, .context::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #ffe08a, #f6c24a 55%, #c98a1c); border-radius: 8px; border: 2px solid rgba(20, 16, 30, .9); }
  .gw-body::-webkit-scrollbar-thumb:hover, .staff-people::-webkit-scrollbar-thumb:hover, .staff-watch::-webkit-scrollbar-thumb:hover, .context::-webkit-scrollbar-thumb:hover { background: linear-gradient(90deg, #fff0b8, #ffd25e 55%, #e0a030); }
  .gw-body::-webkit-scrollbar-corner { background: transparent; }
}
@supports not selector(::-webkit-scrollbar) { .gw-body, .staff-people, .staff-watch, .context { scrollbar-width: thin; scrollbar-color: #f6c24a rgba(0, 0, 0, .32); } }
/* a storage chest (B12): inside left, the bag right */
.chest { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .chest .wd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .chest .st i { font-style: normal; margin-left: 4px; padding: 0 5px; border-radius: 6px; background: rgba(246, 194, 74, .25); }
@media (max-width: 680px) { .chest { grid-template-columns: 1fr; } }
/* trading and gifts (B15) */
.trade { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .trade .gw-sec i { font-style: normal; margin-left: 6px; font: 600 11px var(--gw-font); color: var(--dim); text-transform: none; letter-spacing: 0; } .trade .gw-sec i.tr-ok { color: #8ff0a4; }
.serial { color: #ffd86a; } .tr-warn { margin: 6px 0; padding: 6px 10px; border-radius: 9px; background: rgba(224, 69, 58, .2); color: #ffb0a0; font: 700 13px var(--gw-font); }
.papers { display: flex; gap: 6px; margin: 4px 0 8px; } .paper input { display: none; } label.paper { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--line); cursor: pointer; } label.paper:has(input:checked) { border-color: var(--gold); background: rgba(246, 194, 74, .15); }
.paper .ico { width: 28px; height: 28px; } .presents .wd-tile .ico { width: 54px; height: 54px; margin: 8px auto 2px; display: block; }
.p-blue .ico { filter: hue-rotate(210deg); } .p-green .ico { filter: hue-rotate(110deg); } .p-gold .ico { filter: hue-rotate(40deg) saturate(1.4) brightness(1.1); } .p-pink .ico { filter: hue-rotate(310deg) brightness(1.15); } .p-night .ico { filter: hue-rotate(230deg) brightness(.75); }
@media (max-width: 680px) { .trade { grid-template-columns: 1fr; } }
/* groups (F5) */
.gbadge { flex: none; vertical-align: middle; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .4)); } .nav-table td .gbadge { margin-right: 6px; float: left; }
.gchip { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; font-weight: 700; } .in-group, .pf-group { margin: 3px 0 0; }
.grp-top { display: flex; gap: 12px; align-items: center; } .grp-top h3 { margin: 0; font: 400 20px var(--gw-title); letter-spacing: .5px; color: var(--honey); } .grp-top p { margin: 3px 0; } .grp-top small { color: var(--dim); }
.grp-maker { display: grid; grid-template-columns: 110px 1fr; gap: 12px; } .grp-prev { display: grid; place-items: center; }
.grp-pick { display: flex; flex-wrap: wrap; gap: 4px; } .grp-pick button { padding: 2px; border-radius: 8px; border: 2px solid transparent; background: rgba(0, 0, 0, .2); } .grp-pick button.on { border-color: var(--gold); }
.grp-cols { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; } .grp-cols button { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .5); } .grp-cols button.on { outline: 2px solid var(--gold); outline-offset: 1px; }
@media (max-width: 480px) { .grp-maker { grid-template-columns: 1fr; } }
/* the public rooms' activities (B16) */
.ri-event { margin: 4px 0 6px; padding: 5px 8px; border-radius: 8px; background: rgba(246, 194, 74, .14); font: 600 12.5px var(--gw-font); } .ri-event .ico { width: 14px; height: 14px; vertical-align: -2px; }
.bs-splash { --bs: linear-gradient(#dff6ff, #8fdcff); --bs-name: #0f5a8a; --bs-edge: #2a7ab0; } .bs-market { --bs: repeating-linear-gradient(90deg, #fff6dc 0 10px, #ffe0e0 10px 20px); --bs-name: #8a2a1a; --bs-edge: #c4232b; }   /* F7 */
/* pets (F8) */
.pet-bars { margin: 8px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .pet-bar { display: grid; gap: 3px; font: 600 11px var(--gw-font); } .pet-bar > span:first-child { opacity: .8; } .gw-bar.low > i { background: repeating-linear-gradient(-45deg, #ff9a6a 0 6px, #e86a4a 6px 12px); }   /* (the three care bars side by side, under the pet) */
.pet-perk { display: flex; align-items: flex-start; gap: 6px; margin: 4px 0; font: 600 12px/1.3 var(--gw-font); } .pet-perk svg.ico { width: 1.2em; height: 1.2em; flex: none; margin-top: 1px; color: #ffd25a; }
.tag.pettag { gap: 5px; padding: 2px 7px; font-size: 11px; } .tag.pettag .pt-lv { font-style: normal; font-size: 9.5px; padding: 0 5px; border-radius: 6px; background: rgba(255, 210, 90, .22); color: #ffd25a; }
.pet-lvl { margin: 3px 0; font: 600 12.5px var(--gw-font); display: flex; align-items: center; gap: 8px; } .pet-lvl .gw-bar { flex: 1; height: 8px; }
.pet-badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } .pet-badges span { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid transparent; opacity: .45; filter: grayscale(1); } .pet-badges span.got { opacity: 1; filter: none; border-color: rgba(255, 214, 106, .35); background: rgba(246, 194, 74, .08); } .pet-badges .ico { width: 20px; height: 20px; flex: none; color: var(--gold); } .pet-badges small { min-width: 0; font: 600 10.5px/1.25 var(--gw-font); color: var(--dim); } .pet-badges small b { display: block; font-size: 12px; color: var(--cream); }
.pet-food { display: flex; align-items: flex-start; gap: 5px; margin: 3px 0 0; font: 600 12px/1.3 var(--gw-font); color: #8ff0a4; } .pet-food.warn { color: #ffb0a0; } .pet-food svg.ico { width: 16px; height: 16px; flex: none; } .pet-food small { color: var(--dim); font-weight: 500; }
.edit-cols { display: flex; gap: 4px; margin-right: 6px; } .edit-cols button { width: 22px; height: 22px; padding: 0; border-radius: 6px; border: 2px solid rgba(0, 0, 0, .5); } .edit-cols button.on { outline: 2px solid var(--gold); outline-offset: 1px; }   /* F9 */

/* the Fly Club card (G7) */
.club-card { padding: 12px; border-radius: 14px; border: 1.5px solid #c9902a; background: linear-gradient(160deg, rgba(140, 90, 216, .35), rgba(40, 20, 70, .55)); margin-bottom: 10px; }
.club-top { display: flex; gap: 10px; align-items: center; } .club-top .ico { width: 34px; height: 34px; } .club-top b { display: block; font: 400 20px var(--gw-title); color: #ffd86a; } .club-top small { color: var(--cream); }
.club-card ul { margin: 8px 0; padding-left: 18px; color: var(--cream); font: 600 13px/1.5 var(--gw-font); }
/* AC5: the Fly Club page (Habbo Club's): a hero with the statue turning, the perks in a grid, the lounge, the month's gifts */
.club-hero { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; background: radial-gradient(circle at 15% 50%, rgba(255, 207, 58, .25), transparent 55%), linear-gradient(135deg, #4a1a6a, #1a0d2c); }
.club-hero .club-art { width: 120px; height: 120px; display: grid; place-items: center; } .club-hero .club-art > * { max-width: 100%; max-height: 100%; }
.club-hero small .cu { color: #ffd86a; font-weight: 700; white-space: nowrap; } .club-hero .club-top { flex-direction: column; align-items: stretch; gap: 8px; } .club-hero .club-top b { font-size: 26px; } .club-hero .sti-f { flex-wrap: wrap; gap: 8px; }
.club-perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; margin-bottom: 10px; }
.club-perk { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: rgba(140, 90, 216, .14); border: 1px solid rgba(201, 144, 42, .45); }
.club-perk > .ico { flex: none; width: 22px; height: 22px; color: #ffd86a; } .club-perk b { display: block; font: 700 13px/1.2 var(--gw-font); color: #ffd86a; } .club-perk small { display: block; font: 600 12px/1.35 var(--gw-font); color: var(--cream); opacity: .9; }
.club-lounge { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; margin-bottom: 10px; background: linear-gradient(120deg, rgba(242, 182, 54, .22), rgba(74, 24, 92, .5)); border: 1px solid #c9902a; }
.club-lounge > .ico { flex: none; width: 30px; height: 30px; color: #ffd86a; } .club-lounge p { flex: 1; margin: 0; font: 600 13px/1.4 var(--gw-font); color: var(--cream); } .club-lounge .gw-btn { flex: none; }
.club-gift .ribbon { background: linear-gradient(#5a2a8a, #2e1648); color: #ffd86a; } .sti.club-gift.dim { opacity: .55; } .club-gift-note { margin: 0 0 8px; }
.gw-btn.club-lock { background: linear-gradient(#5a2a8a, #2e1648); color: #ffd86a; border-color: #c9902a; } .gw-btn.club-lock .ico { width: 13px; height: 13px; } @media (max-width: 680px) { .sti-f .gw-btn.club-lock { flex-wrap: wrap; justify-content: center; white-space: normal; row-gap: 2px; padding-inline: 6px; } }   /* (AD3: "Fly Club · price" wraps inside a phone card, never past it) */
@media (max-width: 560px) { .club-hero { grid-template-columns: 80px 1fr; } .club-hero .club-art { width: 80px; height: 80px; } .club-hero .club-top b { font-size: 22px; } .club-lounge { flex-wrap: wrap; } }
@media (max-width: 374px) { .club-hero { grid-template-columns: 72px 1fr; gap: 10px; } .club-hero .club-art { width: 72px; height: 72px; } .club-hero .sti-f > .gw-btn { padding-inline: 12px; } }   /* (Join the Club stays on one line down to 341 px) */
@media (max-width: 340px) { .club-hero .sti-f > .gw-btn { white-space: normal; max-width: 100%; } .club-hero .gw-dot { display: none; } } .gw-nb { white-space: nowrap; }   /* (a very narrow phone: the price goes under the name, whole) */

/* rares (G8): a series' colours, the hall */
.series { padding: 6px 2px; } .series small { color: var(--dim); } .series-dots { display: flex; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.series-dots .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--c); opacity: .25; border: 2px solid rgba(255, 255, 255, .2); }
.series-dots .dot.own { opacity: 1; border-color: var(--gold); box-shadow: 0 0 6px var(--c); } .series-dots .dot.live { opacity: .9; border-color: #8ff0a4; animation: rank-sparkle 1.6s infinite; } .series-dots .dot.gone { opacity: .45; border-style: dashed; }
.rare-hall .pic { width: 28px; height: 28px; vertical-align: middle; }

/* the shop (G9): Habbo's catalog: a category tree on the left, a header over the items; a dropdown on a phone */
.cat2 { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px; align-items: start; }
.cat-tree { position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 12px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); max-height: 62dvh; overflow-y: auto; }
.cat-tree .inv-search { margin: 0 0 6px; width: 100%; box-sizing: border-box; }
.cat-group { margin: 8px 4px 2px; font: 800 10.5px var(--gw-font); letter-spacing: .6px; text-transform: uppercase; color: var(--honey); }
.cat-btn { position: relative; display: flex; align-items: center; gap: 7px; padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: var(--cream); font: 600 13px var(--gw-font); text-align: left; }
.cat-btn .ico { width: 18px; height: 18px; flex: none; } .cat-btn:hover { background: rgba(255, 255, 255, .06); } .cat-btn.on { background: rgba(246, 194, 74, .2); color: var(--honey); box-shadow: inset 3px 0 0 var(--gold); }
.cat-btn .dotnew { position: absolute; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--ruby); }
.pet-intro { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); } .pet-intro > .ico { width: 44px; height: 44px; flex: none; } .pet-intro > div { min-width: 0; } .pet-intro .pet-fold { margin-top: 6px; } .pet-intro .pet-fold summary { cursor: pointer; font: 800 12.5px var(--gw-font); color: var(--gold); letter-spacing: .3px; }
.pet-intro ul { margin: 0; padding-left: 18px; font: 600 13.5px/1.55 var(--gw-font); color: var(--cream); }
.market-soon { display: grid; place-items: center; gap: 6px; padding: 30px 16px; text-align: center; border-radius: 16px; border: 1.5px dashed var(--gold-line); background: rgba(0, 0, 0, .2); }
.market-soon > .ico { width: 54px; height: 54px; } .market-soon b { font: 400 22px var(--gw-title); color: var(--honey); } .market-soon p { max-width: 380px; margin: 0; color: var(--cream); font: 600 14px/1.5 var(--gw-font); }
.gw-btn.sure { outline: 2px solid #ffd86a; outline-offset: 1px; }   /* the second tap for gems and tickets */
.gw-sec .gw-btn { margin-left: auto; text-transform: none; letter-spacing: 0; }
#viewReset { display: none; }
body.view-moved #viewReset { display: inline-flex; }
.edit-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 2px 8px; margin-bottom: 6px; border-bottom: 1px solid rgba(246, 194, 74, .25); }
.edit-pick img, .edit-pick .e { width: 30px; height: 30px; object-fit: contain; }
.edit-pick b { flex: 1; min-width: 80px; color: var(--honey); }
.edit-wire { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 2px 8px; margin-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--dim); }   /* I16: wiring a picked piece */
.edit-wire > span { flex: 1; min-width: 120px; }
.edit-wire.on { color: var(--sky); }
.edit-wire.on b { color: var(--cream); }
.edit-wire .ico { width: 16px; height: 16px; color: var(--sky); }
.edit-wire input { padding: 6px 8px; }
.edit-wire > input { flex: 1; min-width: 150px; }
#tray.placing .hint .edit-wire { flex: 1; border: 0; margin: 0; padding: 0; }
.wr-secs { display: inline-flex; align-items: center; gap: 4px; }
.wr-secs input { width: 56px; }
.flytag.typing::after { content: '…'; display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 8px; background: #fff; color: #333; font-weight: 700; animation: typ 1s ease-in-out infinite; }
@keyframes typ { 50% { opacity: .45; } }
.rt-ev { color: var(--honey); display: flex; align-items: center; gap: 4px; }
.sti .qty { display: flex; gap: 4px; margin: auto 0 4px; } .sti .qty + .sti-f { margin-top: 0; }   /* (the ×1/×5/×10 row sits on the buy row at the card's foot, swatches or not) */
/* I11: colour swatches on a shop card */
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 2px 0 6px; }
.swatches button { width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .22); background: var(--sw, #888); box-shadow: inset 0 -3px 4px rgba(0, 0, 0, .25), inset 0 2px 3px rgba(255, 255, 255, .3); cursor: pointer; transition: transform .12s; }
.swatches button.orig { background: conic-gradient(#e8474f, var(--gold), #6fcf97, #45a6e8, #9a6ad6, #e8474f); }
.swatches button:hover { transform: scale(1.15); }
.swatches button[aria-pressed="true"] { border-color: var(--honey); transform: scale(1.18); box-shadow: 0 0 0 2px rgba(255, 207, 58, .35), inset 0 -3px 4px rgba(0, 0, 0, .25); }
.swatches .sw-name { font: italic 600 11px var(--gw-font); color: var(--dim); margin-left: 2px; }
.swatches .sw-tog { display: none; }
@media (max-height: 480px) and (orientation: landscape) {   /* (leftovers 2026-11-12: a phone on its side: one swatch with the colour's name; a tap folds the dots out, each 40 px to tap; picking one folds them back, shop.js) */
  .sti .qty button { min-height: calc(40px / var(--ui, 1)); }   /* (the ×1/×5/×10 row: 40 px as it lands, like an upright phone's) */
  .sti .swatches { gap: 2px; } .sti .swatches .sw-name, .sti .swatches:not(.open) > [data-sw] { display: none; }
  .sti .swatches .sw-tog { position: relative; display: inline-flex; align-items: center; gap: 6px; width: auto; height: auto; min-height: calc(40px / var(--ui, 1)); padding: 0 9px 0 7px; border: 1px solid var(--hair); border-radius: 999px; background: rgba(8, 7, 18, .35); box-shadow: none; transform: none; font: 600 12px var(--gw-font); color: var(--cream); }
  .sti .swatches .sw-tog > i { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--honey); background: var(--sw, #888); box-shadow: inset 0 -3px 4px rgba(0, 0, 0, .25), inset 0 2px 3px rgba(255, 255, 255, .3); }
  .sti .swatches .sw-tog > i.orig { background: conic-gradient(#e8474f, var(--gold), #6fcf97, #45a6e8, #9a6ad6, #e8474f); }
  .sti .swatches .sw-tog .ico { width: 14px; height: 14px; color: var(--dim); transition: transform .15s; } .sti .swatches.open .sw-tog .ico { transform: rotate(180deg); }
  .sti .swatches.open > [data-sw] { width: calc(40px / var(--ui, 1)); height: calc(40px / var(--ui, 1)); border: 8px solid transparent; background-clip: padding-box; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22); transform: none; }
  .sti .swatches.open > .orig { background-clip: padding-box; } .sti .swatches.open > [data-sw][aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--honey), 0 0 0 0 transparent; } .sti .swatches.open > [data-sw]::before { content: none; }
}
@media (max-height: 480px) and (orientation: landscape) and (prefers-reduced-motion: reduce) { .sti .swatches .sw-tog .ico { transition: none; } }
.sti .qty button { flex: 1; border: 0; border-radius: 8px; padding: 3px 0; font: 600 12px var(--gw-font); color: var(--dim); background: rgba(255, 255, 255, .06); }
.sti .qty button[aria-pressed="true"] { color: #1b1b24; background: var(--honey); }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 6px #ff4d5e; animation: typ 1.2s ease-in-out infinite; }
/* H4: the inventory's folders (Habbo's): one filter at a time */
.inv-fold { border-radius: 10px; background: rgba(0, 0, 0, .18); margin: 0 0 6px; }
.inv-fold summary { cursor: pointer; padding: 7px 10px; font: 600 13px var(--gw-font); color: var(--honey); list-style: none; display: flex; justify-content: space-between; }
.inv-fold summary::after { content: '▾'; opacity: .7; } .inv-fold[open] summary::after { content: '▴'; }
.inv-fold summary::-webkit-details-marker { display: none; }
.inv-fold .inv-f { display: block; width: 100%; text-align: left; }
.inv-sort { display: flex; align-items: center; gap: 6px; margin: 6px 0; font: 600 12px var(--gw-font); color: var(--dim); }
.inv-sort select { flex: 1; }
.inv-pick { display: none; width: 100%; margin: 0 0 4px; }
@media (max-width: 680px) { .inv-fold { display: none; } .inv-pick { display: block; } }
/* H5: the marketplace */
.mk-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.mk-top .inv-search { flex: 1; min-width: 140px; margin: 0; }
.sti.mk small { display: block; color: var(--dim); font-size: 12px; margin: -4px 0 4px; }
.mk-sell { display: grid; gap: 6px; width: 100%; }
.mk-sell input { width: 100%; }
/* H6: Mo's showcase and the series shelf */
.sti.showcase { grid-column: span 2; box-shadow: 0 0 0 2px var(--rc); } @supports (color: color-mix(in srgb, red 50%, blue)) { .sti.showcase { box-shadow: 0 0 0 2px var(--rc), 0 0 28px color-mix(in srgb, var(--rc) 45%, transparent); } }
.sti.showcase .sti-stage { min-height: 230px; background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .12), transparent 70%); } @supports (color: color-mix(in srgb, red 50%, blue)) { .sti.showcase .sti-stage { background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--rc) 35%, transparent), transparent 70%); } }
.sti .countdown { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: var(--honey); font: 600 12px var(--gw-font); font-style: normal; }
@media (max-width: 680px) { .sti.showcase { grid-column: auto; } }
.series-dots .dot { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 62px; height: auto; border: 0; background: none; opacity: 1; box-shadow: none; }
.series-dots .dot i { width: 30px; height: 30px; border-radius: 50%; background: var(--c); opacity: .45; border: 2px solid rgba(255, 255, 255, .35); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12); }
.series-dots .dot.own i { opacity: 1; border-color: var(--gold); box-shadow: 0 0 8px var(--c); } .series-dots .dot.live i { opacity: .9; border-color: #8ff0a4; animation: rank-sparkle 1.6s infinite; }
.series-dots .dot small { font-size: 10.5px; line-height: 1.15; text-align: center; color: var(--dim); }
.series-dots .dot.own, .series-dots .dot.live { box-shadow: none; border: 0; animation: none; }
/* H7: Barnaby's cart */
.trader-pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 0 8px; }   /* polish r7: his pool is one row until See All */
.trader-pool.few:not(.all) { grid-template-rows: auto; grid-auto-rows: 0; overflow: hidden; }
.trader-pool span { display: flex; flex-direction: column; align-items: center; min-width: 0; padding-bottom: 8px; overflow: hidden; }
.trader-pool small { font-size: 10.5px; text-align: center; color: var(--dim); }
.trader-pool .e { width: 64px; height: 64px; }
/* H8: every rarity shines its own way (shop cards, Mo's cards, bag tiles):
   common plain · ripe a soft glow · juicy a shine sweep (above) · overripe a pulse and sparkles · fermented gold foil and drifting motes */
@property --foil { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.sti.r-ripe .sti-stage { box-shadow: inset 0 0 22px rgba(127, 214, 123, .35); } @supports (color: color-mix(in srgb, red 50%, blue)) { .sti.r-ripe .sti-stage { box-shadow: inset 0 0 22px color-mix(in srgb, var(--rc) 40%, transparent); } }
.sti.r-overripe { animation: rc-pulse 2.8s ease-in-out infinite; }
@keyframes rc-pulse { 50% { box-shadow: 0 0 0 1px var(--rc), 0 0 22px var(--rc); } } @supports (color: color-mix(in srgb, red 50%, blue)) { @keyframes rc-pulse { 50% { box-shadow: 0 0 0 1px var(--rc), 0 0 22px color-mix(in srgb, var(--rc) 55%, transparent); } } }
.sti.r-overripe::after, .sti.r-fermented::after { content: ""; position: absolute; inset: 0 0 auto; height: 140px; pointer-events: none; z-index: 3; border-radius: 12px 12px 0 0;
  background-image: radial-gradient(2px 2px at 18% 30%, #fff, transparent), radial-gradient(2px 2px at 76% 22%, #fff, transparent), radial-gradient(1.5px 1.5px at 60% 70%, #fff, transparent), radial-gradient(2px 2px at 32% 78%, #fff, transparent), radial-gradient(1.5px 1.5px at 88% 60%, #fff, transparent);
  animation: twinkle 1.9s ease-in-out infinite alternate; }
.sti.r-fermented::after { background-image: radial-gradient(3px 3px at 20% 80%, var(--honey), transparent), radial-gradient(2px 2px at 70% 85%, #fff3c0, transparent), radial-gradient(2.5px 2.5px at 45% 90%, #ffd23c, transparent), radial-gradient(2px 2px at 85% 75%, var(--honey), transparent);
  animation: motes 3.6s linear infinite; }
@keyframes twinkle { from { opacity: .15; } to { opacity: 1; } }
@keyframes motes { from { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } to { transform: translateY(-110px); opacity: 0; } }
.sti.r-fermented { border: 2px solid transparent; background: linear-gradient(180deg, #2a2440, #1e1a30) padding-box, conic-gradient(from var(--foil), #ffd86a, #fff6c8, #b8862a, #ffe9a0, #ffd86a) border-box; animation: foil 4s linear infinite; }
@keyframes foil { to { --foil: 360deg; } }
/* bag tiles: a hint of the same */
/* I19: the bag's detail panel shines in its rarity too */
.bag-detail[class*=" r-"] .big { position: relative; border-radius: 12px; box-shadow: inset 0 0 26px rgba(255, 255, 255, .12); overflow: hidden; } @supports (color: color-mix(in srgb, red 50%, blue)) { .bag-detail[class*=" r-"] .big { box-shadow: inset 0 0 26px color-mix(in srgb, var(--rc) 35%, transparent); } }
.bag-detail.r-juicy .big::after, .bag-detail.r-overripe .big::after, .bag-detail.r-fermented .big::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .18) 48%, transparent 58%) 0 0 / 250% 100%; animation: shimmer 3.2s ease-in-out infinite; } @supports (color: color-mix(in srgb, red 50%, blue)) { .bag-detail.r-juicy .big::after, .bag-detail.r-overripe .big::after, .bag-detail.r-fermented .big::after { background: linear-gradient(105deg, transparent 38%, color-mix(in srgb, var(--rc) 30%, transparent) 48%, transparent 58%) 0 0 / 250% 100%; } }
body.no-fx .bag-detail .big::after { animation: none; }
@media (prefers-reduced-motion: reduce) { .bag-detail .big::after { animation: none; } }
.wd-tile.r-juicy { box-shadow: inset 0 0 0 1px var(--rc); } @supports (color: color-mix(in srgb, red 50%, blue)) { .wd-tile.r-juicy { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 45%, transparent); } }
.wd-tile.r-overripe { box-shadow: inset 0 0 0 1px var(--rc); } @supports (color: color-mix(in srgb, red 50%, blue)) { .wd-tile.r-overripe { box-shadow: inset 0 0 0 1px var(--rc), 0 0 10px color-mix(in srgb, var(--rc) 40%, transparent); } }
.wd-tile.r-fermented { border: 1px solid transparent; background: linear-gradient(#24223a, #1c1b30) padding-box, conic-gradient(from var(--foil), #ffd86a, #fff6c8, #b8862a, #ffd86a) border-box; animation: foil 4s linear infinite; }
@media (prefers-reduced-motion: reduce) { .sti.r-overripe, .sti.r-fermented, .sti.r-overripe::after, .sti.r-fermented::after, .wd-tile.r-fermented { animation: none; } }
.sti.flash::before { content: ""; position: absolute; inset: -6px; z-index: 4; pointer-events: none; border-radius: 16px; background: radial-gradient(circle at 50% 35%, #fff, transparent 65%); animation: buyflash .8s ease-out forwards; } @supports (color: color-mix(in srgb, red 50%, blue)) { .sti.flash::before { background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rc) 70%, #fff), transparent 65%); } }
@keyframes buyflash { from { opacity: .95; transform: scale(.9); } to { opacity: 0; transform: scale(1.15); } }
/* H9: the editor shows it's the editor: a banner, a soft veil round the edges (the room stays bright in the middle) */
#editBanner { position: fixed; top: calc(70px + var(--sa-t)); left: 50%; transform: translateX(-50%); z-index: 15; display: flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 12px;
  border: 1px solid var(--gold-line); background: rgba(20, 18, 34, .82); color: var(--cream); font: 600 13.5px var(--gw-font); pointer-events: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
#editBanner b { color: var(--honey); } #editBanner .ico { width: 16px; height: 16px; }
#editBanner[hidden] { display: none; }
body.editing #app::after { content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 70% 62% at 50% 46%, transparent 55%, rgba(8, 6, 20, .5)); }
.edit-flies { display: flex; align-items: center; gap: 5px; margin-left: auto; margin-right: 8px; font: 600 12.5px var(--gw-font); color: var(--dim); white-space: nowrap; }
#tray h2 small { display: none; }
@media (max-width: 680px) { #editBanner { display: none; } #tray h2 small { display: block; margin-top: 3px; font: 600 12px/1.2 var(--gw-font); letter-spacing: 0; text-transform: none; color: var(--cream); } .edit-flies { margin-left: 0; } }   /* (zh: a phone names the room in the tray's header: a banner up top covered the Rooms button and the fly card) */
@media (max-width: 480px) { #tray header, #tray .hint { padding-inline: 14px; } #tray .body { padding: 8px 14px 12px; } #tray.placing .hint { padding-inline: 14px; } }   /* (zh: side padding inside the tray on a phone) */
/* List 5 stage 4 (Iris): a phone decorates under ONE header row: the four tabs as pictures (the open one says its name), Hide Flies as an eye
   (crossed out while they're hidden), Done as a tick; no title; the how-to line goes once you've placed something; Get More is the last tile */
#tray .tabs .ico, #tray .ef-eye, #editDone .ico, #tray .dec-more { display: none; }
@media (max-width: 680px), (max-height: 480px) and (orientation: landscape) {
  #tray h2 { display: none; }
  #tray header { flex-wrap: nowrap; gap: 6px; padding: 6px 10px 6px 8px; }
  #tray .tabs { flex: 1; flex-wrap: nowrap; min-width: 0; gap: 2px; }
  #tray .tabs button { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: calc(40px / var(--ui, 1)); min-height: calc(42px / var(--ui, 1)); padding: 0 8px; border-radius: 10px 10px 0 0; white-space: nowrap; }
  #tray .tabs button .ico { display: block; width: 22px; height: 22px; flex: none; margin: 0; }
  #tray .tabs button:not([aria-pressed="true"]) .tl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #tray .edit-flies { position: relative; display: grid; place-items: center; flex: none; width: calc(40px / var(--ui, 1)); height: calc(40px / var(--ui, 1)); margin: 0; padding: 0; box-sizing: border-box; border-radius: 50%; border: 2px solid #000; background: linear-gradient(#4a476a, #35334f); box-shadow: 0 3px 0 #15142a, inset 0 1px 0 rgba(255, 255, 255, .18); cursor: pointer; }
  #tray .edit-flies .tog, #tray .edit-flies .ef-w { display: none; }
  #tray .edit-flies input { position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); margin: 0; opacity: 0; cursor: pointer; }
  #tray .edit-flies .ef-eye { display: block; width: 22px; height: 22px; pointer-events: none; }
  #tray .edit-flies:has(input:checked)::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 3px; margin: -1.5px 0 0 -13px; border-radius: 2px; background: var(--honey); box-shadow: 0 0 0 1.5px #241a10; transform: rotate(-45deg); pointer-events: none; }
  #tray .edit-flies:has(input:focus-visible) { outline: 2px solid var(--honey); outline-offset: 2px; }
  body:not(.no-fx) #tray .edit-flies:active { transform: scale(.92); }
  #editDone { display: grid; place-items: center; flex: none; width: calc(40px / var(--ui, 1)); height: calc(40px / var(--ui, 1)); min-height: 0; padding: 0; border-radius: 50%; }
  #editDone .ico { display: block; width: 22px; height: 22px; margin: 0; } #editDone .dn-w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #tray .hint.tip, #tray .dec-more-btn, #tray .dec-none { display: none; }
  #tray .edit-acts:not(:has(> :not(.dec-more-btn))) { display: none; }
  #tray .dec-more { display: flex; justify-content: center; border-style: dashed; border-color: var(--gold-line); color: var(--honey); }
  #tray .dec-more .e { width: 46px; height: 46px; padding: 6px; box-sizing: border-box; }
  #tray .edit-acts .gw-btn.sm, #tray .edit-pick .gw-btn.sm, #tray .pl-btns .gw-btn.sm { min-height: calc(40px / var(--ui, 1)); }
}
/* (after the rarity rules: the selected tile keeps its ring) */
.wd-tile.sel, .wd-tile.sel.r-juicy, .wd-tile.sel.r-overripe { border-color: var(--honey); box-shadow: 0 0 0 2px var(--honey), 0 0 12px rgba(246, 194, 74, .35); }
.series-dots .dot.gone { opacity: 1; } .series-dots .dot.gone i { opacity: .35; filter: grayscale(.7); }
@media (prefers-reduced-motion: reduce) { .sti.flash::before, .series-dots .dot.live i { animation: none; } }

/* ---- I1: the Shop's front page (a turning hero, Last Chance, Hot This Week) and the wishlist hearts ---- */
.hero { position: relative; margin-bottom: 12px; }
.hero-slide { display: grid; grid-template-columns: minmax(0, 1fr) 40%; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; min-height: 200px; padding: 18px 22px 30px; border: 1px solid var(--hair); border-radius: 16px; color: var(--cream); text-align: left; cursor: pointer;
  background: radial-gradient(circle at 75% 50%, rgba(255, 214, 106, .22), transparent 60%), linear-gradient(135deg, #2b2457, #141532); animation: heroIn .45s ease; }
.hero-slide[hidden] { display: none; }
.hero-slide img { grid-column: 2; grid-row: 1; width: 100%; max-height: 190px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); }
.hero-slide .spin { grid-column: 2; grid-row: 1; justify-self: center; width: min(100%, 210px); height: auto; aspect-ratio: 1; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); }   /* I19: the banner's piece turns; K1: square, never stretched */
.hero-slide span { grid-column: 1; grid-row: 1; display: grid; gap: 6px; min-width: 0; }
.hero-slide i { font: 600 12px var(--gw-font); font-style: normal; letter-spacing: 1.5px; text-transform: uppercase; color: var(--honey); }
.hero-slide b { font: 400 clamp(22px, 3.4vw, 34px)/1.05 var(--gw-title); letter-spacing: 1px; text-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.hero-slide small { max-width: 42ch; font-size: 13.5px; opacity: .9; } .hero-slide small b, .trader-off .hero-txt small b { display: inline; font: inherit; letter-spacing: 0; text-shadow: none; color: var(--honey); }   /* (polish r3: a bold word in the line stays in the line: Barnaby's "Next: Sunday") */
.hero-slide em { justify-self: start; margin-top: 6px; padding: 6px 14px; border-radius: 10px; background: linear-gradient(#8ae85a, #3f9a2a); color: #10240a; font: 400 14px var(--gw-title); font-style: normal; letter-spacing: .5px; box-shadow: 0 3px 0 #2a6a1a; }
.hero-slide:hover em { filter: brightness(1.1); }
.hero-slide.rare { background: radial-gradient(circle at 75% 50%, rgba(255, 120, 200, .3), transparent 60%), linear-gradient(135deg, #4a1f5a, #1a1232); }
.hero-slide.trader { background: radial-gradient(circle at 75% 50%, rgba(255, 190, 90, .3), transparent 60%), linear-gradient(135deg, #4a3020, #1a1410); }
.hero-slide.club { background: radial-gradient(circle at 75% 50%, rgba(255, 207, 58, .3), transparent 60%), linear-gradient(135deg, #3a1a5a, #160d26); }
.hero-dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 10px; display: flex; gap: 5px; }   /* (K1: centred under the slide, out of the text's way) */
.hero-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 5px; background: rgba(255, 255, 255, .3); cursor: pointer; transition: width .2s; }
.hero-dots button[aria-pressed="true"] { width: 18px; background-color: var(--honey); }   /* (N4: not the shorthand: it reset the phone rule's padding-box clip and painted the tap border) */
@keyframes heroIn { from { opacity: 0; transform: translateX(14px); } }
.lc-row { display: flex; gap: 8px; margin-bottom: 12px; padding-bottom: 6px; overflow-x: auto; scrollbar-width: thin; }
.lc { flex: none; display: grid; justify-items: center; gap: 3px; width: 132px; padding: 8px; border: 1px solid var(--rc); border-radius: 12px; background: rgba(255, 255, 255, .04); color: var(--cream); text-align: center; cursor: pointer; } @supports (color: color-mix(in srgb, red 50%, blue)) { .lc { border-color: color-mix(in srgb, var(--rc) 55%, transparent); } }
.lc:hover { background: rgba(255, 255, 255, .08); }
.lc:only-of-type { flex: 0 1 420px; width: auto; grid-template-columns: 84px minmax(0, 1fr); grid-template-rows: auto auto; justify-items: start; align-content: center; column-gap: 14px; padding: 10px 16px 10px 10px; text-align: left; }   /* O11 r2: one card alone is a wide one, not a lonely tile in an empty row */
.lc:only-of-type img { grid-row: 1 / 3; } .lc:only-of-type b { align-self: end; font-size: 15px; } .lc:only-of-type small { align-self: start; font-size: 12.5px; }
.lc img { width: 84px; height: 84px; object-fit: contain; }
.lc b { font: 600 12.5px/1.15 var(--gw-font); }
.lc small { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--honey); white-space: nowrap; }
.lc small .ico, .gw-sec .ico { width: 13px; height: 13px; vertical-align: -2px; }
.gw-sec small { margin-left: 6px; font: 500 11px var(--gw-font); letter-spacing: 0; text-transform: none; opacity: .6; }
.chip.hot { display: inline-flex; align-items: center; gap: 2px; color: #ff8a3c; }
.chip.hot .ico { width: 11px; height: 11px; }
.wish-b { position: absolute; top: 8px; right: 8px; z-index: 3; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--hair); border-radius: 50%; background: rgba(20, 18, 34, .7); color: rgba(255, 255, 255, .55); cursor: pointer; }
.wish-b .ico { width: 15px; height: 15px; }
.wish-b:hover { color: #ff8fb1; }
.wish-b.on { border-color: #ff5a8a; background: rgba(60, 10, 30, .75); color: #ff5a8a; }
.bag-detail .big { position: relative; }
@media (max-width: 680px) { .hero-slide { grid-template-columns: minmax(0, 1fr) 36%; min-height: 160px; padding: 14px 14px 28px; } .lc { width: 112px; } .lc img { width: 70px; height: 70px; } }

/* ---- I2: The Fruit Times (a newspaper: cream paper, ink, columns) ---- */
.times { padding: 14px 16px 18px; border-radius: 12px; background: #f4ecd8 radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .5), transparent 60%); color: #2a2833; box-shadow: inset 0 0 40px rgba(120, 90, 40, .18); }
.times-head { display: grid; justify-items: center; gap: 2px; padding-bottom: 8px; border-bottom: 3px double #2a2833; text-align: center; }
.times-head b { font: 400 clamp(30px, 6vw, 52px)/1 var(--gw-title); letter-spacing: 2px; text-transform: uppercase; }
.times-head.sec b { font-size: clamp(24px, 4vw, 34px); letter-spacing: 1.5px; }   /* (polish r7: the inside pages: the page's name over the paper's) */
.times-head small { font: 600 11.5px var(--gw-font); opacity: .75; }
.times .times-hl { margin: 8px 0 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(42, 40, 51, .35); font: 800 italic clamp(15px, 2.4vw, 20px)/1.15 Georgia, serif; text-align: center; }
/* polish r7: every piece of the paper is a section with one heading (a rule over it, Lilita capitals); New / Today / On Now are ink stamps */
.times section { break-inside: avoid; margin-bottom: 12px; padding-top: 6px; border-top: 2px solid #2a2833; }
.times h3 { margin: 0 0 6px; font: 400 18px/1.15 var(--gw-title); letter-spacing: .5px; text-transform: uppercase; }
.times h4 { margin: 0 0 4px; font: 800 17px/1.2 Georgia, serif; }
.t-stamp { display: inline-block; margin-left: 8px; padding: 1px 6px; border: 1.5px solid currentColor; border-radius: 4px; color: #c4235a; font: 700 10.5px/1.3 var(--gw-font); font-style: normal; letter-spacing: 1px; vertical-align: 3px; transform: rotate(-4deg); }
.tl-in { display: grid; grid-template-columns: minmax(0, 30%) minmax(0, 1fr); gap: 14px; align-items: center; }
.tl-in > button { padding: 0; border: 0; background: radial-gradient(circle, rgba(255, 207, 58, .35), transparent 70%); cursor: pointer; }
.tl-in img { width: 100%; max-height: 170px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .3)); }
.times-lead h2 { margin: 0 0 6px; font: 400 clamp(21px, 4vw, 34px)/1.05 var(--gw-title); }
.times p { margin: 0 0 8px; font: 500 13px/1.35 Georgia, serif; }
.times-cols { columns: 2 260px; column-gap: 18px; margin-top: 4px; column-rule: 1px solid rgba(42, 40, 51, .25); }
.times-cols ol, .times-cols ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 4px; font: 600 13px Georgia, serif; }
.times-cols li { display: flex; align-items: center; gap: 8px; }
.times-cols li img { width: 40px; height: 40px; object-fit: contain; }
.times-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.times-row span { display: grid; justify-items: center; width: 74px; text-align: center; }
.times-row img { width: 58px; height: 58px; object-fit: contain; }
.times-row small { font: 600 11px/1.15 var(--gw-font); }
.times-silhouette { display: grid; place-items: center; height: 92px; margin-bottom: 6px; border-radius: 10px; background: repeating-linear-gradient(45deg, rgba(42, 40, 51, .06) 0 8px, transparent 8px 16px); }
.times-silhouette img.sil { height: 82px; filter: brightness(0) opacity(.75); }
.times-wait { opacity: .6; }
.times .gw-btn { margin-top: 2px; }
@media (max-width: 680px) { .tl-in { grid-template-columns: 34% minmax(0, 1fr); gap: 10px; } .tl-in img { max-height: 130px; } .times-lead h2 { font-size: 21px; } }

/* ---- I3: collections (the inventory's Collections tab, the set chip on shop cards) ---- */
.chip.set { display: inline-flex; align-items: center; gap: 2px; color: #ffd86a; }
.chip.set .ico { width: 11px; height: 11px; }
.sets { display: grid; gap: 10px; }
.sets > .set { padding: 10px; border: 1px solid var(--hair); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.sets > .set.ready { border-color: #7fe04a; background: rgba(127, 224, 74, .08); box-shadow: 0 0 0 1px rgba(127, 224, 74, .25), 0 0 18px rgba(127, 224, 74, .15); }
.sets > .set.claimed { border-color: rgba(255, 207, 58, .45); }
.set-head { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.set-gold img { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(255, 207, 58, .55)); }
.set-head b { font: 400 17px var(--gw-title); letter-spacing: .5px; }
.set-head small { display: block; font-size: 12px; opacity: .8; }
.set-pieces { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.set-pieces button { width: 44px; height: 44px; padding: 2px; border: 1px solid var(--hair); border-radius: 8px; background: rgba(255, 255, 255, .05); cursor: default; }
.set-pieces img { width: 100%; height: 100%; object-fit: contain; }
.set-pieces .miss { cursor: pointer; } .set-pieces .miss img { filter: grayscale(1) brightness(.45); opacity: .7; }
.set-pieces .miss:hover img { filter: grayscale(.4) brightness(.8); }

/* ---- I4: quest chains (Tasks & Quests → Quests) ---- */
.dk.tierup .well { animation: tierUp .9s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tierUp { 0% { transform: scale(1); } 30% { transform: scale(1.35) rotate(-6deg); box-shadow: 0 0 22px rgba(255, 211, 74, .8); } 100% { transform: none; } }
.task .steps { position: relative; display: flex; justify-content: space-between; max-width: 150px; margin-top: 8px; }   /* I19: the chain as a little map: five stops on a path */
.task .steps::before { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .25) 0 4px, transparent 4px 7px); }
.task .steps i { position: relative; width: 12px; height: 12px; border-radius: 50%; background: #2a2840; border: 2px solid rgba(255, 255, 255, .25); box-sizing: border-box; }
.task .steps i.on { background: #ffcf3a; border-color: #ffcf3a; }
.task .steps i.now { border-color: #ffcf3a; animation: dotPulseR 1.6s ease-in-out infinite; }
.one-left { font-style: normal; font: 700 11px var(--gw-font); color: #1d1606; background: var(--honey); border-radius: 8px; padding: 1px 6px; margin-left: 4px; animation: dotPulseR 1.8s ease-in-out infinite; }
body.no-fx .gw-bar.shine > i::after, body.no-fx .one-left, body.no-fx .task .steps i.now { animation: none; }
@media (prefers-reduced-motion: reduce) { .gw-bar.shine > i::after, .one-left, .task .steps i.now { animation: none; } }
.task .qt { display: grid; justify-items: center; gap: 4px; }
.task .qt img { width: 58px; height: 58px; object-fit: contain; }
.task:not(.claimed) .qt img { filter: drop-shadow(0 0 6px rgba(255, 207, 58, .45)); }

/* ---- I5: the Fly Pass ---- */
.pass-xp { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; margin: 10px 2px; } .pass-xp > .gw-bar { grid-column: 1 / -1; } .pass-xp small { font-size: 12px; opacity: .8; } .pass-xp > .gw-btn { min-height: 36px; }   /* (polish r10: Claim All beside the line under the bar) */
.pass-rows { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 6px; }
.pass-labels { display: grid; grid-template-rows: 22px 1fr 1fr; gap: 6px; } .pass-labels span { display: grid; place-items: center; align-content: center; gap: 2px; align-self: stretch; border-radius: 10px; background: rgba(255, 255, 255, .05); font: 400 13px var(--gw-title); text-align: center; }
.pass-labels span:first-child { grid-row: 2; } .pass-labels .club { grid-row: 3; }
.pass-labels .club { color: #ffd86a; background: rgba(184, 138, 232, .15); } .pass-labels .ico { width: 13px; height: 13px; }
.pass-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scroll-behavior: smooth; scrollbar-width: thin; }
.pcol { flex: none; display: grid; grid-template-rows: 22px 118px 118px; gap: 6px; width: 104px; }
.pcol em { display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .06); font: 400 13px var(--gw-title); font-style: normal; }
.pcol.now em { background: #ffd86a; color: #2a1a00; }
.pt { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; padding: 6px; border: 1px solid var(--hair); border-radius: 10px; background: rgba(255, 255, 255, .04); text-align: center; }
.pt.club { background: rgba(184, 138, 232, .1); border-color: rgba(184, 138, 232, .35); }
.pt.future { opacity: .5; } .pcol.next .pt.future { opacity: 1; border-style: dashed; border-color: var(--gold); } .pt.locked { filter: saturate(.35); } .pt.ready { border-color: #7fe04a; box-shadow: 0 0 12px rgba(127, 224, 74, .25); } .pt.got { opacity: .65; }
.pt img { width: 52px; height: 52px; object-fit: contain; }
.pt small { font: 600 10.5px/1.15 var(--gw-font); }
.pt .pr-cur { display: inline-flex; align-items: center; gap: 3px; font-size: 18px; }
.pt .chatb { position: static; transform: none; font-size: 11px; padding: 4px 8px; }
.pt .pt-ok, .pt .pt-lock { position: absolute; top: 4px; right: 4px; } .pt .pt-club { color: #d4b3f5; } .pt .pt-ok .ico { width: 14px; height: 14px; color: #7fe04a; } .pt .pt-lock .ico { width: 12px; height: 12px; opacity: .7; }
.bs-glow { --bs: linear-gradient(#d8fbff, #8ae0ff); --bs-name: #0a4a6a; --bs-edge: #3ac8ff; box-shadow: 0 0 14px rgba(90, 232, 255, .55); }
.bs-frost { --bs: linear-gradient(#ffffff, #cfeaff); --bs-name: #1a4a7a; --bs-edge: #9ad4ff; box-shadow: 0 0 12px rgba(180, 225, 255, .6); }   /* I18: Frost & Cosy */
.bs-knit { --bs: repeating-linear-gradient(90deg, #f6efe4 0 6px, #f0e2d0 6px 9px); --bs-name: #8a1f2a; --bs-edge: #c4353d; }
/* J10: Fly Pass seasons 3 to 6 */
.bs-snowy { --bs: radial-gradient(circle at 20% 30%, #fff 0 2px, transparent 3px) 0 0/14px 12px, linear-gradient(#f4f8ff, #dbe8f6); --bs-name: #2a4a7a; --bs-edge: #b8d4f0; }
.bs-cocoa { --bs: linear-gradient(#f6e6d0, #e4c8a4); --bs-name: #5a2e14; --bs-edge: #8a5a3a; }
.bs-deep { --bs: linear-gradient(#bfe8f6, #7fc4e0); --bs-name: #0e3a5a; --bs-edge: #2f7aa0; }
.bs-pearl { --bs: linear-gradient(135deg, #fffaf4, #f0e6f6 50%, #e6f4f6); --bs-name: #5a4a6a; --bs-edge: #d8c8e0; box-shadow: 0 0 10px rgba(240, 220, 255, .5); }
.bs-sweet { --bs: repeating-linear-gradient(45deg, #ffe4ee 0 8px, #fff4f8 8px 16px); --bs-name: #a8285a; --bs-edge: #ea6fb4; }
.bs-choc { --bs: linear-gradient(#7a4a2a, #5a321a); --bs-name: #ffd9a0; --bs-edge: #3a1e0e; color: #fff4e4; }
.bs-petal { --bs: linear-gradient(#fff4f8, #ffe0ec); --bs-name: #6a8a2a; --bs-edge: #ffb3c7; }
.bs-drizzle { --bs: linear-gradient(#e8f0f6, #cfdde8); --bs-name: #2a4d8f; --bs-edge: #8aa8c8; }
.bs-lantern { --bs: linear-gradient(#ffd0b0, #ff8a5a); --bs-name: #7a1a10; --bs-edge: #e8474f; box-shadow: 0 0 12px rgba(255, 138, 80, .5); }
.hero-slide.pass { background: radial-gradient(circle at 75% 50%, rgba(122, 232, 255, .3), transparent 60%), linear-gradient(135deg, #1a2456, #0d0c26); }

/* ---- I6: events (the Fruit Festival) ---- */
.hero-slide.event { background: radial-gradient(circle at 75% 50%, rgba(255, 138, 200, .3), transparent 60%), linear-gradient(135deg, #5a1f3a, #1a1232); }
.tok { display: inline-flex; align-items: center; gap: 3px; color: #ffb3d6; } .tok .ico { width: 1em; height: 1em; color: #ff8ac0; }
.ev-gift { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.ev-gift .ico { width: 15px; height: 15px; vertical-align: -2px; } .ev-gift > span:first-child { flex: 1 1 auto; }
/* AC3: a character event's own part (app/events.js extra): show times, the Community Jar, hidden ribbons, Jazz Night, the Harvest Moon board */
.ev-extra { display: grid; gap: 8px; margin: 0 0 10px; } .ev-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 12px; border: 1px solid var(--hair); border-radius: 12px; background: rgba(255, 255, 255, .04); }
.ev-row > .ico { width: 20px; height: 20px; } .ev-row b { display: block; font: 600 13px var(--gw-font); } .ev-row small { display: block; font-size: 11.5px; opacity: .8; } .ev-row .gw-bar { margin-top: 5px; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; } .ev-chips .chip.got { background: rgba(127, 224, 74, .2); border: 1px solid #7fe04a; color: #fff; } .ev-chips .ico { width: 11px; height: 11px; vertical-align: -1px; margin-right: 2px; }
.ev-board { margin: 0; padding: 4px 12px 4px 34px; border-radius: 12px; background: rgba(0, 0, 0, .18); font-size: 12.5px; } .ev-board li { padding: 3px 0; } .ev-board li span { float: right; font-weight: 700; color: #c8d4ff; } .ev-board li.me b { color: #ffd34a; }
.ev-me { display: block; text-align: right; font-size: 11.5px; opacity: .8; }
@media (max-width: 520px) { .ev-row { grid-template-columns: 20px minmax(0, 1fr); } .ev-row > button, .ev-row > .chip { grid-column: 2; justify-self: start; } }
.ev-quests { display: grid; }
.times .ev { border-top-color: #c4235a; } .times .ev h3 { color: #c4235a; }

/* I15: the reveal (a present unwrapped, a special bought) and the new-badge card */
.reveal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .1), rgba(8, 6, 20, .55) 60%); animation: gwFade .2s ease-out; cursor: pointer; } @supports (color: color-mix(in srgb, red 50%, blue)) { .reveal { background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--rc) 28%, transparent), rgba(8, 6, 20, .55) 60%); } }
.reveal > * { grid-area: 1 / 1; }
.rv-box { position: relative; width: 120px; height: 110px; animation: rvShake .5s ease-in-out 2; }
.rv-body, .rv-lid { position: absolute; left: 0; right: 0; border-radius: 10px; background: linear-gradient(90deg, transparent 43%, #ffd34a 43% 57%, transparent 57%), linear-gradient(135deg, #e8474f, #b8243a); box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.rv-body { top: 30px; bottom: 0; animation: rvBody .5s ease-in 1s forwards; }
.rv-lid { top: 8px; height: 30px; left: -8px; right: -8px; animation: rvLid .55s cubic-bezier(.3, 1.5, .6, 1) .95s forwards; }
.rv-item { width: 190px; height: 190px; opacity: 0; filter: drop-shadow(0 0 22px var(--rc)); animation: rvItem .9s cubic-bezier(.2, 1.4, .4, 1) 1.05s forwards; }
.rv-t { align-self: end; margin-bottom: 26dvh; font: 400 24px var(--gw-title); color: #fff6dc; text-shadow: 0 2px 0 rgba(0, 0, 0, .5); opacity: 0; animation: gwFade .3s ease-out 1.5s forwards; }
@keyframes rvShake { 25% { transform: rotate(-7deg); } 75% { transform: rotate(7deg); } }
@keyframes rvLid { to { transform: translate(40px, -120px) rotate(35deg); opacity: 0; } }
@keyframes rvBody { to { transform: translateY(50px) scale(.8); opacity: 0; } }
@keyframes rvItem { from { opacity: 0; transform: scale(.2) rotate(-200deg); } to { opacity: 1; transform: none; } }
.bdg-flip { position: fixed; left: 50%; top: 22%; z-index: 60; transform: translateX(-50%); perspective: 600px; cursor: pointer; }
.bf-card { display: grid; justify-items: center; gap: 4px; padding: 16px 26px; border-radius: 16px; background: linear-gradient(180deg, #2a2440, #1e1a30); border: 2px solid var(--gold); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: bfFlip .7s cubic-bezier(.3, 1.3, .5, 1), gwFade .4s ease-in 2.8s reverse forwards; }
.bf-card .bdg { width: 84px; height: 84px; } .bf-card small { color: var(--dim); font-size: 12px; } .bf-card b { font: 400 20px var(--gw-title); color: var(--honey); }
@keyframes bfFlip { from { transform: rotateY(-180deg) scale(.6); opacity: 0; } 60% { opacity: 1; } to { transform: none; } }

/* J2a: the hatch screen's kinds of fly */
.hatch-types { margin: 6px 0 8px; } .hatch-types > b { display: block; font: 400 14px var(--gw-title); letter-spacing: .5px; color: var(--honey); margin-bottom: 4px; }
.ht-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 80px)); justify-content: center; gap: 6px; }
.ht-grid button { position: relative; display: grid; justify-items: center; gap: 1px; padding: 3px 2px 4px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); cursor: pointer; }
.ht-grid button[aria-pressed="true"] { border-color: var(--gold); background: rgba(246, 194, 74, .14); box-shadow: 0 0 0 1px var(--gold) inset; }
.ht-grid img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.ht-grid small { display: flex; align-items: center; justify-content: center; min-height: 2.2em; font-size: 10px; line-height: 1.1; color: var(--dim); text-align: center; }   /* (N4: every label a 2-line box, so one- and two-line names line up) */

/* J2c: My Looks: your own saved looks */
.lk-mine { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.lk-look { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.lk-look img { width: 92px; height: 92px; object-fit: contain; }
.lk-look b { font: 400 14px var(--gw-title); letter-spacing: .4px; text-align: center; overflow-wrap: anywhere; }
.lk-look .btnrow { display: flex; gap: 4px; justify-content: center; }
.lk-menu[hidden] { display: none; }
.lk-menu { position: absolute; left: 4px; right: 4px; bottom: 40px; display: grid; gap: 4px; padding: 6px; border-radius: 10px; background: var(--glass); border: 1px solid var(--hair); z-index: 2; }
.lk-new { border-style: dashed; border-color: rgba(246, 194, 74, .5); justify-content: center; }
.lk-new .lk-plus { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(246, 194, 74, .12); color: var(--gold); }
.lk-new .lk-plus .ico { width: 26px; height: 26px; }
.lk-new input { width: 100%; box-sizing: border-box; font-size: 13px; padding: 6px 8px; }
/* ---- J1: polish (one empty state, one load error, one field, one bar: see above) ---- */
.chip.gold { color: #ffd86a; } .chip.prem { color: #ffad2e; }
svg.ico.after { margin-left: 3px; } .gw-btn svg.ico.after { margin: 0 0 0 4px; } .gw-btn svg.ico.only { margin: 0; }   /* a tick after a word; an icon-only button */
#pfp .mood svg.ico { width: 16px; height: 16px; vertical-align: 0; filter: none; }
.nav-table td:last-child .gw-btn + .gw-btn { margin-left: 6px; }   /* button pairs in a row (Open · Go, Yes · No) */
@media (max-width: 680px) {
  .nav-table td:last-child { white-space: normal; } .nav-table td:last-child .gw-btn { margin-block: 2px; }   /* long button rows wrap on a phone */
}
@media (max-width: 680px) and (max-height: 700px) {   /* short phones: in a room, panels go over the room tools (they only toggle panels) so the body keeps its height */
  body.in-room .gw-pan, body.in-room #pan-r, body.in-room #pan-i, body.stack.in-room #pan-l { bottom: calc(var(--dockH, 64px) + var(--laneH, 0px) + 14px); max-height: calc(var(--vh) - var(--dockH, 64px) - 130px); }
  body.in-room #pan-r { height: calc(var(--vh) - var(--dockH, 64px) - 130px); }
}
/* J8: the marketplace price chart */
.mk-histbtn { font-size: 12px; align-self: start; }
.mk-hist { width: 100%; }
.mk-chart { width: 100%; height: auto; display: block; background: var(--glass2, rgba(255,255,255,.04)); border-radius: 8px; }
.mk-chart polyline { fill: none; stroke: var(--honey); stroke-width: 2; stroke-linejoin: round; }
.mk-chart circle { fill: var(--gold, #f0c04a); }
/* Z3: the market & rares gate (a checklist), the unlock card, the marketplace's filters, intro, notices */
.gate-card { margin: 0 0 12px; padding: 10px 14px; border: 1.5px solid var(--gold-line); border-radius: 12px; background: linear-gradient(180deg, rgba(246, 194, 74, .12), rgba(0, 0, 0, .25)); color: var(--cream); font: 600 13.5px/1.4 var(--gw-font); }
.gate-card > b { display: flex; align-items: center; gap: 6px; color: var(--honey); font: 400 16px var(--gw-title); letter-spacing: .3px; }
.gate-card > b .ico { width: 18px; height: 18px; }
.gate-card ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; padding: 0; list-style: none; }
.gate-card li { display: flex; align-items: center; gap: 6px; }
.gate-card li > i { width: 14px; height: 14px; flex: none; border: 2px solid var(--dim); border-radius: 50%; }
.gate-card li .ico { width: 16px; height: 16px; color: var(--leaf); } .gate-card li.done span { color: var(--dim); }
.gate-card li small { color: var(--dim); font-weight: 600; } .gate-card .linkish { font-size: 12.5px; }
.gate-card > p { margin: 6px 0 0; color: var(--dim); font-size: 12.5px; }
.gate-card.small { margin: 8px 0; padding: 8px 10px; } .gate-card.small ul { flex-direction: column; gap: 4px; } .gate-card.small > b { font-size: 14.5px; }
.gw-btn.locked { gap: 4px; white-space: nowrap; } .gw-btn.locked .ico { width: 14px; height: 14px; }
.mk-intro { margin: 0 0 10px; padding: 2px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(116, 196, 255, .08); }   /* (polish r3: one line, folded; Got It inside) */
.mk-intro summary { display: flex; align-items: center; gap: 8px; min-height: 34px; cursor: pointer; list-style: none; font: 600 13px var(--gw-font); color: var(--honey); } .mk-intro summary::-webkit-details-marker { display: none; }
.mk-intro summary .ico { width: 18px; height: 18px; flex: none; } .mk-intro .mk-caret { margin-left: auto; width: 16px; height: 16px; transition: transform .15s; } .mk-intro[open] .mk-caret { transform: rotate(180deg); }
.mk-intro p { margin: 2px 0 8px; font: 600 13px/1.45 var(--gw-font); color: var(--cream); } .mk-intro [data-intro-x] { margin: 0 0 10px; }
.mk-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; }
.mk-filters .chips button { display: inline-flex; align-items: center; gap: 4px; } .mk-filters .chips .ico { width: 13px; height: 13px; }
.sti.mk .mk-serial { position: absolute; right: 8px; top: 8px; z-index: 3; padding: 2px 8px; border-radius: 8px; background: rgba(0, 0, 0, .6); color: var(--rc, var(--honey)); font: 400 14px var(--gw-title); }
.sti.mk .chip { text-transform: capitalize; } .chip.under { color: var(--leaf); }
.mk-clear { display: flex; justify-content: center; margin: 4px 0 0; }
.mk-sum { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, .25); font: 600 13px var(--gw-font); color: var(--dim); } .mk-sum b { color: var(--honey); }
.mk-sell .mk-warn { color: #ffb25a; font-weight: 700; } .mk-sell .mk-slots { color: var(--dim); white-space: nowrap; }
.mk-unlock { position: fixed; inset: 0; z-index: 61; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 50% 40%, rgba(255, 211, 74, .22), rgba(8, 6, 20, .72) 65%); animation: gwFade .2s ease-out; zoom: var(--ui, 1); }
.mku-box { position: relative; box-sizing: border-box; width: min(460px, calc(var(--vw) - 32px)); padding: 18px 16px 14px; border: 2px solid var(--gold-line); border-radius: 16px; background: linear-gradient(180deg, #2a2840, #1a192b); color: var(--cream); font-family: var(--gw-font);
  box-shadow: 0 0 0 1px #000, 0 0 60px rgba(255, 211, 74, .35), 0 24px 70px rgba(0, 0, 0, .7); animation: gwPop .35s cubic-bezier(.2, 1.45, .4, 1); }
.mku-x { position: absolute; right: 8px; top: 6px; width: 32px; height: 32px; border: 0; background: none; color: var(--dim); font-size: 24px; cursor: pointer; }
.mku-head { display: grid; justify-items: center; gap: 2px; text-align: center; }
.mku-head .ico { width: 34px; height: 34px; color: var(--gold); } .mku-head b { font: 400 25px var(--gw-title); color: var(--honey); text-shadow: 0 2px 0 var(--gold-d); } .mku-head small { color: var(--dim); font-size: 13px; }
.mku-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 10px -4px 0; scrollbar-width: none; } .mku-slides::-webkit-scrollbar { display: none; }
.mku-slides section { flex: 0 0 100%; box-sizing: border-box; padding: 0 8px; scroll-snap-align: center; text-align: center; }
.mku-art { position: relative; display: grid; place-items: center; height: 130px; } .mku-art .spin { width: 130px; height: 130px; } .mku-art > .ico { width: 70px; height: 70px; color: var(--pink); }
.mku-slides h4 { margin: 4px 0; font: 400 19px var(--gw-title); color: var(--honey); } .mku-slides p { margin: 0; font: 600 14px/1.5 var(--gw-font); } .mku-slides p b { color: var(--honey); }
.mku-dots { display: flex; justify-content: center; gap: 8px; margin: 10px 0; } .mku-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .25); cursor: pointer; } .mku-dots button[aria-current] { background: var(--gold); }
.mku-box .btnrow { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@media (max-width: 680px) { .mk-top select { flex: 1; } .mk-filters select { flex: 1; min-width: 0; } .mku-box .btnrow .gw-btn { flex: 1; } }
.mk-chart text { fill: rgba(255,255,255,.6); font: 600 10px Fredoka, sans-serif; }
/* J8: emote previews on the wheel */
/* J8: the editor's multi-select row */
.edit-pick.multi .mv-arrows { display: inline-flex; gap: 3px; }
.edit-pick.multi .mv-arrows .gw-btn { min-width: 30px; padding-inline: 6px; }
.edit-pick.multi .mv-arrows .ico { transform: rotate(var(--rot)); margin: 0; }
/* J11: the daily delivery's streak ladder (in its toast) */
.ladder { display: flex; gap: 3px; margin: 6px 0 2px; }
.ladder .lad { flex: 1; display: flex; align-items: center; justify-content: center; gap: 1px; padding: 2px 0; border-radius: 6px; font: 700 11px var(--gw-font); background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .55); }
.ladder .lad.done { background: rgba(108, 196, 106, .3); color: #fff; }
.ladder .lad.now { background: linear-gradient(#ffcf5a, #e09a22); color: #3a2400; box-shadow: 0 0 8px rgba(255, 207, 90, .6); }
.ladder .ic { width: 11px; height: 11px; }
/* J11: a group's pinned notice */
.grp-notice { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: rgba(246, 194, 74, .1); border: 1px solid rgba(246, 194, 74, .3); }
.grp-notice > div { flex: 1; min-width: 0; } .grp-notice b { color: var(--honey); overflow-wrap: anywhere; }
.grp-nf { display: flex; gap: 6px; margin-top: 6px; } .grp-nf input { flex: 1; min-width: 0; }

/* the emote picker (G3; J8: a grid of your own fly doing each emote, the dances under it) */
#emoteWheel { position: fixed; z-index: 45; box-sizing: border-box; width: min(460px, calc(var(--vw) - 16px)); overflow: auto; padding: 10px; border-radius: 14px; border: 1.5px solid var(--gold-line); background: rgba(20, 18, 40, .95); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: ew-pop .18s ease-out both; }
#emoteWheel .ew-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
#emoteWheel .ew-dl { display: block; margin: 10px 2px 6px; font: 700 11px var(--gw-font); letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); }
#emoteWheel button { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; min-height: 64px; padding: 4px 3px 5px; border-radius: 10px; border: 1.5px solid var(--gold-line); background: linear-gradient(#2e2a5c, #1a1838); color: var(--cream); font: 700 12px var(--gw-font); cursor: pointer; }
#emoteWheel button.dance { border-style: dashed; }
#emoteWheel button.club { border-color: #c9902a; background: linear-gradient(#5a2a8a, #2e1648); } #emoteWheel button.lock { opacity: .55; }
#emoteWheel button:hover, #emoteWheel button:focus-visible { background: linear-gradient(#ffcf5a, #e09a22); color: #3a2400; }
#emoteWheel .ew-pic { width: 42px; height: 42px; object-fit: contain; animation: ew-pop .18s ease-out both; }
@keyframes ew-pop { from { transform: scale(.85); opacity: 0; } }
#emoteWheel .ew-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }/* J12: the phone audit */
#toast .tst { width: max-content; max-width: calc(var(--vw) - 32px); box-sizing: border-box; }
.mk-histbtn { padding: 8px 0; }
@media (max-width: 680px) { .sti .mk-hist p { display: block; min-height: 0; } }
@media (max-width: 680px) { .sti.mk p, .sti.set-card p, .sti.bundle p, .sti[data-bundle-card] p, .sti.prem p { display: block; min-height: 0; } }   /* phones hide flavour lines, not these: seller and time left, what a bundle or set holds */
.lk-new .gw-btn { white-space: normal; }
.ri-facts td { overflow-wrap: anywhere; } .ri-facts td small { display: block; color: var(--dim); }
#emoteWheel button { min-height: 70px; }
@media (pointer: coarse) {
  input, select, textarea { font-size: 16px !important; }
  .edit-pick.multi .mv-arrows .gw-btn { min-width: 38px; min-height: 38px; }
  .seg button { min-height: 34px; }
}
.ht-grid small { font-size: 11px; }
/* K1: the hub board's "!" sits on top of its Tasks tag */
.tag .tag-bang { display: none; position: absolute; left: 50%; bottom: calc(100% + 4px); width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff7a8a, #d8263a); border: 2px solid #fff4dc; color: #fff; font: 900 16px/22px var(--gw-title); text-align: center; font-style: normal; box-shadow: 0 3px 8px rgba(0, 0, 0, .4); animation: bangbob 1.6s ease-in-out infinite; }
.tag.has-bang .tag-bang { display: block; }
@keyframes bangbob { 50% { transform: translateY(-5px); } }

/* K3: the pass window is as tall as it needs; phones get fingers-sized buttons */
#gwWin:has(.pass-rows), #gwWin:has(.gw-body > .chest), #gwWin:has(.gw-body > .trade) { height: auto; max-height: calc(var(--vh) - 70px); }   /* Q0: the chest and the trade window fit what's in them */
@media (pointer: coarse) { .gw-btn.sm, .in-acts .gw-btn { min-height: 36px; } .gw-pan .pop-x { width: 38px; height: 38px; } #hatch .sw { width: 38px; height: 38px; } .grp-cols button, .edit-cols button { width: 34px; height: 34px; } }
@media (max-width: 420px) { #wallet { min-width: 0; max-width: 100%; } #wallet .cur { min-width: 0; flex-shrink: 1; } #wallet .cur > span:not(.lvcoin):not(.gw-bar) { overflow: hidden; text-overflow: ellipsis; } #wallet .cur svg, #lvl, #staffBtn { flex-shrink: 0; }   /* (#12: a staff shield and a big wallet never push the coins off a 320 px screen) */
  .brand { display: none; } #hud { justify-content: flex-end; } #lvl .lvcoin { background: radial-gradient(circle, #ffd85a 0 60%, transparent 62%), conic-gradient(#7fe0ff calc(var(--xp, 0) * 1%), #2a2840 0); } }   /* K3: phones: the wallet gets the top bar; the level coin is the Buzz ring */
/* K3: the HUD and windows on a phone; one room name, not three; the loot's New Best stamp */
@media (max-width: 680px) { #gwWin, #gwWin.small, #gwWin.side { width: calc(var(--vw) - 28px); } }   /* (no overflow on #dock: it would clip Play, which rides above the bar) */
@media (max-width: 480px) { .set-row:has(.btnrow) { grid-template-columns: 1fr; } .set-row .btnrow { justify-content: flex-end; } }
#loot .stamp { display: inline-block; margin: 2px 0 4px; padding: 3px 12px; border: 3px solid #ff5a6e; border-radius: 8px; color: #ff5a6e; font: 400 18px/1 var(--gw-title); letter-spacing: 1px; text-transform: uppercase; transform: rotate(-6deg); animation: stampIn .45s cubic-bezier(.3, 1.6, .5, 1) .3s both; }
@keyframes stampIn { from { transform: rotate(-6deg) scale(2.4); opacity: 0; } }
/* K3 shop: pictures fit their stage; the showcase ribbon reads; phone tap targets; tab rows hint there's more */
.sti-stage > img.thumb { display: block; width: 128px; height: 128px; margin: 5px auto 0; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .4)); }
.sti.showcase .ribbon { width: 150px; left: -40px; top: 24px; } .sti.showcase .sti-stage .spin { width: 220px; height: 220px; }
.gw-btn[data-cant] { filter: grayscale(.7) brightness(.75); }
@media (max-width: 680px) { .sti .qty button { min-height: 36px; } .swatches button { width: 30px; height: 30px; } .wish-b { width: 36px; height: 36px; } .sti .tryon { width: 36px; height: 36px; } .hero-dots button { height: 24px; padding: 8px 0; background-clip: content-box; }
  .gw-tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); } .deal-tag { white-space: nowrap; font-size: 12px; }
  @supports (animation-timeline: scroll()) {   /* (N4: the fade only on the side where the strip goes on; none when it all fits) */
    .gw-tabs { -webkit-mask-image: none; mask-image: none; animation: tabFade linear both; animation-timeline: scroll(self inline); }
  } }
@keyframes tabFade { 0% { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  6%, 94% { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 85%, transparent); }
  100% { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%); mask-image: linear-gradient(90deg, transparent, #000 15%); } }
@media (max-width: 480px) { .gw-tabs .tab-long { display: none; } }
/* K3 bag / looks / profile: side panels never shift (a scrollbar keeps its gutter); leads; the empty My Looks shelf invites */
.gw-body { scrollbar-gutter: stable; }
.gw-body .lead { margin: 0 0 10px; font-size: 13px; color: var(--dim); } .gw-body .lead b { color: var(--honey); }
.lk-look.lk-slot { min-height: 150px; justify-content: center; border-style: dashed; opacity: .5; } .lk-slot .lk-plus { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--dim); } .lk-slot .lk-plus .ico { width: 26px; height: 26px; } .lk-slot small { color: var(--dim); font: 600 12px var(--gw-font); }   /* (N4: an empty slot says so) */
.wd-tile.sel { outline: 2px solid var(--ruby); outline-offset: 1px; }
@media (max-width: 680px) {
  .bag-detail { display: grid; grid-template-columns: 72px 1fr; gap: 4px 10px; align-items: start; } .bag-detail .big { grid-row: span 3; height: 72px; } .bag-detail .big img { height: 70px; }
  .bag-detail > p, .bag-detail .hint, .bag-detail .belly-bar, .bag-detail .acts { grid-column: 1 / -1; } .bag-detail .acts { flex-direction: row; flex-wrap: wrap; } .bag-detail .acts .gw-btn { flex: 1 1 140px; }
}
.trophy-pic { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto; } .trophy-pic .ico { width: 80%; height: 80%; } .trophy-pic.big { width: 90px; height: 90px; }
.trophy-pic.tr-2 .ico { filter: grayscale(1) brightness(1.35); } .trophy-pic.tr-3 .ico { filter: sepia(1) hue-rotate(-25deg) saturate(1.6) brightness(.8); }
.inv-rooms .ir-pics { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; } .inv-rooms .ir-pics img, .inv-rooms .ir-pics .mini { width: 30px; height: 30px; } .inv-rooms .ir-pics i { align-self: center; font-style: normal; font-size: 12px; color: var(--dim); }
.nav-pv { float: left; display: grid; place-items: center; width: 40px; height: 40px; margin-right: 10px; border-radius: 10px; border: 1px solid var(--line); background: radial-gradient(circle, #3e3b5e, var(--glass2)); } .nav-pv .ico { width: 24px; height: 24px; }
/* K4 UI juice (kept gentle; the effects switch and reduced motion turn it off): a claim button breathes, a tab hops when picked,
   a card lifts under the pointer */
[data-claim]:not(:disabled), [data-qstep]:not(:disabled), [data-pt]:not(:disabled), .task [data-q]:not(:disabled), #tBonus:not(:disabled), #tAll, [data-gift]:not(:disabled) { animation: claimGlow 1.8s ease-in-out infinite; }
@keyframes claimGlow { 50% { box-shadow: 0 0 0 3px rgba(127, 224, 74, .35), 0 0 16px rgba(127, 224, 74, .55); } }
.gw-tabs button.on .ico { animation: tabHop .45s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes tabHop { 40% { transform: translateY(-4px) scale(1.15); } }
.sti:hover, .wd-tile:hover, .bdg-card:not(:disabled):hover { transform: translateY(-2px); transition: transform .15s; }
body.no-fx [data-claim], body.no-fx [data-qstep], body.no-fx [data-pt], body.no-fx [data-q], body.no-fx #tBonus, body.no-fx #tAll, body.no-fx [data-gift], body.no-fx .gw-tabs button.on .ico { animation: none; }
@media (prefers-reduced-motion: reduce) { [data-claim], [data-qstep], [data-pt], [data-q], #tBonus, #tAll, [data-gift], .gw-tabs button.on .ico { animation: none; } .sti:hover, .wd-tile:hover { transform: none; } }
/* L2: the UI scale: these zoom with --ui (Settings, Display, UI Scale); the 3D canvas never does */
#hud, #flyCard, #lane, #dock, #gwWin, .gw-pan, .inst-panel, #toast, #chatbar, #msgr, #tray, #hatch, #lvlup, #banner, #emoteWheel, #loot, .play-in, .reveal { zoom: var(--ui, 1); }
.tag { transform-origin: 50% 100%; }
#gwWin.small.settings { width: min(660px, calc(var(--vw) - var(--gw-dx))); }   /* L1: room for the six tabs */
#gwWin.settings .set-row:has(.seg.wrap) { grid-template-columns: 1fr; } #gwWin.settings .seg.wrap { flex-wrap: wrap; justify-content: flex-start; } #gwWin.settings .seg.wrap { justify-self: end; }   /* (N4: right, like every other control in Settings) */
@media (min-width: 481px) { .staff-seg { width: fit-content; max-width: 100%; } }   /* (N4: a pill as wide as its buttons, not a full-width track) */
#gwWin.settings .set-vol { width: 160px; accent-color: var(--gold); }
#gwWin.settings .set-row:has(.set-mood) { grid-template-columns: 1fr; } #gwWin.settings .set-mood input { width: 100%; box-sizing: border-box; }
.trader-off { margin: 4px 0 12px; } .trader-off .hero-txt i { font: 600 12px var(--gw-font); letter-spacing: 1px; text-transform: uppercase; color: var(--dim); font-style: normal; } .trader-off .hero-txt b { display: block; font: 400 30px/1.1 var(--gw-title); color: var(--honey); } .trader-off .hero-txt small { display: block; margin-top: 6px; font-size: 13px; color: var(--cream); }
.trader-off .spin { justify-self: center; width: min(100%, 124px); height: auto; aspect-ratio: 1; }
.hero-slide.trader-off { min-height: 0; padding: 14px 20px; }   /* (polish r7: the off-day banner is as tall as its words and the cart) */   /* (L4: Barnaby's off days get a banner, not a line) */
.cat-btn img.cat-pic { width: 22px; height: 22px; flex: none; object-fit: contain; }   /* (L4: each pet with its own picture) */
.wd-tile .ch-all { display: block; margin: 4px auto 0; padding: 5px 10px; border-radius: 8px; background: var(--gold); color: #2a1a08; font: 700 11.5px var(--gw-font); font-style: normal; } @media (pointer: coarse) { .wd-tile .ch-all { padding: 9px 12px; } }
.hcard .hc-top { display: flex; align-items: center; gap: 10px; } .hcard .hc-id { flex: 1; min-width: 0; } .hcard .hc-pic { flex: none; width: 64px; height: 64px; border-radius: 12px; background: rgba(0, 0, 0, .22); } .hcard .hc-pic img { width: 100%; height: 100%; object-fit: contain; }   /* (L4: the pet's picture) */
/* the pet card (Jesse 2026-10-25): the main actions as three big buttons, then tabs like the Messenger's */
.hc-acts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin: 10px 0 0; }
.hc-acts > .gw-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 52px; padding: 6px 4px; font-size: 14px; line-height: 1.05; white-space: normal; text-align: center; }
.hc-acts > .gw-btn svg { width: 20px; height: 20px; margin: 0; } .hc-acts > .gw-btn small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 10px var(--gw-font); letter-spacing: 0; opacity: .85; }
.gw-tabs.mini.hc-tabs { margin: 10px -10px 8px; padding: 0 10px; } .gw-tabs.mini.hc-tabs button.on { box-shadow: inset 0 -3px 0 var(--gold); }   /* (.gw-tabs hides the border underline: the gold line drawn inside) */
.pc-tricks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-bottom: 8px; }
.pc-tricks .gw-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; min-height: 34px; padding: 4px 3px; font-size: 12.5px; line-height: 1.05; white-space: normal; }
.pc-tricks .gw-btn svg { width: 12px; height: 12px; margin: 0; } .pc-tricks .gw-btn small { font: 600 10px var(--gw-font); letter-spacing: 0; color: var(--dim); text-shadow: none; }
.pc-tricks .gw-btn.ghost:disabled { filter: none; opacity: .5; }   /* (locked: greyed, the level it comes at under the name) */
.pc-row { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; } .pc-row > span:first-child { flex: none; min-width: 52px; white-space: nowrap; font: 600 12px var(--gw-font); color: var(--dim); } .pc-row select, .pc-row input { flex: 1; min-width: 0; } .pc-row .seg { flex: 1; } .pc-row .seg button { flex: 1; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; } .pc-chips span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, .06); font: 600 11.5px var(--gw-font); } .pc-chips .sig { border: 1px solid rgba(255, 214, 106, .4); } .pc-chips svg { width: 12px; height: 12px; color: var(--gold); }
.hc-tab > .gw-btn { margin-top: 4px; } .hc-tab .pet-perk { margin: 6px 0; }
/* ---------- L3: every screen size (fixes from the size check) ---------- */
body.stack .dk-l { grid-column: 1; } body.stack .dk-r { grid-column: 3; }   /* Play lifted out of the bar: the right group stays right */
#play { zoom: var(--ui, 1); } .play-in { zoom: 1; }   /* the Play page scales once, as a whole */
/* play-test: the catalog scrolls below the HUD (the top bar and the fly card), never under it; the shadow paints Play's backdrop above */
#play { top: calc(56px + var(--sa-t) / var(--ui, 1)); box-shadow: 0 0 0 400px rgba(13, 12, 24, .96); } #play .play-in { padding-top: 8px; }
body:has(#play.open) :is(#flyCard, #placeName) { visibility: hidden; }   /* (the page covers the place: the fly card, its errand chip and the place name stay out of its header) */
body:has(#play.open) :is(#lane, #bubbles, .tag) { visibility: hidden; }   /* (N4: the room's bar, chat bubbles and door tags don't show through Play) */
.gw-tabs button { padding: 7px 10px 9px; }   /* eight tabs fit a 920 px window */
#gwWin.small.settings { width: min(720px, calc(var(--vw) - var(--gw-dx))); }
.hero-dots button { background-color: rgba(255, 255, 255, .3); background-image: none; } .hero-dots button[aria-pressed="true"] { background-color: var(--honey); }
@media (max-width: 680px) {
  #gwWin.small { height: auto; max-height: calc(var(--vh) - 44px - env(safe-area-inset-top, 0px) / var(--ui, 1)); }   /* a small window is as tall as it needs */
  #gwWin.small:has(> .gw-tabs) { height: calc(var(--vh) - 44px - env(safe-area-inset-top, 0px) / var(--ui, 1)); }   /* (zh: one with tabs keeps one height on every tab: Settings, Tasks) */
  .sti.showcase { grid-column: 1 / -1; } .sti.showcase .sti-stage .spin { width: 170px; height: 170px; } .sti.showcase .ribbon { width: 170px; left: -48px; top: 26px; }
  .bag-detail .big .wish-b { top: 4px; right: 4px; width: 26px; height: 26px; }
  #tray { max-height: calc(var(--vh) * .42); }   /* (zh: --vh, so a bigger UI scale doesn't grow it over the room) */
}
@media (max-height: 520px) and (orientation: landscape) {   /* N4 r2: a phone on its side decorates with the tray as a side panel on the right; the room fits the left (home.js homeSafe) */
  #tray, body.stack.in-room #tray { left: auto; right: 8px; top: 58px; bottom: calc(var(--dockH, 70px) + 8px + var(--bot-b) / var(--ui, 1)); width: min(360px, calc(var(--vw) * .4)); max-height: none; transform: translateX(16px); }
  #tray.open { transform: none; }
  #tray.placing { top: auto; }   /* (placing: a slim box at the bottom right) */
  #tray header { gap: 6px; padding: 7px 10px 5px; } #tray h2 { flex-basis: 100%; font-size: 16px; } #tray .tabs { flex-wrap: wrap; }
  body.editing #chatbar, body.editing #msgr { display: none; }   /* (the chat comes back with Done) */
  #editBanner { display: none; }   /* (the side tray's title says it; the fly card owns that corner) */
}
@media (max-width: 480px) {
  #gwWin.settings .set-row:has(.seg) { grid-template-columns: 1fr; } #gwWin.settings .seg.wrap { justify-self: stretch; }
  #gwWin .seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } #gwWin .seg button { padding: 6px 3px; font-size: 12px; line-height: 1.1; }   /* (N4: a segmented control is one even row that fills its line) */
  #gwWin .staff-seg:has(> :nth-child(5)) { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); } #gwWin .staff-seg:has(> :nth-child(5)) > * { grid-column: span 2; } #gwWin .staff-seg:has(> :nth-child(5)) > :nth-child(n+4) { grid-column: span 3; }   /* (five long staff filters: an even 3 + 2) */
  .gw-tabs button { padding: 7px 8px 8px; font-size: 13.5px; }
}
@media (max-height: 600px) { .lk-ped { height: 150px; min-height: 150px; } }
@media (max-height: 520px) {   /* phones on their side, short laptop windows: everything tighter */
  body.stack .dk-c { position: static; transform: none; }
  #dock { padding-top: 3px; padding-bottom: calc(3px + env(safe-area-inset-bottom, 0px) / var(--ui, 1)); } .dk { width: 46px; font-size: 0; gap: 0; } .dk .well { width: 34px; height: 34px; }
  #gwWin, #gwWin.small, #gwWin.side { padding-top: 34px; height: calc(var(--vh) - 20px); max-height: none; margin-top: 8px; } .gw-chip { display: none; }
  .gw-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .gw-tabs button { white-space: nowrap; }
}
@media (pointer: coarse) { .tog { height: 30px; width: 52px; } .linkish { display: inline-block; padding: 8px 0; } .chips button, #tray .tabs button { min-height: 34px; } }
/* L3, batch 2 (rooms, social, staff, games at five sizes) */
#pan-r { top: calc(118px + var(--sa-t) / var(--ui, 1)); height: min(470px, calc(var(--vh) - 260px)); }   /* under the fly card, not over it */
#pan-r .gw-empty { margin: auto; }
.chatb { transform-origin: 0 0; }   /* scaled with the UI from its corner (chat.js placeBubble) */
body:has(#hatch.open) #flyCard, body:has(#hatch.open) #wallet { visibility: hidden; }
#emoteWheel { background: #17152e; } #emoteWheel .ew-lock { display: flex; align-items: center; gap: 2px; font-size: 10.5px; color: var(--gold); } #emoteWheel .ew-lock .ico { width: 11px; height: 11px; }
.ui-ribbon.big h2 { overflow: hidden; text-overflow: ellipsis; max-width: calc(var(--vw) - 150px); }
td > span[title] > img.thumb.xs { width: 30px; height: 30px; }
.bs-pick small { font-size: 11px; }
#loot .stamp { margin-top: 10px; align-self: center; justify-self: center; width: fit-content; }   /* (N4: the stamp hugs its text) */
#gwWin.list { width: min(780px, calc(var(--vw) - var(--gw-dx))); }   /* (N4: all seven Rooms tabs on one row) */
.nav-room { display: flex; align-items: flex-start; gap: 10px; } .nav-room > div { min-width: 0; } .nav-room svg.shape, .nav-room .nav-pv { float: none; flex: none; margin: 0; }   /* (N4: the description stays beside the picture, never under it) */
.nav-list td.num, .inv-rooms td.num { width: 1%; padding-inline: 12px; text-align: center; } .nav-list td.num small, .inv-rooms td.num small { font-weight: 500; }
.nav-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 4px; } .nav-bar > span { flex: 1; white-space: nowrap; color: var(--dim); font: 600 12.5px var(--gw-font); }
@media (max-width: 480px) { .gw-tabs { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); } }
@media (max-height: 520px) {
  .gw-pan, #pan-l, #pan-i { max-height: calc(var(--vh) - 70px); } #pan-i, body.stack #pan-i { bottom: 8px; right: 8px; z-index: 29; } #pan-r { top: 8px; height: calc(var(--vh) - 16px); z-index: 29; }   /* a short screen: an open card goes over the bars */
}
@media (max-width: 480px) {   /* (L9: a guest's fly card with three buttons and Log In fits a 375 px phone) */
  #flyCard { max-width: calc(var(--vw) - 20px); box-sizing: border-box; } .fc-txt { flex: 1 1 auto; } .fc-txt b, .fc-txt span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
}

/* M9: Fast (and Auto on a slow device: body.lowfx) draws no blur at all; Fast and the effects switch (body.no-fx) stop the
   looping decorative animations (shines, pulses, sparkles, foil); one-shot ones (pops, bumps, coins) still play */
body.lowfx *, body.lowfx *::before, body.lowfx *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
body.lowfx .gw-bar.shine > i::after, body.lowfx .rank.fx-shine::after, body.lowfx .rank.fx-sparkle, body.lowfx .bdg.l5 .bdg-art, body.lowfx .series-dots .dot.live, body.lowfx .series-dots .dot.live i,
body.lowfx .sti, body.lowfx .sti::after, body.lowfx .sti-stage::before, body.lowfx .wd-tile.r-fermented, body.lowfx .bag-detail .big::after, body.lowfx .one-left, body.lowfx .task .steps i.now,
body.lowfx .task-bonus.ready > .ic, body.lowfx #loot .flysprite, body.lowfx .belly-bar i.gain, body.lowfx [data-claim], body.lowfx [data-qstep], body.lowfx [data-pt], body.lowfx .task [data-q], body.lowfx #tBonus, body.lowfx #tAll, body.lowfx [data-gift],
body.no-fx .rank.fx-shine::after, body.no-fx .rank.fx-sparkle, body.no-fx .bdg.l5 .bdg-art, body.no-fx .series-dots .dot.live, body.no-fx .series-dots .dot.live i, body.no-fx .wd-tile.r-fermented,
body.no-fx .task-bonus.ready > .ic, body.no-fx #loot .flysprite, body.no-fx .belly-bar i.gain { animation: none !important; }
/* N5: the new-player polish pass */
.mo-guest { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -6px 0 14px; padding: 8px 12px; border: 1px dashed var(--gold-line); border-radius: 12px; }
.mo-guest p { margin: 0; font-size: 13.5px; color: var(--cream); }
@media (min-width: 681px) and (min-height: 521px) { #gwWin.settings { height: min(560px, calc(var(--vh) - 70px)); } }   /* the tab row stays put between tabs */
@media (max-width: 680px) { #gwBack:has(> #gwWin.small.settings) { align-items: flex-start; } #gwWin.small.settings { height: auto; margin-top: calc(22px + env(safe-area-inset-top, 0px) / var(--ui, 1)); } }   /* (N4: on phones the tab row stays put too; O11: hung from the top, so a short tab is a short window, not a tall empty one) */
@media (max-width: 680px) {
  #chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  #chips button { flex: none; white-space: nowrap; }
}
@property --fl { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --fr { syntax: '<length>'; inherits: false; initial-value: 0px; }
@keyframes edgeFade { from { --fl: 0px; --fr: 40px; } 8% { --fl: 28px; } 92% { --fr: 40px; } to { --fl: 28px; --fr: 0px; } }
@media (max-width: 680px) and (prefers-reduced-motion: no-preference) { @supports (animation-timeline: scroll()) {   /* a row that scrolls fades at the side that has more; a row that fits doesn't fade */
  .gw-tabs, #chips { -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent); animation: edgeFade linear both; animation-timeline: scroll(self inline); }
} }
@media (max-width: 480px) {   /* thumb-sized taps */
  .pop-x { width: 40px; height: 40px; }
  .tog { box-sizing: border-box; width: 56px; height: 32px; } .tog::after { top: 4px; left: 4px; width: 22px; height: 22px; } .tog[aria-pressed="true"]::after, .chk input:checked + .tog::after { left: 28px; }
  .seg button { min-height: 40px; min-width: 40px; }
  .sti .qty button { min-height: calc(40px / var(--ui, 1)); }   /* (N4: ≥40 px on the screen, after the window's zoom) */
  .sti-stage .tryon { top: 0; left: 0; border-color: transparent; background: radial-gradient(circle, rgba(20, 18, 34, .75) 0 11px, transparent 12px); } .sti-stage .ribbon ~ .tryon { bottom: 0; }
  .sti-stage .wish-b { top: 0; right: 0; border-color: transparent; background: radial-gradient(circle, rgba(20, 18, 34, .75) 0 11px, transparent 12px); } .sti-stage .wish-b.on { background: radial-gradient(circle, rgba(60, 10, 30, .8) 0 11px, transparent 12px); }   /* (N4: a small heart tucked in the corner, a finger-sized tap) */
  .sti .chip.set { display: inline-block; max-width: 100%; box-sizing: border-box; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sti-stage { height: 98px; } .sti-stage .spin { width: 98px; height: 98px; }
  .sti .swatches { gap: 8px 7px; flex-wrap: wrap; padding: 4px 2px; margin: 0 0 4px; } .sti .swatches .sw-name { display: none; } .sti .swatches button { position: relative; width: 22px; height: 22px; flex: none; } .sti .swatches button::before { content: ''; position: absolute; inset: -5px -3px; } #hatch .sw { width: 38px; height: 38px; } #hatch .swatches { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; }   /* (N4: 4 + 4, not 6 + 2; O11: a shop card's dots: one row of 26 px that swipes (and fades where there are more), each tap still 32 x 44; zh: the dots wrap at 22 px instead of swiping, so none hide past the card's edge) */
  .hero-dots { gap: 0; bottom: -6px; } .hero-dots button { box-sizing: content-box; height: 7px; padding: 0; border: solid transparent; border-width: 16px 8px; border-radius: 12px / 20px; background-clip: padding-box; }   /* a small dot, a finger-sized hit area */
  .gw-tabs button, .chips button, .chipbtn { min-height: 40px; }
  .apts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* O8: phone pass 2 (layout only) */
@media (max-width: 1100px) { body.editing #chatbar, body.editing #msgr { display: none; } }   /* (O11: a tablet's tray covered the chat bar and Find New Friends: decorating hides them, as on a phone on its side) */
@media (min-width: 681px) and (max-width: 1100px) { #editBanner { top: calc(122px + var(--sa-t)); } }   /* (a tablet: under the fly card, not behind it) */
@media (min-width: 681px) and (orientation: portrait) and (min-height: 900px) { #gwWin { height: min(900px, calc(var(--vh) - 150px)); } }   /* (a tablet held upright: the big windows use the height) */
@media (max-width: 480px) { #dock { zoom: min(var(--ui, 1), 1); } }
@media (max-width: 480px) { #dock .dk { min-width: 38px; padding: 2px 1px; font-size: 9.5px; letter-spacing: 0; } #dock .dk .well { width: 32px; height: 32px; } #dock .dk-sep { display: none; } }   /* (W: your own home's eight buttons, Games included, fit a 375 phone without overlapping) */   /* (a phone at a bigger UI size: seven toolbar buttons only fit at 100%, Bag sat on Shop at 115%) */
/* P8: the arcade minis (app/arcade.js): a small canvas game in its own window; the canvas keeps its 300×420 shape and fits a phone or a short screen */
#gwWin.arcade { width: min(380px, calc(var(--vw) - var(--gw-dx))); }
.arc-hud { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 28px; padding: 0 4px 6px; font-weight: 600; font-size: 15px; }
.arc-hud b { color: var(--honey); font: 400 18px/1 var(--gw-title); letter-spacing: .5px; }
.arc-cv { display: block; width: min(100%, 330px, calc((var(--vh) - 240px) * 300 / 420)); aspect-ratio: 300 / 420; margin: 0 auto; border: 2px solid var(--gold-line); border-radius: 10px; background: #12112a; touch-action: none; cursor: pointer; }
.arc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 34px; padding-top: 8px; }
.arc-tip { margin: 0; color: var(--dim); font-size: 13px; }

/* U4: the Boop Circle's big button (while your fly sits on a ring seat), Team Frenzy's meter over the fruit; U3: a guest's invite */
.boop-btn[hidden] { display: none; }
/* W1: the Juice cup beside the Boop button (only while you sit in the ring): your Juice; it fills toward the next reward */
.juice-cup[hidden] { display: none; }
.juice-cup svg { width: 40px; height: 47px; overflow: visible; } .juice-cup .jc-fill, .juice-cup .jc-top { transition: y .35s ease-out; }
.juice-cup .jc-txt { display: flex; flex-direction: column; align-items: center; line-height: 1; } .juice-cup b { font: 400 17px/1 var(--gw-title); color: var(--honey); } .juice-cup small { font: 600 10px/1.2 var(--gw-font); color: var(--dim); text-transform: uppercase; letter-spacing: .6px; }
.juice-cup.drip svg { animation: cupDrip .22s ease-out; } @keyframes cupDrip { 40% { transform: scale(.93, 1.05); } }
.juice-cup.ready { border-color: var(--gold); animation: cupGlow 1.3s ease-in-out infinite alternate; } @keyframes cupGlow { to { box-shadow: 0 0 18px rgba(255, 196, 80, .6); } }
.juice-cup .jc-bang { position: absolute; top: -8px; right: -6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ruby, #c4232b); border: 2px solid #ffd88a; color: #fff; font: 400 14px/1 var(--gw-title); font-style: normal; }
.juice-cup .jc-bang[hidden] { display: none; }
.ic.jdrop { width: 1em; height: 1em; vertical-align: -.15em; margin-right: 2px; }
/* W1: the Boop Gym's reward track and flair */
.track { display: grid; gap: 5px; } .tr-row { display: grid; grid-template-columns: minmax(84px, auto) minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .22); font-size: 13px; }
.tr-row b { color: var(--honey); } .tr-row em { font-style: normal; font-size: 12px; color: var(--dim); } .tr-row.done { opacity: .55; } .tr-row.done em { color: var(--leaf); } .tr-row.ready { border-color: var(--gold); background: rgba(255, 196, 80, .1); }
.tr-row .ic { width: 14px; height: 14px; vertical-align: -.2em; }
/* Y5: the reward road (app/gym.js rewardsTab): stops along a road, the prize pictures, your fly; the daily Juice streak */
.road { overflow-x: auto; overflow-y: hidden; margin: 8px 0 4px; padding: 2px 0 8px; scrollbar-width: thin; overscroll-behavior-x: contain; }
@media (max-width: 680px), (max-height: 480px) { .road { -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent); } }   /* (list 5 stage 4: the road fades at the window's edge, so a stop reads as "more this way", not cut off) */
.rd-track { position: relative; display: flex; padding-top: 46px; }
.rd-path, .rd-done { position: absolute; left: 56px; top: 79px; height: 6px; border-radius: 3px; }
.rd-path { right: 56px; background: repeating-linear-gradient(90deg, rgba(255, 244, 220, .28) 0 12px, transparent 12px 20px); }
.rd-done { background: linear-gradient(90deg, #ff8a1a, #ffd34a); box-shadow: 0 0 8px rgba(255, 160, 50, .6); }
.rd-stop { position: relative; flex: 0 0 112px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; font-size: 11.5px; line-height: 1.15; }
.rd-pic { position: relative; z-index: 1; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle at 40% 32%, #3c3762, #1a1830 75%); border: 2px solid var(--line); }
.rd-pic .thumb { width: 66px; height: 66px; object-fit: contain; } .rd-cur svg, .rd-cur .ic, .rd-cur .ico { width: 34px; height: 34px; vertical-align: 0; } .rd-gift .ico { width: 40px; height: 40px; }
.rd-sw { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .7) 0 14%, var(--c) 46%, rgba(0, 0, 0, .35) 100%); border: 2px solid rgba(255, 255, 255, .55); }
.rd-stop b { max-width: 106px; color: var(--honey); font-size: 12px; } .rd-stop b .ic, .rd-stop b .ico, .rd-stop small .ic { width: 13px; height: 13px; vertical-align: -.2em; }
.rd-stop small { color: var(--dim); } .rd-stop em { font-style: normal; font-size: 11px; color: var(--dim); } .rd-stop .gw-btn.sm { padding: 3px 12px; }
.rd-stop.done { opacity: .62; } .rd-stop.done em { color: var(--leaf); }
.rd-ok { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #3f9a4a; border: 2px solid #c8f0b8; } .rd-ok .ico { width: 13px; height: 13px; }
.rd-stop.next .rd-pic, .rd-stop.ready .rd-pic { border-color: var(--gold); animation: rdGlow 2.4s ease-in-out infinite; }
.rd-stop.ready .rd-pic { background: radial-gradient(circle at 40% 32%, #6a4a20, #2a1a10 75%); }
.rd-stop.ex .rd-pic { border-color: #ff9a2a; } .rd-stop.ex b { color: #ffb45a; }
.rd-stop.myst:not(.done) .rd-gift { animation: rdWiggle 4s ease-in-out infinite; }
.rd-me { position: absolute; top: -6px; z-index: 2; width: 58px; height: 58px; margin-left: -29px; pointer-events: none; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .55)); animation: rdBob 2s ease-in-out infinite; } .rd-me img { width: 100%; height: 100%; object-fit: contain; }
@keyframes rdGlow { 0%, 100% { box-shadow: 0 0 0 3px rgba(255, 196, 80, .2), 0 0 14px rgba(255, 170, 60, .45); } 50% { box-shadow: 0 0 0 5px rgba(255, 196, 80, .12), 0 0 24px rgba(255, 170, 60, .8); } }
@keyframes rdBob { 50% { transform: translateY(-3px); } }
@keyframes rdWiggle { 0%, 82%, 100% { transform: rotate(0); } 86% { transform: rotate(-8deg); } 91% { transform: rotate(7deg); } 96% { transform: rotate(-3deg); } }
.rd-streak { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 2px 8px; padding: 7px 10px; margin-bottom: 6px; border: 1px solid rgba(255, 154, 42, .45); border-radius: 10px; background: rgba(255, 138, 26, .1); font-size: 13px; }
.rd-streak > .ico { grid-row: 1 / 3; width: 26px; height: 26px; } .rd-streak b { color: var(--honey); white-space: nowrap; } .rd-streak small { grid-column: 2 / -1; color: var(--dim); font-size: 12px; }
.rd-sk { display: flex; gap: 5px; justify-self: end; } .rd-sk i { width: 11px; height: 11px; border-radius: 50% 0 50% 50%; transform: rotate(-45deg); background: rgba(255, 255, 255, .14); } .rd-sk i.on { background: #ff9a2a; box-shadow: 0 0 6px rgba(255, 154, 42, .9); }
.sk-ms { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }   /* Z2: the streak's milestones and the freeze */
.sk-ms span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, .22); font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.sk-ms span b { display: inline-flex; align-items: center; gap: 2px; color: var(--cream); } .sk-ms span.got { border-color: rgba(111, 207, 151, .5); opacity: .7; } .sk-ms span.next { border-color: #ff9a2a; box-shadow: 0 0 6px rgba(255, 154, 42, .5); }
.sk-ms .ic, .sk-ms .ico { width: 13px; height: 13px; vertical-align: -.2em; }
.rd-streak small.sk-fz { grid-column: 1 / -1; display: flex; align-items: center; gap: 5px; margin-top: 2px; opacity: .7; } .rd-streak small.sk-fz.on { opacity: 1; color: #bfe6ff; } .sk-fz .ico { width: 15px; height: 15px; flex: none; }
.jc-chest { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 2px 8px; padding: 7px 10px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .22); font-size: 13px; }
.jc-chest > .ico { grid-row: 1 / 3; width: 28px; height: 28px; } .jc-chest b { color: var(--honey); white-space: nowrap; } .jc-chest em { font-style: normal; font-size: 12px; color: var(--dim); white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.jc-chest .jc-what { display: inline-flex; flex-wrap: wrap; gap: 2px 8px; font-weight: 700; color: var(--cream); } .jc-chest .jc-bonus { white-space: nowrap; color: var(--honey); } .jc-chest .ic { width: 15px; height: 15px; vertical-align: -.2em; } .jc-chest em .ico { width: 13px; height: 13px; }
.jc-chest small { grid-column: 2 / -1; color: var(--dim); font-size: 12px; } .jc-chest.ready { border-color: rgba(111, 207, 151, .7); background: rgba(111, 207, 151, .1); } .jc-chest.got { opacity: .75; }
.pr-lv { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 4px; } .pr-lv:empty { display: none; }
.pr-lv span { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, .22); font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.pr-lv span b { color: var(--cream); } .pr-lv span.now { border-color: #ff9a2a; box-shadow: 0 0 6px rgba(255, 154, 42, .5); } .pr-lv span.past { opacity: .5; } .pr-lv .ic, .pr-lv .ico { width: 13px; height: 13px; }
@media (max-width: 560px) { .jc-chest { grid-template-columns: auto minmax(0, 1fr) auto; } .jc-chest .jc-what { grid-column: 2 / -1; grid-row: 2; } .jc-chest small { grid-row: 3; } }
.fl.locked { opacity: .62; } .fl.locked small .ico { width: 12px; height: 12px; vertical-align: -.15em; }
.juice-cup .jc-sk { position: absolute; top: -9px; left: -8px; display: flex; align-items: center; gap: 1px; padding: 1px 6px 1px 3px; border-radius: 11px; background: #3a1a0a; border: 2px solid #ff9a2a; font-style: normal; }
.juice-cup .jc-sk[hidden] { display: none; } .juice-cup .jc-sk .ico { width: 14px; height: 14px; } .juice-cup .jc-sk b { font: 400 13px/1 var(--gw-title); color: #ffd27a; }
@media (prefers-reduced-motion: reduce) { .rd-me, .rd-gift, .rd-stop .rd-pic { animation: none !important; } }
.fl-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-bottom: 6px; }
.fl { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 6px; border: 1px solid var(--hair); border-radius: 12px; background: linear-gradient(180deg, #25243d, #1c1b30); color: var(--cream); cursor: pointer; font: inherit; }
.fl:hover { border-color: var(--gold-d, #a07a2a); } .fl.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.fl b { font-size: 13px; font-weight: 600; } .fl small { font-size: 12px; color: var(--dim); } .fl.on small { color: var(--leaf); }
.fl-sw { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c, transparent); border: 2px solid rgba(255, 255, 255, .5); }
.fl-sw.snd { background: #2a2840; color: var(--honey); } .fl-sw .ico { width: 16px; height: 16px; }
.boop-btn b { font: 400 27px/1 var(--gw-title); letter-spacing: 1px; text-shadow: 0 2px 0 #8a3410; }
.boop-btn small { font: 600 10.5px/1 var(--gw-font); opacity: .75; text-transform: uppercase; letter-spacing: .8px; }
.boop-btn:hover { filter: brightness(1.06); }
.boop-btn.hit { animation: boopHit .18s ease-out; }
@keyframes boopHit { 40% { transform: var(--bt, translateX(-50%)) translateY(5px) scale(.93); box-shadow: 0 1px 0 #8a3410, 0 4px 10px rgba(0, 0, 0, .4), inset 0 -4px 10px rgba(120, 30, 0, .35); } }
.tf-tag b { font: 400 13px/1 var(--gw-title); color: var(--honey); letter-spacing: .6px; text-transform: none; }
.tf-tag .meter { width: 72px; height: 7px; border-radius: 4px; background: #150f1c; overflow: hidden; }
.tf-tag .meter i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #ffb04a, #ff6fa8); transition: width .25s; }
.tf-tag.hot { border-color: #ffb04a; box-shadow: 0 0 14px rgba(255, 150, 80, .65); }
.tf-tag.rest b { color: var(--dim); } .tf-tag.rest .meter i { background: #6a7a9a; }
/* X7: the Juice Press: its tag, and The Juicery's Press, Helpers and Prestige tabs */
.press-tag .meter { width: 96px; } .press-tag .meter i { background: linear-gradient(90deg, #ff9a2a, #ffd27a); }
.pr-jar { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--hair); border-radius: 12px; background: rgba(0, 0, 0, .25); }
.pr-fill { display: grid; gap: 5px; font-size: 12.5px; color: var(--cream); } .pr-fill .gw-bar { height: 14px; border-radius: 7px; } .pr-fill .gw-bar i { background: linear-gradient(90deg, #ff9a2a, #ffd27a); }
.pr-board tr.me td { color: var(--honey); }
.pr-stars { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 4px 0 8px; } .pr-stars b { font-size: 26px; letter-spacing: 2px; color: #ffd34a; text-shadow: 0 2px 0 #8a5a10; } .pr-stars span { font-size: 13px; color: var(--cream); }
.pr-pic { width: 78px; height: 78px; margin: -10px 0; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }   /* the Juicery's Press tab: a picture of the press beside its jar */
.pr-how { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 5px; font-size: 12.5px; color: var(--dim); }
.pr-how li { display: flex; align-items: flex-start; gap: 8px; } .pr-how .ico { flex: none; width: 18px; height: 18px; margin-top: 1px; } .pr-how .ic { width: 14px; height: 14px; vertical-align: -.2em; }
.jc-day { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 8px 0 2px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .22); font: 600 12.5px var(--gw-font); color: var(--cream); }   /* the Rewards tab: today's Juice paid at full value */
.jc-day b { color: var(--honey); } .jc-day span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; } .jc-day .ic { width: 15px; height: 15px; }
.ps-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 5px 12px; margin: 6px 0 4px; }   /* Fresh Squeeze: every Juicery level, one compact row each */
.ps-list div { display: grid; grid-template-columns: minmax(0, 1fr) auto 34px; align-items: center; gap: 8px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0, 0, 0, .2); font-size: 12.5px; }
.ps-list div.on { border-color: var(--gold-d, #a07a2a); } .ps-list b { color: var(--cream); font-weight: 600; } .ps-list small { justify-self: end; color: var(--dim); font-size: 12px; } .ps-list .ico { width: 15px; height: 15px; color: var(--leaf); }
.ps-list .lvls { display: flex; gap: 3px; } .ps-list .lvls i { width: 14px; height: 6px; border-radius: 3px; background: #150f1c; border: 1px solid var(--line); } .ps-list .lvls i.on { background: var(--gold); border-color: var(--gold-d); }
/* AC4: the Juicery's goals (endless chains), collections (sets of flair) and Fresh Squeeze's star tiers */
.jg-list, .js-list { display: flex; flex-direction: column; gap: 5px; margin: 4px 0 10px; }
.jg-row { display: grid; grid-template-columns: 30px minmax(0, 1.2fr) minmax(0, 1fr) auto 70px; align-items: center; gap: 4px 10px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .22); font-size: 12.5px; }
.jg-row.ready { border-color: rgba(111, 207, 151, .7); background: rgba(111, 207, 151, .1); }
.jg-ic .ico { width: 24px; height: 24px; color: var(--honey); } .jg-t { display: flex; flex-direction: column; min-width: 0; } .jg-t b { color: var(--cream); font-weight: 600; } .jg-t b small { color: var(--honey); font-weight: 700; margin-left: 4px; }
.jg-t > small, .jg-bar small { color: var(--dim); font-size: 11.5px; } .jg-bar { display: flex; flex-direction: column; gap: 2px; }
.jg-p, .js-p { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--cream); white-space: nowrap; } .jg-p .ic, .js-p .ic { width: 15px; height: 15px; }
.jg-row .gw-btn, .js-row .gw-btn { justify-self: end; }
.js-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 70px; align-items: center; gap: 4px 10px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .22); font-size: 12.5px; }
.js-row > b { color: var(--cream); font-weight: 600; } .js-row em { justify-self: end; font-style: normal; color: var(--dim); display: inline-flex; align-items: center; gap: 3px; } .js-row em .ico { width: 13px; height: 13px; color: var(--leaf); }
.js-row.ready { border-color: rgba(111, 207, 151, .7); background: rgba(111, 207, 151, .1); } .js-row.got { opacity: .7; }
.js-sw { display: flex; gap: 3px; } .js-sw i { opacity: .35; filter: grayscale(.7); } .js-sw i.on { opacity: 1; filter: none; } .js-sw .fl-sw { width: 22px; height: 22px; border-width: 1.5px; } .js-sw .fl-sw .ico { width: 12px; height: 12px; }
.pr-stars .ps-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; } .pr-stars .ps-row b { font-size: 24px; letter-spacing: 2px; text-shadow: 0 2px 0 rgba(0, 0, 0, .45); }
.ps-next { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 10px; margin: 0 0 6px; border: 1px solid var(--gold-d, #a07a2a); border-radius: 10px; background: rgba(255, 211, 74, .08); font-size: 13px; color: var(--cream); }
.ps-next > .ico { width: 20px; height: 20px; color: var(--honey); } .ps-next b { color: var(--honey); } .ps-next .ic, .ps-next .ico { width: 15px; height: 15px; vertical-align: -.2em; }
.ps-tiers { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; } .ps-tiers span { padding: 2px 8px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, .22); font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.ps-tiers span.got { border-color: rgba(111, 207, 151, .5); color: var(--leaf); } .ps-tiers .ico { width: 12px; height: 12px; vertical-align: -.15em; }
@media (max-width: 560px) {
  .jg-row { grid-template-columns: 26px minmax(0, 1fr) auto; } .jg-ic { grid-row: 1 / 3; } .jg-bar { grid-column: 2; grid-row: 2; } .jg-p { grid-column: 3; grid-row: 1; justify-self: end; } .jg-row .gw-btn, .jg-wait { grid-column: 3; grid-row: 2; } .jg-t > small { display: none; }
  .js-row { grid-template-columns: minmax(0, 1fr) auto; } .js-row > b { grid-row: 1; } .js-sw { grid-column: 1; grid-row: 2; } .js-p { grid-column: 2; grid-row: 2; justify-self: end; } .js-row .gw-btn, .js-row em { grid-column: 2; grid-row: 1; }
}
.tr-q { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #3a2a5a; border: 1px solid var(--gold); color: var(--honey); font: 400 12px/1 var(--gw-title); font-style: normal; vertical-align: -.1em; }
/* W4: the hub tour: a small card over the dock (Next / Skip) and a glowing arrow over each stop */
#tourCard .tc-k { font: 600 12px/1 var(--gw-font); color: var(--dim); }
#tourCard .tc-n { font: 400 17px/1 var(--gw-title); color: var(--honey); letter-spacing: .4px; margin-right: 4px; overflow: hidden; text-overflow: ellipsis; }
#tourCard .gw-btn { padding: 7px 14px; min-height: 0; font-size: 14px; }
.tour-arrow { z-index: 7; }
.tour-arrow[hidden] { display: none; }
.tour-arrow svg { display: block; width: 34px; height: 44px; fill: #ffd34a; stroke: #8a5a10; stroke-width: 2.5; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(255, 210, 80, .95)) drop-shadow(0 0 14px rgba(255, 170, 40, .7)); animation: tourBob 1s ease-in-out infinite alternate; }
@keyframes tourBob { to { transform: translateY(-9px); } }
body.no-fx .tour-arrow svg, body.lowfx .tour-arrow svg { animation: none; }
/* X4: the characters' cards and the Who's Who list (app/cards.js) */
.lore { display: grid; gap: 8px; }
.lore p { margin: 0; line-height: 1.45; }
.lore-head { display: flex; align-items: center; gap: 12px; }
.lore-head b { display: block; font: 400 17px/1.15 var(--gw-title); letter-spacing: .3px; }
.lore-head small { display: inline-flex; align-items: center; gap: 4px; opacity: .8; font-size: 12px; }
.lore-head small svg { width: 13px; height: 13px; }
.lore-line { font-style: italic; color: var(--gold, #f6c24a); text-align: center; padding: 6px 10px; border-radius: 10px; background: rgba(246, 194, 74, .08); }
.lore-sub { margin: 4px 0 0; font: 400 15px/1 var(--gw-title); letter-spacing: .4px; }
.lore-rules { margin: 0; padding: 8px 12px 8px 30px; border-radius: 10px; background: rgba(232, 71, 79, .1); border: 1px solid rgba(232, 71, 79, .35); line-height: 1.5; }   /* AB3: Tensley's pool rules on his card */
.vend-sub { margin: 12px 2px 6px; }   /* AB3: Sunny's Swimwear under his snacks */
.lore-foot { display: flex; justify-content: center; }
.lore-foot .linkish { display: inline-flex; align-items: center; gap: 5px; }
.lore-foot .linkish svg { width: 15px; height: 15px; }
.lore-face { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--lc); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18), 0 0 0 2px rgba(255, 255, 255, .25); }
.lore-face.big { width: 72px; height: 72px; }
.lore-face.pic { overflow: hidden; background: var(--lc); } @supports (color: color-mix(in srgb, red 50%, blue)) { .lore-face.pic { background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--lc) 70%, #fff), var(--lc)); } } .lore-face.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }   /* the character's own picture */
.lore-face i { position: absolute; top: 34%; width: 18%; height: 18%; border-radius: 50%; background: #1a1424; box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .7); }
.lore-face i:first-child { left: 26%; } .lore-face i:nth-child(2) { right: 26%; }
.lore-face b { position: absolute; left: 34%; right: 34%; top: 58%; height: 14%; border: 2.5px solid #1a1424; border-top: 0; border-radius: 0 0 99px 99px; }
.lore-intro { opacity: .8; text-align: center; }
.lore-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lore-list button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(246, 194, 74, .14); }
.lore-list button:hover, .lore-list button:focus-visible { background: rgba(246, 194, 74, .12); }
.lore-list b { display: block; font: 400 15px/1.1 var(--gw-title); letter-spacing: .3px; }
.lore-list small { display: block; opacity: .75; font-size: 11.5px; }
.lore-list i { display: block; font-style: normal; font-size: 12px; opacity: .9; margin-top: 2px; }
/* Y7, AS: the Where To? card beside an open door (a panel; home.js sets left/top beside the door, a phone has it as a sheet) */
#pan-d { left: calc(50% - 135px); top: 90px; width: 270px; max-height: min(520px, calc(var(--vh) - 190px)); animation: gwPop .32s cubic-bezier(.2, 1.45, .4, 1); }   /* (pops in with a spring) */
body.no-fx #pan-d { animation: gwFade .15s ease-out; }
#pan-d .pan-body { padding: 7px; overflow-y: auto; }
.wt-big { box-sizing: border-box; position: relative; display: block; width: 100%; aspect-ratio: 16 / 7; padding: 0; overflow: hidden; border-radius: 11px; border: 2px solid var(--gold-line); background: #1a1830; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.wt-big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.wt-big:hover:not(:disabled) img { transform: scale(1.04); } .wt-big:active:not(:disabled) { transform: scale(.97); }
.wt-big > span { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; padding: 16px 10px 6px; background: linear-gradient(180deg, transparent, rgba(10, 8, 24, .82)); }
.wt-big b { font: 400 19px/1.05 var(--gw-title); letter-spacing: .5px; text-shadow: 0 1px 0 #000; } .wt-big small { font-size: 11.5px; font-weight: 600; opacity: .85; }
.wt-big.here { cursor: default; } .wt-big.here img { filter: saturate(.5) brightness(.75); }
.wt-h { margin: 8px 2px 4px; font: 700 10.5px/1 var(--gw-font); letter-spacing: .8px; text-transform: uppercase; color: var(--dim); }
.wt-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.wt-row { box-sizing: border-box; min-width: 0; min-height: 42px; display: flex; align-items: center; gap: 8px; width: 100%; padding: 4px 8px 4px 4px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--cream); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.wt-row:hover:not(:disabled) { border-color: var(--gold); background: rgba(246, 194, 74, .12); } .wt-row:active:not(:disabled) { transform: scale(.98); }
.wt-row.here { opacity: .5; cursor: default; }
.wt-pic { flex: none; display: grid; place-items: center; width: 56px; height: 32px; overflow: hidden; border-radius: 6px; background: var(--glass2); border: 1px solid var(--hair); }
.wt-pic.wt-room { width: 80px; height: 45px; background: #1c1730; } .wt-pic.wt-room img { display: block; }
.wt-pic img { width: 100%; height: 100%; object-fit: cover; } .wt-pic > svg { width: 20px; height: 20px; } .wt-pic .hd { width: 30px; height: 30px; }
.wt-n { flex: 1; min-width: 0; display: flex; flex-direction: column; } .wt-n b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-n small { color: var(--dim); font-size: 11px; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-row em { flex: none; display: flex; align-items: center; gap: 4px; font: 700 10.5px/1 var(--gw-font); font-style: normal; color: var(--dim); white-space: nowrap; }
.wt-row em.lock { color: var(--honey); } .wt-row em svg { width: 12px; height: 12px; }
/* AS: hovering a door or gate on a PC: a small tip by the pointer, the same size at any zoom */
.door-tip { position: fixed; left: 0; top: 0; z-index: 22; pointer-events: none; padding: 4px 9px; border-radius: 8px; border: 1px solid var(--gold-line); background: rgba(22, 20, 44, .92); color: var(--cream); font: 700 12px/1.2 var(--gw-font); white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.door-tip[hidden] { display: none; }
@media (max-width: 680px) { #pan-d { left: 6px; right: 6px; width: auto; top: auto; max-height: 52dvh; } .wt-big { aspect-ratio: 16 / 5; } }   /* (a phone: a sheet over the bottom bar, as the other panels) */
/* AB2b: Jazzy John's songbook (app/busker.js) */
.busk-now { margin: 8px 2px 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--cream); font: 600 13px/1.35 var(--gw-font); }
.busk-now svg { width: 16px; height: 16px; }
.busk-list { display: flex; flex-direction: column; gap: 4px; }
.busk-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.busk-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: var(--cream); font: 700 14px/1.2 var(--gw-font); }
.busk-row small { color: var(--dim); font: 600 11.5px/1.3 var(--gw-font); }
.busk-row .gw-btn { flex: none; display: flex; align-items: center; gap: 4px; padding: 6px 10px; font-size: 13px; }
.busk-row .gw-btn svg { width: 14px; height: 14px; }
.juke-on { flex: none; display: flex; align-items: center; gap: 4px; padding: 6px 10px; color: var(--gold, #ffd34a); font: 700 13px/1 var(--gw-font); }   /* AD7: the lounge jukebox's song that plays now */
.juke-on svg { width: 14px; height: 14px; }
.busk-how { margin: 8px 2px 0; color: var(--dim); font: 600 12px/1.4 var(--gw-font); }
/* AC1 (Jesse, 2026-10-18): Jazzy John's instruments. The play panel over the bottom bar (app/instrument.js): eight big keys in the
   rainbow of the xylophone's caps, Beat / the learned tune / Lesson, and the lesson's lane where the notes fall onto the keys */
.inst-panel { position: fixed; left: 50%; bottom: calc(var(--dockH, 70px) + 14px + var(--bot-b) / var(--ui, 1)); transform: translateX(-50%); z-index: 26; width: min(520px, calc(var(--vw) - 24px)); box-sizing: border-box; padding: 8px 10px 10px; border-radius: 16px; border: 2px solid var(--gold-line); background: var(--glass); box-shadow: 0 0 0 1px #000, 0 6px 20px rgba(0, 0, 0, .5); color: var(--cream); font: 600 13px/1.2 var(--gw-font); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
body.stack.in-room .inst-panel { bottom: calc(var(--dockH, 70px) + 74px + var(--bot-b) / var(--ui, 1)); }   /* over the chat bar row */
.ip-top { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.ip-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; }
.ip-name b { font: 400 15px/1 var(--gw-title); color: var(--honey); letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; }
.ip-name svg, .ip-btn svg { width: 16px; height: 16px; flex: none; }
.ip-btn { flex: none; display: flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--cream); font: 700 12.5px/1 var(--gw-font); white-space: nowrap; max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
.ip-btn.on { border-color: var(--gold); background: rgba(255, 211, 74, .18); color: var(--honey); }
.ip-btn.tune { border-color: rgba(82, 192, 112, .7); background: rgba(82, 192, 112, .18); }
.ip-btn.lesson { border-color: rgba(185, 138, 255, .7); background: rgba(185, 138, 255, .18); }
.ip-btn:disabled { opacity: .5; }
.ip-x { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #4a0f1c; background: var(--ruby); color: #fff; padding: 0; }
.ip-x svg { width: 14px; height: 14px; }
.ip-keys { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
.ip-key { position: relative; height: 64px; border-radius: 10px; border: 2px solid rgba(0, 0, 0, .55); background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .25)), var(--kc); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .22), 0 2px 0 rgba(0, 0, 0, .4); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 1px; padding: 0 0 6px; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.ip-key b { font: 400 18px/1 var(--gw-title); } .ip-key small { font: 700 10px/1 var(--gw-font); opacity: .85; }
.ip-key:active, .ip-key.hit { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .22); }
.ip-key.hit::after { content: ''; position: absolute; inset: -3px; border-radius: 12px; box-shadow: 0 0 12px 2px var(--kc); animation: ip-glow .35s ease-out forwards; pointer-events: none; }
@keyframes ip-glow { from { opacity: 1; } to { opacity: 0; } }
.no-fx .ip-key.hit::after { animation: none; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .ip-key.hit::after { animation: none; opacity: 0; } }
.ip-lane { position: relative; height: 130px; margin-bottom: 6px; border-radius: 10px; background: rgba(0, 0, 0, .28); overflow: hidden; }
.ip-lane[hidden] { display: none; }
.ip-line { position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--gold); box-shadow: 0 0 6px var(--gold); opacity: .8; }
.ip-fall { position: absolute; top: 38px; left: calc(var(--x) * ((100% - 35px) / 8 + 5px) + (100% - 35px) / 16 - 14px); width: 28px; height: 12px; border-radius: 6px; background: var(--kc); border: 1px solid rgba(0, 0, 0, .5); box-shadow: 0 0 6px var(--kc); opacity: 0; will-change: transform; }
.ip-fall.got { animation: ip-got .4s ease-out forwards; }
@keyframes ip-got { to { opacity: 0; scale: 1.8; } }
.no-fx .ip-fall.got { animation: none; opacity: 0 !important; }
.ip-john { position: absolute; left: 6px; top: 6px; right: 6px; display: flex; align-items: center; gap: 6px; color: var(--dim); font: 600 11.5px/1.3 var(--gw-font); pointer-events: none; }
.ip-john img { width: 28px; height: 28px; border-radius: 50%; background: rgba(185, 138, 255, .25); flex: none; object-fit: cover; }
.ip-count { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); font: 400 40px/1 var(--gw-title); color: var(--honey); text-shadow: 0 2px 0 #000; }
.ip-res { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; align-items: center; gap: 10px; color: var(--cream); font: 700 14px/1 var(--gw-font); }
.busk-st { flex: none; display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 9px; border: 1px solid var(--line); color: var(--dim); font: 700 12px/1 var(--gw-font); }
.busk-st svg { width: 13px; height: 13px; } .busk-st.ready { color: var(--honey); border-color: var(--hair); } .busk-st.got { color: #8fe0a4; border-color: rgba(82, 192, 112, .6); }
/* AE3: the play panel's three modes, the place songs and the progress bar */
.ip-modes { flex: none; display: flex; gap: 2px; padding: 2px; border-radius: 11px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.ip-mode { display: flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 9px; border: 0; background: none; color: var(--dim); font: 700 12.5px/1 var(--gw-font); white-space: nowrap; }
.ip-mode svg { width: 15px; height: 15px; flex: none; }
.ip-mode.on { background: linear-gradient(#ffd86a, #e0a02a); color: #3a2400; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); }
.ip-songs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-bottom: 8px; }
.ip-song { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 5px 8px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--cream); text-align: left; }
.ip-song b { font: 700 12.5px/1.1 var(--gw-font); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-song small { font: 600 10.5px/1 var(--gw-font); color: var(--dim); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-song.on { border-color: var(--gold); background: rgba(255, 211, 74, .16); } .ip-song.on b { color: var(--honey); }
.ip-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ip-row:last-child { margin-bottom: 0; }
.ip-go { flex: none; display: flex; align-items: center; gap: 6px; max-width: 60%; overflow: hidden; white-space: nowrap; }
.ip-go svg { width: 16px; height: 16px; flex: none; }
.ip-prog { flex: 1; height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .35); overflow: hidden; border: 1px solid rgba(0, 0, 0, .4); }
.ip-prog i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #f6c24a, #ffd86a); box-shadow: 0 0 6px rgba(255, 211, 74, .6); transition: width .2s linear; }
/* AF2: Learn the Song (the falling notes, the next key, the judge words, the stars), Free Play's beat and tempo, Play Together */
.ip-song small { display: flex; align-items: center; gap: 4px; } .ip-song small span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ip-st { display: inline-flex; gap: 1px; flex: none; } .ip-st i { display: grid; color: rgba(255, 255, 255, .22); } .ip-st i.on { color: var(--honey); filter: drop-shadow(0 0 3px rgba(255, 211, 74, .6)); }
.ip-st svg { width: 10px; height: 10px; } .ip-st.sm svg { width: 12px; height: 12px; vertical-align: -2px; } .ip-st.big svg { width: 26px; height: 26px; }
.ip-st.big i.on { animation: ip-star .45s cubic-bezier(.3, 1.6, .5, 1) backwards; } .ip-st.big i:nth-child(2) { animation-delay: .15s; } .ip-st.big i:nth-child(3) { animation-delay: .3s; }
@keyframes ip-star { from { transform: scale(0) rotate(-40deg); } }
.ip-opts { flex-wrap: wrap; gap: 6px; }
.ip-seg { flex: none; display: flex; gap: 2px; padding: 2px; border-radius: 10px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.ip-seg button { padding: 4px 7px; border-radius: 8px; border: 0; background: none; color: var(--dim); font: 700 12px/1 var(--gw-font); }
.ip-seg button.on { background: linear-gradient(#ffd86a, #e0a02a); color: #3a2400; }
.ip-sel { flex: none; max-width: 40%; padding: 5px 6px; border-radius: 10px; border: 1px solid var(--line); background: #1b2440; color: var(--cream); font: 700 12.5px/1 var(--gw-font); }
.ip-tempo { flex: none; display: flex; align-items: center; gap: 4px; } .ip-tempo b { min-width: 28px; text-align: center; font: 400 15px/1 var(--gw-title); color: var(--honey); } .ip-tempo small { color: var(--dim); font: 700 10px/1 var(--gw-font); margin-right: 2px; }
.ip-tempo .ip-btn { width: 28px; justify-content: center; padding: 4px 0; font-size: 15px; }
.ip-learn { height: 150px; }
.inst-panel.running .ip-songs, .inst-panel.running .ip-opts { display: none; }
.inst-panel.running .ip-learn { height: 190px; }
.ip-fall.miss { opacity: .35 !important; filter: grayscale(1); }
.ip-intro { position: absolute; left: 10px; right: 10px; top: 50%; transform: translateY(-50%); text-align: center; color: var(--dim); font: 600 12.5px/1.35 var(--gw-font); }
.ip-combo { position: absolute; right: 8px; top: 6px; color: var(--honey); font: 400 15px/1 var(--gw-title); text-shadow: 0 1px 0 #000; }
.ip-judge { position: absolute; bottom: 14px; left: calc(var(--x) * ((100% - 35px) / 8 + 5px) + (100% - 35px) / 16); transform: translateX(-50%); color: #bfe8ff; font: 400 12px/1 var(--gw-title); font-style: normal; text-shadow: 0 1px 0 #000; pointer-events: none; animation: ip-judge .6s ease-out forwards; }
.ip-judge.top { color: var(--honey); }
@keyframes ip-judge { from { opacity: 1; translate: 0 0; } to { opacity: 0; translate: 0 -26px; } }
.ip-key.next { outline: 3px solid #fff; outline-offset: -1px; box-shadow: 0 0 14px 3px var(--kc), inset 0 -5px 0 rgba(0, 0, 0, .22); }
.ip-res.learn { top: 8px; bottom: 8px; flex-direction: column; gap: 6px; background: rgba(10, 14, 30, .78); border-radius: 10px; margin: 0 6px; font-size: 12.5px; text-align: center; }
.ip-res small { color: var(--dim); font: 600 11.5px/1 var(--gw-font); }
.ip-clean { color: var(--honey); font: 400 18px/1 var(--gw-title); text-shadow: 0 0 10px rgba(255, 211, 74, .7); animation: ip-star .5s cubic-bezier(.3, 1.6, .5, 1) .4s backwards; }
.ip-practice { font: 400 16px/1 var(--gw-title); color: var(--cream); }
.ip-jam { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 6px 8px; border-radius: 10px; border: 1px solid rgba(82, 192, 112, .6); background: rgba(82, 192, 112, .14); font: 600 12.5px/1.25 var(--gw-font); }
.ip-jam span { flex: 1; min-width: 0; } .ip-jam svg { width: 16px; height: 16px; flex: none; }
/* AG: Play Together: the beat light, the count-in, the players strip and the notice line */
.ip-jam { flex-wrap: wrap; row-gap: 5px; } .ip-jam span { min-width: 90px; } .ip-jam .ip-btn { padding: 3px 8px; font-size: 12px; } .ip-jam .gw-btn { flex: none; }
.ip-beat { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #6fe08a; opacity: .4; }
.ip-beat.b { animation: ip-beat .4s ease-out; }
@keyframes ip-beat { 0% { opacity: 1; transform: scale(1.6); box-shadow: 0 0 10px 3px rgba(111, 224, 138, .85); } 100% { opacity: .4; transform: none; box-shadow: 0 0 0 0 rgba(111, 224, 138, 0); } }
.ip-jcount { flex: none; font: 400 12px/1 var(--gw-title); color: var(--honey); } .ip-jcount.num { font-size: 26px; min-width: 1ch; text-align: center; }
.ip-jambox:empty { display: none; }
.ip-players { display: flex; flex-wrap: wrap; align-items: stretch; gap: 4px; margin: -2px 0 4px; }
.ip-pl { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 3px 8px; border-radius: 9px; border: 1px solid var(--line); background: rgba(0, 0, 0, .22); }
.ip-pl b { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 12px/1.1 var(--gw-font); }
.ip-pl small { font: 600 10.5px/1 var(--gw-font); color: var(--dim); text-transform: capitalize; }
.ip-pl.me { border-color: rgba(255, 211, 74, .55); } .ip-pl.host b { color: var(--honey); }
.ip-cap { margin-left: auto; align-self: center; color: var(--dim); font: 600 10.5px/1 var(--gw-font); } .ip-full { color: var(--dim); font: 700 11px/1 var(--gw-font); }
.ip-jnote { height: 15px; margin: 0 0 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--honey); font: 600 11.5px/15px var(--gw-font); }
.inst-panel.running.jam-host .ip-songs { display: grid; }
.ip-btn.together { border-color: rgba(82, 192, 112, .7); background: rgba(82, 192, 112, .18); }
.no-fx .ip-st.big i.on, .no-fx .ip-clean, .no-fx .ip-judge { animation: none; }
@media (prefers-reduced-motion: reduce) { .ip-st.big i.on, .ip-clean, .ip-judge { animation: none; } }
@media (max-height: 700px) { .ip-learn { height: 110px; } .inst-panel.running .ip-learn { height: 130px; } }   /* (a short screen: the lane gives way, the keys stay big) */
.ip-ok { display: flex; align-items: center; gap: 4px; color: #8fe0a4; font: 700 12px/1 var(--gw-font); } .ip-ok svg { width: 14px; height: 14px; }
@media (max-width: 480px) { .inst-panel { padding: 6px 7px 8px; } .ip-key { height: 56px; } .ip-btn { padding: 5px 7px; font-size: 12px; } .ip-mode { padding: 5px 6px; } .ip-mode span { display: none; } .ip-mode.on span { display: inline; } .ip-song { padding: 4px 6px; } }
/* AB1: Buzzweed: a planter's window, Professor Puff's Sell tab (app/grow.js) */
.grow-pot { display: grid; gap: 8px; }
.grow-head { display: flex; gap: 6px; flex-wrap: wrap; }
.grow-head .chip:first-child, .grow-strains .chip.got { background: #2a2036; border: 1px solid var(--sc); color: #fff; } @supports (color: color-mix(in srgb, red 50%, blue)) { .grow-head .chip:first-child, .grow-strains .chip.got { background: color-mix(in srgb, var(--sc) 30%, #1c1426); } }
.grow-lead { margin: 0; }
.grow-ripe { color: var(--gold); } .grow-dry { color: #ffb070; }
.grow-bar { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 8px; font-size: 12.5px; }
.grow-bar span { color: var(--dim); } .grow-bar b { min-width: 46px; text-align: right; }
.grow-bar.water .belly-bar i { background: #5ab0e8; }
.grow-bar.water.dry .belly-bar { box-shadow: 0 0 0 1px #ffb070; animation: grow-thirst 1.6s ease-in-out infinite; }
@keyframes grow-thirst { 50% { box-shadow: 0 0 0 1px #ffb070, 0 0 8px rgba(255, 176, 112, .55); } }
/* AD4: the seeds you can plant as picture tiles; the four stages in a row, the one it's at lit in the strain's colour */
.grow-seeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.grow-seed { display: flex; align-items: center; gap: 6px; padding: 5px 8px 5px 5px; border-radius: 10px; border: 1px solid var(--sc); background: #1c1426; color: var(--cream); text-align: left; cursor: pointer; font: inherit; min-height: 44px; transition: transform .12s, background .12s; } @supports (color: color-mix(in srgb, red 50%, blue)) { .grow-seed { border-color: color-mix(in srgb, var(--sc) 55%, transparent); background: color-mix(in srgb, var(--sc) 14%, #1c1426); } }
.grow-seed:hover:not(:disabled) { transform: translateY(-1px); background: #2a2036; } @supports (color: color-mix(in srgb, red 50%, blue)) { .grow-seed:hover:not(:disabled) { background: color-mix(in srgb, var(--sc) 26%, #1c1426); } }
.grow-seed:disabled { opacity: .5; cursor: default; }
.grow-seed span { display: grid; min-width: 0; } .grow-seed b { font-size: 13px; } .grow-seed small { opacity: .75; font-size: 11px; }
.grow-seeds .thumb.mini { width: 34px; height: 34px; flex: none; } .grow-sell .thumb.mini { width: 34px; height: 34px; }
.grow-stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin: 0; padding: 0; list-style: none; }
.grow-stages li { padding: 4px 2px; border-radius: 7px; background: rgba(255, 255, 255, .06); color: var(--dim); font: 700 10.5px/1.2 var(--gw-font); letter-spacing: .4px; text-align: center; text-transform: uppercase; }
.grow-stages li.done { background: #2a2036; color: #fff; } @supports (color: color-mix(in srgb, red 50%, blue)) { .grow-stages li.done { background: color-mix(in srgb, var(--sc) 22%, #1c1426); color: #fff; } }
.grow-stages li.on { background: #3a2c48; color: #fff; box-shadow: 0 0 0 1px var(--sc); } @supports (color: color-mix(in srgb, red 50%, blue)) { .grow-stages li.on { background: color-mix(in srgb, var(--sc) 45%, #1c1426); color: #fff; box-shadow: 0 0 0 1px var(--sc); } }
.grow-strains { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; align-items: center; }
.grow-strains .gw-sec { flex-basis: 100%; }
.grow-strains .chip.plain { opacity: .55; }
.grow-note { margin: 6px 0 8px; }
/* F4 (2026-11-01): the planter window: the planter and its plant from the real models, picture seed cards, no shop in it */
.grow-hero { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; }
.grow-pic { width: 96px; height: 96px; object-fit: contain; border-radius: 14px; background: radial-gradient(circle at 50% 62%, rgba(255, 255, 255, .09), transparent 68%); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
.grow-hero .grow-head { margin-bottom: 4px; }
.grow-pot .grow-seeds { grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); }
.grow-pot .grow-seed { flex-direction: column; justify-content: center; gap: 2px; padding: 8px 6px 7px; text-align: center; }
.grow-pot .grow-seed .thumb.mini { width: 52px; height: 52px; }
.grow-pot .grow-seed:active:not(:disabled) { transform: scale(.95); }
.grow-none { display: grid; gap: 8px; padding: 10px; border-radius: 12px; border: 1px dashed var(--hair); text-align: center; } .grow-none p { margin: 0; }
.grow-pot .acts { display: grid; gap: 8px; } .grow-pot .acts .gw-btn { min-height: 40px; }
/* F4: a vendor's window away from the counter: a browse (prices, no Buy) and one Walk To */
.vend-away { display: flex; align-items: center; gap: 10px; margin: 8px 0; padding: 8px 8px 8px 12px; border-radius: 12px; border: 1px solid var(--gold-line); background: rgba(246, 194, 74, .1); }
.vend-away > span { display: grid; flex: 1; min-width: 0; } .vend-away b { font: 700 14px/1.25 var(--gw-font); color: var(--cream); } .vend-away small { color: var(--dim); font-size: 12.5px; }
.vend-away .gw-btn { flex: none; min-height: 40px; }
@media (max-width: 400px) { .vend-away { flex-wrap: wrap; } .vend-away .gw-btn { flex: 1 1 100%; } }
.sti-grid.browse [data-present] { display: none; }
.sti-price { display: inline-flex; align-items: center; gap: 3px; color: var(--gold); white-space: nowrap; } .sti-price .ic { width: 16px; height: 16px; }
/* AC1: Barnaby's journal (app/journal.js): the pieces in story order on old paper, a found piece's reveal, the trip's story panels */
.bj { padding: 10px 12px 14px; border-radius: 12px; background: #efe2c2 radial-gradient(circle at 80% 0, rgba(255, 255, 255, .45), transparent 60%); color: #2e2618; box-shadow: inset 0 0 36px rgba(110, 80, 30, .25); }
.bj-intro { margin: 0 0 10px; font: italic 600 14px/1.3 Georgia, serif; text-align: center; }
.bj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.bj-p { display: grid; justify-items: center; gap: 3px; padding: 8px; border: 1.5px dashed rgba(90, 64, 30, .45); border-radius: 10px; text-align: center; }
.bj-p.on { border-style: solid; background: rgba(255, 250, 235, .6); }
.bj-p b { font: 700 13px var(--gw-font); }
.bj-p p { margin: 0; font: italic 12px/1.3 Georgia, serif; }
.bj-p:not(.on) p { opacity: .55; }
.bj-pic { display: grid; place-items: center; width: 64px; height: 64px; }
.bj-pic img, .bj-pic svg { width: 100%; height: 100%; object-fit: contain; }
.bj-pic.q { border-radius: 50%; background: rgba(90, 64, 30, .12); font: 400 30px var(--gw-title); color: rgba(90, 64, 30, .55); }
.bj-end { margin: 12px 0 0; font: italic 700 13px Georgia, serif; text-align: center; color: #3a58c8; }
.bj-found { display: grid; justify-items: center; gap: 6px; text-align: center; }
.bj-found .bj-pic { width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 215, 122, .45), transparent 70%); }
.bj-found p { margin: 0; font: italic 14px/1.35 Georgia, serif; color: #f2e6c8; }
.bj-found small { opacity: .75; }
.bj-found.pop .bj-pic { animation: bj-pop .7s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes bj-pop { from { transform: scale(.3) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.bj-tag { margin: 0; font: italic 600 12px Georgia, serif; color: #ffd77a; }
.bj-trip { display: grid; gap: 8px; text-align: center; }
.bj-trip.fade .bj-scene { animation: bj-in .6s ease-out both; }
@keyframes bj-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bj-scene { width: 100%; height: auto; border-radius: 12px; border: 2px solid rgba(246, 194, 74, .55); }
#talk .bj-scene { display: block; width: auto; max-width: 100%; max-height: 30vh; margin: 0 auto; }
.bj-trip p { margin: 0; font: italic 15px/1.4 Georgia, serif; }
.bj-dots { letter-spacing: 3px; opacity: .6; }
.times .sight p { font-style: italic; }
/* AC3: the Mayor's welcome (app/errands.js openWelcome): his picture, his words in a parchment bubble, a dot a line; the last line a red ribbon across, snipped in two */
.welcome { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; }
.welcome-pic { width: 112px; height: 112px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .5)); }
.welcome-say { position: relative; padding: 10px 14px; border-radius: 14px; background: #fff3d6; color: #3a2412; box-shadow: 0 2px 0 #c8955a; }
.welcome-say::before { content: ''; position: absolute; left: -9px; top: 40%; border: 9px solid transparent; border-left: 0; border-right-color: #fff3d6; }
.welcome-say b { display: block; font: 400 15px var(--gw-title); letter-spacing: .5px; color: #8a2a3a; } .welcome-say p { margin: 4px 0 8px; font: 500 14px/1.4 var(--gw-font); min-height: 3.6em; }
.welcome-dots { display: flex; gap: 4px; } .welcome-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(138, 42, 58, .25); } .welcome-dots i.on { background: #8a2a3a; }
.welcome-ribbon { position: relative; display: flex; height: 18px; margin: 14px 0 4px; } .welcome-ribbon span { flex: 1; background: linear-gradient(#e8394c, #a8182a); box-shadow: 0 2px 3px rgba(0, 0, 0, .35); transition: transform .9s cubic-bezier(.3, .8, .3, 1), opacity .9s; }
.welcome-ribbon.cut span:first-child { transform: translate(-8%, 26px) rotate(-14deg); opacity: 0; } .welcome-ribbon.cut span:last-child { transform: translate(8%, 26px) rotate(14deg); opacity: 0; }
.welcome-foot { display: flex; justify-content: center; margin-top: 12px; }
@media (max-width: 420px) { .welcome { grid-template-columns: 76px minmax(0, 1fr); } .welcome-pic { width: 76px; height: 76px; } }
/* AD3: the Shop's Wishlist tab: shop cards with where-to-get-it lines, a sort, a heart that takes its card away */
.sti p.wish-at { display: flex; align-items: flex-start; gap: 5px; min-height: 0; margin: 4px 0 0; font: 600 12px/1.3 var(--gw-font); color: var(--cream); }
.sti p.wish-at[hidden] { display: none; }
.sti p.wish-at .ico { flex: none; width: 13px; height: 13px; margin-top: 1px; color: var(--gold); }
.sti p.wish-at.now { color: #9ff07a; } .sti p.wish-at.now .ico { color: #9ff07a; animation: gemTwinkle 1.6s ease-in-out infinite; }
.sti p.wish-at.mk .linkish { font: inherit; text-align: left; }
.wish-grid .sti { transition: transform .25s, opacity .25s; } .wish-grid .sti.wish-gone { transform: scale(.85); opacity: 0; }
.wish-b.beat { animation: bump .35s ease-out; }
body.no-fx .sti p.wish-at.now .ico, body.no-fx .wish-b.beat, body.no-fx .bs-pick.picked .chatb, body.no-fx .seg.bub-seg button.picked { animation: none; }
@media (prefers-reduced-motion: reduce) { .sti p.wish-at.now .ico, .wish-b.beat, .bs-pick.picked .chatb, .seg.bub-seg button.picked { animation: none; } }
/* AF1: what your fly holds: the Items tab's folders. Jesse #15: the action buttons (app/hand.js) sit where the Click button does: one big
   Eat / Drink / Smoke and a small round Put Away (the Click button wins in the ring: hand.js hides these there) */
.hand-act[hidden], body.editing .hand-act, body:has(#play.open, #instPanel) .hand-act { display: none; }   /* (the decorate tray, a play window and the instrument panel have the bottom) */
.hand-btn { position: relative; width: 104px; height: 104px; border-radius: 50%; border: 3px solid #123a10; background: radial-gradient(circle at 38% 30%, #e4f7ae, #8fd35a 52%, #3f9a2c); color: #f4ffe4; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  box-shadow: 0 6px 0 #1f6a1c, 0 10px 24px rgba(0, 0, 0, .45), inset 0 -6px 12px rgba(10, 70, 0, .35), inset 0 4px 8px rgba(255, 255, 255, .35); touch-action: manipulation; user-select: none; -webkit-tap-highlight-color: transparent; animation: gwPop .3s ease-out; }
.hand-btn b { font: 400 27px/1 var(--gw-title); letter-spacing: 1px; text-shadow: 0 2px 0 #1f6a1c; }
.hand-btn small { font: 600 10.5px/1 var(--gw-font); opacity: .75; text-transform: uppercase; letter-spacing: .8px; }
.hand-btn:hover { filter: brightness(1.06); } .hand-btn:active { transform: translateY(5px) scale(.95); box-shadow: 0 1px 0 #1f6a1c, 0 4px 10px rgba(0, 0, 0, .4), inset 0 -4px 10px rgba(10, 70, 0, .35); }
.hand-btn .hb-bar { position: absolute; left: 24px; right: 24px; bottom: 13px; height: 5px; border-radius: 3px; background: rgba(10, 50, 0, .45); overflow: hidden; }
.hand-btn .hb-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f3c27a, #fff0c0); transition: width 1s linear; }
.hand-away { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--gold-line); background: radial-gradient(circle at 40% 32%, rgba(255, 236, 190, .16), rgba(0, 0, 0, .35) 70%), var(--glass); color: var(--cream); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 0; box-shadow: 0 0 0 1px #000, 0 4px 14px rgba(0, 0, 0, .4); touch-action: manipulation; -webkit-tap-highlight-color: transparent; animation: gwPop .3s ease-out; }
.hand-away:hover { filter: brightness(1.15); } .hand-away:active { transform: scale(.92); }
.hand-away .ha-pic { display: grid; place-items: center; width: 30px; height: 30px; } .hand-away .ha-pic img { width: 30px; height: 30px; }
.hand-away small { font: 600 9px/1 var(--gw-font); text-transform: uppercase; letter-spacing: .3px; color: var(--dim); }
@media (pointer: coarse) { .hand-btn small { display: none; } }
@media (max-width: 680px) { .inv-side .items-fold { display: none; } }
.wd-tile .inhand { position: absolute; bottom: 30px; right: 6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #2a5a34; box-shadow: 0 0 0 1px #000, 0 0 8px rgba(120, 230, 140, .5); }
.wd-tile .inhand .ico { width: 14px; height: 14px; }
.bag-detail .in-hand { display: flex; align-items: center; gap: 6px; color: #bff5cc; }
.items-fold { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
body.no-fx .hand-btn, body.no-fx .hand-away { animation: none; }
.sti-f:has(.take-row) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; align-items: stretch; } .take-row { display: flex; gap: 6px; min-width: 0; } .take-row .gw-btn { justify-content: center; white-space: nowrap; min-width: 0; min-height: 36px; } .take-row [data-take] { flex: 1; } .take-row .to-bag { flex: none; width: 40px; padding: 0; } .take-row .to-bag .ico { width: 18px; height: 18px; margin: 0; } .take-row .tb-l { display: none; }   /* AJ2: a counter's Takeaway / To Bag (polish r5: one orange button and a ghost bag; the item sheet spells To Bag out) */
@media (prefers-reduced-motion: reduce) { .hand-btn, .hand-away { animation: none; } }
/* AJ (Jesse, 2026-10-19): the "!" markers are drawn, not typed (Lilita's "!" lost its dot at this size: it read as a line) */
.tag .tag-bang, .juice-cup .jc-bang { font-size: 0; }
.tag .tag-bang::before, .juice-cup .jc-bang::before, .tag .tag-bang::after, .juice-cup .jc-bang::after { content: ''; position: absolute; left: 50%; background: #fff; border-radius: 2px; transform: translateX(-50%); }
.tag .tag-bang::before { top: 4px; width: 4px; height: 10px; border-radius: 2px 2px 1.5px 1.5px; }
.tag .tag-bang::after { top: 16px; width: 4px; height: 4px; border-radius: 50%; }
.juice-cup .jc-bang { position: absolute; }
.juice-cup .jc-bang::before { top: 3px; width: 3px; height: 8px; }
.juice-cup .jc-bang::after { top: 13px; width: 3px; height: 3px; border-radius: 50%; }

/* ---------- AL (Jesse, 2026-10-19): the phone UI. Played from a home-screen icon (black-translucent: the page runs under the
   status bar) and in Safari tabs, so everything keeps to env(safe-area-inset-*). Desktop and tablets stay as they were ---------- */
@supports (height: 100dvh) { :root { --vh: calc(100dvh / var(--ui)); } }   /* (iOS: 100dvh is the screen with Safari's bars folded away, taller than what shows: windows ran off the top and bottom) */
#gwBack:not(.side) { box-sizing: border-box; padding: env(safe-area-inset-top, 0px) var(--pad-r) var(--pad-b) var(--pad-l); }
#gwBack.side { padding-right: max(24px, calc(var(--pad-r) + 12px)); }   /* (the side drawer's close button hangs 12 px over its edge) */
/* a tab row past the window's edge: a fading arrow at that side, tap to scroll (windows.js tabEdges); the row itself no longer fades */
.gw-tabs { -webkit-mask-image: none !important; mask-image: none !important; animation: none !important; }
.tab-more { display: none; position: absolute; z-index: 3; width: 52px; padding: 0; border: 0; border-radius: 0; background: linear-gradient(90deg, rgba(40, 38, 62, 0), #28263e 55%); cursor: pointer; }
.tab-more.l { background: linear-gradient(270deg, rgba(40, 38, 62, 0), #28263e 55%); }
.tab-more.on { display: grid; place-items: center end; padding: 0 7px; } .tab-more.l.on { place-items: center start; }
.tab-more::before { content: ''; width: 8px; height: 8px; margin-top: 4px; border: solid var(--honey); border-width: 0 3px 3px 0; border-radius: 1px; transform: rotate(-45deg); filter: drop-shadow(0 0 3px rgba(246, 194, 74, .6)); }
.tab-more.l::before { transform: rotate(135deg); }
/* tappable labels (a character, a stall) sit over other flies' name tags, which step round them (core.js nameRects) */
.tag.tap { z-index: 7; }
.cb-open { display: none; }
/* the other full-screen layers keep their cards inside the safe area too (no inset on a desktop: unchanged) */
#veil, .reveal { box-sizing: border-box; padding: env(safe-area-inset-top, 0px) var(--pad-r) var(--pad-b) var(--pad-l); }
#elsewhere, #tabLock { padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.mk-unlock { padding: calc(16px + env(safe-area-inset-top, 0px) / var(--ui, 1)) calc(16px + env(safe-area-inset-right, 0px) / var(--ui, 1)) calc(16px + env(safe-area-inset-bottom, 0px) / var(--ui, 1)) calc(16px + env(safe-area-inset-left, 0px) / var(--ui, 1)); }
#hatch { margin-top: calc((env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) / 2 / var(--ui, 1)); max-height: calc(var(--vh) - 56px - (env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px)) / var(--ui, 1)); }
@media (max-width: 680px) {
  /* windows: full-screen sheets under the status bar, the ribbon and a big close button inside the safe area, nothing behind the home indicator */
  #gwBack.open:has(> #gwWin.gw-win) { align-items: stretch; justify-content: stretch; padding: calc(env(safe-area-inset-top, 0px) + 25px * var(--ui, 1)) max(calc(env(safe-area-inset-right, 0px) + 8px), var(--duo-pill)) max(calc(env(safe-area-inset-bottom, 0px) + 8px), var(--corner)) calc(env(safe-area-inset-left, 0px) + 8px); }
  #gwBack > #gwWin.gw-win { flex: 1 1 auto; width: auto; min-width: 0; height: auto; max-height: none; margin: 0; }
  #gwBack > #gwWin.gw-win.small:not(:has(> .gw-tabs)) { align-self: center; max-height: 100%; }   /* (a dialog without tabs stays as tall as it needs) */
  #gwBack > #gwWin > .pop-x { top: 3px; right: 3px; width: 42px; height: 42px; font-size: 20px; }
  .ui-ribbon.big h2 { max-width: calc(var(--vw) - 120px); font-size: 16px; letter-spacing: .8px; }   /* (a long title like The Mayor's Errands fits the ribbon) */
  /* the compact fly card: picture, name, belly; tasks, pass and event in a row under it */
  #flyCard { padding: 3px 5px 3px 3px; gap: 6px; }
  #pfp { width: 42px; height: 42px; } #pfp .mood { width: 18px; height: 18px; right: -4px; bottom: -3px; } #pfp .mood .ico { width: 12px; height: 12px; }
  .fc-txt b { font-size: 14px; max-width: 104px; } .fc-txt span { font-size: 11px; }
  /* the top bar: the logo stays, the word goes */
  .brand { display: flex; } .brand b { display: none; } .brand-logo { margin-right: 0; }
  /* the dock: icons only; a long press shows the name (ui.js peek) */
  #dock .dk { width: 44px; min-width: 44px; padding: 3px 0; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  #dock .dk .well { width: 36px; height: 36px; font-size: 18px; } #dock .dk .well .ico { width: 24px; height: 24px; }   /* (36 + the 3 px rim: one 42 px button each) */
  #dock .dk-t { display: none; }
  /* the chat bar folds into one button; the room box is a pill beside it */
  /* over the dock: --dockH already holds the home indicator's inset (it was counted twice) */
  body.stack.in-room #tray { bottom: calc(var(--dockH, 70px) + 70px); }
  body.stack.in-room .inst-panel { bottom: calc(var(--dockH, 70px) + 70px); }
  .gw-pan, #pan-r, #pan-i, body.in-room .gw-pan, body.in-room #pan-r, body.in-room #pan-i, body.stack.in-room #pan-l { bottom: calc(var(--dockH, 64px) + var(--laneH, 0px) + 14px); max-height: calc(var(--vh) * .56); }
  #pan-r { height: calc(var(--vh) * .56); }
}
@media (max-width: 380px) { #dock .dk { width: 40px; min-width: 40px; } #dock .dk .well { width: 33px; height: 33px; } }
@media (max-width: 360px) { .brand { display: none; } }   /* (the narrowest phones: the wallet's numbers before the logo; the pill keeps its buttons) */
@media (max-width: 680px), (max-height: 520px) and (orientation: landscape) {
  #dock:has(.peek) { z-index: 26; }
  #dock .dk.peek .dk-t { display: block; position: absolute; z-index: 2; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 5px 9px; border-radius: 9px; border: 1px solid var(--gold-line); background: #17162a; color: var(--cream); font: 400 13px/1 var(--gw-title); letter-spacing: .4px; white-space: nowrap; box-shadow: 0 0 0 1px #000, 0 4px 12px rgba(0, 0, 0, .5); animation: gwPop .15s ease-out; }
  #dock .dk-l .dk:first-child.peek .dk-t { left: 0; transform: none; } #dock .dk-r .dk:last-child.peek .dk-t { left: auto; right: 0; transform: none; }
}
@media (max-height: 520px) and (orientation: landscape) {   /* a phone on its side: windows in the safe area with the ribbon showing; the bars clear the notch */
  #gwBack.open:has(> #gwWin.gw-win) { padding: calc(env(safe-area-inset-top, 0px) + 22px * var(--ui, 1)) max(calc(env(safe-area-inset-right, 0px) + 8px), var(--duo-pill)) max(calc(env(safe-area-inset-bottom, 0px) + 6px), var(--corner)) calc(env(safe-area-inset-left, 0px) + 8px); }
  #gwBack > #gwWin.gw-win { height: auto; max-height: none; min-width: 0; margin: 0; align-self: stretch; }
  #gwBack > #gwWin.gw-win.small:not(:has(> .gw-tabs)) { align-self: center; max-height: 100%; }
  #dock { padding-left: calc(12px + env(safe-area-inset-left, 0px) / var(--ui, 1)); padding-right: calc(12px + var(--bot-r) / var(--ui, 1)); }
  #msgr, body.stack #msgr { right: calc(8px + var(--bot-r) / var(--ui, 1)); }
  #pan-l, body.stack.in-room #pan-l { left: calc(12px + env(safe-area-inset-left, 0px) / var(--ui, 1)); }
  #pan-r, #pan-i, body.stack #pan-i { right: calc(8px + var(--sa-r) / var(--ui, 1)); }
  #tray, body.stack.in-room #tray { right: calc(8px + env(safe-area-inset-right, 0px) / var(--ui, 1)); }
}
/* AR1: Settings → Graphics: the Advanced fold under the presets */
@media (pointer: coarse), (max-width: 680px) { #reQ { padding-block: 12px; margin-block: -12px; } }   /* (2026-11-13: the phone link keeps a 40 px tap height without pushing the hint's two lines apart: 16 + 12 + 12 = 40, then the same off again; 2026-11-14: was 10 + 10 = 36; desktop keeps a plain link) */
.gfx-adv { margin: 0 0 6px; } .gfx-adv > summary { display: flex; align-items: center; box-sizing: border-box; min-height: calc(40px / var(--ui, 1)); cursor: pointer; padding: 0 12px; border-radius: 12px; background: rgba(0, 0, 0, .2); box-shadow: inset 0 0 0 1px var(--line); font: 400 15px/1.25 var(--gw-title); letter-spacing: .4px; color: var(--cream); list-style: none; }
.gfx-adv > summary::-webkit-details-marker { display: none; } .gfx-adv > summary::after { content: '▾'; margin-left: auto; padding-left: 8px; opacity: .7; } .gfx-adv[open] > summary { margin-bottom: 6px; }   /* (leftovers 2026-11-14: one 40 px row, open or closed; display block plus the phone block's min-height 40 on top of 18 px padding made the closed fold 58 tall, an empty-looking card) */ .gfx-adv[open] > summary::after { content: '▴'; }
.gfx-adv > summary b { margin-left: 6px; padding: 1px 7px; border-radius: 8px; background: rgba(246, 194, 74, .2); color: var(--honey); font: 700 12px/1.4 var(--gw-font); } .gfx-adv > summary small { margin-left: 4px; color: var(--dim); font: 600 12px/1 var(--gw-font); letter-spacing: 0; }
.gfx-adv .set-row small b { color: var(--honey); } .gfx-adv .set-row .tog { justify-self: end; }
.gfx-adv .set-row:has(.set-res) { grid-template-columns: 1fr; } .gfx-adv .set-res { width: 100%; box-sizing: border-box; }
/* ---- #14: photo mode (app/photo.js; v2 2026-10-21). The camera icon sits in the room bar (top left, after Recentre · My Rooms, in
   every room and place; hidden while decorating, in Play and on the hatch). In photo mode every HUD layer hides and #photoUi shows:
   a top row (Done, Hide UI, Album), the hint, and at the bottom one group of controls (Camera / Look / Light / Fly tabs either side
   of the shutter; the open tab again folds it), the free camera's stick above it; the preview card after a shot. Windows (the
   album) and toasts stay on top. The grid and the Polaroid frame are only here: never in the photo (the frame is drawn into it). ---- */
body.photo-on > :not(#stage, #photoUi, #gwBack, #veil, #toast, #loading, #fatal, svg, script, .confetti), body.photo-on #app > * { visibility: hidden !important; }
#photoUi { position: fixed; inset: 0; z-index: 25; pointer-events: none; font: 600 14px/1.3 var(--gw-font); color: var(--cream); }
#photoUi[hidden], #photoUi [hidden] { display: none !important; }
#photoUi button, #photoUi select, #photoUi input, #photoUi .ph-preview, #photoUi .ph-stick { pointer-events: auto; }
#photoUi .ph-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top, 0px) / var(--ui, 1)) calc(12px + env(safe-area-inset-right, 0px) / var(--ui, 1)) 10px calc(12px + env(safe-area-inset-left, 0px) / var(--ui, 1));
  background: linear-gradient(rgba(10, 8, 22, .55), transparent); zoom: var(--ui, 1); }
#photoUi .ph-title { flex: 1; text-align: center; font: 400 17px/1 var(--gw-title); letter-spacing: .6px; color: var(--honey); text-shadow: 0 2px 0 #000; }
#photoUi .ph-title .ico { width: 20px; height: 20px; vertical-align: -4px; }
#photoUi .ph-x, #photoUi .ph-chip, #photoUi .ph-pose, #photoUi .ph-seg, #photoUi .ph-cap input { border: 2px solid #000; border-radius: 12px; background: var(--glass); color: var(--cream); font: 600 13.5px/1 var(--gw-font); padding: 8px 12px; box-shadow: inset 0 0 0 1px var(--line); }
#photoUi .ph-chip .ico { width: 16px; height: 16px; vertical-align: -3px; margin-right: 2px; }
#photoUi .ph-chip[aria-pressed="true"], #photoUi .ph-seg button[aria-pressed="true"] { color: var(--ink); background: linear-gradient(#ffe08a, #f6c24a); box-shadow: 0 2px 0 var(--gold-d); }
#photoUi .ph-seg { display: inline-flex; padding: 2px; gap: 2px; }
#photoUi .ph-seg button { border: 0; border-radius: 9px; background: transparent; color: var(--cream); font: 600 13px/1 var(--gw-font); padding: 6px 10px; }
#photoUi .ph-hint { position: absolute; left: 50%; top: calc(62px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); margin: 0; padding: 5px 12px; border-radius: 10px; background: rgba(10, 8, 22, .55); font-size: 12px; color: var(--dim); white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; opacity: 0; }
#photoUi .ph-hint.go { animation: phHint 7s forwards; }
@keyframes phHint { 0%, 85% { opacity: 1; } to { opacity: 0; } }
#photoUi .ph-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px calc(10px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, rgba(10, 8, 22, .6)); zoom: var(--ui, 1); }
#photoUi .ph-panel { width: min(560px, 100%); }
#photoUi .ph-group { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border-radius: 14px; background: rgba(16, 14, 30, .78); border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--line); }
#photoUi .ph-row { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
#photoUi .ph-filters { gap: 5px; } #photoUi .ph-filters .ph-chip { padding: 7px 10px; }
#photoUi .ph-sl2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; width: 100%; }
#photoUi .ph-sl { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--dim); min-width: 0; }
#photoUi .ph-sl b { color: var(--cream); font-weight: 600; float: right; } #photoUi .ph-sl input { width: 100%; margin: 0; accent-color: var(--gold); }
#photoUi .ph-cap { width: 100%; } #photoUi .ph-cap input { box-sizing: border-box; width: 100%; padding: 7px 10px; font-size: 14px; }
#photoUi .ph-pose { width: 170px; }
#photoUi .ph-go { display: flex; align-items: center; justify-content: center; gap: 12px; width: min(560px, 100%); }
#photoUi .ph-tabs { flex: 1; display: flex; gap: 4px; } #photoUi .ph-tabs:first-child { justify-content: flex-end; }
#photoUi .ph-tabs button { border: 2px solid #000; border-radius: 12px; background: var(--glass); color: var(--cream); font: 600 13px/1 var(--gw-font); padding: 9px 10px; box-shadow: inset 0 0 0 1px var(--line); }
#photoUi .ph-tabs button[aria-pressed="true"] { color: var(--honey); box-shadow: inset 0 0 0 1px var(--hair), 0 2px 0 var(--gold-d); }
#photoUi .ph-shutter { flex: none; width: 66px; height: 66px; border-radius: 50%; border: 4px solid #fff6dc; background: rgba(0, 0, 0, .25); padding: 5px; box-shadow: 0 0 0 2px #000, 0 4px 12px rgba(0, 0, 0, .5); transition: transform .1s; }
#photoUi .ph-shutter i { display: block; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #ffe08a 45%, #f6c24a); }
#photoUi .ph-shutter:hover { transform: scale(1.05); } #photoUi .ph-shutter:active { transform: scale(.88); }
#photoUi .ph-pad { display: none; width: min(560px, 100%); justify-content: space-between; align-items: flex-end; }
#photoUi.free .ph-pad { display: flex; }
#photoUi .ph-stick { position: relative; width: 92px; height: 92px; border-radius: 50%; background: rgba(16, 14, 30, .55); border: 2px solid #000; box-shadow: inset 0 0 0 2px rgba(255, 246, 220, .18); touch-action: none; }
#photoUi .ph-stick i { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6dc, #c9bb9a); box-shadow: 0 0 0 2px #000; }
#photoUi .ph-lift { display: flex; flex-direction: column; gap: 6px; } #photoUi .ph-lift .ph-chip { touch-action: none; user-select: none; min-width: 64px; }
@media (hover: hover) and (pointer: fine) { #photoUi.free .ph-pad { display: none; } }   /* (a mouse and keys: WASD, Q / E) */
#photoUi .ph-show { display: none; position: absolute; right: calc(12px + env(safe-area-inset-right, 0px) / var(--ui, 1)); top: calc(10px + env(safe-area-inset-top, 0px) / var(--ui, 1)); opacity: .75; zoom: var(--ui, 1); }
#photoUi.clean .ph-top, #photoUi.clean .ph-bottom, #photoUi.clean .ph-hint { display: none; } #photoUi.clean .ph-show { display: block; }
#photoUi .ph-grid { display: none; position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255, 255, 255, .45) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px) calc(66.67% - .5px), rgba(255, 255, 255, .45) calc(66.67% - .5px) calc(66.67% + .5px), transparent calc(66.67% + .5px)),
  linear-gradient(transparent calc(33.33% - .5px), rgba(255, 255, 255, .45) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px) calc(66.67% - .5px), rgba(255, 255, 255, .45) calc(66.67% - .5px) calc(66.67% + .5px), transparent calc(66.67% + .5px)); }
#photoUi.grid .ph-grid { display: block; }
#photoUi .ph-pola { display: none; position: absolute; inset: 0; box-sizing: border-box; border: solid rgba(247, 243, 234, .92); border-width: 4.5vmin 4.5vmin 16vmin; }   /* (photo.js polaRect: the same sizes) */
#photoUi .ph-pola span { position: absolute; left: 0; right: 0; bottom: -16vmin; height: 16vmin; display: grid; place-items: center; color: #4a4260; font: 600 5.4vmin/1 var(--gw-font); white-space: nowrap; overflow: hidden; }
#photoUi.pola .ph-pola { display: block; }
#photoUi .ph-names span { position: absolute; left: 0; top: 0; padding: 2px 8px; border-radius: 8px; background: rgba(20, 18, 40, .78); color: #fff6dc; font-size: 13px; white-space: nowrap; }
#photoUi .ph-ring { position: absolute; margin: -22px 0 0 -22px; width: 44px; height: 44px; border: 2px solid #fff6dc; border-radius: 50%; opacity: 0; box-shadow: 0 0 0 1px #000; }
#photoUi .ph-ring.go { animation: phRing .7s ease-out; }
@keyframes phRing { 0% { opacity: 1; scale: 1.6; } 60% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: .9; } }
#photoUi .ph-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
#photoUi .ph-fly { position: fixed; z-index: 2; object-fit: contain; border-radius: 6px; transform-origin: center; pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
#photoUi .ph-preview { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px 0; background: rgba(6, 4, 16, .6); }
#photoUi .ph-card { zoom: var(--ui, 1); box-sizing: border-box; width: min(640px, calc(var(--vw) - 32px)); padding: 12px; border-radius: 16px; background: #f8f1e0; color: var(--ink); box-shadow: 0 0 0 2px #000, 0 10px 30px rgba(0, 0, 0, .6); text-align: center; }
#photoUi .ph-card img { display: block; width: 100%; max-height: calc(var(--vh) - 240px); object-fit: contain; border-radius: 6px; background: #000; }
#photoUi .ph-msg { margin: 10px 4px; font-size: 14px; }
#photoUi .ph-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
body.lowfx #photoUi .ph-ring.go, body.no-fx #photoUi .ph-ring.go { animation: none; }
.album-n { margin: 0 0 8px; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.album-tile { position: relative; padding: 0; border: 2px solid #000; border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 16 / 10; }
.album-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; } .album-tile:hover img { transform: scale(1.05); }
.album-tile small { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff6dc; font-size: 11px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-one img { display: block; width: 100%; max-height: calc(var(--vh) - 260px); object-fit: contain; border-radius: 8px; background: #000; }
.album-one .btnrow { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
@media (max-width: 680px) {
  #photoUi .ph-top { gap: 6px; } #photoUi .ph-x span, #photoUi .ph-title, #photoUi .ph-top .ph-chip span { display: none; } #photoUi .ph-top .ph-x { margin-right: auto; }
  #photoUi .ph-top .ph-chip .ico { margin: 0; }
  #photoUi .ph-hint { top: calc(58px + env(safe-area-inset-top, 0px)); white-space: normal; text-align: center; width: max-content; }
  #photoUi .ph-chip, #photoUi .ph-pose { padding: 7px 10px; font-size: 13px; }
  #photoUi .ph-tabs button { padding: 8px 7px; font-size: 12.5px; } #photoUi .ph-go { gap: 8px; } #photoUi .ph-shutter { width: 60px; height: 60px; }
  #photoUi .ph-sl2 { gap: 2px 10px; } #photoUi .ph-group { padding: 6px 8px; } #photoUi .ph-seg button { padding: 6px 8px; }
  .album-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; }
}

/* Rares our own way (Jesse 2026-10-22): 1st editions with a stock counter, Barnaby's returns, the marks on numbered copies, and the marketplace's rows */
.ed-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 2px 0 0; font: 600 13px var(--gw-font); color: var(--cream); }
.ed-badge { padding: 1px 8px; border-radius: 8px; background: linear-gradient(#f6c24a, #c98a1e); color: #3a2305; font: 400 12px var(--gw-title); letter-spacing: .5px; text-transform: uppercase; }
.ed-badge.legend { background: linear-gradient(#c9a6ff, #7a4fc8); color: #fff; text-transform: none; font-size: 11.5px; }
.ed-line .few, .sti-own.few { color: #ffa070; font-weight: 800; animation: edPulse 1.6s ease-in-out infinite; }
.ed-bar { flex: 1 1 100%; display: block; height: 6px; border-radius: 4px; background: rgba(0, 0, 0, .4); overflow: hidden; }
.ed-bar u { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #8ff0a4, #f6c24a); text-decoration: none; transition: width .6s ease-out; }
.ed-note { display: block; margin: 3px 0 0; color: var(--dim); font: 600 11.5px/1.35 var(--gw-font); } p.ed-note { margin: 0; } .ed-note b { color: var(--honey); }
@keyframes edPulse { 50% { opacity: .6; } }
.mark { display: inline-block; padding: 1px 8px; border-radius: 8px; background: rgba(0, 0, 0, .35); color: var(--honey); font: 600 12.5px var(--gw-font); white-space: nowrap; }
.mark.mk-first { background: linear-gradient(#f6c24a, #c98a1e); color: #3a2305; } .mark.mk-return { background: linear-gradient(#7aa6ff, #4a63c8); color: #fff; } .mark.mk-numbered { background: linear-gradient(#ff86b0, #c63c6e); color: #fff; } .mark.plain { background: rgba(255, 255, 255, .08); color: var(--dim); }
.sti.special.back .ribbon { background: linear-gradient(#5a78d6, #2c3f8c); color: #fff; }
ul.copies { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
ul.copies li { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 8px; background: rgba(0, 0, 0, .22); } ul.copies li small { color: var(--dim); } ul.copies li .gw-btn { margin-left: auto; } ul.copies li .gw-btn + .gw-btn { margin-left: 0; }
.mk-rows { display: grid; gap: 6px; } .mk-group { border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .2); overflow: hidden; } .mk-group.open { border-color: var(--rc, var(--gold-line)); }
.mk-row { width: 100%; display: grid; grid-template-columns: 54px 1fr auto auto 16px; align-items: center; gap: 10px; padding: 6px 10px; border: 0; background: none; color: var(--cream); font: 600 14px var(--gw-font); text-align: left; cursor: pointer; }
.mk-row:hover { background: rgba(255, 255, 255, .05); }
.mk-row img.thumb, .mk-row .emo { width: 48px; height: 48px; } .mk-pic { display: grid; place-items: center; }
.mk-name { display: grid; gap: 2px; min-width: 0; } .mk-name b { font: 400 17px var(--gw-title); color: var(--honey); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mk-name .chips { display: flex; flex-wrap: wrap; gap: 4px; } .mk-name small, .mk-from small { color: var(--dim); font-size: 11.5px; }
.mk-kind { background: rgba(255, 255, 255, .08); } .mk-kind.mk-first { background: linear-gradient(#f6c24a, #c98a1e); color: #3a2305 !important; } .mk-kind.mk-return { background: linear-gradient(#7aa6ff, #4a63c8); color: #fff !important; }
.mk-n { color: var(--dim); white-space: nowrap; } .mk-n b { color: var(--cream); } .mk-from { display: grid; text-align: right; white-space: nowrap; } .mk-from b { color: var(--honey); font: 400 17px var(--gw-title); }
.mk-chev::after { content: ''; display: block; width: 8px; height: 8px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg); transition: transform .2s; } .mk-group.open .mk-chev::after { transform: rotate(-135deg); }
.mk-more { padding: 4px 10px 10px; display: grid; gap: 6px; } .mk-more[hidden] { display: none; }
.mk-copies { display: grid; gap: 4px; } .mk-copy { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 5px 8px; border-radius: 8px; background: rgba(255, 255, 255, .04); } .mk-copy small { flex: 1; color: var(--dim); } .mk-copy small u { color: #8ff0a4; text-decoration: none; font-weight: 700; } .mk-copy .sti-own { margin-left: auto; }
.mk-count-sm { display: none; }
.mk-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px 0 2px; font: 600 13px var(--gw-font); color: var(--dim); }
.mk-count { text-align: center; }
.mk-chart .avg7 { stroke: #8ff0a4; stroke-width: 1.4; stroke-dasharray: 4 3; } .mk-avgs b { color: var(--honey); } .mk-more .mk-hist { max-width: 460px; }
@media (max-width: 680px) { .mk-row { grid-template-columns: 48px 1fr auto 14px; gap: 8px; padding: 6px 8px; } .mk-n { display: none; } .mk-count-sm { display: block; } .mk-from b { font-size: 16px; } .mk-row img.thumb, .mk-row .emo { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .ed-line .few, .sti-own.few { animation: none; } .ed-bar u { transition: none; } }
body.no-fx .ed-line .few, body.no-fx .sti-own.few, body.lowfx .ed-line .few { animation: none; }

/* the shop round (2026-10-22): one search box over every tab, a sort and theme chips over a category, "go there" for a vendor's goods */
.theme-chips { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 5px; flex: 1 1 260px; min-width: 0; padding-bottom: 4px; scrollbar-width: thin; } .theme-chips button { flex: none; white-space: nowrap; }   /* (one scrolling row: the grid stays above the fold) */
.theme-chips button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0, 0, 0, .22); color: var(--dim); font: 600 12.5px var(--gw-font); }
.theme-chips button i { font-style: normal; font-size: 11px; opacity: .6; } .theme-chips button:hover { border-color: var(--gold); color: var(--cream); }
.theme-chips button[aria-pressed="true"] { background: rgba(246, 194, 74, .22); border-color: var(--gold); color: var(--honey); }
.sort-pick { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font: 600 12.5px var(--gw-font); color: var(--dim); }
.sort-pick select { padding: 5px 8px; border-radius: 9px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--cream); font: 600 12.5px var(--gw-font); }
.wt-note { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--gold-line); background: rgba(246, 194, 74, .12); color: var(--cream); font: 600 13px/1.35 var(--gw-font); } .wt-note .ico { width: 20px; height: 20px; flex: none; }
.wt-focus { border-color: var(--gold) !important; box-shadow: 0 0 0 2px rgba(246, 194, 74, .55), 0 0 14px rgba(246, 194, 74, .35); animation: wtFocus 1.4s ease-in-out 3; }
@keyframes wtFocus { 50% { box-shadow: 0 0 0 3px rgba(246, 194, 74, .9), 0 0 22px rgba(246, 194, 74, .6); } }
body.no-fx .wt-focus, body.lowfx .wt-focus { animation: none; }
@media (max-width: 680px) { .cat2 { grid-template-columns: minmax(0, 1fr); } .cat-main { min-width: 0; } .cat-tree { display: none; } }

.sti-grid > .sti { content-visibility: auto; contain-intrinsic-size: auto 330px; }   /* (shop round: a card off screen costs no style, layout or paint; its place is kept) */
@media (max-width: 680px) { .sti-grid > .sti { contain-intrinsic-size: auto 290px; } }
/* Jesse 2026-10-22: the Fly Club pages (app/club.js): payday, this month's tiles, the gift ladder, the club rare, the club shop for a non-member */
.club-pay { padding: 10px 12px; border-radius: 12px; margin-bottom: 8px; border: 1.5px solid rgba(201, 144, 42, .55); background: linear-gradient(120deg, rgba(242, 182, 54, .16), rgba(74, 24, 92, .5)); }
.club-pay.due { border-color: #ffd86a; box-shadow: 0 0 0 2px rgba(255, 216, 106, .18); }
.cp-top { display: flex; gap: 10px; align-items: center; } .cp-top > .ico { flex: none; width: 28px; height: 28px; color: #ffd86a; } .cp-top > div { flex: 1; min-width: 0; }
.cp-top b { display: block; font: 400 17px var(--gw-title); color: #ffd86a; } .cp-top small { display: block; font: 600 12.5px/1.35 var(--gw-font); color: var(--cream); } .cp-top .gw-btn { flex: none; }
.cp-steps { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; margin-top: 8px; }
.cp-steps i { display: block; text-align: center; padding: 4px 0; border-radius: 6px; font-style: normal; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .08); color: rgba(248, 235, 205, .55); }
.cp-steps i b { font: 700 10.5px/1 var(--gw-font); } .cp-steps i.done { background: linear-gradient(#f6c24a, #c98a1e); color: #3a2305; border-color: #ffd86a; } .cp-steps i.now { border-color: #ffd86a; color: #ffd86a; animation: edPulse 1.6s ease-in-out infinite; }
.cp-note { display: block; margin-top: 6px; font: 600 11.5px var(--gw-font); color: rgba(248, 235, 205, .7); }
.club-month { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px; margin-bottom: 10px; }
.cm-tile { display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; align-items: center; text-align: left; cursor: pointer; padding: 9px 10px; border-radius: 10px; border: 1px solid rgba(201, 144, 42, .45); background: rgba(140, 90, 216, .14); color: var(--cream); font-family: var(--gw-font); position: relative; }
.cm-tile > .ico { grid-row: 1 / 3; width: 24px; height: 24px; color: #ffd86a; } .cm-tile b { font: 700 13px/1.2 var(--gw-font); color: #ffd86a; } .cm-tile small { font: 600 12px/1.3 var(--gw-font); }
.cm-tile:hover { background: rgba(140, 90, 216, .26); } .cm-tile.ready { border-color: #ffd86a; } .cm-tile.ready::after { content: ''; position: absolute; top: 7px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: #ff6b8a; box-shadow: 0 0 0 2px rgba(255, 107, 138, .3); }
.club-join { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; margin-bottom: 8px; background: linear-gradient(120deg, rgba(242, 182, 54, .18), rgba(74, 24, 92, .5)); border: 1px solid rgba(201, 144, 42, .55); }
.club-join > .ico { flex: none; width: 26px; height: 26px; color: #ffd86a; } .club-join p { flex: 1; margin: 0; font: 600 13px/1.4 var(--gw-font); color: var(--cream); } .club-join .gw-btn { flex: none; }
.club-note { margin: 0 0 8px; } .club-dim { opacity: .62; filter: saturate(.55); } .club-dim .sti-stage { filter: grayscale(.3); }
.sti.club-gift.next { border-color: #ffd86a; box-shadow: 0 0 0 2px rgba(255, 216, 106, .25); } .sti.club-gift .chips .chip.plain { color: var(--cream); opacity: .8; }
.ed-badge.club { background: linear-gradient(#c9a6ff, #5a2a8a); color: #ffe9a8; text-transform: uppercase; }
.sti.club-rare { border-color: rgba(201, 144, 42, .7); }
@media (max-width: 560px) { .cp-top { flex-wrap: wrap; } .cp-top .gw-btn { width: 100%; } .cp-steps { grid-template-columns: repeat(6, 1fr); } .club-join { flex-wrap: wrap; } .club-join .gw-btn { width: 100%; } }
/* the club name tag: a slow shine sweeps across the gold (the effects switch and Fast stop it) */
.flytag.club { overflow: hidden; }   /* (the tag stays position: fixed: a position: relative here stretched every Fly Club member's name across the screen, list 5 item 6) */ .flytag.club::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 38%, rgba(255, 236, 160, .5) 50%, transparent 62%); transform: translateX(-130%); animation: clubShine 5.5s ease-in-out infinite; }
@keyframes clubShine { 0%, 62% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@media (prefers-reduced-motion: reduce) { .flytag.club::before { animation: none; display: none; } .cp-steps i.now { animation: none; } } body.no-fx .flytag.club::before, body.lowfx .flytag.club::before { animation: none; display: none; } body.no-fx .cp-steps i.now { animation: none; }

/* the story quests (app/story.js): the gold "!" and "…" on a name tag, the tracker chip, the Stories tab, the talk card, the Story Complete card */
.tag .tag-gold { display: none; position: absolute; left: 50%; bottom: calc(100% + 4px); width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe48a, #d89a14); border: 2px solid #fff4dc; color: #4a2c00; font: 900 17px/22px var(--gw-title); text-align: center; font-style: normal; box-shadow: 0 3px 8px rgba(0, 0, 0, .4); animation: bangbob 1.8s ease-in-out infinite; pointer-events: none; }
.tag.has-gold .tag-gold { display: block; } .tag.has-bang .tag-gold { display: none; }
.tag.gold-talk .tag-gold { font-size: 15px; line-height: 20px; letter-spacing: -1px; }
body.no-fx .tag .tag-gold, body.lowfx .tag .tag-gold { animation: none; }
/* the Now pill under the fly card: one line, never wider than the card; a tap lists everything going on */
#nowWrap { position: absolute; left: 0; top: calc(100% + 4px); max-width: 100%; z-index: 2; }
#nowWrap[hidden], #nowList[hidden] { display: none; }
#nowPill { position: relative; display: flex; align-items: center; gap: 5px; max-width: 100%; box-sizing: border-box; padding: 4px 9px 4px 7px; border-radius: 12px; border: 1px solid var(--gold-line); background: var(--glass); box-shadow: 0 0 0 1px #000, 0 3px 10px rgba(0, 0, 0, .4); color: #ffe48a; font: 700 12px/1.1 var(--gw-font); }
#nowPill:hover { border-color: var(--gold); background: rgba(246, 194, 74, .14); } #nowPill.ready { border-color: var(--gold); animation: storyPulse 2.6s ease-in-out infinite; }
#nowIc { display: inline-flex; flex: none; } #nowIc .ico { width: 15px; height: 15px; } #nowT { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#nowF { flex: none; font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 1px 5px; border-radius: 8px; border: 1px dashed var(--line); color: var(--muted, #c9b79a); } #nowPill.nofol { border-style: dashed; } #nowF.on { border: 1px solid var(--gold-line); background: rgba(246, 194, 74, .25); color: #fff4dc; }
#nowN { flex: none; font-style: normal; font-size: 10.5px; padding: 1px 5px; border-radius: 8px; background: rgba(246, 194, 74, .25); color: #fff4dc; } #nowN:empty { display: none; }
#nowList { position: absolute; left: 0; top: calc(100% + 4px); width: max-content; min-width: 100%; max-width: min(300px, calc(var(--vw, 100vw) - 24px)); display: flex; flex-direction: column; gap: 3px; padding: 5px; border-radius: 14px; border: 2px solid var(--gold-line); background: var(--glass); box-shadow: 0 0 0 1px #000, 0 6px 20px rgba(0, 0, 0, .45); animation: gwPop .18s ease-out; }
#nowList button { display: flex; align-items: center; gap: 8px; padding: 6px 8px; text-align: left; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: #ffe48a; font: 700 12px/1.2 var(--gw-font); }
#nowList button:hover { border-color: var(--gold); } #nowList button.ready { border-color: var(--gold-line); }
#nowList .nrow { display: flex; gap: 3px; } #nowList .nrow > button:first-child { flex: 1; min-width: 0; } #nowList .nfol { flex: none; align-self: stretch; padding: 4px 7px; font-size: 10.5px; color: var(--muted, #c9b79a); } #nowList .nfol.on { color: #ffe48a; border-color: var(--gold-line); }
#nowList .ico { width: 18px; height: 18px; flex: none; } #nowList small { display: block; color: var(--muted, #c9b79a); font-weight: 600; font-size: 10.5px; }
@keyframes storyPulse { 50% { box-shadow: 0 0 0 3px rgba(246, 194, 74, .35); } } body.no-fx #nowPill.ready, body.lowfx #nowPill.ready { animation: none; }
.story { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .22); }
.story.act { border-color: rgba(246, 194, 74, .55); background: rgba(246, 194, 74, .07); } .story.act.ready { box-shadow: 0 0 0 2px rgba(246, 194, 74, .35); }
.st-sidehead { display: grid; gap: 2px; margin-top: 6px; } .st-sidehead small { color: var(--dim); font: 600 12px/1.3 var(--gw-font); }
.st-secret { display: flex; gap: 6px; align-items: flex-start; margin: 4px 0 0; color: var(--dim); font: 600 12px/1.35 var(--gw-font); font-style: italic; } .st-secret svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.story.done { opacity: .85; } .story.locked { opacity: .55; }
.st-head { display: flex; align-items: center; gap: 10px; } .st-head img, .st-head > .ico { width: 44px; height: 44px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.st-head b { display: block; font: 400 17px var(--gw-title); color: var(--honey); } .st-head small { color: var(--dim); font: 600 12px var(--gw-font); }
.st-stamp { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 10px; border: 2px solid #f6c24a; color: #f6c24a; font: 400 13px var(--gw-title); transform: rotate(-5deg); }
.st-now { margin: 8px 0 6px; font: 600 14px/1.35 var(--gw-font); color: var(--cream); } .st-now small { color: var(--dim); font-weight: 500; }
.st-back { margin: 8px 0 0; padding: 0 0 0 18px; color: var(--dim); font: 500 12.5px/1.5 var(--gw-font); } .st-back li { list-style: '✓  '; }
.st-reward { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; padding: 6px 8px; border-radius: 10px; background: rgba(0, 0, 0, .25); font: 600 13px var(--gw-font); }
.st-reward b { display: block; color: var(--honey); } .st-reward small { color: var(--dim); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; } .st-reward .ic { width: 15px; height: 15px; }
.st-rpic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; } .st-rpic canvas, .st-rpic img { width: 46px; height: 46px; }
.st-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.st-talk .st-nopic { display: grid; place-items: center; color: var(--honey); } .st-talk .st-nopic .ico { width: 56px; height: 56px; }
.st-foot { flex-direction: column; align-items: stretch; gap: 8px; } .st-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.st-tick { margin: 10px 0 0; text-align: center; font: 600 13px var(--gw-font); color: var(--honey); display: flex; justify-content: center; gap: 6px; align-items: center; } .st-tick.pop { animation: stTick .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes stTick { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.st-gate { text-align: center; display: grid; gap: 8px; justify-items: center; } .st-gate > .ico { width: 44px; height: 44px; color: var(--honey); }
.st-win { text-align: center; display: grid; justify-items: center; gap: 4px; } .st-win h3 { margin: 4px 0 0; font: 400 20px var(--gw-title); color: var(--honey); }
.st-top { display: flex; align-items: flex-end; justify-content: center; gap: 12px; min-height: 130px; } .st-giver { width: 96px; height: 120px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .5)); }
.st-piece { width: 130px; height: 130px; display: grid; place-items: center; } .st-spin canvas, .st-spin img { width: 130px; height: 130px; } .st-spin > .ico { width: 70px; height: 70px; color: var(--honey); }
.st-wrap { position: relative; width: 112px; height: 104px; border: 0; border-radius: 12px; cursor: pointer; background: linear-gradient(#f4e0b4, #d8b87c); box-shadow: 0 4px 0 #a98550, 0 8px 14px rgba(0, 0, 0, .4); animation: stWobble 2.4s ease-in-out infinite; }
.st-rib { position: absolute; background: var(--wc, #d8a83a); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .12); } .st-rib.v { left: 46px; top: 0; width: 20px; height: 100%; } .st-rib.h { top: 42px; left: 0; width: 100%; height: 20px; }
.st-bow { position: absolute; left: 40px; top: -14px; width: 32px; height: 22px; border-radius: 50% 50% 40% 40%; background: var(--wc, #d8a83a); box-shadow: -16px 4px 0 -4px var(--wc, #d8a83a), 16px 4px 0 -4px var(--wc, #d8a83a); }
.st-wrap.open { animation: stOpen .6s ease-in forwards; } @keyframes stWobble { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } } @keyframes stOpen { to { transform: scale(1.5) translateY(-20px); opacity: 0; } }
body.no-fx .st-wrap, body.lowfx .st-wrap { animation: none; }
.st-pn { margin: 0; color: var(--cream); font: 600 14px var(--gw-font); } .st-pn b { color: var(--honey); }
.st-got { display: flex; align-items: center; justify-content: center; gap: 12px; font: 700 15px var(--gw-font); color: var(--cream); } .st-got .ic { width: 18px; height: 18px; }
.st-got .st-badge { width: 52px; height: 52px; } .st-got .st-badge svg { width: 100%; height: 100%; } .st-badge-n { margin: 0; color: var(--dim); font: 600 12px var(--gw-font); }
.st-loft { display: block; width: 100%; max-width: 360px; max-height: 38vh; object-fit: cover; border-radius: 10px; margin: 0 auto 6px; } .st-loft.fade { animation: stLoft 1.4s ease-out; } @keyframes stLoft { from { opacity: 0; transform: scale(1.04); } }
body.no-fx .st-loft.fade, body.lowfx .st-loft.fade { animation: none; }
.st-lore { margin: 4px 0 6px; max-width: 320px; color: var(--cream); font: 500 13px/1.4 var(--gw-font); }

.st-board { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; font: 600 12.5px var(--gw-font); } .st-board li { display: flex; justify-content: space-between; padding: 3px 8px; border-radius: 8px; background: rgba(0, 0, 0, .22); color: var(--dim); } .st-board b { color: var(--honey); }
.times-own { padding-left: 9px; border-left: 3px solid #e0a020; } .times-own h3 { color: #a86a00; }
.wt-gold { display: inline-block; width: 11px; height: 11px; margin-left: 6px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #ffe48a, #d89a14); box-shadow: 0 0 0 2px rgba(246, 194, 74, .35); } .wt-big .wt-gold { position: absolute; right: 12px; top: 12px; width: 14px; height: 14px; }

/* ---------- 2026-10-23 (Jesse): the button pass. The fly card is just the fly (Log In inside it for guests, phones too) and the
   Now pill under it; the level coin opens your profile; one bottom bar in three groups (go · here · do) with the chat bar in its
   middle, never touching a group (chat.js layoutBottom); one lane over the bar: the room box on the left (home.js renderRoomBar)
   and the action spot (the Click button and its Juice, Eat / Drink / Play and Put Away, the tour card) in the middle, on a phone
   at the right. Nothing in the lane is placed by hand: it's one grid, so nothing can sit on anything else ---------- */
#lvl { cursor: pointer; } #lvl:hover .lvcoin { filter: brightness(1.12); } .brand { cursor: default; }
#accBtn { margin-left: 2px; }
#nowWrap { width: max-content; max-width: calc(var(--vw) - 24px); }   /* (the pill may be wider than the card: nothing else lives in that corner now) */
@media (max-width: 680px) { #accBtn { padding: 7px 9px; font-size: 12.5px; } }
/* the bottom bar: go · here · do */
.dk-here { display: flex; align-items: flex-end; gap: 2px; margin-left: 6px; padding-left: 6px; border-left: 1px dashed rgba(246, 194, 74, .4); }
.dk-more { position: relative; display: flex; }
#dock .dk-c { min-width: 0; }   /* (the chat bar is placed over the gap by layoutBottom; nothing is reserved for it) */
.dk[data-act="quests"] em { background: linear-gradient(#ffe27a, #e0a020); color: #3a2305; border-color: #7a4d05; }
.dk[data-act="quests"].ready .well { border-color: var(--gold); animation: questGlow 2.4s ease-in-out infinite; }
@keyframes questGlow { 0%, 100% { box-shadow: 0 0 0 2px var(--stone-d), 0 3px 0 2px rgba(0, 0, 0, .45), 0 0 6px rgba(246, 194, 74, .35); } 50% { box-shadow: 0 0 0 2px var(--stone-d), 0 3px 0 2px rgba(0, 0, 0, .45), 0 0 16px rgba(246, 194, 74, .8); } }
body.no-fx .dk[data-act="quests"].ready .well, body.lowfx .dk[data-act="quests"].ready .well { animation: none; box-shadow: 0 0 0 2px var(--stone-d), 0 3px 0 2px rgba(0, 0, 0, .45), 0 0 10px rgba(246, 194, 74, .6); }
@media (prefers-reduced-motion: reduce) { .dk[data-act="quests"].ready .well { animation: none; } }
/* a small menu over a button (More; the room box's rooms and its folded buttons) */
.pop-menu { position: absolute; z-index: 30; right: 0; bottom: calc(100% + 10px); display: flex; flex-direction: column; gap: 2px; min-width: 168px; max-width: calc(var(--vw) - 24px); box-sizing: border-box; padding: 5px; border-radius: 14px;
  border: 2px solid var(--gold-line); background: #1d1a33; box-shadow: 0 0 0 1px #000, 0 8px 24px rgba(0, 0, 0, .5); animation: gwPop .16s ease-out; }
.pop-menu button { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 6px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--cream); font: 400 15px/1.1 var(--gw-title); letter-spacing: .4px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.pop-menu button:hover { background: rgba(246, 194, 74, .14); color: var(--honey); outline: none; } .pop-menu button:focus { outline: none; } .pop-menu button:focus-visible { outline: 2px solid rgba(246, 194, 74, .55); outline-offset: -2px; color: var(--honey); }   /* (r8: the keyboard ring is a ring, not a fill: only the current item (aria-current) looks picked) */
.pop-menu button[aria-current="true"] { color: var(--honey); box-shadow: inset 3px 0 0 var(--gold); background: rgba(246, 194, 74, .08); }
.pop-menu .ico { width: 20px; height: 20px; flex: none; }
.pop-menu em.n { margin-left: auto; padding: 1px 6px; border-radius: 8px; background: var(--ruby); color: #fff; font: 700 11px/1.3 var(--gw-font); font-style: normal; }
/* the chat bar: in the bar's middle (its left and width from layoutBottom), or folded into one button in the lane */
body:not(.chat-fold) #chatbar { left: var(--chatL, 50%); width: var(--chatW, 420px); transform: none; }
body.chat-fold #chatbar { left: calc(12px + env(safe-area-inset-left, 0px) / var(--ui, 1)); right: auto; width: auto; transform: none; bottom: calc(var(--dockH, 64px) + 10px); }
body.chat-fold #chatbar:not(.open) { padding: 3px; border-radius: 999px; }
body.chat-fold #chatbar:not(.open) > :not(.cb-open) { display: none; }
body.chat-fold #chatbar:not(.open) > .cb-open { display: grid; width: 44px; height: 44px; border-radius: 50%; }
body.chat-fold #chatbar.open { right: calc(12px + var(--bot-r) / var(--ui, 1)); animation: gwPop .16s ease-out; }
body.stack.chat-fold #chatbar.open { right: calc(20px + var(--msgrW, 0px) + var(--bot-r) / var(--ui, 1)); }
body.stack #msgr { bottom: calc(var(--dockH, 64px) + 10px); right: calc(12px + var(--bot-r) / var(--ui, 1)); }
/* the lane over the bar */
#lane { position: fixed; z-index: 19; left: calc(12px + env(safe-area-inset-left, 0px) / var(--ui, 1)); right: calc(12px + var(--bot-r) / var(--ui, 1)); bottom: calc(var(--dockH, 64px) + 10px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 12px; pointer-events: none; }
body.laid #lane { transition: bottom .16s ease-out; }   /* (chat.js layoutBottom: only once the lane has its first real place) */
#lane > * { pointer-events: auto; }   /* (z 19: under the bar, so the bar's menus open over it; over the room's tags) */
#lane:has(> .pop-menu), #dock:has(.pop-menu) { z-index: 29; }   /* (a menu from the bottom row opens over everything but a window or a dialogue: its own z-index only counts inside the lane's or the dock's layer, which sit under the messenger, the chat bar and the top bar) */
#lane > .pop-menu, .dk-more > .pop-menu { max-height: calc(var(--vh) - var(--dockH, 64px) - 90px); overflow-y: auto; }   /* (a phone on its side: a long menu scrolls, it never runs off the top) */
body.stack #lane { right: calc(20px + var(--msgrW, 0px) + var(--bot-r) / var(--ui, 1)); }
body.chat-fold:not(.chat-up) #lane { padding-left: 60px; }   /* (the folded chat button sits at the lane's left end) */
body.chat-up #lane { bottom: calc(var(--dockH, 64px) + var(--chatH, 48px) + 18px); }   /* (the opened chat bar takes the lane's row; the lane steps up) */
body:has(#hatch.open) #lane, body.photo-on #lane { visibility: hidden; }
/* the room box */
#roomBox { grid-column: 1; grid-row: 1; justify-self: start; display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; box-sizing: border-box; padding: 4px; border-radius: 16px;
  border: 2px solid var(--gold-line); background: var(--glass); box-shadow: 0 0 0 1px #000, 0 6px 20px rgba(0, 0, 0, .4); }
#roomBox[hidden] { display: none; }
.rb-name { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; flex: 0 1 auto; min-width: 64px; min-height: 36px; box-sizing: border-box; padding: 2px 8px; border: 0; border-radius: 11px; background: transparent; color: inherit; font: inherit; text-align: left; }
button.rb-name { padding-right: 24px; cursor: pointer; } button.rb-name:hover { background: rgba(255, 255, 255, .06); } button.rb-name[aria-expanded="true"] { background: rgba(246, 194, 74, .12); }
.rb-name b { font: 400 14px/1.1 var(--gw-title); letter-spacing: .5px; color: var(--honey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.rb-name small { font: 600 11px/1.15 var(--gw-font); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.rb-name small .linkish { display: inline; padding: 0; font-size: 11px; }
.rb-name .rb-ev { display: flex; align-items: center; gap: 3px; color: var(--gold); } .rb-name .rb-ev .ico { width: 12px; height: 12px; flex: none; }
.rb-name .rb-caret { position: absolute; right: 5px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; transition: transform .15s; } button.rb-name[aria-expanded="true"] .rb-caret { transform: rotate(180deg); }
.rb-tools { display: flex; align-items: center; gap: 4px; flex: none; }
.rb-btn { position: relative; display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border-radius: 11px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); cursor: pointer; transition: transform .08s; }
.rb-btn .ico { width: 21px; height: 21px; } .rb-btn:hover { filter: brightness(1.2); } .rb-btn:active { transform: scale(.92); }
.rb-btn em { top: -4px; right: -4px; }
.rb-btn[hidden], .rb-btn.folded, body:not(.view-moved) .rb-btn[data-rb="recentre"] { display: none; }
#hubInvite { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 36px; box-sizing: border-box; padding: 0 12px 0 9px; border-radius: 11px; border: 1px solid var(--gold-line); background: linear-gradient(180deg, rgba(246, 194, 74, .24), rgba(246, 194, 74, .08)); color: var(--honey); font: 400 14px/1 var(--gw-title); letter-spacing: .4px; white-space: nowrap; cursor: pointer; }
#hubInvite:hover { border-color: var(--gold); filter: brightness(1.1); } #hubInvite .ico { width: 18px; height: 18px; flex: none; }
#hubInvite .hi-short, #roomBox.slim #hubInvite .hi-long { display: none; } #roomBox.slim #hubInvite .hi-short { display: inline; }
#roomBox.slim2 #hubInvite span { display: none !important; } #roomBox.slim2 #hubInvite { padding: 0 9px; } #roomBox.slim2 .rb-name small { display: none; } #roomBox.slim2 .rb-name b { font-size: 12px; letter-spacing: .2px; white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }   /* (the narrowest phones: a long name on two lines) */
#lane > .rb-menu { left: 0; right: auto; bottom: calc(100% + 8px); }
@media (pointer: coarse) { .rb-btn { width: 40px; height: 40px; } .rb-name { min-height: 40px; } #hubInvite { height: 40px; } }
@media (max-width: 680px) { #roomBox { border-radius: 22px; padding: 3px; } .rb-name { min-width: 54px; padding-left: 9px; } .rb-name b { font-size: 13px; } }
@media (max-width: 1299px) { body:has(#tray.open) #roomBox { display: none; } }   /* (decorating: the tray has the bottom; its title names the room) */
body:has(#tray.open) #lane { grid-template-columns: minmax(0, calc(50% - 340px)) auto minmax(0, 1fr); }
/* the action spot: one clear round button, its small pills beside it, in one glass tray; only what matters now shows */
#actSpot { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 9px; border-radius: 999px; border: 1px solid var(--hair); background: rgba(16, 14, 30, .55); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); animation: gwPop .22s ease-out; }
#actSpot:not(:has(> :not([hidden]))), body.editing #actSpot, body:has(#play.open, #instPanel) #actSpot { display: none; }
#actSpot:has(> #tourCard) { padding: 0; border: 0; background: none; box-shadow: none; } #actSpot:has(> #tourCard) > :not(#tourCard) { display: none; }
.boop-btn { --bt: translateX(0); position: relative; flex: none; width: 84px; height: 84px; border-radius: 50%; border: 3px solid #4a1a08; background: radial-gradient(circle at 38% 30%, #ffd59a, #ff9a46 52%, #d8561c); color: #fff8e8; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-shadow: 0 5px 0 #8a3410, 0 9px 18px rgba(0, 0, 0, .4), inset 0 -6px 12px rgba(120, 30, 0, .35), inset 0 4px 8px rgba(255, 255, 255, .35);
  touch-action: manipulation; user-select: none; -webkit-tap-highlight-color: transparent; }
.boop-btn[hidden] { display: none; } .boop-btn b { font-size: 24px; } .boop-btn small { font-size: 9.5px; }
.hand-act { display: flex; align-items: center; gap: 12px; }
.hand-btn { flex: none; width: 84px; height: 84px; } .hand-btn b { font-size: 24px; } .hand-btn small { font-size: 9.5px; } .hand-btn .hb-bar { left: 18px; right: 18px; bottom: 11px; }
/* the small pills beside the round button: the Juice cup, Put Away */
.juice-cup, .hand-away { position: relative; flex: none; display: flex; flex-direction: row; align-items: center; gap: 7px; width: auto; height: 46px; box-sizing: border-box; padding: 0 14px 0 8px; border-radius: 999px;
  border: 1px solid var(--gold-line); background: rgba(14, 12, 26, .82); box-shadow: 0 0 0 1px #000, 0 4px 12px rgba(0, 0, 0, .35); color: var(--cream); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.juice-cup:hover, .hand-away:hover { border-color: var(--gold); filter: brightness(1.12); } .juice-cup:active, .hand-away:active { transform: scale(.94); }
.juice-cup svg { width: 26px; height: 31px; } .juice-cup .jc-txt { align-items: flex-start; gap: 2px; } .juice-cup b { font-size: 16px; } .juice-cup small { font-size: 9.5px; }
.juice-cup .jc-bang { top: -7px; right: -5px; width: 20px; height: 20px; } .juice-cup .jc-sk { top: -11px; left: -6px; }
.hand-away .ha-pic { width: 30px; height: 30px; } .hand-away small { font: 400 13px/1 var(--gw-title); letter-spacing: .4px; text-transform: none; color: var(--cream); }
/* the tour card */
#tourCard { display: flex; align-items: center; gap: 8px; max-width: calc(var(--vw) - 24px); box-sizing: border-box; padding: 7px 7px 7px 14px; border: 1px solid var(--gold); border-radius: 16px; background: rgba(20, 18, 34, .9);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .4), 0 0 14px rgba(255, 196, 80, .25); color: var(--cream); white-space: nowrap; animation: gwPop .22s ease-out; }
#tourCard .tc-n { min-width: 0; }
@media (max-width: 360px) { #tourCard { gap: 6px; padding-left: 10px; } #tourCard .tc-k { display: none; } #tourCard .gw-btn { padding: 7px 10px; } }
/* a phone (and a bar too narrow for one row): the spot at the right, its pills above the round button; the tour gets a row of its own */
body.stack #actSpot { justify-self: end; flex-direction: column-reverse; gap: 10px; padding: 9px; border-radius: 30px; }
body.stack .hand-act { flex-direction: column-reverse; gap: 10px; }
body.stack .boop-btn, body.stack .hand-btn { width: 74px; height: 74px; } body.stack .boop-btn b, body.stack .hand-btn b { font-size: 21px; } body.stack .hand-btn .hb-bar { left: 16px; right: 16px; bottom: 9px; }
body.stack .juice-cup, body.stack .hand-away { height: 42px; padding: 0 12px 0 6px; }
body.stack #lane { grid-template-columns: minmax(0, 1fr); } body.stack #roomBox { grid-row: 2; grid-column: 1; } body.stack #actSpot { grid-row: 1; grid-column: 1; margin-right: calc(-8px - var(--msgrW, 0px)); }   /* (a phone: the action spot a row above the room box, so the box keeps the whole width) */
body.stack #actSpot:has(> #tourCard) { justify-self: center; flex-direction: row; }
@media (pointer: coarse) { .boop-btn small, .hand-btn small { display: none; } }
@media (max-height: 520px) { .boop-btn, .hand-btn, body.stack .boop-btn, body.stack .hand-btn { width: 62px; height: 62px; } body.stack #actSpot { flex-direction: row-reverse; padding: 6px; } body.stack .hand-act { flex-direction: row-reverse; } .boop-btn b, .hand-btn b { font-size: 18px; } }   /* (a phone on its side: a low row, the pills beside the button) */
body.no-fx #actSpot, body.no-fx #tourCard { animation: none; } @media (prefers-reduced-motion: reduce) { #actSpot, #tourCard, .pop-menu { animation: none; } }
@media (max-width: 680px) {   /* a phone: one row of icons that always fits (they share the width, never wider than 48 px) */
  #dock { gap: 4px; }
  #dock .dk-l, #dock .dk-r, #dock .dk-here, #dock .dk-more { flex: 0 1 auto; min-width: 0; gap: 0; }
  #dock .dk-l { flex-grow: 1; } #dock .dk-r { flex-grow: 1; justify-content: flex-end; } #dock .dk-c { display: none; }
  #dock .dk-here { margin-left: 2px; padding-left: 2px; }
  #dock .dk { flex: 0 1 auto; width: calc(var(--dkw, 36px) + 6px); min-width: 0; padding: 3px 0; }
  #dock .dk .well { width: var(--dkw, 36px); height: var(--dkw, 36px); }
  #dock .dk .well .ico { width: calc(var(--dkw, 36px) * .66); height: calc(var(--dkw, 36px) * .66); }
  #dock .dk em { right: 0; }
}
/* the Quests window (tasks.js): one window for Today, Stories, Errands, the Fly Pass, the event and the chains. Ready things glow
   gold-green, their Claim shines, the rewards are little chips, the tab dots are gold like the bar's Quests button */
#gwWin.small.quests { width: min(700px, calc(var(--vw) - var(--gw-dx))); }
#gwWin.quests .gw-tabs button em { background: linear-gradient(#ffe27a, #e0a020); color: #3a2305; border-color: #7a4d05; }
#gwWin.quests .task { position: relative; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
#gwWin.quests .task.done:not(.claimed) { border-color: #9be36b; background: linear-gradient(90deg, rgba(127, 224, 74, .16), rgba(127, 224, 74, .05) 60%); box-shadow: inset 3px 0 0 #9be36b, 0 0 14px rgba(127, 224, 74, .18); }
#gwWin.quests .task.done:not(.claimed)::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .13) 50%, transparent 65%) 0 0 / 250% 100%; animation: shimmer 3.2s ease-in-out infinite; }
#gwWin.quests .task.done:not(.claimed) > .ic { border-color: #9be36b; box-shadow: 0 0 10px rgba(155, 227, 107, .5); }
#gwWin.quests .task:not(.done):not(.claimed) .gw-bar > i { box-shadow: 0 0 6px rgba(255, 210, 90, .45); }
#gwWin.quests .task-meta .rw { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 8px; background: rgba(246, 194, 74, .14); color: var(--honey); font-weight: 700; }
#gwWin.quests .task.claimed .task-meta .rw { background: none; color: var(--dim); }
#gwWin.quests [data-claim]:not(:disabled), #gwWin.quests [data-qstep]:not(:disabled), #gwWin.quests .task [data-q]:not(:disabled), #gwWin.quests #tBonus:not(:disabled) { position: relative; overflow: hidden; }
#gwWin.quests [data-claim]:not(:disabled)::after, #gwWin.quests [data-qstep]:not(:disabled)::after, #gwWin.quests .task [data-q]:not(:disabled)::after, #gwWin.quests #tBonus:not(:disabled)::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%) 0 0 / 250% 100%; animation: shimmer 2.4s ease-in-out infinite; }
body.no-fx #gwWin.quests .task::after, body.no-fx #gwWin.quests .gw-btn::after, body.lowfx #gwWin.quests .task::after, body.lowfx #gwWin.quests .gw-btn::after { animation: none; display: none; }
@media (prefers-reduced-motion: reduce) { #gwWin.quests .task::after, #gwWin.quests .gw-btn::after { animation: none; display: none; } }

/* the bar's count dot: its pulse stops with the effects switch, on Fast and with reduced motion */
body.no-fx .dk em.on, body.lowfx .dk em.on { animation: none; } @media (prefers-reduced-motion: reduce) { .dk em.on { animation: none; } }
/* the Quests window's progress bars: a visible track with fifths marked, a fill with a soft sheen (an empty bar reads as "not started", not a hole) */
#gwWin.quests .task .gw-bar, #gwWin.quests .task-bonus .gw-bar { height: 10px; background-color: rgba(255, 255, 255, .07); background-image: repeating-linear-gradient(90deg, transparent 0 calc(20% - 1px), rgba(255, 255, 255, .12) calc(20% - 1px) 20%); box-shadow: inset 0 0 0 1px rgba(246, 194, 74, .28), inset 0 1px 2px rgba(0, 0, 0, .45); }
#gwWin.quests .gw-bar > i:not([style*="width:0%"]) { min-width: 10px; }
#gwWin.quests .task:not(.claimed) .gw-bar > i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%) 0 0 / 250% 100%; animation: shimmer 3s ease-in-out infinite; }
#gwWin.quests .task:not(.claimed) .gw-bar > i { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 6px rgba(255, 210, 90, .45); }
#gwWin.quests .task-meta > span:first-child { color: var(--cream); font-weight: 700; }
body.no-fx #gwWin.quests .gw-bar > i::after, body.lowfx #gwWin.quests .gw-bar > i::after { animation: none; display: none; } @media (prefers-reduced-motion: reduce) { #gwWin.quests .gw-bar > i::after { animation: none; display: none; } }
/* Payments (2026-10-23): the Shop's Gems tab, the buy card, short on gems, How to Earn, My Purchases (app/gems.js) */
.gm-ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; } .gw-btn .gm-ic { margin-right: 4px; }
.gm-ic.hd { width: 40px; height: 40px; filter: drop-shadow(0 2px 6px rgba(255, 173, 46, .45)); }
.gm-ic.big { position: absolute; inset: 0; margin: auto; z-index: 1; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45)); }
.gm-ic.n1 { width: 54px; height: 54px; } .gm-ic.n2 { width: 70px; height: 70px; } .gm-ic.n3 { width: 86px; height: 86px; } .gm-ic.n4 { width: 104px; height: 104px; }
.gm-test { margin: 0 0 10px; padding: 6px 10px; border: 1px dashed #ff8a5c; border-radius: 8px; color: #ffb08a; font: 600 12.5px var(--gw-font); }
.gm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gm-pack { --rc: #ffad2e; display: flex; flex-direction: column; align-items: center; text-align: center; }
.gm-pack .sti-stage { align-self: stretch; height: 150px; } .gm-pack .sti-stage .spin { width: 150px; height: 150px; }
.gm-pack.best { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 4px 18px rgba(246, 194, 74, .25); }
.gm-pack .ribbon.gm-rib { background: linear-gradient(#52c070, #2e8a46); }
.gm-best { position: absolute; right: 8px; top: 8px; z-index: 3; padding: 3px 8px; border-radius: 8px; background: linear-gradient(#ffe08a, #f6c24a); color: var(--ink); font: 400 12px/1.2 var(--gw-title); letter-spacing: .5px; text-transform: uppercase; }
.gm-n { margin-top: 6px; font: 600 14px var(--gw-font); color: var(--dim); } .gm-n b { font: 400 26px var(--gw-title); color: var(--honey); margin-right: 4px; }
.gm-sub { margin: 0 0 8px; min-height: 1.4em; font: 600 12px var(--gw-font); color: var(--dim); } .gm-sub b { color: var(--honey); }
.gm-buy { min-width: 96px; font-size: 17px; margin-top: auto; }
.gm-foot { margin: 12px 0 0; text-align: center; font: 600 12.5px var(--gw-font); color: var(--dim); }
.gm-art { position: relative; height: 120px; margin: 6px 0; } .gm-art .spin { position: absolute; inset: 0; margin: auto; width: 120px; height: 120px; }
.gm-sum { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, .25); font: 600 13px var(--gw-font); color: var(--dim); } .gm-sum b { color: var(--cream); text-align: right; }
.gm-waive { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--gold-line); border-radius: 10px; font: 600 13.5px/1.4 var(--gw-font); cursor: pointer; }
.gm-waive input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--green); cursor: pointer; }
.gm-fine { margin: 8px 0 0; text-align: center; font: 600 11.5px var(--gw-font); color: var(--dim); }
.gm-foot a, .gm-fine a { color: var(--honey); } .gm-soon { opacity: .75; cursor: default; }
.gm-earn { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 6px; }
.gm-earn li { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px; background: rgba(0, 0, 0, .22); font: 600 13px/1.35 var(--gw-font); }
.gm-earn .ico { width: 22px; height: 22px; flex: none; color: var(--honey); } .gm-earn b { display: block; color: var(--honey); font-weight: 700; }
.gm-buys { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.gm-buys li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(0, 0, 0, .22); font: 600 13px var(--gw-font); }
.gm-buys span { flex: 1; min-width: 0; } .gm-buys small { display: block; color: var(--dim); font-size: 11.5px; } .gm-buys .gm-bon { display: inline; }
.gm-buys em { font-style: normal; text-align: right; color: var(--honey); } .gm-buys .st-failed em small, .gm-buys .st-canceled em small, .gm-buys .st-refunded em small { color: #ffb08a; } .gm-buys .st-paid em small { color: var(--leaf); }
@media (max-width: 680px) { .gm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .gm-pack .sti-stage { height: 118px; } .gm-pack .sti-stage .spin { width: 118px; height: 118px; } .gm-n b { font-size: 22px; } .gm-pack .gm-sub { display: block; font-size: 11.5px; } .gm-box .btnrow .gw-btn { flex: 1; } }
.gm-tot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 8px; } .gm-tot span { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--gold-line); border-radius: 10px; background: rgba(0, 0, 0, .25); text-align: center; }
.gm-tot small { color: var(--dim); font: 600 11px var(--gw-font); } .gm-tot b { color: var(--honey); font: 400 18px var(--gw-title); } .gm-tot .gm-ic { width: 15px; height: 15px; margin-right: 3px; vertical-align: -2px; }
.od-tot { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); } .od-list td:last-child { white-space: nowrap; } .od-card { margin: 8px 0; padding: 8px 10px; border: 1px solid var(--gold-line); border-radius: 10px; background: rgba(0, 0, 0, .2); }
/* the Premium Shelf (2026-10-24): every gem good gets a richer card wherever it shows (.sti.gem): plum glass, a gold-to-plum edge, a soft glow and a plum
   stage in its rarity colour; under the pointer the stage's sheen runs gold (the .sti:hover shimmer). The effects switch and reduced motion stop the
   sheen (body.no-fx .sti-stage::before, the reduced-motion rule); the rarity shine (.r-*) stays as it is everywhere */
.sti.gem { border: 1px solid transparent; background: linear-gradient(180deg, #33223f, #1d1630) padding-box, linear-gradient(165deg, #f6c24a, #8a5aa8 52%, #d99a2b) border-box; box-shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 0 18px rgba(170, 100, 210, .14); }
.sti.gem:hover { border-color: transparent; box-shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 0 22px rgba(246, 194, 74, .24); }
.sti.gem.r-fermented { border-width: 2px; background: linear-gradient(180deg, #33223f, #1d1630) padding-box, conic-gradient(from var(--foil), #ffd86a, #fff6c8, #b8862a, #ffe9a0, #ffd86a) border-box; }
.sti.gem .sti-stage { background: linear-gradient(180deg, #3b2650, #211934); } @supports (color: color-mix(in srgb, red 50%, blue)) { .sti.gem .sti-stage { background: radial-gradient(ellipse 55% 60% at 50% 58%, color-mix(in srgb, var(--rc, #ffad2e) 34%, transparent), transparent 70%), linear-gradient(180deg, #3b2650, #211934); } }
.sti.gem .sti-stage::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 224, 138, .24) 47%, transparent 58%) 130% 0 / 260% 100%; }
.sti.gem .chip.prem { background: rgba(255, 173, 46, .14); }
.sti.gem .prem-art svg { width: 84px; height: 84px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); } .sti.gem .prem-art .ico { color: var(--honey); }
.prem-shelf .chip.prem { display: none; }   /* (on the shelf everything is premium: the chip says it in the other tabs) */
.prem-room { display: block; line-height: 0; transform: rotateX(54deg) rotateZ(-45deg); border-radius: 3px; box-shadow: 0 10px 14px rgba(0, 0, 0, .45); }   /* (the floor plan tipped into the game's angle) */
.sti.gem .prem-room svg { width: 78px; height: 78px; filter: none; }
.prem-room.sh-courtyard { background: radial-gradient(circle, #6cc25a, #2f7a3a); } .prem-room.sh-courtyard svg.shape rect { fill: #eadcbc; }   /* (a garden in the middle) */
.prem-room.sh-arena { background: radial-gradient(circle, #5a2a1c, #1e0e0a); } .prem-room.sh-arena svg.shape rect { fill: #f0c27a; }   /* (sand round a pit) */
.prem-room svg.shape rect.door { fill: var(--ruby); }
.prem-tag { display: inline-flex; align-items: center; gap: 6px; max-width: 86%; padding: 6px 14px; border: 2px solid var(--gold); border-radius: 14px; background: linear-gradient(180deg, #3d2449, #241a36); box-shadow: 0 4px 12px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12); transform: rotate(-4deg); }
.sti.gem .prem-art .prem-tag svg.ico { width: 24px; height: 24px; flex: none; filter: none; color: var(--honey); } .prem-tag { box-sizing: border-box; min-width: 0; } .prem-tag b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 18px var(--gw-title); color: var(--honey); }
.prem-shelf { margin-top: 18px; } .prem-shelf .sti-f { flex-wrap: wrap; } .prem-sec, .prem-shelf, .gems-box { scroll-margin-top: 52px; }   /* (under the sticky jump row) */
.prem-shelf .sti-grid > .sti { content-visibility: visible; }   /* (~35 cards: real heights, so a jump to a section lands on it) */
.prem-shelf .sti-f > .gw-btn { max-width: 100%; white-space: normal; }
@media (max-width: 680px) { .prem-tag { gap: 4px; padding: 4px 9px; } .prem-tag b { font-size: 15px; } .sti.gem .prem-art .prem-tag svg.ico { width: 18px; height: 18px; } .prem-sec .gw-sec small { display: none; } }
.prem-link { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 10px; padding: 7px 12px; border: 1px solid var(--gold-line); border-radius: 10px;
  background: linear-gradient(90deg, rgba(255, 173, 46, .12), rgba(138, 90, 168, .14)); font: 600 12.5px/1.35 var(--gw-font); color: var(--cream); }
.prem-link > svg { width: 18px; height: 18px; flex: none; } .prem-link span { flex: 1 1 180px; } .prem-link .linkish { color: var(--honey); white-space: nowrap; }
/* Pets 2.0: the Pet Show (app/show.js): the board's window (theme card, entries with a heart each, Enter Your Pet, winners), the reveal, the ribbons on the pet's card */
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; }
.sp-card { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 6px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.sp-card.mine { border-color: var(--hair); } .sp-card.lead.m1 { border-color: #f6c24a; box-shadow: 0 0 14px rgba(246, 194, 74, .22); } .sp-card.lead.m2 { border-color: #cfd6e0; } .sp-card.lead.m3 { border-color: #c98a4a; }
.sp-pw { position: relative; aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: #2a2540; } .sp-pw.big { max-width: 220px; margin: 0 auto; }
.sp-pic { display: block; width: 100%; height: 100%; object-fit: cover; } .sp-pic.sm { width: 56px; height: 56px; border-radius: 8px; flex: none; }
.sp-medal { position: absolute; left: 5px; top: 5px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff4dc; font: 800 11px var(--gw-font); font-style: normal; color: #2a1606; background: #f6c24a; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.sp-medal.m2 { background: #cfd6e0; } .sp-medal.m3 { background: #c98a4a; }
.sp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 13.5px/1.2 var(--gw-font); } .sp-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 11px var(--gw-font); opacity: .75; }
.sp-extra { display: flex; align-items: center; gap: 4px; } .sp-extra .ico { width: 12px; height: 12px; color: var(--pink); flex: none; }
.sp-vote { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.sp-n { display: inline-flex; align-items: center; gap: 4px; font: 800 15px var(--gw-font); } .sp-n .ico { width: 16px; height: 16px; color: var(--pink); } .sp-n.pop .ico { animation: spPop .55s cubic-bezier(.2, 1.8, .4, 1); }
.sp-vote .gw-btn { min-width: 0; white-space: nowrap; } .sp-vote .gw-btn .ico { width: 14px; height: 14px; margin-right: 3px; }
.sp-float { position: absolute; left: 50%; bottom: 10px; width: 36px; height: 36px; margin-left: -18px; color: var(--pink); pointer-events: none; animation: spFloat .9s ease-out forwards; } .sp-float .ico { width: 100%; height: 100%; }
@keyframes spFloat { from { transform: translateY(0) scale(.6); opacity: 1; } to { transform: translateY(-80px) scale(1.5); opacity: 0; } }
@keyframes spPop { 0% { transform: scale(1); } 40% { transform: scale(1.8); } 100% { transform: scale(1); } }
.sp-enter { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 12px; align-items: start; } .sp-pn { display: grid; justify-items: center; margin: 6px 0 0; } .sp-pn small { opacity: .75; font: 600 11px var(--gw-font); }
.sp-pick { display: grid; gap: 6px; min-width: 0; } .sp-pick .gw-sec { margin: 4px 0 0; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--cream); font: 700 12px var(--gw-font); } .sp-chip.on { border-color: var(--gold); background: rgba(246, 194, 74, .2); } .sp-chip:disabled { opacity: .6; cursor: default; }
.sp-chip span small { display: block; font-size: 10px; opacity: .7; } .sp-chip .thumb.sp-mini { width: 30px; height: 30px; }
.sp-hat { padding: 5px; font-size: 12.5px; max-width: 100%; }
.sp-week h4 { margin: 8px 0 4px; font: 400 16px var(--gw-title); color: var(--honey); } .sp-week h4 small { font: 600 11px var(--gw-font); opacity: .7; margin-left: 6px; }
.sp-wins { display: grid; gap: 6px; } .sp-win { display: flex; align-items: center; gap: 10px; padding: 5px; border-radius: 10px; background: rgba(255, 255, 255, .05); } .sp-win span { position: relative; display: grid; min-width: 0; padding-left: 28px; } .sp-win .sp-medal { left: 0; top: 2px; } .sp-win b { font: 700 13.5px var(--gw-font); } .sp-win small { font: 600 11px var(--gw-font); opacity: .75; }
.sp-win.m1 { background: rgba(246, 194, 74, .12); }
.sp-reveal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; cursor: pointer; background: radial-gradient(circle at 50% 45%, rgba(246, 194, 74, .22), rgba(8, 6, 20, .6) 62%); animation: gwFade .2s ease-out; } .sp-reveal.out { opacity: 0; transition: opacity .25s; }
.sp-reveal.p2 { background: radial-gradient(circle at 50% 45%, rgba(207, 214, 224, .22), rgba(8, 6, 20, .6) 62%); } .sp-reveal.p3 { background: radial-gradient(circle at 50% 45%, rgba(201, 138, 74, .22), rgba(8, 6, 20, .6) 62%); }
.sp-rv { position: relative; display: grid; justify-items: center; gap: 4px; width: min(300px, 82vw); padding: 14px 14px 12px; border-radius: 18px; border: 2px solid var(--gold-line); background: var(--glass2); text-align: center; animation: spRv .6s cubic-bezier(.2, 1.5, .4, 1); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.sp-reveal.p1 .sp-rv { border-color: #f6c24a; box-shadow: 0 0 46px rgba(246, 194, 74, .5); } .sp-reveal.p2 .sp-rv { border-color: #cfd6e0; box-shadow: 0 0 32px rgba(207, 214, 224, .35); } .sp-reveal.p3 .sp-rv { border-color: #c98a4a; }
.sp-rv img { width: 100%; aspect-ratio: 1; border-radius: 12px; object-fit: cover; } .sp-rv b { font: 400 24px/1.1 var(--gw-title); color: var(--honey); } .sp-rv small { font: 600 12.5px/1.3 var(--gw-font); opacity: .85; }
.sp-rv-rib { position: absolute; top: -22px; left: 50%; width: 44px; height: 44px; margin-left: -22px; animation: spRib .8s cubic-bezier(.2, 1.7, .4, 1) .2s backwards; } .sp-rv-rib .ico { width: 100%; height: 100%; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .4)); }
.sp-reveal.p0 .sp-rv-rib { display: none; }
@keyframes spRv { from { transform: translateY(24px) scale(.7); opacity: 0; } } @keyframes spRib { from { transform: scale(0) rotate(-40deg); } }
.sp-reveal.calm .sp-rv, .sp-reveal.calm .sp-rv-rib { animation: none; }
.pet-ribs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; } .pet-ribs .rb { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 99px; border: 1px solid rgba(255, 214, 106, .35); background: rgba(255, 255, 255, .05); font: 600 11px var(--gw-font); } .pet-ribs .ico { width: 16px; height: 16px; } .pet-ribs .m2 { border-color: #cfd6e0; } .pet-ribs .m3 { border-color: #c98a4a; }
@media (max-width: 560px) { .sp-enter { grid-template-columns: 1fr; gap: 8px; } .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-prev { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 12px; } .sp-pw.big { width: 120px; margin: 0; } .sp-pn { justify-items: start; margin: 0; } .sp-pn b { font: 400 19px var(--gw-title); color: var(--honey); } }   /* (a phone: the picture beside its name, so the picks and Enter come up at once) */
@media (prefers-reduced-motion: reduce) { .sp-rv, .sp-rv-rib, .sp-float, .sp-n.pop .ico, .sp-vl.bump { animation: none; } }

@media (max-height: 430px) and (orientation: landscape) { .inv-side { gap: 6px; } .inv-side > .inv-view { flex: 0 0 auto; } .inv-side > .inv-view button { padding: 6px 14px; } .inv-side > .inv-search { flex: 1 1 30%; min-width: 120px; margin: 0; } .inv-side > select, .inv-side > label { flex: 1 1 22%; min-width: 0; margin: 0; } }   /* (678x340: the Bag's view switch, search, filter and sort share one row) */
/* ---------- pass 3 (Jesse, real Duo, 2026-10-26): safe edges. Each side has its own inset (a Duo's are lopsided: ~85 px on the right where the system's vertical bar
   runs, 0 on the left): read each one alone, never add the Safari-pill fallback on top of it (--sa-r = the larger of the two; shared/edges.js sets --duo-pill and --corner).
   The bar's height changes with Live Activities, so everything tappable near the right edge keeps the whole strip clear; scenery may use it. ---------- */
html[data-duo-row] { --bot-r: var(--corner); --bot-b: calc(var(--duo-bot) - 5px * var(--ui, 1)); }   /* (the dock, the messenger, the lane and the info panel use the whole width: the pill only takes the top right; and the height: the dock's buttons end --duo-bot over the edge, its own 5 px included) */
html[data-duo-row] #dock { padding-top: 3px; } html[data-duo-row] body:not(.stack) #pan-i { bottom: calc(var(--dockH, 70px) + 14px); }
@media (max-width: 680px) { html[data-duo-row] #dock { padding-left: calc(12px + env(safe-area-inset-left, 0px) / var(--ui, 1)); } }   /* (this low, the first button needs 12 px from the side to clear the rounded corner) */
@media (max-width: 680px) { html[data-duo-outer] .gw-pan, html[data-duo-outer] #pan-r, html[data-duo-outer] #pan-i, html[data-duo-outer] body.in-room #pan-r, html[data-duo-outer] body.in-room #pan-i { right: calc(var(--duo-pill) / var(--ui, 1)); } }   /* (folded, a card reaches up beside the pill: it stops short of it, or its close button takes no taps) */
@media (max-width: 680px) { html[data-duo-outer] #dock .dk-more > .pop-menu.dk-sheet { right: calc(var(--duo-pill) / var(--ui, 1)); width: calc(var(--vw) - 8px - env(safe-area-inset-left, 0px) / var(--ui, 1) - var(--duo-pill) / var(--ui, 1)); grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html[data-duo-outer] body.stack.in-room #tray { max-height: min(calc(var(--vh) * .38), max(170px, calc(var(--vh) - var(--dockH, 70px) - 74px - var(--bot-b) / var(--ui, 1) - 232px))); }
  html[data-duo-outer] #tray .dec-more { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 8px; padding: 6px 10px; min-height: 48px; } html[data-duo-outer] #tray .dec-more .e { width: 36px; height: 36px; padding: 4px; } html[data-duo-outer] #tray .dec-more > span { flex: none; width: auto; max-width: none; } }   /* (Get More as one low full-width row at the end of the list, so an empty bag's card shows whole in the shorter tray; the tray never shrinks below 170 px) */   /* (leftovers 2026-11-14: folded, Safari's pill covers the right edge down to 227 px: More's sheet stops short of it as the cards do (a room's five tools make it tall enough to reach the pill's height), and the Decorate tray keeps its top under it (its list scrolls), or the sheet's last column and Done take no taps) */
html:is([data-duo-outer], [data-duo-open]) #hud { padding-right: calc(var(--sa-r) / var(--ui, 1)); }   /* (the top bar ends at the strip, about 10 px before the system's bar) */
html:is([data-duo-outer], [data-duo-open]) #hud #wallet { margin-left: auto; }
html[data-duo-outer] #wallet { min-width: 0; max-width: 100%; } html[data-duo-outer] #wallet .cur { min-width: 0; flex-shrink: 1; }
@media (max-width: 420px) { html[data-duo-outer] .brand { display: none; } html[data-duo-outer] #hud { gap: 5px; } html[data-duo-outer] #wallet { gap: 4px; } html[data-duo-outer] #wallet .cur:not(#lvl) { padding: 2px 6px 2px 2px; gap: 3px; font-size: 13px; } html[data-duo-outer] #wallet .cur svg { width: 18px; height: 18px; } html[data-duo-outer] #belly .bl-t { display: none; } }   /* (the narrow folded Duo: the wallet gets the logo's room) */
#dock { padding-left: calc(12px + env(safe-area-inset-left, 0px) / var(--ui, 1)); padding-right: calc(12px + var(--bot-r) / var(--ui, 1)); padding-bottom: calc(5px + var(--bot-b) / var(--ui, 1)); }
@media (max-width: 680px) { #dock { padding-left: calc(4px + env(safe-area-inset-left, 0px) / var(--ui, 1)); padding-right: calc(4px + var(--bot-r) / var(--ui, 1)); } }
#msgr { right: calc(10px + var(--bot-r) / var(--ui, 1)); }
@media (min-width: 681px) { #bells { right: calc(14px + var(--sa-r)); } }
@media (max-height: 520px) { #dock { padding-bottom: calc(3px + var(--bot-b) / var(--ui, 1)); } }
#pan-r { right: calc(12px + var(--sa-r) / var(--ui, 1)); } #pan-i { right: calc(12px + var(--sa-r) / var(--ui, 1)); }   /* (a tall card reaches the pill: the same strip as the messenger's panel) */
.play-in { padding-left: calc(16px + env(safe-area-inset-left, 0px) / var(--ui, 1)); padding-right: calc(16px + var(--sa-r) / var(--ui, 1)); }
@media (max-height: 520px) and (orientation: landscape) { #tray, body.stack.in-room #tray { right: calc(8px + var(--sa-r) / var(--ui, 1)); } }

.vend-hint { margin: 2px 2px 8px; font: 600 12.5px/1.4 var(--gw-font); color: var(--dim); }   /* C9: what Takeaway and To Bag mean */
#wallet .cur::before { content: ""; position: absolute; inset: -8px -4px; }   /* P10: a 36 px touch target round the 24 px chips, the look unchanged */
#hatch .hatch-login .linkish { display: inline-block; padding: 9px 6px; margin: -9px -6px; }   /* P10: Log In: 36 px tall */
/* polish r1: 36 px to tap on a touch screen, the look unchanged: an invisible hit area round the small controls (UI audit 2026-10-26) */
@media (pointer: coarse) {
  .linkish, .busk-row .gw-btn, .sp-chip { position: relative; }
  .linkish::before, .busk-row .gw-btn::before, .sp-chip::before, .bag-detail .big .wish-b::before, .tog::before { content: ""; position: absolute; inset: -6px -2px; }
  .linkish::before, .busk-row .gw-btn::before, .tog::before { inset: -4px -2px; } .bag-detail .big .wish-b::before { inset: -5px; } .sti .swatches button::before { inset: -7px; }
  label.radio, .authf label.tick { box-sizing: border-box; min-height: 36px; } .pc-tricks .gw-btn { min-height: 36px; }
}
/* B5 (play test 2026-10-26): on a phone the pet card is a shorter sheet and the room fits above it (home.js homeSafe), so the pet and its tricks stay in view */
@media (max-width: 680px) {
  body #pan-i[data-id="pet"], body.in-room #pan-i[data-id="pet"] { max-height: 46dvh; }
  #pan-i[data-id="pet"] .gw-tabs.mini { -webkit-mask-image: none; mask-image: none; }
  .hcard .hc-pic { width: 52px; height: 52px; } .hc-acts > .gw-btn { min-height: 46px; padding: 5px 3px; }
}
.gw-tabs.mini.hc-tabs { position: sticky; top: -10px; z-index: 1; background: #1f1c3b; }   /* (the tabs stay in reach while a tab scrolls) */
@media (max-height: 640px) {   /* a short screen (a phone, the Duo folded, a phone on its side): the top of the card packs tighter so the tabs show */
  .hcard .hc-pic { width: 44px; height: 44px; } .petcard .pet-food small { display: none; } .pet-bars { margin-top: 5px; }
  .hc-acts > .gw-btn { flex-direction: row; gap: 5px; min-height: calc(40px / var(--ui, 1)); padding: 4px; font-size: 13px; } .hc-acts > .gw-btn svg { width: 16px; height: 16px; } .hc-acts > .gw-btn small { display: none; } .hc-acts { margin-top: 7px; }
  .gw-tabs.mini.hc-tabs { margin-top: 6px; margin-bottom: 6px; }
}
/* polish r4: the profiles (UI audit #3). One hero card for My Profile, another fly's profile and the room's info card: the
   header (name, chips, mood, Buzz Level, facts), two or three big actions and a "…" menu, then tabs (Badges, Picture, Rooms,
   Trades & Gifts) that do their own work in place */
.hc-acts.more { display: flex; } .hc-acts.more > .gw-btn { flex: 1 1 0; }
.hc-more { position: relative; flex: none; display: flex; } .hc-more > .gw-btn { width: 46px; min-width: 0; min-height: 100%; padding: 0; } .hc-more > .gw-btn svg { width: 22px; height: 22px; margin: 0; }
.hc-more .pop-menu { top: calc(100% + 6px); bottom: auto; right: 0; min-width: 190px; } .hc-more .pop-menu.up { top: auto; bottom: calc(100% + 6px); }
.pcard .hc-tab { min-height: 230px; }   /* (another fly's short tabs: the "…" menu still opens inside the window) */
.pop-menu button.off > .ico, .pop-menu button.off > span > :first-child { opacity: .55; } .pop-menu button.danger { color: #ff9a8e; }
.hc-more .pop-menu { width: max-content; max-width: 250px; } .hc-more .pop-menu button > span { display: flex; flex-direction: column; min-width: 0; white-space: normal; }
.hc-more .pop-menu button small { display: block; margin-top: 2px; font: 500 11.5px/1.25 var(--gw-font); letter-spacing: 0; color: var(--dim); }   /* (why it's dimmed: Trade) */
.hcard:is(.pcard, .info) .hc-acts > .gw-btn { justify-content: flex-start; padding-top: 8px; }   /* (the icons and first words on one line, whatever wraps or has a line under it) */
.hcard.info .hc-tab > .gw-sec:first-child { margin-top: 14px; }
.pf-rooms.gw-btn { display: flex; justify-content: center; width: 100%; min-height: calc(40px / var(--ui, 1)); margin-top: 8px; }
@media (max-width: 400px) { .hcard:is(.pcard, .info) .hc-acts > .gw-btn { padding-inline: 2px; font-size: 13px; letter-spacing: 0; } }
.hc-acts > .gw-btn[disabled] { filter: none; opacity: .6; }
.hcard .in-mood { margin: 3px 0 0; } .hcard .in-mood form { margin: 0; } .hcard .in-mood input { width: 100%; box-sizing: border-box; padding: 6px 8px; font: 600 13px var(--gw-font); font-style: normal; }
.pf-lvl { display: flex; align-items: center; gap: 8px; margin: 5px 0 0; font: 600 12.5px var(--gw-font); color: var(--dim); } .pf-lvl b { color: var(--cream); } .pf-lvl > span:first-child { flex: none; } .pf-lvl .gw-bar { flex: 1; max-width: 220px; height: 8px; }
.hcard .in-facts { gap: 4px 10px; margin-top: 4px; } .hcard .in-facts span { display: inline-flex; align-items: center; gap: 3px; }
.hcard.info .hc-pic { overflow: hidden; } .hcard.info .hc-pic .in-pic { width: 100%; height: 100%; }
.hcard.info .in-badges { margin: 8px 0 0; }
.pcard .hc-pic { width: 96px; height: 96px; border-radius: 14px; background: radial-gradient(circle at 50% 40%, #3e3b5e, var(--glass2)); box-shadow: inset 0 0 0 1px var(--line); } .pcard .hc-pic .flysprite { width: 100%; height: 100%; object-fit: contain; }
.pcard .in-name b { font-size: 21px; }
.pf-shown { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: 2px; } .pf-shown .bdg-card { cursor: default; }
.pcard .hc-tab .bdg-top { margin-top: 2px; }
.pic-turn.gw-btn { width: 44px; height: 44px; min-width: 0; padding: 0; } .pic-turn svg { width: 22px; height: 22px; margin: 0; }
.hc-tab > .btnrow { margin-top: 8px; }
#gwWin .gw-tabs.mini.hc-tabs { top: -16px; margin-inline: 0; padding-inline: 0; background: #1a1829; }   /* (in a window: flush with the body, its colour) */
.bdg-top [data-auto] { min-height: 36px; }
@media (max-width: 680px) { .pcard .hc-pic { width: 72px; height: 72px; } .pcard .in-name b { font-size: 19px; } .pf-shown { grid-template-columns: 1fr; } #gwWin .gw-tabs.mini.hc-tabs { top: -12px; } }
@media (max-width: 520px) {   /* (four tabs on a phone: the open one says its name, the others are their icons) */
  .pcard .hc-tabs:has(> button:nth-of-type(4)) button:not(.on) .tl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .pcard .hc-tabs:has(> button:nth-of-type(4)) button:not(.on) svg.ico { margin-right: 0; }
}
@media (max-height: 640px) { .hcard:is(.pcard, .info) .hc-acts > .gw-btn { justify-content: center; padding-top: 4px; } .hcard.info .hc-acts.more > .gw-btn svg { display: none; } .hcard.info .hc-acts.more > .gw-btn { padding-inline: 2px; }   /* (the info card's narrow row: the words only) */
  .pcard .hc-pic { width: 72px; height: 72px; } }
/* polish r2: the Bag (UI audit 2026-10-26, ranked #1). Desktop: the filter column, tighter (Placement open, the rest folded) with the
   search and the sort on top; phone (≤ 680 px): one row (search, Filter, sort) above the grid, the folders in a sheet with the filter
   that's on as a chip to take off, and the picked thing's detail a sheet over the grid. The detail: one main button, the rest in More. */
.inv-bar { display: flex; flex-direction: column; gap: 6px; } .inv-bar .inv-search { width: 100%; box-sizing: border-box; margin: 0; }
.inv-sheet { display: contents; } .inv-sheet > .inv-view { order: -1; }
.inv-fbtn, .sh-head, .inv-now, .sh-dim, .inv-chips, .bd-x, .bd-dim { display: none; }
.inv-sort { margin: 0; } .inv-side { gap: 5px; }
.inv-fold summary { align-items: center; } .inv-fold summary::after, .inv-fold[open] summary::after { content: none; }
.inv-fold summary .ico { width: 14px; height: 14px; transition: transform .15s; } .inv-fold:not([open]) summary .ico { transform: rotate(-90deg); }
.inv-fold .inv-f { margin: 0 0 3px; padding: 5px 9px; font-size: 13.5px; } .inv-fold { padding: 0 4px 3px; }
.bag-detail { position: relative; } .bag-detail h3 { overflow-wrap: anywhere; }
.bag-detail .acts.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .bag-detail .acts.two.more { grid-template-columns: minmax(0, 1fr) auto; }
.bag-detail .acts.two > .gw-btn, .bd-more > .gw-btn { min-width: 0; white-space: normal; line-height: 1.1; padding-inline: 10px; }
.bd-more { position: relative; display: grid; } .bd-more > .gw-btn { display: flex; align-items: center; justify-content: center; gap: 5px; } .bd-more > .gw-btn .ico { width: 18px; height: 18px; }
.bd-more .pop-menu { bottom: calc(100% + 8px); min-width: 200px; } .pop-menu[hidden] { display: none; }
@media (min-width: 681px) { .bag-detail .acts.more > .gw-btn { font-size: 14px; letter-spacing: .3px; padding-inline: 6px; } .bd-more > .gw-btn { width: 46px; padding: 0; } .bd-more > .gw-btn span { display: none; } .bd-more > .gw-btn .ico { width: 22px; height: 22px; } }   /* (desktop: More is its three dots, so the main button keeps one line in the 264 px panel) */
.gw-tabs.mini.show-tabs { margin: -4px 0 12px; } .gw-tabs.mini.show-tabs button.on { box-shadow: inset 0 -3px 0 var(--gold); } .show-tabs button .ico { width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; }
@media (max-width: 680px), (max-height: 480px) { .gw-tabs.mini.show-tabs button { min-height: calc(40px / var(--ui, 1)); } }   /* (list 5 stage 4: Badges, Trophies, Collections land at 40 px) */
@media (max-width: 680px) {
  .inv { gap: 8px; height: auto; } .inv-side { display: flex; }
  .inv-bar { flex-direction: row; align-items: center; } .inv-bar .inv-search { flex: 1 1 0; min-width: 0; min-height: 36px; }
  .gw-btn.sm.inv-fbtn { display: grid; place-items: center; flex: none; position: relative; width: 44px; height: 44px; padding: 0; } .inv-fbtn .ico { width: 21px; height: 21px; margin: 0; }   /* (a phone: the funnel alone, docs/areas/ui-kit.md) */
  .inv-fbtn.on { color: var(--honey); border-color: var(--gold); }
  .inv-fbtn em { position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: var(--ruby); color: #fff; font: 700 10.5px/15px var(--gw-font); font-style: normal; text-align: center; border: 1px solid #4a0f1c; text-shadow: none; }
  .inv-sort { flex: none; } .inv-sort span { display: none; } .inv-sort select { width: auto; min-height: 36px; }
  .inv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; } .inv-now { display: flex; margin: 0 0 12px; }
  .inv-chip { position: relative; min-height: 30px; padding: 3px 7px 3px 11px; gap: 6px; color: var(--honey); background: rgba(246, 194, 74, .12); cursor: pointer; font-size: 11.5px; }
  .inv-chip .ico { width: 13px; height: 13px; } .inv-chip::before { content: ""; position: absolute; inset: -3px -2px; }
  /* the sheets: from the bottom, over a dim backdrop (tap it to close), clear of Safari's pill on the Duo (it hangs top right) */
  .inv-sheet, .bag .bag-detail, .sq-sheet, .shop-sheet, .mk-filters { display: block; position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 6; max-height: max(62%, calc(100% - 236px)); overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; margin: 0;
    padding: 14px 14px calc(16px + env(safe-area-inset-bottom, 0px)); border-radius: 18px 18px 0 0; border: 2px solid var(--gold-line); border-bottom: 0; background: linear-gradient(180deg, #2a264e, #16142c);
    box-shadow: 0 0 0 1px #000, 0 -12px 34px rgba(0, 0, 0, .6); transform: translateY(104%); visibility: hidden; transition: transform .2s ease-in, visibility 0s .2s; }
  .bag .bag-detail { display: grid; }
  .inv-side.open .inv-sheet, .bag.peek .bag-detail, .gw-body.sheet .sq-sheet, .gw-body.peek > .shop-sheet, .mk-top.open .mk-filters { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2, 1.2, .4, 1); }
  .sh-dim, .bag .bd-dim { display: block; position: fixed; inset: 0; z-index: 5; background: rgba(6, 4, 16, .6); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .inv-side.open .sh-dim, .bag.peek .bd-dim, .gw-body.sheet .sq-dim, .gw-body.peek > .cs-dim, .mk-top.open .mk-dim { opacity: 1; pointer-events: auto; }
  .sh-head { display: flex; align-items: center; justify-content: space-between; margin: -2px 0 10px; } .sh-head b { font: 400 20px var(--gw-title); letter-spacing: .5px; color: var(--honey); }
  .sh-x, .bag-detail .bd-x, .shop-sheet .bd-x { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); cursor: pointer; } .sh-x .ico, .bd-x .ico { width: 15px; height: 15px; }
  .bag-detail .bd-x { position: absolute; top: 10px; right: 10px; z-index: 1; } .bag .bag-detail h3, .bag .bag-detail .facts { margin-right: 36px; }   /* (the name and every chip row keep clear of the close button) */
  .inv-sheet .inv-view { margin: 0 0 12px; } .inv-sheet .inv-view button { min-height: 36px; }
  .inv-sheet .inv-fold, .inv-sheet .items-fold { display: block; margin: 0 0 8px; padding: 0; background: none; }
  .inv-sheet .inv-fold summary { padding: 0 0 6px; pointer-events: none; } .inv-sheet .inv-fold summary .ico { display: none; }
  .inv-sheet .inv-f { display: inline-flex; align-items: center; width: auto; min-height: 36px; box-sizing: border-box; margin: 0 4px 6px 0; padding: 6px 12px; border-radius: 18px; font-size: 14px; }
  .inv-bar { margin: 0 0 12px; } .inv-bar .inv-search, .inv-sort select { min-height: 40px; }
}
body.no-fx .inv-sheet, body.no-fx .bag-detail, body.no-fx .sq-sheet, body.no-fx .shop-sheet, body.no-fx .mk-filters, body.no-fx .sh-dim, body.no-fx .bd-dim { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .inv-sheet, .bag-detail, .sq-sheet, .shop-sheet, .mk-filters, .sh-dim, .bd-dim { transition: none !important; } }
@media (pointer: coarse) { .inv-side .inv-f { min-height: 36px; } }   /* (polish r2: a tablet taps the folders too) */
@media (max-width: 420px) { #gwWin.bagwin > .gw-tabs { gap: 0; } #gwWin.bagwin > .gw-tabs button { padding-inline: 7px; font-size: 14px; letter-spacing: .2px; } }   /* (polish r2: the four tabs fit a 375 px phone) */
@media (min-width: 681px) and (max-height: 640px) {   /* (polish r2: a short wide screen, a phone or the Duo on its side: the panel packs its picture beside the name and scrolls itself, so its buttons stay in reach) */
  .bag-detail { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 10px; align-items: start; max-height: calc(min(680px, var(--vh) - 70px) - 150px); overflow-y: auto; scrollbar-width: thin; }
  .bag-detail .big { grid-row: span 3; height: 72px; } .bag-detail .big img { height: 70px; } .bag-detail .big .wish-b { top: 2px; right: 2px; width: 24px; height: 24px; }
  .bag-detail > :not(.big, h3, .facts, .bd-x) { grid-column: 1 / -1; }
}
@media (max-width: 680px) { .bag-detail > :not(.big, h3, .facts, .bd-x) { grid-column: 1 / -1; } }   /* (polish r2: the sheet: everything under the picture and name runs the full width: copies, the gate card) */
@media (min-width: 520px) and (max-width: 680px) { .bag-grid .wd-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); } }   /* (polish r2: the unfolded Duo and small tablets in portrait get more than three tiles a row) */
/* polish r3: the Shop (UI audit 2026-10-26, ranked #2). Every tab opens the same way: one calm header (an icon, the name, one line, maybe a
   stat), then one row of tools where there is something to browse (search, a phone's Filter, sort), then the goods. A phone: the tree of
   sections is a sheet from the header's caret, a card's detail is the card itself lifted into a sheet, the tabs show the open one's name and
   the others' icons. Buy is orange in every currency (it spends); green is only for what costs nothing. */
.shop-top { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0 0 10px; padding: 2px 4px 10px; border-bottom: 1px solid var(--line); }
.shop-top > svg { width: 30px; height: 30px; flex: none; } .shop-top > .cat-pic { width: 34px; height: 34px; flex: none; object-fit: contain; }
.st-id { flex: 1; min-width: 0; } .st-id b { display: block; font: 400 19px/1.15 var(--gw-title); letter-spacing: .4px; color: var(--honey); overflow-wrap: anywhere; }
.st-id small { display: block; margin-top: 2px; font: 600 12.5px/1.35 var(--gw-font); color: var(--dim); text-wrap: balance; }
.st-stat { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 14px; border: 1px solid var(--gold-line); background: rgba(0, 0, 0, .25); font: 700 14px var(--gw-font); color: var(--cream); white-space: nowrap; }
.st-stat .ic { width: 17px; height: 17px; }
.st-pick, .sq-sheet { display: none; }
.shop-q { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; margin: 0 0 12px; }
.sq-open { display: none; } .shop-q .inv-search { flex: 0 1 240px; min-width: 120px; box-sizing: border-box; margin: 0; }
.shop-q .theme-chips { order: 3; flex: 1 1 100%; padding: 2px 0 4px; }   /* (a wide screen: the themes are their own row under the search and the sort) */
.shop-q .sort-pick { flex: none; margin-left: auto; }
.cat-main > .shop-res .gw-sec:first-child, .gw-body > .shop-res .gw-sec:first-child { margin-top: 2px; }
/* a row: one line of cards that scrolls sideways (Featured's Hot This Week and New in the Catalogue) */
.sti-grid.strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(196px, 1fr); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 3px 1px 8px; scrollbar-width: thin; }
.sti-grid.strip > .sti { scroll-snap-align: start; }
.gw-sec > .gw-btn.ghost { padding: 3px 12px; font-size: 12.5px; }
/* Gems: the first buy is the packs' own badge; the fine print is the foot's */
.gm-x2 { position: absolute; left: 50%; bottom: 8px; z-index: 3; transform: translateX(-50%); padding: 2px 10px; border-radius: 10px; background: linear-gradient(90deg, #c41e3a, #8f1f3c); color: #fff; font: 400 12.5px var(--gw-title); letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; box-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
body:not(.no-fx) .gm-x2 { animation: gmX2 3.2s ease-in-out infinite; } @keyframes gmX2 { 50% { box-shadow: 0 0 0 2px rgba(255, 211, 74, .4), 0 0 12px rgba(255, 84, 112, .5); } }
@media (prefers-reduced-motion: reduce) { .gm-x2 { animation: none !important; } }
.gm-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; margin-top: 6px; }   /* (polish r3: the links on their own row, no dot left hanging at a line end) */
.gm-foot b.gm-test { display: inline; margin: 0 4px 0 0; padding: 0; border: 0; font: inherit; color: #ffb08a; }
.gw-sec.prem-head { display: block; margin-top: 22px; font: 400 18px var(--gw-title); letter-spacing: .5px; text-transform: none; color: var(--honey); } .gw-sec.prem-head::before, .gw-sec.prem-head::after { content: none; } .gw-sec.prem-head small { display: block; margin: 2px 0 0; } .gw-sec.prem-head + .prem-sec .gw-sec { margin-top: 6px; }
@media (max-width: 680px) {
  .shop-top { min-height: 40px; margin-bottom: 8px; padding: 0 2px 8px; } .shop-top > svg { width: 26px; height: 26px; }
  .st-id b { font-size: 17px; } .st-id small { font-size: 12px; }   /* (the Shop's line wraps whole, never cut) */
  .st-stat { padding: 3px 9px; font-size: 13px; }
  .shop-top:has(> .st-pick) { padding-right: calc(6px + 40px / var(--ui, 1)); }
  .st-pick { display: flex; align-items: flex-start; justify-content: flex-end; position: absolute; inset: 0 0 6px; padding: 0 2px; border: 0; background: none; cursor: pointer; }
  .st-pick .ico { width: 40px; height: 40px; padding: 9px; box-sizing: border-box; border-radius: 10px; border: 2px solid #000; background: linear-gradient(#4a476a, #35334f); box-shadow: 0 3px 0 #15142a, inset 0 1px 0 rgba(255, 255, 255, .18); }
  .st-pick:active .ico { transform: scale(.92); }
  .shop-q { flex-wrap: nowrap; margin-bottom: 10px; } .shop-q .inv-search { display: none; flex: 1 1 0; min-width: 0; min-height: 40px; }
  .shop-q.searching .inv-search { display: block; } .shop-q.searching > :not(.inv-search, .sq-open, .theme-chips) { display: none; } .shop-q:not(.searching):not(:has(> select, > .sort-pick)) { margin: 0; }
  .sq-open { display: grid; position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; } .sq-open .ico { width: 21px; height: 21px; margin: 0; } .searching > .sq-open { color: var(--honey); border-color: var(--gold-line); }
  .cat-main .sq-open { right: calc(18px + 40px / var(--ui, 1)); } .shop-top:has(+ .shop-q) { padding-right: calc(10px + 40px / var(--ui, 1)); } .shop-top:has(> .st-pick):has(+ .shop-q) { padding-right: calc(14px + 80px / var(--ui, 1)); }
  .cat-main .shop-q > .sort-pick { display: none; } .cat-main .shop-q:not(.searching) { margin: 0; }   /* (a section's themes and Sort sit in the caret's sheet: the goods start high) */
  .sq-sheet .sort-pick { display: flex; margin: 0 0 12px; font-size: 14px; } .sq-sheet .sort-pick select { flex: 1; min-height: 40px; font-size: 14px; }
  #gwWin.shopwin .shop-top:not(:has(> .st-pick), .prem-head) > svg, #gwWin.shopwin .shop-top:not(:has(> .st-pick), .prem-head) .st-id b { display: none; }
  .sq-sheet { display: block; }
  .shop-q .theme-chips { display: none; } .shop-q .sort-pick span { display: none; } .shop-q .sort-pick select { min-height: 40px; width: auto; }
  .shop-q + .inv-chips { margin: -2px 0 10px; }
  .sq-sheet .cat-group { display: block; margin: 10px 2px 6px; } .sq-sheet .sh-head + .sq-cats > .cat-group:first-child { margin-top: 0; }
  .sq-cats .inv-f, .sq-themes button { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; box-sizing: border-box; margin: 0 4px 6px 0; padding: 6px 12px; border-radius: 18px; font-size: 14px; }
  .sq-cats .inv-f svg.ico, .sq-cats .inv-f .cat-pic { width: 17px; height: 17px; flex: none; object-fit: contain; }
  .sq-cats .dotnew { width: 7px; height: 7px; border-radius: 50%; background: var(--ruby); }
  .sq-themes button { border: 1px solid var(--line); background: rgba(0, 0, 0, .22); color: var(--dim); font: 600 13.5px var(--gw-font); } .sq-themes button i { font-style: normal; font-size: 11px; opacity: .6; }
  .sq-themes button[aria-pressed="true"] { background: rgba(246, 194, 74, .22); border-color: var(--gold); color: var(--honey); }
  /* the grid on a phone: compact cards (the picture, the name, Buy); a tap on the card opens all of it in the sheet */
  #gwWin.shopwin .sti-grid:not(.strip) { grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 8px; }
  #gwWin.shopwin .sti-grid > .sti[data-card] { gap: 6px; padding: 8px; cursor: pointer; box-shadow: inset 0 3px 0 var(--rc, #888), 0 2px 0 rgba(0, 0, 0, .35); } @supports (color: color-mix(in srgb, red 50%, blue)) { #gwWin.shopwin .sti-grid > .sti[data-card] { box-shadow: inset 0 3px 0 color-mix(in srgb, var(--rc, #888) 75%, transparent), 0 2px 0 rgba(0, 0, 0, .35); } }
  #gwWin.shopwin .sti-grid > .sti[data-card] :is(p, .swatches, .qty, .chips, .sti-own:not(.lock)) { display: none; }
  #gwWin.shopwin .sti-grid > .sti[data-card] .sti-stage { height: 108px; margin: -8px -8px 0; } #gwWin.shopwin .sti-grid > .sti[data-card] .sti-stage .spin { width: 108px; height: 108px; }
  #gwWin.shopwin .sti-grid > .sti[data-card] .sti-tt b { font-size: 14.5px; line-height: 1.15; }
  #gwWin.shopwin .sti-grid > .sti[data-card] .sti-f { margin-top: auto; } #gwWin.shopwin .sti-grid > .sti[data-card] .sti-f > .gw-btn { flex: 1; min-width: 0; min-height: 36px; }
  #gwWin.shopwin .sti-grid > .sti[data-card] .sti-f:has(> .sti-own.lock) { flex-direction: column; align-items: stretch; gap: 4px; }
  .sti-ph { visibility: hidden; box-sizing: border-box; }
  .sti-grid.strip { grid-auto-columns: calc(50% - 4px); gap: 8px; }
  .shop-sheet { padding-top: 12px; }
  .shop-sheet > .sti { gap: 8px; padding: 0; border: 0; background: none; box-shadow: none; transform: none; cursor: default; }
  .shop-sheet > .sti::after { content: none; }
  .shop-sheet > .sti .sti-tt { order: -1; min-height: 36px; padding-right: 44px; } .shop-sheet > .sti .sti-tt b { font: 400 21px/1.15 var(--gw-title); color: var(--honey); }
  .shop-sheet > .sti .sti-stage { height: min(210px, 32vh); margin: 0; border-radius: 14px; } .shop-sheet > .sti .sti-stage .spin { width: min(210px, 32vh); height: min(210px, 32vh); }
  .shop-sheet > .sti p { display: block; margin: 0; font-size: 13.5px; line-height: 1.45; }
  .shop-sheet > .sti .sti-f { gap: 10px; } .shop-sheet > .sti .sti-f > .gw-btn { flex: 1 1 auto; min-height: 44px; font-size: 16px; }
  .shop-sheet > .sti .swatches { gap: 8px; } .shop-sheet .bd-x { position: absolute; top: 10px; right: 10px; z-index: 4; }
  /* the Marketplace on a phone: Browse / My Listings, then search, Filter (a sheet) and sort in one row */
  .mk-top .seg { flex: 1 1 100%; } .mk-top .seg button { flex: 1; min-height: 36px; }
  .mk-top .seg { order: -1; } .mk-top .inv-search { flex: 1 1 0; min-width: 0; min-height: 36px; } .mk-top > select[data-sort] { order: 2; flex: none; width: auto; max-width: 112px; min-height: 36px; } .mk-top .mk-fbtn { order: 1; }
  .mk-filters select { display: block; width: 100%; min-height: 40px; margin: 0 0 8px; } .mk-filters .chips { display: flex; flex-wrap: wrap; gap: 6px; } .mk-filters .chips button { min-height: 36px; }
}
@media (max-width: 420px) { .shop-q .sort-pick select { max-width: 108px; } }
@media (max-width: 680px) {   /* (seven tabs on a phone: four and More, the others in More's menu) */
  #gwWin.shopwin > .gw-tabs:has(> .tab-over) { gap: 0; padding-inline: 0; } #gwWin.shopwin > .gw-tabs:has(> .tab-over) button { padding-inline: 7px; font-size: 14px; letter-spacing: .3px; }
}
@media (max-width: 480px) { #gwWin.shopwin > .gw-tabs:has(> .tab-over) { justify-content: space-between; } }
@media (max-width: 360px) { #gwWin.shopwin > .gw-tabs:has(> .tab-over) button { padding-inline: 4px; font-size: 13px; letter-spacing: 0; }
}
@media (max-height: 640px) and (orientation: landscape) { .st-id small { display: none; } .shop-top { min-height: 34px; margin-bottom: 8px; padding-bottom: 6px; } .shop-top > svg { width: 24px; height: 24px; } #gwWin.shopwin .shop-top:not(:has(> .st-pick), .prem-head) > svg { display: block; } #gwWin.shopwin .shop-top:not(:has(> .st-pick), .prem-head) .st-id b { display: block; } }   /* (a short screen on its side, the Duo: the goods start high) */
@media (pointer: coarse) {   /* (polish r3: a touch screen wide enough for full cards, a tablet or a phone on its side: the Shop's small controls get 36 px to tap) */
  .theme-chips button, .sti .qty button, .sti .swatches button { position: relative; }
  .theme-chips button::before, .sti .qty button::before { content: ""; position: absolute; inset: -6px 0; }
  .sti .qty button::before { inset: -8px 0; } .sti .swatches button { width: 26px; height: 26px; } .sti .swatches button::before { content: ""; position: absolute; inset: -5px; }
  .sti .wish-b::before, .sti .tryon::before { content: ""; position: absolute; inset: -4px; }
  .gm-foot a { position: relative; } .gm-foot a::before { content: ""; position: absolute; inset: -11px -3px; }
}
/* polish r5 (UI audit #4): a counter's goods (the vendors, Puff's Patch, the Honey Bar) are calm compact cards at every width: the picture,
   the name and rarity, the belly, Takeaway and a bag button. A tap on a card opens it whole in the Shop's item sheet (a sheet from the bottom
   on a phone, a card over the counter on a wide screen): the line, ×1/×5/×10, Takeaway and To Bag. One good alone is one wide card. */
#gwWin.vendwin .sti-grid:not(.one) { grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 10px; }
#gwWin.vendwin .sti-grid:not(.one) > .sti[data-card] { gap: 6px; padding: 9px; cursor: pointer; }
#gwWin.vendwin .sti-grid:not(.one) > .sti[data-card] :is(p, .swatches, .qty) { display: none; }
#gwWin.vendwin .sti-grid:not(.one) > .sti[data-card] .sti-stage { height: 118px; margin: -9px -9px 0; } #gwWin.vendwin .sti-grid:not(.one) > .sti[data-card] .sti-stage .spin { width: 118px; height: 118px; }
#gwWin.vendwin .sti[data-card] .sti-tt { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 3px 8px; } #gwWin.vendwin .sti-grid:not(.one) > .sti[data-card] .sti-tt b { font-size: 15px; line-height: 1.15; }
#gwWin.vendwin .sti-tt .chip { padding: 0 6px; font-size: 9.5px; line-height: 15px; }
#gwWin.vendwin .sti-grid:not(.one) > .sti[data-card] .sti-f { margin-top: auto; gap: 6px; } #gwWin.vendwin .sti-grid:not(.one) > .sti[data-card] .sti-f > .gw-btn { flex: 1; min-width: 0; min-height: 36px; }
#gwWin.vendwin .sti-grid:not(.one) > .sti[data-card] .sti-f:not(:has(.take-row)) { flex-direction: column; align-items: stretch; }
#gwWin.vendwin .sti-own { line-height: 1.3; }
@media (max-width: 680px), (max-height: 480px) { #gwWin.vendwin .gus-next .gus-wait { display: none; } }   /* (list 5 stage 4: Gus's next drop on a phone: its chip says In 6 days, the foot its date; the dimmed button was cut in half) */
#gwWin.vendwin .gus-next .sti-f { flex-wrap: wrap; } #gwWin.vendwin .gus-next .gus-wait { flex: 1 1 100%; }   /* (tags-two: on a desktop card ~200 px wide the date and Next Drop In 4 Days did not fit one row; the button runs past the card: it takes its own row) */
.sti-grid.one { grid-template-columns: minmax(0, 1fr); }
.sti-grid.one > .sti { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-content: start; gap: 8px 16px; }
.sti-grid.one > .sti > * { grid-column: 2; } .sti-grid.one > .sti > .sti-stage { grid-column: 1; grid-row: 1 / span 6; height: auto; min-height: 180px; margin: -11px 0 -11px -11px; border-radius: 12px 0 0 12px; }
.sti-grid.one > .sti .sti-stage .spin { width: 156px; height: 156px; } .sti-grid.one > .sti p { min-height: 0; }
.sti-grid.one > .sti .qty button { min-height: 36px; } .sti-grid.one > .sti .sti-f { margin-top: 2px; }
@media (min-width: 681px) {   /* (the item sheet on a wide screen: a card over the counter, the counter dimmed) */
  #gwWin.vendwin .shop-sheet { display: block; position: fixed; left: 50%; top: 50%; z-index: 6; width: min(380px, calc(100% - 32px)); max-height: calc(100% - 40px); overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; padding: 14px;
    border-radius: 18px; border: 2px solid var(--gold-line); background: linear-gradient(180deg, #2a264e, #16142c); box-shadow: 0 0 0 1px #000, 0 16px 40px rgba(0, 0, 0, .65);
    transform: translate(-50%, -46%) scale(.94); opacity: 0; visibility: hidden; transition: transform .18s ease-in, opacity .18s, visibility 0s .18s; }
  #gwWin.vendwin .gw-body.peek > .shop-sheet { transform: translate(-50%, -50%); opacity: 1; visibility: visible; transition: transform .28s cubic-bezier(.2, 1.3, .4, 1), opacity .2s; }
  #gwWin.vendwin .cs-dim { display: block; position: fixed; inset: 0; z-index: 5; background: rgba(6, 4, 16, .6); opacity: 0; pointer-events: none; transition: opacity .2s; }
  #gwWin.vendwin .gw-body.peek > .cs-dim { opacity: 1; pointer-events: auto; }
  #gwWin.vendwin .shop-sheet .bd-x { display: grid; place-items: center; position: absolute; top: 10px; right: 10px; z-index: 4; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); cursor: pointer; } #gwWin.vendwin .shop-sheet .bd-x .ico { width: 15px; height: 15px; }
  #gwWin.vendwin .shop-sheet > .sti { gap: 8px; padding: 0; border: 0; background: none; box-shadow: none; transform: none; cursor: default; } #gwWin.vendwin .shop-sheet > .sti::after { content: none; }
  #gwWin.vendwin .shop-sheet > .sti .sti-tt { order: -1; min-height: 36px; padding-right: 44px; } #gwWin.vendwin .shop-sheet > .sti .sti-tt b { font: 400 21px/1.15 var(--gw-title); color: var(--honey); }
  #gwWin.vendwin .shop-sheet > .sti .sti-stage { height: 200px; margin: 0; border-radius: 14px; } #gwWin.vendwin .shop-sheet > .sti .sti-stage .spin { width: 200px; height: 200px; }
  #gwWin.vendwin .shop-sheet > .sti p { display: block; margin: 0; min-height: 0; font-size: 13.5px; line-height: 1.45; }
  #gwWin.vendwin .sti-ph { visibility: hidden; box-sizing: border-box; }
  body.no-fx #gwWin.vendwin .shop-sheet, body.no-fx #gwWin.vendwin .cs-dim { transition: none !important; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 681px) { #gwWin.vendwin .shop-sheet, #gwWin.vendwin .cs-dim { transition: none !important; } }
#gwWin.vendwin .shop-sheet .take-row .gw-btn { flex: 1 1 0; min-height: 44px; font-size: 16px; } #gwWin.vendwin .shop-sheet .take-row .to-bag { width: auto; gap: 6px; padding: 0 10px; } #gwWin.vendwin .shop-sheet .take-row .tb-l { display: inline; }
#gwWin.vendwin .shop-sheet .qty { margin: 2px 0 6px; } #gwWin.vendwin .shop-sheet .qty button { min-height: 40px; font-size: 14px; }
#gwWin.vendwin .shop-sheet > .sti .sti-f { position: sticky; bottom: -16px; z-index: 2; margin: 0 -14px -16px; padding: 8px 14px 16px; background: #17152d; box-shadow: 0 -10px 12px -6px #17152d; }   /* (a short screen: Takeaway and To Bag stay in sight, the rest scrolls) */
@media (max-width: 680px) { #gwWin.vendwin .shop-sheet > .sti .sti-stage { height: min(190px, 26vh); } #gwWin.vendwin .shop-sheet > .sti .sti-stage .spin { width: min(190px, 26vh); height: min(190px, 26vh); } #gwWin.vendwin .shop-sheet > .sti .sti-f { bottom: calc(-16px - env(safe-area-inset-bottom, 0px)); margin-bottom: calc(-16px - env(safe-area-inset-bottom, 0px)); padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 680px) {
  #gwWin.vendwin .sti-grid:not(.one) { grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 8px; }
  #gwWin.vendwin .sti-grid:not(.one) > .sti[data-card] { padding: 8px; } #gwWin.vendwin .sti-grid:not(.one) > .sti[data-card] .sti-stage { height: 104px; margin: -8px -8px 0; } #gwWin.vendwin .sti-grid:not(.one) > .sti[data-card] .sti-stage .spin { width: 104px; height: 104px; }
  #gwWin.vendwin .sti-grid > .sti[data-card] .sti-tt b { font-size: 14.5px; }
  #gwWin.vendwin .take-row .gw-btn { padding-inline: 6px; font-size: 13px; }
  #gwWin.vendwin .sti-grid:not(.one) > .sti[data-card] .sti-f > .gw-btn { min-height: calc(40px / var(--ui, 1)); }   /* (list 5 stage 4: Buy and Wear land at 40 px) */
  #gwWin.vendwin .sti-grid:not(.one) > .sti[data-card] .chip.gus-on { position: absolute; top: 78px; left: 8px; z-index: 2; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); background: rgba(20, 18, 38, .85); color: var(--honey); }   /* (Gus's: "On Gus Today" sits on the picture's corner, the chips keep one row) */
  #gwWin.vendwin .sti-grid:not(.one) > .sti .to-bag { position: absolute; top: 6px; left: 6px; z-index: 3; width: calc(40px / var(--ui, 1)); height: calc(40px / var(--ui, 1)); border-radius: 50%; }   /* (a narrow card: the bag sits on the picture like the Shop's try-on, Takeaway gets the row) */
  #gwWin.vendwin .shop-sheet .take-row .gw-btn { font-size: 15px; } #gwWin.vendwin .shop-sheet .take-row .to-bag { width: auto; padding: 0 10px; }
  .sti-grid.one > .sti { display: flex; } .sti-grid.one > .sti > .sti-stage { height: 170px; min-height: 0; margin: -11px -11px 0; border-radius: 12px 12px 0 0; } .sti-grid.one > .sti p { display: block; }
  .vend-head { gap: 10px; } .vend-head .vend-pic { width: 72px; height: 72px; margin: -4px 0; } .vh-t .vh-n { font-size: 17px; } .vh-t small { font-size: 11.5px; } .vend-head .vh-t p { font-size: 13px; padding: 5px 10px; }
}
@media (max-height: 640px) and (orientation: landscape) { .vh-t small { display: none; } .vend-head .vend-pic { width: 64px; height: 64px; } .vend-head .vh-t p { margin-top: 3px; } }   /* (a short screen on its side: the goods start high) */
#gwWin .sti-grid.one .take-row { flex-wrap: wrap; } #gwWin .sti-grid.one .take-row .gw-btn { flex: 1 1 auto; } #gwWin .sti-grid.one .take-row .to-bag { width: auto; gap: 6px; padding: 0 10px; } #gwWin .sti-grid.one .take-row .tb-l { display: inline; }   /* (one wide card has no item sheet: To Bag says its name and price) */
.vend-hint .hint-bag { display: inline-grid; place-items: center; width: 22px; height: 22px; margin: -4px 1px; border: 2px solid #000; border-radius: 50%; box-sizing: border-box; background: linear-gradient(#4a476a, #35334f); vertical-align: middle; } .vend-hint .hint-bag .ico { width: 12px; height: 12px; margin: 0; }   /* (the bag button in small, as it looks on a phone's card) */
@media (min-width: 681px) { .vend-hint .hint-bag { border-radius: 6px; } }   /* (a wide card's bag button is a rounded square) */
/* polish r6: Your Looks. Four tabs (Body, Wear, Effects, My Looks) with chips for the parts; the colours of what you have on above
   the grid, 36 px each; one Save (green with a change, "Nothing changed yet" without); a locked piece's card says how to get it
   (inline here, the item sheet on a phone); a phone keeps a small pedestal over the grid, a tap makes it big */
@media (max-width: 680px), (max-height: 480px) and (orientation: landscape), (min-width: 681px) and (max-width: 1100px) and (min-height: 481px) {   /* (a phone: 40 px to tap as it lands on the screen; on its side the whole UI is scaled by --ui) */
  #gwBack > #gwWin > .pop-x { width: calc(42px / var(--ui, 1)); height: calc(42px / var(--ui, 1)); }
  .sq-open, .gw-btn.sm.inv-fbtn, .sh-x, .bag-detail .bd-x, .shop-sheet .bd-x, .lk-info .bd-x, .st-pick .ico, .wish-b, .sti .tryon, .sti-stage .wish-b, .sti-stage .tryon, .bag-detail .big .wish-b, .gw-pan .pop-x, #gwWin.vendwin .sti-grid:not(.one) > .sti .to-bag { width: calc(40px / var(--ui, 1)); height: calc(40px / var(--ui, 1)); }
  .gw-btn[aria-label]:has(> svg:only-child), .hc-more [data-hmore], .bd-more > .gw-btn { min-width: calc(40px / var(--ui, 1)); min-height: calc(40px / var(--ui, 1)); }   /* (any button that is only an icon) */
  .wish-b, .sti-stage .wish-b, .bag-detail .big .wish-b, .sti-stage .tryon { border-color: transparent; background: radial-gradient(circle, rgba(20, 18, 34, .75) 0 11px, transparent 12px); }   /* (the bigger hit area doesn't show: the look stays a small round heart, hearted or not) */
  .wish-b.on, .sti-stage .wish-b.on, .bag-detail .big .wish-b.on { border-color: transparent; background: radial-gradient(circle, rgba(60, 10, 30, .8) 0 11px, transparent 12px); }
  .bag-detail .big .wish-b { top: 0; right: 0; }
  .gw-tabs:not(.mini) button, .pop-menu button { min-height: calc(40px / var(--ui, 1)); } .shop-top:has(> .st-pick), .shop-top:has(+ .shop-q) { min-height: calc(46px / var(--ui, 1)); }
}
@media (max-width: 680px) { #gwWin:is(.shopwin, .bagwin, [data-w="times"]) > .gw-tabs button em { position: static; display: inline-block; margin-left: 4px; vertical-align: 2px; } #gwWin:is(.shopwin, .bagwin, [data-w="times"]) > .gw-tabs button em:empty { display: none; } }   /* (a count sits after the word, never on its last letter) */
/* every tab carries its picture (Jesse, 2026-11-07: "people think in pictures"): picture and word where both fit; where they don't, a closed tab is its picture, at least 40 px as it lands (in every window that does this: Rooms, Quests, Settings, the Gym), and the open one says its name */
#gwWin:is(.shopwin, .bagwin) > .gw-tabs button svg.ico:not(.tab-caret) { margin-right: 4px; }
@media (max-width: 440px) { #gwWin.shopwin > .gw-tabs:has(> .tab-over) button:not(.on, .tab-over) { flex: 1 0 calc(40px / var(--ui, 1)); } #gwWin.shopwin > .gw-tabs:has(> .tab-over) button:not(.on, .tab-over) .tl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } #gwWin.shopwin > .gw-tabs:has(> .tab-over) button:not(.on, .tab-over) svg.ico { width: 22px; height: 22px; margin: 0; } }
@media (max-width: 380px) { #gwWin.bagwin > .gw-tabs button { padding-inline: 5px; } }
@media (max-width: 360px) { #gwWin.shopwin > .gw-tabs:not(:has(> .tab-over)) button:not(.on) { flex: 1 0 calc(40px / var(--ui, 1)); } #gwWin.shopwin > .gw-tabs:not(:has(> .tab-over)) button:not(.on) .tl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } #gwWin.shopwin > .gw-tabs:not(:has(> .tab-over)) button:not(.on) svg.ico { width: 22px; height: 22px; margin: 0; } }   /* (Mo's three on a narrow phone) */
@media (max-width: 370px) { #gwWin.bagwin > .gw-tabs button:not(.on) { flex: 1 0 calc(40px / var(--ui, 1)); } #gwWin.bagwin > .gw-tabs button:not(.on) .tl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } #gwWin.bagwin > .gw-tabs button:not(.on) svg.ico { width: 22px; height: 22px; margin: 0; } }
@media (max-width: 680px), (max-height: 480px) and (orientation: landscape) { #gwWin > .gw-tabs button:has(> .tl):not(.on) { min-width: calc(40px / var(--ui, 1)); } #gwWin.lookswin > .gw-tabs button:not(.on) .tl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } #gwWin.lookswin > .gw-tabs button:not(.on) svg.ico { width: 22px; height: 22px; margin: 0; } }
@media (min-width: 681px) and (min-height: 481px) { #gwWin.lookswin > .gw-tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-block: 4px 7px; } #gwWin.lookswin > .gw-tabs button svg.ico { width: 26px; height: 26px; margin: 0; } }   /* (a wide screen: all 17 in a row, the picture over its word) */
.inv-side .inv-f svg.ico { width: 17px; height: 17px; margin-right: 6px; vertical-align: -.2em; }   /* (the Bag's folders; the Shop's sections space theirs with a gap) */
@media (max-width: 680px) {   /* (a section's header: the name shares a row with its buttons, the line runs the full width under them, so it wraps whole in two lines at most, nearly always) */
  .shop-top:has(> .st-pick):not(:has(.st-stat)) { align-items: flex-start; } .shop-top:has(> .st-pick):not(:has(.st-stat)) > :is(svg, .cat-pic) { margin-top: calc((40px / var(--ui, 1) - 26px) / 2); }
  .shop-top:has(> .st-pick):not(:has(.st-stat)) .st-id b { display: flex; align-items: center; min-height: calc(40px / var(--ui, 1)); }
  .shop-top:has(> .st-pick):not(:has(.st-stat)) .st-id small { margin-right: calc(-6px - 40px / var(--ui, 1)); } .shop-top:has(> .st-pick):has(+ .shop-q):not(:has(.st-stat)) .st-id small { margin-right: calc(-14px - 80px / var(--ui, 1)); }
}
/* List 5 stage 4 (Iris): a phone's Shop section header is one row (the name, Search, the caret): its line moved into the caret's sheet,
   so the goods start high. Mo's Stall on a phone: Mo small beside his speech bubble, his name and job are the window's title */
.sq-sheet .sh-line { margin: -2px 0 10px; font: 600 12.5px/1.35 var(--gw-font); color: var(--dim); }
@media (max-width: 680px) {
  #gwWin.shopwin .shop-top:has(> .st-pick):not(:has(.st-stat)) .st-id small { display: none; }
  #gwWin.shopwin .shop-top:has(> .st-pick):not(:has(.st-stat)) { align-items: center; min-height: calc(44px / var(--ui, 1)); padding-bottom: 6px; }
  #gwWin.shopwin .shop-top:has(> .st-pick):not(:has(.st-stat)) > :is(svg, .cat-pic) { margin-top: 0; }
  #gwWin.shopwin .sti-grid > .sti[data-card] .sti-f > .gw-btn, #gwWin.shopwin .sti-f .gw-btn { min-height: calc(40px / var(--ui, 1)); }
  #gwWin.shopwin .vend-head { gap: 6px; margin-bottom: 10px; padding: 4px 8px 4px 2px; }
  #gwWin.shopwin .vend-head .vend-pic { width: 58px; height: 58px; margin: -2px 0; }
  #gwWin.shopwin .vend-head .vh-n, #gwWin.shopwin .vend-head .vh-t > small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #gwWin.shopwin .vend-head .vh-t p { margin-top: 0; font-size: 12.5px; line-height: 1.3; }
}
@media (min-width: 681px) and (max-height: 480px) and (orientation: landscape) {   /* (List 5 s4: a phone on its side shows whole cards: smaller stages, the line on one row) */
  #gwWin.shopwin .cat2 .cat-body .sti-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  #gwWin.shopwin .cat2 .cat-body .sti-stage { height: 92px; } #gwWin.shopwin .cat2 .cat-body .sti-stage .spin, #gwWin.shopwin .cat2 .cat-body .sti-stage > img.thumb { width: 92px; height: 92px; margin-top: 0; }
  #gwWin.shopwin .cat2 .cat-body .sti p { min-height: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
  #gwWin.shopwin .cat2 .cat-body .sti-f .gw-btn, #gwWin.shopwin .cat-tree .cat-btn, #gwWin.shopwin .shop-q .inv-search, #gwWin.shopwin .shop-q select, #gwWin.shopwin .shop-q .theme-chips button { min-height: calc(40px / var(--ui, 1)); }
}
@media (min-width: 681px) and (max-height: 480px) and (orientation: landscape) { .shop-q { flex-wrap: nowrap; margin-bottom: 8px; } .shop-q .inv-search { flex: 0 1 150px; min-width: 100px; } .shop-q .theme-chips { order: 0; flex: 1 1 0; padding: 0; } .cat-main > .shop-top:not(:has(.st-stat)), #gwWin.shopwin > .gw-body > .shop-top:not(:has(.st-stat)) { display: none; } }   /* (a wide phone on its side: the tree already names the section, search, themes and sort share one row: the goods start high) */
@media (min-width: 1100px) { #gwWin.lookswin { width: min(1080px, calc(var(--vw) - var(--gw-dx))); } }   /* (a wide screen shows all the categories at once; 1080: three group gaps since 2026-11-10) */
#gwWin.lookswin > .gw-tabs button.lk-gap { margin-left: 15px; } #gwWin.lookswin > .gw-tabs button.lk-gap::before { content: ''; position: absolute; left: -8px; top: 12px; bottom: 12px; width: 1px; background: var(--hair); }   /* (the groups: saved, who the fly is, worn, the finer body parts) */
.lk-left .tints, .lk-left .tints.many { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 2px 6px; }
.lk-left .wd-c, .lk-left .tints.many .wd-c { width: 36px; height: 36px; flex: none; }
.lk-left .tints-wrap .gw-sec { margin-top: 2px; }
.lk-cn { order: 1; font: 600 12.5px var(--gw-font); letter-spacing: .2px; text-transform: capitalize; color: var(--cream); }
.lk-vnote { text-transform: none; font-weight: 500; color: var(--dim); } .lk-vnote.saved { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--green); } .lk-vnote .ico { width: 14px; height: 14px; }
.tints-wrap { margin: 0 0 8px; }
.lk-ped { cursor: pointer; border-radius: 12px; } .lk-ped:focus-visible { outline: 2px solid var(--honey); outline-offset: 2px; }
.lk-grow, .lk-dim, .lk-info[hidden] { display: none; }
.lk-act { flex-wrap: wrap; } .lk-act #lkShuffle { order: 1; } .lk-act #lkReset { order: 2; } .lk-act #lkSave { order: 3; }
.lk-hint { order: 4; flex-basis: 100%; margin: 0; text-align: center; font: 600 12px/1.2 var(--gw-font); color: var(--dim); }
.lk-info { position: relative; margin: 0 0 12px; padding: 12px; border-radius: 12px; background: rgba(246, 194, 74, .07); border: 1px solid rgba(246, 194, 74, .35); font-size: 13.5px; }
.lk-info .bd-x { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); cursor: pointer; } .lk-info .bd-x .ico { width: 15px; height: 15px; }
.lk-ih { display: flex; align-items: center; gap: 12px; padding-right: 44px; } .lk-ih > .e { width: 64px; height: 64px; flex: none; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 246, 220, .2), transparent); filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35)); }
.lk-ih b { display: block; font: 400 19px/1.15 var(--gw-title); letter-spacing: .4px; color: var(--honey); } .lk-ih .chips { margin-top: 5px; }
.chip.lk-club { color: #ffd86a; background: linear-gradient(#5a2a8a, #2e1648); border-color: #c9902a; } .chip.lk-club .ico { width: 11px; height: 11px; }
.lk-info p { margin: 10px 0; line-height: 1.45; } .lk-info .lk-go { min-height: 40px; }
.lk-more .ico { width: 18px; height: 18px; margin: 0; }
@media (max-width: 680px) {
  .looks { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .lk-left { overflow: visible; padding-right: 0; }
  .lk-right { order: -1; position: sticky; top: -12px; z-index: 3; margin: -12px -10px 0; padding: 8px 10px; border-radius: 0 0 14px 14px; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0 10px; align-items: center;
    background: radial-gradient(circle at 18% 45%, #3e3b5e, #1d1b33 75%); box-shadow: inset 0 -1px 0 var(--gold-line), 0 10px 14px -8px rgba(0, 0, 0, .7); }
  .lk-ped { height: 108px; min-height: 0; transition: height .25s cubic-bezier(.2, 1.2, .4, 1); }
  .lk-grow { display: grid; place-items: center; position: absolute; right: 0; bottom: 0; width: 24px; height: 24px; border-radius: 50%; background: rgba(10, 8, 22, .7); box-shadow: 0 0 0 1px var(--gold-line); pointer-events: none; }
  .lk-grow .ico { width: 13px; height: 13px; transform: rotate(45deg); transition: transform .25s; }
  .lk-turn { display: none; }
  .lk-act { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .lk-act #lkSave { grid-column: 1 / -1; order: 0; min-height: 40px; } .lk-act .lk-hint { grid-column: 1 / -1; order: 0; margin: -1px 0 1px; }
  .lk-act #lkShuffle, .lk-act #lkReset { order: 0; min-height: 36px; }
  .lk-right.big { grid-template-columns: minmax(0, 1fr); }
  .lk-right.big .lk-ped { height: min(280px, 38vh); } .lk-right.big .lk-grow .ico { transform: rotate(225deg); }
  .lk-right.big .lk-turn { display: flex; margin: 4px 0 8px; }
  .lk-info { display: block; position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 6; max-height: max(62%, calc(100% - 236px)); overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; margin: 0;
    padding: 14px 14px calc(16px + env(safe-area-inset-bottom, 0px)); border-radius: 18px 18px 0 0; border: 2px solid var(--gold-line); border-bottom: 0; background: linear-gradient(180deg, #2a264e, #16142c); box-shadow: 0 0 0 1px #000, 0 -12px 34px rgba(0, 0, 0, .6); animation: lkUp .3s cubic-bezier(.2, 1.2, .4, 1); }
  .lk-info .bd-x { top: 10px; right: 10px; } .lk-info .lk-go { width: 100%; min-height: 44px; font-size: 16px; }
  .looks.peek .lk-dim { display: block; position: fixed; inset: 0; z-index: 5; background: rgba(6, 4, 16, .6); }
  .looks.peek .lk-right { z-index: 7; }   /* (the pedestal stays bright over the dim: it wears the piece you're looking at) */
  .lk-ih > img.lk-try { width: 84px; height: 84px; object-fit: contain; }   /* (the sheet's picture: the fly trying it on) */
}
@media (max-width: 680px) and (max-height: 700px) { .looks.peek .lk-right { visibility: hidden; } }   /* (a short phone: the sheet alone, no sliver of pedestal over it) */
/* List 5 stage 4 (Iris): Looks on a phone. The pedestal is a 72 px thumbnail (a tap still makes it big to turn and dance), Save, Shuffle and
   Reset share one row beside it; the "nothing changed" caption goes (Save lights up green when something did); every swatch and button 40 px */
@media (max-width: 680px) {
  .lk-right { grid-template-columns: 76px minmax(0, 1fr); padding: 6px 10px; }
  .lk-ped { height: 72px; }
  .lk-act { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); }
  .lk-act #lkSave { grid-column: auto; } .lk-act #lkSave, .lk-act #lkShuffle, .lk-act #lkReset { min-height: calc(40px / var(--ui, 1)); padding-inline: 4px; }
  .lk-act .lk-hint { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lk-right.big .lk-act { grid-column: 1 / -1; }
  .lk-left .wd-c, .lk-left .tints.many .wd-c { width: calc(40px / var(--ui, 1)); height: calc(40px / var(--ui, 1)); }
  #gwWin .lk-left .chips.lk-voice button, .lk-new .gw-input, .lk-new .gw-btn, .lk-look .gw-btn.sm { min-height: calc(40px / var(--ui, 1)); }
}
@media (max-width: 680px) {
}
@media (min-width: 520px) and (max-width: 680px) { .lk-left .wd-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); } .lk-right { grid-template-columns: 112px minmax(0, 420px); } }   /* (the unfolded Duo: more than three tiles a row) */
@media (min-width: 681px) and (max-height: 480px) and (orientation: landscape) {   /* (List 5 s4: a phone on its side: Save, Shuffle, Reset and the swatches land at 40 px) */
  .lk-act #lkSave, .lk-act #lkShuffle, .lk-act #lkReset, .lk-new .gw-input, .lk-new .gw-btn, .lk-look .gw-btn.sm, #gwWin .lk-left .chips.lk-voice button { min-height: calc(40px / var(--ui, 1)); min-width: calc(40px / var(--ui, 1)); }
  .lk-left .wd-c, .lk-left .tints.many .wd-c { width: calc(40px / var(--ui, 1)); height: calc(40px / var(--ui, 1)); }
}
@keyframes lkUp { from { transform: translateY(100%); } }
body.no-fx .lk-info, body.no-fx .lk-ped, body.no-fx .lk-grow .ico { animation: none; transition: none; }
@media (prefers-reduced-motion: reduce) { .lk-info, .lk-ped, .lk-grow .ico { animation: none; transition: none; } }
/* polish r8: Rooms (navigator.js). Calm rows: a picture, the name, one line, the flies there now and the door; ONE green Go and a "…"
   (windows.js moreHtml/moreMenu). Mine: a header (your rooms, how many of how many, New Room) over cards with the room's own picture. */
.rm-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.rm-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 8px 6px 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .035); }
.rm-row.here { border-color: rgba(246, 194, 74, .45); background: rgba(246, 194, 74, .07); }
.rm-pic.wt-pic { width: 80px; height: 45px; border-radius: 8px; } .rm-pic.wt-pic > svg { width: 24px; height: 24px; }
.rm-pic.wt-pic:not(:has(img)) { border-color: var(--line); background: radial-gradient(circle, #3e3b5e, var(--glass2)); }   /* (no picture yet: the floor shape or an icon on the plum glass) */
.rm-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rm-id > b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.2; color: var(--cream); }
.rm-id > small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--dim); font-size: 12px; font-weight: 600; line-height: 1.3; }
.rm-fav .ico { width: 14px; height: 14px; margin-left: 5px; vertical-align: -2px; }
.rm-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin-top: 2px; font: 700 12px/1.25 var(--gw-font); color: var(--dim); }
.rm-facts > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; } .rm-facts .ico { width: 15px; height: 15px; }
.rm-cnt.live { color: var(--honey); }
.rm-cnt.live::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #6ee08c; animation: rmLive 2.2s ease-out infinite; }   /* (somebody is there right now) */
@keyframes rmLive { 0% { box-shadow: 0 0 0 0 rgba(110, 224, 140, .55); } 70%, 100% { box-shadow: 0 0 0 6px rgba(110, 224, 140, 0); } }
body.no-fx .rm-cnt.live::before { animation: none; } @media (prefers-reduced-motion: reduce) { .rm-cnt.live::before { animation: none; } }
.rm-acts { flex: none; display: flex; align-items: center; gap: 6px; }
.rm-acts > .gw-btn { min-width: 54px; min-height: 36px; }
.rm-acts .hc-more > .gw-btn { width: 38px; min-height: 36px; } .rm-acts .hc-more > .gw-btn svg { width: 20px; height: 20px; }
.rm-here { font: 700 11.5px var(--gw-font); font-style: normal; color: var(--honey); white-space: nowrap; }
.rm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(rgba(246, 194, 74, .09), rgba(0, 0, 0, .15)), #1b1830; }   /* (opaque: a panel behind the glass window never shows through the header) */
.rm-cap { flex: 1 1 180px; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 10px; min-width: 0; }
.rm-cap > b { font: 400 18px var(--gw-title); letter-spacing: .5px; color: var(--honey); } .rm-cap > span { justify-self: end; font: 700 13px var(--gw-font); color: var(--cream); }
.rm-capbar { grid-column: 1 / -1; display: block; height: 6px; border-radius: 4px; overflow: hidden; background: rgba(0, 0, 0, .4); box-shadow: inset 0 0 0 1px var(--line); }
.rm-capbar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--honey)); }
.rm-head > .gw-btn { min-height: 38px; } .rm-head > .gw-btn .ico { width: 17px; height: 17px; margin-right: 5px; vertical-align: -3px; }
.rm-list.cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.rm-list.cards .rm-row { flex-direction: column; align-items: stretch; gap: 6px; padding: 6px; }
.rm-list.cards .rm-pic.wt-pic { width: 100%; height: auto; aspect-ratio: 16 / 9; } .rm-list.cards .rm-pic.wt-pic > svg { width: 60px; height: 60px; }
.rm-list.cards .rm-id { padding: 0 2px; } .rm-list.cards .rm-acts > .gw-btn, .rm-list.cards .rm-here { flex: 1; text-align: center; }
.rm-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 12px 0 0; } .rm-legend > span { display: inline-flex; align-items: center; gap: 5px; } .rm-legend .ico { width: 15px; height: 15px; }
.roomswin .nav-search > *, .rbcard .nav-search > * { min-height: 38px; box-sizing: border-box; } .roomswin .nav-search .inv-search, .rbcard .nav-search .inv-search { flex: 1; min-width: 0; margin: 0; }
.roomswin .gw-empty .gw-btn { min-height: 38px; }
/* list 5 stage 4 (phone audit #14): a phone's room rows: the description one line (Room Info inside has it whole), Go and … at 40 px */
@media (max-width: 680px), (max-height: 480px) { .rm-acts > .gw-btn.gw-btn, .rm-acts .hc-more > .gw-btn, .rm-head > .gw-btn.gw-btn, .roomswin .nav-search > *, .roomswin .gw-empty .gw-btn.gw-btn { min-height: calc(40px / var(--ui, 1)); } .rm-acts .hc-more > .gw-btn { width: calc(40px / var(--ui, 1)); } }
@media (max-width: 560px) { .rm-id > small { -webkit-line-clamp: 1; } .rm-list.cards .rm-id > small { -webkit-line-clamp: 2; } }
@media (max-width: 560px) { .rm-list.cards { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); } .rm-cap { flex-basis: 100%; } .rm-head > .gw-btn { flex: 1 1 0; } .rm-pic.wt-pic { width: 64px; height: 36px; } .rm-row { gap: 8px; } }
@media (max-width: 680px) {   /* (seven tabs on a phone, as the Shop: the open one says its name, the others are their icons) */
  #gwWin.roomswin > .gw-tabs { gap: 0; } #gwWin.roomswin > .gw-tabs button { min-width: 40px; padding-inline: 10px; }
  #gwWin.roomswin > .gw-tabs button:not(.on) .tl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #gwWin.roomswin > .gw-tabs button:not(.on) svg.ico { margin-right: 0; }
}
/* New Room: the standard shapes and the special ones apart; a price is an orange pill (the button rule: orange = spending) */
.apts button.apt:has(.buy) { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; } .apts button.apt:has(.buy) > .pv { align-self: stretch; } .apt .buy { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 5px; border-radius: 999px; border: 1px solid #4a1f08; background: linear-gradient(#ffb25a, #e8661e); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); color: #fff3d6; font: 400 13px/1.2 var(--gw-title); letter-spacing: .3px; text-shadow: 0 1px 0 rgba(60, 20, 0, .5); }
.apt .buy .ico { width: 15px; height: 15px; } .apt .buy.short { filter: saturate(.35) brightness(.85); }
.apt .apt-n .ico { width: 13px; height: 13px; margin-right: 3px; vertical-align: -2px; }
.newroomwin .apts + .gw-sec { margin-top: 16px; }
/* Rights & Bans: a hero card, Rights and Bans its tabs; Room Info: the door as three icons */
.rbcard .hc-pic { display: grid; place-items: center; width: 52px; height: 52px; } .rbcard .hc-pic .ico { width: 34px; height: 34px; }
.rbcard .hc-id { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; } .rbcard .rb-t { font: 400 19px var(--gw-title); letter-spacing: .5px; color: var(--honey); } .rbcard .hc-id small { color: var(--dim); font-weight: 600; }
.rbcard .hc-id .linkish { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; font-size: 12.5px; } .rbcard .hc-id .linkish .ico { width: 15px; height: 15px; }
.rbcard .hc-tab { margin-top: 8px; } .rbcard .hc-tab > .gw-note:first-child { margin-top: 0; }
.ri-door { display: inline-flex; margin: 1px 0 3px; } .ri-door button { display: grid; place-items: center; min-width: 40px; min-height: 34px; padding: 4px 8px; } .ri-door .ico { width: 18px; height: 18px; }
/* polish r9: The Juicery (gym.js). A calm header (your Juice, labelled, and three stats); one list of upgrade rows per section (the icon,
   the name with its level, what the next level gives, an orange Buy; a maxed row rests); the how-it-works text in folds (.mk-intro) */
.jy-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: 0 0 10px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(246, 194, 74, .07); }   /* (a flat tint: a gradient here drew solid gold over the reward road in headless Chromium) */
.jy-juice { flex: 1 0 auto; display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; column-gap: 7px; min-width: 0; }
.jy-juice > .jdrop { grid-row: 1 / 3; width: 26px; height: 26px; }
.jy-juice > b { font: 400 24px/1 var(--gw-title); letter-spacing: .5px; color: var(--honey); font-variant-numeric: tabular-nums; transform-origin: 0 60%; }
.jy-juice > small, .jy-st > small { font: 700 11px/1.2 var(--gw-font); color: var(--dim); white-space: nowrap; }
.jy-juice.gain > b { animation: jyGain .7s ease-out; } @keyframes jyGain { 35% { transform: scale(1.14); color: #fff3c0; } }
.jy-st { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 12px; border-left: 1px solid var(--line); }
.jy-st:last-child { padding-right: 0; } .jy-st > b { font: 700 15px/1.15 var(--gw-font); color: var(--cream); white-space: nowrap; } .jy-st .ico { width: 13px; height: 13px; margin-right: 2px; color: #ffd34a; vertical-align: -1px; }
.jy-line { margin: -2px 0 8px; }
.jy-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.jy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; min-height: 54px; box-sizing: border-box; padding: 6px 8px 6px 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .035); }
.jy-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold); background: radial-gradient(circle at 50% 35%, #3e3b5e, #1c1b30); } .jy-ic .ico { width: 22px; height: 22px; }
.jy-id { flex: 1 1 110px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.jy-id > b { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font: 700 14.5px/1.2 var(--gw-font); color: var(--cream); }
.jy-id > b em { font: 700 11.5px var(--gw-font); font-style: normal; color: var(--dim); }
.jy-id .lvls { display: flex; gap: 3px; } .jy-id .lvls i { width: 12px; height: 6px; border-radius: 3px; background: #150f1c; border: 1px solid var(--line); } .jy-id .lvls i.on { background: var(--gold); border-color: var(--gold-d); }
.jy-id > small { font: 600 12px/1.3 var(--gw-font); color: var(--dim); } .jy-id > small .ico { width: 13px; height: 13px; margin-right: 4px; color: var(--leaf); vertical-align: -2px; }
.jy-row > .gw-btn { flex: none; min-height: 36px; margin-left: auto; }   /* (a narrow window: Buy drops under the text, so the next level keeps its line) */
.jy-sts { display: flex; margin-left: auto; }   /* (the three stats move under your Juice as one group when the header is narrow) */
@media (max-width: 680px), (max-height: 480px) { .jy-row > .gw-btn, #gwWin.gymwin .gw-btn.sm { min-height: calc(40px / var(--ui, 1)); } }   /* (list 5 stage 4: Buy and Claim land at 40 px) */
@media (max-width: 680px), (max-height: 480px) { .jy-head.jy-slim { padding: 5px 12px; } .jy-head.jy-slim .jy-sts { display: none; } .jy-head.jy-slim .jy-juice { grid-template-columns: auto auto auto; align-items: baseline; } .jy-head.jy-slim .jy-juice > .jdrop { grid-row: 1; width: 22px; height: 22px; align-self: center; } .jy-head.jy-slim .jy-juice > b { font-size: 20px; } }   /* (list 5 stage 4: a phone keeps the stats strip to Upgrades; elsewhere your Juice is one slim line) */
.jy-row.max { border-color: rgba(246, 194, 74, .28); background: rgba(246, 194, 74, .05); } .jy-row.max .jy-id > small { color: var(--cream); }
.jy-max { flex: none; margin-left: auto; padding: 3px 10px; border-radius: 10px; font: 400 13px var(--gw-title); letter-spacing: .5px; color: var(--honey); background: rgba(246, 194, 74, .12); }
.jy-row.up { animation: jyUp 1s ease-out; } .jy-row.up .lvls i.on:not(:has(+ i.on)) { animation: jyPip .6s cubic-bezier(.3, 1.6, .5, 1); }   /* (just bought: the row glows once, the new level pops in) */
@keyframes jyUp { 0% { border-color: var(--honey); box-shadow: 0 0 0 0 rgba(255, 211, 74, .6), inset 0 0 18px rgba(255, 211, 74, .3); } 100% { box-shadow: 0 0 0 12px rgba(255, 211, 74, 0); } }
@keyframes jyPip { 0% { transform: scale(2.4); background: #fff3c0; } }
body.no-fx :is(.jy-row.up, .jy-row.up .lvls i, .jy-juice > b) { animation: none; } @media (prefers-reduced-motion: reduce) { :is(.jy-row.up, .jy-row.up .lvls i, .jy-juice > b) { animation: none; } }
.jy-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; } .jy-chips span { padding: 3px 8px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0, 0, 0, .22); font: 600 11.5px/1.3 var(--gw-font); color: var(--dim); opacity: .7; } .jy-chips span.on { opacity: 1; color: var(--honey); border-color: var(--gold-d); }
.jy-fold { margin: 10px 0 0; } .jy-fold .pr-how { margin: 2px 0 10px; } .jy-fold .ps-tiers { margin: 0 0 10px; } .jy-fold .jc-day { margin: 2px 0 6px; } .jy-fold summary b { font-weight: 700; }
.jy-lock { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 10px 0 0; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .2); font: 600 12.5px/1.35 var(--gw-font); color: var(--cream); }
.jy-lock > .ico { flex: none; width: 22px; height: 22px; color: var(--honey); } .jy-lock > span { flex: 1 1 200px; } .jy-lock > .gw-btn { min-height: 36px; margin-left: auto; }
.jy-wk { display: flex; align-items: center; gap: 8px; } .jy-wk > span { flex: 1; } .jy-wk > em { font-style: normal; color: var(--leaf); white-space: nowrap; } .jy-wk > em .ico { width: 13px; height: 13px; vertical-align: -2px; } .jy-wk > .gw-btn { flex: none; min-height: 36px; }
.jy-pair { display: grid; gap: 6px; } .jy-pair > * { margin-bottom: 0; }
.jy-kind { margin: 10px 0 6px; font: 700 12.5px var(--gw-font); color: var(--cream); }
.fl small.price { padding: 1px 8px; border-radius: 8px; color: #fff3d6; background: linear-gradient(#ffa53a, #e07a1c); box-shadow: 0 1px 0 #8a3a0c; } .fl small.price.cant { filter: grayscale(.6) brightness(.8); }   /* (buying spends: orange) */
.jy-sq { justify-content: center; margin: 8px 0 0; } .jy-sq .gw-btn { min-height: 40px; }
.pr-t { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; } .pr-t b { font: 400 19px/1 var(--gw-title); letter-spacing: .5px; color: var(--honey); } .pr-t .pr-full { font: 700 12.5px var(--gw-font); color: var(--cream); }
.pr-line { font: 600 12px/1.3 var(--gw-font); color: var(--dim); } .pr-pay { font: 700 13px/1.35 var(--gw-font); color: var(--cream); } .pr-pay small { font: 600 12px var(--gw-font); color: var(--dim); } .pr-pay .ic, .pr-pay .ico { width: 14px; height: 14px; vertical-align: -.2em; }
.pr-how li > .ic:first-child { flex: none; width: 18px; height: 18px; margin-top: 1px; }
@media (min-width: 900px) { #gwWin.gymwin .jy-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } #gwWin.gymwin .jy-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  #gwWin.gymwin .jy-pair .jc-chest { grid-template-columns: auto minmax(0, 1fr) auto; } #gwWin.gymwin .jy-pair .jc-chest .jc-what { grid-column: 2 / -1; grid-row: 2; } #gwWin.gymwin .jy-pair .jc-chest small { grid-row: 3; } }
@media (max-width: 420px) { .jy-head { padding: 7px 8px; } .jy-st { padding: 0 7px; } .jy-juice { column-gap: 5px; } .jy-juice > b { font-size: 20px; } .jy-juice > .jdrop { width: 22px; height: 22px; } .jy-row { gap: 8px; } .jy-ic { width: 36px; height: 36px; } .jy-ic .ico { width: 20px; height: 20px; } }
@media (max-width: 680px) {   /* (six tabs on a phone, as the Shop and Rooms: the open one says its name, the others are their icons) */
  #gwWin.gymwin > .gw-tabs { gap: 0; } #gwWin.gymwin > .gw-tabs button { min-width: 40px; padding-inline: 10px; }
  #gwWin.gymwin > .gw-tabs button:not(.on) .tl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #gwWin.gymwin > .gw-tabs button:not(.on) svg.ico { margin-right: 0; }
  #gwWin.gymwin > .gw-tabs button em { top: 1px; right: 1px; min-width: 15px; height: 15px; padding: 0 4px; font-size: 9.5px; line-height: 13px; }   /* (a count stays on its own tab) */
}
#gwWin.gymwin .fl-row { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; } #gwWin.gymwin .fl { padding: 7px 4px; gap: 3px; }   /* (a compact grid: about thirty flairs) */
.jy-fold summary { min-height: 40px; }
#gwWin.gymwin .gw-btn.cant { filter: grayscale(.7) brightness(.75); }   /* (not enough Juice yet: greyed, as the Shop; a tap still says how much is missing) */
/* polish r10: Quests (tasks.js, errands.js, pass.js, events.js, story.js). Every tab opens with the Juicery's calm header strip
   (qHead: the main number with its label, a stat or two, one action); icon tabs on phones; the Fly Pass strip fades at a side with more */
.qh { flex-wrap: wrap; row-gap: 8px; }
.qh .jy-juice > svg.ico { grid-row: 1 / 3; width: 26px; height: 26px; }
.qh > .gw-btn { flex: none; min-height: 36px; margin-left: auto; padding-left: 14px; }
.qh .jy-st + .gw-btn { margin-left: auto; }
.qh .jy-juice.evtok.bump > b { animation: bump .5s ease-out; }
.qh + .jy-line { margin: -2px 2px 10px; }
#gwWin.quests .ev-gift > .task-got { margin-left: auto; }
#gwWin.quests .ev-gift > .gw-btn, #gwWin.quests .task-act .gw-btn, #gwWin.quests .st-acts .gw-btn { min-height: 36px; }
@media (max-width: 680px), (max-height: 480px) { #gwWin.quests .ev-gift > .gw-btn, #gwWin.quests .task-act .gw-btn, #gwWin.quests .st-acts .gw-btn, #gwWin.quests .gw-btn.sm { min-height: calc(40px / var(--ui, 1)); min-width: calc(44px / var(--ui, 1)); } #gwWin.quests .linkish { display: inline-flex; align-items: center; min-height: calc(40px / var(--ui, 1)); } }   /* (list 5 stage 4: Go, Claim and Collect land at 40 px on a phone) */
.story.locked { opacity: 1; } .story.locked > :not(.st-acts) { opacity: .55; }
.pass-strip { position: relative; --fl: 0px; --fr: 0px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); }
.pass-rows.more-l .pass-strip { --fl: 26px; } .pass-rows.more-r .pass-strip { --fr: 44px; }
@media (max-width: 420px) { .pcol { width: 90px; grid-template-rows: 22px 108px 108px; } .pass-rows { grid-template-columns: 52px minmax(0, 1fr); } .pt img { width: 44px; height: 44px; } #gwWin.quests .qh > .gw-btn { padding-inline: 10px; } #gwWin.quests .qh { flex-wrap: nowrap; padding: 7px 8px; } #gwWin.quests .qh .jy-juice > svg.ico { display: none; } #gwWin.quests .qh .jy-juice { grid-template-columns: auto; } #gwWin.quests .qh .jy-st { padding: 0 8px; } #gwWin.quests .qh > .gw-btn { margin-left: 6px; font-size: 13px; } }   /* (checker r10: one row on a phone: the icon goes, the labels are short) */
@media (max-width: 680px) {   /* (six tabs on a phone, as the Juicery: the open one says its name, the others are their icons) */
  #gwWin.quests > .gw-tabs { gap: 0; } #gwWin.quests > .gw-tabs button { min-width: 44px; padding-inline: 10px; }
  #gwWin.quests > .gw-tabs button:not(.on) .tl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #gwWin.quests > .gw-tabs button:not(.on) svg.ico { margin-right: 0; }
  #gwWin.quests > .gw-tabs button em { top: 1px; right: 1px; min-width: 15px; height: 15px; padding: 0 4px; font-size: 9.5px; line-height: 13px; }
  #gwWin.quests > .gw-tabs button.on:has(> em:not(:empty)) { padding-right: 22px; }   /* (checker r10: the open tab keeps room for its count, never over its name) */
}
/* polish r11: the Pet Show (show.js). The calm header strip (tasks.js qHead: this week's theme, the time left, your votes left, your place) instead of
   the purple theme card; icon tabs on phones; one line under the header when you can't vote; the Enter tab's footer stays in sight with its one main
   action and, when it can't go, why in one line (C3: no hat -> Open Pet Hats, the Shop's Pet Hats); your entry and your votes as labels, not grey buttons */
.jy-juice.sp-th > b { font-size: 22px; } .sp-th ~ .jy-st > b small { font: 700 11px var(--gw-font); color: var(--dim); }
.sp-vl { display: inline-block; } .sp-vl.bump { animation: spPop .5s cubic-bezier(.2, 1.8, .4, 1); }
.sp-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 10px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); font: 600 12.5px/1.3 var(--gw-font); color: var(--cream); }
.sp-line > .ico { width: 16px; height: 16px; flex: none; color: var(--pink); } .sp-line > span { flex: 1 1 160px; } .sp-line > .gw-btn { min-height: 36px; margin-left: auto; }
.sp-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; font: 700 11.5px var(--gw-font); white-space: nowrap; }
.sp-tag.mine { color: #2a1606; background: var(--honey); } .sp-tag.voted { color: var(--pink); background: rgba(255, 255, 255, .07); } .sp-tag .ico { width: 13px; height: 13px; }
.sp-card.mine { border-color: var(--honey); background: rgba(246, 194, 74, .08); }
.sp-vote { min-height: 36px; flex-wrap: wrap; } .sp-tag { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }   /* (a narrow card: the tag goes under the count, never wider than its card) */ .sp-vote .gw-btn, .sp-chip, .sp-hat { min-height: 36px; }
.sp-foot, .gw-foot { position: sticky; bottom: -16px; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; margin: 12px -18px -16px; padding: 10px 18px 16px; border-top: 1px solid var(--line); background: #17152d; box-shadow: 0 -10px 12px -6px #17152d; }
.sp-why { flex: 1 1 200px; display: flex; align-items: center; gap: 7px; margin: 0; font: 600 12.5px/1.3 var(--gw-font); color: var(--cream); } .sp-why .ico { width: 18px; height: 18px; flex: none; color: var(--honey); }
.sp-fb, .gw-fb { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-left: auto; } :is(.sp-fb, .gw-fb) .gw-btn { min-height: 40px; white-space: nowrap; } .sp-fb .gw-btn .ico { width: 17px; height: 17px; margin-right: 5px; vertical-align: -3px; }
.sp-week:first-of-type h4 { margin-top: 2px; }
.sp:has(> .sp-foot) { display: flex; flex-direction: column; min-height: 100%; } .sp > .sp-foot { margin-top: auto; } .sp-enter { margin-bottom: 12px; }   /* (a tall window: the footer sits at the bottom, not mid-window) */
.sp-hat { width: 100%; max-width: 300px; }
@media (max-width: 560px) { .jy-juice.sp-th { flex-basis: 100%; } .sp-th ~ .jy-st { flex: 1 1 0; } .sp-th + .jy-st { border-left: 0; } }   /* (a phone: the theme on its own line, the three numbers evenly under it) */
@media (max-width: 680px) {
  .sp-foot, .gw-foot { bottom: -12px; margin: 10px -10px -12px; padding: 8px 10px 12px; }
  .sp-fb, .gw-fb { flex: 1 1 100%; } :is(.sp-fb, .gw-fb) .gw-btn { flex: 1 1 auto; padding-inline: 10px; font-size: 14px; }   /* (the buttons share the row, a narrow phone stacks them) */
  #gwWin.show-win > .gw-tabs { gap: 0; } #gwWin.show-win > .gw-tabs button { min-width: 44px; padding-inline: 10px; }
  #gwWin.show-win > .gw-tabs button:not(.on) .tl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #gwWin.show-win > .gw-tabs button:not(.on) svg.ico { margin-right: 0; }
  #gwWin.show-win > .gw-tabs button em { top: 1px; right: 1px; min-width: 15px; height: 15px; padding: 0 4px; font-size: 9.5px; line-height: 13px; }
}
body.no-fx .sp-vl.bump { animation: none; }
@media (max-width: 420px) { .sp-fb { flex-wrap: nowrap; gap: 6px; } .sp-fb .gw-btn { flex: 1 1 auto; min-width: 0; padding-inline: 6px; font-size: 13px; letter-spacing: .2px; } .sp-fb .gw-btn .ico { display: none; } }   /* (a narrow phone: both footer buttons on one row, the reason above) */
/* polish r12: Settings (ui.js). Display split into Graphics and Effects; icon tabs on phones (the open one says its name); every toggle and
   segment pops as it ticks (.flip; the effects switch and reduced motion stop it); the volume sliders a full row and 36 px to touch on a phone */
.tog.flip::after { animation: togPop .3s cubic-bezier(.2, 1.6, .4, 1); } @keyframes togPop { 45% { transform: scale(1.3); } }
#gwWin.settings .seg button.flip { animation: segPick .35s ease-out; }
body.no-fx .tog.flip::after, body.no-fx #gwWin.settings .seg button.flip { animation: none; }
@media (prefers-reduced-motion: reduce) { .tog.flip::after, #gwWin.settings .seg button.flip { animation: none; } }
@media (pointer: coarse) { #gwWin.settings .set-vol { height: 36px; margin: 0; } #gwWin.settings .seg button { min-height: 36px; } }
/* list 5 stage 4 (phone audit #11): every control in Settings lands at 40 px on a phone. The switch keeps its look: a clear 4 px border round
   the track makes the tap 40 tall; a slider's tap is the full 40 px row; segments, small buttons, Advanced and the policy links too */
@media (max-width: 680px), (max-height: 480px) {
  #gwWin.settings .tog { --tb: calc((40px / var(--ui, 1) - 32px) / 2); box-sizing: border-box; width: calc(56px + 2 * var(--tb)); height: calc(32px + 2 * var(--tb)); border: var(--tb) solid transparent; margin: calc(-1 * var(--tb)); background-clip: padding-box; box-shadow: inset 0 0 0 1px #000; }   /* (the clear border lies over the row's padding: the layout is as before) */
  #gwWin.settings .tog::after { top: 4px; left: 4px; width: 22px; height: 22px; } #gwWin.settings .tog[aria-pressed="true"]::after, #gwWin.settings .chk input:checked + .tog::after { left: 28px; }
  #gwWin.settings .set-vol { height: calc(40px / var(--ui, 1)); margin: 0; }
  #gwWin.settings .seg button, #gwWin.settings .gw-btn.sm, #gwWin.settings summary { min-height: calc(40px / var(--ui, 1)); }
  #gwWin.settings .set-row a, #gwWin.settings .gw-note a { display: inline-block; padding: calc((40px / var(--ui, 1) - 1.3em) / 2) 0; }
  #gwWin.settings > .gw-tabs button { min-width: calc(40px / var(--ui, 1)); }
}
@media (min-width: 681px) { #gwWin.small.settings { width: min(800px, calc(var(--vw) - var(--gw-dx))); } #gwWin.settings > .gw-tabs:has(> button:nth-of-type(8)) button { padding-inline: 9px; letter-spacing: .3px; } }   /* (eight tabs with Staff in one row) */
@media (max-width: 480px) { #gwWin.settings .set-row:has(> .set-vol) { grid-template-columns: 1fr; } #gwWin.settings .set-row > .set-vol { width: 100%; }
  #gwWin.settings .set-row:has(> .gw-btn) { grid-template-columns: 1fr; gap: 8px; } #gwWin.settings .set-row > .gw-btn { justify-self: end; } }   /* (leftovers 2026-11-14: a row with a button stacks too, text above, button below on the right: beside a wide button the text wrapped a word a line on the folded Duo) */
@media (max-width: 680px) {
  #gwWin.settings > .gw-tabs { gap: 0; justify-content: space-between; } #gwWin.settings > .gw-tabs button { min-width: calc(40px / var(--ui, 1)); padding-inline: 8px; } #gwWin.settings > .gw-tabs button.on { padding-inline: 9px; letter-spacing: .3px; }   /* (seven tabs fit 320 px: icons, and the open one's name) */   /* (leftovers 2026-11-14: 40 px, not 38: the folded Duo hid the open tab's name too, and it was the one tap under 40) */
  #gwWin.settings > .gw-tabs button:not(.on) .tl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #gwWin.settings > .gw-tabs button:not(.on) svg.ico { margin-right: 0; }
  #gwWin.settings > .gw-tabs { container-type: inline-size; } #gwWin.settings > .gw-tabs:has(> button:nth-of-type(8)) button { min-width: calc(40px / var(--ui, 1)); padding-inline: 5px; }   /* (staff's eight: 40 px each, a 320 px phone scrolls a little) */
}
@container (max-width: 330px) { #gwWin.settings > .gw-tabs button.on .tl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } #gwWin.settings > .gw-tabs button.on svg.ico { margin-right: 0; } }
@container (max-width: 370px) { #gwWin.settings > .gw-tabs:has(> button:nth-of-type(8)) button.on .tl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } #gwWin.settings > .gw-tabs:has(> button:nth-of-type(8)) button.on svg.ico { margin-right: 0; } }   /* (a narrow row (the Duo folded, 320 px, eight tabs with Staff): the open tab too is its icon, underlined, so all of them fit) */
/* polish r12: the trade window (trade.js): the three steps, one line saying where you are, the sides, your bag, the rules folded,
   and the footer (gw-foot, the Pet Show's sticky footer) with Cancel and the one main action */
.tr-steps { display: flex; align-items: center; gap: 0; margin: 0 0 8px; padding: 0; list-style: none; }
.tr-steps li { display: flex; align-items: center; gap: 6px; flex: none; padding: 5px 12px 5px 6px; border-radius: 99px; font: 700 13px var(--gw-font); color: var(--dim); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.tr-steps li + li { margin-left: 22px; position: relative; } .tr-steps li + li::after { content: ""; position: absolute; right: 100%; top: 50%; width: 22px; height: 2px; background: var(--line); }
.tr-steps li + li.done::after, .tr-steps li + li.on::after { background: var(--gold-line); }
.tr-steps li i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 700 12px var(--gw-font); font-style: normal; background: rgba(255, 255, 255, .08); }
.tr-steps li .ico { width: 22px; height: 22px; padding: 4px; box-sizing: border-box; border-radius: 50%; color: #12301c; background: var(--leaf, #6fcf97); }
.tr-steps li.done { color: var(--cream); }
.tr-steps li.on { color: #2a1606; background: var(--honey); box-shadow: 0 2px 0 var(--gold-d); } .tr-steps li.on i { background: rgba(42, 22, 6, .15); }
.tr-steps li.on.pop { animation: spPop .5s cubic-bezier(.2, 1.8, .4, 1); }
body.no-fx .tr-steps li.pop { animation: none; } @media (prefers-reduced-motion: reduce) { .tr-steps li.pop { animation: none; } }
.tr-line { margin: 0 0 12px; font: 600 13px/1.4 var(--gw-font); color: var(--cream); } .tr-line b { color: var(--honey); }
.tr-fold { margin: 12px 0 0; } .tr-fold summary { display: flex; align-items: center; gap: 6px; min-height: 36px; font: 700 12.5px var(--gw-font); color: var(--dim); cursor: pointer; list-style: none; } .tr-fold summary::-webkit-details-marker { display: none; }
.tr-fold summary .ico { width: 16px; height: 16px; } .tr-fold[open] summary { color: var(--cream); } .tr-fold .gw-note { margin: 0 0 4px; }
@media (max-width: 420px) { .tr-steps { gap: 5px; } .tr-steps li { flex: 1 1 0; min-width: 0; justify-content: center; gap: 4px; padding: 4px 6px; font-size: 12px; } .tr-steps li + li { margin-left: 0; } .tr-steps li + li::after { display: none; } .tr-steps li i, .tr-steps li .ico { width: 18px; height: 18px; font-size: 11px; } .tr-steps li .ico { padding: 3px; } }   /* (a narrow phone: three even pills, no connectors) */
/* polish r12: the Report form (chat.js openReport): each reason a 44 px row with the game's gold radio, the picked one lit; Send in the footer */
.rep-why { display: grid; gap: 6px; }
.authf .rep-why label.radio { display: flex; flex-direction: row; align-items: center; gap: 10px; min-height: 44px; box-sizing: border-box; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .2); box-shadow: inset 0 0 0 1px var(--line); font: 600 13.5px/1.3 var(--gw-font); transition: background-color .15s, box-shadow .15s; }
.rep-why label.radio input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--gold); }
.rep-why label.radio b { font-weight: 700; }
.rep-why label.radio:has(input:checked) { background: rgba(246, 194, 74, .12); box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--honey); }
.rep-why label.radio:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.authf > .gw-foot .gw-btn.wide { flex: 1 1 100%; }
/* polish r12: the market unlock window (market.js unlockCard): the calm header, the swipeable slides, the dots 36 px to tap, one main action */
#gwWin.mku-win { width: min(500px, calc(var(--vw) - var(--gw-dx))); }
.mku-win .mku-slides { margin: 4px -4px 0; }
.mku-win .mku-dots { gap: 2px; margin: 4px 0 0; } .mku-win .mku-dots button { width: 28px; height: 36px; background: none; position: relative; }
.mku-win .mku-dots button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: transform .15s, background-color .15s; }
.mku-win .mku-dots button[aria-current]::after { background: var(--gold); transform: scale(1.25); }
@media (max-height: 600px) { .mku-win .mku-art { height: 96px; } .mku-win .mku-art .spin { width: 96px; height: 96px; } }
/* polish r12: a shop card's colour swatches 36 px to tap on a touch screen (they were 32) */
@media (pointer: coarse) { #gwWin .sti .swatches button::before { inset: -7px; } }
.gw-foot .gw-btn.green:disabled, .gw-foot .gw-btn.green[disabled] { filter: grayscale(.85) brightness(.6); opacity: .75; cursor: not-allowed; }   /* (polish r12, checker: a disabled main action in a footer looks off, never bright green) */
#gwWin form.authf[hidden] { display: none; }   /* (polish r12: a sent report: the Sent card replaces the form) */
/* polish r13 (N4): the pet card is a narrow card on every screen: the open tab says its name, the others are their icons */
.petcard .hc-tabs button:not(.on) .tl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.petcard .hc-tabs button:not(.on) svg.ico { margin-right: 0; }
.petcard .hc-acts > .gw-btn small { white-space: normal; text-align: center; line-height: 1.1; overflow: visible; }   /* (N4: the snack name wraps on its own line, never "Sourdough Cr...") */
/* polish r13: taps of at least 36 px on the screen on a phone (the final audit's list; /var(--ui) undoes the window zoom); the look stays the same where it can */
@media (pointer: coarse), (max-width: 680px) {
  .tog { position: relative; } .tog::before { content: ""; position: absolute; inset: -4px; }   /* (the hit area; the switch keeps its size) */
  .linkish { padding: 10px 0; }
  #accBtn { min-height: calc(36px / var(--ui, 1)); box-sizing: border-box; }
  #tourCard .gw-btn { min-height: calc(36px / var(--ui, 1)); }
  .busk-row .gw-btn { min-height: calc(36px / var(--ui, 1)); }
  .lore-foot .linkish, .rbcard .hc-id .linkish { min-height: calc(36px / var(--ui, 1)); }
  .lk-new input { min-height: calc(36px / var(--ui, 1)); box-sizing: border-box; }
  .gw-tabs.mini button, .gw-btn.sm { min-height: calc(36px / var(--ui, 1)); }
}

/* 2026-11-01: Norman Taylor's farm: the first meeting (the Mayor's welcome layout, his words on parchment, yours in blue), the Buzzweed lock on Puff's seeds, the send-off card */
.welcome-say.fly { background: #e4efff; color: #1f3a5a; box-shadow: 0 2px 0 #8aa8d0; } .welcome-say.fly::before { border-right-color: #e4efff; } .welcome-say.fly b { color: #2a5a9a; }
.welcome-say.mad { animation: trey-mad .35s 1; } @keyframes trey-mad { 0%, 100% { transform: none; } 25% { transform: translateX(-4px) rotate(-1deg); } 60% { transform: translateX(4px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .welcome-say.mad { animation: none; } }
.trey-foot { display: grid; gap: 8px; } .trey-foot .gw-btn { min-height: 42px; }
.grow-lock { display: grid; gap: 8px; justify-items: stretch; margin: 10px 0; padding: 14px 12px; border-radius: 14px; border: 1px solid var(--gold-line); background: rgba(246, 194, 74, .08); text-align: center; }
.grow-lock > b { font: 700 16px/1.3 var(--gw-font); color: var(--gold); } .grow-lock p { margin: 0; color: var(--dim); font-size: 13.5px; }
.grow-lock .gl-ic { justify-self: center; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(0, 0, 0, .3); border: 1px solid var(--gold-line); } .grow-lock .gl-ic .ico { width: 26px; height: 26px; }
.f4-unlock { display: grid; justify-items: center; gap: 6px; margin: 10px 0; padding: 14px 12px; border-radius: 14px; border: 1px solid var(--gold-line); background: radial-gradient(circle at 50% 0, rgba(246, 194, 74, .24), transparent 72%); text-align: center; }
.f4-pics { display: flex; gap: 10px; } .f4-pics .thumb.mini { width: 58px; height: 58px; }
.f4-unlock b { font: 700 16px/1.3 var(--gw-font); color: var(--gold); } .f4-unlock small { color: var(--dim); font-size: 13px; }
.f4-chips { display: flex; gap: 6px; margin-top: 4px; } .f4-chips .chip { background: rgba(120, 200, 90, .18); border: 1px solid #7ac85a; color: #fff; }
.f4-unlock + .acts { display: grid; gap: 8px; }

/* ---- List 1 D2: the team's news posts: From the Team in The Fruit Times, and the staff News editor ---- */
.news-list { display: grid; align-items: start; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 8px; }
.news-card { display: grid; align-content: start; gap: 5px; padding: 8px; border: 1px solid rgba(42, 40, 51, .3); border-radius: 12px; background: rgba(255, 255, 255, .4); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.news-card:hover, .news-card:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(70, 50, 20, .2); }
.news-card:active { transform: scale(.98); }
.news-pic { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #e6dcc0; }
.news-pic.big { margin-bottom: 8px; max-height: 320px; }
.news-meta { display: flex; align-items: center; gap: 8px; font: 600 11.5px var(--gw-font); }
.news-meta small { opacity: .7; }
.times .news-cat { color: #5a4a20; border-color: currentColor; background: none; }
.times .news-cat[data-cat="Event"] { color: #c4235a; } .times .news-cat[data-cat="Community"] { color: #2f8a40; } .times .news-cat[data-cat="Safety"] { color: #2c63b8; }
.news-title { font: 800 17px/1.2 Georgia, serif; }
.news-ex { font: 500 13px/1.35 Georgia, serif; opacity: .85; }
.news-more { display: inline-flex; align-items: center; gap: 4px; font: 700 12px var(--gw-font); color: #a86a00; } .news-more .ico { width: 14px; height: 14px; }
.team > [data-back] { margin-bottom: 8px; }
.news-h { margin: 0 0 4px; font: 400 clamp(24px, 5vw, 36px)/1.05 var(--gw-title); }
.times .news-by { margin: 0 0 10px; font: 600 12px var(--gw-font); opacity: .75; }
.news-by .rank { font-style: normal; }
.times .news-body p { margin: 0 0 10px; font: 500 14px/1.45 Georgia, serif; }
.news-body a { color: #a8235a; text-decoration: underline; }
.news-ed .news-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.news-ed .news-banners { display: grid; gap: 6px; } .news-ed .news-banners > small { color: var(--dim, #9a8f7a); }
.news-arts { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.news-art { display: grid; gap: 4px; padding: 4px; border: 2px solid rgba(255, 255, 255, .14); border-radius: 10px; background: rgba(0, 0, 0, .18); color: inherit; cursor: pointer; font: inherit; text-align: center; transition: transform .12s, border-color .12s; }
.news-art:hover { transform: translateY(-1px); } .news-art[aria-pressed="true"] { border-color: #ffd34a; background: rgba(255, 211, 74, .12); }
.news-art.pop { animation: newsArtPop .28s cubic-bezier(.3, 1.6, .5, 1); } @keyframes newsArtPop { 0% { scale: .9; } 100% { scale: 1; } }
.news-art .na-pic { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.news-art iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.news-prev { display: grid; place-items: center; width: 168px; aspect-ratio: 16 / 9; overflow: hidden; border: 2px dashed var(--line); border-radius: 10px; background: rgba(0, 0, 0, .2); }
.news-prev img { width: 100%; height: 100%; object-fit: cover; }
.news-nopic { display: grid; justify-items: center; gap: 2px; color: var(--dim); } .news-nopic .ico { width: 26px; height: 26px; }
.news-pickbtns { display: grid; justify-items: start; gap: 6px; max-width: 220px; } .news-pickbtns small { color: var(--dim); font-size: 11.5px; }
.news-ed textarea { min-height: 180px; resize: vertical; }
.news-count { color: var(--dim); white-space: nowrap; }
.news-prevpage { margin-top: 4px; }
body.no-fx .news-card { transition: none; } @media (prefers-reduced-motion: reduce) { .news-card { transition: none; } .news-card:hover { transform: none; } }

/* B1 (List 1, 2026-11-02): THE talk box (app/talk.js): one box at the bottom for every character. Portraits stand on its top edge
   (the character left, your fly right; the speaker lit), the name plate in the speaker's colour, the line typing out; no blur behind */
#talk { position: fixed; inset: 0; z-index: 32; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 calc(10px + var(--bot-b));
  background: linear-gradient(transparent 50%, rgba(8, 6, 20, .5)); animation: gwFade .18s ease-out; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
#talk[hidden] { display: none; } #talk.out { animation: gwFadeOut .18s ease-in forwards; pointer-events: none; }
.tk-box { zoom: var(--ui, 1); position: relative; box-sizing: border-box; width: min(720px, calc(var(--vw) - 16px)); padding: 24px 20px 24px; border: 2px solid var(--gold-line); border-radius: 18px;
  background: linear-gradient(180deg, #2a2840, #1a192b); color: var(--cream); box-shadow: 0 0 0 1px #000, 0 10px 30px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .12); animation: tkUp .28s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes tkUp { from { opacity: 0; transform: translateY(24px); } }
.tk-pic { position: absolute; top: -70px; width: 86px; height: 86px; box-sizing: border-box; border-radius: 50%; border: 3px solid var(--gold-line); overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #4f4a78, #1d1c30 72%); box-shadow: 0 0 0 1px #000, 0 6px 14px rgba(0, 0, 0, .5); filter: brightness(.5) saturate(.45); z-index: 1; transform-origin: 50% 100%; transition: filter .2s, transform .26s cubic-bezier(.2, 1.5, .4, 1), border-color .2s, box-shadow .2s; }
/* the listener: small, dim, leaning in towards the speaker. The speaker: big and lifted, ringed in its own colour (still obvious in a calm box: none of this moves) */
.tk-pic.l { left: 14px; transform: translateY(2px) scale(.74) rotate(7deg); } .tk-pic.r { right: 14px; transform: translateY(2px) scale(.74) rotate(-7deg); }
.tk-pic.on { filter: none; transform: translateY(-18px) scale(1.16); border-color: var(--gold); box-shadow: 0 0 0 1px #000, 0 0 0 4px var(--nc, #7a3a1e), 0 0 20px 5px var(--nc, #7a3a1e), 0 8px 16px rgba(0, 0, 0, .5); }
.tk-pic img { display: block; width: 100%; height: 100%; object-fit: contain; } .tk-pic.r img { transform: scale(1.14); transform-origin: 50% 42%; }   /* (your fly's head picture leaves room round the head: a little closer, so the face fills the circle like a character's) */ .tk-pic.none img { visibility: hidden; }
.tk-pic.hop { animation: tkHop .42s ease-out; } .tk-pic.sink { animation: tkSink .6s ease-in-out; }
/* yapping while the line types (the size and lean stay in transform: these move on top of it, and a hop or a sink plays over the yap) */
.tk-pic.yap { animation: tkYap var(--yap, 360ms) ease-in-out infinite; } .tk-pic.yap.hop { animation: tkYap var(--yap, 360ms) ease-in-out infinite, tkHop .42s ease-out; } .tk-pic.yap.sink { animation: tkYap var(--yap, 360ms) ease-in-out infinite, tkSink .6s ease-in-out; }
@keyframes tkHop { 40% { translate: 0 -14px; scale: 1.06; } } @keyframes tkSink { 50% { translate: 0 7px; scale: 1.04 .94; } }
@keyframes tkYap { 0%, 100% { rotate: -4deg; translate: 0 0; scale: 1.03 .97; } 25%, 75% { translate: 0 -5px; scale: .98 1.03; } 50% { rotate: 4deg; translate: 0 0; scale: 1.03 .97; } }
/* the speech tail: out of the box's top edge, up into the speaker's portrait (behind its ring); it hops across when the other side speaks */
.tk-tail { position: absolute; top: -37px; left: 90px; width: 40px; height: 40px; overflow: visible; pointer-events: none; transition: left .26s cubic-bezier(.3, 1.2, .5, 1), transform .26s; }
#talk.me .tk-tail { left: calc(100% - 130px); transform: scaleX(-1); } .tk-pic.none.on ~ .tk-tail { display: none; }
.tk-tail path { fill: #2a2840; transition: fill .2s; } .tk-tail .e { fill: none; stroke: var(--gold-line); stroke-width: 2.4; stroke-linecap: round; }
/* the speaker's colour on the box and tail: only where color-mix works (with a var() in it, the plain line above would not be a fallback: Safari before 16.2 would drop the background) */
@supports (color: color-mix(in srgb, red 50%, blue)) { .tk-box { background: radial-gradient(300px 90px at var(--sx, 108px) 0, color-mix(in srgb, var(--nc, #7a3a1e) 34%, transparent), transparent), linear-gradient(180deg, #2a2840, #1a192b); } .tk-tail path { fill: color-mix(in srgb, var(--nc, #7a3a1e) 34%, #2a2840); } }
.tk-name { position: absolute; z-index: 2; top: -16px; left: 136px; max-width: calc(100% - 232px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 5px 14px 6px; border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, .55); background: var(--nc, #7a3a1e); font: 400 17px/1 var(--gw-title); letter-spacing: .6px; color: #fff3d6; text-shadow: 0 2px 0 rgba(0, 0, 0, .4);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 1px var(--gold-line); }
#talk.me .tk-name { left: auto; right: 136px; } #talk.me .tk-box { --sx: calc(100% - 108px); }
.tk-text { margin: 0; min-height: 4.2em; font: 500 17px/1.4 var(--gw-font); overflow-wrap: anywhere; }
.tk-text .w { white-space: nowrap; } .tk-text .s { opacity: 0; } .tk-text .s.on { opacity: 1; }
.tk-big { display: inline-block; font: 400 1.3em/1 var(--gw-title); letter-spacing: .5px; color: var(--honey); text-shadow: 0 2px 0 #4a2a05; }
.tk-big.punch { animation: tkPunch .34s cubic-bezier(.2, 1.6, .4, 1); } @keyframes tkPunch { from { transform: scale(1.6) rotate(-4deg); } }
.tk-act { font-style: italic; font-weight: 500; color: #c9b8ff; } .tk-act::before, .tk-act::after { content: '*'; opacity: .6; }
.tk-shk .s { display: inline-block; } .tk-shk .s.on { animation: tkShk .46s ease-in-out infinite; animation-delay: var(--d, 0s); color: #d8ecff; }
@keyframes tkShk { 0%, 100% { transform: none; } 25% { transform: translate(-.7px, .9px) rotate(-2.5deg); } 75% { transform: translate(.7px, -.9px) rotate(2.5deg); } }
.tk-next { position: absolute; left: 50%; bottom: 2px; width: 26px; height: 22px; margin-left: -13px; opacity: 0; transition: opacity .15s; } .tk-next.on { opacity: 1; }
.tk-next svg { width: 26px; height: 26px; } .tk-next.on svg { animation: tkBob .8s ease-in-out infinite; } @keyframes tkBob { 50% { transform: translateY(4px); } }
.tk-skip { position: absolute; left: 12px; bottom: 4px; padding: 4px 8px; border: 0; background: none; color: var(--dim); font: 400 13px/1 var(--gw-title); letter-spacing: .6px; cursor: pointer; }
.tk-skip:hover { color: var(--honey); }
.tk-ch { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; } .tk-ch:not(:empty) { margin-top: 10px; } .tk-ch .gw-btn { min-height: 42px; }
.tk-x:not(:empty) { margin: 2px 0 10px; }
/* the Mayor's ribbon in the box: its own strip under the name plate and above the line; the cut halves droop apart inside it (clipped: never over the text) */
.tk-x .welcome-ribbon { height: 30px; margin: 0; align-items: center; gap: 0; overflow: hidden; }
.tk-x .welcome-ribbon span { height: 14px; border-radius: 2px; }
.tk-x .welcome-ribbon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffe08a, var(--gold) 60%, #a8741a); box-shadow: 0 1px 2px rgba(0, 0, 0, .45); transition: opacity .3s, transform .3s; }
.tk-x .welcome-ribbon.cut::after { opacity: 0; transform: scale(.4); }
.tk-x .welcome-ribbon.cut span:first-child { transform: translate(-30%, 9px) rotate(-3deg); opacity: 0; } .tk-x .welcome-ribbon.cut span:last-child { transform: translate(30%, 9px) rotate(3deg); opacity: 0; }
#talk.calm .tk-pic, #talk.calm .tk-big, #talk.calm .tk-shk .s, #talk.calm .tk-next svg, #talk.calm .tk-box { animation: none; } #talk.calm .tk-pic, #talk.calm .tk-tail { transition: none; }
@media (prefers-reduced-motion: reduce) { #talk .tk-pic, #talk .tk-big, #talk .tk-shk .s, #talk .tk-next svg, #talk .tk-box { animation: none; } #talk .tk-pic, #talk .tk-tail { transition: none; } }
@media (max-width: 480px) {
  .tk-box { padding: 22px 14px 22px; --sx: 84px; } #talk.me .tk-box { --sx: calc(100% - 84px); }
  .tk-pic { top: -54px; width: 68px; height: 68px; } .tk-pic.l { left: 10px; } .tk-pic.r { right: 10px; }
  .tk-tail { top: -28px; left: 70px; width: 30px; height: 30px; } #talk.me .tk-tail { left: calc(100% - 100px); }
  .tk-name { left: 102px; max-width: calc(100% - 172px); font-size: 15px; } #talk.me .tk-name { right: 102px; } .tk-text { font-size: 15.5px; }
  .tk-ch { flex-direction: column; align-items: stretch; }
}

/* B2 (2026-11-02): a character's line over its head (hub.js charSay): a chat bubble with a tail on the speaker, one at a time, following it */
.chatb.csay { position: fixed; z-index: 21; display: block; transform-origin: 0 0; pointer-events: none; width: max-content; max-width: min(240px, 70vw); padding: 6px 11px 7px; text-align: center;
  font: 600 14px/1.3 var(--gw-font); color: #241a10; }
.chatb.csay[hidden] { display: none; }
.chatb.csay::before, .chatb.csay::after { content: ''; position: absolute; left: var(--tx, 50%); border-style: solid; border-color: transparent; border-bottom: 0; }
.chatb.csay::before { top: calc(100% + 1px); margin-left: -9px; border-width: 10px 9px 0; border-top-color: var(--bs-edge, #241a10); }
.chatb.csay::after { top: calc(100% - 1px); margin-left: -7px; border-width: 8px 7px 0; border-top-color: var(--bs); }
.chatb.csay.pop { animation: csPop .24s cubic-bezier(.2, 1.5, .4, 1); } @keyframes csPop { from { opacity: 0; translate: 0 8px; } }

/* the main story (app/chapters.js, app/lorebook.js): the Main Story cards, the Chapter Complete card, the Lore Book, the Lamp's glow and the long night's dark */
.ch-main { margin: 0 0 14px; } .ch-main .lore-sub { display: flex; justify-content: space-between; align-items: baseline; } .ch-main .lore-sub small { color: var(--dim); font: 600 12px var(--gw-font); }
.story.ch { margin-bottom: 6px; padding: 8px 12px; } .story.ch .st-now { margin: 4px 0 6px; } .story.ch .gw-bar { margin-top: 4px; }
.ch-lorebtn { width: 100%; margin-top: 4px; position: relative; } .lb-dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 9px; background: #e8504a; color: #fff; font: 700 11px var(--gw-font); font-style: normal; }
.ch-done { display: grid; gap: 6px; justify-items: center; text-align: center; } .ch-done > b { font: 400 24px var(--gw-title); color: var(--honey); } .ch-done > small { color: var(--dim); font: 700 12px var(--gw-font); letter-spacing: .05em; text-transform: uppercase; }
.ch-seal { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #fff0b8, #f6c24a 60%, #b8801c); box-shadow: 0 0 0 4px rgba(246, 194, 74, .3), 0 6px 18px rgba(0, 0, 0, .45); } .ch-seal img { width: 66px; height: 66px; object-fit: contain; } .ch-seal .ico { width: 40px; height: 40px; color: #6a3e0c; }
.ch-done.pop .ch-seal { animation: chSeal .7s cubic-bezier(.2, 1.6, .4, 1); } @keyframes chSeal { from { transform: scale(.2) rotate(-25deg); opacity: 0; } }
.ch-reward { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; font: 700 15px var(--gw-font); color: var(--cream); } .ch-reward .ic { width: 16px; height: 16px; }
.ch-badge { display: grid; justify-items: center; gap: 2px; } .ch-badge .st-badge { width: 64px; height: 64px; } .ch-badge small { color: var(--honey); font: 700 13px var(--gw-font); }
.ch-next { margin: 2px 0 4px; font: 500 14px/1.4 var(--gw-font); color: var(--cream); } .ch-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.lb-top { margin: 0 0 10px; } .lb-top small { display: block; margin-top: 4px; color: var(--dim); font: 500 12.5px var(--gw-font); } .lb-top small b { color: var(--honey); }
.lb ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .lb li { position: relative; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .22); }
.lb-people li { display: flex; gap: 10px; } .lb-pic { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .06); } .lb-pic img { width: 52px; height: 52px; object-fit: contain; } .lb-pic i { font: 400 24px var(--gw-title); color: var(--dim); }
.lb li b { display: block; font: 400 16px var(--gw-title); color: var(--honey); } .lb li small { display: block; color: var(--dim); font: 600 12px var(--gw-font); } .lb li p { margin: 5px 0 0; font: 500 13px/1.4 var(--gw-font); color: var(--cream); }
.lb-side::before { content: 'Side Story'; display: block; margin-bottom: 1px; font: 700 10px var(--gw-font); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.lb-q { color: var(--dim) !important; font-weight: 700 !important; letter-spacing: .2em; } .lb-unmet, .lb-locked { opacity: .55; }
.lb-city li p { margin-top: 3px; } .lb-story li { display: flex; gap: 10px; align-items: center; } .lb-story li > div { flex: 1; } .lb-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); font: 400 15px var(--gw-title); color: var(--honey); } .lb-done .lb-n { background: #f6c24a; color: #5a3410; }
.lb-story .gw-btn { margin-top: 4px; } .lb-now { border-color: rgba(246, 194, 74, .55); }
.lb li.lb-new { border-color: #f6c24a; box-shadow: 0 0 0 2px rgba(246, 194, 74, .28), 0 0 14px rgba(246, 194, 74, .25); } .lb li.lb-new::after { content: 'New'; position: absolute; top: 6px; right: 8px; padding: 1px 7px; border-radius: 8px; background: #f6c24a; color: #5a3410; font: 700 10px var(--gw-font); text-transform: uppercase; }
#lampDark { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 2.4s; background: radial-gradient(ellipse at 50% 58%, rgba(10, 14, 52, .42), rgba(4, 6, 28, .84)); }
body.calm #lampDark { transition: none; }   /* (the Lamp itself is the 3D model now: shared/hubmodels.js buildStoryLamp) */
.story.ch.slim { display: flex; align-items: center; gap: 8px; padding: 5px 12px; opacity: .6; font: 400 14px var(--gw-title); color: var(--honey); } .story.ch.slim .ico { width: 20px; height: 20px; } .story.ch.slim small { margin-left: auto; color: var(--dim); font: 600 12px var(--gw-font); }

/* Profile Pictures V2 (List 1 G1-G5, Iris): the picture studio (the profile's Picture tab, a wider window while it's open): the picture
   big on the left (on top on a phone), six steps beside it, Save with a shutter flash. The finished picture (app/picture.js) on the
   profile (big) and the info card (medium): drawn with its own corners, background and frame. */
#gwWin.small:has(.ps) { width: min(820px, calc(var(--vw) - var(--gw-dx))); }
.ps { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: 16px; align-items: start; }
.ps-stage { position: sticky; top: 0; }
.ps-shot { position: relative; aspect-ratio: 1; border-radius: 16px; background: radial-gradient(circle at 50% 40%, #3d3446, #141221); box-shadow: 0 8px 22px rgba(0, 0, 0, .4), inset 0 0 0 1px var(--line); }
.ps-img { display: block; width: 100%; height: 100%; border-radius: 16px; } .ps-img:not([src]) { visibility: hidden; }
.ps-flash { position: absolute; inset: 0; border-radius: 16px; background: #fff; opacity: 0; pointer-events: none; }
.ps-head.hd { position: absolute; right: -8px; bottom: -8px; width: 58px; height: 58px; border: 2px solid var(--gold); background: #1a1838; box-shadow: 0 3px 8px rgba(0, 0, 0, .45); }
.ps-head img:not([src]) { visibility: hidden; }
.ps-side { min-width: 0; }
.ps-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-bottom: 10px; }
.ps-tabs button { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 7px 2px 6px; border: 1px solid var(--line); border-radius: 11px; background: rgba(0, 0, 0, .25); color: var(--dim); font: 600 11.5px/1 var(--gw-font); cursor: pointer; transition: transform .08s; }
.ps-tabs button .ico { width: 20px; height: 20px; } .ps-tabs button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-tabs button:hover { color: #fff; border-color: var(--hair); }
.ps-tabs button.on { background: linear-gradient(#ffd76a, #e0a02a); border-color: var(--gold-d); color: var(--ink); }
body:not(.no-fx) .ps-tabs button:active, body:not(.no-fx) .ps-tile:active { transform: scale(.93); }
.ps-body { height: 300px; overflow-y: auto; overscroll-behavior: contain; padding: 0 2px 2px 0; }
.ps-sec { margin-bottom: 10px; } .ps-sec > b { display: flex; align-items: center; gap: 5px; margin: 2px 0 6px; font: 400 15px/1 var(--gw-title); color: var(--honey); } .ps-sec > b .ico { width: 15px; height: 15px; }
.ps-row { display: flex; flex-wrap: wrap; gap: 6px; } .ps-row:has(> .ps-tile) { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); } .ps-row > .ps-tile { width: auto; min-width: 0; } .ps-row > .chips { width: 100%; } .ps-row > .seg { flex: 1; }
.ps-chips button { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; cursor: pointer; }
.ps-chips button.locked:not([aria-pressed="true"]) { opacity: .72; }
.ico.ps-lock { width: 12px; height: 12px; flex: none; }
.ps-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 68px; padding: 4px 4px 5px; border: 1px solid var(--line); border-radius: 13px; background: rgba(0, 0, 0, .25); color: var(--dim); font: 600 10.5px/1.15 var(--gw-font); cursor: pointer; transition: transform .08s; }
.ps-tile > img, .ps-tile > .ps-none, .ps-tile > .thumb, .ps-tile > .emo { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 10px; object-fit: cover; background: rgba(0, 0, 0, .28); }
.ps-tile > .thumb { object-fit: contain; } .ps-none .ico { width: 26px; height: 26px; opacity: .6; }
.ps-tile small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 100%; min-height: 2.3em; overflow: hidden; overflow-wrap: anywhere; text-align: center; font: inherit; line-height: 1.15; }   /* (every name whole, on two lines) */
.ps-tile:hover { color: #fff; border-color: var(--hair); }
.ps-tile[aria-pressed="true"] { border-color: var(--gold); background: rgba(246, 194, 74, .16); color: var(--honey); box-shadow: inset 0 0 0 1px var(--gold); }
.ps-tile.locked > img { filter: saturate(.45) brightness(.75); }
.ps-tile > .ps-lock { position: absolute; top: 7px; right: 7px; width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: rgba(20, 16, 34, .85); color: var(--gold); }
.ps-seg button { cursor: pointer; } .ps-seg button > span { display: inline-flex; align-items: center; gap: 4px; } .ps-seg button .ico { width: 14px; height: 14px; } .ps-seg small { display: inline-flex; align-items: center; gap: 2px; }
.ps-turn { display: flex; align-items: center; gap: 8px; } .ps-turn input { flex: 1; min-width: 0; } .ps-deg { font: 600 12px var(--gw-font); color: var(--dim); }
.ps-hint { margin: 4px 0 0; }
.ps-note { display: flex; align-items: center; gap: 5px; min-height: 18px; margin: 8px 0 8px; font: 600 12.5px/1.3 var(--gw-font); color: var(--dim); } .ps-note.bad { color: #ffc0a8; } .ps-note .ps-lock { color: var(--gold); }
.ps-go { justify-content: flex-end; flex-wrap: nowrap; } .ps-go .gw-btn[disabled] { filter: grayscale(.6); opacity: .6; }
.pcard .hc-pic:has(.pf-pic), .hcard.info .hc-pic:has(.fpic) { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.pcard .hc-pic:has(.pf-pic) { width: 128px; height: 128px; } .hcard.info .hc-pic:has(.fpic) { width: 88px; height: 88px; }
img.fpic { display: block; width: 100%; height: 100%; object-fit: contain; background: none; border-radius: 0; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .4)); } img.fpic:not([src]) { visibility: hidden; }
@media (max-width: 680px) {
  .ps { grid-template-columns: 1fr; gap: 10px; } .ps-stage { position: static; width: min(210px, 62vw); margin: 0 auto; }
  .ps-body { height: auto; overflow: visible; } .ps-tile { width: 64px; } .ps-tile > img, .ps-tile > .ps-none, .ps-tile > .thumb, .ps-tile > .emo { width: 54px; height: 54px; }
  .pcard .hc-pic:has(.pf-pic) { width: 96px; height: 96px; }
}
@media (max-width: 520px) { .ps-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ps-tabs button { flex-direction: row; justify-content: center; gap: 5px; padding: 7px 4px; font-size: 12.5px; } .ps-tabs button .ico { width: 17px; height: 17px; } }   /* (a phone: two rows of three, every name whole) */
@media (max-width: 360px) { .ps-tabs button { font-size: 11.5px; padding-inline: 2px; } .ps-tile { width: 58px; } .ps-tile > img, .ps-tile > .ps-none, .ps-tile > .thumb, .ps-tile > .emo { width: 48px; height: 48px; } }
@media (max-height: 640px) and (min-width: 681px) { .ps { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); } .ps-body { height: 200px; } .pcard .hc-pic:has(.pf-pic) { width: 72px; height: 72px; } }
@media (prefers-reduced-motion: reduce) { .ps-tabs button:active, .ps-tile:active { transform: none !important; } }
@media (max-width: 680px), (max-height: 500px) { .ps-go { position: sticky; bottom: -8px; z-index: 2; margin: 0 0 -8px; padding: 8px 0; background: linear-gradient(transparent, #1a1829 30%); } }   /* (a phone, or one on its side: Save stays in view while the steps scroll) */
/* List 5 stage 4 (Iris): the Picture tab on a phone. The picture sits small on the left with the note, Save Picture and Reset beside it (never
   floating over the chips); the six steps are one row of pictures (the open one says its name); the profile's header keeps the name, mood,
   level and the two big buttons in a row: the facts and its own picture wait on the other tabs, the studio shows the fly anyway */
@media (max-width: 680px) {
  .ps { grid-template-columns: 124px minmax(0, 1fr); grid-template-areas: "stage note" "stage go" "tabs tabs" "how how" "body body"; gap: 8px 12px; align-items: stretch; }
  .ps-side { display: contents; }
  .ps-stage { grid-area: stage; width: 124px; margin: 0; } .ps-head.hd { width: 42px; height: 42px; right: -6px; bottom: -6px; }
  .ps-note { grid-area: note; align-self: end; margin: 0; } .ps-how { grid-area: how; margin: 0; } .ps-body { grid-area: body; }
  .ps-go { grid-area: go; position: static; display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; margin: 0; padding: 0; background: none; }
  .ps-go .gw-btn { width: 100%; min-height: calc(40px / var(--ui, 1)); margin: 0; } .ps-go [data-save] { order: -1; }
  .ps-tabs { grid-area: tabs; display: flex; gap: 4px; margin: 0; overflow-x: auto; scrollbar-width: none; } .ps-tabs::-webkit-scrollbar { display: none; }
  .ps-tabs button { flex: 0 0 auto; flex-direction: row; justify-content: center; gap: 5px; min-width: calc(42px / var(--ui, 1)); min-height: calc(42px / var(--ui, 1)); padding: 0 8px; font-size: 12.5px; }
  .ps-tabs button.on { flex: 1 0 auto; } .ps-tabs button .ico { width: 20px; height: 20px; flex: none; }
  .ps-tabs button:not(.on) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ps-chips button { min-height: calc(40px / var(--ui, 1)); } .ps-seg button { min-height: calc(40px / var(--ui, 1)); } .ps-turn .gw-btn { min-width: calc(40px / var(--ui, 1)); min-height: calc(40px / var(--ui, 1)); }
  .pcard:has(.ps) .hc-pic, .pcard:has(.ps) .in-facts { display: none; }
  .pcard:has(.ps) .hc-acts > .gw-btn { flex-direction: row; justify-content: center; gap: 6px; min-height: calc(42px / var(--ui, 1)); padding: 4px 6px; }
  .pcard .hc-tabs button { min-height: calc(40px / var(--ui, 1)); min-width: calc(40px / var(--ui, 1)); }
  .ps-turn input { min-height: calc(40px / var(--ui, 1)); } #gwWin .ps .ps-seg button { min-height: calc(40px / var(--ui, 1)); } .ps-chips button { min-width: calc(40px / var(--ui, 1)); justify-content: center; }
}
@media (max-width: 360px) {   /* (the narrowest phones: the six steps share the row evenly, every one a picture; Save Picture without its camera) */
  .ps { grid-template-columns: 108px minmax(0, 1fr); gap: 8px 10px; } .ps-stage { width: 108px; }
  .ps-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; overflow: visible; } .ps-tabs button { min-width: 0; padding: 0; }
  .ps-tabs button.on span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ps-go .gw-btn { padding-inline: 4px; font-size: 14px; } .ps-go .gw-btn .ico { display: none; }
}
@media (min-width: 681px) and (max-height: 500px) {   /* (a phone on its side: Save Picture and Reset under the picture, the steps on the right) */
  .ps { grid-template-areas: "stage tabs" "stage body" "go body" "note body" "how body"; grid-template-rows: auto auto auto auto 1fr; gap: 6px 14px; }
  .ps-side { display: contents; } .ps-stage { grid-area: stage; } .ps-tabs { grid-area: tabs; margin: 0; } .ps-body { grid-area: body; } .ps-note { grid-area: note; margin: 0; } .ps-how { grid-area: how; }
  .ps-go { grid-area: go; position: static; flex-direction: column; gap: 6px; margin: 0; padding: 0; background: none; } .ps-go .gw-btn { width: 100%; min-height: calc(40px / var(--ui, 1)); margin: 0; } .ps-go [data-save] { order: -1; }
  .ps-tabs button { min-height: calc(40px / var(--ui, 1)); } .ps-chips button, #gwWin .ps .ps-seg button, .ps-turn input { min-height: calc(40px / var(--ui, 1)); } .ps-chips button { min-width: calc(40px / var(--ui, 1)); justify-content: center; }
  .ps-go .gw-btn { padding-inline: 4px; } .ps-go .gw-btn .ico { display: none; }
  .hcard.pcard:has(.ps) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); column-gap: 14px; align-items: center; } .hcard.pcard:has(.ps) > :not(.hc-top, .hc-acts) { grid-column: 1 / -1; } .hcard.pcard:has(.ps) .hc-acts { margin: 0; }   /* (the header's two buttons beside the name: Save and Reset show under the picture) */
  .pcard:has(.ps) .hc-pic, .pcard:has(.ps) .in-facts { display: none; }
  .pcard:has(.ps) .hc-acts > .gw-btn { min-height: calc(40px / var(--ui, 1)); }
  .pcard .hc-tabs button { min-height: calc(40px / var(--ui, 1)); }
}
@media (max-width: 1100px), (max-height: 500px) { .gw-tabs.mini.hc-tabs button { min-height: calc(40px / var(--ui, 1)); min-width: calc(40px / var(--ui, 1)); } .pcard .ps-chips button, .pcard .ps-seg button, .pcard .ps-go .gw-btn, .pcard [data-go].gw-btn.sm { min-height: calc(40px / var(--ui, 1)); } .pcard .ps-chips button { min-width: calc(40px / var(--ui, 1)); justify-content: center; } }   /* (leftovers 2026-11-12: a hero card's own tabs (Profile, pet, Room Info) are 40 px on a phone and a tablet too; were 37 x 36 at 700 x 1000; the picture's pose chips and a room's Go too) */
@media (min-width: 681px) and (max-width: 1100px) and (min-height: 900px) { .ps { grid-template-columns: minmax(0, 236px) minmax(0, 1fr); } .ps-body { height: 430px; } }   /* (a tall tablet: a smaller picture, a taller list, so the 40 px chips all fit, Fly Club too) */
@media (max-height: 500px) and (min-width: 681px) { .ps { grid-template-columns: minmax(0, 112px) minmax(0, 1fr); } .ps-stage { top: 4px; } .ps-body { height: auto; } .ps-tabs button { flex-direction: row; justify-content: center; gap: 3px; padding: 5px 1px; font-size: 11px; } .ps-tabs button .ico { width: 15px; height: 15px; flex: none; } }   /* (on its side: a smaller picture that stays put, the tabs on one line) */
.tk-pic.none { visibility: hidden; }   /* (a talk with only your fly speaking: no empty ring on the other side) */

/* G4: a locked picture piece says how to get it: progress, a Buy button */
.ps-how { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin: 8px 0 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .25); font: 600 12.5px/1.3 var(--gw-font); color: var(--dim); } .ps-how b { color: var(--honey); }
.ps-bar { display: block; width: 100%; max-width: 220px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; } .ps-bar i { display: block; height: 100%; border-radius: 4px; background: var(--gold); transition: width .4s; }
.ps-how .gw-btn .ico { width: 14px; height: 14px; }
/* B1: the quick fade between a place and a room inside it (app/inner.js) */
#innerVeil { position: fixed; inset: 0; z-index: 9000; background: #000; opacity: 0; pointer-events: none; transition: opacity .25s ease-in-out; }
#innerVeil.on { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { #innerVeil { transition: none; } }

/* C1: the Juicery's party banner (app/click.js): your table, its flies (tap one to cheer), the jar, the Menu button; the guest card at the door */
.jc-banner { position: fixed; z-index: 40; top: calc(var(--sa-t) + 58px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 6px 12px; width: max-content; max-width: calc(100vw - 16px); box-sizing: border-box; }
.jc-banner[hidden], .jc-banner.off { display: none; }
.jc-pn { display: flex; align-items: center; gap: 6px; } .jc-pn .ico { width: 24px; height: 24px; color: var(--ff-honey, #ffc070); flex: none; }
.jc-pn span { display: grid; gap: 1px; } .jc-pn b { font: 400 17px var(--ff-title, inherit); color: var(--ff-honey, #ffc070); white-space: nowrap; } .jc-pn small { font-size: 11px; opacity: .75; white-space: nowrap; }
.jc-mem { display: flex; gap: 8px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .15); }
.jc-m { display: grid; justify-items: center; gap: 1px; width: 52px; position: relative; cursor: pointer; } .jc-m.me { cursor: default; }
.jc-m b { font: 600 11px var(--ff-font, inherit); max-width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jc-head { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .25); display: block; } .jc-m.me .jc-head { border-color: var(--ff-honey, #ffc070); }
.jc-head img, img.jc-head { width: 100%; height: 100%; object-fit: cover; display: block; }
.jc-ch { position: absolute; top: -4px; right: 2px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #ff8fb1; color: #5a0a26; opacity: 0; transition: opacity .15s, transform .15s; } .jc-ch .ico { width: 11px; height: 11px; }
.jc-m:hover .jc-ch, .jc-m:focus-visible .jc-ch { opacity: 1; transform: scale(1.1); } .jc-m.pop { animation: jcPop .4s; } @keyframes jcPop { 40% { transform: scale(1.18); } }
@media (hover: none) { .jc-ch { opacity: .9; } }
.jc-jar { display: grid; gap: 2px; min-width: 110px; } .jc-jar b { font: 400 14px var(--ff-title, inherit); color: var(--ff-honey, #ffc070); } .jc-jar small { font-size: 11px; opacity: .75; white-space: nowrap; }
.jc-bar { display: block; height: 7px; border-radius: 4px; background: rgba(0, 0, 0, .35); overflow: hidden; } .jc-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffa53a, #ffd27a); transition: width .3s; } .jc-bar.bump { animation: jcBump .5s; } @keyframes jcBump { 30% { filter: brightness(1.6) drop-shadow(0 0 5px #ff8fb1); } }
.jc-list { display: grid; gap: 6px; margin-top: 6px; } .jc-row { display: flex; align-items: center; gap: 10px; padding: 4px 8px; border-radius: 10px; background: rgba(255, 255, 255, .06); } .jc-row b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .jc-row .jc-head { width: 36px; height: 36px; flex: none; }
.jc-gate { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 8px 4px; } .jc-gate .ico { width: 36px; height: 36px; color: var(--ff-honey, #ffc070); } .jc-gate b { font: 400 20px var(--ff-title, inherit); } .jc-gate p { margin: 0; opacity: .85; }
.jc-jar[data-menu] { cursor: pointer; } .jc-jar > .ico { display: none; }
/* list 5 stage 4 (phone audit #5): a phone keeps the top row one row: the banner is only the jar, a pill after your fly (and the now pill; click.js
   moves it into #flyCard) with the menu's fist; a tap opens the Party tab as Menu did (the party, its flies and their cheers are there); a tablet too (fold 2026-11-11) */
@media (max-width: 1100px), (max-height: 480px) {
  #flyCard > .jc-banner { position: static; flex: none; top: auto; left: auto; transform: none; max-width: none; gap: 0; padding: 0; border-width: 1px; border-radius: 20px; background: var(--glass); box-shadow: 0 0 0 1px #000, 0 3px 10px rgba(0, 0, 0, .4); }
  .jc-pn, .jc-mem, .jc-banner > .gw-btn, .jc-jar small { display: none; }
  .jc-jar { grid-template-columns: auto minmax(52px, 1fr); align-items: center; column-gap: 7px; row-gap: 3px; min-width: 0; min-height: calc(40px / var(--ui, 1)); box-sizing: border-box; padding: 4px 14px 4px 10px; border-radius: 20px; }
  .jc-jar > .ico { display: block; grid-row: 1 / 3; width: 22px; height: 22px; color: var(--ff-honey, #ffc070); } .jc-jar b { font-size: 14px; line-height: 1; } .jc-jar .jc-bar { align-self: start; }
  .jc-jar:active { transform: scale(.95); }
}
@media (max-width: 360px) { #flyCard .jc-jar { grid-template-columns: 30px; justify-items: center; row-gap: 3px; padding: 5px 9px; } #flyCard .jc-jar > .ico { grid-row: auto; width: 20px; height: 20px; } #flyCard .jc-jar b { display: none; } #flyCard .jc-jar .jc-bar { width: 30px; height: 5px; } }   /* (a small phone: the fist over the jar's bar, a round button; "Jar N" is its label for screen readers) */
/* 5a r3, the phone limit (Jesse 2026-11-06, ui-kit.md): a phone's main screen is one row at the top (your fly with its level, coins, gems)
   and one at the bottom (chat, where to go, Games, this place's one button, Quests, Bag, More). What left the rows is in More's sheet:
   Rooms, Shop, Looks, the Juicery, the messenger, the room box, tickets and the level; the belly is the ring round your fly */
.pf-lv, .dk em.ph, .pop-menu .ph, .cp-gem, #chatbar .cb-x { display: none; } .mo-wal i { font-style: normal; }
@media (max-width: 1100px), (max-height: 480px) {   /* (fold 2026-11-11: up to 1100 wide, a tablet and an unfolded foldable too: the tablet tier below gives back what fits) */
  #hud .brand, #belly, #lvl, #cAmber, #cTickets, #staffBtn, #flyCard .fc-txt, #roomBox, #msgr, #dock .dk.wide { display: none !important; }
  #dock .dk-here:not(:has(> .dk:not(.wide))) { display: none !important; }   /* (its own rule: a browser that refuses :has() drops only this line, never the wallet's: the gems showed twice on the Duo) */
  #hud { justify-content: flex-end; padding-top: calc(8px + var(--sa-t) / var(--ui, 1)); }
  #wallet .cur { min-height: calc(40px / var(--ui, 1)); box-sizing: border-box; padding-right: 12px; }
  #flyCard { top: calc(6px + var(--sa-t) / var(--ui, 1)); left: calc(6px + env(safe-area-inset-left, 0px) / var(--ui, 1)); padding: 0 5px 4px; gap: 8px; border: 0; background: none; box-shadow: none; }
  #pfp { width: calc(46px / var(--ui, 1)); height: calc(46px / var(--ui, 1)); }   /* (sizes as they land: --ui is .8 on a phone on its side) */
  .pf-lv { position: absolute; left: -5px; bottom: -4px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 3px; box-sizing: border-box; border-radius: 10px; font: 400 12px/1 var(--ff-title, var(--gw-title)); color: var(--ink);
    background: radial-gradient(circle at 35% 28%, #ffe98c, #e0a02a 75%); border: 2px solid #7a4d05; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 3px rgba(0, 0, 0, .5); }
  .pf-lv.n3 { font-size: 10px; letter-spacing: -.5px; }
  .dk em.ph.on { display: block; }
  #cPips .cp-gem { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; padding-left: 8px; border-left: 1px solid var(--gold-line); }   /* (one wallet button: coins and gems, a tap opens the Shop) */
  #cPips .cp-gem svg { width: 20px; height: 20px; margin: 0; }
  /* chat, opened: the input takes the bar's row while you type (a tap outside with nothing typed folds it back) */
  body.chat-fold #chatbar.open, body.stack.chat-fold #chatbar.open { bottom: calc(3px + var(--bot-b) / var(--ui, 1)); left: calc(6px + env(safe-area-inset-left, 0px) / var(--ui, 1)); right: calc(6px + var(--bot-r) / var(--ui, 1)); z-index: 30; }
  #accBtn { min-height: calc(40px / var(--ui, 1)); padding: 0 12px; border: 2px solid var(--gold-line); border-radius: 20px; background: var(--glass); box-shadow: 0 0 0 1px #000, 0 4px 12px rgba(0, 0, 0, .4); color: var(--honey); font: 400 14px/1 var(--ff-title, var(--gw-title)); letter-spacing: .4px; }   /* (a guest's Log In: a pill like the wallet, readable over the world now the card has no panel) */
  body.chat-up #dock > * { visibility: hidden; }
  body.chat-fold #chatbar.open .cb-x { display: grid; }
  body.chat-up #lane { bottom: calc(var(--dockH, 64px) + 10px); }
  body.chat-fold #chatbar.open .cb-btn, body.chat-fold #chatbar.open input { width: calc(40px / var(--ui, 1)); height: calc(40px / var(--ui, 1)); } body.chat-fold #chatbar.open input { width: auto; }
  #nowWrap { position: relative; top: auto; left: auto; max-width: min(calc(var(--vw) - 236px), var(--nowMax, 100vw)); } #nowPill { min-height: calc(40px / var(--ui, 1)); min-width: calc(40px / var(--ui, 1)); justify-content: center; border-radius: 20px; }   /* (what you have going: in the top row; an upright phone shows its icon and count, the words are in its list) */
  /* the folded chat button: the first slot of the bar's row */
  body.chat-fold #dock { padding-left: calc(max(60px, 60px / var(--ui, 1)) + env(safe-area-inset-left, 0px) / var(--ui, 1)); }
  body.chat-fold #chatbar:not(.open) { bottom: calc(3px + var(--bot-b) / var(--ui, 1)); left: calc(6px + env(safe-area-inset-left, 0px) / var(--ui, 1)); }
  body.chat-fold:not(.chat-up) #lane { padding-left: 0; }
  body.chat-fold:has(#dock .pop-menu) #chatbar { z-index: 30; }   /* (More's sheet lifts the bar's layer: the chat button stays on top of it) */
  body.chat-fold #chatbar:not(.open) { padding: 1px; } body.chat-fold #chatbar:not(.open) > .cb-open { width: calc(40px / var(--ui, 1)); height: calc(40px / var(--ui, 1)); }   /* (as round as the bar's buttons) */
  body.stack #lane { right: calc(12px + var(--bot-r) / var(--ui, 1)); }
  /* More: a sheet of tiles over the bar, a picture over each word */
  #dock .dk-more > .pop-menu.dk-sheet { position: fixed; left: auto; width: min(360px, calc(var(--vw) - 16px - env(safe-area-inset-left, 0px) / var(--ui, 1) - var(--bot-r) / var(--ui, 1))); right: calc(8px + var(--bot-r) / var(--ui, 1)); bottom: calc(var(--dockH, 64px) + 8px); max-width: none; min-width: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 4px; padding: 8px; border-radius: 18px; max-height: calc(var(--vh) - var(--dockH, 64px) - 70px); }
  .pop-menu.dk-sheet .ph { display: flex; }
  .pop-menu.dk-sheet button { position: relative; flex-direction: column; justify-content: center; gap: 4px; min-height: 64px; padding: 6px 2px; text-align: center; font-size: 12.5px; letter-spacing: .2px; white-space: normal; line-height: 1.05; background: rgba(255, 255, 255, .04); }
  .pop-menu.dk-sheet button > span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 100%; }
  .pop-menu.dk-sheet button .ico { width: 26px; height: 26px; }
  .pop-menu.dk-sheet button[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--gold); }
  .pop-menu.dk-sheet em.n { position: absolute; top: 4px; right: 6px; margin: 0; }
  .pop-menu.dk-sheet .sec { grid-column: 1 / -1; margin: 6px 4px 0; font: 400 13px/1.2 var(--ff-title, var(--gw-title)); letter-spacing: .6px; color: var(--honey); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pop-menu.dk-sheet .sec.mo-you { display: flex; align-items: center; justify-content: space-between; gap: 8px; overflow: visible; } .pop-menu.dk-sheet .sec.mo-you > span:first-child { overflow: hidden; text-overflow: ellipsis; }
  .pop-menu.dk-sheet .mo-wal { display: flex; flex: none; gap: 6px; color: var(--honey); font: 700 13.5px/1 var(--ff-font, var(--gw-font)); letter-spacing: 0; }
  .mo-wal .mo-lv { padding-left: 3px; } .mo-wal .mo-lv b { display: grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; font: 400 12px/1 var(--ff-title, var(--gw-title)); color: var(--ink); background: radial-gradient(circle at 35% 28%, #ffe98c, #e0a02a 75%); border: 2px solid #7a4d05; box-sizing: border-box; }
}
/* fold 2026-11-11, the tablet tier (681-1100 wide and taller than a phone on its side, or 600-680 wide and 800+ tall: a tablet, an unfolded foldable either way, a small laptop window): the phone's
   two rows (phones.md), with the room a tablet has. The bar's buttons keep their words and Rooms, this place's button and Shop come back out of More; tickets join
   the wallet. The logo, the room box (named in More), the messenger and the shield stay in More as on a phone; the level rides on your fly, the belly is its ring */
@media (min-width: 681px) and (max-width: 1100px) and (min-height: 481px), (min-width: 600px) and (max-width: 680px) and (min-height: 800px) {   /* (a foldable held upright, 669 x 951, counts too) */
  #dock .dk .dk-t { display: block; } #dock .dk .well { width: 40px; height: 40px; }
  #dock .dk.dk.wide { display: flex !important; } #dock .dk-here.dk-here.dk-here { display: flex !important; }
  #wallet #cTickets { display: flex !important; }
  #dock .dk { width: auto; min-width: 58px; padding: 2px 4px; }
  body.chat-fold #chatbar:not(.open) { bottom: calc(19px + var(--bot-b) / var(--ui, 1)); }
  #chatbar .cb-btn, #chatbar input { height: 40px; } #chatbar .cb-btn { width: 40px; }   /* (the chat bar in the bar's row: its buttons at 40 too) */   /* (the folded chat button level with the bar's wells, not with their words) */
}
@media (max-width: 420px) { #nowT { display: none; } #nowF { font-size: 0; padding: 0; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--muted, #c9b79a); } #nowF.on { background: var(--gold); border-color: var(--gold-line); } }
@media (max-height: 480px) { #dock .dk { width: calc(46px / var(--ui, 1)); min-width: 0; } #dock .dk .well { width: calc(36px / var(--ui, 1)); height: calc(36px / var(--ui, 1)); } }   /* (5a r3: a phone on its side, zoomed to .8: the bar's buttons still land at 40 px or more) */
@media (max-width: 900px) { #placeName { display: none; } }   /* (a tablet upright: the place's name wrapped under the logo onto the fly card; the room box names the room) */
/* The unfolded Duo held upright as a home-screen app (2026-11-12, Jesse: "look like it was made for the Duo"). The status band (82 px) can be drawn in but takes no taps (phones.md), so it carries the title at the system pill's height, display only: the logo, the name and the place. The buttons sit under it and the wallet runs out to the edge, under the pill */
html[data-duo-tall] #hud .brand { display: flex !important; position: fixed; left: calc(18px / var(--ui, 1)); top: calc((env(safe-area-inset-top, 0px) - 57px) / var(--ui, 1)); height: 42px; max-height: none; overflow: visible; flex-wrap: nowrap; align-items: center; gap: 9px; max-width: calc(var(--vw) - 170px); pointer-events: none; }
html[data-duo-tall] .brand b { display: block; font-size: 24px; } html[data-duo-tall] .brand-logo { width: 34px; height: 34px; margin-right: -2px; }
html[data-duo-tall] #placeName { display: block; }
html[data-duo-tall] #hud { padding-right: calc(var(--corner) / var(--ui, 1)); }
/* A turn or a fold on the Duo lays the page out in steps (sizes arrive late, the bars jump): a cover in the bar's colour hides them and fades away (core.js cover) */
html[data-duo-row] body::after { content: ""; position: fixed; inset: 0 0 -120px; z-index: 99999; background: #141228; opacity: 0; pointer-events: none; transition: opacity .22s ease-out; }
html[data-duo-row].turning body::after { opacity: 1; transition: none; }

/* the Mood Light's picker (2026-11-22): four light buttons over the dock, owner only; small and low so the room stays in view */
#moodPick { position: fixed; left: 50%; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 22; display: flex; gap: 4px; padding: 5px; border-radius: 14px; max-width: calc(100vw - 16px); background: rgba(20, 18, 34, .9); border: 1px solid var(--gold-line); box-shadow: 0 4px 14px rgba(0, 0, 0, .45); animation: hintUp .2s ease-out; }
#moodPick button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 56px; min-height: 48px; padding: 5px 6px; border-radius: 10px; border: 1px solid transparent; background: rgba(255, 255, 255, .06); color: var(--cream); font: 600 12px/1.1 var(--gw-font); cursor: pointer; }
#moodPick button .ico { width: 22px; height: 22px; }
#moodPick button.on { border-color: var(--honey); background: rgba(240, 192, 74, .18); }
#moodPick button.mp-x { min-width: 34px; background: none; } #moodPick button.mp-x .ico { width: 14px; height: 14px; }
body.no-fx #moodPick, body.no-fx #songPick { animation: none; }
/* the record player's song list (2026-11-22): a small scrolling sheet over the dock, owner only; Off first, then the jukebox tunes and the place songs */
#songPick { position: fixed; left: 50%; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 22; width: min(320px, calc(100vw - 16px)); max-height: min(58vh, 420px); display: flex; flex-direction: column; border-radius: 14px; background: rgba(20, 18, 34, .94); border: 1px solid var(--gold-line); box-shadow: 0 4px 14px rgba(0, 0, 0, .45); color: var(--cream); font: 600 13px/1.2 var(--gw-font); animation: hintUp .2s ease-out; }
#songPick header { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 12px; } #songPick header b { color: var(--honey); }
#songPick p { margin: 0 12px 6px; font-weight: 500; font-size: 12px; opacity: .85; }
#songPick .sp-list { overflow-y: auto; padding: 0 6px 6px; -webkit-overflow-scrolling: touch; }
#songPick h4 { margin: 8px 6px 3px; font: 700 11px/1 var(--gw-font); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
#songPick button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 38px; padding: 5px 8px; margin: 2px 0; border-radius: 9px; border: 1px solid transparent; background: rgba(255, 255, 255, .06); color: inherit; font: inherit; text-align: left; cursor: pointer; }
#songPick button .ico { width: 18px; height: 18px; flex: none; } #songPick button span { flex: 1; min-width: 0; }
#songPick button .sp-on { display: none; } #songPick button.on { border-color: var(--honey); background: rgba(240, 192, 74, .18); } #songPick button.on .sp-on { display: block; }
#songPick button.sp-x { width: 32px; min-height: 32px; margin: 0; justify-content: center; background: none; } #songPick button.sp-x .ico { width: 14px; height: 14px; }
@media (max-height: 420px) { #songPick { bottom: calc(60px + env(safe-area-inset-bottom, 0px)); width: min(480px, calc(100vw - 16px)); max-height: calc(100vh - 124px); } #songPick .sp-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 6px; align-content: start; } #songPick .sp-list h4 { grid-column: 1 / -1; } #songPick .sp-list > button[data-song=""] { grid-column: 1 / -1; } }   /* (a short landscape screen: above the dock and under the wallet, two columns, the list scrolls) */
@media (max-height: 420px) { #moodPick { bottom: 8px; left: auto; right: 74px; transform: none; } #moodPick button { min-width: 48px; min-height: 42px; } }   /* a phone on its side: low and to the right, off the dock and the room's middle */
