@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --ink: #150b24;
  --ink-2: #2a1245;
  --gold: #ffc94a;
  --coral: #ff5d8f;
  --violet: #8b5cf6;
  --cream: #fbf3e7;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
}

body {
  font-family: "Inter", system-ui, sans-serif;
}

.gb-display {
  font-family: "Baloo 2", "Inter", system-ui, sans-serif;
}

@keyframes gbGlowPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.06); }
}

@keyframes gbSpin360 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes gbFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes gbConfettiFall {
  0% {
    transform: translateY(-20px) translateX(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(340px) translateX(var(--drift, 0px)) rotate(540deg);
    opacity: 0;
  }
}

@keyframes gbRingWin {
  0%, 100% { border-color: rgba(255, 201, 74, 0.35); }
  50% { border-color: rgba(255, 201, 74, 0.95); }
}

@keyframes gbWheelWin {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 201, 74, 0)); }
  50% { filter: drop-shadow(0 0 22px rgba(255, 201, 74, 0.75)); }
}

@keyframes gbBurstRing {
  0% {
    opacity: 0.9;
    transform: scale(0.6);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

@keyframes gbWinPop {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(6px);
  }
  55% {
    opacity: 1;
    transform: scale(1.12) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.gb-ring-win {
  animation: gbSpin360 40s linear infinite, gbRingWin 0.9s ease-in-out 3;
}

.gb-wheel-win {
  animation: gbWheelWin 0.9s ease-in-out 3;
}

.gb-win-burst {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--gold);
  animation: gbBurstRing 1.1s ease-out 2;
  pointer-events: none;
}

.gb-win-pop {
  display: inline-block;
  animation: gbWinPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gb-spotlight {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 50% 35%, rgba(255, 201, 74, 0.35), rgba(139, 92, 246, 0.18) 45%, transparent 70%);
  filter: blur(6px);
  animation: gbGlowPulse 3.6s ease-in-out infinite;
  pointer-events: none;
}

.gb-ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 201, 74, 0.35);
  animation: gbSpin360 40s linear infinite;
  pointer-events: none;
}

.gb-confetti-piece {
  position: absolute;
  top: 0;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  animation: gbConfettiFall 1.8s ease-in forwards;
}

.gb-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
  font-size: 15px;
  font-family: "Inter", sans-serif;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.gb-input::placeholder {
  color: rgba(251, 243, 231, 0.4);
}

.gb-input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.09);
}

.gb-cta {
  width: 100%;
  padding: 15px 20px;
  border-radius: 12px;
  border: none;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.3px;
  color: #2a1400;
  background: linear-gradient(135deg, var(--gold), #ff9f4a);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 165, 60, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.gb-cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255, 165, 60, 0.45);
}

.gb-cta:disabled {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}

@media (max-width: 780px) {
  .gb-hero {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }
}

.gb-hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  align-items: stretch;
  min-height: calc(100vh - 190px);
}

.gb-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px 26px;
  backdrop-filter: blur(6px);
}

.gb-card-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 22px 24px;
}

.gb-btn-ghost {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  cursor: pointer;
}

.gb-btn-danger {
  font-size: 12px;
  color: var(--coral);
  background: none;
  border: none;
  cursor: pointer;
}

.gb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: var(--cream);
}

.gb-table th {
  text-align: left;
  color: rgba(251, 243, 231, 0.5);
  font-weight: 500;
  padding: 6px 8px;
}

.gb-table td {
  padding: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gb-admin-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.gb-section-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--cream);
}

.gb-hint {
  font-size: 12px;
  color: rgba(251, 243, 231, 0.45);
  margin: 6px 0 0;
}


.gb-display[href] {
  transition: background 0.15s ease, transform 0.1s ease;
}
.gb-display[href]:hover {
  background: rgba(255, 201, 74, 0.2) !important;
  transform: translateY(-1px);
}

select.gb-input {
  color-scheme: dark;
  background: rgba(21, 11, 36, 0.95);
  color: var(--cream);
}
select.gb-input option {
  background: #1c0f30;
  color: var(--cream);
}

@keyframes gbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes gbModalPop {
  0% { transform: scale(0.7); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}

.gb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 20, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: gbFadeIn 0.2s ease;
  padding: 20px;
}

.gb-modal-box {
  background: linear-gradient(180deg, rgba(40, 22, 66, 0.98), rgba(21, 11, 36, 0.98));
  border: 1px solid rgba(255, 201, 74, 0.35);
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  animation: gbModalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gb-modal-box.zonk {
  border-color: rgba(255, 93, 143, 0.35);
}

@keyframes gbWinnersScroll {
  from { transform: translateY(var(--scroll-distance, -100px)); }
  to { transform: translateY(0); }
}
