/* ============================================================
   СЛЕПАЯ КАРТА — Arcade UI
   Чанковые 3D-кнопки, насыщенная палитра, игровая типографика
   ============================================================ */
:root {
  --bg-deep: #120a2b;
  --bg-panel: #24144f;
  --bg-panel-2: #2d1b63;
  --bg-edge: #160c36;
  --line: #4a3790;
  --line-soft: rgba(196, 181, 253, 0.16);

  --text-main: #ffffff;
  --text-secondary: #c4b5fd;
  --text-muted: #8b7bc4;

  --pink: #ff4d8d;
  --pink-d: #b8164f;
  --yellow: #ffd23f;
  --yellow-d: #c98a00;
  --orange: #ff9b2f;
  --mint: #2ee6a6;
  --mint-d: #0f9d6b;
  --sky: #38bdf8;
  --sky-d: #0a77b0;
  --violet: #8b5cf6;
  --violet-d: #5b21b6;
  --red: #ff5d5d;
  --red-d: #b42323;

  --accent-gold: #ffd23f;
  --accent-cyan: #38e8ff;

  --font-display: 'Rubik', 'Nunito', sans-serif;
  --font-body: 'Nunito', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-pop: 0 18px 40px rgba(8, 3, 28, 0.55);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; }
button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.hidden { display: none !important; }

.game-map-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  background: #1b1340;
}

/* ================= ЛОББИ ================= */
.lobby-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow-y: auto;
  padding: 22px 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(900px 500px at 8% 0%, rgba(255, 77, 141, 0.28), transparent 60%),
    radial-gradient(800px 520px at 95% 10%, rgba(56, 189, 248, 0.22), transparent 60%),
    radial-gradient(700px 500px at 60% 110%, rgba(139, 92, 246, 0.35), transparent 60%),
    linear-gradient(180deg, #1a0f3d 0%, #0f0824 100%);
}

.lobby-overlay::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.lobby-container {
  position: relative;
  width: 100%;
  max-width: 1160px;
  margin: auto;
}

.lobby-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.brand-wrap { display: flex; align-items: center; gap: 16px; }

.brand-logo {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, var(--pink), var(--orange));
  border-bottom: 5px solid var(--pink-d);
  box-shadow: 0 10px 24px rgba(255, 77, 141, 0.45);
  transform: rotate(-6deg);
  flex-shrink: 0;
}
.brand-logo svg { width: 30px; height: 30px; stroke-width: 2.4; }

.brand-text { display: flex; flex-direction: column; }

.brand-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--yellow), var(--pink) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.3));
}

.brand-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 6px;
}

.city-stats-badge {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--bg-panel);
  border: 2px solid var(--line);
  border-bottom-width: 4px;
  color: var(--yellow);
  white-space: nowrap;
}

.lobby-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.lobby-card {
  background: linear-gradient(180deg, rgba(45, 27, 99, 0.92), rgba(36, 20, 79, 0.92));
  border: 2px solid var(--line);
  border-bottom-width: 6px;
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-pop);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.control-group { display: flex; flex-direction: column; gap: 8px; transition: opacity 0.2s; }
.control-group.dimmed-section { opacity: 0.35; pointer-events: none; filter: grayscale(0.6); }

.control-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.control-label::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--yellow);
  transform: rotate(45deg);
}

.slider-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.city-top-actions { display: flex; gap: 6px; }

