/* Crowd Games site: same look as the Hub and the games (textured panels, wells, gold titles, lamps). */
@font-face { font-family: 'Inter Display'; src: url(../fonts/InterDisplay-Black.woff) format('woff'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Inter UI'; src: url(../fonts/Inter-SemiBold.woff) format('woff'); font-weight: 600; font-display: swap; }

:root {
  --gold: #f2b51d; --accent: #ffb000; --line: #3a3936; --text: #e6e4df; --muted: #a19f96; --ink: #f2f0eb;
  --green: #43e08a; --red: #ff5a4f; --blue: #4aa8ff; --wrap: 1280px;
  --ui: 'Inter UI', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font: 16px/1.55 var(--body); background: #000; min-height: 100vh;
       background-image: radial-gradient(120% 90% at 30% 0%, #141414 0%, #050505 60%, #000 100%); background-attachment: fixed; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #ffd166; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: #000; padding: 10px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid.sm { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.section { padding-top: 56px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.mono { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 13px; }
.center { text-align: center; }
.ink { color: var(--ink); }

/* surfaces */
.tex { background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, rgba(0,0,0,0) 1px 3px),
                   radial-gradient(120% 90% at 50% 35%, #2d2c2a 0%, #1b1a19 60%, #121212 100%);
       border: 1px solid var(--line); border-radius: 9px;
       box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(0,0,0,.6), 0 3px 8px rgba(0,0,0,.7); }
.well { background: #070707; border: 1px solid #000; border-radius: 7px; box-shadow: inset 0 3px 10px #000, 0 1px 0 rgba(255,255,255,.06); }
.glow { border-color: #7a5600; box-shadow: 0 0 30px rgba(255,176,0,.12), inset 0 1px 0 rgba(255,255,255,.06); }
.ring { box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 2px var(--accent), 0 0 40px rgba(255,176,0,.18); }
.pad { padding: 24px; } .pad-l { padding: clamp(24px, 5vw, 64px); } .pad-s { padding: 16px 18px; }

/* type */
.gold { font-family: 'Inter Display', var(--ui); font-weight: 900; color: var(--gold); letter-spacing: -.02em; line-height: 1.05;
        text-shadow: 0 0 18px rgba(242,181,29,.35), 0 2px 0 rgba(0,0,0,.6); }
.h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.02; }
.h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.h3 { font-size: 1.4rem; }
.lbl { font: 600 12px var(--ui); letter-spacing: 1.4px; color: #b5b3ae; text-transform: uppercase; }
.lbl.gd { color: var(--accent); letter-spacing: 3px; }
.lead { font-size: 18px; color: #c9c7c1; max-width: 38rem; }
.card-title { font: 600 19px var(--ui); color: var(--ink); }
.big-num { font-family: 'Inter Display', var(--ui); font-weight: 900; font-size: 34px; color: var(--ink); }

/* buttons, like the game control windows */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
       font: 600 13px var(--ui); letter-spacing: 1.2px; text-transform: uppercase; white-space: nowrap; cursor: pointer;
       color: var(--text); background: #121212; border: 1px solid #45433f; border-radius: 7px; }
.btn:hover { color: #fff; border-color: #6a6862; }
.btn:active { transform: translateY(1px); }
.btn.on { color: #151006; background: linear-gradient(#ffd066, var(--accent)); border-color: var(--accent); box-shadow: 0 0 10px rgba(255,176,0,.5); }
.btn.go { color: #04210f; background: linear-gradient(#7ff0b0, #2fbf6f); border-color: #7ff0b0; box-shadow: 0 0 10px rgba(67,224,138,.45); }
.btn.on:hover, .btn.go:hover { color: #000; filter: brightness(1.06); }
.btn.big { min-height: 52px; padding: 0 26px; font-size: 14px; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 11.5px; }
.btn.wide { width: 100%; }
.btn[aria-disabled="true"] { color: #6a6862; border-color: #2e2d2a; pointer-events: none; box-shadow: none; background: #0c0c0c; }

.lamp { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; background: #2a2927; }
.lamp.g { background: var(--green); box-shadow: 0 0 8px var(--green); }
.lamp.y { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.lamp.r { background: var(--red); box-shadow: 0 0 8px var(--red); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px;
        font: 600 11px var(--ui); letter-spacing: .8px; text-transform: uppercase; white-space: nowrap;
        color: #c9c7c1; background: #121212; border: 1px solid #45433f; }
.chip.gd { color: var(--accent); border-color: #7a5600; } .chip.gr { color: var(--green); border-color: #1f7a48; } .chip.bl { color: var(--blue); border-color: #285b8c; }
.check { display: flex; gap: 10px; align-items: flex-start; } .check .lamp { margin-top: 8px; }
.list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }

/* header + footer */
.top { border-bottom: 1px solid #22211f; background: rgba(0,0,0,.8); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(8px); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 12px; padding-bottom: 12px; }
.logo img { height: 34px; width: auto; }
.menu { display: flex; flex-wrap: wrap; gap: 4px 22px; flex: 1 1 auto; justify-content: center; }
.menu a { color: #d4d2cc; font: 600 15px var(--ui); padding: 10px 4px; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--accent); }
.top .actions { display: flex; gap: 10px; }
@media (max-width: 760px) { .menu { order: 3; width: 100%; justify-content: flex-start; gap: 4px 16px; } .top .actions { margin-left: auto; } }
.foot { border-top: 1px solid #22211f; margin-top: 64px; }
.foot .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding: 40px 0 20px; }
.foot .col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.foot .col a { color: #c9c7c1; }
.foot .col a:hover { color: var(--accent); }
.foot .about { max-width: 380px; display: flex; flex-direction: column; gap: 12px; }
.foot .about img { height: 30px; width: auto; opacity: .6; align-self: flex-start; }
.foot .legal { text-align: center; padding: 0 0 28px; font-size: 13px; color: var(--muted); }

/* hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero > .text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero > .art { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
.hero-ring { width: 360px; max-width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.hero-ring img { width: 82%; filter: drop-shadow(0 0 30px rgba(255,176,0,.45)); }
.plats { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: #c9c7c1; }
.plats span { display: flex; align-items: center; gap: 8px; }

/* game cards */
.game { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.game .head { display: flex; gap: 16px; align-items: center; }
.game .head img { width: 88px; height: 88px; flex: none; filter: drop-shadow(0 3px 6px rgba(0,0,0,.6)); }
.game .foot-row { margin-top: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.price { margin-left: auto; font: 600 16px var(--ui); color: var(--ink); }
.tool { padding: 18px; display: flex; gap: 16px; align-items: center; }
.tool img { width: 72px; height: 72px; flex: none; }
.tool.planned img { filter: grayscale(.6) brightness(.75); }

/* game page */
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.split > .main { flex: 2 1 560px; min-width: 0; }
.split > .side { flex: 1 1 340px; min-width: 0; }
.game-head { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.game-head img { width: 140px; height: 140px; flex: none; filter: drop-shadow(0 0 22px rgba(255,176,0,.35)); }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shot { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.shot.wide { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.buy-box { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.buy-box .top-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.buy-box.main { box-shadow: inset 0 3px 10px #000, 0 0 0 1px rgba(255,176,0,.45); }
.feature { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.feature h3 { font: 600 16px var(--ui); color: var(--ink); }
.crumbs { font-size: 13px; color: var(--muted); padding: 24px 0 18px; }
.crumbs a { color: #c9c7c1; }

/* pricing + tables */
.plan { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.plan .cost { padding: 16px 18px; }
.plan .btn { margin-top: auto; }
.table-box { padding: 8px 8px 4px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font: 600 11.5px var(--ui); letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); padding: 10px 14px; }
td { padding: 12px 14px; border-top: 1px solid #1d1c1a; vertical-align: middle; }
.name-cell { display: flex; align-items: center; gap: 12px; }
.name-cell img { width: 36px; height: 36px; }
.faq { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.faq h3 { font: 600 16px var(--ui); color: var(--ink); }

/* download */
.plat { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.plat.detected { box-shadow: inset 0 3px 10px #000, 0 0 0 1px rgba(255,176,0,.5); }
.plat .det { display: none; } .plat.detected .det { display: inline-flex; }

/* steps */
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.steps li { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.steps .gold { font-size: 30px; }
.steps h3 { font: 600 18px var(--ui); color: var(--ink); }

/* legal pages */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.prose h2 { font: 600 20px var(--ui); color: var(--ink); margin-top: 18px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.note { padding: 14px 16px; font-size: 14px; color: #d4d2cc; }

/* "Open in Hub" helper */
.hub-dialog { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.7); z-index: 20; }
.hub-dialog.open { display: flex; }
.hub-dialog .box { max-width: 460px; width: 100%; padding: 24px; display: flex; flex-direction: column; gap: 14px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- account + admin (server pages) ---------- */
.app { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 32px; align-items: flex-start; }
.app > .content { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.side-menu { flex: 1 1 240px; padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.side-menu nav { display: flex; flex-direction: column; gap: 2px; }
.side-menu nav a { display: flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 7px; font: 600 14px var(--ui); color: #c9c7c1; }
.side-menu nav a[aria-current="page"] { color: var(--accent); background: #070707; box-shadow: inset 0 3px 10px #000, 0 0 0 1px rgba(255,176,0,.35); }
.side-menu .who { padding: 4px 8px 14px; display: flex; flex-direction: column; gap: 4px; word-break: break-all; }
.link-btn { background: none; border: 0; padding: 10px 14px; font: 600 14px var(--ui); color: #c9c7c1; cursor: pointer; text-align: left; }
.link-btn.danger { color: #ff8a80; }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font: 600 12px var(--ui); letter-spacing: 1.2px; text-transform: uppercase; color: #b5b3ae; }
.field input, .field select, .field textarea { font: 15px var(--body); letter-spacing: 0; text-transform: none; color: var(--text); background: #070707; border: 1px solid #000;
  border-radius: 7px; box-shadow: inset 0 3px 10px #000, 0 1px 0 rgba(255,255,255,.06); padding: 12px 14px; min-height: 44px; width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #d4d2cc; }
.check-line input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.alert { display: flex; gap: 10px; align-items: center; }
.auth-box { max-width: 460px; margin: 0 auto; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.kpi .big-num { font-size: 26px; }
.machine { padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.machine .info { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.inline { display: inline; }
pre.code { margin: 0; padding: 14px; font: 12px/1.55 ui-monospace, Consolas, monospace; color: #c9c7c1; white-space: pre-wrap; word-break: break-word; max-height: 420px; overflow: auto; }
.switch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 18px 20px; }
