/* Anki Markets: a clean, flat market interface (Oct 2026 redesign). Light by default, dark via the system
   or [data-theme]. Tokens first, then the base, the shell, components and pages. Every rule that moves
   uses --ease / --dur so motion feels like one system; reduced motion turns it all off at the bottom. */

:root {
  --bg: #f6f7f9;
  --bg-soft: #eff1f4;
  --bg-hover: #f3f4f7;
  --panel: #ffffff;
  --line: #e4e7ec;
  --line-2: #d3d7de;
  --text: #111418;
  --text-2: #5f6774;
  --text-3: #858a91;
  --blue: #2e5cff;
  --blue-hover: #1f4cf0;
  --blue-soft: #e9eeff;
  --yes: #0a9a4a;
  --yes-ink: #0b7a3b;
  --yes-soft: #e1f4e8;
  --yes-soft-2: #cdebd9;
  --no: #e5343a;
  --no-ink: #c81e25;
  --no-soft: #fdeaea;
  --no-soft-2: #f9d7d8;
  --gold: #f5a524;
  --shadow: 0 1px 2px rgba(16, 20, 28, .04);
  --shadow-hover: 0 1px 2px rgba(16, 20, 28, .04), 0 10px 28px -14px rgba(16, 20, 28, .18);
  --shadow-pop: 0 0 0 1px rgba(16, 20, 28, .05), 0 18px 44px -14px rgba(16, 20, 28, .22), 0 4px 12px -6px rgba(16, 20, 28, .08);
  --skeleton: #eceef2;
  --skeleton-hi: #f6f7f9;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-card: 12px;
  --r-btn: 8px;
  --r-lg: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --dur: .18s;
  --dur-slow: .3s;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1114;
    --bg-soft: #1e2127;
    --bg-hover: #1b1e24;
    --panel: #16181d;
    --line: #262a31;
    --line-2: #343941;
    --text: #eceef1;
    --text-2: #9aa1ab;
    --text-3: #6e757e;
    --blue: #4c74ff;
    --blue-hover: #6487ff;
    --blue-soft: rgba(76, 116, 255, .16);
    --yes: #12a84a;
    --yes-ink: #3fd07a;
    --yes-soft: rgba(18, 168, 74, .16);
    --yes-soft-2: rgba(18, 168, 74, .26);
    --no: #e8363b;
    --no-ink: #ff6a6e;
    --no-soft: rgba(232, 54, 59, .15);
    --no-soft-2: rgba(232, 54, 59, .25);
    --shadow: 0 1px 2px rgba(0, 0, 0, .2);
    --shadow-hover: 0 1px 2px rgba(0, 0, 0, .2), 0 12px 32px -14px rgba(0, 0, 0, .7);
    --shadow-pop: 0 0 0 1px rgba(255, 255, 255, .07), 0 20px 50px -14px rgba(0, 0, 0, .8), 0 4px 12px -6px rgba(0, 0, 0, .5);
    --skeleton: #1e2127;
    --skeleton-hi: #262a31;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1114;
  --bg-soft: #1e2127;
  --bg-hover: #1b1e24;
  --panel: #16181d;
  --line: #262a31;
  --line-2: #343941;
  --text: #eceef1;
  --text-2: #9aa1ab;
  --text-3: #6e757e;
  --blue: #4c74ff;
  --blue-hover: #6487ff;
  --blue-soft: rgba(76, 116, 255, .16);
  --yes: #12a84a;
  --yes-ink: #3fd07a;
  --yes-soft: rgba(18, 168, 74, .16);
  --yes-soft-2: rgba(18, 168, 74, .26);
  --no: #e8363b;
  --no-ink: #ff6a6e;
  --no-soft: rgba(232, 54, 59, .15);
  --no-soft-2: rgba(232, 54, 59, .25);
  --shadow: 0 1px 2px rgba(0, 0, 0, .2);
  --shadow-hover: 0 1px 2px rgba(0, 0, 0, .2), 0 12px 32px -14px rgba(0, 0, 0, .7);
  --shadow-pop: 0 0 0 1px rgba(255, 255, 255, .07), 0 20px 50px -14px rgba(0, 0, 0, .8), 0 4px 12px -6px rgba(0, 0, 0, .5);
  --skeleton: #1e2127;
  --skeleton-hi: #262a31;
  color-scheme: dark;
}

/* ---------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); letter-spacing: -.006em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "cv11", "ss01"; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
svg { display: block; }
h1, h2, h3, p { margin: 0; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.up { color: var(--yes-ink); }
.down { color: var(--no-ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--blue) 22%, transparent); }
.app { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 20px 24px 64px; outline: none; }
/* theme switch: colors glide instead of snapping (the class is on for a moment, see app.js) */
html.theming, html.theming *, html.theming *::before, html.theming *::after { transition: background-color .32s var(--ease), border-color .32s var(--ease), color .32s var(--ease), fill .32s var(--ease), stroke .32s var(--ease), box-shadow .32s var(--ease) !important; }

/* ---------- page entrance: a new page rises in; its first blocks stagger */

.app.page-in { animation: pagein .34s var(--ease) both; }
@keyframes pagein { from { opacity: 0; transform: translateY(8px); } }
.app[data-fresh] > * { animation: rise .42s var(--ease) both; }
.app[data-fresh] > :nth-child(2) { animation-delay: .04s; }
.app[data-fresh] > :nth-child(3) { animation-delay: .08s; }
.app[data-fresh] > :nth-child(4) { animation-delay: .12s; }
.app[data-fresh] > :nth-child(5) { animation-delay: .16s; }
.app[data-fresh] > :nth-child(n+6) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.grid > .mc, .shop-grid > .si, .drops-grid > .si, .cs-lobby > .cs-tile { animation: cardin .4s var(--ease) both; }
.grid > .mc:nth-child(2), .shop-grid > .si:nth-child(2), .cs-lobby > .cs-tile:nth-child(2) { animation-delay: .04s; }
.grid > .mc:nth-child(3), .shop-grid > .si:nth-child(3), .cs-lobby > .cs-tile:nth-child(3) { animation-delay: .08s; }
.grid > .mc:nth-child(4), .shop-grid > .si:nth-child(4), .cs-lobby > .cs-tile:nth-child(4) { animation-delay: .12s; }
.grid > .mc:nth-child(5), .shop-grid > .si:nth-child(5) { animation-delay: .16s; }
.grid > .mc:nth-child(6), .shop-grid > .si:nth-child(6) { animation-delay: .2s; }
.grid > .mc:nth-child(7), .shop-grid > .si:nth-child(7) { animation-delay: .24s; }
.grid > .mc:nth-child(n+8), .shop-grid > .si:nth-child(n+8) { animation-delay: .28s; }
@keyframes cardin { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.app[data-fresh] .lb-row, .app[data-fresh] .tbl tbody tr, .app[data-fresh] .orow { animation: rowin .36s var(--ease) both; }
.app[data-fresh] .lb-row:nth-child(2), .app[data-fresh] .tbl tbody tr:nth-child(2), .app[data-fresh] .orow:nth-child(2) { animation-delay: .03s; }
.app[data-fresh] .lb-row:nth-child(3), .app[data-fresh] .tbl tbody tr:nth-child(3), .app[data-fresh] .orow:nth-child(3) { animation-delay: .06s; }
.app[data-fresh] .lb-row:nth-child(4), .app[data-fresh] .tbl tbody tr:nth-child(4), .app[data-fresh] .orow:nth-child(4) { animation-delay: .09s; }
.app[data-fresh] .lb-row:nth-child(5), .app[data-fresh] .tbl tbody tr:nth-child(5), .app[data-fresh] .orow:nth-child(5) { animation-delay: .12s; }
.app[data-fresh] .lb-row:nth-child(6), .app[data-fresh] .tbl tbody tr:nth-child(6), .app[data-fresh] .orow:nth-child(6) { animation-delay: .15s; }
.app[data-fresh] .lb-row:nth-child(n+7), .app[data-fresh] .tbl tbody tr:nth-child(n+7), .app[data-fresh] .orow:nth-child(n+7) { animation-delay: .18s; }
@keyframes rowin { from { opacity: 0; transform: translateY(6px); } }

/* ---------- header */

.hdr { position: sticky; top: 0; z-index: 40; background: var(--panel); box-shadow: inset 0 -1px 0 var(--line); }
.hdr-row { max-width: 1320px; margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; flex: none; transition: opacity var(--dur); }
.logo:hover { opacity: .8; }
.logo-mark { width: 26px; height: 26px; }
.logo.sm { font-size: 15px; }
.logo.sm .logo-mark { width: 20px; height: 20px; }
.hsearch { flex: 1; min-width: 0; max-width: 600px; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 12px; border-radius: 10px; background: var(--bg-soft); cursor: text; border: 1px solid transparent; transition: background var(--dur), border-color var(--dur), box-shadow var(--dur); }
.hsearch svg { width: 16px; height: 16px; fill: none; stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; flex: none; transition: stroke var(--dur); }
.hsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 14px; font-weight: 500; }
.hsearch input::placeholder { color: var(--text-3); font-weight: 400; }
.hsearch input::-webkit-search-cancel-button { display: none; }
.hsearch kbd { font: 500 11.5px var(--font); color: var(--text-3); border: 1px solid var(--line-2); border-radius: 5px; padding: 0 5px; line-height: 18px; background: var(--panel); }
.hsearch:hover { background: color-mix(in srgb, var(--bg-soft) 60%, var(--line)); }
.hsearch:focus-within { background: var(--panel); border-color: var(--line-2); box-shadow: 0 0 0 3px var(--blue-soft); }
.hsearch:focus-within svg { stroke: var(--text); }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.hlink { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: var(--r-btn); color: var(--text-2); font-weight: 500; white-space: nowrap; transition: background var(--dur), color var(--dur); }
.hlink:hover { color: var(--text); background: var(--bg-soft); }
.hlink.on { color: var(--text); }
.hlink.blue { color: var(--blue); }
.hlink svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hstat { display: flex; flex-direction: column; align-items: flex-end; padding: 2px 10px; border-radius: 8px; line-height: 1.2; }
.hstat:hover { background: var(--bg-soft); }
.hstat small { font-size: 12px; color: var(--text-2); font-weight: 500; }
.hstat b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hstat b.g { color: var(--yes-ink); }
.hsep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
/* the wallet: tokens and a button in one pill, like a sportsbook's */
.wallet { display: inline-flex; align-items: stretch; height: 38px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); margin-left: 4px; transition: border-color var(--dur), box-shadow var(--dur); }
.wallet:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.wallet-bal { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.wallet-bal .coin { width: 15px; height: 15px; }
.wallet-bal b.bump { animation: bump .5s var(--spring); }
@keyframes bump { 30% { transform: scale(1.12); } }
.wallet-btn { display: inline-flex; align-items: center; padding: 0 12px; background: var(--blue); color: #fff; font-weight: 600; font-size: 13.5px; transition: background var(--dur); }
.wallet:hover .wallet-btn { background: var(--blue-hover); }
.hlink.spin { color: #a96a00; }
.hlink.spin svg { width: 16px; height: 16px; stroke-width: 1.6; }
.rate-pop { text-align: center; }
.rate-pop .rate-wheel { width: 64px; height: 64px; margin: 4px auto 14px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #b8862e, #f6e3a1 50%, #b8862e); color: #3a2a08; }
.rate-pop .rate-wheel svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.rate-pop h3 { font-size: 20px; }
.rate-pop p { color: var(--text-2); margin: 8px 0 18px; line-height: 1.5; }
.rate-pop .acts { justify-content: center; }

.cats { max-width: 1320px; margin: 0 auto; padding: 0 24px; height: 44px; display: flex; align-items: stretch; gap: 2px; overflow-x: auto; scrollbar-width: none; position: relative; }
.cats::-webkit-scrollbar { display: none; }
.cats a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; color: var(--text-2); font-weight: 500; white-space: nowrap; transition: color var(--dur); border-radius: 6px 6px 0 0; }
.cats a:hover { color: var(--text); }
.cats a.on { color: var(--text); font-weight: 600; }
.cats a svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; transition: opacity var(--dur); }
.cats a:hover svg, .cats a.on svg { opacity: 1; }
.cats .sep { width: 1px; background: var(--line); margin: 12px 6px; flex: none; }
.cats .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--no); animation: blink 1.4s infinite; }
/* the sliding underline (js/motion.js puts one <i class="ind"> in every tab strip and moves it) */
.ind { position: absolute; bottom: 0; left: 0; width: 0; height: 2px; border-radius: 2px; background: var(--text); pointer-events: none; opacity: 0; }
.ind.ready { opacity: 1; transition: transform .32s var(--ease), width .32s var(--ease), opacity var(--dur); }
.has-ind .on::after { display: none !important; }
.has-ind { position: relative; }

/* ---------- buttons, inputs, menus */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--panel); color: var(--text); font-weight: 600; font-size: 14px; white-space: nowrap; letter-spacing: -.005em; transition: background var(--dur), border-color var(--dur), color var(--dur), box-shadow var(--dur), transform .12s var(--ease); }
.btn:hover { background: var(--bg-hover); border-color: var(--line-2); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.blue { border: 0; background: var(--blue); color: #fff; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .1); }
.btn.blue:hover { background: var(--blue-hover); }
.btn.ghost { border-color: transparent; background: none; color: var(--text-2); }
.btn.ghost:hover { color: var(--text); background: var(--bg-soft); }
.btn.soft { border: 0; background: var(--bg-soft); }
.btn.soft:hover { background: var(--line); }
.btn.danger { color: var(--no-ink); }
.btn.danger:hover { background: var(--no-soft); border-color: transparent; }
.btn.lg { height: 46px; font-size: 15px; border-radius: 10px; padding: 0 18px; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 7px; }
.btn.block { width: 100%; }
.linkish { background: none; border: 0; padding: 0; color: inherit; font: inherit; transition: color var(--dur); }
.linkish:hover { color: var(--text); }
.input { width: 100%; height: 40px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--panel); padding: 0 12px; outline: none; font-size: 14px; transition: border-color var(--dur), box-shadow var(--dur); }
.input:hover { border-color: var(--line-2); }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.hint { font-size: 12.5px; color: var(--text-2); margin-top: 6px; }

/* yes / no buttons */
.by, .bn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 7px; font-weight: 600; white-space: nowrap; transition: background var(--dur), color var(--dur), transform .12s var(--ease); }
.by { background: var(--yes-soft); color: var(--yes-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--yes) 16%, transparent); }
.bn { background: var(--no-soft); color: var(--no-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--no) 14%, transparent); }
.by:hover { background: var(--yes-soft-2); }
.bn:hover { background: var(--no-soft-2); }
.by:active, .bn:active, .bt:active { transform: scale(.97); }
.by.on { background: var(--yes); color: #fff; box-shadow: none; }
.bn.on { background: var(--no); color: #fff; box-shadow: none; }
.bt { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--r-btn); background: var(--bg-soft); color: var(--text); font-weight: 600; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); transition: background var(--dur), color var(--dur), transform .12s var(--ease); }
.bt:hover { background: var(--line); box-shadow: inset 0 0 0 1px var(--line-2); }
.bt.on { box-shadow: none; }
.bt.on { background: var(--blue); color: #fff; }
.by.row, .bn.row { height: 40px; min-width: 132px; padding: 0 12px; font-size: 14px; border-radius: var(--r-btn); }

.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; background: var(--panel); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 6px; z-index: 60; transform-origin: top right; animation: menuin .22s var(--ease); }
@keyframes menuin { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; font-size: 14px; color: var(--text); background: none; border: 0; text-align: left; transition: background var(--dur); }
.menu a:hover, .menu button:hover { background: var(--bg-soft); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 2px; }
.menu-head { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: inherit; }
.menu-head:hover { background: var(--bg-soft); }
.menu-head .av { width: 36px; height: 36px; font-size: 18px; }
.menu-head b { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; font-size: 14px; }
.menu-head b .badge-chip { margin-left: 2px; }
.menu-head small { color: var(--text-2); font-size: 12.5px; }

