/* Operation Blast — site styles. Palette and type mirror the game's UiKit (Lilita One display, Nunito body). */
:root {
  --ink: #12172e;
  --navy: #1b2450;
  --navy-2: #232d63;
  --sky: #29a0f2;
  --orange: #ff9e1a;
  --gold: #ffd84d;
  --green: #40e659;
  --red: #ef4d4d;
  --teal: #17b8bf;
  --text: #f4f6ff;
  --soft: #b8c0e0;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
html, body { margin: 0; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.55;
  padding-inline: 16px;
  padding-block: 0;
}
h1, h2, h3, .display { font-family: "Lilita One", "Arial Black", Impact, sans-serif; font-weight: 400; letter-spacing: 0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 0.95; margin: 0.2em 0 0.1em; text-shadow: 0 4px 0 rgba(0,0,0,0.35), 0 10px 30px rgba(0,0,0,0.35); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 0.35em; text-shadow: 0 3px 0 rgba(0,0,0,0.35); }
h3 { font-size: 1.35rem; margin: 0.2em 0 0.3em; }
p { margin: 0 0 1em; }
a { color: var(--gold); }
.wrap { max-width: 1120px; margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; color: var(--sky); font-weight: 800; }
.soft { color: var(--soft); }
.measure { max-width: 60ch; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 6px 16px rgba(0,0,0,0.4); }
.brand .display { font-size: 1.3rem; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--navy-2); border: 1px solid var(--line); font-size: 0.85rem; font-weight: 800; white-space: nowrap; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-block: 28px 56px; }
.hero .tagline { font-family: "Lilita One", sans-serif; font-size: clamp(1.2rem, 2.6vw, 1.7rem); color: var(--gold); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 0.8em; }
.hero p.lead { font-size: 1.12rem; color: var(--soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 22px; }
.store-badge { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 16px; border-radius: 16px; background: #000; color: #fff; border: 1.5px solid rgba(255,255,255,0.35); text-decoration: none; box-shadow: var(--shadow); }
.store-badge .apple { width: 26px; height: 26px; fill: #fff; flex: none; }
.store-badge small { display: block; font-size: 0.68rem; letter-spacing: 0.02em; font-weight: 700; opacity: 0.85; }
.store-badge strong { display: block; font-size: 1.15rem; line-height: 1.1; font-family: "Nunito", sans-serif; font-weight: 800; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border-radius: 16px; font-family: "Lilita One", sans-serif; font-size: 1.15rem; letter-spacing: 0.03em; text-decoration: none; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,0.35); box-shadow: 0 6px 0 rgba(0,0,0,0.35), var(--shadow); transition: transform 0.12s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.green { background: linear-gradient(#5cf07a, #33c94d); }
.btn.blue { background: linear-gradient(#4fb4ff, #1f8be0); }
.art { position: relative; justify-self: center; width: min(100%, 420px); }
.art .phone { width: 100%; border-radius: 34px; border: 6px solid #0b0f22; box-shadow: var(--shadow); display: block; transform: rotate(-3deg); }
.art .icon { position: absolute; right: -14px; bottom: -22px; width: 34%; border-radius: 22%; box-shadow: var(--shadow); transform: rotate(6deg); border: 4px solid rgba(255,255,255,0.15); }

/* sections */
.section { padding-block: 48px; border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); display: grid; gap: 10px; align-content: start; }
.card p { color: var(--soft); margin: 0; }
.gate { display: flex; gap: 10px; }
.gate span { flex: 1; text-align: center; font-family: "Lilita One", sans-serif; font-size: 2rem; padding: 14px 0; border-radius: 12px; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,0.35); border: 3px solid rgba(255,255,255,0.35); box-shadow: inset 0 -6px 0 rgba(0,0,0,0.2); }
.gate .add { background: var(--sky); }
.gate .mul { background: var(--orange); }
.gate .sub { background: #c0404e; }
.gate .div { background: var(--teal); }
.moves { display: flex; gap: 8px; flex-wrap: wrap; }
.moves span { padding: 6px 12px; border-radius: 999px; background: var(--navy-2); border: 1px solid var(--line); font-size: 0.85rem; font-weight: 800; letter-spacing: 0.06em; }
.hearts { font-size: 1.6rem; letter-spacing: 0.1em; color: var(--red); }

/* daily */
.daily { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.boards { display: grid; gap: 10px; }
.board { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--navy); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.board b { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 1.05rem; letter-spacing: 0.04em; }
.board span { color: var(--gold); font-weight: 800; }
.streaks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.streaks span { padding: 8px 14px; border-radius: 12px; font-family: "Lilita One", sans-serif; letter-spacing: 0.04em; background: linear-gradient(#ffe27a, #f5b800); color: #3a2a00; box-shadow: 0 4px 0 rgba(0,0,0,0.3); }

/* screenshots */
.shots { display: flex; gap: 18px; overflow-x: auto; padding-block: 8px 18px; scroll-snap-type: x mandatory; }
.shots img { width: 240px; max-width: 70vw; flex: none; border-radius: 26px; border: 5px solid #0b0f22; box-shadow: var(--shadow); scroll-snap-align: start; }

/* warning */
.warning { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: center; background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.warning img { width: 100%; height: 100%; object-fit: cover; display: block; }
.warning .copy { padding: 28px; }
.ribbon { display: inline-block; background: var(--red); color: #fff; font-family: "Lilita One", sans-serif; font-size: 1.4rem; letter-spacing: 0.08em; padding: 8px 22px; clip-path: polygon(6% 0, 94% 0, 100% 50%, 94% 100%, 6% 100%, 0 50%); text-shadow: 0 2px 0 rgba(0,0,0,0.35); }
.fine { font-size: 0.8rem; color: var(--soft); }

/* footer */
.footer { border-top: 1px solid var(--line); padding-block: 28px 40px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; color: var(--soft); font-size: 0.9rem; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--soft); }

/* legal pages */
.legal { max-width: 72ch; padding-block: 24px 60px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.4rem; margin-top: 1.6em; }
.legal .notice { background: var(--navy); border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: 14px; padding: 14px 18px; color: var(--soft); }
.legal ul { padding-left: 1.2em; }

@media (max-width: 820px) {
  .hero, .daily, .warning { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .art { width: min(100%, 340px); margin-top: 12px; }
  .art .phone { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* legal pages, generated by tools/legal/build_legal.py */
.legal h3 { font-family: "Nunito", sans-serif; font-weight: 800; font-size: 1.1rem; margin-top: 1.4em; }
.legal ol { padding-left: 1.4em; }
.legal li { margin-block: 0.3em; }
.legal .notice p:last-child { margin-bottom: 0; }
.legal mark.fill { background: rgba(255, 216, 77, 0.18); color: var(--gold); border-radius: 6px; padding: 0 0.2em; }
