.wheel-page {
    --wheel-ink: #101d32;
    --wheel-gold: #805320;
    --wheel-paper: #fff;
    max-width: 1080px;
    margin-inline: auto;
    padding-block: clamp(20px, 4vw, 52px);
}
#main-content.wheel-page .wheel-intro {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    gap: 8px;
    margin: 0 0 20px;
    padding: clamp(24px, 5vw, 54px);
    border: 1px solid #b99153;
    border-radius: 24px;
    background: radial-gradient(ellipse at 95% 0%, #fff1d7, transparent 58%), var(--wheel-paper);
    box-shadow: 0 16px 38px #111c3026, inset 0 0 0 5px #ffda871a;
}
#main-content.wheel-page .wheel-intro h1 {
    color: var(--wheel-ink);
    font-family: Georgia, serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 7.5vw, 5.2rem);
    letter-spacing: -.045em;
    line-height: 1;
    margin: 0;
}
#main-content.wheel-page .wheel-intro p {
    color: var(--wheel-ink);
    max-width: 52ch;
    margin: 0;
}
#main-content.wheel-page .wheel-intro .wheel-eyebrow,
#main-content.wheel-page .wheel-panel-kicker {
    color: var(--wheel-gold);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.wheel-hero-star {
    position: absolute;
    z-index: -1;
    right: clamp(14px, 6vw, 80px);
    top: 50%;
    translate: 0 -50%;
    color: #c49a4c35;
    font-size: clamp(5rem, 21vw, 15rem);
    line-height: 1;
}
.wheel-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
#main-content.wheel-page .wheel-panel {
    background: var(--wheel-paper);
    color: var(--wheel-ink);
    border: 1px solid #ddc8a6;
    border-radius: 22px;
    padding: clamp(18px, 3vw, 30px);
    box-shadow: 0 12px 32px #101d3224, inset 0 0 0 4px #ffda870d;
}
#main-content.wheel-page .wheel-panel a { color: var(--wheel-gold); }
#main-content.wheel-page .wheel-panel:first-child { text-align: center; }
#main-content.wheel-page :is(.wheel-stock, #wheel-result, .wheel-activity p, .wheel-activity h2) { color: inherit; }
#main-content.wheel-page .wheel-panel-kicker { display: block; margin: 0 0 6px; }
.wheel-stock { font-size: clamp(1rem, 2.5vw, 1.23rem); font-weight: 800; margin: 0 0 16px; }
.wheel-frame {
    margin: 17px auto 20px;
    position: relative;
    width: min(100%, 580px);
    aspect-ratio: 1;
    container-type: inline-size;
    overflow: clip;
    overflow-clip-margin: 4px;
    border-radius: 50%;
    background: linear-gradient(140deg, #fff1b7, #b48045 48%, #f8d78c 82%, #aa7042);
    box-shadow: 0 0 21px #ffcf6540;
}
.wheel-disc {
    position: absolute;
    inset: 2.5%;
    border: 2px solid #492e31;
    border-radius: 50%;
    overflow: hidden;
    background: conic-gradient(from -15deg, #09685e 0deg 30deg, #223b62 30deg 60deg, #853659 60deg 90deg,
        #223b62 90deg 120deg, #30496f 120deg 150deg, #ffd670 150deg 180deg, #09685e 180deg 210deg,
        #223b62 210deg 240deg, #30496f 240deg 270deg, #853659 270deg 300deg, #223b62 300deg 330deg, #30496f 330deg);
    box-shadow: inset 0 0 22px #0a142066;
    color: #fff;
}
.wheel-sector, .wheel-peg { position: absolute; top: 0; left: 50%; height: 100%; width: 0; transform: rotate(var(--angle)); }
.wheel-peg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(5px, 2cqw, 10px);
    aspect-ratio: 1;
    translate: -50% 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff4cf, #d8a855 60%, #845420);
    box-shadow: 0 1px 2px #0009;
}
.wheel-sector > span {
    position: absolute;
    top: 20%;
    left: 0;
    width: 29cqw;
    transform: translate(-50%, -50%) rotate(-90deg);
    font-size: clamp(8px, 2.85cqw, 13px);
    font-weight: 750;
    text-align: center;
    white-space: nowrap;
}
.wheel-sector:nth-child(6) { color: #17243a; }
.wheel-pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border: 12px solid transparent;
    border-top: clamp(17px, 6cqw, 30px) solid #fff2ba;
    transform-origin: top center;
    border-bottom: 0;
    filter: drop-shadow(0 2px 3px #000a);
}
.wheel-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid #ffda87;
    box-shadow: 0 3px 12px #101420b5;
}
#main-content.wheel-page .wheel-button {
    display: inline-grid;
    place-items: center;
    padding: 10px 28px;
    min-height: 48px;
    border: 1px solid #fff0bd;
    border-radius: 9px;
    background: linear-gradient(#ffe5a5, #f4be5d);
    color: #21182a;
    box-shadow: 0 3px 0 #906237;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}
#main-content.wheel-page .wheel-button:focus-visible { outline: 2px solid #805320; outline-offset: 5px; }
#main-content.wheel-page .wheel-button:disabled { opacity: .7; cursor: default; }
#main-content.wheel-page .wheel-note, .wheel-activity time { color: #4b5e78; font-size: .875rem; }
#main-content.wheel-page #wheel-result { margin: 14px 0 4px; }
#main-content.wheel-page .wheel-activity h2 { color: var(--wheel-ink); margin: 0; font-family: Georgia, serif; font-size: clamp(1.55rem, 3.5vw, 2.25rem); }
.wheel-activity ol { margin: 0; padding: 0; list-style: none; }
.wheel-activity li { padding: 12px 0; border-top: 1px solid #e9ddca; overflow-wrap: anywhere; }
.wheel-activity time { display: block; }
.wheel-page [hidden] { display: none; }

/* Match the site’s mobile title layer for the wheel headings. */
@layer mobile-title-tone {
    #main-content.wheel-page :is(.wheel-intro h1, .wheel-activity h2) {
        color: var(--wheel-ink) !important;
        font-weight: 700 !important;
    }
}
