/* take4adev / Blockbeat 808 - in the game's neon look (owner 2026-11-02,
   docs/design.md): near-black case with soft colored glows, outlines in the
   pink-to-turquoise gradient instead of filled colors, the menu font
   ChakraPetch for titles and buttons. No web fonts from outside or other
   outside requests (this site holds the privacy policy): the font is here
   in fonts/ (SIL Open Font License, fonts/OFL.txt). */
@font-face {
  font-family: "ChakraPetch"; font-weight: 700; font-display: swap;
  src: url("fonts/ChakraPetch-Bold.ttf") format("truetype");
}
:root {
  --bg: #08080A; --face: #121216; --panel: rgba(18,18,22,.86); --line: rgba(255,255,255,.12);
  --text: #ECECF1; --dim: #A3A3AE; --pink: #FF5CD6; --cyan: #18FFFF; --gold: #F5C842;
  --blue: #2F6BFF; --green: #39FF14; --led: #FF3B1F;
  --neon: linear-gradient(90deg, var(--pink), var(--cyan));
  --menu: "ChakraPetch", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(520px 420px at 8% 4%, rgba(255,92,214,.16), transparent 70%),
    radial-gradient(560px 420px at 96% 10%, rgba(24,255,255,.11), transparent 70%),
    radial-gradient(520px 460px at 20% 62%, rgba(57,255,20,.05), transparent 70%),
    radial-gradient(560px 480px at 88% 78%, rgba(245,200,66,.06), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}
main { max-width: 760px; margin: 0 auto; padding: 28px 16px 56px; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--pink); }
h1 { margin: 18px 0 6px; font: 700 30px/1.15 var(--menu); letter-spacing: .12em; color: #fff;
  text-shadow: 0 0 14px rgba(255,255,255,.25); }
h2 { margin: 30px 0 8px; font: 700 19px/1.3 var(--menu); letter-spacing: .04em; color: #fff;
  display: flex; align-items: center; gap: 10px; }
h2::before { content: ""; width: 11px; height: 11px; border-radius: 3px; flex: none;
  border: 2px solid var(--cyan); box-shadow: 0 0 8px rgba(24,255,255,.6); }
