:root{font-family:ui-rounded,system-ui,-apple-system,sans-serif;color:#172448;background:#e6f7ff}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:0;border-radius:16px;padding:12px 17px;font-weight:800;background:#ffcc36;color:#263151;box-shadow:0 4px 0 #d59b19}button:hover{filter:brightness(1.04)}button:disabled{opacity:.5;cursor:not-allowed}button.alt{background:#d7eaff;box-shadow:0 4px 0 #a5c6ed}button.pink{background:#ff9ec6;box-shadow:0 4px 0 #db71a0}input,select{border:2px solid #b4d4f5;border-radius:12px;padding:12px;background:white;max-width:100%}header{background:linear-gradient(115deg,#0d4caa,#23a5f5);color:white;padding:12px max(16px,calc((100vw - 1160px)/2));display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}header h1{margin:0;font-size:clamp(22px,4vw,34px);text-shadow:2px 3px #092c77}header button{padding:9px 12px}.wrap{max-width:1160px;margin:auto;padding:20px}.hero{border-radius:25px;min-height:245px;background:linear-gradient(90deg,#00449bbd,#00449b15),url('/assets/adventure.png') center 34%/cover;display:flex;align-items:end;padding:25px;color:white;box-shadow:0 8px 20px #4074b02c}.hero h2{font-size:clamp(28px,5vw,52px);margin:0;text-shadow:2px 3px #12397d}.hero p{font-size:18px;font-weight:700;text-shadow:1px 2px #12397d}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:17px;margin:20px 0}.card{border:3px solid #fff;border-radius:22px;background:#fff;box-shadow:0 6px 0 #a8d8ed;padding:20px}.card h3{margin:0 0 9px;font-size:22px}.card p{line-height:1.5}.tile{min-height:190px;background:linear-gradient(155deg,#fff4a2,#fff);display:flex;flex-direction:column;justify-content:space-between}.tile:nth-child(2){background:linear-gradient(155deg,#9cecff,#fff)}.tile:nth-child(3){background:linear-gradient(155deg,#ffc0dd,#fff)}.tile:nth-child(4){background:linear-gradient(155deg,#c9b8ff,#fff)}.big{font-size:45px}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.between{justify-content:space-between}.muted{color:#586884}.flag{font-size:65px}.choice{display:block;width:100%;margin:10px 0;text-align:left;background:#dceeff;box-shadow:0 4px 0 #a6c9ed}.choice.correct{background:#a5f2bc}.choice.wrong{background:#ffc0c0}.panel{background:#fff;border-radius:22px;padding:22px;margin:16px 0;box-shadow:0 5px 0 #b7dbec}.countrygrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:10px;margin-top:14px}.country{border-radius:14px;background:#f2f8ff;padding:12px;text-align:left;box-shadow:none;border:2px solid #d6e9fc}.country .emoji{font-size:29px}.map{height:480px;overflow:hidden;border-radius:20px;background:#102b5b;position:relative}.map #globe,.map #flat{width:100%;height:100%}.map .fallback{padding:30px;color:white}.profile{padding:15px;background:#e9f7ff;border-radius:18px;min-width:150px}.profile.active{outline:3px solid #ffbf2e}.auth{max-width:520px;margin:40px auto}.auth input{width:100%;margin:7px 0 14px}.notice{background:#fff5c6;border-radius:13px;padding:12px;margin:12px 0}.success{color:#16733c}.error{color:#b62343}.chip{display:inline-block;border-radius:30px;padding:6px 12px;background:#e0f0ff;margin:3px;font-weight:700}.progress{background:#cbe6fa;border-radius:30px;overflow:hidden;height:14px}.progress>div{height:100%;background:#42b77c}.footer{text-align:center;padding:24px;color:#586884}a{color:#1259a7}label{display:block;font-weight:700;margin-top:8px}@media(max-width:620px){.wrap{padding:12px}.hero{min-height:180px}.map{height:360px}.panel{padding:15px}.flag{font-size:52px}}

.story-card{border-color:#ffdb7a;background:linear-gradient(160deg,#fffefa,#f2faff)}.story-card .big{font-size:44px}.story-stop{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px dashed #b6d6e9;padding:9px 0}.story-stop button{padding:7px 12px;flex-shrink:0}.story-card .progress{margin-bottom:14px}@media(max-width:550px){.story-stop{font-size:13px}}

/* V12 accessibility and reduced-motion improvements */
:focus-visible{outline:4px solid #195db8;outline-offset:3px}button:disabled{opacity:.55;cursor:not-allowed} @media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}} @media(max-width:600px){.row{flex-wrap:wrap}button{min-height:44px}input,select{max-width:100%}}
/* V17: interactive silhouette detective and gently animated storybook hero */
.shape-stage{display:grid;place-items:center;min-height:265px;background:radial-gradient(circle at center,#e6f8ff,#b6e2ff);border:3px dashed #7eb4dd;border-radius:22px;margin:16px 0;padding:12px}
.shape-svg{width:min(100%,440px);max-height:245px;filter:drop-shadow(0 7px 2px #174a8b24)}
.shape-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.shape-choices .choice{margin:0;text-align:center}
.hero{animation:hero-appear .7s ease-out both}
@keyframes hero-appear{from{opacity:.4;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:540px){.shape-choices{grid-template-columns:1fr}}

/* V18 story challenges */
.story-challenge .big{font-size:3rem}.story-challenge #storyQuestion{margin-top:1rem}.story-challenge #storyContinue{margin:1rem 0}.story-challenge [hidden]{display:none!important}
