.kaart-page { --kaart-green: #23674d; background: #1b373d; }
.kaart-page * { letter-spacing: 0; }
.kaart-page .topbar h1, .kaart-page .kicker { letter-spacing: 0; }
.kaart-page [hidden] { display: none !important; }
.kaart-content { padding: 28px 42px; }
.kaart-intro, .round-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.kaart-intro h2 { font-size: 1.65rem; line-height: 1.2; }
.kaart-intro > p { color: #405356; white-space: nowrap; }
.kaart-page .kicker { margin-bottom: 6px; color: var(--kaart-green); font-size: .8rem; font-weight: 800; }
.level-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 24px 0 14px; }
.level-choice { display: flex; align-items: center; gap: 12px; min-height: 108px; padding: 14px; border: 2px solid #d8d8d8; border-radius: 8px; background: #fff; color: #1b373d; font: inherit; text-align: left; cursor: pointer; }
.level-choice:hover { border-color: #d31316; background: #fff5f4; }
.level-choice[aria-pressed="true"] { border-color: var(--kaart-green); background: #e8f3ec; }
.level-choice[aria-pressed="true"]:hover { border-color: #d31316; }
.level-choice strong, .level-choice small { display: block; }
.level-choice strong { font-size: .95rem; line-height: 1.35; overflow-wrap: anywhere; }
.level-choice small { color: #405356; margin-bottom: 4px; }
.level-number { display: grid; place-items: center; width: 32px; height: 40px; flex-shrink: 0; font-size: 1.6rem; color: var(--kaart-green); font-weight: 900; }
.session-note, #notice, #save-status { font-size: .9rem; line-height: 1.5; margin: 12px 0; }
.kaart-content a { text-decoration: underline; text-underline-offset: 3px; }
#notice { color: #a31820; }
.round-heading { margin-top: 24px; }
.round-heading h2 { font-size: 1.25rem; }
.round-progress { display: flex; gap: 12px; align-items: center; margin: 16px 0 20px; }
.round-progress progress { flex: 1; width: 100%; height: 10px; accent-color: var(--kaart-green); }
.round-progress span { min-width: 55px; text-align: right; font-weight: 800; }
.play-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.kaart-page figure { margin: 0; }
.province-map { position: relative; width: 100%; max-width: 480px; aspect-ratio: 743 / 881; margin: auto; }
.province-map > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.map-marker { position: absolute; transform: translate(-50%, -50%); width: 38px; height: 38px; min-height: 0; padding: 0; border: 2px solid #405356; border-radius: 50%; background: white; color: #1b373d; font: 800 .95rem "Trebuchet MS", sans-serif; cursor: pointer; box-shadow: 0 2px 4px #0002; }
.province-target[aria-pressed="true"] { outline: 3px solid #1b373d; outline-offset: 3px; background: #1b373d; color: white; z-index: 2; }
.province-target:hover { border-color: #d31316; }
.answer-check { position: absolute; right: -5px; top: -8px; border-radius: 50%; background: #23674d; color: #fff; padding: 2px 4px; font-size: .75rem; }
.corrected .answer-check { background: #ad450d; }
.answer-panel { padding: 8px 0; min-width: 0; }
.answer-panel h3 { margin: 0 0 20px; font-size: 1.5rem; line-height: 1.2; }
.capital-bank, .province-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.capital-choice, .province-tile { min-height: 48px; padding: 10px 8px; border: 2px solid #b4c1c3; border-radius: 8px; background: white; color: #1b373d; font: 700 .95rem "Trebuchet MS", sans-serif; cursor: pointer; overflow-wrap: anywhere; }
.province-tile { position: relative; left: auto !important; top: auto !important; min-height: 65px; }
.capital-choice:hover:not(:disabled) { border-color: #d31316; background: #fff5f4; }
.capital-choice:disabled { opacity: .45; cursor: default; }
.kaart-page button:focus-visible, .kaart-page a:focus-visible, .kaart-page input:focus-visible { outline: 3px solid #b45110; outline-offset: 3px; }
.kaart-page button:disabled { cursor: default; }
.primary-button, .quiet-button { min-height: 44px; padding: 10px 16px; border: 2px solid var(--kaart-green); border-radius: 8px; font: 800 .95rem "Trebuchet MS", sans-serif; cursor: pointer; }
.primary-button { color: white; background: var(--kaart-green); }
.quiet-button { color: #1b373d; background: white; border-color: #b4c1c3; }
.primary-button:hover { background: #194d39; }
.quiet-button:hover { border-color: #d31316; }
#answer-form { display: grid; gap: 16px; }
#answer-form label { display: grid; gap: 6px; color: #405356; font-size: 1rem; font-weight: 700; }
#answer-form input { width: 100%; min-width: 0; height: 48px; border: 2px solid #b4c1c3; border-radius: 8px; padding: 10px; color: #1b373d; background: white; font: 1.1rem "Trebuchet MS", sans-serif; }
#feedback { min-height: 48px; margin: 16px 0; line-height: 1.5; font-weight: 700; }
.kaart-page .correct { color: #23674d; border-color: #23674d; }
.kaart-page .corrected { color: #a33c06; border-color: #bd591c; background: #fff3e8; }
.kaart-page .incorrect { color: #ab1b20; }
#round-result { padding: 24px 0; border-top: 1px solid #b4c1c3; }
#result-score { margin: 14px 0; font-size: 1.15rem; font-weight: 800; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 18px 0; }
.kaart-results { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kaart-results li { display: grid; gap: 5px; padding: 12px; border-left: 3px solid currentColor; background: white; overflow-wrap: anywhere; }
.kaart-results li.corrected { background: #fff3e8; }
.kaart-results span, .kaart-results small { font-size: .9rem; line-height: 1.4; }
.kaart-seo { margin-top: 34px; padding-top: 24px; border-top: 1px solid #d8d8d8; color: #405356; }
.kaart-seo h2 { font-size: 1.2rem; }
.kaart-seo p { margin-top: 12px; font-size: .95rem; line-height: 1.65; }
@media (max-width: 980px) {
  .level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .level-choice { min-height: 82px; }
  .kaart-intro { align-items: start; flex-direction: column; gap: 8px; }
  .kaart-page .topbar { flex-wrap: wrap; gap: 12px; padding: 20px 24px; }
  .kaart-page .topbar-title { min-width: 120px; }
}
@media (max-width: 650px) {
  .kaart-content { padding: 20px 16px; }
  .kaart-page .topbar { display: flex; padding: 16px; gap: 12px; }
  .kaart-page .home-button { min-height: 40px; padding: 0 10px; font-size: .85rem; }
  .kaart-page .topbar-title { flex: 1; min-width: 130px; }
  .kaart-page .topbar-title h1 { font-size: 1.6rem; }
  .kaart-page .topbar-title p { font-size: .8rem; }
  .kaart-page .kid-switcher { margin-left: auto; }
  .kaart-page .parent-menu { margin-left: auto; }
  .kaart-page .kid-switcher + .parent-menu { margin-left: 0; }
  .kaart-intro h2 { font-size: 1.4rem; }
  .level-grid { gap: 8px; margin-top: 18px; }
  .level-choice { padding: 10px; gap: 8px; min-height: 96px; }
  .level-choice strong { font-size: .85rem; }
  .level-number { width: 22px; font-size: 1.4rem; }
  .play-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .province-map { max-width: 390px; }
  .map-marker { width: 32px; height: 32px; font-size: .85rem; }
  .round-heading { align-items: start; }
  .round-heading h2 { font-size: 1rem; }
  .round-heading .quiet-button { max-width: 135px; flex-shrink: 0; font-size: .85rem; }
  .answer-panel h3 { font-size: 1.35rem; margin-bottom: 14px; }
  .kaart-results { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 350px) { .map-marker { width: 30px; height: 30px; } }
@media (prefers-reduced-motion: reduce) { .kaart-page * { scroll-behavior: auto !important; transition: none !important; } }
