/* Card Swap — design tokens, layout, components. Light by default, dark via [data-theme="dark"]. */
:root {
  --bg:#f9f6f3; --surface:#ffffff; --surface2:#f8f5f2; --line:#f0eae4; --fg:#2a2520; --mut:#857666;
  --accent:#ff8a16; --accent2:#ffa43b; --grad:linear-gradient(135deg,#ffa43b,#e86f00); --gold:#c98600; --ok:#544640; --bad:#d64545; --warn:#9a6200; --warnbg:#fff3d1;
  --shadow:0 1px 2px rgba(42,37,32,.05),0 4px 14px rgba(42,37,32,.05); --shadow-hover:0 2px 4px rgba(42,37,32,.06),0 10px 28px rgba(42,37,32,.10);
  --r:14px; --side:88px; --top:68px;
}
:root[data-theme="dark"] {
  --bg:#151210; --surface:#221e1b; --surface2:#2e2823; --line:#3c352e; --fg:#f1eae4; --mut:#b5a393; --accent:#ff8a16; --accent2:#ffb15c; --gold:#f0b93a;
  --ok:#4ade80; --bad:#ff7b7b; --warn:#fcd34d; --warnbg:#3a2f12; --shadow:0 1px 2px rgba(0,0,0,.3),0 4px 14px rgba(0,0,0,.25); --shadow-hover:0 2px 4px rgba(0,0,0,.35),0 12px 30px rgba(0,0,0,.4);
}
* { box-sizing:border-box }
html { scroll-behavior:smooth }
body { margin:0; background:var(--bg); color:var(--fg); font:15px/1.5 "Segoe UI",Inter,system-ui,-apple-system,sans-serif; -webkit-font-smoothing:antialiased }
a { color:var(--accent2) } [hidden] { display:none !important }
button, input, select { font:inherit; color:inherit }
h1,h2,h3,h4,p { margin:0 }
:focus-visible { outline:2px solid var(--accent2); outline-offset:2px }
input, select { height:40px; padding:0 12px; border:1px solid var(--line); border-radius:10px; background:var(--surface); min-width:0 }
input[type=number] { text-align:center }
select { padding-right:30px; cursor:pointer }