.mini-outline-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-panel);
  border: 2px solid var(--line);
  border-bottom-width: 3px;
  color: var(--text-main);
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s;
}
.mini-outline-btn:hover { transform: translateY(-1px); border-color: var(--sky); color: var(--sky); }
.mini-outline-btn.danger { color: #ffb4b4; border-color: rgba(255, 93, 93, 0.5); }
.mini-outline-btn.danger:hover { border-color: var(--red); color: #fff; background: rgba(255, 93, 93, 0.25); }

.add-city-panel {
  background: rgba(15, 8, 36, 0.7);
  border: 2px dashed var(--sky);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.add-city-header { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 800; color: var(--sky); }
.close-inline-btn { background: transparent; border: none; color: var(--text-secondary); font-size: 15px; cursor: pointer; padding: 2px 8px; border-radius: 6px; }
.close-inline-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.add-city-search-row { display: flex; gap: 8px; }
.compact-input { padding: 9px 12px !important; font-size: 14px !important; border-radius: 12px !important; }

.mini-primary-btn {
  padding: 0 16px;
  border-radius: 12px;
  border: none;
  border-bottom: 4px solid var(--sky-d);
  background: var(--sky);
  color: #052435;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.mini-primary-btn:active { transform: translateY(2px); border-bottom-width: 2px; }

.nominatim-results-list { display: flex; flex-direction: column; gap: 5px; max-height: 140px; overflow-y: auto; }
.nominatim-item {
  background: var(--bg-panel-2);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 7px 11px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  transition: all 0.12s;
}
.nominatim-item:hover, .nominatim-item.selected { border-color: var(--yellow); background: rgba(255, 210, 63, 0.12); }
.nominatim-item-title { font-size: 13px; font-weight: 800; }
.nominatim-item-sub { font-size: 11.5px; color: var(--text-secondary); }
.new-city-confirm-box { background: rgba(255, 255, 255, 0.04); border: 2px solid var(--line-soft); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.text-muted-sm { font-size: 12px; color: var(--text-secondary); margin-left: 4px; }
.compact-cta { padding: 10px 14px !important; font-size: 14px !important; border-radius: 12px !important; }
.add-city-status { font-size: 12px; font-weight: 700; padding: 7px 10px; border-radius: 10px; background: rgba(56, 189, 248, 0.14); color: #bae6fd; }

.select-input {
  width: 100%;
  background: var(--bg-panel);
  color: #fff;
  border: 2px solid var(--line);
  border-bottom-width: 4px;
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s;
}
.select-input:hover, .select-input:focus { border-color: var(--yellow); }
.select-input option { background: #1c0f45; color: #fff; }

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: rgba(15, 8, 36, 0.55);
  padding: 5px;
  border-radius: var(--radius-md);
  border: 2px solid var(--line-soft);
}
.seg-btn {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  border-bottom: 4px solid transparent;
  padding: 9px 8px;
  border-radius: 11px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s;
}
.seg-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.seg-btn.active {
  background: var(--yellow);
  color: #2b1055;
  border-bottom-color: var(--yellow-d);
  transform: translateY(-1px);
}

.mono-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--yellow);
  background: rgba(255, 210, 63, 0.14);
  padding: 3px 9px;
  border-radius: 8px;
}
.range-slider { width: 100%; accent-color: var(--pink); cursor: pointer; height: 22px; }
.custom-zone-status { font-size: 12px; font-weight: 700; color: var(--text-secondary); background: rgba(255, 255, 255, 0.05); padding: 7px 11px; border-radius: 10px; }

.mini-map-wrapper {
  position: relative;
  flex: 1;
  min-height: 250px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--line);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.05);
}
.lobby-mini-map { width: 100%; height: 100%; min-height: 250px; }
.mini-map-hint {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 5;
  background: rgba(18, 10, 43, 0.88);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  pointer-events: none;
}

/* ===== Цветные игровые карточки ===== */
.option-cards-grid { display: grid; gap: 10px; }
.option-cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.option-cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.option-card {
  --c1: var(--violet);
  --c2: #6d28d9;
  --cd: var(--violet-d);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  color: #fff;
  cursor: pointer;
  background: var(--bg-panel);
  border: 2px solid var(--line);
  border-bottom: 5px solid var(--bg-edge);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.option-card:hover { transform: translateY(-2px); border-color: var(--c1); }
.option-card:active { transform: translateY(2px); border-bottom-width: 3px; }

.option-card.active {
  background: linear-gradient(150deg, var(--c1), var(--c2));
  border-color: var(--cd);
  border-bottom-color: var(--cd);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.12) inset;
}
.option-card.active::after {
  content: '';
  position: absolute;
  top: 9px;
  right: 9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b1055' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12 10 17 19 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

[data-round-type='conquest'] { --c1: #10b981; --c2: #047857; --cd: #064e3b; }
[data-round-type='mixed'] { --c1: #7c3aed; --c2: #5b21b6; --cd: #3b0764; }
[data-round-type='street'] { --c1: #0284c7; --c2: #0369a1; --cd: #0c4a6e; }
[data-round-type='intersection'] { --c1: #db2777; --c2: #be185d; --cd: #831843; }
[data-round-type='landmark'] { --c1: #d97706; --c2: #b45309; --cd: #78350f; }

.option-card.span-2 {
  grid-column: span 2;
}

.new-mode-pill {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--yellow);
  color: #3b1d00;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
[data-difficulty='basic'] { --c1: #059669; --c2: #047857; --cd: #064e3b; }
[data-difficulty='advanced'] { --c1: #2563eb; --c2: #1d4ed8; --cd: #1e3a8a; }
[data-difficulty='hardcore'] { --c1: #dc2626; --c2: #b91c1c; --cd: #7f1d1d; }
[data-answer-mode='quiz'] { --c1: #d97706; --c2: #b45309; --cd: #78350f; }
[data-answer-mode='input'] { --c1: #0284c7; --c2: #0369a1; --cd: #0c4a6e; }

.opt-header { display: flex; align-items: center; gap: 9px; padding-right: 22px; }
.opt-svg {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  transition: all 0.12s;
}
.option-card.active .opt-svg { color: #fff; background: rgba(0, 0, 0, 0.22); }

.opt-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.opt-desc {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: #cbd5e1;
}
.option-card.active .opt-desc {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.option-card.compact { padding: 10px 12px; gap: 3px; }
.opt-dot { width: 14px; height: 14px; border-radius: 50%; display: block; border: 3px solid rgba(255, 255, 255, 0.85); }
.dot-green { background: #10b981; }
.dot-blue { background: #3b82f6; }
.dot-red { background: #ef4444; }

.lobby-actions { margin-top: auto; padding-top: 4px; }

/* ===== Главная кнопка ===== */
.primary-cta-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 22px;
  border-radius: var(--radius-lg);
  border: none;
  border-bottom: 6px solid #b45309;
  background: linear-gradient(180deg, #ffe066, #ffb020);
  color: #3b1d00;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(255, 176, 32, 0.4);
  transition: transform 0.12s, box-shadow 0.12s;
  animation: ctaPulse 2.4s ease-in-out infinite;
}
.primary-cta-btn:hover { transform: translateY(-2px); }
.primary-cta-btn:active { transform: translateY(3px); border-bottom-width: 3px; animation: none; }
.primary-cta-btn:disabled { opacity: 0.6; cursor: wait; animation: none; }
.compact-cta { font-size: 14px; animation: none; }

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 14px 30px rgba(255, 176, 32, 0.38); }
  50% { box-shadow: 0 14px 44px rgba(255, 176, 32, 0.7); }
}

.secondary-cta-btn {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--line);
  border-bottom-width: 5px;
  background: var(--bg-panel-2);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s;
}
.secondary-cta-btn:hover { transform: translateY(-2px); border-color: var(--sky); }
.secondary-cta-btn:active { transform: translateY(2px); border-bottom-width: 3px; }

/* ================= HUD ================= */
.game-hud-top {
  position: fixed;
  top: 14px;
  left: 16px;
  right: 16px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
}
.hud-left, .hud-right { display: flex; align-items: center; gap: 10px; pointer-events: auto; flex-wrap: wrap; }

.hud-stats-bar {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px 12px;
  background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel));
  border: 2px solid var(--line);
  border-bottom: 5px solid var(--bg-edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
}
.hud-stat-item { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.1; }
.hud-divider { width: 2px; height: 26px; border-radius: 2px; background: var(--line-soft); }
.hud-pill-label { font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.hud-pill-value { font-family: var(--font-display); font-size: 22px; font-weight: 900; color: #fff; }
.accent-gold { color: var(--yellow); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3); }
.accent-cyan { color: var(--mint); }

.hud-progress {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 5px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.hud-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--mint), var(--yellow), var(--pink));
  transition: width 0.4s ease;
}

.map-blind-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--bg-panel);
  border: 2px solid var(--violet);
  border-bottom-width: 4px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #ddd0ff;
  box-shadow: var(--shadow-pop);
  transition: all 0.25s;
}
.map-blind-indicator.revealed { border-color: var(--mint); color: var(--mint); }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: pulseGlow 1.6s infinite; }
@keyframes pulseGlow { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }

.hud-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: var(--bg-panel);
  border: 2px solid var(--line);
  border-bottom-width: 4px;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-pop);
  transition: transform 0.12s, border-color 0.12s;
}
.hud-icon-btn:hover { transform: translateY(-2px); border-color: var(--sky); }
.hud-icon-btn:active { transform: translateY(2px); border-bottom-width: 2px; }
.hud-icon-btn.active { background: var(--violet); border-color: var(--violet-d); color: #fff; }

.intersection-legend {
  position: fixed;
  top: 84px;
  left: 16px;
  z-index: 18;
  background: var(--bg-panel);
  border: 2px solid var(--line);
  border-bottom-width: 4px;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-pop);
}
.legend-row { display: flex; align-items: center; gap: 9px; }
.legend-line { width: 24px; height: 7px; border-radius: 4px; }
.legend-line.blue-line { background: #3b82f6; box-shadow: 0 0 10px #3b82f6; }
.legend-line.red-line { background: #ff4d6d; box-shadow: 0 0 10px #ff4d6d; }

/* ================= НИЖНЯЯ ПАНЕЛЬ ================= */
.game-hud-bottom {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 780px;
  z-index: 20;
}

.bottom-card {
  background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel));
  border: 2px solid var(--line);
  border-bottom: 7px solid var(--bg-edge);
  border-radius: var(--radius-xl);
  padding: 10px 18px 16px;
  box-shadow: var(--shadow-pop);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: cardIn 0.35s cubic-bezier(0.2, 1.2, 0.4, 1);
  transition: padding 0.2s ease, gap 0.2s ease;
}
@keyframes cardIn { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Ручка сворачивания/разворачивания нижней панели */
.sheet-grab-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px 0 4px;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}
.sheet-grab-pill {
  width: 44px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.15s, width 0.15s;
}
.sheet-grab-bar:hover .sheet-grab-pill {
  background: var(--yellow);
  width: 56px;
}

.sheet-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 99px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 8, 36, 0.65);
  color: #e9d5ff;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sheet-toggle-btn:hover {
  border-color: var(--yellow);
  color: #ffffff;
  background: rgba(255, 210, 63, 0.18);
}

/* Свернутое состояние нижней панели (для свободного обзора карты) */
.bottom-card.sheet-collapsed {
  padding: 6px 14px 10px;
  gap: 4px;
}
.bottom-card.sheet-collapsed .conquest-tactical-bar,
.bottom-card.sheet-collapsed .hints-toolbar,
.bottom-card.sheet-collapsed .quiz-options-grid,
.bottom-card.sheet-collapsed .free-input-wrap,
.bottom-card.sheet-collapsed .landmark-pin-wrap {
  display: none !important;
}
.bottom-card.sheet-collapsed .question-prompt-wrap {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}
.bottom-card.sheet-collapsed .question-badges {
  order: 2;
  flex-shrink: 0;
}
.bottom-card.sheet-collapsed .question-title {
  order: 1;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.bottom-card.sheet-collapsed .sheet-toggle-btn {
  background: var(--yellow);
  border-color: #ffffff;
  color: #2b1200;
  box-shadow: 0 2px 10px rgba(255, 210, 63, 0.45);
}

.question-top-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.question-prompt-wrap { display: flex; flex-direction: column; gap: 6px; }
.question-badges { display: flex; align-items: center; gap: 6px; }

.q-badge {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 11px;
  border-radius: 99px;
}
.badge-neon { background: var(--sky); color: #052435; }
.badge-neon.intersection-mode { background: var(--pink); color: #fff; }
.badge-neon.landmark-mode {
  background: var(--yellow);
  color: #2b1200;
  box-shadow: 0 2px 10px rgba(255, 210, 63, 0.35);
}
.badge-subtle { background: rgba(255, 255, 255, 0.12); color: #ffffff; }

.question-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.question-title .known-street-highlight {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.question-title .landmark-highlight {
  color: var(--yellow);
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

.hints-toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.hint-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(255, 210, 63, 0.1);
  border: 2px solid rgba(255, 210, 63, 0.5);
  border-bottom-width: 4px;
  border-radius: 12px;
  color: #ffe9a0;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s, background 0.12s;
}
.hint-btn:hover:not(:disabled) { transform: translateY(-2px); background: rgba(255, 210, 63, 0.22); }
.hint-btn:active:not(:disabled) { transform: translateY(2px); border-bottom-width: 2px; }
.hint-btn.used { background: rgba(255, 210, 63, 0.3); color: #fff; cursor: default; }
.hint-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.hint-cost { font-family: var(--font-mono); font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--yellow); color: #3b1d00; }

.quiz-options-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.quiz-option-btn {
  --k: var(--pink);
  --kd: var(--pink-d);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  text-align: left;
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  background: var(--bg-panel-2);
  border: 2px solid var(--line);
  border-bottom: 5px solid var(--bg-edge);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s, background 0.12s;
}
.quiz-option-btn:nth-child(2) { --k: var(--sky); --kd: var(--sky-d); }
.quiz-option-btn:nth-child(3) { --k: var(--yellow); --kd: var(--yellow-d); }
.quiz-option-btn:nth-child(4) { --k: var(--mint); --kd: var(--mint-d); }
.quiz-option-btn:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--k); background: #38227a; }
.quiz-option-btn:active:not(:disabled) { transform: translateY(2px); border-bottom-width: 3px; }

.quiz-key-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  border-bottom: 3px solid var(--kd);
  background: var(--k);
  color: #1c0f45;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
}

.quiz-option-btn.correct { background: linear-gradient(150deg, #34f0b4, #10b981); border-color: #065f46; color: #032e1f; animation: pop 0.4s; }
.quiz-option-btn.wrong { background: linear-gradient(150deg, #ff7a7a, #ef4444); border-color: #7f1d1d; animation: shake 0.4s; }
@keyframes pop { 50% { transform: scale(1.04); } }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.autocomplete-box { position: relative; display: flex; flex-direction: column; }
.input-row { display: flex; gap: 10px; }
.street-text-input {
  flex: 1;
  background: rgba(15, 8, 36, 0.7);
  border: 2px solid var(--line);
  border-bottom-width: 4px;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  transition: border-color 0.15s;
}
.street-text-input::placeholder { color: var(--text-muted); }
.street-text-input:focus { border-color: var(--yellow); outline: none; }

.submit-answer-btn {
  padding: 0 22px;
  border-radius: var(--radius-md);
  border: none;
  border-bottom: 5px solid #b45309;
  background: linear-gradient(180deg, #ffe066, #ffb020);
  color: #3b1d00;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s;
}
.submit-answer-btn:hover:not(:disabled) { transform: translateY(-2px); }
.submit-answer-btn:active:not(:disabled) { transform: translateY(2px); border-bottom-width: 3px; }
.submit-answer-btn:disabled { opacity: 0.4; cursor: not-allowed; filter: grayscale(0.5); }

.landmark-pin-wrap { display: flex; flex-direction: column; }
.landmark-pin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(12, 7, 30, 0.85);
  border: 2px solid rgba(255, 210, 63, 0.55);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}
.landmark-pin-status {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
}
.landmark-pin-status.selected {
  color: var(--mint);
}

.autocomplete-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #1c0f45;
  border: 2px solid var(--yellow);
  border-radius: var(--radius-md);
  max-height: 220px;
  overflow-y: auto;
  box-shadow: var(--shadow-pop);
  z-index: 30;
}
.autocomplete-item { padding: 10px 14px; font-size: 14.5px; font-weight: 700; cursor: pointer; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; }
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover, .autocomplete-item.active { background: rgba(255, 210, 63, 0.18); }

/* ===== Результат ===== */
.post-answer-panel { display: flex; flex-direction: column; }
.result-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #22d39a, #0f9d6b);
  border-bottom: 5px solid #065f46;
  animation: pop 0.4s;
}
.result-banner.wrong { background: linear-gradient(150deg, #ff6a6a, #d93636); border-bottom-color: #7f1d1d; }
.result-status-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.result-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: #0f9d6b;
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}
.result-banner.wrong .result-icon { color: #d93636; }
.result-text-block { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.result-verdict { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2); }
.result-correct-street { font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, 0.95); }
.result-map-note { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.8); margin-left: 4px; }

.next-round-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: none;
  border-bottom: 5px solid #b45309;
  background: linear-gradient(180deg, #ffe066, #ffb020);
  color: #3b1d00;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s;
}
.next-round-btn:hover { transform: translateY(-2px); }
.next-round-btn:active { transform: translateY(2px); border-bottom-width: 3px; }

/* ================= МАРКЕРЫ КАРТЫ ================= */
.intersection-pin-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: #3b1d00;
  animation: pulseIntersection 1.5s infinite ease-in-out;
}
@keyframes pulseIntersection {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 141, 0.7), 0 0 14px rgba(255, 210, 63, 0.9); }
  50% { box-shadow: 0 0 0 12px rgba(255, 77, 141, 0), 0 0 24px rgba(255, 210, 63, 1); }
}

.map-street-chip {
  padding: 6px 12px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}
.map-street-chip.known-blue { background: #1d4ed8; border: 2px solid #93c5fd; }
.map-street-chip.neighbor-gold { background: #b45309; border: 2px solid #fde68a; color: #ffffff; }
.map-street-chip.revealed-target { background: #047857; border: 2px solid #6ee7b7; font-size: 14px; padding: 6px 14px; }

.map-poi-marker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  background: #120a2b;
  border: 2px solid var(--yellow);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}
.map-poi-marker .poi-icon { font-size: 14px; }

.landmark-guess-pin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 99px;
  background: #120a2b;
  border: 2.5px solid var(--pink);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}
.landmark-true-pin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 99px;
  background: #064e3b;
  border: 2.5px solid var(--yellow);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

/* ================= РЕЖИМ «ЗАХВАТ ГОРОДА» (CONQUEST MODE) ================= */
.hud-hearts {
  font-size: 18px;
  letter-spacing: 2px;
}

.conquest-live-toast {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  padding: 10px 20px;
  border-radius: 99px;
  background: linear-gradient(150deg, #10b981, #047857);
  border: 2px solid #a7f3d0;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  animation: cardIn 0.25s ease;
}
.conquest-live-toast.fail {
  background: linear-gradient(150deg, #ef4444, #b91c1c);
  border-color: #fecaca;
}

.conquest-tactical-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line-soft);
}

.conquest-targets-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.conquest-bar-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.conquest-targets-tabs {
  display: flex;
  gap: 6px;
}

.conquest-target-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(15, 8, 36, 0.65);
  border: 2px solid rgba(255, 210, 63, 0.55);
  border-bottom-width: 4px;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s, background 0.12s, border-color 0.12s;
}
.conquest-target-tab:hover {
  transform: translateY(-1px);
  background: rgba(255, 210, 63, 0.16);
}
.conquest-target-tab.active {
  background: linear-gradient(150deg, var(--pink), #db2777);
  border-color: var(--pink-d);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 77, 141, 0.45);
}

.conquest-abilities-group {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.tactical-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 2px solid var(--line);
  border-bottom-width: 4px;
  background: var(--bg-panel);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s, background 0.12s;
}
.tactical-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}
.tactical-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.tactical-btn.drone-btn {
  border-color: var(--mint);
  background: rgba(46, 230, 166, 0.14);
  color: #a7f3d0;
}
.tactical-btn.radar-btn {
  border-color: var(--sky);
  background: rgba(56, 189, 248, 0.14);
  color: #bae6fd;
}
.tactical-btn.redeploy-btn {
  border-color: var(--yellow);
  background: rgba(255, 210, 63, 0.12);
  color: #fde68a;
}

.tactical-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--mint);
  color: #032e1f;
}

/* Интерактивные маркеры улиц фронта на карте */
.frontier-pin-marker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 99px;
  background: #1c0f45;
  border: 2.5px solid var(--yellow);
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.75);
  transition: filter 0.15s, background 0.15s, border-color 0.15s;
}
.frontier-pin-marker:hover {
  filter: brightness(1.18);
  border-color: #ffffff;
}
.frontier-pin-marker.active {
  background: var(--pink);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 77, 141, 0.85), 0 6px 16px rgba(0, 0, 0, 0.75);
}

.conquered-street-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(4, 120, 87, 0.94);
  border: 1.5px solid #6ee7b7;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.failed-street-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(185, 28, 28, 0.92);
  border: 1.5px solid #fca5a5;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

/* ================= ИТОГИ ================= */
.summary-overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(600px 400px at 50% 0%, rgba(255, 77, 141, 0.3), transparent 70%),
    rgba(15, 8, 36, 0.88);
  backdrop-filter: blur(10px);
}
.summary-card {
  width: 100%;
  max-width: 580px;
  background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel));
  border: 2px solid var(--line);
  border-bottom: 8px solid var(--bg-edge);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow-pop);
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
  animation: cardIn 0.45s cubic-bezier(0.2, 1.3, 0.4, 1);
}
.summary-badge {
  align-self: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #3b1d00;
  background: var(--yellow);
  padding: 4px 14px;
  border-radius: 99px;
}
.summary-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--yellow), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.summary-subtitle { font-size: 14px; font-weight: 700; color: var(--text-secondary); margin-top: -10px; }
.summary-metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric-box {
  background: rgba(15, 8, 36, 0.5);
  border: 2px solid var(--line);
  border-bottom-width: 5px;
  border-radius: var(--radius-lg);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.metric-label { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.metric-value { font-family: var(--font-display); font-size: 30px; font-weight: 900; }
.summary-history-wrap { text-align: left; }
.summary-history-wrap h3 { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 8px; }
.summary-history-list { max-height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}
.history-item.ok { border-left: 5px solid var(--mint); }
.history-item.fail { border-left: 5px solid var(--red); }
.summary-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }

/* ================= АДАПТИВ И МОБИЛЬНОЕ УПРАВЛЕНИЕ ================= */
@media (max-width: 960px) {
  .lobby-overlay { align-items: flex-start; padding: 14px; }
  .lobby-grid { grid-template-columns: 1fr; }
  .hide-mobile { display: none; }
  .brand-title { font-size: 28px; }
  .question-title { font-size: 16px; }
}

@media (max-width: 680px) {
  /* Переносим кнопки зума/компаса MapLibre под верхнюю шапку, чтобы нижняя карточка их не перекрывала */
  .maplibregl-ctrl-bottom-right {
    top: 58px !important;
    bottom: auto !important;
    right: 4px !important;
  }

  /* Компактная верхняя панель на мобильных */
  .game-hud-top {
    padding: 8px 8px;
    gap: 6px;
  }
  .hud-left,
  .hud-right {
    gap: 5px;
  }
  .hud-stats-bar {
    gap: 8px;
    padding: 5px 10px 8px;
    border-radius: 14px;
    border-bottom-width: 4px;
  }
  .hud-divider {
    height: 20px;
  }
  .hud-pill-label {
    font-size: 8.5px;
  }
  .hud-pill-value {
    font-size: 15px;
  }
  .hud-hearts {
    font-size: 12.5px;
    letter-spacing: 0;
  }
  .hud-icon-btn {
    padding: 6px 9px;
    font-size: 11.5px;
    border-radius: 11px;
  }

  .intersection-legend {
    top: 58px;
    left: 8px;
    padding: 6px 10px;
    font-size: 11.5px;
  }

  .conquest-live-toast {
    top: 58px;
    width: calc(100% - 20px);
    max-width: 420px;
    text-align: center;
    padding: 8px 12px;
    font-size: 12.5px;
    border-radius: 14px;
  }

  /* Компактная нижняя панель с сеткой 2x2 для вариантов ответа */
  .game-hud-bottom {
    bottom: 6px;
    width: calc(100% - 12px);
  }
  .bottom-card {
    padding: 6px 11px 11px;
    gap: 8px;
    border-radius: 20px;
    border-bottom-width: 5px;
  }
  .question-top-bar {
    gap: 6px;
  }
  .question-prompt-wrap {
    gap: 3px;
    width: 100%;
  }
  .question-badges {
    justify-content: space-between;
    width: 100%;
  }
  .q-badge {
    font-size: 10.5px;
    padding: 3px 9px;
  }
  .sheet-toggle-btn {
    font-size: 11px;
    padding: 3px 10px;
  }
  .question-title {
    font-size: 14.5px;
    line-height: 1.22;
  }
  .hints-toolbar {
    gap: 6px;
    width: 100%;
  }
  .hint-btn {
    flex: 1;
    justify-content: center;
    padding: 5px 8px;
    font-size: 11.5px;
    border-radius: 10px;
    border-bottom-width: 3px;
  }

  /* 2x2 компактная сетка вариантов ответа вместо 4 огромных строк */
  .quiz-options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .quiz-option-btn {
    padding: 7px 8px;
    gap: 7px;
    font-size: 12.5px;
    line-height: 1.18;
    border-radius: 11px;
    border-bottom-width: 4px;
    min-height: 44px;
    word-break: break-word;
  }
  .quiz-key-num {
    width: 22px;
    height: 22px;
    font-size: 12px;
    border-radius: 6px;
    border-bottom-width: 2px;
  }

  /* Компактная тактическая панель в режиме «Захват города» */
  .conquest-tactical-bar {
    gap: 6px;
    padding-bottom: 6px;
  }
  .conquest-bar-label {
    display: none;
  }
  .conquest-targets-group,
  .conquest-abilities-group {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
  }
  .conquest-targets-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .conquest-target-tab {
    justify-content: center;
    padding: 5px 6px;
    font-size: 11px;
    border-bottom-width: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tactical-btn {
    flex: 1;
    justify-content: center;
    padding: 5px 6px;
    font-size: 11px;
    border-bottom-width: 3px;
  }

  .street-text-input {
    padding: 9px 12px;
    font-size: 14px;
  }
  .submit-answer-btn {
    padding: 0 14px;
    font-size: 13px;
  }
  .landmark-pin-row {
    padding: 8px 10px;
    gap: 8px;
  }
  .landmark-pin-status {
    font-size: 12.5px;
  }
  .result-banner {
    padding: 9px 11px;
    gap: 8px;
  }
  .result-icon {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
  .result-verdict {
    font-size: 14.5px;
  }
  .result-correct-street {
    font-size: 12px;
  }
  .next-round-btn {
    padding: 9px 14px;
    font-size: 13.5px;
  }
}

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