:root{--bg:#0b0d12;--panel:#121620;--panel2:#171c28;--text:#f6f2e9;--muted:#98a1b2;--line:rgba(255,255,255,.09);--gold:#d7b86a;--gold2:#f2d58a;--cyan:#67d9de;--good:#35c98b;--bad:#ff6674;--shadow:0 20px 70px rgba(0,0,0,.42)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}body{min-height:100svh;overflow-x:hidden;background:radial-gradient(circle at 15% -8%,rgba(103,217,222,.14),transparent 30rem),radial-gradient(circle at 100% 40%,rgba(215,184,106,.08),transparent 26rem),var(--bg)}button,input{font:inherit}.app-shell{width:min(100%,700px);margin:auto;min-height:100svh;padding:max(18px,env(safe-area-inset-top)) 18px max(28px,env(safe-area-inset-bottom))}.screen{min-height:calc(100svh - 46px);display:flex;flex-direction:column;animation:fade .18s ease both}@keyframes fade{from{opacity:.35;transform:translateY(5px)}to{opacity:1;transform:none}}.hero{padding:38px 2px 23px}.eyebrow,.label{font-size:9px;color:var(--cyan);font-weight:950;letter-spacing:.16em;text-transform:uppercase}.hero h1{font-size:clamp(46px,13vw,74px);line-height:.88;letter-spacing:-.06em;margin:10px 0 16px}.hero h1 span{display:block;color:var(--gold2)}.hero p{color:var(--muted);line-height:1.55;margin:0;max-width:48ch}.statline{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 0}.pill{border:1px solid var(--line);background:rgba(255,255,255,.025);border-radius:999px;padding:7px 10px;font-size:9px;color:var(--muted);font-weight:850}.pill b{color:var(--gold2)}.game-grid{display:grid;gap:10px}.game-card{border:1px solid var(--line);border-radius:22px;background:linear-gradient(145deg,#171c28,#10141d);padding:15px;display:grid;grid-template-columns:auto 1fr auto;gap:13px;align-items:center;color:var(--text);text-align:left;cursor:pointer;position:relative}.game-card:active{transform:scale(.99)}.game-icon{width:50px;height:50px;border-radius:16px;display:grid;place-items:center;background:#0c1119;border:1px solid rgba(103,217,222,.2);font-size:25px}.game-card strong{display:block;font-size:14px}.game-card small{display:block;color:var(--muted);font-size:10px;line-height:1.4;margin-top:4px}.game-card>b{font-size:23px;color:var(--gold2);font-weight:400}.online-badge{display:inline-flex;margin-top:6px;border:1px solid rgba(103,217,222,.32);background:rgba(103,217,222,.08);color:#8fe8ec;border-radius:999px;padding:4px 7px;font-size:8px;font-weight:950;letter-spacing:.08em}.section-kicker{margin:20px 0 9px;color:var(--gold);font-size:9px;font-weight:950;letter-spacing:.16em}.card{background:linear-gradient(160deg,#171d29,#10141d 58%,#131720);border:1px solid var(--line);border-radius:25px;padding:19px;box-shadow:var(--shadow);position:relative;overflow:hidden}.card h1,.card h2,.card h3{margin-top:0}.card p{color:var(--muted);line-height:1.5}.header{display:flex;align-items:center;gap:12px;margin:16px 0}.back{width:44px;height:44px;border-radius:14px;border:1px solid var(--line);background:var(--panel);color:var(--text);font-size:22px}.header h2{font-size:18px;margin:0}.header small{display:block;color:var(--muted);font-size:9px;margin-top:3px}.scorebar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;margin-bottom:12px}.scorebar b{font-size:22px}.scorebar .round{font-size:9px;color:var(--gold2);border:1px solid rgba(215,184,106,.23);border-radius:999px;padding:7px 10px;font-weight:900}.scorebar .right{text-align:right}.question{text-align:center}.question h2{font-size:clamp(23px,7vw,36px);line-height:1.1}.flag-stage{font-size:clamp(96px,31vw,176px);line-height:1;text-align:center;margin:12px 0 20px;filter:drop-shadow(0 16px 22px rgba(0,0,0,.3))}.map-stage{border:1px solid var(--line);background:#0b1018;border-radius:24px;padding:14px;margin:10px 0 17px;min-height:260px;display:grid;place-items:center}.map-stage svg{width:100%;max-height:280px}.language-stage{border:1px solid rgba(103,217,222,.25);background:rgba(103,217,222,.05);border-radius:23px;padding:23px;margin:14px 0}.language-stage blockquote{margin:0;font-size:clamp(22px,6vw,34px);line-height:1.35;font-weight:800;text-align:center}.choices{display:grid;gap:8px}.choice{border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:15px;padding:13px;text-align:left;font-weight:850}.choice:active{transform:scale(.99)}.choice.correct{border-color:rgba(53,201,139,.5);background:rgba(53,201,139,.1);color:#9aebc8}.choice.wrong{border-color:rgba(255,102,116,.5);background:rgba(255,102,116,.09);color:#ff9da6}.btn{border:0;border-radius:17px;padding:14px 17px;min-height:52px;font-weight:900;cursor:pointer}.btn-primary{background:linear-gradient(135deg,var(--gold2),#c79a42);color:#17130a}.btn-secondary{background:var(--panel2);color:var(--text);border:1px solid var(--line)}.btn-danger{background:rgba(255,102,116,.1);color:#ff9aa4;border:1px solid rgba(255,102,116,.25)}.actions{display:grid;gap:9px;margin-top:14px}.actions.two{grid-template-columns:1fr 1fr}.reveal{border:1px solid rgba(53,201,139,.28);background:rgba(53,201,139,.07);border-radius:22px;padding:18px;margin-top:14px}.reveal h2{margin:7px 0 6px}.muted{color:var(--muted)}.detective-history{display:grid;gap:7px;margin:12px 0}.qa{display:grid;grid-template-columns:1fr auto;gap:10px;border:1px solid var(--line);border-radius:14px;padding:10px 12px;background:#0d1118;font-size:11px}.qa b.yes{color:#8ee7c1}.qa b.no{color:#ff9ba4}.question-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.qbtn{border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:14px;padding:11px 9px;text-align:left;font-size:10px;font-weight:800}.qbtn[disabled]{opacity:.28}.candidate-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.flag-pick{border:1px solid var(--line);background:#0d1118;border-radius:14px;min-height:72px;font-size:37px;display:grid;place-items:center;position:relative}.flag-pick span{position:absolute;left:4px;right:4px;bottom:3px;font-size:6px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.flag-pick.faded{opacity:.2;filter:grayscale(1)}.flag-pick.wrong{opacity:.15}.known-strip{display:flex;gap:6px;flex-wrap:wrap}.known-flag{width:34px;height:34px;border:1px solid var(--line);border-radius:10px;background:#0d1118;display:grid;place-items:center;font-size:21px}.toast{position:fixed;z-index:99999;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));transform:translateX(-50%) translateY(15px);opacity:0;background:#1d2431;color:#fff;border:1px solid var(--line);border-radius:999px;padding:10px 14px;font-size:11px;font-weight:800;pointer-events:none;transition:.18s}.toast.show{opacity:1;transform:translateX(-50%)}
@media(max-width:430px){.app-shell{padding-left:13px;padding-right:13px}.hero{padding-top:27px}.question-grid{grid-template-columns:1fr}.candidate-grid{grid-template-columns:repeat(4,1fr)}.map-stage{min-height:225px}}

.flag-img{display:block;width:auto;height:auto;max-width:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}.flag-stage .flag-img{width:min(72vw,260px);max-height:190px;margin:0 auto}.flag-pick .flag-img{width:66px;max-width:88%;max-height:62px}.known-flag .flag-img{width:29px;max-height:28px}.known-flag{overflow:hidden}

.source-note{margin:14px 4px 0;color:var(--muted);font-size:8px;line-height:1.5;text-align:center;letter-spacing:.04em}

/* PO Atlas v1.5 — expanded game library */
.world-tour-card{width:100%;border:1px solid rgba(215,184,106,.28);background:linear-gradient(135deg,rgba(215,184,106,.10),rgba(103,217,222,.05));color:var(--text);border-radius:22px;padding:15px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:13px;text-align:left;cursor:pointer}.world-tour-card .tour-globe{width:50px;height:50px;border-radius:50%;display:grid;place-items:center;border:1px solid rgba(215,184,106,.32);font-size:28px;color:var(--gold2)}.world-tour-card b{display:block;font-size:15px}.world-tour-card small{display:block;color:var(--muted);font-size:9px;margin:4px 0 9px}.world-tour-card i,.continent-progress i{display:block;height:5px;border-radius:999px;background:rgba(255,255,255,.06);overflow:hidden}.world-tour-card i span,.continent-progress i span{display:block;height:100%;background:linear-gradient(90deg,var(--gold),var(--cyan));border-radius:inherit}.world-tour-card strong{font-size:23px;color:var(--gold2)}
.game-card em.online-badge{font-style:normal;width:max-content}.setup-card{text-align:center}.game-icon.big{width:64px;height:64px;margin:0 auto 15px;font-size:31px}.setup-card h1{font-size:clamp(23px,6vw,34px);line-height:1.12;margin:8px 0}.modifier-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.modifier-card{min-height:118px;border:1px solid var(--line);background:linear-gradient(150deg,var(--panel2),#0e121a);color:var(--text);border-radius:18px;padding:14px;text-align:left;cursor:pointer}.modifier-card>span{display:block;font-size:24px;color:var(--gold2);margin-bottom:8px}.modifier-card b{display:block;font-size:13px}.modifier-card small{display:block;color:var(--muted);font-size:9px;line-height:1.4;margin-top:5px}
.tour-summary{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:18px;padding:18px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(145deg,#171c28,#10141d)}.tour-summary h2{margin:6px 0;font-size:20px}.tour-summary p{margin:0;color:var(--muted);font-size:10px;line-height:1.5}.tour-ring{--p:0;width:92px;height:92px;border-radius:50%;display:grid;place-items:center;align-content:center;background:radial-gradient(circle at center,var(--panel) 57%,transparent 58%),conic-gradient(var(--gold2) calc(var(--p)*1%),rgba(255,255,255,.08) 0)}.tour-ring strong{font-size:23px}.tour-ring small{font-size:8px;color:var(--muted)}.continent-progress{display:grid;gap:9px;margin-top:13px}.continent-progress>div{border:1px solid var(--line);border-radius:15px;padding:10px 12px;background:rgba(255,255,255,.018)}.continent-progress>div>span{display:flex;justify-content:space-between;gap:10px;margin-bottom:7px}.continent-progress b{font-size:10px}.continent-progress small{font-size:9px;color:var(--muted)}.country-collection{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.collection-country{min-width:0;border:1px solid var(--line);background:#0d1118;border-radius:13px;padding:8px;display:flex;align-items:center;gap:7px}.collection-country .flag-img{width:28px;height:19px;object-fit:contain;flex:0 0 auto}.collection-country span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:8px;font-weight:850}.collection-country.locked{opacity:.28;filter:grayscale(1)}
.world-svg{width:100%;height:auto;touch-action:manipulation}.world-svg .ocean{fill:#08111a;stroke:rgba(255,255,255,.05)}.world-country{fill:#26313f;stroke:#0b0d12;stroke-width:.24;vector-effect:non-scaling-stroke}.world-country.hi{fill:#45566a}.world-country.start,.world-dot.start{fill:var(--cyan)}.world-country.target,.world-dot.target{fill:var(--gold2)}.world-country.route{fill:#5d7188}.world-country.clickable,.world-dot.clickable{cursor:pointer}.world-country.clickable:active{fill:var(--gold2)}.world-dot{fill:#718096;stroke:#0b0d12;stroke-width:.55}.route-line{fill:none;stroke:var(--gold2);stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:3 2;filter:drop-shadow(0 0 2px rgba(215,184,106,.4))}.world-svg.fog .world-country{fill:#202834}.world-svg.fog .world-country.hi{fill:#202834}.world-svg.fog .world-dot:not(.start):not(.target){opacity:.7}.interactive-map{padding:8px;min-height:220px}.map-hint{font-size:9px!important;margin:8px 0 0!important}.silhouette-main{min-height:240px}.silhouette-svg{width:100%;max-height:245px}.silhouette-svg path{fill:var(--gold2);stroke:rgba(255,255,255,.12);stroke-width:1}.silhouette-svg.small{height:112px}.silhouette-svg.small path{fill:#d9e0e8}
.answer-form{border:1px solid var(--line);background:var(--panel);border-radius:18px;padding:12px;margin-top:10px}.answer-form label{display:block;color:var(--muted);font-size:9px;font-weight:900;letter-spacing:.08em;margin-bottom:8px}.answer-row{display:grid;grid-template-columns:1fr auto;gap:8px}.answer-row input{width:100%;min-width:0;min-height:52px;background:#090d14;border:1px solid var(--line);border-radius:14px;color:var(--text);padding:0 13px;font-size:16px;outline:none}.answer-row input:focus{border-color:rgba(103,217,222,.45)}.answer-row .btn{min-width:92px}.next-btn{width:100%;margin-top:10px}
.visual-choice-grid,.silhouette-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}.visual-choice,.sil-choice{min-height:115px;border:1px solid var(--line);border-radius:17px;background:var(--panel);display:grid;place-items:center;padding:10px;color:var(--text)}.visual-choice .flag-img{width:100%;max-height:80px}.visual-choice.correct,.sil-choice.correct{border-color:rgba(53,201,139,.6);background:rgba(53,201,139,.1)}.visual-choice.wrong,.sil-choice.wrong{border-color:rgba(255,102,116,.55);background:rgba(255,102,116,.09)}.flag-crop{width:min(76vw,300px);height:150px;margin:10px auto 20px;border-radius:21px;overflow:hidden;border:1px solid var(--line);background:#0b1018;position:relative}.flag-crop>div{position:absolute;width:245%;height:245%;left:-55%;top:-62%;display:grid;place-items:center}.flag-crop .flag-img{width:100%;height:100%;object-fit:cover}.small-flag .flag-img{width:min(46vw,170px);max-height:115px}.fact-glyph{font-size:62px;color:var(--gold2);line-height:1;margin:10px 0 17px}.code-stage{display:grid;place-items:center;min-height:150px;font-size:clamp(58px,18vw,96px);font-weight:950;letter-spacing:-.06em;color:var(--gold2)}.landmark-stage{padding:10px 0}.landmark-stage>span{font-size:56px;color:var(--gold2)}.landmark-stage h2{margin:7px 0;font-size:30px}.landmark-stage p{margin:0}.versus{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;margin:8px 0 22px}.versus>span{min-width:0;display:grid;gap:8px;place-items:center}.versus .flag-img{width:100%;max-width:120px;max-height:80px}.versus b{font-size:11px;text-align:center}.versus i{font-style:normal;font-size:13px;font-weight:950;color:var(--muted)}.anchor-country{display:grid;place-items:center;gap:9px;margin:8px 0 20px}.anchor-country .flag-img{width:min(46vw,180px);max-height:110px}.anchor-country b{font-size:18px}.coord-stage{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:15px 0 25px}.coord-stage b{font-size:clamp(24px,8vw,38px);color:var(--gold2);background:#0b1018;border:1px solid var(--line);border-radius:16px;padding:13px 15px}
.route-head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin-bottom:10px}.route-head>span{min-width:0;display:grid;place-items:center;gap:6px}.route-head .flag-img{width:74px;height:48px}.route-head b{font-size:10px;text-align:center}.route-head i{font-style:normal;font-size:26px;color:var(--gold2)}.route-map{min-height:230px;padding:7px}.route-card{box-shadow:none}.route-card h2{margin:7px 0}.route-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:12px}.route-chips span{border:1px solid var(--line);background:#0b1018;border-radius:999px;padding:6px 8px;font-size:8px;font-weight:850}.route-message{margin-top:12px;padding:9px 11px;border-radius:12px;font-size:9px;font-weight:800}.route-message.bad{background:rgba(255,102,116,.09);border:1px solid rgba(255,102,116,.25);color:#ff9da6}.route-message.good{background:rgba(53,201,139,.08);border:1px solid rgba(53,201,139,.24);color:#9aebc8}.route-undo{width:100%;margin-top:8px}.route-reveal h2{font-size:15px;line-height:1.45}.route-reveal p{font-size:10px}.result-card{text-align:center;margin:auto 0}.result-card>h1{font-size:68px;color:var(--gold2);margin:9px 0}.result-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:20px 0}.result-metrics span{border:1px solid var(--line);border-radius:15px;background:#0c1119;padding:12px 5px}.result-metrics b{display:block;font-size:22px}.result-metrics small{display:block;color:var(--muted);font-size:7px;margin-top:4px;letter-spacing:.08em}
@media(max-width:430px){.modifier-grid{grid-template-columns:1fr}.country-collection{grid-template-columns:repeat(2,1fr)}.answer-row{grid-template-columns:1fr}.answer-row .btn{width:100%}.visual-choice-grid,.silhouette-grid{gap:7px}.tour-summary{grid-template-columns:1fr;text-align:center}.tour-ring{margin:auto}.route-head .flag-img{width:62px;height:42px}}