/* ---------- shell ---------- */
.app { display:flex; min-height:100vh }
.side { width:var(--side); flex:none; background:var(--surface); border-right:1px solid var(--line); display:flex; flex-direction:column; align-items:center; padding:16px 0; position:sticky; top:0; height:100vh }
.logo { width:46px; height:46px; border-radius:14px; background:var(--grad); display:grid; place-items:center; color:#ffffff; font-size:23px; font-weight:800; margin-bottom:18px; text-decoration:none }
.nav { display:flex; flex-direction:column; gap:2px; width:100%; padding:0 10px }
.nav a { display:flex; flex-direction:column; align-items:center; gap:3px; padding:10px 0; border-radius:12px; color:var(--mut); text-decoration:none; font-size:12px; font-weight:600 }
.nav a .ni { font-size:21px; line-height:1.1 } .nav a:hover { background:var(--surface2); color:var(--fg) }
.nav a.on { background:color-mix(in srgb,var(--accent) 14%,transparent); color:var(--accent) }
.main { flex:1; min-width:0 }
.topbar { display:flex; align-items:center; gap:12px; height:var(--top); padding:0 28px; background:var(--surface); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:30 }
.topbar h1 { flex:1; font-size:22px; font-weight:700; letter-spacing:-.2px }
.content { padding:22px 28px 140px; max-width:1520px }

/* ---------- controls ---------- */
.btn { height:40px; padding:0 18px; border:0; border-radius:10px; background:var(--accent2); color:#ffffff; font-weight:700; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:8px; text-decoration:none; transition:filter .15s, transform .05s }
.btn:hover:not(:disabled) { filter:brightness(1.07) } .btn:active:not(:disabled) { transform:translateY(1px) } .btn:disabled { opacity:.45; cursor:not-allowed }
.btn.green { background:linear-gradient(135deg,#22c06b,#169a54) } .btn.ghost { background:var(--surface); color:var(--fg); border:1px solid var(--line) } .btn.ghost:hover:not(:disabled) { background:var(--surface2); filter:none }
.btn.sm { height:34px; padding:0 12px; font-size:13px } .btn.login { background:var(--grad); text-transform:uppercase; letter-spacing:.4px; font-size:13px; height:42px; padding:0 22px; box-shadow:0 4px 14px rgba(164,94,47,.3) }
.btn.add { height:36px; padding:0 20px; background:var(--accent); color:#ffffff }
.icon-btn { width:40px; height:40px; border-radius:10px; border:1px solid var(--line); background:var(--surface); cursor:pointer; display:grid; place-items:center }
.icon-btn:hover { background:var(--surface2) } .icon-btn.sm { width:34px; height:34px }
.chip { display:flex; align-items:center; gap:10px; background:var(--surface2); border-radius:999px; padding:4px 16px 4px 4px; height:44px }
.chip .av, .chip img { width:36px; height:36px; border-radius:50%; background:var(--line) } .chip small { display:block; color:var(--mut); font-size:12px; line-height:1.1; max-width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.chip b { font-size:15px }
.gem { width:1.55em; height:1.55em; vertical-align:middle; margin:-.2em .2em -.2em 0; object-fit:contain } .cr { white-space:nowrap; font-weight:700; color:var(--gold) }
.card { background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:18px; margin-bottom:16px; box-shadow:var(--shadow) }
.card h3 { font-size:16px; margin-bottom:10px }
.row { display:flex; gap:10px; flex-wrap:wrap; align-items:center } .grow { flex:1; min-width:200px } .mut { color:var(--mut) } .small { font-size:13px }
.banner-warn { background:var(--warnbg); color:var(--warn); border-radius:12px; padding:11px 16px; margin-bottom:16px; font-weight:600 } .banner-warn a { color:inherit }
.seg { display:inline-flex; background:var(--surface2); border-radius:10px; padding:3px; gap:2px }
.seg button { height:34px; border:0; border-radius:8px; background:none; color:var(--mut); padding:0 14px; cursor:pointer; font-weight:600; white-space:nowrap }
.seg button:hover { color:var(--fg) } .seg button.on { background:var(--surface); color:var(--fg); box-shadow:var(--shadow) }
.switch { display:inline-flex; gap:8px; align-items:center; color:var(--mut); font-weight:600; cursor:pointer; user-select:none; white-space:nowrap }
.switch input { width:18px; height:18px; accent-color:var(--accent) }
.search { display:flex; align-items:center; gap:8px; flex:1; min-width:200px; max-width:300px; height:40px; padding:0 12px; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--mut) }
.search:focus-within { border-color:var(--accent2) } .search input { border:0; background:none; height:100%; padding:0; flex:1; outline:0; color:var(--fg) }

/* ---------- filter bar ---------- */
.filterbar { position:sticky; top:var(--top); z-index:20; background:var(--bg); padding:2px 0 12px; margin-bottom:6px }
.toolbar { display:flex; gap:10px; flex-wrap:wrap; align-items:center; background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:10px 12px; box-shadow:var(--shadow) }
.toolbar select { max-width:170px } .toolbar .count { margin-left:auto; color:var(--mut); font-size:13px; font-weight:600 }
.subbar { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:10px; color:var(--mut); font-size:13px } .subbar b { color:var(--fg) }

/* ---------- grids & tiles ---------- */
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px }
.grid.cards { grid-template-columns:repeat(auto-fill,minmax(188px,1fr)); gap:14px }
.tile { background:var(--surface); border:1px solid var(--line); border-radius:var(--r); overflow:hidden; display:flex; flex-direction:column; box-shadow:var(--shadow); transition:transform .15s, box-shadow .15s, border-color .15s }
.tile:hover { transform:translateY(-2px); box-shadow:var(--shadow-hover) } .tile.sel { border-color:var(--accent); box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 35%,transparent) }
.art { position:relative; aspect-ratio:460/215; background:var(--surface2); overflow:hidden; display:grid; place-items:center }
.art.ph { background:linear-gradient(135deg,hsl(var(--h) 55% 46%),hsl(calc(var(--h) + 45) 55% 30%)) } .art .ini { color:rgba(255,255,255,.92); font-size:34px; font-weight:800; letter-spacing:1px }
.art img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover }
.grid.cards .art { aspect-ratio:1; background:radial-gradient(circle at 50% 35%,var(--surface2),var(--bg)); font-size:46px } .grid.cards .art img { object-fit:contain; padding:12px }
.tag { position:absolute; top:10px; left:10px; z-index:1; font-size:11px; font-weight:800; letter-spacing:.4px; padding:3px 9px; border-radius:999px; background:rgba(32,29,25,.78); color:#ffffff }
.tag.foil { background:linear-gradient(90deg,#f5c13f,#ff9d3a); color:#2a1a00 } .tag.key { background:var(--accent2) } .tag.nm { top:38px; background:var(--bad) }
.own { position:absolute; top:10px; right:10px; z-index:1; font-size:12px; font-weight:700; padding:3px 9px; border-radius:999px; background:rgba(32,29,25,.78); color:#ffffff }
.tb { padding:14px 14px 14px; display:flex; flex-direction:column; gap:8px; flex:1 }
.nm { font-size:15px; font-weight:650; line-height:1.3; min-height:2.6em; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden }
.sub { color:var(--mut); font-size:12.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:-4px }
.badges { display:flex; gap:6px; flex-wrap:wrap }
.badge { display:inline-flex; align-items:center; gap:5px; background:var(--surface2); color:var(--mut); border-radius:999px; padding:3px 10px; font-size:12.5px; font-weight:600 }
.badge.ok { background:color-mix(in srgb,var(--ok) 13%,transparent); color:var(--ok) } .badge.zero { background:color-mix(in srgb,var(--bad) 12%,transparent); color:var(--bad) }
.foot { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; padding-top:10px; border-top:1px solid var(--line); min-height:56px }
.price { display:inline-flex; align-items:center; font-size:18px; font-weight:800; color:var(--gold); white-space:nowrap }
.act { display:inline-flex; align-items:center } .soldout { color:var(--bad); font-weight:700; font-size:13px }
.qty { display:inline-flex; align-items:center; background:var(--surface2); border-radius:10px; padding:2px } .qty button { width:32px; height:32px; border:0; border-radius:8px; background:none; font-size:18px; cursor:pointer }
.qty button:hover:not(:disabled) { background:var(--line) } .qty button:disabled { opacity:.35; cursor:not-allowed }
.qty input { width:46px; height:32px; border:0; background:none; padding:0; font-weight:700 } .qty .max { width:auto; padding:0 8px; font-size:11px; font-weight:800; color:var(--accent2) }
.grid.cards .tb .qty { align-self:stretch; justify-content:space-between } .grid.cards .tb .qty input { flex:1 }
.skel { height:300px; border-radius:var(--r); background:linear-gradient(90deg,var(--surface),var(--surface2),var(--surface)); background-size:200% 100%; animation:sk 1.2s linear infinite }
@keyframes sk { to { background-position:-200% 0 } }
.empty { text-align:center; padding:64px 16px; color:var(--mut) } .empty .emoji { font-size:44px; margin-bottom:8px } .empty h3 { color:var(--fg); font-size:19px; margin-bottom:6px } .empty p { max-width:460px; margin:0 auto 16px }
.state { text-align:center; padding:44px 16px; color:var(--mut) } .state h3 { color:var(--fg); margin-bottom:6px }
.more { display:block; margin:6px auto 0 }

/* ---------- sell page ---------- */
.syncbar { display:flex; align-items:center; gap:14px; justify-content:space-between; flex-wrap:wrap; padding:12px 16px }
.syncmsg { flex:1; min-width:220px; font-size:14px; color:var(--mut) } .syncmsg b { color:var(--fg) } .warnTxt { color:var(--warn); font-weight:600 } .failTxt { color:var(--bad); margin-top:4px }
.spin { display:inline-block; width:14px; height:14px; border:2px solid var(--line); border-top-color:var(--accent2); border-radius:50%; animation:rot .8s linear infinite; vertical-align:-2px; margin-right:8px }
@keyframes rot { to { transform:rotate(360deg) } }
.prog { height:4px; border-radius:4px; background:var(--surface2); margin-top:8px; overflow:hidden } .prog i { display:block; height:100%; width:40%; background:var(--grad); border-radius:4px; animation:slide 1.2s ease-in-out infinite }
@keyframes slide { 0% { margin-left:-40% } 100% { margin-left:100% } }
.summary { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:16px }
.sumtile { background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:12px 16px; box-shadow:var(--shadow) } .sumtile small { display:block; color:var(--mut); font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.5px } .sumtile b { font-size:21px }
.group { background:var(--surface); border:1px solid var(--line); border-radius:var(--r); margin-bottom:12px; overflow:hidden; box-shadow:var(--shadow) }
.group > summary { list-style:none; display:flex; align-items:center; gap:12px; padding:12px 16px; cursor:pointer; flex-wrap:wrap } .group > summary::-webkit-details-marker { display:none }
.group > summary::before { content:'▸'; color:var(--mut); transition:transform .15s } .group[open] > summary::before { transform:rotate(90deg) } .group > summary:hover { background:var(--surface2) }
.gname { font-weight:700; font-size:16px } .gmeta { color:var(--mut); font-size:13px; flex:1; min-width:160px } .gact { display:flex; gap:6px } .group .grid { padding:6px 16px 16px }
.ltable { width:100%; border-collapse:collapse; background:var(--surface); border:1px solid var(--line); border-radius:var(--r); overflow:hidden }
.ltable th { font-size:12px; text-transform:uppercase; letter-spacing:.5px; color:var(--mut); background:var(--surface2); padding:9px 12px; text-align:left } .ltable td { padding:7px 12px; border-top:1px solid var(--line); vertical-align:middle }
.lrow.sel { background:color-mix(in srgb,var(--accent) 9%,transparent) } .th img, .th span { width:40px; height:40px; object-fit:contain; display:grid; place-items:center; background:var(--surface2); border-radius:8px }
.tag2 { font-size:11px; font-weight:800; padding:2px 8px; border-radius:999px; background:var(--surface2) } .tag2.foil { background:linear-gradient(90deg,#f5c13f,#ff9d3a); color:#2a1a00 } .tag2.key { background:var(--accent2); color:#ffffff } .tag2.nm { background:color-mix(in srgb,var(--bad) 15%,transparent); color:var(--bad) }

/* ---------- keys, orders, account, admin ---------- */
.keycard { display:flex; gap:28px; align-items:center; flex-wrap:wrap; padding:26px } .keyart { width:150px; height:150px; border-radius:26px; background:var(--grad); display:grid; place-items:center; box-shadow:var(--shadow-hover); overflow:hidden } .keyart img { width:100%; height:100%; object-fit:contain; padding:12px }
.kmain { flex:1; min-width:260px; display:flex; flex-direction:column; gap:10px } .kmain h2 { font-size:24px } .kprice { font-size:30px; font-weight:800; display:flex; align-items:baseline; gap:10px } .kprice .mut { font-size:14px; font-weight:600 } .kact { margin-top:6px }
.order { padding:14px 0; border-bottom:1px solid var(--line) } .order:last-child { border:0 } .order .top2 { display:flex; justify-content:space-between; gap:8px; align-items:center; margin-bottom:2px }
.status { font-size:12px; font-weight:800; padding:2px 10px; border-radius:999px; text-transform:capitalize }
.s-pending { background:var(--warnbg); color:var(--warn) } .s-completed { background:color-mix(in srgb,var(--ok) 14%,transparent); color:var(--ok) } .s-failed { background:color-mix(in srgb,var(--bad) 14%,transparent); color:var(--bad) }
.fgrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:14px } .field { display:flex; flex-direction:column; gap:5px } .field span { font-weight:600; font-size:13.5px } .field small { color:var(--mut); font-size:12px; margin-top:-2px } .field input { width:100% }
.hero { background:var(--grad); color:#ffffff; border-radius:18px; padding:24px 28px; margin-bottom:18px; display:flex; gap:24px; align-items:center; flex-wrap:wrap; box-shadow:var(--shadow-hover) }
.hero h2 { font-size:24px; margin-bottom:4px } .hero p { opacity:.95 } .hero .btn.login { background:#ffffff; color:#814a25; box-shadow:none }
.steps { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px } .steps span { background:rgba(255,255,255,.2); border-radius:999px; padding:4px 14px; font-size:13px; font-weight:700 }
.pager { display:flex; gap:6px; align-items:center; flex-wrap:wrap; margin:22px 0 4px }
.pg { min-width:38px; height:38px; padding:0 8px; border:1px solid var(--line); background:var(--surface); border-radius:10px; cursor:pointer; font-weight:600 }
.pg:hover:not(:disabled):not(.on) { background:var(--surface2) } .pg.on { background:var(--accent); border-color:var(--accent); color:#ffffff } .pg:disabled { opacity:.4; cursor:not-allowed }
.pager .gap { color:var(--mut); padding:0 4px } .pager select { height:38px; margin-left:6px }
/* set details */
.back { display:inline-block; margin-bottom:12px; font-weight:600; text-decoration:none }
.dhead { display:flex; gap:24px; flex-wrap:wrap; padding:20px } .dart { width:min(100%,380px); border-radius:12px; overflow:hidden; flex:none } .dart .art { aspect-ratio:460/215 }
.dmain { flex:1; min-width:260px; display:flex; flex-direction:column; gap:12px; align-items:flex-start } .dmain h2 { font-size:26px }
.dprice { display:flex; align-items:center; gap:14px; font-size:30px; font-weight:800; color:var(--gold); flex-wrap:wrap } .dprice small { font-size:13px; font-weight:600; color:var(--mut) }
.links { display:flex; gap:16px; flex-wrap:wrap; font-size:13.5px; font-weight:600 }
.section { margin:26px 0 12px; font-size:18px } .section .mut { font-weight:500 }
.grid.mini { grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px } .grid.mini .art { aspect-ratio:1; background:radial-gradient(circle at 50% 35%,var(--surface2),var(--bg)) } .grid.mini .art img { object-fit:contain; padding:10px }
.grid.bgs { grid-template-columns:repeat(auto-fill,minmax(210px,1fr)) } .grid.bgs .art { aspect-ratio:16/9 } .grid.bgs .art img { object-fit:cover; padding:0 }
.tile[data-id] .art, .tile[data-id] .nm { cursor:pointer }
footer { color:var(--mut); font-size:13px; text-align:center; padding:28px 0 20px }
.bar { position:fixed; left:var(--side); right:0; bottom:0; z-index:40; background:var(--surface); border-top:1px solid var(--line); box-shadow:0 -8px 30px rgba(42,37,32,.10); transform:translateY(110%); transition:transform .2s }
.bar.show { transform:none } .bar .in { display:flex; align-items:center; gap:14px; padding:12px 28px; flex-wrap:wrap } .bar .sum { flex:1; min-width:180px; color:var(--mut) } .bar .sum b { font-size:20px }
#toast { position:fixed; left:50%; bottom:96px; transform:translate(-50%,20px); background:var(--surface); border:1px solid var(--line); border-left:4px solid var(--mut); color:var(--fg); padding:12px 20px; border-radius:12px; opacity:0; pointer-events:none; transition:.25s; max-width:92vw; z-index:60; box-shadow:var(--shadow-hover); font-weight:600 }
#toast.show { opacity:1; transform:translate(-50%,0) } #toast.bad { border-left-color:var(--bad) } #toast.ok { border-left-color:var(--ok) }
code { background:var(--surface2); padding:1px 6px; border-radius:6px; font-size:.92em }

/* ---------- responsive ---------- */
@media (max-width:1100px) { .summary { grid-template-columns:repeat(2,1fr) } }
@media (max-width:760px) {
  :root { --side:0px; --top:58px }
  .app { flex-direction:column } .side { position:fixed; bottom:0; top:auto; left:0; right:0; width:100%; height:60px; flex-direction:row; padding:0; z-index:50; border-right:0; border-top:1px solid var(--line) }
  .logo { display:none } .nav { flex-direction:row; padding:4px 6px; gap:0 } .nav a { flex:1; padding:6px 0; font-size:11px }
  .topbar { padding:0 14px } .topbar h1 { font-size:18px } .chip small { display:none } .content { padding:14px 14px 160px } .bar { left:0; bottom:60px } .bar .in { padding:10px 14px }
  .grid { grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:12px } .grid.cards { grid-template-columns:repeat(2,1fr) }
  .hm { display:none } .gact { width:100% } .keyart { width:100px; height:100px; font-size:48px } .filterbar { top:var(--top) } .toolbar .count { margin-left:0; width:100% }
  .hero { padding:18px } .tb { padding:11px } .nm { font-size:14px } .price { font-size:16px }
  .topbar h1 { white-space:nowrap } .topbar form.row { display:none } .topbar .btn.sm { padding:0 10px }
  .foot { flex-wrap:wrap; gap:8px } .act { width:100% } .act .btn.add { width:100% } .act .qty { width:100%; justify-content:space-between } .act .qty input { flex:1 }
  .bar .in { gap:8px } .bar .sum { flex:1 1 100% } .bar .btn { flex:1 }
  .summary { grid-template-columns:repeat(2,1fr) } .sumtile b { font-size:18px } .toolbar select { max-width:none; flex:1 }
}

/* inventory value bars */
.vrow { display:grid; grid-template-columns:minmax(110px,200px) 1fr 110px 90px; gap:12px; align-items:center; padding:6px 0 }
.vl { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600 } .vb { height:10px; border-radius:6px; background:var(--surface2); overflow:hidden } .vb i { display:block; height:100%; background:var(--grad); border-radius:6px }
.vv { text-align:right; color:var(--gold) } .vn { text-align:right }
@media (max-width:760px) { .vrow { grid-template-columns:1fr 90px } .vb { grid-column:1 / -1; order:3 } .vn { display:none } }

/* ---------- polish: numbers, tables, images, footer ---------- */
.price, .cr, .vv, .num, .sumtile b, .kprice, .dprice, .bar .sum b { font-variant-numeric: tabular-nums }
.tablewrap { overflow-x:auto; border:1px solid var(--line); border-radius:var(--r); background:var(--surface); box-shadow:var(--shadow) }
.tablewrap .ltable { border:0; border-radius:0; min-width:560px }
.ltable { table-layout:auto }
.ltable th { position:sticky; top:0; white-space:nowrap } .ltable th.num, .ltable td.num { text-align:right; white-space:nowrap }
.ltable tbody tr:hover, .ltable tr.lrow:hover { background:color-mix(in srgb,var(--accent) 5%,transparent) }
.ltable td.th, .ltable th:first-child { width:56px }
.itm { display:flex; align-items:center; gap:12px; min-width:0 } .itm > div { min-width:0 } .itm b { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:360px }
.th img, .th > span { width:44px; height:44px; object-fit:contain; display:grid; place-items:center; background:var(--surface2); border-radius:8px; font-size:22px }
.art img, .th img { opacity:0; transition:opacity .25s } .art img.ld, .th img.ld { opacity:1 } .art img.broken, .th img.broken { display:none }
.tile .art { background-image:linear-gradient(135deg,var(--surface2),var(--bg)) }
.unit { color:var(--mut); font-size:12px; font-weight:600; margin-left:4px }
/* orders */
.ordercard { background:var(--surface); border:1px solid var(--line); border-radius:var(--r); margin-bottom:16px; box-shadow:var(--shadow); overflow:hidden }
.ohead { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:14px 18px; border-bottom:1px solid var(--line); background:var(--surface2) }
.ohead .ttl { font-weight:700; font-size:16px } .ohead .when { color:var(--mut); font-size:13px; flex:1 } .ohead .tot { font-weight:800; font-size:18px }
.ohead .tot.plus { color:var(--ok) } .ohead .tot.minus { color:var(--fg) }
.ordercard .ltable { border:0; border-radius:0 } .onote { padding:10px 18px; font-size:13px; color:var(--bad); border-top:1px solid var(--line) }
/* footer */
.sitefoot { margin-top:36px; padding:28px 0 8px; border-top:1px solid var(--line); color:var(--mut); font-size:13.5px; text-align:left }
.fgrid4 { display:grid; grid-template-columns:1.4fr 1fr 1.4fr 1.4fr; gap:28px }
.fcol h4 { color:var(--fg); font-size:13px; text-transform:uppercase; letter-spacing:.6px; margin-bottom:10px }
.fcol a { display:block; color:var(--mut); text-decoration:none; padding:3px 0 } .fcol a:hover { color:var(--accent2) }
.fcol ul { margin:0; padding-left:18px } .fcol li { margin-bottom:6px } .fcol p { margin:10px 0 0; max-width:340px }
.fbrand { display:inline-flex !important; align-items:center; gap:10px; color:var(--fg) !important; font-weight:800; font-size:18px; padding:0 !important }
.flogo { width:34px; height:34px; border-radius:10px; background:var(--grad); color:#ffffff; display:grid; place-items:center; font-size:18px }
.fbottom { display:flex; gap:16px; justify-content:space-between; flex-wrap:wrap; margin-top:24px; padding-top:16px; border-top:1px solid var(--line); font-size:12.5px } .fbottom a { color:var(--mut) }
@media (max-width:980px) { .fgrid4 { grid-template-columns:1fr 1fr } }
@media (max-width:760px) { .fgrid4 { grid-template-columns:1fr; gap:20px } .sitefoot { margin-bottom:76px } .itm b { max-width:180px } .ohead .when { flex-basis:100% } }
/* order tables share one column grid so amounts line up from order to order */
.ordercard .ltable { table-layout:fixed; width:100%; min-width:0 }
.ordercard .ltable th:nth-child(3) { width:90px } .ordercard .ltable th:nth-child(4), .ordercard .ltable th:nth-child(5) { width:140px }
.ordercard .itm b { max-width:100% }
@media (max-width:760px) { .ordercard .ltable th:nth-child(4) { display:none } .ordercard .ltable td:nth-child(4) { display:none } .ordercard .ltable th:nth-child(3) { width:56px } .ordercard .ltable th:nth-child(5) { width:110px } }

/* ---------- fixed footer ---------- */
.sitefoot { position:fixed; left:var(--side); right:0; bottom:0; z-index:45; margin:0; padding:0; background:var(--surface); border-top:1px solid var(--line); box-shadow:0 -6px 24px rgba(42,37,32,.07); font-size:12.5px }
.fbar { display:flex; align-items:center; gap:14px; height:40px; padding:0 28px; color:var(--mut); min-width:0 }
.fb-brand { display:inline-flex; align-items:center; gap:8px; color:var(--fg); font-weight:800; white-space:nowrap } .flogo.sm { width:22px; height:22px; border-radius:7px; font-size:12px }
.fb-txt { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0 }
.fb-btn { background:none; border:1px solid var(--line); border-radius:8px; height:26px; padding:0 10px; color:var(--mut); cursor:pointer; font-weight:600; text-decoration:none; display:inline-flex; align-items:center; white-space:nowrap } .fb-btn:hover { background:var(--surface2); color:var(--fg) }
.finfo { max-height:60vh; overflow:auto; padding:18px 28px 6px; border-bottom:1px solid var(--line) }
.sitefoot .fgrid4 { margin-bottom:10px }
.content { padding-bottom:190px }
.bar { bottom:40px } .bar .in { padding:10px 28px }
#toast { bottom:150px }
.vgrid { display:grid; grid-template-columns:1fr 1fr; gap:16px } .vgrid .card { margin-bottom:16px }
.vtools { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:10px } .vseg { flex-wrap:wrap; margin-bottom:6px } .vseg button small { margin-left:2px; font-weight:500 }
.vtable td { vertical-align:middle } .vlinks { white-space:nowrap } .vlinks a { display:inline-block; margin-right:12px; font-weight:600; font-size:13px; text-decoration:none } .vlinks a:hover { text-decoration:underline }
@media (max-width:980px) { .vgrid { grid-template-columns:1fr } }
@media (max-width:760px) {
  .sitefoot { left:0; bottom:60px } .fbar { height:38px; padding:0 14px; gap:8px } .fb-txt { display:none } .finfo { padding:14px; max-height:55vh }
  .content { padding-bottom:210px } .bar { bottom:98px } #toast { bottom:170px }
  .vtable .vlinks a { display:block; margin:2px 0 }
}
.topbar .btn { white-space:nowrap }
@media (max-width:760px) { .fb-brand { font-size:0; gap:0 } .fb-brand .flogo { font-size:12px } .fb-btn { flex:none } }
@media (max-width:760px) {
  .tablewrap .ltable { min-width:0 } .ltable td, .ltable th { padding:7px 8px } .ltable td.th, .ltable th:first-child { width:48px }
  .th img, .th > span { width:36px; height:36px } .itm { gap:8px } .itm b { max-width:130px } .vlinks a { font-size:12px; margin-right:0 }
  .topbar .chip { padding-right:10px } .topbar { gap:8px }
}

/* ---------- brand images ---------- */
.logo { background:none; box-shadow:none } .logo img { width:46px; height:46px; border-radius:14px; display:block }
.flogo-img { width:34px; height:34px; border-radius:10px; display:block } .flogo-img.sm { width:22px; height:22px; border-radius:6px }
.fbrand { gap:10px } .fb-brand { gap:8px }
.flegal { font-size:13px } .fcol .flegal a { display:inline; padding:0 }
.fb-legal { display:flex; gap:14px; margin-right:6px } .fb-legal a { color:var(--mut); text-decoration:none; font-weight:600; white-space:nowrap } .fb-legal a:hover { color:var(--accent2) }
@media (max-width:1100px) { .fb-txt { display:none } }
@media (max-width:760px) { .fb-legal { display:none } .fb-brand { font-size:13px } }
/* ---------- cookie banner ---------- */
.cbanner { position:fixed; z-index:90; left:calc(var(--side) + 16px); bottom:56px; width:min(720px, calc(100vw - var(--side) - 32px)); background:var(--surface); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow-hover); padding:16px 18px; display:flex; gap:16px; align-items:flex-end; flex-wrap:wrap }
.cbody { flex:1; min-width:260px } .cbody b { font-size:15px } .cbody p { margin:6px 0 0; font-size:13.5px; color:var(--mut) } .cbody a { color:var(--accent2) }
.cact { display:flex; gap:8px; flex-wrap:wrap } .cpanel { margin-top:12px; display:grid; gap:10px; max-width:520px } .cpanel[hidden] { display:none }
.crow { display:flex; gap:10px; align-items:flex-start; cursor:pointer } .crow input { width:18px; height:18px; margin-top:3px; accent-color:var(--accent) } .crow small { display:block; color:var(--mut); font-size:12.5px }
@media (max-width:760px) { .cbanner { left:8px; right:8px; width:auto; bottom:106px; padding:14px } .cact .btn { flex:1 } }
/* ---------- legal pages ---------- */
.legalbody { min-height:100vh }
.lhead { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 28px; background:var(--surface); border-bottom:1px solid var(--line) }
.lbrand { display:block; line-height:0 } .wm { height:44px; width:auto } .wm-light { display:none } :root[data-theme="dark"] .wm-dark { display:none } :root[data-theme="dark"] .wm-light { display:block }
.legal { max-width:820px; margin:0 auto; padding:32px 20px 40px } .legal h1 { font-size:34px; letter-spacing:-.4px; margin-bottom:4px } .legal .lead { font-size:16.5px; margin:14px 0 8px }
.legal h2 { font-size:19px; margin:30px 0 8px } .legal p { margin:0 0 12px; color:var(--fg) } .legal section p:not(:first-of-type) { margin-top:10px }
.legalnav { display:flex; gap:18px; flex-wrap:wrap; margin-top:36px; padding-top:18px; border-top:1px solid var(--line) } .legalnav a { font-weight:600; text-decoration:none }
.lfoot { text-align:center; color:var(--mut); font-size:13px; padding:8px 16px 28px }
.legal .tablewrap { margin:8px 0 12px } .legal .ltable td, .legal .ltable th { vertical-align:top }
.legalbody .cbanner { left:16px; bottom:16px; width:min(720px, calc(100vw - 32px)) }
@media (max-width:760px) { .legalbody .cbanner { left:8px; right:8px; bottom:8px; width:auto } }
@media (max-width:760px) { .fb-brand { font-size:0; gap:0 } }

/* ---------- site icons (provided artwork) ---------- */
.nav a .ni { display:grid; place-items:center; height:32px } .nav a .ni img { width:30px; height:30px; object-fit:contain; display:block; transition:transform .15s } .nav a:hover .ni img, .nav a.on .ni img { transform:scale(1.1) }
.empty .emoji img { width:84px; height:84px; object-fit:contain }
.ic { width:58%; height:58%; object-fit:contain }
@media (max-width:760px) { .nav a .ni { height:28px } .nav a .ni img { width:26px; height:26px } }

/* credits icon (provided gems artwork) and card badges */
.gem { width:1.5em; height:.85em; object-fit:contain; vertical-align:middle; margin:-.1em .25em -.1em 0 }   /* the gem icon is smaller on the whole site (owner, 9 Nov 2026; was 2.1em x 1.2em) */
.cico { width:18px; height:18px; vertical-align:-4px; image-rendering:auto }
.badge .cico { margin-right:2px }

/* ---------- header (modern) ---------- */
.topbar { height:68px; gap:16px; padding:0 28px; background:color-mix(in srgb, var(--surface) 84%, transparent); -webkit-backdrop-filter:saturate(1.5) blur(14px); backdrop-filter:saturate(1.5) blur(14px); border-bottom:1px solid var(--line) }
.tb-brand { display:none; align-items:center; gap:10px; color:var(--fg); text-decoration:none; font-weight:800; font-size:17px; letter-spacing:-.2px } .tb-brand img { border-radius:10px; display:block } .tb-brand b { color:var(--accent) }
.tb-title { flex:1; min-width:0 } .tb-title h1 { flex:none; font-size:21px; line-height:1.2; letter-spacing:-.3px } .tb-title p { margin:1px 0 0; color:var(--mut); font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.tb-actions { display:flex; align-items:center; gap:10px; flex:none }
.tb-ico { width:40px; height:40px; border-radius:12px; border:1px solid var(--line); background:var(--surface); color:var(--fg); cursor:pointer; display:grid; place-items:center; font-size:18px; line-height:1 } .tb-ico:hover { background:var(--surface2) }
.tb-bal { display:flex; align-items:center; gap:8px; height:40px; padding:0 14px 0 10px; border-radius:12px; text-decoration:none; color:var(--fg); border:1px solid color-mix(in srgb, var(--accent) 32%, var(--line)); background:linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface2)) }
.tb-bal:hover { filter:brightness(1.03) } .tb-bal .cr { font-size:17px } .tb-bal small { color:var(--mut); font-weight:600; font-size:12px }
.tb-user { position:relative } .tb-ubtn { display:flex; align-items:center; gap:10px; height:40px; padding:0 12px 0 4px; border-radius:999px; border:1px solid var(--line); background:var(--surface); color:var(--fg); cursor:pointer }
.tb-ubtn:hover { background:var(--surface2) } .tb-ubtn .av, .tb-ubtn img { width:30px; height:30px; border-radius:50%; background:var(--line); display:block }
.tb-uname { max-width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; font-size:14px } .tb-caret { color:var(--mut); font-size:11px }
.tb-menu { position:absolute; right:0; top:calc(100% + 8px); min-width:230px; background:var(--surface); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow-hover); padding:6px; z-index:70 } .tb-menu[hidden] { display:none }
.tb-mhead { padding:8px 10px 10px; border-bottom:1px solid var(--line); margin-bottom:4px } .tb-mhead b { display:block; font-size:14px } .tb-mhead small { color:var(--mut); font-size:12px }
.tb-menu a, .tb-menu button { display:block; width:100%; text-align:left; padding:9px 10px; border-radius:9px; border:0; background:none; color:var(--fg); text-decoration:none; cursor:pointer; font-weight:600; font-size:14px }
.tb-menu a:hover, .tb-menu button:hover { background:var(--surface2) } .tb-menu #out { color:var(--bad) }
@media (max-width:1100px) { .tb-uname, .tb-caret { display:none } .tb-ubtn { padding:0 4px } }
@media (max-width:760px) {
  .topbar { height:60px; padding:0 12px; gap:8px } .tb-brand { display:flex } .tb-brand span { display:none }
  .tb-title h1 { font-size:18px } .tb-title p { display:none } .tb-actions { gap:6px } .tb-ico, .tb-bal, .tb-ubtn { height:38px } .tb-ico { width:38px } .tb-bal small { display:none } .tb-bal { padding:0 10px 0 6px }
  .tb-menu { position:fixed; right:8px; left:8px; top:66px }
}

.admtabs { margin-bottom:16px } .admtabs button { padding:0 18px }

/* availability strip on the Buy page */
.stats { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:14px }
.stats .st { background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:10px 18px; box-shadow:var(--shadow); min-width:150px }
.stats .st b { display:block; font-size:22px; line-height:1.15; font-variant-numeric:tabular-nums } .stats .st span { color:var(--mut); font-size:12.5px; font-weight:600 }
.stats .st.main { border-color:color-mix(in srgb, var(--accent) 40%, var(--line)); background:linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface)) } .stats .st.main b { color:var(--accent) }
@media (max-width:760px) { .stats { display:grid; grid-template-columns:1fr 1fr; gap:10px } .stats .st { min-width:0; padding:10px 12px } .stats .st b { font-size:19px } }

/* lazy loader sentinel */
.lazysent { text-align:center; color:var(--mut); font-size:13px; font-weight:600; padding:22px 0 8px }

.stats .st { min-width:260px } .stats .st .lbl { display:block; text-transform:uppercase; letter-spacing:.5px; font-size:11.5px; font-weight:800; color:var(--mut); margin-bottom:2px }
.stats .st b em { font-style:normal; font-size:14px; font-weight:600; color:var(--mut); margin-left:2px } .stats .st.main b em { color:var(--fg) }
@media (max-width:760px) { .stats { grid-template-columns:1fr } .stats .st b { font-size:18px } }

/* ---- cart button, cart page, status page, pause banner ---- */
.tb-cart { position:relative; text-decoration:none }
.tb-cart b { position:absolute; top:-6px; right:-6px; min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:var(--accent,#ff8a16); color:#ffffff; font-size:11px; display:grid; place-items:center; line-height:1 }
.pausebar { background:color-mix(in srgb, var(--bad,#dd3333) 14%, var(--surface)); border-color:var(--bad,#dd3333) }
.cartwrap { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:16px; align-items:start }
.cartlist { padding:0 } .crow { display:grid; grid-template-columns:96px minmax(0,1fr) auto auto auto 34px; gap:14px; align-items:center; padding:12px 16px; border-bottom:1px solid var(--line) } .crow:last-child { border-bottom:0 }
.crow.sold { opacity:.62 } .crow.sold .cname { text-decoration:line-through }
.cthumb { display:block; width:96px } .cthumb .art { border-radius:8px; aspect-ratio:460/215; overflow:hidden } .cthumb .keyth { display:grid; place-items:center; background:var(--surface-2,#f9f7f4) } .cthumb .keyth img { width:48px; height:48px }
.cname { font-weight:700; color:var(--fg); text-decoration:none } .cinfo .sub { color:var(--mut); font-size:12.5px; margin:2px 0 4px }
.cprice small { color:var(--mut); margin-left:4px; font-size:11px } .ctotal { min-width:80px; text-align:right; font-weight:700 }
.cx { border:0; background:transparent; color:var(--mut); cursor:pointer; font-size:16px; width:30px; height:30px; border-radius:8px } .cx:hover { background:var(--surface-2,#eeeeee); color:var(--bad,#dd3333) }
.badge.warn { background:color-mix(in srgb, #e8a317 18%, var(--surface)); color:#9a6a00 }
.csum { position:sticky; top:76px; display:grid; gap:10px } .csum h3 { margin:0 0 4px } .srow { display:flex; justify-content:space-between; align-items:center }
@media (max-width:860px) { .cartwrap { grid-template-columns:1fr } .csum { position:static } .crow { grid-template-columns:64px minmax(0,1fr) auto 30px; row-gap:8px } .crow .cthumb { width:64px; grid-row:span 2 } .crow .cprice { display:none } .crow .qty { grid-column:2 } .crow .ctotal { grid-column:3 } .crow .cx { grid-column:4; grid-row:1 } }
.live { color:var(--accent,#ff8a16); font-weight:700; letter-spacing:.12em; font-size:12px; margin:0 0 12px }
.stiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px; margin-bottom:16px }
.stile { border:1px solid var(--line); background:var(--surface); border-radius:16px; padding:16px 18px } .stile small { display:block; color:var(--mut); font-weight:700; letter-spacing:.08em; text-transform:uppercase; font-size:11px; margin-bottom:6px }
.stile b { display:flex; align-items:center; gap:8px; font-size:22px } .stile b i { width:10px; height:10px; border-radius:50%; background:currentColor; box-shadow:0 0 0 4px color-mix(in srgb, currentColor 22%, transparent) }
.stile b.ok { color:var(--ok,#1c9a5a) } .stile b.warn { color:#d98e00 } .stile b.bad { color:var(--bad,#dd3333) }
.sbots { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:14px; margin-bottom:16px }
.sbot .shead { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; margin-bottom:12px } .sbot .shead > div { display:grid; gap:2px; min-width:0 } .mono { font-family:ui-monospace,Menlo,Consolas,monospace }
.sinv { display:flex; justify-content:space-between; margin-bottom:6px } .meter { height:8px; border-radius:6px; background:var(--surface-2,#eeeae6); overflow:hidden } .meter i { display:block; height:100%; background:linear-gradient(90deg,#ff8a16,#d06431) }
.sscam { display:flex; gap:12px; align-items:center } .sscam b { width:28px; height:28px; border-radius:50%; display:grid; place-items:center; background:color-mix(in srgb, #e8a317 22%, var(--surface)); color:#9a6a00; flex:none } .sscam p { margin:0 }
.crow .qty { justify-self:start; display:inline-flex } .crow .qty input { width:58px; text-align:center }

/* ---- status pill in the header + nav icon ---- */
.tb-status { display:inline-flex; align-items:center; gap:8px; height:40px; padding:0 14px; border-radius:12px; border:1px solid var(--line); background:var(--surface); color:var(--fg); font-weight:700; font-size:13px; text-decoration:none; white-space:nowrap }
.tb-status i { width:9px; height:9px; border-radius:50%; background:var(--mut); flex:none }
.tb-status.ok i { background:var(--ok,#1c9a5a); box-shadow:0 0 0 4px color-mix(in srgb, var(--ok,#1c9a5a) 22%, transparent) } .tb-status.warn i { background:#e8a317; box-shadow:0 0 0 4px color-mix(in srgb, #e8a317 25%, transparent) } .tb-status.bad i { background:var(--bad,#dd3333); box-shadow:0 0 0 4px color-mix(in srgb, var(--bad,#dd3333) 22%, transparent) }
.tb-status:hover { filter:brightness(1.04) }
#nav .ni svg { color:var(--accent,#ff8a16) }
@media (max-width:640px) { .tb-status { height:38px; padding:0 11px } .tb-status span { display:none } }

/* ---- support ---- */
.tb-ubtn { position:relative } .tb-ubtn.unread::after { content:''; position:absolute; top:3px; right:3px; width:11px; height:11px; border-radius:50%; background:var(--bad,#dd3333); border:2px solid var(--surface) }
.mbadge, .cnt { display:inline-grid; place-items:center; min-width:18px; height:18px; padding:0 5px; margin-left:6px; border-radius:9px; background:var(--bad,#dd3333); color:#ffffff; font-size:11px; line-height:1 }
.suphead { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:14px } .suphead h2 { margin:0 0 4px }
.suplist { padding:0; overflow:hidden } .suprow { display:grid; grid-template-columns:56px minmax(0,1fr) auto 90px; gap:12px; align-items:center; width:100%; text-align:left; padding:13px 16px; border:0; border-bottom:1px solid var(--line); background:transparent; color:var(--fg); cursor:pointer; font:inherit } .suprow:last-child { border-bottom:0 }
.suprow:hover { background:var(--surface-2,#f8f5f3) } .suprow.unread { background:color-mix(in srgb, var(--accent,#ff8a16) 9%, var(--surface)) } .suprow .ssub { display:grid; gap:2px; min-width:0 } .suprow .ssub b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap } .suprow .stk { color:var(--mut); font-weight:700 } .suprow .swhen { text-align:right }
.badge.st-open { background:color-mix(in srgb, #e8a317 18%, var(--surface)); color:#9a6a00 } .badge.st-answered { background:color-mix(in srgb, var(--ok,#1c9a5a) 16%, var(--surface)); color:var(--ok,#1c9a5a) } .badge.st-closed { background:var(--surface-2,#f2efec); color:var(--mut) }
.supform, .supthread { display:grid; gap:14px } .supform h2, .supthread h2 { margin:0 }
.supform textarea, .supreply textarea { width:100%; resize:vertical; border:1px solid var(--line); border-radius:12px; padding:12px; font:inherit; background:var(--surface); color:var(--fg) }
.thead { display:flex; justify-content:space-between; gap:12px; align-items:flex-start }
.supuser { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:var(--surface-2,#f8f5f3) } .supuser > div:first-of-type { display:grid }
.msgs { display:grid; gap:10px } .msg { max-width:78%; padding:10px 14px; border-radius:14px; border:1px solid var(--line); background:var(--surface) } .msg.admin { justify-self:end; background:color-mix(in srgb, var(--accent,#ff8a16) 12%, var(--surface)); border-color:color-mix(in srgb, var(--accent,#ff8a16) 35%, var(--line)) }
.msg .mh { display:flex; justify-content:space-between; gap:14px; margin-bottom:4px } .msg .mb { white-space:pre-wrap; overflow-wrap:anywhere }
.supreply { display:grid; gap:10px }
.supfilters { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:12px } .supfilters select { height:40px; border-radius:10px; border:1px solid var(--line); background:var(--surface); color:var(--fg); padding:0 10px }
.suptable tr.unread td { background:color-mix(in srgb, var(--accent,#ff8a16) 8%, transparent) } .udot { display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--bad,#dd3333); margin-right:6px }
@media (max-width:640px) { .suprow { grid-template-columns:44px minmax(0,1fr) auto } .suprow .swhen { display:none } .msg { max-width:94% } }
.supuser .av { width:44px; height:44px; border-radius:50%; object-fit:cover; flex:none; background:var(--surface-2,#eeeeee) }

/* ---- users + stats ---- */
.usrtable th.sortable { cursor:pointer; user-select:none } .usrtable td .av { width:34px; height:34px; border-radius:50%; flex:none }
.statsbar { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-bottom:6px }
.charts { display:grid; grid-template-columns:repeat(auto-fit,minmax(340px,1fr)); gap:14px; margin:14px 0 } .chart { margin:0; display:grid; gap:8px } .chart figcaption { display:flex; justify-content:space-between; align-items:baseline; gap:10px }
.chartbox { position:relative } .chartbox svg { width:100%; height:auto; display:block } .chartbox .grid { stroke:var(--line); stroke-width:1 } .chartbox text { fill:var(--mut); font-size:10px }
.chartbox .bar { fill:var(--accent,#ff8a16) } .chartbox .hit:hover { fill:color-mix(in srgb, var(--accent,#ff8a16) 12%, transparent) }
.chartbox .tip { position:absolute; pointer-events:none; background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:6px 10px; box-shadow:0 6px 20px rgba(0,0,0,.12); display:grid; gap:2px; font-size:12px; white-space:nowrap }

/* ---- bots panel ---- */
.botgrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); gap:14px; margin-top:10px }
.botcard { border:1px solid var(--line); border-radius:16px; padding:14px 16px; display:grid; gap:10px; background:var(--surface) } .botcard.on { border-color:color-mix(in srgb, var(--ok,#1c9a5a) 45%, var(--line)) } .botcard.off { opacity:.92 }
.botcard .bhead { display:flex; justify-content:space-between; gap:10px; align-items:flex-start } .botcard .bbadges { display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end }
.bguard { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:8px 10px; border-radius:12px; background:var(--surface-2,#f7f4f1) } .gcode { font-size:24px; font-weight:800; letter-spacing:.18em } .gcode.low { color:var(--bad,#dd3333) }
.gbar { flex:1; min-width:60px; height:6px; border-radius:4px; background:var(--line); overflow:hidden } .gbar i { display:block; height:100%; width:0; background:var(--accent,#ff8a16); transition:width .5s linear }
.bact { display:flex; flex-wrap:wrap; gap:8px } .bedit { border-top:1px solid var(--line); padding-top:12px }
.botadd { margin-top:14px } .botadd summary { display:inline-block; cursor:pointer }
.modalback { position:fixed; inset:0; z-index:200; background:rgba(17,15,13,.55); display:grid; place-items:center; padding:16px }
.modal { width:min(760px,100%); max-height:88vh; display:grid; grid-template-rows:auto 1fr; background:var(--surface); border-radius:18px; border:1px solid var(--line); box-shadow:0 24px 60px rgba(0,0,0,.35); overflow:hidden }
.modal .mhead { display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border-bottom:1px solid var(--line) } .modal .mhead h3 { margin:0 }
.modal .mbody { padding:14px 18px; overflow:auto; display:grid; gap:10px; align-content:start } .mfoot { display:flex; gap:10px; align-items:center; position:sticky; bottom:-14px; background:var(--surface); padding:10px 0 }
.sdlist { display:grid; max-height:48vh; overflow:auto; border:1px solid var(--line); border-radius:12px } .sdrow { display:grid; grid-template-columns:40px minmax(0,1fr) auto auto; gap:12px; align-items:center; padding:8px 12px; border-bottom:1px solid var(--line) } .sdrow:last-child { border-bottom:0 }
.sdrow .th img { width:36px; height:36px; object-fit:contain } .sdn b { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
@media (max-width:640px) { .sdrow { grid-template-columns:36px minmax(0,1fr); } .sdrow .qty { grid-column:1 / -1 } }

.stocksync { display:grid; gap:8px; margin-bottom:12px; padding:12px 14px }
/* ---- admin on phones: no sideways scroll ---- */
.admtabs { display:flex; flex-wrap:wrap; width:100%; max-width:100%; gap:4px } .admtabs button { flex:1 1 auto; min-width:0 }
.botgrid { grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr)) } .charts { grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr)) }
.sbots { grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr)) } .stiles { grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr)) }
#p-admin, #p-support, #p-cart, #p-status { max-width:100%; min-width:0 } #p-admin .card, #p-admin .tablewrap { max-width:100%; overflow-x:auto }
#p-admin .supfilters > * { max-width:100% } #p-admin .search { min-width:0; flex:1 1 180px } #p-admin .fgrid { grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)) }
.bguard, .bact, .bhead { min-width:0 } .botcard { min-width:0 } .gcode { font-size:22px }
@media (max-width:640px) { .modal { max-height:92vh } .sdlist { max-height:42vh } .supthread .thead, .suphead { flex-wrap:wrap } .botadd .fgrid { grid-template-columns:1fr } }

.bwho { display:flex; gap:12px; align-items:center; min-width:0 } .bav { width:46px; height:46px; border-radius:10px; flex:none; object-fit:cover } .botcard .mono a { color:var(--accent2) }

.sbot .shead > div { display:grid; gap:2px } .swho { display:flex !important; gap:12px; align-items:center; min-width:0 } .swho > div { display:grid; gap:2px; min-width:0 }
.sav { width:52px; height:52px; border-radius:12px; flex:none; object-fit:cover; background:var(--surface2,#eeeae6); display:block } .sname { font-weight:800; color:var(--fg); text-decoration:none } .sname:hover { color:var(--accent) }

.badge.lvl { background:color-mix(in srgb, #f0b93a 20%, var(--surface)); color:#8a5a00 } @media (prefers-color-scheme: dark) { :root[data-theme="dark"] .badge.lvl { color:#f0c869 } }
.badgebox { margin:10px 0 2px } .blvl { margin:2px 0 4px } .blvl.warnTxt { font-weight:600 }

/* ---- bot console ---- */
.con { display:grid; gap:14px } .conbots { display:flex; flex-wrap:wrap; gap:10px }
.conchip { display:flex; align-items:center; gap:8px; padding:8px 14px; border-radius:12px; border:1px solid var(--line); background:var(--surface); color:var(--fg); cursor:pointer; font:inherit; text-align:left } .conchip small { color:var(--mut); display:block } .conchip b { display:block }
.conchip.on { border-color:var(--accent); background:color-mix(in srgb, var(--accent) 10%, var(--surface)) } .conchip i { width:10px; height:10px; border-radius:50%; background:var(--mut); flex:none } .conchip i.ok { background:var(--ok,#1c9a5a) } .conchip i.off { background:var(--bad,#dd3333) }
.congrid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:14px; align-items:start }
.conact, .conterm { min-width:0 } .conrow { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:8px 0 } .conrow > .small { min-width:84px }
.conbtns { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 } .conpair { display:inline-flex; gap:6px; align-items:center } .conpair select, .conrow select { height:36px; border-radius:10px; border:1px solid var(--line); background:var(--surface); color:var(--fg); padding:0 8px }
.conterm { background:#14110f; border-color:#312b26; color:#ebe3db } .termout { height:380px; overflow:auto; font:13px/1.5 ui-monospace,Menlo,Consolas,monospace; padding:4px 2px; white-space:pre-wrap; overflow-wrap:anywhere }
.termout .tl.cmd { color:#ffb67f } .termout .tl.ok { color:#6ee7a8 } .termout .tl.bad { color:#ff8a8a } .termout .tl.mut { color:#a38f7d }
.termform { display:flex; gap:8px; align-items:center; border-top:1px solid #312b26; padding-top:10px; margin-top:8px } .termform span { color:#ffb67f; font:700 16px ui-monospace,monospace } .termform input { flex:1; min-width:0; background:#1c1815; color:#f5f1ed; border:1px solid #3b342e; border-radius:8px; padding:9px 10px; font:13px ui-monospace,Menlo,Consolas,monospace }
.conlog td { padding:6px 8px; vertical-align:top } .evdot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:8px; background:var(--mut) } .evdot.ok { background:var(--ok,#1c9a5a) } .evdot.bad { background:var(--bad,#dd3333) } .evdot.info { background:var(--accent2,#ffa43b) }
@media (max-width:900px) { .congrid { grid-template-columns:1fr } .termout { height:300px } }

/* catalog page: normal and foil set side by side */
.catsets { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin:12px 0 } .catsets .catbox h3 { margin:0 0 8px } .catsets .dprice { flex-wrap:wrap }
@media (max-width:760px) { .catsets { grid-template-columns:1fr } }

/* ---------- coinflip ---------- */
.cf { display:grid; gap:16px; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) } .cfhist { grid-column:1 / -1 } @media (max-width:760px) { .cf { grid-template-columns:minmax(0,1fr) } }
.cfmain { display:flex; flex-direction:column; gap:12px } .cfside button { flex:1 } .cfquick { display:flex; gap:6px; flex-wrap:wrap }
.cfslot { min-height:250px; display:flex; align-items:center; justify-content:center }
/* fallback coin (plain CSS, only when React could not load) */
.cfcoin { width:120px; height:120px; margin:8px auto 0; position:relative; transform-style:preserve-3d; perspective:600px }
.cfface { position:absolute; inset:0; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:46px; font-weight:800; backface-visibility:hidden; background:radial-gradient(circle at 30% 30%,#ffe27a,#c98600); color:#5a3a00; border:4px solid #a86f00; box-shadow:var(--shadow) }
.cft { transform:rotateY(180deg) } .cfcoin.flip-heads { animation:cfh 1s ease-out forwards } .cfcoin.flip-tails { animation:cft 1s ease-out forwards }
@keyframes cfh { from { transform:rotateY(0) } to { transform:rotateY(1800deg) } } @keyframes cft { from { transform:rotateY(0) } to { transform:rotateY(1980deg) } }
/* the React coin (public/coinflip-react.js) */
.rc-host { width:100%; display:flex; justify-content:center }
.rc-stage { position:relative; width:180px; height:250px; perspective:760px; margin:0 auto }
.rc-hop { position:absolute; left:50%; top:88px; width:130px; height:130px; margin-left:-65px; transform-style:preserve-3d }
.rc-coin { position:absolute; inset:0; transform-style:preserve-3d; will-change:transform }
.rc-edge { position:absolute; inset:0; border-radius:50%; background:linear-gradient(135deg,#51463f,#a35c2f 45%,#574c43); border:1px solid #3e3630 }
.rc-face { position:absolute; inset:0; border-radius:50%; backface-visibility:hidden; display:flex; flex-direction:column; align-items:center; justify-content:center; overflow:hidden }
.rc-heads { color:#3a1f05; background:radial-gradient(circle at 32% 28%,#ffd9b0 0%,#ffa43b 34%,#ff8a16 72%,#a8520a 100%); box-shadow:inset 0 0 0 3px #51453e, inset 0 0 14px rgba(255,255,255,.35), 0 0 6px rgba(0,0,0,.35) }   /* heads: the site's teal */
.rc-tails { color:#362f29; background:radial-gradient(circle at 32% 28%,#eee7e0 0%,#ffa85a 34%,#e1842f 72%,#9d652e 100%); box-shadow:inset 0 0 0 3px #925f2b, inset 0 0 14px rgba(255,255,255,.35), 0 0 6px rgba(0,0,0,.35) }   /* tails: the site's blue */
.rc-heads { transform:translateZ(6px) } .rc-tails { transform:rotateY(180deg) translateZ(6px) }
.rc-ring { position:absolute; border-radius:50%; border:2px solid rgba(255,255,255,.5) } .rc-ring-outer { inset:7px } .rc-ring-inner { inset:16px; border-style:dashed; opacity:.7 }
.rc-glyph { width:46px; height:46px; filter:drop-shadow(0 1px 0 rgba(255,255,255,.5)) } .rc-label { font:800 11px/1 system-ui; letter-spacing:.16em; margin-top:4px; text-shadow:0 1px 0 rgba(255,255,255,.45) }
.rc-shine { position:absolute; inset:-30%; background:linear-gradient(115deg,transparent 40%,rgba(255,255,255,.55) 50%,transparent 60%); transform:translateX(-120%); pointer-events:none }
.rc-flipping .rc-shine { animation:rc-sweep 1.4s ease-in-out infinite } @keyframes rc-sweep { to { transform:translateX(120%) } }
.rc-shadow { position:absolute; left:50%; bottom:4px; width:100px; height:16px; margin-left:-50px; border-radius:50%; background:radial-gradient(ellipse,rgba(0,0,0,.38),transparent 70%); transition:transform .5s, opacity .5s } .rc-shadow.rc-small { transform:scale(.55); opacity:.45 }
.rc-hop.rc-bobbing { animation:rc-bob 3.2s ease-in-out infinite } @keyframes rc-bob { 50% { transform:translateY(-5px) } }
.rc-win .rc-face { box-shadow:inset 0 0 0 3px #1fbf6a, 0 0 22px 6px rgba(31,191,106,.55) } .rc-lose .rc-face { box-shadow:inset 0 0 0 3px #e5484d, 0 0 22px 6px rgba(229,72,77,.6) }   /* win = green glow, loss = red glow */
.rc-burst { position:absolute; left:50%; top:152px; width:0; height:0; pointer-events:none } .rc-p { position:absolute; width:7px; height:7px; border-radius:50%; background:#ea8d5e; opacity:0; animation:rc-pop .9s ease-out forwards }
.rc-p0 { --a:0deg; animation-delay:0ms }
.rc-p1 { --a:26deg; animation-delay:30ms }
.rc-p2 { --a:51deg; animation-delay:60ms }
.rc-p3 { --a:77deg; animation-delay:0ms }
.rc-p4 { --a:103deg; animation-delay:30ms }
.rc-p5 { --a:129deg; animation-delay:60ms }
.rc-p6 { --a:154deg; animation-delay:0ms }
.rc-p7 { --a:180deg; animation-delay:30ms }
.rc-p8 { --a:206deg; animation-delay:60ms }
.rc-p9 { --a:231deg; animation-delay:0ms }
.rc-p10 { --a:257deg; animation-delay:30ms }
.rc-p11 { --a:283deg; animation-delay:60ms }
.rc-p12 { --a:309deg; animation-delay:0ms }
.rc-p13 { --a:334deg; animation-delay:30ms }
@keyframes rc-pop { 0% { opacity:1; transform:rotate(var(--a)) translateX(10px) } 100% { opacity:0; transform:rotate(var(--a)) translateX(78px) scale(.4) } }
/* the page switch "Animations" off (class noanim on .cf) */
.noanim .rc-bobbing, .noanim .rc-flipping .rc-shine, .noanim .rc-p, .noanim .cfres.pop, .noanim .cfnew, .noanim .cfbusy { animation:none } .noanim .rc-hop, .noanim .rc-shadow { transition:none }
.cfres { text-align:center; font-weight:700; min-height:24px } .cfres.win { color:var(--ok) } .cfres.lose { color:var(--bad) } .cfhash { word-break:break-all; font-size:12px }
.noanim .cfcoin.flip-heads, .noanim .cfcoin.flip-tails { animation:none } .noanim .cfcoin.flip-tails { transform:rotateY(180deg) }
/* coinflip: result pop, balance and history highlights, busy button */
.cfres.pop { animation:cfpop .55s cubic-bezier(.2,1.6,.4,1) } @keyframes cfpop { from { transform:scale(.55); opacity:0 } to { transform:scale(1); opacity:1 } }
.cfnew { animation:cfrow 1.8s ease-out } @keyframes cfrow { from { background:color-mix(in srgb,var(--accent) 28%,transparent) } to { background:transparent } }
.cfbusy { animation:cfpulse .9s ease-in-out infinite } @keyframes cfpulse { 50% { opacity:.55 } }
.cfside button { transition:transform .15s, background-color .2s } .cfside button:active { transform:scale(.94) } .cfquick .btn { transition:transform .12s } .cfquick .btn:active { transform:scale(.92) }

/* ---------- roulette ---------- */
.rt { display:grid; gap:16px; grid-template-columns:minmax(0,340px) minmax(0,1fr) } .rt .cfdetails, .rt .cfhist { grid-column:1 / -1 } @media (max-width:900px) { .rt { grid-template-columns:minmax(0,1fr) } }
.rtwheel { display:flex; flex-direction:column; align-items:center; gap:8px } .rwslot { width:100%; max-width:320px; min-height:320px; display:flex; align-items:center; justify-content:center } .rwfallback { font-size:42px; font-weight:800; color:var(--mut) }
.rw-host { width:100% } .rw-stage { position:relative; width:100%; max-width:320px; margin:0 auto } .rw-svg { width:100%; height:auto; display:block; overflow:visible } .rw-num { fill:#ffffff; font:700 8.5px system-ui }
.rw-ball { filter:drop-shadow(0 1px 2px rgba(0,0,0,.5)) }
.rw-hub { position:absolute; left:50%; top:50%; width:68px; height:68px; margin:-34px 0 0 -34px; border-radius:50%; display:flex; align-items:center; justify-content:center; font:800 28px system-ui; color:#ffffff; background:#caa24a; box-shadow:inset 0 0 0 4px #6b4a13; pointer-events:none }
.rw-hub.rw-red { background:#c0392b } .rw-hub.rw-black { background:#161616 } .rw-hub.rw-green { background:#1f8f4e }
.rttable { display:flex; flex-direction:column; gap:12px }
.rtboard { display:grid; grid-template-columns:40px 40px repeat(12,minmax(0,1fr)) 44px; grid-template-rows:repeat(5,40px); gap:3px }
.rtcell { position:relative; border:1px solid rgba(255,255,255,.25); border-radius:6px; color:#ffffff; font:700 13px system-ui; cursor:pointer; padding:0; background:#2a4d3a; transition:filter .12s, transform .1s } .rtcell:hover { filter:brightness(1.25) } .rtcell:active { transform:scale(.95) }
.rtred { background:#c0392b } .rtblack { background:#161616 } .rtgreen { background:#1f8f4e } .rtout { background:#2a4d3a } .rtcell.has { outline:2px solid #ffd34d; z-index:1 }
.rtchip { position:absolute; right:-2px; top:-6px; min-width:20px; height:20px; padding:0 4px; border-radius:10px; background:#ffd34d; color:#3a2a00; font:800 11px/20px system-ui; text-align:center; box-shadow:0 1px 3px rgba(0,0,0,.4); animation:cfpop .3s cubic-bezier(.2,1.6,.4,1) }
.rtbar { display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; align-items:center } .rtchips { display:flex; gap:8px } .rtacts { display:flex; gap:6px }
.rtchipbtn { width:42px; height:42px; border-radius:50%; border:3px dashed rgba(255,255,255,.7); background:#aa6a31; color:#ffffff; font:800 12px system-ui; cursor:pointer; box-shadow:0 2px 4px rgba(0,0,0,.3); transition:transform .12s } .rtchipbtn:nth-child(2) { background:#c0392b } .rtchipbtn:nth-child(3) { background:#1f8f4e } .rtchipbtn:nth-child(4) { background:#c19346 } .rtchipbtn:nth-child(5) { background:#222222 }
.rtchipbtn.on { transform:translateY(-4px) scale(1.12); outline:3px solid #ffd34d } .rtn { display:inline-block; min-width:26px; padding:1px 6px; border-radius:6px; color:#ffffff; text-align:center } .rtn.rtred { background:#c0392b } .rtn.rtblack { background:#161616 } .rtn.rtgreen { background:#1f8f4e }
.okTxt { color:var(--ok); font-weight:700 }
.noanim .rtchip { animation:none }
@media (max-width:600px) { .rtboard { grid-template-rows:repeat(5,30px); grid-template-columns:24px 24px repeat(12,minmax(0,1fr)) 26px; gap:2px } .rtcell { font-size:10px } .rtchip { min-width:16px; height:16px; font-size:9px; line-height:16px; top:-5px } .rtchips { gap:5px } .rtchipbtn { width:36px; height:36px } }
/* Provably fair page */
.cfround { display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap; margin-bottom:8px } .cfround .field { flex:1; min-width:160px }
.fair { display:grid; gap:16px; max-width:820px } .fairsteps { padding-left:20px; line-height:1.55 } .fairsteps li { margin-bottom:8px }
.fairpre { background:var(--surface2); border:1px solid var(--line); border-radius:10px; padding:10px 12px; overflow:auto; font-size:12.5px } .fairout { margin-top:8px } .fair code { word-break:break-all }

/* No horizontal scroll (9 Nov 2026): every page section can shrink to the screen, so wide content scrolls inside its own box or wraps instead of widening the page; grids use minmax(0, ...) columns; the tables of Sell, Coinflip, Roulette and Provably fair fit their box (wrap) instead of forcing a 560 px minimum */
[id^="p-"] { min-width:0; max-width:100% }
.cf > *, .rt > *, .fair > * { min-width:0; max-width:100% } .rttable, .rtboard, .cfmain { min-width:0 } .rtcell { min-width:0; overflow:visible }
#p-sell .tablewrap .ltable, #p-coinflip .tablewrap .ltable, #p-roulette .tablewrap .ltable, #p-fair .tablewrap .ltable { min-width:0 }
#p-sell .ltable td, #p-sell .ltable th, #p-coinflip .ltable td, #p-coinflip .ltable th, #p-roulette .ltable td, #p-roulette .ltable th { overflow-wrap:anywhere }
#p-sell .tablewrap, #p-coinflip .tablewrap, #p-roulette .tablewrap { overflow-x:hidden }
.cfhash, .fair code, .cfdetails code { overflow-wrap:anywhere; word-break:break-all }

.netpos { color:var(--ok,#1c9a5a) } .netneg { color:var(--bad,#dd3333) }
.casino-ico .ci-chip { transform-origin:12px 12px; transition:transform .7s cubic-bezier(.3,.7,.2,1) } #nav a:hover .casino-ico .ci-chip, #nav a.on .casino-ico .ci-chip { transform:rotate(180deg) }
.casino-ico .ci-spade { transition:transform .4s } #nav a:hover .casino-ico .ci-spade { transform:scale(1.12); transform-origin:12px 12px }

/* Live strip of the latest results above the games (Casino) */
.casstrip { display:flex; align-items:center; gap:10px; margin:0 0 14px; padding:8px 12px; border:1px solid var(--line); background:var(--surface); border-radius:14px; min-height:50px }
.casstrip .cl { display:flex; align-items:center; gap:6px; font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--mut); white-space:nowrap } .casstrip .cl i { width:8px; height:8px; border-radius:50%; background:var(--ok,#1c9a5a); animation:cas-live 1.6s ease-in-out infinite }
@keyframes cas-live { 50% { opacity:.25 } }
.casstrip .cr { display:flex; flex-wrap:nowrap; gap:6px; overflow:hidden; flex:1; min-width:0 }
.cas-c, .cas-n { flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:50%; font:800 13px/1 system-ui; color:#ffffff; box-shadow:inset 0 0 0 2px rgba(255,255,255,.35), 0 1px 3px rgba(0,0,0,.3) }
.cas-c { position:relative; width:34px; height:34px; box-shadow:inset 0 0 0 2px rgba(255,255,255,.4), 0 2px 0 #3e3630, 0 3px 4px rgba(0,0,0,.3) } .cas-c::after { content:''; position:absolute; inset:5px; border-radius:50%; border:1.5px dashed rgba(255,255,255,.55) } .cas-c svg { width:15px; height:15px; position:relative; z-index:1; filter:drop-shadow(0 1px 0 rgba(255,255,255,.45)) }
.cas-h { background:radial-gradient(circle at 32% 28%,#ffd9b0 0%,#ffa43b 34%,#ff8a16 72%,#a8520a 100%); color:#3a1f05 } .cas-t { background:radial-gradient(circle at 32% 28%,#eee7e0 0%,#ffa85a 34%,#e1842f 72%,#9d652e 100%); color:#362f29 }
.cas-n { border-radius:8px; width:34px } .cas-n.red { background:#c0392b } .cas-n.black { background:#161616 } .cas-n.green { background:#1f8f4e }
.cas-new { animation:cas-pop .5s ease-out } @keyframes cas-pop { from { transform:scale(.3); opacity:0 } to { transform:scale(1); opacity:1 } }
.noanim .casstrip .cl i, .noanim .cas-new { animation:none }

/* ---------- Game page in the style of a game-info page (catalog-page.js) ---------- */
.gi-panel { background:var(--surface); border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); overflow:hidden; margin:0 0 18px }
.gi-bar { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 18px; background:var(--surface2); font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--mut) } .gi-bar .gi-right { text-transform:none; letter-spacing:0; font-weight:500 } .gi-foiltxt { color:#f0bc5c }
.gi-head { display:flex; gap:22px; flex-wrap:wrap; padding:18px; align-items:flex-start } .gi-hart { width:min(100%,300px); border-radius:12px; overflow:hidden; flex:none } .gi-hart .art { aspect-ratio:460/215 } .gi-hmain { flex:1; min-width:240px } .gi-hmain h2 { margin:0 0 10px; font-size:22px }
.gi-links { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px } .gi-links a { font-size:12px; padding:4px 10px; border-radius:7px; background:var(--surface2); color:var(--fg); text-decoration:none; border:1px solid var(--line) } .gi-links a:hover { border-color:var(--accent2); color:var(--accent2) }
.gi-counts { display:flex; flex-wrap:wrap; gap:8px } .gi-count { display:inline-flex; align-items:center; gap:6px; font-size:12px; padding:3px 10px; border-radius:7px; background:var(--surface2); color:var(--mut) } .gi-count i { width:8px; height:8px; border-radius:50% } .gi-count b { color:var(--fg) }
.gi-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,150px),1fr)); gap:12px; padding:14px } .gi-grid-badges { grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr)) }
.gi-tile { background:var(--surface2); border-radius:12px; padding:14px 10px; text-align:center; min-width:0 } .gi-tile img { max-width:100%; max-height:84px; object-fit:contain } .gi-badge img { max-height:72px } .gi-art2 { height:88px; display:flex; align-items:center; justify-content:center } .gi-art2 img { max-height:84px; max-width:100% } .gi-ph { font-size:44px }
.gi-lv { margin-top:8px; font-size:12px; font-weight:800; color:var(--accent2) } .gi-lv.foil { color:#f0bc5c } .gi-nm { margin-top:4px; font-size:12.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap } .gi-sub { margin-top:3px; font-size:11.5px; color:var(--mut) }
.gi-row { display:flex; align-items:center; justify-content:center; gap:6px; margin-top:8px; flex-wrap:wrap } .gi-chip { display:inline-flex; align-items:center; gap:4px; padding:3px 8px; border-radius:7px; background:var(--surface); border:1px solid var(--line); font-weight:800; font-size:12.5px; color:var(--accent2) }
.gi-mini { height:26px; padding:0 12px; font-size:12px; border-radius:7px } .gi-mini.off { display:inline-flex; align-items:center; background:var(--surface); border:1px solid var(--line); color:var(--mut); font-weight:700; padding:0 8px; opacity:.75 }
.gi-sets { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-bottom:18px } .gi-sets .gi-panel { margin:0 } @media (max-width:900px) { .gi-sets { grid-template-columns:minmax(0,1fr) } }
.gi-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:12px } @media (max-width:520px) { .gi-cards { grid-template-columns:repeat(2,minmax(0,1fr)) } }
.gi-card { position:relative; border-radius:6px; overflow:hidden; text-align:center; min-width:0; transform:perspective(700px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transition:transform .18s ease-out, box-shadow .2s; animation:gi-in .55s cubic-bezier(.2,.8,.25,1) backwards; animation-delay:calc(var(--i,0) * 70ms) } .gi-art { display:flex; align-items:center; justify-content:center; min-height:90px; background:linear-gradient(160deg,var(--surface2),var(--surface)) } .gi-art img { width:100%; height:auto; display:block } .gi-cn { font-size:11.5px; padding:5px 6px 7px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--mut) } .gi-foil .gi-card { box-shadow:inset 0 0 0 2px color-mix(in srgb,#f0bc5c 40%,transparent) }
@keyframes gi-in { from { opacity:0; transform:perspective(700px) translateY(26px) rotateX(-28deg) scale(.9) } to { opacity:1; transform:perspective(700px) } }
.gi-card.tilt { transition:transform .06s linear, box-shadow .2s; box-shadow:0 14px 28px rgba(0,0,0,.28); z-index:2 }
.gi-card::after { content:''; position:absolute; inset:0; pointer-events:none; opacity:0; transition:opacity .2s; background:radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.5), transparent 55%); mix-blend-mode:soft-light } .gi-card.tilt::after { opacity:1 }
.gi-foil .gi-card::before { content:''; position:absolute; inset:0; z-index:1; pointer-events:none; opacity:.4; mix-blend-mode:color-dodge; background:linear-gradient(115deg,transparent 20%,rgba(255,120,128,.55) 36%,rgba(255,177,120,.55) 48%,rgba(255,240,140,.5) 60%,transparent 76%); background-size:260% 100%; animation:gi-foil 3.6s ease-in-out infinite }
@keyframes gi-foil { 0% { background-position:130% 0 } 100% { background-position:-130% 0 } }
.noanim .gi-card, .noanim .gi-foil .gi-card::before { animation:none; transition:none }
.gi-empty { padding:18px; color:var(--mut); font-size:13px; margin:0 }
.gi-foot { padding:0 12px 14px } .gi-stock { display:flex; justify-content:space-between; align-items:center; background:var(--surface2); border-radius:8px; padding:8px 12px; font-size:12.5px; color:var(--mut); margin-bottom:10px } .gi-stock b { color:var(--fg) } .gi-stock b.zero { color:var(--bad) }
.gi-buy { display:flex; align-items:center; gap:10px } .gi-price { display:inline-flex; align-items:center; gap:6px; font-size:20px; font-weight:800; color:var(--gold); white-space:nowrap; font-variant-numeric:tabular-nums } .gi-buy .act { flex:1; display:flex; justify-content:flex-end } .gi-buy .act .btn.add { width:100%; height:42px; font-size:15px; background:var(--grad) } .gi-buy .act .soldout { display:block; width:100%; text-align:center; padding:10px; border-radius:10px; background:var(--surface2); font-weight:700 }
.gi-booster { display:flex; align-items:center; gap:14px; padding:14px 18px; flex-wrap:wrap } .gi-booster .gi-art2 { width:84px; height:84px } .gi-bprice { text-align:right } .gi-bprice small { display:block; color:var(--mut); font-size:11px; text-transform:uppercase; letter-spacing:.06em }

/* The card exactly as Steam draws it: the economy image already has the frame (blue for a normal card, its own frame for a foil one), the name tab and the game logo */
.gi-orig { display:block; width:100%; height:auto; border-radius:6px }
.gi-card .gi-art { background:var(--surface2) } .gi-cn { font-size:11.5px; padding:5px 6px 7px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--mut); background:var(--surface2) }
.gi-sim { grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr)) } .gi-simtile { display:block; text-decoration:none; color:inherit; transition:transform .15s, box-shadow .15s } .gi-simtile:hover { transform:translateY(-3px); box-shadow:var(--shadow-hover) } .gi-simart { border-radius:8px; overflow:hidden } .gi-simart .art { aspect-ratio:460/215 }

/* Favorites: the heart on a set tile and the "Add to favorites" button of the game page */
.favbtn { position:absolute; top:8px; right:8px; z-index:2; width:32px; height:32px; border-radius:50%; border:0; background:rgba(32,29,25,.55); color:#ffffff; display:grid; place-items:center; cursor:pointer; transition:transform .15s, background .15s } .favbtn:hover { transform:scale(1.12); background:rgba(32,29,25,.8) } .favbtn.on { background:#e5484d; color:#ffffff } .favbtn:not(.on) svg path { fill:none; stroke:currentColor; stroke-width:2.2 }
.favtxt { display:inline-flex; align-items:center; gap:8px; width:100%; justify-content:center; margin-top:10px } .favtxt svg path { fill:none; stroke:currentColor; stroke-width:2.2 } .favtxt.on { color:#e5484d; border-color:#e5484d } .favtxt.on svg path { fill:currentColor }

/* Coinflip: the game card is centered on the page (the history stays full width below it) */
.cf { grid-template-columns:minmax(0,1fr); justify-items:center } .cfmain { width:100%; max-width:480px; margin:0 auto; text-align:center } .cfmain .field span { text-align:left } .cfmain .cfquick { justify-content:center } .cfmain .switch { align-self:center } .cf .cfhist { width:100% }

/* Plinko (a tab of the Casino) */
.pl { display:grid; gap:16px; grid-template-columns:minmax(0,340px) minmax(0,1fr) } .pl .cfhist { grid-column:1 / -1 } .plctl { display:flex; flex-direction:column; gap:12px } .plctl .seg { display:flex } .plctl .seg button { flex:1 }
.plboard { padding:12px } .plslot { width:100% } .pl-host, .pl-svg { width:100%; display:block } .pl-peg { fill:color-mix(in srgb,var(--fg) 70%,transparent) } .pl-ball { fill:#ffd05a; stroke:#fff3c4; stroke-width:1.5; filter:drop-shadow(0 0 6px rgba(255,208,90,.85)) }
.pl-mult { fill:#ffffff; font-weight:800; font-family:system-ui, sans-serif; pointer-events:none } .pl-slot rect { transition:filter .2s } .pl-slot.hit rect { filter:brightness(1.35) drop-shadow(0 0 8px rgba(255,255,255,.65)) } .pl-slot.hit { animation:pl-hit .6s ease-out } @keyframes pl-hit { 0% { transform:translateY(0) } 30% { transform:translateY(5px) } 100% { transform:translateY(0) } }
.plres { text-align:center; font-weight:700; min-height:24px; margin-top:6px } .plres.win { color:var(--ok) } .plres.lose { color:var(--bad) } .pl.noanim .pl-slot.hit { animation:none }
@media (max-width:900px) { .pl { grid-template-columns:minmax(0,1fr) } }
.cas-p { width:auto; min-width:40px; padding:0 7px; font-size:12px; border-radius:16px } .cas-p.dim { background:#7a532d } .cas-p.lo { background:#e1842f } .cas-p.mid { background:#e0ad5b } .cas-p.hot { background:linear-gradient(135deg,#d1478a,#e0b15b) }

/* Dice (a tab of the Casino) */
.dc2 { display:grid; gap:16px; grid-template-columns:minmax(0,340px) minmax(0,1fr) } .dc2 .cfhist { grid-column:1 / -1 } .dcctl { display:flex; flex-direction:column; gap:12px } .dcctl .seg { display:flex } .dcctl .seg button { flex:1 } .dcctl input[type=range] { width:100%; height:24px; padding:0; border:0; background:none; accent-color:var(--accent) }
@media (max-width:900px) { .dc2 { grid-template-columns:minmax(0,1fr) } } .dc-host { width:100% }
.dc { padding:10px 6px 4px } .dc-top { display:flex; align-items:center; justify-content:center; gap:18px; margin:6px 0 26px }
.dc-num { font:800 clamp(48px,9vw,84px)/1 'Segoe UI',system-ui,sans-serif; font-variant-numeric:tabular-nums; letter-spacing:-1px; color:var(--fg); min-width:5.2ch; text-align:center; transition:color .25s, transform .25s } .dc.won .dc-num { color:var(--ok); animation:dc-pop .5s ease-out } .dc.lost .dc-num { color:var(--bad); animation:dc-shake .45s ease-out } .dc.rolling .dc-num { color:var(--accent2) }
@keyframes dc-pop { 0% { transform:scale(.8) } 60% { transform:scale(1.14) } 100% { transform:scale(1) } } @keyframes dc-shake { 0%,100% { transform:translateX(0) } 20% { transform:translateX(-9px) } 40% { transform:translateX(8px) } 60% { transform:translateX(-5px) } 80% { transform:translateX(3px) } }
.dc-die { width:64px; height:64px; flex:none } .dc-dieface { fill:#fbfaf8; stroke:#d6c2ae; stroke-width:2 } .dc-pip { fill:#3a332c } .dc-die.spin { animation:dc-tumble .7s linear infinite } @keyframes dc-tumble { 0% { transform:rotate(0) translateY(0) } 25% { transform:rotate(90deg) translateY(-8px) } 50% { transform:rotate(180deg) translateY(0) } 75% { transform:rotate(270deg) translateY(-8px) } 100% { transform:rotate(360deg) translateY(0) } }
.dc-track { position:relative; height:26px; margin:34px 18px 40px; border-radius:13px; background:#312626; box-shadow:inset 0 0 0 1px rgba(255,255,255,.1) } .dc-lose { position:absolute; inset:0; border-radius:13px; background:linear-gradient(90deg,#7a2a3c,#a23a4c) }
.dc-win { position:absolute; top:0; bottom:0; border-radius:13px; background:linear-gradient(90deg,#8a442a,#3ec47e); box-shadow:0 0 16px rgba(62,196,126,.4); transition:left .25s, width .25s }
.dc-tick { position:absolute; top:32px; transform:translateX(-50%); font-size:11px; color:var(--mut) }
.dc-mark { position:absolute; top:-30px; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; pointer-events:none } .dc-mark b { font-size:12px; font-weight:800; padding:2px 8px; border-radius:8px; background:#ffffff; color:#292420; min-height:20px; min-width:44px; text-align:center; font-variant-numeric:tabular-nums } .dc-mark i { order:2; width:0; height:0; border-left:7px solid transparent; border-right:7px solid transparent; border-top:9px solid #ffffff; margin-top:-1px } .dc-mark b:empty { visibility:hidden }
.dc.won .dc-mark b { background:var(--ok); color:#06210f } .dc.lost .dc-mark b { background:var(--bad); color:#2a0a0a }
.dc-legend { display:flex; justify-content:space-between; font-size:13px; color:var(--mut); padding:0 18px }
.dc2.noanim .dc-die.spin, .dc2.noanim .dc.won .dc-num, .dc2.noanim .dc.lost .dc-num { animation:none }
.cas-d.w { background:#2f9a62 } .cas-d.l { background:#6a3446 }

/* Autobet panel (inside the controls of each Casino game) */
.ab { border:1px solid var(--line); border-radius:12px; background:color-mix(in srgb,var(--surface2) 70%,transparent); padding:0 12px } .ab summary { cursor:pointer; padding:11px 0; font-weight:700; list-style:none; display:flex; align-items:center; justify-content:space-between } .ab summary::-webkit-details-marker { display:none } .ab summary::after { content:'▾'; color:var(--mut) } .ab[open] summary::after { content:'▴' }
.abtag { margin-left:auto; margin-right:10px; font-size:11px; font-weight:800; padding:2px 9px; border-radius:999px; background:var(--surface); border:1px solid var(--line); color:var(--mut) } .abtag.on { background:color-mix(in srgb,var(--ok) 18%,transparent); border-color:var(--ok); color:var(--ok) }
.abbody { display:flex; flex-direction:column; gap:10px; padding:2px 0 14px } .abbody .field small { color:var(--mut); font-size:11.5px } .abrule { display:flex; gap:8px; align-items:center } .abrule select { flex:1; min-width:0 } .abpct { display:inline-flex; align-items:center; gap:4px; font-weight:700 } .abpct input { width:70px }
.btn.bad { background:linear-gradient(135deg,#e5484d,#b83238); border-color:transparent }

/* Mines and Tower (tabs of the Casino) */
.sg { display:grid; gap:16px; grid-template-columns:minmax(0,340px) minmax(0,1fr) } .sg .cfhist, .sg .casfairbox { grid-column:1 / -1 } .sgctl { display:flex; flex-direction:column; gap:12px } .sgctl .seg { display:flex } .sgctl .seg button { flex:1 } @media (max-width:900px) { .sg { grid-template-columns:minmax(0,1fr) } }
.sg-host { width:100% } .sgboard { padding:14px } .sg-mines { display:grid; grid-template-columns:repeat(5,1fr); gap:10px; max-width:520px; margin:0 auto }
.sg-tile { position:relative; aspect-ratio:1; border:1px solid color-mix(in srgb,var(--accent) 35%,var(--line)); border-radius:12px; cursor:pointer; padding:0; background:linear-gradient(160deg,#5b5146,#36302a); box-shadow:0 3px 0 #221e1a, inset 0 1px 0 rgba(255,255,255,.15); transition:transform .12s, filter .12s; perspective:400px }
.sg-tile:not(.off):hover { transform:translateY(-3px); filter:brightness(1.18) } .sg-tile.off { cursor:default } .sg-tile.hidden.off { opacity:.9 } .sg-in { position:absolute; inset:0; display:grid; place-items:center; border-radius:inherit }
.sg-logo { width:62%; height:62%; object-fit:contain; filter:drop-shadow(0 2px 3px rgba(0,0,0,.45)); pointer-events:none } .sg-bomb { width:64%; height:64%; pointer-events:none }
.sg-tile.safe { background:linear-gradient(160deg,#2f9a62,#1c6b42); border-color:#5ccb8c; box-shadow:0 3px 0 #2b2421, 0 0 18px rgba(92,203,140,.35); animation:sg-flip .45s ease-out } .sg-tile.bad { background:linear-gradient(160deg,#c9444a,#7a1f26); border-color:#f08080; box-shadow:0 3px 0 #430f14, 0 0 22px rgba(240,128,128,.5); animation:sg-flip .45s ease-out, sg-boom .6s .35s ease-out }
.sg-tile.ghostSafe, .sg-tile.ghostBad { opacity:.5; background:linear-gradient(160deg,#52493f,#2e2924); animation:sg-ghost .5s ease-out backwards } .sg-tile.ghostBad { opacity:.62 }
@keyframes sg-flip { 0% { transform:rotateY(90deg) scale(.8) } 100% { transform:rotateY(0) scale(1) } } @keyframes sg-boom { 0%,100% { transform:translateX(0) } 20% { transform:translateX(-7px) } 40% { transform:translateX(6px) } 60% { transform:translateX(-4px) } 80% { transform:translateX(3px) } } @keyframes sg-ghost { from { opacity:0; transform:scale(.7) } }
.sg-tower { display:flex; flex-direction:column; gap:8px; max-width:560px; margin:0 auto } .sg-row { display:grid; grid-template-columns:64px 1fr; gap:10px; align-items:center; padding:6px 8px; border-radius:12px; border:1px solid transparent; opacity:.8 } .sg-row.now { opacity:1; border-color:var(--accent2); background:color-mix(in srgb,var(--accent) 10%,transparent); box-shadow:0 0 18px color-mix(in srgb,var(--accent) 22%,transparent) } .sg-row.done { opacity:1 }
.sg-lvl { display:flex; flex-direction:column; line-height:1.2; font-size:12px; color:var(--mut) } .sg-lvl b { color:var(--fg); font-size:13px } .sg-lvl i { font-style:normal; font-weight:700; color:var(--ok) } .sg-cells { display:grid; gap:8px } .sg-row .sg-tile { aspect-ratio:auto; height:46px }
.sg.noanim .sg-tile { animation:none !important; transition:none }

/* Crash */
.cr2 .sgslot { min-height:280px } .cr-host { width:100% } .cr-board { position:relative } .cr-svg { width:100%; height:auto; display:block } .cr-grid { stroke:color-mix(in srgb,var(--line) 80%,transparent); stroke-width:1 } .cr-grid.base { stroke:var(--line); stroke-width:1.5 } .cr-tick { fill:var(--mut); font-size:11px }
.cr-num { position:absolute; left:50%; top:38%; transform:translate(-50%,-50%); font:800 clamp(44px,9vw,82px)/1 'Segoe UI',system-ui,sans-serif; font-variant-numeric:tabular-nums; text-shadow:0 4px 18px rgba(0,0,0,.45) } .cr-sub { position:absolute; left:0; right:0; top:calc(38% + 46px); text-align:center; font-size:13px; font-weight:700; color:var(--mut); letter-spacing:.04em; text-transform:uppercase }
.cr-board.running .cr-num { color:var(--accent2) } .cr-board.cashed .cr-num { color:var(--ok); animation:dc-pop .5s ease-out } .cr-board.crashed .cr-num { color:var(--bad); animation:dc-shake .45s ease-out } .cr-board.crashed .cr-sub { color:var(--bad) } .cr-board.cashed .cr-sub { color:var(--ok) }
.cr-ship image { filter:drop-shadow(0 0 8px rgba(240,153,76,.8)) } .cr-ship.fall image { transform-box:fill-box; transform-origin:center; animation:cr-fall .9s ease-in forwards } @keyframes cr-fall { to { transform:translateY(140px) rotate(160deg); opacity:0 } }
.cr2.noanim .cr-num, .cr2.noanim .cr-ship { animation:none }
.cr-sub { top:calc(38% + 66px) !important }

/* a card whose Steam image is not read yet: no frame or art of ours, only the name */
.gi-wait { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; aspect-ratio:360/420; padding:10px; border:1px dashed var(--border,rgba(128,128,128,.4)); border-radius:6px; background:var(--surface2); color:var(--mut); text-align:center } .gi-wait b { font-size:12.5px; color:var(--text,inherit); overflow-wrap:anywhere } .gi-wait small { font-size:10.5px }
.gi-card:has(.gi-wait)::before, .gi-card:has(.gi-wait)::after { display:none }   /* no foil shimmer / glare over a card that has no Steam image yet */
/* Wheel of Fortune, Hi-Lo and War (public/extragames.js) */
.xg2 { display:grid; grid-template-columns:minmax(260px,340px) 1fr; gap:14px; align-items:start } .xg2 > .cfhist, .xg2 > .casfairbox { grid-column:1 / -1 } @media (max-width:760px) { .xg2 { grid-template-columns:1fr } }
.xgboard { text-align:center; min-width:0 } .xw-host { display:flex; justify-content:center } .xw-svg { width:min(100%,340px); height:auto; overflow:visible } .xw-num { font-size:8.5px; font-weight:800; fill:#ffffff; paint-order:stroke; stroke:rgba(0,0,0,.55); stroke-width:1.6px }
.xw-legend { display:flex; flex-wrap:wrap; gap:8px 12px; justify-content:center; margin:10px 0 4px; font-size:12px; color:var(--mut) } .xw-leg { display:inline-flex; align-items:center; gap:5px } .xw-leg i { width:11px; height:11px; border-radius:3px; display:inline-block } .xw-leg small { opacity:.7 }
.pfc { position:relative; display:inline-flex; flex-direction:column; align-items:center; justify-content:center; width:64px; height:92px; margin:4px; border-radius:9px; background:#fcfbf9; border:2px solid #c4a98f; color:#25211d; font-family:Georgia,serif; box-shadow:0 3px 8px rgba(0,0,0,.28); animation:pfc-in .35s ease-out backwards }
.pfc b { font-size:26px; line-height:1 } .pfc i { font-style:normal; font-size:24px; line-height:1.1 } .pfc.red { color:#c0392b } .pfc.big { width:84px; height:120px; border-color:#d9a93a; box-shadow:0 0 0 2px rgba(217,169,58,.35), 0 6px 14px rgba(0,0,0,.35) } .pfc.big b { font-size:34px } .pfc.big i { font-size:30px }
.pfc.back { background:repeating-linear-gradient(45deg,#4f453c 0 6px,#885727 6px 12px); border-color:#ae7c4a } .pfc.back span { width:30px; height:30px; border-radius:50%; border:2px solid rgba(255,255,255,.55) }
@keyframes pfc-in { from { opacity:0; transform:translateY(-10px) rotate(-4deg) } to { opacity:1; transform:none } } .noanim .pfc { animation:none }
.xhcards { display:flex; flex-wrap:wrap; gap:2px; justify-content:center; align-items:center; margin:6px 0 12px } .xhacts { display:flex; gap:10px; justify-content:center; margin:6px 0 12px; flex-wrap:wrap } .xhbtn { display:flex; flex-direction:column; align-items:center; gap:2px; min-width:150px } .xhbtn span { font-size:12px; opacity:.85; font-weight:600 }
.xrrow { display:flex; gap:28px; justify-content:center; flex-wrap:wrap; margin-bottom:6px }
.gi-slot { min-width:0 } .gi-cp { display:flex; align-items:center; justify-content:center; gap:4px; margin-top:5px; font-weight:800; font-size:12.5px; color:var(--accent2) } .gi-cp.na { color:var(--mut); font-weight:600 }   /* gem price of a card (what the shop pays when the user sells it) */
.pl, .dc2, .sg, .xg2, .rt, .cf { grid-template-columns:minmax(0,1fr) !important; justify-items:stretch; width:100%; max-width:100%; margin:0 auto }
.plboard, .dcboard, .sgboard, .xgboard { order:-1 } .plctl, .dcctl, .sgctl, .xgctl { order:0 } .pl .casfairbox, .dc2 .casfairbox, .sg .casfairbox, .xg2 .casfairbox { order:1 } .pl .cfhist, .dc2 .cfhist, .sg .cfhist, .xg2 .cfhist { order:2 }
.pl > *, .dc2 > *, .sg > *, .xg2 > *, .rt > *, .cf > * { min-width:0; max-width:100% } .cfmain { width:100%; max-width:520px; margin:0 auto }

/* ---- Provably fair page (public/fair.js): one page, a section for every game and the verifier (owner, 10 Nov 2026) ---- */
.fair { max-width:900px; margin:0 auto; width:100%; min-width:0 }
.fair .field[hidden], .fair .btn[hidden] { display:none !important }

.fchips { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px }
.fchip { background:var(--surface2); border:1px solid var(--line); color:var(--text); border-radius:999px; padding:6px 13px; font:inherit; font-size:13px; cursor:pointer }
.fchip:hover { border-color:var(--accent) } .fchip.hot { background:var(--accent); border-color:var(--accent); color:#ffffff }
.fgame { scroll-margin-top:76px; border-left:3px solid var(--accent) } .fgame h3, .fair h3 { margin-top:0 } #fairVerify, #fg-how, #fg-safe { scroll-margin-top:76px }
.fairlist { padding-left:20px; line-height:1.55 } .fairlist li { margin-bottom:6px }
.fair code, .fair .cfhash { overflow-wrap:anywhere } .fair p { overflow-wrap:break-word }
@media (max-width:760px) { .fair { gap:12px } .fchip { padding:6px 11px } .fair .cfround .btn { width:100% } }


/* order code of a trade offer (owner, 11 Nov 2026) */
.ocode { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; margin:10px 0 0; padding:9px 12px; border:1px dashed var(--accent); border-radius:10px; background:var(--surface2) }
.ocode span { font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted) } .ocode b { font-family:ui-monospace,Consolas,monospace; font-size:18px; letter-spacing:.14em } .ocode small { flex:1 1 220px; color:var(--muted); line-height:1.4 }

/* ====================================================== Admin → Settings: the grouped settings card (public/admin-settings.js) ====================================================== */
.sx { padding:20px 22px; overflow:visible } .sx-head h3 { margin:0 0 4px } .sx-head p { margin:0 0 6px }
.sx-sec { margin-top:20px; padding-top:16px; border-top:1px solid var(--line) } .sx-sec:first-of-type { border-top:0; padding-top:4px }
.sx-sec h4 { margin:0 0 2px; font-size:15px; letter-spacing:.02em } .sx-sec > .small { margin:0 0 12px }
.sx-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr)); gap:14px 16px }
.sx-f { display:flex; flex-direction:column; gap:4px; min-width:0 } .sx-f > span { font-weight:700; font-size:13px; overflow-wrap:anywhere } .sx-f small { color:var(--mut); font-size:11.5px; line-height:1.35; overflow-wrap:anywhere }
.sx input[type=number], .sx select { width:100%; min-width:0; box-sizing:border-box } .sx input.sx-bad, .sx select.sx-bad { border-color:var(--bad) !important; box-shadow:0 0 0 2px color-mix(in srgb,var(--bad) 30%,transparent) }
/* one TILE per game: nothing is squeezed, every number has room and its own label */
.sx-games { margin-top:18px; display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr)); gap:14px }
.sx-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 12px; align-content:start; padding:14px; border:1px solid var(--line); border-radius:14px; background:var(--surface); transition:border-color .15s }
.sx-row:hover, .sx-row:focus-within { border-color:color-mix(in srgb,var(--accent) 55%,var(--line)) }
.sx-name { grid-column:1 / -1; display:flex; justify-content:space-between; align-items:center; gap:10px; padding-bottom:8px; border-bottom:1px solid var(--line) } .sx-name > b { font-size:15px; min-width:0; overflow-wrap:anywhere }
.sx-rtp { display:flex; flex-direction:column; align-items:flex-end; gap:1px; flex:0 0 auto } .sx-rtp small { font-size:10px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--mut) } .sx-rtp b { font-size:16px; font-variant-numeric:tabular-nums; color:var(--ok) } .sx-rtp b.sx-warn { color:var(--warn) }
.sx-c { display:flex; flex-direction:column; gap:3px; min-width:0 } .sx-c small { font-size:10.5px; font-weight:700; color:var(--mut); letter-spacing:.04em; text-transform:uppercase; line-height:1.25; overflow-wrap:anywhere }
.sx-c input { padding:8px 10px; font-size:14px; font-variant-numeric:tabular-nums } .sx-wide { grid-column:1 / -1 } .sx-na i { font-style:normal; color:var(--mut); font-size:12.5px; line-height:1.35; overflow-wrap:anywhere }
.sx-bar { position:sticky; bottom:62px; z-index:5; display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin:22px -22px -20px; padding:12px 22px; background:var(--surface); border-top:1px solid var(--line); border-radius:0 0 16px 16px }
.sx-msg.sx-dirty { color:var(--warn); font-weight:700 }
@media (max-width:760px) { .sx { padding:16px 14px } .sx-bar { margin:22px -14px -16px; padding:12px 14px; bottom:72px } .sx-games { grid-template-columns:minmax(0,1fr) } }
.tlink { margin-top:8px; padding:8px 10px; border-radius:10px; background:rgba(255,138,22,.08); border:1px solid var(--line); overflow-wrap:anywhere; word-break:break-all }

/* ====================================================== Reclamă încrucișată trade-crates.tf, popup pe ecran, în stilul STATUE de pe trade-crates.tf (public/promo-popup.js) ====================================================== */
.promoback { position:fixed; inset:0; z-index:300; background:rgba(17,15,13,.6); display:grid; place-items:center; padding:16px; animation:pbFade .2s ease-out }
.promo { position:relative; width:min(640px,100%); max-height:88vh; overflow:auto; border-radius:18px; border:1px solid var(--line); background:var(--surface); box-shadow:0 24px 60px rgba(0,0,0,.4); animation:pbIn .3s ease-out }
.promo .px { position:absolute; top:8px; right:8px; z-index:1; display:grid; place-items:center; width:32px; height:32px; border:0; border-radius:50%; background:rgba(0,0,0,.6); color:#ffffff; font-size:17px; line-height:1; cursor:pointer }
.promo img { width:100%; height:260px; object-fit:cover; object-position:top; background:#000000; display:block }
.promo .pbody { display:flex; flex-direction:column; gap:10px; padding:18px 20px }
.promo .peyebrow { font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; color:var(--mut) }
.promo .ptitle { font-size:21px; font-weight:800; color:var(--fg) }
.promo p { font-size:13.5px; color:var(--mut); line-height:1.5 }
.promo .pact { display:flex; flex-wrap:wrap; gap:10px; margin-top:4px }
@keyframes pbFade { from { opacity:0 } to { opacity:1 } }
@keyframes pbIn { from { opacity:0; transform:translateY(14px) scale(.98) } to { opacity:1; transform:translateY(0) scale(1) } }
