:root{color-scheme:dark;--bg:#08172e;--panel:#102545;--panel2:#153050;--line:#ffffff1d;--text:#eff8ff;--muted:#9cb6d1;--teal:#29cabc;--gold:#ffc65f}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:radial-gradient(ellipse at 14% 5%,#184873 0%,transparent 39%),radial-gradient(ellipse at 90% 22%,#1c385c 0%,transparent 33%),var(--bg);font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:var(--text)}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}a{color:var(--teal)}#root{min-height:100dvh}.ch-shell{max-width:1600px;margin:auto;padding:0 max(16px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}.ch-header{height:86px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #ffffff17}.ch-logo{background:none;border:0;font-size:26px;letter-spacing:-.8px;font-weight:850;color:#f2fafc;white-space:nowrap}.ch-logo span{margin-right:10px}.ch-logo b{color:#ffbc4d}.ch-header nav{display:flex;gap:8px}.ch-header nav button{color:#c6d7eb;background:#142947;border:1px solid #34516c;border-radius:14px;padding:12px 15px;font-size:14px;font-weight:700}.ch-header nav button.active{color:#062b37;background:#38cfbf;border-color:#38cfbf}.ch-header-hint{font-size:14px;color:#acc3dd}.ch-content{padding-top:24px}.ch-explorer{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(340px,1fr);gap:20px;align-items:stretch}.ch-map-card,.ch-panel{background:linear-gradient(150deg,#142c4c,#0c213e);border:1px solid #41648a64;border-radius:24px;box-shadow:0 20px 55px #010c1d65;overflow:hidden}.ch-map-card{padding:20px}.ch-map-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 6px 10px}.ch-kicker{font-size:11px;letter-spacing:1.7px;color:#4ad9c9;font-weight:850}.ch-map-heading h2{font-size:clamp(24px,2.7vw,36px);margin:5px 0;color:#f6fcff}.ch-chip{border-radius:100px;font-size:12px;background:#237c8b45;border:1px solid #45b0bb45;padding:9px;color:#a3e3e6}.ch-search{position:relative;margin:6px 6px 12px;z-index:12}.ch-search>input{width:100%;max-width:440px;padding:12px 18px;border-radius:14px;border:1px solid #497292;background:#091c33ef;color:#f7ffff;outline:none}.ch-search>input:focus{border-color:#40d7c6}.ch-search-results{position:absolute;top:48px;left:0;width:min(100%,440px);max-height:250px;overflow:auto;background:#153452;border-radius:13px;border:1px solid #5184a5;box-shadow:0 15px 35px #000b;z-index:30}.ch-search-results button{display:block;width:100%;text-align:left;padding:11px 14px;background:none;border:0;color:#fff}.ch-search-results button:hover{background:#235676}.ch-map-stage{height:clamp(460px,68vh,790px);position:relative;overflow:hidden;border-radius:20px;background:radial-gradient(ellipse at center,#205f8b 0%,#0e365c 55%,#06182f 100%);touch-action:none}.ch-map-stage:before{content:'';position:absolute;inset:0;background-image:radial-gradient(#b7fff65a 1px,transparent 1px);background-size:47px 47px;opacity:.15;pointer-events:none}.ch-map-stage canvas{position:relative;display:block;cursor:grab;touch-action:none}.ch-map-stage canvas:active{cursor:grabbing}.ch-map-actions{position:absolute;z-index:10;top:14px;left:14px;right:14px;display:flex;justify-content:space-between;pointer-events:none;gap:8px}.ch-map-tabs,.ch-map-tools{display:flex;gap:6px;pointer-events:auto;padding:5px;border-radius:14px;background:#092442d9;border:1px solid #ffffff26;backdrop-filter:blur(12px)}.ch-map-actions button{border:0;background:none;border-radius:9px;padding:10px 13px;color:#d6e8f9;font-size:13px;font-weight:750}.ch-map-actions button.active,.ch-map-actions button:hover{background:#29cabc;color:#0a2938}.ch-map-tools button{font-size:21px;line-height:18px;padding:10px 12px}.ch-map-foot{position:absolute;z-index:5;left:14px;right:14px;bottom:13px;display:flex;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:11px;background:#031e36b8;color:#b9d7ea;font-size:12px;pointer-events:none}.ch-tooltip{position:absolute;z-index:18;max-width:200px;min-width:150px;padding:12px 14px;background:#f2fcff;color:#203650;border-radius:14px;box-shadow:0 12px 35px #0008;pointer-events:none;font-size:13px}.ch-tooltip small{color:#48657b}.ch-flat,.ch-flat svg{width:100%;height:100%;touch-action:none}.ch-land{fill:#5cbfa7;stroke:#d2fff1;stroke-width:.7;cursor:pointer;vector-effect:non-scaling-stroke}.ch-land:not(.playable){fill:#7ca7a7}.ch-land:hover,.ch-land.selected{fill:#ffcd6a;stroke:#fff5cc;stroke-width:2}.ch-marker{cursor:pointer;fill:#ffcf61;stroke:#16385b;stroke-width:1.5}.ch-detail-inner{padding:26px;height:100%;min-height:600px}.ch-country-top{display:flex;align-items:center;gap:15px}.ch-flag{height:72px;width:80px;display:grid;place-items:center;background:#ffffff12;border-radius:18px;font-size:46px;flex-shrink:0}.ch-country-top h2{font-size:clamp(23px,2.2vw,32px);margin:4px 0}.ch-country-top small{color:var(--muted)}.ch-statrow{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:26px;margin-bottom:16px}.ch-statrow div{background:#21405c;border:1px solid #ffffff15;border-radius:13px;padding:14px 8px;text-align:center}.ch-statrow b{display:block;font-size:22px;color:#fff}.ch-statrow span{font-size:11px;color:#a9c3d9}.ch-progress{height:9px;background:#31526c;border-radius:30px;overflow:hidden}.ch-progress i{height:100%;display:block;background:linear-gradient(90deg,#22d8ad,#63e7e0);border-radius:30px;transition:width .3s}.ch-medals{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px;padding:15px 0 20px}.ch-medals span{font-size:12px;opacity:.42}.ch-medals .earned{opacity:1}.ch-btn{border:none;border-radius:12px;background:linear-gradient(110deg,#21c8b2,#49dcc6);color:#092c3c;font-weight:850;padding:13px 17px;box-shadow:0 5px 16px #07bead2b;margin:4px 3px 4px 0;min-height:45px}.ch-btn:hover{filter:brightness(1.07)}.ch-btn.ghost{background:#23435c;color:#d9f4fa;box-shadow:none}.ch-btn.muted{opacity:.6}.ch-country-cta .ch-btn{width:100%}.ch-country-cta small{color:#efc98a}.ch-section-head{display:flex;align-items:center;justify-content:space-between;margin:19px 0 11px;gap:10px}.ch-section-head h3{margin:0;font-size:18px}.ch-section-head small,.ch-muted{color:var(--muted)}.ch-city-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ch-city{display:flex;align-items:center;gap:9px;text-align:left;background:#1c3a56;border:1px solid #37627e;border-radius:13px;padding:10px;color:#e8f7fe;min-height:61px}.ch-city:hover,.ch-city.active{border-color:#49ddcd;background:#25536b}.ch-city>b,.ch-city span:nth-child(2){flex:1;min-width:0}.ch-city b{display:block;font-size:13px}.ch-city small{font-size:10px;color:#a5c0d5;display:block;margin-top:3px}.ch-tip{font-size:12px;line-height:1.6;color:#9bb8cc}.ch-city-detail{margin-top:20px;padding:18px;background:linear-gradient(135deg,#133e57,#18304c);border:1px solid #4b91a565;border-radius:18px}.ch-city-detail h3{margin:6px 0 15px;font-size:21px}.ch-fact{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #ffffff1b;padding:12px 0;font-size:12px}.ch-fact span{color:#aec6d9}.ch-fact b{text-align:right}.ch-city-detail>small{display:block;color:#91baca;line-height:1.6;margin:14px 0}.ch-current{color:#60e5b3;font-weight:700}.ch-panel.ch-center,.ch-quiz,.ch-passport,.ch-profile{max-width:1000px;margin:0 auto;padding:32px}.ch-center{text-align:center}.ch-hero-icon{font-size:65px}.ch-quiz{max-width:740px}.ch-quiz h2{font-size:clamp(22px,3vw,33px)}.ch-quiz-art{font-size:44px;text-align:center;background:#15385d;border-radius:17px;padding:28px;margin:17px 0}.ch-choices{display:grid;gap:10px;margin:22px 0}.ch-choices button{border:1px solid #3e6380;background:#1b3b5b;color:#f3fcff;border-radius:13px;min-height:55px;padding:12px;text-align:left;display:flex;align-items:center;gap:13px}.ch-choices button.picked{border-color:var(--teal);background:#0c646b}.ch-choices b{background:#315770;padding:9px 12px;border-radius:9px}.ch-feedback{padding:16px;background:#704d35;border-radius:13px;margin:13px 0}.ch-feedback.correct{background:#1b635c}.ch-passport-cover{max-width:380px;margin:5px auto 30px;background:linear-gradient(140deg,#12264f,#27528a);border:5px double #e2b969;border-radius:18px;text-align:center;padding:35px 15px;box-shadow:12px 12px 18px #010d2080;color:#fcd778}.ch-passport-cover>div{font-size:72px;margin:18px}.ch-passport-cover h2{color:#f7e5a2}.ch-passport-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:12px}.ch-passport-grid article{padding:18px;text-align:center;background:#1d3c5e;border-radius:15px}.ch-passport-grid article span{font-size:39px}.ch-passport-grid small{display:block;margin-top:12px;color:#bfd3e4}.ch-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.ch-profile-grid section{background:#1a3556;padding:19px;border-radius:14px}.ch-field{display:block;font-size:13px;font-weight:750;margin:12px 0;color:#b8d4e5}.ch-field input{display:block;width:100%;padding:13px 14px;background:#081b32;color:#fff;border:1px solid #4c6780;border-radius:11px;margin-top:6px;outline:none}.ch-field input:focus{border-color:#3cd9c6}.ch-check{display:flex;align-items:center;gap:8px;margin:12px 0;color:#b2c8db;font-size:12px}.ch-check input{accent-color:var(--teal)}.ch-qr{max-width:190px;margin:12px}.ch-device{display:flex;align-items:center;gap:7px;padding:12px 0;border-bottom:1px solid #ffffff1a;font-size:12px}.ch-device button{margin-left:auto;border:0;border-radius:10px;background:#365576;color:white;padding:8px}.ch-actions{padding-top:22px}.ch-login-layout{display:grid;grid-template-columns:1.2fr minmax(310px,430px);max-width:1200px;margin:0 auto;min-height:calc(100dvh - 120px);align-items:center;gap:50px;padding:20px}.ch-login-intro h1{font-size:clamp(35px,5.4vw,75px);letter-spacing:-2px;line-height:1.1;margin:15px 0}.ch-login-intro em{font-style:normal;color:var(--gold)}.ch-login-intro p{font-size:19px;color:#bbd3e2;line-height:1.65;max-width:560px}.ch-emojis{font-size:52px;margin-top:45px;letter-spacing:15px}.auth-card{padding:28px}.auth-card h2{font-size:26px}.auth-card p,.auth-card>small{color:#a8c1d4;line-height:1.6}.ch-auth-icon{font-size:40px}.ch-captcha{margin:15px 0;min-height:55px}.ch-auth-links{display:flex;flex-wrap:wrap}.ch-auth-links .ch-btn{font-size:12px;padding:9px}.ch-notice{padding:14px 17px;margin-top:16px;background:#155a54;border:1px solid #3cab9f;border-radius:14px}.ch-notice.error{background:#642f36;border-color:#bd6272}.ch-notice span{float:right}.ch-tutorial{position:fixed;z-index:40;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(430px,calc(100vw - 24px));background:#f5fdff;color:#203b57;padding:18px 20px;border:2px solid #39dbc5;border-radius:18px;box-shadow:0 15px 60px #0009;max-height:40dvh;overflow:auto}.ch-tutorial small{color:#078a8b;font-weight:800}.ch-tutorial h3{margin:8px 0}.ch-tutorial p{line-height:1.5}.ch-tutorial .ghost{background:#dcebf1;color:#1a5365}.ch-flight{position:fixed;inset:0;z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;background:linear-gradient(150deg,#0c4b82,#3aa3ba,#ffd995);text-align:center}.ch-plane{font-size:110px;animation:chFly 12s linear forwards}.ch-flight-cloud{font-size:60px;animation:chSway 3s ease-in-out infinite}.ch-flight h1{font-size:50px;margin:5px}.ch-flight-progress{width:min(80vw,450px);height:12px;border:2px solid #fff;border-radius:10px;overflow:hidden}.ch-flight-progress i{height:100%;display:block;background:#28e6b9;animation:chProgress 12s linear forwards}.ch-flight p{color:#f6ffff}@keyframes chFly{from{transform:translate(-220px,60px) rotate(-15deg)}to{transform:translate(240px,-75px) rotate(5deg)}}@keyframes chSway{50%{transform:translateY(-18px)}}@keyframes chProgress{from{width:0}to{width:100%}}@media(max-width:1090px){.ch-explorer{grid-template-columns:1fr}.ch-detail-inner{min-height:0}.ch-map-stage{height:58dvh;min-height:430px}.ch-city-list{grid-template-columns:repeat(4,1fr)}}@media(max-width:700px){.ch-header{height:auto;min-height:72px;flex-wrap:wrap;padding:12px 0}.ch-logo{font-size:22px}.ch-header nav{width:100%;justify-content:space-between;gap:3px}.ch-header nav button{padding:10px 8px;font-size:11px}.ch-map-card{padding:10px;border-radius:16px}.ch-map-heading{align-items:flex-start;flex-direction:column}.ch-map-heading h2{font-size:25px}.ch-chip{font-size:10px}.ch-map-stage{height:51dvh;min-height:370px;border-radius:14px}.ch-map-actions{top:8px;left:7px;right:7px}.ch-map-actions button{padding:9px;font-size:11px}.ch-map-foot{font-size:10px;left:6px;right:6px;bottom:5px}.ch-map-foot span:last-child{display:none}.ch-detail-inner{padding:17px}.ch-city-list{grid-template-columns:1fr 1fr}.ch-login-layout{grid-template-columns:1fr;gap:15px;min-height:0;padding:30px 0}.ch-login-intro h1{font-size:38px}.ch-login-intro p{font-size:15px}.ch-emojis{font-size:28px;letter-spacing:4px;margin:10px}.ch-profile-grid{grid-template-columns:1fr}.ch-panel.ch-center,.ch-quiz,.ch-passport,.ch-profile{padding:20px}.ch-tutorial{bottom:max(10px,env(safe-area-inset-bottom))}}@media(prefers-reduced-motion:reduce){.ch-plane,.ch-flight-progress i,.ch-flight-cloud{animation-duration:.01ms!important}}

/* v4 progressive cities and accessible map */
.ch-marker-locked{opacity:.48}.ch-marker-locked circle:first-child{fill:#54728a;stroke:#99bbd5;stroke-dasharray:2 2}.ch-city.locked{border-style:dashed;opacity:.73}.ch-city.locked:hover,.ch-city.locked.active{opacity:1;border-color:#d6a75d}.ch-unlock-hint{color:#b6d4e5;font-size:12px;line-height:1.6;margin:-2px 0 13px}.ch-lock-note{font-size:12px;line-height:1.5;color:#f3c987;background:#62482b55;border:1px solid #c99d604d;border-radius:10px;padding:10px}.ch-map-stage canvas{touch-action:none;cursor:grab}.ch-map-stage canvas:active{cursor:grabbing}.ch-flat svg{cursor:grab}.ch-flat svg:active{cursor:grabbing}

.ch-country-discovery{padding:13px 15px;margin-top:14px;border:1px solid #456b7c;border-radius:14px;background:#19374a}.ch-country-discovery .ch-fact{align-items:flex-start}.ch-country-discovery .ch-fact b{max-width:58%}

/* ClueHorizon v5 — choix de ville, limites régionales et lisibilité */
.ch-start-tip{padding:13px 15px;margin:13px 0;border-radius:13px;background:linear-gradient(130deg,#124f64,#194363);border:1px solid #3cc9bd80;color:#d1f9f2;font-size:13px;line-height:1.5}
.ch-admin-line{pointer-events:none;fill:none;stroke:rgba(235,255,244,.48);stroke-width:.8;vector-effect:non-scaling-stroke}
.ch-map-stage{background:radial-gradient(ellipse at 52% 40%,#246b86 0%,#0e335a 55%,#06182f 100%)}
.ch-map-stage:before{background-image:radial-gradient(#adf9ff55 .8px,transparent .8px);background-size:36px 36px;opacity:.22}
.ch-city.active{border-color:#f9d17b!important;box-shadow:0 0 0 2px #edb94b44;background:#2c5068}
.ch-admin-tools{margin:12px 0;padding:11px 14px;background:#0c2b46;border:1px solid #3b5f7d;border-radius:12px;font-size:13px}
.ch-admin-tools summary{cursor:pointer;font-weight:750;color:#e5f8ff}
.ch-admin-tools p{line-height:1.5;color:#b4cde0}
@media(max-width:700px){.ch-map-stage{min-height:420px}.ch-start-tip{font-size:12px}}

.ch-coast-line{pointer-events:none;fill:none;stroke:rgba(224,255,233,.58);stroke-width:.85;vector-effect:non-scaling-stroke}

/* ClueHorizon v6: visible country outlines and verified reset workflow */
.ch-land{stroke:#eafff5!important;stroke-width:1.2!important;stroke-opacity:.94;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.ch-land:not(.playable){fill:#779eaa}
.ch-land.playable{fill:#75c4a7}
.ch-land:hover,.ch-land.selected{stroke:#ffe18e!important;stroke-width:2.8!important;fill:#e5b95f}
.ch-flag{font-family:system-ui,'Apple Color Emoji','Segoe UI Emoji',sans-serif;font-size:43px}
.ch-reset-zone{padding:20px 22px;border:1px solid #a9736875;background:#482b3440;border-radius:16px;margin-top:24px}
.ch-reset-zone h3{margin:0 0 8px}.ch-reset-zone p{color:#c9ccd6;font-size:13px;line-height:1.6}
.ch-reset-confirm{padding:14px;background:#381e2b;border:1px solid #cb8673;border-radius:12px;margin-top:12px}
.ch-btn.danger{background:#d85c66;color:#fff;box-shadow:none}
.ch-marker-locked{opacity:.55}

/* v7 — globe only, legible borders and responsive controls */
.ch-map-tabs{min-width:0;display:flex;align-items:center;padding:0 12px;height:42px;border-radius:12px;backdrop-filter:blur(10px)}
.ch-globe-label{font-size:13px;font-weight:750;color:#e2f9ff;white-space:nowrap}
.ch-map-stage{background:radial-gradient(ellipse at center,#173c68 0%,#0e2545 72%,#09182f 100%)}
#worldGlobe{touch-action:none;cursor:grab}
#worldGlobe:active{cursor:grabbing}
@media(max-width:650px){.ch-globe-label{font-size:11px}.ch-map-tabs{height:38px;padding:0 9px}}

/* v8 — clear country-of-origin selection and restored province/state boundaries */
.ch-starter-picker{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:14px 0;padding:12px 14px;background:rgba(32,188,186,.09);border:1px solid rgba(87,217,217,.36);border-radius:15px}
.ch-starter-picker>div:first-child{display:grid;gap:4px}.ch-starter-picker b{font-size:14px;color:#e4fbfa}.ch-starter-picker small{font-size:12px;color:#a7c7d8}
.ch-starter-choices{display:flex;flex-wrap:wrap;gap:8px}.ch-starter-option{border:1px solid rgba(143,207,228,.45);background:#102f4d;color:#f2fcff;border-radius:11px;padding:10px 13px;font-weight:750;cursor:pointer;white-space:nowrap}
.ch-starter-option:hover,.ch-starter-option:focus-visible{border-color:#72eddf;outline:none}.ch-starter-option.chosen{background:#25bfb5;color:#08283c;border-color:#82fff3;box-shadow:0 0 0 2px rgba(67,232,214,.18)}
@media(max-width:720px){.ch-starter-picker{align-items:stretch;flex-direction:column}.ch-starter-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.ch-starter-option{padding:10px 5px;font-size:12px}}
