/* KOLHOZDROP — player site styles. Night over a wheat field.
   Tokens come from tokens.css. Rarity colour per element = var(--rc). */

:root {
  --tabbar-h: 0px;
  --night-1: #0d1220;
  --night-2: #0b0d11;
  --horizon: rgba(245, 185, 10, 0.22);
  --card-hi: rgba(255, 255, 255, 0.045);
  --ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold-2);
}

html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { min-height: 100vh; display: flex; flex-direction: column; padding-bottom: var(--tabbar-h); }
html.has-modal body { overflow: hidden; }
::selection { background: rgba(245, 185, 10, 0.35); color: #fff; }

:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: #1a1300; padding: 10px 14px; border-radius: 10px; font-weight: 800; }
.skip-link:focus { top: 10px; }
.noscript { text-align: center; padding: 40px; }

.wrap { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; } }

.main { flex: 1; outline: none; }
.main .page { opacity: 0; transform: translateY(6px); transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
.main.is-in .page { opacity: 1; transform: none; }

.kd-money img { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); }
.coin-fb { display: inline-block; width: 1.05em; height: 1.05em; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #fff1b8, #f5b90a 45%, #a87507); box-shadow: inset 0 0 0 1.5px rgba(120, 80, 0, 0.6); }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============ buttons ============ */
.btn {
  --bh: 44px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--bh); padding: 0 18px; border: 0; border-radius: 12px; cursor: pointer;
  font-family: var(--font-body); font-weight: 800; font-size: 15px; letter-spacing: 0.01em; white-space: nowrap;
  background: var(--surface-2); color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 1px 0 rgba(0, 0, 0, 0.4);
  transition: transform var(--t-fast) var(--ease-out), filter var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; filter: none; transform: none; }
.btn .kd-money { gap: 5px; }
.btn--lg { --bh: 50px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn--xl { --bh: 58px; padding: 0 30px; font-size: 17px; border-radius: 16px; }

.btn--gold {
  color: #241800; background: var(--gold-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(120, 76, 0, 0.45), 0 8px 24px -8px var(--gold-glow);
  text-shadow: 0 1px 0 rgba(255, 240, 190, 0.5);
}
.btn--gold:hover { filter: brightness(1.06) saturate(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(120, 76, 0, 0.45), 0 10px 32px -6px var(--gold-glow); }
.btn--gold .kd-money { color: #241800; }
.btn--gold.is-busy { pointer-events: none; }
.btn--gold.is-busy::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%) 0 0 / 220% 100%; animation: shine 900ms linear infinite; }
@keyframes shine { from { background-position: 130% 0; } to { background-position: -90% 0; } }

.btn--steam { background: linear-gradient(180deg, #232a37, #1a1f29); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.btn--steam .i-steam { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn--steam:hover { background: linear-gradient(180deg, #2a3242, #1e2430); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); }
.btn--ghost:hover { background: var(--card-hi); color: var(--text); }
.btn--sell { background: rgba(79, 211, 106, 0.1); color: #b6f5c2; box-shadow: inset 0 0 0 1px rgba(79, 211, 106, 0.35); }
.btn--sell:hover { background: rgba(79, 211, 106, 0.18); }
.btn--sell .kd-money { color: #dfffe5; }
.btn--red { background: linear-gradient(180deg, #ff6a78, #e23649); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 22px -8px var(--red-glow); }

.link-btn { background: none; border: 0; padding: 4px 2px; color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(139, 146, 160, 0.4); text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }

.chip {
  display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 12px; border-radius: 10px; border: 0; cursor: pointer;
  background: var(--surface-2); color: var(--text-2); font-weight: 700; font-size: 13px; white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line-soft); transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.chip:hover { color: var(--text); background: var(--surface-3); }
.chip.is-on { background: rgba(245, 185, 10, 0.14); color: var(--gold-2); box-shadow: inset 0 0 0 1px rgba(245, 185, 10, 0.45); }
.chip:disabled { opacity: 0.4; cursor: not-allowed; }
.chip--mult { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.02em; }

.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-soft), inset 0 2px 6px rgba(0, 0, 0, 0.4); }
.seg__b { min-width: 46px; height: 42px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-family: var(--font-display); font-weight: 700; font-size: 14px; cursor: pointer; transition: color var(--t-fast), background var(--t-fast); }
.seg__b:hover { color: var(--text); }
.seg__b.is-on { background: var(--surface-3); color: var(--gold-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 8px rgba(0, 0, 0, 0.4); }
.seg--sm .seg__b { height: 32px; min-width: 0; font-family: var(--font-body); font-weight: 700; font-size: 13px; }

.fast { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 700; user-select: none; }
.fast input { position: absolute; opacity: 0; pointer-events: none; }
.fast__sw { position: relative; width: 34px; height: 20px; border-radius: 20px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); transition: background var(--t-fast); }
.fast__sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform var(--t) var(--ease-out), background var(--t-fast); }
.fast input:checked + .fast__sw { background: rgba(245, 185, 10, 0.25); }
.fast input:checked + .fast__sw::after { transform: translateX(14px); background: var(--gold); }
.fast input:focus-visible + .fast__sw { box-shadow: var(--ring); }

.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 700; }
.badge--gold { background: rgba(245, 185, 10, 0.16); color: var(--gold-2); }
.badge--red { background: rgba(255, 77, 94, 0.16); color: #ff9aa5; }

/* skeletons */
.skel-shine, .skel-line, .skel-block { position: relative; overflow: hidden; display: block; border-radius: 8px; background: var(--surface); }
.skel-line { height: 18px; }
.skel-shine { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.04) 50%, transparent 80%) 0 0 / 200% 100%; animation: shine 1.4s linear infinite; }

/* ============ header ============ */
.hdr { position: sticky; top: 0; z-index: 40; height: var(--header-h); transition: background var(--t), box-shadow var(--t); background: rgba(11, 13, 17, 0.72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.hdr.is-scrolled { background: rgba(11, 13, 17, 0.9); box-shadow: 0 1px 0 var(--line-soft), 0 10px 30px rgba(0, 0, 0, 0.35); }
.hdr__in { height: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 14px; }
.hdr__logo { display: flex; align-items: center; height: 40px; flex: none; }
.hdr__logo img { height: 100%; width: auto; }
.hdr__logo-full { height: 30px !important; max-width: 190px; object-fit: contain; object-position: left center; }
.hdr__logo-mark { display: none; height: 36px !important; width: 36px !important; }
.wordmark { font-family: var(--font-display); font-weight: 900; font-size: 19px; letter-spacing: -0.01em; color: var(--text); line-height: 1; }
.wordmark b { color: var(--gold); font-weight: 900; }
.wordmark--mark { font-size: 18px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); }

.hdr__nav { display: flex; align-items: center; gap: 2px; margin-left: 18px; }
.hdr__nav a { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 10px; color: var(--text-2); font-weight: 700; font-size: 15px; transition: color var(--t-fast), background var(--t-fast); }
.hdr__nav a:hover { color: var(--text); background: var(--card-hi); }
.hdr__nav a.is-active { color: var(--text); }
.hdr__nav a.is-active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 10px var(--gold-glow); }
.daily-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(79, 211, 106, 0.18); animation: pulse 2s ease-in-out infinite; }
.daily-dot[hidden] { display: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(79, 211, 106, 0); } }

.hdr__right { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.hdr__skel { display: block; width: 180px; height: 40px; border-radius: 12px; background: var(--surface); }
.hdr__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); cursor: pointer; flex: none; }
.hdr__icon:hover { background: var(--card-hi); color: var(--text); }
.hdr__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hdr__icon svg path:first-child { fill: currentColor; stroke: none; }
.hdr__sound.is-on { color: var(--gold-2); }
.hdr__login { --bh: 42px; }
.hdr__login-short { display: none; }

