:root {
  --ink: #1d2522;
  --soft-ink: #59655f;
  --paper: #f4f7ef;
  --moss: #21483e;
  --mint: #c9f0d2;
  --coral: #f26368;
  --gold: #f3c94f;
  --rose: #ffe0e4;
  --shadow: 0 18px 45px rgba(22, 31, 28, 0.18);
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(201, 240, 210, 0.45), transparent 34%),
    linear-gradient(225deg, rgba(242, 99, 104, 0.12), transparent 38%),
    var(--paper);
  color: var(--ink);
}

button {
  font: inherit;
}

.app {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 20px;
}

.bday-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 16px;
  border: 2px solid var(--coral);
  border-radius: 999px;
  background: linear-gradient(100deg, var(--rose), rgba(243, 201, 79, 0.45) 45%, var(--mint));
  background-size: 200% 100%;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.3px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(242, 99, 104, 0.18);
  animation: bdayShimmer 4s ease-in-out infinite;
}

.bday-banner strong {
  font-size: clamp(15px, 2.6vw, 22px);
}

.bday-emoji {
  font-size: clamp(18px, 3vw, 26px);
  display: inline-block;
  animation: bdayBob 1.8s ease-in-out infinite;
}

.bday-emoji:last-child {
  animation-delay: 0.4s;
}

@keyframes bdayShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes bdayBob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-5px) rotate(6deg); }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--coral);
  color: var(--coral);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.02;
  letter-spacing: 0;
}

.brand p,
.panel-head h2,
.cover-content p,
.modal-content p {
  color: var(--soft-ink);
}

.brand p {
  margin-top: 5px;
  font-size: 15px;
}

.toolbar {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(29, 37, 34, 0.18);
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible,
.primary-button:hover,
.primary-button:focus-visible,
.mode-tab:hover,
.mode-tab:focus-visible,
.cover-mode:hover,
.cover-mode:focus-visible,
.control-button:hover,
.control-button:focus-visible {
  outline: 3px solid rgba(242, 99, 104, 0.28);
  outline-offset: 2px;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.mode-tab,
.cover-mode {
  min-width: 0;
  min-height: 46px;
  border: 1px solid rgba(29, 37, 34, 0.16);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.mode-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.mode-tab span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

.mode-tab.is-active,
.cover-mode.is-active {
  border-color: var(--coral);
  background: var(--rose);
  color: var(--ink);
}

.hud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.stat,
.love-stat {
  min-width: 0;
  border: 1px solid rgba(29, 37, 34, 0.12);
  background: rgba(255, 255, 255, 0.76);
  padding: 12px 14px;
}

.stat span,
.love-stat span,
.panel-kicker,
.cover-kicker,
.modal-kicker {
  display: block;
  color: var(--soft-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 4px;
  font-size: 25px;
  line-height: 1;
}

.love-track {
  width: 100%;
  height: 14px;
  margin-top: 10px;
  border: 1px solid rgba(29, 37, 34, 0.12);
  background: #fff;
  overflow: hidden;
}

.love-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--mint));
  transition: width 0.28s ease;
}

.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: 16px;
  align-items: start;
}

.game-mode[hidden] {
  display: none;
}

.board-panel {
  min-width: 0;
}

.board {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1194 / 880;
  background: var(--moss);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.board::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.16)),
    radial-gradient(circle at center, transparent 58%, rgba(0, 0, 0, 0.25));
}

.board-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.targets-layer,
.treat-layer,
.toast-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.target,
.treat {
  position: absolute;
  pointer-events: auto;
  touch-action: manipulation;
  cursor: pointer;
}

.target {
  display: grid;
  min-width: 40px;
  min-height: 40px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(242, 99, 104, 0.2);
  color: #fff;
  transform: translate(-50%, -50%);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.target::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 224, 228, 0.82);
  animation: pulse 1.8s ease-in-out infinite;
}

