@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: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url(/fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url(/fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); }

:root {
  --sun: #FFC93C; --ink: #1F2A44; --leaf: #2ED47A; --leaf-dark: #15A65B; --sky: #38BDF8; --coral: #FF6B6B; --grape: #1B5E4B; --grape-lite: #2E9B5F;
  --bg: #FFF8EC; --text: #1F2A44; --soft: #4A5570; --card: #fff; --line: #1F2A44; --link: #1F7A47;
  --display: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rail: 52px;
}
@media (prefers-color-scheme: dark) { :root { --bg: #151A2B; --text: #F4F1EA; --soft: #C3C7D4; --card: #1F2640; --line: #3A4466; --link: #5CD08A; } }
@media (min-width: 860px) { :root { --rail: 120px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.6 var(--body); }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--grape-lite); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---- hero: the app icon's sun-yellow, ink on top, a green hill underneath ---- */
.hero { background: var(--sun); color: var(--ink); position: relative; padding-bottom: 96px; overflow: hidden; }
.hero a { color: var(--ink); }
.bar { display: flex; align-items: center; gap: 12px; padding: 24px 0 0; }
.bar img { width: 44px; height: 44px; border-radius: 10px; border: 2.5px solid var(--ink); }
.bar .name { font: 700 22px/1 var(--display); text-decoration: none; }
.bar nav { margin-left: auto; display: flex; gap: 20px; font-size: 16px; }
.bar nav a { text-decoration: none; font-weight: 700; }
.bar nav a:hover { text-decoration: underline; }
.hero-grid { display: grid; gap: 40px; padding-top: 40px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); padding-top: 56px; } }
h1 { font-size: clamp(3rem, 12.5vw, 5.9rem); line-height: 0.92; letter-spacing: -0.03em; }
h1 span { display: block; }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.35rem); max-width: 30em; margin: 28px 0 24px; }
.status { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #FFF8EC; font-weight: 700; padding: 10px 18px 10px 14px; border-radius: 22px; font-size: 16px; }
.status i { width: 12px; height: 12px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px rgba(46, 212, 122, 0.3); }
.hero-art { position: relative; justify-self: center; padding: 8px 0 40px 0; }
.hero-art .phone { transform: rotate(3deg); }
.hero-art .walker { position: absolute; left: -10px; bottom: 0; width: 104px; z-index: 2; filter: drop-shadow(0 6px 0 rgba(31, 42, 68, 0.18)); }
@media (min-width: 860px) { .hero-art .walker { left: -186px; bottom: -34px; width: 176px; } }
.hill { position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; width: 100%; display: block; }
.hill path { fill: var(--bg); }
.hill .grass { fill: var(--leaf); }

/* ---- phone mock-ups: the screens are drawn in HTML, in the app's own light theme ---- */
.phone { width: 250px; aspect-ratio: 250 / 500; background: var(--ink); border-radius: 40px; padding: 9px; box-shadow: 0 0 0 2px var(--line), 10px 12px 0 rgba(31, 42, 68, 0.2); flex: none; }
.screen { height: 100%; border-radius: 31px; overflow: hidden; background: #FFF8EC; color: #1F2A44; position: relative; font: 13px/1.35 var(--body); }
.screen::before { content: ""; position: absolute; z-index: 5; top: 9px; left: 50%; width: 64px; height: 18px; margin-left: -32px; border-radius: 99px; background: #1F2A44; }
.screen h3 { font-size: 22px; line-height: 1.1; }
.chip { display: inline-block; font-weight: 700; font-size: 11px; padding: 3px 9px; border-radius: 99px; border: 2px solid #1F2A44; background: #FFC93C; color: #1F2A44; white-space: nowrap; }
.chip.leaf { background: #2ED47A; } .chip.sky { background: #38BDF8; } .chip.white { background: #fff; }

.s-result .photo { height: 54%; position: relative; background: linear-gradient(#9fdcff 0 62%, #8fd9a8 62%); border-bottom: 3px solid #1F2A44; }
.s-result .photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.s-result .photo .chip { position: absolute; left: 12px; bottom: 12px; }
.s-result .info { padding: 14px 16px; }
.s-result .rarity { margin: 0 0 2px; color: #4A5570; font-size: 12px; font-weight: 700; }
.stars { font-size: 26px; letter-spacing: 3px; color: #FFC93C; -webkit-text-stroke: 1.5px #1F2A44; margin: 6px 0 8px; line-height: 1; }
.xp { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 2.5px solid #1F2A44; border-radius: 14px; padding: 8px 12px; font-weight: 700; margin-bottom: 8px; }
.xp b { font: 700 18px/1 var(--display); color: #1B5E4B; }
.s-result .note { font-size: 12px; color: #4A5570; margin: 0; }

.s-cam { background: #10131f; color: #fff; }
.s-cam .scene { position: absolute; inset: 0; background: linear-gradient(#3b5b7a 0 55%, #2c4a3a 55%); }
.s-cam .scene svg { position: absolute; left: 12%; top: 28%; width: 76%; }
.s-cam .focus { position: absolute; left: 31%; top: 33%; width: 38%; height: 20%; border: 2.5px solid #FFC93C; border-radius: 10px; }
.s-cam .top { position: absolute; z-index: 3; top: 40px; left: 0; right: 0; display: flex; justify-content: center; }
.seg { display: flex; background: rgba(16, 19, 31, 0.7); border-radius: 99px; padding: 3px; font-weight: 700; font-size: 12px; }
.seg span { padding: 4px 14px; border-radius: 99px; }
.seg .on { background: #FFC93C; color: #1F2A44; }
.zoom { position: absolute; z-index: 3; left: 0; right: 0; bottom: 118px; display: flex; justify-content: center; gap: 6px; }
.zoom span { min-width: 36px; text-align: center; padding: 4px 8px; border-radius: 99px; background: rgba(16, 19, 31, 0.7); font-weight: 700; font-size: 12px; }
.zoom .on { background: #FFC93C; color: #1F2A44; }
.s-cam .shutter { position: absolute; z-index: 3; left: 0; right: 0; bottom: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; }
.s-cam .lib { width: 40px; height: 40px; border-radius: 12px; border: 2px solid #fff; background: linear-gradient(135deg, #5c8a6a, #1B5E4B); }
.s-cam .btn { width: 68px; height: 68px; border-radius: 50%; border: 5px solid #fff; display: grid; place-items: center; }
.s-cam .btn i { width: 48px; height: 48px; border-radius: 50%; background: #fff; }
.s-cam .pc { width: 52px; text-align: center; font-size: 10px; font-weight: 700; line-height: 1.1; }
.s-cam .pc b { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 2px; border-radius: 12px; background: #38BDF8; color: #1F2A44; font-size: 20px; border: 2px solid #1F2A44; }

.s-radar { padding: 44px 14px 14px; background: linear-gradient(#FFF8EC, #dff5e8); }
.s-radar h3 { font-size: 20px; }
.s-radar .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-bottom: 4px; }
.s-radar .sub { font-size: 12px; color: #4A5570; margin: 0 0 10px; }
.meter { height: 7px; border-radius: 9px; background: #e6dfd0; overflow: hidden; margin-top: 5px; }
.meter i { display: block; height: 100%; border-radius: 9px; background: #2ED47A; }
.rrow { display: flex; gap: 8px; align-items: center; background: #fff; border: 2.5px solid #1F2A44; border-radius: 16px; padding: 9px 10px; margin-bottom: 9px; }
.rrow .pic { width: 38px; height: 38px; border-radius: 12px; border: 2px solid #1F2A44; display: grid; place-items: center; font-size: 24px; flex: none; background: #ffe9a8; }
.rrow .pic.hid { background: radial-gradient(circle at 35% 35%, #5CD08A, #1B5E4B); filter: blur(2.5px); border-color: transparent; }
.rrow .t { flex: 1; min-width: 0; }
.rrow .t b { display: block; line-height: 1.2; }
.rrow .t small { color: #4A5570; font-size: 11px; }
.rrow .lk { font-size: 11px; font-weight: 700; color: #15A65B; }
.rrow.found { background: #e7fbef; }

.s-walk { padding: 44px 14px 14px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.tile { border: 2.5px solid #1F2A44; border-radius: 16px; padding: 10px; box-shadow: 0 4px 0 #1F2A44; }
.tile b { font: 700 15px/1.1 var(--display); display: block; }
.tile small { font-size: 11px; display: block; margin-top: 2px; }
.tile.leaf { background: #2ED47A; } .tile.sky { background: #38BDF8; }
.map { position: relative; height: 205px; border: 2.5px solid #1F2A44; border-radius: 18px; overflow: hidden; background: #e8f3dc; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stats { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; justify-content: space-between; background: #fff; border: 2px solid #1F2A44; border-radius: 12px; padding: 6px 10px; font-size: 11px; color: #4A5570; }
.stats b { display: block; font: 700 16px/1.1 var(--display); color: #1F2A44; }

/* ---- the walk: a trail down the left, one stop per feature ---- */
.stops { position: relative; padding: 24px 0 0; }
.walker-track { position: absolute; z-index: 3; left: 0; top: 0; bottom: 0; width: var(--rail); pointer-events: none; }
.walker-stick { position: sticky; top: 38vh; display: flex; justify-content: center; }
.walker-stick svg { width: calc(var(--rail) - 8px); max-width: 84px; overflow: visible; filter: drop-shadow(0 4px 0 rgba(31, 42, 68, 0.2)); }
.stop { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); padding: 56px 0; }
.rail { position: relative; }
.rail::before { content: ""; position: absolute; left: 50%; top: -56px; bottom: -56px; width: 4px; margin-left: -2px; background: repeating-linear-gradient(to bottom, var(--line) 0 10px, transparent 10px 22px); opacity: 0.55; }
.stop:first-child .rail::before { top: 0; }
.stop:last-child .rail::before { bottom: 56px; }
.rail::after { content: ""; position: absolute; left: 50%; top: 12px; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: var(--mark, var(--sun)); border: 4px solid var(--ink); box-shadow: 0 0 0 4px var(--bg); z-index: 1; }
.stop-body { display: grid; gap: 36px; align-items: center; min-width: 0; }
@media (min-width: 860px) { .stop-body { grid-template-columns: minmax(0, 1fr) auto; gap: 72px; } .stop:nth-of-type(even) .stop-body { grid-template-columns: auto minmax(0, 1fr); } .stop:nth-of-type(even) .stop-body > .phone, .stop:nth-of-type(even) .stop-body > .extra { order: -1; } }
.stop h2 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1; margin-bottom: 14px; }
.stop p { max-width: 31em; color: var(--soft); }
.stop .copy { min-width: 0; }
.stop .phone { justify-self: center; }
.note-line { font-size: 16px; }
.note-line b { color: var(--text); }

/* ---- collect: the one grape band ---- */
.collect { background: var(--grape); color: #fff; padding: 72px 0; }
.collect .wrap { display: grid; gap: 40px; }
@media (min-width: 860px) { .collect .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; } }
.collect h2 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1; margin-bottom: 14px; }
.collect p { max-width: 30em; color: #efe8ff; }
.guide { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.dex { aspect-ratio: 1; border-radius: 18px; background: #fff; border: 3px solid var(--ink); display: grid; place-items: center; font-size: clamp(26px, 6vw, 38px); box-shadow: 0 4px 0 var(--ink); }
.dex.new { background: var(--sun); }
.dex.no { background: transparent; border: 3px dashed rgba(255, 255, 255, 0.55); box-shadow: none; color: rgba(255, 255, 255, 0.7); font: 700 26px var(--display); }
.trophies { display: grid; gap: 10px; }
.trophy { display: flex; align-items: center; gap: 14px; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 18px; padding: 12px 16px; box-shadow: 0 4px 0 var(--ink); }
.trophy > span { font-size: 30px; line-height: 1; }
.trophy .t { flex: 1; min-width: 0; }
.trophy b { display: block; font: 700 18px/1.15 var(--display); }
.trophy small { display: block; color: #4A5570; font-size: 14px; line-height: 1.3; }
.bar2 { height: 9px; border-radius: 9px; background: #e6dfd0; margin-top: 7px; overflow: hidden; }
.bar2 i { display: block; height: 100%; background: var(--leaf); border-radius: 9px; }
.trophy .n { font: 700 15px var(--display); color: var(--grape); white-space: nowrap; }

/* ---- compete ---- */
.board { width: 100%; max-width: 360px; background: var(--card); color: var(--text); border: 3px solid var(--line); border-radius: 22px; padding: 14px 16px 6px; box-shadow: 8px 10px 0 rgba(31, 42, 68, 0.2); }
.board .tabs { display: flex; gap: 6px; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.board .tabs span { padding: 5px 12px; border-radius: 99px; border: 2px solid var(--line); }
.board .tabs .on { background: var(--sun); color: var(--ink); border-color: var(--ink); }
.board .cap { color: var(--soft); font-size: 14px; margin: 0 0 6px; }
.board ol { list-style: none; margin: 0; padding: 0; }
.board li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1.5px solid var(--line); }
.board li:first-child { border-top: 0; }
.board li > b:first-child { width: 22px; font: 700 18px var(--display); color: var(--soft); }
.board li .u { flex: 1; font-weight: 700; }
.board li .xp2 { font: 700 17px var(--display); }
.board li.you { background: rgba(255, 201, 60, 0.35); margin: 0 -10px; padding: 10px; border-radius: 12px; border-top-color: transparent; }
.board li.you + li { border-top-color: transparent; }

/* ---- what stays private, and the contact band ---- */
.private { background: var(--ink); color: #FFF8EC; padding: 72px 0 40px; }
.private h2 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; max-width: 14em; margin-bottom: 36px; }
.facts { display: grid; gap: 28px; margin-bottom: 56px; }
@media (min-width: 860px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.facts h3 { font-size: 22px; margin-bottom: 8px; color: var(--sun); }
.facts p { color: #dfe3ee; margin: 0; }
.private a { color: #FFC93C; }
.contact { border-top: 2px solid rgba(255, 248, 236, 0.2); padding-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 16px; color: #c3c7d4; }
.contact a { color: #FFF8EC; }

/* ---- Walker's legs and wave: only while the page is scrolled; still otherwise ---- */
.walker-stick svg .leg { transform-box: view-box; }
.hero-art .walker .wave { transform-box: view-box; transform-origin: 268px 262px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .walker { animation: bob 2.4s ease-in-out infinite; }
  .hero-art .walker .wave { animation: wave 1.6s ease-in-out infinite; }
  @keyframes bob { 50% { transform: translateY(-6px); } }
  @keyframes wave { 50% { transform: rotate(-12deg); } }
  @supports (animation-timeline: scroll()) {
    .walker-stick svg .leg { animation: stride 1s linear infinite alternate; animation-timeline: scroll(root block); animation-iteration-count: 44; }
    .walker-stick svg .leg.l { transform-origin: 168px 370px; }
    .walker-stick svg .leg.r { transform-origin: 232px 370px; animation-direction: alternate-reverse; }
    .walker-stick svg { animation: rock 1s ease-in-out infinite alternate; animation-timeline: scroll(root block); animation-iteration-count: 44; }
    @keyframes stride { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
    @keyframes rock { from { transform: translateY(0); } to { transform: translateY(-4px); } }
  }
}
