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

:root {
  --bg: linear-gradient(135deg, #1a1a2e, #16213e);
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --title-color: #fff;
  --plus-color: #aaa;
  --toggle-bg: rgba(255, 255, 255, 0.1);
  --toggle-hover: rgba(255, 255, 255, 0.2);
  --toggle-color: #fff;
}

body.light {
  --bg: linear-gradient(135deg, #f0f4ff, #fff5f8);
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  --title-color: #1a1a2e;
  --plus-color: #555;
  --toggle-bg: rgba(0, 0, 0, 0.08);
  --toggle-hover: rgba(0, 0, 0, 0.15);
  --toggle-color: #1a1a2e;
}

body {
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--bg);
  transition: background 0.3s;
}

#theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 20px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--toggle-bg);
  color: var(--toggle-color);
  box-shadow: none;
  transition: background 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

#theme-toggle:hover:not(:disabled) {
  background: var(--toggle-hover);
  transform: scale(1.1);
  box-shadow: none;
}

#theme-toggle:active:not(:disabled) {
  transform: scale(0.95);
}

.container {
  text-align: center;
  padding: 40px;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  transition: background 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(10px);
}

h1 {
  color: var(--title-color);
  font-size: 28px;
  margin-bottom: 30px;
  letter-spacing: 2px;
  transition: color 0.3s;
}

.numbers {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  min-height: 70px;
  align-items: center;
}

.bonus-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  margin-bottom: 30px;
}

.plus {
  color: var(--plus-color);
  font-size: 24px;
  font-weight: bold;
  transition: color 0.3s;
}

.number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3), inset 0 -3px 6px rgba(0,0,0,0.2);
  opacity: 0;
  transform: scale(0) rotate(-180deg);
  animation: popIn 0.4s ease forwards;
}

.number.bonus {
  width: 54px;
  height: 54px;
  font-size: 20px;
  opacity: 0;
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.yellow { background: radial-gradient(circle at 35% 35%, #ffe066, #f5a623); }
.blue   { background: radial-gradient(circle at 35% 35%, #6ec6ff, #1565c0); }
.red    { background: radial-gradient(circle at 35% 35%, #ff7675, #c0392b); }
.gray   { background: radial-gradient(circle at 35% 35%, #b2bec3, #636e72); }
.green  { background: radial-gradient(circle at 35% 35%, #55efc4, #00b894); }

button#draw {
  padding: 14px 40px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  background: linear-gradient(135deg, #f9ca24, #f0932b);
  color: #fff;
  border: none;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(240, 147, 43, 0.4);
  transition: transform 0.1s, box-shadow 0.1s;
}

button#draw:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 147, 43, 0.5);
}

button#draw:active:not(:disabled) {
  transform: translateY(0);
}

button#draw:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--plus-color);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.contact-link:hover {
  color: var(--title-color);
  border-bottom-color: var(--title-color);
}
