/* Современный экран боя: сцена на весь экран, стеклянные плашки,
   скошенные кнопки команд. Дизайн оригинальный. */
* {
  box-sizing: border-box;
}

:root {
  --glass: rgba(14, 18, 32, 0.72);
  --glass-strong: rgba(10, 13, 24, 0.86);
  --glass-border: rgba(255, 255, 255, 0.16);
  --text: #f4f6fb;
  --muted: #aab3c7;
  --accent-enemy: #ff6b4a;
  --accent-player: #36d1c4;
  --attack: #ff5a64;
  --defend: #3fa7ff;
  --run: #ffb02e;
  --again: #3ccf7a;
  --skew: -12deg;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: radial-gradient(ellipse at top, #1d2440, #0a0c14 70%);
  color: var(--text);
  font-family: var(--font);
}

[hidden] {
  display: none !important;
}

/* Игра — одна сцена 16:9, интерфейс лежит поверх неё */
.game {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  container-type: inline-size; /* размеры ниже считаются от ширины игры (cqw) */
}

/* ===== Арена с фоном ===== */
.arena {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #6f8fb8 center / cover no-repeat;
}

/* Фон по региону */
.arena[data-region="desert"] {
  background-color: #e3b46a;
  background-image: url("../img/arena-desert.svg");
}

.arena[data-region="forest"] {
  background-image: url("../img/arena-forest.svg");
}

/* Название региона вверху по центру */
.region-badge {
  position: absolute;
  top: 4%;
  left: 50%;
  z-index: 3;
  padding: 0.5cqw 1.6cqw;
  border-radius: 99px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 1.5cqw;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.region-badge:empty {
  display: none;
}

/* Виньетка по краям — глубина кадра */
.arena::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 60% 45%, transparent 55%, rgba(5, 8, 20, 0.45) 100%);
}

/* ===== Плашки с именем и HP ===== */
.info {
  position: absolute;
  z-index: 3;
  width: 30%;
  padding: 0.9cqw 2.2cqw 1.1cqw 2.4cqw;
  border: 1px solid var(--glass-border);
  border-left: 0.6cqw solid var(--accent-enemy);
  border-radius: 0.6cqw;
  background: var(--glass);
  backdrop-filter: blur(6px);
  box-shadow: 0 0.8cqw 2cqw rgba(0, 0, 0, 0.35);
  transform: skewX(var(--skew));
}

.info-inner {
  transform: skewX(calc(var(--skew) * -1)); /* текст без наклона */
}

.enemy-info {
  top: 4%;
  left: 3%;
}

.player-info {
  top: 22%;
  right: 3%;
  width: 27%;
  border-left-color: var(--accent-player);
}

.info-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1cqw;
  margin-bottom: 0.6cqw;
}

.info-name {
  font-size: 2.1cqw;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-text {
  color: var(--muted);
  font-size: 1.5cqw;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hp-bar {
  height: 0.9cqw;
  min-height: 6px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hp-fill {
  width: 100%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #2fd27a, #7cf29a);
  box-shadow: 0 0 1cqw rgba(80, 230, 140, 0.55);
  transition: width 0.6s ease, background 0.6s ease;
}

.hp-fill.mid {
  background: linear-gradient(90deg, #f2b42e, #ffe066);
  box-shadow: 0 0 1cqw rgba(255, 200, 60, 0.55);
}

.hp-fill.low {
  background: linear-gradient(90deg, #e2384c, #ff7a6b);
  box-shadow: 0 0 1cqw rgba(255, 80, 80, 0.6);
}

/* ===== Бойцы ===== */
.fighter {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.fighter.enemy {
  top: 40%;
  right: 33%;
  width: 22%;
}

.fighter.player {
  bottom: 17%;
  left: 11%;
  width: 15%;
}

/* Мягкая тень на земле вместо площадки */
.ground-shadow {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -6%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(20, 30, 10, 0.5), transparent 70%);
}

.player .ground-shadow {
  left: -45%;
  right: -45%;
  bottom: -4%;
  height: 10%;
}

.sprite-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  animation: idle 2.6s ease-in-out infinite;
}

.enemy .sprite-wrap {
  animation-delay: -1.3s;
}

.sprite svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0.4cqw 0.6cqw rgba(0, 0, 0, 0.35));
}

/* ===== Анимации ===== */
@keyframes idle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2%); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8%); }
  40% { transform: translateX(7%); }
  60% { transform: translateX(-5%); }
  80% { transform: translateX(3%); }
}

@keyframes blink {
  0%, 40%, 80%, 100% { opacity: 1; }
  20%, 60% { opacity: 0.1; }
}

