/* Takeon Studios website (2026-11-19, Tolu: a studio site with a section per game, option A).
   The "Arena" look (Tolu's choice of three mock-ups, docs/mockups/website/look-a.png): the Take On
   sign-in screen's navy arena, faint cyan grid and scan line, neon titles and amber buttons
   (lib/pages/auth_home/auth_home_widget.dart, sign_in_hero.dart). Everything is served from this
   site: no outside fonts, scripts, trackers or cookies. Fonts: Poppins and Inter (SIL OFL, see
   /assets/fonts/OFL.txt). Icons: Font Awesome Free (CC BY 4.0, credit inside each file) and the
   app's own crossed swords. */

@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/Poppins-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/Poppins-Bold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 900; font-display: swap;
  src: url("/assets/fonts/Poppins-Black.woff2") format("woff2"); }
/* Inter: one file for every weight (a variable font). */
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/Inter-latin.woff2") format("woff2"); }

:root {
  --arena-top: #24476e;
  --arena-bottom: #0b1626;
  --card: #0f1e33;
  --cyan: #4fd1ff;
  --amber: #ffa733;
  --coral: #ff7a5c;
  --text: #ffffff;
  --text-soft: #c7d7ea;
  --text-faint: #9fb8d6;
  --line: rgba(79, 209, 255, 0.25);
  /* Mode colours as the app's dark look shows them on navy (lib/components/mode_colours.dart). */
  --solo: #4fd1ff;
  --friends: #ff5fa2;
  --duel: #ff7a5c;
  --blitz: #ffa733;
  --beats: #c9a7ff;
  --glow: 0 0 18px rgba(79, 209, 255, 0.9), 0 0 40px rgba(79, 209, 255, 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--arena-bottom); }
body {
  margin: 0; min-height: 100vh; position: relative; overflow-x: hidden;
  color: var(--text); font: 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(ellipse 130% 900px at 50% 0, var(--arena-top), var(--arena-bottom)) no-repeat,
    var(--arena-bottom);
}
/* The faint grid (36 px, as in the app) and the scan line sweeping slowly down it. */
body::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(79, 209, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 209, 255, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
}
body::after {
  content: ""; position: fixed; left: 0; right: 0; top: -120px; height: 120px; pointer-events: none;
  z-index: 0; background: linear-gradient(transparent, rgba(79, 209, 255, 0.10), transparent);
  animation: scan 7s linear infinite;
}
@keyframes scan { to { transform: translateY(calc(100vh + 120px)); } }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; top: 22vh; } }

header, main, footer { position: relative; z-index: 1; }

h1, h2, h3, .brand { font-family: "Poppins", system-ui, sans-serif; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 6.6vw, 4.2rem); font-weight: 900; letter-spacing: 0.03em;
  margin: 0 0 18px; text-shadow: var(--glow); }
h2 { font-size: clamp(1.5rem, 4vw, 1.9rem); font-weight: 900; margin: 0 0 16px; }
h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 6px; }
p { margin: 0 0 14px; }
a { color: var(--cyan); }
strong { font-weight: 700; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px;
  min-height: 72px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { font-weight: 900; font-size: 1rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: #fff; text-decoration: none; text-shadow: 0 0 14px rgba(79, 209, 255, 0.7); white-space: nowrap; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--cyan); font-weight: 600; text-decoration: none; white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current="page"] { color: #fff; text-decoration: underline;
  text-underline-offset: 6px; text-decoration-color: var(--cyan); }

/* Sections */
.hero { padding: 40px 0 36px; }
.hero.center { text-align: center; }
.hero p.lead, .lead { font-size: 1.15rem; color: var(--text-soft); max-width: 640px; }
.hero.center .lead { margin-left: auto; margin-right: auto; }
.kicker { font: 700 0.8rem/1.4 Inter, sans-serif; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber); margin: 0 0 10px; }
section { padding: 28px 0; }

/* The AI rivals' staircase: each a step higher, its ring glowing (sign_in_hero.dart). */
.stairs { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin: 0 0 20px; }
.stairs .step { display: flex; flex-direction: column; align-items: center; }
.stairs img { display: block; border-radius: 50%; border: 3px solid var(--ring);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4), 0 0 22px var(--ring); }
.stairs .block { display: block; width: 100%; min-width: 56px; margin-top: 8px; border-radius: 6px 6px 0 0;
  background: linear-gradient(var(--ring), transparent); opacity: 0.45; }
