* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #061118 url("img/background.jpg") center/cover no-repeat;
  color: #fff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  user-select: none;
}

.game-container {
  width: 100%;
  max-width: 760px;
  background: rgba(10, 20, 30, 0.88);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(0, 240, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
  padding: 20px;
  position: relative;
  overflow: hidden;
  margin: 15px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 15px;
}

.title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: #00f0ff;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
  margin-bottom: 4px;
}

.turn-indicator {
  font-size: 0.95rem;
  color: #fbbf24;
  font-weight: 700;
}

/* Scoreboard */
.scoreboard {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 20px;
  margin-bottom: 20px;
}

.team-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 35%;
}

.team-name {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.team-score {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.shots-indicator {
  display: flex;
  gap: 6px;
}

.shot-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.shot-dot.goal {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  border-color: #34d399;
}

.shot-dot.miss {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  border-color: #f87171;
}

.round-badge {
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 800;
}

.vs {
  font-size: 1.4rem;
  color: #00f0ff;
  display: block;
}

/* Arena / Stadium Goal Area */
.arena {
  position: relative;
  width: 100%;
  height: 380px;
  background: url("img/gameboard.png") center/contain no-repeat;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

/* Goalkeeper */
.goalkeeper {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 55px;
  transition: all 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 5;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.8));
}

.goalkeeper.dive-left {
  transform: translate(-140px, -20px) rotate(-40deg);
}

.goalkeeper.dive-right {
  transform: translate(90px, -20px) rotate(40deg);
}

.goalkeeper.stay-center {
  transform: translate(-50%, -40px) scale(1.1);
}

/* Aim Targets */
.aim-zones {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  height: 140px;
  display: flex;
  justify-content: space-between;
  z-index: 10;
}

.aim-target {
  width: 30%;
  height: 100%;
  background: rgba(0, 240, 255, 0.12);
  border: 2px dashed rgba(0, 240, 255, 0.5);
  border-radius: 8px;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(2px);
}

.aim-target:hover {
  background: rgba(0, 240, 255, 0.35);
  border-color: #00f0ff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
  transform: scale(1.05);
}

.aim-target:active {
  transform: scale(0.95);
}

/* Ball */
.ball-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
}

.soccer-ball {
  font-size: 44px;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.4, 1);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

.soccer-ball.shoot-left {
  transform: translate(-130px, -210px) scale(0.55) rotate(720deg);
}

.soccer-ball.shoot-center {
  transform: translate(-22px, -230px) scale(0.5) rotate(720deg);
}

.soccer-ball.shoot-right {
  transform: translate(90px, -210px) scale(0.55) rotate(720deg);
}

/* In-game Shot Banner */
.shot-banner {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 20;
}

.banner-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  padding: 15px 40px;
  border-radius: 12px;
  text-transform: uppercase;
  animation: bannerPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.banner-goal {
  color: #10b981;
  border: 3px solid #10b981;
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
}

.banner-save {
  color: #ef4444;
  border: 3px solid #ef4444;
  background: rgba(239, 68, 68, 0.2);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.6);
}

@keyframes bannerPop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  gap: 10px;
}

.instructions {
  font-size: 0.82rem;
  color: #94a3b8;
}

.btn-restart {
  background: #334155;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-restart:hover {
  background: #475569;
}

/* Game Over Modal */
.game-over-modal {
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 22, 0.95);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  animation: fadeIn 0.3s ease;
}

.modal-box {
  text-align: center;
  padding: 30px;
}

.trophy-icon {
  font-size: 64px;
  margin-bottom: 10px;
}

.modal-box h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  color: #00f0ff;
  margin-bottom: 10px;
}

.final-score {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: #fbbf24;
  margin-bottom: 12px;
}

.modal-box p {
  color: #94a3b8;
  margin-bottom: 24px;
}

.btn-play-again {
  background: linear-gradient(135deg, #0088ff, #00b4d8);
  border: 2px solid #00f0ff;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  padding: 14px 36px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  transition: transform 0.2s;
}

.btn-play-again:hover {
  transform: scale(1.05);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 600px) {
  .aim-zones { width: 90%; }
  .arena { height: 320px; }
  .title { font-size: 1.3rem; }
  .team-score { font-size: 1.6rem; }
}
