.admin-wheel-page .hehe-wheel-frame {
  position: relative;
  width: min(74vw, 430px);
  margin: 4px auto 20px;
}

.admin-wheel-page .hehe-wheel-frame::before {
  content: "";
  position: absolute;
  z-index: 8;
  top: -12px;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 15px solid transparent;
  border-left: 15px solid transparent;
  border-top: 30px solid #831843;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.admin-wheel-page .hehe-wheel-frame .hehe-wheel {
  width: 100%;
  margin: 0;
  will-change: transform;
}

.admin-wheel-page .hehe-wheel-frame .hehe-wheel.is-spinning {
  animation: none !important;
  transition: transform var(--admin-spin-duration, 1650ms) cubic-bezier(.12, .78, .2, 1);
}

.admin-wheel-page .hehe-wheel-frame .hehe-wheel::before {
  display: none;
}

/* Make the active Work/Chores list unmistakable without losing each list's identity. */
.admin-wheel-page #adminListSwitch {
  gap: 8px;
  min-height: 62px;
  padding: 6px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(59, 130, 246, 0.13) 0 50%, rgba(236, 72, 153, 0.13) 50% 100%),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(76, 29, 149, 0.13);
}

.admin-wheel-page #adminListSwitch .responsibility-list-thumb {
  display: none;
}

.admin-wheel-page #adminListSwitch > button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: -0.01em;
  transition: transform 150ms ease, box-shadow 150ms ease, color 150ms ease, background 150ms ease;
}

.admin-wheel-page #adminListSwitch > button::before {
  margin-right: 7px;
  font-size: 1.05em;
  line-height: 1;
}

.admin-wheel-page #adminListSwitch > button[data-list="work"] {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(219, 234, 254, 0.82);
}

.admin-wheel-page #adminListSwitch > button[data-list="work"]::before {
  content: "💼";
}

.admin-wheel-page #adminListSwitch > button[data-list="chores"] {
  color: #be185d;
  border-color: rgba(219, 39, 119, 0.18);
  background: rgba(252, 231, 243, 0.86);
}

.admin-wheel-page #adminListSwitch > button[data-list="chores"]::before {
  content: "🧹";
}

.admin-wheel-page #adminListSwitch > button[data-list="work"][aria-pressed="true"] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  box-shadow: 0 9px 20px rgba(37, 99, 235, 0.28);
  transform: translateY(-1px);
}

.admin-wheel-page #adminListSwitch > button[data-list="chores"][aria-pressed="true"] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #db2777, #fb7185);
  box-shadow: 0 9px 20px rgba(219, 39, 119, 0.28);
  transform: translateY(-1px);
}

/* Keep labels centered inside their wheel slices and horizontal at rest. */
.admin-wheel-page .hehe-wheel-labels {
  pointer-events: none;
}

.admin-wheel-page .hehe-wheel-labels span {
  --label-center-angle: calc(var(--label-angle) + var(--label-offset, 0deg));
  --label-radius: clamp(78px, 24vw, 124px);
  top: 50%;
  left: 50%;
  width: 34%;
  padding: 2px 4px;
  display: -webkit-box;
  overflow: hidden;
  color: #341025;
  font-size: clamp(1rem, 4vw, 1.22rem);
  line-height: 1.08;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 7px rgba(255, 255, 255, 0.72);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transform:
    translate(-50%, -50%)
    rotate(var(--label-center-angle))
    translateY(calc(0px - var(--label-radius)))
    rotate(calc(0deg - var(--label-center-angle)));
  transform-origin: 50% 50%;
}

.admin-wheel-page .hehe-wheel-labels span:only-child {
  top: 19%;
  left: 50%;
  width: 62%;
  font-size: clamp(1.05rem, 4.5vw, 1.3rem);
  text-align: center;
  transform: translate(-50%, -50%);
  transform-origin: center;
}

.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(2),
.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(2) ~ span {
  --label-offset: 90deg;
  --label-radius: clamp(82px, 27vw, 138px);
  width: 31%;
}

.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(3),
.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(3) ~ span {
  --label-offset: 60deg;
  --label-radius: clamp(82px, 26vw, 134px);
  width: 31%;
}

.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(4),
.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(4) ~ span {
  --label-offset: 45deg;
  --label-radius: clamp(82px, 26vw, 134px);
  width: 31%;
}

.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(5),
.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(5) ~ span {
  --label-offset: 36deg;
}

.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(6),
.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(6) ~ span {
  --label-offset: 30deg;
}

.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(7),
.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(7) ~ span {
  --label-offset: 25.714deg;
}

.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(8),
.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(8) ~ span {
  --label-offset: 22.5deg;
}

.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(9),
.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(9) ~ span {
  --label-offset: 20deg;
}

.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(10),
.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(10) ~ span {
  --label-offset: 18deg;
}

.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(11),
.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(11) ~ span {
  --label-offset: 16.364deg;
}

.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(12),
.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(12) ~ span {
  --label-offset: 15deg;
}

.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(n+5),
.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(n+5) ~ span {
  width: 30%;
  font-size: clamp(0.82rem, 3vw, 1rem);
}

.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(n+7),
.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(n+7) ~ span {
  --label-radius: clamp(82px, 25vw, 130px);
  width: 27%;
  font-size: clamp(0.7rem, 2.35vw, 0.84rem);
}

.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(n+10),
.admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(n+10) ~ span {
  --label-radius: clamp(84px, 25.5vw, 132px);
  width: 24%;
  font-size: clamp(0.61rem, 1.9vw, 0.72rem);
  line-height: 1.02;
}