.hdr__bal { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 10px; border-radius: 12px; background: linear-gradient(180deg, rgba(245, 185, 10, 0.1), rgba(245, 185, 10, 0.04)); box-shadow: inset 0 0 0 1px rgba(245, 185, 10, 0.28); font-weight: 800; font-variant-numeric: tabular-nums; font-size: 16px; color: var(--gold-2); white-space: nowrap; transition: box-shadow var(--t); }
.hdr__bal:hover { box-shadow: inset 0 0 0 1px rgba(245, 185, 10, 0.5); }
.hdr__coin { width: 22px; height: 22px; flex: none; }
.hdr__bal.is-up { animation: balUp 900ms var(--ease-out); }
.hdr__bal.is-down { animation: balDown 600ms var(--ease-out); }
@keyframes balUp { 0% { box-shadow: inset 0 0 0 1px rgba(79, 211, 106, 0.9), 0 0 0 0 rgba(79, 211, 106, 0.5); color: #b6f5c2; } 100% { box-shadow: inset 0 0 0 1px rgba(245, 185, 10, 0.28), 0 0 0 12px rgba(79, 211, 106, 0); } }
@keyframes balDown { 0% { box-shadow: inset 0 0 0 1px rgba(255, 77, 94, 0.7); } }

.menu { position: relative; }
.hdr__user { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 8px 0 4px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; color: var(--text); max-width: 220px; }
.hdr__user:hover, .hdr__user[aria-expanded="true"] { background: var(--card-hi); }
.hdr__name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.hdr__chev { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.menu__pop { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; padding: 6px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); animation: pop 180ms var(--ease-out); z-index: 50; }
.menu__pop[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.menu__head { display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line-soft); }
.menu__head b { display: block; font-size: 14px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu__head .kd-money { font-size: 13px; color: var(--gold-2); }
.menu__pop a, .menu__pop button { display: flex; width: 100%; align-items: center; height: 40px; padding: 0 10px; border: 0; border-radius: 9px; background: none; text-align: left; font-weight: 600; font-size: 14px; color: var(--text-2); cursor: pointer; }
.menu__pop a:hover, .menu__pop button:hover, .menu__pop a:focus-visible, .menu__pop button:focus-visible { background: var(--surface-2); color: var(--text); outline: none; }
.menu__danger { color: #ff9aa5 !important; }

/* avatars */
.ava { position: relative; display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; overflow: hidden; background: var(--surface-3); }
.ava__fb { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(140deg, hsl(var(--h) 45% 42%), hsl(calc(var(--h) + 40) 50% 26%)); }
.ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--t); }
.ava.is-loaded img { opacity: 1; }
.menu__ava { width: 40px; height: 40px; }

/* ============ live ribbon ============ */
.live { position: relative; z-index: 2; border-bottom: 1px solid var(--line-soft); background: linear-gradient(180deg, rgba(16, 19, 26, 0.9), rgba(11, 13, 17, 0.6)); }
.live__in { max-width: var(--page-max); margin: 0 auto; padding: 8px var(--gutter); display: flex; align-items: center; gap: 12px; }
.live__label { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 46px; color: var(--muted); font-size: 11px; font-weight: 700; }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255, 77, 94, 0.6); animation: livePulse 1.8s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0.55); } 100% { box-shadow: 0 0 0 9px rgba(255, 77, 94, 0); } }
.live__track { position: relative; flex: 1; min-width: 0; display: flex; gap: 8px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }

