/* Current layouts and typography; original dark palette comes from the component styles. */

.shell { max-width: 1800px; padding: 30px clamp(20px,3vw,40px) 26px; }
.shell > header { border-bottom: 1px solid #343b4b; padding-bottom: 24px; margin-bottom: 36px; }
.brand { display: block; width: clamp(160px, 20vw, 240px); max-width: calc(100% - 90px); flex-shrink: 0; border-radius: 4px; }
.brand img { display: block; width: 100%; height: auto; }

.header-note { border: 1px solid #343b4b; border-radius: 30px; padding: 7px 12px; font-size: 11px; }
h1,h2,h3 { font-weight: 600; }
.eyebrow { font-size: 10px; letter-spacing: .14em; font-weight: 750; }

.lede { font-size: 18px; line-height: 1.65; }

a { text-underline-offset: 3px; }
.button { border: 1px solid #343b4b; border-radius: 999px; padding: 14px 23px; font-size: 14px; font-weight: 650; transition: background .18s, transform .18s, box-shadow .18s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }

:is(button,input,select,a,summary):focus-visible, .quiz-v1 :is(button,input,select,a):focus-visible, .country-detail-dialog :is(button,a):focus-visible { outline-offset: 4px; }
.panel { border-radius: 24px; }
input, select { border-radius: 12px; }

.pill { font-weight: 600; }

.mode-card { border-radius: 18px; }

.classic-mode-picker > .mode-choice-top { margin-bottom: 22px; }
.classic-mode-picker h2 { margin-bottom: 8px; }
.classic-mode-picker .micro { margin: 0; }
.classic-mode-halves { display: grid; grid-template-rows: repeat(2, minmax(220px, 1fr)); gap: 16px; min-height: calc(100svh - 310px); }
.classic-mode-half { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; overflow: hidden; padding: clamp(24px, 3vw, 44px); border: 1px solid #465361; border-radius: 24px; text-align: left; color: #f5f3ed; transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease; }
.classic-mode-untimed { background: radial-gradient(ellipse at 90% 50%, #3b5444, transparent 65%), #25352d; }
.classic-mode-challenge { background: radial-gradient(ellipse at 90% 50%, #514a37, transparent 65%), #252e3c; }
.classic-mode-copy { display: flex; flex-direction: column; align-items: flex-start; max-width: 620px; }
.classic-mode-copy .eyebrow { margin-bottom: 10px; }
.classic-mode-challenge .eyebrow, .classic-mode-challenge .classic-mode-link { color: #e9be78; }
.classic-mode-title { font-size: clamp(32px, 4vw, 52px); font-weight: 600; line-height: 1.1; letter-spacing: -.045em; }
.classic-mode-description { margin-top: 12px; color: #c7ccd4; font-size: 15px; line-height: 1.6; }
.classic-mode-link { display: flex; align-items: center; gap: 22px; margin-top: 22px; color: #b4ec76; font-size: 14px; font-weight: 650; }
.classic-mode-symbol { flex-shrink: 0; padding-right: 16px; color: #b4ec76; font-size: clamp(64px, 9vw, 130px); font-weight: 500; letter-spacing: -.06em; opacity: .35; transition: transform .24s ease, opacity .24s ease; }
.classic-mode-challenge .classic-mode-symbol { color: #e9be78; }
.classic-mode-half:focus-visible { outline: 3px solid #b4ec76; outline-offset: 4px; transform: scale(1.012); }
@media (hover: hover) { .classic-mode-half:hover { transform: scale(1.012); border-color: #87c8ca; box-shadow: 0 12px 30px #0004; } .classic-mode-half:hover .classic-mode-symbol { transform: scale(1.06); opacity: .6; } }
@media (max-width: 560px) { .classic-mode-half { gap: 12px; padding: 24px; } .classic-mode-symbol { position: absolute; right: 16px; top: 18px; padding: 0; font-size: 54px; opacity: .18; } .classic-mode-title { padding-right: 80px; } .classic-mode-description { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .classic-mode-half, .classic-mode-symbol { transition: none; } .classic-mode-half:hover, .classic-mode-half:focus-visible, .classic-mode-half:hover .classic-mode-symbol { transform: none; } }

footer { display: flex; padding-top: 22px; margin-top: 46px; font-size: 12px; }
.home-hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; padding: 34px 0 64px; }
.home-intro h1 { font-size: clamp(44px,5.2vw,76px); line-height: 1.06; letter-spacing: -.065em; margin: 22px 0; }
.home-intro .lede { max-width: 440px; }
.home-intro .actions { margin-top: 30px; }
.home-note { display: flex; align-items: center; gap: 8px; font-size: 11px; margin-top: 22px; }
.home-note > span { width: 6px; height: 6px; border-radius: 50%; }
.home-art { position: relative; border-radius: 100px 24px 100px 24px; padding: 32px; overflow: hidden; }
.art-caption { display: block; text-align: center; font-size: 9px; letter-spacing: .19em; }
.home-art svg { display: block; width: 100%; stroke-width: 1.2; margin: 12px 0; }
home-globe { position: relative; display: block; width: 100%; aspect-ratio: 400 / 320; margin: 12px 0; cursor: grab; touch-action: none; user-select: none; border-radius: 16px; }
home-globe.dragging { cursor: grabbing; }
home-globe:focus-visible { outline: 2px solid #b4ec76; outline-offset: 3px; }
home-globe canvas { display: block; width: 100%; height: 100%; }
.globe-motion { position: absolute; right: 0; bottom: 0; padding: 6px 9px; border: 1px solid #465361; border-radius: 99px; background: #18232dd9; color: #c7ccd4; font-size: 10px; cursor: pointer; }
.globe-motion:hover { color: #f5f3ed; border-color: #87c8ca; }
.globe-motion:focus-visible { outline: 2px solid #b4ec76; outline-offset: 3px; }
.globe-expand { position: absolute; left: 0; bottom: 0; padding: 7px 11px; border: 1px solid #465361; border-radius: 99px; background: #18232dd9; color: #b4ec76; font-size: 11px; cursor: pointer; }
.globe-expand:hover { background: #29382e; border-color: #87c8ca; }
.globe-expand:focus-visible { outline: 2px solid #b4ec76; outline-offset: 3px; }
.globe-detail-dialog { width: min(1200px, 94vw); height: 92svh; max-width: 94vw; max-height: 94svh; box-sizing: border-box; padding: clamp(16px, 3vw, 32px); border: 1px solid #343b4b; border-radius: 24px; background: #000; color: #f5f3ed; overflow: hidden; }
.globe-detail-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
.globe-detail-dialog::backdrop { background: #000c; backdrop-filter: blur(8px); }
.globe-detail-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.globe-detail-header .eyebrow { margin: 0 0 6px; }
.globe-detail-header h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); }
.globe-detail-dialog home-globe { height: 100%; min-height: 0; width: 100%; aspect-ratio: auto; margin: 0; }
.globe-detail-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; color: #969daa; font-size: 12px; }
.globe-zoom-controls { position: absolute; bottom: 0; left: 0; display: flex; gap: 6px; }
.globe-zoom-controls button { padding: 8px 12px; border: 1px solid #465361; border-radius: 12px; background: #18232dd9; color: #f5f3ed; min-height: 38px; }
.globe-zoom-controls button:hover { background: #334657; }
.globe-zoom-controls button:focus-visible { outline: 2px solid #b4ec76; outline-offset: 3px; }
.globe-detail-dialog .globe-motion { font-size: 12px; padding: 9px 12px; min-height: 38px; }
.globe-credit { font-size: 10px; align-self: center; }
.globe-fallback { display: grid; place-items: center; }
.globe-fallback-earth { width: 58%; aspect-ratio: 1; border-radius: 50%; background: url('/assets/earth/blue-marble.jpg') 50% 50% / auto 100%; box-shadow: inset -20px -8px 35px #000a, 0 0 12px #5c9bff66; }
@media (max-width: 760px) { home-globe { height: 220px; aspect-ratio: auto; } }
.home-art .globe-orbit { stroke-width: 1.6; }
.home-art .globe-dot { stroke-width: 5; }
.home-art .globe-dot.small { stroke-width: 0; }
.art-bottom { display: flex; justify-content: space-between; font-size: 12px; }
.art-bottom > span:first-child { font-family: Georgia,serif; font-style: italic; font-size: 21px; }
.home-discover { padding-top: 8px; }
.home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.home-section-heading h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.08; letter-spacing: -.055em; margin: 10px 0 0; }
.home-section-heading > p { font-size: 15px; line-height: 1.6; margin-bottom: 3px; }
.home-modes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.home-mode { position: relative; display: flex; flex-direction: column; align-items: start; text-align: left; padding: 28px; border: 1px solid #343b4b; border-radius: 24px; min-height: 240px; transition: transform .2s,box-shadow .2s; }
.home-mode:hover { transform: translateY(-5px); }
.home-mode-top { position: absolute; top: 26px; right: 30px; font-size: 26px; }
.home-mode .eyebrow { font-size: 10px; margin-bottom: 16px; padding-right: 35px; }
.home-mode h3 { font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -.04em; margin-bottom: 14px; }
.home-mode p { max-width: 440px; font-size: 15px; line-height: 1.7; margin: 0 0 22px; }
.home-mode-link { display: flex; justify-content: space-between; width: 100%; margin-top: auto; padding-top: 18px; border-top: 1px solid #343b4b; font-size: 14px; font-weight: 650; }

.home-online { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 34px; margin-top: 24px; border: 1px solid #343b4b; border-radius: 20px; }
.home-online h3 { font-size: 22px; letter-spacing: -.03em; margin: 8px 0; }
.home-online p:last-child { font-size: 13px; margin: 0; }
.home-online .actions { margin: 0; flex-shrink: 0; }

:is(.local-category-card,.classic-region-card,.classic-option-card,.practice-continent-card) { padding: 24px; }

.answer-option, .diagram-cell { border-radius: 15px; padding: 20px; transition: background .15s,border-color .15s; }

.answer-option.correct, .diagram-cell.correct { opacity: 1; }
.answer-option.wrong, .diagram-cell.wrong { opacity: 1; }

.quiz-companion .pip-stage { height: 260px; }
.pip-comment { margin-top: 20px; padding: 16px 0 0; border-top: 1px solid #343b4b; }
.pip-comment > p:not(.eyebrow):not(.micro) { font-size: 14px; line-height: 1.7; margin: 8px 0; }
.pip-comment .micro { font-size: 11px; overflow-wrap: anywhere; }
@media (max-width: 850px) { .quiz-companion .pip-stage { height: 140px; width: 110px; } .pip-comment { margin-top: 12px; padding-top: 12px; } }

.quiz-track .current { font-weight: 700; }

.country-stat { border-radius: 18px; }

.country-city-button { border-radius: 999px; }

@media (max-width: 1100px) { .home-hero { gap: 28px; } .home-art { padding: 24px; } .home-modes { grid-template-columns: repeat(2,minmax(0,1fr)); } .home-mode { min-height: 240px; } }
@media (max-width: 760px) { .shell { padding: 22px 20px; } .shell > header { padding-bottom: 18px; margin-bottom: 24px; } .home-hero { grid-template-columns: 1fr; padding: 12px 0 38px; gap: 30px; } .home-intro h1 { font-size: clamp(42px,8vw,64px); } .home-art { max-width: 500px; width: 100%; margin: auto; border-radius: 65px 20px 65px 20px; } .home-art svg { height: 220px; } .home-section-heading { align-items: start; } .home-section-heading > p { display: none; } .home-online { flex-direction: column; align-items: start; padding: 24px; } .home-mode { padding: 20px; } }
@media (max-width: 480px) { .home-modes { grid-template-columns: 1fr; } .home-mode { min-height: 230px; } .home-mode-top { margin-bottom: 22px; } .home-intro .actions { gap: 9px; } .home-intro .button { padding: 13px 17px; font-size: 13px; } .home-online .actions { gap: 8px; } .home-online .button { padding: 12px 16px; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .home-mode, .button { transition: none; } .home-mode:hover, .button:hover:not(:disabled) { transform: none; } }

/* Original navy, lime, teal and gold applied to the redesigned home page. */
.classic-region-grid .classic-region-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.classic-region-grid .classic-region-card::before {
  background-image: linear-gradient(0deg, #10121ac4, #10121a14 65%), var(--region-image);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, #000b 48%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, #000b 48%, transparent 75%);
}
:root { --muted: #b9bdc8; }
a { color: #b2dce7; }
::selection { background: #b4ec76; color: #16200f; }
.button { border-color: transparent; }
.button:hover:not(:disabled) { background: #c5f298; box-shadow: 0 5px 15px #0003; }
.button.secondary:hover:not(:disabled), .button.ghost:hover:not(:disabled) { background: #334657; color: #f5f3ed; }
input::placeholder { color: #969daa; }
.home-note, .home-section-heading > p, .home-online p:last-child { color: #b9bdc8; }
.home-note > span { background: #b4ec76; }
.home-art { background: #000; color: #b4ec76; }
.home-art svg { stroke: #87c8ca; }
.home-art .globe-orbit { stroke: #e9be78; }
.home-art .globe-dot { fill: #b4ec76; stroke: #25353e; }
.home-art .globe-dot.small { fill: #e9be78; }
.home-mode { background: #1b202c; color: #f5f3ed; border-color: #343b4b; }
.home-mode p { color: #b9bdc8; }
.home-mode:hover { border-color: #87c8ca; box-shadow: 0 14px 28px #0003; }
.home-mode.featured { background: #29382e; border-color: #6c9484; }
.home-mode.featured .eyebrow { color: #b4ec76; }
.home-mode.featured p { color: #cbd3cf; }
.home-mode.atlas { background: #25353e; }
.home-mode-link { border-color: #465361; color: #b4ec76; }
.home-online { background: #1b202c; border-color: #343b4b; }
:is(.local-category-card,.classic-region-card,.classic-option-card,.practice-continent-card) { color: #f5f3ed; }
.pip-comment { border-color: #465361; }
.pip-comment .eyebrow { color: #e9be78; }