.r1 { --ring: #7fd6ff; } .r2 { --ring: #7fb4ff; } .r3 { --ring: #ff7a5c; } .r4 { --ring: #ffa733; }
.r1 img { width: 64px; height: 64px; } .r1 .block { height: 14px; }
.r2 img { width: 76px; height: 76px; } .r2 .block { height: 28px; }
.r3 img { width: 88px; height: 88px; } .r3 .block { height: 42px; }
.r4 img { width: 104px; height: 104px; } .r4 .block { height: 56px; }
/* Human rivals, after the AI staircase: a thin line, then a dashed cyan circle with a + on the
   top step, as on the sign-in screen (Tolu, 2026-11-19). */
.stairs .divider { align-self: center; flex-shrink: 0; width: 1px; height: 96px;
  background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,0.35), rgba(255,255,255,0)); }
.human { --ring: var(--cyan); }
.human .plus { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  border: 3px dashed var(--cyan); color: var(--cyan); font: 400 2.2rem/1 Inter, sans-serif;
  box-shadow: 0 0 18px rgba(79, 209, 255, 0.45); }
.human .block { height: 56px; }
.human-ink { color: var(--cyan); display: inline-block; }
@media (max-width: 420px) {
  .stairs { gap: 8px; }
  .r1 img { width: 52px; height: 52px; } .r2 img { width: 62px; height: 62px; }
  .r3 img { width: 72px; height: 72px; } .r4 img { width: 86px; height: 86px; }
  .with-human .r1 img { width: 44px; height: 44px; } .with-human .r2 img { width: 54px; height: 54px; }
  .with-human .r3 img { width: 64px; height: 64px; } .with-human .r4 img { width: 76px; height: 76px; }
  .stairs.with-human { gap: 6px; }
  .human .plus { width: 50px; height: 50px; font-size: 1.7rem; }
}

/* Icons: Font Awesome / the app's swords as masks, so each takes the colour around it. */
.ico { display: inline-block; width: 1em; height: 1em; background: currentColor; vertical-align: -0.125em;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.i-robot { --i: url("/assets/img/icons/robot.svg"); }
.i-friends { --i: url("/assets/img/icons/user-group.svg"); }
.i-bolt { --i: url("/assets/img/icons/bolt.svg"); }
.i-headphones { --i: url("/assets/img/icons/headphones.svg"); }
.i-play { --i: url("/assets/img/icons/play.svg"); }
.i-swords { --i: url("/assets/img/icons/swords.svg"); }
.solo-ink { color: var(--solo); } .friends-ink { color: var(--friends); } .duel-ink { color: var(--duel); }
.blitz-ink { color: var(--blitz); } .beats-ink { color: var(--beats); }

/* Buttons: amber pills, as the app's challenge cards. */
.button { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  background: var(--amber); color: #14181b; font: 700 1rem Inter, sans-serif; letter-spacing: 0.04em;
  text-transform: uppercase; text-decoration: none; padding: 14px 26px; border-radius: 999px;
  box-shadow: 0 0 24px rgba(255, 167, 51, 0.45); }
.button:hover { background: #ffb85c; }
.button .ico { font-size: 0.9em; }

/* Cards */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  padding: 30px; overflow: hidden; }

/* Studio home: the game cards */
.games { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
@media (max-width: 760px) { .games { grid-template-columns: 1fr; } }
.game { min-height: 360px; }
.game .face { position: absolute; right: -40px; top: 0; height: 100%; width: auto; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 20%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 0, transparent 20%, #000 70%); }
.game .inner { max-width: 470px; }
.game .blurb, .game .tag { max-width: 400px; } /* clear of the picture's eyes */
.game .inner { position: relative; display: flex; flex-direction: column; }
.game .title { display: flex; align-items: center; gap: 14px; margin: 0 0 4px; }
.game .title img { width: 56px; height: 56px; border-radius: 14px; image-rendering: pixelated; }
.game .title h3 { font-size: 2.4rem; font-weight: 900; letter-spacing: 0.12em; margin: 0; text-shadow: var(--glow); }
.tag { font: 600 1.15rem/1.35 Poppins, sans-serif; color: var(--coral); margin: 0 0 10px; }
.game .blurb { color: var(--text-soft); }
.soon { border: 2px dashed rgba(79, 209, 255, 0.5); background: transparent; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; min-height: 240px; }
.soon .plus { width: 84px; height: 84px; border-radius: 50%; border: 3px dashed var(--cyan); display: grid;
  place-items: center; font: 400 2.2rem/1 Inter, sans-serif; color: var(--cyan); margin-bottom: 14px; }
.soon p { font: 700 1.1rem/1.4 Poppins, sans-serif; color: var(--cyan); letter-spacing: 0.08em;
  text-transform: uppercase; margin: 0; }
/* Narrower screens: the text covers the picture, so dim it. */
@media (max-width: 760px) { .game .face { opacity: 0.35; } }
@media (max-width: 520px) { .card { padding: 22px; } }

/* The five mode tiles (as the sign-in screen's) */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 14px 0 22px; padding: 0;
  list-style: none; }
.tiles li { border: 1.5px solid rgba(79, 209, 255, 0.45); border-radius: 14px; padding: 10px 4px;
  text-align: center; background: rgba(13, 27, 61, 0.6); font: 600 0.8rem/1.25 Inter, sans-serif; }
.tiles .ico { display: block; font-size: 21px; margin: 0 auto 6px; }
.tiles .i-swords { font-size: 25px; margin-top: -2px; margin-bottom: 4px; } /* drawn smaller in its box, as in the app */
.tiles small { display: block; color: var(--text-faint); font-weight: 400; font-size: 0.7rem; }
@media (max-width: 520px) { .tiles { grid-template-columns: repeat(3, 1fr); } }

/* Take On page */
.game-hero .icon { width: 96px; height: 96px; border-radius: 22px; image-rendering: pixelated;
  box-shadow: 0 0 28px rgba(79, 209, 255, 0.45); margin: 0 auto 18px; display: block; }
.game-hero h1 { letter-spacing: 0.14em; }
.game-hero .tag { font-size: clamp(1.15rem, 3vw, 1.4rem); }
.store-note { font-weight: 700; color: var(--amber); }
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 640px) { .modes { grid-template-columns: 1fr; } }
.mode { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--mode);
  border-radius: 22px; padding: 24px; }
