/* Skippy Bros website. One stylesheet for every page. The look follows the
   game: Fredoka, the loading screen's navy, the gold title logo, glossy
   rounded panels, and gold pill buttons. */
@font-face {
  font-family: 'Fredoka';
  src: url('fonts/fredoka-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --navy: #0b1026;
  --navy-2: #111943;
  --navy-3: #1a2462;
  --panel: rgba(22, 28, 60, 0.78);
  --panel-2: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.16);
  --text: #f1f3ff;
  --muted: #b3bbe4;
  --gold: #ffd23f;
  --gold-dark: #e09a12;
  --sky: #8fe3ff;
  --font: 'Fredoka', ui-rounded, 'SF Pro Rounded', 'Nunito', 'Varela Round', system-ui, sans-serif;
  --wrap: 1160px;
  --radius: 26px;
  --head-h: 64px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-weight: 500; font-size: 18px; line-height: 1.55; color: var(--text);
  background: var(--navy) radial-gradient(1200px 700px at 50% -10%, #1c2a78 0%, rgba(11,16,38,0) 70%) no-repeat;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.1; margin: 0; font-weight: 700; text-wrap: balance; }
.tagline, .pitch, .section-head p, .cta p { text-wrap: balance; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--gold); color: #3a1c00; padding: 8px 14px; border-radius: 999px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* ---------- The gold logo (the game's title text) ---------- */
.logo { font-weight: 700; letter-spacing: 1px; line-height: .95; white-space: nowrap; filter: drop-shadow(0 4px 0 #7a2a00) drop-shadow(0 10px 14px rgba(0,0,0,.35)); }
.logo span { display: inline-block; background: linear-gradient(#fff7b0 10%, #ffd23f 45%, #ff9a1f 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 2px #7a2a00; }
.gold { background: linear-gradient(#fff7b0 10%, #ffd23f 45%, #ff9a1f 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1.5px #7a2a00; filter: drop-shadow(0 3px 0 #7a2a00); }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(11, 16, 38, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke); padding-top: env(safe-area-inset-top, 0px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,.35); }
.brand .logo { font-size: 22px; filter: drop-shadow(0 2px 0 #7a2a00); }
.brand .logo span { -webkit-text-stroke: 1px #7a2a00; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 16px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--stroke); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: rgba(255,255,255,.1); }
.menu .nav { position: absolute; right: 0; top: calc(100% + 10px); flex-direction: column; align-items: stretch; min-width: 190px; padding: 8px;
  background: var(--navy-2); border: 1px solid var(--stroke); border-radius: 18px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
@media (max-width: 760px) {
  .site-head .nav.inline { display: none; }
  .menu { display: block; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-weight: 700; font-size: 18px; color: #3a1c00;
  text-decoration: none; border: 0; border-radius: 999px; padding: .65em 1.5em; background: linear-gradient(#ffe46a, #ffb52a);
  box-shadow: 0 5px 0 #c26a0c, 0 8px 18px rgba(0,0,0,.25); transition: transform .08s, box-shadow .08s; }
.btn:hover { color: #3a1c00; transform: translateY(-2px); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #c26a0c, 0 2px 6px rgba(0,0,0,.25); }
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 200px; padding: 10px 24px 11px; border-radius: 16px;
  background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.4); color: #fff; text-decoration: none; line-height: 1.15; }
.store small { font-size: 13px; font-weight: 500; color: var(--muted); }
.store b { font-size: 22px; font-weight: 700; }
.store[aria-disabled="true"] { cursor: default; }

/* ---------- Hero ----------
   Desktop: the shot fills the band and the text sits on the right, clear of
   the hero, who flies on the left of every shot. Phones: the shot on top,
   the text below it. */
.hero { position: relative; padding-block: 0; min-height: min(88vh, 860px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 40%; }
.hero-bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,16,38,0) 34%, rgba(11,16,38,.62) 56%, rgba(11,16,38,.9) 80%),
              linear-gradient(180deg, rgba(11,16,38,0) 78%, var(--navy) 100%); }
.hero-inner { width: 100%; padding-block: 70px; display: flex; }
.hero-copy { margin-left: auto; width: min(560px, 50%); text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero .app-icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 12px 30px rgba(0,0,0,.45); margin-bottom: 16px; }
.hero h1 { font-size: clamp(64px, 8.4vw, 118px); margin-bottom: 16px; line-height: .92; }
.hero h1 span { display: block; -webkit-text-stroke: 3px #7a2a00; animation: bob 2.6s ease-in-out infinite; }
.hero h1 span:nth-child(2) { animation-delay: -.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.tagline { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); margin-bottom: 8px; line-height: 1.25; }
.pitch { font-size: clamp(17px, 1.7vw, 19px); color: #d3d9f7; margin-bottom: 26px; }
.hero .stores { justify-content: center; }
@media (max-width: 900px) {
  .hero { display: block; min-height: 0; }
  .hero-bg { position: relative; inset: auto; z-index: 0; }
  .hero-bg img { height: auto; aspect-ratio: 16 / 10; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(11,16,38,0) 55%, var(--navy) 100%); }
  .hero-inner { position: relative; padding-block: 0 44px; margin-top: -64px; }
  .hero-copy { margin: 0 auto; width: 100%; max-width: 560px; }
  .hero h1 span { display: inline-block; }
  .hero h1 { font-size: clamp(44px, 12.5vw, 96px); }
}

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 8px; }
.stat { text-align: center; padding: 18px 10px; border-radius: 20px; background: var(--panel-2); border: 1px solid var(--stroke); }
.stat b { display: block; font-size: clamp(30px, 4vw, 42px); }
.stat span { color: var(--muted); font-weight: 600; font-size: 16px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } .stat:nth-child(n+4) { grid-column: span 1; } }
@media (max-width: 420px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:last-child { grid-column: span 2; } }

/* ---------- Sections ---------- */
section { padding-block: 72px; }
.kicker { display: inline-block; font-weight: 700; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--sky); margin-bottom: 10px; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }
.panel { background: var(--panel); border: 2px solid var(--stroke); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12); }
.shot { margin: 0; border-radius: 22px; overflow: hidden; border: 2px solid var(--stroke); box-shadow: 0 18px 40px rgba(0,0,0,.4); background: var(--navy-2); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* How to play: one line, no picture */
.one-tap { padding-block: 64px 8px; }
.one-tap .section-head { margin-bottom: 0; }

/* Worlds slideshow: a full-width strip of slides that snaps to the middle,
   the neighbors peeking in at the sides. Without JS it is a plain strip
   you swipe or scroll; the script adds arrows, dots, and autoplay. */
.slides { --slide: min(1000px, 78vw); }
.track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-inline: calc((100% - var(--slide)) / 2); padding-block: 6px 24px; }
.js .track { scrollbar-width: none; }
.js .track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline-offset: -3px; }
.slide { flex: 0 0 var(--slide); margin: 0; scroll-snap-align: center; border-radius: 24px; overflow: hidden; border: 2px solid var(--stroke);
  box-shadow: 0 18px 44px rgba(0,0,0,.45); background: var(--navy-2); transition: opacity .4s, transform .4s; }
.slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.js .slide:not(.on) { opacity: .45; transform: scale(.94); }
.slide-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 4px; }
.arrow { width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; font: 700 30px/1 var(--font); color: #3a1c00; padding-bottom: 4px;
  background: linear-gradient(#ffe46a, #ffb52a); box-shadow: 0 4px 0 #c26a0c, 0 6px 14px rgba(0,0,0,.3); }
.arrow:active { transform: translateY(3px); box-shadow: 0 1px 0 #c26a0c; }
.dots { display: flex; gap: 6px; }
.dot { width: 28px; height: 28px; border: 0; padding: 0; cursor: pointer; background: none; display: grid; place-items: center; }
.dot::before { content: ''; width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.3); transition: background .2s, transform .2s; }
.dot[aria-current="true"]::before { background: var(--gold); transform: scale(1.25); }
@media (max-width: 700px) { .slides { --slide: 84vw; } .track { gap: 12px; } }

/* Story */
.story { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center; }
.story .text h2 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 16px; }
.story .text p { color: var(--muted); font-size: 19px; }
.story .text p:last-child { margin-bottom: 0; }
.cap { font-size: 15px; color: var(--muted); padding: 10px 16px 12px; margin: 0; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; gap: 26px; text-align: center; } }

/* Heroes */
.heroes { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 860px; margin: 0 auto; }
.hero-card { display: grid; grid-template-columns: 46% 1fr; overflow: hidden; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.hero-card .body { padding: 24px 22px; align-self: center; }
.hero-card h3 { font-size: 34px; margin-bottom: 8px; }
.hero-card p { color: var(--muted); margin: 0; }
.hero-card .tag { display: inline-block; margin-bottom: 10px; font-size: 14px; font-weight: 700; padding: 4px 12px; border-radius: 999px; color: #fff; }
.tag.red { background: #e8473b; }
.tag.navy { background: #2f4c99; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
@media (max-width: 760px) { .heroes { grid-template-columns: 1fr; max-width: 520px; } }
@media (max-width: 420px) { .hero-card { grid-template-columns: 1fr; } .hero-card img { aspect-ratio: 16 / 11; object-position: 50% 30%; } }

/* Modes */
#modes .section-head { margin-bottom: 30px; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 860px; margin: 0 auto; }
.mode { padding: 22px 20px; text-align: center; }
.mode h3 { font-size: 30px; margin-bottom: 4px; }
.mode p { margin: 0; color: var(--muted); }
.mode.easy h3 { color: #7ee88e; }
.mode.normal h3 { color: var(--gold); }
.mode.hard h3 { color: #ff7a6a; }
@media (max-width: 640px) { .modes { grid-template-columns: 1fr; max-width: 360px; } }

/* Secrets teaser */
.secret { text-align: center; padding-block: 36px; }
.secret p { font-size: clamp(26px, 4vw, 40px); font-weight: 700; margin: 0; color: #e8ecff; position: relative; display: inline-block; }
.secret p::before, .secret p::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.secret p::before { color: #3af0d8; animation: glitch-a 5.3s steps(1) infinite; }
.secret p::after { color: #ff4ad8; animation: glitch-b 5.3s steps(1) infinite; }
@keyframes glitch-a { 0%, 93%, 100% { opacity: 0; transform: none; } 94% { opacity: .8; transform: translate(-3px, 1px); } 96% { opacity: .6; transform: translate(2px, -1px); } }
@keyframes glitch-b { 0%, 93%, 100% { opacity: 0; transform: none; } 94% { opacity: .7; transform: translate(3px, -1px); } 97% { opacity: .5; transform: translate(-2px, 1px); } }
.secret small { display: block; margin-top: 10px; color: var(--muted); font-size: 17px; }

/* Call to action */
.cta { text-align: center; }
.cta .panel { padding: 52px 24px; background: linear-gradient(160deg, rgba(58,168,240,.25), rgba(22,28,60,.85) 60%); }
.cta h2 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 12px; }
.cta p { color: var(--muted); font-size: 19px; }
.cta .stores { justify-content: center; margin-top: 24px; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--stroke); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 16px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-foot nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.site-foot nav a:hover { color: var(--gold); }
.site-foot .copy { width: 100%; font-size: 15px; margin: 0; }

/* ---------- Document pages (privacy, terms, support) ---------- */
.doc { max-width: 820px; margin: 0 auto; padding: 48px 20px 80px; }
.doc .page-title { font-size: clamp(38px, 6vw, 58px); margin-bottom: 8px; }
.doc .date { color: var(--muted); margin-bottom: 28px; }
.doc .panel { padding: clamp(22px, 4vw, 44px); }
.doc h2 { font-size: 26px; margin: 34px 0 12px; color: var(--gold); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 20px; margin: 22px 0 8px; }
.doc p, .doc li { color: #dfe3fa; }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }
.doc .summary { background: rgba(58,168,240,.12); border: 1px solid rgba(143,227,255,.35); border-radius: 18px; padding: 18px 22px; margin-bottom: 28px; }
.doc .summary h2 { margin-top: 0; color: var(--sky); font-size: 22px; }
.doc .summary ul { margin: 0; }
.doc .caps { font-size: 16px; }
.doc .contact-box { text-align: center; padding: 26px; margin-bottom: 28px; }
.doc .contact-box p { margin: 0 0 6px; }
.doc .contact-box .mail { font-size: clamp(20px, 3.4vw, 26px); font-weight: 700; word-break: break-word; }
.faq details { border-top: 1px solid var(--stroke); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--stroke); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.lost h1 { font-size: clamp(64px, 14vw, 140px); }
.lost p { color: var(--muted); font-size: 20px; margin: 10px 0 26px; }

/* ---------- Scroll reveal (only when JS runs: html.js) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 span, .secret p::before, .secret p::after { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn:hover { transition: none; transform: none; }
  .slide { transition: none; }
}
