:root{color-scheme:dark;--bg:#0b1318;--panel:#101d23;--ink:#e5e9df;--muted:#8a9a9e;--line:#24333a;--accent:#a8d6b5;--teal:#70d2ad;--coral:#ef9c8c}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:13px;-webkit-font-smoothing:antialiased}button,a,select{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:5px}a{color:inherit}header{height:90px;border-bottom:1px solid var(--line);margin:0 4.5%;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;font:500 37px 'Playfair Display',serif;text-decoration:none;letter-spacing:-1.4px}.brand svg{width:31px;margin-right:11px;stroke:var(--accent);stroke-width:1}.brand-dot{color:var(--accent)}nav{display:flex;gap:33px;height:100%;align-items:center}nav button{border:0;background:none;color:var(--muted);font-size:12px;padding:35px 0}nav button span{margin-left:8px}.nav-active{color:var(--ink);position:relative}.nav-active:after{content:'';position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--accent)}.header-note{font-size:8px;letter-spacing:1.7px;display:flex;align-items:center;gap:9px;color:#99aaa9}.header-note i,.live-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--accent);box-shadow:0 0 9px #a8d6b533}main{margin:0 4.5%}.intro{display:flex;align-items:center;justify-content:space-between;padding:37px 0 29px}.eyebrow{font-size:9px;font-weight:500;letter-spacing:2px;color:var(--accent);margin:0}h1{font:400 clamp(34px,3.5vw,51px)/1.2 'Playfair Display',serif;letter-spacing:-1.5px;margin:12px 0 13px}.intro-copy{color:var(--muted);font-size:12px;margin:0}.intro-note{display:flex;align-items:center;gap:15px;font-size:11px;line-height:1.9;color:var(--muted)}.intro-note strong{font-weight:400;color:#bec9c7}.orbit{font-size:36px;color:#799b90}.collection{margin-bottom:25px}.collection-label{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.5px;color:var(--muted);margin-bottom:12px}.collection-label span:last-child{letter-spacing:.5px}.regions{display:grid;grid-template-columns:repeat(6,1fr) 1.22fr;gap:9px}.region{position:relative;border:1px solid var(--line);border-radius:6px;padding:14px 15px;background:#101a20;color:var(--ink);text-align:left;display:grid;grid-template-columns:auto 1fr;column-gap:10px;row-gap:3px;align-items:center;transition:.2s}.region:hover{border-color:#668678;background:#16272b}.region.active{border-color:#8ebba1;background:#182b2b}.region svg{width:25px;height:25px;grid-row:1/3;stroke:#719488;fill:none;stroke-width:1}.region.active svg{stroke:var(--accent)}.region strong{font-size:11px;font-weight:500;white-space:nowrap}.region small{font-size:9px;color:var(--muted)}.region:last-child{border-style:dashed;background:#172227}.region.complete:after{content:'✓';position:absolute;top:5px;right:7px;font-size:9px;color:var(--accent)}.game-layout{display:grid;grid-template-columns:300px 1fr;border:1px solid var(--line);border-radius:9px;overflow:hidden;min-height:550px}.quiz-panel{background:linear-gradient(150deg,#132229,#0e1a20);padding:25px 25px 0;display:flex;flex-direction:column;border-right:1px solid var(--line);z-index:2}.panel-top{display:flex;justify-content:space-between;align-items:center;font-size:8px;letter-spacing:1.8px;color:var(--accent)}.round-row{margin-top:25px;display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px;color:var(--muted)}.progress-track{height:3px;background:#26363b;margin:10px 0 26px;border-radius:3px;overflow:hidden}#progress{height:100%;width:0;background:var(--accent);transition:width .4s}.question .eyebrow{font-size:8px;color:var(--muted);letter-spacing:1.5px}.flag-frame{height:75px;display:flex;align-items:center;margin:20px 0 15px}.flag-frame img{display:block;width:93px;height:64px;object-fit:contain;object-position:left;filter:drop-shadow(0 4px 7px #0004)}h2{font:400 31px/1.18 'Playfair Display',serif;letter-spacing:-.7px;margin:0 0 15px;overflow-wrap:anywhere}.question p:not(.eyebrow){color:var(--muted);font-size:11px;line-height:1.8;margin:0}.quiz-actions{margin-top:auto;padding-top:23px}.selected{font-size:10px;color:#b2c1bb;line-height:1.7;margin-bottom:12px;min-height:17px}.selected span{margin-left:5px}.primary{display:flex;justify-content:space-between;align-items:center;gap:15px;width:100%;border:1px solid var(--accent);border-radius:4px;background:var(--accent);color:#13261e;padding:13px 14px;font-weight:600;font-size:11px}.primary:hover{background:#b9e6c6}.primary:disabled{background:#223238;border-color:#2b3c40;color:#6d8286}.primary span{font-size:16px;font-weight:400}.secondary-row{display:flex;justify-content:space-between;margin:13px 0 21px}.secondary-row button{background:none;border:0;color:var(--muted);font-size:9px;padding:3px 0}.secondary-row button:hover{color:var(--accent)}.secondary-row button:disabled{opacity:.4}.toggle{display:inline-block;margin-left:6px;vertical-align:middle;width:20px;height:11px;border:1px solid #596c70;border-radius:10px;position:relative}.toggle:after{content:'';position:absolute;left:2px;top:2px;width:5px;height:5px;border-radius:50%;background:#8d9d9d}button[aria-pressed=true] .toggle{background:var(--accent);border-color:var(--accent)}button[aria-pressed=true] .toggle:after{left:11px;background:#213b2c}.panel-foot{margin:0 -25px;border-top:1px solid var(--line);padding:15px 23px;display:flex;gap:9px;font-size:8px;line-height:1.5;color:var(--muted)}.panel-foot>span:first-child{color:var(--accent);font-size:13px}.feedback{margin-top:15px;font-size:11px;line-height:1.7;display:none;border-left:2px solid var(--teal);padding:7px 10px;background:#82cfa408;color:#b6c9c0}.feedback.visible{display:block}.feedback.wrong{border-color:var(--coral);background:#ef9c8c08}.feedback strong{display:block;color:var(--teal);font-weight:500}.feedback.wrong strong{color:var(--coral)}.globe-panel{position:relative;min-height:550px;background:radial-gradient(ellipse at 50% 50%,#17303566 0%,#0c151b 68%);overflow:hidden}.globe-panel:before{content:'';position:absolute;inset:0;opacity:.15;background-image:radial-gradient(#9db2b7 1px,transparent 1px);background-size:49px 49px;pointer-events:none}#map{position:absolute;inset:0}.globe-caption{position:absolute;top:23px;left:25px;display:flex;align-items:center;gap:9px;font-size:8px;letter-spacing:1.7px;color:#8fa8a7;pointer-events:none}.globe-caption .live-dot{width:4px;height:4px}.globe-tools{position:absolute;right:20px;top:20px;display:grid;gap:5px}.globe-tools button{width:31px;height:31px;border:1px solid #31464a;border-radius:4px;background:#102026dd;color:#b0c6bd;font-size:18px}.globe-tools button[aria-pressed=true]{color:var(--accent);border-color:var(--accent)}.map-message{position:absolute;bottom:49px;left:50%;transform:translateX(-50%);background:#122329dc;border:1px solid #30434a;border-radius:25px;color:#b7c7c3;white-space:nowrap;padding:10px 17px;font-size:9px;pointer-events:none}.map-legend{position:absolute;bottom:18px;left:25px;display:flex;gap:17px;color:#7d9899;font-size:8px;pointer-events:none}.map-legend span{display:flex;align-items:center;gap:6px}.map-legend i{width:6px;height:6px;background:#45625f;display:inline-block;border-radius:1px}.map-legend .legend-correct{background:var(--teal)}.map-legend .legend-dot{background:none;border:1px solid #9cbcae;border-radius:50%}.crosshair{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:#a8d6b54d;pointer-events:none;font-size:18px;font-weight:400}.map-error{position:absolute;inset:80px 30px auto;background:#32251f;border:1px solid #7f5143;padding:20px;line-height:1.8;border-radius:6px;color:#efc7b4;z-index:4}.stats{display:grid;grid-template-columns:repeat(4,1fr);margin:25px 0 0;padding:21px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.stats>div{display:flex;justify-content:center;align-items:center;gap:17px;border-right:1px solid var(--line)}.stats>div:last-child{border:0}.stat-icon{font-size:25px;color:#759a88;font-weight:400}.stats strong{font:400 27px 'Playfair Display',serif}.stats strong span{font:11px 'DM Sans',sans-serif;color:var(--muted)}.stats p{font-size:7px;letter-spacing:1.3px;color:var(--muted);margin:5px 0 0}footer{display:flex;justify-content:space-between;gap:15px;padding:23px 0;color:#6c858b;font-size:8px;letter-spacing:.3px}footer button{color:inherit;border:0;background:none;font-size:inherit;padding:0}.review{padding:30px;border:1px solid var(--line);border-radius:7px;margin-top:24px;background:var(--panel)}.review[hidden]{display:none}.review h2{font-size:25px;margin:8px 0 20px}.missed-flags{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}.missed-country{display:flex;align-items:center;gap:8px;padding:7px 10px;background:#1c2c31;border-radius:4px;font-size:10px;color:#b5c6bd}.missed-country img{width:22px;height:16px;object-fit:contain}.outline{background:none;border:1px solid #48665e;padding:11px 16px;color:var(--accent);border-radius:4px;font:inherit;font-size:11px}dialog{max-width:480px;width:calc(100% - 40px);max-height:85vh;overflow:auto;background:#142229;border:1px solid #3a514f;border-radius:10px;padding:35px;color:var(--ink);box-shadow:0 25px 100px #0007}dialog::backdrop{background:#050d12bb;backdrop-filter:blur(7px)}dialog h2{font-size:35px;margin:16px 0 20px}dialog p,dialog li{font-size:12px;line-height:1.8;color:#a0b3b3}dialog ol{padding-left:18px}dialog li{padding:0 0 8px 5px}dialog a{color:var(--accent)}.dialog-close{position:absolute;right:15px;top:10px;background:none;border:0;color:var(--muted);font-size:24px}.dialog-buttons{display:flex;gap:10px;margin-top:24px}.dialog-buttons button{flex:1}.mapboxgl-ctrl-logo{opacity:.5}.mapboxgl-ctrl-bottom-right{bottom:0}.mapboxgl-canvas:focus-visible{outline:1px solid var(--accent);outline-offset:-2px}@media(min-width:1550px){main,header{max-width:1450px;margin-left:auto;margin-right:auto}.game-layout{grid-template-columns:330px 1fr;min-height:630px}.globe-panel{min-height:630px}.quiz-panel{padding:30px 30px 0}.panel-foot{margin:0 -30px}}@media(max-width:1100px){.header-note{display:none}.regions{gap:6px}.region{padding:12px 8px;column-gap:7px}.region svg{display:none}.region strong{font-size:10px}.region{grid-template-columns:1fr}.game-layout{grid-template-columns:270px 1fr}.quiz-panel{padding:22px 21px 0}.panel-foot{margin:0 -21px}.intro-note{font-size:10px}}@media(max-width:700px){header{height:72px;margin:0 5%}.brand{font-size:30px}.brand svg{width:25px}nav{gap:18px}nav button{font-size:9px;padding:28px 0}main{margin:0 5%}.intro{padding:28px 0 25px}.intro-note{display:none}h1{font-size:36px}.eyebrow{font-size:8px}.intro-copy{font-size:11px}.regions{grid-template-columns:repeat(3,1fr);gap:7px}.region{padding:11px 12px}.region:last-child{grid-column:1/-1;display:flex;justify-content:space-between}.region:last-child strong:before{content:'◎ ';color:var(--accent)}.region small{font-size:8px}.collection-label{font-size:7px;letter-spacing:1px}.game-layout{display:flex;flex-direction:column}.globe-panel{min-height:410px;order:0}.quiz-panel{order:1;border-right:0;border-top:1px solid var(--line);padding:20px 22px 0;display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.panel-top,.round-row,.progress-track,.feedback,.panel-foot{grid-column:1/-1}.round-row{margin-top:15px}.progress-track{margin:8px 0 22px}.question{grid-column:1/-1;display:grid;grid-template-columns:65px 1fr;column-gap:16px}.question .eyebrow{grid-column:2;grid-row:1}.flag-frame{grid-column:1;grid-row:1/4;margin:0;height:65px;align-self:center}.flag-frame img{width:65px;height:45px}.question h2{grid-column:2;font-size:28px;margin:8px 0}.question p:not(.eyebrow){grid-column:2;font-size:10px}.quiz-actions{grid-column:1/-1;width:100%;padding-top:20px}.secondary-row{margin-bottom:17px}.panel-foot{margin:0 -22px}.stats{grid-template-columns:repeat(2,1fr);row-gap:25px;padding:21px 0}.stats>div:nth-child(2){border:0}.stats>div{justify-content:flex-start;padding-left:15%}.stats strong{font-size:25px}.stats p{font-size:6px}.globe-caption{left:17px;top:20px;font-size:7px;letter-spacing:1px}.globe-tools{right:12px;top:14px}.map-legend{left:17px;gap:12px;font-size:7px}.map-message{font-size:8px;padding:9px 12px;max-width:90%;white-space:normal;text-align:center;width:max-content}footer{flex-wrap:wrap;font-size:7px;line-height:1.8}footer span:nth-child(2){order:3;width:100%}.review{padding:22px}.review h2{font-size:23px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

[hidden]{display:none!important}
/* Larger flags and country discovery profiles. */
.flag-frame{height:140px;margin:21px 0 20px}.flag-frame img{width:210px;max-width:100%;height:138px}.game-layout,.globe-panel{min-height:620px}.country-facts{background:linear-gradient(120deg,#14252a,#101c23);border:1px solid var(--line);border-radius:8px;margin-top:22px;padding:26px 28px}.facts-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:25px}.facts-heading h2{font-size:29px;margin:9px 0 0}.facts-heading .outline{flex-shrink:0;font-size:10px}.fact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}.fact-grid article{position:relative;padding:0 23px 0 0;border-right:1px solid var(--line)}.fact-grid article:last-child{border:0;padding-right:0}.fact-icon{color:var(--accent);font-size:21px;font-family:'Playfair Display',serif}.fact-grid h3,.profile-dialog h3{font-size:10px;letter-spacing:1px;font-weight:500;color:var(--accent);margin:12px 0 10px}.fact-grid p{font-size:11px;line-height:1.85;color:#b2c2be;margin:0;overflow-wrap:anywhere}.facts-source{border-top:1px solid var(--line);margin:23px 0 0;padding-top:14px;font-size:9px;color:var(--muted);line-height:1.8}.profile-dialog{max-width:680px}.profile-title{display:flex;align-items:center;gap:25px;margin:23px 0 30px}.profile-title img{width:160px;max-height:110px;object-fit:contain;object-position:left}.profile-title h2{margin:0}.profile-dialog #profileBody section{padding:20px 0;border-top:1px solid var(--line)}.profile-dialog h3{font-size:11px;margin:0 0 10px}.profile-dialog p{margin:0;line-height:1.9}.profile-dialog .profile-note{margin-top:10px;font-size:11px;color:#819b9b}.profile-sources{padding-top:20px;border-top:1px solid var(--line)}.profile-sources a{display:block;font-size:11px;line-height:1.8;margin-bottom:8px}.profile-dialog .profile-date{font-size:10px;line-height:1.8;margin-top:18px;color:#8ca39f}
@media(max-width:700px){.game-layout{min-height:0}.globe-panel{min-height:410px}.question{display:block}.question .flag-frame{height:115px;margin:19px 0 18px}.flag-frame img{width:180px;height:115px}.question h2{font-size:30px;margin:0 0 12px}.question p:not(.eyebrow){font-size:11px}.country-facts{padding:23px 21px}.facts-heading{display:block}.facts-heading h2{font-size:26px;margin-bottom:18px}.fact-grid{grid-template-columns:1fr;gap:20px}.fact-grid article{padding:0 0 20px;border-right:0;border-bottom:1px solid var(--line)}.fact-grid article:last-child{padding-bottom:0}.fact-grid p{font-size:12px}.profile-title{display:block}.profile-title img{width:180px;max-height:120px;margin-bottom:24px}.profile-dialog{padding:30px 24px}}
.feedback-profile{display:block;margin-top:10px;padding:4px 0;border:0;background:none;color:var(--accent);text-align:left;font-size:10px;line-height:1.7;text-decoration:underline;text-underline-offset:3px}.feedback-profile:hover{color:#dcf7e3}.feedback-profile:disabled{opacity:.4}
/* Country discovery cards. */
.facts-heading{display:grid;grid-template-columns:140px 1fr auto;gap:24px}.facts-outline{margin:0;text-align:center;background:radial-gradient(ellipse,#a8d6b510,transparent 70%);border-radius:6px}.facts-outline img{width:140px;height:100px;object-fit:contain}.facts-outline figcaption{font-size:7px;letter-spacing:1.4px;color:var(--muted);margin-top:6px}.profile-dialog{max-width:800px;padding-bottom:0}.profile-hero{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:center;margin:24px 0 30px}.profile-hero figure{margin:0;background:radial-gradient(ellipse,#a8d6b515,transparent 75%);text-align:center;padding:10px}.profile-hero figure img{width:100%;height:190px;object-fit:contain}.profile-hero figcaption{font-size:8px;letter-spacing:1px;color:var(--muted);margin-top:8px}.profile-hero .profile-title{display:block;margin:0}.profile-hero .profile-title img{width:130px;height:85px;margin-bottom:17px}.profile-hero h2{font-size:38px;margin:0 0 9px}.profile-hero .profile-title p{font-size:10px;color:var(--accent);letter-spacing:1px}.profile-metrics{display:grid;grid-template-columns:1fr 1fr;gap:0 24px;margin:0 0 20px;padding:0}.profile-metrics>div{padding:16px 0;border-top:1px solid var(--line)}.profile-metrics dt{font-size:8px;letter-spacing:1.5px;text-transform:uppercase;color:var(--accent);margin-bottom:8px}.profile-metrics dd{font-size:12px;line-height:1.7;color:var(--ink);margin:0}.profile-footer{position:sticky;bottom:0;display:flex;justify-content:space-between;gap:15px;background:#142229f7;backdrop-filter:blur(10px);padding:18px 0;border-top:1px solid var(--line);margin-top:24px}.profile-footer button{width:auto;min-width:150px}.profile-dialog .profile-date{padding-bottom:8px}@media(max-width:700px){.facts-heading{grid-template-columns:90px 1fr;gap:14px}.facts-outline img{width:90px;height:78px}.facts-heading h2{font-size:23px;margin-bottom:0}.facts-heading>.outline{grid-column:1/-1;justify-self:start;margin-top:8px}.facts-outline figcaption{font-size:6px;letter-spacing:.6px}.profile-hero{gap:16px;margin:24px 0}.profile-hero figure{padding:0}.profile-hero figure img{height:130px}.profile-hero .profile-title img{width:110px;height:75px;margin-bottom:12px}.profile-hero h2{font-size:29px}.profile-metrics{gap:0 15px}.profile-metrics dd{font-size:11px}.profile-footer{gap:10px}.profile-footer button{min-width:0;font-size:10px;flex:1}.profile-dialog{padding-bottom:0}}
/* Explorer passport and collection navigation. */
.rank-nav{background:none;border:1px solid #48665e;color:var(--accent);padding:9px 13px;border-radius:30px;font-size:11px;white-space:nowrap}.rank-strip{border:1px solid var(--line);background:linear-gradient(110deg,#182b2b,#101c23);border-radius:7px;margin-bottom:25px;padding:19px 23px;display:flex;align-items:center;gap:19px}.rank-emblem{font-size:36px;color:var(--accent);line-height:1}.rank-current{display:grid;grid-template-columns:auto auto;column-gap:15px;align-items:baseline}.rank-current .eyebrow{grid-column:1/-1;font-size:7px;letter-spacing:1.5px;margin-bottom:5px}.rank-current strong{font:26px 'Playfair Display',serif}.rank-current>span{font-size:10px;color:var(--muted)}.rank-progress{margin-left:auto;width:35%;max-width:350px}.rank-progress-label{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#b3c8be}.rank-progress button{background:none;border:0;color:var(--muted);font-size:9px;padding:0}.rank-progress .progress-track{margin:10px 0 0;height:4px}#rankBar{height:100%;background:var(--accent);transition:width .4s}.catalog-row{display:flex;justify-content:space-between;align-items:center;margin:0 0 20px;gap:15px}.catalog-row label{font-size:8px;letter-spacing:1.5px;color:var(--muted)}.catalog-row select{font:11px 'DM Sans',sans-serif;background:#15252b;border:1px solid #3d5954;color:var(--ink);border-radius:5px;padding:10px 34px 10px 12px;max-width:100%}.rank-ladder{margin-top:25px}.rank-step{display:flex;justify-content:space-between;gap:16px;padding:15px 0;border-top:1px solid var(--line);color:#718b8b;font-size:15px}.rank-step small{font-size:10px;line-height:1.7}.rank-step.earned{color:var(--accent)}.profile-rank{padding:12px 15px!important;background:#a8d6b510;border:1px solid #3a5b4d;border-radius:5px;color:var(--accent)!important;font-size:11px!important;margin:0 0 23px!important}@media(max-width:700px){.rank-nav{padding:7px 10px;font-size:9px}nav{gap:12px}.brand svg{margin-right:6px}.rank-strip{padding:18px;gap:13px;flex-wrap:wrap}.rank-emblem{font-size:30px}.rank-current{flex:1;column-gap:12px}.rank-current strong{font-size:24px}.rank-current>span{font-size:9px}.rank-progress{width:100%;max-width:none;margin:7px 0 0}.catalog-row{display:block}.catalog-row label{display:block;margin-bottom:9px}.catalog-row select{width:100%;font-size:13px}.rank-step{font-size:14px}.rank-step small{font-size:9px}}
/* Quiet feedback and challenge controls. */
.play-options{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-bottom:16px}.play-options .difficulty-label{font-size:8px;letter-spacing:1.2px;color:var(--muted);margin-left:8px}.play-options select{font:11px 'DM Sans',sans-serif;background:#15252b;border:1px solid #3d5954;color:var(--ink);border-radius:5px;padding:10px 12px;max-width:100%}.sound-toggle{border:1px solid #3d5954;background:none;color:var(--accent);padding:10px 13px;border-radius:30px;font-size:10px;white-space:nowrap}.sound-toggle[aria-pressed=false]{color:var(--muted);border-color:var(--line)}@media(max-width:700px){.play-options{display:grid;grid-template-columns:1fr auto;gap:10px}.play-options .difficulty-label{grid-row:1;grid-column:1;margin:0}.play-options select{grid-column:1/-1;width:100%;font-size:13px}.sound-toggle{grid-row:1;grid-column:2;padding:8px 12px}}
.inline-profile{position:relative;max-width:none;width:100%;margin:24px 0 0;padding:28px;background:#142229;border:1px solid #3a514f;border-radius:9px;color:var(--ink);scroll-margin-top:24px}.inline-profile .profile-footer{position:static}.inline-profile .profile-title{max-width:420px}.inline-profile #profileBody{display:grid;grid-template-columns:1fr 1fr;gap:0 28px}.inline-profile .profile-hero{max-width:760px}.inline-profile .profile-metrics{grid-template-columns:repeat(4,1fr)}.inline-profile .profile-sources{margin-top:12px}@media(max-width:700px){.inline-profile{padding:24px 20px}.inline-profile #profileBody{grid-template-columns:1fr}.inline-profile .profile-metrics{grid-template-columns:1fr 1fr}}
/* Audible rewards and saved globe palettes. */
.appearance-options{display:grid;grid-template-columns:1fr 1.35fr;gap:10px 28px;padding:18px 20px;margin:0 0 20px;background:#101e24;border:1px solid var(--line);border-radius:6px}.theme-control,.volume-control{display:flex;gap:12px;align-items:center}.appearance-options label{font-size:8px;color:var(--muted);letter-spacing:1.3px;white-space:nowrap}.theme-control select{flex:1;min-width:100px;max-width:190px;padding:9px 12px;border-radius:4px;border:1px solid #3d5954;background:#16282d;color:var(--ink);font:11px 'DM Sans',sans-serif}.volume-control label span{display:inline-block;min-width:24px;margin-left:5px;color:var(--accent);letter-spacing:0}.volume-control input{width:100%;min-width:60px;max-width:150px;accent-color:var(--accent);cursor:pointer}.volume-control .sound-toggle{margin-left:auto;color:var(--accent);border-color:#6c9b83}.sound-status{grid-column:1/-1;color:var(--muted);font-size:9px;line-height:1.5;margin:0;text-align:right}@media(max-width:700px){.appearance-options{grid-template-columns:1fr;padding:17px;gap:16px}.theme-control{justify-content:space-between}.theme-control select{max-width:none;flex:0 1 60%;font-size:13px}.volume-control{flex-wrap:wrap;gap:12px}.volume-control input{flex:1;max-width:none}.volume-control .sound-toggle{padding:10px 12px}.sound-status{text-align:left;font-size:10px}}
/* Compact play-first header: keep the globe above the fold. */
header{height:58px}.brand{font-size:30px}.brand svg{width:25px;margin-right:9px}nav{gap:26px}nav button{padding:20px 0;font-size:11px}.compact-intro{display:grid;grid-template-columns:1fr minmax(320px,390px);gap:25px;padding:20px 0 18px;align-items:center}.compact-intro .eyebrow{font-size:7px;letter-spacing:1.6px}.compact-intro h1{font-size:34px;letter-spacing:-1px;margin:6px 0 5px;line-height:1.15}.compact-intro .intro-copy{font-size:10px}.compact-intro .rank-strip{padding:12px 16px;margin:0;gap:18px;border-color:#2c4544;background:linear-gradient(110deg,#172c2b,#101c23)}.compact-intro .rank-current{display:flex;flex-direction:column;align-items:flex-start;gap:4px;flex-shrink:0}.rank-title-button{display:flex;gap:7px;align-items:center;border:0;background:none;padding:0;color:var(--ink)}.rank-title-button>span:first-child{color:var(--accent);font-size:22px}.compact-intro .rank-current strong{font-size:22px;font-weight:400}.compact-intro .rank-current>span{font-size:8px}.compact-intro .rank-progress{width:auto;flex:1;max-width:none;margin-left:auto}.compact-intro .rank-progress-label{font-size:8px;gap:10px;white-space:nowrap}.compact-intro .rank-progress button{font-size:8px}.compact-intro .rank-progress .progress-track{margin-top:8px;height:3px}.compact-collection{margin-bottom:14px}.expedition-toolbar{display:grid;grid-template-columns:1.6fr 1fr 1fr auto;gap:20px;align-items:end;background:#101e24;border:1px solid var(--line);border-radius:6px;padding:11px 14px}.toolbar-field{display:grid;gap:5px;min-width:0}.toolbar-field label{font-size:7px;color:var(--muted);letter-spacing:1.2px}.toolbar-field select{width:100%;min-width:0;padding:0 22px 0 0;border:0;border-radius:0;background:transparent;color:var(--ink);font:11px 'DM Sans',sans-serif;height:24px}.toolbar-field option{background:#142229;color:var(--ink)}.toolbar-audio{display:flex;gap:12px;align-items:center;padding-bottom:1px}.toolbar-audio .sound-toggle{font-size:10px;padding:8px 12px}.settings-toggle{border:0;background:none;color:#a6bbb3;font:10px 'DM Sans',sans-serif;padding:8px 0;white-space:nowrap}.settings-toggle span{display:inline-block;margin-left:5px}.settings-toggle[aria-expanded=true] span{transform:rotate(180deg)}.audio-settings-content{display:flex;align-items:center;gap:25px;padding:14px 16px;background:#132329;border:1px solid var(--line);border-top:0;border-radius:0 0 6px 6px;margin-top:-3px}.audio-settings-content .volume-control{flex:1;max-width:450px}.audio-settings-content .volume-control input{max-width:220px}.audio-settings-content .sound-status{margin-left:auto;font-size:9px}.compact-collection .collection-label{margin:14px 0 8px;font-size:7px;letter-spacing:1.3px}.compact-collection .regions{gap:7px}.compact-collection .region{padding:10px 12px;column-gap:9px;row-gap:2px}.compact-collection .region svg{width:21px;height:21px}.compact-collection .region strong{font-size:10px}.compact-collection .region small{font-size:8px}.stats{margin-top:18px;padding:17px 0}
@media(max-width:1050px){.compact-intro{grid-template-columns:1fr 330px;gap:16px}.compact-intro h1{font-size:30px}.expedition-toolbar{gap:14px;grid-template-columns:1.45fr .8fr .8fr auto}.toolbar-audio{gap:8px}.settings-toggle{font-size:9px}.compact-collection .region{padding:10px 9px}}
@media(max-width:700px){header{height:55px;margin:0 4%}.brand{font-size:28px}nav{gap:20px}nav button{padding:19px 0;font-size:10px}main{margin:0 4%}.compact-intro{display:block;padding:18px 0 12px}.compact-intro h1{font-size:29px;margin:5px 0}.compact-intro .intro-copy{display:none}.compact-intro .rank-strip{margin-top:13px;padding:9px 12px;flex-wrap:nowrap;gap:20px}.compact-intro .rank-current{flex:1;display:flex;flex-direction:row;align-items:baseline;gap:10px}.compact-intro .rank-current strong{font-size:19px}.rank-title-button>span:first-child{font-size:19px}.compact-intro .rank-current>span{font-size:8px}.compact-intro .rank-progress{flex:0 1 130px;width:130px;margin:0}.compact-intro .rank-progress-label{font-size:7px;white-space:normal}.compact-intro .rank-progress button{font-size:7px;white-space:nowrap}.compact-intro .rank-progress .progress-track{margin-top:6px}.expedition-toolbar{grid-template-columns:1.2fr 1fr;gap:12px 15px;padding:11px 12px}.toolbar-field label{font-size:7px}.toolbar-field select{font-size:13px;height:26px}.toolbar-audio{align-self:end;justify-content:flex-end;padding:0;gap:10px}.toolbar-audio .sound-toggle{padding:8px 10px;font-size:9px}.settings-toggle{font-size:9px}.audio-settings-content{display:block;padding:14px 12px}.audio-settings-content .volume-control{flex-wrap:nowrap;gap:10px;max-width:none}.audio-settings-content .volume-control input{min-width:40px;max-width:none}.audio-settings-content .sound-status{text-align:left;margin-top:9px}.compact-collection .collection-label{margin-top:12px}.compact-collection .regions{display:flex;overflow-x:auto;gap:7px;padding:0 0 4px;scrollbar-width:thin;scrollbar-color:#48665e transparent}.compact-collection .region{display:flex;flex:0 0 auto;flex-direction:column;align-items:flex-start;gap:3px;min-width:91px;padding:10px 11px}.compact-collection .region svg{display:none}.compact-collection .region:last-child{justify-content:center;border-style:dashed}.compact-collection .region:last-child strong:before{content:'◎ '}.compact-collection .region strong{font-size:10px}.compact-collection .region small{font-size:8px}.compact-collection{margin-bottom:11px}.stats{margin-top:15px}}
@media(max-width:380px){.compact-intro .rank-current{display:block}.compact-intro .rank-current>span{display:block;margin-top:3px}.toolbar-audio{gap:7px}.settings-toggle{font-size:8px}}
@media(max-width:700px){.compact-intro .rank-current{min-width:0;flex-wrap:wrap;gap:3px 9px}.compact-intro .rank-progress{min-width:110px}}

.quick-quizzes{display:flex;align-items:center;gap:6px;margin-left:auto;margin-right:16px}.quick-quizzes>span{font-size:7px;color:var(--muted);margin-right:4px}.quick-quizzes button{border:1px solid var(--line);background:#13252a;color:var(--accent);border-radius:20px;padding:5px 10px;font:10px "DM Sans",sans-serif;letter-spacing:0}.quick-quizzes button:hover{background:#25413e;border-color:var(--accent)}.compact-collection .collection-label{align-items:center;gap:8px}@media(max-width:700px){.compact-collection .collection-label{flex-wrap:wrap}.quick-quizzes{order:3;width:100%;margin:2px 0 0}.quick-quizzes button{flex:1;padding:7px}.quick-quizzes>span{font-size:7px}}

.study-panel{padding:24px;background:#101e24;border-right:1px solid var(--line);min-width:0}.study-panel h2{font:28px 'Playfair Display',serif;margin:8px 0 12px}.study-panel>p{color:var(--muted);font-size:11px;line-height:1.6}.study-panel label{display:block;font-size:9px;color:var(--muted);margin:13px 0 6px}.study-panel input,.study-panel select{width:100%;border:1px solid var(--line);border-radius:5px;background:#0b171c;color:var(--ink);padding:9px;font:12px 'DM Sans',sans-serif}.study-list{max-height:270px;overflow:auto;margin:8px 0 15px;scrollbar-width:thin;scrollbar-color:#48665e transparent}.study-country{display:flex;align-items:center;gap:10px;width:100%;border:0;background:none;color:var(--ink);padding:8px;border-radius:5px;text-align:left;font:12px 'DM Sans',sans-serif}.study-country img{width:28px;height:19px;object-fit:contain}.study-country:hover,.study-country.active{background:#28443f}.study-panel>.outline{width:100%;font-size:10px;padding:10px}#studyModeButton[aria-pressed=true]{color:var(--accent)}@media(max-width:700px){.study-panel{padding:18px}.study-list{max-height:170px}nav{gap:15px}}

.profile-sources details{margin-top:12px}.profile-sources summary{cursor:pointer;color:var(--accent);font-size:12px;padding:8px 0}.profile-sources details a{margin:12px 0;line-height:1.6}.profile-sources>.profile-note{max-width:650px}

.capital-quiz{margin:0 0 18px}.capital-choices{display:grid;gap:7px}.capital-choices button{border:1px solid var(--line);background:#172a30;border-radius:5px;padding:10px 12px;color:var(--ink);text-align:left;font:12px 'DM Sans',sans-serif}.capital-choices button:hover,.capital-choices button[aria-pressed=true]{border-color:var(--accent);background:#2a4942}.capital-quiz label{display:block;color:var(--muted);font-size:10px;margin-bottom:7px}.capital-quiz input{width:100%;background:#0c191e;border:1px solid var(--line);border-radius:5px;color:var(--ink);padding:12px;font:14px 'DM Sans',sans-serif}.expedition-toolbar{grid-template-columns:1fr 1.5fr 1fr 1fr auto;gap:14px}.fact-grid{grid-template-columns:repeat(4,1fr)}@media(max-width:1050px){.expedition-toolbar{grid-template-columns:1fr 1.3fr .9fr .9fr auto;gap:10px}}@media(max-width:700px){.expedition-toolbar{grid-template-columns:1fr 1fr}.fact-grid{grid-template-columns:1fr 1fr}.toolbar-audio{grid-column:1/-1}}

/* Stable globe with floating prompt and action dock. */
.game-layout{display:block;position:relative;height:min(760px,calc(100svh - 24px));min-height:580px;scroll-margin-top:12px}.game-layout .globe-panel{position:absolute;inset:0;height:100%;min-height:0}.game-layout .quiz-panel{position:absolute;inset:18px auto 48px 18px;width:285px;z-index:3;display:flex;flex-direction:column;gap:12px;padding:0;background:none;border:0;pointer-events:none}.quiz-prompt,.game-layout .quiz-actions{pointer-events:auto;background:rgba(13,28,34,.94);border:1px solid #48665e80;border-radius:10px;box-shadow:0 8px 28px #0003;backdrop-filter:blur(14px)}.quiz-prompt{padding:16px;max-height:calc(100% - 155px);overflow:auto;scrollbar-width:thin;scrollbar-color:#48665e transparent}.quiz-prompt .panel-top{font-size:7px;letter-spacing:1.3px}.quiz-prompt .round-row{margin-top:12px;font-size:8px}.quiz-prompt>.progress-track{margin:8px 0 14px;height:3px}.quiz-prompt .question{display:grid;grid-template-columns:58px 1fr;gap:4px 12px;align-items:center}.quiz-prompt .flag-frame{grid-column:1;grid-row:1/3;height:48px;margin:0;align-self:center}.quiz-prompt .flag-frame img{width:58px;height:43px}.quiz-prompt .question .eyebrow{grid-column:2;grid-row:1;font-size:7px;letter-spacing:1.1px}.quiz-prompt .question h2{grid-column:2;grid-row:2;font-size:23px;line-height:1.15;margin:0;letter-spacing:-.4px}.quiz-prompt .question p:not(.eyebrow){grid-column:1/-1;grid-row:3;font-size:10px;line-height:1.5;margin:10px 0 0}.quiz-prompt .capital-quiz{margin:12px 0 0}.quiz-prompt .capital-choices{grid-template-columns:1fr 1fr;gap:6px}.quiz-prompt .capital-choices button{font-size:10px;padding:9px;line-height:1.4}.quiz-prompt .feedback{margin:12px 0 0;padding:7px 9px;font-size:10px;line-height:1.5}.quiz-prompt .feedback-profile{font-size:9px}.game-layout .quiz-actions{margin-top:auto;padding:12px 14px;flex-shrink:0}.quiz-actions .selected{font-size:9px;min-height:14px;margin:0 0 8px}.quiz-actions .primary{padding:12px 14px;min-height:42px;font-size:12px}.quiz-actions .secondary-row{margin:9px 0 0}.quiz-panel .panel-foot{display:none}.game-layout .globe-caption{left:325px;top:24px}.game-layout .map-message{left:calc(50% + 150px);bottom:18px;max-width:calc(100% - 345px)}.game-layout .map-legend{left:325px;bottom:15px}.game-layout .study-panel{position:absolute;left:18px;top:18px;bottom:18px;width:285px;z-index:3;overflow:auto;background:rgba(13,28,34,.94);border:1px solid #48665e80;border-radius:10px;box-shadow:0 8px 28px #0003;backdrop-filter:blur(14px);padding:18px}.game-layout .study-panel .study-list{max-height:calc(100svh - 390px)}
@media(max-width:700px){.game-layout{height:calc(100svh - 16px);min-height:560px}.game-layout .quiz-panel{inset:12px 12px 12px;width:auto;gap:10px}.quiz-prompt{width:calc(100% - 54px);max-width:330px;padding:12px;max-height:calc(100% - 170px)}.quiz-prompt .question h2{font-size:22px}.quiz-prompt .question{grid-template-columns:48px 1fr;gap:3px 10px}.quiz-prompt .flag-frame img{width:48px;height:34px}.quiz-prompt .flag-frame{height:38px}.quiz-prompt .round-row{margin-top:8px}.quiz-prompt>.progress-track{margin:6px 0 10px}.game-layout .quiz-actions{width:100%;padding:10px 12px}.game-layout .globe-caption{display:none}.game-layout .globe-tools{right:9px;top:12px}.game-layout .map-message{left:50%;bottom:155px;max-width:90%;font-size:9px}.game-layout .map-legend{display:none}.game-layout .study-panel{left:12px;top:12px;bottom:auto;width:calc(100% - 76px);max-height:42%;padding:14px}.study-panel h2{font-size:23px}.study-panel .study-list{max-height:120px!important}.study-panel>p:not(.eyebrow){font-size:10px}.study-panel label{margin-top:8px}.study-panel input,.study-panel select{padding:7px}}

.game-layout{overflow-anchor:none}.quiz-prompt,.quiz-actions{overflow-anchor:none}@media(max-width:700px) and (max-height:650px){.game-layout{min-height:0;height:calc(100svh - 16px)}}

@media(max-width:700px){.quiz-prompt .capital-choices button{min-height:44px}.globe-tools button{min-width:40px;min-height:40px}.quiz-actions .secondary-row button{min-height:28px}}

.gesture-setting{display:grid;gap:6px;min-width:180px}.gesture-setting label{font-size:8px;letter-spacing:1px;color:var(--muted)}.gesture-setting select{background:#0e1c22;border:1px solid var(--line);border-radius:5px;padding:8px;color:var(--ink);font:12px 'DM Sans',sans-serif}.gesture-setting small{font-size:9px;color:var(--muted)}.quiz-actions{position:relative;overflow:hidden}.hold-progress{position:absolute;top:0;left:0;right:0;height:4px;background:#38564e}.hold-progress span{display:block;height:100%;background:#c8f0a8;animation:hold-answer .65s linear forwards;transform-origin:left}@keyframes hold-answer{from{transform:scaleX(0)}to{transform:scaleX(1)}}.capital-choices button{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation}@media(max-width:700px){.gesture-setting{margin-bottom:16px}.audio-settings-content .volume-control{flex-wrap:wrap}.audio-settings-content .sound-status{margin-bottom:0}}

.about-atlas{border-top:1px solid var(--line);padding:30px 0 25px;max-width:850px;margin-top:25px}.about-atlas h2{font-size:27px;margin:10px 0 14px}.about-atlas p:not(.eyebrow){font-size:12px;color:var(--muted);line-height:1.9;max-width:760px;margin:10px 0}footer{gap:15px;align-items:center;line-height:1.8}footer .creator-credit{max-width:470px}footer a{color:var(--accent);text-decoration:none;border-bottom:1px solid #749a8655}footer a:hover{border-color:var(--accent)}@media(max-width:700px){.about-atlas{padding-top:22px}.about-atlas h2{font-size:24px}.about-atlas p:not(.eyebrow){font-size:12px}footer .creator-credit{flex-basis:100%;font-size:10px}footer span:nth-child(2){order:0}}

footer .creator-credit{font-size:11px}.game-layout .globe-tools{z-index:4}.game-layout .globe-caption,.game-layout .map-message,.game-layout .map-legend{z-index:2;pointer-events:none}@media(max-width:700px){.game-layout .map-message{bottom:215px}}
/* The polar bonus uses a fixed map: touch scrolling never rotates the continent. */
.polar-toolbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:20px 0}.polar-toolbar strong{margin-right:auto}.polar-toolbar label{font-size:11px;letter-spacing:1px;display:flex;gap:8px;align-items:center}.polar-layout{display:grid;grid-template-columns:280px minmax(0,1fr);background:#102630;border:1px solid var(--line,#294049);border-radius:18px;overflow:hidden}.polar-card{padding:28px;background:#112128;display:flex;flex-direction:column;align-items:flex-start}.polar-card h2{font-family:Georgia,serif;font-size:34px;font-weight:400;margin:12px 0}.polar-card p{line-height:1.6}.polar-card .primary{margin-top:auto;width:100%}.polar-map{position:relative;min-width:0;aspect-ratio:1;max-height:760px;touch-action:pan-y}.polar-map>img,.polar-map>svg{position:absolute;width:100%;height:100%;object-fit:contain;inset:0}.polar-marker{cursor:pointer;outline:none}.polar-marker circle{fill:#f1cb76;stroke:#112630;stroke-width:4;transition:fill .2s}.polar-marker:hover circle,.polar-marker:focus circle{stroke:white;stroke-width:5}.polar-marker text{fill:#102630;font:600 18px system-ui;text-anchor:middle;pointer-events:none}.polar-marker.correct circle{fill:#7ee4ad}.polar-marker.wrong circle{fill:#f49a88}.polar-marker .polar-label{fill:#f4f8f5;stroke:#102630;stroke-width:5;paint-order:stroke;font:500 16px system-ui}.polar-note{font-size:13px;line-height:1.65;color:#a7bfc2}.polar-facts{padding:25px 30px;background:#13262e;border:1px solid #36515a;border-radius:14px;margin-top:20px}.polar-facts h2{font-family:Georgia,serif;font-size:30px;font-weight:400}.polar-facts p{max-width:75ch;line-height:1.7}#polarFeedback{color:#b7e5c9;min-height:3em}#polarExperience[hidden]{display:none!important}@media(max-width:700px){.polar-toolbar{gap:10px}.polar-toolbar strong{width:100%;order:-1}.polar-layout{grid-template-columns:1fr}.polar-card{padding:16px}.polar-card h2{font-size:27px;margin:5px 0}.polar-card p{margin:5px 0}.polar-card .primary{margin:10px 0}.polar-map{min-height:340px}.polar-card .polar-note{display:none}.polar-marker circle{r:25px}.polar-marker text{font-size:23px}.polar-marker .polar-label{font-size:19px}.polar-facts{padding:18px}}

.polar-choices{display:none}@media(max-width:700px){.polar-choices{display:flex;flex-wrap:wrap;gap:6px;padding:12px;grid-column:1/-1}.polar-choices button{min-width:44px;min-height:44px;border:1px solid #536f78;border-radius:8px;background:#1b3540;color:#e5f0ed;padding:8px}}

/* Keep navigation free of Mapbox scroll and touch instruction overlays. */
#map .mapboxgl-scroll-zoom-blocker,#map .mapboxgl-touch-pan-blocker{display:none!important}
/* Through-time editions: contemporary cartography with an aged paper treatment. */
.history-experience{--h-paper:#e5d3a8;--h-ink:#503d28;--h-muted:#7a6547;--h-line:#9d835c;color:var(--h-ink);background:radial-gradient(ellipse at 20% 0,#f8ebc9aa,transparent 55%),var(--h-paper);padding:22px;border:1px solid #ac9063;border-radius:15px;margin:20px 0}.history-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-bottom:18px;border-bottom:1px solid var(--h-line)}.history-toolbar label{font-size:9px;letter-spacing:1.4px;display:grid;gap:7px}.history-toolbar button:last-child{margin-left:auto}.history-experience select,.history-experience button{background:#f5e7c5;color:var(--h-ink);border:1px solid #aa8a59;border-radius:6px;padding:9px 12px;font:inherit}.history-experience button:hover{background:#ead2a2}.history-experience .eyebrow{color:var(--h-muted);font-size:10px;letter-spacing:2.3px}.history-heading{display:flex;align-items:center;justify-content:space-between;padding:26px 7px;gap:20px}.history-heading h2{font:400 clamp(28px,4vw,48px) 'Playfair Display',Georgia,serif;margin:7px 0}.history-heading p{color:var(--h-muted)}.history-date{font:400 25px Georgia,serif;border-block:1px solid var(--h-line);padding:10px;white-space:nowrap}.history-layout{height:680px;position:relative;overflow:hidden;border:5px double #8c734a;border-radius:3px;background:#c7b381;isolation:isolate}.history-layout:after{content:'';position:absolute;inset:0;pointer-events:none;z-index:1;background:repeating-linear-gradient(17deg,#745e3510 0 1px,transparent 1px 5px),radial-gradient(ellipse at 50% 45%,transparent 40%,#5c3c2550 100%);box-shadow:inset 0 0 65px #654c3450;mix-blend-mode:multiply}#historyMap{position:absolute;inset:0}.history-card{position:absolute;left:18px;top:18px;width:270px;z-index:2;background:#f0e1bbef;border:1px solid #a68b5c;padding:22px;border-radius:4px;box-shadow:0 4px 20px #72573625;max-height:calc(100% - 75px);overflow:auto}.history-card h3{font:400 32px/1.15 'Playfair Display',Georgia,serif;margin:8px 0 12px}.history-card p{font-size:12px;line-height:1.6}.history-kind{font-style:italic;color:var(--h-muted);margin:12px 0 0}.history-card #historyFeedback{min-height:35px;font-weight:500}.history-choices{display:grid;grid-template-columns:repeat(6,1fr);gap:5px;margin-top:15px}.history-choices button{min-height:36px;padding:5px;font-size:11px}.history-choices button:hover{background:#d6b986}.history-holding .history-card{outline:2px solid #8c6739;outline-offset:3px}.history-tools{position:absolute;right:16px;top:18px;display:grid;gap:6px;z-index:2}.history-tools button{width:40px;height:40px;font-size:20px;padding:0}.history-compass{position:absolute;right:35px;bottom:65px;text-align:center;font:20px/1.3 Georgia,serif;z-index:2;color:#665031}.history-map-caption{position:absolute;left:310px;bottom:28px;right:100px;z-index:2;font-size:9px;letter-spacing:1.5px;pointer-events:none}.history-note{font-size:12px;line-height:1.8;color:var(--h-muted);margin:18px 4px}.history-facts{border-block:1px solid var(--h-line);padding:23px 5px;max-width:850px}.history-facts h3{font:400 32px Georgia,serif;margin:10px 0}.history-facts p{line-height:1.8}.history-facts #historyFactModern{color:var(--h-muted);font-size:12px}.history-facts a,.history-references a{color:inherit}.history-references{font-size:12px;color:var(--h-muted);line-height:1.8;margin-top:20px}.history-references summary{cursor:pointer}.history-dark{--h-paper:#18272c;--h-ink:#eee0bf;--h-muted:#b6ab91;--h-line:#74694f;background:#18272c}.history-dark .history-card{background:#17282eef}.history-dark button,.history-dark select{background:#26383d;border-color:#7a6e51;color:#eee0bf}.history-dark .history-layout:after{opacity:.2}.history-dark button:hover{background:#44504a}.history-dark .history-compass{color:#d6c399}.history-dark .history-layout{border-color:#7e7152}.history-dark .history-map-caption{color:#ead8b2}
body.aged-theme{--bg:#e7d6b0;--panel:#e0cda4;--ink:#47391f;--muted:#7b6746;--line:#b19a72;--accent:#77592d;--teal:#82683d;--coral:#994f3e;color-scheme:light;background:radial-gradient(ellipse at 20% 0,#fff1cc80,transparent 50%),#e7d6b0}body.aged-theme .collection,body.aged-theme .rank-strip,body.aged-theme .stats,body.aged-theme .quiz-prompt,body.aged-theme .quiz-actions,body.aged-theme .study-panel,body.aged-theme .inline-profile,body.aged-theme .country-facts,body.aged-theme .region,body.aged-theme .audio-settings-content{background:#e9d7b2;color:#47391f;border-color:#b39a70}body.aged-theme .region.active,body.aged-theme .study-list button[aria-pressed=true]{background:#ceb182}body.aged-theme select,body.aged-theme input,body.aged-theme .capital-choices button{background:#f1e3c4;color:#4d3a21;border-color:#ac9064}body.aged-theme .primary{background:#856337;color:#fff1d3}body.aged-theme .globe-caption,body.aged-theme .map-legend{color:#4b3a22}body.aged-theme .map-message{background:#e8d5aeed;color:#47391f;border-color:#b19a72}body.aged-theme .globe-tools button{background:#e8d5ae;color:#47391f}body.aged-theme .globe-panel:after{content:'';position:absolute;inset:0;pointer-events:none;z-index:1;background:radial-gradient(ellipse,transparent 55%,#62452630);box-shadow:inset 0 0 70px #674d2930}
@media(max-width:700px){.history-experience{padding:12px;margin-top:12px}.history-toolbar{gap:9px}.history-toolbar label{flex:1 1 42%;min-width:0}.history-toolbar select{width:100%;font-size:12px;min-height:40px}.history-toolbar button{min-height:40px}.history-toolbar button:last-child{margin-left:0}.history-heading{padding:20px 0;gap:8px}.history-heading h2{font-size:29px}.history-heading p{font-size:11px}.history-date{font-size:17px;padding:8px}.history-layout{height:760px;min-height:600px}.history-card{left:10px;top:10px;width:calc(100% - 67px);padding:14px;max-height:330px}.history-card h3{font-size:26px}.history-card p{font-size:11px;margin:5px 0}.history-card #historyFeedback{min-height:16px}.history-choices{gap:4px;margin-top:9px}.history-choices button{min-height:40px;font-size:12px}.history-tools{right:9px;top:10px;gap:5px}.history-tools button{width:36px;height:40px}.history-map-caption{left:15px;right:55px;bottom:30px;font-size:8px}.history-compass{right:18px;bottom:65px}.history-note{font-size:11px}.history-facts{padding:18px 2px}.history-facts h3{font-size:27px}}

.history-study .history-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.history-choices button{min-width:0;overflow-wrap:anywhere;white-space:normal}.history-study .history-choices button{min-height:44px;text-align:left;padding:7px}.history-experience .history-toolbar label{font-size:9px}.history-experience .history-toolbar select{font-size:12px}
#historyFeedback:empty{display:none}.history-choices button:focus-visible{outline:2px solid #674924;outline-offset:2px}.history-dark .history-choices button:focus-visible{outline-color:#e9cf94}

/* Clear ink, physical detail and direct territory interaction. */
.history-layout{background:#92afb5}.history-layout:after{opacity:.22;box-shadow:inset 0 0 45px #654c3430}.history-dark .history-layout:after{opacity:.1}.history-card{background:#f3e5c6f5;border-color:#8b7049;box-shadow:0 3px 18px #3e352030}.history-dark .history-card{background:#142a32f5}.history-map-caption{color:#3f382b;background:#f0e2b9c9;width:fit-content;padding:5px 8px}.history-dark .history-map-caption{background:#102d3cc9}.history-study .history-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:700px){.history-toolbar{gap:7px}.history-toolbar label{gap:3px;letter-spacing:1px}.history-experience .history-toolbar label{font-size:8px}.history-toolbar select{min-height:34px;padding:7px 8px}.history-toolbar button{min-height:34px;padding:7px 8px;font-size:11px}.history-heading{padding:14px 0}.history-heading h2{font-size:26px;margin:4px 0}.history-heading p:not(.eyebrow){display:none}.history-heading .eyebrow{font-size:8px;margin:0}.history-study .history-card{max-height:250px}.history-study .history-card h3{font-size:23px}.history-study #historyInstruction,.history-study #historyScore{display:none}}

/* Roman Republic insignia and readable, source-linked historical context. */
.history-banner{margin:12px 0 16px;display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}.history-banner[hidden]{display:none}.history-banner img{width:100px;height:60px;object-fit:contain;box-shadow:0 3px 8px #31241030}.history-banner figcaption{font-size:12px;max-width:110px}.history-banner small{font-size:10px;opacity:.7;width:100%}.history-profile-banner{margin:24px 0;display:grid;grid-template-columns:180px 1fr;gap:12px 24px;align-items:center}.history-profile-banner img{max-width:100%;border-radius:3px}.history-profile-banner figcaption{font-size:13px;line-height:1.7}.history-profile-banner a{grid-column:2}.history-background{border-top:1px solid #8a77574d;margin-top:24px;padding-top:8px}.history-background h4{font-family:Georgia,serif;font-size:23px;font-weight:400;margin:28px 0 20px}.history-background dl{display:grid;grid-template-columns:minmax(160px,1fr) 3fr;gap:20px 28px}.history-background dt{font-size:13px;font-weight:600}.history-background dd{margin:0;font-size:15px;line-height:1.8}.history-background a{font-size:12px}.history-timeline{list-style:none;padding:0;display:grid;gap:18px}.history-timeline li{display:grid;grid-template-columns:150px 1fr;gap:20px;font-size:14px;line-height:1.7}.history-timeline strong{font-weight:500}.history-study .history-banner{display:none}@media(max-width:700px){.history-profile-banner{grid-template-columns:1fr}.history-profile-banner a{grid-column:auto}.history-background dl,.history-timeline li{grid-template-columns:1fr;gap:8px}.history-background dd{margin-bottom:16px}.history-banner{margin:8px 0}.history-banner img{width:70px;height:42px}.history-banner small{font-size:9px}}

/* Compact expedition controls: primary choices first, preferences on demand. */
.compact-collection .expedition-toolbar{grid-template-columns:minmax(160px,1fr) minmax(190px,1fr) auto;gap:24px;padding:10px 14px}.compact-collection .toolbar-field select{height:30px;font-size:12px}.compact-collection .toolbar-field label{font-size:8px}.compact-collection .toolbar-audio{align-self:center;gap:14px}.compact-collection .audio-settings-content{display:flex;flex-wrap:wrap;gap:18px 24px;padding:16px}.compact-collection .audio-settings-content[hidden]{display:none}.audio-settings-content>.toolbar-field{flex:1;min-width:160px}.audio-settings-content>.gesture-setting{flex:1;min-width:200px}.audio-settings-content .volume-control{flex:1 1 320px}.audio-settings-content>.sound-status{flex-basis:100%;margin:0}.expedition-row{display:flex;align-items:center;gap:16px;padding:10px 0}.compact-collection .quick-quizzes{width:auto;order:initial;margin:0;gap:10px}.quick-quizzes>span{font-size:8px;letter-spacing:1.2px;white-space:nowrap}.quiz-sizes{display:flex;border:1px solid var(--line);border-radius:7px;overflow:hidden}.quiz-sizes button{min-width:40px;min-height:36px;border:0;border-right:1px solid var(--line);border-radius:0;padding:6px 12px;font-size:12px}.quiz-sizes button:last-child{border-right:0}.special-expeditions{display:flex;align-items:center;gap:8px}.special-expeditions>button,.history-menu>summary{min-height:36px;background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:7px;padding:8px 12px;font:11px 'DM Sans',sans-serif;white-space:nowrap;cursor:pointer}.special-expeditions>button:hover,.history-menu>summary:hover{background:var(--panel);border-color:#668678}.history-menu{position:relative;z-index:12}.history-menu>summary{display:flex;align-items:center;gap:18px;list-style:none}.history-menu>summary::-webkit-details-marker{display:none}.history-menu[open]>summary{border-color:var(--accent)}.history-menu-panel{position:absolute;top:calc(100% + 7px);left:0;width:270px;padding:8px;background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:0 18px 40px #0005}.history-menu-panel>p{font-size:8px;letter-spacing:1.4px;color:var(--muted);margin:8px 10px 12px}.history-menu-panel>button{display:flex;flex-direction:column;gap:4px;width:100%;text-align:left;background:transparent;border:0;border-radius:6px;padding:11px;color:var(--ink);font-size:12px}.history-menu-panel>button:hover,.history-menu-panel>button:focus-visible{background:#a8d6b515}.history-menu-panel small{font-size:10px;color:var(--muted)}.expedition-progress{margin-left:auto;font-size:9px;letter-spacing:.3px;color:var(--muted);text-align:right}.compact-collection .regions{display:flex;gap:6px;flex-wrap:wrap}.compact-collection .region{flex:1;min-width:0;display:flex;justify-content:center;align-items:center;gap:8px;padding:10px 12px;min-height:42px;border-radius:6px}.compact-collection .region svg{display:none}.compact-collection .region strong{font-size:11px;white-space:nowrap}.compact-collection .region small{font-size:9px;white-space:nowrap}.compact-collection .region.complete:after{top:3px;right:4px;font-size:8px}.compact-collection .region:last-child{flex:1.15}.compact-collection{margin-bottom:12px}body.aged-theme .history-menu-panel{background:#eee0bb}body.aged-theme .history-menu-panel>button:hover{background:#8b6d3430}
@media(max-width:1050px){.compact-collection .region{padding:9px 8px;gap:5px}.compact-collection .region small{display:none}}
@media(max-width:700px){.compact-collection .expedition-toolbar{grid-template-columns:1fr 1fr;gap:8px 16px;padding:10px 12px}.compact-collection .toolbar-audio{grid-column:1/-1;justify-content:flex-end;border-top:1px solid var(--line);padding-top:5px;gap:18px}.compact-collection .toolbar-field select{font-size:11px;height:32px}.compact-collection .toolbar-audio .sound-toggle{padding:6px 10px;min-height:32px}.compact-collection .settings-toggle{font-size:11px;min-height:32px}.expedition-row{gap:8px;flex-wrap:wrap;padding:8px 0}.compact-collection .quick-quizzes{gap:7px;flex:1}.quick-quizzes>span{display:none}.quiz-sizes button{padding:6px 10px;min-width:36px;min-height:40px}.special-expeditions{gap:6px}.special-expeditions>button,.history-menu>summary{padding:8px 10px;font-size:10px;min-height:40px}.history-menu>summary{gap:8px}.history-menu-panel{left:auto;right:0;width:min(280px,85vw)}.expedition-progress{display:none}.compact-collection .regions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.compact-collection .region,.compact-collection .region:last-child{padding:9px 4px;min-height:40px;grid-column:auto}.compact-collection .region strong{font-size:10px;white-space:normal;line-height:1.3;text-align:center}.compact-collection .region:last-child{grid-column:span 2}.compact-collection .audio-settings-content{gap:16px}.audio-settings-content>.toolbar-field{min-width:100px}.audio-settings-content>.gesture-setting{min-width:100%;margin:0}}

.history-choices.history-number-choices{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;max-height:150px;overflow:auto}.history-number-choices button{padding:7px 0;min-height:32px;text-align:center;font-size:12px}.history-number-choices button:disabled{opacity:.5}@media(max-width:700px){.history-choices.history-number-choices{max-height:95px;margin-top:8px}.history-number-choices button{min-height:36px;padding:6px 0}}

.history-discovery{margin:14px 0;padding:12px;border:1px solid #8d795d55;border-radius:6px;background:#ffffff20}.history-discovery[hidden]{display:none}.history-discovery small{display:block;font-size:8px;letter-spacing:1.3px;opacity:.7}.history-discovery strong{display:block;font-family:Georgia,serif;font-weight:400;font-size:18px;margin:7px 0}.history-discovery p{font-size:11px;line-height:1.6;margin:6px 0}.history-discovery button{border:0;background:transparent;padding:5px 0;font-size:11px;color:inherit;text-decoration:underline}.history-facts{scroll-margin-top:20px}.history-dark .history-discovery{background:#ffffff08}@media(max-width:700px){.history-discovery{max-height:140px;overflow:auto;padding:9px;margin:8px 0}.history-discovery strong{font-size:16px;margin:4px 0}.history-discovery p{font-size:10px}}

/* Historical heading: editorial copy and a separate, aligned artifact strip. */
.history-heading{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:8px 28px;align-items:center;position:static;padding:24px 0;min-height:0}
.history-heading>div:first-child{grid-column:1;grid-row:2;min-width:0}
.history-heading .eyebrow{font-size:9px;margin:0 0 10px;letter-spacing:2px}
.history-heading h2{font:400 clamp(26px,3vw,38px)/1.15 'Playfair Display',Georgia,serif;letter-spacing:-.7px;margin:0 0 10px;max-width:820px;overflow-wrap:normal;text-wrap:balance}
.history-heading #historyIntro{display:block;font-size:12px;line-height:1.6;margin:0;max-width:720px}
.history-heading>.history-date{position:static;grid-column:1;grid-row:1;justify-self:start;border:0;padding:0;font:500 10px 'DM Sans',sans-serif;letter-spacing:1px;color:var(--h-muted)}
.history-regalia{position:static;grid-column:2;grid-row:1/3;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:14px;width:auto;padding-left:20px;border-left:1px solid var(--h-line)}
.history-regalia figure{margin:0;width:auto;padding:0;filter:none;min-width:0}
.history-regalia figure:before{display:none}
.history-regalia img{display:block;width:100%;height:76px;object-fit:contain;transform:none}
.history-regalia figure:nth-child(2) img{transform:none}
.history-regalia figcaption{font-size:9px;line-height:1.4;text-align:center;margin-top:8px;color:var(--h-muted)}
.history-regalia figure:has(img[src="roman-eagle-standard.svg"]) img{height:76px;margin:0}
.history-symbol-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:22px;padding:22px 0}.history-symbol-gallery figure{margin:0;padding:18px;border:1px solid #8d795d55;border-radius:8px;background:#ffffff10}.history-symbol-gallery img{width:100%;height:140px;object-fit:contain;margin-bottom:16px}.history-symbol-gallery strong,.history-symbol-gallery small{display:block}.history-symbol-gallery strong{font:21px Georgia,serif}.history-symbol-gallery small{font-size:10px;margin-top:7px;opacity:.7}.history-symbol-gallery p{font-size:12px;line-height:1.8}.history-symbol-gallery .symbol-credit{font-size:10px;opacity:.7}.history-symbol-gallery a{font-size:11px}.history-dark .history-regalia{filter:brightness(1.1)}@media(max-width:700px){.history-heading{grid-template-columns:minmax(0,1fr) 82px;gap:6px 14px;padding:18px 0}.history-heading h2{font-size:26px;margin:0;line-height:1.16}.history-heading .eyebrow{font-size:8px;margin:0 0 8px;letter-spacing:1.3px}.history-heading #historyIntro{display:none}.history-heading>.history-date{font-size:10px;margin:0;padding:0}.history-regalia{gap:7px;padding-left:10px}.history-regalia img,.history-regalia figure:has(img[src="roman-eagle-standard.svg"]) img{height:54px;width:100%;margin:0}.history-regalia figure:nth-child(2){display:block}.history-regalia figcaption{display:none}.history-symbol-gallery{grid-template-columns:1fr}}

.history-chronology{padding:20px 0;scroll-margin-top:15px}.history-chronology[hidden]{display:none}.history-chronology label{display:block;font-size:9px;letter-spacing:1px;margin:18px 0 8px}.history-chronology select{max-width:100%;width:380px;min-height:42px;background:transparent;color:inherit;border:1px solid #8d795d77;border-radius:5px;padding:10px;font:13px 'DM Sans',sans-serif}.history-chronology option{background:#eee0b9;color:#403321}.history-chronology .history-timeline{max-width:850px;margin:25px 0}.history-chronology .history-timeline li{border-left:2px solid #8d795d77;padding-left:18px}.history-symbol-gallery img{height:210px}.history-symbol-gallery figure:has(img[src="almohad-las-navas-banner.jpg"]) img,.history-symbol-gallery figure:has(img[src="marinid-banner-1340.png"]) img{height:280px}.history-regalia figure:has(img[src="abbasid-black-banner.svg"]) img{filter:drop-shadow(0 2px 2px #0003)}.history-toolbar #historyTimelineOpen[hidden]{display:none}@media(max-width:700px){.history-chronology .history-timeline li{grid-template-columns:1fr}.history-symbol-gallery img{height:160px}}

.history-symbol-gallery{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}@media(max-width:700px){.history-symbol-gallery{grid-template-columns:1fr}}

/* A quiet navigation row and one compact strip of map preferences. */
.history-experience .history-toolbar{display:block;padding:0 0 16px;border-bottom:1px solid #9d835c55}
.history-navigation{display:flex;align-items:center;gap:16px;min-width:0;margin-bottom:12px}
.history-toolbar .history-edition{display:block;min-width:0;flex:1;margin:0;letter-spacing:0}
.history-toolbar .history-edition select{width:auto;max-width:100%;min-height:36px;padding:5px 26px 5px 0;border:0;border-radius:0;background:transparent;font-size:14px;font-weight:500}
.history-experience .history-toolbar #historyClose{padding:6px 12px 6px 0;min-height:34px;border:0;border-right:1px solid #9d835c55;border-radius:0;background:transparent;font-size:11px;white-space:nowrap;color:var(--h-muted)}
.history-toolbar-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.history-toolbar .history-toolbar-actions button{margin:0;min-height:34px;padding:6px 11px;font-size:11px;border-color:#9d835c55;background:transparent;border-radius:20px;white-space:nowrap}
.history-toolbar .history-toolbar-actions button:hover{background:#9d835c18;border-color:var(--h-line)}
.history-preferences{display:flex;align-items:center;gap:0;background:#ffffff20;border:1px solid #9d835c45;border-radius:8px;padding:7px 0}
.history-experience .history-preferences label{display:flex;align-items:center;flex:1;gap:12px;min-width:0;padding:0 16px;font-size:8px;letter-spacing:1.2px;white-space:nowrap}
.history-preferences label+label{border-left:1px solid #9d835c45}
.history-experience .history-preferences select{min-width:0;width:100%;min-height:30px;padding:4px 5px;background:transparent;border:0;border-radius:4px;font-size:11px;letter-spacing:0}
.history-toolbar select:focus-visible{outline:2px solid var(--h-line);outline-offset:2px}
.history-heading{padding:20px 0;grid-template-columns:minmax(0,1fr) 160px;gap:6px 24px}
.history-heading h2{font-size:clamp(26px,2.8vw,36px)}
.history-regalia{padding-left:16px;gap:12px}
.history-regalia img,.history-regalia figure:has(img[src="roman-eagle-standard.svg"]) img{height:64px}
.history-regalia figcaption{font-size:8px;margin-top:6px}
.history-dark .history-preferences{background:#ffffff06;border-color:#b6b49a33}
@media(max-width:850px){.history-experience .history-preferences label{padding:0 10px;gap:6px;font-size:7px}.history-experience .history-preferences select{font-size:10px}}
@media(max-width:700px){.history-experience .history-toolbar{padding-bottom:12px}.history-navigation{gap:10px;flex-wrap:wrap;margin-bottom:10px}.history-toolbar .history-edition{flex:1;min-width:180px}.history-toolbar .history-edition select{font-size:12px;min-height:32px}.history-experience .history-toolbar #historyClose{font-size:10px;padding-right:10px;min-height:30px}.history-toolbar-actions{width:100%;justify-content:flex-end;gap:6px}.history-toolbar .history-toolbar-actions button{min-height:30px;padding:4px 10px;font-size:10px}.history-preferences{display:grid;grid-template-columns:1fr 1.5fr;padding:9px 0;gap:7px 0}.history-experience .history-preferences label{display:grid;gap:2px;padding:0 10px;font-size:7px;min-width:0}.history-experience .history-preferences select{font-size:11px;padding:3px 0;min-height:28px}.history-preferences label:last-child{grid-column:1/-1;border-left:0;border-top:1px solid #9d835c33;padding-top:6px;display:flex;gap:12px}.history-preferences label:last-child select{width:auto;flex:1}.history-heading{grid-template-columns:minmax(0,1fr) 72px;padding:16px 0;gap:6px 12px}.history-heading h2{font-size:26px}.history-regalia{padding-left:8px;gap:6px}.history-regalia img,.history-regalia figure:has(img[src="roman-eagle-standard.svg"]) img{height:44px}}

.history-edition .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}

.history-heading>div:first-child{grid-row:1}.history-heading .history-date{display:inline;border:0;padding:0;font:inherit;letter-spacing:inherit;white-space:nowrap}.history-heading .history-date:before{content:"·";padding:0 9px;opacity:.55}.history-regalia{grid-row:1}