.admin-wheel-page .admin-mystery-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(219, 39, 119, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(192, 132, 252, 0.28), transparent 58%),
    linear-gradient(145deg, #500724, #831843 58%, #4c1d95);
  box-shadow: 0 28px 80px rgba(80, 7, 36, 0.3);
}

.admin-wheel-page #adminProofPanel {
  max-width: 720px;
  margin: 22px auto 0;
  text-align: left;
}

.admin-wheel-page .admin-mystery-cover {
  display: grid;
  place-items: center;
  min-height: min(52vh, 420px);
  padding: 28px;
  color: white;
  text-align: center;
  transition: opacity 220ms ease, transform 220ms ease;
}

.admin-wheel-page .admin-mystery-cover span {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  margin-bottom: 18px;
  border: 4px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  font-size: 4.2rem;
}

.admin-wheel-page .admin-mystery-cover strong {
  font-size: clamp(1.35rem, 5vw, 2.15rem);
}

.admin-wheel-page .admin-mystery-cover small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 750;
}

.admin-wheel-page .admin-mystery-card.is-revealed .admin-mystery-cover {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.05);
}

.admin-wheel-page .admin-reveal-button {
  width: min(100%, 440px);
  margin: 0 auto;
}

.admin-wheel-page .admin-mystery-card > .microcopy {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.admin-wheel-page .admin-mystery-card img {
  display: block;
  width: 100%;
  max-height: 72vh;
  border: 10px solid white;
  border-radius: 22px;
  background: #fdf2f8;
  object-fit: contain;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  animation: adminRewardReveal 360ms cubic-bezier(.16, .82, .25, 1) both;
}

.admin-wheel-page .admin-reaction-form {
  display: grid;
  gap: 14px;
  max-width: 700px;
  margin: 18px auto 0;
  padding: 18px;
  border: 1px solid rgba(219, 39, 119, 0.18);
  border-radius: 22px;
  background: rgba(253, 242, 248, 0.82);
  text-align: left;
}

.admin-wheel-page .admin-reaction-form h3 {
  margin-bottom: 0;
}

.admin-wheel-page .admin-reaction-emoji-group {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.admin-wheel-page .admin-reaction-emoji-group button {
  min-width: 44px;
  min-height: 52px;
  border: 1px solid rgba(219, 39, 119, 0.18);
  border-radius: 16px;
  background: white;
  font-size: 1.55rem;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.admin-wheel-page .admin-reaction-emoji-group button.selected {
  border-color: #db2777;
  background: #fce7f3;
  transform: translateY(-2px) scale(1.04);
}

.admin-wheel-page .admin-reaction-form textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  line-height: 1.45;
  outline: none;
}

.admin-wheel-page .admin-reaction-form textarea:focus {
  outline: 4px solid rgba(236, 72, 153, 0.22);
  outline-offset: 2px;
}

.admin-wheel-page .admin-received-reactions {
  margin-top: 18px;
}

.admin-wheel-page .admin-reaction-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-wheel-page .admin-reaction-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(219, 39, 119, 0.14);
  border-radius: 18px;
  background: rgba(253, 242, 248, 0.72);
}

.admin-wheel-page .admin-reaction-list p {
  margin: 5px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-wheel-page .admin-reaction-list small {
  color: var(--muted);
}

.admin-wheel-page .admin-reaction-emoji {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: white;
  font-size: 1.65rem;
}

@keyframes adminRewardReveal {
  from { opacity: 0; transform: rotateY(12deg) scale(.94); }
  to { opacity: 1; transform: rotateY(0) scale(1); }
}

@media (max-width: 620px) {
  .admin-wheel-page .hehe-wheel-frame {
    width: min(82vw, 350px);
  }

  .admin-wheel-page #adminListSwitch {
    min-height: 60px;
    padding: 5px;
    border-radius: 20px;
  }

  .admin-wheel-page #adminListSwitch > button {
    min-height: 50px;
    padding-inline: 8px;
    border-radius: 15px;
    font-size: 0.98rem;
  }

  .admin-wheel-page .hehe-wheel-labels span {
    --label-radius: clamp(76px, 24vw, 104px);
    font-size: clamp(0.96rem, 4.4vw, 1.16rem);
  }

  .admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(2),
  .admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(2) ~ span,
  .admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(3),
  .admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(3) ~ span,
  .admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(4),
  .admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(4) ~ span {
    --label-radius: clamp(80px, 26vw, 112px);
  }

  .admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(n+5),
  .admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(n+5) ~ span {
    font-size: clamp(0.78rem, 3.35vw, 0.94rem);
  }

  .admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(n+7),
  .admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(n+7) ~ span {
    --label-radius: clamp(76px, 24vw, 104px);
    font-size: clamp(0.66rem, 2.65vw, 0.8rem);
  }

  .admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(n+10),
  .admin-wheel-page .hehe-wheel-labels span:first-child:nth-last-child(n+10) ~ span {
    --label-radius: clamp(78px, 24.5vw, 106px);
    font-size: clamp(0.58rem, 2.15vw, 0.68rem);
  }

  .admin-wheel-page .admin-mystery-card {
    padding: 12px;
    border-radius: 22px;
  }

  .admin-wheel-page .admin-mystery-cover {
    min-height: 44vh;
  }

  .admin-wheel-page .admin-mystery-card img {
    max-height: 68vh;
    border-width: 6px;
  }

  .admin-wheel-page .admin-reaction-form {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-wheel-page .admin-mystery-cover,
  .admin-wheel-page .admin-reaction-emoji-group button,
  .admin-wheel-page .admin-mystery-card img {
    animation: none;
    transition: none;
  }

  .admin-wheel-page #adminListSwitch > button {
    transition: none;
  }
}
