:root {
  --bg: #07111f;
  --bg2: #030712;
  --panel: rgba(8, 17, 31, 0.72);
  --line: rgba(109, 199, 255, 0.18);
  --text: #eaf6ff;
  --muted: #9bb7cf;
  --cyan: #4fdcff;
  --blue: #5588ff;
  --pink: #b75cff;
  --green: #4cffb5;
  --danger: #ff5d85;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #11284a 0%, var(--bg) 35%, var(--bg2) 100%);
  overflow-x: hidden;
}
.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
  pointer-events: none;
}
.glow {
  position: fixed; border-radius: 999px; filter: blur(90px); opacity: 0.22; pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.glow-1 { width: 380px; height: 380px; background: var(--cyan); top: -80px; left: -80px; }
.glow-2 { width: 420px; height: 420px; background: var(--pink); bottom: -100px; right: -120px; animation-delay: -3s; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 60px; position: relative; }
.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 70px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
}
.hero { text-align: center; padding: 32px 20px; margin-bottom: 20px; animation: rise .8s ease; }
.eyebrow { color: var(--cyan); font-size: 12px; letter-spacing: 3px; margin: 0 0 8px; }
.hero h1 { margin: 0; font-size: clamp(36px, 6vw, 72px); text-shadow: 0 0 18px rgba(79,220,255,.4); }
.sub, .muted { color: var(--muted); }
.spinner-section { padding: 28px; display: grid; gap: 24px; justify-items: center; margin-bottom: 20px; }
.spinner-wrap { position: relative; width: min(78vw, 560px); aspect-ratio: 1/1; display: grid; place-items: center; }
.pointer {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border-left: 22px solid transparent; border-right: 22px solid transparent; border-top: 0; border-bottom: 38px solid var(--green);
  filter: drop-shadow(0 0 16px rgba(76,255,181,.7)); z-index: 10;
}
.wheel {
  width: 100%; height: 100%; border-radius: 50%; position: relative;
  border: 10px solid rgba(255,255,255,.08);
  box-shadow: inset 0 0 30px rgba(0,0,0,.45), 0 0 28px rgba(79,220,255,.15);
  transition: transform 6s cubic-bezier(.12,.8,.16,1);
}
.wheel::before {
  content: ""; position: absolute; inset: 10px; border-radius: 50%;
  background: conic-gradient(
    #38bdf8 0deg 45deg,
    #8b5cf6 45deg 90deg,
    #22c55e 90deg 135deg,
    #f59e0b 135deg 180deg,
    #ef4444 180deg 225deg,
    #14b8a6 225deg 270deg,
    #3b82f6 270deg 315deg,
    #d946ef 315deg 360deg
  );
  opacity: .95;
}
.center-core {
  position: absolute; inset: 50%; transform: translate(-50%, -50%);
  width: 110px; height: 110px; border-radius: 50%;
  display: grid; place-items: center; font-size: 24px; font-weight: 800;
  background: radial-gradient(circle at 30% 30%, #1b3b65, #08121f);
  border: 2px solid rgba(255,255,255,.12); z-index: 2;
  box-shadow: 0 0 30px rgba(79,220,255,.25);
}
.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
button {
  border: 0; border-radius: 14px; padding: 14px 18px; color: white; cursor: pointer; font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
button:hover { transform: translateY(-2px); }
button:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 22px rgba(79,220,255,.25); }
.btn-secondary { background: linear-gradient(90deg, #23334a, #314865); }
.btn-danger { background: linear-gradient(90deg, #c12252, var(--danger)); }
.status-card, .winner-box, .panel { width: 100%; }
.status-card {
  min-width: 180px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.03);
}
.label { color: var(--muted); display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.winner-box { text-align: center; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.03); }
.winner-box h2 { margin: 8px 0 0; font-size: clamp(22px, 3vw, 34px); }
.lists-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
.panel { padding: 20px; }
.panel h3, .admin-panel h3 { margin-top: 0; }
.list { display: grid; gap: 10px; max-height: 340px; overflow: auto; padding-right: 4px; }
.item {
  padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.admin-panel { padding: 24px; }
.admin-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 16px; }
.badge { padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.login-area, .inline-form, .admin-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
input, textarea {
  width: 100%; background: rgba(255,255,255,.035); color: var(--text);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; outline: none;
}
input:focus, textarea:focus { border-color: rgba(79,220,255,.6); box-shadow: 0 0 0 4px rgba(79,220,255,.08); }
textarea { resize: vertical; min-height: 160px; }
.hidden { display: none; }
.message { min-height: 24px; color: var(--cyan); margin-top: 14px; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(25px)} }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) {
  .lists-grid, .admin-grid { grid-template-columns: 1fr; }
}
