:root{--ink:#183b35;--muted:#71827c;--line:#e2e7df;--paper:#f5f5f2;--white:#fff;--green:#28694f;--green2:#dcebe1;--gold:#c29a55;--soft:#eef1e9;--shadow:0 24px 70px #1b41300c}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif;min-height:100vh}.topbar{height:76px;padding:0 clamp(20px,6vw,100px);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dfe5dc;background:#f8f8f5}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink);font:800 13px Manrope,sans-serif;letter-spacing:.19em}.brand-mark{width:31px;height:31px;border-radius:10px;background:var(--ink);color:#eef2df;display:grid;place-items:center;font:700 19px Georgia}.top-actions{display:flex;align-items:center;gap:25px}.eyebrow,.eyebrow{font-size:9px;letter-spacing:.17em;color:#87958c;font-weight:700}.language{border:1px solid var(--line);background:transparent;border-radius:99px;padding:10px 15px;color:var(--ink);font-weight:700;cursor:pointer}.shell{max-width:1260px;margin:auto;padding:34px 28px 64px}.hero{text-align:center;padding:35px 0 28px}.kicker{display:flex;gap:9px;align-items:center;justify-content:center;color:var(--gold);font-size:10px;font-weight:700;letter-spacing:.18em;text-transform:uppercase}.kicker:before,.kicker:after{content:'';width:22px;height:1px;background:#d3bd95}.hero h1{font:500 clamp(42px,6.2vw,78px)/1.04 Manrope,sans-serif;letter-spacing:-.065em;margin:22px 0 12px;color:#173c34}.hero p{margin:0 auto;max-width:510px;color:#71827c;font-size:15px;line-height:1.7}.map-card{background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);padding:16px 22px 10px;position:relative;overflow:hidden}.map-head{display:flex;justify-content:space-between;align-items:center;padding:0 5px 10px}.map-head h2,.section-title{font:700 12px Manrope,sans-serif;letter-spacing:.08em;text-transform:uppercase;margin:0}.map-head span{font-size:11px;color:var(--muted)}.world-map{width:100%;display:block;height:auto}.country{fill:#e8ece6;stroke:#fff;stroke-width:.55;vector-effect:non-scaling-stroke;transition:fill .2s,filter .2s;cursor:default}.country.active{fill:#d9e9df;cursor:pointer}.country.active:hover,.country.active:focus{fill:#b9d6c2;filter:drop-shadow(0 1px 2px #1b413033);outline:none}.country.done-1{fill:#d9e9df}.country.done-2{fill:#b9d6c2}.country.done-3{fill:#8fbea0}.country.done-4{fill:#548d69}.country.done-5{fill:#28694f}.map-label{font:600 10px 'DM Sans',sans-serif;fill:#315b4c;pointer-events:none}.map-label.japan{font-size:8px}.map-wrap{position:relative}.map-credit{font-size:9px;color:#9aa59d;text-align:right;padding:2px 8px 4px}.legend{display:flex;gap:16px;flex-wrap:wrap;justify-content:center;margin:17px auto 0;color:#788780;font-size:10px}.legend span{display:flex;align-items:center;gap:6px}.dot{width:9px;height:9px;border-radius:50%;background:#d9e9df}.dot.lock{background:#e8ece6}.section-row{display:flex;justify-content:space-between;align-items:end;margin:38px 2px 15px}.section-title{font-size:11px}.section-note{font-size:11px;color:#87958c}.country-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.country-card{position:relative;text-align:left;border:1px solid var(--line);background:#fff;border-radius:17px;padding:19px 20px;min-height:119px;cursor:pointer;transition:.2s;box-shadow:0 8px 26px #1b413008;color:var(--ink)}.country-card:hover{transform:translateY(-2px);border-color:#b6cbbb;box-shadow:0 15px 35px #1b413013}.country-card .flag{font-size:24px}.country-card .name{font:700 15px Manrope,sans-serif;margin-top:11px}.country-card .meta{font-size:11px;color:#839088;margin-top:4px}.country-card .arrow{position:absolute;right:18px;top:18px;color:#9aac9f}.country-card.locked{opacity:.48;cursor:default}.progress-section{margin-top:38px;background:#e9eee8;border-radius:18px;padding:20px 22px;display:flex;justify-content:space-between;align-items:center;gap:20px}.progress-section h3{font:700 13px Manrope;margin:0 0 5px}.progress-section p{margin:0;font-size:11px;color:#71827c}.progress-badge{font:600 11px Manrope;color:var(--green);background:white;border-radius:99px;padding:10px 14px;white-space:nowrap}.bottom-note{text-align:center;font-size:10px;color:#a0aaa2;margin:24px 0 0}.footer{border-top:1px solid #e1e6de;margin:0 auto;max-width:1260px;padding:23px 28px 34px;display:flex;justify-content:space-between;color:#9aa49c;font-size:9px;letter-spacing:.1em}.footer span:last-child{letter-spacing:0}.quiz-shell{max-width:880px;margin:22px auto 0}.back{border:0;background:none;color:#73827a;padding:8px 0;cursor:pointer;font:600 12px 'DM Sans'}.quiz-top{display:flex;justify-content:space-between;align-items:center;margin:25px 0 18px}.quiz-country{font:700 12px Manrope}.step{font-size:11px;color:var(--muted)}.progress-track{height:4px;background:#e4e9e2;border-radius:6px;margin-bottom:36px;overflow:hidden}.progress-fill{height:100%;width:10%;background:var(--green);transition:width .25s}.question-card{background:white;border:1px solid var(--line);border-radius:21px;padding:clamp(24px,5vw,48px);box-shadow:var(--shadow)}.question-number{font:700 10px Manrope;color:#aa8c58;letter-spacing:.16em;text-transform:uppercase}.question-card h1{font:600 clamp(25px,4vw,38px)/1.25 Manrope,sans-serif;letter-spacing:-.04em;margin:20px 0 31px;max-width:720px}.options{display:grid;gap:11px}.option{width:100%;display:flex;align-items:center;gap:14px;text-align:left;border:1px solid #e3e8e1;background:#fff;color:var(--ink);border-radius:13px;padding:15px 17px;font:500 14px/1.45 'DM Sans';cursor:pointer;transition:.15s}.option:hover:not(:disabled){border-color:#91b39a;background:#f8faf7}.option:disabled{cursor:default}.option-key{width:25px;height:25px;border:1px solid #dfe5dc;border-radius:50%;display:grid;place-items:center;color:#8b9991;font-size:10px;flex:0 0 auto}.option.correct{border-color:#85b794;background:#edf6ee}.option.correct .option-key{background:var(--green);border-color:var(--green);color:white}.option.wrong{border-color:#d8a09a;background:#fff4f2}.option.wrong .option-key{background:#b45a50;border-color:#b45a50;color:white}.feedback{margin-top:22px;padding:18px 19px;border-radius:13px;background:#f2f5ef;line-height:1.65;color:#4c6558;font-size:13px}.feedback strong{display:block;font:700 11px Manrope;color:var(--green);margin-bottom:6px}.feedback .source{display:block;margin-top:9px;color:#8a978e;font-size:10px}.next-row{display:flex;justify-content:space-between;align-items:center;margin-top:19px}.score-mini{color:#829088;font-size:11px}.primary{background:var(--ink);color:white;border:0;border-radius:99px;padding:13px 22px;font:700 12px Manrope;cursor:pointer}.primary:hover{background:#255b48}.primary:disabled{opacity:.35;cursor:not-allowed}.summary-head{text-align:center;padding:28px 0}.score-big{font:500 clamp(70px,12vw,116px)/1 Manrope;letter-spacing:-.08em;color:var(--green);margin:10px 0}.summary-head p{color:var(--muted)}.summary-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:23px;margin:19px 0}.summary-card h2{font:700 14px Manrope;margin:0 0 15px}.review-row{border-top:1px solid #eef0eb;padding:13px 0;font-size:12px;line-height:1.5}.review-row .answer{color:#54805d;margin-top:4px}.summary-actions{display:flex;gap:10px;justify-content:center;margin:22px 0}.secondary{background:white;border:1px solid var(--line);color:var(--ink);border-radius:99px;padding:12px 19px;font:600 12px Manrope;cursor:pointer}.map-progress-list{display:flex;gap:8px;flex-wrap:wrap}.map-progress-chip{border:1px solid var(--line);background:#fff;padding:8px 11px;border-radius:99px;font-size:11px;color:#607469}.map-progress-chip strong{color:var(--green)}.empty{color:var(--muted);font-size:12px}@media(max-width:700px){.topbar{height:64px;padding:0 18px}.top-actions{gap:10px}.top-actions .eyebrow{display:none}.shell{padding:20px 15px 44px}.hero{padding:28px 0 22px}.hero h1{margin-top:17px}.hero p{font-size:13px;max-width:330px}.map-card{padding:11px 9px 8px;border-radius:17px}.map-head{padding:2px 7px 3px}.world-map{max-height:none}.map-credit{font-size:8px}.legend{font-size:9px;gap:10px}.country-grid{gap:8px}.country-card{padding:14px 12px;min-height:103px;border-radius:14px}.country-card .flag{font-size:20px}.country-card .name{font-size:12px}.country-card .meta{font-size:9px}.country-card .arrow{right:11px;top:13px}.section-row{margin-top:30px}.section-note{max-width:130px;text-align:right;font-size:9px}.progress-section{padding:16px;border-radius:14px;align-items:flex-start}.progress-section p{line-height:1.55}.progress-badge{padding:8px 10px;font-size:9px}.footer{padding:20px 16px 25px;gap:12px;font-size:8px}.quiz-shell{margin-top:8px}.quiz-top{margin:19px 0 14px}.progress-track{margin-bottom:22px}.question-card{padding:23px 18px;border-radius:17px}.question-card h1{margin:16px 0 24px}.option{font-size:13px;padding:13px 12px;gap:10px}.feedback{padding:15px;font-size:12px}.next-row{gap:12px}.summary-card{padding:18px}.summary-actions{flex-wrap:wrap}}

.country-picker{display:flex;gap:10px;max-width:430px;margin:0 auto}.country-picker select{flex:1;min-width:0;border:1px solid var(--line);border-radius:999px;background:white;padding:13px 18px;color:var(--ink);font:600 13px Manrope}.level-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:800px;margin:28px auto}.level-choice{display:flex;flex-direction:column;gap:9px;text-align:left;padding:22px;border:1px solid var(--line);border-radius:18px;background:white;color:var(--ink);cursor:pointer;box-shadow:var(--shadow)}.level-choice:hover{border-color:var(--green);transform:translateY(-2px)}.level-choice strong{font:700 17px Manrope}.level-choice span{font-size:12px;color:var(--muted)}.footer{flex-wrap:wrap}.footer-links{display:flex;gap:16px}.footer-links a{color:inherit}@media(max-width:650px){.level-grid{grid-template-columns:1fr}.level-choice{padding:16px}.country-picker{max-width:none}.footer-links{width:100%;justify-content:center}}

