:root {
  color-scheme: dark;
  font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
  background: #09111f;
  color: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, #1d4ed8, #09090f 70%);
  padding: 24px;
}

.app-shell {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: center;
}

.panel {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.35);
}

h1 {
  margin: 0 0 10px;
  font-size: 2rem;
}

p {
  margin: 0 0 16px;
  color: #cbd5e1;
  line-height: 1.6;
}

.entry-form {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.entry-form input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #475569;
  border-radius: 999px;
  background: #0f172a;
  color: white;
  font-size: 1rem;
}

.entry-form button,
.spin-button {
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.entry-form button {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: white;
}

.entry-form button:hover,
.spin-button:hover {
  transform: translateY(-1px);
}

.message {
  min-height: 24px;
  color: #fde68a;
  margin-bottom: 12px;
}

.entry-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.entry-list li {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.95rem;
}

.wheel-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.wheel-wrapper {
  position: relative;
  width: min(360px, 80vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 12px solid #f8fafc;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08), 0 16px 40px rgba(0, 0, 0, 0.3);
  transition: transform 4.5s cubic-bezier(0.2, 0.9, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.wheel::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.4);
}

.pointer {
  position: absolute;
  top: 6px;
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 36px solid #facc15;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
  z-index: 2;
}

.wheel-center {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #0f172a;
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  border: 4px solid #f8fafc;
  z-index: 1;
}

.spin-button {
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
  color: white;
  min-width: 160px;
}

.winner {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fef3c7;
  text-align: center;
  min-height: 28px;
}