@keyframes lunge-right {
  0%, 100% { transform: translate(0, 0); }
  45% { transform: translate(40%, -12%); }
}

@keyframes lunge-left {
  0%, 100% { transform: translate(0, 0); }
  45% { transform: translate(-22%, 14%); }
}

@keyframes faint {
  0% { transform: translateY(0); opacity: 1; filter: none; }
  100% { transform: translateY(35%); opacity: 0; filter: grayscale(1); }
}

@keyframes flee {
  0% { transform: translate(0, 0); opacity: 1; }
  35% { transform: translate(-60%, -4%); }
  65% { transform: translate(-150%, 0); }
  100% { transform: translate(-300%, -4%); opacity: 0; }
}

@keyframes stumble {
  0%, 100% { transform: rotate(0); }
  25% { transform: translateX(-10%) rotate(-6deg); }
  60% { transform: translateX(-4%) rotate(4deg); }
}

.sprite.hit {
  animation: shake 0.5s ease, blink 0.5s linear;
}

.sprite-wrap.lunge-right { animation: lunge-right 0.35s ease; }
.sprite-wrap.lunge-left { animation: lunge-left 0.35s ease; }
.sprite-wrap.stumble { animation: stumble 0.5s ease; }
.sprite-wrap.faint { animation: faint 0.9s ease forwards; }
.sprite-wrap.flee { animation: flee 1s ease-in forwards; }

/* ===== Интерфейс поверх арены ===== */
.panel {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none; /* клики проходят только по самим элементам */
}

.panel > * {
  pointer-events: auto;
}

/* Строка сообщений внизу */
.message-box {
  position: absolute;
  left: 3%;
  right: 33%;
  bottom: 4%;
  min-height: 12%;
  padding: 1.4cqw 2.4cqw;
  border: 1px solid var(--glass-border);
  border-radius: 1.2cqw;
  background: var(--glass-strong);
  backdrop-filter: blur(8px);
  box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, 0.4);
}

.message {
  font-size: 2.2cqw;
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.message.typing::after {
  content: "▼";
  margin-left: 0.6cqw;
  color: var(--run);
  font-size: 0.65em;
  animation: blink 0.8s linear infinite;
}

.hint {
  min-height: 1.2em;
  margin-top: 0.4cqw;
  color: #ffc861;
  font-size: 1.45cqw;
  font-weight: 600;
}

.hint:empty {
  display: none;
}

/* Команды — вертикальная колонка справа */
.commands {
  position: absolute;
  right: 3%;
  bottom: 4%;
  width: 27%;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 1.1cqw;
}

/* Общая кнопка (команды и меню) */
.btn {
  font-family: var(--font);
  cursor: pointer;
}

.btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Скошенная кнопка команды: цветной блок с иконкой + подпись */
.cmd {
  --color: var(--attack);
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  width: 100%;
  padding: 0 2cqw 0 0;
  height: 5.4cqw;
  min-height: 40px;
  border: 1px solid var(--glass-border);
  border-radius: 0.6cqw;
  overflow: hidden;
  background: var(--glass-strong);
  color: var(--text);
  backdrop-filter: blur(6px);
  box-shadow: 0 0.6cqw 1.6cqw rgba(0, 0, 0, 0.35);
  transform: skewX(var(--skew));
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.2s, filter 0.2s;
}

.cmd > * {
  transform: skewX(calc(var(--skew) * -1));
}

.cmd-icon {
  display: grid;
  place-items: center;
  align-self: stretch;
  width: 5.4cqw;
  min-width: 40px;
  margin-left: -0.6cqw;
  background: var(--color);
  transform: none; /* блок иконки наклонён вместе с кнопкой */
}

.cmd-icon svg {
  width: 2.6cqw;
  min-width: 18px;
  height: auto;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: skewX(calc(var(--skew) * -1));
}

.cmd-label {
  font-size: 2.2cqw;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Цветная полоска снизу */
.cmd::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.35cqw;
  background: var(--color);
  opacity: 0.8;
  transform: none;
}

.cmd:hover:not(:disabled) {
  transform: skewX(var(--skew)) translateX(-0.8cqw);
  background: color-mix(in srgb, var(--color) 28%, var(--glass-strong));
}

.cmd:active:not(:disabled) {
  transform: skewX(var(--skew)) translateX(-0.4cqw) scale(0.98);
}

.cmd:disabled {
  opacity: 0.5;
  filter: grayscale(0.6);
  cursor: not-allowed;
}

.btn-attack { --color: var(--attack); }
.btn-run { --color: var(--run); }
.btn-again { --color: var(--again); }

/* ===== Панель атаки (сборка + результат) ===== */
.task-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: flex;
  align-items: flex-start; /* карточка центрируется через margin: auto — так её верх не обрезается */
  justify-content: center;
  overflow-y: auto;
  padding: 12px;
  background: rgba(6, 8, 16, 0.55);
  backdrop-filter: blur(3px);
}

