/* Levi Games storefront. One dark theme, built from tokens; no layout depends on text length. */
:root {
  --ink: #0b0c10;
  --bg: #0e1015;
  --s1: #15171e;
  --s2: #1c1f28;
  --s3: #252935;
  --line: #2a2e3b;
  --line-2: #363b4b;
  --text: #eceef3;
  --muted: #9aa1b2;
  --faint: #6b7285;
  --lime: #c6f432;
  --lime-2: #a9d81c;
  --lime-ink: #0b0c10;
  --violet: #8b7cff;
  --ok: #3dd68c;
  --warn: #ffb547;
  --bad: #ff5c6c;
  --r-s: 10px;
  --r: 16px;
  --r-l: 22px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 40px -24px rgba(0, 0, 0, .8);
  --head: "Bai Jamjuree", "IBM Plex Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  --body: "IBM Plex Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--lime-ink); padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
main { flex: 1; outline: none; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(11, 12, 16, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; }
.brand-word { font: 700 18px/1 var(--head); letter-spacing: .14em; }
.brand-word span { color: var(--lime); margin-left: .35em; }
.brand-word.small { font-size: 16px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; white-space: nowrap; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: var(--s2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--s2); }
.lang { display: flex; background: var(--s1); border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.lang button { border: 0; background: none; padding: 4px 11px; border-radius: 999px; font: 600 13px/1.4 var(--head); color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--lime); color: var(--lime-ink); }

.testmode { background: repeating-linear-gradient(135deg, rgba(255, 181, 71, .14) 0 12px, rgba(255, 181, 71, .08) 12px 24px); border-bottom: 1px solid rgba(255, 181, 71, .35); color: #ffd79a; font-size: 14px; }
.testmode .wrap { padding-top: 8px; padding-bottom: 8px; }
.testmode strong { color: var(--warn); margin-right: 6px; font-family: var(--head); letter-spacing: .04em; }

/* ---------- buttons, inputs, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--s2); color: var(--text); font: 600 16px/1 var(--head); text-decoration: none; cursor: pointer; transition: transform .12s, background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { border-color: var(--faint); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); box-shadow: 0 10px 30px -12px rgba(198, 244, 50, .55); }
.btn.primary:hover { background: #d4ff4a; }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.spin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 14px; color: var(--muted); }
.input { width: 100%; min-height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink); color: var(--text); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(198, 244, 50, .14); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.hint { font-size: 13px; color: var(--faint); }
.err { font-size: 14px; color: var(--bad); }
.row { display: flex; gap: 10px; }
.row > .input { flex: 1; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--s2); border: 1px solid var(--line); font-size: 13px; color: var(--muted); white-space: nowrap; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }

/* ---------- home ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background:
    radial-gradient(620px 320px at 82% 18%, rgba(198, 244, 50, .14), transparent 70%),
    radial-gradient(520px 300px at 8% 100%, rgba(139, 124, 255, .16), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .25; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding-block: clamp(40px, 8vw, 88px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--lime); }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); margin: 18px 0 16px; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.hero-card { background: linear-gradient(160deg, var(--s2), var(--s1)); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px; box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.hero-card { padding: 14px; }
.hero-card .hero-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.hero-card .hero-game { padding: 14px 6px 4px; display: grid; gap: 4px; }
.hero-card .hero-game b { font: 700 20px/1.2 var(--head); }
.hero-card .hero-game small { color: var(--muted); font-size: 14px; }

.section { padding: clamp(40px, 7vw, 72px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); }
.section-head p { color: var(--muted); }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.game { position: relative; display: flex; flex-direction: column; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; text-decoration: none;
  transition: transform .18s, border-color .18s, box-shadow .18s; box-shadow: var(--shadow); }
.game:hover { transform: translateY(-3px); border-color: var(--accent, var(--lime)); box-shadow: 0 24px 48px -28px var(--accent, var(--lime)); }
.game-cover { aspect-ratio: 16 / 9; background: var(--s3); overflow: hidden; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.game:hover .game-cover img { transform: scale(1.04); }
.game-body { display: grid; gap: 6px; padding: 18px 18px 20px; flex: 1; }
.game-body h3 { font-size: 20px; }
.game-body p { color: var(--muted); font-size: 14px; }
.game-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.game-foot .from { font-size: 13px; color: var(--faint); }
.game-foot .from b { display: block; font: 700 18px/1.2 var(--head); color: var(--text); }
.game-foot .go { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent, var(--lime)); color: var(--ink); font-size: 20px; flex-shrink: 0; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.step .n { width: 36px; height: 36px; border-radius: 10px; background: rgba(198, 244, 50, .12); color: var(--lime); display: grid; place-items: center; font: 700 16px/1 var(--head); }
.step h3 { font-size: 18px; margin: 14px 0 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- game / checkout ---------- */
.game-hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.game-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: saturate(1.1); opacity: .35; }
.game-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 20%, rgba(14, 16, 21, .55)), linear-gradient(0deg, var(--bg), transparent 60%); }
.game-hero-in { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; padding-block: clamp(24px, 5vw, 44px); }
.game-hero img.thumb { width: clamp(64px, 12vw, 96px); aspect-ratio: 1; border-radius: 18px; object-fit: cover; border: 1px solid var(--line-2); flex-shrink: 0; }
.game-hero h1 { font-size: clamp(26px, 4vw, 40px); }
.game-hero p { color: var(--muted); margin-top: 6px; }
.operator { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(11, 12, 16, .6);
  border: 1px solid var(--line-2); color: var(--text); font-size: 14px; max-width: 46em; }
