/* «Спокойная сводка»: светлая тёплая бумажная палитра, мягкие тени, крупные
   скругления. Сознательно не тёмная тема источника и не «штабная» гамма —
   другой контингент, другая подача. */

* { box-sizing: border-box; }

:root {
  --bg: #faf7f2;
  --card: #ffffff;
  --fg: #3d3833;
  --dim: #8a8178;
  --line: #e8e2d9;
  --accent: #5a7d9a;
  --danger: #c0653a;
  --danger-bg: rgba(192, 101, 58, 0.08);
  --danger-line: rgba(192, 101, 58, 0.45);
  --detect: #5a7d9a;
  --detect-bg: rgba(90, 125, 154, 0.06);
  --detect-line: rgba(90, 125, 154, 0.4);
  --clean: #7a9a6d;
  --shadow: 0 1px 3px rgba(61, 56, 51, 0.07);
}

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---- Шапка ---- */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}

.brand-icon { width: 30px; height: 30px; color: var(--accent); display: inline-flex; }
.brand-icon svg { width: 100%; height: 100%; }

.brand-text b {
  display: block;
  font-size: 19px;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.brand-text small {
  display: block;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.02em;
}

/* Навигации разделов больше нет: карта всегда на экране, «Сводка» и
   «Аэропорты» — вкладки нижней шторки (см. блок «Карта + шторка»). */

.conn {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--dim);
  white-space: nowrap;
}

.conn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clean);
  flex: 0 0 auto;
}

.conn.is-bad .conn-dot { background: var(--danger); }
.conn.is-bad .conn-text { color: var(--danger); }

/* ---- Сводка ---- */


.lead {
  font-size: 21px;
  letter-spacing: 0.01em;
  margin: 14px 0 4px;
}

.lead b { font-weight: 700; }

.lead-sub {
  color: var(--dim);
  font-size: 14px;
  margin: 0 0 4px;
}

h2 {
  font-size: 17px;
  letter-spacing: 0.02em;
  margin: 22px 0 10px;
  font-weight: 700;
}

.grid-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.grid-head h2 { margin: 0; }

#region-filter {
  margin-left: auto;
  font: inherit;
  font-size: 14px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--fg);
  width: 220px;
  outline: none;
}

#region-filter:focus { border-color: var(--accent); }

.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 14px;
  /* Раскрытая плитка выше соседних — пусть каждая живёт своей высотой. */
  align-items: start;
}

/* ---- Плитка региона ---- */

.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 15px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}

.tile:hover { box-shadow: 0 2px 8px rgba(61, 56, 51, 0.12); }

.tile.is-danger { border-color: var(--danger-line); background: var(--danger-bg); }
.tile.is-detection { border-color: var(--detect-line); background: var(--detect-bg); }

.tile-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tile-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--clean);
  display: inline-flex;
}

.tile-icon svg { width: 100%; height: 100%; }

.tile.is-danger .tile-icon { color: var(--danger); }
.tile.is-detection .tile-icon { color: var(--detect); }

.tile-status {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--clean);
}

.tile.is-danger .tile-status { color: var(--danger); text-transform: uppercase; }
.tile.is-detection .tile-status { color: var(--detect); }

.tile-time {
  margin-left: auto;
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
}

.tile-name {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 7px 0 2px;
}

.tile-kind {
  margin: 0;
  font-size: 13px;
  color: var(--dim);
}

