:root {
  --bg-main: #070b1a;
  --bg-card: rgba(15, 22, 48, 0.88);
  --text-main: #eef3ff;
  --accent: #76d0ff;
  --good: #28c76f;
  --bad: #ff5b6e;
  --track: #121b3d;
  --glass-bg: linear-gradient(145deg, rgba(22, 34, 74, 0.62), rgba(10, 17, 40, 0.74));
  --glass-border: rgba(168, 223, 255, 0.23);
  --glow-accent: 0 0 20px rgba(118, 208, 255, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% 12%, rgba(118, 208, 255, 0.14), transparent 35%),
    radial-gradient(circle at 88% 18%, rgba(148, 99, 255, 0.12), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(90, 180, 255, 0.1), transparent 40%),
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.25) 1px, transparent 2px),
    radial-gradient(circle at 70% 35%, rgba(255, 255, 255, 0.2) 1px, transparent 2px),
    radial-gradient(circle at 35% 75%, rgba(255, 255, 255, 0.22) 1px, transparent 2px),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.18) 1px, transparent 2px),
    linear-gradient(180deg, #060913 0%, #0b1230 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 220px 220px, 280px 280px, 250px 250px, 320px 320px, 100% 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: max(10px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  overflow-y: auto;
}

.meteor-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: visible;
}

.meteor {
  position: absolute;
  width: var(--meteor-size, 3px);
  height: var(--meteor-size, 3px);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(190, 240, 255, 0.95) 0%, rgba(190, 240, 255, 0.35) 55%, transparent 100%);
  box-shadow:
    0 0 8px rgba(162, 227, 255, 0.45),
    -18px 0 18px rgba(162, 227, 255, 0.22);
  animation: meteor-fly var(--meteor-duration, 640ms) linear forwards;
  opacity: 0;
}

.level-star {
  position: absolute;
  width: var(--star-size, 9px);
  height: var(--star-size, 9px);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(206, 246, 255, 0.92) 48%, rgba(206, 246, 255, 0.2) 100%);
  box-shadow: 0 0 18px rgba(186, 242, 255, 0.78), 0 0 28px rgba(153, 231, 255, 0.4);
  animation: level-star-fall var(--star-duration, 1200ms) ease-out forwards;
  opacity: 1;
}

.level-star-final {
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(220, 251, 255, 0.98) 42%, rgba(220, 251, 255, 0.32) 100%);
  box-shadow: 0 0 24px rgba(198, 246, 255, 0.95), 0 0 38px rgba(155, 236, 255, 0.68);
}

@keyframes meteor-fly {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  12% {
    opacity: 0.88;
  }
  100% {
    transform: translate3d(var(--meteor-dx, -78vw), var(--meteor-dy, 34vh), 0);
    opacity: 0;
  }
}

@keyframes level-star-fall {
  0% {
    transform: translate3d(0, 0, 0) scale(0.86);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--star-drift, 0), 170px, 0) scale(1.12);
    opacity: 0;
  }
}

.game {
  width: min(980px, 100%);
  background: linear-gradient(145deg, rgba(18, 29, 67, 0.88), rgba(10, 17, 43, 0.9));
  border: 1px solid rgba(133, 212, 255, 0.45);
  border-radius: 20px;
  padding: clamp(16px, 2.2vw, 24px) clamp(12px, 2vw, 20px) clamp(12px, 2vw, 20px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    var(--glow-accent);
  position: relative;
  z-index: 1;
}

.hero-block {
  margin-bottom: 16px;
}

h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(28px, 3.4vw, 42px);
  color: var(--accent);
}

.hero-title-main,
.hero-title-sub {
  display: block;
}

