/* «ПОГРОМ В ПОДЗЕМЕЛЬЕ» — хром платформы поверх движка Gauntlet.
   Эстетика апстрима сохранена: чёрный фон, неоновые цвета игроков. Добавлены
   только карта старта (#g-start) и мини-тулбар (#g-tools). Порядок: скрим →
   карточка → тулбар → адаптив. Движковые #gauntlet/#canvas/#scoreboard не трогаем. */

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: #000;
  color: #ccc;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  -webkit-user-select: none;
  user-select: none;
}

/* --- КАРТА СТАРТА ----------------------------------------------------- */
.g-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 120% at 50% 0%, rgba(20, 8, 8, 0.86) 0%, rgba(0, 0, 0, 0.96) 70%);
  backdrop-filter: blur(2px);
}

.g-scrim[hidden] {
  display: none;
}

.g-card {
  width: 420px;
  max-width: calc(100vw - 32px);
  padding: 26px 26px 20px;
  text-align: center;
  background: rgba(12, 12, 12, 0.92);
  border: 2px solid #2a2a2a;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(249, 5, 3, 0.25) inset;
}

.g-kicker {
  font: 700 11px/1.2 ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7a7a7a;
}

.g-name {
  margin: 10px 0 6px;
  font: 800 30px/1.1 ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 2px;
  color: #f9c003;
  text-shadow: 0 0 18px rgba(249, 5, 3, 0.55);
}

.g-sub {
  margin: 0 0 18px;
  font-size: 14px;
  color: #bbb;
}

.g-btn {
  display: inline-block;
  margin: 4px auto 18px;
  padding: 12px 34px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, #ff5a3c, #d4341c);
  color: #fff;
  font: 800 16px/1 -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(212, 52, 28, 0.45);
}

.g-btn:active {
  transform: translateY(1px) scale(0.99);
}

.g-controls {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 16px;
  font-size: 12.5px;
  color: #cfcfcf;
}

.g-controls span {
  padding: 6px 10px;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #f90503;
  border-radius: 4px;
}

.g-credits {
  font-size: 11px;
  color: #888;
}

.g-credits a {
  color: #f9c003;
}

/* --- ТУЛБАР ----------------------------------------------------------- */
#g-tools {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
}

#g-tools .g-tool {
  min-width: 32px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  background: rgba(20, 20, 20, 0.82);
  color: #fff;
  font: 600 13px/1 -apple-system, "Segoe UI", Roboto, sans-serif;
  cursor: pointer;
}

#g-tools .g-tool:active {
  transform: scale(0.94);
}

@media only screen and (max-width: 640px) {
  #g-tools { top: 4px; right: 4px; gap: 4px; }
  #g-tools .g-tool { height: 26px; min-width: 26px; padding: 0 5px; font-size: 12px; }
}
