@font-face {
    font-family: "Bricolage Grotesque";
    src: url("bricolage.woff2") format("woff2");
    font-weight: 400 900;
    font-display: swap;
}

.bc-wheel-launch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 12px 0;
}
.bc-wheel-launch:has(.bc-wheel-open[hidden]) { display: none; }
.bc-wheel-open {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #dfcff5;
    border-radius: 12px;
    background: #f4ebfc;
    color: #532791;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.bc-wheel-open:hover { background: #efe0fb; }
.bc-wheel-spark { color: #8a46bc; font-size: 20px; line-height: 1; }
.bc-wheel-inline { color: #41614b; font-size: 13px; font-weight: 650; }
.bc-wheel-remove {
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #532791;
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}
.bc-wheel-card .bc-wheel-remove {
    display: block;
    min-height: 44px;
    margin: 0 auto;
}
.has-wheel-bonus {
    --bc-wheel-gap: max(8px, env(safe-area-inset-bottom));
    --bc-wheel-space: calc(var(--bc-wheel-height, 72px) + var(--bc-wheel-gap) + 8px);
    scroll-padding-bottom: var(--bc-wheel-space);
}
.has-wheel-bonus body > .rrr1 { bottom: var(--bc-wheel-space); }
.bc-wheel-dock { clear: both; height: var(--bc-wheel-space); }
.bc-wheel-dock .bc-wheel-launch {
    position: fixed;
    z-index: 1030;
    inset: auto max(8px, env(safe-area-inset-right)) var(--bc-wheel-gap) max(8px, env(safe-area-inset-left));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 12px;
    box-sizing: border-box;
    max-width: 470px;
    margin: 0 auto;
    padding: 9px 12px;
    border: 1px solid #71518d;
    border-radius: 17px;
    background: linear-gradient(110deg, #46255c, #2c193c 76%);
    box-shadow: 0 4px 20px #24133445;
    color: #fff;
    font: 600 14px/1.3 "Bricolage Grotesque", system-ui, sans-serif;
    text-align: start;
}
.bc-wheel-bonus { display: flex; align-items: center; gap: clamp(8px, 2.4vw, 14px); min-width: 0; }
.bc-wheel-saving {
    flex: none;
    padding: 7px 9px;
    border-radius: 10px;
    background: #ffe29f;
    color: #3a203a;
    font-size: clamp(21px, 5vw, 28px);
    font-weight: 850;
    line-height: 1.1;
    letter-spacing: -.04em;
    white-space: nowrap;
}
.bc-wheel-bonus-details { min-width: 0; }
.bc-wheel-bonus-details strong { white-space: nowrap; }
.bc-wheel-bonus-details [data-wheel-until], .bc-wheel-bonus-details [data-wheel-held] { margin-top: 2px; color: #ead6f5; font-size: 13px; }
.bc-wheel-bonus-details time { color: #ffe29f; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bc-wheel-dock .bc-wheel-open {
    justify-content: center;
    max-width: 8em;
    padding: 6px 11px;
    border-color: #e8d7f5;
    border-radius: 11px;
    background: #f6eaff;
    color: #452563;
    font: inherit;
    font-weight: 750;
}
.bc-wheel-dock .bc-wheel-open:hover { background: #fff; }
.bc-wheel-dock .bc-wheel-spark { display: none; }
.bc-wheel-dock .bc-wheel-inline { grid-column: 1 / -1; color: #fff0c5; }
@media print {
    .bc-wheel-dock { display: none; }
}
.bc-wheel-dock[hidden],
.bc-wheel-dialog:not([open]),
.bc-wheel-dialog [hidden],
.bc-wheel-launch [hidden] { display: none !important; }
.bc-wheel-dialog {
    --wheel-top: max(10px, calc((100dvh - 610px) / 2));
    position: fixed;
    inset: var(--wheel-top) 0 auto;
    width: min(880px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100dvh - var(--wheel-top) - 12px);
    margin: 0 auto;
    border: 0;
    padding: 8px 8px 14px;
    background: transparent;
    color: #fff8ff;
    overflow: auto;
    overflow-anchor: none;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    font: 500 14px/1.4 "Bricolage Grotesque", system-ui, sans-serif;
    text-align: start;
}
.bc-wheel-dialog::backdrop {
    background: #28143a9e;
    backdrop-filter: blur(2px);
}
.bc-wheel-dialog button { font: inherit; cursor: pointer; }
.bc-wheel-dialog button:focus-visible, .bc-wheel-open:focus-visible, .bc-wheel-remove:focus-visible,
.bc-wheel-odds summary:focus-visible { outline: 2px solid #a370eb; outline-offset: 2px; }
.bc-wheel-dialog button:disabled { cursor: default; }
.bc-wheel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 2px;
}
.bc-wheel-head h2 {
    color: inherit;
    font: 850 clamp(25px, 5.8vw, 43px)/1.03 "Bricolage Grotesque", system-ui, sans-serif;
    letter-spacing: -.032em;
    margin: 2px 0 0;
    text-shadow: 0 2px 10px #230d3f;
}
.bc-wheel-tools {
    display: flex;
    flex: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #fffaf6, #efe3ff);
    box-shadow: inset 0 0 0 1px #fffafda8, 0 6px 18px #29183c58;
}
.bc-wheel-tools button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #5c348b;
}
.bc-wheel-tools button:hover { background: #5f309414; }
.bc-wheel-cross, .bc-wheel-speaker { position: relative; width: 22px; height: 22px; }
.bc-wheel-cross::before, .bc-wheel-cross::after {
    position: absolute;
    inset: 10px 3px auto;
    height: 2px;
    content: "";
    border-radius: 2px;
    background: currentColor;
    transform: rotate(45deg);
}
.bc-wheel-cross::after { transform: rotate(-45deg); }
.bc-wheel-speaker::before {
    position: absolute;
    inset: 4px 10px 4px 1px;
    content: "";
    background: currentColor;
    clip-path: polygon(0 33%, 37% 33%, 89% 0, 100% 7%, 100% 93%, 89% 100%, 37% 67%, 0 67%);
}
.bc-wheel-speaker span::before, .bc-wheel-speaker span::after {
    position: absolute;
    inset: 6px 5px 6px 8px;
    content: "";
    border-right: 2px solid currentColor;
    border-radius: 50%;
}
.bc-wheel-speaker span::after { inset: 3px 1px 3px 7px; }
[data-wheel-sound][aria-pressed="false"] .bc-wheel-speaker span::before,
[data-wheel-sound][aria-pressed="false"] .bc-wheel-speaker span::after {
    inset: 10px 0 auto auto;
    width: 9px;
    height: 2px;
    border: 0;
    border-radius: 1px;
    background: currentColor;
    transform: rotate(45deg);
}
[data-wheel-sound][aria-pressed="false"] .bc-wheel-speaker span::after { transform: rotate(-45deg); }
.bc-wheel-content {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}
.bc-wheel-stage { position: relative; aspect-ratio: 660 / 510; }
.bc-wheel-stage canvas { display: block; width: 100%; height: auto; }
.bc-wheel-skip, .bc-wheel-win {
    position: absolute;
    bottom: 1%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}
.bc-wheel-skip {
    padding: 7px 12px;
    border: 1px solid #ead6fe;
    border-radius: 999px;
    background: #331c50ed;
    color: white;
}
.bc-wheel-win {
    bottom: 0;
    margin: 0;
    padding: 5px 16px;
    border-radius: 999px;
    background: linear-gradient(95deg, #3c185a, #7234a3, #442163, #3c185a);
    background-size: 240% 100%;
    box-shadow: 0 0 0 1px #ffde9eac, 0 5px 14px #24123287;
    color: #fff1cb;
    font-size: 16px;
    font-weight: 800;
    animation: bc-wheel-win-shine 3.5s linear infinite;
}
.bc-wheel-win:empty { visibility: hidden; }
@keyframes bc-wheel-win-shine { to { background-position: 240% 0; } }
.bc-wheel-card {
    align-self: start;
    margin-top: 14px;
    padding: clamp(14px, 2vw, 22px);
    border: 1px solid #e3cafd;
    border-radius: 19px;
    background: radial-gradient(ellipse at 95% 0, #eddcfa, transparent 62%), #fff9f5;
    color: #2a183e;
    box-shadow: 0 12px 45px #1d112a63;
}
.bc-wheel-price { min-height: 98px; }
.bc-wheel-caption { color: #63497a; font-size: 13px; font-weight: 700; }
.bc-wheel-price strong {
    display: inline-block;
    font-size: 44px;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -.04em;
}
.bc-wheel-price del { margin-inline-start: 8px; color: #735e82; font-size: 16px; }
.bc-wheel-price p { margin: 4px 0 10px; color: #59426c; }
.bc-wheel-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px 10px;
    border: 1px solid #e1d0f3;
    border-radius: 9px;
    color: #684097;
    background: #f2e7fb;
}
.bc-wheel-time time { font-variant-numeric: tabular-nums; font-weight: 800; color: #4e257c; }
.bc-wheel-card .bc-wheel-spin,
.bc-wheel-card .bc-wheel-accept {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    padding: 8px 11px;
    font-size: 16px;
    font-weight: 800;
}
.bc-wheel-card .bc-wheel-spin {
    border: 0;
    background: linear-gradient(110deg, #783ecd, #572296);
    color: #fff9ff;
    touch-action: none;
}
.bc-wheel-card .bc-wheel-spin,
.bc-wheel-card .bc-wheel-spin span {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}
.bc-wheel-spin span:first-child { color: #ffe29a; }
.bc-wheel-spin span:nth-child(2) { flex: 1; }
.bc-wheel-spin[data-charging] {
    box-shadow: inset calc(90px * var(--spin-charge, 0)) 0 50px #dd9dffa3;
}
.bc-wheel-spin:disabled { opacity: .66; }
.bc-wheel-card .bc-wheel-accept {
    margin: 6px 0;
    border: 1px solid #dec7f1;
    background: #f0def9;
    color: #482572;
}
.bc-wheel-accept:hover:enabled { background: #e8d0f6; }
.bc-wheel-hint {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: start;
    gap: 3px 10px;
    margin: 5px 1px 7px;
    min-height: 28px;
    font-size: 12px;
    color: #5f4972;
}
.bc-wheel-retries { font-weight: 750; }
.bc-wheel-odds { color: #5c3d78; font-size: 12px; }
.bc-wheel-odds summary { font-weight: 750; cursor: pointer; }
.bc-wheel-odds ul { padding: 0; margin: 7px 0; list-style: none; }
.bc-wheel-odds li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.bc-wheel-odds p { margin: 6px 0 0; }
@media (max-width: 650px) {
    .bc-wheel-dialog { --wheel-top: 8px; width: calc(100% - 19px); padding-inline: 5px; }
    .bc-wheel-content { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .bc-wheel-stage {
        /* Frame the wheel and keep room for the spin control on shorter displays. */
        width: 100%;
        aspect-ratio: 420 / 510;
        max-height: max(245px, calc(100dvh - 252px));
        overflow: hidden;
    }
    .bc-wheel-stage canvas {
        position: absolute;
        top: 0;
        left: 50%;
        width: auto;
        height: 100%;
        aspect-ratio: 660 / 510;
        max-width: none;
        transform: translateX(-50%);
    }
    .bc-wheel-head h2 { margin-top: 5px; }
    .bc-wheel-card { margin-top: 0; padding: 12px 14px; }
    .bc-wheel-price { min-height: 81px; }
    .bc-wheel-price strong { font-size: 36px; }
    .bc-wheel-tools button { width: 42px; height: 42px; }
}
