/* Start Menu Arcade website. No scripts, system fonts, light and dark from the visitor's setting. */
:root {
  color-scheme: light dark;
  --bg: #f6f8fe; --surface: #ffffff; --surface-2: #eef2fc; --ink: #0f1830; --mute: #4a5673; --line: #dfe5f4;
  --brand: #2447b8; --brand-2: #6a4be0; --accent: #2f5de0; --accent-ink: #ffffff; --ring: #2f5de0;
  --shadow: 0 1px 2px rgba(15,24,48,.06), 0 8px 24px rgba(15,24,48,.08);
  --shadow-lg: 0 2px 4px rgba(15,24,48,.08), 0 24px 60px rgba(36,71,184,.22);
  --panel-a: #2447b8; --panel-b: #121f5c;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1f; --surface: #121a31; --surface-2: #19223d; --ink: #e8ecf8; --mute: #9aa7c7; --line: #25304f;
    --brand: #8fb0ff; --accent: #5b86f5; --ring: #8fb0ff;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.5), 0 24px 60px rgba(0,0,0,.55);
    --panel-a: #1d3a94; --panel-b: #0c1546;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 17px;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 100; box-shadow: var(--shadow); }
.skip:focus { left: 12px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { color: var(--mute); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.bar .btn { margin-left: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border-radius: 12px; padding: 13px 22px; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn.small { padding: 9px 16px; font-size: 15px; border-radius: 10px; }
.btn.primary { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--brand-2)); box-shadow: 0 6px 18px rgba(47,93,224,.35); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(47,93,224,.45); text-decoration: none; }
.btn.primary:active { transform: translateY(0); }
.btn.ghost { color: var(--ink); background: var(--surface); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); text-decoration: none; }
.btn.white { background: #fff; color: #17307f; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.btn.white:hover { transform: translateY(-2px); text-decoration: none; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* hero */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden;
  background: radial-gradient(900px 420px at 88% -8%, rgba(106,75,224,.20), transparent 70%), radial-gradient(800px 460px at -5% 0%, rgba(47,93,224,.16), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 3.9rem); font-weight: 800; }
.hero h1 .grad { background: linear-gradient(120deg, var(--accent), var(--brand-2) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.2rem; color: var(--mute); margin: 20px 0 30px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { color: var(--mute); font-size: 14px; margin-top: 16px; }

/* app window frame */
.window { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.window .titlebar { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.window .titlebar svg { width: 16px; height: 16px; }
.window .titlebar .spacer { flex: 1; }
.window .titlebar i { display: inline-block; width: 12px; height: 12px; border: 1.5px solid var(--mute); opacity: .55; border-radius: 3px; margin-left: 8px; }
.window img { width: 100%; }

/* sections */
.section { padding: 84px 0; }
.section.alt { background: var(--surface-2); }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; }
.section-head p { color: var(--mute); font-size: 1.1rem; margin: 14px 0 0; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 28px 0 8px; }
.trust div { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.trust svg { width: 38px; height: 38px; flex: none; padding: 8px; border-radius: 12px; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); }

.grid-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.game { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.game:hover { transform: translateY(-3px); border-color: var(--accent); }
.badge { width: 68px; height: 68px; border-radius: 16px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 -3px 0 rgba(0,0,0,.14); margin-bottom: 14px; }
.badge img { width: 54px; height: 54px; image-rendering: pixelated; }
.game h3 { font-size: 1.2rem; }
.game p { color: var(--mute); margin: 6px 0 12px; font-size: 15px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 700; color: var(--mute); background: var(--surface-2); border-radius: 999px; padding: 3px 10px; }

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 12px; color: var(--mute); font-size: 15px; text-align: center; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 26px; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--brand-2)); }
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--mute); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); margin-bottom: 14px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--mute); font-size: 15px; }

.faq { max-width: 52em; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 18px 56px 18px 22px; position: relative; border-radius: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 500; color: var(--brand); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 22px 20px; color: var(--mute); }
.faq details > div p { margin: 0 0 10px; }

.cta-band { position: relative; border-radius: 28px; padding: 56px 40px; text-align: center; color: #fff; overflow: hidden;
  background: radial-gradient(600px 260px at 85% 0%, rgba(122,90,240,.55), transparent 70%), linear-gradient(135deg, var(--panel-a), var(--panel-b)); box-shadow: var(--shadow-lg); }
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; }
.cta-band p { color: rgba(255,255,255,.82); margin: 12px auto 28px; max-width: 32em; }
.cta-band .fine { color: rgba(255,255,255,.7); }

/* document pages (terms, 404) */
.doc { padding: 64px 0 96px; }
.prose { max-width: 46em; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 48px; box-shadow: var(--shadow); }
.prose h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 18px; }
.prose h2 { font-size: 1.25rem; margin: 30px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.3em; }
.notfound { text-align: center; padding: 96px 0 120px; }
.notfound .code { font-size: 5.5rem; font-weight: 800; line-height: 1; background: linear-gradient(120deg, var(--accent), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound p { color: var(--mute); margin: 14px 0 28px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--mute); font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.foot .brand { color: var(--ink); margin-bottom: 10px; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.foot nav a { color: var(--mute); text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.legal { grid-column: 1 / -1; font-size: 13px; border-top: 1px solid var(--line); padding-top: 20px; }
.legal p { margin: 0 0 6px; }

@media (max-width: 920px) {
  .hero { padding-top: 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .steps, .features { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .foot nav { justify-content: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .nav { display: none; }
  .bar .btn { margin-left: auto; }
  .section { padding: 60px 0; }
  .prose { padding: 28px 22px; }
  .cta-band { padding: 40px 22px; border-radius: 22px; }
  .trust { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print { .site-header, .cta-band, .hero .cta-row { display: none; } body { background: #fff; } }

/* game badge colours (the same gradients as the app) */
.g-minesweeper { background: linear-gradient(135deg, #fb7185, #f97316); }
.g-2048 { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.g-sudoku { background: linear-gradient(135deg, #60a5fa, #6366f1); }
.g-jigsaw { background: linear-gradient(135deg, #34d399, #14b8a6); }
.g-solitaire { background: linear-gradient(135deg, #4ade80, #16a34a); }
.g-snake { background: linear-gradient(135deg, #a3e635, #22c55e); }
.g-breakout { background: linear-gradient(135deg, #f472b6, #e11d48); }
.g-blocks { background: linear-gradient(135deg, #818cf8, #a855f7); }
.after-steps { margin-top: 28px; }
.section.flush-top { padding-top: 0; }
.fine.tight { margin: 16px 0 0; }