.task-card {
  width: min(780px, 92%);
  margin: auto 0;
  padding: 2cqw 3cqw;
  border: 1px solid var(--glass-border);
  border-top: 0.6cqw solid var(--run);
  border-radius: 1.4cqw;
  background: var(--glass-strong);
  box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, 0.55);
  text-align: center;
  animation: task-in 0.25s ease-out;
}

@keyframes task-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.task-kicker {
  color: var(--run);
  font-size: clamp(12px, 1.7cqw, 18px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.task-text {
  margin: 0.8cqw 0 1.2cqw;
  font-size: clamp(18px, 3cqw, 36px);
  font-weight: 900;
  line-height: 1.12;
  text-shadow: 0 0.4cqw 1cqw rgba(0, 0, 0, 0.5);
}

/* Задание из колоды */
.task-details {
  margin: -0.4cqw 0 1cqw;
  color: #d6dcea;
  font-size: clamp(13px, 1.65cqw, 18px);
  line-height: 1.4;
}

.task-details:empty {
  display: none;
}

.task-answer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1cqw;
  margin-bottom: 1.2cqw;
}

.answer-btn {
  padding: 0.6cqw 1.6cqw;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  font-size: clamp(12px, 1.5cqw, 16px);
  font-weight: 800;
}

.answer-btn:hover {
  color: var(--text);
}

.answer-text {
  color: #ffd36b;
  font-size: clamp(14px, 2cqw, 22px);
  font-weight: 900;
}

.deck-info {
  margin-bottom: 1.2cqw;
  color: var(--muted);
  font-size: clamp(11px, 1.3cqw, 14px);
}

/* Штрафное задание — красная карточка */
.task-card.penalty {
  border-top-color: var(--attack);
}

.task-card.penalty .task-kicker {
  color: #ff8a90;
}

/* Ввод результата задания */
.result-inputs.single {
  grid-template-columns: 1fr;
}

.result-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2cqw;
  text-align: left;
}

