:root {
  --blue: #078fe7;
  --blue-dark: #063a92;
  --yellow: #ffd51d;
  --pink: #ff3c8e;
  --green: #7bdc31;
  --orange: #ff7a1a;
  --ink: #0b2050;
  --paper: #f7fbff;
  --radius: 28px;
  --shadow: 0 24px 70px rgba(5, 39, 95, .19);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
main { overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-rounded, "Arial Rounded MT Bold", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
body::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.steam-platform { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.steam-platform img { display: block; width: 145px; height: auto; }
.steam-platform span { padding-left: 18px; border-left: 1px solid #cbd9ea; color: #506588; font-size: .72rem; line-height: 1.5; }
.steam-platform strong { color: var(--ink); font-weight: 800; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  display: flex;
  width: min(1180px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 20px;
  background: rgba(6, 38, 92, .57);
  box-shadow: 0 12px 30px rgba(0, 20, 70, .13);
  color: #fff;
  backdrop-filter: blur(16px) saturate(135%);
  transition: background .25s, top .25s;
}
.site-header.scrolled { top: 8px; background: rgba(6, 38, 92, .88); }
.brand-lockup { display: flex; align-items: center; }
.brand-logo { display: block; width: 132px; height: 72px; object-fit: contain; filter: drop-shadow(0 5px 9px rgba(0, 17, 70, .28)); }
nav { display: flex; align-items: center; gap: 28px; font-size: .86rem; font-weight: 800; }
nav a { transition: opacity .2s, transform .2s; }
nav a:hover { opacity: .8; transform: translateY(-1px); }
.nav-cta { padding: 10px 16px; border-radius: 12px; background: var(--yellow); color: var(--ink); box-shadow: inset 0 -3px 0 rgba(180, 95, 0, .22); }

.hero { position: relative; min-height: 760px; height: 100svh; overflow: hidden; background: #079be9; color: #fff; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.015); animation: heroIn 1.2s cubic-bezier(.2,.8,.2,1) both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,35,102,.78) 0%, rgba(4,35,102,.38) 37%, rgba(4,35,102,0) 63%), linear-gradient(0deg, rgba(2,28,74,.55), transparent 40%); }
.hero-content { position: relative; z-index: 2; display: flex; width: min(1180px, calc(100% - 48px)); height: 100%; margin: auto; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 80px; }
.eyebrow { margin: 0 0 18px; color: var(--yellow); font-size: .76rem; font-weight: 950; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.dark { color: var(--blue); }
h1, h2, h3 { margin: 0; font-weight: 1000; letter-spacing: -.05em; line-height: .93; }
h1 { max-width: 690px; font-size: clamp(4rem, 7.3vw, 7.2rem); text-shadow: 0 6px 0 rgba(0, 36, 114, .14); }
h1 em, h2 em { color: var(--yellow); font-style: normal; }
.hero-copy { max-width: 560px; margin: 26px 0 16px; font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 650; line-height: 1.55; text-shadow: 0 2px 14px rgba(0,0,0,.25); }
.hero-price { display: flex; align-items: center; gap: 13px; margin-bottom: 25px; }
.hero-price strong { font-size: 1.7rem; font-weight: 1000; letter-spacing: -.04em; }
.hero-price span { padding-left: 13px; border-left: 1px solid rgba(255,255,255,.42); color: rgba(255,255,255,.78); font-size: .67rem; font-weight: 760; line-height: 1.4; text-transform: uppercase; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions > .hero-steam, .hero-actions > .button-glass { width: 220px; height: 66px; flex: 0 0 220px; }
.hero-steam { display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; cursor: pointer; transition: transform .18s; }
.hero-steam img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-steam:hover { transform: translateY(-3px); }
.hero-steam:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: 10px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 14px; padding: 0 24px; border: 0; border-radius: 15px; cursor: pointer; font-weight: 950; transition: transform .18s, box-shadow .18s, filter .18s; }
.button:hover { transform: translateY(-3px) rotate(-.5deg); filter: saturate(1.08); }
.button:active { transform: translateY(0); }
.button-primary { background: linear-gradient(180deg, #ffe83e, #ffc813); color: #173269; box-shadow: 0 7px 0 #e9950c, 0 14px 30px rgba(18, 33, 83, .26); }
.button-primary span { font-size: 1.35em; }
.button-glass { border: 1px solid rgba(255,255,255,.55); background: rgba(3, 34, 100, .37); color: #fff; box-shadow: 0 8px 28px rgba(0, 22, 71, .18); backdrop-filter: blur(11px); }
.play-icon { display: grid; width: 27px; height: 27px; place-items: center; padding-left: 2px; border-radius: 50%; background: #fff; color: var(--pink); font-size: .65rem; }
.scroll-cue { position: absolute; z-index: 3; bottom: 27px; left: 50%; display: flex; align-items: center; gap: 10px; transform: translateX(-50%); font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.scroll-cue span { width: 22px; height: 34px; border: 2px solid rgba(255,255,255,.8); border-radius: 20px; }
.scroll-cue span::after { content: ""; display: block; width: 4px; height: 7px; margin: 6px auto; border-radius: 4px; background: #fff; animation: scroll 1.5s infinite; }

.ticker { overflow: hidden; padding: 16px 0; background: var(--yellow); color: #11387c; transform: rotate(-1deg) scale(1.02); box-shadow: 0 7px 0 #f0a714; }
.ticker-track { display: flex; width: max-content; align-items: center; gap: 28px; animation: ticker 24s linear infinite; font-size: clamp(1rem, 1.6vw, 1.35rem); font-weight: 1000; letter-spacing: -.02em; text-transform: uppercase; }
.ticker i { color: var(--pink); font-style: normal; }

.section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 120px 0; }
.section-heading { max-width: 760px; margin-bottom: 50px; }
.section-heading h2, .gameplay-copy h2, .cta h2 { font-size: clamp(2.8rem, 5.8vw, 5.5rem); }
.section-heading h2 em, .gameplay-copy h2 em { color: var(--pink); }
.section-heading > p:last-child { max-width: 590px; margin: 22px 0 0; color: #496083; font-size: 1.05rem; line-height: 1.65; }

.racer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.racer-card { position: relative; min-height: 470px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); isolation: isolate; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.racer-card:hover, .racer-card:focus { z-index: 2; outline: none; transform: translateY(-12px) rotate(-1deg); box-shadow: 0 36px 80px rgba(5, 39, 95, .29); }
.racer-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--card); }
.racer-card::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg, rgba(3,23,69,.88) 0%, rgba(3,23,69,.14) 61%, transparent 100%); pointer-events: none; }
.racer-portrait { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.racer-card:hover .racer-portrait, .racer-card:focus .racer-portrait { transform: scale(1.07) translateY(-4px); }
.racer-giraffe { --card: linear-gradient(150deg, #ffb01b, #ff641f); }
.racer-zebra { --card: linear-gradient(150deg, #ffd91f, #ff9d13); }
.racer-gorilla { --card: linear-gradient(150deg, #ff699f, #f52f7b); }
.racer-lion { --card: linear-gradient(150deg, #ff78ac, #ef367c); }
.racer-hippo { --card: linear-gradient(150deg, #88e548, #26ad59); }
.racer-crocodile { --card: linear-gradient(150deg, #ad6cff, #6530c8); }
.racer-giraffe .racer-portrait { object-position: 48% center; }
.racer-zebra .racer-portrait { object-position: 50% center; }
.racer-gorilla .racer-portrait { object-position: 54% center; }
.racer-lion .racer-portrait, .racer-hippo .racer-portrait, .racer-crocodile .racer-portrait { object-position: 50% center; }
.racer-number { position: absolute; z-index: 2; top: 18px; left: 20px; color: rgba(255,255,255,.9); font-size: .75rem; font-weight: 950; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.racer-details { position: absolute; z-index: 2; right: 20px; bottom: 22px; left: 20px; color: #fff; }
.racer-details > span { font-size: .67rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.racer-details h3 { margin-top: 5px; }
.racer-details h3 strong { display: block; color: var(--yellow); font-size: 2.85rem; line-height: .9; text-shadow: 0 3px 0 rgba(130,61,0,.32), 0 8px 18px rgba(0,0,0,.25); }
.racer-details h3 small { display: block; margin-top: 7px; color: #fff; font-size: 1.05rem; font-weight: 900; letter-spacing: -.01em; line-height: 1; }
.racer-details p { min-height: 40px; margin: 8px 0 14px; color: rgba(255,255,255,.83); font-size: .85rem; line-height: 1.45; }
.racer-details b { display: inline-block; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.18); font-size: .67rem; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(8px); }

.gameplay { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); align-items: center; gap: clamp(42px, 7vw, 90px); }
.video-shell { position: relative; overflow: hidden; aspect-ratio: 16/10; border: 10px solid #fff; border-radius: 34px; background: #052a70; box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.video-shell::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); border-radius: 23px; }
.video-shell video { width: 100%; height: 100%; object-fit: cover; }
.video-hud { position: absolute; right: 17px; bottom: 15px; left: 17px; display: flex; align-items: center; justify-content: space-between; color: #fff; font-size: .63rem; font-weight: 900; letter-spacing: .1em; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.video-hud span { display: flex; align-items: center; gap: 7px; }
.video-hud i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b55; box-shadow: 0 0 0 4px rgba(255,59,85,.25); animation: blink 1.2s infinite; }
.gameplay-copy h2 { font-size: clamp(2.7rem, 4.6vw, 4.8rem); }
.gameplay-copy > p:not(.eyebrow) { margin: 22px 0 30px; color: #506588; line-height: 1.65; }
.gameplay-copy ul { margin: 0; padding: 0; list-style: none; }
.gameplay-copy li { display: flex; gap: 14px; align-items: center; padding: 15px 0; border-top: 1px solid #dce7f4; }
.gameplay-copy li > span { display: grid; width: 35px; height: 35px; flex: 0 0 35px; place-items: center; border-radius: 10px; background: #dff3ff; color: var(--blue); font-size: .68rem; font-weight: 950; }
.gameplay-copy li strong, .gameplay-copy li small { display: block; }
.gameplay-copy li strong { font-size: .88rem; }
.gameplay-copy li small { margin-top: 2px; color: #6a7c9b; }

.cta { padding-top: 30px; }
.cta-card { position: relative; display: flex; min-height: 500px; overflow: hidden; align-items: flex-start; justify-content: center; flex-direction: column; gap: 28px; padding: clamp(38px, 7vw, 78px); border-radius: 38px; background: linear-gradient(90deg, rgba(3,39,110,.96) 0%, rgba(3,61,142,.84) 42%, rgba(3,61,142,.12) 72%), url('/assets/cta-giraffe-hq.webp') center / cover no-repeat; box-shadow: var(--shadow); color: #fff; isolation: isolate; }
.cta-card::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 40%); }
.cta-copy { max-width: 52%; }
.steam-availability { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--yellow); font-size: .76rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.cta-card h2 { font-size: clamp(2.8rem, 5vw, 5.2rem); }
.cta-card p:not(.eyebrow) { margin: 18px 0 0; color: rgba(255,255,255,.83); }
.button-large { min-width: 190px; min-height: 60px; flex: 0 0 auto; font-size: 1.02rem; }
.track-lines { display: none; }

footer { display: flex; width: min(1180px, calc(100% - 48px)); align-items: center; gap: 26px; margin: 0 auto; padding: 32px 0 44px; border-top: 1px solid #dce7f4; }
.footer-logo img { display: block; width: 126px; height: 82px; object-fit: contain; filter: drop-shadow(0 4px 7px rgba(0, 35, 100, .18)); }
footer p { margin: 0; color: #536786; font-weight: 750; }
footer small { margin-left: auto; color: #8a99b0; }

.play-dialog { max-width: 470px; padding: 44px; border: 0; border-radius: 28px; background: #fff; color: var(--ink); box-shadow: 0 35px 100px rgba(0, 20, 70, .4); text-align: center; }
.play-dialog::backdrop { background: rgba(3, 23, 67, .72); backdrop-filter: blur(8px); }
.play-dialog[open] { animation: dialogIn .3s cubic-bezier(.2,.8,.2,1); }
.dialog-close { position: absolute; top: 12px; right: 15px; width: 37px; height: 37px; border: 0; border-radius: 50%; background: #edf4fb; color: var(--ink); cursor: pointer; font-size: 1.4rem; }
.finish-flag { margin-bottom: 8px; font-size: 3.5rem; }
.play-dialog h2 { font-size: 2.7rem; }
.play-dialog > p:not(.eyebrow) { margin: 18px 0 28px; color: #5c708f; line-height: 1.6; }
.dialog-done { margin-bottom: 7px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

@keyframes heroIn { from { opacity: .4; transform: scale(1.08); } to { opacity: 1; transform: scale(1.015); } }
@keyframes scroll { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(8px); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(22px) scale(.96); } }

@media (max-width: 900px) {
  .hero-shade { background: linear-gradient(90deg, rgba(4,35,102,.72), rgba(4,35,102,.12)), linear-gradient(0deg, rgba(2,28,74,.68), transparent 55%); }
  .racer-grid { grid-template-columns: repeat(2, 1fr); }
  .racer-card { min-height: 470px; }
  .gameplay { grid-template-columns: 1fr; }
  .gameplay-copy { max-width: 650px; }
  .cta-copy { max-width: 58%; }
  footer { flex-wrap: wrap; }
  footer small { width: 100%; margin: 0; }
}

@media (max-width: 620px) {
  .site-header { top: 10px; width: calc(100% - 20px); padding-left: 14px; }
  nav { gap: 8px; }
  nav > a:not(.nav-cta) { display: none; }
  .brand-logo { width: 102px; height: 58px; }
  .hero { min-height: 680px; }
  .hero-art { object-position: 66% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(3,27,79,.88) 0%, rgba(3,27,79,.54) 60%, rgba(3,27,79,.08) 100%); }
  .hero-content { width: calc(100% - 32px); justify-content: flex-end; padding: 0 0 105px; }
  h1 { font-size: clamp(3.25rem, 15vw, 5rem); }
  .hero-copy { margin: 18px 0 12px; font-size: .95rem; }
  .hero-price { margin-bottom: 20px; }
  .hero-actions { width: 100%; }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-actions > .hero-steam, .hero-actions > .button-glass { flex: 0 0 220px; width: 220px; height: 66px; margin-inline: auto; }
  .scroll-cue { display: none; }
  .section { width: calc(100% - 30px); padding: 85px 0; }
  .racer-grid { grid-template-columns: 1fr; }
  .racer-card { min-height: 460px; }
  .video-shell { border-width: 6px; border-radius: 24px; transform: none; }
  .gameplay { gap: 48px; }
  .cta { padding-top: 10px; }
  .cta-card { min-height: 610px; justify-content: flex-end; padding: 36px 25px; border-radius: 28px; background: linear-gradient(0deg, rgba(3,35,101,.97) 0%, rgba(3,52,130,.78) 56%, rgba(3,52,130,.05) 88%), url('/assets/cta-giraffe-hq.webp') 68% center / cover no-repeat; }
  .cta-copy { max-width: 100%; }
  .button-large { width: 100%; }
  footer { width: calc(100% - 30px); }
  .play-dialog { width: calc(100% - 28px); padding: 38px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* Test-data-only signup; no real mailing list or promotional promise. */
.signup-card { display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; background: #fff5d6; border-radius: 28px; color: #142c44; }
.signup-lion { display: block; width: 100%; height: 100%; min-height: 580px; object-fit: cover; object-position: 50% 45%; }
.signup-content { padding: clamp(28px, 4vw, 58px); min-width: 0; align-self: center; }
.signup-copy h2 { margin: 12px 0 20px; font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.08; }
.signup-copy h2 em { color: #a91764; }
.signup-copy > p { max-width: 520px; }
.signup-form { display: flex; flex-direction: column; gap: 12px; justify-content: center; min-width: 0; margin-top: 30px; }
.signup-form label { font-weight: 800; }
.signup-form input { width: 100%; min-width: 0; padding: 16px; border: 2px solid #c2d4df; border-radius: 12px; font: inherit; color: #244056; background: #fff; box-sizing: border-box; }
.signup-form small { line-height: 1.5; color: #485366; }
.signup-form button { margin-top: 8px; }
.signup-form button:disabled { opacity: .65; cursor: default; }
#signup-status { font-size: .9rem; line-height: 1.5; min-height: 3em; margin: 0; }
@media (max-width: 760px) { .signup-card { grid-template-columns: 1fr; } .signup-lion { min-height: 0; height: 300px; object-position: 50% 38%; } }
