/* look 9 · interaction states, loaded last.
   One rule for every control: hover is a gentle brighten of the same glass (a touch more white fill, a brighter top
   edge), never darker; active is a soft press (a step back from hover); focus-visible is an ice ring; disabled is dimmed
   and ignores hover. This file only overrides the older hover rules that went dark on glass (opaque --bg1/2/3 fills,
   the blue-tint primary hover/press from look 9 part 1) — the resting looks are untouched. */

html:root[data-look="9"] {
  --hv-fill: rgba(255,255,255,.06);
  --hv-edge: inset 0 1px 0 rgba(255,255,255,.1);
  --hv-ring: 0 0 0 2px rgba(223,233,245,.6), 0 0 18px -4px rgba(201,220,242,.55);
  --hv-t: background .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
  --pri-rest: linear-gradient(180deg, rgba(255,255,255,.96), rgba(223,233,245,.86) 55%, rgba(201,220,242,.8));
}

/* ---------- smooth: every control eases its fill, edge and ink (zero specificity, so a control's own transition wins) ---------- */
:where(html[data-look="9"]) :where(button, .btn, .dep, .newr, .rl-new, .wl-btn, .balchip, [role=button], [role=tab], .chip, .tile, .hl-mode, .hl-prev,
  .nl, .nl-s, .rl-row, .wl-row, .pk-row, .wya a, .ctabs button, .trk-b, .te-li, .ic-b, .wv-nav button, .wv-add, .wv-gchip, .wm-mark, .tpv-soc a,
  .fee-to-r, .pp-row, .wx-rr, .src-row, .src-pick, .hh-pen, .wv-ch, .wv-mkt, .hw, .hw-edit, .imp-mk, .pv-h, .pv-w, .pv-all, .rs-ft, .bun-row,
  .cln-row, .hold, .lcard, .tpl, .lc-opt, .ql-c, .tt-dir, .presets button, .seg button, .mode-sw button, .tabs button, .tf button, .pc button,
  .inp, .search, .picker, .addr, .hf-addr, input, select, textarea, tbody tr, tbody td) {
  transition: var(--hv-t);
}

/* ---------- primary (Deposit, Next, Launch, New Runner): silver glass, hover lifts to white, press settles back ---------- */
/* the big step button ("Next: Wallets / Fund / Launch") had look 9 part 1's blue-tint hover (28–32% accent over
   transparent) still winning on specificity: on the glass that read as a near-black slab. Same silver as the rest. */
html:root[data-look="9"] :is(.btn.pri, .dep, .rl-new):not(.buyb) { transition: background .2s ease, box-shadow .2s ease, color .2s ease, transform .12s ease !important; }
html:root[data-look="9"] .btn.pri.start-btn:not(.buyb):hover:not(:disabled),
html:root[data-look="9"] :is(.btn.pri, .dep, .rl-new):not(.buyb):hover:not(:disabled) {
  color: #0b0e12 !important; background: var(--pri-rest) !important;   /* same gradient as rest (gradients cannot ease); the lift is a white wash in the shadow stack, which does */
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(169,191,216,.6), 0 10px 30px -8px rgba(223,233,245,.55), 0 0 0 1px rgba(255,255,255,.28), inset 0 0 0 999px rgba(255,255,255,.16) !important; }
html:root[data-look="9"] .btn.pri.start-btn:not(.buyb):active:not(:disabled),
html:root[data-look="9"] :is(.btn.pri, .dep, .rl-new):not(.buyb):active:not(:disabled) {
  color: #10141a !important; background: var(--pri-rest) !important; transform: translateY(1px);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(169,191,216,.5), 0 4px 14px -8px rgba(223,233,245,.5), 0 0 0 1px rgba(255,255,255,.22), inset 0 0 0 999px rgba(255,255,255,.07) !important; }

/* ---------- Buy / Sell and danger: the same tinted glass, a step brighter on hover, a half step on press ---------- */
html:root[data-look="9"] :is(.btn.pri.buyb, .btn.dn):active:not(:disabled) { transform: translateY(1px);
  background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.025) 48%, transparent 52%), color-mix(in srgb, var(--tc) 28%, rgba(14,18,24,.4)) !important; }

/* ---------- secondary + ghost: hover keeps the fill and eases a white wash + brighter top edge in; press is half of it ---------- */
html:root[data-look="9"] :is(.btn:not(.pri):not(.ghost):not(.dn), .newr, .wl-btn) { transition: background .2s ease, box-shadow .2s ease, color .2s ease, --e1 .2s ease, --e2 .2s ease, --e3 .2s ease, transform .12s ease !important; }
html:root[data-look="9"] :is(.btn:not(.pri):not(.ghost):not(.dn), .newr, .wl-btn):hover:not(:disabled) {
  background: var(--fill-top), rgba(255,255,255,.05) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 999px rgba(255,255,255,.045) !important; }
html:root[data-look="9"] :is(.btn:not(.pri):not(.ghost):not(.dn), .newr, .wl-btn):active:not(:disabled) {
  background: var(--fill-top), rgba(255,255,255,.05) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 999px rgba(255,255,255,.022) !important; transform: translateY(1px); }