.tile-districts {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile-events {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.tile-event {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.tile-event:last-child { border-bottom: 0; }

.tile-event-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
}

.tile-event-head .tile-icon { width: 17px; height: 17px; }

.tile-event-status { font-weight: 700; }
.tile-event-status.is-danger { color: var(--danger); }
.tile-event-status.is-detection { color: var(--detect); }
.tile-event-status.is-clear { color: var(--clean); }

.tile-event-time { margin-left: auto; color: var(--dim); font-size: 12px; white-space: nowrap; }

.tile-event-text {
  margin: 4px 0 0;
  color: var(--fg);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.tile-event-regions { color: var(--dim); }

.tile-maplink {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}

.tile-maplink:hover { text-decoration: underline; }

.tile-empty { color: var(--dim); font-size: 13px; margin: 4px 0 0; }

.grid-empty { color: var(--dim); padding: 14px 0; }

/* ---- Аэропорты: бриф на сводке ---- */

.airports-brief {
  margin-top: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
}

.airports-brief .tile-icon { color: var(--accent); }

.airports-brief a {
  margin-left: auto;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.airports-brief a:hover { text-decoration: underline; }

/* ---- Лента событий ---- */

.feed-title { margin-top: 24px; }

.feed {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 4px 16px;
}

.feed-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.feed-item:last-child { border-bottom: 0; }

.feed-time {
  color: var(--dim);
  font-size: 12.5px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.feed-status {
  font-weight: 700;
  font-size: 12.5px;
  flex: 0 0 auto;
}

.feed-status.is-danger { color: var(--danger); }
.feed-status.is-detection { color: var(--detect); }
.feed-status.is-clear { color: var(--clean); }

.feed-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--dim);
  display: inline-flex;
  align-self: center;
}

.feed-icon svg { width: 100%; height: 100%; }

.feed-text { overflow-wrap: anywhere; }

.feed-more {
  margin-top: 12px;
  font: inherit;
  font-size: 14px;
  color: var(--accent);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 16px;
  cursor: pointer;
}

.feed-more:hover { border-color: var(--accent); }

.feed-empty { color: var(--dim); padding: 14px 0; }

/* ---- Карта ---- */


/* Стили самой карты — в блоке «Карта + шторка» ниже: карта растянута
   флексом #layout, а не фиксированной высотой. */

/* Маркер-чип: белый круг с цветной рамкой и SVG-значком внутри. */
.chip-wrap { background: none; border: none; }

.marker-chip {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--dim);
  box-shadow: 0 1px 4px rgba(61, 56, 51, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-chip svg { width: 15px; height: 15px; }

/* Пузырь-объединение близких маркеров: число уникальных событий внутри. */
.marker-cluster {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--dim);
  box-shadow: 0 1px 4px rgba(61, 56, 51, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

/* Попапы карты в палитре сводки. */
.map-popup h3 {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding-right: 24px;
}

.map-popup .popup-event {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.map-popup .popup-event:first-of-type { border-top: 0; padding-top: 0; }
.map-popup .popup-event + .popup-event { margin-top: 4px; }

.map-popup .popup-event-head {
  display: flex;
  align-items: center;
  gap: 6px;
  /* Справа — зона крестика закрытия Leaflet (абсолют, ~24px). */
  padding-right: 24px;
}

.map-popup .popup-event-head .tile-icon { width: 18px; height: 18px; }

.map-popup .popup-status {
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.map-popup .popup-status.is-danger { color: var(--danger); }
.map-popup .popup-status.is-detection { color: var(--detect); }
.map-popup .popup-status.is-clear { color: var(--clean); }

.map-popup .popup-time {
  margin-left: auto;
  color: var(--dim);
  font-size: 12px;
  white-space: nowrap;
}

.map-popup .popup-kind {
  margin: 3px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.map-popup .popup-places {
  margin: 4px 0 0;
  color: var(--dim);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.map-popup .popup-places-sep { margin: 0 4px; }

.map-popup .popup-places-districts { color: var(--fg); }

.map-popup .popup-text {
  margin: 5px 0 0;
  color: var(--fg);
  font-size: 13px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.map-popup .popup-empty { color: var(--dim); font-size: 13px; }

/* Бумажная обёртка Leaflet под палитру сайта. */
.leaflet-popup-content-wrapper {
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(61, 56, 51, 0.12);
}

.leaflet-popup-content { margin: 12px 14px; font-size: 13px; line-height: 1.45; }

.leaflet-popup-tip { background: var(--card); border: 1px solid var(--line); }

.leaflet-container a.leaflet-popup-close-button {
  color: var(--dim);
  padding: 6px 6px 0 0;
}

.leaflet-container a.leaflet-popup-close-button:hover { color: var(--fg); }

/* ---- Аэропорты ---- */

.airports-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.airport-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px 16px;
  font-size: 14.5px;
}

.airport-card .tile-icon { width: 24px; height: 24px; }

.airport-card.is-closed { border-color: var(--danger-line); background: var(--danger-bg); }
.airport-card.is-closed .tile-icon { color: var(--danger); }
.airport-card.is-limited { border-color: var(--detect-line); background: var(--detect-bg); }
.airport-card.is-limited .tile-icon { color: var(--detect); }

.airport-status { font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.airport-card.is-closed .airport-status { color: var(--danger); }
.airport-card.is-limited .airport-status { color: var(--detect); }

.airport-name { font-weight: 600; letter-spacing: 0.01em; }

.airport-date { color: var(--dim); font-size: 12.5px; white-space: nowrap; }

.airport-link {
  margin-left: auto;
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.airport-link:hover { text-decoration: underline; }

.airports-open {
  margin-top: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px 16px;
}

.airports-open summary {
  cursor: pointer;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.airports-open ul {
  margin: 10px 0 2px;
  padding-left: 18px;
  columns: 2;
  column-gap: 28px;
  font-size: 13.5px;
  color: var(--fg);
}

.airports-open li { break-inside: avoid; padding: 1px 0; }

.airports-empty { color: var(--dim); padding: 10px 0; }


/* ---- Мобильная раскладка ---- */

@media (max-width: 640px) {
  .header-row { gap: 12px; padding-top: 9px; padding-bottom: 9px; }
  .lead { font-size: 18px; }
  .region-grid { grid-template-columns: 1fr; }
  #region-filter { width: 150px; }
  .airports-open ul { columns: 1; }
  .feed-item { flex-wrap: wrap; gap: 4px 10px; }
}
/* ---- Карта + шторка (перенос раскладки из AutoSTOP) ---- */

html, body { height: 100%; }

body {
  display: flex; flex-direction: column;
  height: 100vh; height: 100dvh;
  overflow: hidden;
}

.site-header { flex: none; }

#layout { flex: 1; display: flex; flex-direction: column; min-height: 0; }

#map { flex: 1; min-height: 0; background: #e9e4da; }

/* ---- Шторка ---- */

#sheet {
  flex: none; display: flex; flex-direction: column; position: relative;
  height: 25vh; height: 25dvh; min-height: 120px; box-sizing: border-box;
  padding-bottom: env(safe-area-inset-bottom); overflow: hidden;
  background: var(--bg); border-top: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -12px 34px rgba(61, 56, 51, 0.18);
  z-index: 1000;
}

#sheet.anim { transition: height .34s cubic-bezier(.2, .9, .25, 1); }

#grip {
  display: flex; flex: none; height: 22px; align-items: center;
  justify-content: center; touch-action: none; cursor: grab;
}
#grip:active { cursor: grabbing; }
#grip .pill {
  width: 40px; height: 4px; border-radius: 99px;
  background: var(--dim); transition: background .25s;
}
#sheet.dragging #grip .pill { background: var(--accent); }

#sheet-head {
  display: flex; flex: none; align-items: center; gap: 8px;
  padding: 0 10px 8px; border-bottom: 1px solid var(--line);
}

#panel-seg {
  margin: 0 auto; position: relative; display: flex; padding: 3px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
}
#panel-pill {
  position: absolute; top: 3px; bottom: 3px; left: 0; width: 0;
  background: var(--accent); border-radius: 9px;
  /* Геометрию (left/width) ставит JS по фактической вкладке. */
  transition: transform .3s cubic-bezier(.25, .9, .3, 1),
              width .3s cubic-bezier(.25, .9, .3, 1),
              left .3s cubic-bezier(.25, .9, .3, 1);
}
.ptab {
  position: relative; z-index: 1; display: flex; align-items: center;
  justify-content: center; gap: 6px; padding: 7px 14px; white-space: nowrap;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--dim);
  background: none; border: 0; cursor: pointer; transition: color .22s;
}
.ptab.on { color: #ffffff; }
.ptab-ic { display: inline-flex; width: 15px; height: 15px; }
.ptab-ic svg { width: 100%; height: 100%; }

#fold {
  flex: none; width: 32px; height: 32px; display: flex; align-items: center;
  justify-content: center; border: 1px solid var(--line); border-radius: 9px;
  background: none; color: var(--dim); cursor: pointer;
}
#fold:hover { color: var(--fg); border-color: var(--accent); }
#fold svg { width: 16px; height: 16px; }

#sheet-body { display: block; flex: 1; min-height: 0; position: relative; overflow: hidden; }

.pane {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.pane.on { opacity: 1; transform: none; pointer-events: auto; }

#summary, #airports {
  display: flex; flex-direction: column; flex: 1; min-height: 0;
}

.pane-head { display: none; }   /* подпись секции — только на десктопе */

#summary-log, #airports-log {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
}

.pane-foot {
  margin: 18px 0 0; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--dim);
}

/* Зум карты — пальцами; кнопки «+/−» на телефоне не нужны (как в AutoSTOP). */
@media (max-width: 1299px) {
  .leaflet-control-zoom { display: none; }
}

/* Десктоп: карта слева, справа колонка 360px, обе панели видны сразу. */
@media (min-width: 1300px) {
  #layout { flex-direction: row; }
  #sheet {
    height: auto; min-height: 0; width: 360px; flex: none;
    border-radius: 0; border-top: 0; box-shadow: none;
    border-left: 1px solid var(--line); padding-bottom: 0;
  }
  #grip, #sheet-head { display: none; }
  #sheet-body {
    display: flex; flex-direction: column; flex: 1; min-height: 0;
    position: static; overflow: hidden;
  }
  .pane {
    position: relative; inset: auto; display: flex; flex-direction: column;
    min-height: 0; opacity: 1; transform: none; pointer-events: auto;
  }
  #pane-summary { flex: 1.5 1 0; }
  #pane-airports { flex: 1 1 0; border-top: 1px solid var(--line); }
  .pane-head {
    display: block; padding: 8px 14px; font-size: 13px; font-weight: 600;
    border-bottom: 1px solid var(--line);
  }
  #summary-log, #airports-log { padding: 12px 14px; }
}

/* ---- Мини-игра «Перехват» ---- */

#game-open {
  margin-left: auto;
  display: flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 11px;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--fg);
  cursor: pointer; transition: border-color .2s;
}
#game-open:hover { border-color: var(--accent); }
#game-open:hover svg { color: var(--accent); }
#game-open svg { width: 16px; height: 16px; }