.target span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(29, 37, 34, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.target:hover,
.target:focus-visible,
.target.is-hinted {
  border-color: var(--gold);
  background: rgba(243, 201, 79, 0.24);
  outline: none;
  transform: translate(-50%, -50%) scale(1.06);
}

.target.is-found {
  border-color: var(--mint);
  background: rgba(33, 72, 62, 0.35);
  opacity: 0.76;
}

.target.is-found::before {
  border-style: solid;
  animation: none;
}

.target.is-found span {
  background: var(--moss);
}

.treat {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  animation: bob 0.9s ease-in-out infinite alternate;
}

.toast {
  position: absolute;
  z-index: 4;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  padding: 7px 10px;
  border: 1px solid rgba(29, 37, 34, 0.18);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  animation: toastRise 1.25s ease forwards;
}

.side-panel {
  border: 1px solid rgba(29, 37, 34, 0.14);
  background: rgba(255, 255, 255, 0.76);
  padding: 14px;
  box-shadow: 0 12px 28px rgba(22, 31, 28, 0.08);
}

.runner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: 16px;
  align-items: start;
}

.runner-panel {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--ink);
  background: #8fd6f6;
  box-shadow: var(--shadow);
  isolation: isolate;
}

#runnerCanvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #8fd6f6;
}

.runner-message {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  max-width: min(420px, calc(100% - 24px));
  border: 1px solid rgba(29, 37, 34, 0.15);
  background: rgba(255, 255, 255, 0.86);
  padding: 8px 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  pointer-events: none;
}

.runner-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.control-button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(29, 37, 34, 0.2);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 28px;
  font-weight: 950;
  cursor: pointer;
  touch-action: manipulation;
}

.jump-button {
  width: 58px;
  background: var(--ink);
  color: #fff;
}

.runner-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.runner-cards article {
  min-width: 0;
  border: 1px solid rgba(29, 37, 34, 0.14);
  background: #fff;
  overflow: hidden;
}

.runner-cards img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.runner-cards span {
  display: block;
  padding: 7px 8px 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.panel-head {
  margin-bottom: 12px;
}

.panel-head h2 {
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.12;
}

.agent-list {
  display: grid;
  gap: 7px;
  max-height: min(56vh, 520px);
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.agent-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  border: 1px solid rgba(29, 37, 34, 0.11);
  background: rgba(244, 247, 239, 0.72);
  padding: 7px 9px;
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 750;
}

.agent-list li.is-found {
  color: var(--ink);
  background: rgba(201, 240, 210, 0.6);
}

.agent-list b {
  color: var(--coral);
  font-size: 15px;
}

.meme-shelf {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 14px;
}

.meme-slot {
  min-width: 0;
  border: 1px solid rgba(29, 37, 34, 0.14);
  background: #fff;
  overflow: hidden;
}

.meme-slot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.meme-slot span {
  display: block;
  padding: 7px 8px 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.meme-slot.locked {
  filter: grayscale(1);
  opacity: 0.48;
}

.cover-screen,
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(29, 37, 34, 0.68);
  backdrop-filter: blur(6px);
}

.cover-screen:not(.is-visible),
.modal.is-hidden {
  display: none;
}

.cover-content,
.modal-content {
  width: min(620px, 100%);
  border: 3px solid var(--ink);
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow);
}

.cover-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.cover-kicker,
.modal-kicker {
  color: var(--coral);
}

.cover-content h2,
.modal-content h2 {
  margin-top: 8px;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 0.98;
  letter-spacing: 0;
}

.cover-content p,
.modal-content p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.45;
}

.primary-button {
  min-height: 46px;
  margin-top: 18px;
  border: 0;
  background: var(--ink);
  color: #fff;
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.meme-image-button {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 0;
  border: 2px solid var(--ink);
  background: var(--moss);
  cursor: pointer;
  overflow: hidden;
}

.meme-image-button img {
  display: block;
  width: 100%;
  max-height: min(48vh, 420px);
  object-fit: cover;
}

.tap-meter {
  width: 100%;
  height: 13px;
  margin-top: 12px;
  border: 1px solid rgba(29, 37, 34, 0.2);
  background: var(--paper);
  overflow: hidden;
}

.tap-meter div {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--gold), var(--coral));
  transition: width 0.18s ease;
}

