/* Page 54 · SIMPLE MODE PICKER. Two layers:
   1. the page chrome (prefix p54-, the series' T1 SPOTLIGHT chrome in DARK VIVID, as pages 52 / 53);
   2. the game screens (prefix g-): 1 CSS px = 1 game unit inside a 998 x 460 (iPhone 16) or 860 x 645 (iPad) screen,
      scaled as a whole; text never under the game's 13-unit floor. T1 SPOTLIGHT dark vivid by default, .t2 = the comic theme. */
:root { --p54-bg1: #241C44; --p54-bg2: #141028; --p54-bg3: #0A0818; --mint: #7CFFA3; --hot: #FF5A7A; --amber: #FFB45A; --lilac: #B79CFF;
  --panel-g: linear-gradient(180deg, #2E2850, #1E1A33 60%, #171329); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.p54 { margin: 0; min-height: 100vh; color: var(--cream); font: 500 15px / 1.5 var(--f-body, "Rubik", sans-serif); -webkit-font-smoothing: antialiased; padding-bottom: 150px; overflow-x: hidden;
  background: radial-gradient(70% 40% at 50% 0%, rgba(183, 156, 255, 0.12), transparent 70%), radial-gradient(40% 30% at 8% 3%, rgba(255, 79, 163, 0.10), transparent 70%), radial-gradient(40% 30% at 92% 3%, rgba(63, 154, 255, 0.14), transparent 70%), linear-gradient(180deg, var(--p54-bg1), var(--p54-bg2) 26%, var(--p54-bg3)); }
body.p54::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.45; background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1.3px), radial-gradient(rgba(207, 230, 255, 0.35) 1px, transparent 1.2px); background-size: 120px 120px, 77px 77px; background-position: 0 0, 30px 40px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
.p54 a { color: inherit; }
.p54 code { font: 600 0.86em / 1 ui-monospace, Menlo, monospace; background: rgba(0, 0, 0, 0.35); padding: 2px 5px; border-radius: 5px; color: #FFE9A8; }
.p54 b, .p54 strong { color: #fff; }
:where(.p54) button { font-family: inherit; }
.p54-wrap { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; padding: 0 22px; }

/* ---------------------------------------------------------------- top bar */
.p54-bar { position: sticky; top: 0; z-index: 150; background: rgba(16, 12, 34, 0.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 2px solid rgba(0, 0, 0, 0.35); }
.p54-bar__in { max-width: 1320px; margin: 0 auto; padding: 8px 22px; display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.p54-bar__brand { font: 400 17px / 1 var(--f-display); letter-spacing: 0.03em; margin-right: auto; display: flex; align-items: center; gap: 9px; color: #fff; white-space: nowrap; }
.p54-bar__brand i { width: 24px; height: 24px; border-radius: 7px; background: var(--yellow); border: 2.5px solid var(--ink); box-shadow: 1px 3px 0 var(--ink); display: inline-grid; place-items: center; font: 400 14px/1 var(--f-display); color: var(--ink); font-style: normal; }
.p54-bar__brand b { color: var(--yellow); font-weight: 400; }
@media (max-width: 1500px) { .p54-bar__brand .long { display: none; } }
.p54-bar nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.p54-bar nav a { font: 400 13.5px / 1 var(--f-display); letter-spacing: 0.03em; color: var(--cream-2); text-decoration: none; padding: 7px 7px 6px; border-radius: 9px; }
.p54-bar nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.p54-bar nav a.rec { color: var(--yellow); }
.p54-bar nav i { width: 2px; height: 18px; background: rgba(255, 255, 255, 0.14); margin: 0 4px; border-radius: 2px; }
.p54-tog { display: inline-flex; padding: 3px; gap: 3px; border: 2.5px solid var(--ink); border-radius: 11px; background: #120F20; box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.5); }
.p54-tog button { border: 0; border-radius: 8px; min-height: 28px; padding: 3px 9px; background: transparent; color: var(--cream-2); font: 400 13px/1 var(--f-display); letter-spacing: 0.05em; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.p54-tog button svg { width: 15px; height: 15px; }
.p54-tog button.on { background: linear-gradient(180deg, var(--yellow-hi), var(--yellow) 60%, var(--yellow-lo)); color: var(--ink); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), 0 0 0 2px var(--ink); }
.p54-motion { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 9px; border-radius: 10px; border: 2px solid rgba(0, 0, 0, 0.5); background: rgba(255, 255, 255, 0.06); color: var(--cream-2); font: 800 11px/1 var(--f-body); letter-spacing: 0.12em; cursor: pointer; }
.p54-motion i { width: 26px; height: 15px; border-radius: 9px; background: #1FBF5C; position: relative; transition: background 0.2s; }
.p54-motion i::after { content: ""; position: absolute; top: 2px; left: 13px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: left 0.2s; }
.p54-motion.off i { background: #4A4466; } .p54-motion.off i::after { left: 2px; }

/* ---------------------------------------------------------------- shared page bits */
.p54-eye { font: 800 12px / 1.3 var(--f-body); letter-spacing: 0.2em; color: #FFB3D6; text-transform: uppercase; }
.p54-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 4px; border-radius: 8px; border: 2px solid var(--ink); background: linear-gradient(180deg, var(--yellow-hi), var(--yellow)); color: var(--ink); font: 400 13px/1 var(--f-display); letter-spacing: 0.04em; box-shadow: 1px 2px 0 var(--ink); white-space: nowrap; }
.p54-chip--dim { background: rgba(255, 246, 224, 0.1); color: var(--cream-2); border-color: rgba(0, 0, 0, 0.5); box-shadow: none; }
.p54-chip--m { background: linear-gradient(180deg, #C4FFD6, var(--mint)); }
.p54-chip--hot { background: linear-gradient(180deg, #FF9AB0, var(--hot)); color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.p54-chip--l { background: linear-gradient(180deg, #E4D9FF, var(--lilac)); }
.p54-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.p54-seg { display: inline-flex; padding: 4px; gap: 4px; border: 3px solid var(--ink); border-radius: 14px; background: #120F20; box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.5), 2px 4px 0 var(--ink); flex-wrap: wrap; }
.p54-seg button { position: relative; min-height: 34px; padding: 4px 11px; border: 0; border-radius: 10px; cursor: pointer; background: transparent; color: var(--cream-2); font: 400 14px/1 var(--f-display); letter-spacing: 0.03em; display: inline-flex; align-items: center; gap: 6px; transition: background 0.15s, color 0.15s, transform 0.12s; }
.p54-seg button:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.p54-seg button:active { transform: translateY(1px); }
.p54-seg button.on { background: linear-gradient(180deg, var(--yellow-hi), var(--yellow) 60%, var(--yellow-lo)); color: var(--ink); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), 0 0 0 2.5px var(--ink); }
.p54-seg--sm button { min-height: 28px; padding: 3px 9px; font-size: 12.5px; }
.p54-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 12px; cursor: pointer; border: 3px solid var(--ink); border-radius: 12px; color: #fff; font: 400 17px/1 var(--f-display); letter-spacing: 0.04em; background: linear-gradient(180deg, #5C537F, #3A3458 55%, #2A2640); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 2px 4px 0 var(--ink); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; transition: transform 0.12s var(--out), box-shadow 0.12s; white-space: nowrap; }
.p54-btn:hover { transform: translateY(-2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 2px 6px 0 var(--ink); }
.p54-btn:active { transform: translate(1px, 3px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 0 1px 0 var(--ink); }
.p54-btn--y { background: linear-gradient(180deg, var(--yellow-hi), var(--yellow) 55%, var(--yellow-lo)); color: var(--ink); -webkit-text-stroke: 0; }
.p54-btn--go { background: linear-gradient(180deg, #7BEFA5, var(--green) 50%, #0F9442); }
.p54-btn--sm { height: 32px; font-size: 13.5px; padding: 0 10px 0 8px; border-radius: 9px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 1px 3px 0 var(--ink); }
.p54-btn svg { width: 17px; height: 17px; flex: none; }
.p54-panel { position: relative; border: 4px solid var(--ink); border-radius: 24px; background: var(--panel-g); box-shadow: 3px 8px 0 var(--ink); padding: 20px; }
.p54-panel h3 { margin: 0 0 6px; font: 400 21px/1.05 var(--f-display); letter-spacing: 0.02em; color: #fff; }
.p54-panel p { margin: 0 0 8px; color: var(--cream-2); font-size: 14px; }
.p54-mini { font: 800 11px/1.3 var(--f-body); letter-spacing: 0.12em; color: var(--cream-3); text-transform: uppercase; }

/* ---------------------------------------------------------------- devices (frames + the scaled game screen) */
.p54-dev { position: relative; width: 100%; border: 4px solid var(--ink); border-radius: 30px; padding: 10px; background: linear-gradient(160deg, #3B3550, #17141F 55%, #0B0A10); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.06), 4px 9px 0 var(--ink); margin: 0 auto; }
.p54-dev.is-ipad { border-radius: 26px; padding: 14px; }
.p54-dev--sm { border-radius: 18px; padding: 5px; border-width: 3px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.06), 3px 5px 0 var(--ink); }
.p54-dev--sm .p54-scr { border-radius: 13px; }
.p54-scr { position: relative; overflow: hidden; border-radius: 21px; background: #05040A; aspect-ratio: 2556 / 1179; isolation: isolate; }
.p54-dev.is-ipad .p54-scr { aspect-ratio: 2048 / 1536; border-radius: 14px; }
.p54-island { position: absolute; z-index: 80; left: 1.45%; top: 50%; width: 1.1%; height: 21%; translate: 0 -50%; border-radius: 99px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05); pointer-events: none; }
.p54-dev.is-ipad .p54-island { display: none; }
.p54-tag { position: absolute; z-index: 90; left: 16px; top: -15px; padding: 5px 10px 4px; border-radius: 9px; border: 2.5px solid var(--ink); background: var(--panel-2); color: #fff; font: 400 13px/1 var(--f-display); letter-spacing: 0.05em; box-shadow: 2px 3px 0 var(--ink); white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }
.p54-tag.y { background: linear-gradient(180deg, var(--yellow-hi), var(--yellow)); color: var(--ink); }
.p54-tag.m { background: linear-gradient(180deg, #C4FFD6, var(--mint)); color: var(--ink); }
.p54-tag.r { left: auto; right: 16px; }
.p54-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* =====================================================================================================
   THE GAME SCREEN (g-). 1 px = 1 game unit.
   ===================================================================================================== */
.g-app { --sl: 69px; --sr: 69px; --sb: 25px; --top: 8px;
  --g-txt: #FFF6E0; --g-txt2: rgba(255, 246, 224, 0.74); --g-txt3: rgba(255, 246, 224, 0.52); --g-line: rgba(255, 246, 224, 0.09);
  --g-chip: #15121F; --g-chip-t: rgba(255, 246, 224, 0.86); --g-track: rgba(8, 6, 16, 0.55);
  --g-tile: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 46%), linear-gradient(180deg, #3B3562, #2A2647 58%, #221E3A);
  --g-panel: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 40%), linear-gradient(180deg, #2B2649, #1F1B35 70%, #1A1730);
  --g-gloss: inset 0 2px 0 rgba(255, 255, 255, 0.12), inset 0 -3px 0 rgba(0, 0, 0, 0.24);
  --g-gearhole: #2B2547;
  position: absolute; left: 0; top: 0; width: 998px; height: 460px; transform-origin: 0 0; transform: scale(var(--k, 1)); overflow: hidden;
  font-family: var(--f-body); color: var(--g-txt); -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; user-select: none; -webkit-user-select: none; line-height: 1.15;
  background:
    radial-gradient(62% 58% at 52% -4%, rgba(160, 150, 200, 0.46), transparent 72%),
    radial-gradient(42% 62% at -2% 82%, rgba(196, 52, 132, 0.34), transparent 72%),
    radial-gradient(40% 55% at 102% 88%, rgba(82, 64, 214, 0.32), transparent 72%),
    linear-gradient(180deg, #3B3262 0%, #2B2352 46%, #1C1640 100%); }
.g-app::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(rgba(255, 255, 255, 0.075) 1.2px, transparent 1.7px) 0 0 / 9px 9px; -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25), #000 80%); mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25), #000 80%); }
.g-app.is-ipad { --sl: 10px; --sr: 10px; --sb: 16px; width: 860px; height: 645px; }
.g-app *, .g-app *::before, .g-app *::after { box-sizing: border-box; }
:where(.g-app) button { font: inherit; color: inherit; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; text-align: inherit; }
.g-app .g-ui { width: 1em; height: 1em; display: inline-block; flex: none; }
.g-d { font-family: var(--f-display); font-weight: 400; letter-spacing: 0.01em; }
.g-out { color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 2.5px 0 var(--ink); }
.g-cap { font: 800 13px/1.15 var(--f-body); letter-spacing: 0.05em; text-transform: uppercase; color: var(--g-txt3); }

/* T2 · the comic theme: paper, white panels, ink type */
.g-app.t2 { --g-txt: #1D1B24; --g-txt2: rgba(29, 27, 36, 0.74); --g-txt3: rgba(29, 27, 36, 0.55); --g-line: rgba(29, 27, 36, 0.12);
  --g-chip: #FFFFFF; --g-chip-t: #1D1B24; --g-track: rgba(29, 27, 36, 0.07);
  --g-tile: linear-gradient(180deg, #FFFFFF, #FFFBF1); --g-panel: #FFFFFF; --g-gloss: inset 0 -3px 0 rgba(29, 27, 36, 0.06); --g-gearhole: #F3ECDD;
  background: radial-gradient(rgba(29, 27, 36, 0.13) 1.3px, transparent 1.8px) 0 0 / 12px 12px, radial-gradient(70% 60% at 50% 0%, #FFF9EC, transparent 70%), #F2EADA; }
.g-app.t2::before { display: none; }
.g-app.t2 .g-out { color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; }

/* ---------------------------------------------------------------- layout boxes */
.g-top { position: absolute; z-index: 20; left: calc(var(--sl) + 8px); right: calc(var(--sr) + 8px); top: var(--top); height: 44px; display: flex; align-items: center; gap: 10px; }
.g-stage { position: absolute; inset: 0; z-index: 5; }
.g-step { position: absolute; inset: 0; }
.g-body { position: absolute; left: calc(var(--sl) + 8px); right: calc(var(--sr) + 8px); top: 58px; bottom: calc(var(--sb) + 8px); display: flex; flex-direction: column; justify-content: center; }
.g-body--top { justify-content: flex-start; }
.g-over { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
.g-over > * { pointer-events: auto; }

/* step motion (TF-MODES 15): the new step's pieces pop in (up 20, scale .93 -> 1, springy) 0.30 s, 35 ms apart; the old step slides 70 off and fades in 0.2 s */
.g-step.is-in .g-pop { animation: g-pop 0.3s var(--spring) both; animation-delay: calc(var(--i, 0) * 35ms + 30ms); }
.g-step.is-out { animation: g-out-l 0.2s ease-in both; pointer-events: none; }
.g-step.is-out.dir-b { animation-name: g-out-r; }
@keyframes g-pop { 0% { opacity: 0; transform: translateY(20px) scale(0.93); } 100% { opacity: 1; transform: none; } }
@keyframes g-out-l { to { opacity: 0; transform: translateX(-70px); } }
@keyframes g-out-r { to { opacity: 0; transform: translateX(70px); } }
.is-pick { animation: g-pick 0.42s var(--spring); }
@keyframes g-pick { 0% { transform: scale(1); } 35% { transform: scale(1.1); } 70% { transform: scale(0.97); } 100% { transform: scale(1); } }
.g-swap { animation: g-swap 0.32s var(--spring) both; }
@keyframes g-swap { 0% { opacity: 0; transform: translateY(8px) scale(0.96); } 100% { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- the top bar's pieces */
.g-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 14px; border: 3px solid var(--ink) !important; border-radius: 13px;
  background: linear-gradient(180deg, #48416E, #2E2A4A 60%, #26223F) !important; color: #FFF6E0; font: 400 19px/1 var(--f-display); letter-spacing: 0.02em; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.16), 3px 4px 0 var(--ink); transition: transform 0.12s var(--out), box-shadow 0.12s; white-space: nowrap; }
.g-btn .g-ui { font-size: 17px; }
.g-btn:hover { transform: translateY(-1px); }
.g-btn:active, .g-btn.is-press { transform: translate(2px, 3px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.16), 1px 1px 0 var(--ink); }
.g-x { width: 42px; padding: 0; }
.g-x .g-ui { font-size: 20px; }
.t2 .g-btn { background: #fff !important; color: var(--ink); box-shadow: 3px 4px 0 var(--ink); }
.g-set { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 8px; color: var(--g-txt); font: 400 18px/1 var(--f-display); letter-spacing: 0.03em; }
.g-set .g-ui { font-size: 22px; }
.g-sp { flex: 1; }
/* the stepper: dots + labels; it is the breadcrumb too (a done step shows its pick and takes you back) */
.g-steps { display: flex; align-items: center; gap: 6px; height: 40px; }
.g-stp { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 9px; border-radius: 11px; border: 2px solid transparent; font: 400 16px/1 var(--f-display); letter-spacing: 0.03em; color: var(--g-txt3); white-space: nowrap; transition: background 0.2s, color 0.2s; }
.g-stp i { width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid currentColor; flex: none; display: grid; place-items: center; transition: background 0.2s, transform 0.3s var(--spring); }
.g-stp.done { color: var(--g-txt2); border-color: rgba(255, 246, 224, 0.2); cursor: pointer; }
.g-stp.done i { background: var(--mint); border-color: var(--ink); width: 16px; height: 16px; }
.g-stp.done i::after { content: ""; width: 7px; height: 4px; border: solid var(--ink); border-width: 0 0 2.4px 2.4px; transform: translateY(-1px) rotate(-45deg); }
.g-stp.done:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.g-stp.cur { background: linear-gradient(180deg, var(--yellow-hi), var(--yellow) 60%, var(--yellow-lo)); color: var(--ink); border-color: var(--ink); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), 2px 3px 0 var(--ink); }
.g-stp.cur i { border-color: var(--ink); background: var(--ink); transform: scale(0.75); }
.g-steps b { width: 14px; height: 3px; border-radius: 2px; background: rgba(255, 246, 224, 0.18); flex: none; }
.t2 .g-stp.done { border-color: rgba(29, 27, 36, 0.3); }
.t2 .g-steps b { background: rgba(29, 27, 36, 0.2); }
.g-dots { display: inline-flex; align-items: center; gap: 7px; }
.g-dots i { width: 30px; height: 9px; border-radius: 5px; background: rgba(255, 246, 224, 0.2); border: 2px solid rgba(0, 0, 0, 0.25); }
.g-dots i.on { background: var(--yellow); border-color: var(--ink); }
.t2 .g-dots i { background: rgba(29, 27, 36, 0.12); }
.g-steplbl { font: 800 14px/1 var(--f-body); letter-spacing: 0.08em; color: var(--g-txt3); }

/* ---------------------------------------------------------------- titles */
.g-title { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; }
.g-title h2 { margin: 0; font: 400 28px/1 var(--f-display); letter-spacing: 0.01em; color: #fff; -webkit-text-stroke: 4.5px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); white-space: nowrap; }
.g-title span { font: 800 13px/1 var(--f-body); letter-spacing: 0.08em; color: var(--g-txt3); text-transform: uppercase; white-space: nowrap; }
.t2 .g-title h2 { color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; }
.g-title--c { justify-content: center; }

/* ---------------------------------------------------------------- the sticker icon (CSS plate + SVG glyph) */
.g-ico { position: relative; display: inline-grid; place-items: center; width: var(--s); height: var(--s); flex: none; border: 3px solid var(--ink); border-radius: 30%; background: var(--bg);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.32), inset 0 -4px 0 rgba(0, 0, 0, 0.18), 2px 3px 0 var(--ink); overflow: hidden; font-style: normal; }
.g-ico--ci { border-radius: 50%; }
.g-ico svg { width: 84%; height: 84%; position: relative; z-index: 1; overflow: visible; }
.g-ico::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.g-ico::after { content: ""; position: absolute; left: 10%; right: 10%; top: 5%; height: 34%; border-radius: 50% 50% 40% 40%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0)); z-index: 0; pointer-events: none; }
.g-ico--rays::before { background: repeating-conic-gradient(from 0deg at 50% 60%, rgba(255, 255, 255, 0.13) 0 12deg, transparent 12deg 30deg); }
.g-ico--dots::before { background: radial-gradient(rgba(0, 0, 0, 0.16) 1.4px, transparent 1.9px) 0 0 / 6px 6px; }
.g-ico--rings::before { background: repeating-radial-gradient(circle at 50% 110%, rgba(255, 255, 255, 0.14) 0 3px, transparent 3px 8px); }
.g-ico--glow::before { background: radial-gradient(circle at 50% 55%, rgba(255, 210, 63, 0.4), transparent 60%); }
.g-ico--planks::before { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.12) 0 1.5px, transparent 1.5px 9px); }
.g-dot { position: absolute; z-index: 3; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--mint); right: -3px; top: -3px; box-shadow: 0 0 0 0 rgba(124, 255, 163, 0.6); animation: g-breathe 1.8s ease-in-out infinite; }
.g-dot--hot { background: #FF4F6A; }
.g-dot--week { background: #5FE3F5; }
@keyframes g-breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(124, 255, 163, 0.55); } 50% { box-shadow: 0 0 0 5px rgba(124, 255, 163, 0); } }
.g-icow { position: relative; display: inline-flex; flex: none; }

/* ---------------------------------------------------------------- tags (kept small: the 13-unit floor) */
.g-tag { display: inline-flex; align-items: center; gap: 4px; height: 19px; padding: 1px 6px 0; border-radius: 6px; border: 2px solid var(--ink); font: 400 13px/1 var(--f-display); letter-spacing: 0.04em; white-space: nowrap; color: var(--ink); background: linear-gradient(180deg, #C4FFD6, var(--mint)); flex: none; }
.g-tag--hot { background: linear-gradient(180deg, #FF8FA6, #FF3D6E); color: #fff; -webkit-text-stroke: 2.5px var(--ink); paint-order: stroke fill; }
.g-tag--rk { background: linear-gradient(180deg, #9CC2FF, #4A8BFF); color: #fff; -webkit-text-stroke: 2.5px var(--ink); paint-order: stroke fill; }
.g-tag--wk { background: linear-gradient(180deg, #B6F5FF, #4FDBF2); }
.g-tag--y { background: linear-gradient(180deg, var(--yellow-hi), var(--yellow)); }
.g-tag--dim { background: rgba(255, 246, 224, 0.12); color: var(--g-txt2); border-color: rgba(0, 0, 0, 0.35); }
.g-tag--found { background: rgba(10, 8, 20, 0.6); color: #8DF5FF; border-color: #4FDBF2; gap: 5px; }
.g-tag--found::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 2px rgba(61, 220, 132, 0.3); animation: g-live 1.4s ease-in-out infinite; }
@keyframes g-live { 50% { box-shadow: 0 0 0 4px rgba(61, 220, 132, 0); } }
.t2 .g-tag--found { background: #fff; color: #0F7FA0; }
.t2 .g-tag--dim { background: rgba(29, 27, 36, 0.06); color: var(--g-txt2); border-color: rgba(29, 27, 36, 0.3); }

/* ---------------------------------------------------------------- tiles */
.g-tile { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 3px solid var(--ink) !important; border-radius: 18px; background: var(--g-tile) !important;
  box-shadow: var(--g-gloss), 3px 5px 0 var(--ink); color: var(--g-txt); text-align: left; transition: transform 0.14s var(--out), box-shadow 0.14s, filter 0.14s; overflow: visible; }
.g-tile::before { content: ""; position: absolute; inset: 0; border-radius: 15px; pointer-events: none; background: radial-gradient(150px 110px at 34px 28px, color-mix(in srgb, var(--tc, #8C6BFF) 34%, transparent), transparent 75%); opacity: 0.9; }
.t2 .g-tile::before { background: radial-gradient(140px 100px at 30px 26px, color-mix(in srgb, var(--tc, #8C6BFF) 16%, transparent), transparent 75%); }
.g-tile > * { position: relative; }
.g-tile:hover { transform: translateY(-2px); box-shadow: var(--g-gloss), 3px 7px 0 var(--ink); }
.g-tile:active, .g-tile.is-press { transform: translate(2px, 4px) scale(0.985); box-shadow: var(--g-gloss), 1px 1px 0 var(--ink); }
.g-tile.is-on { box-shadow: var(--g-gloss), 0 0 0 3px var(--yellow), 0 0 0 6px var(--ink), 3px 7px 0 3px var(--ink); }
.g-tile.is-off { filter: grayscale(0.9) brightness(0.7); }
.g-tile.is-off:hover { transform: none; }
.g-tile__t { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.g-tile__n { font: 400 24px/1 var(--f-display); letter-spacing: 0.01em; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 2px 0 var(--ink); white-space: nowrap; }
.t2 .g-tile__n { color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; }
.g-tile__l { font: 800 13px/1.15 var(--f-body); letter-spacing: 0.05em; color: var(--g-txt2); text-transform: uppercase; white-space: nowrap; }
.g-tile__tags { position: absolute; top: -10px; right: 12px; display: flex; gap: 5px; z-index: 4; }
.g-tile__more { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 4px; color: var(--g-txt3); font: 400 15px/1 var(--f-display); letter-spacing: 0.03em; white-space: nowrap; }
.g-tile__more .g-ui { font-size: 15px; }
.g-tile__pic { width: 84px; height: 58px; border-radius: 11px; border: 3px solid var(--ink); background: #0C0A14 center / cover no-repeat; flex: none; box-shadow: 2px 3px 0 var(--ink); }
.g-tile__bar { width: 7px; align-self: stretch; border-radius: 4px; background: linear-gradient(180deg, var(--tc), color-mix(in srgb, var(--tc) 60%, #000)); border: 2px solid var(--ink); flex: none; }
/* a vertical tile (step 1's doors) */
.g-tile--v { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 16px 20px; }
.g-tile--v .g-tile__n { font-size: 30px; -webkit-text-stroke-width: 5px; }
.g-tile--v .g-tile__tags { top: 14px; right: 14px; }
.g-tile--v .g-tile__pic { width: 100%; height: 86px; }
.g-tile--again { --tc: #FFD23F; }

/* ---------------------------------------------------------------- AGAIN bar / pill */
.g-again { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 10px 0 9px; border: 3px solid var(--ink) !important; border-radius: 16px; background: linear-gradient(180deg, #403A66, #2A2647) !important;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.14), 3px 5px 0 var(--ink); transition: transform 0.14s var(--out), box-shadow 0.14s; color: var(--g-txt); }
.g-again:hover { transform: translateY(-2px); }
.g-again:active, .g-again.is-press { transform: translate(2px, 4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.14), 1px 1px 0 var(--ink); }
.g-again__k { font: 800 13px/1 var(--f-body); letter-spacing: 0.1em; color: var(--g-txt3); }
.g-again__v { font: 400 20px/1 var(--f-display); letter-spacing: 0.02em; color: var(--g-txt); white-space: nowrap; }
.g-again__go { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--ink); background: linear-gradient(180deg, var(--yellow-hi), var(--yellow) 60%, var(--yellow-lo)); color: var(--ink); display: grid; place-items: center; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 1px 2px 0 var(--ink); margin-left: 6px; }
.g-again__go .g-ui { font-size: 18px; margin-left: 2px; }
.g-again--pill { height: 42px; border-radius: 13px; gap: 8px; padding: 0 6px 0 5px; }
.g-again--pill .g-again__v { font-size: 17px; }
.g-again--pill .g-again__go { width: 30px; height: 30px; }
.t2 .g-again { background: #fff !important; }

/* ---------------------------------------------------------------- chips, segments, stepper */
.g-chip { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; min-width: 40px; padding: 0 13px; border-radius: 11px; background: var(--g-chip) !important; color: var(--g-chip-t);
  font: 400 17px/1 var(--f-display); letter-spacing: 0.02em; white-space: nowrap; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35); transition: transform 0.12s var(--out), background 0.15s, color 0.15s, box-shadow 0.15s; }
.g-chip:hover { color: #fff; background: #221D33 !important; }
.g-chip:active, .g-chip.is-press { transform: translateY(2px) scale(0.97); }
.g-chip.on { background: linear-gradient(180deg, var(--yellow-hi), var(--yellow) 60%, var(--yellow-lo)) !important; color: var(--ink); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 0 0 2.5px var(--ink), 2px 3px 0 2px var(--ink); }
.g-chip.dis { opacity: 0.45; pointer-events: none; }
.g-chip small { font: 800 13px/1 var(--f-body); letter-spacing: 0.04em; opacity: 0.75; }
.g-chip--2 { flex-direction: column; gap: 3px; height: 46px; padding: 0 14px; }
.t2 .g-chip { border: 2.5px solid var(--ink); box-shadow: 2px 3px 0 var(--ink); }
.t2 .g-chip:hover { background: #FFF6E0 !important; color: var(--ink); }
.t2 .g-chip.on { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 2px 3px 0 var(--ink); }
.g-seg { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; background: var(--g-track); box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.3); }
.t2 .g-seg { background: rgba(29, 27, 36, 0.05); box-shadow: inset 0 0 0 2px rgba(29, 27, 36, 0.12); }
.g-seg .g-chip { height: 34px; padding: 0 12px; font-size: 16px; background: transparent !important; box-shadow: none; color: var(--g-txt2); }
.t2 .g-seg .g-chip { border: 0; box-shadow: none; }
.g-seg .g-chip:hover { color: var(--g-txt); background: rgba(255, 255, 255, 0.06) !important; }
.g-seg .g-chip.on { background: linear-gradient(180deg, var(--yellow-hi), var(--yellow) 60%, var(--yellow-lo)) !important; color: var(--ink); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 0 0 2.5px var(--ink); }
.g-seg--2 .g-chip { height: 44px; flex-direction: column; gap: 3px; }
.g-num { display: inline-flex; align-items: center; gap: 0; height: 40px; border-radius: 13px; background: var(--g-track); box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.3); padding: 3px; }
.t2 .g-num { background: rgba(29, 27, 36, 0.05); box-shadow: inset 0 0 0 2px rgba(29, 27, 36, 0.12); }
.g-num button { width: 36px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--ink); background: linear-gradient(180deg, #FFFFFF, #E9E2CF) !important; border: 2.5px solid var(--ink) !important; box-shadow: inset 0 2px 0 #fff, 1px 2px 0 var(--ink); transition: transform 0.1s; }
.g-num button .g-ui { font-size: 16px; }
.g-num button:active, .g-num button.is-press { transform: translateY(2px); box-shadow: inset 0 2px 0 #fff; }
.g-num button.dis { opacity: 0.35; pointer-events: none; }
.g-num output { min-width: 44px; text-align: center; font: 400 24px/1 var(--f-display); color: var(--g-txt); }
.g-num output.is-pick { display: inline-block; }

/* ---------------------------------------------------------------- the GO panel */
.g-panel { position: relative; border: 3px solid var(--ink); border-radius: 20px; background: var(--g-panel); box-shadow: var(--g-gloss), 3px 5px 0 var(--ink); }
.t2 .g-panel { border-width: 3.5px; }
.g-cell { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 7px 14px; }
.g-cell + .g-cell { border-top: 2px solid var(--g-line); }
.g-cell__k { width: 76px; flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.g-cell__k b { font: 400 17px/1 var(--f-display); letter-spacing: 0.03em; color: var(--g-txt); font-weight: 400; white-space: nowrap; }
.g-cell__k small { font: 800 13px/1.1 var(--f-body); letter-spacing: 0.04em; color: var(--g-txt3); white-space: nowrap; }
.g-cell__v { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.g-info { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.g-info b { font: 400 19px/1 var(--f-display); color: var(--g-txt); font-weight: 400; white-space: nowrap; }
.g-info span { font: 800 13px/1.15 var(--f-body); letter-spacing: 0.04em; color: var(--g-txt3); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-grid2 { display: grid; grid-template-columns: 1fr 1fr; }
.g-grid2 > .g-cell { border-top: 2px solid var(--g-line); }
.g-grid2 > .g-cell:nth-child(-n + 2) { border-top: 0; }
.g-grid2 > .g-cell:nth-child(even) { border-left: 2px solid var(--g-line); }

/* the ARENA button (opens TF-META's PICK AN ARENA sheet) */
.g-arena { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 10px 0 4px; border-radius: 12px; background: var(--g-chip) !important; color: var(--g-chip-t); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35); transition: transform 0.12s var(--out), box-shadow 0.2s; max-width: 100%; }
.g-arena:active, .g-arena.is-press { transform: translateY(2px); }
.t2 .g-arena { border: 2.5px solid var(--ink); box-shadow: 2px 3px 0 var(--ink); }
.g-arena__pic { width: 58px; height: 32px; border-radius: 8px; border: 2.5px solid var(--ink); background: #0C0A14 center / cover no-repeat; flex: none; display: grid; place-items: center; overflow: hidden; }
.g-arena__pic.rand { background: linear-gradient(180deg, #4A3F86, #2A2350); color: #fff; }
.g-arena__pic.rand .g-ui { font-size: 20px; }
.g-arena__roll { position: relative; height: 22px; overflow: hidden; display: block; min-width: 0; }
.g-arena__roll span { display: block; font: 400 17px/22px var(--f-display); letter-spacing: 0.02em; white-space: nowrap; }
.g-arena__roll span.old { position: absolute; left: 0; top: 0; animation: g-roll-out 0.34s var(--out) both; }
.g-arena__roll span.new { animation: g-roll-in 0.34s var(--spring) both; }
@keyframes g-roll-out { to { transform: translateY(-22px); opacity: 0; } }
@keyframes g-roll-in { from { transform: translateY(22px); opacity: 0; } }
.g-arena small { font: 800 13px/1 var(--f-body); letter-spacing: 0.04em; color: var(--g-txt3); white-space: nowrap; }
.g-arena .g-ui.car { font-size: 15px; color: var(--g-txt3); }
.g-arena.is-flash { animation: g-flash 0.5s ease-out; }
@keyframes g-flash { 0% { box-shadow: 0 0 0 3px var(--yellow), 0 0 24px rgba(255, 210, 63, 0.8); } 100% { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35); } }
.g-arena.fixed { background: transparent !important; box-shadow: none; padding-left: 0; pointer-events: none; border: 0; }
.g-arena.fixed .g-ui.lk { font-size: 14px; color: var(--g-txt3); }

/* the rule row: small icon chips, NORMAL first */
.g-rules { display: flex; align-items: flex-start; gap: 8px; flex-wrap: nowrap; }
.g-rule { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 92px; padding: 6px 2px 5px; border-radius: 14px; border: 2.5px solid transparent !important; transition: transform 0.14s var(--out), background 0.15s; }
.g-rule:hover { background: rgba(255, 255, 255, 0.05) !important; }
.g-rule:active, .g-rule.is-press { transform: scale(0.95); }
.g-rule span { font: 400 14px/1.05 var(--f-display); letter-spacing: 0.02em; text-align: center; color: var(--g-txt2); min-height: 30px; display: flex; align-items: flex-start; justify-content: center; }
.g-rule.on { background: rgba(255, 210, 63, 0.12) !important; border-color: var(--yellow) !important; box-shadow: 0 0 0 2px var(--ink); }
.g-rule.on span { color: var(--g-txt); }
.g-rule .g-tag { position: absolute; top: -8px; right: 2px; z-index: 4; }
.t2 .g-rule.on { background: #FFF4C2 !important; }
/* a wide rule chip (icon + name inline) */
.g-rchip { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 5px; border-radius: 13px; background: var(--g-chip) !important; color: var(--g-chip-t); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35); font: 400 15px/1.02 var(--f-display); letter-spacing: 0.02em; white-space: nowrap; transition: transform 0.12s var(--out); }
.g-rchip:active, .g-rchip.is-press { transform: translateY(2px) scale(0.97); }
.g-rchip.on { background: linear-gradient(180deg, var(--yellow-hi), var(--yellow) 60%, var(--yellow-lo)) !important; color: var(--ink); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 0 0 2.5px var(--ink), 2px 3px 0 2px var(--ink); }
.g-rchip .g-tag { position: absolute; top: -9px; right: -4px; }
.t2 .g-rchip { border: 2.5px solid var(--ink); box-shadow: 2px 3px 0 var(--ink); }
.g-ruleline { display: flex; align-items: center; gap: 10px; font: 700 13px/1.3 var(--f-body); letter-spacing: 0.03em; color: var(--g-txt2); text-transform: uppercase; }
.g-ruleline > span { flex: 1; min-width: 0; }
.g-ibtn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--g-txt); border: 2px solid var(--g-txt3) !important; flex: none; }
.g-ibtn .g-ui { font-size: 22px; }
.g-ibtn:active { transform: scale(0.92); }

/* START! (and JOIN!) */
.g-start { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 74px; border-radius: 18px; border: 3px solid var(--ink) !important;
  background: linear-gradient(180deg, #FFF2AE, var(--yellow-hi) 18%, var(--yellow) 58%, var(--yellow-lo)) !important; color: var(--ink);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.65), inset 0 -6px 0 rgba(185, 120, 0, 0.45), 3px 5px 0 var(--ink), 0 0 46px rgba(255, 210, 63, 0.32); transition: transform 0.12s var(--out), box-shadow 0.12s; }
.g-start b { font: 400 40px/0.9 var(--f-display); letter-spacing: 0.02em; font-weight: 400; color: var(--ink); }
.g-start small { font: 800 13px/1 var(--f-body); letter-spacing: 0.08em; color: #8A5A00; }
.g-start:hover { transform: translateY(-2px); }
.g-start:active, .g-start.is-press { transform: translate(2px, 4px) scale(0.98); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.65), inset 0 -3px 0 rgba(185, 120, 0, 0.45), 1px 1px 0 var(--ink), 0 0 30px rgba(255, 210, 63, 0.3); }
.g-start::after { content: ""; position: absolute; inset: 0; border-radius: 15px; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 45%, transparent 60%) -150% 0 / 220% 100% no-repeat; animation: g-shine 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes g-shine { 0%, 62% { background-position: -150% 0; } 100% { background-position: 160% 0; } }
.g-start.is-off { filter: grayscale(1) brightness(0.8); }
.g-sum { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.g-sum b { font: 400 21px/1 var(--f-display); color: var(--g-txt); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-sum span { font: 800 13px/1.15 var(--f-body); letter-spacing: 0.05em; color: var(--g-txt3); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the extras: slim pills */
.g-xrow { display: flex; gap: 14px; }
.g-xpill { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px 0 5px; border-radius: 14px; border: 2.5px solid rgba(0, 0, 0, 0.55) !important; background: rgba(10, 8, 22, 0.42) !important; color: var(--g-txt); transition: transform 0.12s var(--out), background 0.15s; }
.g-xpill:hover { background: rgba(255, 255, 255, 0.06) !important; }
.g-xpill:active, .g-xpill.is-press { transform: translateY(2px); }
.t2 .g-xpill { background: #fff !important; border-color: var(--ink) !important; box-shadow: 2px 3px 0 var(--ink); }
.g-xpill__img { width: 50px; height: 33px; border-radius: 9px; border: 2.5px solid var(--ink); background: center / cover no-repeat; flex: none; }
.g-xpill__k { font: 800 13px/1 var(--f-body); letter-spacing: 0.06em; color: var(--yellow); white-space: nowrap; }
.t2 .g-xpill__k { color: #C47A00; }
.g-xpill__n { font: 400 19px/1 var(--f-display); letter-spacing: 0.02em; white-space: nowrap; }
.g-xpill__v { margin-left: auto; font: 800 13px/1 var(--f-body); letter-spacing: 0.05em; color: var(--g-txt3); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.g-xpill__v .g-ui { font-size: 14px; }
.g-xpill--week { border-color: #2FBF6A !important; background: linear-gradient(90deg, rgba(47, 191, 106, 0.22), rgba(10, 8, 22, 0.42)) !important; padding-right: 8px; gap: 8px; cursor: default; }
.t2 .g-xpill--week { background: linear-gradient(90deg, #DFFBEA, #fff) !important; }
.g-wk { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 3px; border-radius: 10px; background: var(--g-chip) !important; color: var(--g-chip-t); font: 400 15px/1 var(--f-display); letter-spacing: 0.02em; white-space: nowrap; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35); }
.g-wk:hover { color: #fff; }
.g-wk:active, .g-wk.is-press { transform: translateY(2px); }
.t2 .g-wk { border: 2px solid var(--ink); }

/* ---------------------------------------------------------------- list rows (B) */
.g-row { position: relative; display: flex; align-items: center; gap: 13px; width: 100%; height: 54px; padding: 0 14px 0 8px; border-radius: 15px; border: 3px solid var(--ink) !important; background: var(--g-tile) !important; box-shadow: var(--g-gloss), 2px 4px 0 var(--ink); color: var(--g-txt); transition: transform 0.12s var(--out), box-shadow 0.12s; }
.g-row:hover { transform: translateX(3px); }
.g-row:active, .g-row.is-press { transform: translate(2px, 3px); box-shadow: var(--g-gloss), 0 1px 0 var(--ink); }
.g-row__n { font: 400 22px/1 var(--f-display); letter-spacing: 0.01em; white-space: nowrap; color: var(--g-txt); }
.g-row__l { font: 800 13px/1 var(--f-body); letter-spacing: 0.05em; color: var(--g-txt3); white-space: nowrap; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.g-row__r { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--g-txt3); flex: none; }
.g-row__r .g-ui { font-size: 17px; }
.g-row--again { border-color: var(--ink) !important; background: linear-gradient(90deg, rgba(255, 210, 63, 0.25), rgba(255, 210, 63, 0.05) 60%), var(--g-tile) !important; box-shadow: var(--g-gloss), 0 0 0 2.5px var(--yellow), 2px 5px 0 2px var(--ink); }
.g-row--sm { height: 44px; border-width: 2.5px !important; border-radius: 13px; }
.g-row--sm .g-row__n { font-size: 18px; }
.g-row.is-off { filter: grayscale(0.9) brightness(0.7); }
.g-lhead { font: 800 13px/1 var(--f-body); letter-spacing: 0.14em; color: var(--g-txt3); margin: 4px 0 0 6px; }
.g-set-row { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 8px 0 16px; border-radius: 14px; border: 3px solid var(--ink); background: var(--g-tile); box-shadow: var(--g-gloss), 2px 4px 0 var(--ink); }
.g-set-row > b { font: 400 18px/1 var(--f-display); font-weight: 400; color: var(--g-txt); width: 96px; flex: none; }
.g-cyc { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.g-cyc button { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--g-txt2); }
.g-cyc button:hover { background: rgba(255, 255, 255, 0.08); color: var(--g-txt); }
.g-cyc button:active, .g-cyc button.is-press { transform: scale(0.9); }
.g-cyc button .g-ui { font-size: 17px; }
.g-cyc output { min-width: 130px; text-align: center; font: 400 19px/1 var(--f-display); color: var(--g-txt); display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.g-cyc .rev { transform: scaleX(-1); }
.g-cyc .rev:active { transform: scaleX(-1) scale(0.9); }

/* ---------------------------------------------------------------- round chips (C) */
.g-orb { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: transform 0.16s var(--out); }
.g-orb .g-ico { box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.32), inset 0 -5px 0 rgba(0, 0, 0, 0.18), 3px 5px 0 var(--ink); transition: transform 0.25s var(--spring), box-shadow 0.2s; }
.g-orb:hover .g-ico { transform: translateY(-3px); }
.g-orb:active .g-ico, .g-orb.is-press .g-ico { transform: translate(2px, 4px) scale(0.96); box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.32), inset 0 -5px 0 rgba(0, 0, 0, 0.18), 1px 1px 0 var(--ink); }
.g-orb.on .g-ico { transform: translateY(-4px) scale(1.06); box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.32), inset 0 -5px 0 rgba(0, 0, 0, 0.18), 0 0 0 4px var(--yellow), 0 0 0 7px var(--ink), 3px 8px 0 5px var(--ink); }
.g-orb__n { font: 400 19px/1 var(--f-display); letter-spacing: 0.02em; color: var(--g-txt); white-space: nowrap; }
.g-orb__l { font: 800 13px/1 var(--f-body); letter-spacing: 0.05em; color: var(--g-txt3); white-space: nowrap; margin-top: -3px; }
.g-orb .g-tag { position: absolute; top: -6px; left: 50%; translate: 18px 0; z-index: 4; }
.g-orb.is-off { filter: grayscale(0.9) brightness(0.7); }
.g-orb--sm { gap: 6px; }
.g-orb--sm .g-orb__n { font-size: 14px; text-align: center; white-space: normal; line-height: 1.02; max-width: 92px; }
.g-orb--sm.on .g-ico { box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.32), 0 0 0 3px var(--yellow), 0 0 0 5.5px var(--ink); transform: none; }
.g-orbs { display: flex; align-items: flex-start; justify-content: center; gap: 22px; }
.g-vdiv { width: 3px; align-self: stretch; border-radius: 2px; background: rgba(255, 246, 224, 0.12); margin: 6px 4px; }
.t2 .g-vdiv { background: rgba(29, 27, 36, 0.14); }
.g-notch { position: absolute; top: -12px; width: 22px; height: 12px; translate: -50% 0; transition: left 0.32s var(--spring); }
.g-notch::before { content: ""; position: absolute; left: 0; top: 2px; width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-bottom: 11px solid var(--ink); }
.g-notch::after { content: ""; position: absolute; left: 4px; top: 6.5px; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 7px solid #2B2649; }
.t2 .g-notch::after { border-bottom-color: #fff; }
.g-popv { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 9px 0 12px; border-radius: 11px; background: var(--g-chip) !important; color: var(--g-chip-t); font: 400 16px/1 var(--f-display); letter-spacing: 0.02em; white-space: nowrap; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35); }
.g-popv .g-ui { font-size: 13px; color: var(--g-txt3); }
.g-popv:active, .g-popv.is-press { transform: translateY(2px); }
.t2 .g-popv { border: 2.5px solid var(--ink); }
.g-popover { position: absolute; z-index: 50; padding: 8px; border-radius: 15px; border: 3px solid var(--ink); background: var(--g-panel); box-shadow: 3px 6px 0 var(--ink), 0 14px 40px rgba(0, 0, 0, 0.5); animation: g-swap 0.22s var(--spring) both; display: flex; gap: 6px; }
.t2 .g-popover { background: #fff; }

/* ---------------------------------------------------------------- board (D) */
.g-who3 { display: inline-flex; gap: 4px; padding: 4px; border-radius: 15px; background: var(--g-track); box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.3); }
.t2 .g-who3 { background: rgba(29, 27, 36, 0.05); box-shadow: inset 0 0 0 2px rgba(29, 27, 36, 0.12); }
.g-who3 button { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 5px; border-radius: 11px; font: 400 19px/1 var(--f-display); letter-spacing: 0.02em; color: var(--g-txt2); white-space: nowrap; transition: background 0.15s, color 0.15s; }
.g-who3 button:hover { background: rgba(255, 255, 255, 0.06); }
.g-who3 button.on { background: linear-gradient(180deg, var(--yellow-hi), var(--yellow) 60%, var(--yellow-lo)); color: var(--ink); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 0 0 2.5px var(--ink); }
.g-who3 button.is-off { opacity: 0.45; }
.g-board { display: grid; gap: 14px; align-items: start; }
.g-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.g-col__h { font: 800 13px/1 var(--f-body); letter-spacing: 0.12em; color: var(--g-txt3); margin: 2px 0 0 4px; }
.g-mtile { position: relative; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px 0 5px; border-radius: 13px; border: 2.5px solid var(--ink) !important; background: var(--g-tile) !important; box-shadow: var(--g-gloss), 2px 3px 0 var(--ink); color: var(--g-txt); transition: transform 0.12s var(--out), box-shadow 0.12s; min-width: 0; }
.g-mtile:hover { transform: translateY(-1px); }
.g-mtile:active, .g-mtile.is-press { transform: translate(2px, 3px); box-shadow: var(--g-gloss), 0 0 0 var(--ink); }
.g-mtile b { font: 400 16px/1.02 var(--f-display); letter-spacing: 0.02em; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.g-mtile .g-tag { position: absolute; top: -9px; right: 8px; }
.g-mtile--word { height: 66px; border-width: 3px !important; border-radius: 16px; gap: 11px; padding-left: 7px; }
.g-mtile--word b { font-size: 21px; color: #fff; -webkit-text-stroke: 3.5px var(--ink); paint-order: stroke fill; text-shadow: 0 2px 0 var(--ink); }
.t2 .g-mtile--word b { color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; }
.g-mtile--word small { display: block; font: 800 13px/1 var(--f-body); letter-spacing: 0.04em; color: var(--g-txt3); margin-top: 4px; white-space: nowrap; }
.g-mtile--x { background: rgba(10, 8, 22, 0.42) !important; border-color: rgba(0, 0, 0, 0.6) !important; box-shadow: none; }
.t2 .g-mtile--x { background: #fff !important; border-color: var(--ink) !important; }
.g-mtile--wk { box-shadow: var(--g-gloss), 0 0 0 2px #2FBF6A, 2px 4px 0 2px var(--ink); }
.g-mtile.is-off { filter: grayscale(0.9) brightness(0.7); }

/* ---------------------------------------------------------------- E (one screen) */
.g-erow { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 4px 12px; }
.g-erow + .g-erow { border-top: 2px solid var(--g-line); }
.g-erow > b { width: 62px; flex: none; font: 400 16px/1 var(--f-display); font-weight: 400; color: var(--g-txt2); letter-spacing: 0.03em; }
.g-scroll { display: flex; gap: 6px; overflow: hidden; min-width: 0; flex: 1; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.g-card-sum { display: flex; flex-direction: column; gap: 9px; padding: 14px; }
.g-card-sum__h { display: flex; align-items: center; gap: 12px; }

/* ---------------------------------------------------------------- overlays: dim, sheet, rule card, pad, toast, launch, finger */
.g-dim { position: absolute; inset: 0; background: rgba(8, 6, 18, 0.66); animation: g-fade 0.2s ease-out both; }
.t2 .g-dim { background: rgba(29, 27, 36, 0.5); }
@keyframes g-fade { from { opacity: 0; } }
.g-sheet { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 790px; padding: 46px 22px 18px; border-radius: 26px; border: 3px solid var(--ink);
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 0 8px, transparent 8px 16px), linear-gradient(180deg, #3A3166, #2A2450); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 4px 7px 0 var(--ink), 0 30px 60px rgba(0, 0, 0, 0.5); animation: g-sheet-in 0.32s var(--spring) both; }
@keyframes g-sheet-in { from { opacity: 0; transform: translateY(30px) scale(0.95); } }
.is-ipad .g-sheet { width: 820px; }
.t2 .g-sheet { background: radial-gradient(rgba(29, 27, 36, 0.08) 1.2px, transparent 1.6px) 0 0 / 10px 10px, #FFFDF6; }
.g-plate { position: absolute; left: 50%; top: -24px; translate: -50% 0; height: 52px; padding: 0 22px; border-radius: 15px; border: 3px solid var(--ink); background: linear-gradient(180deg, #2E2A47, #1E1B2E); display: grid; place-items: center; box-shadow: 3px 5px 0 var(--ink); white-space: nowrap; }
.g-plate b { font: 400 30px/1 var(--f-display); font-weight: 400; color: #fff; -webkit-text-stroke: 4.5px var(--ink); paint-order: stroke fill; letter-spacing: 0.02em; }
.t2 .g-plate { background: #fff; } .t2 .g-plate b { color: var(--ink); -webkit-text-stroke: 0; }
.g-close { position: absolute; right: -14px; top: -16px; width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--ink) !important; background: #16131F !important; color: #fff; display: grid; place-items: center; box-shadow: 2px 4px 0 var(--ink); z-index: 3; }
.g-close .g-ui { font-size: 22px; }
.g-close:active, .g-close.is-press { transform: scale(0.92); }
.t2 .g-close { background: #fff !important; color: var(--ink); }
.g-sheet__sub { text-align: center; font: 800 14px/1 var(--f-body); letter-spacing: 0.08em; color: var(--g-txt2); margin: -6px 0 12px; }
.g-sheet__bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.g-stab { height: 38px; padding: 0 13px; border-radius: 11px; font: 400 17px/1 var(--f-display); letter-spacing: 0.03em; color: var(--g-txt); background: #1A1628 !important; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.4), 2px 3px 0 var(--ink); border: 2.5px solid var(--ink) !important; white-space: nowrap; }
.g-stab.on { background: linear-gradient(180deg, var(--yellow-hi), var(--yellow) 60%, var(--yellow-lo)) !important; color: var(--ink); }
.g-stab.on.ult { background: linear-gradient(180deg, #FFD27A, #FFB21F 60%, #F08A00) !important; }
.t2 .g-stab { background: #fff !important; }
.g-recent { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px 0 4px; border-radius: 11px; background: #1A1628 !important; border: 2.5px solid var(--ink) !important; font: 400 15px/1 var(--f-display); color: var(--g-txt); white-space: nowrap; box-shadow: 2px 3px 0 var(--ink); }
.g-recent i { width: 42px; height: 24px; border-radius: 6px; border: 2px solid var(--ink); background: center / cover; display: block; }
.g-recent .g-ui { font-size: 20px; color: #fff; }
.t2 .g-recent { background: #fff !important; } .t2 .g-recent .g-ui { color: var(--ink); }
.g-rand { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 0 9px; border-radius: 12px; border: 2.5px solid var(--ink) !important; background: #1A1628 !important; color: var(--g-txt); box-shadow: 2px 3px 0 var(--ink); }
.g-rand .g-ui { font-size: 22px; }
.g-rand span { display: flex; flex-direction: column; gap: 2px; font: 400 16px/1 var(--f-display); white-space: nowrap; text-align: left; }
.g-rand span small { font: 800 13px/1 var(--f-body); letter-spacing: 0.03em; opacity: 0.75; }
.g-rand.on { background: linear-gradient(180deg, var(--yellow-hi), var(--yellow) 60%, var(--yellow-lo)) !important; color: var(--ink); }
.g-rand.on::after { content: "ON"; position: absolute; top: -13px; right: 4px; padding: 2px 5px 1px; border-radius: 6px; border: 2px solid var(--ink); background: var(--yellow); font: 400 13px/1 var(--f-display); color: var(--ink); }
.t2 .g-rand { background: #fff !important; }
.g-dice { width: 44px; height: 42px; border-radius: 12px; border: 2.5px solid var(--ink) !important; background: linear-gradient(180deg, #B57BFF, #7A3AE0) !important; display: grid; place-items: center; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 2px 3px 0 var(--ink); }
.g-dice svg { width: 32px; height: 32px; }
.g-dice:active, .g-dice.is-press { transform: translateY(2px) rotate(-12deg); }
.g-agrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.g-atile { position: relative; display: flex; flex-direction: column; border-radius: 14px; border: 3px solid var(--ink) !important; background: #1A1628 !important; overflow: hidden; box-shadow: 2px 4px 0 var(--ink); transition: transform 0.14s var(--out), box-shadow 0.2s; }
.g-atile:hover { transform: translateY(-2px); }
.g-atile:active, .g-atile.is-press { transform: scale(0.96); box-shadow: 0 0 0 3px #fff, 0 0 20px rgba(255, 255, 255, 0.6); }
.g-atile__img { height: 74px; background: #0C0A14 center / cover no-repeat; position: relative; }
.g-atile__n { height: 34px; display: grid; place-items: center; font: 400 17px/1 var(--f-display); letter-spacing: 0.03em; color: #FFF6E0; background: linear-gradient(180deg, #2A2547, #221E38); white-space: nowrap; }
.t2 .g-atile, .t2 .g-atile__n { background: #fff !important; color: var(--ink); }
.g-atile.on { box-shadow: 0 0 0 3px var(--yellow), 2px 4px 0 3px var(--ink); }
.g-atile.on .g-atile__n { color: var(--yellow); }
.g-atile.on::after { content: "ON"; position: absolute; top: 4px; right: 4px; padding: 2px 5px 1px; border-radius: 6px; border: 2px solid var(--ink); background: var(--yellow); font: 400 13px/1 var(--f-display); color: var(--ink); }
.g-atile.lock .g-atile__img { filter: brightness(0.5) saturate(0.6); }
.g-atile.lock .g-atile__n { color: var(--g-txt3); }
.g-atile__lock { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; display: flex; align-items: center; justify-content: center; gap: 6px; background: rgba(8, 6, 18, 0.72); font: 800 13px/1 var(--f-body); letter-spacing: 0.05em; color: #fff; }
.g-atile__lock .g-ui { font-size: 13px; color: var(--yellow); }
.g-atile__sz { position: absolute; top: 5px; left: 5px; padding: 2px 5px 1px; border-radius: 6px; border: 2px solid var(--ink); font: 400 13px/1 var(--f-display); color: var(--ink); background: #FF9CC9; }
.g-atile__sz.m { background: #8DF5FF; }
.g-atile.hop { box-shadow: 0 0 0 4px #C9A6FF, 0 0 24px rgba(183, 156, 255, 0.9); }
.g-atile.shake { animation: g-shake 0.36s ease-in-out; }
@keyframes g-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.g-fly { position: absolute; z-index: 60; border-radius: 10px; border: 3px solid var(--ink); background: center / cover no-repeat; pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }

/* the first-time rule card */
.g-card { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 760px; padding: 44px 24px 20px; border-radius: 26px; border: 3px solid var(--ink);
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 0 8px, transparent 8px 16px), linear-gradient(180deg, #3A3166, #2A2450); box-shadow: 4px 7px 0 var(--ink), 0 30px 60px rgba(0, 0, 0, 0.5); animation: g-sheet-in 0.34s var(--spring) both; display: grid; grid-template-columns: 300px 1fr; gap: 22px; }
.g-card.nopic { grid-template-columns: 1fr; width: 600px; }
.t2 .g-card { background: #FFFDF6; }
.g-card__pic { position: relative; height: 210px; border-radius: 16px; border: 3px solid var(--ink); background: #0C0A14 center / cover no-repeat; box-shadow: 2px 4px 0 var(--ink); }
.g-card__pic .g-tag { position: absolute; top: 8px; right: 8px; }
.g-card h4 { margin: 0 0 4px; font: 400 17px/1 var(--f-display); font-weight: 400; color: var(--yellow); letter-spacing: 0.03em; }
.t2 .g-card h4 { color: #C47A00; }
.g-card p { margin: 0 0 12px; font: 800 14px/1.32 var(--f-body); letter-spacing: 0.03em; color: var(--g-txt); text-transform: uppercase; }
.g-card p.tip { font-style: italic; color: var(--g-txt2); }
.g-card__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.g-gotit { margin-left: auto; height: 50px; padding: 0 30px; border-radius: 14px; border: 3px solid var(--ink) !important; background: linear-gradient(180deg, var(--yellow-hi), var(--yellow) 60%, var(--yellow-lo)) !important; font: 400 26px/1 var(--f-display); color: var(--ink); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), 3px 4px 0 var(--ink); }
.g-gotit:active, .g-gotit.is-press { transform: translate(2px, 3px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), 1px 1px 0 var(--ink); }
.g-pchip { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 9px; background: rgba(10, 8, 20, 0.5); border: 2px solid rgba(0, 0, 0, 0.4); font: 400 15px/1 var(--f-display); color: var(--g-txt); white-space: nowrap; }
.t2 .g-pchip { background: #fff; border-color: var(--ink); }
/* a list sheet (rules list, the bots sheet, MORE) */
.g-lsheet { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 560px; padding: 44px 18px 16px; border-radius: 24px; border: 3px solid var(--ink); background: linear-gradient(180deg, #3A3166, #2A2450); box-shadow: 4px 7px 0 var(--ink), 0 30px 60px rgba(0, 0, 0, 0.5); animation: g-sheet-in 0.3s var(--spring) both; display: flex; flex-direction: column; gap: 8px; }
.t2 .g-lsheet { background: #FFFDF6; }
/* the code pad */
.g-pad { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 420px; padding: 44px 22px 18px; border-radius: 24px; border: 3px solid var(--ink); background: linear-gradient(180deg, #3A3166, #2A2450); box-shadow: 4px 7px 0 var(--ink), 0 30px 60px rgba(0, 0, 0, 0.5); animation: g-sheet-in 0.3s var(--spring) both; }
.t2 .g-pad { background: #FFFDF6; }
.g-pad__boxes { display: flex; justify-content: center; gap: 10px; margin-bottom: 12px; }
.g-pad__boxes i { width: 52px; height: 58px; border-radius: 13px; border: 3px solid var(--ink); background: #120F1D; display: grid; place-items: center; font: 400 32px/1 var(--f-display); font-style: normal; color: #fff; box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.4); }
.g-pad__boxes i.f { background: linear-gradient(180deg, var(--yellow-hi), var(--yellow)); color: var(--ink); animation: g-pick 0.3s var(--spring); }
.t2 .g-pad__boxes i { background: #F3ECDD; color: var(--ink); }
.g-pad__keys { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.g-pad__keys button { height: 40px; border-radius: 11px; border: 2.5px solid var(--ink) !important; background: linear-gradient(180deg, #4B4472, #2E2A4A) !important; font: 400 22px/1 var(--f-display); color: #fff; box-shadow: 1px 3px 0 var(--ink); text-align: center; }
.g-pad__keys button:active, .g-pad__keys button.is-press { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.t2 .g-pad__keys button { background: #fff !important; color: var(--ink); }
.g-pad__msg { margin-top: 10px; text-align: center; font: 800 13px/1 var(--f-body); letter-spacing: 0.08em; color: var(--g-txt3); min-height: 14px; }
/* toast */
.g-toast { position: absolute; left: 50%; top: 62px; translate: -50% 0; z-index: 70; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; border: 3px solid var(--ink); background: #16131F; color: #fff; font: 400 17px/1 var(--f-display); letter-spacing: 0.03em; white-space: nowrap; box-shadow: 3px 4px 0 var(--ink); animation: g-toast 2.2s var(--out) both; pointer-events: none; }
.g-toast .g-ui { font-size: 18px; color: var(--yellow); }
@keyframes g-toast { 0% { opacity: 0; transform: translateY(-14px) scale(0.9); } 10%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }
/* the launch (START pressed) */
.g-launch { position: absolute; inset: 0; z-index: 75; overflow: hidden; pointer-events: auto; }
.g-launch__wipe { position: absolute; left: -30%; top: -20%; width: 160%; height: 140%; background: repeating-linear-gradient(-60deg, #FFD23F 0 46px, #1D1B24 46px 58px); transform: translateX(-110%) skewX(-12deg); animation: g-wipe 0.5s cubic-bezier(0.7, 0, 0.3, 1) forwards; }
.g-launch__bg { position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 40%, #3F3470, #15112A); opacity: 0; animation: g-fade-in 0.01s 0.42s forwards; }
.g-launch__plate { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0; animation: g-pop 0.45s 0.5s var(--spring) forwards; }
.g-launch__plate b { font: 400 46px/1 var(--f-display); font-weight: 400; color: #fff; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); white-space: nowrap; }
.g-launch__plate span { font: 800 15px/1 var(--f-body); letter-spacing: 0.1em; color: rgba(255, 246, 224, 0.75); white-space: nowrap; }
.g-launch__dots { display: flex; gap: 8px; margin-top: 4px; }
.g-launch__dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); border: 2.5px solid var(--ink); animation: g-dotb 0.7s ease-in-out infinite; }
.g-launch__dots i:nth-child(2) { animation-delay: 0.12s; } .g-launch__dots i:nth-child(3) { animation-delay: 0.24s; }
@keyframes g-dotb { 50% { transform: translateY(-8px); } }
@keyframes g-wipe { 0% { transform: translateX(-110%) skewX(-12deg); } 60% { transform: translateX(0) skewX(-12deg); } 100% { transform: translateX(110%) skewX(-12deg); } }
@keyframes g-fade-in { to { opacity: 1; } }
.g-launch.is-done { animation: g-fade-out 0.3s ease-in forwards; }
@keyframes g-fade-out { to { opacity: 0; } }
/* the finger (journeys) */
.g-finger { position: absolute; z-index: 85; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72) 60%, rgba(255, 255, 255, 0.55)); border: 3px solid var(--ink); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(255, 255, 255, 0.18);
  transition: left 0.42s cubic-bezier(0.45, 0, 0.25, 1), top 0.42s cubic-bezier(0.45, 0, 0.25, 1), opacity 0.25s, transform 0.12s; }
.g-finger.on { opacity: 1; }
.g-finger.down { transform: scale(0.78); }
.g-ripple { position: absolute; z-index: 84; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 3px solid #fff; pointer-events: none; animation: g-ripple 0.5s ease-out forwards; }
@keyframes g-ripple { from { opacity: 0.95; transform: scale(0.5); } to { opacity: 0; transform: scale(3.4); } }
.g-tapn { position: absolute; z-index: 86; padding: 3px 7px 2px; border-radius: 8px; border: 2.5px solid var(--ink); background: var(--yellow); color: var(--ink); font: 400 16px/1 var(--f-display); pointer-events: none; white-space: nowrap; animation: g-tapn 0.9s var(--out) forwards; }
@keyframes g-tapn { 0% { opacity: 0; transform: translate(-50%, 0) scale(0.6); } 20% { opacity: 1; transform: translate(-50%, -18px) scale(1.05); } 80% { opacity: 1; transform: translate(-50%, -26px); } 100% { opacity: 0; transform: translate(-50%, -34px); } }

/* the TODAY player (real stills) */
.t-player { position: absolute; inset: 0; }
.t-player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.18s; }
.t-player .g-finger { width: 4.6%; height: auto; aspect-ratio: 1; margin: 0; translate: -50% -50%; border-width: 2px; }
.t-player .g-ripple { width: 2%; height: auto; aspect-ratio: 1; margin: 0; translate: -50% -50%; border-width: 2px; }
.t-swipe { position: absolute; z-index: 5; left: 0; top: 0; width: 3%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: rgba(255, 255, 255, 0.8); border: 2px solid var(--ink); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .g-step.is-in .g-pop, .g-step.is-out, .is-pick, .g-swap, .g-sheet, .g-card, .g-lsheet, .g-pad, .g-popover, .g-dot, .g-tag--found::before, .g-start::after { animation: none !important; }
}
.rm .g-step.is-in .g-pop, .rm .g-step.is-out, .rm .is-pick, .rm .g-swap, .rm .g-sheet, .rm .g-card, .rm .g-lsheet, .rm .g-pad, .rm .g-popover, .rm .g-dot, .rm .g-tag--found::before, .rm .g-start::after { animation: none !important; }

/* ---------------------------------------------------------------- tile styles (the question "what's on a tile?") */
.g-tile--v.ts-l { justify-content: flex-end; }
.g-tile--v.ts-l::after { content: ""; position: absolute; left: 16px; top: 18px; width: 54px; height: 10px; border-radius: 6px; background: var(--tc); border: 2.5px solid var(--ink); box-shadow: 1px 2px 0 var(--ink); }
.g-tile--v.ts-p { padding: 10px 10px 13px; justify-content: flex-start; }
.g-tile--v.ts-p .g-tile__t { padding: 0 6px; }
.g-tile.ts-l:not(.g-tile--v) { gap: 14px; }

/* ---------------------------------------------------------------- the GO screen */
.g-body--go { gap: 10px; }
.g-gohead { display: flex; align-items: center; gap: 13px; height: 48px; }
.g-gohead h2 { margin: 0; font: 400 28px/1 var(--f-display); color: #fff; -webkit-text-stroke: 4.5px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); white-space: nowrap; letter-spacing: 0.01em; }
.g-gohead span { display: block; margin-top: 5px; font: 800 13px/1 var(--f-body); letter-spacing: 0.08em; color: var(--g-txt3); white-space: nowrap; }
.t2 .g-gohead h2 { color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; }
.g-gohead--strip { position: relative; height: 62px; padding: 0 16px 0 9px; border-radius: 17px; border: 3px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); overflow: hidden;
  background: linear-gradient(90deg, rgba(22, 18, 42, 0.96) 0%, rgba(22, 18, 42, 0.86) 38%, rgba(22, 18, 42, 0.25) 72%, rgba(22, 18, 42, 0.05)), var(--pic) right 0 center / 58% auto no-repeat, #15121F; }
.t2 .g-gohead--strip h2 { color: #fff; -webkit-text-stroke: 4.5px var(--ink); text-shadow: 0 3px 0 var(--ink); }
.t2 .g-gohead--strip span { color: rgba(255, 246, 224, 0.75); }
.g-gorules { display: flex; align-items: flex-start; gap: 12px; padding: 7px 14px 8px; border-bottom: 2px solid var(--g-line); }
.g-gorules > .g-cell__k { padding-top: 14px; }
.g-gorules__r { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.g-gorules .g-rule { width: 96px; padding: 4px 2px 3px; gap: 4px; }
.g-gorules .g-rule span { min-height: 29px; }
.g-gofoot { display: flex; align-items: center; gap: 18px; }
.g-gofoot .g-sum { flex: 1; padding-left: 6px; }
.g-gofoot .g-start { height: 68px; flex: none; }
.g-grid1 > .g-cell + .g-cell { border-top: 2px solid var(--g-line); }
.g-dense .g-cell { min-height: 44px; padding: 4px 12px; }
.g-dense .g-gorules { padding: 4px 10px 2px; }
.g-go--big { flex-direction: row; align-items: stretch; gap: 14px; }
.g-bigart { position: relative; width: 268px; flex: none; border-radius: 20px; border: 3px solid var(--ink); background: #0C0A14 center / cover no-repeat; box-shadow: 3px 5px 0 var(--ink); overflow: hidden; }
.g-bigart::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(180deg, transparent, rgba(12, 10, 22, 0.94)); }
.g-bigart__t { position: absolute; z-index: 2; left: 14px; right: 10px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.g-bigart__t b { font: 400 30px/0.95 var(--f-display); font-weight: 400; color: #fff; -webkit-text-stroke: 4.5px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); }
.g-bigart__t small { font: 800 13px/1 var(--f-body); letter-spacing: 0.06em; color: rgba(255, 246, 224, 0.8); }
.g-go__r { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.g-go__r .g-cell { min-height: 46px; padding: 4px 14px; }
.g-go__r .g-gofoot .g-start { height: 62px; }
.is-ipad .g-gohead h2 { font-size: 32px; }
.is-ipad .g-body--go { gap: 16px; }
.is-ipad .g-cell { min-height: 60px; }
.is-ipad .g-gorules .g-rule { width: 104px; }

/* ---------------------------------------------------------------- C's panel */
.g-cpanel { display: flex; gap: 18px; padding: 14px 16px 14px 18px; margin-top: 18px; }
.g-cleft { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.g-cright { width: 318px; flex: none; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.g-cpops { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.g-cpops .g-popv { justify-content: space-between; }
.g-crow .g-orb .g-tag { translate: 14px 0; }
.is-ipad .g-cpanel { margin-top: 26px; padding: 20px; }

/* ---------------------------------------------------------------- tile identity: a colour wash, a colour lip, a faint watermark of the glyph */
.g-tile { box-shadow: var(--g-gloss), inset 0 -5px 0 color-mix(in srgb, var(--tc, #8C6BFF) 46%, transparent), 3px 5px 0 var(--ink); }
.g-tile:hover { box-shadow: var(--g-gloss), inset 0 -5px 0 color-mix(in srgb, var(--tc, #8C6BFF) 46%, transparent), 3px 7px 0 var(--ink); }
.g-tile:active, .g-tile.is-press { box-shadow: var(--g-gloss), inset 0 -3px 0 color-mix(in srgb, var(--tc, #8C6BFF) 46%, transparent), 1px 1px 0 var(--ink); }
.g-tile.is-on { box-shadow: var(--g-gloss), inset 0 -5px 0 color-mix(in srgb, var(--tc, #8C6BFF) 46%, transparent), 0 0 0 3px var(--yellow), 0 0 0 6px var(--ink), 3px 7px 0 3px var(--ink); }
.g-tile::before { background: radial-gradient(240px 150px at 16% -4%, color-mix(in srgb, var(--tc, #8C6BFF) 44%, transparent), transparent 72%); opacity: 1; }
.g-tile > .g-tile__clip { position: absolute; inset: 0; border-radius: 15px; overflow: hidden; pointer-events: none; z-index: 0; }
.g-tile__clip::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255, 255, 255, 0.09) 1.2px, transparent 1.7px) 0 0 / 8px 8px; -webkit-mask-image: linear-gradient(225deg, #000 0%, transparent 46%); mask-image: linear-gradient(225deg, #000 0%, transparent 46%); }
.g-tile__wm { position: absolute; right: -16px; bottom: -30px; width: 128px; height: 128px; opacity: 0.12; transform: rotate(-14deg); filter: grayscale(1) brightness(2.4); }
.g-tile__wm svg { width: 100%; height: 100%; }
.g-tile--v .g-tile__wm { width: 150px; height: 150px; right: -22px; bottom: -34px; }
.t2 .g-tile__wm { opacity: 0.07; filter: grayscale(1); }
.t2 .g-tile__clip::before { background: radial-gradient(rgba(29, 27, 36, 0.12) 1.2px, transparent 1.7px) 0 0 / 8px 8px; }
.t2 .g-tile { box-shadow: var(--g-gloss), inset 0 -5px 0 color-mix(in srgb, var(--tc, #8C6BFF) 30%, transparent), 3px 5px 0 var(--ink); }

/* D: names wrap instead of cutting */
.g-mtile b { white-space: normal; line-height: 1.02; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.g-mtile--word { height: 74px; }
.g-mtile--word small { white-space: normal; line-height: 1.15; }
/* E: rows that breathe */
.g-epanel .g-erow { min-height: 58px; }
.is-ipad .g-epanel .g-erow { min-height: 74px; }

/* GO: room under the top bar, compact rows */
.g-body--go { top: 60px; gap: 9px; }
.g-panel .g-cell { min-height: 48px; }
.g-gofoot .g-start { height: 64px; }
.g-lead { border-bottom: 2px solid var(--g-line); }
.g-lead .g-cell { min-height: 52px; }
.g-mtile--word .g-tag { right: -6px; top: -11px; }
.g-mtile--word b { padding-right: 4px; }

/* D: the column heads stand up (icon, name, line) so every name fits on one line */
.g-mtile--word { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; height: auto; min-height: 98px; padding: 8px 10px 9px; border-width: 3px !important; }
.g-mtile--word .g-mtile__top { display: flex; align-items: flex-start; width: 100%; justify-content: space-between; margin-bottom: 2px; }
.g-mtile--word .g-mtile__tags { display: flex; gap: 4px; }
.g-mtile--word .g-tag { position: static; }
.g-mtile--word b { font-size: 20px; -webkit-line-clamp: 1; white-space: nowrap; display: block; overflow: visible; }
.g-mtile--word small { margin-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.g-board .g-mtile:not(.g-mtile--word) { height: 42px; }
.is-ipad .g-mtile--word { min-height: 116px; }
.is-ipad .g-board .g-mtile:not(.g-mtile--word) { height: 50px; }

/* the strip and the big-art variants fit the screen */
.g-gohead--strip { height: 50px; }
.g-gohead--strip h2 { font-size: 24px; }
.g-go--big { top: 58px; }
.g-go--big .g-go__r { gap: 8px; }
.g-go--big .g-go__r .g-cell { min-height: 40px; padding: 2px 14px; }
.g-go--big .g-gorules { padding: 4px 12px 3px; }
.g-go--big .g-gorules .g-rule { width: 84px; }
.g-go--big .g-gofoot .g-start { height: 56px; }
.g-go--big .g-start b { font-size: 34px; }
.p54-dev--sm .p54-tag { top: -22px; font-size: 12px; padding: 4px 8px 3px; }
.p54-dev--sm { margin-top: 16px; }
.g-popv.is-flash { animation: g-flash 0.5s ease-out; }

/* T2: ink type never carries the T1 ink stroke */
.t2 .g-tile__n, .t2 .g-tile--v .g-tile__n, .t2 .g-title h2, .t2 .g-gohead:not(.g-gohead--strip) h2, .t2 .g-mtile--word b, .t2 .g-out { -webkit-text-stroke-width: 0 !important; text-shadow: none !important; color: var(--ink); }
.t2 .g-tile__l { color: rgba(29, 27, 36, 0.62); }
/* iPad: roomier GO */
.is-ipad .g-panel .g-cell { min-height: 62px; }
.is-ipad .g-gofoot .g-start { height: 82px; }
.is-ipad .g-gofoot .g-start b { font-size: 46px; }
.is-ipad .g-gorules { padding: 12px 14px; }
.g-gohead--strip { height: 48px; border-width: 2.5px; border-radius: 14px; box-shadow: 2px 3px 0 var(--ink); }
.g-gohead--strip h2 { font-size: 22px; }
.g-gohead--strip span { margin-top: 3px; }
/* GO fits inside the safe area with room to spare */
.g-body--go { gap: 7px; }
.g-gohead { height: 44px; }
.g-gorules { padding: 5px 14px 6px; }
.g-gorules .g-rule { gap: 3px; padding: 3px 2px 2px; }
.g-gorules .g-rule span { min-height: 28px; font-size: 13.5px; }
.g-panel .g-cell { min-height: 46px; }
.g-gofoot .g-start { height: 60px; }
.g-gofoot .g-start b { font-size: 36px; }
.g-set-row { height: 44px; }
.g-chip--n { min-width: 30px; padding: 0 8px; }
.g-scroll { overflow-x: auto; scrollbar-width: none; }
.g-scroll::-webkit-scrollbar { display: none; }
.is-ipad .g-ebody { flex-direction: column !important; align-items: stretch !important; }
.is-ipad .g-eside { width: auto !important; flex-direction: row !important; align-items: stretch; }
.is-ipad .g-eside > .g-card-sum { flex: 1; flex-direction: row; align-items: center; }
.is-ipad .g-eside > .g-start { width: 260px; }
.is-ipad .g-eside > div:last-child { flex-direction: column; justify-content: center !important; }
.g-arena.fixed .g-arena__roll { max-width: 170px; }
.g-tile--v.four .g-tile__n { font-size: 25px; -webkit-text-stroke-width: 4px; }
.is-ipad .g-epanel { align-self: stretch !important; flex: none !important; }