#game-root {
  position: fixed; inset: 0; z-index: 3000;
  background: var(--bg);
  display: flex; flex-direction: column;
}
#game-root[hidden] { display: none; }

#game-canvas {
  display: block; width: 100%; height: 100%;
  touch-action: none; cursor: crosshair;
}

#game-hud { position: absolute; inset: 0; pointer-events: none; }
#game-hud button { pointer-events: auto; }

.gh-tl {
  position: absolute; top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.gh-tc {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.gh-tr { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.gh-bl {
  position: absolute; bottom: 10px; left: 10px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}

.gh-chip {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 5px 10px; font-size: 12.5px; font-weight: 600; color: var(--fg);
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
}
button.gh-chip { cursor: pointer; transition: border-color .2s, color .2s; }
button.gh-chip:hover { border-color: var(--accent); }

.gh-ib {
  width: 34px; height: 34px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); color: var(--fg); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.gh-ib:hover { border-color: var(--accent); color: var(--accent); }
.gh-ib svg { width: 16px; height: 16px; }
.gh-ib.is-off { color: var(--dim); }

.gh-heat-track {
  width: 92px; height: 7px; border-radius: 99px; background: var(--line);
  overflow: hidden; display: inline-block; flex: none;
}
.gh-heat-fill {
  display: block; height: 100%; width: 0%;
  background: var(--clean); transition: width .1s linear;
}
.gh-heat-fill.is-hot { background: var(--danger); }
.gh-heat.is-hot { animation: ghBlink .5s infinite alternate; }
@keyframes ghBlink { from { opacity: 1; } to { opacity: .45; } }

.gh-obj .gh-heat-fill { background: var(--clean); transition: width .2s; }
.gh-obj .gh-heat-fill.is-low { background: var(--danger); }
.gh-obj-label, .gh-obj-num { font-size: 11.5px; color: var(--dim); }
.gh-obj-num { min-width: 34px; text-align: right; }

#game-wind svg { width: 14px; height: 14px; transition: transform .3s; }
#game-wind.is-left svg { transform: rotate(180deg); }
#game-wind-text { color: var(--dim); font-weight: 600; }

.gh-score { color: var(--accent); }

.gh-tracer.on { border-color: var(--danger); color: var(--danger); }
.gh-reload.is-reloading { color: var(--dim); }

.gh-wave {
  animation: ghWaveIn .3s ease-out;
}
@keyframes ghWaveIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; } }

#game-screens {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  padding: 16px;
}
#game-screens[hidden] { display: none; }

