/* The UI kit's colour / radius / shadow tokens ALONE (css/ui_kit.css :root block, 2026-11-02), for the new gacha
   screen (css/ui_gacha_refinement.css, ui_gacha_cinematic.css, ui_gacha_rare.css), which was written against them.
   Owner, 2026-11-08: "หน้ากาชาแบบใหม่" - the gacha look comes back, the rest of the kit (window dressing) does not:
   custom properties on :root change nothing by themselves. Generated by tasks/apply_npc_gacha_2026-11-08.py's payload
   from css/ui_kit.css lines 47-183 (+ --ui-window-touch-target). Load it BEFORE the three gacha sheets. */
:root {
  /* ---- the radius ladder ----------------------------------------------------
     Read off the clean skin's own numbers; nothing new is invented and there is
     nothing in between. Named by SIZE, not by component, because the six parts
     of this kit each arrived with their own component names for the same number
     (r-pane / r-tile / r-box / r-row were all 8 or 9) and a size name is the
     only one that cannot collide again.
       14  a tray round a whole list     .shortbar        style.css:5109
       10  a panel, a window, a card     .panel           style.css:5076, .qt :5139
        8  a sunk pane, a list row,      .mk-row          style.css:5004
            a tab's top corners,         .sb-row          style.css:5112
            a full-size button           .status .bar     style.css:2598
        7  an item square, small control .win-close       style.css:5090, .st-row :5136
        6  an in-row button, a corner tag .mk-btn         style.css:5020, .mini-map canvas :5127
        4  a key cap, a scrollbar thumb  .sb-key          style.css:5126, scrollbar :5097
      999  a chip, a pill, a count badge .chip            style.css:5103
     A row is 8, not the 9 one measurer proposed: 8 is what the one list row the
     clean skin actually dressed uses (.mk-row, style.css:5004), and matching the
     live row matters more than matching a title bar. */
  --ui-r-tray: 14px;
  --ui-r-panel: 10px;
  --ui-r-box: 8px;
  --ui-r-slot: 7px;
  --ui-r-ctl: 6px;
  --ui-r-tiny: 4px;
  --ui-r-pill: 999px;

  /* ---- edges ---------------------------------------------------------------
     --glass-edge (style.css:5072) is brass at .72 and belongs on a window. A
     pane INSIDE a window repeating that competes with the window's own edge, and
     the tree had already drifted to .35 / .4 / .45 / .5 / .55 by hand
     (style.css:5127 minimap .45, :5878 boss panel .5, :5997 .net-one .45,
     :6184 .hud-chip .5). One token ends the drift. */
  --ui-edge-soft: rgba(201, 146, 63, 0.38);
  /* A LIST ROW's edge is navy, not brass — that is the clean skin's own choice
     for the one row it dressed (.mk-row / .mk-row:hover, style.css:5004-5005),
     and a brass edge repeated down twenty rows reads as a gold grid. */
  --ui-row-edge: #2d3e68;      /* = var(--indigo) */
  --ui-row-edge-hi: #5b75b5;

  /* ---- raised vs sunk, the kit's whole depth vocabulary ---------------------
     --glass-shadow (style.css:5074) puts its inset highlight on TOP, which reads
     raised. --ui-sunk-shadow puts the shadow on top, which reads sunk. That pair
     is how the kit gets depth with no art at all. The fill is built on the one
     real inset already in the tree (style.css:5495, rgba(8,12,22,.55)), turned
     into a gradient so it belongs beside --glass / --glass-soft. */
  --ui-sunk: linear-gradient(180deg, rgba(8, 12, 22, 0.58), rgba(8, 12, 22, 0.34));
  --ui-sunk-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45), inset 0 -1px 0 rgba(255, 226, 138, 0.06);
  --ui-lip: inset 0 1px 0 rgba(255, 226, 138, 0.14);   /* the lip .chip wears, style.css:5104 */
  --ui-drop: 0 2px 0 rgba(10, 14, 26, 0.65);           /* the 2px press lip, after .lr-btn :2719 */

  /* picked / selected: the clean skin's own title-bar head (style.css:5085),
     reused so a chosen row and a window's head are plainly the same material */
  --ui-on-fill: linear-gradient(180deg, rgba(58, 83, 144, 0.95), rgba(36, 52, 94, 0.95));
  /* the two brass washes the clean skin already uses for hover and for selected,
     each written out twice by hand before this token (.set-tab:hover :5864 /
     .set-tab.on :5865, .mk-v2 tabs :5924-5925) */
  --ui-wash: rgba(255, 226, 138, 0.08);
  --ui-wash-on: rgba(255, 226, 138, 0.12);
  /* the sunk dish an icon sits in — .sb-slot's own, byte for byte (style.css:5114) */
  --ui-dish: radial-gradient(circle at 50% 35%, rgba(60, 80, 130, 0.55), rgba(8, 12, 24, 0.75));
  --ui-dish-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -3px 6px rgba(0, 0, 0, 0.35);
  /* the hairline between rows in a flush list — the value the tree already uses
     for exactly this (.lt-row, js/level_tips.js:104) */
  --ui-divider: rgba(255, 255, 255, 0.08);

  /* ---- the accent surfaces, all four already in the clean skin --------------
     gold = the one button on a row that COMMITS (style.css:5022 / :5025 / :5027)
     red  = the one that DESTROYS — .win-close's own gradient (style.css:5090-5091)
     green = sell / put up / claim (style.css:5028)
     No new hue enters the game. */
  --ui-gold: linear-gradient(#ffd66b, #e09a2c);
  --ui-gold-edge: #805028;
  --ui-gold-ink: #1b1406;        /* dark ink on a light plate takes no text-shadow */
  --ui-gold-drop: 0 2px 0 #6b3f1c;
  --ui-red: linear-gradient(#e0614f, #a32a20);
  --ui-red-edge: #5a1610;
  --ui-red-drop: 0 2px 0 #4a120d;
  --ui-green: linear-gradient(#56b862, #2f8a3c);
  --ui-green-edge: #16391b;
  --ui-green-drop: 0 2px 0 #123d17;

  /* ---- the states the tree has no vocabulary for at all --------------------- */
  /* "not enough yet, but the press still leads somewhere". An INSET box-shadow,
     not a border, so it costs no layout — the trick .shortbar.picking already
     uses (style.css:1884). It is on all the time, never hover-only, because a
     phone has no hover and that is exactly how a "cannot afford" state goes
     invisible on touch. */
  --ui-short-ring: inset 0 0 0 2px var(--brass);
  /* the reason line under a disabled control, kept at FULL opacity. Warm salmon
     so it is not --hp red, which means damage in this game. The only new colour
     in the kit, and it has no other job. */
  --ui-why: #ffb08a;
  --ui-done: rgba(70, 87, 122, 0.45);         /* a dead badge: --slate at 45% */
  --ui-done-ok: rgba(121, 185, 93, 0.22);     /* a finished one: --leaf at 22% */
  --ui-done-ok-edge: rgba(121, 185, 93, 0.6);
  --ui-done-ok-ink: #9fe08a;                  /* --leaf itself is too dark on that wash */
  --ui-ruby: #FF9AB0;                         /* rubies, beside --brass-hi for Bato */
  --ui-exp: #A5D97A;                          /* = .win-head b, style.css:594 */

  /* the modal dimmer: --ink (#101626, style.css:10) at 55%. Deliberately the
     lightest and bluest of the nine dimmers now in the tree — the other eight
     (.land-vista :2409, .net-kick :2419, .esc-menu :2435, .a2hs-howto :1945,
     .cshop :4654, .terms-gate :4620, .rename-box :5290, .vip-paylink :4954)
     are "look at this picture / read this notice" curtains and stay darker. */
  --ui-scrim: rgba(16, 22, 38, 0.55);

  /* ---- geometry ------------------------------------------------------------ */
  --ui-plate-h: 40px;        /* .win-plate's own height; see the .win-plate block */
  --ui-slot-size: 38px;      /* = .inv-cell today (style.css:1194), so the two line up */
  --ui-row-h: 40px;          /* a 30px icon tray + 5px above and below */
  --ui-gap-list: 5px;        /* between .mail-list's 6 and .mk-list's 4, so neither jumps */
  --ui-btn-h: 36px;          /* secondary — the layer meant to carry the game */
  --ui-btn-h-lg: 44px;       /* primary — rare on purpose */
  --ui-btn-h-sm: 28px;       /* small / icon / in-row */
  --ui-tab-h: 30px;          /* = what .mk-tabs button measures today, style.css:4975 */
  --ui-cnt-h: 16px;          /* = .mail-dot (style.css:4822) and .bp-badge (:5897) */
  /* The row's end slot reserves NOTHING by default: an empty end slot must
     collapse, not hold a gap, and :empty below does that. A window that wants
     its buttons to line up down the list sets --ui-end-w on its own list.
     --ui-stat-w is the dead badge's width, so a finished row's badge is as wide
     as the real button it stands in for. BOTH NUMBERS ARE A RESERVE, NOT A
     MEASUREMENT: 96px was derived from a .cr-btn padding the tree does not
     actually have. Measure one two-word Thai verb in a browser and fix it here. */
  --ui-end-w: 0px;
  --ui-stat-w: 96px;

  /* ---- motion -------------------------------------------------------------- */
  /* Three of the six parts of this kit proposed .14s / .12s and two proposed
     other numbers; .12s is also the press the tree already uses (.auto-dock,
     style.css:6022) and the transition the clean skin's market cards use (:6326). */
  --ui-dur-hover: 0.14s;
  --ui-dur-press: 0.12s;
  --ui-bar-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ui-bar-dur: 0.22s;       /* a hair under the 250ms tick the bar writers run at */
  --ui-stagger: 28ms;        /* one row's share; js caps the index at 12, so 336ms total */
}
