:root {
  color-scheme: light;
  --ink: #152743;
  --muted: #6b7e97;
  --muted-light: #91a2b6;
  --border: #e4eaf1;
  --blue: #166bd0;
  --blue-dark: #0b4fa4;
  --blue-pale: #eaf4ff;
  --orange: #ee9850;
  --shadow: 0 14px 46px rgba(49, 73, 109, .055), 0 2px 8px rgba(49, 73, 109, .025);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 300px; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: #f7f9fc; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible + span { outline: 3px solid #8fc3ff; outline-offset: 3px; }
button:disabled { cursor: default; }
a { color: inherit; }
[hidden] { display: none !important; }
.site-shell { max-width: 1370px; margin: auto; padding: 0 55px; }
.site-header { min-height: 93px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e7ebf2; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.brand-logo { display: grid; place-items: center; height: 47px; width: 47px; color: white; background: linear-gradient(160deg, #388bee, #1664bc); border-radius: 13px; box-shadow: 0 6px 15px #1676cb23; }
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-text strong { font-size: 21px; font-weight: 800; letter-spacing: -.7px; line-height: 1.2; }
.brand-accent { color: #f2a058; }
.brand-text small { font-size: 9px; font-weight: 800; letter-spacing: 1.45px; color: #8291a7; }
.header-trailing { color: #667995; display: flex; gap: 9px; align-items: center; font-size: 12px; font-weight: 650; white-space: nowrap; }
.header-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #3db999; box-shadow: 0 0 0 4px #3db99915; }
.header-divider { margin: 0 4px; color: #bbc5d3; }
.hero { padding: 37px 0 32px; }
.overline, .eyebrow { display: flex; align-items: center; gap: 8px; color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: 1.65px; }
.overline-line { display: inline-block; width: 20px; height: 2px; background: var(--blue); border-radius: 1px; }
.overline-separator { color: #9fadc0; padding: 0 3px; }
.hero h1 { font-size: clamp(36px, 4.3vw, 56px); letter-spacing: -2.5px; margin: 11px 0 10px; font-weight: 820; line-height: 1.14; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.95fr); gap: 22px; align-items: stretch; }
.map-card, .quiz-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); }
.map-card { min-height: 596px; display: flex; flex-direction: column; }
.map-header { padding: 26px 27px 13px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.map-heading { color: #405879; font-size: 11px; font-weight: 850; letter-spacing: 1.05px; display: flex; align-items: center; gap: 9px; }
.mini-icon { font-size: 24px; line-height: 12px; font-weight: 400; color: #6a9fda; margin-right: 1px; }
.map-legend { color: #8493a8; font-size: 11px; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.legend-dot { width: 7px; height: 7px; background: #819cb7; border-radius: 50%; box-shadow: 0 0 0 3px #edf3fb; }
.map-surface { display: flex; flex: 1; align-items: center; justify-content: center; padding: 12px 11px 22px; min-width: 0; }
#cz-map { display: block; width: 100%; max-width: 850px; height: auto; overflow: visible; }
.map-region { fill: #e7edf5; stroke: #fff; stroke-width: 3.4; stroke-linejoin: round; transition: fill .26s ease, stroke .26s ease; }
.map-region.is-active { fill: #4d93e4; stroke: #fff; stroke-width: 3.6; }
.city-marker { opacity: .95; transition: opacity .2s; }
.city-marker-outer { fill: #fff; }
.city-marker-inner { fill: #8a9eb8; }
.city-marker.is-active { opacity: 0; }
.highlight-soft { fill: #f7ad65; opacity: .15; filter: url(#active-glow); }
.highlight-halo { fill: #fff; stroke: #ffc98d; stroke-width: 3.5; }
.highlight-core { fill: #f18b32; }
.highlight-center { fill: #fff; }
.map-reveal-bg { fill: #183b64; }
.map-reveal-text { fill: #fff; font-family: Inter, "Segoe UI", sans-serif; font-size: 14px; font-weight: 800; text-anchor: middle; dominant-baseline: middle; }
.map-footer { border-top: 1px solid #f0f2f5; padding: 20px 26px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.map-hint { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #8291a8; line-height: 1.4; }
.hint-icon { border: 1px solid #aebdd1; color: #8da0b8; font-size: 10px; font-family: Georgia, serif; font-weight: 800; font-style: italic; display: inline-grid; flex-shrink: 0; place-items: center; width: 15px; height: 15px; border-radius: 50%; }
.map-country { color: #a4b0bf; font-size: 9px; font-weight: 800; letter-spacing: .9px; white-space: nowrap; }
.map-country-divider { padding: 0 4px; }
.quiz-card { min-height: 596px; }
.screen { height: 100%; padding: 30px 31px 27px; display: flex; flex-direction: column; }
.quiz-topline { display: flex; justify-content: space-between; align-items: center; }
.topline-icon { color: #b4c9e4; font-size: 24px; line-height: 16px; }
.intro-art { position: relative; margin: 31px 0 21px; height: 77px; width: 77px; display: grid; place-items: center; background: #e8f3ff; border-radius: 25px; }
.intro-art-ring { position: absolute; inset: 9px; border: 1px dashed #80b2ef; border-radius: 50%; }
.intro-art-inner { z-index: 1; display: grid; place-items: center; color: var(--blue); background: white; width: 37px; height: 37px; border-radius: 50%; font-size: 25px; font-weight: 800; box-shadow: 0 3px 12px #176bd028; }
.intro-art-spark { position: absolute; right: -13px; top: -13px; color: #ee9c55; font-size: 24px; }
.screen h2 { margin: 0; font-size: clamp(24px, 2vw, 29px); font-weight: 820; letter-spacing: -.95px; line-height: 1.22; }
.quiz-description { margin: 12px 0 0; color: #73849b; font-size: 13px; line-height: 1.7; }
.mode-options { padding: 0; border: 0; min-width: 0; margin: 29px 0 22px; display: flex; flex-direction: column; gap: 10px; }
.mode-options legend { color: #8c9bb0; font-size: 10px; font-weight: 850; letter-spacing: 1.1px; padding: 0 0 12px; }
.mode-option { border: 1.5px solid #e4ebf3; display: flex; align-items: center; gap: 10px; padding: 13px 12px; min-height: 51px; border-radius: 12px; transition: background .17s, border .17s; cursor: pointer; }
.mode-option:has(input:checked) { border-color: #72acef; background: #f0f7ff; }
.mode-option:hover { border-color: #8dbcf2; }
.mode-option input { margin: 0 4px 0 2px; width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }
.mode-name { flex: 1; color: #3c506d; font-size: 12.5px; font-weight: 740; }
.mode-option:has(input:checked) .mode-name { color: #165bae; }
.mode-count { color: #94a2b3; font-size: 11px; white-space: nowrap; }
.primary-btn { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; border: 1px solid #1264c3; color: #fff; background: linear-gradient(130deg, #1977db, #1264bf); border-radius: 11px; padding: 15px 18px; min-height: 51px; font-size: 13px; font-weight: 800; box-shadow: 0 6px 14px #1373d424; transition: transform .15s, background .15s, box-shadow .15s; }
.primary-btn:hover { background: #1157ad; box-shadow: 0 7px 17px #1373d431; }
.primary-btn:active { transform: translateY(1px); }
.primary-btn span[aria-hidden] { font-size: 19px; line-height: 12px; }
.start-btn { margin-top: auto; }
.start-footnote { color: #9ba9ba; text-align: center; font-size: 10.5px; margin: 13px 0 0; line-height: 1.5; }
.question-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.score-pill { font-size: 11px; font-weight: 750; color: #1764b7; background: #eaf4ff; padding: 7px 11px; border-radius: 30px; white-space: nowrap; }
.progress-track { height: 5px; border-radius: 6px; background: #ebf1f7; margin: 18px 0 36px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: inherit; width: 0; background: linear-gradient(90deg, #4a9ef1, #1466c3); transition: width .3s ease; }
.question-badge { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; border-radius: 7px; background: #e8f3ff; padding: 8px 11px; color: #1869c3; font-size: 10px; letter-spacing: 1px; font-weight: 850; }
.type-dot { width: 6px; height: 6px; border-radius: 50%; background: #3c90e6; }
.question-screen h2 { margin-top: 21px; max-width: 420px; font-size: 26px; line-height: 1.3; }
.question-subtitle { font-size: 12.5px; color: #91a0b2; margin: 9px 0 22px; }
.answers { display: flex; flex-direction: column; gap: 11px; }
.answer-btn { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; background: #fff; min-height: 61px; padding: 10px 15px; border: 1.5px solid #e3eaf2; border-radius: 11px; transition: border .15s, background .15s, transform .15s; }
.answer-btn:not(:disabled):hover { border-color: #91bdf0; background: #f7fbff; }
.answer-btn:not(:disabled):active { transform: translateY(1px); }
.answer-key { display: grid; flex: 0 0 28px; place-items: center; height: 29px; border: 1px solid #e5ebf2; border-radius: 7px; background: #f4f7fa; color: #8b9bae; font-size: 12px; font-weight: 750; }
.answer-label { color: #3a4e69; font-size: 13px; font-weight: 740; flex: 1; line-height: 1.35; }
.answer-mark { min-width: 18px; margin-left: auto; text-align: right; font-weight: 850; font-size: 17px; }
.answer-btn:disabled:not(.is-correct, .is-wrong) { opacity: .55; }
.answer-btn.is-correct { border-color: #7ac6a4; background: #effaf4; }
.answer-btn.is-correct .answer-mark { color: #178451; }
.answer-btn.is-correct .answer-key { background: #dbf5e6; color: #178451; border-color: #c5edd5; }
.answer-btn.is-wrong { border-color: #efaaaa; background: #fff2f1; }
.answer-btn.is-wrong .answer-mark { color: #c34242; }
.answer-btn.is-wrong .answer-key { background: #fbe2e0; color: #b24444; border-color: #f4d0ce; }
.feedback { margin-top: 16px; padding: 13px 14px; border-radius: 10px; font-size: 12px; line-height: 1.45; }
.feedback strong { font-weight: 800; }
.feedback p { margin: 5px 0 0; }
.feedback-success { color: #12683f; background: #eaf8ee; border: 1px solid #c9ecd6; }
.feedback-error { color: #a43636; background: #fff1f0; border: 1px solid #f3d0cb; }
.next-btn { margin-top: 14px; }
.question-bottom { margin-top: auto; padding-top: 23px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.keyboard-hint { font-size: 10px; color: #9cacc0; line-height: 1.5; }
kbd { display: inline-grid; place-items: center; min-width: 16px; height: 17px; font: inherit; font-weight: 750; color: #7d8b9f; border: 1px solid #e2e8ee; border-radius: 4px; margin: 0 1px; }
.text-btn { border: 0; background: transparent; color: #8e9db1; font-size: 11px; text-decoration: underline; text-decoration-color: #b6c4d3; text-underline-offset: 4px; white-space: nowrap; padding: 5px 0; }
.text-btn:hover { color: #1767bd; }
.result-screen { align-items: stretch; }
.result-score-wrap { margin: 28px auto 23px; display: flex; justify-content: center; }
.result-ring { --score-deg: 0deg; width: 148px; height: 148px; border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: radial-gradient(closest-side, #fff 81%, transparent 82% 100%), conic-gradient(#1973d2 var(--score-deg), #e9eff6 0); }
.result-ring span { color: #1e456e; font-size: 35px; font-weight: 850; letter-spacing: -1.7px; }
.result-ring small { color: #8799b1; font-size: 9px; font-weight: 850; letter-spacing: 1.3px; }
.result-screen h2, .result-screen > .quiz-description { text-align: center; }
.result-stats { margin: 25px 0 20px; padding: 18px 0; border-top: 1px solid #edf0f5; border-bottom: 1px solid #edf0f5; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.result-stats div:not(:last-child) { border-right: 1px solid #eaf0f5; }
.result-stats strong { display: block; font-size: 23px; font-weight: 830; color: #1f3856; }
.result-stats span { display: block; margin-top: 3px; font-size: 11px; color: #8d9caf; }
.mistakes-block { margin-bottom: 17px; overflow: auto; max-height: 188px; }
.mistakes-block h3 { font-size: 12px; color: #435671; margin: 0 0 9px; }
.mistakes-block ul { list-style: none; margin: 0; padding: 0; }
.mistakes-block li { padding: 7px 0; border-bottom: 1px solid #f0f3f7; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 11px; color: #8795a8; }
.mistakes-block li strong { color: #495c76; text-align: right; font-size: 11px; }
.result-actions { margin-top: auto; display: flex; gap: 10px; }
.result-actions > button { flex: 1; }
.outline-btn { border: 1.5px solid #d1e1f2; border-radius: 11px; color: #145aa8; background: #f4f9ff; padding: 12px 10px; font-size: 12px; font-weight: 760; }
.outline-btn:hover { background: #e9f3ff; }
.below-tip { margin: 20px 0 0; padding: 0 2px; font-size: 12px; color: #8697ab; line-height: 1.7; }
.below-tip strong { color: #60748f; }
.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 55px; padding: 22px 0 30px; border-top: 1px solid #e7ebf2; color: #97a7b9; font-size: 10px; }
.site-footer > span:first-child { letter-spacing: 1.1px; font-weight: 850; }
.site-footer a { color: #7d91aa; text-decoration: underline; text-decoration-color: #c8d3df; text-underline-offset: 3px; }

@media (max-width: 1170px) {
  .site-shell { padding: 0 30px; }
  .game-layout { grid-template-columns: minmax(0, 1.2fr) minmax(340px, 1fr); gap: 16px; }
  .screen { padding: 27px 23px 22px; }
  .map-header { padding-left: 20px; padding-right: 20px; }
  .map-footer { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 850px) {
  .site-shell { padding: 0 22px; }
  .hero { padding: 29px 0 28px; }
  .game-layout { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .map-card, .quiz-card { min-height: auto; }
  .map-surface { padding: 0 15px 7px; }
  #cz-map { max-height: 510px; }
  .map-header { padding: 22px 24px 9px; }
  .map-footer { padding: 18px 24px; }
  .screen { min-height: 0; padding: 28px 29px 26px; }
  .intro-art { margin: 21px 0 17px; }
  .mode-options { margin-top: 22px; }
  .start-btn { margin-top: 8px; }
  .site-footer { margin-top: 32px; }
}
@media (max-width: 530px) {
  .site-shell { padding: 0 14px; }
  .site-header { min-height: 79px; }
  .brand-logo { height: 42px; width: 42px; }
  .brand-text strong { font-size: 20px; }
  .brand-text small { font-size: 7.6px; letter-spacing: 1px; }
  .header-trailing { font-size: 10px; gap: 6px; }
  .header-divider { padding: 0; margin: 0 1px; }
  .hero { padding: 25px 5px 24px; }
  .hero h1 { letter-spacing: -1.7px; font-size: 35px; }
  .hero p { font-size: 13px; }
  .overline { letter-spacing: .9px; font-size: 9px; }
  .overline-line { width: 12px; }
  .map-card, .quiz-card { border-radius: 15px; }
  .map-header { padding: 20px 16px 5px; }
  .map-heading { font-size: 9px; letter-spacing: .65px; }
  .map-legend { font-size: 9px; }
  .map-surface { padding: 2px 2px 5px; }
  .map-footer { padding: 13px 15px; }
  .map-hint { font-size: 9.6px; }
  .map-country { display: none; }
  .screen { padding: 23px 20px 21px; }
  .quiz-description { font-size: 12.5px; }
  .screen h2 { font-size: 24px; }
  .intro-art { height: 65px; width: 65px; border-radius: 20px; }
  .intro-art-inner { height: 33px; width: 33px; font-size: 22px; }
  .mode-options { margin: 24px 0 20px; }
  .mode-option { min-height: 53px; }
  .progress-track { margin-bottom: 25px; }
  .question-screen h2 { font-size: 24px; margin-top: 15px; }
  .question-subtitle { margin-bottom: 16px; }
  .answer-btn { min-height: 60px; }
  .question-bottom { padding-top: 20px; }
  .keyboard-hint { font-size: 9px; }
  .below-tip { margin-top: 15px; font-size: 11px; }
  .site-footer { font-size: 9px; margin-top: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