.victory-content {
  width: min(760px, 100%);
}

.victory-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.victory-gallery.is-runner {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.victory-gallery.is-runner img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid rgba(29, 37, 34, 0.16);
  background: var(--paper);
}

.certificate-image {
  display: block;
  width: min(100%, 420px);
  max-height: 48vh;
  margin: 16px auto 0;
  object-fit: contain;
  border: 2px solid rgba(29, 37, 34, 0.16);
  background: var(--paper);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes bob {
  from {
    transform: translate(-50%, -52%) rotate(-4deg);
  }
  to {
    transform: translate(-50%, -44%) rotate(4deg);
  }
}

@keyframes toastRise {
  0% {
    opacity: 0;
    transform: translate(-50%, -10%);
  }
  18%,
  72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -120%);
  }
}

/* ===== FX-слой: частицы, конфетти, вспышки ===== */
#fxLayer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  overflow: hidden;
}

.fx {
  position: absolute;
  will-change: transform, opacity;
}

.fx-heart {
  transform: translate(-50%, -50%);
  font-weight: 900;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  animation: fxHeart 1.15s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

@keyframes fxHeart {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3) rotate(0); }
  18% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(var(--rot));
  }
}

.fx-pop {
  transform: translate(-50%, -50%);
  font-weight: 900;
  font-size: 22px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  animation: fxPop 0.95s ease-out forwards;
}

@keyframes fxPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  25% { opacity: 1; transform: translate(-50%, -75%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -165%) scale(1); }
}

.confetti {
  top: -20px;
  border-radius: 2px;
  animation: fxFall var(--dur) linear var(--delay) forwards;
}

@keyframes fxFall {
  0% { opacity: 1; transform: translateY(0) rotate(0); }
  100% { opacity: 0.85; transform: translateY(112vh) rotate(calc(var(--rx) * 760deg)); }
}

.fx-flash {
  inset: 0;
  animation: fxFlash 0.32s ease-out forwards;
}

@keyframes fxFlash {
  0% { opacity: 0.9; }
  100% { opacity: 0; }
}

.shake {
  animation: fxShake 0.46s ease;
}

@keyframes fxShake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-7px, 4px); }
  40% { transform: translate(6px, -5px); }
  60% { transform: translate(-5px, 3px); }
  80% { transform: translate(4px, -2px); }
}

/* ===== Парящие сердечки на обложке ===== */
.cover-hearts {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cover-hearts span {
  position: absolute;
  bottom: -40px;
  color: rgba(255, 224, 228, 0.85);
  font-size: 26px;
  animation: floatUp linear infinite;
}

.cover-hearts span:nth-child(1) { left: 6%; font-size: 22px; animation-duration: 9s; animation-delay: 0s; }
.cover-hearts span:nth-child(2) { left: 18%; font-size: 32px; animation-duration: 11s; animation-delay: 1.4s; color: rgba(242,99,104,0.7); }
.cover-hearts span:nth-child(3) { left: 30%; font-size: 18px; animation-duration: 8s; animation-delay: 2.6s; }
.cover-hearts span:nth-child(4) { left: 44%; font-size: 24px; animation-duration: 12s; animation-delay: 0.8s; color: rgba(243,201,79,0.7); }
.cover-hearts span:nth-child(5) { left: 56%; font-size: 30px; animation-duration: 10s; animation-delay: 3.2s; color: rgba(242,99,104,0.6); }
.cover-hearts span:nth-child(6) { left: 67%; font-size: 20px; animation-duration: 9.5s; animation-delay: 1.1s; }
.cover-hearts span:nth-child(7) { left: 76%; font-size: 26px; animation-duration: 13s; animation-delay: 2.2s; color: rgba(201,240,210,0.85); }
.cover-hearts span:nth-child(8) { left: 85%; font-size: 22px; animation-duration: 8.5s; animation-delay: 0.4s; color: rgba(242,99,104,0.7); }
.cover-hearts span:nth-child(9) { left: 92%; font-size: 28px; animation-duration: 11.5s; animation-delay: 3.8s; }
.cover-hearts span:nth-child(10) { left: 50%; font-size: 16px; animation-duration: 7.5s; animation-delay: 4.5s; color: rgba(243,201,79,0.7); }

@keyframes floatUp {
  0% { transform: translateY(0) rotate(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-112vh) rotate(40deg); opacity: 0; }
}

.cover-content {
  position: relative;
  z-index: 1;
}

#startOverlay {
  background:
    linear-gradient(rgba(40, 30, 38, 0.32), rgba(40, 30, 38, 0.46)),
    url("assets/birthday-bg.png") center / cover no-repeat,
    url("assets/cover-bg.png") center / cover no-repeat,
    rgba(29, 37, 34, 0.68);
}