.mode h3 { display: flex; align-items: center; gap: 10px; color: #fff; }
.mode h3 .ico { color: var(--mode); font-size: 1.3rem; }
.mode p { color: var(--text-soft); margin: 0; }
.mode.solo { --mode: var(--solo); } .mode.friends { --mode: var(--friends); }
.mode.blitz { --mode: var(--blitz); } .mode.beats { --mode: var(--beats); }
.rivals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 640px) { .rivals { grid-template-columns: repeat(2, 1fr); } }
.rivals figure { margin: 0; text-align: center; }
.rivals img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 3px solid var(--ring); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4), 0 0 24px var(--ring); }
.rivals figcaption { font: 700 1rem Poppins, sans-serif; margin-top: 12px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
  list-style: none; padding: 0; margin: 0; }
.facts li { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px;
  color: var(--text-soft); }
.facts strong { display: block; font-family: "Poppins", sans-serif; color: #fff; margin-bottom: 4px; }

/* Support page */
.qa { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px;
  margin-bottom: 14px; }
.qa h3 { margin-bottom: 8px; }
.qa p { color: var(--text-soft); }
.qa p:last-child { margin-bottom: 0; }
.contact { background: var(--card); border: 2px solid var(--amber); border-radius: 24px; padding: 28px;
  box-shadow: 0 0 28px rgba(255, 167, 51, 0.25); margin-bottom: 20px; }
.contact p { color: var(--text-soft); margin: 0; }
.contact a { color: #fff; font-weight: 700; }

/* Footer */
footer { margin-top: 48px; padding: 32px 0 40px; border-top: 1px solid rgba(79, 209, 255, 0.18);
  color: var(--text-faint); font-size: 0.9rem; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
footer nav a { color: #fff; font-weight: 600; text-decoration: none; }
footer p { margin: 0 0 4px; }

/* Store buttons, added by store.js once the app is listed */
#get { margin-top: 12px; }
a.get { display: inline-block; margin: 0 5px 10px; padding: 12px 20px; border-radius: 999px;
  background: var(--amber); color: #14181b; font-weight: 700; text-decoration: none; }

/* Keyboard focus: a clear cyan ring on the dark page. */
:where(a):focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* Shouted titles, as the app's: capitals by style, so screen readers read words. */
.caps { text-transform: uppercase; }

/* Legal pages (privacy, terms, delete account; tool/make_legal_pages.js): long text, so a narrower
   column, softer body text and clear section headings. */
.legal { max-width: 760px; }
.legal h2 { margin-top: 36px; font-size: clamp(1.3rem, 3.4vw, 1.6rem); }
.legal h3 { margin-top: 22px; color: var(--cyan); }
.legal p, .legal li { color: var(--text-soft); }
.legal strong { color: #fff; }
.legal ul, .legal ol { padding-left: 1.3em; margin: 0 0 14px; }
.legal li { margin-bottom: 6px; }
.legal .contact h2 { margin-top: 0; }
.legal .contact ol { margin-bottom: 12px; }