.av { --h: 220; position: relative; z-index: 0; overflow: visible; border-radius: 50%; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, hsl(var(--h) 80% 86%), hsl(calc(var(--h) + 50) 75% 76%)); line-height: 1; }
:root[data-theme="dark"] .av { background: linear-gradient(135deg, hsl(var(--h) 45% 32%), hsl(calc(var(--h) + 50) 45% 26%)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .av { background: linear-gradient(135deg, hsl(var(--h) 45% 32%), hsl(calc(var(--h) + 50) 45% 26%)); } }
.av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.av-btn { width: 36px; height: 36px; font-size: 18px; border: 0; padding: 0; cursor: pointer; transition: transform .15s var(--ease), box-shadow var(--dur); }
.av-btn:hover { box-shadow: 0 0 0 2px var(--line-2); }
.av-btn:active { transform: scale(.95); }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--bg-soft); position: relative; }
.seg button, .seg a { position: relative; z-index: 1; height: 30px; padding: 0 12px; border-radius: 7px; border: 0; background: none; color: var(--text-2); font-weight: 500; font-size: 13.5px; transition: color var(--dur); }
.seg button:hover, .seg a:hover { color: var(--text); }
.seg .on { color: var(--text); font-weight: 600; }
.seg:not(.has-ind) .on { background: var(--panel); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .04); }
.seg .ind { height: 30px; top: 3px; bottom: auto; border-radius: 7px; background: var(--panel); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .04); z-index: 0; }
.utabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; position: relative; }
.utabs::-webkit-scrollbar { display: none; }
.utabs button, .utabs a { position: relative; height: 40px; padding: 0; border: 0; background: none; color: var(--text-2); font-weight: 500; font-size: 14.5px; white-space: nowrap; display: inline-flex; align-items: center; transition: color var(--dur); }
.utabs button:hover, .utabs a:hover { color: var(--text); }
.utabs .on { color: var(--text); font-weight: 600; }
.utabs .on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--text); border-radius: 2px; }
.utabs .ind { bottom: -1px; }

