/* Палитра и шрифты — из дизайн-кода музейных комплексов (BMK 38-42, МТК 39). */
@font-face { font-family: "Nolde"; src: url("fonts/nolde.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "21 Cent"; src: url("fonts/21Cent.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "21 Cent"; src: url("fonts/21Cent-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "20 Kopeek"; src: url("fonts/20-kopeek-book.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "20 Kopeek"; src: url("fonts/20-kopeek-demibold.otf") format("opentype"); font-weight: 600; font-display: swap; }

:root {
  --black: #000000;
  --paper: #F7F9EF;
  --brass: #D2B773;
  --brass-rgb: 210, 183, 115;
  --red: #A02128;
  --red-rgb: 160, 33, 40;
  --graphite: #435059;
  --window: #9DA3A8;
  --ink: #1b2024;           /* текст на латуни */
  --panel-bg: rgba(18, 24, 28, 0.88);
  --line: rgba(247, 249, 239, 0.16);
  --muted: rgba(247, 249, 239, 0.62);
  --font-h: "Nolde", "21 Cent", Georgia, serif;
  --font-t: "21 Cent", Georgia, "Times New Roman", serif;
  --font-m: "20 Kopeek", "Helvetica Neue", Arial, sans-serif;
  --top: 56px;
  --gap: 16px;
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: radial-gradient(ellipse at 40% 45%, #1c2329 0%, #0a0d10 70%, #000 100%);
  color: var(--paper);
  font-family: var(--font-t);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
img { -webkit-user-drag: none; }

#globe { position: fixed; inset: 0; touch-action: none; cursor: grab; }
#globe:active { cursor: grabbing; }

/* ——— верхняя полоса ——— */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--top);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gap); padding-top: env(safe-area-inset-top);
  z-index: 5; pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand {
  background: none; border: 0; padding: 6px 0;
  font-family: var(--font-m); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  font-size: 14px; color: var(--brass);
}
.topbar-right { display: flex; align-items: center; gap: 10px; }
.total-stars { font-family: var(--font-m); font-weight: 600; font-size: 16px; color: var(--brass); letter-spacing: 0.05em; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(247, 249, 239, 0.08); border: 1px solid var(--line);
  font-size: 20px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:active { background: rgba(var(--brass-rgb), 0.3); }

.globe-ctrl { position: fixed; left: var(--gap); bottom: calc(var(--gap) + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; z-index: 4; }
.globe-ctrl .icon-btn { font-size: 24px; }
.paint-btn {
  min-height: 44px; padding: 0 16px; border-radius: 999px; white-space: nowrap;
  background: rgba(18, 24, 28, 0.85); border: 1px solid rgba(var(--brass-rgb), 0.5);
  font-size: 16px; font-weight: 700; color: var(--paper);
}
.paint-btn span { color: var(--brass); }
.paint-btn[hidden] { display: none; }

/* ——— панель: справа на широком экране, снизу на узком ——— */
.panel {
  position: fixed; z-index: 6;
  top: calc(var(--top) + 4px); right: var(--gap); bottom: var(--gap);
  width: clamp(360px, 38vw, 520px);
  background: var(--panel-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(var(--brass-rgb), 0.22);
  border-radius: var(--radius);
  padding: 20px;
  overflow-y: auto; overscroll-behavior: contain;
}
.panel-body { display: flex; flex-direction: column; gap: 14px; }
.sheet-handle { display: none; }
.panel.fit { bottom: auto; max-height: calc(100% - var(--top) - 4px - var(--gap)); }

/* ——— типографика ——— */
.h1 { font-family: var(--font-h); font-weight: 400; font-size: 40px; line-height: 1; margin: 0; color: var(--paper); }
.h2 { font-family: var(--font-h); font-weight: 400; font-size: 28px; line-height: 1.05; margin: 0; }
.lead { margin: 6px 0 0; font-size: 17px; line-height: 1.35; color: var(--muted); }
.meta { font-family: var(--font-m); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.meta b { color: var(--brass); font-weight: 600; }

/* ——— кнопки ——— */
.btn {
  min-height: 52px; padding: 10px 18px;
  border-radius: 12px; border: 1px solid var(--line);
  background: rgba(247, 249, 239, 0.07);
  font-family: var(--font-t); font-size: 18px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.15s, transform 0.08s;
}
.btn:hover { background: rgba(247, 249, 239, 0.13); }
.btn:active { transform: scale(0.98); }
.btn-brass { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.btn-brass:hover { background: #ddc68a; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.btn-wide { width: 100%; }
.row { display: flex; gap: 10px; }
.row > .btn { flex: 1; }
.back { align-self: flex-start; background: none; border: 0; padding: 4px 0; font-family: var(--font-m); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); }

/* ——— уровни ——— */
.levels { display: flex; flex-direction: column; gap: 10px; }
.level {
  display: grid; grid-template-columns: 44px 1fr; gap: 6px 12px; align-items: start;
  padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(247, 249, 239, 0.04);
}
.level-num {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-m); font-weight: 600; font-size: 18px;
  border: 1.5px solid rgba(var(--brass-rgb), 0.7); color: var(--brass);
}
.level.done .level-num { background: var(--brass); color: var(--ink); }
.level-title { font-size: 20px; font-weight: 700; line-height: 1.15; }
.level-desc { font-size: 15px; line-height: 1.3; color: var(--muted); margin-top: 2px; }
.level-stars { font-size: 18px; letter-spacing: 2px; color: rgba(247, 249, 239, 0.2); margin-top: 4px; }
.level-stars .on { color: var(--brass); }
.level-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.level-actions .btn { flex: 1; min-height: 46px; font-size: 16px; }
.level.locked { opacity: 0.45; }
.level.locked .level-actions .btn { pointer-events: none; }
.lock-note { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.section-label { margin-top: 6px; }
.reset-link { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; align-self: center; padding: 8px; }

/* ——— карточка страны ——— */
.card { display: flex; gap: 16px; align-items: flex-start; }
.card .flag { width: 132px; flex: none; }
.card-name { font-size: 26px; font-weight: 700; line-height: 1.1; margin-bottom: 8px; }
.card-row { display: flex; flex-direction: column; margin-top: 6px; }
.card-row .k { font-family: var(--font-m); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.card-row .v { font-size: 19px; line-height: 1.2; }
.card-row .v.cap { color: var(--brass); font-weight: 700; }
.card.big { flex-direction: column; align-items: stretch; }
.card.big .flag { width: 100%; max-width: 300px; align-self: center; }
.card.big .card-name { font-size: 32px; text-align: center; margin-top: 4px; }
.card.big .card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.flag {
  display: block; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 6px; box-shadow: 0 0 0 1px rgba(247, 249, 239, 0.18), 0 6px 18px rgba(0, 0, 0, 0.45);
  background: #2a3238;
}
.empty { font-size: 18px; color: var(--muted); line-height: 1.4; text-align: center; padding: 18px 6px; border: 1px dashed var(--line); border-radius: 14px; }

.search {
  width: 100%; min-height: 50px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3); color: var(--paper); padding: 0 14px; font: 18px var(--font-t);
  user-select: text; -webkit-user-select: text;
}
.search:focus { outline: 2px solid rgba(var(--brass-rgb), 0.7); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(247, 249, 239, 0.06); font-size: 15px; }
.chip:active, .chip.on { background: var(--brass); color: var(--ink); border-color: var(--brass); }

/* ——— вкладки и «свой тест» ——— */
.tabs { display: flex; border-bottom: 1px solid var(--line); gap: 4px; }
.tab { flex: 1; background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 6px; font-size: 17px; font-weight: 700; color: var(--muted); }
.tab.on { color: var(--paper); border-bottom-color: var(--brass); }
.custom { display: flex; flex-direction: column; gap: 10px; }
.custom .meta { margin-top: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.seg button { flex: 1 1 auto; min-height: 46px; padding: 6px 10px; background: rgba(247, 249, 239, 0.05); border: 0; border-right: 1px solid var(--line); font-size: 15px; font-weight: 700; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--brass); color: var(--ink); }
.chip .cnt { font-family: var(--font-m); font-size: 12px; opacity: 0.6; margin-left: 2px; }
.note { font-size: 14px; color: var(--muted); }
.custom-count { font-size: 17px; text-align: center; padding: 6px; }
.custom-count b { color: var(--brass); font-family: var(--font-m); }

/* ——— игроки и успехи ——— */
.player-btn { min-height: 40px; padding: 0 14px; border-radius: 999px; background: rgba(247, 249, 239, 0.08); border: 1px solid var(--line); font-size: 15px; font-weight: 700; }
.player-btn span { color: var(--brass); }
.player-btn[hidden] { display: none; }
.players { display: flex; flex-direction: column; gap: 8px; }
.btn.player { justify-content: space-between; }
.btn.player.on { border-color: var(--brass); }
.stats-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(247, 249, 239, 0.04); display: flex; flex-direction: column; gap: 6px; }
.kpi-v { font-family: var(--font-m); font-weight: 600; font-size: 30px; line-height: 1; color: var(--paper); }
.kpi-v small { font-size: 15px; color: var(--muted); }
.kpi-l { font-size: 14px; color: var(--muted); line-height: 1.25; }
.kpi-d { font-size: 13px; color: var(--muted); }
.kpi-d.up { color: var(--brass); }
.kpi-d.down { color: #e07a7f; }
.kpi-skills { display: flex; flex-direction: column; gap: 12px; }
.kpi-skill-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 17px; margin-bottom: 6px; }
.kpi-skill-top span { color: var(--muted); font-size: 15px; }
.kpi-skill-top .num { color: var(--brass); font-family: var(--font-m); font-size: 18px; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.ch-grid { stroke: rgba(247, 249, 239, 0.1); stroke-width: 1; }
.ch-target { stroke: rgba(247, 249, 239, 0.45); stroke-width: 1; stroke-dasharray: 4 4; }
.ch-ax { fill: var(--muted); font: 11px var(--font-m); }
.ch-line { fill: none; stroke: var(--brass); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-dot { fill: var(--brass); stroke: #12181c; stroke-width: 2; }
.ch-dot.hot { r: 6; fill: var(--paper); }
.ch-tip { position: absolute; transform: translate(-50%, calc(-100% - 12px)); pointer-events: none; background: #0d1215; border: 1px solid rgba(var(--brass-rgb), 0.5); border-radius: 8px; padding: 6px 10px; font-size: 14px; line-height: 1.3; white-space: nowrap; }
.hist { width: 100%; border-collapse: collapse; font-size: 15px; }
.hist th { text-align: left; font: 600 12px var(--font-m); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 6px 4px; border-bottom: 1px solid var(--line); }
.hist td { padding: 7px 4px; border-bottom: 1px solid rgba(247, 249, 239, 0.06); }
.hist td b { color: var(--brass); font-family: var(--font-m); }

/* ——— прогресс ——— */
.progress { height: 6px; border-radius: 3px; background: rgba(247, 249, 239, 0.12); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brass); border-radius: 3px; transition: width 0.3s; }
.dots { display: flex; gap: 5px; flex-wrap: wrap; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(247, 249, 239, 0.3); }
.dots i.cur { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(var(--brass-rgb), 0.25); }
.dots i.ok { background: var(--brass); border-color: var(--brass); }
.dots i.half { background: linear-gradient(90deg, var(--brass) 50%, transparent 50%); border-color: var(--brass); }
.dots i.bad { background: var(--red); border-color: var(--red); }

/* ——— вопрос ——— */
.q-prompt { font-size: 23px; line-height: 1.3; color: var(--paper); }
.q-prompt.small { font-size: 19px; color: var(--muted); }
.q-prompt b { color: var(--brass); }
.q-subject { font-size: 38px; font-weight: 700; line-height: 1.1; display: flex; align-items: center; gap: 14px; color: var(--brass); }
.q-subject .flag { width: 80px; }
.q-flag { width: 100%; max-width: 280px; align-self: center; }
.q-hint-line { font-size: 21px; color: var(--paper); }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  min-height: 62px; padding: 10px 14px; text-align: left;
  border-radius: 12px; border: 1.5px solid var(--line); background: rgba(247, 249, 239, 0.06);
  font-size: 23px; font-weight: 700; display: flex; align-items: center; gap: 12px;
}
.opt:hover { background: rgba(247, 249, 239, 0.12); }
.opt .n { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font: 600 14px var(--font-m); color: var(--muted); }
.opt.ok { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.opt.ok .n { color: var(--ink); border-color: rgba(0, 0, 0, 0.3); }
.opt.bad { background: rgba(var(--red-rgb), 0.35); border-color: var(--red); }
.opts.locked .opt { pointer-events: none; }
.opts.flags { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opts.flags .opt { padding: 8px; min-height: 0; justify-content: center; }
.opts.flags .opt .flag { width: 100%; }
.opts.flags .opt.ok { box-shadow: 0 0 0 3px var(--brass); }
.opts.flags .opt.bad { box-shadow: 0 0 0 3px var(--red); }
.tap-hint {
  display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 12px;
  border: 1.5px dashed rgba(var(--brass-rgb), 0.6); color: var(--brass); font-size: 20px; font-weight: 700;
}
.tap-hint .pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--brass); animation: pulse 1.2s infinite; flex: none; }
@keyframes pulse { 0%, 100% { transform: scale(0.8); opacity: 0.6; } 50% { transform: scale(1.25); opacity: 1; } }

.feedback { padding: 14px; border-radius: 12px; font-size: 20px; line-height: 1.35; }
.feedback.good { background: rgba(var(--brass-rgb), 0.16); border: 1px solid rgba(var(--brass-rgb), 0.5); }
.feedback.bad { background: rgba(var(--red-rgb), 0.18); border: 1px solid rgba(var(--red-rgb), 0.6); }
.feedback.try { background: rgba(247, 249, 239, 0.06); border: 1px solid var(--line); }
.feedback .big { display: block; font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.feedback .good-t { color: var(--brass); }
.feedback .mini { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.feedback .mini .flag { width: 48px; }

/* ——— итог ——— */
.result-stars { font-size: 64px; letter-spacing: 8px; text-align: center; color: rgba(247, 249, 239, 0.15); line-height: 1; }
.result-stars span { display: inline-block; }
.result-stars .on { color: var(--brass); animation: pop 0.5s both; }
.result-stars .on:nth-child(2) { animation-delay: 0.25s; }
.result-stars .on:nth-child(3) { animation-delay: 0.5s; }
@keyframes pop { 0% { transform: scale(0.2); opacity: 0; } 70% { transform: scale(1.3); opacity: 1; } 100% { transform: scale(1); } }
.result-score { text-align: center; font-size: 22px; }
.result-score b { font-family: var(--font-m); font-size: 30px; color: var(--brass); }
.mistakes { display: flex; flex-direction: column; gap: 8px; }
.mistake { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; background: rgba(247, 249, 239, 0.05); font-size: 17px; }
.mistake .flag { width: 44px; flex: none; }
.mistake small { color: var(--muted); display: block; font-size: 14px; }

/* ═══ Телефон / вертикальный экран: панель — шторка снизу ═══ */
@media (max-aspect-ratio: 19/20) {
  :root { --top: calc(52px + env(safe-area-inset-top)); }
  .topbar { height: var(--top); padding-left: 12px; padding-right: 12px; }
  .brand { font-size: 13px; letter-spacing: 0.1em; }
  .player-btn { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 38px; padding: 0 12px; }
  .icon-btn { width: 40px; height: 40px; font-size: 18px; }

  .panel, .panel.fit {
    top: auto; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom));
    width: auto; padding: 0 14px 14px; border-radius: 20px;
    max-height: 56vh; max-height: 56dvh;
    transition: max-height 0.28s ease;
    touch-action: pan-y;
  }
  .panel.sheet-min { max-height: 34px; overflow: hidden; }
  .panel.sheet-peek { max-height: 47vh; max-height: 47dvh; }
  .panel.sheet-half { max-height: 58vh; max-height: 58dvh; }
  .panel.sheet-full { max-height: calc(100vh - var(--top) - 16px); max-height: calc(100dvh - var(--top) - 16px); }
  .sheet-handle {
    display: flex; align-items: center; justify-content: center;
    position: sticky; top: 0; z-index: 2; width: calc(100% + 28px); margin: 0 -14px 4px; height: 30px;
    background: linear-gradient(var(--panel-bg) 70%, transparent); border: 0; padding: 0; touch-action: none; cursor: grab;
  }
  .sheet-handle i { width: 48px; height: 5px; border-radius: 3px; background: rgba(247, 249, 239, 0.35); }
  .panel.sheet-min .sheet-handle i { background: var(--brass); }
  .panel.sheet-min .panel-body { visibility: hidden; }

  .globe-ctrl { bottom: auto; top: calc(var(--top) + 6px); left: 10px; }
  .globe-ctrl [data-zoom] { display: none; }       /* масштаб — двумя пальцами */
  .paint-btn { min-height: 38px; padding: 0 12px; font-size: 14px; }

  .panel-body { gap: 12px; }
  .h1 { font-size: 32px; }
  .h2 { font-size: 24px; }
  .lead { font-size: 16px; }
  .btn { min-height: 50px; font-size: 17px; padding: 8px 12px; }
  .row { gap: 8px; }
  .tab { font-size: 15px; padding: 10px 4px; }
  .level { padding: 12px; }
  .level-title { font-size: 18px; }
  .level-desc { font-size: 14px; }
  .seg button { font-size: 14px; padding: 6px 6px; min-height: 44px; }

  /* вопросы */
  .back { font-size: 13px; padding: 0; }
  .dots i { width: 11px; height: 11px; }
  .q-prompt { font-size: 19px; }
  .q-prompt.small { font-size: 16px; }
  .q-subject { font-size: 30px; gap: 10px; }
  .q-subject .flag { width: 60px; }
  .q-flag { max-width: none; width: auto; height: 150px; max-height: 22vh; align-self: center; }
  .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .opt { font-size: 18px; min-height: 58px; padding: 8px 10px; line-height: 1.15; }
  .opt .n { display: none; }
  .opts.flags { grid-template-columns: 1fr 1fr; gap: 8px; }
  .opts.flags:has(.opt:nth-child(5)) { grid-template-columns: 1fr 1fr 1fr; }
  .opts.flags .opt .flag { max-height: 18vh; }
  .panel.globe-q .tap-hint { display: none; }    /* на телефоне и так понятно: жми на глобус */
  .panel.globe-q .q-prompt.small { display: none; }
  .panel.globe-q .panel-body { gap: 9px; }
  .feedback { font-size: 17px; padding: 12px; }
  .feedback .big { font-size: 23px; }
  .q-hint-line { font-size: 18px; }

  /* карточки */
  .card .flag { width: 104px; }
  .card-name { font-size: 22px; }
  .card.big .flag { max-width: 210px; }
  .card.big .card-name { font-size: 26px; }
  .card-row .v { font-size: 17px; }

  /* успехи */
  .kpi-v { font-size: 26px; }
  .kpi { padding: 10px; }
}

/* ═══ Телефон, повёрнутый горизонтально: панель справа, всё компактнее ═══ */
@media (max-height: 520px) and (min-aspect-ratio: 19/20) {
  :root { --top: 44px; --gap: 8px; }
  .brand { font-size: 12px; }
  .icon-btn { width: 36px; height: 36px; font-size: 16px; }
  .player-btn { min-height: 34px; font-size: 14px; }
  .panel, .panel.fit { width: clamp(280px, 42vw, 400px); padding: 12px; top: calc(var(--top) + 2px); right: max(8px, env(safe-area-inset-right)); }
  .panel-body { gap: 10px; }
  .h1 { font-size: 26px; }
  .h2 { font-size: 21px; }
  .lead { font-size: 15px; }
  .btn { min-height: 44px; font-size: 15px; }
  .q-prompt { font-size: 17px; }
  .q-subject { font-size: 24px; }
  .q-subject .flag { width: 48px; }
  .q-flag { height: 110px; width: auto; max-width: none; }
  .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .opt { font-size: 16px; min-height: 46px; padding: 6px 8px; }
  .opt .n { display: none; }
  .opts.flags:has(.opt:nth-child(5)) { grid-template-columns: 1fr 1fr 1fr; }
  .opts.flags .opt .flag { max-height: 70px; }
  .tap-hint { display: none; }
  .feedback { font-size: 15px; padding: 10px; }
  .feedback .big { font-size: 19px; }
  .globe-ctrl [data-zoom] { display: none; }
  .globe-ctrl { left: max(8px, env(safe-area-inset-left)); }
  .card .flag { width: 90px; }
  .card.big .flag { max-width: 150px; }
  .result-stars { font-size: 44px; }
}


@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
