:root{--navy:#102a43;--blue:#1768ac;--sky:#e8f5ff;--yellow:#ffd84d;--green:#38a169;--coral:#f2766b;--card:#fff;--shadow:0 14px 35px rgba(20,70,110,.15)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;min-height:100%;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Rounded","Avenir Next",sans-serif;color:var(--navy);background:#dff2ff}
body{min-height:100dvh;background:radial-gradient(circle at 15% 5%,#fff7c7 0 9%,transparent 25%),linear-gradient(160deg,#dff5ff,#ecf5ff 45%,#dff8ed)}
button{font:inherit;color:inherit}
.safe{min-height:100dvh;padding:calc(env(safe-area-inset-top) + 14px) 18px calc(env(safe-area-inset-bottom) + 18px);max-width:760px;margin:auto}
.topbar{height:52px;display:flex;align-items:center;justify-content:space-between;gap:10px}.brand{font-size:20px;font-weight:900;letter-spacing:-.5px}.brand span{color:var(--blue)}
.icon-btn{border:0;background:rgba(255,255,255,.75);width:44px;height:44px;border-radius:15px;box-shadow:0 5px 15px rgba(30,80,120,.1);font-size:22px}
.hero{position:relative;overflow:hidden;background:linear-gradient(145deg,#1768ac,#0e477f);color:white;border-radius:30px;padding:25px 22px 27px;box-shadow:var(--shadow);margin:12px 0 18px}.hero:after{content:"";position:absolute;width:180px;height:180px;border:22px solid rgba(255,216,77,.2);border-radius:50%;right:-75px;top:-70px}.hero .eyebrow{text-transform:uppercase;letter-spacing:1.7px;font-size:12px;font-weight:800;color:#bde2ff}.hero h1{font-size:34px;line-height:1.04;margin:7px 0 9px;letter-spacing:-1.2px;max-width:380px}.hero p{margin:0;line-height:1.45;color:#e6f4ff;font-weight:600;max-width:420px}
.progress-card{display:flex;gap:14px;align-items:center;background:rgba(255,255,255,.14);margin-top:20px;border-radius:18px;padding:12px 14px;backdrop-filter:blur(5px)}.progress-ring{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--yellow) var(--progress),rgba(255,255,255,.18) 0);font-weight:900;position:relative}.progress-ring:after{content:"";position:absolute;inset:5px;background:#155a96;border-radius:50%}.progress-ring span{z-index:1}.progress-copy b,.progress-copy small{display:block}.progress-copy small{color:#cde8fb;margin-top:2px}
.section-title{display:flex;align-items:end;justify-content:space-between;margin:20px 3px 11px}.section-title h2{font-size:21px;margin:0;letter-spacing:-.5px}.section-title small{color:#57738b;font-weight:700}
.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.mode{border:0;text-align:left;border-radius:23px;background:var(--card);padding:17px;box-shadow:0 8px 24px rgba(25,70,105,.11);min-height:145px;display:flex;flex-direction:column;justify-content:space-between;transition:.15s transform}.mode:active{transform:scale(.97)}.mode.wide{grid-column:1/-1;min-height:112px;flex-direction:row;align-items:center}.mode-icon{font-size:34px;width:55px;height:55px;display:grid;place-items:center;border-radius:18px;background:#e9f5ff}.mode:nth-child(2) .mode-icon{background:#fff3cc}.mode:nth-child(3) .mode-icon{background:#e5f8ec}.mode b{display:block;font-size:18px}.mode small{display:block;color:#62798c;font-weight:600;margin-top:3px;line-height:1.3}
.page-head{display:flex;align-items:center;gap:12px;margin:3px 0 13px}.page-head h1{font-size:25px;margin:0;letter-spacing:-.7px}.score-pill{margin-left:auto;background:white;border-radius:15px;padding:9px 12px;font-weight:900;box-shadow:0 4px 13px #b6d3e366}
.map-card{background:rgba(255,255,255,.92);border-radius:28px;padding:12px;box-shadow:var(--shadow);position:relative}.map-wrap{height:min(63dvh,650px);min-height:475px}.map-wrap svg{width:100%;height:100%;display:block;filter:drop-shadow(0 5px 5px rgba(20,70,100,.12))}.province{stroke:white;stroke-width:1.15;vector-effect:non-scaling-stroke;cursor:pointer;transition:fill .18s,opacity .18s}.province:active{filter:brightness(.9)}.province.muted{opacity:.28}.province.target{animation:pulse 1s infinite}.province.correct{fill:#43b875!important}.province.wrong{fill:#f2766b!important}.map-hint{text-align:center;color:#60788b;font-weight:700;font-size:13px;margin:6px 0 2px}
.sheet{position:fixed;z-index:5;left:12px;right:12px;bottom:calc(env(safe-area-inset-bottom) + 12px);max-width:650px;margin:auto;background:white;border-radius:27px;padding:20px;box-shadow:0 20px 60px rgba(10,40,70,.3);animation:rise .25s ease}.sheet-grab{width:45px;height:5px;border-radius:9px;background:#d7e1e8;margin:-8px auto 13px}.sheet h2{margin:0 0 5px;font-size:26px}.badge{display:inline-block;background:#e5f2ff;color:#135f9d;border-radius:99px;padding:5px 10px;font-weight:800;font-size:12px}.fact{font-size:16px;line-height:1.45;margin:13px 0 4px}.flower{font-weight:800;color:#43647d}
.quiz-card{background:white;border-radius:28px;padding:22px 18px;box-shadow:var(--shadow);margin-top:16px}.step{font-size:12px;text-transform:uppercase;color:#5b778e;letter-spacing:1.2px;font-weight:900}.quiz-card h2{font-size:25px;line-height:1.18;margin:10px 0 19px}.answers{display:grid;gap:10px}.answer{border:2px solid #dcecf7;background:#f8fcff;border-radius:18px;padding:15px;text-align:left;font-weight:800;font-size:17px}.answer:active{transform:scale(.985)}.answer.correct{border-color:#38a169;background:#e7f8ed}.answer.wrong{border-color:#e9635a;background:#fff0ee}.answer:disabled{color:inherit}.next{width:100%;border:0;border-radius:18px;background:var(--blue);color:white;padding:16px;font-weight:900;font-size:17px;margin-top:14px;box-shadow:0 7px 18px #1768ac55}.prompt{background:linear-gradient(135deg,#fff3bf,#ffe173);border-radius:23px;padding:17px;text-align:center;margin:12px 0;font-weight:900;font-size:21px;box-shadow:0 8px 18px #d6ad3155}.feedback{text-align:center;font-weight:900;min-height:26px;margin-top:12px}.result{text-align:center;background:white;border-radius:30px;padding:30px 22px;box-shadow:var(--shadow);margin-top:30px}.result .trophy{font-size:70px}.result h1{font-size:31px;margin:7px}.stars{font-size:43px;letter-spacing:5px}.primary{border:0;background:var(--blue);color:#fff;padding:16px 23px;border-radius:18px;font-weight:900;font-size:17px;box-shadow:0 8px 18px #1768ac44}.secondary{border:0;background:#e7f3fb;color:var(--blue);padding:14px 20px;border-radius:18px;font-weight:900;margin-top:10px}
#confetti{pointer-events:none;position:fixed;inset:0;z-index:20;overflow:hidden}.confetti{position:absolute;top:-20px;width:10px;height:18px;border-radius:3px;animation:fall 1.8s ease-in forwards}
@keyframes fall{to{transform:translate(var(--drift),105dvh) rotate(760deg)}}@keyframes rise{from{transform:translateY(110%)}to{transform:none}}@keyframes pulse{50%{filter:brightness(1.2) drop-shadow(0 0 6px #ffd84d)}}
@media(min-width:600px){.mode-grid{grid-template-columns:1fr 1fr 1fr}.mode.wide{grid-column:auto;min-height:145px;display:flex;flex-direction:column;align-items:stretch}.map-wrap{height:670px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
