/* Higher or Less — site styles. Palette and type follow the Örn & Móri redesign
   (docs/superpowers/specs/2026-10-17-eagle-mole-redesign-design.md). */

@font-face { font-family: Fredoka; font-weight: 600; font-display: swap; src: url(/fonts/fredoka-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Fredoka; font-weight: 700; font-display: swap; src: url(/fonts/fredoka-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-weight: 700; font-display: swap; src: url(/fonts/nunito-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url(/fonts/nunito-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-weight: 900; font-display: swap; src: url(/fonts/nunito-latin-900-normal.woff2) format("woff2"); }

:root {
  --ground: #1B1446;
  --deep: #120E33;
  --panel: #2A2160;
  --line: #4A3E96;
  --cream: #FFF8E7;
  --lilac: #C9C2F0;
  --gold: #FFC83D;
  --gold-shadow: #C98F12;
  --pink: #FF6FA0;
  --pink-shadow: #B23A66;
  --mint: #5BE3A7;
  --ink: #1B1446;
  --display: Fredoka, ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: Nunito, ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--cream);
  font: 700 17px/1.55 var(--body);
}
a { color: var(--gold); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.higher { color: var(--gold); }
.less { color: var(--pink); }
.muted { color: var(--lilac); }

/* Header and footer */
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.brand { font-family: var(--display); font-size: 22px; text-decoration: none; color: var(--cream); }
.site-header nav a { color: var(--lilac); text-decoration: none; margin-left: 18px; }
.site-header nav a:hover { color: var(--cream); }
.site-footer { background: var(--deep); margin-top: 72px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; color: var(--lilac); font-size: 15px; }
.site-footer nav a { color: var(--lilac); margin-right: 18px; }

/* Hero: the mascot face-off */
.hero { display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: center; gap: 12px; padding: 24px 0 56px; text-align: center; }
.hero h1 { font-size: clamp(48px, 8vw, 88px); }
.hero .lede { font-size: clamp(17px, 2vw, 21px); color: var(--lilac); margin: 18px auto 0; max-width: 30ch; }
.mascot svg { width: 100%; max-width: 240px; height: auto; }
.mascot .tag { font-family: var(--display); font-size: clamp(20px, 3vw, 30px); letter-spacing: .04em; }
.orn svg { animation: soar 3.2s ease-in-out infinite; }
.mori svg { animation: dig 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes soar { 50% { transform: translateY(-10px) rotate(-2deg); } }
@keyframes dig { 50% { transform: translateY(4px) scaleY(.97); } }
@media (prefers-reduced-motion: reduce) { .orn svg, .mori svg { animation: none; } }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: 8px; font: 700 18px var(--display); text-decoration: none; border-radius: 14px; padding: 12px 22px; }
.button.gold { background: var(--gold); color: #2A1A00; box-shadow: 0 5px 0 var(--gold-shadow); }
.button.soon { background: var(--panel); color: var(--lilac); border: 2px dashed var(--line); cursor: default; }

/* Sections */
section { padding: 48px 0 0; }
.section-title { font-size: clamp(30px, 4vw, 40px); margin-bottom: 8px; }
.section-lede { color: var(--lilac); margin: 0 0 24px; max-width: 60ch; }

/* Games */
.games { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.game { background: var(--panel); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.game h3 { font-size: 26px; }
.game p { margin: 0; color: var(--lilac); }
.game .platforms { font-size: 14px; color: var(--mint); text-transform: uppercase; letter-spacing: .08em; }
.game .actions { margin-top: auto; padding-top: 8px; }
.game.upcoming { background: transparent; border: 2px dashed var(--line); }
.game.upcoming .platforms { color: var(--lilac); }
.badge-soon { align-self: flex-start; background: var(--line); color: var(--cream); border-radius: 99px; padding: 3px 12px; font-size: 13px; }

/* Categories */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { border-radius: 18px; padding: 18px; color: var(--ink); }
.tile h3 { font-size: 22px; margin-bottom: 4px; }
.tile p { margin: 0; font-size: 15px; line-height: 1.45; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.mode { background: var(--panel); border-radius: 18px; padding: 18px; }
.mode h3 { font-size: 22px; margin-bottom: 4px; }
.mode p { margin: 0; color: var(--lilac); font-size: 15px; }

/* Feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 32px; position: relative; margin-bottom: 10px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--mint); font-weight: 900; }
.duel { display: flex; gap: 14px; justify-content: center; align-items: flex-end; }
.duel .tv { background: var(--deep); border: 8px solid var(--panel); border-radius: 14px; aspect-ratio: 16 / 9; width: 70%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.duel .card { border-radius: 10px; padding: 10px; font-size: 14px; }
.duel .card b { display: block; font: 700 26px var(--display); }
.duel .card.shown { background: var(--cream); color: var(--ink); }
.duel .card.hidden { background: var(--panel); }
.duel .phone { width: 13%; aspect-ratio: 9 / 19; background: var(--deep); border: 4px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; padding: 8px 6px; }
.duel .phone span { height: 14px; border-radius: 5px; }
.price { background: var(--panel); border-radius: 22px; padding: 28px; }
.price .amount { font: 700 48px var(--display); color: var(--gold); }

/* Text pages (privacy, support, 404) */
.page { max-width: 720px; }
.page h1 { font-size: clamp(38px, 6vw, 56px); margin: 24px 0 8px; }
.page h2 { font-size: 28px; margin: 40px 0 10px; }
.page h3 { font-size: 21px; margin: 26px 0 6px; }
.page p, .page li { color: var(--lilac); }
.page strong { color: var(--cream); }
.page .updated { color: var(--lilac); font-size: 15px; }
.contact { background: var(--panel); border-radius: 18px; padding: 20px 24px; margin-top: 24px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr 1fr; padding-bottom: 36px; }
  .hero .title { grid-column: 1 / -1; order: -1; }
  .games, .tiles, .modes, .split { grid-template-columns: 1fr; }
  .site-header nav a { margin-left: 12px; }
}