.lc { position: relative; flex: none; display: flex; align-items: center; gap: 8px; width: 168px; height: 58px; padding: 6px 10px 6px 6px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 16%, var(--surface)) 0%, var(--surface) 55%); box-shadow: inset 0 0 0 1px var(--line-soft); }
.lc::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--rc); box-shadow: 0 0 10px var(--rc); }
.lc__art { flex: none; width: 58px; height: 44px; }
.lc__art .skin .sil { width: 92%; }
.lc__art .ph__name { display: none; }
.lc__txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.lc__txt b { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc__txt span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc__src { display: inline-block; margin-left: 4px; font-style: normal; font-size: 9px; font-weight: 800; padding: 0 4px; border-radius: 4px; vertical-align: 1px; line-height: 14px; }
.lc__src--gold { background: rgba(245, 185, 10, 0.2); color: var(--gold-2); }
.lc__src--up { background: rgba(79, 211, 106, 0.16); color: #9eeeb0; }
.lc__hover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 12px; background: rgba(13, 16, 22, 0.94); opacity: 0; transition: opacity var(--t-fast); font-size: 12px; }
.lc__who { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc__hover .kd-money { color: var(--gold-2); font-size: 13px; }
.lc:hover .lc__hover, .lc:focus-visible .lc__hover { opacity: 1; }
.lc.is-new { animation: lcIn 900ms var(--ease-out) both; }
@keyframes lcIn { 0% { opacity: 0; filter: brightness(2); } 40% { opacity: 1; } 100% { filter: none; } }

/* ============ skin images + placeholders ============ */
.skin { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.skin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 260ms; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55)); }
.skin.is-loaded img { opacity: 1; }
.skin.is-loaded .ph { opacity: 0; }
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; transition: opacity 200ms; }
.sil { width: 78%; max-height: 70%; fill: color-mix(in srgb, var(--rc, #8b92a0) 55%, #2b3240); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)); opacity: 0.9; }
.ph__name { font-size: 10px; font-weight: 800; color: color-mix(in srgb, var(--rc, #8b92a0) 70%, #fff); opacity: 0.75; letter-spacing: 0.02em; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }

/* ============ item card ============ */
:where(.it, .rc, .ct__pip, .lb__row--drop, .lc, .slot) { --rc: var(--r-consumer); }
.it {
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 10px 10px 10px; border-radius: 14px; border: 0; text-align: left; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #1b202a 0%, #151921 100%);
  box-shadow: inset 0 1px 0 var(--card-hi), inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 6px 18px -10px rgba(0, 0, 0, 0.8);
  color: var(--text); font: inherit; transition: transform var(--t) var(--ease-out), box-shadow var(--t);
}
.it::after { content: ''; position: absolute; left: 14%; right: 14%; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--rc); box-shadow: 0 0 12px 1px var(--rc); }
.it__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(90% 55% at 50% 100%, color-mix(in srgb, var(--rc) 26%, transparent), transparent 70%), radial-gradient(60% 40% at 50% 42%, color-mix(in srgb, var(--rc) 9%, transparent), transparent 75%); }
.it__top { display: flex; align-items: center; gap: 4px; min-height: 18px; }
.tag { display: inline-flex; align-items: center; height: 18px; padding: 0 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.06); color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.02em; }
.tag--st { background: rgba(207, 106, 50, 0.18); color: #f2a36c; }
.tag--star { background: rgba(228, 174, 57, 0.18); color: var(--r-gold); }
.it__chance { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.it__art { display: block; aspect-ratio: 4 / 3; margin: 2px 0 6px; }
.it__meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.it__weapon { font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it__skin { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; min-height: 20px; }
.it__price { font-size: 14px; color: var(--text); }
.it__ch { font-size: 12px; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }
.it__ch.is-bad { color: var(--faint); }
.it__src { font-size: 11px; color: var(--faint); font-weight: 700; }
.it__check { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--gold); box-shadow: 0 2px 10px var(--gold-glow); }
.it__check svg { width: 15px; height: 15px; fill: none; stroke: #241800; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

button.it { cursor: pointer; }
button.it:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 var(--card-hi), inset 0 0 0 1px color-mix(in srgb, var(--rc) 35%, transparent), 0 14px 28px -12px color-mix(in srgb, var(--rc) 45%, #000); }
button.it:active { transform: translateY(-1px) scale(0.99); }
.it.is-selected { box-shadow: inset 0 0 0 2px var(--gold), 0 10px 30px -12px var(--gold-glow); }
button.it.is-selected:hover { box-shadow: inset 0 0 0 2px var(--gold-2), 0 14px 30px -10px var(--gold-glow); }
.it.is-disabled { opacity: 0.38; filter: saturate(0.4); }
button.it.is-disabled:hover { transform: none; }

.it--xs { padding: 4px; border-radius: 9px; }
.it--xs .it__top, .it--xs .it__meta { display: none; }
.it--xs .it__art { margin: 0; }
.it--xs .it__foot { margin-top: 2px; min-height: 0; justify-content: center; }
.it--xs .it__price { font-size: 10.5px; gap: 3px; }
.it--xs .ph__name { display: none; }
.it--lg { padding: 14px; border-radius: 18px; }
.it--lg .it__skin { font-size: 17px; }
.it--lg .it__weapon { font-size: 13px; }
.it--lg .it__price { font-size: 17px; }
.it--lg .ph__name { font-size: 12px; }
.it--skel { min-height: 196px; background: var(--surface); }

/* ============ hero ============ */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__sky { position: absolute; left: 0; right: 0; top: 0; height: 470px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 70% at 75% -10%, rgba(64, 92, 160, 0.28), transparent 60%),
    radial-gradient(80% 60% at 10% 0%, rgba(42, 60, 110, 0.25), transparent 70%),
    linear-gradient(180deg, var(--night-1) 0%, #0c1019 55%, var(--bg) 100%); }
.hero__sky::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(180deg, transparent, rgba(11, 13, 17, 0.6) 55%, var(--bg)); }
.hero__sky::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 90px; z-index: 1; background: linear-gradient(180deg, rgba(6, 8, 12, 0.85), transparent); }
.hero__stars { position: absolute; inset: 0 0 35% 0; opacity: 0.8; background-image:
  radial-gradient(1.2px 1.2px at 12% 18%, #fff 60%, transparent), radial-gradient(1px 1px at 22% 42%, #dfe7ff 60%, transparent),
  radial-gradient(1.4px 1.4px at 37% 12%, #fff 60%, transparent), radial-gradient(1px 1px at 48% 30%, #cfd8ff 60%, transparent),
  radial-gradient(1.2px 1.2px at 61% 8%, #fff 60%, transparent), radial-gradient(1px 1px at 69% 36%, #fff 60%, transparent),
  radial-gradient(1.6px 1.6px at 83% 16%, #fff7d6 60%, transparent), radial-gradient(1px 1px at 91% 44%, #dfe7ff 60%, transparent),
  radial-gradient(1px 1px at 6% 52%, #fff 60%, transparent), radial-gradient(1.1px 1.1px at 55% 50%, #fff 60%, transparent),
  radial-gradient(1px 1px at 30% 62%, #cfd8ff 60%, transparent), radial-gradient(1.3px 1.3px at 77% 58%, #fff 60%, transparent);
  animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: 0.5; } }
.hero__moon { position: absolute; top: 34px; right: 9%; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 38% 36%, #fffbe9, #f2e6bf 55%, #d9c68f); box-shadow: 0 0 40px 10px rgba(255, 236, 170, 0.18), 0 0 120px 40px rgba(255, 236, 170, 0.08); }
.hero__moon::after { content: ''; position: absolute; width: 14px; height: 14px; border-radius: 50%; left: 18px; top: 30px; background: rgba(190, 168, 110, 0.35); box-shadow: 18px -12px 0 -3px rgba(190, 168, 110, 0.3); }
.hero.has-art .hero__stars, .hero.has-art .hero__moon { display: none; }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 33% 100%; }
.hero__in { position: relative; display: flex; flex-direction: column; padding-top: 30px; padding-bottom: 8px; }
.hero__brand { min-height: 330px; }
.hero__title { margin: 0; font-family: var(--font-display); font-weight: 900; line-height: 0.98; letter-spacing: -0.02em; font-size: clamp(34px, 9.4vw, 76px); color: var(--text); text-wrap: balance; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7); }
.hero__title span { display: block; }
.hero__title span:nth-child(2) { padding-left: 0.6em; }
.hero__lead { margin: 16px 0 0; max-width: 40ch; color: var(--text-2); font-size: 16px; line-height: 1.55; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9); }
.hero__promos { display: grid; gap: 10px; }

@media (min-width: 760px) {
  .hero__sky { bottom: 0; height: auto; }
  .hero__sky::after { height: 30%; }
  .hero__field { object-position: 50% 100%; }
  .hero__in { min-height: clamp(560px, 46vw, 680px); justify-content: space-between; padding-top: 56px; padding-bottom: 28px; }
  .hero__brand { min-height: 0; }
  .hero__promos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 980px; }
}
.promo { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 14px 14px 12px; border-radius: 18px; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, rgba(29, 34, 45, 0.92), rgba(18, 21, 29, 0.92)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 20px 40px -24px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px); transition: transform var(--t) var(--ease-out), box-shadow var(--t); }
.promo:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 0 1px rgba(245, 185, 10, 0.3), 0 24px 44px -24px rgba(0, 0, 0, 0.9); }
.promo--daily::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 120% at 0% 50%, rgba(245, 185, 10, 0.16), transparent 60%); }
.promo--up::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 120% at 0% 50%, rgba(79, 211, 106, 0.13), transparent 60%); }
.promo__art { width: 84px; height: 64px; }
.promo__art .case-art { width: 100%; height: 100%; }
.promo__txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.promo__kicker { font-size: 12px; font-weight: 700; color: var(--gold); }
.promo--up .promo__kicker { color: var(--green); }
.promo__title { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.2; }
.promo__sub { font-size: 13px; color: var(--muted); line-height: 1.4; }
.promo__cd { color: var(--text); font-variant-numeric: tabular-nums; }
.promo__go { align-self: center; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 10px; font-weight: 800; font-size: 14px; background: var(--surface-3); color: var(--text-2); }
.promo__go.is-ready { background: var(--gold-grad); color: #241800; box-shadow: 0 6px 18px -6px var(--gold-glow); }
.promo--up .promo__go { background: rgba(79, 211, 106, 0.14); color: #b6f5c2; }
.promo__wheel { position: relative; width: 64px; height: 64px; margin: 0 10px 0 8px; }
.promo__wheel svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.promo__wheel circle { fill: none; stroke-width: 10; }
.pw__track { stroke: rgba(255, 77, 94, 0.18); }
.pw__arc { stroke: var(--green); stroke-dasharray: 34 100; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--green-glow)); }
.pw__gold { stroke: var(--gold); stroke-dasharray: 5 100; stroke-dashoffset: -62; stroke-linecap: round; filter: drop-shadow(0 0 5px var(--gold-glow)); }
.promo__wheel img { position: absolute; inset: 18px; width: 28px; height: 28px; }

/* case art + fallback */
.case-art { position: relative; display: grid; place-items: center; }
.case-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.55)); }
.case-fb { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 86%; aspect-ratio: 4 / 3; }
.case-fb__lid { width: 88%; height: 22%; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #e3a92a, #a26e07); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35); }
.case-fb__body { width: 96%; flex: 1; margin-top: 3%; border-radius: 4px 4px 10px 10px; background: repeating-linear-gradient(90deg, #6d4a17 0 12%, #5e3f12 12% 13%), #6d4a17; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25), inset 0 6px 0 rgba(255, 255, 255, 0.06); }
.case-fb__name { position: absolute; left: 0; right: 0; bottom: 18%; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 11px; color: #ffe6a6; text-shadow: 0 1px 0 #3d2805; padding: 0 8px; line-height: 1.1; }

/* ============ sections + case tiles ============ */
.sec { padding: 28px 0 8px; }
.sec__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 16px; }
.sec__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.sec__note { margin: 0; color: var(--muted); font-size: 14px; }
.sec__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .sec__grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; } }
@media (min-width: 1200px) { .sec__grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.sec__grid--items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .sec__grid--items { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; } }

.ct { position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #141822 0%, #12151d 60%, #161a23 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.035); transition: transform 320ms var(--ease-out), box-shadow 320ms; }
.ct__stage { position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4; padding: 14px 10px 0; }
.ct__halo { position: absolute; inset: 8% 10% 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(245, 185, 10, 0.14), transparent); transition: opacity 320ms, transform 320ms var(--ease-out); opacity: 0.6; }
.ct__art { position: relative; z-index: 1; width: 92%; height: 92%; transition: transform 420ms var(--ease-out); }
.ct__ground { position: absolute; left: 18%; right: 18%; bottom: 7%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), transparent); }
.ct__body { display: flex; flex-direction: column; gap: 8px; padding: 2px 14px 14px; }
.ct__name { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.2; letter-spacing: -0.005em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ct__price { display: inline-flex; height: 32px; padding: 0 10px 0 8px; border-radius: 10px; background: rgba(245, 185, 10, 0.1); box-shadow: inset 0 0 0 1px rgba(245, 185, 10, 0.22); color: var(--gold-2); font-size: 14px; }
.ct__free { display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 10px; background: rgba(79, 211, 106, 0.12); color: #9eeeb0; font-weight: 800; font-size: 14px; }
.ct__top { display: flex; }
.ct__pip { position: relative; width: 30px; height: 30px; border-radius: 50%; margin-left: -8px; background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--rc) 35%, #12151c), #12151c 75%); box-shadow: 0 0 0 2px #13161e, inset 0 0 0 1px color-mix(in srgb, var(--rc) 60%, transparent); overflow: hidden; }
.ct__pip .skin { transform: scale(1.25); }
.ct__pip .ph__name { display: none; }
.ct__pip .sil { width: 90%; }
.ct:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 0 0 1px rgba(245, 185, 10, 0.22), 0 26px 40px -26px rgba(245, 185, 10, 0.35); }
.ct:hover .ct__halo { opacity: 1; transform: scale(1.08); }
.ct:hover .ct__art { transform: translateY(-6px) rotate(-1.5deg) scale(1.03); }
.ct--skel { min-height: 240px; }
.ct__desc { display: none; }
@media (min-width: 640px) {
  .sec__grid--solo { grid-template-columns: minmax(0, 1fr); }
  .sec__grid--solo .ct { flex-direction: row; align-items: center; max-width: 760px; }
  .sec__grid--solo .ct__stage { flex: none; width: 240px; padding: 12px; }
  .sec__grid--solo .ct__body { flex: 1; min-width: 0; padding: 18px 24px 18px 6px; gap: 10px; }
  .sec__grid--solo .ct__name { font-size: 22px; }
  .sec__grid--solo .ct__desc { display: block; color: var(--text-2); font-size: 14px; max-width: 46ch; }
  .sec__grid--solo .ct__row { justify-content: flex-start; gap: 18px; }
  .ct--daily { background: radial-gradient(60% 120% at 0% 50%, rgba(245, 185, 10, 0.12), transparent 70%), linear-gradient(180deg, #141822 0%, #12151d 100%); }
}

/* ============ case page ============ */
.crumbs { display: flex; gap: 8px; align-items: center; padding: 18px 0 6px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.casepg { padding-bottom: 20px; }
.casepg__stage { position: relative; margin-top: 8px; padding: 22px 14px 22px; border-radius: 26px; overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 80% at 50% 0%, rgba(64, 92, 160, 0.16), transparent 70%), linear-gradient(180deg, #121620, #0e1118);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.casepg__stage::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; z-index: -1; background: radial-gradient(60% 90% at 50% 100%, rgba(245, 185, 10, 0.08), transparent 70%); }
.casepg__stage.is-loading { min-height: 360px; }
.casepg__hero { display: grid; gap: 18px; justify-items: center; text-align: center; }
.casepg__hero[hidden], .casepg__spin[hidden], .casepg__results[hidden] { display: none; }
.casepg__art { position: relative; width: min(300px, 78vw); aspect-ratio: 4 / 3; display: grid; place-items: center; }
.casepg__halo { position: absolute; inset: -6% -10% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(245, 185, 10, 0.22), transparent 70%); animation: breathe 4.5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); opacity: 0.75; } }
.casepg__img { position: relative; width: 100%; height: 100%; animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.casepg__info { max-width: 520px; }
.casepg__name { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 6vw, 44px); line-height: 1.05; letter-spacing: -0.02em; }
.casepg__desc { margin: 10px 0 0; color: var(--text-2); }
.casepg__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 16px 0 0; }
.casepg__facts div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.casepg__facts dt { font-size: 12px; color: var(--muted); }
.casepg__facts dd { margin: 0; font-weight: 800; font-size: 15px; }

.casepg__controls { margin-top: 20px; }
.openbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; }
.openbar__go { min-width: 240px; }
.openbar__go .kd-money { font-size: 18px; }
.openbar__short { flex-basis: 100%; margin: 0; text-align: center; color: #ff9aa5; font-size: 14px; }
.openbar__short a { text-decoration: underline; }
.openbar__cd { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 26px; border-radius: 16px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-soft); }
.openbar__cd span { color: var(--muted); font-size: 13px; }
.openbar__cd b { font-family: var(--font-display); font-size: 28px; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* roulette */
.strips { display: grid; gap: 10px; }
.rl { --cw: 132px; --ch: 150px; position: relative; height: calc(var(--ch) + 24px); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, #0a0c11, #0e1118 50%, #0a0c11); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 -10px 30px rgba(0, 0, 0, 0.6); }
.rl::before, .rl::after { content: ''; position: absolute; top: 0; bottom: 0; width: 18%; z-index: 2; pointer-events: none; }
.rl::before { left: 0; background: linear-gradient(90deg, #0b0d12, transparent); }
.rl::after { right: 0; background: linear-gradient(-90deg, #0b0d12, transparent); }
.rl__track { display: flex; gap: 6px; height: 100%; padding: 12px 0; will-change: transform; }
.rl__marker { position: absolute; z-index: 3; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: linear-gradient(180deg, var(--gold-2), var(--gold) 50%, var(--gold-2)); box-shadow: 0 0 14px 2px var(--gold-glow); border-radius: 2px; }
.rl__marker::before, .rl__marker::after { content: ''; position: absolute; left: 50%; width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; transform: translateX(-50%); filter: drop-shadow(0 0 6px var(--gold-glow)); }
.rl__marker::before { top: 0; border-top: 12px solid var(--gold-2); }
.rl__marker::after { bottom: 0; border-bottom: 12px solid var(--gold-2); }
.rc { position: relative; flex: none; width: var(--cw); height: var(--ch); display: flex; flex-direction: column; padding: 8px 8px 10px; border-radius: 12px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #191d26, #12151c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); transition: filter 120ms, transform 160ms var(--ease-out); }
.rc::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rc); box-shadow: 0 0 14px 2px var(--rc); }
.rc__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 60% at 50% 100%, color-mix(in srgb, var(--rc) 30%, transparent), transparent 72%); }
.rc__art { flex: 1; min-height: 0; }
.rc__art .ph__name { display: none; }
.rc__txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.rc__txt span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc__txt b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc.is-under { filter: brightness(1.35); }
.rl.is-done .rc { filter: brightness(0.45) saturate(0.6); transition: filter 500ms; }
.rl.is-done .rc.is-win { filter: none; transform: scale(1.06); box-shadow: inset 0 0 0 2px var(--rc), 0 0 30px -4px var(--rc); z-index: 1; }
.rl.is-done .rl__marker { opacity: 0.35; transition: opacity 500ms; }
.strips--3 .rl, .strips--4 .rl, .strips--5 .rl { --cw: 104px; --ch: 112px; }
.strips--4 .rc__txt span, .strips--5 .rc__txt span { display: none; }
.strips--4 .strips, .strips--5 { gap: 8px; }
.casepg__stage.is-spinning .casepg__controls { margin-top: 14px; }

/* results */
.casepg__results { animation: resIn 420ms var(--ease-out); }
@keyframes resIn { from { opacity: 0; transform: translateY(10px); } }
.res-head { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 22px 0 16px; text-align: center; }
.res-head__title { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 5vw, 34px); letter-spacing: -0.01em; }
.res-head__sum { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--muted); }
.res-head__sum.is-plus .kd-money { color: var(--green); }
.res-head__sum.is-minus .kd-money { color: #ff8793; }
.res-grid { display: grid; gap: 12px; justify-content: center; grid-template-columns: repeat(auto-fit, minmax(150px, 220px)); }
.res-grid--1 { grid-template-columns: minmax(0, 260px); }
.res { position: relative; display: flex; flex-direction: column; gap: 8px; animation: cardIn 520ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes cardIn { 0% { opacity: 0; transform: translateY(18px) scale(0.92); } 60% { opacity: 1; transform: translateY(-3px) scale(1.01); } 100% { transform: none; } }
.res .it { width: 100%; }
.res__acts { display: grid; grid-template-columns: 1fr; gap: 6px; }
.res__acts .btn { --bh: 40px; font-size: 14px; padding: 0 10px; }
.res__state { min-height: 18px; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.res.is-sold .it { opacity: 0.4; filter: grayscale(0.7); transition: opacity 300ms, filter 300ms; }
.res.is-sold .res__state { color: var(--green); }
.res.is-kept .res__state { color: var(--gold-2); }
.res.is-sold .res__acts, .res.is-kept .res__acts { opacity: 0.35; pointer-events: none; }
.res-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }

/* ============ upgrade ============ */
.up { padding-bottom: 24px; }
.up__head { padding: 22px 0 8px; }
.page-title { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 6vw, 40px); letter-spacing: -0.02em; }
.page-lead { margin: 8px 0 0; max-width: 60ch; color: var(--text-2); }
.up__resume[hidden] { display: none; }
.resume { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 12px 14px; border-radius: 16px; background: linear-gradient(90deg, rgba(245, 185, 10, 0.16), rgba(245, 185, 10, 0.04)); box-shadow: inset 0 0 0 1px rgba(245, 185, 10, 0.35); }
.resume img, .resume .hay-fb { width: 48px; height: 48px; flex: none; }
.resume div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.resume b { font-family: var(--font-display); font-size: 15px; }
.resume span { color: var(--text-2); font-size: 13px; }

.up__stage { display: grid; gap: 14px; margin-top: 14px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "stake" "target" "center"; }
.up__side--stake { grid-area: stake; }
.up__side--target { grid-area: target; }
.up__center { grid-area: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pane { height: 100%; padding: 14px; border-radius: 20px; background: linear-gradient(180deg, #151922, #11141b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.04); display: flex; flex-direction: column; gap: 12px; }
.pane__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pane__head h2 { margin: 0; font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.pane__val { color: var(--gold-2); font-size: 16px; }
.pane__mult { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--green); }
.slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.slot { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 3.4; border-radius: 10px; border: 0; padding: 0; background: rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); color: var(--faint); }
.slot:not(.is-full) { background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255, 255, 255, 0.015) 6px 12px); }
.slot__plus { font-size: 18px; font-weight: 300; opacity: 0.6; }
.slot.is-full { cursor: pointer; background: none; box-shadow: none; }
.slot.is-full .it { width: 100%; height: 100%; }
.slot__x { position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text); font-size: 13px; line-height: 1; box-shadow: 0 0 0 2px #12151c; opacity: 0; transition: opacity var(--t-fast); }
.slot.is-full:hover .slot__x, .slot.is-full:focus-visible .slot__x { opacity: 1; }
@media (hover: none) { .slot__x { opacity: 1; } }
.balin label { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.balin__row { display: flex; flex-wrap: wrap; gap: 6px; }
.balin__field { display: flex; align-items: center; gap: 6px; flex: 1 1 120px; min-width: 0; height: 40px; padding: 0 10px; border-radius: 11px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--t-fast); }
.balin__field:focus-within { box-shadow: inset 0 0 0 1px var(--gold); }
.balin__field img { width: 18px; height: 18px; flex: none; }
.balin__field input { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; background: none; color: var(--text); font: inherit; font-weight: 800; font-variant-numeric: tabular-nums; outline: none; }
.balin__field input::placeholder { color: var(--faint); font-weight: 600; }
.balin__row .chip { height: 40px; flex: 1 0 auto; }

.tgt-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px; text-align: center; color: var(--muted); font-size: 14px; }
.tgt-empty p { margin: 0; max-width: 28ch; }
.tgt-empty__ring { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, 0.1); }
.tgt-empty__ring img { width: 40px; height: 40px; opacity: 0.5; }
.tgt-card { display: flex; justify-content: center; }
.tgt-card .it { width: 100%; max-width: 260px; }
.tgt-clear { align-self: center; }