/* ---------- surfaces */

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); transition: box-shadow var(--dur-slow) var(--ease), border-color var(--dur), transform var(--dur-slow) var(--ease); }
.pad { padding: 16px; }
.pad-lg { padding: 24px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.sec-head h2 { font-size: 18px; font-weight: 600; letter-spacing: -.015em; display: flex; align-items: center; gap: 8px; }
.sec-head h2 .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--no); animation: blink 1.4s infinite; }
.sec-head .more { color: var(--text-2); font-weight: 500; transition: color var(--dur); }
.sec-head .more:hover { color: var(--text); }
.h1 { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.sub { color: var(--text-2); margin-top: 4px; font-size: 14px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head .sub { max-width: 640px; color: var(--text-2); font-size: 15px; line-height: 1.5; margin-top: 6px; }
.lbl { font-size: 13px; color: var(--text-2); font-weight: 500; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag.yes { background: var(--yes-soft); color: var(--yes-ink); }
.tag.no { background: var(--no-soft); color: var(--no-ink); }
.tag.blue { background: var(--blue-soft); color: var(--blue); }
.tag.plain { background: var(--bg-soft); color: var(--text-2); }
.tag.gold { background: rgba(245, 165, 36, .16); color: #a96a00; }
.coin { width: 1em; height: 1em; display: inline-block; vertical-align: -.13em; flex: none; }
.tok { display: inline-flex; align-items: center; gap: .3em; font-variant-numeric: tabular-nums; }
.skel { position: relative; overflow: hidden; background: var(--skeleton); border-radius: 8px; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, var(--skeleton-hi), transparent); animation: shimmer 1.4s var(--ease) infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.empty { text-align: center; padding: 56px 20px; color: var(--text-2); }
.empty h3 { color: var(--text); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }
.live { display: inline-flex; align-items: center; gap: 5px; color: var(--no-ink); font-weight: 600; font-size: 12px; letter-spacing: .02em; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.chg { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.select { height: 36px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--panel); padding: 0 32px 0 12px; font-size: 14px; font-weight: 500; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%236b727b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 16px; cursor: pointer; transition: border-color var(--dur), box-shadow var(--dur); }
.select:hover { border-color: var(--line-2); }
.select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }

/* ---------- home */

.strip { display: flex; align-items: center; gap: 18px; padding: 10px 16px; border-radius: var(--r-card); background: var(--panel); border: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; min-height: 48px; }
.strip .s-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); white-space: nowrap; }
.strip .s-item b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.strip .s-sep { width: 1px; height: 18px; background: var(--line); }
.strip .bar { width: 120px; height: 6px; border-radius: 3px; background: var(--bg-soft); overflow: hidden; }
.strip .bar i { display: block; height: 100%; background: var(--blue); border-radius: 3px; transition: width .6s var(--ease); }
.strip .bar.done i { background: var(--yes); }
/* the progress bar from the shop on the site's goal bar (the fill comes inline) */
.strip .bar.own.stripes i { background-size: 28.28px 28.28px; animation: swstripes .8s linear infinite; }
.strip .bar.own.flow i { background-size: 300% 100% !important; animation: pnflow 4s linear infinite; }
.strip .bar.own.pulse i { animation: swpulse 1.8s ease-in-out infinite; }
.strip .bar.own.sheen { position: relative; }
.strip .bar.own.sheen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%); transform: translateX(-100%); animation: am-sheen 4.5s ease-in-out infinite; }
@keyframes am-sheen { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.strip .bar.own.faint-l i { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .45); }
:root[data-theme="dark"] .strip .bar.own.faint-l i { box-shadow: none; }
:root[data-theme="dark"] .strip .bar.own.faint-d i { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .strip .bar.own.faint-l i { box-shadow: none; }
  :root:not([data-theme="light"]) .strip .bar.own.faint-d i { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }
}
.strip .s-cta { margin-left: auto; }
/* signed in: the stats are one group that wraps inside itself, the buttons a fixed group on its right */
.strip .s-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; flex: 1 1 0; min-width: 0; overflow: hidden; padding: 4px; margin: -4px; }
.strip .s-stats + .s-cta { display: flex; align-items: center; gap: 8px; flex: none; }
/* its separators belong to the item after them, so the one that would start a wrapped line is clipped away */
.strip .s-stats > .s-sep { display: none; }
.strip .s-stats > .s-sep + * { position: relative; }
.strip .s-stats > .s-sep + *::before { content: ""; position: absolute; left: -10px; top: 50%; width: 1px; height: 18px; margin-top: -9px; background: var(--line); pointer-events: none; }
.strip .s-stats > .s-sep + .s-btn::before { left: -1px; } /* the streak button reaches 8px past its text */
.strip svg.ic { width: 16px; height: 16px; fill: none; stroke: var(--blue); stroke-width: 1.8; flex: none; }
.strip .s-item.wrap { white-space: normal; line-height: 1.45; align-items: flex-start; min-width: 0; }
.strip .s-item.wrap svg { margin-top: 2px; }
.strip svg.flame { width: 14px; height: 14px; fill: #f97316; }
.s-risk { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--no-soft); color: var(--no-ink); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.s-ahead { color: var(--text-2); font-size: 12.5px; transition: color var(--dur); }
.s-ahead:hover { color: var(--text); text-decoration: underline; }

.top-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: stretch; }
.top-grid > * { min-width: 0; }
.feat { padding: 20px 20px 14px; display: flex; flex-direction: column; min-height: 372px; height: auto; cursor: pointer; border-radius: var(--r-lg); }
.feat:hover { border-color: var(--line-2); box-shadow: var(--shadow-hover); }
.feat-stage { position: relative; flex: 1; display: flex; flex-direction: column; }
.feat-in { flex: 1; display: flex; flex-direction: column; transition: opacity .26s var(--ease), transform .34s var(--ease); }
.feat-in.from-right { opacity: 0; transform: translateX(22px); }
.feat-in.from-left { opacity: 0; transform: translateX(-22px); }
.feat-in.leaving { position: absolute; inset: 0; opacity: 0; transform: none; pointer-events: none; }
.feat-head { display: flex; gap: 12px; align-items: center; }
.feat-head img, .feat-head .ph { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; background: var(--bg-soft); }
.crumb { font-size: 13px; color: var(--text-2); display: flex; gap: 6px; align-items: center; }
.feat-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; margin-top: 2px; }
.feat-body { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; margin-top: 16px; flex: 1; }
.feat-opts { display: flex; flex-direction: column; padding-right: 24px; border-right: 1px solid var(--line); }
.feat-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.feat-opt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feat-opt b { font-size: 19px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.feat-opt.team { gap: 10px; justify-content: flex-start; }
.feat-opt.team img, .feat-opt.team .ph { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; flex: none; background: var(--bg-soft); }
.feat-opt.team span { flex: 1; font-weight: 500; }
.feat-opt.team em { font-style: normal; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; color: var(--text); min-width: 22px; text-align: right; }
.feat-opt.team b { min-width: 48px; text-align: right; }
.feat-chart { position: relative; min-height: 220px; display: flex; flex-direction: column; flex: 1; }
.feat-chart .chart { height: 100%; margin: 0; }
.feat-chart .feat-legend { flex: none; }
.feat-chart .feat-chart-box { flex: 1; height: auto !important; min-height: 220px; max-height: 360px; }
.feat-foot { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 10px; color: var(--text-2); font-size: 13px; }
.feat-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 12px; }
.dots { display: flex; gap: 5px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line-2); transition: width .3s var(--ease), background .3s var(--ease); cursor: pointer; }
.dots i:hover { background: var(--text-3); }
.dots i.on { width: 18px; background: var(--text); }
.pager { display: flex; gap: 8px; min-width: 0; }
.pager button { height: 32px; padding: 0 12px; border-radius: 16px; border: 0; background: var(--bg-soft); color: var(--text-2); font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; max-width: 220px; min-width: 0; transition: background var(--dur), color var(--dur); }
.pager button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager button:hover { color: var(--text); background: var(--line); }
.feat-bets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.feat-bets.col { grid-template-columns: 1fr; }
.feat-bets a { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 44px; padding: 0 12px; border-radius: 9px; font-weight: 700; font-size: 14px; min-width: 0; }
.feat-bets a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feat-bets a b { font-weight: 600; opacity: .8; font-variant-numeric: tabular-nums; flex: none; }
.feat-bets .bt { background: var(--bg-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.feat-bets .bt:hover { background: var(--line); box-shadow: inset 0 0 0 1px var(--line-2); }
.bt.on { box-shadow: none; }
.feat-live { margin-top: 14px; }
.feat-live-head { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.feat-live-head.muted { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 13px; }
.feat-bet { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; color: inherit; border-top: 1px solid var(--line); }
.feat-bet:first-of-type { border-top: 0; }
.feat-bet .av { width: 24px; height: 24px; font-size: 12px; }
.feat-bet .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.feat-bet .pick { font-weight: 600; color: var(--text-2); }
.feat-bet .pick.up { color: var(--yes-ink); } .feat-bet .pick.down { color: var(--no-ink); }
.feat-bet b { font-variant-numeric: tabular-nums; }

.side { display: flex; flex-direction: column; gap: 20px; }
.side h3 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 2px; margin-bottom: 2px; }
.side h3 a:hover { text-decoration: underline; }
.side-tabs { display: flex; gap: 14px; margin-bottom: 2px; position: relative; }
.side-tabs button { border: 0; background: none; padding: 0 0 6px; font: inherit; font-size: 15px; font-weight: 600; color: var(--text-3); cursor: pointer; border-bottom: 2px solid transparent; transition: color var(--dur); }
.side-tabs button.on { color: var(--text); border-bottom-color: var(--text); }
.side-tabs.has-ind button.on { border-bottom-color: transparent; }
.side-tabs button:hover { color: var(--text); }
.srow { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 13.5px; }
.srow .n { width: 14px; color: var(--text-3); font-size: 13px; flex: none; font-variant-numeric: tabular-nums; }
.srow .t { flex: 1; min-width: 0; font-weight: 500; line-height: 1.35; }
.srow .t span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.srow .t .pn { font-weight: 500; }
.srow .t small { display: block; color: var(--text-2); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow .pbar { display: block; height: 3px; border-radius: 2px; background: var(--bg-soft); margin-top: 6px; overflow: hidden; }
.srow .pbar i { display: block; height: 100%; border-radius: 2px; background: var(--blue); transition: width .6s var(--ease); }
.srow .pbar i.down { background: var(--no); } .srow .pbar i.up { background: var(--yes); }
.srow .v { text-align: right; flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.srow .v small { display: block; font-size: 12px; font-weight: 600; }
.srow .av { width: 28px; height: 28px; font-size: 14px; }
a.srow:hover .t span { text-decoration: underline; }
.side section > .srow + .srow, .side section > .srow:not(:first-of-type) { border-top: 1px solid var(--line); }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mc { display: flex; flex-direction: column; height: 198px; padding: 14px 14px 11px; cursor: pointer; }
.mc:hover, .si:hover { border-color: var(--line-2); box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.mc-head { display: flex; gap: 10px; align-items: flex-start; min-height: 40px; }
.mc-img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; flex: none; background: var(--bg-soft); }
.mc-title { font-size: 14.5px; font-weight: 600; line-height: 1.35; letter-spacing: -.012em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; min-width: 0; }
.mc-gauge { width: 58px; flex: none; margin-left: auto; margin-top: -2px; text-align: center; position: relative; }
.mc-gauge svg { width: 58px; height: 34px; }
.mc-gauge b { position: absolute; left: 0; right: 0; top: 13px; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.mc-gauge small { display: block; font-size: 11px; color: var(--text-3); margin-top: -2px; }
.mc-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 0; }
.mc-bin { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.mc-bin .by, .mc-bin .bn, .mc-bin .bt { height: 38px; font-size: 13.5px; font-weight: 700; border-radius: var(--r-btn); min-width: 0; padding: 0 8px; }
.mc-bin span { overflow: hidden; text-overflow: ellipsis; }
.mc-opt { display: flex; align-items: center; gap: 8px; height: 30px; }
.mc-opt .nm { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-opt .pc { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mc-opt .ab { display: flex; gap: 4px; }
.mc-opt .ab .by, .mc-opt .ab .bn { height: 27px; padding: 0 10px; font-size: 13px; font-weight: 600; border-radius: 6px; min-width: 38px; }
.mc-team { display: flex; align-items: center; gap: 8px; height: 26px; font-size: 14px; }
.mc-team .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-team .pc { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mc-foot { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12.5px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.mc-foot .dot { color: var(--line-2); }
.mc-foot .end { margin-left: auto; overflow: hidden; text-overflow: ellipsis; }
.mc-foot .mf { display: inline-flex; align-items: center; gap: 4px; }
.mc-foot svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; opacity: .9; }
.mc-img { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.more { display: flex; justify-content: center; margin-top: 24px; }

/* game cards (sportsbook style) */
.gc { height: auto; min-height: 198px; }
.gc-head .mc-title { -webkit-line-clamp: 1; }
.gc-status { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12.5px; color: var(--text-2); }
.gc-status .dot { color: var(--line-2); }
.gc-live { display: inline-flex; align-items: center; gap: 5px; color: var(--no-ink); font-weight: 600; }
.gc-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.4s infinite; }
.gc-rows { display: grid; gap: 4px; margin-top: 10px; }
.gc-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 6px 4px 6px 2px; border: 0; border-radius: 10px; background: none; text-align: left; font: inherit; color: inherit; transition: background var(--dur); }
.gc-row:hover { background: var(--bg-hover); }
.gc-row:has(.gc-score) { grid-template-columns: 30px minmax(0, 1fr) auto 34px auto; }
.gc-logo { width: 30px; height: 30px; object-fit: contain; }
.gc-logo.ph { border-radius: 50%; background: var(--bg-soft); }
.gc-name { min-width: 0; display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 15px; }
.gc-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-name i { display: block; width: 46px; height: 3px; border-radius: 2px; background: var(--tc); }
.gc-mult { color: var(--text-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.gc-score { height: 32px; min-width: 34px; padding: 0 8px; border-radius: 8px; background: var(--bg-soft); display: grid; place-items: center; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.gc-pct { height: 36px; min-width: 64px; padding: 0 12px; border-radius: 9px; background: color-mix(in srgb, var(--tc) 9%, var(--bg-soft)); display: grid; place-items: center; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 22%, var(--line)); transition: background var(--dur), color var(--dur), box-shadow var(--dur); }
.gc-pct.fav { background: color-mix(in srgb, var(--tc) 16%, var(--panel)); }
.gc-row:hover .gc-pct { background: var(--tc); color: #fff; box-shadow: none; }
.gc-mult { color: var(--text-3); font-size: 12.5px; }
.gc-score { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.gc .mc-foot { margin-top: 9px; }

/* ---------- event page */

.ev-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.ev-grid > * { min-width: 0; }
.ev-head { display: flex; gap: 14px; align-items: center; }
.ev-head img, .ev-head .ph { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; background: var(--bg-soft); }
.ev-head h1 { font-size: 24px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; margin-top: 2px; }
.ev-big { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.ev-big b { font-size: 30px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ev-big span { color: var(--text-2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; font-size: 12.5px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; }
.legend b { color: var(--text); font-weight: 600; }
.chart { position: relative; height: 300px; margin-top: 8px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .tip { position: absolute; pointer-events: none; top: 0; transform: translateX(-50%); background: var(--panel); box-shadow: var(--shadow-pop); border-radius: 8px; padding: 6px 9px; font-size: 12px; white-space: nowrap; opacity: 0; transition: opacity .12s; z-index: 2; }
.chart .tip div { display: flex; align-items: center; gap: 6px; }
.chart .tip i { width: 7px; height: 7px; border-radius: 50%; }
.chart .tip small { display: block; color: var(--text-2); margin-bottom: 2px; }
.chart-empty { height: 100%; display: grid; place-items: center; color: var(--text-3); }
/* the first drawing of a chart: lines draw themselves in, the area fades up */
.chart .ln-in { stroke-dasharray: 1; stroke-dashoffset: 1; animation: chartdraw 1s var(--ease) forwards; }
.chart .area-in { animation: fade .9s var(--ease) .25s both; }
.chart .ln-in ~ g { animation: fade .4s var(--ease) .8s both; }
@keyframes chartdraw { to { stroke-dashoffset: 0; } }
.ev-meta { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 13.5px; flex-wrap: wrap; }
.ev-meta .ranges { margin-left: auto; display: flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--bg-soft); position: relative; }
.ev-meta .ranges button { position: relative; z-index: 1; height: 26px; padding: 0 9px; border: 0; border-radius: 6px; background: none; color: var(--text-2); font-size: 12.5px; font-weight: 600; transition: color var(--dur); }
.ev-meta .ranges button:hover { color: var(--text); }
.ev-meta .ranges button.on { color: var(--text); }
.ev-meta .ranges:not(.has-ind) button.on { background: var(--panel); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.ev-meta .ranges .ind { top: 2px; bottom: auto; height: 26px; border-radius: 6px; background: var(--panel); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); z-index: 0; }
.ev-meta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ev-meta .mi { display: inline-flex; align-items: center; gap: 6px; }
.orow { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto; gap: 16px; align-items: center; padding: 14px 10px; margin: 0 -10px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 10px; transition: background var(--dur); }
.orow:hover, .orow.on { background: var(--bg-hover); }
.orow .nm { display: flex; gap: 12px; align-items: center; min-width: 0; }
.orow .nm img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; }
.orow .nm b { display: block; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orow .nm small { color: var(--text-2); font-size: 12.5px; }
.orow .pc { text-align: center; }
.orow .pc b { font-size: 24px; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.orow .pc .chg { display: block; margin-top: 1px; }
.orow .acts { display: flex; gap: 8px; }
.show-all { margin-top: 12px; }
.rules { margin-top: 28px; }
.rules h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.rules p { color: var(--text-2); font-size: 14px; white-space: pre-line; line-height: 1.6; }
.rules .clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.tp { position: sticky; top: 128px; padding: 16px; }
.tp-head { display: flex; gap: 10px; align-items: center; }
.tp-head img, .tp-head .ph { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; background: var(--bg-soft); }
.tp-head > div { min-width: 0; }
.tp-head small { display: block; font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-head b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.tp-tabs { display: flex; gap: 16px; margin: 14px 0 12px; border-bottom: 1px solid var(--line); position: relative; }
.tp-tabs button { position: relative; height: 34px; border: 0; background: none; padding: 0; font-size: 15px; font-weight: 600; color: var(--text-3); transition: color var(--dur); }
.tp-tabs button:hover { color: var(--text-2); }
.tp-tabs button.on { color: var(--text); }
.tp-tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--text); border-radius: 2px; }
.tp-tabs .ind { bottom: -1px; }
.tp-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tp-toggle button { height: 46px; border-radius: var(--r-btn); border: 0; background: var(--bg-soft); color: var(--text-2); font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding: 0 8px; transition: background var(--dur), color var(--dur), transform .12s var(--ease); }
.tp-toggle button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-toggle button:hover { color: var(--text); background: var(--line); }
.tp-toggle button:active { transform: scale(.98); }
.tp-toggle button.y.on { background: var(--yes); color: #fff; }
.tp-toggle button.n.on { background: var(--no); color: #fff; }
.tp-amt { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.tp-amt .lbl { font-size: 16px; color: var(--text); font-weight: 600; }
.tp-amt .lbl small { display: block; font-size: 12.5px; color: var(--text-2); font-weight: 400; }
.tp-amt label { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tp-amt .coin { width: 22px; height: 22px; }
.tp-amt input { width: 150px; border: 0; outline: 0; background: none; text-align: right; font-size: 34px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; padding: 0; }
.tp-amt input::placeholder { color: var(--text-3); }
.tp-chips { display: flex; gap: 6px; justify-content: flex-end; margin-top: 10px; }
.tp-chips button { height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--text-2); font-size: 12px; font-weight: 600; transition: color var(--dur), border-color var(--dur), background var(--dur), transform .12s var(--ease); }
.tp-chips button:hover { color: var(--text); border-color: var(--line-2); background: var(--bg-soft); }
.tp-chips button:active { transform: scale(.96); }
.tp-sum { margin: 16px 0 14px; display: grid; gap: 6px; font-size: 14px; }
.tp-sum div { display: flex; justify-content: space-between; align-items: baseline; color: var(--text-2); }
.tp-sum b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.tp-sum .win { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.tp-sum .win span { color: var(--text); font-weight: 600; font-size: 15px; }
.tp-sum .win b { color: var(--yes-ink); font-size: 20px; }
.tp-note { text-align: center; font-size: 12.5px; color: var(--text-2); margin-top: 10px; }
.tp-warn { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: rgba(245, 165, 36, .14); color: #8f5a00; font-size: 13px; font-weight: 500; }
:root[data-theme="dark"] .tp-warn { color: #ffc865; }
.tp-pos { margin-top: 16px; padding-top: 4px; }
.tp-pos h4 { margin: 0 0 4px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.tp-pos .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.tp-pos .row:first-of-type { border-top: 0; }
.tp-empty { text-align: center; color: var(--text-2); padding: 18px 4px 6px; }
.tp-empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
/* studying unlocks playing: the bets / rounds line in the trade panel, the casino bet box and the home strip */
.tp-gate, .cs-gate { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 10px; border-radius: 8px; background: var(--bg-soft); color: var(--text-2); font-size: 12.5px; line-height: 1.4; }
.tp-gate b, .cs-gate b { color: var(--text); font-weight: 600; }
.tp-gate svg, .cs-gate svg { width: 15px; height: 15px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tp-gate.locked, .cs-gate.locked { background: rgba(245, 165, 36, .14); color: #8f5a00; }
.tp-gate.locked b, .cs-gate.locked b { color: inherit; }
.tp-gate.locked svg, .cs-gate.locked svg { stroke: #c58a0b; }
:root[data-theme="dark"] .tp-gate.locked, :root[data-theme="dark"] .cs-gate.locked { color: #ffc865; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tp-gate.locked, :root:not([data-theme="light"]) .cs-gate.locked { color: #ffc865; } }
.cs-live { margin-top: 6px; }
.cs-live .sec-head { margin-top: 24px; }
.cs-live .live-mk img { object-fit: cover; }
.tp-gate.free, .cs-gate.free { background: var(--yes-soft); color: var(--yes-ink); }
.tp-gate.free b, .cs-gate.free b { color: inherit; }
.tp-gate.free svg, .cs-gate.free svg { stroke: var(--yes); }
.cs-gate.session { background: var(--blue-soft); color: var(--blue); }
.cs-gate.session b { color: inherit; }
.cs-gate.session svg { stroke: var(--blue); }
.strip .s-gate svg.ic { stroke: var(--blue); }
.strip .s-gate.free { color: var(--yes-ink); }
.strip .s-gate.free b { color: inherit; }
.strip .s-gate.free svg.ic { stroke: var(--yes); }
.tp-boost { margin: 12px 0 4px; padding: 9px 12px; border-radius: 8px; background: rgba(245, 165, 36, .14); color: #8f5a00; font-size: 13px; line-height: 1.45; }
:root[data-theme="dark"] .tp-boost { color: #ffc865; }
.tp-sum .boost-line b { color: #a96a00; }
:root[data-theme="dark"] .tp-sum .boost-line b { color: #ffc865; }

/* ---------- tables */

.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background var(--dur); }
.tbl tbody tr:hover { background: var(--bg-hover); }
.tbl .r { text-align: right; }
.tbl td.r { font-variant-numeric: tabular-nums; }
.mkt-cell { display: flex; gap: 12px; align-items: center; min-width: 220px; }
.mkt-cell img, .mkt-cell .ph { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; background: var(--bg-soft); }
.mkt-cell a { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.mkt-cell a:hover { text-decoration: underline; }
.mkt-cell .meta { display: flex; gap: 6px; align-items: center; margin-top: 4px; font-size: 12.5px; color: var(--text-2); }
.pnl { font-weight: 600; }
.pnl small { display: block; font-size: 12px; font-weight: 500; }

/* ---------- portfolio */

.pf-top { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.pf-card { padding: 20px; display: flex; flex-direction: column; min-height: 196px; }
.pf-card .lbl { display: flex; align-items: center; gap: 6px; }
.pf-big { font-size: 32px; font-weight: 700; letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; }
.pf-big .coin { width: 24px; height: 24px; }
.pf-sub { margin-top: 2px; font-size: 13.5px; color: var(--text-2); }
.pf-row { display: flex; gap: 28px; margin-top: auto; padding-top: 16px; flex-wrap: wrap; }
.pf-row div { font-size: 13px; color: var(--text-2); }
.pf-row b { display: block; color: var(--text); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 76px; margin-top: 12px; }
.bars i { flex: 1; min-height: 3px; border-radius: 3px 3px 1px 1px; background: var(--blue); opacity: .85; transition: opacity var(--dur); transform-origin: bottom; animation: barup .6s var(--ease) both; }
.bars i:hover { opacity: 1; }
.bars i.goal { background: var(--yes); }
.bars i.zero { background: var(--line); opacity: 1; }
@keyframes barup { from { transform: scaleY(0); } }
.bars-x { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); margin-top: 6px; }
.pf-chart { height: 112px; margin: 12px 0 0; }
.prof-chart { height: 150px; margin: 18px 0 0; }
.pf-chart .chart-empty, .prof-chart .chart-empty { font-size: 13px; }

/* ---------- leaderboard */

.lb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.lb-layout > * { min-width: 0; }
.lb-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 4px; flex-wrap: wrap; }
.lb-search { display: flex; align-items: center; gap: 8px; height: 46px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.lb-search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
.lb-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 14px; color: var(--text); }
.lb-search .cols { display: flex; gap: 16px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.lb-search .cols span { width: 120px; text-align: right; }
.lb-search .cols span.on { color: var(--text-2); }
.lb-row { display: flex; align-items: center; gap: 14px; padding: 10px; margin: 0 -10px; border-radius: 10px; transition: background var(--dur); }
.lb-row + .lb-row { box-shadow: inset 0 1px 0 var(--line); }
.lb-row:hover { background: var(--bg-hover); }
.lb-row.me { background: var(--blue-soft); box-shadow: none; }
.lb-row.me + .lb-row { box-shadow: none; }
.lb-row .rk { width: 26px; height: 26px; line-height: 26px; border-radius: 50%; background: var(--bg-soft); color: var(--text-2); text-align: center; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; flex: none; }
.lb-row .av { width: 40px; height: 40px; font-size: 20px; position: relative; }
.lb-row .medal { position: absolute; left: -2px; bottom: -2px; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--panel); }
.lb-row .nm { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.lb-row .nm .ptitle { margin-left: 4px; }
.lb-row .nm .badge-chip { margin-left: 6px; }
.lb-row .c1, .lb-row .c2 { width: 120px; text-align: right; font-variant-numeric: tabular-nums; flex: none; }
.lb-row .c1 { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.lb-row .c2 { color: var(--text-2); font-size: 13.5px; }
.lb-pinned { position: sticky; bottom: 12px; margin-top: 12px; background: var(--panel); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 0 12px; animation: rise .4s var(--ease) both; }
.lb-pinned .lb-row { box-shadow: none; }
.lb-pinned .lb-row.me { margin: 0; background: none; padding: 12px 0; }
#wins small b { color: var(--yes-ink); font-weight: 600; }
.heat { display: grid; grid-template-columns: repeat(28, 1fr); gap: 4px; margin-top: 12px; }
.heat i { aspect-ratio: 1; border-radius: 3px; background: var(--bg-soft); transition: transform .15s var(--ease); }
.heat i:hover { transform: scale(1.2); }
.heat i.l1 { background: color-mix(in srgb, var(--yes) 25%, var(--bg-soft)); }
.heat i.l2 { background: color-mix(in srgb, var(--yes) 50%, var(--bg-soft)); }
.heat i.l3 { background: color-mix(in srgb, var(--yes) 75%, var(--bg-soft)); }
.heat i.l4 { background: var(--yes); }

/* ---------- how it works / prose / forms */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.step { padding: 22px; }
.step .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 13px; }
.step h3 { font-size: 16px; font-weight: 600; margin-top: 14px; letter-spacing: -.01em; }
.step p { color: var(--text-2); margin-top: 6px; line-height: 1.55; }
.kv { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.kv div:nth-child(-n+2) { border-top: 0; }
.kv div:nth-child(odd) { border-right: 1px solid var(--line); }
.kv span { color: var(--text-2); }
.kv b { font-weight: 600; text-align: right; }
.olist { margin: 14px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.olist li { list-style: none; counter-increment: s; position: relative; padding-left: 34px; color: var(--text-2); line-height: 1.55; }
.olist li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-soft); color: var(--text); font-weight: 600; font-size: 12px; display: grid; place-items: center; }
.olist b { color: var(--text); font-weight: 600; }
.code { display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border-radius: 8px; background: var(--bg-soft); font-weight: 700; font-size: 16px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; transition: color var(--dur); }
.faq summary:hover { color: var(--blue); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-3); font-weight: 400; font-size: 20px; line-height: 20px; transition: transform .25s var(--ease); }
.faq details[open] summary::after { content: "+"; transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin-top: 8px; line-height: 1.6; animation: fade .3s var(--ease); }
.prose { max-width: 720px; }
.prose h2 { font-size: 18px; font-weight: 600; margin: 26px 0 6px; }
.prose p { color: var(--text-2); line-height: 1.65; margin-bottom: 8px; }
.narrow { max-width: 460px; margin: 24px auto 0; }
.narrow.wide { max-width: 640px; }
.avatar-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.avatar-grid button { aspect-ratio: 1; border-radius: 50%; border: 2px solid transparent; font-size: 22px; padding: 0; transition: transform .15s var(--ease), border-color var(--dur); }
.avatar-grid button:hover { transform: scale(1.08); }
.avatar-grid button.on { border-color: var(--blue); }
.league-row { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.league-row:first-child { border-top: 0; }
.league-row .nm { flex: 1; min-width: 140px; }
.league-row .nm b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.league-row .nm small { color: var(--text-2); }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.inline { display: flex; gap: 8px; }

/* ---------- toasts, modal */

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-pop); font-size: 14px; animation: tin .38s var(--spring); }
.toast .ti { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 1px; }
.toast .ti svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.toast .ti.ok { background: var(--yes); }
.toast .ti.err { background: var(--no); }
.toast .ti.info { background: var(--blue); }
.toast b { display: block; font-weight: 600; }
.toast p { color: var(--text-2); font-size: 13px; margin-top: 1px; }
.toast.out { opacity: 0; transform: translateX(16px) scale(.98); transition: opacity .22s var(--ease-in), transform .22s var(--ease-in); }
@keyframes tin { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.modal-back { position: fixed; inset: 0; z-index: 90; background: rgba(10, 12, 16, .5); display: grid; place-items: center; padding: 16px; animation: fade .2s var(--ease); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.modal { width: min(420px, 100%); padding: 24px; border-radius: var(--r-lg); box-shadow: var(--shadow-pop); animation: modalin .3s var(--ease); }
.modal h3 { font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.modal p { color: var(--text-2); margin-top: 8px; line-height: 1.55; }
.modal .acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
.modal-back.closing { animation: fadeout .18s var(--ease-in) both; }
.modal-back.closing .modal { animation: modalout .18s var(--ease-in) both; }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeout { to { opacity: 0; } }
@keyframes modalin { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes modalout { to { opacity: 0; transform: translateY(6px) scale(.98); } }

/* ---------- footer, tab bar */

.foot { border-top: 1px solid var(--line); margin-top: 32px; background: var(--panel); }
.foot-in { max-width: 1320px; margin: 0 auto; padding: 26px 24px 40px; color: var(--text-2); font-size: 13px; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.foot-top .logo { color: var(--text); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a, .foot-links button { transition: color var(--dur); }
.foot-links a:hover, .foot-links button:hover { color: var(--text); }
.foot p { max-width: 760px; line-height: 1.6; }
.tabbar { display: none; }

/* ---------- responsive */

@media (max-width: 1280px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .top-grid, .lb-layout, .ev-grid { grid-template-columns: minmax(0, 1fr); }
  .top-grid { align-items: start; }
  .tp { position: static; }
  .feat-body { grid-template-columns: minmax(0, 1fr); }
  .feat-chart { min-height: 200px; }
  .hdr-right .hide-t { display: none; }
}
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .app { padding: 14px 16px 96px; }
  .app.page-in, .app[data-fresh] > * { animation-duration: .26s; }
  .hdr-row { padding: 0 16px; gap: 12px; height: 56px; }
  .hdr .logo span { display: none; }
  .hsearch kbd { display: none; }
  .hdr-right .hlink, .hdr-right .hsep, .hdr-right .hide-m { display: none; }
  .hstat { padding: 2px 4px; }
  .wallet { height: 34px; }
  .wallet-bal { padding: 0 9px; font-size: 13.5px; }
  .wallet-btn { padding: 0 10px; font-size: 13px; }
  .cats { padding: 0 8px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .strip { gap: 8px 14px; }
  .strip .s-stats { gap: 8px 14px; flex-basis: 100%; }
  .strip .s-stats > .s-sep + *::before { display: none; }
  .strip .s-sep { display: none; }
  .strip .s-cta { margin-left: 0; }
  .strip .s-cta .btn { display: none; }
  .feat { min-height: 0; }
  .feat-head h2 { font-size: 18px; }
  .orow { grid-template-columns: minmax(0, 1fr) 64px; gap: 10px; }
  .orow .pc b { font-size: 20px; }
  .orow .acts { grid-column: 1 / -1; }
  .orow .acts .by, .orow .acts .bn { flex: 1; min-width: 0; }
  .pf-top { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .kv div:nth-child(odd) { border-right: 0; }
  .kv div:nth-child(2) { border-top: 1px solid var(--line); }
  .form-2 { grid-template-columns: 1fr; }
  .tbl .hide-m { display: none; }
  .tbl td, .tbl th { padding: 12px 8px; }
  .lb-row .c2, .lb-search .cols span.c2 { display: none; }
  .lb-row .c1, .lb-search .cols span { width: auto; }
  .h1 { font-size: 26px; }
  .avatar-grid { grid-template-columns: repeat(6, 1fr); }
  .heat { grid-template-columns: repeat(14, 1fr); }
  .foot { display: none; }
  .toasts { right: 16px; bottom: 80px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: color-mix(in srgb, var(--panel) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--text-2); padding: 4px 0 2px; border-radius: 10px; transition: color var(--dur), transform .15s var(--ease); }
  .tabbar a:active { transform: scale(.94); }
  .tabbar a.on { color: var(--text); font-weight: 600; }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--spring); }
  .tabbar a.on svg { transform: translateY(-1px); }
}

/* ---------- live bets */

.sec-head .live { margin-left: auto; }
.live-card { overflow: hidden; }
.live-head { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.live-head .utabs { border-bottom: 0; }
.live-tbl td { padding: 10px 12px; }
.live-tbl tbody tr.new { animation: rownew 1.4s var(--ease); }
@keyframes rownew { from { background: var(--blue-soft); } }
.live-mk { display: flex; gap: 10px; align-items: center; min-width: 0; max-width: 420px; font-weight: 600; }
.live-mk img, .live-mk .ph { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; flex: none; background: var(--bg-soft); }
.live-mk span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-mk:hover span { text-decoration: underline; }
.live-sub { margin: 4px 0 0 38px; display: flex; gap: 6px; align-items: center; font-size: 12.5px; }
.live-pl { display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.live-pl .av { width: 24px; height: 24px; font-size: 13px; }
.live-pl:hover span { text-decoration: underline; }
.pay-win { color: var(--yes-ink); font-weight: 600; }
.pay-loss { color: var(--no-ink); font-weight: 600; }
.pay-open { color: var(--text-2); font-size: 13px; }
@media (max-width: 680px) {
  .live-mk { max-width: 180px; }
  .live-sub { margin-left: 0; }
  .live-mk img, .live-mk .ph { display: none; }
  .live-pl span { display: none; }
}

/* ---------- chat */

.chat-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; margin-top: 18px; align-items: start; }
.chat-rooms { padding: 10px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 128px; }
.chat-rooms button { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--text-2); font-weight: 500; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: background var(--dur), color var(--dur); }
.chat-rooms button:hover { background: var(--bg-soft); color: var(--text); }
.chat-rooms button.on { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.chat-rooms .hash { width: 14px; color: var(--text-3); font-weight: 600; }
.chat-room-add { margin: 8px 6px 2px; font-size: 13px; color: var(--blue); font-weight: 600; }
.chat-panel { display: flex; flex-direction: column; min-height: 0; }
.chat-title { display: flex; align-items: baseline; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-title b { font-size: 16px; font-weight: 600; }
.chat-title span { font-size: 13px; }
.chat { display: flex; flex-direction: column; }
.chat-live .chat-list { height: min(62vh, 640px); overflow-y: auto; padding: 8px 18px; scroll-behavior: smooth; }
.chat-comments .chat-list { padding: 4px 0; }
.chat-empty { padding: 40px 12px; text-align: center; color: var(--text-2); }
.chat-older { display: block; margin: 6px auto 10px; border: 0; background: var(--bg-soft); color: var(--text-2); font-weight: 600; font-size: 13px; height: 30px; padding: 0 12px; border-radius: 15px; transition: color var(--dur), background var(--dur); }
.chat-older:hover { color: var(--text); background: var(--line); }
.msg { display: flex; gap: 10px; padding: 10px 0; }
.chat-comments .msg { border-bottom: 1px solid var(--line); padding: 14px 0; }
.msg .av { width: 34px; height: 34px; font-size: 17px; }
.msg-main { flex: 1; min-width: 0; }
.msg-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.msg-head .ptitle { margin-left: 2px; }
.msg-name { font-weight: 600; font-size: 14px; }
.msg-name:hover { text-decoration: underline; }
.msg-time { color: var(--text-3); }
.msg-acts { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity var(--dur); }
.msg:hover .msg-acts { opacity: 1; }
.msg-acts button { width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--text-3); display: grid; place-items: center; transition: background var(--dur), color var(--dur); }
.msg-acts button:hover { background: var(--bg-soft); color: var(--text); }
.msg-acts svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.msg-body { margin-top: 2px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-compose { padding: 12px 18px 14px; border-top: 1px solid var(--line); }
.chat-comments .chat-compose { border-top: 0; padding: 14px 0 6px; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; }
.chat-form textarea { flex: 1; min-height: 40px; max-height: 120px; resize: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 14px; background: var(--panel); color: var(--text); outline: none; line-height: 1.45; transition: border-color var(--dur), box-shadow var(--dur); }
.chat-form textarea:hover { border-color: var(--line-2); }
.chat-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.chat-form .btn { height: 40px; }
.chat-note { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 12.5px; }
.chat-locked { padding: 12px 14px; border-radius: 10px; background: var(--bg-soft); color: var(--text-2); font-size: 14px; }
.chat-locked a { font-weight: 600; margin-left: 4px; }
.badge-chip { display: inline-flex; vertical-align: middle; }
.badge-ico { display: block; flex: none; }
@media (max-width: 860px) {
  .chat-layout { grid-template-columns: minmax(0, 1fr); }
  .chat-rooms { position: static; flex-direction: row; overflow-x: auto; }
  .chat-rooms .label, .chat-rooms p { display: none; }
  .chat-rooms button { flex: none; }
  .chat-live .chat-list { height: 58vh; padding: 6px 12px; }
  .chat-compose { padding: 10px 12px 12px; }
  .msg-acts { opacity: 1; }
}

/* chat reactions and stickers */
.msg-reacts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.react { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 13px; line-height: 1; cursor: pointer; transition: border-color var(--dur), background var(--dur), transform .15s var(--spring); }
.react b { font-size: 12px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.react:hover:not(:disabled) { border-color: var(--line-2); background: var(--bg-soft); transform: scale(1.04); }
.react.on { border-color: var(--blue); background: var(--blue-soft); }
.react.on b { color: var(--blue); }
.react:disabled { cursor: default; }
.react-pick { position: relative; display: inline-flex; }
.react-add { width: 26px; height: 26px; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--text-3); display: grid; place-items: center; opacity: 0; transition: opacity var(--dur), background var(--dur); }
.msg:hover .react-add, .react-pick.open .react-add, .react-add:focus-visible { opacity: 1; }
.react-add:hover { background: var(--bg-soft); color: var(--text); }
.react-add svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.react-menu { display: none; position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 20; padding: 4px; gap: 2px; border-radius: 999px; background: var(--panel); box-shadow: var(--shadow-pop); animation: menuin .2s var(--ease); transform-origin: bottom left; }
.react-pick.open .react-menu { display: flex; }
.react-menu button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; font-size: 18px; line-height: 1; cursor: pointer; transition: transform .15s var(--spring), background var(--dur); }
.react-menu button:hover { background: var(--bg-soft); transform: scale(1.18); }
@media (hover: none) { .react-add { opacity: 1; } }
.emote { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 14px; line-height: 1; vertical-align: -6px; margin: 0 1px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.emote.big { width: 48px; height: 48px; font-size: 26px; vertical-align: middle; }
.emote-pick { position: relative; display: inline-flex; }
.emote-btn { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text-2); display: grid; place-items: center; font-size: 18px; transition: background var(--dur), color var(--dur), border-color var(--dur); }
.emote-btn:hover { color: var(--text); background: var(--bg-soft); border-color: var(--line-2); }
.emote-menu { display: none; position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 20; width: 232px; padding: 8px; border-radius: 12px; background: var(--panel); box-shadow: var(--shadow-pop); animation: menuin .2s var(--ease); transform-origin: bottom right; }
.emote-pick.open .emote-menu { display: block; }
.emote-menu .grid-e { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.emote-menu button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; display: grid; place-items: center; padding: 0; transition: background var(--dur), transform .15s var(--spring); }
.emote-menu button:hover { background: var(--bg-soft); transform: scale(1.12); }
.emote-menu p { font-size: 12px; color: var(--text-2); margin: 4px 2px 0; line-height: 1.4; }
.emote-menu a { color: var(--blue); font-weight: 600; }
.chat-count { align-self: center; color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.chat-count.near { color: var(--no); }

/* ---------- weekly */

.wk-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wk-hero .sub b { color: var(--text); font-weight: 600; }
.wk-score { display: flex; align-items: baseline; gap: 6px; padding: 10px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.wk-score b { font-size: 26px; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.wk-score span { color: var(--text-2); }
.wk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.wk-ch { padding: 16px; }
.wk-ch.done { box-shadow: 0 0 0 1.5px var(--yes); border-color: transparent; }
.wk-ch-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.wk-ch-top b { font-weight: 600; line-height: 1.35; }
.wk-reward { font-weight: 600; white-space: nowrap; }
.wk-bar { height: 6px; border-radius: 3px; background: var(--bg-soft); overflow: hidden; margin-top: 14px; }
.wk-bar i { display: block; height: 100%; border-radius: 3px; background: var(--blue); transition: width .7s var(--ease); }
.wk-ch.done .wk-bar i { background: var(--yes); }
.wk-ch-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 13px; }
.wk-perfect { display: flex; gap: 14px; align-items: center; padding: 16px 18px; margin-top: 14px; }
.wk-perfect b { font-weight: 600; }
.wk-perfect p { font-size: 13.5px; margin-top: 1px; }
.wk-perfect.done { box-shadow: 0 0 0 1.5px #7c5cff; border-color: transparent; }
.wk-races { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.wk-race { padding: 4px 18px 8px; }
.wk-race-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 14px 0 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.wk-race-head h2 { font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.wk-race-head p { font-size: 13px; }
.prizes { display: flex; gap: 10px; flex-wrap: wrap; }
.prize { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.wk-race .lb-row:last-child { border-bottom: 0; }
.wk-race .lb-row .nm { display: flex; align-items: center; gap: 6px; }
.wk-tier { flex: none; }
.wk-champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px; padding: 10px; }
.wk-champ { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; transition: background var(--dur); }
.wk-champ:hover { background: var(--bg-hover); }
.wk-champ b { display: block; font-weight: 600; }
.wk-champ small { color: var(--text-2); }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.badge-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; }
.badge-card b { display: block; font-weight: 600; font-size: 14px; }
.badge-card small { display: block; color: var(--text-2); font-size: 12.5px; line-height: 1.35; margin-top: 1px; }
.badge-card > div { flex: 1; min-width: 0; }
.badge-card.locked { opacity: .5; filter: grayscale(1); }
.badge-card:hover { border-color: var(--line-2); }
@media (max-width: 1100px) { .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wk-races { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) { .wk-grid { grid-template-columns: minmax(0, 1fr); } .tabbar { grid-template-columns: repeat(5, 1fr) !important; } }
.wk-recap { padding: 16px 20px; margin-top: 18px; }
.wk-recap-head { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.wk-recap-head b { font-size: 15px; font-weight: 600; }
.wk-recap-badges { margin-left: auto; display: inline-flex; gap: 4px; }
.wk-recap-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 12px; }
.wk-recap-tiles div { padding: 10px 12px; border-radius: 10px; background: var(--bg-soft); min-width: 0; }
.wk-recap-tiles small { display: block; font-size: 12px; color: var(--text-2); }
.wk-recap-tiles b { display: flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wk-recap-tiles b .coin { width: 15px; height: 15px; }
.wk-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.wk-lv h2 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.xp-list { list-style: none; margin-top: 14px; display: grid; gap: 0; padding: 0; }
.xp-list li { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.xp-list li:first-child { border-top: 0; }
.xp-list b { width: 64px; flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.xp-list span { color: var(--text-2); }
@media (max-width: 860px) { .wk-pair { grid-template-columns: minmax(0, 1fr); } }

/* weekly exclusives */
.ex-card { position: relative; display: flex; gap: 22px; align-items: flex-start; padding: 20px 22px; margin-top: 18px; overflow: hidden; background: linear-gradient(90deg, color-mix(in srgb, var(--ex) 9%, var(--panel)), var(--panel) 60%); }
.ex-medal { flex: none; filter: drop-shadow(0 6px 12px color-mix(in srgb, var(--ex) 35%, transparent)); }
.ex-body { flex: 1; min-width: 0; }
.ex-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ex); }
.ex-kicker .ex-dot { color: var(--text-3); }
.ex-left { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 13px; color: var(--text-2); }
.ex-left b { color: var(--text); font-weight: 600; }
.ex-card h2 { font-size: 24px; font-weight: 700; letter-spacing: -.025em; margin-top: 4px; }
.ex-card p { margin-top: 4px; font-size: 14px; }
.ex-goal { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; }
.ex-goal .wk-bar { margin: 0; }
.ex-goal .wk-bar i { background: var(--ex); }
.ex-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; }
.ex-foot > :last-child { margin-left: auto; }
.ex-card.have .wk-bar i { background: var(--yes); }
.ex-shelf { display: flex; gap: 10px; overflow-x: auto; padding: 14px; }
.ex-item { flex: none; width: 118px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border-radius: 12px; text-align: center; transition: background var(--dur), transform .2s var(--ease); }
.ex-item b { font-size: 13px; font-weight: 600; line-height: 1.25; }
.ex-item small { font-size: 12px; color: var(--text-2); }
.ex-item.missed { opacity: .55; }
.ex-item.open { box-shadow: inset 0 0 0 1.5px var(--line-2); }
a.ex-item.open:hover { background: var(--bg-soft); transform: translateY(-1px); }
@media (max-width: 680px) {
  .ex-card { flex-direction: column; gap: 12px; padding: 16px; }
  .ex-medal svg { width: 60px; height: 60px; }
  .ex-left { margin-left: 0; width: 100%; }
}

/* ---------- daily call / boosted odds */

.dc { padding: 16px 16px 14px; }
.dc.card, .boost-card.card { border-color: rgba(245, 165, 36, .4); }
.dc-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.dc-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .05em; font-size: 12px; }
.dc-label svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.dc-label.boost { color: #c58a0b; }
.dc-label.boost svg { fill: currentColor; stroke: none; }
.dc-x2 { font-size: 11px; font-weight: 700; color: #c58a0b; background: rgba(234, 179, 8, .16); padding: 2px 7px; border-radius: 999px; }
.dc-time { margin-left: auto; white-space: nowrap; }
.dc-time b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.dc-q { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-weight: 600; font-size: 15px; line-height: 1.35; }
.dc-q img, .dc-q .ph { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; background: var(--bg-soft); }
.dc-q > span { min-width: 0; }
.dc-q b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; }
.dc-q small { display: block; font-size: 12px; font-weight: 500; color: var(--text-2); margin-bottom: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-q:hover b { text-decoration: underline; }
.dc-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.dc-picks button, .dc-picks a { height: 44px; padding: 0 10px; border-radius: 9px; font-size: 14.5px; gap: 8px; min-width: 0; }
.dc-picks button span, .dc-picks a span { overflow: hidden; text-overflow: ellipsis; }
.dc-picks button b, .dc-picks a b { font-weight: 600; opacity: .75; font-variant-numeric: tabular-nums; }
.dc-picks.dis button { cursor: default; opacity: .65; }
.dc-picks.dis .by:hover { background: var(--yes-soft); }
.dc-picks.dis .bn:hover { background: var(--no-soft); }
.dc-picks.dis .bt:hover { background: var(--bg-soft); }
.boost-card .dc-picks a { text-decoration: none; }
.boost-card .dc-picks a b { font-size: 12.5px; opacity: .85; }
.boost-card .dc-picks.dis a, .boost-card .dc-picks a.dis { pointer-events: none; opacity: .65; }
.dc-lock { margin-top: 8px; height: 40px; }
.dc-note { margin-top: 12px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.dc-note b { color: var(--text); font-weight: 600; }
.dc-note b.up { color: var(--yes-ink); }
.dc-note b.down { color: var(--no-ink); }
.dc-note a { color: var(--blue); font-weight: 600; }
.dc-note a:hover { text-decoration: underline; }
.dc-bar { height: 8px; border-radius: 4px; background: var(--no); overflow: hidden; margin-top: 14px; }
.dc-bar i { display: block; height: 100%; background: var(--yes); border-right: 2px solid var(--panel); transition: width .6s var(--ease); }
.dc-split { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12.5px; font-weight: 600; }
.dc-split .muted { font-weight: 500; }
.dc-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }
.dc-foot b { color: var(--text); font-weight: 600; }
.dc-dots { display: inline-flex; gap: 3px; }
.dc-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.dc-dots i.right { background: var(--yes); }
.dc-dots i.wrong { background: var(--no); }
.dc-last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.dc-dots + .dc-last { margin-left: auto; }
.dc-close { margin-left: 6px; width: 26px; height: 26px; border: 0; border-radius: 7px; background: none; color: var(--text-3); font-size: 18px; line-height: 1; display: grid; place-items: center; transition: background var(--dur), color var(--dur); }
.dc-close:hover { background: var(--bg-soft); color: var(--text); }
.dc.wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); grid-template-areas: "head body" "q body" "foot foot"; column-gap: 32px; margin-bottom: 20px; padding: 16px 20px 14px; }
.dc.wide .dc-head { grid-area: head; }
.dc.wide .dc-q { grid-area: q; margin-top: 8px; font-size: 16px; }
.dc.wide .dc-body { grid-area: body; align-self: center; }
.dc.wide .dc-body > :first-child { margin-top: 0; }
.dc.wide .dc-foot { grid-area: foot; }
.dc.wide .dc-note { margin-top: 8px; }
@media (max-width: 860px) {
  .dc.wide { display: block; }
  .dc.wide .dc-body > :first-child { margin-top: 14px; }
}
.boost-mini-box { padding: 0; border-color: rgba(245, 165, 36, .4); }
.boost-mini { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; color: inherit; border-radius: inherit; transition: background var(--dur); }
.boost-mini:hover { background: var(--bg-hover); }
.boost-mini .bm-q { font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.boost-mini .bm-meta { color: var(--text-2); font-size: 12.5px; }

/* ---------- levels: a tier-colored mark with the number, and the XP bar */

.lvl { display: inline-grid; place-items: center; min-width: 22px; height: 18px; padding: 0 5px 0 15px; margin-left: 6px; border-radius: 5px; font-size: 10.5px; font-weight: 800; line-height: 1; color: #fff; background: var(--lv, #8f9aa8); vertical-align: 2px; font-variant-numeric: tabular-nums; letter-spacing: 0; position: relative; }
.lvl::before { content: ""; position: absolute; left: 5px; top: 5px; width: 7px; height: 8px; background: rgba(255, 255, 255, .85); clip-path: polygon(50% 0, 100% 25%, 100% 70%, 50% 100%, 0 70%, 0 25%); }
.lvbar { --lv: #8f9aa8; }
.lvbar-top { display: flex; align-items: center; gap: 8px; font-size: 13.5px; white-space: nowrap; }
.lvbar-top b { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.lvbar-top .lvmark { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--lv); color: #fff; font-size: 12px; font-weight: 800; flex: none; }
.lvbar-top span { color: var(--text-2); }
.lvbar-top small { margin-left: auto; color: var(--text-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.xpbar { height: 7px; border-radius: 4px; background: var(--bg-soft); overflow: hidden; margin-top: 8px; }
.xpbar i { display: block; height: 100%; border-radius: 4px; min-width: 4px; background: var(--lv); transition: width .8s var(--ease); }
.lvnext { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; }
.lvnext b { color: var(--text); font-weight: 600; }
.lvnext .coin { width: 13px; height: 13px; }
.menu-lv { padding: 4px 10px 8px; }
.prof-lv { margin-top: 10px; max-width: 360px; }
.ladder { display: grid; gap: 0; margin-top: 14px; }
.ladder-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.ladder-row:first-child { border-top: 0; }
.ladder-row .lvmark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800; }
.ladder-row.now { background: var(--blue-soft); margin: 0 -10px; padding: 9px 10px; border-radius: 8px; border-top-color: transparent; }
.ladder-row.now + .ladder-row { border-top-color: transparent; }
.ladder-row b { font-weight: 600; display: block; }
.ladder-row small { color: var(--text-2); display: block; font-size: 12.5px; }
.ladder-row .rw { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ladder-row .rw small { font-weight: 500; }
.ladder-row.locked { opacity: .6; }

/* ---------- getting started, what's new */

.qs { padding: 16px 18px; margin-bottom: 20px; }
.qs-head { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.qs-head b { font-size: 15px; font-weight: 600; }
.qs-total { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--text-2); }
.qs-x { width: 28px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--text-2); font-size: 20px; line-height: 1; display: grid; place-items: center; transition: background var(--dur), color var(--dur); }
.qs-x:hover { background: var(--bg-soft); color: var(--text); }
.qs-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.qs-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 10px; background: var(--bg-soft); min-width: 0; transition: background var(--dur), transform .2s var(--ease); }
a.qs-item:hover { background: var(--line); transform: translateY(-1px); }
.qs-item.done { opacity: .62; }
.qs-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); box-shadow: 0 0 0 1px var(--line-2); font-size: 12px; font-weight: 700; color: var(--text-2); }
.qs-item.done .qs-n { background: var(--yes); box-shadow: none; }
.qs-n svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.qs-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.35; }
.qs-t b { font-weight: 600; }
.qs-t small { color: var(--text-2); font-size: 12px; }
.qs-r { flex: none; font-size: 12.5px; font-weight: 700; color: var(--yes-ink); }
.qs-item.done .qs-r { color: var(--text-2); font-weight: 600; }
@media (max-width: 1100px) { .qs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .qs-list { grid-template-columns: minmax(0, 1fr); } .qs-item.done { display: none; } .qs-total { display: none; } .qs-x { margin-left: auto; } }
.wn { padding: 16px 18px; margin-bottom: 20px; background: linear-gradient(0deg, var(--blue-soft), var(--blue-soft)), var(--panel); border-color: color-mix(in srgb, var(--blue) 18%, var(--line)); }
.wn-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.wn-item { display: flex; flex-direction: column; gap: 3px; padding: 12px; border: 0; border-radius: 10px; background: var(--panel); font: inherit; font-size: 13px; line-height: 1.4; text-align: left; color: inherit; cursor: pointer; transition: box-shadow var(--dur), transform .2s var(--ease); }
.wn-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.wn-item b { font-weight: 600; color: var(--blue); }
.wn-item small { color: var(--text-2); font-size: 12.5px; }
@media (max-width: 1100px) { .wn-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .wn-list { grid-template-columns: minmax(0, 1fr); } }
.wn .qs-x { margin-left: auto; }
@media (max-width: 400px) { .hdr-signin { display: none; } }

/* ---------- badge progress, confetti, streak freezes */

.bprog { height: 5px; border-radius: 3px; background: var(--bg-soft); overflow: hidden; margin-top: 8px; }
.bprog i { display: block; height: 100%; border-radius: 3px; background: var(--blue); }
.bprog-n { display: block; margin-top: 4px; font-size: 11.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 200; }
.s-btn { border: 0; background: none; padding: 4px 8px; margin: -4px -8px; border-radius: 8px; font: inherit; cursor: pointer; transition: background var(--dur); }
.s-btn:hover { background: var(--bg-soft); }
.s-fz { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 1px 7px 1px 5px; border-radius: 999px; background: #e0f2fe; color: #0369a1; font-weight: 700; font-size: 12px; }
.s-fz.none { background: none; color: var(--text-3); padding: 0; }
.snow { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fz-head { display: flex; gap: 14px; align-items: flex-start; }
.fz-head h3 { margin: 0; }
.fz-head p { margin-top: 4px !important; }
.fz-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #e0f2fe; color: #0284c7; }
.fz-ico .snow { width: 24px; height: 24px; stroke-width: 1.5; }
.fz-have { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 12px; border-radius: 10px; background: var(--bg-soft); font-size: 14px; }
.fz-slot { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--panel); color: var(--text-3); box-shadow: 0 0 0 1px var(--line-2); }
.fz-slot.on { background: #0ea5e9; color: #fff; box-shadow: none; }
.fz-slot .snow { width: 16px; height: 16px; }
.fz-have span:last-child { margin-left: 4px; color: var(--text-2); }
.fz-have b { color: var(--text); }
.fz-note { font-size: 13px; margin-top: 10px !important; text-align: right; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .s-fz:not(.none), :root:not([data-theme="light"]) .fz-ico { background: rgba(14, 165, 233, .16); color: #7dd3fc; } }
:root[data-theme="dark"] .s-fz:not(.none), :root[data-theme="dark"] .fz-ico { background: rgba(14, 165, 233, .16); color: #7dd3fc; }

/* ---------- notifications */

.bell { position: relative; width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; color: var(--text-2); display: grid; place-items: center; transition: background var(--dur), color var(--dur); }
.bell:hover { background: var(--bg-soft); color: var(--text); }
.bell svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--spring); }
.bell:hover svg { transform: rotate(-10deg); }
.bell.unread::after { content: ""; position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--no); box-shadow: 0 0 0 2px var(--panel); }
.notes { width: min(380px, calc(100vw - 24px)); padding: 0; right: -60px; overflow: hidden; }
.notes-head { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.notes-list { max-height: min(460px, 70vh); overflow-y: auto; padding: 4px; }
.notes .note { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border-radius: 8px; }
.notes .note:hover { background: var(--bg-soft); }
.note.new { background: var(--blue-soft); }
.note.new:hover { background: var(--blue-soft); filter: brightness(.98); }
.note-ico { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.note-ico svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.note-ico.good { background: var(--yes); }
.note-ico.bad { background: var(--no); }
.note-ico.info { background: var(--blue); }
.note-ico.badge svg { width: 28px; height: 28px; stroke: none; }
.note-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; line-height: 1.35; }
.note-t b { font-weight: 600; }
.note-t small { color: var(--text-2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-at { flex: none; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.notes-empty { padding: 26px 16px; text-align: center; font-size: 14px; }
.notes-empty p { margin-top: 4px; font-size: 13px; }
@media (max-width: 680px) { .notes { position: fixed; top: 60px; left: 12px; right: 12px; width: auto; } }

/* ---------- looks from the shop: name styles, frames, titles */

.pn { display: inline; }
.pn.solid { color: var(--nl); }
.pn.grad { background-image: var(--nl); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; display: inline-block; }
:root[data-theme="dark"] .pn.solid { color: var(--nd); }
:root[data-theme="dark"] .pn.grad { background-image: var(--nd); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pn.solid { color: var(--nd); }
  :root:not([data-theme="light"]) .pn.grad { background-image: var(--nd); }
}
:root .plate-dark .pn.solid, :root .force-dark .pn.solid { color: var(--nd); }
:root .plate-dark .pn.grad, :root .force-dark .pn.grad { background-image: var(--nd); }
:root .force-light .pn.solid { color: var(--nl); }
:root .force-light .pn.grad { background-image: var(--nl); }
.pn.anim-sheen, .pn.anim-flow { background-size: 300% 100%; animation: pnflow 4s linear infinite; }
.pn.anim-sheen { animation-duration: 3.2s; animation-timing-function: ease-in-out; }
@keyframes pnflow { from { background-position: 0% 50%; } to { background-position: 300% 50%; } }
.ptitle { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-left: 6px; border-radius: 5px; background: var(--bg-soft); color: var(--text-2); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; white-space: nowrap; }
.av.avf::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: var(--ring); z-index: -1; }
.av.avf.spin::before { animation: avspin 6s linear infinite; }
@keyframes avspin { to { transform: rotate(360deg); } }
.av.avf.deco-crown::after { content: "👑"; position: absolute; top: -40%; left: 50%; transform: translateX(-50%) rotate(-12deg); font-size: .55em; line-height: 1; }
.av.avf.deco-laurel::after { content: "🌿"; position: absolute; bottom: -16%; right: -18%; font-size: .5em; line-height: 1; transform: scaleX(-1); }
.av.avf.deco-orbit::after { content: ""; position: absolute; inset: -28%; border-radius: 50%; background: radial-gradient(circle at 50% 3px, #e0f2fe 0 2.5px, transparent 3px); animation: avspin 4s linear infinite; }
.bot-tag { display: inline-flex; align-items: center; height: 16px; padding: 0 5px; margin-left: 6px; border-radius: 4px; background: var(--bg-soft); color: var(--text-3); font-size: 10px; font-weight: 700; letter-spacing: .04em; vertical-align: 2px; text-transform: uppercase; }

/* nameplates: a background and border behind chat messages and leaderboard rows */
.msg.plate { border-radius: 10px; padding: 8px 10px; background: var(--pl-bg); box-shadow: inset 0 0 0 1px var(--pl-border); margin: 3px 0; }
.msg.plate .msg-body, .msg.plate .msg-name { color: var(--pl-ink, var(--text)); }
.msg.plate .msg-time { color: var(--pl-ink, var(--text)); opacity: .78; }
.cp .msg.plate { background: var(--pl-bg); }
.cp .msg.plate .msg-name::after { color: var(--pl-ink, var(--text-2)); }
.lb-row.plate { background: var(--pl-bg); box-shadow: inset 0 0 0 1px var(--pl-border); border-radius: 10px; margin: 3px -10px; }
.lb-row.plate + .lb-row { box-shadow: none; }
.lb-row.plate:hover { background: var(--pl-bg); filter: brightness(1.06); }
.lb-row.plate .nm, .lb-row.plate .c1 { color: var(--pl-ink, var(--text)); }
.lb-row.plate .c2, .lb-row.plate .rk { color: color-mix(in srgb, var(--pl-ink, var(--text)) 84%, transparent); }
.lb-row.plate .rk { background: color-mix(in srgb, var(--pl-ink, var(--text)) 12%, transparent); }
.plate-glow { box-shadow: inset 0 0 0 1px var(--pl-border), 0 0 10px color-mix(in srgb, var(--pl-border) 45%, transparent) !important; }
.plate-holo { position: relative; box-shadow: none !important; }
.plate-holo::before { content: ""; position: absolute; inset: 0; border-radius: 10px; padding: 1.5px; background: linear-gradient(120deg, #67e8f9, #c4b5fd, #f9a8d4, #fde68a, #67e8f9); background-size: 300% 100%; animation: pnflow 6s linear infinite; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.sw-plate { width: 92%; font-size: 13px; display: block; }
.sw-plate .msg-name { font-weight: 700; }

/* ---------- profile */

.prof-wrap { position: relative; }
.prof-banner { height: 150px; border-radius: var(--r-lg); background: var(--bg-soft); position: relative; overflow: hidden; }
.prof-banner::before { content: ""; position: absolute; inset: 0; background-image: var(--pat); opacity: 1; }
.prof-banner.drift { background-size: 300% 100%; animation: pnflow 14s linear infinite; }
.prof-head { display: flex; gap: 20px; align-items: flex-end; margin-top: 18px; }
.prof-wrap.has-banner .prof-head { margin-top: -44px; padding: 0 22px; align-items: flex-start; }
.prof-wrap.has-banner .prof-who, .prof-wrap.has-banner .prof-acts { margin-top: 54px; }
.prof-head .av { width: 112px; height: 112px; font-size: 54px; box-shadow: 0 0 0 4px var(--bg); flex: none; }
.prof-wrap.has-banner .prof-head .av { box-shadow: 0 0 0 5px var(--bg); }
.prof-who { flex: 1; min-width: 0; padding-bottom: 6px; }
.prof-who h1 { font-size: 30px; font-weight: 700; letter-spacing: -.03em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.2; }
.prof-who h1 .ptitle { height: 22px; font-size: 11.5px; padding: 0 8px; }
.prof-who h1 .lvl { height: 22px; font-size: 12px; padding: 0 7px 0 18px; }
.prof-who h1 .lvl::before { top: 6px; left: 6px; width: 8px; height: 10px; }
.prof-handle { color: var(--text-2); font-size: 14px; margin-top: 2px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prof-handle .dot { color: var(--text-3); }
.has-backdrop .prof-handle { color: color-mix(in srgb, var(--text) 78%, transparent); }
.prof-bio { margin-top: 8px; font-size: 14.5px; line-height: 1.5; max-width: 620px; color: var(--text); }
.prof-badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 6px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.prof-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.prof-tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text-2); }
.prof-tag b { color: var(--text); }
.prof-tag.exam { background: rgba(245, 165, 36, .14); color: #8f5a00; border-color: transparent; }
:root[data-theme="dark"] .prof-tag.exam { color: #ffc865; }
.prof-tag .lvl { margin-left: 0; }
.prof-acts { display: flex; gap: 8px; align-self: flex-end; padding-bottom: 8px; }
.prof-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 0; }
.prof-stats div { padding: 6px 24px; border-left: 1px solid var(--line); }
.prof-stats div:first-child { border-left: 0; padding-left: 0; }
.prof-stats small { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600; }
.prof-stats b { display: block; font-size: 24px; font-weight: 700; margin-top: 6px; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.show-item { padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; position: relative; }
.show-item .sw { height: 120px; border-radius: 10px; }
.show-item b { font-weight: 600; font-size: 15px; }
.show-item small { color: var(--text-2); font-size: 12.5px; }
.show-item .tier { position: absolute; top: 22px; right: 22px; }
.show-item .show-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 12px; }
.show-foot b { font-size: 15px; }
.show-foot small { color: var(--text-2); }
.show-item.on, .coll-item.on { box-shadow: inset 0 0 0 1.5px var(--yes); }
.coll-item .btn.sm, .show-item .btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; flex: none; }
.coll-item .btn.on, .show-item .btn.on { background: var(--yes-soft); color: var(--yes-ink); border-color: transparent; }
.coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.coll-item { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 10px; min-width: 0; }
.coll-item .sw, .coll-item .sw-backdrop-mini { width: 48px; height: 48px; border-radius: 10px; flex: none; }
.coll-item > div { flex: 1; min-width: 80px; }
.coll-item b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coll-item small { display: block; color: var(--text-2); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coll-value { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; background: var(--bg-soft); font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.coll-value .coin { width: 15px; height: 15px; }
.coll-head .coll-meta { display: inline-flex; align-items: center; gap: 10px; }
.coll-count { color: var(--text-2); font-size: 13.5px; }
.coll-head .btn.sm { height: 30px; }
.coll-types { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 14px; }
.coll-types a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; background: var(--bg-soft); color: var(--text-2); font-size: 13px; font-weight: 600; transition: background var(--dur), color var(--dur); }
.coll-types a:hover { color: var(--text); background: var(--line); }
.coll-types a b { font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.coll-sec { margin-top: 10px; scroll-margin-top: 130px; }
.coll-sec-head { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 8px; }
.coll-sec-head h3 { font-size: 14.5px; font-weight: 600; }
.coll-sec-head .muted { font-size: 12.5px; }
.coll-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.coll-card { flex: none; width: 212px; padding: 10px; position: relative; scroll-snap-align: start; }
.coll-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-hover); }
.coll-sec.themes .coll-card { width: 260px; }
.coll-card .sw, .coll-card .sw-backdrop-mini { width: 100%; height: 86px; border-radius: 9px; }
.coll-sec.themes .coll-card .sw { height: 110px; }
.coll-card .tier { position: absolute; top: 14px; right: 14px; height: 16px; font-size: 9.5px; padding: 0 5px; }
.coll-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 9px; }
.coll-card-foot b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coll-card-foot small { display: block; color: var(--text-2); font-size: 11.5px; white-space: nowrap; }
.coll-card-foot > div { flex: 1; min-width: 0; }
.coll-card .btn.sm { height: 28px; padding: 0 9px; font-size: 12px; flex: none; }
.coll-card.on { box-shadow: inset 0 0 0 1.5px var(--yes); }
.coll-card .btn.on { background: var(--yes-soft); color: var(--yes-ink); border-color: transparent; }
/* the Equipped / Unequip toggle shows one label at a time */
.si-foot .btn.toggle .is, .si-foot .btn.toggle .off, .coll-item .btn.toggle .is, .coll-item .btn.toggle .off, .show-item .btn.toggle .is, .show-item .btn.toggle .off, .coll-card .btn.toggle .is, .coll-card .btn.toggle .off { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.si-foot .btn.toggle .off, .coll-item .btn.toggle .off, .show-item .btn.toggle .off, .coll-card .btn.toggle .off { display: none; }
.si-foot .btn.toggle:hover:not(.busy) .is, .coll-item .btn.toggle:hover .is, .show-item .btn.toggle:hover .is, .coll-card .btn.toggle:hover .is { display: none; }
.si-foot .btn.toggle:hover:not(.busy) .off, .coll-item .btn.toggle:hover .off, .show-item .btn.toggle:hover .off, .coll-card .btn.toggle:hover .off { display: inline-flex; }
.si-foot .btn.toggle:hover:not(.busy), .coll-item .btn.toggle:hover, .show-item .btn.toggle:hover, .coll-card .btn.toggle:hover { background: var(--bg-soft); color: var(--text); }
.si-foot .btn .ck, .si-price.bought .ck, .si-on-ribbon .ck { display: inline-block; flex: none; }
.prof-backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .9; }
.prof-backdrop.drift, .prof-backdrop.drift-opaque { background-size: 300% 300% !important; animation: pnflow 18s linear infinite; }
.sw-backdrop { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 12px; background-color: var(--bg); }
.sw-backdrop i { display: block; height: 14px; border-radius: 5px; background: var(--panel); border: 1px solid var(--line); opacity: .95; }
.sw-backdrop i:first-child { width: 55%; } .sw-backdrop i:nth-child(2) { width: 90%; } .sw-backdrop i:nth-child(3) { width: 70%; }
.sw-backdrop-mini { background-color: var(--bg); }
@media (max-width: 860px) {
  .prof-stats { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .prof-stats div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 680px) {
  .prof-banner { height: 110px; border-radius: 12px; }
  .prof-head { gap: 14px; }
  .prof-wrap.has-banner .prof-head { margin-top: -34px; padding: 0 12px; }
  .prof-wrap.has-banner .prof-who, .prof-wrap.has-banner .prof-acts { margin-top: 42px; }
  .prof-head .av { width: 84px; height: 84px; font-size: 40px; }
  .prof-head .prof-acts a.btn { display: none; }
  .prof-head .prof-lv { max-width: none; }
  .prof-who h1 { font-size: 24px; }
  .prof-acts { flex-direction: column; }
  .prof-acts .btn { height: 32px; padding: 0 12px; font-size: 13px; }
  .prof-stats b { font-size: 20px; }
  .prof-stats div { padding: 6px 14px; }
  .showcase { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- shop */

.bal-pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.bal-pill .coin { width: 18px; height: 18px; }
.bal-pill small { color: var(--text-2); font-weight: 500; font-size: 13px; }
.shop-tabs { border-bottom: 0; gap: 6px; margin-top: 16px; padding: 4px; background: var(--bg-soft); border-radius: 12px; width: max-content; max-width: 100%; }
.shop-tabs button { position: relative; z-index: 1; height: 36px; padding: 0 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: color var(--dur), background var(--dur); }
.shop-tabs button:hover { color: var(--text); background: var(--panel); }
.shop-tabs .on { color: var(--bg); background: var(--text); font-weight: 700; }
.shop-tabs .on::after { display: none; }
.shop-tabs.has-ind .on, .shop-tabs.has-ind button.on:hover { background: transparent; color: var(--bg); }
.shop-tabs .ind { top: 4px; bottom: auto; height: 36px; border-radius: 9px; background: var(--text); z-index: 0; }
.shop-tabs button.featured-tab::before { content: "★"; margin-right: 6px; font-size: 12px; }
@media (max-width: 680px) { .shop-tabs button { height: 34px; padding: 0 11px; font-size: 13px; } }
.drops { margin-top: 20px; padding: 18px 20px; position: relative; overflow: hidden; background: linear-gradient(90deg, var(--bg-soft), var(--panel) 70%); }
.drops-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.drops-head h2 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.drops-head .kick { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.drops-head .left { margin-left: auto; color: var(--text-2); font-size: 13px; }
.drops-head .left b { color: var(--text); }
.drops-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.si { display: flex; flex-direction: column; min-width: 0; padding: 12px; position: relative; }
.si.off { opacity: .55; }
.si .sw { height: 92px; border-radius: 10px; position: relative; overflow: hidden; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; }
.si .sw.tall { height: 110px; }
.si-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.si-name b { font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.si-desc { color: var(--text-2); font-size: 12.5px; line-height: 1.4; margin-top: 3px; min-height: 34px; }
.si-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.si-price { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.si-price .coin { width: 15px; height: 15px; }
.si-price.free { color: var(--yes-ink); }
.si-foot .btn { height: 32px; padding: 0 12px; font-size: 13px; }
.si-foot .btn.on { background: var(--yes-soft); color: var(--yes-ink); border-color: transparent; display: inline-flex; align-items: center; gap: 4px; }
.si-foot .btn .ck { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.si-foot .btn.busy { opacity: .6; }
.si-price.bought { color: var(--yes-ink); gap: 5px; }
.si-price.bought .ck { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.si-price.bought small { font-weight: 600; color: var(--text-2); font-size: 12px; }
.si.owned { box-shadow: inset 0 0 0 1px var(--line-2); }
.si.on { box-shadow: inset 0 0 0 1.5px var(--yes); }
.si.on:hover { box-shadow: inset 0 0 0 1.5px var(--yes), var(--shadow-hover); }
.si-on-ribbon { position: absolute; top: 18px; left: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--yes); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.si-on-ribbon .ck { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.si.black { background: linear-gradient(160deg, #101114, #17181c); color: #f3f4f6; border-color: #26272b; }
.si.black .si-desc, .si.black .si-stock { color: #a1a1aa; }
.si.black .tier.limited { background: #000; color: #e5e7eb; box-shadow: inset 0 0 0 1px #3f3f46; }
.si.black .sw { background: #0b0b0d; }
.si.black .si-foot .btn:not(.blue):not(.on) { background: #26272b; color: #f3f4f6; border-color: #3f3f46; }
.black-label .sec-head h2 { display: inline-flex; align-items: center; gap: 8px; }
.black-label .sec-head h2::before { content: "♠"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #000; color: #fff; font-size: 14px; }
.si-stock { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--text-2); min-height: 20px; }
.si-stock .owners { display: inline-flex; }
.si-stock .owners .av { width: 20px; height: 20px; font-size: 11px; margin-left: -6px; box-shadow: 0 0 0 2px var(--panel); }
.si-stock .owners .av:first-child { margin-left: 0; }
.si-stock .no { margin-left: auto; font-weight: 600; color: var(--text); }
.si-stock .bar { flex: 1; height: 4px; border-radius: 2px; background: var(--bg-soft); overflow: hidden; }
.si-stock .bar i { display: block; height: 100%; background: var(--no); }
.tier { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; flex: none; }
.tier.common { background: var(--bg-soft); color: var(--text-2); }
.tier.rare { background: rgba(46, 92, 255, .12); color: var(--blue); }
.tier.epic { background: rgba(124, 92, 255, .14); color: #6d4de6; }
.tier.legendary { background: rgba(245, 165, 36, .18); color: #a96a00; }
.tier.mythic { background: linear-gradient(90deg, #e3a008, #e8434e); color: #fff; }
.tier.limited { background: #1c1f26; color: #f6e3a1; }
.tier.season { background: rgba(249, 115, 22, .14); color: #c2410c; }
.tier.soon { background: var(--bg-soft); color: var(--text-2); }
:root[data-theme="dark"] .tier.legendary { color: #ffc865; }
:root[data-theme="dark"] .tier.epic { color: #a995ff; }
:root[data-theme="dark"] .tier.limited { background: #f6e3a1; color: #1c1f26; }
.si-ribbon { position: absolute; top: 10px; left: 10px; z-index: 2; }
.si .sw .mini { width: 86%; border-radius: 9px; padding: 9px 10px; font-size: 10px; line-height: 1.2; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); position: relative; overflow: hidden; }
.mini-row { display: flex; align-items: center; gap: 6px; }
.mini-av { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; flex: none; }
.mini-bar { height: 4px; border-radius: 2px; margin: 7px 0 6px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; width: 62%; border-radius: 2px; }
.mini-btn { display: inline-block; padding: 3px 7px; border-radius: 5px; font-weight: 700; font-size: 9.5px; }
.mini-stamp { position: absolute; top: 6px; right: 8px; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.sw-sheen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .3) 50%, transparent 65%); transform: translateX(-100%); animation: swsheen 4.5s ease-in-out infinite; }
@keyframes swsheen { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.sw-holo { background-size: 300% 300% !important; animation: pnflow 9s linear infinite; }
.sw-bar { width: 80%; height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.sw-bar i { display: block; height: 100%; width: 70%; border-radius: 5px; }
.sw-bar.stripes i { background-size: 28.28px 28.28px; animation: swstripes .8s linear infinite; }
@keyframes swstripes { to { background-position: 28.28px 0; } }
.sw-bar.flow i { background-size: 300% 100% !important; animation: pnflow 4s linear infinite; }
.sw-bar.pulse i { animation: swpulse 1.8s ease-in-out infinite; }
@keyframes swpulse { 50% { filter: brightness(1.35); } }
.sw-bar.sheen { position: relative; }
.sw-deck { position: absolute; inset: 0; background-color: #f5f5f5; background-image: var(--pat), var(--wash); }
.sw-deck-rows { position: relative; display: grid; gap: 6px; width: 70%; }
.sw-deck-rows i { display: block; height: 7px; border-radius: 3px; background: rgba(0, 0, 0, .12); }
.sw-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; width: 90%; }
.sw-btns span { height: 26px; border-radius: 6px; display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.sw-counts { display: flex; gap: 14px; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sw-counts.bold { font-size: 22px; font-weight: 800; }
.sw-text { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.sw-text .ptitle { height: 20px; font-size: 11px; }
.sw-banner { position: absolute; inset: 0; background: var(--bg); background-size: 300% 100%; }
.sw-banner::before { content: ""; position: absolute; inset: 0; background-image: var(--pat); }
.sw-banner.drift { animation: pnflow 14s linear infinite; }
.sw-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(20, 22, 26, .8); color: #fff; font-size: 12.5px; font-weight: 600; }
.sw-pill .coin { width: 13px; height: 13px; }
.sw-tbar { display: inline-flex; align-items: baseline; gap: 16px; padding: 7px 16px 8px; border-radius: 0 0 10px 10px; background: #3a3a3a; color: #fff; font: 700 13.5px/1.2 -apple-system, "Segoe UI", system-ui, sans-serif; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.sw-tbar span { color: #fff; opacity: .55; }
.sw-widget { width: 90%; padding: 8px 10px; border-radius: 8px; background: var(--panel); box-shadow: var(--shadow), 0 0 0 1px var(--line); font-size: 11.5px; line-height: 1.35; color: var(--text-2); }
.sw-widget b { color: var(--text); }
.sw-widget .wbar { height: 4px; border-radius: 2px; background: var(--bg-soft); margin-top: 5px; overflow: hidden; }
.sw-widget .wbar i { display: block; width: 55%; height: 100%; background: var(--blue); }
.sw-widget .wdots { display: flex; gap: 3px; margin-top: 5px; }
.sw-widget .wdots i { width: 8px; height: 8px; border-radius: 2px; background: var(--line); }
.sw-widget .wdots i.g { background: var(--yes); }
.sw-widget .wdots i.s { background: var(--blue); opacity: .5; }
.sw-play { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; transition: box-shadow var(--dur), transform .15s var(--ease); }
.sw-play:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.sw-play svg { width: 14px; height: 14px; fill: currentColor; }
.sw-av { width: 56px; height: 56px; font-size: 28px; }
.sw-up { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13px; color: var(--text); }
.sw-up .fz-ico { width: 38px; height: 38px; border-radius: 10px; }
.shop-sec { margin-top: 30px; }
.shop-sec .sec-head { margin: 0 0 12px; align-items: baseline; }
.shop-sec .sec-head h2 { font-size: 17px; }
.shop-sec .sec-head span { font-size: 13px; }
.gone-shelf { opacity: .8; }
.shop-note { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-size: 13.5px; color: var(--text-2); margin-top: 14px; line-height: 1.5; }
.shop-note b { color: var(--text); }
.soon-day { margin-top: 24px; }
.soon-day h3 { font-size: 15px; font-weight: 600; display: flex; gap: 10px; align-items: baseline; margin-bottom: 10px; }
.soon-day h3 span { color: var(--text-2); font-weight: 500; font-size: 13px; }
.yourlook { padding: 16px 18px; margin-top: 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.yourlook .av { width: 64px; height: 64px; font-size: 32px; }
.yourlook-name { font-size: 20px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.yourlook-eq { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.yourlook-eq span { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--bg-soft); font-size: 12px; font-weight: 600; color: var(--text-2); }
.yourlook-eq span b { color: var(--text); margin-left: 4px; }
.buy-box .sw { height: 120px; border-radius: 12px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; margin: 14px 0; }
.buy-sum { display: grid; gap: 6px; font-size: 14px; }
.buy-sum div { display: flex; justify-content: space-between; color: var(--text-2); }
.buy-sum b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.buy-where { margin: 10px 0 4px; padding: 9px 11px; border-radius: 9px; background: var(--bg-soft); font-size: 13px; line-height: 1.45; color: var(--text-2); }
.buy-where b { color: var(--text); font-weight: 600; }
.theme-sw { background-image: var(--pat), var(--wash) !important; background-color: #15171a; display: flex; flex-direction: column; justify-content: space-between; padding: 10px; }
.theme-sw .mini { width: 100%; }
.theme-strip { display: flex; gap: 4px; align-items: center; margin-top: 8px; }
.theme-strip span { flex: 1; height: 20px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.theme-strip .theme-counts { flex: none; display: inline-flex; gap: 6px; background: none; padding: 0 2px; }
.theme-strip .theme-counts b { font-size: 11px; color: var(--l); }
:root[data-theme="dark"] .theme-strip .theme-counts b, .si.black .theme-strip .theme-counts b { color: var(--d); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-strip .theme-counts b { color: var(--d); } }
.si .sw.theme-sw { height: 150px; }
.si-parts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.si-parts span { font-size: 10.5px; font-weight: 600; color: var(--text-2); background: var(--bg-soft); border-radius: 5px; padding: 1px 6px; }
.themes .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.show-more { display: block; margin: 14px auto 0; }
.shop-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.shop-strip .si { flex: none; width: 236px; scroll-snap-align: start; }
.limited-strip .sec-head { margin-top: 22px; }
.sw.sw-deck-split, .sw-deck-split { display: grid !important; grid-template-columns: 1fr 1fr; grid-template-rows: 100%; align-items: stretch !important; padding: 0; }
.sw-deck-half { position: relative; display: flex; align-items: center; justify-content: center; background-color: #f5f5f5; }
.sw-deck-half.dark { background-color: #2c2c2c; }
.sw-deck-text { font: 600 18px ui-monospace, Menlo, monospace; color: #111; }
.sw-deck-half.dark .sw-deck-text { color: #e6e9ef; }
.sw-deck-half small { position: absolute; left: 7px; bottom: 5px; font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: rgba(0, 0, 0, .45); }
.sw-deck-half.dark small { color: rgba(255, 255, 255, .5); }
@media (max-width: 1100px) { .shop-grid, .themes .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .themes .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .drops-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) { .themes .shop-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .shop-grid { grid-template-columns: minmax(0, 1fr); } .yourlook { grid-template-columns: minmax(0, 1fr); } }

/* weekly drops hero */
.drops-hero { position: relative; margin-top: 18px; padding: 22px 22px 20px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.drops-hero::before { content: ""; position: absolute; inset: 0; background: var(--drop-bg); opacity: .22; pointer-events: none; }
.drops-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--panel) 85%); pointer-events: none; }
.drops-hero > * { position: relative; z-index: 1; }
.drops-hero-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.drops-hero-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -.025em; margin: 2px 0 4px; }
.drops-hero-head .kick { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.drops-hero-head p { max-width: 520px; font-size: 13.5px; }
.drops-timer { flex: none; text-align: right; padding: 10px 14px; border-radius: 12px; background: var(--bg-soft); }
.drops-timer small { display: block; font-size: 11.5px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.drops-timer b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.drops-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; margin-top: 16px; }
.drops-big .si .sw.tall { height: 196px; }
.drops-big .si .mini { transform: scale(1.15); }
.drops-side { display: grid; gap: 14px; }
.drops-side .si { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; column-gap: 14px; align-items: start; }
.drops-side .si .sw { grid-column: 1; grid-row: 1 / span 3; width: 150px; height: 92px; }
.drops-side .si .si-name { grid-column: 2; grid-row: 1; margin-top: 2px; min-width: 0; }
.drops-side .si .si-desc { grid-column: 2; grid-row: 2; min-height: 0; margin-top: 4px; }
.drops-side .si .si-stock { grid-column: 2; grid-row: 3; margin-top: 6px; white-space: nowrap; }
.drops-side .si .si-foot { grid-column: 3; grid-row: 1 / span 3; align-self: center; margin: 0; flex-direction: column; align-items: flex-end; gap: 8px; }
@media (max-width: 1180px) {
  .drops-side .si { grid-template-columns: 104px minmax(0, 1fr) auto; column-gap: 12px; }
  .drops-side .si .sw { width: 104px; height: 80px; }
  .drops-side .si .sw .sw-text { font-size: 16px; }
}
@media (max-width: 900px) {
  .drops-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .drops-side .si { display: flex; flex-direction: column; align-items: stretch; }
  .drops-side .si .sw { width: auto; }
  .drops-side .si .si-foot { align-self: stretch; flex-direction: row; align-items: center; margin-top: 10px; }
}

/* the shop link stands out: a gold pill in the header and a gold tab on phones */
.hlink.shop-link { color: #7a5000; background: linear-gradient(135deg, #fde68a, #f3d27a 60%, #e3b85a); border: 1px solid rgba(122, 80, 0, .18); font-weight: 700; padding: 0 12px 0 10px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); position: relative; overflow: hidden; }
.hlink.shop-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-100%); animation: am-sheen-link 5s ease-in-out infinite; pointer-events: none; }
@keyframes am-sheen-link { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.hlink.shop-link:hover { color: #5a3a00; background: linear-gradient(135deg, #fff1b8, #f6e3a1 60%, #ecc56a); }
.hlink.shop-link svg { stroke-width: 2; }
.tabbar a[data-nav="shop"] { color: #c9962a; }
.tabbar a[data-nav="shop"] svg { stroke: #c9962a; }
.tabbar a[data-nav="shop"].on { color: #e3b85a; }
.spin-name { color: var(--blue); }
.spin-only { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.spin-only .tag small { color: var(--text-3); font-weight: 500; margin-left: 3px; }

/* ---------- online */

.on-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 8px; color: var(--text-2); font-weight: 500; white-space: nowrap; transition: background var(--dur), color var(--dur); }
.on-pill:hover { background: var(--bg-soft); color: var(--text); }
.on-pill i, .on-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yes); flex: none; }
.on-pill.zero i { background: var(--text-3); }
.on-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.on-card { padding: 4px 16px 8px; }
.on-card h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; padding: 12px 0 8px; border-bottom: 1px solid var(--line); }
.on-card h2 .n { margin-left: auto; color: var(--text-2); font-weight: 500; font-size: 13px; }
.on-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.on-row:last-child { border-bottom: 0; }
.on-row .av { width: 38px; height: 38px; font-size: 19px; }
.on-row .nm { flex: 1; min-width: 0; }
.on-row .nm b { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.on-row .nm small { display: block; color: var(--text-2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.on-row .at { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.on-row .st { width: 8px; height: 8px; border-radius: 50%; background: var(--yes); flex: none; }
.on-row .st.idle { background: var(--gold); }
.on-row .st.off { background: var(--text-3); }
.on-empty { padding: 26px 0; text-align: center; color: var(--text-2); font-size: 14px; }
.on-note { margin-top: 18px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
@media (max-width: 860px) { .on-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- chat rail (header button + a column down the right side) */

:root { --chat-w: 320px; }
body { transition: padding-right .34s var(--ease); }
.chat-slot { display: inline-flex; }
.hchat { position: relative; height: 36px; padding: 0 10px 0 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text-2); display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; cursor: pointer; transition: background var(--dur), color var(--dur), border-color var(--dur); }
.hchat:hover, .hchat.open { color: var(--text); background: var(--bg-soft); border-color: var(--line-2); }
.hchat svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hchat-on { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.hchat-on i { width: 7px; height: 7px; border-radius: 50%; background: var(--yes); box-shadow: 0 0 0 2px color-mix(in srgb, var(--yes) 20%, transparent); }
.hchat-on.zero i { background: var(--text-3); box-shadow: none; }
.hchat-unread { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--no); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--panel); animation: tin .4s var(--spring); }
.hchat.hidden { display: none; }
.cp { position: fixed; top: 0; right: 0; bottom: 0; z-index: 81; width: var(--chat-w); display: flex; flex-direction: column; background: var(--panel); border-left: 1px solid var(--line); animation: cpin .34s var(--ease); }
.cp.out { animation: cpout .22s var(--ease-in) both; pointer-events: none; }
@keyframes cpin { from { opacity: 0; transform: translateX(28px); } }
@keyframes cpout { to { opacity: 0; transform: translateX(28px); } }
.cp-head { display: flex; align-items: center; gap: 8px; height: 64px; padding: 0 10px 0 14px; border-bottom: 1px solid var(--line); flex: none; }
.cp-head b { font-size: 15px; font-weight: 600; }
.cp-head .select { height: 32px; font-size: 13px; padding-left: 10px; max-width: 150px; }
.cp-head .on-pill { height: 28px; padding: 0 8px; font-size: 12.5px; }
.cp-x, .cp-full { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--text-2); display: grid; place-items: center; transition: background var(--dur), color var(--dur); }
.cp-x:hover, .cp-full:hover { background: var(--bg-soft); color: var(--text); }
.cp-x svg, .cp-full svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cp-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cp-body .chat { flex: 1; min-height: 0; }
.cp-body .chat-live .chat-list { height: auto; flex: 1; min-height: 0; padding: 8px 10px; }
.cp-body .chat-empty { padding: 60px 12px; font-size: 13.5px; }
.cp .msg { position: relative; gap: 8px; padding: 7px 9px; margin: 3px 0; border-radius: 8px; background: var(--bg-soft); }
.cp .msg.mine { background: var(--blue-soft); }
.cp .msg .av { width: 22px; height: 22px; font-size: 12px; margin-top: 1px; }
.cp .msg-main { display: block; min-width: 0; }
.cp .msg-head { display: inline; font-size: 13px; }
.cp .msg-head .lvl, .cp .msg-head .badge-chip, .cp .msg-head .ptitle, .cp .msg-head .tag { vertical-align: middle; }
.cp .msg-name { font-size: 13.5px; }
.cp .msg-name::after { content: ":"; color: var(--text-2); font-weight: 600; }
.cp .msg-body { display: inline; margin: 0 0 0 4px; font-size: 13.5px; line-height: 1.45; }
.cp .msg-time { position: absolute; top: 7px; right: 9px; font-size: 11.5px; opacity: 0; transition: opacity var(--dur); }
.cp .msg:hover .msg-time { opacity: 1; }
.cp .msg-acts { position: absolute; top: 3px; right: 44px; margin: 0; }
.cp .msg-reacts { margin-top: 5px; }
.cp .chat-compose { padding: 10px 10px 10px; flex: none; }
.cp .chat-form { flex-wrap: wrap; position: relative; gap: 8px; }
.cp .chat-form textarea { flex: 1 1 100%; padding-right: 40px; min-height: 42px; }
.cp .chat-form .emote-pick { position: absolute; right: 6px; top: 5px; }
.cp .chat-form .chat-count { order: 2; margin-right: auto; }
.cp .chat-form .btn { order: 3; height: 34px; padding: 0 16px; }
.cp .chat-note { margin-top: 6px; }
.cp .chat-note .faint { display: none; }
.cp .chat-locked { font-size: 13px; }
@media (min-width: 1640px) {
  body.chat-open { padding-right: var(--chat-w); }
  body.chat-open .toasts { right: calc(var(--chat-w) + 20px); }
}
@media (max-width: 1639px) {
  .cp { width: min(360px, 100vw); box-shadow: var(--shadow-pop); }
}
@media (max-width: 680px) {
  .cp { left: 0; width: auto; z-index: 95; border-left: 0; }
  .cp-head { height: 56px; }
  body.chat-open { overflow: hidden; }
  .toasts { z-index: 100; }
  .hchat { padding: 0 8px; }
  .hchat-on { display: none; }
}

/* ---------- the rating wheel */

.spin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; margin-top: 18px; }
.wheel-box { position: relative; width: min(380px, 100%); aspect-ratio: 1; margin: 0 auto; }
.wheel { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 6px var(--panel), 0 0 0 7px var(--line-2), 0 14px 40px -14px rgba(0, 0, 0, .4); transition: transform 5.2s cubic-bezier(.17, .67, .12, 1); }
.wheel svg { width: 100%; height: 100%; display: block; }
.wheel text { font: 700 12px var(--font); fill: #fff; letter-spacing: 0; }
.wheel-pin { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid var(--text); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); z-index: 2; }
.wheel-hub { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--panel); box-shadow: var(--shadow-pop); display: grid; place-items: center; font-weight: 800; font-size: 12px; letter-spacing: .04em; z-index: 2; }
.spin-steps { padding: 20px; }
.spin-steps .olist li { font-size: 14.5px; }
.spin-odds { margin-top: 16px; }
.spin-odds div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.spin-odds div:first-child { border-top: 0; }
.spin-odds span { color: var(--text-2); }
.spin-odds b { font-weight: 600; font-variant-numeric: tabular-nums; }
.spin-odds .jack { color: #a96a00; }
.spin-result { text-align: center; }
.spin-result .big { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 10px; }
.spin-result .badge-ico { margin: 0 auto; }
@media (max-width: 860px) { .spin-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---------- settings: photo, display name, switches */

.photo-row { display: flex; align-items: center; gap: 16px; }
.photo-row .av { width: 72px; height: 72px; font-size: 34px; }
.photo-row .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.switch { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.switch:first-of-type { border-top: 0; }
.switch input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--blue); flex: none; }
.switch b { display: block; font-weight: 600; font-size: 14px; }
.switch small { display: block; color: var(--text-2); font-size: 13px; line-height: 1.45; margin-top: 1px; }

/* ---------- live chart dots, search dropdown */

.chart .live-dot .halo { transform-box: fill-box; transform-origin: center; animation: livehalo 1.7s ease-out infinite; }
.chart .live-dot .core { animation: livecore 1.7s ease-in-out infinite; }
.chart .end-dot .halo { opacity: .18; }
@keyframes livehalo { 0% { transform: scale(.5); opacity: .55; } 70% { transform: scale(2.4); opacity: 0; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes livecore { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.hsearch { position: relative; }
.search-pop { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 70; background: var(--panel); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 6px; cursor: default; transform-origin: top; animation: menuin .22s var(--ease); }
.sp-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; transition: background var(--dur); }
.sp-row:hover, .sp-row.on { background: var(--bg-soft); }
.sp-row img, .sp-row .ph { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; flex: none; background: var(--bg-soft); }
.sp-t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 500; }
.sp-t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-t small { color: var(--text-2); font-weight: 400; font-size: 12px; }
.sp-row b { font-variant-numeric: tabular-nums; font-size: 14px; }
.sp-all { display: block; padding: 9px 10px; border-top: 1px solid var(--line); margin-top: 4px; color: var(--text-2); font-weight: 500; font-size: 13px; transition: color var(--dur); }
.sp-all:hover { color: var(--text); }
.sp-empty { padding: 14px 10px; color: var(--text-2); font-size: 13.5px; }
@media (max-width: 680px) { .search-pop { position: fixed; left: 8px; right: 8px; top: 60px; } }

/* ---------- Inside Anki (add-on 1.0.5+): the Markets panel under Anki's top toolbar (/anki/panel) and
   the full site in Anki's Markets window. theme.js adds .in-anki; --ak-canvas is Anki's own background. */
.in-anki .no-anki { display: none !important; }
body.ak-body { margin: 0; background: var(--ak-canvas, var(--bg)); overflow: hidden; }
.ak { display: grid; gap: 10px; max-width: 1240px; margin: 0 auto; padding: 10px 16px 12px; }
.ak:empty { padding: 0; }
.ak-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ak-me { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; max-width: 240px; color: var(--text); }
.ak-me .av { width: 38px; height: 38px; font-size: 19px; position: relative; }
.ak-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ak-name { display: flex; align-items: center; min-width: 0; }
.ak-name b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ak-name .lvl { flex: none; }
.ak-who small { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ak-me:hover .ak-name b { text-decoration: underline; }
.ak .strip { margin: 0; flex: 1 1 auto; min-width: 0; min-height: 42px; padding: 8px 14px; gap: 14px; flex-wrap: nowrap; overflow: hidden; }
.ak .strip .bar { width: 96px; }
.ak .wallet { flex: none; }
.ak-bottom { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ak-scroll { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; padding: 1px; scrollbar-width: none; }
.ak-scroll::-webkit-scrollbar { display: none; }
.ak-scroll.ak-fade { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.ak-chip { flex: none; width: 276px; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); color: var(--text); transition: box-shadow var(--dur); }
.ak-chip:hover { box-shadow: 0 0 0 1px var(--line-2), var(--shadow-hover); }
.ak-chip > img, .ak-chip > .ph { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; flex: none; background: var(--bg-soft); }
.ak-chip-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ak-chip-q { font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ak-chip-q b { font-weight: 700; font-variant-numeric: tabular-nums; }
.ak-chip-m { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.ak-chip-m > * { flex: none; }
.ak-chip-m b { color: var(--text); font-weight: 600; }
.ak-chip-m .coin { width: 13px; height: 13px; }
.ak-chip-m .tag { flex: 0 1 auto; min-width: 34px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 20px; }
.ak-chip-m .live { font-size: 12px; }
.ak-score { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.ak-dim { color: var(--text-3); }
.ak-boost { box-shadow: 0 0 0 1px rgba(245, 165, 36, .38); }
.ak-boost:hover { box-shadow: 0 0 0 1px rgba(245, 165, 36, .6), 0 4px 14px -2px rgba(245, 165, 36, .18); }
.ak-boost .dc-label { font-size: 11px; letter-spacing: .04em; }
.ak-bolt { width: 34px; height: 34px; border-radius: 7px; flex: none; display: grid; place-items: center; background: rgba(245, 165, 36, .16); color: #c58a0b; }
.ak-bolt svg { width: 17px; height: 17px; fill: currentColor; }
.ak-logos { display: grid; gap: 2px; flex: none; }
.ak-logos img, .ak-logos .ph { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; display: block; }
.ak-logos .ph { background: var(--bg-soft); }
.ak-more { width: auto; min-width: 150px; }
.ak-side { flex: none; display: flex; align-items: center; gap: 8px; }
.ak-side .hlink { height: 38px; }
.ak-open { height: 38px; }
.ak-pitch { flex-wrap: nowrap; }
.ak-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; flex: none; color: var(--text); }
.ak-brand .logo-mark { width: 22px; height: 22px; }
.ak-pitch-t { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.ak-pitch .btn { flex: none; }
.ak-hint { position: relative; height: 34px; margin-top: -4px; }
.ak-hint-bubble { position: absolute; top: 6px; left: 0; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; box-shadow: 0 6px 18px -6px rgba(46, 92, 255, .55); animation: ak-bob 1.8s ease-in-out infinite; }
.ak-hint-bubble b { font-weight: 700; margin: 0 .3em; }
.ak-hint-caret { position: absolute; top: -6px; left: 20px; width: 14px; height: 7px; background: var(--blue); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
@keyframes ak-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (max-width: 1100px) { .ak .ak-opt { display: none; } }
@media (max-width: 920px) {
  .ak .strip { gap: 12px; }
  .ak .strip .s-sep, .ak .ak-lbl { display: none; }
  .ak-who small { display: none; }
  .ak-pitch-t { display: none; }
  .ak-side .hlink { display: none; }
}
@media (max-width: 780px) {
  .ak-who { display: none; }
  .ak .strip .bar { width: 56px; }
  .ak-open { display: none; }
}

/* ---------- a profile background dark or light enough to need its own scheme: the whole profile follows it */
.force-dark {
  --bg: #0f1114; --bg-soft: #1e2127; --bg-hover: #1b1e24; --panel: #16181d; --line: #262a31; --line-2: #343941;
  --text: #eceef1; --text-2: #9aa1ab; --text-3: #6e757e; --blue: #4c74ff; --blue-hover: #6487ff; --blue-soft: rgba(76, 116, 255, .16);
  --yes: #12a84a; --yes-ink: #3fd07a; --yes-soft: rgba(18, 168, 74, .16); --yes-soft-2: rgba(18, 168, 74, .26);
  --no: #e8363b; --no-ink: #ff6a6e; --no-soft: rgba(232, 54, 59, .15); --no-soft-2: rgba(232, 54, 59, .25);
  --shadow: 0 1px 2px rgba(0, 0, 0, .2); --shadow-hover: 0 1px 2px rgba(0, 0, 0, .2), 0 12px 32px -14px rgba(0, 0, 0, .7);
  --shadow-pop: 0 0 0 1px rgba(255, 255, 255, .07), 0 20px 50px -14px rgba(0, 0, 0, .8); --skeleton: #1e2127; --skeleton-hi: #262a31;
  color-scheme: dark; color: var(--text);
}
.force-light { --text-2: #5c636c !important;
  --bg: #f6f7f9; --bg-soft: #eff1f4; --bg-hover: #f3f4f7; --panel: #ffffff; --line: #e4e7ec; --line-2: #d3d7de;
  --text: #111418; --text-3: #858a91; --blue: #2e5cff; --blue-hover: #1f4cf0; --blue-soft: #e9eeff;
  --yes: #0a9a4a; --yes-ink: #0b7a3b; --yes-soft: #e1f4e8; --yes-soft-2: #cdebd9;
  --no: #e5343a; --no-ink: #c81e25; --no-soft: #fdeaea; --no-soft-2: #f9d7d8; --gold: #f5a524;
  --shadow: 0 1px 2px rgba(16, 20, 28, .04); --shadow-hover: 0 1px 2px rgba(16, 20, 28, .04), 0 10px 28px -14px rgba(16, 20, 28, .18);
  --shadow-pop: 0 0 0 1px rgba(16, 20, 28, .05), 0 18px 44px -14px rgba(16, 20, 28, .22); --skeleton: #eceef2; --skeleton-hi: #f6f7f9;
  color-scheme: light; color: var(--text);
}

/* ---------- reduced motion: everything settles at once */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .feat-in { transition: none; }
}

/* ---------- study: your Anki cards on the site (views/study.js) */

.study-head { margin-bottom: 18px; }
.study-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.study-source { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text-2); }
.study-source i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.study-source i.dot-local { background: var(--yes); }
.study-tally { font-size: 13px; color: var(--text-2); }
.study-tally b { color: var(--text); font-weight: 600; }
.deck-card { padding: 6px 0 0; overflow: hidden; }
.deck-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px 8px; }
.deck-head b { font-size: 15px; font-weight: 600; }
.deck-head .muted { font-size: 13px; }
.deck-head .btn { margin-left: auto; }
.deck-head .btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.deck-cols, .deck-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px 64px 64px; align-items: center; gap: 8px; }
.deck-cols { padding: 6px 16px; border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.deck-cols span:not(:first-child), .deck-row > span:not(.deck-name) { text-align: right; font-variant-numeric: tabular-nums; }
.deck-row { width: 100%; padding: 11px 16px 11px calc(16px + var(--depth, 0) * 18px); border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: background var(--dur); }
.deck-row:hover { background: var(--bg-hover); }
.deck-row.on .deck-name { font-weight: 700; }
.deck-name { font-weight: 500; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deck-row > span { font-weight: 600; font-size: 14px; }
.c-new { color: #2e7dd7; }
.c-learn { color: #d9480f; }
.c-due { color: #0b8a3e; }
:root[data-theme="dark"] .c-new { color: #6ea8ff; }
:root[data-theme="dark"] .c-learn { color: #ff8a5c; }
:root[data-theme="dark"] .c-due { color: #3fd07a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .c-new { color: #6ea8ff; } :root:not([data-theme="light"]) .c-learn { color: #ff8a5c; } :root:not([data-theme="light"]) .c-due { color: #3fd07a; } }
.deck-row > .zero { color: var(--text-3); font-weight: 500; }
.deck-foot { padding: 10px 16px 12px; font-size: 12.5px; }
.study-card { max-width: 1040px; margin: 0 auto; }
.study-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.study-bar .btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.study-deck { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.study-counts { margin-left: auto; display: inline-flex; gap: 12px; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.study-counts .now { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.study-frame-box { padding: 0; overflow: hidden; height: max(300px, calc(100dvh - 330px)); }
.study-frame { display: block; width: 100%; height: 100%; border: 0; background: transparent; }
/* studying: the card gets the room (the page title steps aside, the card goes wide) */
.study.studying .study-head { display: none; }
.study.studying .study-card { max-width: 1240px; }
.study-tally-bar { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.study-bar #full svg { width: 15px; height: 15px; }
.study-card:fullscreen { max-width: none; width: 100%; padding: 16px 20px; background: var(--bg); overflow: auto; }
.study-card:fullscreen .study-frame-box { border-radius: 12px; }
.study-actions { margin-top: 4px; }
/* Show Answer and the four answer buttons, drawn the way Anki desktop draws its reviewer's bottom bar (Anki 26:
   aqt/reviewer.py, webview.css with Anki's default "fancy" buttons, the per-platform button style from
   aqt/webview.py standard_css, then reviewer-bottom.css). The next interval and the remaining counts sit just
   above their button; shortcut keys are in the tooltip, as in Anki. Colours are Anki's light and night ones. */
.anki-bar {
  --a-fg: #020202; --a-fg-disabled: #858585; --a-border: #c4c4c4; --a-border-subtle: #e4e4e4; --a-border-focus: #3b82f6;
  --a-button-bg: #fcfcfc; --a-grad-start: #fff; --a-grad-end: #fcfcfc; --a-shadow: #c4c4c4; --a-mac-bg: #fff; --a-mac-fg: var(--a-fg);
  --a-new: #3b82f6; --a-learn: #dc2626; --a-review: #16a34a;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; padding-top: 10px;
  color: var(--a-fg); -webkit-user-select: none; user-select: none;
}
:root[data-theme="dark"] .anki-bar {
  --a-fg: #fcfcfc; --a-fg-disabled: #737373; --a-border: #202020; --a-border-subtle: #252525;
  --a-button-bg: #404040; --a-grad-start: #4a4a4a; --a-grad-end: #404040; --a-shadow: #141414; --a-mac-bg: #606060; --a-mac-fg: #eee;
  --a-new: #93c5fd; --a-learn: #f87171; --a-review: #22c55e;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .anki-bar {
    --a-fg: #fcfcfc; --a-fg-disabled: #737373; --a-border: #202020; --a-border-subtle: #252525;
    --a-button-bg: #404040; --a-grad-start: #4a4a4a; --a-grad-end: #404040; --a-shadow: #141414; --a-mac-bg: #606060; --a-mac-fg: #eee;
    --a-new: #93c5fd; --a-learn: #f87171; --a-review: #22c55e;
  }
}
.anki-bar button {
  position: relative; min-width: 60px; margin: 9px; white-space: nowrap;
  padding: 8px 10px; font: 500 13.333px system-ui, sans-serif; line-height: normal; letter-spacing: normal;
  color: var(--a-fg); background: var(--a-button-bg);
  border: 1px solid var(--a-border-subtle); border-bottom-color: var(--a-shadow); border-radius: 15px;
  box-shadow: 0 2px 1px -1px rgba(20, 20, 20, .12), 0 1px 1px 0 rgba(20, 20, 20, .06), 0 1px 3px 0 rgba(20, 20, 20, .04);
  -webkit-appearance: none; appearance: none; cursor: pointer; outline: none;
}
.anki-bar.isWin button { font: 500 12px "Segoe UI", sans-serif; }
.anki-bar.isMac button { padding: 3px 12px; font: 500 13px Helvetica, sans-serif; color: var(--a-mac-fg); background: var(--a-mac-bg); border: 1px solid var(--a-border); }
.anki-bar button:hover {
  background: linear-gradient(180deg, var(--a-grad-start) 0%, var(--a-grad-end) 100%); border: 1px solid var(--a-shadow);
  box-shadow: 0 3px 1px -2px rgba(20, 20, 20, .2), 0 2px 2px 0 rgba(20, 20, 20, .14), 0 1px 5px 0 rgba(20, 20, 20, .12); transition: box-shadow 180ms linear;
}
.anki-bar button:active { border-color: var(--a-border-subtle); }
.anki-bar button:focus-visible { border-color: var(--a-border-focus); }
.anki-bar button:disabled, .anki-bar button:disabled:hover { cursor: not-allowed; color: var(--a-fg-disabled); box-shadow: none; background: var(--a-grad-end); border-bottom-color: var(--a-border-subtle); }
.anki-bar .nobold, .anki-bar .stattxt { position: absolute; top: -3px; left: 50%; transform: translate(-50%, -100%); display: inline-block; white-space: nowrap; font-size: small; font-weight: normal; }
.anki-bar .new-count { color: var(--a-new); }
.anki-bar .learn-count { color: var(--a-learn); }
.anki-bar .review-count { color: var(--a-review); }
.anki-bar .study-typein { flex: 1 1 240px; max-width: 380px; height: 32px; margin: 9px; font-size: 14px; }
.study-wait, .study-done, .link-card { max-width: 560px; margin: 24px auto 0; padding: 28px 28px 24px; text-align: center; }
.study-wait h2, .study-done h2, .link-card h2 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin-top: 12px; }
.study-wait p, .study-done p, .link-card > p { margin-top: 8px; line-height: 1.55; }
.study-spin { width: 34px; height: 34px; margin: 4px auto 0; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--blue); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.study-done-ico, .link-ico { width: 48px; height: 48px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--yes-soft); color: var(--yes-ink); font-size: 22px; font-weight: 700; }
.link-ico { background: var(--blue-soft); color: var(--blue); }
.link-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.study-done-acts { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.link-form { text-align: left; margin-top: 18px; }
.link-points { text-align: left; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; list-style: none; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.link-points b { color: var(--text); font-weight: 600; }
.aw-linked { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 10px; background: var(--bg-soft); }
.aw-linked b { display: block; font-weight: 600; }
.aw-linked small { display: block; color: var(--text-2); font-size: 12.5px; margin-top: 1px; }
.strip .s-cta { display: inline-flex; gap: 6px; }
.study-switch { font-size: 13px; font-weight: 600; color: var(--blue); }
.study-switch:hover { text-decoration: underline; color: var(--blue); }
.study-connect { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding: 14px 16px; }
.study-connect b { display: block; font-weight: 600; }
.study-connect .muted { font-size: 13px; }
.study-or { margin-top: 12px; font-size: 13.5px; color: var(--text-2); }
.study-or .linkish { color: var(--blue); font-weight: 600; }
@media (max-width: 680px) {
  .deck-cols, .deck-row { grid-template-columns: minmax(0, 1fr) 44px 44px 44px; }
  .anki-bar.isMac button { padding-top: 8px; padding-bottom: 8px; } /* phones: Anki's taller base padding, easier to tap */
  .study-wait, .study-done, .link-card { padding: 22px 18px 20px; }
}
