*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: auto !important;
}

:root {
  --bg: #05000d;
  --surface: #0e0018;
  --surface-2: #160025;
  --purple: #9b30ff;
  --purple-glow: #b85cff;
  --gold: #d8b4fe;
  --text: #f0e6ff;
  --muted: #9f83bb;
  --border: rgba(155,48,255,0.28);
  --success: #3ba55d;
  --danger: #ed4245;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(5,14,34,0.72), rgba(16,0,28,0.66)),
    radial-gradient(ellipse 70% 55% at 50% -5%, rgba(120,210,255,0.24), transparent 62%),
    radial-gradient(ellipse 35% 30% at 8% 78%, rgba(155,48,255,0.14), transparent 60%),
    url('/cekilis/assets/suspectx-bg.jpg') center / cover fixed no-repeat,
    var(--bg);
  color: var(--text);
  font-family: 'Raleway', sans-serif;
}

.draw-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 22px;
}

.draw-shell {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: stretch;
}

.draw-main,
.draw-side {
  background: rgba(14,0,24,0.56);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0,0,0,0.22);
}

.draw-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 28px;
}

.brand-lockup {
  text-align: center;
}

.brand-lockup span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 6px;
  text-transform: uppercase;
}

.brand-lockup h1 {
  margin-top: 6px;
  font-family: 'Cinzel', serif;
  font-size: 42px;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 0 34px rgba(184,92,255,0.78);
}

.brand-lockup p {
  max-width: 620px;
  margin-top: 10px;
  color: var(--gold);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.wheel-stage {
  display: none;
}

.draw-box-stage {
  position: relative;
  width: min(620px, 100%);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.draw-box-glass {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1.08;
  overflow: hidden;
  border: 1px solid rgba(216,180,254,0.42);
  border-radius: 26px 26px 34px 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), transparent 34%),
    radial-gradient(circle at 50% 20%, rgba(184,92,255,0.24), transparent 44%),
    rgba(0,0,0,0.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 -24px 50px rgba(0,0,0,0.28),
    0 28px 70px rgba(155,48,255,0.18);
  backdrop-filter: blur(14px);
}

.draw-box-lid {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 58%;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  opacity: .55;
}

.draw-box-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0 16%, rgba(255,255,255,0.16) 18% 24%, transparent 27% 100%);
  transform: translateX(-35%);
}

.draw-card-cloud {
  position: absolute;
  inset: 62px 24px 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-content: center;
  justify-items: center;
  perspective: 700px;
}

.draw-card {
  width: 100%;
  min-height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 7px;
  border: 1px solid var(--card-accent, #b85cff);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.02)),
    rgba(12,0,22,0.84);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: rotate(var(--tilt, 0deg));
  animation: cardFloat 4.5s ease-in-out infinite;
}

.draw-card:nth-child(odd) {
  --tilt: -2deg;
}

.draw-card:nth-child(even) {
  --tilt: 2deg;
  animation-delay: -1.6s;
}

.draw-card span {
  color: var(--card-accent, var(--gold));
  font-size: 10px;
  font-weight: 900;
}

.draw-card strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 12px;
}

.draw-card-empty {
  grid-column: 1 / -1;
  min-height: 92px;
  color: var(--muted);
  font-weight: 800;
}

.draw-card-winner {
  grid-column: 1 / -1;
  width: min(340px, 100%);
  min-height: 138px;
  border-color: rgba(216,180,254,0.92);
  background:
    radial-gradient(circle at 50% 0%, rgba(216,180,254,0.34), transparent 60%),
    rgba(18,0,32,0.96);
  box-shadow: 0 0 44px rgba(184,92,255,0.42), inset 0 1px 0 rgba(255,255,255,0.16);
  animation: winnerCardPop 700ms ease both;
}

.draw-card-winner span {
  font-size: 13px;
}

.draw-card-winner strong {
  font-family: 'Cinzel', serif;
  font-size: 30px;
}

.draw-box-counter {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 2;
  min-width: 140px;
  transform: translateX(-50%);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  padding: 10px 14px;
  border: 1px solid rgba(216,180,254,0.34);
  border-radius: 999px;
  background: rgba(8,0,15,0.84);
  box-shadow: 0 10px 28px rgba(0,0,0,0.34);
}

