:root {
  --sky: #0d5ea6;
  --sky-deep: #093d6b;
  --flag-red: #d6423a;
  --gold: #efb647;
  --sand: #efe2c2;
  --steppe: #bfc8a0;
  --ink: #12202d;
  --muted: #5d6875;
  --panel: rgba(255, 248, 237, 0.86);
  --panel-strong: rgba(255, 250, 243, 0.94);
  --line: rgba(18, 32, 45, 0.08);
  --shadow: 0 20px 60px rgba(8, 27, 44, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

body {
  color: var(--ink);
  background:
    radial-gradient(1400px 780px at -12% -10%, rgba(239, 182, 71, 0.26), transparent 52%),
    radial-gradient(1100px 720px at 108% 8%, rgba(214, 66, 58, 0.18), transparent 50%),
    radial-gradient(900px 600px at 50% 120%, rgba(13, 94, 166, 0.14), transparent 56%),
    radial-gradient(700px 420px at 50% 38%, rgba(191, 200, 160, 0.14), transparent 58%),
    linear-gradient(145deg, #f6e8c8 0%, #f5eddd 34%, #eef3f0 68%, #edf5fb 100%);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background-attachment: fixed;
}

.nav-footer,
.quarto-title-banner,
#quarto-margin-sidebar,
#quarto-sidebar,
.toc-actions,
#title-block-header {
  display: none !important;
}

#quarto-content {
  padding-top: 0;
}

.content {
  padding: 0;
}

.mongolia-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.hub-shell {
  max-width: 1240px;
}

.hero-panel,
.stats-strip,
.play-grid,
.hub-hero,
.hub-grid,
.archive-panel,
.source-panel {
  position: relative;
  z-index: 1;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
  margin-bottom: 24px;
}

.hub-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(214, 66, 58, 0.18), transparent 30%),
    linear-gradient(155deg, rgba(13, 94, 166, 0.96), rgba(9, 61, 107, 0.92));
  box-shadow: var(--shadow);
  color: #fff8ef;
}

.hub-hero h1 {
  margin: 8px 0 12px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(2.7rem, 5vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hub-lead {
  max-width: 42rem;
  margin: 0;
  color: rgba(255, 248, 239, 0.84);
  line-height: 1.72;
  font-size: 1.06rem;
}

.hero-copy,
.game-panel,
.info-panel,
.archive-panel,
.source-panel,
.stat-card,
.fact-link-card,
.game-tile,
.mini-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-radius: var(--radius-lg);
  padding: 36px;
  background:
    linear-gradient(150deg, rgba(13, 94, 166, 0.96), rgba(9, 61, 107, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  color: #fef6e7;
}

.hero-copy h1 {
  margin: 8px 0 14px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: 42rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(254, 246, 231, 0.88);
}

.eyebrow,
.archive-eyebrow,
.stat-label,
.mini-label,
.fact-category,
.search-wrap span {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  color: rgba(254, 246, 231, 0.72);
}

.hero-chips,
.question-meta,
.winner-actions,
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip,
.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
}

.chip {
  background: rgba(255, 255, 255, 0.12);
  color: #fff6e7;
}

.hero-side {
  display: grid;
  gap: 18px;
}

.date-badge,
.fact-link-card {
  border-radius: var(--radius-lg);
}

.date-badge {
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(214, 66, 58, 0.92), rgba(239, 182, 71, 0.9));
  color: #fffaf3;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.fact-link-card {
  display: block;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(180deg, rgba(255, 249, 240, 0.98), rgba(247, 239, 222, 0.94)),
    radial-gradient(circle at top right, rgba(13, 94, 166, 0.08), transparent 40%);
}

.archive-eyebrow,
.stat-label,
.mini-label,
.fact-category,
.search-wrap span {
  color: var(--muted);
}

.fact-link-card h2 {
  margin: 8px 0;
  font-size: 1.5rem;
  line-height: 1.18;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.game-tile {
  display: block;
  min-height: 240px;
  padding: 24px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.game-tile:hover {
  transform: translateY(-3px);
}

.game-tile-live {
  background:
    radial-gradient(circle at top right, rgba(239, 182, 71, 0.22), transparent 28%),
    linear-gradient(145deg, rgba(13, 94, 166, 0.98), rgba(9, 61, 107, 0.94));
  color: #fff8ef;
}

.game-tile-live:hover {
  box-shadow: 0 24px 60px rgba(9, 61, 107, 0.24);
}

.game-tile-accent {
  background:
    radial-gradient(circle at top right, rgba(214, 66, 58, 0.2), transparent 28%),
    linear-gradient(145deg, rgba(7, 74, 132, 0.98), rgba(164, 56, 49, 0.92));
}

.game-tile-soon {
  background:
    linear-gradient(180deg, rgba(255, 249, 240, 0.98), rgba(244, 237, 224, 0.94));
}

.game-tile-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.72;
}

.game-tile h2 {
  margin: 12px 0 10px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.game-tile-copy {
  margin: 0;
  max-width: 28rem;
  line-height: 1.72;
  color: inherit;
  opacity: 0.88;
}

.game-tile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.game-tile-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
}

.game-tile-soon .game-tile-meta span {
  background: rgba(18, 32, 45, 0.06);
}

.motif-note {
  margin: 14px 0 0;
  line-height: 1.7;
  color: var(--muted);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  border-radius: var(--radius-md);
  padding: 20px;
}

.stat-value {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.play-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 24px;
  margin-bottom: 24px;
}

.province-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.72fr);
  gap: 24px;
  margin-bottom: 24px;
}

