/* Step Trip site — same visual language as the game: cream paper, ink outlines, chunky buttons, paving. */
@font-face { font-family: Fredoka; font-weight: 600; font-display: swap; src: url('/media/fonts/Fredoka_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: Fredoka; font-weight: 700; font-display: swap; src: url('/media/fonts/Fredoka_700Bold.ttf') format('truetype'); }

:root {
  --ink: #2B2340; --ink-soft: #5B5272; --cream: #FFF6E9; --cream2: #FFEBD2; --paper: #FFFDF8;
  --red: #E05A47; --red-dark: #B8402F; --yellow: #FFC93C; --yellow-dark: #E0A21C; --mint: #3DD6A0; --mint-dark: #23A97B;
  --sky: #4AA8FF; --sky-dark: #2B7FD1; --lilac: #9B7BFF; --lilac-dark: #6E52D6; --pink: #FF7AB6;
  --radius: 24px; --shadow: 0 8px 0 rgba(43, 35, 64, 0.18);
  --max: 1160px; --gutter: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: Fredoka, ui-rounded, 'Segoe UI', system-ui, sans-serif; font-weight: 600; color: var(--ink);
  background: var(--cream); line-height: 1.45; overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--sky-dark); }
h1, h2, h3 { font-weight: 700; line-height: 1.1; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* outlined display text, like the in-game captions */
.ink-text { color: #fff; -webkit-text-stroke: 0.14em var(--ink); paint-order: stroke fill; text-shadow: 0 0.09em 0 rgba(43, 35, 64, 0.3); letter-spacing: 0.01em; }

/* chunky buttons (same as the game's Chunky) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 22px;
  font: inherit; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; cursor: pointer;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 #E8D9C2;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #E8D9C2; }
.btn.mint { background: var(--mint); box-shadow: 0 6px 0 var(--mint-dark); }
.btn.mint:active { box-shadow: 0 2px 0 var(--mint-dark); }
.btn.yellow { background: var(--yellow); box-shadow: 0 6px 0 var(--yellow-dark); }
.btn.yellow:active { box-shadow: 0 2px 0 var(--yellow-dark); }
.btn.ink { background: #3B3156; color: #fff; box-shadow: 0 6px 0 #1E1830; }
.btn[aria-disabled='true'] { opacity: 0.65; cursor: default; }
.btn .sub { display: block; font-size: 12px; font-weight: 600; opacity: 0.8; line-height: 1; }
.btn .big { display: block; font-size: 19px; line-height: 1.1; }
.btn svg { width: 26px; height: 26px; flex: none; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 246, 233, 0.92); backdrop-filter: blur(10px); border-bottom: 3px solid var(--ink); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 84px; }
.top .logo img { height: 60px; width: auto; filter: drop-shadow(0 3px 0 rgba(43, 35, 64, 0.15)); }
@media (max-width: 820px) { .top .wrap { height: 72px; } .top .logo img { height: 48px; } }
.top nav { display: flex; gap: 6px; margin-left: auto; }
.top nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 12px; font-size: 16px; }
.top nav a:hover { background: var(--cream2); }
.top .btn { min-height: 44px; font-size: 16px; padding: 6px 16px; }
@media (max-width: 820px) { .top nav { display: none; } .top .btn { margin-left: auto; } }

/* hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(165deg, #FFE3A3 0%, #FFB79A 42%, #FF8FB4 72%, #A98BFF 100%); border-bottom: 3px solid var(--ink); }
.hero::before { content: ''; position: absolute; inset: 0; background: url('/media/paving.webp') repeat; background-size: 430px auto; opacity: 0.13; mix-blend-mode: multiply; animation: walk 30s linear infinite; }
@keyframes walk { to { background-position: 0 -930px; } }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 32px; padding-top: 56px; padding-bottom: 64px; }
.hero .title-logo { width: min(560px, 100%); height: auto; margin: 0 0 8px -10px; filter: drop-shadow(0 10px 0 rgba(43, 35, 64, 0.15)); }
.hero h1 { font-size: clamp(36px, 6vw, 64px); }
.hero .lead { font-size: clamp(18px, 2.2vw, 22px); max-width: 34ch; color: var(--ink); }
.hero .pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.pill { background: var(--paper); border: 3px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-size: 15px; box-shadow: 0 4px 0 rgba(43, 35, 64, 0.2); }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 36px; } .hero .lead { margin: 0 auto 1em; } .hero .pills, .hero .stores { justify-content: center; } .hero .title-logo { margin: 0 auto 8px; } }

/* phone frame */
.phone { position: relative; width: min(330px, 78vw); aspect-ratio: 9 / 18.6; margin: 0 auto; background: var(--ink); border-radius: 46px; padding: 12px; box-shadow: 0 30px 60px rgba(20, 14, 40, 0.35), 0 0 0 5px rgba(255, 255, 255, 0.35); transform: rotate(2deg); }
.phone > * { width: 100%; height: 100%; border-radius: 34px; object-fit: cover; background: #3d4149; border: 0; }
.phone.flat { transform: none; }

/* sections */
section { padding: 72px 0; }
section.alt { background: var(--cream2); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.sec-head { text-align: center; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(30px, 4.6vw, 48px); }
.sec-head p { font-size: 19px; color: var(--ink-soft); max-width: 46ch; margin: 0 auto; }

/* demo */
.demo { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.demo .phone { transform: rotate(-2deg); }
.demo .overlay { position: absolute; inset: 12px; border-radius: 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(43, 35, 64, 0.55); cursor: pointer; border: 0; width: auto; height: auto; color: #fff; font: inherit; }
.demo .overlay .play { width: 96px; height: 96px; border-radius: 50%; background: var(--mint); border: 4px solid var(--ink); display: grid; place-items: center; box-shadow: 0 6px 0 var(--mint-dark); }
.demo .overlay .play svg { width: 44px; height: 44px; margin-left: 6px; }
.demo .overlay span { font-size: 22px; font-weight: 700; }
.how { display: grid; gap: 14px; margin: 0 0 22px; padding: 0; list-style: none; }
.how li { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); font-size: 17px; }
.how b { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); border: 3px solid var(--ink); }
@media (max-width: 820px) { .demo { grid-template-columns: 1fr; } }

/* cities */
.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
@media (max-width: 520px) { .cities { grid-template-columns: 1fr 1fr; gap: 12px; } .city h3 { font-size: 17px; } .city p { font-size: 13px; } .city .body { padding: 10px; } }
.city { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.15s ease; }
.city:hover { transform: translateY(-4px) rotate(-0.6deg); }
.city img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-bottom: 3px solid var(--ink); }
.city .body { padding: 12px 14px 14px; }
.city h3 { font-size: 21px; margin-bottom: 4px; }
.city p { font-size: 14px; color: var(--ink-soft); margin: 0 0 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; padding: 3px 9px 3px 4px; border-radius: 999px; background: var(--cream2); border: 2px solid var(--ink); }
.tag img { width: 22px; height: 22px; border: 0; aspect-ratio: auto; }
.tag.noicon { padding-left: 9px; }

/* nuisance strip */
.strip { display: flex; gap: 14px; overflow-x: auto; padding: 6px 4px 18px; scroll-snap-type: x mandatory; }
.critter { flex: none; width: 128px; text-align: center; scroll-snap-align: start; }
.critter img { width: 96px; height: 96px; margin: 0 auto 6px; background: var(--paper); border: 3px solid var(--ink); border-radius: 26px; padding: 8px; box-shadow: var(--shadow); }
.critter span { font-size: 15px; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature .ic { width: 54px; height: 54px; border-radius: 16px; border: 3px solid var(--ink); display: grid; place-items: center; font-size: 28px; margin-bottom: 12px; }
.feature h3 { font-size: 22px; }
.feature p { margin: 0; color: var(--ink-soft); }

/* trailer + screenshots */
.trailer { max-width: 960px; margin: 0 auto; border: 4px solid var(--ink); border-radius: 28px; overflow: hidden; box-shadow: 0 14px 0 rgba(43, 35, 64, 0.2); background: #000; }
.trailer video { width: 100%; aspect-ratio: 16 / 9; }
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; }
.shots img { flex: none; width: 220px; border-radius: 22px; border: 3px solid var(--ink); box-shadow: var(--shadow); scroll-snap-align: start; }

/* postcards */
.cards-fan { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.cards-fan img { width: min(300px, 44vw); border-radius: 12px; box-shadow: 0 16px 30px rgba(20, 14, 40, 0.25); }
.cards-fan img:nth-child(odd) { transform: rotate(-3deg); }
.cards-fan img:nth-child(even) { transform: rotate(3deg); }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }

/* final cta */
.cta { text-align: center; background: linear-gradient(165deg, #FFE3A3 0%, #FF8FB4 70%, #A98BFF 100%); border-top: 3px solid var(--ink); }
.cta h2 { font-size: clamp(32px, 5vw, 54px); }
.cta .stores { justify-content: center; margin-top: 20px; }

/* footer */
footer { background: var(--ink); color: #E9E3FF; padding: 40px 0 28px; font-size: 15px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer h4 { margin: 0 0 10px; font-size: 16px; color: var(--yellow); }
footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 18px; color: #B9B1D6; font-size: 13px; }
@media (max-width: 720px) { footer .wrap { grid-template-columns: 1fr; } }

/* consent banner (only when an optional third-party analytics id is configured) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 620px; margin: 0 auto; background: var(--paper); border: 3px solid var(--ink); border-radius: 20px; padding: 16px 18px; box-shadow: 0 10px 0 rgba(43, 35, 64, 0.25); display: none; }
.consent.show { display: block; }
.consent p { margin: 0 0 12px; font-size: 15px; }
.consent .row { display: flex; gap: 10px; flex-wrap: wrap; }
.consent .btn { min-height: 44px; font-size: 16px; }

/* legal / doc pages */
.doc { max-width: 820px; margin: 0 auto; padding: 48px var(--gutter) 72px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); }
.doc h2 { font-size: 24px; margin-top: 1.6em; }
.doc li { margin-bottom: 6px; }
.doc .card { background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); margin: 18px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; border-bottom: 2px solid var(--cream2); padding: 8px 6px; vertical-align: top; }

@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } * { transition: none !important; } html { scroll-behavior: auto; } }