.studio-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); margin-top: 7px; flex-shrink: 0; }
.agree { margin-top: 14px; font-size: 13px; color: var(--muted); }
.agree a { color: var(--lime); }
.crumbs { font-size: 14px; color: var(--faint); margin-bottom: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; padding-block: 32px 64px; }
.panel { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(18px, 3vw, 26px); box-shadow: var(--shadow); }
.panel + .panel { margin-top: 20px; }
.panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.panel-head .n { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--s3); color: var(--muted); font: 700 15px/1 var(--head); flex-shrink: 0; }
.panel.done .panel-head .n { background: var(--lime); color: var(--lime-ink); }
.panel-head h2 { font-size: 19px; }
.panel-head .sub { margin-left: auto; color: var(--faint); font-size: 13px; text-align: right; }
.panel.locked { opacity: .55; }
.panel.locked .lock-note { display: block; }
.lock-note { display: none; color: var(--faint); font-size: 14px; }

.found { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: rgba(61, 214, 140, .08); border: 1px solid rgba(61, 214, 140, .35); }
.found .who { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.found .who::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: var(--ink); display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }
.chars { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.char { border: 1px solid var(--line-2); background: var(--ink); border-radius: 10px; padding: 8px 12px; cursor: pointer; font-size: 14px; text-align: left; }
.char small { display: block; color: var(--faint); font-size: 12px; }
.char[aria-pressed="true"] { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(198, 244, 50, .14); }
.notfound { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 92, 108, .08); border: 1px solid rgba(255, 92, 108, .35); color: #ffc2c8; font-size: 15px; }

.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pack { position: relative; display: grid; gap: 4px; text-align: left; padding: 16px 14px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--ink); cursor: pointer;
  transition: border-color .15s, transform .12s, box-shadow .15s; min-height: 118px; align-content: start; }