.ger-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 24px;
  margin-bottom: 24px;
}

.game-panel,
.info-panel,
.province-panel,
.archive-panel,
.source-panel {
  border-radius: var(--radius-lg);
  padding: 28px;
}

.game-panel {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(251, 244, 232, 0.94)),
    linear-gradient(135deg, rgba(13, 94, 166, 0.04), rgba(214, 66, 58, 0.05));
}

.info-panel {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(242, 237, 225, 0.94));
}

.province-panel {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(248, 241, 229, 0.96)),
    linear-gradient(135deg, rgba(13, 94, 166, 0.04), rgba(214, 66, 58, 0.05));
}

.ger-panel {
  overflow: hidden;
}

.info-panel h3,
.archive-panel h2,
.game-panel h2,
.winner-content h2 {
  margin: 0 0 14px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  letter-spacing: -0.03em;
}

.game-panel h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.12;
  margin-top: 16px;
}

.meta-pill {
  background: rgba(13, 94, 166, 0.1);
  color: var(--sky-deep);
}

.meta-pill.subtle {
  background: rgba(18, 32, 45, 0.06);
  color: var(--muted);
}

.question-lead,
.rules-list li,
.fact-detail,
.source-panel p,
.archive-panel p,
.archive-intro,
.winner-content p {
  line-height: 1.72;
}