.up__wheel { position: relative; width: min(100%, 360px); cursor: default; }
.up.is-busy .up__wheel { cursor: pointer; }
.up__go { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.up__spin { min-width: 230px; }
.up__spin .i-steam { width: 20px; height: 20px; fill: currentColor; }
.up__hint { margin: 0; min-height: 20px; text-align: center; color: var(--muted); font-size: 14px; max-width: 40ch; }
.up__hint.is-warn { color: #ffb36b; }
.lose-line { color: #ff9aa5; }

/* wheel */
.wh { position: relative; aspect-ratio: 1; width: 100%; }
.wh__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.wh__rim { fill: none; stroke: rgba(255, 255, 255, 0.05); stroke-width: 2; }
.wh__disc { filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6)); }
.wh__track { fill: none; stroke: rgba(255, 77, 94, 0.16); }
.wh__arc { fill: none; stroke: url(#whGreen); stroke-linecap: butt; stroke-dasharray: 0 1000; transition: stroke 400ms; }
.wh__arc-glow { fill: none; stroke: var(--green); opacity: 0.45; stroke-dasharray: 0 1000; }
.wh__goldring { fill: none; stroke: url(#whGold); stroke-dasharray: 0 1000; opacity: 0; }
.wh__tk { stroke: rgba(255, 255, 255, 0.1); stroke-width: 1.2; }
.wh__tk--maj { stroke: rgba(255, 255, 255, 0.25); stroke-width: 2; }
.wh__inner { fill: rgba(9, 11, 15, 0.6); stroke: rgba(255, 255, 255, 0.05); stroke-width: 1; }
.wh__ptr-body { fill: url(#whPtr); stroke: rgba(80, 50, 0, 0.6); stroke-width: 1; }
.wh__ptr-glow { fill: var(--gold); opacity: 0.6; }
.wh__ptr-dot { fill: #3b2700; }
.wh__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; text-align: center; }
.wh__chance { display: flex; align-items: baseline; font-family: var(--font-display); font-weight: 900; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.wh__pct { font-size: clamp(38px, 11vw, 56px); font-weight: 900; color: var(--text); transition: color 300ms; }
.wh__chance i { font-style: normal; font-size: 22px; margin-left: 2px; color: var(--muted); }
.wh__label { margin-top: 6px; font-size: 13px; color: var(--muted); font-weight: 700; }
.wh__x { margin-top: 4px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--green); min-height: 18px; }
.wh__verdict { position: absolute; bottom: 27%; font-family: var(--font-display); font-weight: 900; font-size: 18px; opacity: 0; transform: translateY(6px); transition: opacity 300ms, transform 300ms var(--ease-out); }
.wh.is-empty .wh__pct { color: var(--faint); }
.wh[data-state="spin"] .wh__ptr-glow { opacity: 0.9; }
.wh.is-win .wh__pct { color: var(--green); }
.wh.is-win .wh__verdict { opacity: 1; transform: none; color: var(--green); }
.wh.is-win .wh__arc-glow { opacity: 0.9; animation: arcPulse 900ms ease-out 2; }
.wh.is-lose .wh__pct { color: #ff8793; }
.wh.is-lose .wh__verdict { opacity: 1; transform: none; color: #ff8793; }
.wh.is-lose .wh__track { stroke: rgba(255, 77, 94, 0.35); transition: stroke 300ms; }
@keyframes arcPulse { 50% { opacity: 0.3; } }
.wh.is-gold .wh__goldring { opacity: 1; stroke-dasharray: 1000 1000; animation: goldRing 900ms var(--ease-out); }
.wh.is-gold .wh__pct { color: var(--gold-2); }
.wh.is-gold .wh__disc { filter: drop-shadow(0 0 40px rgba(245, 185, 10, 0.5)); }
@keyframes goldRing { from { stroke-dasharray: 0 1000; } }

/* pickers */
.up__pickers { display: grid; gap: 14px; margin-top: 22px; }
.pick { min-width: 0; padding: 14px; border-radius: 20px; background: linear-gradient(180deg, #13161e, #101319); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.pick__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pick__head h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.pick__count { margin-left: 6px; font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--muted); }
.mults { display: flex; flex-wrap: wrap; gap: 6px; }
.pick__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; transition: opacity var(--t); }
@media (min-width: 480px) { .pick__grid { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); } }
.pick__grid.is-loading { opacity: 0.5; }
.pick__grid > .empty, .pick__grid > .pick__login { grid-column: 1 / -1; }
.pick__login { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 10px; text-align: center; color: var(--text-2); }
.pick__login p { margin: 0; max-width: 36ch; }
.pick__more { display: flex; justify-content: center; margin-top: 12px; }
.pick__more .btn[hidden] { display: none; }
.filters { display: grid; gap: 8px; margin-bottom: 12px; }
.search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 12px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.search:focus-within { box-shadow: inset 0 0 0 1px var(--gold); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font: inherit; outline: none; }
.search input::-webkit-search-cancel-button { filter: invert(0.6); }
.price-range { display: flex; align-items: center; gap: 6px; }
.price-range .balin__field { flex: 1 1 0; height: 38px; }
.price-range__dash { color: var(--faint); }
.chip--sort { height: 38px; flex: none; }
.cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 24px), transparent); }
.cats::-webkit-scrollbar { display: none; }

@media (min-width: 900px) {
  .up__stage { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px) minmax(0, 1fr); grid-template-areas: "stake center target"; align-items: stretch; gap: 18px; }
  .up__wheel { width: 100%; max-width: 400px; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .up__pickers { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .pick__grid { max-height: 640px; overflow-y: auto; padding: 4px; margin: -4px; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
  .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cats { grid-column: 1 / -1; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .up__stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "center center" "stake target"; }
  .slots { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* gold overlay */
.gold-ov { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; pointer-events: auto; }
.gold-ov__flash { position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 46%, rgba(255, 228, 140, 0.95), rgba(245, 185, 10, 0.55) 35%, rgba(60, 40, 0, 0.75) 75%, rgba(8, 6, 0, 0.88)); opacity: 0; }
.gold-ov__rays { position: absolute; left: 50%; top: 46%; width: 180vmax; height: 180vmax; margin: -90vmax 0 0 -90vmax; border-radius: 50%; opacity: 0;
  background: repeating-conic-gradient(from 0deg, rgba(255, 236, 170, 0.22) 0deg 6deg, transparent 6deg 18deg); -webkit-mask-image: radial-gradient(closest-side, #000 10%, transparent 70%); mask-image: radial-gradient(closest-side, #000 10%, transparent 70%); }
.gold-ov__stamp { position: relative; padding: 14px 30px 18px; border-radius: 18px; transform: scale(2.6) rotate(-14deg); opacity: 0;
  border: 4px solid rgba(255, 241, 184, 0.9); box-shadow: 0 0 0 3px rgba(122, 78, 0, 0.6), inset 0 0 0 3px rgba(122, 78, 0, 0.5), 0 20px 80px rgba(80, 50, 0, 0.6); background: rgba(40, 26, 0, 0.35); }
.gold-ov__stamp span { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(46px, 13vw, 120px); line-height: 1; letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fffbe6 0%, #ffe08a 30%, #f5b90a 55%, #b9860b 80%, #ffe08a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #6b4500) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5)); }
.gold-ov__sub { position: relative; margin: 6px 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(16px, 4vw, 24px); color: #fff3cc; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); opacity: 0; transform: translateY(10px); }
.gold-ov__skip { position: absolute; bottom: calc(28px + var(--tabbar-h)); margin: 0; font-size: 13px; color: rgba(255, 243, 204, 0.7); opacity: 0; }
.gold-ov.is-on .gold-ov__flash { animation: gFlash 2400ms ease-out forwards; }
.gold-ov.is-on .gold-ov__rays { animation: gRays 2600ms ease-out forwards; }
.gold-ov.is-on .gold-ov__stamp { animation: gStamp 620ms cubic-bezier(0.2, 1.4, 0.4, 1) 120ms forwards; }
.gold-ov.is-on .gold-ov__sub { animation: gSub 500ms var(--ease-out) 620ms forwards; }
.gold-ov.is-on .gold-ov__skip { animation: gSub 400ms ease 1200ms forwards; }
.gold-ov.is-out { opacity: 0; transition: opacity 420ms ease; }
@keyframes gFlash { 0% { opacity: 0; } 6% { opacity: 1; } 25% { opacity: 0.86; } 100% { opacity: 0.74; } }
@keyframes gRays { 0% { opacity: 0; transform: rotate(0) scale(0.6); } 20% { opacity: 1; } 100% { opacity: 0.8; transform: rotate(40deg) scale(1); } }
@keyframes gStamp { 0% { opacity: 0; transform: scale(2.6) rotate(-14deg); } 60% { opacity: 1; transform: scale(0.94) rotate(-5deg); } 100% { opacity: 1; transform: scale(1) rotate(-6deg); } }
@keyframes gSub { to { opacity: 1; transform: none; } }

/* result modal (upgrade) */
.ures { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.ures__title { margin: 4px 0 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 5vw, 30px); letter-spacing: -0.01em; }
.modal--gold .ures__title { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ures__sub { margin: 0; color: var(--text-2); }
.ures__mult { display: flex; align-items: center; gap: 14px; }
.ures__base { font-size: 18px; color: var(--text-2); }
.ures__x { font-family: var(--font-display); font-weight: 900; font-size: 56px; line-height: 1; color: var(--gold-2); font-variant-numeric: tabular-nums; text-shadow: 0 0 30px var(--gold-glow); }
.ures__x.is-done { animation: xPop 500ms cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes xPop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.ures__items { display: grid; gap: 12px; width: 100%; justify-content: center; grid-template-columns: repeat(auto-fit, minmax(0, 240px)); transition: opacity 400ms, transform 400ms var(--ease-out); }
.ures__items.is-hidden { opacity: 0; transform: translateY(12px) scale(0.96); }
.ures__cta { margin-top: 4px; }

/* ============ modal ============ */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal__scrim { position: absolute; inset: 0; background: rgba(5, 6, 9, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 220ms; }
.modal__box { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; padding: 26px 20px 22px; border-radius: 24px; outline: none;
  background: linear-gradient(180deg, #1a1e28, #12151c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 0 0 1px rgba(255, 255, 255, 0.05), var(--shadow-lg);
  opacity: 0; transform: translateY(16px) scale(0.97); transition: opacity 240ms var(--ease-out), transform 300ms var(--ease-out); }
.modal.is-open .modal__scrim { opacity: 1; }
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal.is-closing .modal__box { transform: translateY(8px) scale(0.98); }
.modal__x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.04); color: var(--muted); cursor: pointer; }
.modal__x:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.modal__x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.modal__x[hidden] { display: none; }
.modal--result .modal__box { max-width: 560px; }
.modal--gold .modal__box { background: radial-gradient(80% 50% at 50% 0%, rgba(245, 185, 10, 0.2), transparent 70%), linear-gradient(180deg, #1d1a12, #13120e); box-shadow: inset 0 0 0 1px rgba(245, 185, 10, 0.3), 0 30px 80px -20px rgba(245, 185, 10, 0.25); }
.modal--bonus .modal__box { max-width: 600px; padding: 22px 16px 18px; background: radial-gradient(90% 40% at 50% 0%, rgba(245, 185, 10, 0.16), transparent 70%), radial-gradient(100% 40% at 50% 100%, rgba(245, 185, 10, 0.08), transparent 70%), linear-gradient(180deg, #19170f, #100f0b); box-shadow: inset 0 0 0 1px rgba(245, 185, 10, 0.22), var(--shadow-lg); }

.login-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.login-card__art { width: 120px; height: 84px; object-fit: contain; }
.login-card__title { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 24px; }
.login-card__text { margin: 0 0 8px; color: var(--text-2); max-width: 34ch; }
.login-card__note { margin: 4px 0 0; color: var(--faint); font-size: 12px; }
.confirm__title { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: 20px; padding-right: 30px; }
.confirm__text { color: var(--text-2); }
.confirm__text p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.confirm__row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ============ bonus game ============ */
.bg { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.bg__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 22px; }
.bg__wheat { width: 34px; height: 34px; }
.bg__title { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 6vw, 32px); letter-spacing: -0.01em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bg__sub { margin: 0; max-width: 46ch; color: var(--text-2); font-size: 14px; }
.bg__sub .kd-money { color: var(--gold-2); vertical-align: -2px; }
.bg__meter { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 16px; background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 0 1px rgba(245, 185, 10, 0.15); }
.bg__slots { display: flex; gap: 6px; }
.bg__slot { display: grid; place-items: center; min-width: 56px; height: 40px; padding: 0 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--faint); }
.bg__slot.is-on { animation: slotIn 420ms cubic-bezier(0.2, 1.5, 0.4, 1); }
.bg__slot.t-lo { color: #ff9aa5; }
.bg__slot.t-mid { color: var(--text); }
.bg__slot.t-hi { color: var(--gold-2); box-shadow: inset 0 0 0 1px rgba(245, 185, 10, 0.5); }
.bg__slot.t-jack { color: #241800; background: var(--gold-grad); }
@keyframes slotIn { from { transform: scale(0.6); opacity: 0; } }
.bg__total { display: flex; flex-direction: column; align-items: center; padding: 0 8px; min-width: 64px; }
.bg__total span { font-size: 11px; color: var(--muted); font-weight: 700; }
.bg__total b { font-family: var(--font-display); font-weight: 900; font-size: 20px; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.bg__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 440px; perspective: 900px; }
.hs { position: relative; aspect-ratio: 1; border: 0; padding: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hs__in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 620ms cubic-bezier(0.3, 1.3, 0.5, 1); }
.hs__face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.hs__front { background: radial-gradient(80% 70% at 50% 85%, rgba(245, 185, 10, 0.16), transparent 70%), linear-gradient(180deg, #1f1c13, #15130d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 0 1px rgba(245, 185, 10, 0.16); }
.hs__front img, .hs__back img { width: 84%; height: 84%; object-fit: contain; pointer-events: none; }
.hs__back { transform: rotateY(180deg); background: radial-gradient(80% 80% at 50% 50%, rgba(245, 185, 10, 0.3), transparent 70%), linear-gradient(180deg, #2a2412, #17140c); box-shadow: inset 0 0 0 2px rgba(245, 185, 10, 0.5); }
.hs__back img { position: absolute; opacity: 0.45; }
.hs__mult { position: relative; font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 7vw, 34px); color: var(--text); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 0, 0, 0.6); }
.hs__shadow { position: absolute; left: 14%; right: 14%; bottom: -6px; height: 10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent); }
.hs:not(:disabled):hover .hs__in { transform: translateY(-4px) rotateX(6deg); }
.hs:not(:disabled):hover .hs__front { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(245, 185, 10, 0.45), 0 12px 30px -12px var(--gold-glow); }
.hs:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 18px; }
.hs.is-rustle .hs__in { animation: rustle 520ms ease-in-out; }
@keyframes rustle { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-5deg) translateY(-2px); } 30% { transform: rotate(5deg); } 45% { transform: rotate(-4deg) translateY(-3px); } 60% { transform: rotate(3deg); } 80% { transform: rotate(-1deg); } }
.hs.is-open .hs__in { transform: rotateY(180deg); }
.hs.no-anim .hs__in { transition: none; }
.hs:disabled { cursor: default; }
.hs.t-lo .hs__mult { color: #ff9aa5; }
.hs.t-hi .hs__mult { color: var(--gold-2); }
.hs.t-jack .hs__back { background: var(--gold-grad); }
.hs.t-jack .hs__mult { color: #2a1b00; text-shadow: 0 1px 0 rgba(255, 245, 200, 0.6); }
.hs.is-ghost .hs__back { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); background: linear-gradient(180deg, #1a1812, #121009); }
.hs.is-ghost .hs__mult { opacity: 0.45; font-size: clamp(18px, 5vw, 26px); }
.bg__grid.is-locked .hs:not(.is-open) { cursor: default; }
.bg__grid.is-done .hs.is-picked .hs__back { animation: pickedGlow 1.6s ease-in-out infinite alternate; }
@keyframes pickedGlow { to { box-shadow: inset 0 0 0 2px var(--gold-2), 0 0 26px -2px var(--gold-glow); } }
.hay-fb { display: block; width: 76%; height: 64%; margin-top: 10%; border-radius: 50% 50% 14% 14% / 70% 70% 14% 14%;
  background: repeating-linear-gradient(100deg, transparent 0 7px, rgba(120, 76, 0, 0.35) 7px 9px), radial-gradient(80% 100% at 50% 0%, #ffd75e, #d79a0b 60%, #9b6a05); box-shadow: inset 0 -6px 0 rgba(80, 50, 0, 0.4); }
.bg__end { width: 100%; }
.bg__end[hidden] { display: none; }
.bg__result { display: flex; flex-direction: column; align-items: center; gap: 12px; animation: resIn 420ms var(--ease-out); }
.bg__formula { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 17px; }
.bg__formula > span { font-family: var(--font-display); color: var(--gold-2); }
.bg__reward { width: min(100%, 260px); }
.bg__none { color: var(--muted); }
.bg__later { margin: 0; color: var(--faint); font-size: 12px; text-align: center; }
.bg__later[hidden] { display: none; }

.bonus-pill { position: fixed; z-index: 45; right: 16px; bottom: calc(16px + var(--tabbar-h)); display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border: 0; border-radius: 18px; cursor: pointer; color: var(--text); text-align: left;
  background: linear-gradient(135deg, #2a230f, #17140c); box-shadow: inset 0 0 0 1px rgba(245, 185, 10, 0.45), 0 18px 40px -14px rgba(245, 185, 10, 0.4); animation: pillIn 600ms cubic-bezier(0.2, 1.4, 0.4, 1); }
.bonus-pill img, .bonus-pill .hay-fb { width: 44px; height: 44px; margin: 0; }
.bonus-pill span { display: flex; flex-direction: column; }
.bonus-pill b { font-family: var(--font-display); font-size: 13px; color: var(--gold-2); }
.bonus-pill small { font-size: 12px; color: var(--text-2); }
.bonus-pill:hover { filter: brightness(1.1); }
@keyframes pillIn { from { transform: translateY(30px) scale(0.9); opacity: 0; } }
body[data-route="upgrade"] .bonus-pill, body[data-route="profile"] .bonus-pill { display: none; }

/* ============ profile ============ */
.prof { padding-top: 22px; padding-bottom: 24px; }
.prof__card { position: relative; display: grid; gap: 18px; padding: 18px; border-radius: 24px; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 90% at 0% 0%, rgba(64, 92, 160, 0.16), transparent 70%), linear-gradient(180deg, #151922, #11141b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.prof__card.is-skel { min-height: 240px; }
.prof__who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.prof__ava { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 0 0 3px rgba(245, 185, 10, 0.35); }
.prof__ava .ava__fb { font-size: 28px; }
.prof__id { min-width: 0; }
.prof__name { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 5vw, 32px); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof__sid { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.prof__steam { font-size: 13px; color: var(--muted); text-decoration: underline; text-decoration-color: rgba(139, 146, 160, 0.4); text-underline-offset: 3px; }
.prof__steam:hover { color: var(--text); }
.prof__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.stat { padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04); min-width: 0; }
.stat dt { font-size: 12px; color: var(--muted); font-weight: 700; }
.stat dd { margin: 4px 0 0; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.stat--bal dd .kd-money { color: var(--gold-2); }
.prof__best { display: flex; flex-direction: column; gap: 8px; }
.prof__best-title { margin: 0; font-size: 14px; color: var(--muted); font-weight: 700; }
.prof__best .it { max-width: 220px; }
.prof__best-meta { margin: 0; font-size: 12px; color: var(--faint); }
.prof__best-none { margin: 0; color: var(--muted); font-size: 14px; }
@media (min-width: 900px) {
  .prof__card { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) 220px; align-items: center; padding: 24px; }
  .prof__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.inv { margin-top: 24px; }
.inv__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.inv__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.inv__title span { font-family: var(--font-body); font-size: 15px; color: var(--muted); margin-left: 4px; }
.inv__bar { position: sticky; top: var(--header-h); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; margin-bottom: 6px; background: linear-gradient(180deg, var(--bg) 70%, transparent); }
.inv__bar:empty { display: none; }
.inv__bar-sp { flex: 1; }
.inv__bar-hint { font-size: 13px; color: var(--faint); }
.inv__bar .btn { --bh: 40px; font-size: 14px; }
.inv__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .inv__grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; } }
.inv__grid > .empty { grid-column: 1 / -1; }
.inv__cell { position: relative; display: flex; flex-direction: column; }
.inv__cell .it { width: 100%; }
.inv__sell { position: absolute; left: 50%; bottom: 40px; transform: translate(-50%, 6px); height: 32px; padding: 0 14px; border: 0; border-radius: 10px; cursor: pointer; font-weight: 800; font-size: 13px;
  background: rgba(20, 60, 30, 0.92); color: #c8f7d2; box-shadow: inset 0 0 0 1px rgba(79, 211, 106, 0.5), 0 6px 18px rgba(0, 0, 0, 0.5); opacity: 0; transition: opacity var(--t-fast), transform var(--t-fast) var(--ease-out); }
.inv__cell:hover .inv__sell, .inv__sell:focus-visible { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .inv__sell { position: static; transform: none; opacity: 1; margin-top: 6px; width: 100%; background: rgba(79, 211, 106, 0.1); } }
.inv__cell.is-selling { opacity: 0.4; pointer-events: none; }

/* ============ top ============ */
.topg { padding-bottom: 24px; }
.topg__cols { display: grid; gap: 16px; margin-top: 14px; }
@media (min-width: 1000px) { .topg__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; } }
.lb { padding: 16px; border-radius: 22px; background: linear-gradient(180deg, #151922, #11141b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.lb__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.lb__head h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.lb__head span { font-size: 13px; color: var(--muted); }
.lb__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lb__row { position: relative; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 12px 8px 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.02); overflow: hidden; }
.lb__row.is-skel { min-height: 54px; }
.lb__row.is-me { box-shadow: inset 0 0 0 1px rgba(245, 185, 10, 0.4); background: rgba(245, 185, 10, 0.06); }
.lb__place { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, 0.04); }
.lb__place.is-p1 { background: var(--gold-grad); color: #241800; box-shadow: 0 4px 14px -4px var(--gold-glow); }
.lb__place.is-p2 { background: linear-gradient(135deg, #f1f4f8, #a9b3c1); color: #1d2430; }
.lb__place.is-p3 { background: linear-gradient(135deg, #f0b48a, #a8643a); color: #2a1406; }
.lb__ava { width: 36px; height: 36px; }
.lb__ava--sm { width: 26px; height: 26px; border-radius: 8px; }
.lb__ava--sm .ava__fb { font-size: 11px; }
.lb__name { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb__val { flex: none; margin-left: auto; color: var(--gold-2); }
.lb__row--drop { background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 12%, transparent), rgba(255, 255, 255, 0.02) 60%); }
.lb__row--drop::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--rc); box-shadow: 0 0 10px var(--rc); }
.lb__skin { flex: none; width: 62px; height: 46px; }
.lb__skin .ph__name { display: none; }
.lb__drop { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.lb__drop b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb__drop > span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb__by { display: none; align-items: center; gap: 8px; min-width: 0; flex: 0 1 180px; }
.lb__by > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.lb__by-name { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb__by small { font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 640px) { .lb__by { display: flex; } }
.lb__empty { padding: 20px; text-align: center; color: var(--muted); }

/* ============ empty states ============ */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 36px 16px; color: var(--text-2); }
.empty__art { width: 96px; height: 72px; object-fit: contain; opacity: 0.85; margin-bottom: 4px; }
.empty h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--text); }
.empty p { margin: 0 0 8px; max-width: 40ch; }
.empty--big { padding: 70px 16px; }
.empty--big .empty__art { width: 160px; height: 110px; }

/* ============ footer ============ */
.foot { margin-top: 40px; padding: 26px var(--gutter) 30px; border-top: 1px solid var(--line-soft); text-align: center; }
.foot p { margin: 0 auto; max-width: 60ch; font-size: 13px; color: var(--faint); }

/* ============ toasts ============ */
.toasts { position: fixed; z-index: 95; right: 16px; top: calc(var(--header-h) + 12px); display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 8px 12px 14px; border-radius: 14px; pointer-events: auto; background: rgba(28, 32, 42, 0.97); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); animation: toastIn 320ms var(--ease-out); }
.toast p { flex: 1; margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4; }
.toast__dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.toast--ok .toast__dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.toast--info .toast__dot { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.toast--error { box-shadow: inset 0 0 0 1px rgba(255, 77, 94, 0.35), var(--shadow); }
.toast__x { flex: none; width: 26px; height: 26px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
.toast__x:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.toast.is-out { opacity: 0; transform: translateX(20px); transition: opacity 240ms, transform 240ms; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }

.fx-canvas { position: fixed; inset: 0; z-index: 92; width: 100vw; height: 100vh; pointer-events: none; }
.mock-badge { position: fixed; z-index: 99; left: 10px; bottom: calc(10px + var(--tabbar-h)); padding: 3px 8px; border-radius: 6px; background: rgba(90, 169, 255, 0.18); color: var(--sky); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; pointer-events: none; }

/* ============ mobile tab bar ============ */
.tabbar { display: none; }
@media (max-width: 759px) {
  :root { --header-h: 60px; --tabbar-h: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .hdr__nav { display: none; }
  .hdr__in { gap: 8px; }
  .hdr__logo-full { display: none; }
  .hdr__logo-mark { display: block; }
  .hdr__logo .wordmark:not(.wordmark--mark) { display: none; }
  .hdr__name, .hdr__chev { display: none; }
  .hdr__user { padding: 0 4px; }
  .hdr__bal { height: 40px; padding: 0 12px 0 8px; font-size: 15px; }
  .hdr__login-long { display: none; }
  .hdr__login-short { display: inline; }
  .tabbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: var(--tabbar-h); padding: 6px 8px env(safe-area-inset-bottom, 0px); display: grid; grid-template-columns: repeat(4, 1fr);
    background: rgba(13, 15, 20, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--line-soft); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 12px; color: var(--muted); font-size: 11px; font-weight: 700; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.is-active { color: var(--gold-2); }
  .tabbar a.is-active::before { content: ''; position: absolute; top: -6px; left: 30%; right: 30%; height: 2px; border-radius: 0 0 2px 2px; background: var(--gold); box-shadow: 0 0 10px var(--gold-glow); }
  .tabbar .daily-dot { position: absolute; top: 6px; right: calc(50% - 18px); }
  .toasts { top: auto; bottom: calc(var(--tabbar-h) + 12px); right: 16px; }
  .foot { margin-top: 28px; }
}
@media (max-width: 380px) {
  .hdr__sound { display: none; }
}

/* ============ responsive layout tweaks ============ */
@media (min-width: 760px) {
  .hero__moon { width: 84px; height: 84px; top: 48px; }
  .casepg__stage { padding: 30px 28px 28px; }
  .casepg__hero { grid-template-columns: auto minmax(0, 1fr); text-align: left; justify-items: start; align-items: center; gap: 36px; padding: 0 16px; }
  .casepg__facts { justify-content: flex-start; }
  .casepg__facts div { align-items: flex-start; }
  .rl { --cw: 150px; --ch: 168px; }
  .strips--2 .rl { --cw: 140px; --ch: 150px; }
  .strips--3 .rl { --cw: 124px; --ch: 128px; }
  .strips--4 .rl, .strips--5 .rl { --cw: 112px; --ch: 108px; }
  .modal__box { padding: 30px 28px 26px; }
  .modal--bonus .modal__box { padding: 26px 26px 22px; }
}
@media (min-width: 1100px) {
  .hero__lead { font-size: 17px; }
  .res-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 220px)); }
}
@media (max-width: 759px) {
  .rl { --cw: 112px; --ch: 132px; }
  .strips--2 .rl { --cw: 104px; --ch: 116px; }
  .strips--3 .rl, .strips--4 .rl, .strips--5 .rl { --cw: 84px; --ch: 92px; }
  .strips--3 .rc__txt, .strips--4 .rc__txt, .strips--5 .rc__txt { display: none; }
  .strips--3 .rc, .strips--4 .rc, .strips--5 .rc { padding: 6px; }
  .openbar__go { min-width: 0; flex: 1 1 100%; }
  .seg { width: 100%; }
  .seg__b { flex: 1; min-width: 0; }
  .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res-grid--1 { grid-template-columns: minmax(0, 240px); }
  .res-grid--3 .res:last-child, .res-grid--5 .res:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
  .modal { align-items: flex-end; padding: 0; }
  .modal__box { max-width: none; border-radius: 24px 24px 0 0; max-height: 92vh; max-height: 92dvh; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateY(40px); }
  .modal--bonus .modal__box, .modal--result .modal__box { max-width: none; }
  .bg__slot { min-width: 50px; height: 36px; font-size: 14px; }
  .bg__grid { gap: 8px; }
  .ures__x { font-size: 46px; }
  .up__spin { flex: 1 1 100%; }
  .promo { grid-template-columns: auto 1fr; }
  .promo__go { grid-column: 1 / -1; justify-content: center; height: 40px; }
  .promo__art { width: 72px; height: 56px; }
  .promo__wheel { width: 56px; height: 56px; margin: 0 8px 0 8px; }
  .promo__wheel img { inset: 15px; width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__stars, .casepg__halo, .casepg__img, .daily-dot, .live__dot { animation: none !important; }
  .main .page { transform: none; }
}

/* stake locked while the wheel spins */
.up.is-busy .slots, .up.is-busy .balin, .up.is-busy .up__pickers { opacity: 0.55; pointer-events: none; transition: opacity var(--t); }

/* upgrade — compact stage on small screens: stake, target and wheel fit in about one screen */
@media (max-width: 899px) {
  .up__head { padding-top: 16px; }
  .page-lead { font-size: 14px; }
  .up__stage { gap: 10px; }
  .pane { padding: 12px; gap: 10px; border-radius: 18px; }
  .pane--target { min-height: 0; }
  .tgt-empty { flex-direction: row; justify-content: flex-start; text-align: left; padding: 4px; gap: 12px; }
  .tgt-empty__ring { width: 56px; height: 56px; flex: none; }
  .tgt-empty__ring img { width: 26px; height: 26px; }
  .tgt-card { justify-content: stretch; }
  .tgt-card .it { max-width: none; display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 12px; padding: 10px 12px; }
  .tgt-card .it__top { grid-column: 2; grid-row: 1; }
  .tgt-card .it__art { grid-column: 1; grid-row: 1 / span 3; margin: 0; align-self: center; }
  .tgt-card .it__meta { grid-column: 2; grid-row: 2; }
  .tgt-card .it__foot { grid-column: 2; grid-row: 3; margin-top: 4px; align-self: start; }
  .tgt-card .it__skin { font-size: 16px; }
  .tgt-clear { align-self: flex-end; margin-top: -4px; }
  .up__wheel { width: min(100%, 320px); }
}
.ban-note { background: rgba(255, 77, 94, 0.1); border-bottom: 1px solid rgba(255, 77, 94, 0.25); color: #ffb3bb; font-size: 14px; font-weight: 600; }
.ban-note .wrap { padding-top: 10px; padding-bottom: 10px; }

/* First-launch catalogue setup */
.setup-box { max-width: 520px; margin: 24px auto; }
.setup-bar { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin: 18px 0 8px; }
.setup-bar__fill { display: block; height: 100%; background: var(--gold-grad); border-radius: inherit; transition: width var(--t) var(--ease-out); }
.setup-pct { color: var(--muted); font-variant-numeric: tabular-nums; }