.pack:hover { border-color: var(--faint); }
.pack[aria-checked="true"] { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(198, 244, 50, .14); }
.pack[aria-checked="true"]::after { content: "✓"; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.pack .amt { font: 700 22px/1.1 var(--head); }
.pack .unit { font-size: 13px; color: var(--muted); }
.pack .bonus { justify-self: start; margin-top: 4px; font: 600 12px/1 var(--head); color: var(--ink); background: var(--warn); padding: 4px 8px; border-radius: 6px; }
.pack .price { margin-top: auto; padding-top: 10px; font: 600 16px/1 var(--head); color: var(--lime); }

.summary { position: sticky; top: 88px; }
.summary h2 { font-size: 18px; margin-bottom: 16px; }
.sum-game { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.sum-game img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.sum-game b { font-family: var(--head); }
.sum-game small { display: block; color: var(--faint); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; overflow-wrap: anywhere; font-weight: 500; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 18px 0; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.total span { color: var(--muted); }
.total b { font: 700 28px/1 var(--head); }
.secure { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; color: var(--faint); }
.lock { display: inline-block; width: 14px; height: 16px; flex-shrink: 0; margin-top: 2px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath d='M3 7V5a4 4 0 0 1 8 0v2h1a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm2 0h4V5a2 2 0 0 0-4 0z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath d='M3 7V5a4 4 0 0 1 8 0v2h1a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm2 0h4V5a2 2 0 0 0-4 0z'/%3E%3C/svg%3E") center/contain no-repeat; }
.paybar { display: none; }

/* ---------- order status ---------- */
.order { max-width: 824px; margin: 0 auto; padding-block: 36px 64px; }
.status-hero { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 32px 24px 28px; }
.status-icon { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; font-size: 34px; font-weight: 700; }
.status-icon.ok { background: rgba(61, 214, 140, .14); color: var(--ok); }
.status-icon.wait { background: rgba(139, 124, 255, .14); color: var(--violet); }
.status-icon.warn { background: rgba(255, 181, 71, .14); color: var(--warn); }
.status-icon.bad { background: rgba(255, 92, 108, .14); color: var(--bad); }
.status-icon .spin { width: 32px; height: 32px; border-width: 3px; }
.status-hero h1 { font-size: clamp(24px, 4vw, 32px); }
.status-hero p { color: var(--muted); max-width: 32em; }
.track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0 24px; }
.track div { position: relative; padding-top: 18px; font-size: 13px; color: var(--faint); text-align: center; }
.track div::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 99px; background: var(--s3); }
.track div.on { color: var(--text); }
.track div.on::before { background: var(--lime); }
.track div.now::before { background: linear-gradient(90deg, var(--lime), var(--s3)); background-size: 200% 100%; animation: flow 1.4s linear infinite; }
@keyframes flow { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.receipt { margin-top: 20px; }
.receipt h2 { font-size: 17px; margin-bottom: 14px; display: flex; justify-content: space-between; gap: 12px; }
.receipt h2 small { font: 500 13px/1.4 var(--body); color: var(--faint); }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* ---------- orders list, pages ---------- */
.page { padding-block: 36px 64px; }
.page h1 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 8px; }
.page > .wrap > p.lead { color: var(--muted); margin-bottom: 28px; }
.list { display: grid; gap: 12px; }
.olist { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--s1); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s; }
.olist:hover { border-color: var(--line-2); }
.olist img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.olist b { font-family: var(--head); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.olist small { color: var(--faint); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.olist .right { text-align: right; display: grid; gap: 6px; justify-items: end; }
.olist .right b { font-size: 16px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 600 12px/1.2 var(--head); white-space: nowrap; }
.badge.ok { background: rgba(61, 214, 140, .14); color: var(--ok); }
.badge.wait { background: rgba(139, 124, 255, .16); color: #b7aeff; }
.badge.warn { background: rgba(255, 181, 71, .14); color: var(--warn); }
.badge.bad { background: rgba(255, 92, 108, .14); color: var(--bad); }
.empty { text-align: center; padding: 40px 20px; color: var(--faint); border: 1px dashed var(--line-2); border-radius: var(--r); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--s1); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--lime); font: 600 20px/1 var(--head); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; color: var(--muted); }
.prose { max-width: 760px; display: grid; gap: 14px; color: var(--muted); }
.prose h2 { color: var(--text); font-size: 19px; margin-top: 10px; }

.skeleton.h-lg { height: 420px; }
.skeleton.h-md { height: 340px; }
.skeleton.h-sm { height: 76px; }
.wrap.pad { padding-top: 40px; padding-bottom: 40px; }
.section.flush-top { padding-top: 0; }
.mt-0 { margin-top: 0 !important; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mb-16 { margin-bottom: 16px; }
.wrap-any { overflow-wrap: anywhere; }
.section-head.tight { margin-bottom: 14px; }
.h-sub { font-size: 19px; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.stack { display: grid; gap: 14px; }
.narrow { max-width: 760px; }
.skeleton { background: linear-gradient(90deg, var(--s1), var(--s2), var(--s1)); background-size: 200% 100%; animation: flow 1.6s linear infinite; border-radius: var(--r-l); }

/* ---------- footer, toast ---------- */
.footer { border-top: 1px solid var(--line); background: var(--ink); }
.footer-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; padding-top: 32px; padding-bottom: 32px; }
.footer-brand p { color: var(--faint); font-size: 14px; margin-top: 10px; max-width: 30em; }
.footer-links { display: flex; gap: 20px; align-items: start; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-pay { display: flex; gap: 8px; color: var(--faint); font-size: 13px; grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line); }
.footer-copy { color: var(--faint); font-size: 13px; grid-column: 1 / -1; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; background: var(--s3); border: 1px solid var(--line-2); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }

/* ---------- tablet / phone ---------- */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 32px; }
  .hero-card { transform: none; max-width: 520px; }
  .checkout, .two { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 720px) {
  .topbar-in { height: auto; flex-wrap: wrap; gap: 8px 12px; padding-top: 10px; padding-bottom: 10px; }
  .nav { order: 3; width: 100%; margin: 0 -6px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 12px; font-size: 14px; }
  .lang { margin-left: auto; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-word { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .game-hero-in { flex-direction: column; align-items: flex-start; gap: 14px; }
  .game-hero img.thumb { width: 64px; border-radius: 14px; }
  .games { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { flex-direction: column; }
  .row .btn { width: 100%; }
  .summary .btn.pay { display: none; }
  .checkout { padding-bottom: 120px; }
  .paybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 12px; align-items: center; justify-content: space-between;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(11, 12, 16, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .paybar .t small { display: block; color: var(--faint); font-size: 12px; }
  .paybar .t b { font: 700 20px/1.1 var(--head); }
  .paybar .btn { flex: 1; max-width: 220px; }
  .footer-in { grid-template-columns: 1fr; }
  .olist { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; padding: 12px 14px; }
  .olist img { grid-row: span 2; align-self: start; }
  .olist .right { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
  .olist img { width: 40px; height: 40px; }
  .track div { font-size: 12px; }
  .kv { font-size: 14px; }
}

/* ---------- legal pages (server-rendered, Legal/LegalPages.cs) ---------- */
.lang a { padding: 4px 11px; border-radius: 999px; font: 600 13px/1.4 var(--head); color: var(--muted); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--lime); color: var(--lime-ink); }
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.legal-nav { position: sticky; top: 88px; display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); }
.legal-nav a { padding: 10px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 14px; }
.legal-nav a:hover { background: var(--s2); color: var(--text); }
.legal-nav a[aria-current="page"] { background: var(--s2); color: var(--text); box-shadow: inset 3px 0 0 var(--lime); }
.legal-body { max-width: 780px; color: #c9cdd8; }
.legal-body .eyebrow { margin: 0; }
.legal-body h1 { color: var(--text); font-size: clamp(28px, 4vw, 40px); margin: 6px 0 0; }
.legal-body .effective { color: var(--faint); font-size: 14px; margin-bottom: 8px; }
.legal-body h2 { margin-top: 18px; }
.legal-body ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.legal-body a { color: var(--lime); }
.legal-body strong { color: var(--text); }
.legal-kv { padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); }
.legal-kv dd { text-align: left; }
mark.ph { background: rgba(255, 181, 71, .16); color: var(--warn); border: 1px dashed rgba(255, 181, 71, .6); border-radius: 6px; padding: 0 6px; }
@media (max-width: 860px) {
  .legal-grid { grid-template-columns: 1fr; gap: 20px; }
  .legal-nav { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; }
  .legal-kv { grid-template-columns: 1fr; gap: 2px; }
  .legal-kv dd { margin-bottom: 10px; }
}

.price-head { font: 600 15px/1.3 var(--head); margin-top: 6px; }
.price-table { width: 100%; max-width: 420px; border-collapse: collapse; font-size: 15px; }
.price-table th { text-align: left; color: var(--faint); font-weight: 500; font-size: 13px; padding: 6px 12px; border-bottom: 1px solid var(--line); }
.price-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.price-table td:first-child { font: 600 16px/1.2 var(--head); color: var(--lime); white-space: nowrap; }
.price-table tr:last-child td { border-bottom: 0; }
.support-links { list-style: none; padding: 0 !important; }
.support-links a { display: inline-flex; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--s1); text-decoration: none; }

@media print {
  .topbar, .footer, .testmode, .actions, .toast { display: none !important; }
  body { background: #fff; color: #000; }
  .panel { box-shadow: none; border-color: #ccc; background: #fff; }
  .kv dt, .receipt h2 small { color: #444; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- static landing (Phase 1, Legal/home.*.html) ---------- */
.product { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 28px; align-items: start; }
.product-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.product-body { display: grid; gap: 10px; }
.product-body h3 { font-size: 24px; }
.product-body > p { color: var(--muted); }
.product-body .operator { margin-top: 2px; }
.product-kv { margin-top: 6px; }
.product-kv dd { text-align: left; }
.notice { margin-top: 6px; padding: 10px 14px; border-radius: 12px; background: rgba(198, 244, 50, .08); border: 1px solid rgba(198, 244, 50, .3); color: var(--text) !important; font-size: 14px; }
.policies { margin-top: 24px; color: var(--muted); font-size: 14px; }
.policies a { color: var(--lime); }
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; gap: 18px; }
  .product-kv { grid-template-columns: 1fr; gap: 2px; }
  .product-kv dd { margin-bottom: 8px; }
}
