body {
  background:
    radial-gradient(circle at 50% 0, rgba(255, 244, 223, .72), transparent 32rem),
    linear-gradient(180deg, #c9919a 0%, #edc9c1 34%, #f8ded0 100%);
}

body::before {
  opacity: .16;
  background-image: radial-gradient(rgba(111, 57, 68, .55) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: none;
}

.page-shell {
  isolation: isolate;
}

.page-shell::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 -10px;
  background: url("assets/kawaii-esports-bg.png") center top / 100% auto no-repeat;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 24px 70px rgba(102, 47, 58, .22);
}

.page-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -10px;
  border-radius: 0 0 36px 36px;
  background: linear-gradient(180deg, rgba(255, 246, 228, .06), rgba(255, 237, 226, .18) 22%, rgba(250, 222, 213, .48) 58%, rgba(246, 218, 207, .78));
  pointer-events: none;
}

.hero {
  padding-top: 54px;
}

.hero-orbit {
  display: none;
}

.eyebrow {
  width: max-content;
  margin-inline: auto;
  padding: 7px 13px;
  border: 1px solid rgba(145, 67, 84, .16);
  border-radius: 999px;
  background: rgba(255, 248, 235, .58);
  backdrop-filter: blur(10px);
}

.hero h1 small {
  color: #84354c;
  text-shadow: 0 2px 0 rgba(255,255,255,.85), 0 7px 22px rgba(115,48,63,.18);
}

.hero h1 b {
  width: max-content;
  margin-inline: auto;
  padding: 8px 17px 9px;
  border: 1px solid rgba(152, 69, 85, .14);
  border-radius: 14px;
  color: #a4445b;
  background: rgba(255, 244, 225, .68);
  box-shadow: 0 8px 25px rgba(113, 51, 63, .1);
  backdrop-filter: blur(9px);
}

.festival-copy {
  color: #865c64;
  font-weight: 700;
}

.lottery-card,
.history-card {
  border: 1px solid rgba(255, 249, 233, .82);
  background:
    linear-gradient(145deg, rgba(255, 244, 227, .78), rgba(250, 218, 213, .68)),
    radial-gradient(circle at 12% 8%, rgba(255,255,255,.8), transparent 14rem);
  box-shadow:
    0 24px 60px rgba(104, 45, 58, .2),
    inset 0 0 0 1px rgba(169, 77, 95, .12),
    inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(13px) saturate(1.08);
}

.lottery-card::before {
  inset: 10px;
  border: 1px solid rgba(166, 77, 94, .18);
  border-radius: 22px;
}

.chance-pill {
  border: 1px solid rgba(150, 69, 84, .2);
  background: rgba(255, 248, 233, .78);
  box-shadow: 0 7px 18px rgba(118, 52, 66, .1), inset 0 1px rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
}

.wheel-stage {
  --wheel-stage-size: min(91vw, 490px);
  width: var(--wheel-stage-size);
  height: var(--wheel-stage-size);
  min-width: var(--wheel-stage-size);
  min-height: var(--wheel-stage-size);
  aspect-ratio: auto;
  flex: 0 0 var(--wheel-stage-size);
}

.wheel {
  width: 91%;
  height: 91%;
  min-width: 91%;
  min-height: 91%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  box-shadow: 0 20px 34px rgba(112, 49, 62, .23);
}

#wheel-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1;
}

.halo {
  border: 1px solid rgba(143, 61, 78, .2);
  box-shadow: 0 0 0 7px rgba(255, 247, 229, .21);
}

.halo-two {
  border-color: rgba(206, 139, 73, .3);
}

.spin-button {
  background: linear-gradient(145deg, #ef8799, #bd4964 72%);
  box-shadow: 0 8px 0 #943b53, 0 16px 30px rgba(103, 42, 56, .3), inset 0 2px rgba(255,255,255,.48);
}

.status-text {
  color: #784958;
}

.history-card {
  background: linear-gradient(145deg, rgba(255, 245, 230, .86), rgba(249, 220, 215, .8));
}

.admin-page .admin-shell::before,
.admin-page .admin-shell::after {
  content: none;
}

@media (max-width: 380px) {
  .wheel-stage {
    --wheel-stage-size: min(94vw, 350px);
  }
}
