/* QMM ARCADE - black and gold, loud type, the covers do the talking */
:root {
  --ink: #f4efe4; --dim: #a39d90; --bg: #07070a; --panel: #111117; --line: #26262f;
  --gold: #f2b51d; --gold-hot: #ffd257; --live: #3ee08f; --warn: #ff6b4a;
  --head: Impact, 'Haettenschweiler', 'Arial Narrow Bold', 'Franklin Gothic Heavy', sans-serif;
  --body: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px); --fast: 150ms; --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--body); overflow-x: hidden;
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(242,181,29,.16), transparent 60%), radial-gradient(900px 500px at -10% 30%, rgba(242,181,29,.07), transparent 60%); }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-hot); outline-offset: 3px; }
.hide { display: none !important; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--gutter); background: rgba(7,7,10,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { font: 400 26px/1 var(--head); letter-spacing: 1px; text-decoration: none; }
.brand img { display: block; height: clamp(46px, 4.2vw, 60px); width: auto; }
.brand b { color: var(--gold); font-weight: 400; }
.top nav { display: flex; align-items: center; gap: 18px; font: 700 13px/1 var(--body); letter-spacing: 1.5px; }
.top nav a { text-decoration: none; color: var(--dim); transition: color var(--fast); }
.top nav a:hover { color: var(--ink); }
.ghost { background: transparent; border: 1px solid var(--line); padding: 9px 14px; letter-spacing: 1.5px; font-weight: 700; font-size: 13px; transition: border-color var(--fast), color var(--fast); }
.ghost:hover { border-color: var(--gold); color: var(--gold); }
#acct.in { border-color: var(--gold); color: var(--gold); }

.hero { padding: clamp(56px, 10vw, 140px) var(--gutter) clamp(40px, 6vw, 80px); max-width: 1280px; margin: 0 auto; }
.hero h1 { margin: 0; font: 400 clamp(52px, 11vw, 150px)/.88 var(--head); letter-spacing: -1px; text-transform: uppercase; }
.hero h1 span { color: var(--gold); text-shadow: 0 0 40px rgba(242,181,29,.35); }
.hero p { max-width: 520px; color: var(--dim); font-size: clamp(16px, 2vw, 19px); margin: 22px 0 28px; }
.hero p b { color: var(--ink); }
.cta { display: inline-block; background: var(--gold); color: #0a0a0a; text-decoration: none; font: 400 22px/1 var(--head); letter-spacing: 1.5px; padding: 16px 30px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); transition: transform var(--fast) var(--ease), background var(--fast); }
.cta:hover { background: var(--gold-hot); transform: translateX(4px); }

h2 { font: 400 clamp(34px, 6vw, 64px)/1 var(--head); margin: 0 0 24px; letter-spacing: .5px; }
.games, .pass { padding: clamp(32px, 6vw, 72px) var(--gutter); max-width: 1280px; margin: 0 auto; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(12, 1fr); }
.game { grid-column: span 4; display: flex; flex-direction: column; text-decoration: none; background: var(--panel); border: 1px solid var(--line); position: relative;
  transition: transform 250ms var(--ease), border-color var(--fast), box-shadow 250ms var(--ease); }
.game:first-child { grid-column: span 8; grid-row: span 3; }
.game:first-child .cover { aspect-ratio: auto; flex: 1; min-height: 300px; }
.game:first-child p { flex: 0 0 auto; max-width: 560px; }
.game:first-child h3 { font-size: clamp(34px, 4vw, 52px); }
.game:hover { transform: translateY(-4px); border-color: rgba(242,181,29,.6); box-shadow: 0 18px 40px -18px rgba(242,181,29,.45); }
.cover { aspect-ratio: 16 / 9; background: #1a1a22 center / cover no-repeat; position: relative; overflow: hidden; }
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(17,17,23,.9)); }
.tag { position: absolute; top: 12px; z-index: 1; font: 800 11px/1 var(--body); font-style: normal; letter-spacing: 1.5px; padding: 6px 9px; }
.tag.new { left: 12px; background: var(--gold); color: #0a0a0a; }
.tag.perk { left: 64px; background: rgba(7,7,10,.8); color: var(--gold); border: 1px solid rgba(242,181,29,.5); }
.game h3 { margin: 14px 16px 4px; font: 400 26px/1 var(--head); letter-spacing: .5px; }
.game p { margin: 0 16px; color: var(--dim); font-size: 14px; flex: 1; }
.play { align-self: flex-start; margin: 14px 16px 16px; font: 800 12px/1 var(--body); letter-spacing: 2px; color: var(--gold); }
.play::after { content: ' \2192'; transition: margin var(--fast); }
.game:hover .play::after { margin-left: 6px; }

.pass .sub { color: var(--dim); margin: -12px 0 24px; }
.cycle { display: inline-flex; border: 1px solid var(--line); margin-bottom: 22px; }
.cycle button { background: transparent; border: 0; padding: 10px 16px; font-weight: 800; font-size: 12px; letter-spacing: 1.5px; color: var(--dim); }
.cycle button small { color: var(--live); font-size: 10px; margin-left: 4px; }
.cycle button.on { background: var(--ink); color: #0a0a0a; }
.cycle button.on small { color: #0d7a45; }
.tiers { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); align-items: stretch; }
.tier { background: var(--panel); border: 1px solid var(--line); padding: 22px 20px; display: flex; flex-direction: column; position: relative; }
.tier h3 { margin: 0 0 10px; font: 800 13px/1 var(--body); letter-spacing: 2px; color: var(--dim); }
.price { font: 400 46px/1 var(--head); margin-bottom: 14px; }
.price small { font: 600 13px/1 var(--body); color: var(--dim); margin-left: 4px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; font-size: 14px; }
.tier li { padding: 6px 0 6px 20px; position: relative; border-top: 1px solid var(--line); }
.tier li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 8px; height: 8px; background: var(--gold); clip-path: polygon(0 50%, 40% 100%, 100% 0, 40% 70%); }
.tier.main { border-color: var(--gold); background: linear-gradient(180deg, rgba(242,181,29,.12), var(--panel) 45%); transform: translateY(-8px); box-shadow: 0 24px 50px -24px rgba(242,181,29,.5); }
.tier.main h3 { color: var(--gold); }
.tier.founders h3 { color: var(--gold-hot); }
.ribbon { position: absolute; top: -11px; right: 16px; background: var(--gold); color: #0a0a0a; font: 800 10px/1 var(--body); font-style: normal; letter-spacing: 1.5px; padding: 6px 8px; }
.btn { display: block; text-align: center; text-decoration: none; padding: 13px 14px; font: 800 13px/1 var(--body); letter-spacing: 1.5px; border: 1px solid var(--line); background: transparent; transition: background var(--fast), color var(--fast), transform var(--fast); }
.btn.buy { background: var(--gold); color: #0a0a0a; border-color: var(--gold); }
.btn.buy:hover { background: var(--gold-hot); }
.btn.buy:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.have { background: transparent; color: var(--live); border-color: var(--live); }
.promise { list-style: none; padding: 0; margin: 34px 0 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.promise li { border: 1px solid var(--line); padding: 7px 12px; font-size: 13px; font-weight: 600; }
.promise li::before { content: '\2713  '; color: var(--live); font-weight: 800; }
.fine { color: var(--dim); font-size: 12px; }
.account { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border: 1px solid rgba(242,181,29,.5); padding: 14px 16px; background: rgba(242,181,29,.06); }
.account > div:last-child { display: flex; gap: 8px; }
.account .btn { display: inline-block; }
#accPlan { color: var(--gold); font-weight: 700; margin-left: 6px; }

footer { padding: 40px var(--gutter); color: var(--dim); font: 700 11px/1 var(--body); letter-spacing: 3px; border-top: 1px solid var(--line); text-align: center; }

dialog { background: var(--panel); color: var(--ink); border: 1px solid var(--gold); padding: 26px; width: min(420px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
dialog h3 { margin: 0 0 6px; font: 400 32px/1 var(--head); }
dialog p { color: var(--dim); font-size: 14px; margin: 0 0 16px; }
dialog input { width: 100%; padding: 13px 12px; font: inherit; background: var(--bg); color: var(--ink); border: 1px solid var(--line); margin-bottom: 14px; }
dialog input:focus { border-color: var(--gold); outline: none; }
dialog .row { display: flex; gap: 10px; justify-content: flex-end; }
dialog .row .btn { min-width: 110px; }
.msg { min-height: 20px; margin: 12px 0 0 !important; color: var(--ink) !important; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20; background: var(--ink); color: #0a0a0a; padding: 12px 18px; font-weight: 700; font-size: 14px;
  max-width: calc(100vw - 32px); box-shadow: 0 12px 30px rgba(0,0,0,.5); animation: rise 300ms var(--ease); }
.toast.bad { background: var(--warn); color: #fff; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 12px); } }

@media (max-width: 1000px) {
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .tier.main { transform: none; }
  .game, .game:first-child { grid-column: span 4; grid-row: auto; }
  .game:first-child { grid-column: span 12; }
  .game:first-child .cover { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .top nav a { display: none; }
  .tiers { grid-template-columns: 1fr; }
  .game, .game:first-child { grid-column: span 12; }
  .game:first-child .cover { min-height: 0; aspect-ratio: 16 / 9; }
  .tag.perk { left: auto; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
/* the 6-digit sign-in code (owner 10-18) */
#code { font: 400 34px/1 var(--head); letter-spacing: 10px; text-align: center; }