.field span {
  display: block;
  margin-bottom: 0.5cqw;
  color: var(--muted);
  font-size: clamp(12px, 1.5cqw, 16px);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  padding: clamp(8px, 1cqw, 14px) clamp(10px, 1.3cqw, 16px);
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.8cqw;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: clamp(18px, 2.6cqw, 30px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.field input:focus {
  outline: none;
  border-color: var(--run);
}

.verdict {
  min-height: 2.2em;
  margin: 1.2cqw 0;
  padding: 0.8cqw;
  border-radius: 0.8cqw;
  font-size: clamp(14px, 2cqw, 22px);
  font-weight: 800;
  line-height: 1.3;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.verdict.win {
  background: rgba(60, 207, 122, 0.16);
  color: #6ff0a4;
}

.verdict.loss {
  background: rgba(255, 90, 100, 0.16);
  color: #ff9a9f;
}

.task-actions {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.2cqw;
}

.task-confirm,
.task-cancel {
  padding: clamp(10px, 1.6cqw, 18px);
  border: 0;
  border-radius: 0.8cqw;
  color: #fff;
  font-size: clamp(15px, 2.2cqw, 24px);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: filter 0.15s, transform 0.08s, opacity 0.2s;
}

.task-confirm {
  background: linear-gradient(180deg, #45dd88, #23a85c);
  box-shadow: 0 0.5cqw 0 #157a40;
}

.task-cancel {
  background: rgba(255, 255, 255, 0.12);
}

.task-confirm:hover:not(:disabled),
.task-cancel:hover:not(:disabled) {
  filter: brightness(1.1);
}

.task-confirm:active:not(:disabled) {
  transform: translateY(2px);
}

.task-confirm:disabled {
  opacity: 0.5;
  cursor: wait;
}

.task-keys {
  margin: 1.4cqw 0 0;
  color: var(--muted);
  font-size: clamp(11px, 1.3cqw, 14px);
}

/* ===== Всплывающий урон над целью ===== */
.damage-pop {
  position: absolute;
  left: 50%;
  top: 5%;
  z-index: 4;
  color: #fff;
  font-size: 4.2cqw;
  font-weight: 900;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 0 1cqw rgba(255, 60, 60, 0.9), 0.2cqw 0.2cqw 0 #3a0a0a;
  animation: pop-up 1.1s ease-out forwards;
}

.damage-pop.small {
  font-size: 2.4cqw;
  animation-duration: 0.8s;
}

.damage-pop.miss {
  color: #d5dbe8;
  text-shadow: 0.15cqw 0.15cqw 0 #1a1d28;
}

@keyframes pop-up {
  0% { opacity: 0; transform: translate(-50%, 20%) scale(0.6); }
  15% { opacity: 1; transform: translate(-50%, 0) scale(1.15); }
  30% { transform: translate(-50%, -20%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -140%) scale(1); }
}

/* ===== Меню: главное, пауза, настройки ===== */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(6, 8, 16, 0.6);
  backdrop-filter: blur(4px);
}

.overlay-main {
  background: linear-gradient(90deg, rgba(6, 8, 16, 0.75), rgba(6, 8, 16, 0.25));
  justify-content: flex-start;
  padding-left: 7%;
}

.menu-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(340px, 100%);
  padding: 22px;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: var(--glass-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.overlay-main .menu-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.menu-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 5.5cqw, 56px);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 30%, #ffb02e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.45));
}

.menu-heading {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.menu-btn {
  position: relative;
  padding: 12px 18px;
  border: 1px solid var(--glass-border);
  border-left: 6px solid var(--defend);
  border-radius: 6px;
  background: rgba(20, 26, 44, 0.9);
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  transform: skewX(var(--skew));
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.2s;
}

.menu-btn.primary {
  border-left-color: var(--attack);
}

.menu-btn:hover:not(:disabled) {
  transform: skewX(var(--skew)) translateX(6px);
  background: rgba(40, 50, 80, 0.95);
}

.menu-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Выбор региона */
.regions-card {
  width: min(720px, 100%);
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 6px;
}

.region-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-height: 130px;
  padding: 10px 6px;
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  background-color: #333;
  background-position: center;
  background-size: cover;
  transition: transform 0.15s, border-color 0.15s;
}

.region-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  border-color: var(--run);
}

.region-btn .region-name {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.region-btn .region-status {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.9;
}

.region-btn:disabled {
  cursor: not-allowed;
  filter: grayscale(0.9) brightness(0.55);
}

.region-btn .region-lock {
  position: absolute;
  top: 10px;
  font-size: 26px;
}

.menu-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.volume-label {
  color: var(--muted);
  font-weight: 700;
}

.volume-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.volume-row input[type="range"] {
  flex: 1;
  accent-color: var(--run);
}

.volume-value {
  min-width: 4ch;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Пауза: замораживаем все анимации на арене */
.game.paused .arena *,
.game.paused .message::after {
  animation-play-state: paused !important;
}

/* ===== Узкие экраны: интерфейс под сценой ===== */
@media (max-width: 640px) {
  body {
    padding: 8px;
  }

  .game {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    background: #0e1220;
  }

  .arena {
    position: relative;
    aspect-ratio: 16 / 11;
  }

  .info {
    width: 46%;
    padding: 1.5cqw 3cqw 2cqw 3.5cqw;
  }

  .player-info {
    width: 46%;
    top: auto;
    bottom: 6%;
  }

  .info-name { font-size: 3.6cqw; }
  .hp-text { font-size: 3cqw; }
  .hp-bar { height: 1.6cqw; }

  .fighter.enemy { top: 26%; right: 10%; width: 36%; }
  .fighter.player { bottom: 2%; left: 10%; width: 19%; }

  .panel {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    pointer-events: auto;
  }

  .message-box,
  .commands {
    position: static;
    width: 100%;
  }

  .message-box {
    min-height: 86px;
    padding: 12px 16px;
    border-radius: 12px;
  }

  .message { font-size: 16px; }
  .hint { font-size: 12px; }

  .controls {
    gap: 8px;
    padding: 0 6px;
  }

  .cmd {
    height: 44px;
    gap: 14px;
    padding-right: 12px;
  }

  .cmd-icon { width: 44px; min-width: 44px; }
  .cmd-icon svg { width: 20px; }
  .cmd-label { font-size: 15px; }

  .task-overlay {
    align-items: flex-start;
    padding: 8px;
  }

  .task-card {
    width: 100%;
    padding: 18px;
  }

  .region-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .region-btn { min-height: 90px; }
  .region-badge { font-size: 11px; padding: 3px 10px; top: auto; bottom: 4%; }

  .result-inputs { gap: 8px; }
  .field input { border-radius: 8px; }
  .verdict { margin: 12px 0; padding: 10px; border-radius: 8px; }
  .damage-pop { font-size: 26px; }
  .damage-pop.small { font-size: 16px; }

  .overlay-main {
    justify-content: center;
    padding-left: 16px;
  }
}
