/* Script-aware fallback keeps Space Grotesk wherever its glyphs exist. */
:lang(ar){font-family:"Space Grotesk","Noto Sans Arabic",Tahoma,Arial,sans-serif;line-height:1.65}
:lang(hi){font-family:"Space Grotesk","Noto Sans Devanagari","Kohinoor Devanagari",sans-serif;line-height:1.65}
:lang(th){font-family:"Space Grotesk","Noto Sans Thai","Thonburi",sans-serif;line-height:1.65}
:lang(ja){font-family:"Space Grotesk","Hiragino Kaku Gothic ProN","Yu Gothic","Noto Sans JP",sans-serif;line-height:1.6}
:lang(ko){font-family:"Space Grotesk","Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",sans-serif;line-height:1.6}
:lang(zh){font-family:"Space Grotesk","PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;line-height:1.6}
:lang(zh-Hant){font-family:"Space Grotesk","PingFang TC","Microsoft JhengHei","Noto Sans CJK TC",sans-serif}
.language-menu{position:relative;align-self:center;font-size:.88rem}.language-menu>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:6px;padding:6px 10px;border-radius:20px;background:#edf5fd;list-style:none}.language-menu>summary::-webkit-details-marker{display:none}.language-menu>nav{position:absolute;inset-inline-end:0;top:100%;z-index:100;min-width:190px;max-height:65vh;overflow:auto;display:grid!important;gap:0!important;background:white;border:1px solid #cadbe6;border-radius:16px;padding:8px;box-shadow:0 12px 35px #19374e24}.language-menu>nav a{padding:9px 12px;min-height:44px}.language-menu a[aria-current]{background:#edf5fd;border-radius:12px}.site-header>nav{flex-wrap:wrap;justify-content:flex-end}.localized-playable{background:#e4f2ff;border-radius:24px;padding:24px;max-width:680px;margin:24px auto}.localized-playable .start-button{width:100%}.localized-playable [data-resume]{width:100%;margin-top:12px}.localized-game-picker{border:0;padding:0;margin:0 0 20px;display:grid;gap:10px}.localized-game-picker legend{font-weight:700;margin-bottom:12px}.localized-game-picker label{display:flex;flex-direction:row;align-items:center;gap:10px;min-height:52px;border:1px solid #c5d8e8;border-radius:14px;padding:12px;background:white}.localized-game-picker input{width:auto;min-height:0;flex:none}.localized-game-picker label:has(input:checked){border:2px solid #1768d9;background:#f4f9ff}.localized-app-promo{margin:24px 0;display:flex;align-items:center;gap:20px;background:#eaf5e8;padding:24px;border-radius:24px}.localized-app-promo p{max-width:650px}.localized-quick-card{padding:28px;background:#f1edfc;border-radius:24px}.localized-app-promo .button,.localized-quick-card .button{white-space:normal;text-align:center}.localized-results{max-width:680px;margin:auto;padding:24px}.localized-results>header{display:flex;gap:16px;align-items:center}.localized-results .localized-actions{position:static;padding:0;display:grid;gap:12px}.localized-limit>.button{width:100%}#localized-game{padding:0;border:0;max-width:100vw;width:100vw;max-height:100dvh;height:100dvh;border-radius:0;color:var(--ink);background:#fff}#localized-game-root{height:100%;overflow:auto}.localized-quiz{height:100%;display:flex;flex-direction:column;overflow:hidden}.localized-game-head{flex:none;display:flex;align-items:center;gap:12px;justify-content:space-between;padding:12px max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));border-bottom:1px solid #d5e1e9;min-height:68px}.localized-game-head a{font-weight:700;text-decoration:none}.localized-game-head span{font-size:.8rem;text-align:center}.localized-game-head .round-button{font-size:28px;width:44px;height:44px;flex:none}.localized-map{position:relative;min-height:170px;flex:1}.localized-map>.geo-map{height:100%}.localized-question{flex:1;min-height:0;display:flex;flex-direction:column;max-width:850px;width:100%;margin:auto;background:#fff}.localized-quiz--map .localized-question{flex:0 1 45%;border-radius:24px 24px 0 0;margin-top:-12px;z-index:1;min-height:270px}.localized-question-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 20px 14px;scroll-padding-block:18px}.localized-question h2{font-size:clamp(1.15rem,3.8vw,1.55rem);line-height:1.3;margin:0 0 16px;overflow-wrap:anywhere}.localized-actions{flex:none;display:flex;gap:12px;padding:12px 20px max(16px,env(safe-area-inset-bottom));border-top:1px solid #d5e1e9;background:#fff}.localized-actions>.button{flex:1;min-width:0;min-height:52px;white-space:normal;text-align:center;line-height:1.3}.localized-answers>.answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.localized-answers .answer-button{white-space:normal;overflow-wrap:anywhere;min-height:68px;padding:14px;font-size:1rem}.localized-question .guest-flag{width:144px;height:96px;object-fit:contain;display:block;margin:0 auto 16px}.localized-question .capital-name{font-size:1.6rem;font-weight:700;text-align:center}.localized-answers label{display:block;font-weight:600}.localized-answers select,.localized-answers input{width:100%;max-width:100%;margin-top:8px;min-height:48px}.localized-answers .feedback-box{margin-top:12px}.localized-question .answer-knowledge dl{display:grid;grid-template-columns:1fr 1fr;gap:12px}.localized-question .answer-knowledge dd{margin-inline-start:0;overflow-wrap:anywhere}.localized-question .country-photo-clue{position:relative;aspect-ratio:16/9;margin:0 0 16px}.localized-question .country-photo-clue>img{width:100%;height:100%;object-fit:cover;aspect-ratio:16/9}.localized-photo-info{position:absolute;inset-inline-end:10px;bottom:10px;z-index:2}.localized-photo-info summary{list-style:none;width:36px;height:36px;display:grid;place-items:center;cursor:pointer;border-radius:50%;background:#ffffffed;color:#19374e;font-size:22px}.localized-photo-info>div{position:absolute;inset-inline-end:0;bottom:42px;max-width:calc(100vw - 65px);width:270px;background:white;box-shadow:0 8px 30px #19374e30;border-radius:16px;padding:16px;font-size:.85rem}.localized-photo-info p{margin:8px 0}.localized-question .comparison-clue,.localized-question .distance-clue,.localized-question .compass-clue{margin-bottom:16px}.localized-question .compass-board{display:grid;grid-template-columns:minmax(140px,220px) minmax(0,1fr);gap:12px}.localized-question .compass-board svg{width:100%;max-width:220px}.localized-question .compass-legend{padding:0;list-style:none;display:grid;gap:12px;align-content:center}.localized-question .compass-legend li{display:flex;align-items:center;gap:8px}.localized-question .compass-legend small{display:block}.localized-question .quick-hints{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.localized-question .quick-hints small{width:100%}.localized-question .compass-instruction{font-size:.88rem}.localized-question .comparison-cards>div{min-width:0}.localized-question .comparison-cards strong{font-size:clamp(1rem,4vw,1.6rem);overflow-wrap:anywhere}.localized-question .distance-paths{display:flex;gap:16px;justify-content:space-around}.localized-question .distance-paths>div{min-width:0;display:grid;gap:8px}#localized-notice:empty{display:none}#localized-notice{position:fixed;bottom:16px;inset-inline:16px;z-index:120;background:#19374e;color:#fff;border-radius:16px;padding:14px;max-width:600px;margin:auto}.nav-arrow{display:inline-block}[dir=rtl] .nav-arrow{transform:scaleX(-1)}[dir=rtl] .compass-board,[dir=rtl] .localized-map{direction:ltr}[dir=rtl] .compass-legend{direction:rtl}
@media(min-width:900px) and (min-height:500px){.localized-quiz--map{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,1fr);grid-template-rows:auto minmax(0,1fr)}.localized-quiz--map .localized-game-head{grid-column:1/-1}.localized-quiz--map .localized-question{height:100%;margin:0;border-radius:0;min-height:0}.localized-quiz--map .localized-map{height:100%;min-height:0}}
@media(max-width:500px){.site-header{padding:12px 16px;gap:12px}.site-header>.brand{font-size:1.1rem}.site-header>.brand img{width:32px;height:32px}.site-header>nav{gap:8px}.site-header>nav>a{display:none}.localized-playable{padding:20px}.localized-app-promo{padding:20px;gap:12px}.localized-app-promo>img{width:56px;height:56px}.localized-results{padding:20px}.localized-question .compass-board{grid-template-columns:minmax(130px,1fr) minmax(0,1fr);gap:8px}.localized-question .compass-legend{font-size:.8rem}.localized-question .answer-knowledge dl{grid-template-columns:1fr 1fr}.localized-question .comparison-cards{gap:8px}.localized-answers>.answers{gap:10px}.localized-question-scroll{padding:16px}.localized-actions{padding-inline:16px}.localized-quiz--map .localized-question{flex-basis:48%}}
@media(max-height:650px){.localized-quiz--map .localized-question{min-height:250px;flex-basis:55%}.localized-map{min-height:120px}.localized-game-head{min-height:58px;padding-block:8px}}
@media(prefers-reduced-motion:reduce){.localized-quiz *{scroll-behavior:auto}}
/* Cards grow with text instead of relying on English minimum-content widths. */
.site-header{flex-wrap:nowrap}.site-header>nav{display:flex;width:auto;flex:0 1 auto}.language-menu{min-width:0;max-width:48vw}.language-menu>summary{white-space:normal;text-align:start;overflow-wrap:anywhere}.language-menu>nav{max-width:calc(100vw - 32px)}
main .topic-grid{display:flex;flex-wrap:wrap;gap:16px}main .topic-card{flex:1 1 max(10em,calc(50% - 16px));min-width:0;max-width:100%;display:grid;grid-template-columns:minmax(0,1fr) 20px;grid-template-rows:48px auto;gap:16px;padding:20px}main .topic-card .topic-icon{grid-column:1;grid-row:1;width:48px;height:48px}main .topic-card>div{min-width:0;grid-row:2;grid-column:1}main .topic-card>span{grid-row:2;grid-column:2;margin:0;align-self:end}main .topic-card h3{overflow-wrap:anywhere;hyphens:auto}main .topic-card p{overflow-wrap:anywhere}main .home-hero h1{overflow-wrap:anywhere}

.localized-question .guest-flag{height:108px;border:1px solid #cbd8e0;border-radius:3px;background:#fff;box-shadow:0 2px 5px #19374e12}
main .topic-card>div{grid-column:1/-1}main .topic-card>span{grid-row:1;grid-column:2;align-self:center}

.capital-region-context{text-align:center;font-size:.9rem;margin-top:-8px;margin-bottom:16px}
#localized-challenge-entry{display:grid;gap:16px}#localized-challenge-entry textarea,.share-dialog textarea{display:block;width:100%;max-width:100%;border:1px solid #9badbc;background:#f6faff;border-radius:16px;padding:14px;resize:vertical;font:inherit;margin-block:10px 16px}.share-dialog .round-button{font-size:28px;flex:none}

.localized-question .answer-knowledge dl{grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr))}
.localized-question .answer-knowledge dl>div{display:block}.localized-question .numeric-fact{white-space:nowrap}

.site-header>.brand{direction:ltr;unicode-bidi:isolate}