.gs-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 8px 30px rgba(61, 56, 51, 0.16);
  padding: 22px 24px;
  width: min(430px, 92vw); max-height: 86vh; overflow-y: auto;
}
.gs-title { margin: 0 0 2px; font-size: 18px; font-weight: 700; letter-spacing: 0.01em; }
.gs-sub { margin: 0 0 12px; font-size: 13px; color: var(--dim); }
.gs-line { margin: 6px 0; font-size: 13.5px; }
.gs-line b { font-weight: 700; }
.gs-help { margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; }
.gs-help li { margin: 5px 0; padding-left: 16px; position: relative; color: var(--fg); }
.gs-help li::before {
  content: ""; position: absolute; left: 2px; top: 7px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.gs-help .gs-kbd { color: var(--dim); }

.gs-btn {
  width: 100%; padding: 11px 14px; margin-top: 10px;
  border: 1px solid var(--accent); border-radius: 11px;
  background: var(--accent); color: #fff;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: opacity .2s;
}
.gs-btn:hover { opacity: .88; }
.gs-btn.ghost { background: none; color: var(--accent); font-weight: 600; }
.gs-btn.danger { border-color: var(--danger); background: none; color: var(--danger); }

.gs-types { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 2px; }
.gs-types .gh-chip { font-size: 12px; }

.gs-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.gs-row:first-of-type { border-top: 0; }
.gs-row.is-max, .gs-row.is-poor { opacity: 0.45; }
.gs-row-info { flex: 1; min-width: 0; }
.gs-row-name { font-size: 13.5px; font-weight: 600; }
.gs-row-desc { font-size: 12px; color: var(--dim); margin-top: 2px; }
.gs-dots { display: flex; gap: 4px; margin-top: 5px; }
.gs-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line);
}
.gs-dots span.done { background: var(--accent); }
.gs-buy {
  flex: none; padding: 7px 12px;
  border: 1px solid var(--accent); border-radius: 9px;
  background: none; color: var(--accent);
  font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
  white-space: nowrap;
}
.gs-buy:hover { background: var(--accent); color: #fff; }
.gs-buy:disabled { cursor: default; }

@media (max-width: 640px) {
  .gh-chip { font-size: 11.5px; padding: 4px 8px; }
  .gh-ib { width: 30px; height: 30px; }
  .gh-bl { gap: 5px; bottom: 8px; left: 8px; }
  .gh-heat-track { width: 70px; }
  .gh-tl, .gh-tc { top: 8px; }
  .gh-tr { top: 8px; right: 8px; }
  #game-root { padding-top: 44px; }
}
