/* ==========================================================================
   art-tokens.css  -  Drone Flow design tokens + reusable UI utilities
   Spec: /ART-STYLE.md   Gallery: /output/art-guide.html
   NOT linked from index.html yet. Migrate selector by selector (see audit list).
   Fonts are NOT imported here: load Fredoka (400-700) + Lilita One from Google Fonts
   in the host page (see art-guide.html <head>).
   Units: px at a 360 px-wide stage. 1 cqw in index.html = 3.6 px at 360 px.
   ========================================================================== */

:root {
  color-scheme: light;

  /* ---- Brand: sky blue ------------------------------------------------- */
  --sky-50:  #eef8ff;
  --sky-100: #d6edff;
  --sky-200: #aedcff;
  --sky-300: #7cc4f7;
  --sky-400: #46a6ee;
  --sky-500: #2189de;   /* brand */
  --sky-600: #1a6dc2;   /* white text passes AA (5.2:1) */
  --sky-700: #14559c;
  --sky-800: #0f3f78;
  --sky-900: #0b2a56;
  --ink:     #17305a;   /* body text on light surfaces (13:1 on white) */
  --ink-soft:#4a6188;   /* secondary text on light (5.9:1 on --surface) */
  --ink-deep:#0b1d3a;   /* page background in dark theme */

  /* ---- Surfaces (light default; dark overrides below) ------------------- */
  --bg-page:      var(--sky-100);
  --surface:      #f4faff;   /* dialogs, cards */
  --surface-2:    #e3f1fd;   /* nested rows, inset wells */
  --surface-3:    #cde4f8;   /* pressed / track */
  --surface-line: #a9cdee;   /* 2px card outline */
  --text:         var(--ink);
  --text-soft:    var(--ink-soft);
  --text-on-dark: #ffffff;
  --outline:      #16243f;   /* thick outline for icons and number glyphs */

  /* ---- Semantic colours (face colour is the AA-safe one for white text) -- */
  --green-hi:#2fb653; --green:#17843a; --green-lo:#0f5f29; --green-lip:#0b4a20; --green-text:#157a2f;
  --blue-hi: #2f86de; --blue: #1a6dc2; --blue-lo: #134f92; --blue-lip: #0e3c72;
  --red-hi:  #e8505b; --red:  #cc2f3b; --red-lo:  #9e1f2b; --red-lip:  #7c1520; --red-text:#c62832;
  --orange-hi:#ec7a2a;--orange:#c4550a;--orange-lo:#963f05;--orange-lip:#6f2e03;
  --gold-hi: #ffe27a; --gold: #ffc938; --gold-lo: #f0a30f; --gold-lip: #b87400; --gold-ink:#3a2500;
  --purple-hi:#9a6be8;--purple:#7b4bd6;--purple-lo:#5a31ac;--purple-lip:#432385;
  --grey-hi: #dbe3ec; --grey: #c5ced8; --grey-lo: #aeb9c6; --grey-lip: #8e9aa9; --grey-ink:#3f4d63;
  --success: var(--green);  --warning: var(--gold);  --danger: var(--red);  --info: var(--sky-600);  --premium: var(--purple);

  /* ---- Gameplay-only neutrals ------------------------------------------- */
  --cell-hidden:     #66758c;  /* "?" cell face, white "?" = 4.7:1 */
  --cell-hidden-top: #7f8ea5;
  --cell-hidden-lip: #46546a;
  --cell-empty:      #e7eef6;
  --stand-well:      #dbe8f5;
  --stand-well-lip:  #b4c9de;

  /* ---- Radius scale ----------------------------------------------------- */
  --r-xs: 6px;    /* tiny badges, hint chips, board cell */
  --r-sm: 10px;   /* cells, small tiles, stand */
  --r-md: 14px;   /* buttons, chips, rows, gun boxes */
  --r-lg: 20px;   /* cards */
  --r-xl: 28px;   /* dialogs, sheets */
  --r-pill: 999px;

  /* ---- Spacing (4 px grid) ---------------------------------------------- */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px;
  --gutter: 16px;          /* screen side gutter at 360 px */
  --tap: 44px;             /* minimum touch target, hard rule */

  /* ---- Typography ------------------------------------------------------- */
  --font-ui:      'Fredoka', 'Baloo 2', 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
  --font-display: 'Lilita One', 'Fredoka', 'Arial Rounded MT Bold', 'Arial Black', sans-serif;
  --fs-display: 44px;  /* Victory!, Level Failed          Lilita 400 / 1.0 */
  --fs-h1:      28px;  /* dialog title                     Lilita 400 / 1.1 */
  --fs-h2:      22px;  /* section header                   Lilita 400 / 1.15 */
  --fs-h3:      18px;  /* card title, button label (lg)    Fredoka 600 / 1.2 */
  --fs-body:    16px;  /* body                             Fredoka 500 / 1.4 */
  --fs-small:   14px;  /* captions, secondary labels       Fredoka 500 / 1.35 */
  --fs-micro:   12px;  /* badges, nav labels, minimum      Fredoka 600 / 1.2 */
  --fs-num-xl:  40px;  /* gun-box ammo number              Lilita / 1 */
  --fs-num-l:   24px;  /* chip numbers, level number       Lilita / 1 */
  --fs-num-m:   18px;  /* stand numbers, counts            Lilita / 1 */

  /* ---- Shadows / bevels --------------------------------------------------
     Recipe (bottom lip + inner top light + soft drop):
       0 Lpx 0 <lip>            hard lip, the "3D thickness"
       inset 0 2px 0 <rim>      top-light bevel
       inset 0 -3px 0 <shade>   inner bottom shade
       0 (L+6)px 10px <drop>    soft ground shadow                              */
  --drop:        rgba(11, 42, 86, .28);
  --drop-soft:   rgba(11, 42, 86, .16);
  --rim:         rgba(255, 255, 255, .55);
  --rim-strong:  rgba(255, 255, 255, .8);
  --shade:       rgba(0, 0, 0, .18);
  --lip-h:       5px;            /* standard lip height of 44-56 px controls */
  --lip-h-sm:    3px;            /* chips, small badges */
  --lip-h-lg:    7px;            /* hero / play button */
  --sh-card:     0 3px 0 var(--surface-line), 0 10px 18px var(--drop-soft);
  --sh-dialog:   0 6px 0 var(--sky-700), 0 22px 44px rgba(7, 24, 54, .45);
  --sh-inset:    inset 0 3px 6px rgba(11, 42, 86, .16), inset 0 -1px 0 var(--rim);
  --sh-focus:    0 0 0 3px #fff, 0 0 0 6px var(--sky-500);
  --scrim:       rgba(8, 22, 48, .62);

  /* ---- Gradients ---------------------------------------------------------- */
  --g-primary:   linear-gradient(180deg, var(--green-hi) 0%, var(--green) 46%, var(--green-lo) 100%);
  --g-secondary: linear-gradient(180deg, var(--blue-hi) 0%, var(--blue) 46%, var(--blue-lo) 100%);
  --g-danger:    linear-gradient(180deg, var(--red-hi) 0%, var(--red) 46%, var(--red-lo) 100%);
  --g-orange:    linear-gradient(180deg, var(--orange-hi) 0%, var(--orange) 46%, var(--orange-lo) 100%);
  --g-gold:      linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 50%, var(--gold-lo) 100%);
  --g-premium:   linear-gradient(180deg, var(--purple-hi) 0%, var(--purple) 46%, var(--purple-lo) 100%);
  --g-disabled:  linear-gradient(180deg, var(--grey-hi) 0%, var(--grey) 50%, var(--grey-lo) 100%);
  --g-card:      linear-gradient(180deg, #ffffff 0%, var(--surface) 100%);
  --g-dialog-title: linear-gradient(180deg, var(--sky-400) 0%, var(--sky-600) 100%);
  --g-sky:       linear-gradient(180deg, #7cc4f7 0%, #aedcff 55%, #d6edff 100%);
  --g-bar-fill:  linear-gradient(180deg, #6ee287 0%, #2fb653 55%, #1f9a40 100%);
  --g-bar-fill-gold: linear-gradient(180deg, #ffe88f 0%, #ffc938 55%, #f0a30f 100%);
  --g-bar-fill-blue: linear-gradient(180deg, #7cc4f7 0%, #2189de 55%, #1a6dc2 100%);
  --g-gloss:     linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 100%);
  --checker:     repeating-conic-gradient(from 45deg, #b9e0fb 0% 25%, #aedcff 0% 50%);

  /* ---- Motion ------------------------------------------------------------- */
  --dur-press:   90ms;    /* press down / release */
  --dur-fast:    140ms;   /* hover, colour, toggle */
  --dur-base:    220ms;   /* dialog fade, tab switch, bar tween */
  --dur-pop:     320ms;   /* dialog pop-in, badge pop */
  --dur-slow:    520ms;   /* chest open, reward fly */
  --dur-cele:    900ms;   /* victory star / coin burst */
  --ease-out:    cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);   /* overshoot, pop-ins */
  --ease-press:  cubic-bezier(.3, 0, .2, 1);

  /* ---- Z layers ------------------------------------------------------------ */
  --z-board: 1; --z-hud: 20; --z-booster: 24; --z-nav: 30; --z-overlay: 50; --z-toast: 80;

  /* ---- Gameplay colour ids (39 ids, 0-38; ids unchanged) -------------------
     --cN       flat face (lit top of board cube; gun-box top)
     --cN-top   top highlight (22% toward white)
     --cN-lip   bottom lip / front band (38% toward deep violet-navy: hue-shifted shade)
     --cN-ink   AA-safe number colour on the face (white or deep ink)
     Tuned for consistency: c8 #aedde5 -> #b6f0f7 (distinct from c9/c15), c34 #653684 -> #7c46a3 (visual compare). */
  --c0: #fedb53; --c0-top: #fee379; --c0-lip: #a78e4c; --c0-ink: #16243f;
  --c1: #ffb823; --c1-top: #ffc853; --c1-lip: #a8782e; --c1-ink: #16243f;
  --c2: #ff8025; --c2-top: #ff9c55; --c2-lip: #a8552f; --c2-ink: #16243f;
  --c3: #e75862; --c3-top: #ec7d85; --c3-lip: #993d55; --c3-ink: #000000;
  --c4: #b72f41; --c4-top: #c75d6b; --c4-lip: #7b2341; --c4-ink: #ffffff;
  --c5: #b0e85b; --c5-top: #c1ed7f; --c5-lip: #779651; --c5-ink: #16243f;
  --c6: #50be5e; --c6-top: #77cc81; --c6-lip: #3b7c53; --c6-ink: #16243f;
  --c7: #1e7f54; --c7-top: #509b7a; --c7-lip: #1c554c; --c7-ink: #ffffff;
  --c8: #b6f0f7; --c8-top: #c6f3f9; --c8-lip: #7b9bb1; --c8-ink: #16243f;
  --c9: #4ec5dd; --c9-top: #75d2e4; --c9-lip: #3a80a1; --c9-ink: #16243f;
  --c10: #ffbdd7; --c10-top: #ffcce0; --c10-lip: #a87b9e; --c10-ink: #16243f;
  --c11: #f56ec6; --c11-top: #f78ed3; --c11-lip: #a24a93; --c11-ink: #16243f;
  --c12: #c23dff; --c12-top: #cf68ff; --c12-lip: #822cb6; --c12-ink: #000000;
  --c13: #5954b4; --c13-top: #7e7ac5; --c13-lip: #413a88; --c13-ink: #ffffff;
  --c14: #a55946; --c14-top: #b97e6f; --c14-lip: #703d44; --c14-ink: #ffffff;
  --c15: #d7dfe0; --c15-top: #e0e6e7; --c15-lip: #8f90a3; --c15-ink: #16243f;
  --c16: #5a4a65; --c16-top: #7e7287; --c16-lip: #423457; --c16-ink: #ffffff;
  --c17: #f1c5a7; --c17-top: #f4d2ba; --c17-lip: #9f8080; --c17-ink: #16243f;
  --c18: #45a3f8; --c18-top: #6eb7fa; --c18-lip: #356bb2; --c18-ink: #16243f;
  --c19: #d17e4a; --c19-top: #db9a72; --c19-lip: #8b5446; --c19-ink: #16243f;
  --c20: #db3557; --c20-top: #e3617c; --c20-lip: #92274e; --c20-ink: #ffffff;
  --c21: #f7e294; --c21-top: #f9e8ac; --c21-lip: #a39274; --c21-ink: #16243f;
  --c22: #aba8dd; --c22-top: #bdbbe4; --c22-lip: #746ea1; --c22-ink: #16243f;
  --c23: #d1655e; --c23-top: #db8781; --c23-lip: #8b4553; --c23-ink: #000000;
  --c24: #9c595d; --c24-top: #b27e81; --c24-lip: #6b3d52; --c24-ink: #ffffff;
  --c25: #db966a; --c25-top: #e3ad8b; --c25-lip: #92635a; --c25-ink: #16243f;
  --c26: #9bc58b; --c26-top: #b1d2a5; --c26-lip: #6a806f; --c26-ink: #16243f;
  --c27: #78ad68; --c27-top: #96bf89; --c27-lip: #547159; --c27-ink: #16243f;
  --c28: #e0ecb5; --c28-top: #e7f0c5; --c28-lip: #959889; --c28-ink: #16243f;
  --c29: #db4d9c; --c29-top: #e374b2; --c29-lip: #923679; --c29-ink: #000000;
  --c30: #ffa7c9; --c30-top: #ffbad5; --c30-lip: #a86e95; --c30-ink: #16243f;
  --c31: #dc72ff; --c31-top: #e491ff; --c31-lip: #924db6; --c31-ink: #16243f;
  --c32: #c483ff; --c32-top: #d19eff; --c32-lip: #8357b6; --c32-ink: #16243f;
  --c33: #992e9a; --c33-top: #af5cb0; --c33-lip: #692378; --c33-ink: #ffffff;
  --c34: #7c46a3; --c34-top: #996fb7; --c34-lip: #57317d; --c34-ink: #ffffff;
  --c35: #ff9295; --c35-top: #ffaaac; --c35-lip: #a86175; --c35-ink: #16243f;
  --c36: #91e0cb; --c36-top: #a9e7d6; --c36-lip: #649196; --c36-ink: #16243f;
  --c37: #3ac3bd; --c37-top: #65d0cc; --c37-lip: #2e7f8e; --c37-ink: #16243f;
  --c38: #009ba4; --c38-top: #38b1b8; --c38-lip: #0a667e; --c38-ink: #16243f;
}

/* ---- Dark theme: add .ui-theme-dark (or data-theme="dark") on any container --- */
.ui-theme-dark, [data-theme="dark"] {
  color-scheme: dark;
  --bg-page:      var(--ink-deep);
  --surface:      #16335f;
  --surface-2:    #1d4175;
  --surface-3:    #102a4f;
  --surface-line: #2c5a9a;
  --text:         #eaf4ff;
  --text-soft:    #9fb6d6;
  --drop:         rgba(0, 0, 0, .5);
  --drop-soft:    rgba(0, 0, 0, .35);
  --g-card:       linear-gradient(180deg, #1d4175 0%, #16335f 100%);
  --sh-card:      0 3px 0 #0c2145, 0 10px 18px rgba(0,0,0,.35);
  --sh-inset:     inset 0 3px 6px rgba(0,0,0,.4), inset 0 -1px 0 rgba(255,255,255,.08);
  --cell-empty:   #1d4175;
  --stand-well:   #123059;
  --stand-well-lip:#0b2147;
  --sh-focus:     0 0 0 3px var(--ink-deep), 0 0 0 6px #9fd4ff;
  --green-text:   #6ee287; --red-text: #ff8d95;
  background: var(--bg-page);
  color: var(--text);
}

/* ==========================================================================
   Base + typography utilities
   ========================================================================== */
.ui-root, .ui-root * { box-sizing: border-box; }
.ui-root { font-family: var(--font-ui); font-size: var(--fs-body); line-height: 1.4; color: var(--text); font-weight: 500; -webkit-tap-highlight-color: transparent; }
.ui-display { font: 400 var(--fs-display)/1 var(--font-display); letter-spacing: .01em; }
.ui-h1 { font: 400 var(--fs-h1)/1.1 var(--font-display); }
.ui-h2 { font: 400 var(--fs-h2)/1.15 var(--font-display); }
.ui-h3 { font: 600 var(--fs-h3)/1.2 var(--font-ui); }
.ui-body { font: 500 var(--fs-body)/1.4 var(--font-ui); }
.ui-small { font: 500 var(--fs-small)/1.35 var(--font-ui); color: var(--text-soft); }
.ui-micro { font: 600 var(--fs-micro)/1.2 var(--font-ui); letter-spacing: .02em; }
.ui-num { font-family: var(--font-display); font-weight: 400; font-variant-numeric: tabular-nums; line-height: 1; }
/* Outlined number (on coloured faces). Outline = 4 hard text-shadows, no blur. */
.ui-outlined { color: #fff; text-shadow:
  -2px 0 0 var(--outline), 2px 0 0 var(--outline), 0 -2px 0 var(--outline), 0 2px 0 var(--outline),
  -1.5px -1.5px 0 var(--outline), 1.5px -1.5px 0 var(--outline), -1.5px 1.5px 0 var(--outline), 1.5px 1.5px 0 var(--outline); }
.ui-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================================
   Page backdrops
   ========================================================================== */
.ui-bg-sky { background: var(--g-sky); }
.ui-bg-checker { background-color: #aedcff; background-image: var(--checker); background-size: 120px 120px; }

/* ==========================================================================
   Buttons: pill with darker bottom lip.   .ui-btn + one variant.
   Height >= 44 (md 48, lg 56). Label = Lilita, white on AA-safe face.
   Press: translateY(lip) and lip shadow collapses to 0.
   ========================================================================== */
.ui-btn {
  --b-hi: var(--green-hi); --b-mid: var(--green); --b-lo: var(--green-lo); --b-lip: var(--green-lip);
  --b-ink: #fff; --b-lh: var(--lip-h);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; min-width: var(--tap); padding: 0 22px 0; margin-bottom: var(--b-lh);
  border: 0; border-radius: var(--r-pill);
  font: 400 var(--fs-h3)/1 var(--font-display); letter-spacing: .02em; color: var(--b-ink);
  text-shadow: 0 2px 0 rgba(0,0,0,.28);
  background: linear-gradient(180deg, var(--b-hi) 0%, var(--b-mid) 46%, var(--b-lo) 100%);
  box-shadow:
    inset 0 2px 0 var(--rim),                      /* top light */
    inset 0 -3px 0 var(--shade),                   /* inner bottom shade */
    0 var(--b-lh) 0 var(--b-lip),                  /* the lip */
    0 calc(var(--b-lh) + 6px) 10px var(--drop);    /* ground shadow */
  cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  transition: transform var(--dur-press) var(--ease-press), box-shadow var(--dur-press) var(--ease-press), filter var(--dur-fast);
}
.ui-btn:hover { filter: brightness(1.05); }
.ui-btn:active, .ui-btn.is-pressed {
  transform: translateY(var(--b-lh)); filter: brightness(.97);
  box-shadow: inset 0 2px 0 var(--rim), inset 0 -2px 0 var(--shade), 0 0 0 var(--b-lip), 0 2px 4px var(--drop);
}
.ui-btn:focus-visible { outline: 0; box-shadow: var(--sh-focus), 0 var(--b-lh) 0 var(--b-lip); }
.ui-btn:disabled, .ui-btn[aria-disabled="true"], .ui-btn.is-disabled {
  --b-hi: var(--grey-hi); --b-mid: var(--grey); --b-lo: var(--grey-lo); --b-lip: var(--grey-lip); --b-ink: var(--grey-ink);
  text-shadow: none; cursor: not-allowed; filter: none; transform: none;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.7), 0 var(--b-lh) 0 var(--b-lip);
}
.ui-btn--primary { /* default = green */ }
.ui-btn--secondary { --b-hi: var(--blue-hi); --b-mid: var(--blue); --b-lo: var(--blue-lo); --b-lip: var(--blue-lip); }
.ui-btn--danger    { --b-hi: var(--red-hi);  --b-mid: var(--red);  --b-lo: var(--red-lo);  --b-lip: var(--red-lip); }
.ui-btn--orange    { --b-hi: var(--orange-hi); --b-mid: var(--orange); --b-lo: var(--orange-lo); --b-lip: var(--orange-lip); }
.ui-btn--premium   { --b-hi: var(--purple-hi); --b-mid: var(--purple); --b-lo: var(--purple-lo); --b-lip: var(--purple-lip); }
.ui-btn--gold      { --b-hi: var(--gold-hi); --b-mid: var(--gold); --b-lo: var(--gold-lo); --b-lip: var(--gold-lip); --b-ink: var(--gold-ink); text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.ui-btn--ghost {
  --b-ink: var(--sky-700); min-height: var(--tap); margin-bottom: 0;
  background: transparent; box-shadow: inset 0 0 0 2.5px var(--sky-400); text-shadow: none;
  font: 600 var(--fs-body)/1 var(--font-ui);
}
.ui-btn--ghost:hover { background: rgba(33,137,222,.1); filter: none; }
.ui-btn--ghost:active, .ui-btn--ghost.is-pressed { transform: none; background: rgba(33,137,222,.2); box-shadow: inset 0 0 0 2.5px var(--sky-500); }
.ui-btn--ghost:disabled, .ui-btn--ghost.is-disabled { background: transparent; box-shadow: inset 0 0 0 2.5px var(--grey); --b-ink: var(--text-soft); }
.ui-theme-dark .ui-btn--ghost, [data-theme="dark"] .ui-btn--ghost { --b-ink: #cfe7ff; box-shadow: inset 0 0 0 2.5px #5aa8ee; }
.ui-btn--sm { min-height: var(--tap); padding: 0 16px; font-size: var(--fs-body); --b-lh: var(--lip-h-sm); }
.ui-btn--lg { min-height: 56px; padding: 0 32px; font-size: var(--fs-h2); --b-lh: var(--lip-h-lg); }   /* Play / Next */
.ui-btn--block { display: flex; width: 100%; }
.ui-btn small { display: block; font: 500 var(--fs-micro)/1.1 var(--font-ui); opacity: .92; text-shadow: none; }
.ui-btn--stack { flex-direction: column; gap: 2px; padding-top: 6px; padding-bottom: 6px; }

/* Icon button: square, 44 min. Variants reuse .ui-btn--*. Close = .ui-btn--danger.ui-iconbtn--close */
.ui-iconbtn { min-width: 48px; width: 48px; min-height: 48px; padding: 0; border-radius: var(--r-md); }
.ui-iconbtn--round { border-radius: 50%; }
.ui-iconbtn--sm { width: var(--tap); min-width: var(--tap); min-height: var(--tap); }
.ui-iconbtn svg, .ui-btn svg { width: 24px; height: 24px; flex: none; filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }

/* ==========================================================================
   Chips (coin / heart / generic):  pill with inset well, icon at left, + at right
   ========================================================================== */
.ui-chip {
  display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap); padding: 0 4px 0 8px;
  border-radius: var(--r-pill); font: 400 var(--fs-num-m)/1 var(--font-display); color: #fff;
  background: linear-gradient(180deg, var(--sky-700), var(--sky-800)); text-shadow: 0 2px 0 rgba(0,0,0,.3);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.28), inset 0 -2px 0 rgba(0,0,0,.2), 0 var(--lip-h-sm) 0 var(--sky-900), 0 8px 10px var(--drop);
  margin-bottom: var(--lip-h-sm); border: 0; cursor: default;
}
.ui-chip > .ui-chip__icon { width: 28px; height: 28px; flex: none; }
.ui-chip > .ui-chip__val { min-width: 2ch; padding-right: 2px; white-space: nowrap; }
.ui-chip > .ui-chip__plus { width: var(--tap); height: var(--tap); margin: 0 -6px 0 0; padding: 0; border-radius: 50%; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.ui-chip > .ui-chip__plus::before { content: "+"; display: block; width: 28px; height: 28px; line-height: 28px; border-radius: 50%; text-align: center; font: 400 22px/28px var(--font-display); background: var(--g-primary); box-shadow: inset 0 2px 0 var(--rim), 0 2px 0 var(--green-lip); }
.ui-chip > .ui-chip__plus:active::before { transform: translateY(2px); box-shadow: inset 0 2px 0 var(--rim); }
.ui-chip--coin  { }
.ui-chip--heart { }
.ui-chip--soft { background: var(--surface); color: var(--text); text-shadow: none; box-shadow: var(--sh-card); }
.ui-chip--info svg { width: 16px; height: 16px; flex: none; }
.ui-chip--info { max-width: 100%; white-space: normal; min-height: 28px; padding: 0 10px; font: 600 var(--fs-micro)/1 var(--font-ui); text-shadow: none; box-shadow: 0 2px 0 var(--sky-900); }   /* hint chip: non-interactive, below 44 allowed */

/* ==========================================================================
   Progress bar: track = inset well, fill = glossy gradient, label centred
   ========================================================================== */
.ui-bar { --pct: 50%; --fill: var(--g-bar-fill); position: relative; height: 22px; border-radius: var(--r-pill); background: var(--surface-3); box-shadow: var(--sh-inset); overflow: hidden; border: 2px solid var(--surface-line); }
.ui-bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--pct); min-width: 22px; border-radius: inherit; background: var(--fill); box-shadow: inset 0 2px 0 var(--rim), inset 0 -2px 0 rgba(0,0,0,.18); transition: width var(--dur-base) var(--ease-out); }
.ui-bar[data-pct="0"]::before { width: 0; min-width: 0; }
.ui-bar > span { position: relative; display: block; text-align: center; font: 600 var(--fs-micro)/18px var(--font-ui); color: var(--ink); text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.ui-bar--lg { height: 28px; } .ui-bar--lg > span { font-size: var(--fs-small); line-height: 24px; }
.ui-bar--gold { --fill: var(--g-bar-fill-gold); } .ui-bar--blue { --fill: var(--g-bar-fill-blue); }
.ui-theme-dark .ui-bar > span, [data-theme="dark"] .ui-bar > span { color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.55), 0 0 3px rgba(0,0,0,.5); }
.ui-bar--dark { background: #0f2f5c; border-color: #1a4a8a; } .ui-bar--dark > span { color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.4); }

/* ==========================================================================
   Cards
   ========================================================================== */
.ui-card { background: var(--g-card); color: var(--text); border: 2px solid var(--surface-line); border-radius: var(--r-lg); padding: var(--sp-4); box-shadow: var(--sh-card); margin-bottom: 3px; }
.ui-card--inset { background: var(--surface-2); box-shadow: var(--sh-inset); border-color: transparent; border-radius: var(--r-md); padding: var(--sp-3); }
.ui-card--row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border-radius: var(--r-md); }
.ui-card--selected { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,201,56,.55), var(--sh-card); background: linear-gradient(180deg, #fffbe8, #fff2c4); color: var(--ink); }
.ui-card--premium { border-color: var(--purple-hi); background: linear-gradient(180deg, #f6f0ff, #e8dcff); color: var(--ink); }
.ui-card--locked { opacity: .72; filter: saturate(.6); }
.ui-card--event { background: linear-gradient(180deg, #5a3aa8, #3d2380); border-color: #8e6be0; color: #fff; box-shadow: 0 3px 0 #2a1760, 0 10px 18px var(--drop-soft); }

/* ==========================================================================
   Dialog: scrim + sheet, title ribbon overlapping top, red close puck
   ========================================================================== */
.ui-scrim { position: fixed; inset: 0; background: var(--scrim); display: grid; place-items: center; padding: var(--gutter); z-index: var(--z-overlay); animation: ui-fade var(--dur-base) var(--ease-out); }
.ui-dialog { position: relative; width: min(100%, 420px); background: var(--g-card); color: var(--text); border-radius: var(--r-xl); border: 3px solid #fff; padding: 56px var(--sp-4) var(--sp-5); box-shadow: var(--sh-dialog); animation: ui-pop var(--dur-pop) var(--ease-bounce); }
.ui-dialog__title { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); min-width: 60%; max-width: calc(100% - 64px); padding: 10px 20px 12px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: var(--r-lg); background: var(--g-dialog-title); color: #fff; font: 400 var(--fs-h1)/1.1 var(--font-display); text-shadow: 0 2px 0 rgba(0,0,0,.3); box-shadow: inset 0 2px 0 var(--rim), 0 4px 0 var(--sky-800), 0 10px 14px var(--drop); }
.ui-dialog__close { position: absolute; right: -8px; top: -14px; width: var(--tap); height: var(--tap); min-height: var(--tap); padding: 0; border-radius: 50%; border: 3px solid #fff; --b-lh: var(--lip-h-sm); margin-bottom: 0; }
.ui-dialog__body { display: grid; gap: var(--sp-3); }
.ui-dialog__actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; margin-top: var(--sp-4); }
.ui-dialog__actions > .ui-btn { flex: 1 1 120px; }
.ui-dialog--result { text-align: center; }   /* Victory / Failed: see component spec "Result dialog" */
@keyframes ui-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ui-pop { 0% { transform: scale(.82) translateY(12px); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ==========================================================================
   Tabs (segmented, inside dialogs) and bottom nav (5 items)
   ========================================================================== */
.ui-tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--surface-3); box-shadow: var(--sh-inset); }
.ui-tab { flex: 1; min-height: var(--tap); min-width: var(--tap); padding: 0 12px; border-radius: var(--r-pill); font: 600 var(--fs-small)/1 var(--font-ui); color: var(--text-soft); background: transparent; border: 0; cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-press); }
.ui-tab[aria-selected="true"], .ui-tab.is-active { color: #fff; background: var(--g-secondary); box-shadow: inset 0 2px 0 var(--rim), 0 3px 0 var(--blue-lip); transform: translateY(-1px); }
.ui-tab:active { transform: translateY(1px); }
.ui-tab:disabled { opacity: .5; cursor: not-allowed; }
.ui-tab:focus-visible { outline: 0; box-shadow: var(--sh-focus); }

.ui-nav { display: flex; align-items: flex-end; justify-content: space-around; height: 64px; padding: 6px 4px 4px; background: linear-gradient(180deg, var(--sky-700), var(--sky-800)); border-top: 3px solid var(--sky-400); box-shadow: 0 -4px 12px var(--drop-soft); }
.ui-nav__item { position: relative; flex: 1; max-width: 72px; min-height: var(--tap); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; padding: 4px 0 2px; border: 0; background: none; color: #cfe7ff; font: 600 var(--fs-micro)/1 var(--font-ui); cursor: pointer; transition: transform var(--dur-fast) var(--ease-bounce); }
.ui-nav__item svg { width: 28px; height: 28px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.3)); }
.ui-nav__item[aria-current="page"] { color: #fff; transform: translateY(-8px); }
.ui-nav__item[aria-current="page"]::before { content: ""; position: absolute; inset: -4px 2px 0; z-index: -1; border-radius: var(--r-md); background: linear-gradient(180deg, var(--sky-400), var(--sky-600)); box-shadow: inset 0 2px 0 var(--rim), 0 4px 0 var(--sky-900); }
.ui-nav__item:active { transform: translateY(2px); }
.ui-nav__item:focus-visible { outline: 0; box-shadow: var(--sh-focus); border-radius: var(--r-md); }

/* ==========================================================================
   Badges
   ========================================================================== */
.ui-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); font: 400 var(--fs-micro)/20px var(--font-display); color: #fff; background: var(--g-danger); border: 2px solid #fff; box-shadow: 0 2px 0 var(--red-lip); text-shadow: 0 1px 0 rgba(0,0,0,.3); }
.ui-badge--count { background: var(--g-primary); box-shadow: 0 2px 0 var(--green-lip); }
.ui-badge--gold { background: var(--g-gold); color: var(--gold-ink); text-shadow: none; box-shadow: 0 2px 0 var(--gold-lip); }
.ui-badge--new { background: var(--g-premium); box-shadow: 0 2px 0 var(--purple-lip); }
.ui-badge--dot { min-width: 14px; width: 14px; height: 14px; padding: 0; }
.ui-badge--abs { position: absolute; right: -6px; top: -6px; }

/* ==========================================================================
   Booster circle (65 px @ 360 = 18 % of stage width; min 56)
   states: .is-ready (white-cream face + green count) | .is-empty (grey + orange "+") | .is-locked (grey + padlock)
   ========================================================================== */
.ui-booster { position: relative; width: 65px; aspect-ratio: 1; padding: 0; border: 3px solid #fff; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: radial-gradient(circle at 50% 28%, #ffffff 0%, #e3f1fd 70%, #bcd9f2 100%); box-shadow: inset 0 2px 0 var(--rim-strong), inset 0 -4px 0 rgba(26,109,194,.18), 0 var(--lip-h) 0 #7aa9d6, 0 12px 12px var(--drop); transition: transform var(--dur-press) var(--ease-press), box-shadow var(--dur-press); }
.ui-booster > svg { width: 38px; height: 38px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.22)); }
.ui-booster:active, .ui-booster.is-pressed { transform: translateY(var(--lip-h)); box-shadow: inset 0 2px 0 var(--rim-strong), 0 0 0 #7aa9d6, 0 3px 6px var(--drop); }
.ui-booster .ui-badge { position: absolute; right: -4px; bottom: -4px; min-width: 24px; height: 24px; line-height: 24px; font-size: 14px; }
.ui-booster.is-empty { background: radial-gradient(circle at 50% 28%, #f3f6f9, #cfd8e2); }
.ui-booster.is-empty > svg { opacity: .55; filter: grayscale(.6); }
.ui-booster.is-empty .ui-badge { background: var(--g-orange); box-shadow: 0 2px 0 var(--orange-lip); }
.ui-booster.is-locked, .ui-booster:disabled { cursor: not-allowed; background: radial-gradient(circle at 50% 28%, #e6ebf1, #b9c4d1); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 var(--lip-h) 0 #8e9aa9, 0 10px 10px var(--drop-soft); }
.ui-booster.is-locked > svg, .ui-booster:disabled > svg { opacity: .5; filter: grayscale(1); }
.ui-booster:focus-visible { outline: 0; box-shadow: var(--sh-focus); }
.ui-booster.is-active { animation: ui-pulse .9s ease-in-out infinite; }
@keyframes ui-pulse { 50% { transform: scale(1.08); } }

/* ==========================================================================
   Reward chest + reward icon tile
   ========================================================================== */
.ui-chest { position: relative; width: 72px; height: 64px; display: inline-block; filter: drop-shadow(0 6px 0 rgba(11,42,86,.2)); }
.ui-chest svg { width: 100%; height: 100%; display: block; }
.ui-chest.is-ready { animation: ui-wiggle 1.4s var(--ease-in-out) infinite; }
.ui-chest.is-open { animation: ui-pop var(--dur-slow) var(--ease-bounce); }
.ui-chest.is-locked { filter: grayscale(.85) brightness(.9) drop-shadow(0 6px 0 rgba(11,42,86,.2)); }
@keyframes ui-wiggle { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-6deg); } 84% { transform: rotate(6deg); } 92% { transform: rotate(-3deg); } }
.ui-reward { position: relative; width: 64px; min-height: 72px; padding: 6px 4px; border-radius: var(--r-md); display: grid; justify-items: center; align-content: center; gap: 2px; background: var(--g-card); border: 2px solid var(--surface-line); box-shadow: var(--sh-card); font: 400 var(--fs-num-m)/1 var(--font-display); color: var(--text); }
.ui-reward > svg { width: 34px; height: 34px; }
.ui-reward.is-claimed { opacity: .6; }
.ui-reward.is-claimed::after { content: "\2713"; position: absolute; right: -6px; top: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--g-primary); color: #fff; font: 400 14px/22px var(--font-display); text-align: center; border: 2px solid #fff; }

/* ==========================================================================
   Gameplay: stand (queue slot), gun box, linked pair, lock + key, hidden cells
   Colour a box with .ui-c0 ... .ui-c38 (sets --cc/--cc-top/--cc-lip/--cc-ink).
   ========================================================================== */
.ui-stand { position: relative; width: 54px; height: 48px; border-radius: var(--r-sm); background: linear-gradient(180deg, #eaf3fb, var(--stand-well)); box-shadow: inset 0 3px 5px rgba(11,42,86,.18), inset 0 -2px 0 rgba(255,255,255,.7), 0 3px 0 var(--stand-well-lip); display: grid; place-items: center; }
.ui-stand.is-locked { background: linear-gradient(180deg, #d5dde7, #b9c4d1); }
.ui-stand.is-extra  { border: 2px dashed var(--sky-400); background: rgba(33,137,222,.08); }
.ui-stand > .ui-gunbox { width: 100%; height: 100%; margin: 0; }

.ui-gunbox {
  --cc: var(--c0); --cc-top: var(--c0-top); --cc-lip: var(--c0-lip); --cc-ink: var(--c0-ink);
  position: relative; display: grid; place-items: center; width: 56px; height: 52px; margin-bottom: 5px; border-radius: var(--r-md);
  font: 400 var(--fs-num-l)/1 var(--font-display); color: var(--cc-ink);
  background: linear-gradient(180deg, var(--cc-top) 0 12%, var(--cc) 12% 70%, var(--cc-lip) 70% 100%);   /* lit top / face / lower lip band */
  box-shadow: inset 0 2px 0 var(--rim-strong), inset 0 -2px 0 rgba(0,0,0,.12), 0 4px 0 var(--cc-lip), 0 9px 8px var(--drop);
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}
.ui-gunbox.is-pressable { cursor: pointer; transition: transform var(--dur-press) var(--ease-press), box-shadow var(--dur-press); }
.ui-gunbox.is-pressable:active { transform: translateY(4px); box-shadow: inset 0 2px 0 var(--rim-strong), 0 0 0 var(--cc-lip), 0 2px 4px var(--drop); }
.ui-gunbox.is-dim { filter: saturate(.55) brightness(.92); }                       /* not selectable (behind another row) */
.ui-gunbox--hidden { --cc: var(--cell-hidden); --cc-top: var(--cell-hidden-top); --cc-lip: var(--cell-hidden-lip); --cc-ink: #fff; }   /* hidden gun "?" */
.ui-gunbox--hidden::after { content: "?"; }
.ui-gunbox--hidden > * { display: none; }

/* Linked pair: two boxes joined by a connector bar with a chain link; both take the pair colour on the bar */
.ui-linkpair { --pair: var(--sky-500); display: inline-flex; align-items: center; position: relative; }
.ui-linkpair > .ui-gunbox:first-child { margin-right: -2px; }
.ui-linkpair > .ui-gunbox:last-child { margin-left: -2px; }
.ui-linkpair::before { content: ""; position: absolute; left: 20%; right: 20%; top: 50%; height: 12px; margin-top: -8px; border-radius: 6px; background: var(--pair); border: 2px solid #fff; box-shadow: 0 2px 0 rgba(11,42,86,.35); z-index: 0; }
.ui-linkpair > .ui-gunbox { z-index: 1; }
.ui-linkpair__badge { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -14px 0 0 -11px; z-index: 2; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 0 rgba(11,42,86,.35); }
.ui-linkpair__badge svg { width: 14px; height: 14px; }

/* Lock tile (yellow padlock, count of keys needed shown only if > 1) and key */
.ui-lock { position: relative; display: grid; place-items: center; width: 56px; height: 52px; margin-bottom: 5px; border-radius: var(--r-md); background: linear-gradient(180deg, var(--gold-hi) 0 12%, var(--gold) 12% 70%, var(--gold-lo) 70%); box-shadow: inset 0 2px 0 var(--rim-strong), 0 4px 0 var(--gold-lip), 0 9px 8px var(--drop); }
.ui-lock > svg { width: 30px; height: 30px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }
.ui-lock.is-open > svg { animation: ui-wiggle 1s var(--ease-in-out) 1; }
.ui-key { display: inline-flex; align-items: center; gap: 4px; }
.ui-key svg { width: 22px; height: 22px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }

/* Board cells.  .ui-cell = painted cube (set colour class), --hidden = unknown "?" cell, --empty = cleared */
.ui-cell { --cc: var(--c0); --cc-top: var(--c0-top); --cc-lip: var(--c0-lip); display: inline-block; width: 22px; height: 19px; border-radius: 4px; background: linear-gradient(180deg, var(--cc-top) 0 22%, var(--cc) 22% 72%, var(--cc-lip) 72%); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.ui-cell--hidden { background: linear-gradient(180deg, var(--cell-hidden-top) 0 22%, var(--cell-hidden) 22% 72%, var(--cell-hidden-lip) 72%); color: #fff; font: 400 14px/19px var(--font-display); text-align: center; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.ui-cell--hidden::before { content: "?"; }
.ui-cell--empty { background: var(--cell-empty); box-shadow: inset 0 1px 2px rgba(11,42,86,.18); }

/* Colour-id helpers: .ui-c0 ... .ui-c38 (use on .ui-gunbox / .ui-cell / .ui-lock) */
.ui-c0 { --cc: var(--c0); --cc-top: var(--c0-top); --cc-lip: var(--c0-lip); --cc-ink: var(--c0-ink); }
.ui-c1 { --cc: var(--c1); --cc-top: var(--c1-top); --cc-lip: var(--c1-lip); --cc-ink: var(--c1-ink); }
.ui-c2 { --cc: var(--c2); --cc-top: var(--c2-top); --cc-lip: var(--c2-lip); --cc-ink: var(--c2-ink); }
.ui-c3 { --cc: var(--c3); --cc-top: var(--c3-top); --cc-lip: var(--c3-lip); --cc-ink: var(--c3-ink); }
.ui-c4 { --cc: var(--c4); --cc-top: var(--c4-top); --cc-lip: var(--c4-lip); --cc-ink: var(--c4-ink); }
.ui-c5 { --cc: var(--c5); --cc-top: var(--c5-top); --cc-lip: var(--c5-lip); --cc-ink: var(--c5-ink); }
.ui-c6 { --cc: var(--c6); --cc-top: var(--c6-top); --cc-lip: var(--c6-lip); --cc-ink: var(--c6-ink); }
.ui-c7 { --cc: var(--c7); --cc-top: var(--c7-top); --cc-lip: var(--c7-lip); --cc-ink: var(--c7-ink); }
.ui-c8 { --cc: var(--c8); --cc-top: var(--c8-top); --cc-lip: var(--c8-lip); --cc-ink: var(--c8-ink); }
.ui-c9 { --cc: var(--c9); --cc-top: var(--c9-top); --cc-lip: var(--c9-lip); --cc-ink: var(--c9-ink); }
.ui-c10 { --cc: var(--c10); --cc-top: var(--c10-top); --cc-lip: var(--c10-lip); --cc-ink: var(--c10-ink); }
.ui-c11 { --cc: var(--c11); --cc-top: var(--c11-top); --cc-lip: var(--c11-lip); --cc-ink: var(--c11-ink); }
.ui-c12 { --cc: var(--c12); --cc-top: var(--c12-top); --cc-lip: var(--c12-lip); --cc-ink: var(--c12-ink); }
.ui-c13 { --cc: var(--c13); --cc-top: var(--c13-top); --cc-lip: var(--c13-lip); --cc-ink: var(--c13-ink); }
.ui-c14 { --cc: var(--c14); --cc-top: var(--c14-top); --cc-lip: var(--c14-lip); --cc-ink: var(--c14-ink); }
.ui-c15 { --cc: var(--c15); --cc-top: var(--c15-top); --cc-lip: var(--c15-lip); --cc-ink: var(--c15-ink); }
.ui-c16 { --cc: var(--c16); --cc-top: var(--c16-top); --cc-lip: var(--c16-lip); --cc-ink: var(--c16-ink); }
.ui-c17 { --cc: var(--c17); --cc-top: var(--c17-top); --cc-lip: var(--c17-lip); --cc-ink: var(--c17-ink); }
.ui-c18 { --cc: var(--c18); --cc-top: var(--c18-top); --cc-lip: var(--c18-lip); --cc-ink: var(--c18-ink); }
.ui-c19 { --cc: var(--c19); --cc-top: var(--c19-top); --cc-lip: var(--c19-lip); --cc-ink: var(--c19-ink); }
.ui-c20 { --cc: var(--c20); --cc-top: var(--c20-top); --cc-lip: var(--c20-lip); --cc-ink: var(--c20-ink); }
.ui-c21 { --cc: var(--c21); --cc-top: var(--c21-top); --cc-lip: var(--c21-lip); --cc-ink: var(--c21-ink); }
.ui-c22 { --cc: var(--c22); --cc-top: var(--c22-top); --cc-lip: var(--c22-lip); --cc-ink: var(--c22-ink); }
.ui-c23 { --cc: var(--c23); --cc-top: var(--c23-top); --cc-lip: var(--c23-lip); --cc-ink: var(--c23-ink); }
.ui-c24 { --cc: var(--c24); --cc-top: var(--c24-top); --cc-lip: var(--c24-lip); --cc-ink: var(--c24-ink); }
.ui-c25 { --cc: var(--c25); --cc-top: var(--c25-top); --cc-lip: var(--c25-lip); --cc-ink: var(--c25-ink); }
.ui-c26 { --cc: var(--c26); --cc-top: var(--c26-top); --cc-lip: var(--c26-lip); --cc-ink: var(--c26-ink); }
.ui-c27 { --cc: var(--c27); --cc-top: var(--c27-top); --cc-lip: var(--c27-lip); --cc-ink: var(--c27-ink); }
.ui-c28 { --cc: var(--c28); --cc-top: var(--c28-top); --cc-lip: var(--c28-lip); --cc-ink: var(--c28-ink); }
.ui-c29 { --cc: var(--c29); --cc-top: var(--c29-top); --cc-lip: var(--c29-lip); --cc-ink: var(--c29-ink); }
.ui-c30 { --cc: var(--c30); --cc-top: var(--c30-top); --cc-lip: var(--c30-lip); --cc-ink: var(--c30-ink); }
.ui-c31 { --cc: var(--c31); --cc-top: var(--c31-top); --cc-lip: var(--c31-lip); --cc-ink: var(--c31-ink); }
.ui-c32 { --cc: var(--c32); --cc-top: var(--c32-top); --cc-lip: var(--c32-lip); --cc-ink: var(--c32-ink); }
.ui-c33 { --cc: var(--c33); --cc-top: var(--c33-top); --cc-lip: var(--c33-lip); --cc-ink: var(--c33-ink); }
.ui-c34 { --cc: var(--c34); --cc-top: var(--c34-top); --cc-lip: var(--c34-lip); --cc-ink: var(--c34-ink); }
.ui-c35 { --cc: var(--c35); --cc-top: var(--c35-top); --cc-lip: var(--c35-lip); --cc-ink: var(--c35-ink); }
.ui-c36 { --cc: var(--c36); --cc-top: var(--c36-top); --cc-lip: var(--c36-lip); --cc-ink: var(--c36-ink); }
.ui-c37 { --cc: var(--c37); --cc-top: var(--c37-top); --cc-lip: var(--c37-lip); --cc-ink: var(--c37-ink); }
.ui-c38 { --cc: var(--c38); --cc-top: var(--c38-top); --cc-lip: var(--c38-lip); --cc-ink: var(--c38-ink); }

/* ==========================================================================
   Helpers
   ========================================================================== */
.ui-row { display: flex; align-items: center; gap: var(--sp-3); }
.ui-stack { display: grid; gap: var(--sp-3); }
.ui-reduced-motion *, .ui-reduced-motion *::before, .ui-reduced-motion *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
@media (prefers-reduced-motion: reduce) {
  .ui-chest.is-ready, .ui-booster.is-active { animation: none; }
  .ui-dialog, .ui-scrim { animation-duration: .01ms; }
}
@media (hover: none) { .ui-btn:hover { filter: none; } }