.world-map svg{display:block;width:100%;height:auto;max-height:390px}.map-wrap{min-height:180px}.map-card{background:linear-gradient(150deg,#ffffff 15%,#f4f8f3 100%)}.hero{padding-top:48px}.hero h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(42px,5.8vw,74px);letter-spacing:-.055em}.country-picker{margin-top:2px}.progress-section{background:#e9efe8;flex-wrap:wrap}.map-progress-list{justify-content:flex-end}.info-page{max-width:760px;margin:42px auto 100px;padding:36px clamp(22px,5vw,58px);background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);line-height:1.8}.info-page .kicker{margin-top:30px}.info-page h1{font:500 clamp(36px,5vw,56px) Georgia,serif;letter-spacing:-.04em;text-align:center;margin:20px 0 28px}.info-page p{font-size:15px;color:#536b5d;margin:0 0 20px}.footer-links a:hover{text-decoration:underline;color:var(--ink)}@media(max-width:700px){.world-map svg{max-height:none}.map-wrap{min-height:80px}.hero{padding-top:26px}.map-head span{max-width:140px;text-align:right}.progress-section{display:block}.map-progress-list{justify-content:flex-start;margin-top:15px}.info-page{margin:15px auto 60px}}

/* The map is the page's main artwork, with no white panel behind it. */
.map-card{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;overflow:visible}
.map-wrap{min-height:0}
.world-map svg{max-height:none;overflow:visible}
.country{fill:#dce4df;stroke:var(--paper);stroke-width:1.15;vector-effect:non-scaling-stroke}
.country.active{fill:#a7c9b3;cursor:pointer}
.country.active:hover,.country.active:focus{fill:#77b693;filter:drop-shadow(0 2px 3px #22564455)}
.country.done-1{fill:#c2dbc7}.country.done-2{fill:#7fb69a}.country.done-3{fill:#28694f}
.map-label{font:600 13px 'DM Sans',sans-serif;fill:#365e50;pointer-events:none}
.map-label.japan{font-size:10px}
.map-hit{fill:#afd0ba;fill-opacity:.3;stroke:#28694f;stroke-opacity:.6;stroke-width:1.5;vector-effect:non-scaling-stroke;cursor:pointer}
.map-hit:hover,.map-hit:focus{fill:#7fb69a;fill-opacity:.7;outline:none}
.map-hit.done-1{fill:#c2dbc7;fill-opacity:.85}.map-hit.done-2{fill:#7fb69a;fill-opacity:.85}.map-hit.done-3{fill:#28694f;fill-opacity:.85}
.legend{margin-top:0}
.section-row{justify-content:center;margin-top:27px}
.load-error{margin:18px auto 0;color:#a24d43;font-size:13px}
.load-error[hidden]{display:none}
.country-stage{position:relative;height:240px;max-width:760px;margin:12px auto 0;perspective:900px;overflow:hidden}
.stage-map{position:absolute;inset:-20px 15px 0;transform:rotateX(48deg) rotateZ(-4deg) scale(.93);transform-origin:center 65%;filter:drop-shadow(0 23px 9px #244d3d30)}
.stage-map svg{display:block;width:100%;height:100%}
.stage-map .country{fill:#d7e2d8;stroke:#f5f5f2;stroke-width:1.5}
.stage-map .country.selected{fill:#33805a;filter:drop-shadow(0 8px 3px #183b3570)}
.stage-map .map-hit,.stage-map .labels{display:none}
.stage-name{position:absolute;left:50%;bottom:9px;transform:translateX(-50%);padding:8px 17px;border-radius:999px;background:#fffef9db;box-shadow:0 5px 20px #173c3420;font:700 13px Manrope;white-space:nowrap}
.country-stage+.summary-head{padding-top:10px}
@media(max-width:700px){.map-card{padding:0}.country-stage{height:145px}.stage-map{inset:-13px -15px 0}.stage-name{bottom:0}.section-row{margin-top:22px}}
.country,.country.active{fill:#c7cfcb}.country.active{cursor:pointer}.country.active:hover,.country.active:focus{fill:#a5b6ad}
.country.done-1{fill:#c2dbc7}.country.done-2{fill:#7fb69a}.country.done-3{fill:#28694f}
.map-hit{fill:#c7cfcb;fill-opacity:1;stroke:#f5f5f2;stroke-width:1.3}
.map-hit.done-1{fill:#c2dbc7;fill-opacity:1}.map-hit.done-2{fill:#7fb69a;fill-opacity:1}.map-hit.done-3{fill:#28694f;fill-opacity:1}
.country.active{fill:#d5d9d3}.country.done-1{fill:#c2dbc7}.country.done-2{fill:#7fb69a}.country.done-3{fill:#28694f}.country.done-4{fill:#d6a448}.map-hit.done-1{fill:#c2dbc7;fill-opacity:1}.map-hit.done-2{fill:#7fb69a;fill-opacity:1}.map-hit.done-3{fill:#28694f;fill-opacity:1}.map-hit.done-4{fill:#d6a448;fill-opacity:1}
.level-grid{align-items:stretch;grid-auto-rows:1fr}
.level-choice{height:100%;min-height:148px;box-sizing:border-box;justify-content:flex-start}
.level-choice span{line-height:1.65}
.legend{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 16px;color:#7c8980;font-size:10px}
.legend span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.legend .dot{width:7px;height:7px;border-radius:50%;display:inline-block}
@media(max-width:650px){.level-grid{grid-auto-rows:1fr}.level-choice{min-height:115px}}
.map-wrap{overflow:hidden;touch-action:none;cursor:grab}.map-wrap:active{cursor:grabbing}.world-map{transform-origin:center center;will-change:transform}.map-controls{display:flex;justify-content:flex-end;gap:7px;padding:7px 2px 2px}.map-controls button{min-width:34px;min-height:32px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);cursor:pointer;font:600 13px Manrope}
.top-actions a.language{text-decoration:none}
.info-page a{color:var(--green)}

/* ---- layout fix: the map must never be clipped and must fit the first screen ---- */
/* The old 390px cap cut the southern half of the world map on every desktop width. */
.world-map{max-height:none}
/* The SVG draws Antarctica below its own viewBox; keep that paint inside the canvas. */
.world-map svg{overflow:hidden}
/* On wide screens, size the map from the viewport height so the whole world fits one screen.
   2.2222 = 1200 / 540 (the map viewBox ratio). 100dvh falls back to 100vh. */
@media (min-width:701px){
  .world-map{
    width:min(100%,calc((100vh - 400px) * 2.2222));
    width:min(100%,calc((100dvh - 400px) * 2.2222));
    margin-left:auto;
    margin-right:auto;
  }
  .map-controls{max-width:100%}
}

/* ---- short screens (<=700px tall): keep one quiz step on one screen ---- */
@media (max-width:700px) and (max-height:760px){
  .topbar{height:52px;padding:0 14px}
  .brand-mark{width:26px;height:26px;border-radius:8px;font-size:16px}
  .brand{font-size:11px}
  .shell{padding:12px 14px 32px}
  .quiz-shell{margin-top:0}
  .back{padding:4px 0;font-size:11px}
  .quiz-top{margin:10px 0 8px}
  .quiz-country{font-size:11px}
  .step{font-size:10px}
  .progress-track{height:3px;margin-bottom:12px}
  .question-card{padding:14px 13px;border-radius:14px}
  .question-number{font-size:9px;letter-spacing:.12em}
  .question-card h1{font:600 clamp(20px,5.4vw,26px)/1.22 Manrope,sans-serif;letter-spacing:-.03em;margin:8px 0 14px}
  .options{gap:7px}
  .option{padding:9px 10px;gap:9px;font-size:12.5px;line-height:1.35;border-radius:10px}
  .option-key{width:21px;height:21px;font-size:9px}
  .feedback{margin-top:12px;padding:11px 12px;font-size:11.5px;line-height:1.55}
  .next-row{margin-top:10px}
  .score-mini{font-size:10px}
  .primary{padding:10px 16px;font-size:11px}
  /* level picker: all three tiers without scrolling */
  .country-stage{height:100px;margin:4px auto 0}
  .stage-map{inset:-10px -14px 0}
  .summary-head{padding:6px 0 0}
  .summary-head h1{font-size:25px;margin:6px 0 0}
  .level-grid{margin:12px auto;gap:8px}
  .level-choice{min-height:0;padding:11px 13px;gap:5px;border-radius:13px}
  .level-choice strong{font-size:14px}
  .level-choice span{font-size:11px;line-height:1.4}
}

/* ---- desktop short windows: keep a full question with all options on screen ---- */
@media (min-width:701px) and (max-height:940px){
  .quiz-shell{margin:8px auto 0}
  .quiz-top{margin:14px 0 10px}
  .progress-track{margin-bottom:20px}
  .question-card{padding:30px 34px}
  .question-card h1{font-size:clamp(24px,2.6vw,32px);margin:14px 0 20px}
  .options{gap:9px}
  .option{padding:12px 15px}
  .next-row{margin-top:14px}
}