/* Brainlympics landing page: real game captures in the game's navy, cream and gold. */
:root {
  color-scheme: dark;
  --navy: #0e1b2c;
  --surface: #142337;
  --cream: #f6e2bf;
  --muted: #b9b5ad;
  --gold: #c8a75b;
  --blue: #9a91ff;
  --line: #c8a75b40;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--navy); color: var(--cream); font: 1rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .25em; }
img { display: block; max-width: 100%; }
figure, p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: "Chakra Petch", "Arial Narrow", sans-serif; font-weight: 700; line-height: 1.04; letter-spacing: -.045em; }
em { color: var(--gold); font-style: normal; }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 1rem; z-index: 10; padding: .65rem 1rem; background: var(--cream); color: var(--navy); }
.skip-link:focus { top: 1rem; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 24px; }
.wordmark { display: flex; align-items: center; gap: 12px; font-family: "Chakra Petch", sans-serif; font-size: 23px; font-weight: 700; letter-spacing: -.045em; text-decoration: none; }
.brand-mark { flex: none; width: 46px; height: 46px; padding: 2px; border-radius: 50%; background: var(--cream); }
.brand-mark img { width: 100%; height: 100%; }
.header nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.header nav a { text-decoration: none; }
.nav-story { color: var(--muted); }
.nav-download { padding-block: 10px; border-bottom: 1px solid var(--gold); }
.nav-download span { margin-left: 9px; color: var(--gold); }
.hero { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: 25px; min-height: 690px; padding-block: 30px 55px; }
.eyebrow { margin-bottom: 24px; color: var(--gold); font-family: "Chakra Petch", sans-serif; font-size: 12px; line-height: 1.5; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { font-size: clamp(54px, 5.8vw, 78px); }
.hero h1 span { color: var(--blue); }
.hero-description { max-width: 450px; margin-top: 27px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.store-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; margin-left: -2px; }
.store-links a { display: flex; align-items: center; min-height: 54px; border-radius: 6px; transition: transform 160ms ease; }
.store-links a:hover { transform: translateY(-2px); }
.apple-badge { width: 135px; height: 45px; }
.google-badge { width: 151px; height: 58px; object-fit: contain; }
.platforms { margin-top: 8px; color: var(--muted); font-size: 11px; letter-spacing: .025em; }
.platforms span { display: inline-block; margin-inline: 8px; color: var(--gold); }
.hero-screens { position: relative; height: 610px; }
.screen { border: 5px solid #090f19; border-radius: 25px; background: var(--navy); overflow: hidden; box-shadow: 0 24px 60px #0004, 0 0 0 1px #f6e2bf25; }
.screen img { width: 100%; height: auto; }
.hero-athens { position: absolute; z-index: 2; width: 251px; left: 0; top: 10px; transform: rotate(-7deg); }
.hero-rival { position: absolute; width: 224px; right: 5px; top: 56px; transform: rotate(7deg); }
.screen-note { position: absolute; left: 9px; bottom: 0; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.rules { border-top: 1px solid var(--line); padding-block: 38px 58px; }
.section-label { display: flex; align-items: center; gap: 18px; }
.section-number { display: inline-block; margin-right: 12px; color: var(--gold); font: 500 13px/1 "Chakra Petch", sans-serif; letter-spacing: .05em; }
.section-label .section-number { margin: 0; }
.rules h2 { font-size: 30px; letter-spacing: -.025em; }
.rule-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 45px; margin: 28px 0 0 44px; padding: 0; list-style: none; }
.rule-steps li { position: relative; }
.rule-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -26px; top: 1px; color: var(--gold); }
.rule-steps strong { display: block; margin-bottom: 5px; color: var(--cream); font-size: 15px; font-weight: 600; }
.rule-steps span { display: block; max-width: 280px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.circuit { padding-block: 88px 36px; background: var(--surface); }
.circuit-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 45px; align-items: center; }
.circuit h2, .medals h2 { font-size: clamp(40px, 4.4vw, 58px); }
.circuit-copy > p:not(.eyebrow) { max-width: 450px; margin-top: 24px; color: var(--muted); font-size: 16px; }
.format-list { display: flex; flex-wrap: wrap; gap: 5px 19px; margin: 27px 0 0; padding: 0; list-style: none; font-family: "Chakra Petch", sans-serif; color: var(--gold); font-size: 12px; }
.circuit-screens { position: relative; height: 565px; }
.poster-screen { position: absolute; width: 213px; left: 0; top: 23px; transform: rotate(-6deg); }
.pieces-screen { position: absolute; width: 239px; right: 0; top: 0; transform: rotate(6deg); }
.cities { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 25px; padding-top: 28px; margin-top: 50px; border-top: 1px solid var(--line); color: var(--gold); font: 500 12px/1.7 "Chakra Petch", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.medals { padding-block: 90px; background: var(--cream); color: var(--navy); }
.medals-grid { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 70px; }
.medals .eyebrow, .medals .section-number { color: #78632e; }
.medals-copy > p:not(.eyebrow) { max-width: 440px; margin-top: 25px; color: #3a4350; font-size: 17px; }
.medals-copy .closing-line { color: var(--navy); font-size: 16px; font-weight: 600; }
.medal-screens { position: relative; height: 545px; }
.tokyo-screen { position: absolute; z-index: 2; width: 223px; top: 14px; left: 0; transform: rotate(-6deg); }
.london-medal-screen { position: absolute; width: 223px; top: 42px; right: 0; transform: rotate(6deg); }
.medals .screen { box-shadow: 0 20px 40px #0e1b2c25, 0 0 0 1px #0e1b2c20; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-block: 30px; color: var(--muted); font-size: 12px; }
.footer nav { display: flex; gap: 25px; }
.footer a { text-decoration: none; }
.footer a:hover, .nav-story:hover { color: var(--cream); }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .hero { grid-template-columns: 1fr 1fr; gap: 30px; min-height: 620px; }
  .hero h1 { font-size: 61px; }
  .hero-description { font-size: 16px; }
  .hero-screens { height: 540px; }
  .hero-athens { width: 215px; }
  .hero-rival { width: 192px; right: 0; }
  .hero-screens .screen-note { max-width: 260px; }
  .circuit-grid { gap: 40px; grid-template-columns: 1fr 1fr; }
  .circuit-screens { height: 515px; }
  .poster-screen { width: 180px; }
  .pieces-screen { width: 204px; }
  .medals-grid { gap: 45px; grid-template-columns: 1fr 1fr; }
  .medal-screens { height: 480px; }
  .tokyo-screen, .london-medal-screen { width: 190px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header { padding-block: 18px; gap: 15px; }
  .wordmark { gap: 9px; font-size: 21px; }
  .brand-mark { width: 38px; height: 38px; }
  .header nav { gap: 0; font-size: 12px; }
  .nav-story { display: none; }
  .nav-download { white-space: nowrap; }
  .nav-download span { margin-left: 4px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 36px; min-height: 0; padding-block: 40px 30px; }
  .hero .eyebrow { margin-bottom: 20px; }
  .hero h1 { font-size: clamp(43px, 11.3vw, 64px); }
  .hero-description { max-width: 500px; margin-top: 22px; font-size: 16px; }
  .store-links { margin-top: 20px; gap: 9px; }
  .hero-screens { width: min(410px, 100%); height: 515px; margin-inline: auto; }
  .hero-athens { width: 202px; left: 7px; top: 3px; transform: rotate(-6deg); }
  .hero-rival { width: 177px; right: 7px; top: 50px; transform: rotate(7deg); }
  .screen { border-width: 4px; border-radius: 20px; }
  .screen-note { left: 0; right: 0; bottom: 0; max-width: none !important; text-align: center; font-size: 10px; }
  .rules { padding-block: 30px 42px; }
  .rules h2 { font-size: 28px; }
  .rule-steps { grid-template-columns: 1fr; gap: 20px; margin-left: 44px; margin-top: 24px; }
  .rule-steps li:not(:last-child)::after { display: none; }
  .rule-steps span { max-width: 450px; }
  .circuit { padding-block: 49px 30px; }
  .circuit-grid { display: flex; flex-direction: column; align-items: stretch; gap: 32px; }
  .circuit h2, .medals h2 { font-size: clamp(38px, 10vw, 51px); }
  .circuit .eyebrow, .medals .eyebrow { font-size: 11px; margin-bottom: 21px; }
  .circuit-copy > p:not(.eyebrow) { max-width: 550px; margin-top: 21px; font-size: 15px; }
  .circuit-screens { width: min(410px, 100%); height: 490px; margin-inline: auto; }
  .poster-screen { width: 182px; left: 6px; top: 31px; }
  .pieces-screen { width: 202px; right: 7px; }
  .cities { justify-content: flex-start; gap: 10px 21px; margin-top: 18px; padding-top: 23px; font-size: 11px; }
  .medals { padding-block: 50px; }
  .medals-grid { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 30px; }
  .medals-copy > p:not(.eyebrow) { max-width: 550px; margin-top: 22px; font-size: 16px; }
  .medal-screens { width: min(410px, 100%); height: 490px; margin-inline: auto; }
  .tokyo-screen, .london-medal-screen { width: 190px; }
  .tokyo-screen { left: 7px; top: 7px; }
  .london-medal-screen { right: 7px; top: 38px; }
  .footer { align-items: flex-start; padding-block: 26px; gap: 20px; font-size: 11px; }
  .footer nav { gap: 18px; }
}
@media (max-width: 370px) {
  .wrap { width: calc(100% - 32px); }
  .wordmark { font-size: 19px; gap: 6px; }
  .brand-mark { width: 32px; height: 32px; }
  .hero h1 { font-size: 40px; }
  .hero-athens { width: 185px; }
  .hero-rival { width: 161px; }
  .hero-screens { height: 480px; }
  .poster-screen { width: 161px; }
  .pieces-screen { width: 182px; }
  .circuit-screens { height: 448px; }
  .tokyo-screen, .london-medal-screen { width: 174px; }
  .medal-screens { height: 455px; }
  .apple-badge { width: 126px; height: 42px; }
  .google-badge { width: 142px; height: 55px; }
  .store-links { gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store-links a { transition: none; }
}
