/* puzzleyatra.com. Colours from the app icon and logo (Tools/branding/logo.svg); fonts are self-hosted
   (Baloo 2 for headings, Poppins like the game), so the site loads nothing from anyone else. */
@font-face { font-family: "Baloo 2"; font-weight: 700; font-display: swap; src: url(/assets/fonts/baloo-2-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 800; font-display: swap; src: url(/assets/fonts/baloo-2-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-latin-700-normal.woff2) format("woff2"); }

:root {
  --night: #1D1937;
  --indigo: #2A2452;
  --violet: #3B2F77;
  --saffron: #F98C26;
  --saffron-deep: #E06A0C;
  --magenta: #B3155A;
  --lotus: #E5508A;
  --gold: #FFC13B;
  --gold-deep: #E59A0E;
  --leaf: #2E9E4F;
  --sky: #2F8FD8;
  --cream: #FFF6E8;
  --paper: #FFFDF8;
  --ink: #1D1937;
  --muted: #6E6880;
  --line: #EADFD0;
  --radius: 22px;
  --wrap: 1180px;
  --display: "Baloo 2", "Poppins", system-ui, sans-serif;
  --body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body { margin: 0; font: 16px/1.65 var(--body); color: var(--ink); background: var(--cream); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--magenta); text-underline-offset: 3px; }
a:hover { color: var(--saffron-deep); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 6.2vw, 76px); font-weight: 800; }
h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; }
h3 { font-size: 24px; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--night); padding: 8px 14px; border-radius: 10px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(29, 25, 55, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo img.icon { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.logo img.word { width: 124px; height: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.site-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.site-nav a { color: #F3EEFF; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.site-nav a.cta { background: linear-gradient(180deg, #FFB24A, var(--saffron) 55%, var(--saffron-deep)); color: #fff; box-shadow: inset 0 2px 0 rgba(255,255,255,.45), 0 3px 0 #A94A00; text-shadow: 0 1px 0 rgba(0,0,0,.2); margin-left: 6px; }
@media (max-width: 860px) { .site-nav .hide-sm { display: none; } .logo img.word { width: 104px; } }
@media (max-width: 420px) { .logo img.word { display: none; } }

/* ---------------------------------------------------------------- buttons and badges */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 800 20px/1 var(--display); padding: 16px 28px 14px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; color: #fff;
  background: linear-gradient(180deg, #FFB24A, var(--saffron) 52%, var(--saffron-deep)); box-shadow: inset 0 3px 0 rgba(255,255,255,.5), inset 0 -3px 0 rgba(0,0,0,.12), 0 5px 0 #A94A00, 0 12px 24px rgba(160, 70, 0, .35);
  text-shadow: 0 2px 0 rgba(0,0,0,.18); transition: transform .12s, box-shadow .12s; }
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: inset 0 3px 0 rgba(255,255,255,.5), inset 0 -3px 0 rgba(0,0,0,.12), 0 7px 0 #A94A00, 0 16px 28px rgba(160, 70, 0, .4); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 3px 0 rgba(255,255,255,.5), 0 2px 0 #A94A00; }
.btn.pink { background: linear-gradient(180deg, #F57BAA, var(--lotus) 50%, var(--magenta)); box-shadow: inset 0 3px 0 rgba(255,255,255,.45), 0 5px 0 #7A0B3C, 0 12px 24px rgba(120, 10, 60, .35); }
.btn.green { background: linear-gradient(180deg, #5BCB78, var(--leaf) 55%, #1F7A3B); box-shadow: inset 0 3px 0 rgba(255,255,255,.45), 0 5px 0 #155A2B, 0 12px 24px rgba(20, 90, 40, .3); }
.btn.small { font-size: 16px; padding: 11px 18px 9px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badges a, .badges span { display: inline-block; position: relative; transition: transform .15s; }
.badges a:hover { transform: translateY(-2px) scale(1.03); }
.badges img { height: 56px; width: auto; }
.badges .soon img { opacity: .55; filter: grayscale(.4); }
.badges .soon::after { content: "Coming soon"; position: absolute; right: -6px; top: -10px; background: var(--gold); color: var(--night); font: 700 11px/1 var(--body); padding: 4px 8px; border-radius: 999px; transform: rotate(6deg); box-shadow: 0 2px 6px rgba(0,0,0,.2); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: min(92vh, 900px); color: #fff; overflow: hidden; background: var(--night); isolation: isolate; display: flex; align-items: center; }
.hero canvas, .hero .hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; object-fit: cover; }
.hero canvas { opacity: 0; transition: opacity .9s; }
.hero .hero-fallback { transition: opacity .9s; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(ellipse at 22% 50%, rgba(29,25,55,.82) 0%, rgba(29,25,55,.45) 38%, rgba(29,25,55,0) 66%),
  linear-gradient(180deg, rgba(29,25,55,.55) 0%, rgba(29,25,55,0) 22%, rgba(29,25,55,0) 64%, rgba(29,25,55,.92) 100%); }
.hero .wrap { position: relative; padding: 80px 0 140px; }
.hero-copy { max-width: 620px; }
.hero .wordmark { width: min(460px, 86%); margin: 0 0 6px -10px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); animation: pop .9s cubic-bezier(.2,1.4,.4,1) both; }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); text-shadow: 0 3px 18px rgba(0,0,0,.45); animation: rise .8s .15s both; }
.hero h1 .hl { background: linear-gradient(90deg, var(--gold), #FFE08A, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: clamp(17px, 1.6vw, 20px); color: #F1ECFF; max-width: 540px; text-shadow: 0 2px 10px rgba(0,0,0,.5); animation: rise .8s .3s both; }
.hero .badges { margin-top: 26px; animation: rise .8s .45s both; }
.hero .free { margin-top: 14px; font-size: 14px; color: #D8D1F2; animation: rise .8s .55s both; }
.hero-caption { position: absolute; right: 16px; bottom: 104px; z-index: 2; text-align: right; font-size: 14px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.hero-caption strong { display: block; font: 800 22px/1.1 var(--display); }
.hero-dots { display: flex; gap: 6px; justify-content: flex-end; margin-top: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.4); cursor: pointer; transition: width .3s, background .3s; }
.hero-dots button.on { width: 26px; border-radius: 6px; background: var(--gold); }
.hero .guide { position: absolute; right: max(16px, calc(50% - 600px)); bottom: 0; width: clamp(150px, 19vw, 250px); z-index: 1; pointer-events: none; filter: drop-shadow(0 12px 22px rgba(0,0,0,.45)); animation: peek 1.2s .6s cubic-bezier(.2,1.3,.4,1) both; }
.hero .guide.dog { right: calc(max(16px, calc(50% - 600px)) + clamp(130px, 16vw, 210px)); width: clamp(90px, 10vw, 140px); animation-delay: .9s; }
.floaters { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.floaters img { position: absolute; width: 64px; opacity: .95; filter: drop-shadow(0 8px 12px rgba(0,0,0,.35)); animation: float 7s ease-in-out infinite; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: 1; background: var(--cream); clip-path: url(#wave); }
.wave-svg { position: absolute; width: 0; height: 0; }
@media (max-width: 760px) {
  .hero { min-height: auto; align-items: flex-start; }
  .hero .wrap { padding: 40px 0 230px; }
  .hero .guide { width: 150px; right: 6px; }
  .hero .guide.dog { width: 86px; right: 140px; }
  .hero-caption { left: 16px; right: auto; text-align: left; bottom: 96px; }
  .hero-dots { justify-content: flex-start; }
  .floaters img { width: 44px; }
}
@keyframes pop { from { opacity: 0; transform: scale(.6) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes peek { from { opacity: 0; transform: translateY(70%); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-22px) rotate(8deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- facts ribbon */
.facts { position: relative; z-index: 2; margin-top: -58px; }
.facts ul { list-style: none; margin: 0; padding: 18px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; background: var(--paper); border-radius: 28px; box-shadow: 0 18px 40px rgba(29,25,55,.16), 0 0 0 4px #fff, 0 0 0 7px var(--gold); }
.facts li { text-align: center; padding: 6px; }
.facts b { display: block; font: 800 clamp(30px, 3.4vw, 44px)/1 var(--display); background: linear-gradient(180deg, var(--saffron), var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts span { font-size: 14px; color: var(--muted); font-weight: 600; }
@media (max-width: 760px) { .facts ul { grid-template-columns: repeat(2, 1fr); } .facts li:last-child { grid-column: span 2; } }

/* ---------------------------------------------------------------- sections */
section { position: relative; }
.section { padding: 110px 0; }
.section.tight { padding: 80px 0; }
.eyebrow { display: inline-block; font: 700 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--magenta); background: color-mix(in srgb, var(--lotus) 14%, transparent); padding: 8px 14px; border-radius: 999px; margin-bottom: 14px; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { font-size: 18px; color: var(--muted); }
.dark { background: radial-gradient(ellipse at 50% 0%, var(--violet), var(--night) 70%); color: #fff; }
.dark .section-head p { color: #CFC8EA; }
.dark .eyebrow { color: var(--gold); background: rgba(255,193,59,.14); }
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- how it plays */
.play-grid { display: grid; grid-template-columns: minmax(300px, 430px) 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .play-grid { grid-template-columns: 1fr; gap: 40px; } }
.phone { position: relative; width: 100%; max-width: 400px; margin-inline: auto; aspect-ratio: 9 / 18.5; border-radius: 46px; padding: 14px; background: linear-gradient(145deg, #3B3463, #15122A); box-shadow: 0 30px 60px rgba(29,25,55,.35), inset 0 0 0 2px rgba(255,255,255,.12); }
.phone .screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #1a2a3a center / cover no-repeat; display: flex; flex-direction: column; }
.phone .screen::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35)); }
.hud { position: relative; display: flex; align-items: center; gap: 10px; padding: 18px 16px 8px; color: #fff; }
.hud .moves { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4B3A86, var(--night)); border: 4px solid var(--gold); display: grid; place-items: center; text-align: center; font: 800 26px/1 var(--display); box-shadow: 0 6px 12px rgba(0,0,0,.35); }
.hud .moves small { display: block; font: 700 9px/1 var(--body); letter-spacing: .1em; color: var(--gold); }
.hud .goal { flex: 1; background: rgba(255,253,248,.92); color: var(--ink); border-radius: 16px; padding: 8px 12px; font-size: 12px; font-weight: 700; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.hud .goal .bar { height: 8px; border-radius: 4px; background: #E8DDF0; margin-top: 6px; overflow: hidden; }
.hud .goal .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--saffron), var(--gold)); transition: width .4s; }
.hud .score { font: 800 18px/1 var(--display); color: var(--gold); text-shadow: 0 2px 4px rgba(0,0,0,.5); min-width: 52px; text-align: right; }
.board-wrap { position: relative; margin: auto 12px 20px; padding: 10px; border-radius: 22px; background: linear-gradient(160deg, #7A4A22, #4A2A10); box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 10px 22px rgba(0,0,0,.45); }
.board { position: relative; aspect-ratio: 1; border-radius: 14px; background: rgba(23, 60, 58, .88); box-shadow: inset 0 0 0 2px rgba(255,255,255,.08); touch-action: none; user-select: none; -webkit-user-select: none; }
.board .cell { position: absolute; width: calc(100% / 6); height: calc(100% / 6); }
.board .cell:nth-child(odd) { background: rgba(255,255,255,.035); }
.board .gem { position: absolute; width: calc(100% / 6); height: calc(100% / 6); cursor: grab; transition: transform .22s cubic-bezier(.3,1.2,.5,1), opacity .25s; will-change: transform; }
.board .gem img { width: 88%; height: 88%; margin: 6%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 3px 2px rgba(0,0,0,.35)); }
.board .gem.sel img { animation: wobble .6s ease-in-out infinite; filter: drop-shadow(0 0 8px #FFF5B0) drop-shadow(0 3px 2px rgba(0,0,0,.35)); }
.board .gem.pop { opacity: 0; transform: scale(1.5) !important; transition: transform .25s, opacity .25s; }
.board .gem.hint img { animation: hint 1.2s ease-in-out infinite; }
.board .spark { position: absolute; width: 18%; pointer-events: none; animation: spark .6s ease-out forwards; }
.board .float-score { position: absolute; font: 800 22px/1 var(--display); color: #fff; text-shadow: 0 2px 0 var(--magenta), 0 0 10px rgba(255,193,59,.8); pointer-events: none; animation: floatup .9s ease-out forwards; }
.board-note { position: relative; text-align: center; color: #fff; font-size: 13px; font-weight: 600; margin: -6px 0 14px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.board-note button { font: inherit; color: var(--gold); background: none; border: 0; text-decoration: underline; cursor: pointer; }
@keyframes wobble { 0%, 100% { transform: scale(1.08) rotate(-5deg); } 50% { transform: scale(1.12) rotate(5deg); } }
@keyframes hint { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
@keyframes spark { from { opacity: 1; transform: scale(.3) rotate(0); } to { opacity: 0; transform: scale(1.6) rotate(90deg); } }
@keyframes floatup { from { opacity: 1; transform: translateY(0) scale(.8); } to { opacity: 0; transform: translateY(-50px) scale(1.2); } }
.steps { display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: center; background: var(--paper); border-radius: var(--radius); padding: 18px; box-shadow: 0 10px 26px rgba(29,25,55,.08); border: 1px solid var(--line); }
.step .ico { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(160deg, #FFF0D6, #FFE1B0); }
.step .ico img { width: 56px; height: 56px; object-fit: contain; }
.step h3 { margin: 0 0 4px; font-size: 22px; }
.step p { margin: 0; color: var(--muted); }

/* the restore slider */
.restore { margin-top: 26px; background: var(--paper); border-radius: var(--radius); padding: 14px; box-shadow: 0 10px 26px rgba(29,25,55,.08); border: 1px solid var(--line); }
.restore-frame { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; --cut: 50%; }
.restore-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.restore-frame .before { filter: grayscale(.85) sepia(.55) brightness(.7) contrast(.9) blur(.6px); }
.restore-frame .after { clip-path: inset(0 0 0 var(--cut)); }
.restore-frame .dust { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--cut)) 0 0); background: repeating-linear-gradient(115deg, rgba(120,90,60,.18) 0 6px, transparent 6px 22px); mix-blend-mode: multiply; }
.restore-frame .handle { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.4); pointer-events: none; }
.restore-frame .handle::after { content: "⇆"; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--gold); color: var(--night); display: grid; place-items: center; font-weight: 800; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.restore-frame .tag { position: absolute; top: 10px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(29,25,55,.7); }
.restore-frame .tag.l { left: 10px; } .restore-frame .tag.r { right: 10px; background: var(--leaf); }
.restore input[type=range] { width: 100%; margin: 12px 0 2px; accent-color: var(--saffron); }
.restore .cap { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.restore .cap b { color: var(--ink); }

/* ---------------------------------------------------------------- journey map */
.journey { background: linear-gradient(180deg, var(--cream), #FDEBD3); }
.chapters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chapters button { font: 700 15px/1 var(--body); padding: 10px 16px; border-radius: 999px; border: 2px solid transparent; background: var(--paper); color: var(--ink); cursor: pointer; box-shadow: 0 3px 0 var(--line); transition: transform .15s; }
.chapters button:hover { transform: translateY(-2px); }
.chapters button.on { background: var(--night); color: #fff; box-shadow: 0 3px 0 #000; }
.chapters button i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 0; }
.map-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .map-grid { grid-template-columns: 1fr; } }
.map { position: relative; border-radius: 30px; overflow: hidden; box-shadow: 0 24px 50px rgba(29,25,55,.22), 0 0 0 6px #fff, 0 0 0 9px var(--gold); background: #2E79B8; aspect-ratio: 1898 / 2048; }
.map > img { width: 100%; height: 100%; object-fit: cover; }
.map svg.route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map svg.route path { fill: none; stroke: #fff; stroke-width: .45; stroke-dasharray: 1 1.2; stroke-linecap: round; opacity: .85; }
.pin { position: absolute; width: 34px; height: 34px; margin: -34px 0 0 -17px; border: 0; padding: 0; background: none; cursor: pointer; transform-origin: 50% 100%; transition: transform .2s, opacity .3s, filter .3s; z-index: 1; }
.pin::before { content: ""; position: absolute; inset: 0; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c, var(--saffron)); box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 4px 8px rgba(0,0,0,.35); border: 2px solid #fff; }
.pin span { position: absolute; inset: 4px 4px 8px; border-radius: 50%; overflow: hidden; display: block; }
.pin span img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pin:hover, .pin.on { transform: scale(1.45); z-index: 3; }
.pin.on::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 30px; height: 10px; margin-left: -15px; border-radius: 50%; background: rgba(255,193,59,.7); animation: ring 1.4s ease-out infinite; z-index: -1; }
.pin.dim { opacity: .35; filter: grayscale(.8); transform: scale(.8); }
@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
@media (max-width: 600px) { .pin { width: 24px; height: 24px; margin: -24px 0 0 -12px; } .pin span { inset: 3px 3px 6px; } }
.stop-card { position: sticky; top: 90px; background: var(--paper); border-radius: 28px; overflow: hidden; box-shadow: 0 20px 44px rgba(29,25,55,.16); border: 1px solid var(--line); }
.stop-card .photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; }
.stop-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease-out, opacity .35s; }
.stop-card:hover .photo img { transform: scale(1.08); }
.stop-card .photo .chip { position: absolute; left: 14px; top: 14px; background: rgba(29,25,55,.78); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.stop-card .body { padding: 22px 24px 24px; }
.stop-card h3 { font-size: 32px; margin-bottom: 2px; }
.stop-card .where { color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.stop-card .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.stop-card .meta span { background: #FFF0D6; color: #8A4B00; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.stop-card .nav { display: flex; gap: 10px; }
.stop-card .nav button { flex: 1; font: 700 15px/1 var(--body); padding: 12px; border-radius: 14px; border: 2px solid var(--line); background: #fff; cursor: pointer; }
.stop-card .nav button:hover { border-color: var(--saffron); }

/* ---------------------------------------------------------------- postcards */
.postcards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 300px); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px max(16px, calc(50% - var(--wrap) / 2)) 40px; scrollbar-width: thin; }
.postcard { scroll-snap-align: center; perspective: 900px; }
.postcard .card { position: relative; background: #FFFDF5; border-radius: 10px; padding: 12px 12px 16px; box-shadow: 0 16px 30px rgba(0,0,0,.3); transform-style: preserve-3d; transition: transform .25s ease-out; }
.postcard:nth-child(odd) .card { --tilt: -2deg; } .postcard:nth-child(even) .card { --tilt: 2deg; }
.postcard .card { transform: rotate(var(--tilt)); }
.postcard .card img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: 4px; }
.postcard .card .stamp { position: absolute; top: 18px; right: 18px; width: 54px; height: 62px; background: var(--gold) center / 70% no-repeat; border: 3px dashed #fff; border-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.25); transform: translateZ(30px) rotate(8deg); }
.postcard .card .name { font: 800 21px/1.1 var(--display); color: var(--ink); margin: 12px 4px 0; transform: translateZ(20px); }
.postcard .card .place { font-size: 13px; color: var(--muted); margin: 2px 4px 0; }
.postcard .card .shine { position: absolute; inset: 0; border-radius: 10px; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.35), transparent 50%); opacity: 0; transition: opacity .25s; }
.postcard:hover .card .shine { opacity: 1; }

/* ---------------------------------------------------------------- challenges */
.challenges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .challenges { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .challenges { grid-template-columns: 1fr; } }
.challenge { position: relative; overflow: hidden; border-radius: 26px; padding: 22px 20px 20px; color: #fff; min-height: 230px; background: linear-gradient(160deg, var(--a), var(--b)); box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 6px 0 var(--d), 0 18px 30px rgba(0,0,0,.25); transition: transform .2s; }
.challenge:hover { transform: translateY(-6px) rotate(-1deg); }
.challenge .art { position: absolute; right: -14px; bottom: -14px; width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.3)); transition: transform .5s; }
.challenge:hover .art { transform: scale(1.12) rotate(-8deg); }
.challenge .art.spin { animation: spin 14s linear infinite; }
.challenge:hover .art.spin { animation-duration: 1.6s; }
.challenge .tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: rgba(0,0,0,.22); padding: 5px 10px; border-radius: 999px; margin-bottom: 10px; }
.challenge h3 { font-size: 27px; margin-bottom: 6px; text-shadow: 0 2px 0 rgba(0,0,0,.15); }
.challenge p { font-size: 14px; margin: 0; max-width: 80%; color: rgba(255,255,255,.92); }

/* ---------------------------------------------------------------- festivals */
.festivals { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.festival { display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: 999px; padding: 8px 18px 8px 8px; box-shadow: 0 4px 0 var(--line), 0 10px 18px rgba(29,25,55,.08); font-weight: 700; }
.festival i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-style: normal; color: #fff; font: 800 13px/1 var(--display); background: linear-gradient(160deg, var(--saffron), var(--magenta)); }
.festival small { display: block; font-weight: 600; font-size: 12px; color: var(--muted); line-height: 1.2; }

/* ---------------------------------------------------------------- characters */
.cast { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: end; }
@media (max-width: 760px) { .cast { grid-template-columns: repeat(2, 1fr); } }
.cast button { position: relative; border: 0; cursor: pointer; padding: 0 0 14px; border-radius: 28px 28px 22px 22px; background: linear-gradient(180deg, transparent 30%, var(--bg, #FFE1B0) 30%); font: inherit; color: var(--ink); transition: transform .25s cubic-bezier(.2,1.4,.4,1); }
.cast button img { width: 92%; margin: 0 auto -6px; filter: drop-shadow(0 10px 12px rgba(0,0,0,.2)); transition: transform .35s cubic-bezier(.2,1.5,.4,1); }
.cast button:hover img { transform: translateY(-10px) scale(1.04); }
.cast button.on { transform: translateY(-8px); box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--gold), 0 18px 30px rgba(0,0,0,.18); }
.cast button.on img { animation: hop .6s cubic-bezier(.2,1.5,.4,1); }
.cast b { display: block; font: 800 24px/1 var(--display); margin-top: 10px; }
.cast small { color: var(--muted); font-weight: 600; }
@keyframes hop { 0% { transform: translateY(0); } 40% { transform: translateY(-26px) scale(1.05); } 100% { transform: translateY(-10px) scale(1.04); } }
.companion { display: flex; align-items: center; gap: 18px; justify-content: center; margin-top: 34px; font-weight: 600; color: var(--muted); }
.companion img { width: 92px; }

/* ---------------------------------------------------------------- fair play */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .promises { grid-template-columns: 1fr; } }
.promise { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 24px; padding: 22px; }
.promise .em { font-size: 34px; line-height: 1; margin-bottom: 12px; display: block; }
.promise h3 { font-size: 21px; margin-bottom: 6px; }
.promise p { color: #CFC8EA; font-size: 15px; margin: 0; }

/* ---------------------------------------------------------------- download */
.download { text-align: center; overflow: hidden; background: radial-gradient(circle at 50% 120%, #FFD27A, var(--saffron) 35%, var(--magenta) 80%); color: #fff; }
.download h2 { text-shadow: 0 3px 0 rgba(0,0,0,.15); }
.download p { font-size: 19px; max-width: 560px; margin: 0 auto 26px; }
.download .badges { justify-content: center; }
.download .icon { width: 132px; margin: 0 auto 18px; border-radius: 30px; box-shadow: 0 18px 40px rgba(0,0,0,.35), 0 0 0 5px rgba(255,255,255,.5); animation: float 6s ease-in-out infinite; }
.download .rays { position: absolute; left: 50%; top: 50%; width: 1600px; height: 1600px; margin: -800px; z-index: 0; opacity: .18; background: repeating-conic-gradient(#fff 0 6deg, transparent 6deg 18deg); animation: spin 60s linear infinite; pointer-events: none; }
.download .wrap { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--night); color: #CFC8EA; padding: 56px 0 30px; font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer h4 { font: 800 18px/1 var(--display); color: #fff; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .incubics { width: 150px; margin: 6px 0 14px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: 13px; color: #9C95BC; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ---------------------------------------------------------------- policy and help pages */
.page-hero { background: radial-gradient(ellipse at 80% 0%, var(--magenta), transparent 55%), radial-gradient(ellipse at 0% 100%, var(--saffron), transparent 50%), var(--night); color: #fff; padding: 64px 0 90px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); margin-bottom: 8px; }
.page-hero p { color: #E4DEFA; font-size: 18px; max-width: 680px; margin: 0; }
.page-hero .deco { position: absolute; right: 4%; bottom: -10px; width: clamp(110px, 16vw, 200px); opacity: .95; filter: drop-shadow(0 10px 20px rgba(0,0,0,.4)); }
.doc { padding: 0 0 90px; }
.doc .paper { position: relative; margin-top: -50px; background: var(--paper); border-radius: 28px; padding: clamp(24px, 5vw, 56px); box-shadow: 0 20px 50px rgba(29,25,55,.12); border: 1px solid var(--line); max-width: 900px; }
.doc h2 { font-size: 30px; margin-top: 1.6em; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 21px; margin-top: 1.4em; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.doc .short { background: linear-gradient(135deg, #FFF0D6, #FFE6F0); border-radius: 18px; padding: 18px 22px; margin-bottom: 28px; border: 1px solid #F6D7B5; }
.doc li { margin-bottom: .45em; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border-radius: 14px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #FBF1E2; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.callout { border-left: 5px solid var(--saffron); background: #FFF6EA; padding: 14px 18px; border-radius: 0 14px 14px 0; margin: 0 0 1.2em; }

/* forms */
.form { display: grid; gap: 16px; background: #FFF8EE; border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 4vw, 28px); margin: 0 0 1.4em; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form .row2 { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.form label small { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; font: inherit; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(249,140,38,.18); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: 20px; height: 20px; margin-top: 4px; flex-shrink: 0; accent-color: var(--saffron); }
.form .hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form .status { font-weight: 600; min-height: 1.5em; margin: 0; }
.form .status.bad { color: #B3261E; }
.form-done { text-align: center; background: linear-gradient(135deg, #E8F7EC, #FFF6E8); border: 1px solid #BFE5C9; border-radius: 22px; padding: 30px; }
.form-done .big { font-size: 46px; margin-bottom: 6px; }
.form-done .ref { font: 800 28px/1 var(--display); color: var(--leaf); letter-spacing: .04em; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details[open] summary { margin-bottom: 8px; color: var(--magenta); }
.faq details p:last-child { margin-bottom: 0; }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 16px; }
.lost img { width: 180px; margin: 0 auto 10px; }