.subtitle-hint {
  margin: 8px auto 0;
  width: fit-content;
  max-width: min(92%, 820px);
  padding: 8px 16px;
  text-align: center;
  font-size: clamp(14px, 1.35vw, 20px);
  color: rgba(220, 236, 255, 0.72);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(35, 56, 120, 0.32), rgba(18, 31, 72, 0.3));
  border: 1px solid rgba(170, 223, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.top-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.status-card {
  background: var(--glass-bg);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border-radius: 14px;
  padding: 10px 14px;
  border: 1px solid var(--glass-border);
  font-size: clamp(18px, 2.2vw, 24px);
  box-shadow: 0 10px 24px rgba(5, 10, 26, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.status-card p {
  margin: 6px 0;
}

.progress-line {
  margin: 2px 0 8px;
  line-height: 1.05;
}

.progress-current {
  font-size: clamp(30px, 2.8vw, 44px);
  font-weight: 800;
  color: #eaf6ff;
  text-shadow: 0 0 14px rgba(135, 218, 255, 0.35);
}

.progress-sep {
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 700;
  color: rgba(205, 227, 247, 0.75);
}

.progress-total {
  font-size: clamp(22px, 1.8vw, 30px);
  font-weight: 600;
  color: rgba(185, 212, 238, 0.62);
}

#message {
  min-height: 40px;
}

.fire-badge {
  margin: 6px 0 0;
  display: inline-block;
  font-weight: 700;
  color: #ffb347;
  text-shadow: 0 0 10px rgba(255, 170, 0, 0.35);
}

.track {
  margin: 14px 0;
  padding: 12px;
  background: linear-gradient(150deg, rgba(17, 27, 61, 0.78), rgba(9, 14, 33, 0.8));
  border-radius: 16px;
  border: 1px solid rgba(154, 214, 255, 0.2);
  position: relative;
  box-shadow: 0 12px 26px rgba(5, 10, 28, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lane {
  margin-bottom: 10px;
}

.lane:last-child {
  margin-bottom: 0;
}

.label {
  display: inline-block;
  width: 120px;
  font-size: clamp(16px, 1.7vw, 24px);
}

.progress {
  display: inline-block;
  width: calc(100% - 140px);
  height: 52px;
  vertical-align: middle;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(26, 37, 86, 0.9), rgba(18, 27, 68, 0.88));
  border: 1px solid rgba(150, 206, 255, 0.18);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 8px 14px rgba(7, 13, 34, 0.45), inset 0 -3px 8px rgba(155, 213, 255, 0.06);
}

.runner {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 34px;
  transition: transform 0.55s ease-out, filter 0.35s ease;
  will-change: transform;
  filter: drop-shadow(0 0 9px rgba(125, 214, 255, 0.65));
}

.runner::after {
  content: "";
  position: absolute;
  right: 88%;
  top: 50%;
  width: 28px;
  height: 9px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(167, 229, 255, 0.36), rgba(167, 229, 255, 0.08), transparent);
  filter: blur(1.1px);
  opacity: 0.65;
  pointer-events: none;
}

.runner.boosted {
  filter:
    drop-shadow(0 0 14px rgba(132, 226, 255, 0.82))
    drop-shadow(0 0 20px rgba(132, 226, 255, 0.45));
}

.runner.boosted::after {
  width: 34px;
  opacity: 0.78;
}

.runner.super-boosted {
  filter:
    drop-shadow(0 0 18px rgba(126, 245, 255, 0.95))
    drop-shadow(0 0 30px rgba(126, 245, 255, 0.65));
}

.runner.super-boosted::after {
  width: 40px;
  opacity: 0.9;
  background: linear-gradient(90deg, rgba(182, 246, 255, 0.46), rgba(182, 246, 255, 0.14), transparent);
}

.runner.alien-jump {
  animation: alien-rush-jump 260ms ease-out;
  filter:
    drop-shadow(0 0 10px rgba(132, 255, 165, 0.72))
    drop-shadow(0 0 18px rgba(132, 255, 165, 0.34));
}

@keyframes alien-rush-jump {
  0% {
    top: 8px;
  }
  40% {
    top: 1px;
  }
  100% {
    top: 8px;
  }
}

.goal {
  position: absolute;
  right: 8px;
  top: -16px;
  font-size: clamp(34px, 3.8vw, 46px);
}

.question-card {
  background: var(--glass-bg);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 14px 26px rgba(5, 10, 28, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#question {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(28px, 4.4vw, 56px);
  letter-spacing: 1px;
}

.question-timer {
  margin: 0 0 10px;
}

.question-timer-text {
  margin: 0 0 6px;
  font-size: clamp(14px, 1.35vw, 18px);
  color: rgba(212, 232, 252, 0.9);
}

.timer-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(128, 163, 214, 0.22);
  overflow: hidden;
  border: 1px solid rgba(160, 211, 255, 0.22);
}

.timer-bar-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #52d1ff 0%, #58e9b2 100%);
  transition: width 0.35s linear, background 0.25s ease;
}

.timer-bar-fill.warning {
  background: linear-gradient(90deg, #7dd8ff 0%, #ffcc66 100%);
}

.timer-bar-fill.danger {
  background: linear-gradient(90deg, #ff7b7b 0%, #ff4d4d 100%);
}

.answers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.answer-btn {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700;
  border: 1px solid rgba(167, 222, 255, 0.3);
  border-radius: 14px;
  padding: 14px 8px;
  color: var(--text-main);
  background: linear-gradient(180deg, rgba(45, 68, 145, 0.78), rgba(28, 42, 95, 0.8));
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 16px rgba(7, 13, 35, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.answer-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(163, 228, 255, 0.86);
  box-shadow: 0 0 18px rgba(118, 208, 255, 0.42), 0 12px 20px rgba(7, 13, 35, 0.4);
}

.answer-btn:disabled {
  cursor: not-allowed;
  opacity: 0.85;
}

.answer-btn.correct {
  background: linear-gradient(180deg, rgba(42, 155, 95, 0.5), rgba(29, 120, 76, 0.52));
  border-color: rgba(104, 244, 171, 0.9);
  box-shadow: 0 0 16px rgba(40, 199, 111, 0.5);
  animation: answer-correct-pop 260ms ease-out;
}

.answer-btn.wrong {
  background: linear-gradient(180deg, rgba(170, 62, 84, 0.5), rgba(134, 42, 59, 0.54));
  border-color: rgba(255, 136, 153, 0.9);
  box-shadow: 0 0 16px rgba(255, 91, 110, 0.45);
  animation: answer-wrong-shake 240ms ease-in-out;
}

@keyframes answer-correct-pop {
  0% {
    transform: scale(1);
  }
  55% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1.03);
  }
}

@keyframes answer-wrong-shake {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-5px);
  }
  40% {
    transform: translateX(4px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(2px);
  }
  100% {
    transform: translateX(0);
  }
}

.message-good {
  color: var(--good);
  font-weight: 700;
}

.message-level-win {
  animation: message-level-win-show 380ms ease-out;
  text-shadow: 0 0 12px rgba(117, 255, 185, 0.42), 0 0 24px rgba(117, 255, 185, 0.24);
}

.message-final-win {
  animation: message-level-win-show 430ms ease-out;
  text-shadow: 0 0 16px rgba(136, 255, 200, 0.62), 0 0 34px rgba(136, 255, 200, 0.42);
}

.message-bad {
  color: var(--bad);
  font-weight: 700;
}

.restart {
  margin-top: 16px;
  width: 100%;
  min-height: 52px;
  font-size: clamp(20px, 2.35vw, 28px);
  border: 1px solid rgba(182, 221, 247, 0.62);
  border-radius: 14px;
  padding: 9px 12px;
  color: #0a172d;
  background: linear-gradient(90deg, #8eeffd 0%, #9cefd4 50%, #90f2c2 100%);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 8px 16px rgba(7, 16, 38, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.restart:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(7, 16, 38, 0.4);
  filter: brightness(1.02);
}

.next-level-btn {
  border-color: rgba(182, 243, 214, 0.72);
  background: linear-gradient(90deg, #8eeffd 0%, #9cefd4 48%, #90f2c2 100%);
  color: #0a172d;
}

.next-level-btn:hover {
  filter: brightness(1.03);
}

#restartBtn {
  color: rgba(207, 228, 248, 0.96);
  border: 1px solid rgba(153, 201, 236, 0.5);
  background: rgba(16, 29, 66, 0.22);
}

#restartBtn:hover {
  filter: brightness(1.03);
}

.level-cta-show {
  animation: level-cta-appear 280ms ease-out;
}

@keyframes level-cta-appear {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.9);
  }
  65% {
    opacity: 1;
    transform: translateY(0) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes message-level-win-show {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  70% {
    opacity: 1;
    transform: scale(1.06);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

#startBtn {
  margin-top: 10px;
}

.rules-card {
  margin: 10px 0 14px;
  padding: 12px 14px;
  background: rgba(8, 16, 40, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  font-size: clamp(16px, 1.8vw, 22px);
}

.rules-card h3 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: clamp(20px, 2.2vw, 28px);
}

.rules-card p {
  margin: 6px 0;
}

.boost-card {
  margin: 10px 0 14px;
  padding: 12px 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(5, 10, 28, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.boost-card h3 {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: clamp(20px, 2.2vw, 28px);
}

.boost-hint {
  margin: 0 0 10px;
  font-size: clamp(15px, 1.6vw, 20px);
  opacity: 0.92;
}

.boost-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.boost-item {
  border: 1px solid rgba(170, 223, 255, 0.22);
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(165deg, rgba(37, 56, 122, 0.55), rgba(24, 38, 83, 0.62));
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 9px 18px rgba(6, 12, 30, 0.36);
}

.boost-item.unlocked {
  border-color: rgba(113, 227, 171, 0.65);
}

.boost-item.inactive {
  opacity: 0.5;
  filter: saturate(0.75);
  border-color: rgba(142, 176, 216, 0.2);
}

.boost-item.active {
  background: linear-gradient(165deg, rgba(53, 120, 96, 0.72), rgba(32, 86, 69, 0.74));
  border-color: #71e3ab;
  box-shadow: 0 0 0 1px rgba(113, 227, 171, 0.3) inset, 0 0 20px rgba(113, 227, 171, 0.35);
  opacity: 1;
  filter: none;
}

.boost-icon {
  display: block;
  font-size: 30px;
  margin-bottom: 6px;
}

.boost-line {
  display: block;
  margin: 0;
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.15;
  white-space: nowrap;
}

.boost-name {
  font-size: clamp(14px, 1.3vw, 18px);
  margin: 0 0 4px;
}

.boost-meta {
  margin: 0;
  font-size: clamp(13px, 1.1vw, 16px);
  opacity: 0.95;
}

.text-good {
  color: var(--good);
  font-weight: 700;
}

.text-bad {
  color: var(--bad);
  font-weight: 700;
}

.result-card {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  font-size: clamp(18px, 2vw, 24px);
  box-shadow: 0 12px 24px rgba(5, 10, 28, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: result-card-show 240ms ease-out;
}

.result-card p {
  margin: 4px 0;
}

.result-card.result-win {
  border-color: rgba(121, 236, 173, 0.62);
  box-shadow:
    0 0 32px rgba(74, 218, 137, 0.42),
    0 12px 24px rgba(5, 10, 28, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: result-card-show 240ms ease-out, result-win-glow 260ms ease-out;
}

.result-card.result-final-win {
  border-color: rgba(153, 244, 191, 0.82);
  box-shadow:
    0 0 44px rgba(98, 236, 164, 0.55),
    0 0 84px rgba(98, 236, 164, 0.24),
    0 12px 24px rgba(5, 10, 28, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.final-mission-text {
  margin-top: 6px;
  color: #b8ffe2;
  text-shadow: 0 0 10px rgba(145, 255, 206, 0.35);
}

@keyframes result-card-show {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes result-win-glow {
  0% {
    transform: scale(0.99);
    filter: brightness(1);
  }
  55% {
    transform: scale(1.02);
    filter: brightness(1.03);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.hidden {
  display: none;
}

@media (max-width: 780px) {
  body {
    padding: max(8px, env(safe-area-inset-top)) 8px max(10px, env(safe-area-inset-bottom));
  }

  .game {
    border-radius: 16px;
  }

  .top-panel {
    grid-template-columns: 1fr;
  }

  .label {
    width: 90px;
  }

  .progress {
    width: calc(100% - 100px);
    height: 48px;
  }

  .runner {
    font-size: 30px;
    top: 7px;
  }

  .track {
    padding-top: 16px;
  }

  .goal {
    top: -14px;
    right: 6px;
  }

  .answers {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .answer-btn {
    padding: 12px 8px;
  }

  .boost-list {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(24px, 8vw, 32px);
    margin-bottom: 12px;
  }

  .status-card {
    font-size: clamp(17px, 5vw, 21px);
    padding: 10px;
  }

  .label {
    width: 100%;
    margin-bottom: 6px;
  }

  .progress {
    width: 100%;
  }

  .lane {
    margin-bottom: 14px;
  }

  #question {
    font-size: clamp(34px, 11vw, 46px);
  }

  .restart {
    margin-top: 12px;
    font-size: clamp(20px, 7vw, 28px);
  }

  .boost-list {
    grid-template-columns: 1fr;
  }

}

@media (min-width: 1024px) {
  body {
    padding: 8px 12px;
  }

  .game {
    max-width: 1180px;
    padding: 12px 14px;
  }

  h1 {
    margin-bottom: 10px;
    font-size: clamp(30px, 2.6vw, 44px);
  }

  .top-panel {
    gap: 8px;
    margin-bottom: 8px;
  }

  .status-card {
    padding: 8px 10px;
    font-size: clamp(16px, 1.25vw, 22px);
  }

  .status-card p {
    margin: 4px 0;
  }

  .rules-card,
  .boost-card {
    margin: 8px 0 10px;
    padding: 10px 12px;
  }

  .rules-card p {
    margin: 4px 0;
    font-size: clamp(15px, 1.1vw, 20px);
  }

  .boost-hint {
    margin-bottom: 8px;
    font-size: clamp(14px, 1vw, 18px);
  }

  .track {
    margin: 10px 0;
    padding: 10px;
  }

  .lane {
    margin-bottom: 8px;
  }

  .progress {
    height: 46px;
  }

  .runner {
    font-size: 30px;
    top: 6px;
  }

  .goal {
    top: -12px;
    font-size: clamp(30px, 2.5vw, 40px);
  }

  .question-card {
    padding: 12px;
  }

  #question {
    margin-bottom: 10px;
    font-size: clamp(30px, 3vw, 48px);
  }

  .answers {
    gap: 8px;
  }

  .answer-btn {
    font-size: clamp(20px, 1.9vw, 32px);
    padding: 10px 8px;
  }

  .restart {
    margin-top: 10px;
    padding: 10px;
  }
}

/* New desktop layout: 3 columns, one screen, no scroll */
.game {
  max-width: 1200px;
}

.game-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 290px;
  gap: 8px;
  align-items: start;
}

.left-col,
.center-col,
.right-col {
  min-width: 0;
}

.center-col {
  display: flex;
  flex-direction: column;
}

.center-col .track {
  margin: 0 0 8px;
}

.center-col .question-card {
  padding: 12px;
  margin-bottom: 8px;
}

.center-col #question {
  margin-bottom: 8px;
  font-size: clamp(28px, 2.6vw, 44px);
}

.center-col .answers {
  gap: 8px;
}

.center-col .answer-btn {
  padding: 10px 8px;
  font-size: clamp(20px, 1.8vw, 30px);
}

.message-card {
  min-height: 72px;
}

.pause-stop-row {
  display: flex;
  gap: 10px;
  width: 100%;
  margin: 0;
}

.pause-stop-row .pause-btn,
.pause-stop-row .stop-btn {
  flex: 1 1 50%;
  width: 50%;
  margin: 0;
}

.action-zone {
  margin-top: 0;
  padding: 7px 8px 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20, 31, 70, 0.54), rgba(12, 20, 46, 0.68));
  border: 1px solid rgba(154, 218, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.action-zone .restart {
  margin-top: 0;
}

.pause-btn {
  color: #eff8ff;
  border-color: rgba(176, 224, 255, 0.62);
  background: linear-gradient(90deg, rgba(82, 134, 210, 0.9), rgba(64, 108, 185, 0.9));
}

.pause-btn:hover {
  filter: brightness(1.03);
}

.pause-btn.hidden {
  display: none;
}

.stop-btn {
  color: #ffeef1;
  border-color: rgba(255, 171, 184, 0.6);
  background: linear-gradient(90deg, rgba(198, 74, 95, 0.9), rgba(158, 47, 69, 0.9));
}

.stop-btn.hidden {
  display: none;
}

.stop-btn:hover {
  filter: brightness(1.03);
}

.right-col .boost-card {
  margin-top: 0;
}

.boost-list {
  grid-template-columns: repeat(2, minmax(120px, 1fr));
}

.rules-details {
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(8, 16, 40, 0.65);
}

.rules-details summary {
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 700;
  color: var(--accent);
}

.rules-details .rules-card {
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 12px 12px;
}

.left-col .rules-details {
  margin-top: 8px;
  width: fit-content;
  max-width: 100%;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  opacity: 0.76;
}

.left-col .rules-details summary {
  padding: 5px 10px;
  font-size: clamp(13px, 0.9vw, 15px);
  font-weight: 600;
  color: rgba(180, 215, 245, 0.9);
  list-style: none;
  border: 1px solid rgba(158, 208, 245, 0.24);
  border-radius: 999px;
  background: rgba(20, 34, 74, 0.16);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.left-col .rules-details summary::before {
  content: "▸";
  font-size: 11px;
  opacity: 0.7;
  transform: translateY(-1px);
}

.left-col .rules-details[open] summary::before {
  content: "▾";
}

.left-col .rules-details .rules-card {
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(160, 214, 248, 0.16);
  border-radius: 10px;
  background: rgba(13, 23, 52, 0.3);
}

.left-col .rules-details .rules-card p {
  margin: 4px 0;
  font-size: clamp(12px, 0.88vw, 14px);
  color: rgba(210, 230, 248, 0.78);
}

@media (min-width: 1024px) {
  body {
    min-height: 100svh;
    height: 100svh;
    overflow: hidden;
    padding: 8px 10px;
  }

  .game {
    width: min(1200px, 100%);
    height: calc(100svh - 16px);
    padding: 14px 12px 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .hero-block {
    margin-bottom: 14px;
  }

  h1 {
    font-size: clamp(30px, 2.5vw, 42px);
  }

  .game-layout {
    flex: 1;
    min-height: 0;
    align-items: stretch;
  }

  .center-col {
    justify-content: flex-end;
    min-height: 100%;
  }

  .left-col .status-card,
  .right-col .status-card,
  .right-col .boost-card,
  .center-col .track,
  .center-col .question-card,
  .center-col .result-card,
  .center-col .action-zone {
    margin-bottom: 6px;
  }

  .right-col .boost-card {
    padding: 10px;
  }

  .right-col .boost-hint {
    margin-bottom: 8px;
    font-size: clamp(13px, 0.95vw, 16px);
  }

  .right-col .boost-item {
    padding: 8px;
  }

  .right-col .boost-icon {
    font-size: 24px;
    margin-bottom: 4px;
  }

  .right-col .boost-name {
    margin-bottom: 2px;
    font-size: clamp(13px, 1.05vw, 16px);
  }

  .right-col .boost-meta {
    font-size: clamp(12px, 0.9vw, 14px);
  }

  .center-col .progress {
    height: 44px;
  }

  .center-col .runner {
    font-size: 28px;
    top: 5px;
  }

  .center-col .goal {
    top: -10px;
    font-size: clamp(28px, 2.1vw, 36px);
  }

  .center-col .restart {
    padding: 9px;
  }

  .rules-details {
    margin-top: 6px;
    flex: 0 0 auto;
  }

  .rules-details .rules-card p {
    margin: 3px 0;
    font-size: clamp(13px, 0.9vw, 16px);
  }
}

@media (max-width: 1023px) {
  .game-layout {
    grid-template-columns: 1fr;
  }

  .center-col {
    justify-content: flex-start;
  }

  .boost-list {
    grid-template-columns: 1fr;
  }
}

/* --- Visual polish pass: cleaner game UI hierarchy --- */
:root {
  --panel-bg-soft: linear-gradient(165deg, rgba(24, 37, 82, 0.58), rgba(12, 20, 47, 0.68));
  --panel-border-soft: rgba(160, 216, 255, 0.18);
  --shadow-soft: 0 8px 18px rgba(6, 12, 30, 0.34);
}

.game {
  border-width: 1px;
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 16px rgba(118, 208, 255, 0.25);
}

.hero-block {
  margin-bottom: 12px;
}

h1 {
  letter-spacing: 0.3px;
  text-shadow: 0 0 14px rgba(122, 207, 255, 0.24);
}

.subtitle-hint {
  padding: 7px 14px;
  font-size: clamp(13px, 1.05vw, 17px);
  color: rgba(221, 236, 255, 0.66);
  background: linear-gradient(180deg, rgba(33, 53, 114, 0.26), rgba(17, 30, 68, 0.24));
  border-color: rgba(160, 216, 255, 0.17);
}

.status-card,
.question-card,
.boost-card,
.action-zone,
.rules-details,
.center-col .track {
  background: var(--panel-bg-soft);
  border-color: var(--panel-border-soft);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.left-col .status-card,
.right-col .status-card {
  font-size: clamp(16px, 1.02vw, 19px);
}

.left-col .status-card p,
.right-col .status-card p {
  margin: 4px 0;
}

.message-card {
  min-height: 0;
}

#message {
  min-height: 0;
  font-size: clamp(16px, 1.02vw, 19px);
}

.right-col .boost-card h3 {
  font-size: clamp(19px, 1.32vw, 24px);
  line-height: 1.05;
  margin-bottom: 4px;
}

.right-col .boost-hint {
  margin-bottom: 6px;
  font-size: clamp(12px, 0.88vw, 14px);
  opacity: 0.82;
}

.right-col .boost-list {
  gap: 7px;
}

.right-col .boost-item {
  border-radius: 10px;
  padding: 7px;
}

.right-col .boost-icon {
  font-size: 21px;
  margin-bottom: 2px;
}

.right-col .boost-name {
  margin-bottom: 1px;
  font-size: clamp(12px, 0.95vw, 14px);
}

.right-col .boost-meta {
  font-size: clamp(11px, 0.82vw, 13px);
}

.center-col {
  justify-content: flex-start;
}

.center-col .track {
  margin-bottom: 8px;
}

.center-col .question-card {
  margin-bottom: 8px;
}

.center-col #question {
  font-size: clamp(38px, 3.1vw, 56px);
}

.center-col .answer-btn {
  font-size: clamp(23px, 2.15vw, 34px);
  box-shadow: 0 7px 12px rgba(7, 13, 35, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.action-zone {
  margin-top: auto;
  padding-bottom: 10px;
}

.action-zone .restart {
  margin-top: 0;
  box-shadow: 0 8px 16px rgba(7, 16, 38, 0.34);
}

.action-zone .restart + .restart {
  margin-top: 7px;
}

.rules-details {
  opacity: 0.9;
}

.left-col .rules-details {
  opacity: 0.74;
}

.rules-details summary {
  font-size: clamp(15px, 0.98vw, 17px);
}

.rules-details .rules-card p {
  color: rgba(228, 239, 255, 0.87);
}

@media (max-width: 1023px) {
  body {
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
  }

  h1 {
    font-size: clamp(26px, 7.4vw, 34px);
  }

  .subtitle-hint {
    display: none;
  }

  .hero-block {
    margin-bottom: 4px;
    display: block;
    flex: 0 0 auto;
    text-align: center;
  }

  .game.start-state .hero-title-main {
    font-size: clamp(26px, 7.6vw, 38px);
    font-weight: 800;
    line-height: 1.06;
  }

  .game.start-state .hero-title-sub {
    margin-top: 4px;
    font-size: clamp(18px, 5.6vw, 24px);
    font-weight: 700;
    line-height: 1.08;
    display: inline-block;
    padding: 2px 12px;
    border-radius: 999px;
    border: 1px solid rgba(136, 224, 255, 0.35);
    background: linear-gradient(180deg, rgba(20, 40, 88, 0.62), rgba(10, 25, 60, 0.68));
    box-shadow: 0 0 14px rgba(116, 224, 255, 0.22);
  }

  .game {
    height: 100%;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .game-layout {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    gap: 8px;
    min-height: 0;
  }

  .left-col {
    order: 1;
  }

  .center-col {
    order: 2;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }


  .center-col .question-card {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    margin: 0;
  }

  .center-col #question {
    margin: 10px 0 16px;
    font-size: clamp(28px, 8.5vw, 32px);
    line-height: 1.15;
  }

  .center-col .answers {
    gap: 11px;
    width: 100%;
  }

  .center-col .answer-btn {
    width: 100%;
    min-height: 52px;
  }

  .game.start-state .question-card {
    padding: 10px 11px;
    text-align: center;
    border-color: rgba(138, 212, 255, 0.26);
    background:
      radial-gradient(circle at 14% 10%, rgba(122, 211, 255, 0.14), transparent 45%),
      linear-gradient(165deg, rgba(21, 38, 84, 0.82), rgba(12, 24, 58, 0.88));
    box-shadow:
      0 0 16px rgba(97, 203, 255, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }

  .game.start-state .question-timer-text {
    font-size: clamp(16px, 4.2vw, 20px);
    font-weight: 600;
    line-height: 1.3;
    color: rgba(227, 241, 255, 0.96);
    text-shadow: 0 0 8px rgba(122, 214, 255, 0.24);
    margin-bottom: 8px;
  }

  .game.start-state #question {
    margin: 0;
    font-size: inherit;
    letter-spacing: 0;
    text-align: center;
  }

  .start-rule-main,
  .start-rule-sub {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .start-rule-main {
    font-size: clamp(26px, 8vw, 35px);
    font-weight: 800;
    line-height: 1.28;
    text-align: center;
  }

  .start-rule-sub {
    margin-top: 10px;
    font-size: clamp(18px, 5.2vw, 24px);
    font-weight: 700;
    line-height: 1.32;
    color: rgba(231, 243, 255, 0.96);
    text-shadow: 0 0 10px rgba(127, 213, 255, 0.24);
  }

  .game.start-state .answers {
    gap: 14px;
    justify-items: center;
    width: 100%;
    margin: 0;
    margin-top: 22px;
  }

  .start-scene {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(134, 209, 255, 0.24);
    border-radius: 12px;
    background: linear-gradient(170deg, rgba(20, 36, 79, 0.56), rgba(11, 24, 58, 0.62));
  }

  .start-lane {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 10px;
    width: 86%;
    margin: 0 auto;
  }

  .start-runner {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    line-height: 1;
    justify-self: start;
  }

  .start-runner-rocket,
  .start-runner-alien {
    font-size: 32px;
  }

  .start-runner-rocket {
    animation: start-rocket-hover 1.8s ease-in-out infinite;
    will-change: transform;
  }

  .start-scene-line {
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(98, 229, 255, 0.32), rgba(98, 229, 255, 0.95), rgba(111, 215, 255, 0.32));
    background-size: 220% 100%;
    box-shadow: 0 0 9px rgba(115, 226, 255, 0.45);
    animation: start-line-flow 2.1s linear infinite;
    position: relative;
  }

  .start-lane:nth-child(2) .start-scene-line {
    background: linear-gradient(90deg, rgba(132, 247, 177, 0.3), rgba(132, 247, 177, 0.94), rgba(132, 247, 177, 0.3));
    background-size: 220% 100%;
    box-shadow: 0 0 9px rgba(126, 245, 169, 0.4);
    animation-duration: 2.3s;
  }

  .start-scene-line::after {
    content: "";
    position: absolute;
    inset: -2px 0;
    background:
      radial-gradient(circle, rgba(165, 236, 255, 0.85) 1.1px, transparent 2px) 0 50%/16px 100% repeat-x;
    opacity: 0.68;
    pointer-events: none;
  }

  .start-goal {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    line-height: 1;
    justify-self: end;
    filter: drop-shadow(0 0 8px rgba(129, 224, 255, 0.36));
  }


  .start-mission-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    text-align: center;
    color: rgba(225, 236, 252, 0.9);
    display: none;
  }

  .game.start-state .game-layout {
    justify-content: flex-start;
    align-content: flex-start;
    gap: 8px;
  }

  .game.start-state .center-col {
    flex: 0 0 auto;
    margin-top: 4px;
  }

  .game.start-state {
    justify-content: flex-start;
  }

  .game.start-state .right-col {
    display: none;
  }

  .game.start-state .action-zone {
    margin-top: 8px;
    padding-top: 4px;
  }

  .game.start-state .action-zone #startBtn {
    background: linear-gradient(90deg, #7ce9f8 0%, #7fe7d9 52%, #84efb8 100%);
    border-color: rgba(184, 240, 255, 0.75);
    box-shadow:
      0 0 26px rgba(123, 241, 255, 0.52),
      0 0 42px rgba(123, 241, 255, 0.2),
      0 8px 16px rgba(7, 16, 38, 0.34);
    animation: start-btn-pulse 1.9s ease-in-out infinite;
    transform-origin: center;
  }

  .game.start-state {
    background:
      radial-gradient(circle at 18% 12%, rgba(126, 216, 255, 0.14) 0 1px, transparent 2px),
      radial-gradient(circle at 80% 18%, rgba(171, 220, 255, 0.16) 0 1px, transparent 2px),
      radial-gradient(circle at 28% 82%, rgba(171, 220, 255, 0.11) 0 1px, transparent 2px);
    background-size: 230px 230px, 280px 280px, 260px 260px;
    background-position: 0 0, 0 0, 0 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }

  .game.start-state::after {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -140px;
    height: 270px;
    border-radius: 50% 50% 0 0;
    background:
      radial-gradient(ellipse at center top, rgba(72, 108, 184, 0.2), rgba(10, 19, 48, 0.96) 68%);
    pointer-events: none;
    z-index: 0;
  }

  .game.start-state .hero-block,
  .game.start-state .game-layout {
    position: relative;
    z-index: 1;
  }

  @keyframes start-btn-pulse {
    0% {
      transform: scale(1);
      box-shadow:
        0 0 22px rgba(123, 241, 255, 0.46),
        0 8px 16px rgba(7, 16, 38, 0.34);
    }
    50% {
      transform: scale(1.03);
      box-shadow:
        0 0 30px rgba(123, 241, 255, 0.62),
        0 10px 18px rgba(7, 16, 38, 0.38);
    }
    100% {
      transform: scale(1);
      box-shadow:
        0 0 22px rgba(123, 241, 255, 0.46),
        0 8px 16px rgba(7, 16, 38, 0.34);
    }
  }

  @keyframes start-rocket-hover {
    0%,
    100% {
      transform: translateX(0) translateY(0) rotate(0deg);
    }
    35% {
      transform: translateX(1px) translateY(-1px) rotate(-2deg);
    }
    70% {
      transform: translateX(2px) translateY(0) rotate(1deg);
    }
  }

  @keyframes start-line-flow {
    0% {
      background-position: 0% 50%;
    }
    100% {
      background-position: 200% 50%;
    }
  }

  @media (max-width: 420px) {
    .game.start-state .hero-title-main {
      font-size: clamp(26px, 7.6vw, 36px);
    }

    .game.start-state .hero-title-sub {
      font-size: clamp(18px, 5.8vw, 24px);
      padding: 2px 10px;
    }

    .start-rule-main {
      font-size: clamp(24px, 7.2vw, 30px);
    }

    .start-rule-sub {
      margin-top: 8px;
      font-size: clamp(17px, 5vw, 22px);
    }

    .start-lane {
      grid-template-columns: 28px minmax(0, 1fr) 28px;
      gap: 6px;
    }

    .start-runner,
    .start-runner-rocket,
    .start-runner-alien {
      width: 28px;
      height: 28px;
      font-size: 28px;
    }

    .start-goal {
      font-size: 24px;
    }
  }

  .status-card,
  .track,
  .question-card,
  .boost-card,
  .result-card {
    padding: 8px 10px;
  }

  .game:not(.mobile-finished) .left-col,
  .game:not(.mobile-finished) .center-col .track,
  .game:not(.mobile-finished) .right-col .status-card,
  .game:not(.mobile-finished) .right-col .message-card,
  .game:not(.mobile-finished) .center-col .result-card {
    display: none;
  }

  .game:not(.mobile-playing):not(.mobile-finished) .right-col .boost-card {
    display: none;
  }

  .game.mobile-playing .right-col .boost-card {
    display: block;
  }

  .game.mobile-playing {
    justify-content: flex-start;
  }

  .game.mobile-playing .hero-block {
    margin-bottom: 6px;
  }

  .game.mobile-playing .game-layout {
    flex: 1;
    justify-content: flex-start;
    gap: 8px;
  }

  .game.mobile-playing .center-col {
    flex: 1 1 auto;
    min-height: 0;
    justify-content: flex-start;
  }

  .game.mobile-playing .center-col .question-card {
    padding: 8px 10px;
    margin-bottom: 4px;
  }

  .game.mobile-playing .center-col .answers {
    gap: 8px;
  }

  .game.mobile-playing .center-col .answer-btn {
    min-height: 46px;
  }

  .right-col .boost-card {
    margin: 0;
    position: static;
    height: auto;
    max-height: none;
    overflow: hidden;
    padding: 4px 6px;
    opacity: 0.8;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .right-col .boost-card h3 {
    margin: 0 0 4px;
    font-size: clamp(13px, 4.2vw, 15px);
    line-height: 1.05;
  }

  .right-col .boost-hint {
    display: none;
  }

  .right-col .boost-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
  }

  .right-col .boost-item {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 6px;
    text-align: left;
  }

  .right-col .boost-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin: 0;
    flex: 0 0 auto;
  }

  .right-col .boost-line {
    margin: 0;
    flex: 1;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(9px, 2.8vw, 11px);
    line-height: 1.1;
  }

  .action-zone {
    margin-top: 12px;
    position: static;
    width: 100%;
    padding: 4px 0 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .action-zone .restart {
    min-height: 40px;
  }

  .pause-stop-row {
    display: flex;
    gap: 10px;
    width: 100%;
    margin: 6px 0 4px;
  }

  .pause-stop-row .pause-btn,
  .pause-stop-row .stop-btn {
    flex: 1 1 50%;
    width: 50%;
    min-height: 36px;
    margin: 0;
    display: block;
    font-size: clamp(15px, 4.5vw, 18px);
    color: rgba(228, 240, 255, 0.9);
    box-shadow: none;
    opacity: 0.86;
  }

  .pause-stop-row .pause-btn {
    border-color: rgba(185, 161, 255, 0.52);
    background: linear-gradient(180deg, rgba(112, 84, 196, 0.74), rgba(74, 52, 149, 0.76));
  }

  .pause-stop-row .stop-btn {
    border-color: rgba(255, 158, 172, 0.5);
    background: linear-gradient(180deg, rgba(172, 70, 92, 0.74), rgba(125, 43, 61, 0.76));
  }

  .pause-stop-row .pause-btn.hidden,
  .pause-stop-row .stop-btn.hidden {
    display: none;
  }

  .game.start-state .pause-stop-row {
    display: none;
  }

  .game.start-state .action-zone .pause-btn,
  .game.start-state .action-zone .stop-btn,
  .game.start-state .action-zone #restartBtn,
  .game.start-state .action-zone #nextLevelBtn {
    display: none;
  }

  .game.start-state .action-zone #startBtn {
    min-height: 50px;
    max-width: 280px;
    margin: 0 auto;
    display: block;
  }

  .right-col {
    order: 3;
    flex: 0 0 auto;
    width: 100%;
    max-width: 360px;
    max-height: none;
    overflow: hidden;
    margin: 4px auto 0;
  }

  .game.mobile-playing .center-col .action-zone {
    display: none;
  }

  .game:not(.mobile-playing) .pause-stop-row {
    display: none;
  }

  .game.mobile-finished .left-col,
  .game.mobile-finished .center-col .track,
  .game.mobile-finished .center-col .question-card {
    display: none;
  }

  .game.mobile-finished .center-col .result-card,
  .game.mobile-finished .center-col .action-zone {
    display: block;
  }

  .game.mobile-finished .center-col {
    gap: 6px;
  }

  .game.mobile-finished .right-col {
    display: block;
  }

  .game.mobile-finished .action-zone {
    position: static;
  }

  .game.mobile-finished .right-col .status-card:not(.message-card) {
    display: none;
  }
}

@media (min-width: 1024px) {
  .game.start-state .center-col #question {
    font-size: clamp(22px, 1.8vw, 30px);
    line-height: 1.16;
  }

  .game.start-state .start-rule-main {
    font-size: clamp(22px, 1.85vw, 31px);
    font-weight: 800;
    line-height: 1.16;
  }

  .game.start-state .start-rule-sub {
    margin-top: 4px;
    font-size: clamp(15px, 1.05vw, 18px);
    font-weight: 700;
    line-height: 1.22;
    color: rgba(227, 239, 255, 0.94);
  }

  .game.start-state .center-col .question-card {
    padding: 8px 10px;
    margin-bottom: 4px;
  }

  .game.start-state .answers {
    margin-top: 8px;
    gap: 8px;
  }

  .game.start-state .start-scene {
    gap: 6px;
    padding: 6px 8px;
  }

  .game.start-state .question-timer {
    margin-bottom: 6px;
  }

  .game.start-state .question-timer-text {
    margin-bottom: 4px;
    font-size: clamp(13px, 0.95vw, 16px);
  }

  .game.start-state .timer-bar {
    height: 6px;
  }

  .game.start-state .action-zone {
    margin-top: 4px;
    padding: 4px 8px 8px;
  }

  .game.start-state .action-zone #startBtn {
    min-height: 46px;
  }
}
