:root{--green:#234d43;--muted:#7c877b;--paper:#f7f8f2;--line:#e0e5d8;--ink:#253b34}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font-family:Inter,"Helvetica Neue","Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;font-size:14px}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}button,a,select{touch-action:manipulation}button:focus-visible,a:focus-visible,select:focus-visible,path:focus-visible{outline:3px solid #cf9f54;outline-offset:4px}a{color:inherit}[hidden]{display:none!important}header{height:82px;display:flex;align-items:center;gap:25px;padding:0 5%;border-bottom:1px solid var(--line);background:#fff}.brand{display:flex;align-items:center;text-decoration:none;font-size:25px;letter-spacing:4px;font-weight:650;gap:11px}.logo{font-size:37px;font-weight:300;letter-spacing:0}.brand>span:last-child{font-size:10px;letter-spacing:2px;color:#84917d;border-left:1px solid #d4dbce;padding-left:15px;margin-left:6px}.tagline{font-size:11px;color:#839080;margin-left:auto}.quiet{background:transparent;border:1px solid #cfd8c9;border-radius:7px;padding:11px 15px;color:var(--green);font-size:12px}.quiet:hover{background:#e9eee2}#home{max-width:1220px;margin:auto;padding:0 5% 38px}.hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:50px;padding:54px 0 39px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:600;color:#829078;margin:0 0 15px}h1{font-weight:600;font-size:43px;line-height:1.5;letter-spacing:2px;margin:0}.hero h1 span{color:#648161}.lead{font-size:13px;color:#7c8879;line-height:2;margin:20px 0}.steps{display:flex;gap:18px;font-size:10px;color:#6d7c69}.steps b{font-family:ui-monospace,monospace;font-size:10px;color:#b0b8a6;margin-right:5px}.hero-art{position:relative;background:#edf1e3;border:1px solid #e2e8d8;border-radius:50% 50% 43% 43%;overflow:hidden;transform:rotate(-3deg)}.hero-art svg{display:block;width:100%;height:auto}.art-note{position:absolute;bottom:19px;width:100%;text-align:center;letter-spacing:2px;font-size:8px;color:#809075}.section-head{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid var(--line);padding-top:27px;margin-bottom:23px}.section-head .eyebrow{margin-bottom:8px;font-size:9px}.section-head h2{font-size:20px;font-weight:550;margin:0;letter-spacing:.8px}.question-count{font-size:11px;color:#7a8773;white-space:nowrap}select{border:1px solid #d6dece;background:#fff;border-radius:6px;padding:11px;color:#456044;font-size:11px;margin-left:8px}.course-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.course{position:relative;text-align:left;border:1px solid #e1e6d8;border-radius:12px;background:#fff;padding:21px;color:var(--ink);transition:transform .15s,box-shadow .15s}.course:hover{transform:translateY(-3px);border-color:#9bb08e;box-shadow:0 8px 20px #263c3710}.course-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.course-icon{font-size:20px;border:1px solid #dee6d3;background:#f2f5eb;border-radius:9px;display:grid;place-items:center;width:43px;height:43px}.course-level{color:#8a977f;font-size:9px;letter-spacing:1px}.course h3{font-size:18px;margin:0 0 7px;font-weight:550}.course p{font-size:10px;color:#8a9583;line-height:1.8;margin:0}.course-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:17px;padding-top:12px;border-top:1px solid #eff1e9;font-size:9px;color:#8b987f}.course-bottom b{font-size:20px;color:#597b57;font-weight:400}.rules{font-size:10px;line-height:1.9;color:#8a9683;margin:20px 0 0}#load-status{font-size:12px;line-height:2}#load-status:empty{display:none}footer{padding:20px 5%;border-top:1px solid var(--line);display:flex;align-items:flex-start;justify-content:space-between;gap:20px;font-size:9px;letter-spacing:1.2px;color:#84927c}.slash{margin:0 10px;color:#bac3ae}details{max-width:530px;letter-spacing:0;line-height:1.8;text-align:right}details p{text-align:left}summary{cursor:pointer}#game{display:grid;grid-template-columns:340px minmax(0,1fr);min-height:640px;height:calc(100dvh - 145px)}.quiz-panel{background:#fff;padding:30px 27px;overflow:auto;border-right:1px solid var(--line)}.course-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.course-heading .eyebrow{margin:0;font-size:10px;letter-spacing:1px}#question-number{font-family:ui-monospace,monospace;font-size:12px;color:#8b9783}.progress{height:4px;border-radius:4px;overflow:hidden;background:#edf0e5;margin:20px 0 34px}.progress>div{height:100%;background:#7c9c6c;transition:width .3s}.question>p:first-child{font-size:12px;color:#85917b;margin:0 0 12px}.question h1{font-size:30px;line-height:1.55;overflow-wrap:anywhere;letter-spacing:1px}.question-help{font-size:10px;color:#97a08f;line-height:1.9;margin:13px 0 30px}.score-row{display:flex;gap:37px;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.score-row span{display:block;font-size:8px;letter-spacing:1.5px;color:#98a38f;margin-bottom:8px}.score-row strong{font-size:25px;font-family:ui-monospace,monospace;font-weight:500}.score-row small{font-size:9px;margin-left:6px;color:#8d9984}#feedback{min-height:90px;font-size:12px;line-height:1.9;padding:17px 0;color:#788670}#feedback p{margin:0}#feedback strong{display:block;font-size:19px;margin-bottom:5px}.success{color:#397654}.failure{color:#b2604d}.primary{background:var(--green);border:1px solid var(--green);border-radius:8px;padding:14px 18px;color:#fff;font-size:12px;font-weight:550}.primary:hover:not(:disabled){background:#356554}.quiz-panel>.primary{width:100%}.sub-actions{display:flex;justify-content:space-between;gap:10px;margin:15px 0}.sub-actions button{border:0;background:transparent;color:#829176;font-size:11px;padding:7px 0}.helper{font-size:9px;line-height:1.9;color:#9aa591}.legend{display:flex;gap:12px;flex-wrap:wrap;font-size:9px;color:#86947d;margin-top:24px}.legend span{display:flex;gap:5px;align-items:center}.legend i{width:7px;height:7px;border-radius:2px}.blue{background:#789cb6}.green{background:#62a57c}.red{background:#cb8372}.map-shell{position:relative;overflow:hidden;background:#e8eee8}#map{width:100%;height:100%;background:#e8eee8;background-image:linear-gradient(#cbd7cc40 1px,transparent 1px),linear-gradient(90deg,#cbd7cc40 1px,transparent 1px);background-size:45px 45px}.map-toolbar{position:absolute;z-index:500;top:22px;left:22px;right:22px;display:flex;align-items:center;justify-content:space-between;gap:10px;pointer-events:none}.map-toolbar>*{pointer-events:auto;background:#fffffff0;border:1px solid #dce3d6;border-radius:7px;padding:10px 13px;font-size:10px;color:#6f8168}.map-caption{position:absolute;z-index:500;bottom:25px;left:20px;background:#ffffffc9;padding:8px 12px;border-radius:5px;font-size:9px;color:#829277;pointer-events:none}.leaflet-control-zoom{margin-right:20px!important;margin-bottom:45px!important;border:1px solid #cdd9c7!important;box-shadow:none!important}.leaflet-control-zoom a{color:#50694a!important}.leaflet-control-attribution{font-size:8px!important}.leaflet-tooltip{border:1px solid #cdd9c7;background:#fff;font-family:inherit;color:#32583e;box-shadow:0 3px 15px #1d322020;font-size:12px;padding:8px 12px}.leaflet-interactive{transition:fill .12s,fill-opacity .12s}.leaflet-container{font-family:inherit}#result{padding:55px 20px 70px;max-width:740px;margin:auto}.result-card{text-align:center;background:#fff;border:1px solid var(--line);border-radius:16px;padding:40px}.result-card h1{font-size:28px;letter-spacing:1px}#result-course{color:#91a084;font-size:12px;margin:12px 0}.big-score{margin:25px 0 15px}.big-score strong{font-family:ui-monospace,monospace;font-size:72px;font-weight:500;color:var(--green)}.big-score span{color:#9ba78e;font-size:16px;margin-left:10px}#result-message{font-size:13px;color:#7f9073;line-height:1.9}.result-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin:25px 0 35px}.result-card h2{text-align:left;font-size:13px;font-weight:500;padding-top:20px;border-top:1px solid var(--line)}.review-row{display:grid;grid-template-columns:26px 1fr 45px;gap:10px;text-align:left;align-items:center;padding:14px 0;border-bottom:1px solid #edf0e7;font-size:12px}.review-row small{display:block;color:#8d9982;margin-top:5px;font-size:10px}.review-row>span:last-child{text-align:right;font-family:ui-monospace,monospace;font-size:13px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:1500px){#home{max-width:1380px}.hero{padding-top:70px}.hero h1{font-size:51px}}@media(max-width:900px){.hero{gap:20px}.hero h1{font-size:35px}.steps{gap:10px;font-size:9px}.course-grid{grid-template-columns:repeat(2,1fr)}#game{grid-template-columns:285px 1fr}.quiz-panel{padding:25px 20px}.question h1{font-size:26px}.map-caption{max-width:75%;line-height:1.7}}@media(max-width:600px){header{height:66px;padding:0 18px;gap:12px}.brand{font-size:20px;gap:8px}.logo{font-size:29px}.brand>span:last-child{padding-left:9px;margin-left:0;font-size:8px}.tagline{display:none}#home-button{margin-left:auto;font-size:9px;padding:8px}.hero{padding:34px 0 28px;grid-template-columns:1fr}.hero-art{display:none}.hero h1{font-size:36px}.hero h1 br{display:none}.hero .eyebrow{font-size:8px;letter-spacing:1.5px}.lead{font-size:12px;margin:15px 0}.steps{font-size:10px;gap:15px}.section-head{align-items:flex-start;flex-direction:column;gap:17px;padding-top:22px}.section-head h2{font-size:19px}.course-grid{gap:10px}.course{padding:15px 13px}.course h3{font-size:16px}.course-icon{width:35px;height:35px;font-size:17px}.course-top{margin-bottom:12px}.course-level{font-size:7px}.course p{font-size:9px}.course-bottom{font-size:8px;margin-top:12px}.course-bottom b{font-size:17px}#game{display:flex;flex-direction:column;height:auto;min-height:0}.quiz-panel{padding:19px 20px 17px;overflow:visible;border:0;display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.course-heading,.progress,.question,.legend{grid-column:1/-1}.progress{margin:12px 0 17px}.question{position:relative}.question>p:first-child{font-size:10px;margin-bottom:5px}.question h1{font-size:26px;margin-right:0}.question-help{font-size:9px;margin:7px 0 13px}.score-row{padding:9px 0;gap:25px;margin-bottom:5px;grid-column:1/-1}.score-row span{font-size:7px;margin-bottom:3px}.score-row strong{font-size:18px}.score-row>div{display:flex;align-items:center;gap:7px}.score-row small{margin-left:0}#feedback{grid-column:1/-1;min-height:44px;padding:8px 0;font-size:11px}#feedback strong{display:inline;font-size:15px;margin-right:8px}.quiz-panel>.primary{grid-column:1}.sub-actions{grid-column:2;margin:0;align-items:center;gap:5px}.sub-actions button{font-size:10px}.helper{grid-column:1/-1;font-size:8px;margin:8px 0 0}.helper br{display:none}.legend{margin-top:10px;font-size:8px}.map-shell{height:53dvh;min-height:330px}.map-toolbar{top:12px;left:12px;right:12px}.map-toolbar>*{font-size:9px;padding:8px 10px}.map-caption{font-size:8px;bottom:23px;left:12px;max-width:70%}footer{font-size:7px;letter-spacing:.5px;padding:18px;flex-direction:column;gap:12px}details{text-align:left;max-width:100%;font-size:9px}.result-card{padding:28px 18px}.result-card h1{font-size:22px}#result{padding:30px 14px}.big-score strong{font-size:60px}}

@media(max-width:600px){.sub-actions{grid-column:1/-1}#next:not([hidden])+.sub-actions{grid-column:2}}

.map-callouts{position:absolute;inset:0;z-index:550;pointer-events:none;overflow:hidden}.map-callouts svg{position:absolute;inset:0;width:100%;height:100%;overflow:hidden}.map-callout{position:absolute;padding:5px 8px;background:#fffffff2;border:1px solid;border-radius:5px;font-size:10px;line-height:1.5;font-weight:500;overflow-wrap:anywhere;box-shadow:0 2px 6px #253b3410;pointer-events:none}
.genre-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.genre-card .course-top{margin-bottom:27px}.genre-number{font-family:ui-monospace,monospace;font-size:11px;color:#a1ac97}.genre-card h3{font-size:22px}.genre-card .course-bottom{margin-top:28px}.picker-heading{display:flex;align-items:center;gap:20px;margin:24px 0}.picker-heading h2{font-size:22px;margin:0}.course-filters{display:flex;align-items:end;gap:20px;margin:24px 0 10px}.course-filters label{font-size:10px;color:#7a8874}.course-filters select{margin:7px 0 0;display:block;min-width:170px}.course-search{flex:1}.course-search input{display:block;width:100%;border:1px solid #d6dece;border-radius:6px;background:#fff;margin-top:7px;padding:11px 13px;font:inherit;font-size:12px;color:var(--ink)}#course-total{font-size:10px;color:#8a9582;margin:15px 0}#more-courses{display:block;margin:25px auto}.course-flag{width:40px;height:28px;object-fit:contain;filter:drop-shadow(0 1px 2px #20352220)}.course .progress-label{color:#7e8e74}.genre-card{min-height:215px}#flag-game{height:100%;min-height:450px;padding:50px 10%;overflow:auto;background:radial-gradient(ellipse at center,#f8faf4,#edf1e5)}.flag-question{text-align:center}.flag-question>p{font-size:13px;color:#7f8e72;margin:5px 0 25px}#flag-image{object-fit:contain;max-width:85%;height:180px;width:300px;filter:drop-shadow(0 5px 12px #263c3722);margin-bottom:35px}#flag-choices{display:grid;grid-template-columns:1fr 1fr;gap:13px;max-width:550px;margin:auto}#flag-choices button{background:white;border:1px solid #d1ddc8;border-radius:9px;padding:19px 14px;color:var(--ink);font-size:14px;text-align:left;line-height:1.6}#flag-choices button:hover:not(:disabled){background:#e6edde;border-color:#94ad80}#flag-choices button.answer-correct{background:#def0df;border-color:#4c8c5d;color:#2f673e}#flag-choices button.answer-wrong{background:#f3dfd8;border-color:#ad6956;color:#994b38}#flag-choices button:disabled{opacity:.8}.map-shell.flag-mode .map-toolbar,.map-shell.flag-mode .map-caption,.map-shell.flag-mode .map-callouts{display:none}.map-shell.flag-mode #map{display:none}.hint-help{line-height:1.8}.course-empty{color:#819075;line-height:2;grid-column:1/-1;padding:20px}#load-status .quiet{margin-left:8px}@media(max-width:600px){.genre-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.genre-card{min-height:187px}.genre-card h3{font-size:21px}.genre-card .course-top{margin-bottom:18px}.genre-card .course-bottom{margin-top:18px}.course-filters{gap:10px}.course-filters select{min-width:120px;max-width:135px}.picker-heading{gap:10px}.picker-heading h2{font-size:18px}.picker-heading .quiet{font-size:10px}.map-shell.flag-mode{height:auto;min-height:380px}#flag-game{min-height:380px;padding:25px 20px}#flag-image{height:135px;margin-bottom:23px}#flag-choices button{font-size:12px;padding:15px 10px}.flag-question>p{font-size:11px;margin-bottom:16px}}

.city-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.city-tabs button{padding:13px 20px;border:1px solid #cdd6c6;border-radius:10px;background:white;color:#234d43;font:inherit;cursor:pointer}.city-tabs button[aria-pressed="true"]{background:#234d43;color:white;border-color:#234d43}#city-description{color:#697664;line-height:1.8;font-size:13px;margin:0 0 20px}.course-filters #city-country-label{min-width:150px}.course-filters #city-country{max-width:260px}@media(max-width:600px){.city-tabs{gap:6px}.city-tabs button{flex:1;padding:12px 6px;font-size:13px}.course-filters #city-country-label{min-width:0;flex:1}.course-filters #city-country{width:100%}}

/* Region sections keep long course catalogs compact and scannable. */
.course-groups{display:grid;gap:28px;margin-top:18px}.course-region{background:#fff;border:1px solid #e5e9df;border-radius:20px;padding:26px;box-shadow:0 2px 5px #233e2f04}.course-region-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.course-region-head h3{display:flex;align-items:center;gap:14px;margin:0;font-size:23px;font-weight:700;line-height:1.3}.course-region-head h3:before{content:"";display:block;width:4px;height:26px;background:#769c79;border-radius:3px}.course-region-head h3>span{font-size:11px;font-weight:400;color:#929b8f}.region-pager{display:flex;align-items:center;gap:10px;flex-shrink:0;color:#768070;font-size:13px;font-variant-numeric:tabular-nums}.region-pager button{width:32px;height:32px;padding:0;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;font-size:28px;line-height:1;color:#294d40;cursor:pointer}.region-pager button:hover:not(:disabled){background:#eef3e9}.region-pager button:disabled{opacity:.24;cursor:default}.region-course-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.course-item{display:flex;align-items:center;gap:12px;min-height:86px;padding:15px 12px;border:1px solid #e0e5db;border-radius:12px;background:#fff;text-align:left;color:#293a31;box-shadow:0 2px 3px #263b2b08;cursor:pointer;font:inherit;min-width:0;transition:background .15s,border-color .15s}.course-item:hover{border-color:#8bab81;background:#f7faf3}.course-item:focus-visible,.region-pager button:focus-visible{outline:3px solid #bba166;outline-offset:3px}.course-item-icon{flex:0 0 34px;width:34px;font-size:26px;color:#769277;display:grid;place-items:center}.course-item-icon img{display:block;width:34px;height:25px;object-fit:cover;border-radius:4px;box-shadow:0 1px 3px #0001}.course-item-copy{display:block;min-width:0;flex:1}.course-item-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.45;font-size:14px;font-weight:500}.course-item-meta{display:block;line-height:1.5;font-size:10px;color:#8d9888;margin-top:5px}.course-item-arrow{font-size:20px;color:#82977a}.course-groups .course-empty{padding:30px 0}@media(min-width:1500px){.region-course-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.course-region{padding:22px 18px}.course-item{gap:8px;padding:12px 8px}.course-item-arrow{display:none}.course-item-icon{flex-basis:28px;width:28px}.course-item-icon img{width:28px;height:21px}.course-item-name{font-size:13px}}@media(max-width:850px){.region-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.course-groups{gap:18px}.course-region{padding:18px 12px;border-radius:15px}.course-region-head{margin-bottom:16px;gap:8px}.course-region-head h3{font-size:18px;gap:9px}.course-region-head h3>span{display:none}.region-pager{gap:4px;font-size:12px}.region-pager button{width:27px;height:29px}.region-course-grid{gap:9px}.course-item{gap:8px;padding:12px 8px;min-height:90px}.course-item-icon{width:25px;flex-basis:25px;font-size:22px}.course-item-icon img{width:25px;height:19px}.course-item-name{font-size:12px}.course-item-meta{font-size:9px}.course-item-arrow{display:none}}

.municipal-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:20px 0 10px;font-size:14px;color:#6c7d67}.municipal-breadcrumb strong{color:#234d43}.municipal-status{font-size:12px;line-height:1.8;color:#77836e;margin-bottom:16px}.municipal-status:empty{display:none}.municipal-breadcrumb button:disabled{border:none;padding-left:0;opacity:1;color:#234d43}
#map-stage{position:relative;height:100%;min-width:0;overflow:hidden}.map-shell.has-insets{display:grid;grid-template-columns:minmax(0,1fr) 235px}.has-insets #map-stage{min-height:330px}.has-insets .map-caption{display:none}#inset-rail{overflow:auto;min-height:0;background:#f7f8f2;border-left:1px solid var(--line);padding:12px;display:flex;flex-direction:column;gap:12px}.inset-guide{font-size:11px;line-height:1.7;margin:0;color:#456044}.inset-guide small{display:block;font-size:9px;color:#829078;margin-top:4px}.inset-card{position:relative;border:1px solid #cbd7c4;border-radius:9px;overflow:hidden;background:#e8eee8;flex-shrink:0}.inset-card h3{position:absolute;top:8px;left:9px;margin:0;z-index:550;font-size:10px;font-weight:500;background:#fffffff0;padding:4px 7px;border-radius:4px;pointer-events:none}.inset-map{height:195px;background:#e8eee8}.inset-card .map-callout{font-size:9px;padding:3px 5px}.flag-mode #map-stage{display:none}@media(max-width:900px){.map-shell.has-insets{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(330px,1fr) 235px}#inset-rail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-left:0;border-top:1px solid var(--line);align-content:start}.inset-guide{grid-column:1/-1}.inset-map{height:175px}}@media(max-width:600px){.map-shell.has-insets{height:auto;display:block;overflow:visible}.has-insets #map-stage{height:53dvh;min-height:330px}#inset-rail{overflow:visible}.inset-map{height:185px}}
.asia-practice{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 22px}.asia-practice button{border:1px solid #d6dece;border-radius:999px;padding:9px 14px;background:white;color:#56714b;font-size:12px}.asia-practice button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:white}.asia-practice button:hover{box-shadow:0 2px 8px #253b3415}@media(max-width:600px){.asia-practice{gap:7px}.asia-practice button{font-size:11px;padding:8px 12px}}
.inset-content{position:relative}.inset-jump{position:relative;display:block;z-index:600;width:100%;border:0;border-top:1px solid #cbd7c4;background:#f7faf3;color:var(--green);padding:10px 6px;font-size:10px;cursor:pointer}.inset-jump span{position:static}.inset-jump:hover{background:#e5edde}.inset-jump:focus-visible{outline-offset:-4px}.has-insets .map-toolbar{justify-content:flex-end;flex-wrap:wrap}.has-insets .map-toolbar>span{margin-right:auto}.inset-card .inset-map{pointer-events:auto}

.place-search{margin-top:28px;padding-top:22px;border-top:1px solid var(--line);grid-column:1/-1}.place-search-title{margin:0 0 8px;font-size:12px;color:#7b8b71}.place-search-name{margin:0 0 14px;font-size:14px;line-height:1.6;overflow-wrap:anywhere;color:var(--ink)}.place-search-links{display:grid;gap:9px}.place-search-links a{display:flex;align-items:center;justify-content:center;text-align:center;gap:10px;border:1px solid #ccd7c5;border-radius:8px;padding:12px 14px;font-size:13px;line-height:1.5;text-decoration:none;background:#f7f9f3;color:#234d43}.place-search-links a:hover{background:#eaf0e3;border-color:#87a079}.place-search-links a:focus-visible{outline:3px solid #bba166;outline-offset:3px}.place-search small{display:block;margin-top:9px;color:#8b9782;font-size:10px}@media(max-width:600px){.place-search{margin-top:16px;padding-top:16px}.place-search-links{grid-template-columns:repeat(2,minmax(0,1fr))}.place-search-links a{padding:10px;font-size:11px}}

.legend .missed{background:#e6a09a;border:1px solid #b64e48}.legend .selection{background:#a6aaa7;border:1px solid #656b67}

.restart-quiz{display:block;width:100%;margin-top:20px;grid-column:1/-1;text-align:center}

.previous-question{display:block;width:100%;margin-top:20px;grid-column:1/-1;text-align:center}.previous-question+.restart-quiz{margin-top:9px}

.learn-button{display:block;width:100%;margin-top:20px;grid-column:1/-1;background:#eef3e9;color:#234d43;font-weight:600}
.learn-button+.previous-question{margin-top:9px}
.learning .quiz-panel>:not(#study-panel):not(.quiz-top-actions){display:none!important}
#study-panel{grid-column:1/-1;width:100%}
#study-panel h1{font-size:28px;margin:12px 0 20px}
#study-course{font-weight:600;line-height:1.7}
#study-description{line-height:1.9;color:#73836b;margin:20px 0 28px}
.study-quiz-actions{display:grid;gap:12px}
.study-quiz-actions button{width:100%;min-height:46px;padding:12px 10px;font-size:13px;line-height:1.5}
.study-quiz-actions p{margin:6px 2px 0;font-size:11px;line-height:1.6;color:#73836b;overflow-wrap:anywhere}
#return-quiz{width:100%}
#study-quiz-dialog{width:min(480px,calc(100vw - 32px));max-height:90dvh;overflow:auto;padding:24px;border:1px solid var(--line);border-radius:16px;color:var(--ink);background:#fafbf6;box-shadow:0 20px 100px #153b3533}
#study-quiz-dialog::backdrop{background:#132d2866;backdrop-filter:blur(3px)}
#study-quiz-dialog h2{margin:0 0 10px;font-size:22px;line-height:1.5}
#study-quiz-dialog-description{margin:0 0 22px;font-size:13px;line-height:1.7;color:#73836b}
#study-quiz-dialog .study-quiz-actions{gap:20px}
#study-quiz-cancel{display:block;margin:22px auto 0;font-size:13px;padding:10px 18px;min-height:44px}
.leaflet-tooltip.study-label{font-size:9px;line-height:1.25;padding:0;color:#234d43;background:transparent;border:0;border-radius:0;box-shadow:none;pointer-events:none}
.leaflet-tooltip.study-label:before{display:none}
.learning #flag-game{display:none!important}
#study-flags{padding:24px;display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:16px;overflow:auto;max-height:85vh}
#study-flags[hidden]{display:none}
#study-flags figure{margin:0;padding:16px;background:white;border:1px solid #dce4d5;border-radius:10px;text-align:center}
#study-flags img{width:90px;height:60px;object-fit:contain}
#study-flags figcaption{font-size:14px;margin-top:12px}

.map-toolbar #map-learn{margin-right:auto;background:#fff;color:#234d43;font-weight:600;pointer-events:auto}

.leaflet-tooltip.study-label.study-label-active{font-size:13px;font-weight:800;color:#102e24;z-index:1000!important}

.study-names-hidden .study-label{display:none!important}
.leaflet-tooltip.study-hover-label{background:#fff;color:#234d43;border:1px solid #b6c7af;border-radius:4px;padding:5px 8px;font-size:12px;font-weight:600;pointer-events:none}

.study-directory{margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}
.study-directory h2{font-size:16px;margin:0 0 15px}.study-directory h2 span{font-size:11px;font-weight:400;color:#7c877b;margin-left:8px}
#study-place-links{margin-bottom:18px;padding:12px;background:#f3f6ee;border-radius:8px}#study-selected-name{display:block;margin-bottom:10px;font-size:15px}
.study-filter{display:block;font-size:11px;color:#73836b;margin:12px 0}.study-filter input{display:block;width:100%;padding:10px;border:1px solid #cfd8c9;border-radius:6px;margin-top:6px;font:inherit;font-size:13px}
#study-place-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:360px;overflow:auto;padding:3px}
#study-place-list button{font-size:12px;line-height:1.5;text-align:left;border:1px solid #dce4d5;border-radius:6px;background:#fff;color:#234d43;padding:9px;overflow-wrap:anywhere}
#study-place-list button:hover{background:#eef3e9}#study-place-list button[aria-pressed=true]{background:#deead7;border-color:#315e48;font-weight:700}
#study-flags .study-flag-selected{background:#deead7;border:2px solid #315e48}

.study-selected-heading{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.study-selected-heading #study-selected-name{flex:1;margin:0;min-width:0;overflow-wrap:anywhere}
#study-clear-selection{flex:none;width:32px;height:32px;padding:0;border:0;border-radius:5px;background:transparent;color:#536b60;font-size:24px;line-height:1;cursor:pointer}
#study-clear-selection:hover{background:#e0e8d8;color:#234d43}

/* Keep lookup actions within the compact quiz panel. */
#game:not(.learning) #hint-help,#game:not(.learning) .legend{display:none}
#game:not(.learning) .quiz-panel{padding:16px 20px}
#game:not(.learning) .progress{margin:12px 0 16px}
#game:not(.learning) .question>p{margin:8px 0;font-size:11px;line-height:1.6}
#game:not(.learning) .question h1{margin:8px 0;font-size:27px;line-height:1.3}
#game:not(.learning) .score-row{padding:10px 0;margin-top:10px;gap:24px}
#game:not(.learning) .score-row span{margin-bottom:3px}
#game:not(.learning) #feedback{min-height:0;padding:10px 0;line-height:1.6}
#game:not(.learning) #feedback strong{font-size:16px;margin-bottom:3px}
#game:not(.learning) .sub-actions{margin:5px 0}
#game:not(.learning) #next{padding:10px 14px}
#game:not(.learning) .place-search{margin-top:8px;padding-top:10px}
#game:not(.learning) .place-search-title,#game:not(.learning) .place-search small{display:none}
#game:not(.learning) .place-search-name{font-size:12px;margin:0 0 7px;line-height:1.4}
#game:not(.learning) .place-search-links{gap:6px}
#game:not(.learning) .place-search-links a{padding:9px 10px;font-size:12px}
.quiz-navigation{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px;grid-column:1/-1}
.quiz-navigation #previous,.quiz-navigation #restart-quiz{grid-column:auto;margin:0;font-size:10px;padding:9px 5px}
@media(min-width:601px){#game:not(.learning){min-height:0;height:calc(100dvh - 125px)}}

.study-navigation{margin:18px 0;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.study-navigation label{display:block;font-size:11px;color:#657b6e}
.study-navigation select{display:block;width:100%;padding:9px 8px;margin:6px 0 10px;border:1px solid #cfd8c9;border-radius:6px;background:white;color:#234d43;font:inherit;font-size:13px}
#study-kinds{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
#study-kinds button{border:1px solid #d5dfce;border-radius:6px;background:#fff;color:#234d43;font-size:12px;padding:7px 10px}
#study-kinds button[aria-pressed=true]{background:#234d43;color:#fff;border-color:#234d43}
#study-nav-status{font-size:11px;line-height:1.7;color:#73836b;margin:8px 0 0}
#study-panel h1{font-size:24px;margin:8px 0 12px}#study-description{font-size:12px;line-height:1.7;margin:12px 0 16px}

/* Atlas cover: an editorial entrance to the existing quiz. */
#home{max-width:1440px;padding:30px 4.5% 64px}#home .atlas-cover{display:grid;grid-template-columns:1.15fr 1fr;gap:0;padding:0;margin:0;background:#183d34;color:#f5f0df;border-radius:3px;overflow:hidden;min-height:490px;position:relative}#home .cover-copy{padding:64px 0 42px 56px;z-index:1}#home .atlas-cover .eyebrow{font-size:10px;letter-spacing:2.4px;color:#d6ba87;margin:0 0 30px}#home .atlas-cover h1{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:clamp(30px,3.5vw,49px);font-weight:500;line-height:1.7;letter-spacing:.02em;margin:0;white-space:nowrap}#home .atlas-cover .lead{color:#becdc2;font-size:12px;line-height:2.2;margin:22px 0 28px}#home .explore-link{display:inline-flex;gap:45px;align-items:center;text-decoration:none;background:#edbd75;color:#183d34;border-radius:2px;padding:16px 22px;font-weight:600;font-size:12px}#home .explore-link:hover{background:#f6cd91}#home .explore-link span{font-size:20px}#home .cover-meta{display:flex;gap:20px;font-size:8px;letter-spacing:1.3px;color:#9db6a8;margin-top:40px}.cover-visual{position:relative;display:flex;align-items:center;justify-content:center;min-width:0}.cover-visual img{width:115%;max-width:620px;height:auto;flex-shrink:0;opacity:.95}.globe-caption{position:absolute;top:28px;right:28px;font-size:8px;letter-spacing:2px;color:#a8b9a9}.globe-coordinate{position:absolute;bottom:28px;right:28px;font-size:9px;font-family:monospace;color:#a8b9a9}.cover-orbit{position:absolute;bottom:56px;left:25px;font-family:Georgia,serif;font-size:30px;font-style:italic;line-height:1.05;color:#edbd75}#home .section-head{border:0;margin:0;padding:48px 0 26px;align-items:center}#home .section-head .eyebrow{font-size:9px;letter-spacing:2px;color:#9c7f52;margin-bottom:10px}#home .section-head h2{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:29px;font-weight:500;margin:0}#home .question-count{font-size:10px;color:#738075}#home .question-count select{background:transparent;border:0;border-bottom:1px solid #a9b5a5;border-radius:0;padding:10px;margin-left:12px;color:#294b3e}#home .genre-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 40px;border-top:1px solid #b9c5b5}#home .genre-card{display:grid;grid-template-columns:46px minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:16px;align-items:center;text-align:left;padding:24px 4px;min-height:116px;border:0;border-bottom:1px solid #d6dece;border-radius:0;box-shadow:none;background:transparent;position:relative;transition:background .2s,padding .2s}#home .genre-card:hover{background:#eaf0e3;padding-left:12px;padding-right:12px;transform:none}#home .genre-card .course-top{display:contents}#home .genre-card .genre-number{display:none}#home .genre-card .course-icon{grid-column:1;grid-row:1/3;width:42px;height:42px;border:0;border-radius:50%;background:#e6ebdd;color:#496957;font-size:22px}#home .genre-card h3{grid-column:2;grid-row:1;font-size:20px;font-weight:600;margin:0 0 6px}#home .genre-card p{grid-column:2;grid-row:2;font-size:10px;color:#7c8879;margin:0}#home .genre-card .course-bottom{grid-column:3;grid-row:1/3;display:flex;align-items:center;gap:17px;border:0;padding:0;margin:0;flex-direction:column;font-size:9px;color:#819079}#home .genre-card .course-bottom b{font-size:23px;color:#345542}#home .rules{margin-top:28px;max-width:710px;font-size:10px;line-height:2}html{scroll-behavior:smooth}#explore{scroll-margin-top:20px}#home:has(#course-picker:not([hidden])) .atlas-cover{display:none}
@media(max-width:900px){#home .cover-copy{padding:42px 0 35px 30px}#home .atlas-cover{min-height:410px}#home .atlas-cover h1{font-size:32px}#home .cover-meta{gap:10px;font-size:7px}#home .genre-grid{gap:0 24px}#home .genre-card{column-gap:10px}#home .genre-card p{max-width:230px}.cover-orbit{font-size:24px}}
@media(max-width:600px){#home{padding:16px 18px 36px}#home .atlas-cover{grid-template-columns:1fr;min-height:0}#home .cover-copy{padding:32px 26px 20px}#home .atlas-cover h1{font-size:30px;line-height:1.65;white-space:normal}#home .atlas-cover h1 br{display:block}#home .atlas-cover .eyebrow{font-size:8px;letter-spacing:1.6px;margin-bottom:20px}#home .atlas-cover .lead{font-size:11px;margin:18px 0 22px}#home .explore-link{padding:13px 18px;gap:28px;font-size:11px}#home .cover-meta{margin-top:24px;gap:14px;font-size:7px}.cover-visual{height:240px;overflow:hidden}.cover-visual img{width:330px;height:330px;position:absolute;right:-24px;top:-46px}.globe-caption{top:12px;left:26px;right:auto;font-size:7px}.cover-orbit{left:26px;bottom:35px;font-size:26px}.globe-coordinate{font-size:8px;bottom:16px;right:20px}#home .section-head{padding:34px 0 18px;gap:18px;align-items:flex-start}#home .section-head h2{font-size:25px}#home .question-count{align-self:flex-end}#home .genre-grid{grid-template-columns:1fr;gap:0}#home .genre-card{min-height:100px;padding:20px 0;grid-template-columns:42px minmax(0,1fr) auto;column-gap:12px}#home .genre-card h3{font-size:19px}#home .genre-card p{font-size:10px;max-width:none}#home .genre-card .course-bottom{font-size:8px;gap:7px}#home .genre-card .course-icon{width:38px;height:38px;font-size:20px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}#home .genre-card{transition:none}}

#home .genre-card{grid-template-columns:100px minmax(0,1fr) auto;column-gap:20px;min-height:132px}#home .genre-illustration{grid-column:1;grid-row:1/3;display:block;width:100px;height:72px;object-fit:cover;border-radius:4px}#home:has(#course-picker:not([hidden])) .hero{display:none}#home .hero:not(.atlas-cover){padding-top:30px}#home .section-head h2{font-family:inherit;font-size:26px}#home .hero-art{display:block}@media(max-width:600px){#home .genre-card{grid-template-columns:78px minmax(0,1fr) auto;column-gap:12px;min-height:110px}#home .genre-illustration{width:78px;height:60px}#home .genre-card h3{font-size:18px}#home .hero-art{max-width:340px;margin:0 auto;width:100%}#home .section-head h2{font-size:21px}}

@media(max-width:600px){#home .hero h1 br{display:block}#home .hero h1{font-size:34px}}

/* Flag courses share the same upper-left study control and post-answer tap. */
.flag-mode #map-stage{display:block;position:absolute;inset:0;pointer-events:none;z-index:500}.map-shell.flag-mode .map-toolbar{display:flex}.flag-mode .map-toolbar>:not(#map-learn){display:none!important}.flag-mode #map-learn{pointer-events:auto}.flag-mode #flag-game{padding-top:90px}.flag-mode #study-flags{padding-top:85px}.answer-revealed #flag-image,.answer-revealed #flag-choices button{cursor:pointer}.answer-revealed #flag-choices button:hover{box-shadow:0 0 0 2px #78977b inset}.study-names-hidden #study-flags figcaption{visibility:hidden}.study-names-hidden #study-flags figure:hover figcaption,.study-names-hidden #study-flags figure:focus figcaption{visibility:visible;background:white;border-radius:4px}#study-flags figure:focus-visible{outline:2px solid #315e48;outline-offset:2px}@media(max-width:600px){.flag-mode #flag-game{padding-top:68px}.flag-mode #study-flags{padding-top:65px}}

/* Quiz helpers share the next-question button sizing. */
#game .sub-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;grid-column:1/-1}
#game .sub-actions button{min-height:0;width:100%;padding:10px 14px;border:1px solid #b8c9b1;border-radius:8px;background:#eef3e8;color:#234d43;font-size:12px;font-weight:550;line-height:normal}
#game .sub-actions #skip{background:#fff;border-color:#c4cec0;color:#43574a}
#game .sub-actions button:hover:not(:disabled){background:#e0ead7;border-color:#809f75}
#game .sub-actions button:active:not(:disabled){background:#d3e1c8}
#game .sub-actions button:disabled{opacity:.5}
@media(max-width:600px){#game #next:not([hidden])+.sub-actions{grid-column:1/-1}#game:not(.learning) .sub-actions{margin:8px 0}#game:not(.learning) #next{grid-column:1/-1}}

.result-accuracy{font-size:24px;font-weight:600;color:var(--ink);margin:28px 0 0;line-height:1.5}.result-accuracy+.big-score{margin:12px 0 20px}@media(max-width:600px){.result-accuracy{font-size:20px}}

#game:not(.learning) #defer-question{padding:10px 14px;grid-column:1/-1}

.quiz-top-actions{display:flex;gap:8px;grid-column:1/-1;margin:0 0 18px}
.quiz-top-actions .quiet{flex:1;min-width:0;margin:0;background:#f4f7ef;padding:10px 8px;font-size:12px;white-space:nowrap}
.quiz-top-actions #map-learn{font-weight:600}
.map-toolbar,.has-insets .map-toolbar{justify-content:flex-end}
@media(max-width:600px){.quiz-top-actions{margin-bottom:14px}.quiz-top-actions #home-button{margin:0;padding:10px 8px;font-size:12px}}

/* Keep Latin and Japanese metric labels on identical rows. */
.score-row>div{display:grid;grid-template-columns:max-content max-content;align-items:baseline;column-gap:6px;row-gap:0}
.score-row>div>span{grid-column:1/-1;line-height:16px;min-height:16px}
.score-row>div>strong,.score-row>div>small{line-height:1}
.score-row>div>small{margin-left:0}

.quiz-top-actions #home-button{flex:0 1 auto;margin-left:auto;border:0;border-radius:0;background:transparent;font-weight:400;box-shadow:none}
.quiz-top-actions #home-button:hover{background:transparent;text-decoration:underline;text-underline-offset:4px}
.quiz-top-actions #home-button span{margin-left:6px}

.quiz-top-actions{align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.quiz-top-actions #course-label{margin:0;font-size:10px;letter-spacing:1px;min-width:0}
.quiz-top-actions #home-button{white-space:nowrap;font-size:12px;padding:10px 0}
.quiz-panel>.course-heading{justify-content:flex-end}
.learning .quiz-top-actions #course-label{display:none}

#study-search{margin-top:16px}#study-search>summary{display:flex;align-items:center;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:8px;color:#234d43;background:#f7f9f3;cursor:pointer;list-style:none;font-size:14px}#study-search>summary::-webkit-details-marker{display:none}#study-search>summary:focus-visible{outline:3px solid #bba166;outline-offset:3px}#study-search .study-search-close{display:none}#study-search[open] .study-search-close{display:inline}#study-search[open] .study-search-open{display:none}#study-search .study-navigation{margin:10px 0 0;padding:0;border:0}#study-search+.study-directory{margin-top:12px}#study-panel>#study-place-links:not([hidden]){margin-top:16px}

.brand::before{content:"";display:block;flex:0 0 4px;width:4px;height:1.05em;border-radius:3px;background:#769c79}

#study-place-list .study-place-row{display:flex;align-items:stretch;border:1px solid #dce4d5;border-radius:6px;background:#fff;overflow:hidden}
#study-place-list .study-place-row[hidden],#study-flags figure[hidden]{display:none}
#study-place-list .study-place-check{display:flex;align-items:center;justify-content:center;min-width:34px;cursor:pointer;padding-left:6px}
#study-place-list input[type=checkbox]{width:17px;height:17px;margin:0;accent-color:#234d43;cursor:pointer;flex-shrink:0}
#study-place-list .study-place-row button{flex:1;min-width:0;border:0;border-radius:0;padding-left:5px;min-height:44px}

.quiz-top-actions{flex-wrap:wrap}
.quiz-top-actions #course-label{flex:1 1 140px;overflow-wrap:anywhere}
.quiz-top-actions #home-button{flex:0 0 auto;max-width:100%;white-space:normal}

.study-directory h2{margin-bottom:6px}
#study-directory-course{margin:0 0 16px;color:#7d8e75;font-size:12px;line-height:1.6;overflow-wrap:anywhere}

.study-selected-check{display:flex;align-items:center;gap:10px;flex:1;min-width:0;cursor:pointer;min-height:36px}
#study-selected-check{width:17px;height:17px;flex:0 0 17px;margin:0;accent-color:#234d43;cursor:pointer}

.study-check-all{display:flex;align-items:center;gap:9px;min-height:40px;margin:4px 3px 6px;font-size:13px;color:#234d43;cursor:pointer}
#study-check-all{width:17px;height:17px;flex:0 0 17px;margin:0;accent-color:#234d43;cursor:pointer}


#course-picker .picker-heading{position:sticky;top:0;z-index:20;background:var(--paper);padding:10px 0;margin:14px 0;flex-wrap:wrap;border-bottom:1px solid var(--line)}
#back-genres{min-height:48px;padding:12px 18px;font-size:14px;font-weight:600;background:#fff;border:1px solid #a8bba3;border-radius:8px;box-shadow:0 2px 5px #234d4310;flex-shrink:0}
#back-genres:hover{background:#e9eee2}

#study-start-quiz{width:100%;min-height:46px;margin:2px 0 12px;padding:12px 10px;font-size:13px}

/* Keep the home learning shortcuts close to the genre list. */
#home .hero:not(.atlas-cover){padding-bottom:16px}
#home .hero:not(.atlas-cover)+#explore .section-head{padding-top:16px}

/* A readable learning guide beneath the quiz choices. */
.learning-guide{margin:48px 0 24px;padding:32px 0;border-top:1px solid var(--line);max-width:1100px}
.learning-guide h2{font-size:clamp(22px,3vw,30px);margin:28px 0 14px;line-height:1.5}
.learning-guide h3{font-size:17px;line-height:1.6;margin:0 0 8px}
.learning-guide p{font-size:15px;line-height:1.9;max-width:75ch}
.guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:24px 0}
.guide-grid article{padding:20px;background:#edf1e7;border-radius:12px}
.guide-grid p{margin:0}.guide-link{display:inline-block;padding:10px 0;color:#234d43;text-underline-offset:5px}
.learning-guide details{border-bottom:1px solid var(--line);padding:16px 0}
.learning-guide summary{cursor:pointer;font-weight:600;line-height:1.7}.learning-guide details p{margin-bottom:0}
@media(max-width:700px){.guide-grid{grid-template-columns:1fr;gap:12px}.learning-guide{margin-top:32px}.guide-grid article{padding:18px}}

.learning-guide ol{padding-left:1.5em;max-width:75ch;font-size:15px;line-height:1.9}.learning-guide li+li{margin-top:8px}

.topic-links{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.topic-links a{padding:12px 18px;border:1px solid #ccd8c7;border-radius:8px;text-decoration:none}
