@font-face{font-family:'Fredoka';font-weight:400 700;font-display:swap;src:url(assets/fonts/fredoka-latin.woff2) format('woff2')}
@font-face{font-family:'Fredoka';font-weight:400 700;font-display:swap;src:url(assets/fonts/fredoka-latin-ext.woff2) format('woff2');unicode-range:U+0100-024F,U+1E00-1EFF}
@font-face{font-family:'Nunito';font-weight:400 900;font-display:swap;src:url(assets/fonts/nunito-latin.woff2) format('woff2')}
@font-face{font-family:'Nunito';font-weight:400 900;font-display:swap;src:url(assets/fonts/nunito-latin-ext.woff2) format('woff2');unicode-range:U+0100-024F,U+1E00-1EFF}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{font-family:Nunito,system-ui,sans-serif;color:#fff;background:#0f3d1a;overflow:hidden;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}
.bg{position:fixed;inset:0;background:
 radial-gradient(ellipse 80% 60% at 8% 0%,#3ecf55 0%,transparent 55%),
 radial-gradient(ellipse 70% 50% at 100% 8%,#ffb14a 0%,transparent 50%),
 radial-gradient(ellipse 60% 45% at 85% 100%,#5ec8ff 0%,transparent 55%),
 linear-gradient(165deg,#2faf3f,#157a45 60%,#12667a)}
.bg:after{content:"";position:absolute;inset:0;background-image:radial-gradient(#fff3 1px,transparent 1.5px);background-size:22px 22px;opacity:.5}
#app{position:relative;max-width:460px;margin:0 auto;height:100%;height:100dvh;display:flex;flex-direction:column}
.screen{flex:1;display:flex;flex-direction:column;min-height:0;padding:calc(14px + env(safe-area-inset-top)) 16px calc(14px + env(safe-area-inset-bottom));animation:fadein .25s ease}
@keyframes fadein{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
h1,h2,h3,.f{font-family:Fredoka,Nunito,sans-serif;font-weight:700;letter-spacing:-.01em}
.top{display:flex;justify-content:space-between;align-items:center;gap:8px;font-family:Fredoka;font-weight:600;font-size:16px;min-height:44px}
.pill{background:#0005;border-radius:999px;padding:7px 13px;white-space:nowrap}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;touch-action:manipulation}
button:focus-visible,[tabindex]:focus-visible{outline:3px solid #fff;outline-offset:3px}
.back{background:#0005;border-radius:999px;padding:0 16px;height:44px;font-family:Fredoka;font-weight:600;font-size:16px}
.btn{display:flex;align-items:center;justify-content:center;font-family:Fredoka;font-weight:700;border-radius:999px;color:#3a2a00;background:#ffc734;box-shadow:0 5px 0 #c58f0a;width:100%;min-height:58px;font-size:23px;padding:0 18px;transition:transform .08s}
.btn:active{transform:translateY(3px);box-shadow:0 2px 0 #c58f0a}
.btn.big{min-height:78px;font-size:31px}
.btn.sec{background:#ffffff2e;color:#fff;box-shadow:none;font-weight:600;font-size:18px;min-height:52px}
.btn.sec:active{background:#ffffff45}
.btn.white{background:#fff;color:#16301a;box-shadow:0 5px 0 #0003}
.row{display:flex;gap:10px}
.row>*{flex:1}
.stack{display:flex;flex-direction:column;gap:12px}
.grow{flex:1;min-height:0}
.chip{display:inline-block;background:#fff;color:#16301a;border-radius:999px;font-weight:800;font-size:14px;padding:6px 13px}
.center{text-align:center}
.logo{position:fixed;right:12px;bottom:calc(8px + env(safe-area-inset-bottom));width:74px;opacity:1;filter:drop-shadow(0 1px 2px rgba(0,0,0,.45));background:none;pointer-events:none;z-index:1}
@media (min-width:520px){.logo{right:calc(50% - 222px)}}
.sil{filter:brightness(0) opacity(.3)}
.dots{display:flex;gap:6px}.dots i{width:22px;height:8px;border-radius:5px;background:#fff5}.dots i.on{background:#ffc734}.dots i.skip{background:#ffffff2a}.dots i.cur{background:#fff}
/* home */
.hero{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px}
.hero img{height:min(30vh,240px);width:auto}
.hero h1{font-size:40px;line-height:1;text-shadow:0 3px 0 #0003}
.hero h1 span{display:block;font-size:24px;color:#ffc734;margin-top:4px}
.bubble{background:#fff;color:#16301a;border-radius:20px;padding:10px 16px;font-weight:800;font-size:16px;line-height:1.3;max-width:330px;position:relative;margin-bottom:6px}
.bubble:after{content:"";position:absolute;bottom:-9px;left:50%;margin-left:-9px;border:9px solid transparent;border-bottom:0;border-top-color:#fff}
.count{font-family:Fredoka;font-weight:600;font-size:17px;background:#0005;border-radius:999px;padding:6px 14px;margin-top:4px}
.preview{font-size:12px;font-weight:800;opacity:.8;text-align:center;padding:6px 0 0}
/* missions */
.mcard{display:flex;align-items:center;gap:12px;background:#fff;color:#16301a;border-radius:22px;padding:12px 14px;text-align:left;width:100%;box-shadow:0 5px 0 #0002;min-height:96px}
.mcard img{width:70px;height:70px;object-fit:contain;flex:none}
.mcard b{font-family:Fredoka;font-size:22px;display:block;line-height:1.1}
.mcard small{font-size:15px;font-weight:700;opacity:.8;display:block}
.mcard em{font-style:normal;font-size:13px;font-weight:800;color:#157a45;display:block;margin-top:2px}
/* clue */
.cluechip{text-align:center;margin-top:6px}
.silwrap{flex:1;min-height:0;display:flex;justify-content:center;align-items:center;position:relative;padding:6px 0}
.silwrap img{max-height:100%;max-width:80%;height:auto;width:auto;object-fit:contain}
.q{position:absolute;top:8%;left:62%;font-size:76px;font-family:Fredoka;font-weight:700;color:#ffc734;text-shadow:0 4px 0 #0004;transform:rotate(12deg)}
.riddle{font-family:Fredoka;font-weight:600;font-size:22px;line-height:1.28;text-align:center;text-shadow:0 2px 0 #0003;white-space:pre-line;padding:0 8px}
.lookin{text-align:center;margin:10px 0 14px}
.bar{display:flex;flex-direction:column;gap:10px;padding-bottom:34px}
/* overlay */
#overlay[hidden]{display:none}
#overlay{position:fixed;inset:0;z-index:5;background:#0a2a10e0;display:flex;align-items:center;justify-content:center;padding:18px}
.sheet{background:#fff7e8;color:#16301a;border-radius:28px;padding:24px 20px;width:100%;max-width:360px;text-align:center;max-height:100%;overflow:auto}
.sheet h2{font-size:27px;line-height:1.1}
.sheet p{font-size:17px;font-weight:700;line-height:1.35;margin-top:8px}
.sheet .small{font-size:14px;opacity:.75}
.hold{width:150px;height:150px;border-radius:50%;margin:18px auto 8px;position:relative;display:flex;align-items:center;justify-content:center;font-family:Fredoka;font-weight:700;color:#3a2a00;font-size:20px;background:#ffc734;box-shadow:0 0 0 10px #ffc73455,0 0 0 20px #ffc73422;touch-action:none;-webkit-touch-callout:none}
.hold svg{position:absolute;inset:-6px;width:162px;height:162px;transform:rotate(-90deg);pointer-events:none}
.hold circle{fill:none;stroke:#157a45;stroke-width:9;stroke-linecap:round;stroke-dasharray:478;stroke-dashoffset:478}
.hold.on{transform:scale(.96)}
.link{font-size:16px;font-weight:800;text-decoration:underline;margin-top:14px;padding:10px;color:#16301a}
/* stamp */
.seal{border:4px double #b3262d;color:#b3262d;border-radius:999px;background:#fff7e8f0;box-shadow:0 3px 10px #0003;display:flex;flex-direction:column;align-items:center;justify-content:center;font-family:Fredoka;font-weight:700;text-align:center;line-height:1.05}
.stampfx{width:190px;height:190px;font-size:16px;transform:rotate(-12deg);animation:stampdown .5s cubic-bezier(.2,1.6,.4,1) both;background:#fff}
.stampfx b{font-size:52px}
@keyframes stampdown{0%{transform:scale(2.6) rotate(-30deg);opacity:0}100%{transform:scale(1) rotate(-12deg);opacity:1}}
/* reveal */
.revtop{position:relative;display:flex;justify-content:center;height:min(22vh,180px);flex:none;margin-top:4px}
.revtop img.art{height:100%;width:auto}
.revtop .seal{position:absolute;right:2px;top:4px;width:80px;height:80px;transform:rotate(-12deg);font-size:8.5px}
.revtop .seal b{font-size:18px}
.nm{text-align:center;margin:4px 0 8px}
.nm h2{font-size:27px;line-height:1.05;margin-bottom:6px}
.home{display:inline-flex;align-items:center;gap:6px;background:#0005;border-radius:999px;padding:4px 11px 4px 5px;font-family:Fredoka;font-weight:600;font-size:14px}
.home img{width:24px;height:16px;border-radius:3px;border:1.5px solid #fff;object-fit:cover}
.cards{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:8px;padding-bottom:6px}
.card{border-radius:16px;padding:9px 12px 10px;color:#16301a}
.tag{white-space:nowrap;display:inline-block;font-family:Fredoka;font-weight:700;font-size:11.5px;letter-spacing:.06em;border-radius:999px;padding:2px 9px;margin-bottom:3px;color:#fff}
.card p{font-weight:800;font-size:15.5px;line-height:1.3}
.wow{background:#fff8dc}.wow .tag{background:#c44a08}
.pow{background:#efe6ff}.pow .tag{background:#6a4d96}
.pow h3{font-size:19px;color:#4b2f7a;line-height:1.05;margin-bottom:1px}
.sen{background:#e3f6e6}.sen .tag{background:#11653a}
.senhead{display:flex;justify-content:space-between;align-items:center;gap:6px;flex-wrap:wrap}
.senses{display:flex;gap:3px;margin-bottom:3px}
.senses em{font-style:normal;font-weight:800;font-size:10px;border-radius:999px;padding:2px 5px;background:#fff;color:#11653a;border:1.5px solid #9fd5aa}
.senses em.on{background:#11653a;color:#fff;border-color:#11653a}
.rbw{background:#0006;color:#fff;display:flex;align-items:center;gap:6px;padding:8px 12px}
.dot{width:24px;height:24px;border-radius:50%;border:2px solid #fff;flex:none;display:inline-block}
.dot.off{background:transparent!important;border:2px dashed #fff9}
.dot.new{box-shadow:0 0 0 3px #ffc734,0 0 12px #ffc734;transform:scale(1.15)}
.rbw div{margin-left:6px;font-weight:800;font-size:13px;line-height:1.25}
.postcard{background:#fff;border-radius:16px;color:#16301a;padding:10px 12px}
.postcard p{white-space:pre-line}
/* passport */
.pbig{text-align:center;margin:2px 0 6px}
.pbig b{font-family:Fredoka;font-size:38px;color:#ffc734;text-shadow:0 3px 0 #0004;line-height:1}
.pbig span{display:block;font-weight:800;font-size:14px}
.pscroll{flex:1;min-height:0;overflow:auto;padding-bottom:120px}
.grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.cell{aspect-ratio:1;border-radius:9px;background:#0a281444;display:flex;align-items:center;justify-content:center;padding:2px;position:relative}
.cell img{max-width:100%;max-height:100%;object-fit:contain}
.cell.lock img{filter:brightness(0) opacity(.26)}
.cell.found{background:#fff6;box-shadow:inset 0 0 0 2px #ffc734}
.panel{background:#0006;border-radius:18px;padding:10px 12px;margin-top:10px}
.panel h3{font-size:17px;margin-bottom:6px}
.chips{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}
.cchip{display:flex;align-items:center;gap:6px;background:#fff;color:#16301a;border-radius:999px;padding:5px 9px;font-weight:800;font-size:13px;white-space:nowrap}
.cchip i{width:14px;height:14px;border-radius:50%;flex:none}
.badges{display:flex;gap:6px;justify-content:space-between}
.badge{flex:1;text-align:center;font-size:11.5px;font-weight:800}
.badge img,.badge .rb{width:56px;height:56px;display:block;margin:0 auto 3px;object-fit:contain}
.badge.lock img,.badge.lock .rb{filter:grayscale(1) brightness(.6) opacity(.5)}
.rb{border-radius:50%;background:conic-gradient(#e5383b 0 60deg,#ff8a3d 0 120deg,#ffc734 0 180deg,#2faf3f 0 240deg,#7b5ea7 0 300deg,#e8d9c0 0 360deg);display:flex;align-items:center;justify-content:center;border:3px solid #fff}
.rb:after{content:"";width:58%;height:58%;border-radius:50%;background:#fff7e8}
.rb.lg{width:130px;height:130px;margin:10px auto;border-width:5px}
.pfoot{position:absolute;left:0;right:0;padding:28px 16px calc(34px + env(safe-area-inset-bottom));bottom:0;background:linear-gradient(180deg,#0000,#0b3a2ccc 45%)}
/* share */
.sharewrap{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:8px 0}
.sharewrap img{max-height:100%;max-width:100%;border-radius:16px;box-shadow:0 8px 24px #0005}
/* grown-up */
.gscroll{flex:1;min-height:0;overflow:auto;padding-bottom:60px}
.gcard{background:#fff7e8;color:#16301a;border-radius:20px;padding:14px 16px;margin-top:10px}
.gcard h3{font-size:19px;margin-bottom:4px}
.gcard p,.gcard li{font-size:15px;font-weight:700;line-height:1.4}
.gcard ul{padding-left:18px}
.toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:52px;font-weight:800;font-size:16px;color:#16301a}
.toggle span.sw{width:56px;height:32px;border-radius:999px;background:#bbb;position:relative;flex:none}
.toggle span.sw:after{content:"";position:absolute;left:3px;top:3px;width:26px;height:26px;border-radius:50%;background:#fff;transition:left .15s}
.toggle[aria-checked=true] span.sw{background:#157a45}
.toggle[aria-checked=true] span.sw:after{left:27px}
.danger{background:#b3262d;color:#fff;box-shadow:0 5px 0 #7a161b;font-size:19px;min-height:54px;margin-top:8px}
.done-list{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:10px 0}
.done-list img{width:58px;height:58px;object-fit:contain;background:#fff6;border-radius:12px;padding:3px}
.done-list img.miss{filter:brightness(0) opacity(.25)}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media (max-height:700px){.btn.big{min-height:66px;font-size:27px}.riddle{font-size:19px}.hero img{height:22vh}}

.fmtrow{margin:8px 0 0}.fmtrow .btn{min-height:44px;font-size:16px}.fmtrow .btn.on{background:#fff;color:#16301a}
.pfoot .row .btn{font-size:19px;padding:0 10px}
a.btn{text-decoration:none}
.btn.dl{flex-direction:column;min-height:60px;font-size:19px;line-height:1.1}
.btn.dl small{font-family:Nunito;font-weight:800;font-size:12.5px;opacity:.75}
.dlh{font-size:16px;margin:14px 0 6px;text-align:left}
.sheet .stack{gap:8px}

.sndbtn{flex:0 0 auto;width:44px;height:44px;border-radius:50%;border:2px solid #fff8;background:#0005;color:#fff;display:grid;place-items:center;cursor:pointer;padding:0;margin:0 auto}
.sndbtn.off{background:#fff;color:#16301a;border-color:#fff}
.sndbtn:focus-visible{outline:3px solid #ffc734;outline-offset:2px}
/* public: home links + about/FAQ */
.homelinks{display:flex;justify-content:center;gap:18px;margin-top:2px}
.linkbtn{font-family:Fredoka;font-weight:600;font-size:16px;color:#fff;text-decoration:underline;text-underline-offset:3px;min-height:44px;display:inline-flex;align-items:center;padding:0 6px}
.linkbtn.dark{color:#157a45;font-weight:800;font-size:15px;min-height:24px;padding:0}
.about{max-width:460px;margin:0 auto;padding:24px 18px 120px;color:#fff;user-select:text;-webkit-user-select:text}
.about h1{font-size:32px;margin-bottom:8px}.about h2{font-size:22px;margin:18px 0 6px}
.about p,.about li{font-size:16px;font-weight:700;line-height:1.45}
.about .tagline{font-family:Fredoka;font-size:19px;color:#ffc734;margin-top:8px}
.about details{background:#0004;border-radius:14px;padding:10px 14px;margin-top:8px}
.about summary{font-family:Fredoka;font-weight:600;font-size:17px;cursor:pointer}
.about details p{margin-top:6px}
.about a{color:#ffc734}
.aboutcard .about{padding:4px 0 10px;color:#16301a}
.aboutcard .about h1{font-size:26px;color:#157a45}
.aboutcard .about .tagline{color:#c26a00}
.aboutcard .about details{background:#fff;border:2px solid #e9dcc2}
.aboutcard .about a{color:#157a45}
.nojs{position:fixed;top:0;left:0;right:0;background:#ffc734;color:#3a2a00;text-align:center;font-weight:800;padding:8px}
.aboutcard .about p,.aboutcard .about summary{color:#16301a}
.aboutcard .about h2{color:#16301a}