.draw-box-counter strong {
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.draw-box-counter span {
  color: var(--muted);
  font-size: 12px;
}

.draw-box-stage.is-shuffling .draw-box-glass {
  animation: boxShake .42s ease-in-out infinite;
}

.draw-box-stage.is-shuffling .draw-card {
  animation: shuffleCard .36s ease-in-out infinite;
}

.draw-box-stage.has-winner .draw-box-shine {
  animation: shineSweep 1.2s ease both;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
  50% { transform: translateY(-6px) rotate(calc(var(--tilt, 0deg) * -1)); }
}

@keyframes shuffleCard {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  50% { transform: translate(4px, -8px) rotate(5deg); }
}

@keyframes boxShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@keyframes winnerCardPop {
  from { transform: translateY(24px) scale(.82); opacity: .25; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes shineSweep {
  from { transform: translateX(-65%); }
  to { transform: translateX(65%); }
}

.winner-board {
  width: min(520px, 100%);
  min-height: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 14px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(216,180,254,0.25);
  text-align: center;
}

.winner-board span,
.winner-board small {
  color: var(--muted);
  font-size: 12px;
}

.winner-board strong {
  max-width: 100%;
  padding: 0 12px;
  overflow-wrap: anywhere;
  font-family: 'Cinzel', serif;
  font-size: 28px;
  color: var(--gold);
}

.winner-board.is-hot strong {
  animation: winnerPulse 900ms ease both;
}

@keyframes winnerPulse {
  from { transform: scale(.9); opacity: .35; }
  to { transform: scale(1); opacity: 1; }
}

.draw-side {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notice {
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  border: 1px solid var(--border);
  background: rgba(155,48,255,0.1);
}

.notice-success { border-color: rgba(59,165,93,0.42); background: rgba(59,165,93,0.14); }
.notice-error { border-color: rgba(237,66,69,0.42); background: rgba(237,66,69,0.14); }

.google-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(216,180,254,0.22);
  background: rgba(0,0,0,0.18);
}

.google-card strong {
  display: block;
  color: #fff;
  font-size: 15px;
}

.google-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

#google-login {
  min-height: 44px;
}

#google-login > div {
  width: 100% !important;
}

.google-login-hidden {
  display: none;
}

.google-preflight {
  min-height: 44px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #1f1f1f;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}

.social-follow-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(216,180,254,0.22);
  background: rgba(0,0,0,0.18);
}

.social-follow-card strong {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
}

.social-follow-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.social-follow-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 76px;
  padding: 10px 6px;
  border-radius: 12px;
  border: 1px solid rgba(155,48,255,0.28);
  color: var(--text);
  background: rgba(0,0,0,0.22);
  text-decoration: none;
  transition: transform .2s, border-color .2s, background .2s;
}

.social-follow-link:hover {
  transform: translateY(-2px);
  border-color: rgba(216,180,254,0.55);
  background: rgba(155,48,255,0.14);
}

.social-follow-link span {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
}

.social-follow-link svg {
  width: 23px;
  height: 23px;
  display: block;
  fill: currentColor;
}

.social-follow-link small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.social-follow-discord span {
  background: #5865f2;
}

.social-follow-whatsapp span {
  background: #25d366;
}

.social-follow-youtube span {
  background: #ff0033;
}

.social-follow-tiktok span {
  background: #111;
}

.social-follow-instagram span {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-grid div {
  padding: 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.26);
  border: 1px solid rgba(155,48,255,0.16);
  text-align: center;
}

.stat-grid strong {
  display: block;
  font-size: 24px;
}

.stat-grid span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.panel-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.panel-form label {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.panel-form input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(155,48,255,0.28);
  background: rgba(0,0,0,0.32);
  color: var(--text);
  font: inherit;
}

.panel-form button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--purple-glow);
  color: #fff;
  font: inherit;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.panel-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(155,48,255,0.36);
}

