body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #e0f7fa 0%, #80deea 100%);
  min-height: 100vh;
}

/* Main Menu Styling */
.menu-bg {
  width: 100vw;
  height: 100vh;
  background: linear-gradient(180deg, #b3e5fc 0%, #e1f5fe 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.arena-title {
  font-size: 3rem;
  font-weight: bold;
  color: #1976d2;
  margin-bottom: 24px;
  text-shadow: 0 2px 8px #90caf9;
  letter-spacing: 3px;
}

.ice-hockey-rink {
  width: 400px;
  height: 200px;
  background: #e3f2fd;
  border: 6px solid #1565c0;
  border-radius: 100px;
  position: relative;
  margin-bottom: 20px;
  box-shadow: 0 4px 32px #1565c055;
  overflow: hidden;
}
.rink-lines {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    #42a5f5 0 16px,
    #e3f2fd 16px 32px
  );
  transform: translateX(-50%);
  z-index: 2;
}
.puck {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  background: #263238;
  border-radius: 50%;
  box-shadow: 0 4px 10px #26323888;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.menu-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(33,150,243,0.07);
  padding: 32px 40px 24px;
  border-radius: 30px;
  box-shadow: 0 4px 24px #1976d230;
}

.menu-btn {
  font-size: 1.3rem;
  font-weight: bold;
  padding: 14px 40px;
  margin: 8px 0 16px 0;
  color: #fff;
  background: linear-gradient(90deg, #1976d2 70%, #64b5f6);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  outline: none;
  box-shadow: 0 2px 8px #1976d230;
}
.menu-btn:hover {
  background: linear-gradient(90deg, #1565c0 70%, #1976d2);
  transform: translateY(-2px) scale(1.03);
}

.difficulty-select {
  display: flex;
  align-items: center;
  margin-top: 10px;
}
.diff-btn {
  font-size: 1rem;
  margin: 0 4px;
  padding: 8px 18px;
  border-radius: 12px;
  border: none;
  background: #e3f2fd;
  color: #1976d2;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.diff-btn.selected,
.diff-btn:hover {
  background: #1976d2;
  color: #fff;
}

.footer-note {
  margin-top: 30px;
  font-size: 1.1rem;
  color: #1976d2;
  opacity: 0.8;
}

/* Pong Game Styling */
.pong-bg {
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #b3e5fc 0%, #1565c0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Scoreboard */
#scoreboard {
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.4rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 8px #1976d2;
  display: flex;
  align-items: center;
  letter-spacing: 3px;
  z-index: 3;
}
.score-separator {
  margin: 0 22px;
  font-size: 2.6rem;
  color: #ffe082;
  text-shadow: 0 2px 8px #1976d2;
}

#pong {
  display: block;
  margin: 75px auto 0 auto;
  background: #e3f2fd;
  border-radius: 22px;
  border: 6px solid #1976d2;
  box-shadow: 0 4px 36px #1976d240, inset 0 0 100px #ffffff99;
  position: relative;
}

#game-result {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, #1976d2 60%, #e3f2fd 100%);
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  padding: 28px 52px;
  border-radius: 18px;
  box-shadow: 0 2px 18px #1976d2aa;
  z-index: 10;
  text-align: center;
  pointer-events: none;
  animation: pop-in 0.4s cubic-bezier(0.21,1.03,0.45,1.16);
}
@keyframes pop-in {
  from { transform: scale(0.6) translate(-50%, -50%);}
  to   { transform: scale(1) translate(-50%, -50%);}
}

.hidden {
  display: none !important;
}

.side-btn {
  position: absolute;
  left: 30px;
  top: 30px;
  padding: 12px 23px;
  font-size: 1.13rem;
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 2px 8px #1976d230;
  z-index: 30;
  transition: background 0.2s, transform 0.2s;
}
.side-btn:hover {
  background: #1565c0;
  transform: scale(1.05);
}

/* "Goal" area styling on canvas */