:root {
  --bg: #FBFAF6;
  --ink: #111111;
  --muted: #5E5D57;
  --card: #FFFFFF;
  --yellow: #FFDF1F;
  --red: #E8322E;
  --display: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: Caveat, 'Comic Sans MS', cursive;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }
.mark { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.clue-tr { margin: 0; font-size: 11px; line-height: 1.4; color: var(--muted); text-align: right; max-width: 150px; }

.main { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 40px 20px 48px; }

.dog-wrap { position: relative; width: 100%; max-width: 340px; }
.dog { display: block; width: 100%; max-width: 340px; height: auto; }
.nose { position: absolute; left: 34.75%; top: 37.4%; width: 15%; aspect-ratio: 1; min-width: 44px; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: transparent; cursor: pointer; padding: 0; }
.nose:hover { background: rgba(255, 223, 31, 0.25); }
.nose.picked { animation: boing 0.35s ease-out; }
@keyframes boing { 0% { transform: translate(-50%, -50%) scale(1); background: rgba(255,223,31,.5);} 50% { transform: translate(-50%, -50%) scale(1.35);} 100% { transform: translate(-50%, -50%) scale(1); background: transparent;} }
.bubble { position: absolute; right: -6px; top: 4%; max-width: 60%; background: var(--card); border: 2px solid var(--ink); border-radius: 16px; padding: 8px 12px; font-family: var(--hand); font-size: 21px; line-height: 1.1; box-shadow: 4px 4px 0 var(--ink); animation: pop 0.2s ease-out; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.intro { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.intro h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(38px, 9vw, 64px); line-height: 0.95; letter-spacing: -0.03em; text-wrap: balance; }
.intro h1 { width: 100%; }
.wordmark { display: block; width: min(560px, 100%); height: auto; margin: 0 auto; }
.intro p { margin: 0; font-size: 17px; line-height: 1.45; color: #3E3D39; max-width: 32ch; text-wrap: balance; }

.socials { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 12px; }
.socials a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 14px; background: var(--card); text-decoration: none; font-weight: 600; font-size: 16px; box-shadow: 3px 3px 0 var(--ink); transition: transform .1s, box-shadow .1s, background .1s; }
.socials a:hover { background: var(--yellow); }
.socials a:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.handle { font-weight: 400; font-size: 14px; color: var(--muted); }

.clue-start { margin: 6px 0 0; font-family: var(--hand); font-size: 21px; color: var(--muted); }

.foot { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); font-size: 12px; color: var(--muted); display: flex; justify-content: center; align-items: flex-end; flex-wrap: wrap; text-align: center; }
.dot { border: 0; background: transparent; cursor: pointer; width: 28px; height: 32px; margin: -16px -12px -8px -10px; padding: 0; display: inline-flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; }
.dot span { display: block; width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.dot:hover span { background: var(--red); transform: scale(1.6); }

.overlay { position: fixed; inset: 0; background: rgba(17,17,17,.55); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 10; }
.card { width: 100%; max-width: 420px; background: var(--bg); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 14px; text-align: center; animation: pop .25s ease-out; }
.card-kicker { margin: 0; font-family: var(--hand); font-size: 30px; color: var(--red); }
.card-body { margin: 0; font-size: 16px; line-height: 1.5; }
.card-cta { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 14px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; }
.card-cta:hover { background: var(--red); color: #fff; }
.card-close { border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--muted); text-decoration: underline; cursor: pointer; min-height: 44px; }

/* sounds page */
.sounds { width: 100%; max-width: 560px; margin: 0 auto; padding: 32px 20px 64px; display: flex; flex-direction: column; gap: 20px; }
.sounds .kicker { margin: 0; font-family: var(--hand); font-size: 24px; color: var(--red); }
.sounds h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(36px, 8vw, 56px); line-height: .95; letter-spacing: -.03em; }
.sounds p { margin: 0; font-size: 16px; line-height: 1.5; }
.big-btn { align-self: flex-start; display: inline-flex; align-items: center; min-height: 56px; padding: 0 24px; border: 2px solid var(--ink); border-radius: 14px; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); text-decoration: none; font-weight: 600; }
.big-btn:active { transform: translate(3px,3px); box-shadow: none; }
.back { font-size: 14px; display: inline-flex; align-items: center; min-height: 44px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