.admin-form {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.title-form {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(216,180,254,0.22);
  background: rgba(0,0,0,0.24);
}

.reset-form {
  padding-top: 14px;
  border-top: 1px solid rgba(237,66,69,0.28);
}

.reset-form button {
  background: #b83252;
}

.reset-form button:hover {
  box-shadow: 0 8px 24px rgba(237,66,69,0.28);
}

.admin-remove-panel {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(216,180,254,0.22);
  background: rgba(0,0,0,0.24);
}

.admin-remove-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-remove-head span,
.admin-remove-panel label {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.admin-remove-head small {
  color: var(--muted);
  font-size: 11px;
}

.admin-remove-panel input[type="password"] {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(155,48,255,0.28);
  background: rgba(0,0,0,0.32);
  color: var(--text);
  font: inherit;
}

.admin-remove-list {
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.remove-entry-form,
.admin-remove-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.045);
  color: var(--muted);
  font-size: 12px;
}

.admin-remove-empty {
  display: block;
  text-align: center;
}

.remove-entry-form span {
  color: var(--purple-glow);
  font-weight: 800;
}

.remove-entry-form strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.remove-entry-form button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #b83252;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.admin-dot {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 30;
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: rgba(216,180,254,0.36);
  box-shadow: 0 0 12px rgba(216,180,254,0.26);
}

.admin-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 18px;
  background: rgba(0,0,0,0.28);
}

.admin-drawer.is-open {
  display: flex;
}

.admin-drawer-panel {
  position: relative;
  width: min(360px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(216,180,254,0.28);
  background: rgba(14,0,24,0.78);
  backdrop-filter: blur(12px);
  box-shadow: 0 22px 60px rgba(0,0,0,0.55);
}

.admin-drawer-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.admin-drawer-head {
  padding-right: 36px;
}

.admin-drawer-head span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.admin-drawer-head strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 18px;
}

.whatsapp-gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,0.58);
}

.whatsapp-gate.is-open {
  display: flex;
}

.whatsapp-gate-panel {
  width: min(360px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  border-radius: 18px;
  border: 1px solid rgba(37,211,102,0.4);
  background: rgba(14,0,24,0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.58);
  text-align: center;
}

.whatsapp-gate-icon {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
}

.whatsapp-gate-icon svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.whatsapp-gate-panel strong {
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 21px;
}

.whatsapp-gate-panel p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.whatsapp-gate-button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #25d366;
  color: #08120c;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .4px;
}

.participants {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.participants-head {
  display: flex;
  justify-content: space-between;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.participant-list {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.participant,
.empty {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 9px;
  background: rgba(0,0,0,0.16);
  color: var(--muted);
  font-size: 12px;
}

.participant strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.participant span {
  flex-shrink: 0;
  color: var(--purple-glow);
  font-weight: 700;
}

.whatsapp-note {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(37,211,102,0.32);
  background: rgba(37,211,102,0.1);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.whatsapp-note strong {
  color: #9df0bd;
  font-size: 12px;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.whatsapp-note p {
  margin: 0;
}

.winners-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 22px;
}

.winners-shell {
  width: min(920px, 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.winners-head,
.winners-login,
.winners-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(14,0,24,0.58);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0,0,0,0.22);
}

.winners-head {
  padding: 22px;
  text-align: center;
}

.winners-head span {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.winners-head h1 {
  margin-top: 6px;
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 34px;
}

.winners-head a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.winners-login {
  width: min(420px, 100%);
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.winners-login label {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.winners-login input {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(155,48,255,0.28);
  background: rgba(0,0,0,0.32);
  color: var(--text);
  font: inherit;
}

.winners-login button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--purple-glow);
  color: #fff;
  font: inherit;
  font-weight: 900;
}

.winners-card {
  padding: 18px;
}

.winners-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
}

.winners-summary strong {
  color: #fff;
  font-size: 28px;
}

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

.winners-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.winners-table th,
.winners-table td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(216,180,254,0.14);
  text-align: left;
  font-size: 13px;
}

.winners-table th {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.winners-table td {
  color: var(--text);
}

.winners-empty {
  padding: 18px;
  border-radius: 12px;
  background: rgba(0,0,0,0.24);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 920px) {
  .draw-shell {
    grid-template-columns: 1fr;
  }

  .brand-lockup h1 {
    font-size: 32px;
  }

  .draw-main {
    padding: 20px 14px;
  }

  .draw-card-cloud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    inset: 58px 16px 34px;
  }

  .draw-card {
    min-height: 54px;
  }
}
