/* Brightbolt: dark tech-panel look matching Cut the Wrong Wire. No web fonts, no JS. */
:root {
  --bg: #0b1a2b;
  --bg-2: #10243a;
  --panel: #16304d;
  --line: #24476d;
  --text: #e8eef6;
  --muted: #9fb3c8;
  --accent: #ffc533;
  --accent-ink: #1b1300;
  --link: #7cc4ff;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image: linear-gradient(rgba(124,196,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(124,196,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.2; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-top: .2em; letter-spacing: -.01em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
code { background: var(--panel); padding: .1em .35em; border-radius: 5px; font-size: .9em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.section { padding: 40px 16px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.lead { font-size: 1.15rem; color: #cfdbe8; max-width: 46em; }
.accent { color: var(--accent); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--accent); font-weight: 700; margin: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.preview-bar { background: #5a3d00; color: #ffe3a3; text-align: center; font-size: .85rem; padding: 6px 16px; }

/* header / nav */
.site-header { border-bottom: 1px solid var(--line); background: rgba(11,26,43,.92); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.logo-mark { width: 32px; height: 32px; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 0; }
.nav a:hover, .nav a[aria-current] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }

/* buttons, chips, badges */
.btn { display: inline-block; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; background: var(--panel); }
.btn:hover { border-color: var(--muted); color: #fff; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 4px 0 #b78300; }
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.05); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.chip { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 99px; background: var(--panel); color: var(--muted); border: 1px solid var(--line); }
.chip-status-in-development { color: #ffd77a; border-color: #6b5214; }
.chip-status-live { color: #8ff0b0; border-color: #1f6b3d; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.store-badge { display: inline-flex; flex-direction: column; justify-content: center; min-width: 150px; padding: 7px 16px; border-radius: 10px; background: #000; border: 1px solid #555; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; line-height: 1.15; }
.store-badge small { font-weight: 500; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.store-badge.is-soon { opacity: .55; cursor: default; border-style: dashed; }

/* hero */
.hero { padding: 56px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.hero-phones { display: flex; gap: 16px; justify-content: center; }
.hero-phones img { width: 46%; max-width: 230px; border-radius: 18px; border: 3px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.hero-phones img:last-child { transform: translateY(28px); }

/* games */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0 0 16px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 20px; margin-top: 16px; }
.game-card { display: grid; grid-template-columns: 150px 1fr; gap: 20px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.game-card-media img { border-radius: 12px; border: 2px solid var(--line); }
.game-card h3 { margin: 4px 0 6px; font-size: 1.4rem; }
.game-card h3 a { color: var(--text); text-decoration: none; }
.game-card p { margin: 0 0 6px; color: #cfdbe8; }
.game-hero { padding: 48px 0 8px; }
.shots { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: 0 0 auto; width: 210px; scroll-snap-align: start; }
.shots img { border-radius: 16px; border: 2px solid var(--line); }
.shots figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 6px; }
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.two-col h2:first-child, .card h2:first-child { margin-top: 0; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 8px; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; font-weight: 600; }
.ticks { padding-left: 0; list-style: none; }
.ticks li { padding-left: 28px; position: relative; margin: 6px 0; }
.ticks li::before { content: "⚡"; position: absolute; left: 0; }
.plain { list-style: none; padding: 0; }
.plain li { margin: 6px 0; }
.wide-shot { border-radius: var(--radius); border: 1px solid var(--line); }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.values > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.values h3 { margin-top: 0; color: var(--accent); }

/* legal & info pages */
.legal { max-width: 860px; }
.legal h1 { margin-top: 0; }
.legal h2 { border-top: 1px solid var(--line); padding-top: 1.2em; }
.draft-banner { background: #3b2a00; border: 1px solid #8a6400; color: #ffe3a3; border-radius: 10px; padding: 12px 16px; margin-bottom: 24px; font-size: .95rem; }
mark.todo { background: #5a3d00; color: #ffe3a3; padding: 0 4px; border-radius: 4px; }
.sdk { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px 8px; margin: 16px 0; }
.sdk h3 { margin-top: 14px; margin-bottom: 0; }
.toc { columns: 2; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.contact-grid h2 { margin-top: 0; border: 0; padding: 0; }
.logo-row { display: flex; gap: 16px; flex-wrap: wrap; }
.logo-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; background: #f4f7fb; color: #16304d; text-decoration: none; font-weight: 700; }
.press-game { margin: 16px 0; }
.press-shots { display: flex; gap: 10px; flex-wrap: wrap; }
.press-shots a img { height: 180px; width: auto; border-radius: 10px; border: 1px solid var(--line); }
.press-shots a.wide img { height: 180px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 32px 0 24px; background: #08131f; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.footer-grid h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 6px 0 10px; }
.footer-grid a:not(.brand) { display: block; color: #cfdbe8; text-decoration: none; margin: 4px 0; font-size: .95rem; }
.footer-grid a:not(.brand):hover { color: #fff; }
.legal-line { margin-top: 24px; font-size: .85rem; }

@media (max-width: 820px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toc { columns: 1; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .game-card { grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; }
  .site-header { position: static; }
  .header-row { padding-top: 8px; padding-bottom: 8px; }
  .nav { gap: 2px 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-phones img:last-child { transform: none; }
}
