/* ───────────────────────── Theme tokens ───────────────────────── */
:root {
  --font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --radius: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #e4edf2;
  --surface: rgba(252, 250, 245, 0.94);
  --surface-solid: #fcfaf5;
  --surface-2: #f1ede4;
  --text: #1c2431;
  --muted: #5f6878;
  --line: rgba(28, 36, 49, 0.12);
  --line-strong: rgba(28, 36, 49, 0.22);
  --accent: #d9771f;
  --accent-ink: #ffffff;
  --accent-soft: rgba(217, 119, 31, 0.14);
  --good: #23824f;
  --good-soft: rgba(35, 130, 79, 0.12);
  --bad: #c0433a;
  --bad-soft: rgba(192, 67, 58, 0.12);
  --shadow: 0 10px 30px rgba(31, 45, 61, 0.14), 0 2px 6px rgba(31, 45, 61, 0.08);
  --backdrop: rgba(228, 237, 242, 0.55);

  /* map */
  --map-ocean: #d6e4ec;
  --map-grat: rgba(70, 105, 135, 0.10);
  --map-land: #fbf8f1;
  --map-out: #ece7dc;
  --map-other: #e6e1d6;
  --map-border: #a39888;
  --map-target: #f0a04b;
  --map-target-stroke: #a8560c;
  --map-correct: #9fd2ac;
  --map-missed: #eea39b;
  --map-dot: #8a7f70;
  --map-skipped: #cdc3ef;
  --skip: #6f5bd3;
  --skip-soft: rgba(111, 91, 211, 0.12);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c141e;
  --surface: rgba(18, 27, 39, 0.92);
  --surface-solid: #121b27;
  --surface-2: #1a2635;
  --text: #e6ebf2;
  --muted: #95a2b3;
  --line: rgba(230, 235, 242, 0.10);
  --line-strong: rgba(230, 235, 242, 0.2);
  --accent: #f5a524;
  --accent-ink: #1a1204;
  --accent-soft: rgba(245, 165, 36, 0.16);
  --good: #4cc38a;
  --good-soft: rgba(76, 195, 138, 0.14);
  --bad: #f0705f;
  --bad-soft: rgba(240, 112, 95, 0.14);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
  --backdrop: rgba(8, 13, 20, 0.55);

  --map-ocean: #0e1823;
  --map-grat: rgba(140, 175, 210, 0.07);
  --map-land: #2a3949;
  --map-out: #1d2936;
  --map-other: #1a2531;
  --map-border: #56697e;
  --map-target: #f5a524;
  --map-target-stroke: #ffd38a;
  --map-correct: #2d7a55;
  --map-missed: #9a3f38;
  --map-dot: #8395a8;
  --map-skipped: #4e4589;
  --skip: #a593ff;
  --skip-soft: rgba(165, 147, 255, 0.14);
}

/* ───────────────────────── Base ───────────────────────── */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--map-ocean);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }

#map {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}
#map.clickable { cursor: pointer; }
#map.dragging { cursor: grabbing; }

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  color: var(--text);
  border-radius: 10px;
  padding: 0 16px;
  height: 44px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s, opacity .15s;
}
.btn:hover { border-color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; border-color: var(--line-strong); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.small { height: 34px; padding: 0 12px; font-size: 14px; }
.btn:focus-visible, .icon-btn:focus-visible, .mode-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.icon-btn {
  appearance: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="light"] .icon-moon, [data-theme="dark"] .icon-sun { display: none; }

/* ───────────────────────── Top bar ───────────────────────── */
.topbar {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px 0 10px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.brand-mark { width: 26px; height: 26px; }
.brand-mark circle { fill: var(--accent); }
.brand-mark path { fill: none; stroke: var(--accent-ink); stroke-width: 1.6; stroke-linecap: round; opacity: .9; }
.brand-name { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: .01em; }
.mode-tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
}

.hud {
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 8px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.progress { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.progress-text { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px; min-width: 54px; text-align: right; }
.progress-text .sep { color: var(--muted); margin: 0 3px; font-weight: 500; }
.bar { width: 120px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar > div { height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .4s var(--ease); }
.stat {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  height: 30px;
  border-left: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 15px;
}
.stat svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stat.good { color: var(--good); }
.stat.bad { color: var(--bad); }
.stat.time { color: var(--muted); min-width: 74px; }
button.stat {
  appearance: none;
  border: 0;
  border-left: 1px solid var(--line);
  background: none;
  cursor: pointer;
  border-radius: 0;
}
.stat.skip { color: var(--skip); }
.stat.skip:hover, .stat.skip[aria-expanded="true"] { background: var(--skip-soft); border-radius: 8px; }
.stat.skip.empty { color: var(--muted); }

.actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.hud:not([hidden]) + .actions { margin-left: 0; }
.actions .btn.small { background: var(--surface); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--line); height: 38px; }
.actions .icon-btn { width: 46px; height: 46px; border-radius: var(--radius); box-shadow: var(--shadow); }
.actions .btn.small { box-shadow: var(--shadow); height: 46px; border-radius: var(--radius); padding: 0 16px; }

/* ───────────────────────── Map controls ───────────────────────── */
.map-controls {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.map-controls .icon-btn { box-shadow: var(--shadow); }

/* ───────────────────────── Markers over the map ───────────────────────── */
#markers { position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.pulse {
  position: absolute;
  left: 0; top: 0;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  display: none;
}
.pulse::before, .pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid var(--map-target);
}
.pulse::before { inset: 11px; background: var(--map-target); border-color: var(--map-target-stroke); border-width: 1.5px; }
.pulse::after { animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse {
  0% { transform: scale(.35); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.cap-marker {
  position: absolute;
  left: 0; top: 0;
  display: none;
  align-items: center;
  gap: 8px;
  transform: translate(-7px, -50%);
  white-space: nowrap;
}
.cap-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--surface-solid);
  border: 4px solid var(--text);
  box-shadow: 0 0 0 2px var(--surface-solid);
  flex: none;
}
.cap-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  padding: 3px 10px 4px;
  border-radius: 8px;
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.cap-marker.good .cap-dot { border-color: var(--good); }
.cap-marker.bad .cap-dot { border-color: var(--bad); }
.cap-marker.show { display: flex; animation: pop .35s var(--ease); }
.cap-marker.fade { opacity: 0; transition: opacity .45s; }
@keyframes pop { from { opacity: 0; transform: translate(-7px, -50%) scale(.8); } }

/* ───────────────────────── Question panel ───────────────────────── */
.panel {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 20;
  width: min(560px, calc(100vw - 24px));
  padding: 18px 20px 14px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: rise .45s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, 16px); } }
.prompt-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.country-name {
  margin: 2px 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 4.4vw, 36px);
  line-height: 1.12;
  letter-spacing: -.005em;
}
.country-name.swap { animation: swap .4s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }

.guess-row { display: flex; gap: 8px; }
#guess {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  background: var(--surface-solid);
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .2s;
}
#guess::placeholder { color: var(--muted); opacity: .8; }
#guess:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
#guess.good { border-color: var(--good); background: var(--good-soft); box-shadow: none; }
#guess.bad { border-color: var(--bad); background: var(--bad-soft); box-shadow: none; }
#guess.copy { border-color: var(--bad); }
#guess.copy:focus { box-shadow: 0 0 0 4px var(--bad-soft); }
.guess-row .btn { height: 48px; }
.shake { animation: shake .38s; }
@keyframes shake {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

.panel-foot { display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; min-height: 22px; }
.feedback { font-size: 15px; line-height: 1.4; color: var(--muted); }
.feedback strong { color: var(--text); }
.feedback.good { color: var(--good); }
.feedback.bad { color: var(--bad); }
.feedback.info { color: var(--skip); }
.feedback .note { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.feedback kbd {
  font: 600 12px var(--font-ui);
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

/* ───────────────────────── Overlays ───────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 84px 16px 16px;
  background: var(--backdrop);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  overflow-y: auto;
  animation: fade .35s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: min(760px, 100%);
  padding: 28px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: rise-sheet .5s var(--ease);
}
@keyframes rise-sheet { from { opacity: 0; transform: translateY(14px); } }
.eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.sheet h1 { margin: 4px 0 8px; font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 5vw, 42px); line-height: 1.05; letter-spacing: -.01em; }
.lede { margin: 0 0 22px; color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 56ch; }
.fine { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* Mode cards */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s, transform .15s var(--ease), box-shadow .15s;
}
.mode-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.mode-card canvas { display: block; width: 100%; height: 96px; background: var(--map-ocean); }
.mode-card .mc-body { padding: 10px 12px 12px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; }
.mode-card .mc-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.mode-card .mc-count { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mode-card .mc-best { padding: 0 12px 11px; margin-top: -6px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mode-card .mc-best b { color: var(--good); font-weight: 700; }
.mode-card.featured { grid-column: 1 / -1; flex-direction: row; }
.mode-card.featured canvas { width: 58%; height: 150px; flex: none; }
.mode-card.featured .mc-wrap { display: flex; flex-direction: column; justify-content: center; padding: 8px 10px; }
.mode-card.featured .mc-body { flex-direction: column; align-items: flex-start; gap: 2px; }
.mode-card.featured .mc-name { font-size: 26px; }
.mode-card.featured .mc-count { font-size: 14px; }
.mode-card.featured .mc-best { margin-top: 0; }
.mode-card.featured .mc-go {
  margin: 4px 12px 0;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

/* Results */
.results-overlay { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }
.results-sheet {
  pointer-events: auto;
  width: min(420px, 100%);
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
}
@media (min-width: 900px) {
  .results-overlay { place-items: center end; padding-right: 70px; }
}
.score-big { font-family: var(--font-display); font-size: 64px; font-weight: 600; line-height: 1; margin: 6px 0 14px; font-variant-numeric: tabular-nums; }
.score-big .of { font-size: 28px; color: var(--muted); margin-left: 6px; }
.res-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.res-stats > div { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; }
.res-stats .k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.res-stats .v { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.badge {
  align-self: flex-start;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}
.missed-wrap { margin-top: 16px; min-height: 0; display: flex; flex-direction: column; }
.missed-wrap h3 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.missed-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; max-height: 240px; border-top: 1px solid var(--line); }
.missed-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 2px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.missed-list li span:first-child { color: var(--muted); }
.missed-list li span:last-child { font-weight: 600; text-align: right; }
.missed-list li.perfect { justify-content: center; color: var(--good); font-weight: 600; border-bottom: 0; padding-top: 12px; }
.res-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.res-actions .btn { flex: 1 1 auto; }

/* ───────────────────────── Small screens ───────────────────────── */
@media (max-width: 760px) {
  .topbar { top: 8px; left: 8px; right: 8px; gap: 6px; flex-wrap: wrap; }
  .brand { height: 40px; padding: 0 10px 0 8px; }
  .brand-name { font-size: 18px; }
  .mode-tag { display: none; }
  .actions .icon-btn, .actions .btn.small { height: 40px; }
  .actions .icon-btn { width: 40px; }
  .hud { order: 3; width: 100%; height: 40px; margin: 0; justify-content: space-between; }
  .hud:not([hidden]) + .actions { margin-left: auto; }
  .bar { width: 60px; }
  .stat { padding: 0 7px; font-size: 14px; }
  .stat.time { min-width: 0; }
  .map-controls { top: 108px; transform: none; right: 8px; }
  .map-controls .icon-btn { width: 36px; height: 36px; }
  .panel { padding: 14px 14px 12px; bottom: 8px; }
  .guess-row { flex-wrap: wrap; }
  #guess { flex: 1 1 100%; }
  .guess-row .btn { flex: 1; }
  .modes { grid-template-columns: repeat(2, 1fr); }
  .mode-card.featured { flex-direction: column; }
  .mode-card.featured canvas { width: 100%; height: 120px; }
  .sheet { padding: 20px; }
  .overlay { padding-top: 64px; }
  .results-overlay { place-items: end center; }
  .score-big { font-size: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ───────────────────────── Skipped popover ───────────────────────── */
.skipped-pop {
  position: fixed;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  width: min(340px, calc(100vw - 16px));
  max-height: min(60vh, 460px);
  display: flex;
  flex-direction: column;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  animation: rise-sheet .25s var(--ease);
}
.sp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sp-head strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.icon-btn.small { width: 30px; height: 30px; border-radius: 8px; }
.icon-btn.small svg { width: 16px; height: 16px; }
.sp-hint, .sp-empty { margin: 6px 0 10px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.sp-list { list-style: none; margin: 0 0 10px; padding: 0; overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 4px; }
.sp-list button {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--skip-soft);
  text-align: left;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}
.sp-list button:hover { border-color: var(--skip); }
.sp-list button.current { border-color: var(--accent); background: var(--accent-soft); }
.sp-list .sp-meta { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
#revealAllBtn { align-self: flex-start; height: 34px; }

/* ───────────────────────── Switches ───────────────────────── */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.switch .track {
  position: relative;
  flex: none;
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background .2s;
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface-solid);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .2s var(--ease);
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch.compact { gap: 7px; }
.switch.compact .track { width: 32px; height: 19px; }
.switch.compact .track::after { width: 13px; height: 13px; }
.switch.compact input:checked + .track::after { transform: translateX(13px); }
.switch-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.switch.setting {
  display: flex;
  width: 100%;
  margin: 0 0 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
}
.switch-text { display: flex; flex-direction: column; gap: 2px; }
.switch-text b { font-size: 15px; }
.switch-text small { font-size: 13px; color: var(--muted); }

.panel-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.panel-switches { display: flex; gap: 14px; }
.res-learned { margin: 10px 0 0; font-size: 14px; color: var(--good); font-weight: 600; }
.missed-list .later { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--good); margin-left: 6px; }
.country-name.hidden-name { color: var(--muted); font-style: italic; font-weight: 500; }

@media (max-width: 760px) {
  .skipped-pop { top: 108px; }
}