html:root[data-look="9"] .btn.ghost:active:not(:disabled) { background: rgba(255,255,255,.04) !important; transform: translateY(1px); }

/* ---------- old hovers that filled with the opaque page greys (--bg1/2/3) — darker than the glass they sit on ---------- */
html:root[data-look="9"] :is(.nl:not(.on):not(.quiet), .nl-s:not(.on), .rl-row:not(.on), .wl-row, .pk-row, .wya a, .ctabs button:not(.on), .trk-b, .te-li, .ic-b,
  .wv-nav button:not(.on), .wv-add, .wv-gchip, .wm-mark, .tpv-soc a, .pp-row, .wx-rr, .src-pick, .hh-pen, .wv-chs .wv-ch:not(.on), .imp-mk,
  .pv-h, .pv-w, .pv-all, .rs-ft, .hold, .hw-edit, .wv-btns .btn:not(.pri):not(:disabled), .fee-to-r:not(.fitv .fee-to-r)):hover {
  background: var(--hv-fill) !important; box-shadow: var(--hv-edge); }
html:root[data-look="9"] .wc .fold-row:hover { background: rgba(255,255,255,.05) !important; }
html:root[data-look="9"] :is(.imp-tbl, .mkp-tbl, .wv-tbl, .tbl, .ro-tbl) tbody tr:hover > td { background: rgba(255,255,255,.04) !important; }
html:root[data-look="9"] .ro-tbl tbody tr:hover .idc .wm-mark { background: transparent !important; box-shadow: none !important; }
html:root[data-look="9"] .c-chart-in .c-draw:hover { background: color-mix(in srgb, var(--c-trade) 22%, rgba(255,255,255,.08)) !important; }
html:root[data-look="9"] .pp-b.pri:hover { background: color-mix(in srgb, var(--c-trade) 32%, rgba(255,255,255,.08)) !important; filter: none; }
/* the X connect button is a white slab: hover keeps it white, no jump to pure black ink */
html:root[data-look="9"] .xc-btn:hover { background: #fff; color: #0b0b0b; }

/* ---------- cards that used to jump up 1–2px on hover: brighten in place instead ---------- */
html:root[data-look="9"] :is(.lcards .lcard, .lc-opt, .tpl, .cln-row):hover { transform: none; }
html:root[data-look="9"] :is(.lcards .lcard, .tpl, .cln-row):hover { box-shadow: var(--hv-edge), inset 0 0 0 1px rgba(255,255,255,.08); background-color: rgba(255,255,255,.03); }
html:root[data-look="9"] :is(.tpl-emos, .tpl-cols) button:hover { transform: none; filter: brightness(1.12); }

/* ---------- active: a subtle press on the light rows and chips (no darker than rest) ---------- */
html:root[data-look="9"] :is(.nl:not(.on), .rl-row:not(.on), .wl-row, .pk-row, .ic-b, .chip, .wv-gchip, .src-pick, .pp-row, .wx-rr):active { background: rgba(255,255,255,.045) !important; }

/* ---------- focus: one clean ice ring for keyboard users ---------- */
html:root[data-look="9"] :is(a, button, [role=button], [role=tab], [tabindex]:not([tabindex="-1"]), summary, select, .hw, .src-pick, .wm-mark):focus-visible {
  outline: none !important; box-shadow: var(--hv-ring) !important; }
html:root[data-look="9"] :where(input[type="checkbox"], input[type="radio"]):focus-visible { outline: 2px solid rgba(223,233,245,.6) !important; outline-offset: 2px; }

/* ---------- disabled: dimmed, and hover / press change nothing ---------- */
html:root[data-look="9"] :is(button, .btn, .dep, [role=button], input, select, textarea):is(:disabled, [aria-disabled="true"]) { opacity: .55; cursor: not-allowed; }
html:root[data-look="9"] :is(button, .btn, .dep, [role=button]):is(:disabled, [aria-disabled="true"]):is(:hover, :active) { filter: none !important; transform: none !important; }
html:root[data-look="9"] .btn.pri:not(.buyb):is(:disabled, [disabled]):is(:hover, :active) { background: rgba(255,255,255,.06) !important; color: #7d8796 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.08) !important; }
html:root[data-look="9"] .btn:not(.pri):not(.ghost):not(.dn):is(:disabled, [aria-disabled="true"]):is(:hover, :active) { background: var(--fill-top), rgba(255,255,255,.05) !important; }
html:root[data-look="9"] .btn.ghost:is(:disabled, [aria-disabled="true"]):is(:hover, :active) { background: transparent !important; }
html:root[data-look="9"] .btn.soon-b { opacity: .55; }

/* ---------- selected options keep their brighter frost on hover (the generic tile hover used to drop the picked
   "next step" card back to the plain fill) ---------- */
html:root[data-look="9"] :is(.hl-mode.on, .tile.on:not(.static), .presets button.on, .check.next, .tt-dir.on):hover {
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03) 60%), rgba(223,233,245,.075) !important; box-shadow: var(--glow-on) !important; }
