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

body {
  background-color: #0d0f1a;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(20, 25, 45, 0.8) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(40, 20, 35, 0.8) 0%, transparent 40%);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(18, 22, 38, 0.6);
  padding: 2rem;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-title {
  font-size: 3.5rem;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #00d2ff, #ff6a00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  letter-spacing: 4px;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-bottom: 20px;
  width: 100%;
}

.score {
  font-size: 4rem;
  font-weight: 900;
  text-shadow: 0 0 15px currentColor;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.score.blue {
  color: #00d2ff;
}

.score.orange {
  color: #ff6a00;
}

.goal-effect {
  animation: scoreBounce 0.5s ease-out;
}

@keyframes scoreBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

.timer {
  font-size: 2.5rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 20px;
  border-radius: 12px;
  letter-spacing: 2px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.05);
}

.canvas-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.2), 0 0 30px rgba(255, 106, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: #111;
}

canvas {
  display: block;
}

.controls-guide {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: 500;
}

.player-controls {
  background: rgba(0,0,0,0.3);
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.color-blue {
  color: #00d2ff;
  font-weight: 700;
}

.color-orange {
  color: #ff6a00;
  font-weight: 700;
}

.page-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 1600px;
  padding: 20px;
}

.ad-container {
  flex: 1;
  min-width: 160px;
  max-width: 300px;
  background: rgba(0,0,0,0.5);
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #666;
  min-height: 600px;
}

.game-layout {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.game-main {
  display: flex;
  flex-direction: column;
}

.settings-widget {
  width: 250px;
  background: rgba(10, 14, 28, 0.8);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.settings-widget h2 {
  font-size: 1.5rem;
  text-align: center;
  color: #00d2ff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.setting-group label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ccc;
}

.setting-group select, .time-buttons button {
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.setting-group select:focus, .time-buttons button:hover {
  border-color: #00d2ff;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.time-buttons {
  display: flex;
  gap: 10px;
}

.time-buttons button {
  flex: 1;
}

.btn-start {
  background: linear-gradient(90deg, #00d2ff, #0055ff);
  color: white;
  border: none;
  padding: 15px;
  font-size: 1.2rem;
  font-weight: 900;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
  transition: all 0.2s ease;
  margin-bottom: 20px;
  width: 100%;
}

.btn-start:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.8);
}

.btn-start:active {
  transform: scale(0.95);
}