h3 { margin-top: 20px; font: 700 16px/1.3 var(--menu); letter-spacing: .04em; color: #fff; }
p.dim, .dim { color: var(--dim); }
ul { padding-left: 22px; }
li { margin: 3px 0; }
li::marker { color: var(--pink); }
b, strong { color: #fff; }

/* A dark face with a glowing pink-to-turquoise edge (the game's NeonEdge). */
.neon, nav a, .card, .feature, .bar {
  border: 1.5px solid transparent;
  background: linear-gradient(var(--face), var(--face)) padding-box, var(--neon) border-box;
}

/* The 16-step row of the start menu, with a running light. */
.steps { display: grid; grid-template-columns: repeat(16, 1fr); gap: 5px; max-width: 520px; margin: 8px auto 26px; }
.steps span { aspect-ratio: 1; border-radius: 4px; background: #1C1C20; position: relative;
  animation: run 1.92s steps(1) infinite; }
.steps span.on::after { content: ""; position: absolute; left: 18%; top: 16%; width: 18%; height: 18%;
  border-radius: 50%; background: var(--led); box-shadow: 0 0 6px var(--led); }
.steps span:nth-child(1) { animation-delay: 0s } .steps span:nth-child(2) { animation-delay: .12s }
.steps span:nth-child(3) { animation-delay: .24s } .steps span:nth-child(4) { animation-delay: .36s }
.steps span:nth-child(5) { animation-delay: .48s } .steps span:nth-child(6) { animation-delay: .6s }
.steps span:nth-child(7) { animation-delay: .72s } .steps span:nth-child(8) { animation-delay: .84s }
.steps span:nth-child(9) { animation-delay: .96s } .steps span:nth-child(10) { animation-delay: 1.08s }
.steps span:nth-child(11) { animation-delay: 1.2s } .steps span:nth-child(12) { animation-delay: 1.32s }
.steps span:nth-child(13) { animation-delay: 1.44s } .steps span:nth-child(14) { animation-delay: 1.56s }
.steps span:nth-child(15) { animation-delay: 1.68s } .steps span:nth-child(16) { animation-delay: 1.8s }
@keyframes run { 0% { outline: 2px solid #fff; outline-offset: 1px } 6.25%, 100% { outline: 0 } }
@media (prefers-reduced-motion: reduce) { .steps span { animation: none; } }

/* The game's logo: BLOCK in pink, BEAT in turquoise, "808" as a gradient
   outline with a dark face, a neon bar under it. */
.hero { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; text-align: center; }
.hero img { width: 104px; height: 104px; border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 22px rgba(255,92,214,.25); }
.title { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.title .t1 { font: 700 34px/1 var(--menu); letter-spacing: 5px; }
.title .t1 .b { color: var(--pink); text-shadow: 0 0 12px rgba(255,92,214,.7); }
.title .t1 .c { color: var(--cyan); text-shadow: 0 0 12px rgba(24,255,255,.7); }
.title svg { display: block; width: 200px; height: auto; margin-top: 4px;
  filter: drop-shadow(0 0 8px rgba(255,92,214,.35)) drop-shadow(0 0 10px rgba(24,255,255,.25)); }
.title .bar { width: 168px; height: 11px; border-radius: 6px; margin-top: 4px;
  box-shadow: 0 0 10px rgba(255,92,214,.35), 0 0 12px rgba(24,255,255,.25); }
.lead { font-size: 18px; margin-top: 26px; }
.center { text-align: center; }
.badge { display: inline-block; margin-top: 18px; padding: 5px 14px; border-radius: 20px;
  font: 700 13px/1.4 var(--menu); letter-spacing: .08em; color: var(--gold);
  border: 1.5px solid rgba(245,200,66,.6); box-shadow: 0 0 10px rgba(245,200,66,.25); }

/* Three feature tiles: dark boxes with a neon edge, the symbol outlined. */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 26px 0 8px; }
.feature { border-radius: 16px; padding: 14px 16px; box-shadow: 0 0 14px rgba(255,92,214,.10); }
.feature b { display: flex; align-items: center; gap: 9px; color: #fff; font: 700 16px/1.3 var(--menu); letter-spacing: .06em; }
.feature b::before { content: ""; width: 14px; height: 14px; border-radius: 4px; flex: none;
  border: 2px solid var(--c, var(--pink)); box-shadow: 0 0 8px var(--c, var(--pink)); }
.feature p { margin: 6px 0 0; color: var(--dim); font-size: 14px; line-height: 1.5; }

/* Links as the game's buttons: dark pills with a glowing gradient edge. */
nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 8px; }
nav a { text-decoration: none; color: #fff; font: 700 14px/1 var(--menu); letter-spacing: .12em; text-transform: uppercase;
  padding: 12px 20px; border-radius: 40px; border-width: 2px;
  box-shadow: 0 0 8px rgba(255,92,214,.25), 0 0 10px rgba(24,255,255,.15); }
nav a:hover { color: #fff; box-shadow: 0 0 12px rgba(255,92,214,.5), 0 0 16px rgba(24,255,255,.35); }
nav a.primary { box-shadow: 0 0 14px rgba(255,92,214,.5), 0 0 18px rgba(24,255,255,.35); }

/* Legal pages: the text sits on a card like the game's popups. */
.back { display: inline-block; text-decoration: none; color: var(--dim); font: 700 13px/1 var(--menu); letter-spacing: .1em;
  padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 20px; }
.back:hover { color: #fff; border-color: var(--cyan); box-shadow: 0 0 10px rgba(24,255,255,.3); }
.card { background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--neon) border-box;
  border-radius: 22px; padding: 6px 22px 18px; margin-top: 18px;
  box-shadow: 0 0 18px rgba(255,92,214,.12), 0 0 22px rgba(24,255,255,.08); }

footer { margin-top: 48px; color: var(--dim); font-size: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
@media (max-width: 520px) {
  .title .t1 { font-size: 28px; letter-spacing: 4px; }
  .title svg { width: 168px; }
  .title .bar { width: 140px; }
  .hero img { width: 84px; height: 84px; border-radius: 20px; }
  .card { padding: 4px 16px 14px; }
  nav a { padding: 11px 16px; }
}

/* Official store badges (stores.js BB.badges). Google's PNG carries its own
   clear space, so it is drawn larger to match the App Store badge. */
.stores { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; margin: 22px 0 4px; }
.store-badge { display: block; line-height: 0; }
.store-badge.apple img { height: 44px; }
.store-badge.play img { height: 57px; margin: -9px -8px; }
.store-soon { color: #9a9aa6; font-size: 14px; }
