.game-panel {
  border: 1px solid rgba(0, 255, 213, 0.34);
  border-radius: 24px;
  padding: 14px;
  display: grid;
  gap: 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 255, 213, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(0, 255, 213, 0.09), rgba(0, 0, 0, 0.18)),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    0 0 34px rgba(0, 255, 213, 0.20),
    inset 0 0 28px rgba(0, 255, 213, 0.04);
}

.game-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.game-kicker {
  margin: 0 0 4px;
  color: #00ffd5;
  font-size: 10px;
  letter-spacing: 0.20em;
  font-weight: 1000;
}

.game-panel h2 {
  margin: 0;
  color: #ecfffb;
  font-size: 26px;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.game-pill {
  min-width: 88px;
  min-height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: rgba(236, 255, 251, 0.68);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.12em;
}

.game-pill.is-running {
  color: #001412;
  background: linear-gradient(90deg, #00ffd5, #52ff9a);
  box-shadow: 0 0 24px rgba(0, 255, 213, 0.36);
}

.game-pill.is-finished {
  color: #001412;
  background: linear-gradient(90deg, #ff7a18, #00ffd5);
  box-shadow: 0 0 24px rgba(255, 122, 24, 0.36);
}

.game-arena {
  min-height: 220px;
  border-radius: 24px;
  border: 1px solid rgba(0, 255, 213, 0.28);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 255, 213, 0.18), transparent 38%),
    rgba(0, 0, 0, 0.34);
}

.game-scanlines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 255, 213, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 213, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.9;
}

.game-target-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 146px;
  height: 146px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 2px solid rgba(0, 255, 213, 0.34);
  box-shadow:
    0 0 0 18px rgba(0, 255, 213, 0.045),
    0 0 40px rgba(0, 255, 213, 0.24);
  animation: gameRing 2.8s linear infinite;
}

.game-player-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #001412;
  background: linear-gradient(180deg, #00ffd5, #6ffff0);
  border: 3px solid rgba(236, 255, 251, 0.96);
  box-shadow:
    0 0 0 14px rgba(0, 255, 213, 0.12),
    0 0 44px rgba(0, 255, 213, 0.58);
  font-size: 18px;
  font-weight: 1000;
  z-index: 4;
}

.game-arena-top,
.game-arena-bottom {
  position: absolute;
  left: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.game-arena-top {
  top: 12px;
  border-radius: 17px;
  padding: 10px 12px;
  background: rgba(1, 8, 10, 0.72);
  border: 1px solid rgba(0, 255, 213, 0.22);
  backdrop-filter: blur(8px);
}

.game-arena-top span,
.game-arena-bottom span {
  display: block;
  color: rgba(236, 255, 251, 0.44);
  font-size: 9px;
  letter-spacing: 0.16em;
  font-weight: 1000;
}

.game-arena-top strong,
.game-arena-bottom strong {
  display: block;
  margin-top: 4px;
  color: #ecfffb;
  font-size: 13px;
  font-weight: 900;
}

.game-arena-bottom {
  bottom: 12px;
}

.game-arena-bottom div {
  flex: 1;
  border-radius: 16px;
  padding: 9px 10px;
  background: rgba(1, 8, 10, 0.74);
  border: 1px solid rgba(0, 255, 213, 0.18);
  backdrop-filter: blur(8px);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.game-stat {
  min-height: 58px;
  border-radius: 16px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(236, 255, 251, 0.08);
}

.game-stat span {
  display: block;
  color: rgba(236, 255, 251, 0.45);
  font-size: 9px;
  letter-spacing: 0.13em;
  font-weight: 1000;
}

.game-stat strong {
  display: block;
  margin-top: 7px;
  color: #ecfffb;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.game-button {
  width: 100%;
  min-height: 60px;
  border: 0;
  border-radius: 20px;
  color: #001412;
  background: linear-gradient(90deg, #00ffd5, #52ff9a);
  box-shadow:
    0 0 32px rgba(0, 255, 213, 0.38),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  font-size: 15px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-button:active {
  transform: scale(0.985);
}

.game-button.is-running {
  background: linear-gradient(90deg, #ffb020, #00ffd5);
}

.game-button.is-finished {
  background: linear-gradient(90deg, #ff7a18, #00ffd5);
}

.game-help {
  margin: -2px 0 0;
  color: rgba(236, 255, 251, 0.56);
  font-size: 12px;
  line-height: 1.28;
  font-weight: 750;
  text-align: center;
}

body.game-running .game-player-orb {
  animation: gameOrbPulse 900ms ease-in-out infinite;
}

body.game-hit .game-player-orb {
  animation: gameHit 240ms ease-out;
}

body.game-finished .game-target-ring {
  border-color: rgba(255, 122, 24, 0.70);
  box-shadow:
    0 0 0 20px rgba(255, 122, 24, 0.08),
    0 0 48px rgba(255, 122, 24, 0.36);
}

@keyframes gameRing {
  from {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg) scale(1);
  }
}

@keyframes gameOrbPulse {
  0%, 100% {
    box-shadow:
      0 0 0 10px rgba(0, 255, 213, 0.10),
      0 0 32px rgba(0, 255, 213, 0.52);
  }

  50% {
    box-shadow:
      0 0 0 20px rgba(0, 255, 213, 0.18),
      0 0 56px rgba(0, 255, 213, 0.78);
  }
}

@keyframes gameHit {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
  }

  60% {
    transform: translate(-50%, -50%) scale(1.22);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 390px), (max-height: 780px) {
  .game-panel {
    border-radius: 20px;
    padding: 11px;
    gap: 9px;
  }

  .game-panel h2 {
    font-size: 21px;
  }

  .game-arena {
    min-height: 178px;
    border-radius: 20px;
  }

  .game-target-ring {
    width: 118px;
    height: 118px;
  }

  .game-player-orb {
    width: 62px;
    height: 62px;
    font-size: 15px;
  }

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

  .game-stat {
    min-height: 50px;
  }

  .game-button {
    min-height: 54px;
    border-radius: 18px;
    font-size: 14px;
  }
}