/* ===== Любовное письмо в финале ===== */
.love-letter {
  margin-top: 14px;
  padding: 14px 16px;
  border: 2px dashed var(--coral);
  background: linear-gradient(135deg, rgba(255, 224, 228, 0.55), rgba(243, 201, 79, 0.18));
  color: var(--ink) !important;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  animation: letterPop 0.5s ease both;
}

@keyframes letterPop {
  from { opacity: 0; transform: scale(0.9) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.love-letter[hidden] { display: none; }

/* ===== Полировка: свечение, кнопка звука ===== */
.icon-button.is-muted {
  opacity: 0.55;
}

.brand-mark {
  animation: heartBeat 1.6s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.16); }
  28% { transform: scale(1); }
  42% { transform: scale(1.1); }
}

.primary-button {
  background: linear-gradient(120deg, var(--ink), #2e433b 60%, var(--moss));
  background-size: 180% 180%;
  transition: transform 0.16s ease, background-position 0.4s ease, box-shadow 0.2s ease;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 12px 26px rgba(33, 72, 62, 0.32);
}

.board:hover {
  box-shadow: 0 18px 45px rgba(22, 31, 28, 0.18), 0 0 0 1px rgba(242, 99, 104, 0.18);
}

.target {
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.target:hover {
  box-shadow: 0 0 16px rgba(243, 201, 79, 0.55);
}

.mode-tab,
.stat,
.love-stat,
.side-panel,
.meme-slot,
.runner-cards article {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.stat:hover,
.love-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(22, 31, 28, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .cover-hearts span,
  .brand-mark,
  .target::before,
  .treat { animation: none; }
}

@media (max-width: 980px) {
  .app {
    padding: 14px;
  }

  .topbar {
    align-items: flex-start;
  }

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

  .play-layout {
    grid-template-columns: 1fr;
  }

  .runner-layout {
    grid-template-columns: 1fr;
  }

  .agent-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
  }

  .toolbar {
    width: 100%;
  }

  .icon-button {
    flex: 1;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .brand p {
    font-size: 13px;
  }

  .hud {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat,
  .love-stat {
    padding: 10px;
  }

  .stat strong {
    font-size: 21px;
  }

  .board {
    border-width: 2px;
  }

  .runner-panel {
    border-width: 2px;
  }

  .runner-message {
    font-size: 12px;
  }

  .runner-controls {
    left: 12px;
    right: 12px;
    justify-content: space-between;
  }

  .control-button {
    width: 50px;
    height: 50px;
  }

  .target {
    min-width: 34px;
    min-height: 34px;
  }

  .target span {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .agent-list {
    grid-template-columns: 1fr;
  }

  .cover-content,
  .modal-content {
    padding: 18px;
  }

  .cover-content h2,
  .modal-content h2 {
    font-size: 32px;
  }

  .mode-tabs,
  .cover-mode-switch {
    grid-template-columns: 1fr;
  }

  .victory-gallery.is-runner {
    grid-template-columns: 1fr 1fr;
  }
}
