:root {
  color-scheme: dark;
  --canvas:#0b1018; --rail:#101722; --panel:#121c29; --well:#101824;
  --line:#263449; --bright-line:#4a6787; --text:#f0f5fc; --muted:#a3b3c8;
  --lime:#73cbff; --mint:#89c5fd; --orange:#ffb483; --error:#ffc3bf;
  --mono: "SFMono-Regular", Consolas, monospace;
  font: 15px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; min-width:300px; background:var(--canvas); color:var(--text); }
a { color:inherit; text-decoration:none; }
a:hover { color:var(--lime); }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
button:disabled { cursor:not-allowed; opacity:.5; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:2px solid var(--lime); outline-offset:3px; }
h1,h2,h3,p { margin:0; }
h1,h2,h3 { letter-spacing:-.045em; line-height:1.1; }
h1 { font-size:clamp(2rem,4.4vw,3.6rem); font-weight:750; }
h2 { font-size:clamp(1.45rem,2.6vw,2rem); }
h3 { font-size:1.2rem; }
p + p { margin-top:.7em; }
small,.muted { color:var(--muted); }
code,pre,.number { font-family:var(--mono); font-variant-numeric:tabular-nums; }
.skip-link { position:fixed; top:0; left:-200vw; z-index:10; background:var(--lime); color:var(--canvas); padding:.7rem 1rem; }
.skip-link:focus { left:0; }
.layout { min-height:100vh; display:grid; grid-template-columns:202px minmax(0,1fr); }
.brand { align-items:center; display:inline-flex; font-weight:850; letter-spacing:-.07em; font-size:2rem; line-height:1; gap:.6rem; padding:0 .58rem; width:fit-content; }
.brand-dot { color:var(--lime); }
.brand-glyph { width:25px; height:25px; position:relative; display:grid; grid-template-columns:repeat(2,1fr); grid-template-rows:repeat(2,1fr); gap:3px; transform:rotate(-12deg); }
.brand-glyph i { display:block; border-radius:2px; background:var(--lime); }
.brand-glyph i:nth-child(2) { grid-row:2; grid-column:1; }
.brand-glyph i:nth-child(3) { grid-row:2; grid-column:2; }
.status-dot { display:inline-block; width:.47rem; height:.47rem; margin-right:.53rem; border-radius:50%; background:var(--mint); box-shadow:0 0 8px #6bcaff66; vertical-align:.05em; }
.surface { display:flex; min-width:0; flex-direction:column; min-height:100vh; }
.topbar { min-height:66px; padding:.8rem clamp(1rem,3vw,3rem); display:flex; align-items:center; gap:1rem; border-bottom:1px solid var(--line); background:var(--rail); }
.crumb { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:.92rem; }
.account-bar { display:flex; gap:.55rem; align-items:center; }
.account-balance { display:flex; align-items:center; gap:.7rem; padding:.48rem .55rem .48rem .75rem; background:var(--well); border:1px solid var(--line); border-radius:8px; white-space:nowrap; }
.account-balance .number { color:var(--lime); }
.avatar { color:var(--mint); background:#1c324b; border-radius:8px; width:37px; height:37px; text-align:center; font-weight:800; border:1px solid var(--line); }
.icon-button { padding:0; width:38px; height:38px; border-radius:8px; background:var(--well); color:var(--muted); border:1px solid var(--line); font-size:1rem; }
.icon-button:hover { color:var(--lime); }
main { width:min(1500px,100%); margin:0 auto; padding:clamp(1rem,2.6vw,2.6rem); flex:1; }
footer { display:flex; gap:1rem; justify-content:space-between; margin:0 clamp(1rem,3vw,3rem); padding:1.1rem 0; border-top:1px solid var(--line); color:var(--muted); font-size:.82rem; }
footer span:first-child { font-weight:850; letter-spacing:.08em; }
.button { display:inline-flex; align-items:center; min-height:38px; justify-content:center; padding:.5rem .9rem; border:1px solid transparent; gap:.45rem; color:var(--canvas); background:var(--lime); border-radius:8px; font-weight:750; text-align:center; }
.button:hover:not(:disabled) { background:#a6dcff; color:#0b1018; }
.button.secondary { background:#1c2c40; border-color:var(--line); color:var(--text); }
.button.secondary:hover:not(:disabled) { background:#263c56; border-color:var(--bright-line); color:var(--text); }
.button.danger { color:var(--error); background:#38242b; border-color:#74505b; }
.button.danger:hover:not(:disabled) { background:#51343e; color:var(--text); }
.button.small { min-height:31px; padding:.27rem .58rem; font-size:.85rem; }
button.quiet { padding:0; color:var(--mint); background:none; border:0; text-align:left; }
button.quiet:hover { text-decoration:underline; }
.hero { display:grid; position:relative; min-height:clamp(290px,30vw,425px); align-items:center; isolation:isolate; overflow:hidden; border:1px solid #2b4565; border-radius:14px; background:#111d2e; }
.hero-copy { position:relative; z-index:1; padding:clamp(1.65rem,4.75vw,4.4rem); }
.hero-copy h1 { max-width:580px; font-size:clamp(2.7rem,5.9vw,5.4rem); letter-spacing:-.068em; text-wrap:balance; }
.hero-copy p { color:#cfdaea; max-width:31ch; font-size:1rem; margin:.85rem 0 1.4rem; text-wrap:pretty; }
.hero-image { position:absolute; inset:0; overflow:hidden; }
.hero-image::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#0d1827 4%,#0d1827ec 26%,#0d18277a 50%,transparent 76%); }
.hero-image img { display:block; width:100%; height:100%; object-fit:cover; object-position:center 57%; }
.section-head { display:flex; gap:.8rem; align-items:center; justify-content:space-between; margin-bottom:.9rem; }
.section-head p { margin-top:.4rem; }
section + section,.tile-grid + section,.section-gap { margin-top:2rem; }
.page-head { display:flex; justify-content:space-between; align-items:end; gap:1rem; margin:0 0 1.45rem; }
.page-head p { color:var(--muted); font-size:1.02rem; margin-top:.65rem; max-width:700px; }
.page-head .tag { flex-shrink:0; }
.tag { display:inline-flex; align-items:center; gap:.4rem; padding:.23rem .55rem; border:1px solid var(--line); background:var(--well); border-radius:5px; color:var(--mint); font-family:var(--mono); font-size:.74rem; }
.tag.warm { color:var(--orange); border-color:#614350; background:#32242e; }
.tile-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.9rem; }
.tile { display:block; min-width:0; border:1px solid var(--line); background:var(--panel); border-radius:11px; overflow:hidden; transition:transform .18s ease,border-color .18s ease; }
.tile:hover { transform:translateY(-3px); border-color:#609fcb; color:var(--text); }
.tile[aria-disabled="true"] { opacity:.57; }
.tile-art { width:100%; height:124px; display:block; background:#152134; }
.tile-label { display:flex; gap:.45rem; justify-content:space-between; align-items:center; padding:.72rem .85rem .82rem; }
.tile-label strong { font-size:1.03rem; overflow-wrap:anywhere; }
.tile-label span { color:var(--mint); flex-shrink:0; }
.tile-label .number { color:var(--lime); font-size:.83rem; }
.panel { border:1px solid var(--line); border-radius:11px; background:var(--panel); padding:1rem; min-width:0; }
.panel + .panel { margin-top:.8rem; }
.panel h3 { margin-bottom:.65rem; }
.split { display:grid; grid-template-columns:minmax(0,2.5fr) minmax(260px,1fr); gap:1rem; align-items:start; }
.split .panel + .panel { margin-top:0; }
.stage { position:relative; min-height:370px; padding:0; overflow:hidden; background:#101924; }
.stage canvas { display:block; width:100%; height:370px; }
.stage-header { display:flex; align-items:center; gap:.55rem; position:absolute; top:1rem; left:1rem; right:1rem; pointer-events:none; }
.stage-label { position:absolute; bottom:1rem; left:1rem; color:var(--muted); padding:.2rem .5rem; background:#101927e8; border-radius:4px; font-family:var(--mono); font-size:.78rem; overflow-wrap:anywhere; }
.stage-controls { background:#101924; min-height:370px; display:grid; place-content:center; padding:3.45rem 1rem 2.5rem; }
.board { display:grid; width:min(416px,100%); grid-template-columns:repeat(var(--columns,5),minmax(0,1fr)); gap:.37rem; }
.board button { width:100%; min-width:0; aspect-ratio:1; color:var(--muted); border-radius:7px; border:1px solid #354964; background:#1c2d43; display:grid; place-content:center; }
.board button:hover:not(:disabled) { border-color:var(--lime); color:var(--lime); }
.board button:disabled { opacity:1; }
.board button.selected { background:#79cbfa; color:#101b26; border-color:#a0deff; font-weight:800; }
.board button.hit { background:#144052; color:#9be5fb; border-color:#4e9cb1; }
.board button.lost { background:#562b3b; color:#ffd4c2; border-color:#9b586d; }
.board button.fade { opacity:.6; }
.card-face { margin:auto; width:105px; height:145px; border-radius:12px; border:1px solid #dbe8f3; background:#f0f4fa; color:#111c2a; display:grid; place-content:center; font:bold 2.7rem/1 var(--mono); box-shadow:7px 7px 0 #21324b; transform:rotate(-8deg); }
.cards-history { margin-top:1rem; display:flex; gap:.3rem; justify-content:center; flex-wrap:wrap; }
.cards-history > span { padding:.2rem .42rem; background:#1c2e44; border-radius:4px; }
.result-strip { display:flex; gap:.55rem 1.2rem; justify-content:space-between; align-items:center; flex-wrap:wrap; margin-top:.75rem; min-height:48px; }
.result-strip strong { color:var(--lime); }
.form { display:grid; gap:.72rem; }
.form label { display:grid; gap:.27rem; color:var(--muted); font-size:.91rem; min-width:0; }
input,select,textarea { width:100%; min-height:39px; padding:.52rem .65rem; background:#0c1420; color:var(--text); border:1px solid #344a67; border-radius:6px; min-width:0; }
textarea { min-height:66px; resize:vertical; }
input[type=checkbox],input[type=radio] { width:1rem; height:1rem; min-height:0; margin:0; accent-color:var(--lime); }
label.check { display:flex; gap:.45rem; align-items:center; }
fieldset { margin:0; min-width:0; border:1px solid var(--line); border-radius:6px; padding:.55rem .64rem .67rem; }
fieldset legend { color:var(--muted); padding:0 .35rem; font-size:.9rem; }
.field-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,117px),1fr)); gap:.55rem; align-items:start; }
.stack { display:grid; gap:.65rem; }
.actions { display:flex; gap:.55rem; flex-wrap:wrap; align-items:center; }
.notice { border:1px solid var(--line); color:var(--muted); padding:.67rem .8rem; border-radius:7px; background:var(--well); }
.error { color:var(--error); }
.empty,.loading { padding:1.1rem; color:var(--muted); border:1px dashed var(--line); border-radius:8px; }
.loading { min-height:85px; }
.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:9px; }
table { width:100%; border-collapse:collapse; text-align:left; font-size:.9rem; }
th { color:var(--muted); font-weight:600; background:#172538; }
td,th { padding:.62rem .75rem; border-bottom:1px solid var(--line); vertical-align:top; }
tr:last-child td { border-bottom:0; }
td { overflow-wrap:anywhere; max-width:300px; }
.stat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(148px,1fr)); gap:.65rem; }
.stat { padding:.72rem .85rem; border:1px solid var(--line); border-radius:8px; background:var(--panel); }
.stat span { display:block; margin-bottom:.2rem; color:var(--muted); font-size:.85rem; }
.stat strong { color:var(--lime); font-family:var(--mono); font-size:1.25rem; }
.item-results { display:flex; gap:.45rem; flex-wrap:wrap; }
.item-chip { border-radius:7px; padding:.35rem .55rem; border:1px solid #3d6488; color:var(--lime); background:#182e45; }
details { min-width:0; }
details summary { cursor:pointer; color:var(--mint); }
details[open] summary { margin-bottom:.65rem; }
pre { margin:.35rem 0 0; padding:.65rem; border-radius:6px; background:#101927; color:#c0d5ee; font-size:.8rem; overflow:auto; max-height:310px; }
.subnav { display:flex; gap:.45rem; flex-wrap:wrap; margin:0 0 1rem; }
.subnav a[aria-current] { border-color:var(--lime); color:var(--lime); }
dialog { border:1px solid var(--bright-line); border-radius:13px; color:var(--text); background:var(--panel); padding:1.2rem; width:min(540px,calc(100% - 24px)); max-height:88vh; }
dialog::backdrop { background:#070b12d9; }
.dialog-head { display:flex; justify-content:space-between; align-items:center; gap:.6rem; margin-bottom:1rem; }
.dialog-feedback { margin-top:.9rem; color:var(--error); border-color:#99596f; }
.toast { position:fixed; z-index:6; background:#193451; color:var(--text); border:1px solid #537fac; bottom:1.1rem; right:1.1rem; max-width:min(410px,calc(100vw - 2rem)); padding:.7rem 1rem; border-radius:8px; box-shadow:0 6px 21px #0007; overflow-wrap:anywhere; }
.toast.error { background:#452938; border-color:#99596f; color:var(--error); }
@media (max-width:1150px) { .tile-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:900px) {
  .layout { grid-template-columns:68px minmax(0,1fr); }
  .brand { margin:auto auto 0; padding:0; margin-top:0; }
  .brand > span:last-child { display:none; }
  .split { grid-template-columns:1fr; }
}
@media (max-width:620px) {
  .layout { display:block; }
  .topbar { min-height:65px; position:sticky; top:0; z-index:4; gap:.5rem; padding:.55rem .75rem; }
  .account-bar { gap:.35rem; }
  .account-bar .button { padding-inline:.55rem; }
  .account-balance { gap:.4rem; padding:.32rem .35rem .32rem .4rem; }
  .account-balance .credit-mark { display:none; }
  .hero { min-height:284px; }
  .hero-copy { padding:1.45rem; }
  .hero-copy h1 { font-size:clamp(2.4rem,9vw,4rem); }
  .hero-copy p { max-width:27ch; }
  .hero-image img { object-position:63% 55%; }
  .hero-image::after { background:linear-gradient(90deg,#0d1827f7,#0d1827b8 51%,#0d18272d),linear-gradient(0deg,#0d1827c5,transparent 70%); }
  .tile-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.62rem; }
  .tile-art { height:105px; }
  .page-head { align-items:start; }
  .stage,.stage-controls { min-height:290px; }
  .stage canvas { height:290px; }
  footer { font-size:.73rem; }
}
@media (max-width:420px) { .page-head { flex-direction:column; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none !important; scroll-behavior:auto !important; } }
.stage-controls { justify-content:stretch; }
.board { justify-self:center; }
.board.c2 { --columns:2; }
.board.c3 { --columns:3; }
.board.c4 { --columns:4; }
.board.c5 { --columns:5; }
.board.c6 { --columns:6; }
.board.c7 { --columns:7; }
.board.c8 { --columns:8; }
.board button.keno-win { background:var(--orange); border-color:#ffe0aa; }
.inventory-pick { display:grid; gap:.35rem; max-height:10rem; overflow:auto; }
.board .hit,.board .lost,.card-face,.item-chip { animation:reveal .28s ease-out both; }
@keyframes reveal { from { opacity:.55; scale:.94; } to { opacity:1; scale:1; } }
@media (prefers-reduced-motion:reduce) { .board .hit,.board .lost,.card-face,.item-chip { animation:none; } }
.case-pick-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.55rem; align-items:end; }
.battle-arena { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,174px),1fr)); gap:.65rem; align-items:start; }
.battle-arena .panel + .panel { margin-top:0; }
.battle-arena .winner { border-color:var(--lime); background:#15334b; }
.battle-seat, .battle-seat > * { min-width:0; }
.battle-seat .section-head { flex-wrap:wrap; }
.battle-seat h3, .battle-prize-name { overflow-wrap:anywhere; }
.battle-opening { position:relative; display:grid; min-height:108px; overflow:hidden; border:1px solid var(--line); border-radius:8px; background:#0b141f; }
.battle-crate, .battle-prize { grid-area:1/1; min-width:0; }
.battle-art, .battle-opening .prize-art { display:block; width:100%; height:78px; }
.battle-prize-name { display:block; align-self:end; padding:.3rem .5rem; text-align:center; font-size:.85rem; }
.battle-opening[data-animate="normal"] { --opening-ms: .38s; }
.battle-opening[data-animate="fast"] { --opening-ms: .15s; }
.battle-opening[data-animate] .battle-crate { animation:battle-unseal var(--opening-ms) ease-out both; }
.battle-opening[data-animate] .battle-prize { animation:battle-item var(--opening-ms) ease-out both; }
@keyframes battle-unseal { 0%,12% { opacity:1; scale:1; } 56%,100% { opacity:0; scale:1.13; } }
@keyframes battle-item { 0%,28% { opacity:0; transform:translateY(13px); } 100% { opacity:1; transform:translateY(0); } }
.drop-list { display:grid; gap:.32rem; max-height:190px; overflow:auto; }
.drop-list .item-chip { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:.3rem; }
.drop-list .item-chip span { overflow-wrap:anywhere; }
.drop-list .item-chip strong { white-space:nowrap; }
.drop-list .item-chip, .battle-case-order .item-chip { animation:none; }
@media (prefers-reduced-motion:reduce) {
  .battle-opening[data-animate] .battle-crate { display:none; }
  .battle-opening[data-animate] .battle-prize { animation:none; }
}
dialog.dialog-wide { width:min(760px,calc(100% - 24px)); }
.editor-json { grid-column:1/-1; }
.guest-fields :disabled { opacity:.63; }
@media (min-width:901px) { .leaderboards { grid-template-columns:repeat(2,minmax(0,1fr)); } }

:root {
  --accent:#73cbff;
  --accent-soft:#b5e4ff;
  --success:#71dfc8;
  --inverse:#081421;
  --tier-color:#78aafa;
}
.brand { color:#f4f8ff; }
.brand-glyph { width:24px; height:23px; transform:rotate(-14deg) skew(-6deg); }
.brand-glyph i { box-shadow:0 0 19px #73cbff44; }
.nav-divider { height:1px; background:var(--line); margin:.48rem .55rem; }
.topbar { background:#101722f7; position:sticky; top:0; z-index:4; }
.account-balance .button { min-width:32px; }
.avatar { border-radius:50%; }
.button { border-radius:7px; }
.button:not(.secondary,.danger):active { background:#5cb6ee; }
.hero .button { min-height:45px; padding-inline:1.18rem; }
.hero .button.secondary { background:#18283adb; }
.section-link,.return-link { font-weight:700; color:var(--accent-soft); font-size:.86rem; }
.section-link:hover,.return-link:hover { text-decoration:underline; text-underline-offset:.23em; }
.return-link { display:inline-block; margin-bottom:.85rem; }
.price { display:inline-flex; white-space:nowrap; border-radius:6px; padding:.28rem .53rem; background:#122e49; color:var(--accent-soft) !important; font:700 .85rem/1.4 var(--mono); font-variant-numeric:tabular-nums; }
.tile-label { padding:.72rem .84rem .84rem; }
.tile-label small { display:block; margin-top:.15rem; font-size:.72rem; }
.case-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.case-tile .tile-art { height:clamp(130px,14vw,215px); }
.case-tile .tile-label { align-items:start; }
.case-tile .tile-label strong { display:block; }
.mode-grid .tile-art { height:103px; }
.mode-grid .tile-label { padding-block:.56rem; }
.page-head .price { margin-bottom:.16rem; font-size:1.08rem; }
.game-layout { grid-template-columns:minmax(0,2.5fr) minmax(260px,1fr); gap:.9rem; }
.stage-column { min-width:0; }
.stage { border-radius:12px; box-shadow:inset 0 1px 0 #86baf216; }
.stage-controls { background:radial-gradient(ellipse at 50% 42%,#162a42 0%,#101824 72%); }
.stage-open-case,.stage-open-case canvas { min-height:338px; height:338px; }
.stage-header { z-index:1; }
#game-sidebar { background:linear-gradient(157deg,#182539,#121b28 58%); border-radius:12px; padding:1rem; }
#game-sidebar h3 { margin:0 0 .24rem; font-size:1.13rem; }
#game-sidebar .play-primary { flex:1; min-height:45px; }
#game-sidebar .guest-fields { border:0; padding:0; }
.choice-field { padding:.22rem 0 0; border:0; }
.choice-field legend { padding:0; }
.choices { display:grid; grid-auto-columns:1fr; grid-auto-flow:column; gap:.34rem; }
.choices label { position:relative; min-height:33px; }
.choices input[type=radio],.choices input[type=radio]:disabled { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.choices label span { display:grid; place-items:center; min-height:33px; background:#101a2a; border:1px solid var(--line); color:var(--muted); border-radius:6px; font:700 .9rem/1 var(--mono); }
.choices input:checked + span { background:#204c71; color:#d8efff; border-color:#558db6; }
.choices input:focus-visible + span { outline:2px solid var(--accent); outline-offset:2px; }
.result-strip { border-left:2px solid var(--accent); }
.result-win .result-state { color:var(--success); }
.result-loss { border-left-color:#d47888; }
.result-loss .result-state { color:var(--error); }
.result-strip .item-results { flex-basis:100%; }
.item-results .item-chip { display:flex; align-items:center; gap:.55rem; color:var(--text); flex:1 1 175px; }
.item-results .item-chip .prize-art { width:66px; height:46px; flex-shrink:0; border-radius:4px; }
.item-results .item-chip strong { color:inherit; display:block; line-height:1.15; font-size:.85rem; }
.item-results .item-chip small { color:var(--accent-soft); }
.prize-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,173px),1fr)); gap:.7rem; align-items:start; }
.prize-card { position:relative; min-width:0; display:block !important; overflow:hidden; cursor:pointer; background:var(--panel); border:1px solid var(--line); border-top:2px solid var(--tier-color); border-radius:9px; }
.prize-card:hover,.prize-card:has(input:checked) { border-color:var(--tier-color); }
.prize-card:focus-within { outline:2px solid var(--tier-color); outline-offset:2px; }
.prize-card summary { list-style:none; }
.prize-card summary::-webkit-details-marker { display:none; }
.prize-card[open] summary { margin-bottom:0; }
.prize-card input { position:absolute; right:.55rem; top:.55rem; z-index:1; }
.prize-art { width:100%; height:90px; display:block; background:#0b141f; }
.skin-preview { position:relative; display:grid; place-items:center; min-width:0; }
.skin-preview.prize-art { background:radial-gradient(ellipse at 50% 48%,color-mix(in srgb,var(--tier-color) 25%,transparent),transparent 74%),#191620; }
.skin-preview > img { position:absolute; inset:0; width:100%; height:100%; padding:3px 6%; object-fit:contain; pointer-events:none; }
.skin-preview:is(.inventory-card-art,.inventory-inspect-art,.store-case-skin) > img,
.case-prizes .skin-preview > img,
.case-game .result-strip .skin-preview > img,
.case-award-dialog .skin-preview > img { object-view-box:var(--steam-image-view, none); }
.skin-preview > img:not([data-ready]) { opacity:0; }
.skin-preview > img[data-ready] + .skin-preview-label { visibility:hidden; }
.skin-preview-label { position:absolute; inset:50% auto auto 50%; translate:-50% -50%; max-width:90%; padding:.2em .56em; border:1px solid var(--tier-color); border-radius:7px; background:#181520; color:var(--text); font-size:clamp(.54rem,1vw,.77rem); line-height:1.25; font-weight:700; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.game-item .skin-preview > img { padding:.95rem 8% 1.9rem; }
.live-drop .skin-preview > img { padding:.2rem 8% .4rem; }
.tier-common { --tier-color:#79a7e9; }
.tier-rare { --tier-color:#b49cf8; }
.tier-epic { --tier-color:#f19ed6; }
.tier-legendary { --tier-color:#ffc486; }
.prize-copy { padding:.63rem .7rem .67rem; font-size:.87rem; color:var(--text); }
.prize-copy strong { display:block; overflow-wrap:anywhere; }
.prize-copy small { display:block; margin-top:.12rem; font-size:.74rem; }
.prize-meta { display:flex; justify-content:space-between; gap:.2rem; margin-top:.45rem; color:var(--tier-color); font-variant-numeric:tabular-nums; }
.prize-meta span { color:var(--muted); }
.ticket-range { cursor:default; display:grid; gap:.18rem; padding:.6rem .7rem; margin:0; background:var(--well); border-top:1px solid var(--line); color:var(--text); font-size:.75rem; }
.ticket-range dt { color:var(--muted); }
.ticket-range dd { margin:0 0 .25rem; font-family:var(--mono); }
.card-face { width:118px; height:162px; position:relative; grid-auto-flow:column; place-items:center; gap:.14rem; box-shadow:8px 8px 0 #223550,0 18px 45px #04091173; font-size:2.46rem; }
.card-face::before { content:""; position:absolute; inset:8px; border:1px solid #9eafc4; border-radius:7px; }
.card-face.red { color:#ab243b; }
.admin-page .subnav { gap:.35rem; padding-bottom:.58rem; border-bottom:1px solid var(--line); }
.admin-page .panel + .stat-grid { margin-top:.8rem; }
.admin-page .stat-grid { margin-bottom:1.65rem; }
.admin-page .stat { background:linear-gradient(142deg,#1a2c44,#121d2b 73%); min-height:79px; }
.admin-page tbody tr:hover { background:#18273a; }
.admin-page summary { font-weight:650; }
.admin-page td > .actions { flex-wrap:nowrap; }
.admin-case-list { padding:0; margin:0; list-style:none; display:grid; gap:.65rem; }
.admin-case-record { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:.7rem 1rem; }
.admin-case-title { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem; min-width:0; overflow-wrap:anywhere; }
.admin-case-record .price, .admin-case-record .actions button { white-space:nowrap; }
.admin-case-record > details { grid-column:1/-1; min-width:0; padding-top:.55rem; border-top:1px solid var(--line); }
.admin-case-record td:not(:first-child) { white-space:nowrap; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.play-reveal > .stage-column > .result-strip { visibility:hidden; }
@media (max-width:1150px) { .case-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:900px) {
  .hero { min-height:292px; }
  .game-layout { grid-template-columns:1fr; }
  .stage-open-case,.stage-open-case canvas { min-height:310px; height:310px; }
}
@media (max-width:620px) {
 .admin-page .table-wrap > table { min-width:32rem; }
 .admin-case-record { grid-template-columns:minmax(0,1fr) auto; }
 .admin-case-record .actions { grid-column:1/-1; }
 .admin-case-record .table-wrap > table { min-width:0; }
  .case-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .case-tile .tile-art { height:110px; }
  .case-tile .tile-label { display:grid; gap:.38rem; }
  .case-tile .price { justify-self:start; }
  .stage-open-case,.stage-open-case canvas { min-height:250px; height:250px; }
  .prize-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .prize-art { height:76px; }
  .account-bar { flex-shrink:0; }
  .stage-column { grid-row:1; }
}
@media (max-width:360px) {
  .topbar .crumb { color:transparent; }
  .hero .actions { gap:.4rem; }
  .hero .button { padding-inline:.65rem; }
}
