@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

* {
  font-family: 'Nunito', system-ui, sans-serif;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 205, 230, 0.65), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(197, 244, 255, 0.55), transparent 26%),
    linear-gradient(135deg, #fff7fb 0%, #ffe5f1 44%, #f7fbff 100%);
}

.glass {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 159, 203, 0.28);
  box-shadow: 0 24px 70px rgba(235, 105, 164, 0.18);
  backdrop-filter: blur(16px);
}

.soft-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(250, 182, 214, 0.42);
  box-shadow: 0 12px 36px rgba(221, 92, 152, 0.1);
}

.hero-panel {
  background:
    linear-gradient(145deg, rgba(255, 220, 237, 0.94), rgba(255, 255, 255, 0.86) 48%, rgba(213, 247, 255, 0.86)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0 10px, rgba(255, 121, 183, 0.06) 10px 20px);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.hero-stat {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.85rem 0.65rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 22px rgba(255, 121, 183, 0.1);
}

.prize-showcase {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  padding: 1rem;
  border: 1px solid rgba(255, 159, 203, 0.28);
}

.prize-card {
  min-height: 96px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 242, 248, 0.9)),
    linear-gradient(135deg, #ff8fc3, #bceeff);
  border: 1px solid rgba(255, 159, 203, 0.34);
  padding: 0.9rem;
  box-shadow: 0 10px 24px rgba(221, 92, 152, 0.12);
}

.prize-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #ff79b7, #ffc1dc);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
}

.kyza-button {
  background: linear-gradient(135deg, #ff79b7, #ff9ccd);
  color: white;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(255, 121, 183, 0.35);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.kyza-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(255, 121, 183, 0.45);
}

.kyza-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.outline-button {
  border: 1px solid #ff9ccd;
  color: #c0266c;
  background: rgba(255, 255, 255, 0.72);
}

.field {
  width: 100%;
  border: 1px solid #f8b6d6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.75rem 0.9rem;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field:focus {
  border-color: #ff79b7;
  box-shadow: 0 0 0 4px rgba(255, 121, 183, 0.18);
}

.sparkle {
  position: absolute;
  pointer-events: none;
  animation: floaty 4s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.75; }
  50% { transform: translateY(-12px) rotate(8deg); opacity: 1; }
}

.gacha-wheel {
  min-height: 148px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(255, 121, 183, 0.5);
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(135deg, #ff8fc3, #bceeff) border-box;
  overflow: hidden;
  position: relative;
}

.gacha-wheel::before {
  content: "";
  position: absolute;
  inset: -45%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 121, 183, 0.22), transparent, rgba(148, 232, 255, 0.28), transparent);
  opacity: 0;
}

.gacha-wheel.is-spinning::before {
  animation: wheel-shimmer 900ms linear infinite;
  opacity: 1;
}

.gacha-machine {
  position: relative;
  z-index: 1;
  width: 100%;
}

.capsule-core {
  width: 112px;
  height: 112px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg, #fff, #ffd8ea 52%, #c8f4ff);
  border: 8px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(255, 121, 183, 0.28), inset 0 -10px 20px rgba(255, 121, 183, 0.16);
}

.capsule-label {
  letter-spacing: 0.08em;
  color: #c0266c;
  font-weight: 900;
  font-size: 1.45rem;
}

.capsule-orbit {
  position: absolute;
  inset: -8px 0 auto;
  height: 112px;
  pointer-events: none;
}

.capsule-orbit span {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ff79b7;
  box-shadow: 0 0 18px rgba(255, 121, 183, 0.55);
}

.capsule-orbit span:nth-child(1) {
  left: 28%;
  top: 16px;
}

.capsule-orbit span:nth-child(2) {
  right: 26%;
  top: 42px;
  background: #94e8ff;
}

.capsule-orbit span:nth-child(3) {
  left: 50%;
  bottom: 2px;
  background: #ffd166;
}

.is-spinning .capsule-core {
  animation: capsule-shake 520ms ease-in-out infinite;
}

.is-spinning .capsule-orbit {
  animation: orbit-spin 760ms linear infinite;
}

.rolling {
  animation: poproll 180ms ease-in-out infinite;
}

@keyframes wheel-shimmer {
  to { transform: rotate(360deg); }
}

@keyframes capsule-shake {
  0%, 100% { transform: translateX(0) rotate(0deg) scale(1); }
  20% { transform: translateX(-8px) rotate(-8deg) scale(1.03); }
  45% { transform: translateX(7px) rotate(7deg) scale(1.06); }
  70% { transform: translateX(-4px) rotate(-4deg) scale(1.02); }
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes poproll {
  0% { transform: scale(0.96) rotate(-1deg); }
  50% { transform: scale(1.04) rotate(1deg); }
  100% { transform: scale(0.98) rotate(0deg); }
}

.confetti-piece {
  position: fixed;
  top: -20px;
  width: 10px;
  height: 16px;
  border-radius: 3px;
  z-index: 50;
  animation: confetti-fall 1.8s ease-in forwards;
}

.result-badge {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(145deg, #ff79b7, #ffc1dc);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 16px 40px rgba(255, 121, 183, 0.32);
}

@keyframes confetti-fall {
  to {
    transform: translateY(105vh) rotate(520deg);
    opacity: 0;
  }
}

.admin-shell {
  background: #fff8fb;
}

.table-wrap {
  overflow-x: auto;
}

th {
  white-space: nowrap;
}

td {
  vertical-align: top;
}