.question-lead,
.source-panel p,
.archive-panel p,
.archive-intro,
.fact-detail {
  color: var(--muted);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.option-button,
.primary-button,
.ghost-button,
.search-wrap input {
  font: inherit;
}

.option-button {
  min-height: 72px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(18, 32, 45, 0.1);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  text-align: left;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.option-button:hover:not(:disabled),
.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.option-button:hover:not(:disabled) {
  border-color: rgba(13, 94, 166, 0.28);
  box-shadow: 0 16px 32px rgba(13, 94, 166, 0.1);
}

.option-button:disabled {
  cursor: default;
  opacity: 1;
}

.option-button.correct {
  border-color: rgba(44, 122, 72, 0.28);
  background: rgba(220, 244, 228, 0.98);
}

.option-button.wrong {
  border-color: rgba(214, 66, 58, 0.28);
  background: rgba(252, 226, 223, 0.98);
}

.timeline-options {
  display: block;
}

.timeline-guess {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.timeline-year-readout {
  margin: 0;
  font-size: 3.6rem;
  line-height: 1;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0;
}

.timeline-slider {
  width: 100%;
  accent-color: #0d5ea6;
}

.timeline-slider:disabled {
  opacity: 0.72;
}

.timeline-marks {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.timeline-submit {
  text-align: center;
  min-height: 58px;
}

.feedback-panel {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 32, 45, 0.08);
}

.province-popup {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  margin-top: 0;
  background: rgba(255, 249, 241, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 48px rgba(8, 27, 44, 0.18);
}

.feedback-result {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 800;
}

.feedback-result.good { color: #22653d; }
.feedback-result.bad { color: #b23a32; }

.feedback-fact {
  margin: 0 0 16px;
  color: var(--muted);
}

.panel-actions {
  margin-top: 18px;
}

.ger-lesson-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 20px;
  margin-top: 22px;
}

.ger-stage {
  position: relative;
  aspect-ratio: 760 / 520;
  border-radius: calc(var(--radius-lg) - 4px);
  border: 1px solid rgba(18, 32, 45, 0.08);
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.74), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(236, 229, 214, 0.8));
}

.ger-illustration {
  display: block;
  width: 100%;
  height: auto;
}

.ger-shadow {
  fill: rgba(8, 27, 44, 0.13);
  filter: blur(12px);
}

.ger-ground {
  fill: rgba(191, 200, 160, 0.3);
}

.ger-piece-visual {
  opacity: 0;
  pointer-events: none;
}

.ger-piece-art {
  transform-box: fill-box;
  transform-origin: center bottom;
  transform: translateY(18px) scale(0.96);
  transition: opacity 240ms ease, transform 320ms ease, filter 220ms ease;
}

.ger-piece-visual.is-visible {
  opacity: 1;
}

.ger-piece-visual.is-visible .ger-piece-art {
  transform: translateY(0) scale(1);
}

.ger-piece-visual.is-animating .ger-piece-art {
  transform: translateY(-8px) scale(1.015);
}

.ger-piece-visual.is-animating .ger-door,
.ger-piece-visual.is-animating .ger-pole,
.ger-piece-visual.is-animating .ger-toono-ring,
.ger-piece-visual.is-animating .ger-roof-felt,
.ger-piece-visual.is-animating .ger-wall-felt,
.ger-piece-visual.is-animating .ger-rope {
  filter: drop-shadow(0 8px 18px rgba(8, 27, 44, 0.12));
}

.ger-door {
  fill: url(#gerWood);
  stroke: rgba(114, 35, 22, 0.7);
  stroke-width: 3;
}

.ger-door-frame {
  fill: rgba(183, 82, 53, 0.96);
  stroke: rgba(118, 43, 28, 0.72);
  stroke-width: 3;
}

.ger-door-inner {
  fill: rgba(255, 231, 198, 0.12);
  stroke: rgba(255, 245, 227, 0.34);
  stroke-width: 2;
}

.ger-door-knob {
  fill: #efc768;
}

.ger-wall-outline,
.ger-wall-rim,
.ger-khana-lattice path,
.ger-uni-set path,
.ger-toono-spokes path,
.ger-urkh-line {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.ger-wall-outline {
  stroke: rgba(182, 74, 52, 0.54);
  stroke-width: 8;
}

.ger-wall-rim {
  stroke: rgba(169, 111, 63, 0.72);
  stroke-width: 8;
}

.ger-khana-lattice path {
  stroke: rgba(186, 96, 69, 0.7);
  stroke-width: 6;
}

.ger-pole {
  fill: url(#gerWood);
}

.ger-toono-ring {
  fill: rgba(216, 111, 72, 0.16);
  stroke: rgba(182, 74, 52, 0.9);
  stroke-width: 10;
}

.ger-toono-hole {
  fill: rgba(246, 232, 200, 0.84);
}

.ger-toono-spokes path {
  stroke: rgba(182, 74, 52, 0.84);
  stroke-width: 5;
}

.ger-uni-set path {
  stroke: rgba(198, 108, 77, 0.78);
  stroke-width: 6;
}

.ger-roof-felt {
  fill: url(#gerRoof);
  stroke: rgba(199, 177, 136, 0.76);
  stroke-width: 3;
}

.ger-wall-felt {
  fill: url(#gerFelt);
  stroke: rgba(204, 187, 157, 0.86);
  stroke-width: 3;
}

.ger-eave-shadow {
  fill: rgba(135, 102, 52, 0.12);
}

.ger-rope {
  fill: none;
  stroke: rgba(124, 93, 49, 0.9);
  stroke-width: 5;
  vector-effect: non-scaling-stroke;
}

.ger-urkh {
  fill: rgba(214, 66, 58, 0.9);
  stroke: rgba(151, 42, 35, 0.9);
  stroke-width: 3;
}

.ger-urkh-line {
  stroke: rgba(151, 42, 35, 0.9);
  stroke-width: 3;
}

.ger-inline-feedback {
  margin-top: 14px;
  background: rgba(255, 248, 237, 0.9);
  backdrop-filter: blur(12px);
}

.ger-pieces-panel {
  display: flex;
  flex-direction: column;
}

.ger-piece-list {
  display: grid;
  gap: 12px;
}

.ger-piece-button {
  display: grid;
  gap: 4px;
}

.ger-piece-name {
  display: block;
  font-weight: 700;
}

.ger-piece-subtitle {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.ger-piece-button.is-placed .ger-piece-subtitle {
  color: #22653d;
  font-weight: 700;
}

.ger-piece-idle:not(:disabled) {
  background: rgba(255, 255, 255, 0.88);
}

.ger-piece-button.is-shaking {
  animation: ger-shake 360ms ease;
}

.ger-detail-card h4 {
  margin: 8px 0 10px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.ger-compact-value {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.2;
}

@keyframes ger-shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.rules-list {
  margin: 0 0 20px;
  padding-left: 20px;
}

.rules-list li + li {
  margin-top: 10px;
}

.mini-panel {
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--panel-strong);
}

.primary-button,
.ghost-button {
  appearance: none;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
  color: #fff8ef;
  box-shadow: 0 12px 28px rgba(9, 61, 107, 0.2);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(18, 32, 45, 0.1);
  color: var(--ink);
  text-decoration: none;
}

.archive-panel {
  margin-bottom: 24px;
}

.archive-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
}

.archive-actions {
  display: grid;
  gap: 12px;
  min-width: min(360px, 100%);
}

.archive-back {
  justify-self: start;
}

.search-wrap {
  display: grid;
  gap: 8px;
  min-width: min(360px, 100%);
}

.search-wrap input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid rgba(18, 32, 45, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.search-wrap input:focus {
  outline: 2px solid rgba(13, 94, 166, 0.18);
  outline-offset: 2px;
}

.map-shell {
  margin-top: 22px;
}

.map-frame {
  position: relative;
  aspect-ratio: 900 / 640;
  min-height: clamp(340px, 62vw, 560px);
  border-radius: calc(var(--radius-lg) - 4px);
  border: 1px solid rgba(18, 32, 45, 0.08);
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.7), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(238, 231, 216, 0.76));
}

.province-panel .map-frame {
  min-height: clamp(300px, 52vw, 500px);
}

.map-frame::after {
  content: "";
  position: absolute;
  inset: auto 8% 18px 8%;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(8, 27, 44, 0.16), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}

.map-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
  z-index: 1;
}

.province-map {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
}

.province-region {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center bottom;
  transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
}

.province-map.is-locked .province-region {
  cursor: default;
}

.province-region:hover,
.province-region:focus {
  transform: translateY(-8px) scale(1.01);
  filter: url(#provinceShadow);
  outline: none;
}

.province-map.is-locked .province-region:hover,
.province-map.is-locked .province-region:focus {
  transform: none;
  filter: none;
}

.province-path {
  fill: #d8c6a3;
  stroke: rgba(18, 32, 45, 0.36);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
  pointer-events: visiblePainted;
  transition: fill 180ms ease, stroke 180ms ease;
}

.province-region:hover .province-path,
.province-region:focus .province-path {
  fill: #efb647;
  stroke: rgba(9, 61, 107, 0.72);
}

.province-region.is-correct .province-path {
  fill: #7dbb8f;
  stroke: rgba(34, 101, 61, 0.9);
}

.province-region.is-wrong .province-path {
  fill: #de7a72;
  stroke: rgba(178, 58, 50, 0.94);
}

.province-region.is-neutral {
  opacity: 0.55;
}

.landmark-map {
  cursor: crosshair;
}

.landmark-region {
  cursor: crosshair;
}

.landmark-region-path {
  fill: rgba(216, 198, 163, 0.68);
  stroke: rgba(18, 32, 45, 0.32);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
  transition: fill 180ms ease, opacity 180ms ease;
}

.landmark-map:hover .landmark-region-path {
  fill: rgba(229, 189, 113, 0.76);
}

.landmark-overlay {
  pointer-events: none;
}

.landmark-ring {
  fill: rgba(13, 94, 166, 0.08);
  stroke: rgba(13, 94, 166, 0.78);
  stroke-width: 2.5;
  stroke-dasharray: 10 8;
  vector-effect: non-scaling-stroke;
}

.landmark-marker {
  filter: url(#landmarkMapShadow);
}

.marker-outer,
.marker-inner {
  transition: transform 180ms ease;
}

.landmark-marker-target .marker-outer {
  fill: rgba(125, 187, 143, 0.94);
  stroke: rgba(34, 101, 61, 0.92);
  stroke-width: 2.5;
}

.landmark-marker-target .marker-inner {
  fill: #ffffff;
}

.landmark-marker-guess .marker-outer {
  fill: rgba(214, 66, 58, 0.9);
  stroke: rgba(178, 58, 50, 0.92);
  stroke-width: 2.5;
}

.landmark-marker-guess .marker-inner {
  fill: #fff6f4;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fact-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(18, 32, 45, 0.08);
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(249, 243, 232, 0.92));
}

.fact-card h3 {
  margin: 10px 0 10px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.fact-number {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--sky);
}

.fact-answer {
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--flag-red);
}

.empty-card {
  grid-column: 1 / -1;
  text-align: center;
}

.source-panel {
  background:
    linear-gradient(180deg, rgba(18, 32, 45, 0.95), rgba(9, 61, 107, 0.94));
  color: rgba(255, 248, 237, 0.9);
}

.source-panel .eyebrow,
.source-panel p {
  color: rgba(255, 248, 237, 0.82);
}

.winner-dialog {
  border: none;
  padding: 0;
  border-radius: var(--radius-lg);
  background: transparent;
}

.winner-dialog::backdrop {
  background: rgba(10, 23, 35, 0.48);
  backdrop-filter: blur(6px);
}

.winner-content {
  width: min(560px, calc(100vw - 32px));
  padding: 30px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(247, 239, 223, 0.96));
  border: 1px solid rgba(18, 32, 45, 0.08);
  box-shadow: 0 30px 90px rgba(8, 27, 44, 0.22);
}

@media (max-width: 960px) {
  .hero-panel,
  .play-grid,
  .province-grid,
  .ger-grid,
  .stats-strip,
  .hub-grid,
  .facts-grid {
    grid-template-columns: 1fr;
  }

  .ger-lesson-grid {
    grid-template-columns: 1fr;
  }

  .archive-head {
    align-items: stretch;
    flex-direction: column;
  }

  .archive-actions,
  .search-wrap {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .mongolia-shell {
    padding: 22px 14px 48px;
  }

  .hero-copy,
  .game-panel,
  .province-panel,
  .info-panel,
  .hub-hero,
  .archive-panel,
  .source-panel {
    padding: 22px;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }

  .map-frame,
  .province-map,
  .ger-stage {
    min-height: 0;
  }

  .hero-copy h1 {
    font-size: 2.8rem;
  }
}
