@font-face {
  font-family: 'Pixelify Sans';
  src: url('/assets/fonts/pixelify-sans-700-latin.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

.wheel-page {
  background: #171521;
  color: #fbf3ed;
}
.wheel-main {
  --wheel-gold: #ffe1a1;
  --wheel-text: #e2cfda;
  --wheel-line: #b78b8c47;
  --wheel-surface: #241d2d;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.wheel-main [hidden] { display: none !important; }
.wheel-main a { color: var(--wheel-gold); }
.wheel-main :focus-visible { outline: 2px solid var(--wheel-gold); outline-offset: 4px; }
.wheel-main h1, .wheel-main h2, .wheel-main h3, .wheel-main p, .wheel-main dl { margin: 0; }
.wheel-main h2 { font-size: clamp(1.35rem, 4vw, 1.9rem); line-height: 1.18; }
.wheel-main h3 { font-size: 1.04rem; line-height: 1.35; }
.wheel-shell { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.wheel-hero {
  padding: .95rem 0 2.75rem;
  border-bottom: 1px solid var(--wheel-line);
  background:
    radial-gradient(ellipse at 68% 48%, #652c4a80, transparent 69%),
    linear-gradient(180deg, #241827ef 15%, #2a1a31bd 62%, #1f182a 100%),
    #2d1f32 url('/assets/images/noel/clairiere-noel-pixel-mobile.webp') center 64% / cover no-repeat;
}
.wheel-hero-grid { display: grid; gap: 1.75rem; align-items: center; text-align: center; }
.wheel-intro { display: grid; justify-items: center; gap: .95rem; }
.wheel-intro h1 {
  color: #fff2cf;
  font: 700 clamp(2.45rem, 11vw, 5.5rem)/.96 'Pixelify Sans', ui-monospace, monospace;
  text-shadow: 0 3px 0 #873a4a;
}
.wheel-intro p { max-width: 34ch; color: var(--wheel-text); font-size: clamp(.95rem, 2vw, 1.16rem); }
.wheel-illustration { display: grid; justify-items: center; gap: .95rem; min-width: 0; }
.wheel-art {
  position: relative;
  width: min(100% - 2rem, 16rem);
  aspect-ratio: 1;
  margin-top: .6rem;
}
.wheel-disc {
  position: absolute;
  display: grid;
  place-items: center;
  inset: 0;
  border: 5px solid #f8cc8d;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -18deg, #f8e1a760 0deg .9deg, transparent .9deg 36deg),
    radial-gradient(circle, transparent 58%, #2c13234d 83%),
    conic-gradient(from -18deg, #7a324a 10%, #236a63 0 20%, #b97b49 0 30%, #873850 0 40%, #235653 0 50%, #ac7048 0 60%, #7a324a 0 70%, #236a63 0 80%, #b97b49 0 90%, #235653 0);
  box-shadow: inset 0 0 0 3px #653a3c, inset 0 0 0 9px #fff0b72b,
    0 0 0 4px #754448, 0 0 0 6px #f4c48b42, 0 14px 30px #120b16b0;
}
.wheel-disc::before {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: inherit;
  border: 2px dotted #fff2c986;
}
.wheel-hub {
  display: grid;
  place-items: center;
  width: 27%;
  aspect-ratio: 1;
  border: 2px solid #fff1c5;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 27%, #fff2c2, #eabb76 58%, #a36546);
  color: #582744;
  font: 700 clamp(1.6rem, 8vw, 3.2rem)/1 Georgia, serif;
  box-shadow: 0 0 0 4px #6d343ec4, 0 6px 12px #160d17a0;
}
.wheel-pin {
  position: absolute;
  z-index: 1;
  top: -.58rem;
  left: 50%;
  width: 1.8rem;
  height: 1.7rem;
  transform: translateX(-50%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(90deg, #ebba78, #fff1c5 54%, #bb744b);
}
.wheel-sparkle { position: absolute; color: #ffd890; line-height: 1; }
.wheel-sparkle-left { left: -1.3rem; top: 12%; font-size: 1.4rem; }
.wheel-sparkle-right { right: -1.25rem; bottom: 13%; font-size: 1.45rem; }
.wheel-art.is-drawing .wheel-disc { animation: wheel-turn 2.4s cubic-bezier(.14, .6, .19, 1); }
@keyframes wheel-turn { to { transform: rotate(3turn); } }
@media (prefers-reduced-motion: reduce) {
  .wheel-art.is-drawing .wheel-disc { animation: none; }
}
.wheel-draw-time { display: grid; justify-items: center; gap: .15rem; color: var(--wheel-text); font-size: .87rem; }
.wheel-draw-time > strong { color: var(--wheel-gold); font-size: 1.08rem; line-height: 1.3; }
.wheel-draw-time time { font-weight: 600; }
.wheel-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.3rem, 1.5vw, .6rem);
  width: min(100%, 20rem);
  margin-top: .65rem;
}
.wheel-countdown > span {
  display: grid;
  gap: .2rem;
  padding: .48rem .2rem;
  border: 1px solid #eac08c70;
  border-radius: .55rem;
  background: #211729b5;
}
.wheel-countdown strong {
  color: var(--wheel-gold);
  font-size: clamp(1.1rem, 4.5vw, 1.55rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.wheel-countdown small { font-size: clamp(.68rem, 2.6vw, .78rem); white-space: nowrap; }
.wheel-body { display: grid; gap: 1.45rem; padding-block: 1.4rem 3rem; }
.wheel-result, .wheel-prize, .wheel-account, .wheel-rule, .wheel-install-rules {
  min-width: 0;
  padding: clamp(.9rem, 4vw, 1.6rem);
  border: 1px solid var(--wheel-line);
  border-radius: .85rem;
  background: var(--wheel-surface);
}
.wheel-result {
  display: grid;
  gap: .8rem;
  border-color: #edb8828a;
  background: radial-gradient(ellipse at top left, #603649, #282030 70%);
}
.wheel-result h2 { color: var(--wheel-gold); }
.wheel-winner {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 4vw, 1.2rem);
}
.wheel-winner-avatar {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: clamp(3.5rem, 13vw, 5rem);
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid var(--wheel-gold);
  border-radius: 50%;
  background: #48293b;
  color: var(--wheel-gold);
  font-size: 1.6rem;
  font-weight: 700;
}
.wheel-winner-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wheel-winner > div:last-child { min-width: 0; }
.wheel-winner p, .wheel-winner [data-winner-handle], .wheel-result-status { color: var(--wheel-text); font-size: .87rem; }
.wheel-winner strong {
  display: block;
  color: #fff4df;
  font-size: clamp(1.15rem, 5vw, 1.6rem);
  line-height: 1.25;
}
.wheel-result-status:empty { display: none; }
.wheel-prize {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  border-color: #edb88269;
  background: linear-gradient(115deg, #3f2235, #292132);
}
.wheel-prize-icon { font-size: clamp(1.25rem, 4.5vw, 2rem); line-height: 1.2; }
.wheel-prize p, .wheel-rule p, .wheel-install-rules p, .wheel-history p { margin-top: .55rem; color: var(--wheel-text); }
.wheel-prize strong { color: var(--wheel-gold); }
.wheel-account { scroll-margin-top: calc(var(--site-header-height, 8rem) + 1rem); }
.wheel-main .wheel-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  margin-block: .9rem .55rem;
}
.wheel-stats > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: start;
  gap: .3rem;
  min-width: 0;
  padding: .65rem .75rem;
  border-radius: .6rem;
  background: #171521;
}
.wheel-stats > div:last-child { grid-column: 1 / -1; }
.wheel-stats dt { color: var(--wheel-text); font-size: .84rem; line-height: 1.4; }
.wheel-stats dd {
  margin: 0;
  color: var(--wheel-gold);
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.wheel-account-note { color: var(--wheel-text); font-size: .84rem; }
.wheel-main .wheel-status:not(:empty) { margin-top: .75rem; }
.wheel-status[data-error="true"] { color: #ffb8b8; }
.wheel-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.wheel-actions:has(> :not([hidden])) { margin-top: .75rem; }
.wheel-main .wheel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .5rem .85rem;
  border: 1px solid #e8b383b3;
  border-radius: .55rem;
  background: #302338;
  color: var(--wheel-gold);
  font: inherit;
  font-weight: 700;
  font-size: .88rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.wheel-main .wheel-button:hover { background: #44304c; }
.wheel-main .wheel-button-gold { background: var(--wheel-gold); border-color: var(--wheel-gold); color: #291c24; }
.wheel-main .wheel-button-gold:hover { background: #fff0cb; }
.wheel-main .wheel-button:disabled { opacity: .65; cursor: wait; }
.wheel-history { border-top: 1px solid var(--wheel-line); margin-top: 1.15rem; padding-top: 1rem; }
.wheel-history ul { margin: .4rem 0; padding: 0; list-style: none; }
.wheel-history li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .15rem .55rem;
  padding-block: .65rem;
  border-bottom: 1px solid var(--wheel-line);
}
.wheel-history .wheel-entry-detail { grid-column: 1 / -1; color: var(--wheel-text); font-size: .8rem; }
.wheel-history .wheel-entry-value { text-align: right; color: #b6ebd4; font-weight: 700; }
.wheel-history [data-revoked] .wheel-entry-value { color: #ffb8b8; }
.wheel-history .wheel-button { margin-top: .4rem; }
.wheel-rules { display: grid; gap: .85rem; }
.wheel-rule-grid { display: grid; gap: .75rem; }
.wheel-rule { display: grid; align-content: start; justify-items: start; gap: .55rem; }
.wheel-rule p { margin-top: 0; }
.wheel-rule a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.wheel-rule code { color: #ffe1a1; }
.wheel-ticket {
  display: inline-block;
  padding: .18rem .55rem;
  border: 1px dashed #f8cd8b9c;
  border-radius: .3rem;
  color: var(--wheel-gold);
  background: #523445;
  font-size: .81rem;
  font-weight: 700;
}
.wheel-install-warning {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: clamp(.85rem, 3.5vw, 1.2rem);
  border: 1px solid #f1c58372;
  border-left: 4px solid #f3c484;
  border-radius: .6rem;
  background: #3c2930;
}
.wheel-install-warning h3 { color: #ffe2ad; }
.wheel-install-warning p { margin-top: .3rem; color: var(--wheel-text); }
.wheel-warning-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.45rem;
  aspect-ratio: 1;
  border-radius: .3rem;
  background: #f3c484;
  color: #332021;
  font-weight: 700;
}
.wheel-tiers { display: grid; gap: .3rem 1.1rem; padding-block: .5rem .25rem; }
.wheel-tiers > div { display: flex; justify-content: space-between; gap: .6rem; padding-block: .28rem; border-bottom: 1px solid var(--wheel-line); }
.wheel-tiers dt { color: var(--wheel-text); }
.wheel-tiers dd { color: var(--wheel-gold); margin: 0; text-align: right; font-weight: 600; }
@media (min-width: 38rem) {
  .wheel-main .wheel-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wheel-stats > div:last-child { grid-column: auto; }
  .wheel-stats > div { padding: .85rem 1rem; }
}
@media (min-width: 52rem) {
  .wheel-hero {
    padding: 1.3rem 0 3.3rem;
    background-image: radial-gradient(ellipse at 68% 48%, #652c4a80, transparent 65%),
      linear-gradient(100deg, #241827f4, #261a31b5 68%, #241728d4),
      url('/assets/images/noel/clairiere-noel-pixel.webp');
  }
  .wheel-hero-grid { grid-template-columns: 1fr minmax(0, .85fr); gap: 3rem; padding-inline: 1.4rem; }
  .wheel-intro { justify-items: start; text-align: left; }
  .wheel-art { width: min(100% - 3rem, 22rem); }
  .wheel-body { gap: 1.7rem; padding-block: 1.65rem 4rem; }
  .wheel-rule-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
