.tmp-wheel-page {
    --wheel-page: #f4f7f6;
    --wheel-surface: #ffffff;
    --wheel-surface-2: #f8fbfa;
    --wheel-ink: #172021;
    --wheel-ink-soft: #2d3b3b;
    --wheel-muted: #657672;
    --wheel-line: #dbe6e2;
    --wheel-line-strong: #c5d4cf;
    --wheel-gold: #c89a32;
    --wheel-gold-soft: #f6dd9b;
    --wheel-teal: #16786f;
    --wheel-teal-soft: #e7f5f2;
    --wheel-ruby: #b84d64;
    --wheel-blue: #3267a8;
    --wheel-shadow: 0 24px 60px rgba(23, 32, 33, .12);
    color: var(--wheel-ink);
}

.tmp-wheel-page .wheel-hero {
    align-items: center;
    background:
        linear-gradient(90deg, rgba(22, 120, 111, .08) 0 1px, transparent 1px 18px),
        linear-gradient(180deg, #ffffff, #f8fbfa);
    border: 1px solid var(--wheel-line);
    border-left: 6px solid var(--wheel-gold);
    color: var(--wheel-ink);
    gap: 16px;
}

.tmp-wheel-page .wheel-hero__icon {
    background: linear-gradient(135deg, #172021, #16786f 55%, #d4a340);
    box-shadow: 0 14px 32px rgba(22, 120, 111, .2);
}

.wheel-hero__copy {
    min-width: 0;
}

.wheel-hero__signal {
    align-items: center;
    background: var(--wheel-ink);
    border: 1px solid rgba(200, 154, 50, .42);
    border-radius: 8px;
    color: var(--wheel-gold-soft);
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    margin-left: auto;
    padding: 10px 12px;
    white-space: nowrap;
}

.wheel-dashboard {
    align-items: start;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
    border: 1px solid var(--wheel-line);
    border-radius: 8px;
    box-shadow: var(--wheel-shadow);
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
    overflow: hidden;
    padding: 16px;
    position: relative;
}

.wheel-dashboard::before {
    background-image: var(--wheel-bg-image);
    background-position: center;
    background-size: cover;
    content: "";
    inset: 0;
    opacity: 0;
    position: absolute;
    transition: opacity .2s ease;
    z-index: 0;
}

.tmp-wheel-page.has-bg-image .wheel-dashboard::before {
    opacity: .32;
}

.wheel-dashboard > * {
    position: relative;
    z-index: 1;
}

.wheel-stage {
    align-content: start;
    align-self: start;
    display: grid;
    gap: 16px;
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    order: 1;
}

.wheel-panel,
.wheel-board,
.wheel-result-panel,
.wheel-history-panel {
    background: var(--wheel-surface);
    border: 1px solid var(--wheel-line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(23, 32, 33, .08);
}

.wheel-panel--controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    grid-column: 2;
    grid-row: 1;
    order: 2;
    padding: 16px;
}

.wheel-panel__head {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.wheel-panel__head span,
.wheel-result-panel__label span {
    color: var(--wheel-teal);
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wheel-panel__head strong {
    color: var(--wheel-ink);
    display: block;
    font-size: 19px;
    line-height: 1.2;
}

.wheel-icon-btn {
    align-items: center;
    background: #fffaf0;
    border: 1px solid #ead7a5;
    border-radius: 8px;
    color: #8a5d13;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
    width: 40px;
}

.wheel-icon-btn:hover,
.wheel-icon-btn:focus {
    background: #f8e7b5;
    color: var(--wheel-ink);
    transform: translateY(-1px);
}

.wheel-field {
    display: grid;
    gap: 8px;
}

.wheel-field label {
    color: var(--wheel-ink-soft);
    font-size: 13px;
    font-weight: 800;
}

.wheel-field label strong {
    color: var(--wheel-teal);
    float: right;
}

.wheel-field .form-control,
.wheel-field .form-select {
    background-color: #ffffff;
    border-color: var(--wheel-line-strong);
    border-radius: 8px;
    color: var(--wheel-ink);
}

.wheel-field .form-control:focus,
.wheel-field .form-select:focus {
    border-color: var(--wheel-teal);
    box-shadow: 0 0 0 .2rem rgba(22, 120, 111, .16);
}

.wheel-textarea {
    min-height: 216px;
    resize: vertical;
}

.wheel-field__meta {
    color: var(--wheel-muted);
    display: flex;
    font-size: 12px;
    gap: 12px;
    justify-content: space-between;
}

.wheel-field__meta strong {
    color: var(--wheel-teal);
}

.tmp-wheel-page .btn-outline-light {
    background: #ffffff;
    border-color: var(--wheel-line-strong);
    color: var(--wheel-ink);
    font-weight: 800;
}

.tmp-wheel-page .btn-outline-light:hover,
.tmp-wheel-page .btn-outline-light:focus {
    background: var(--wheel-teal-soft);
    border-color: rgba(22, 120, 111, .38);
    color: var(--wheel-teal);
}

.wheel-entry-tools {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wheel-entry-tools .btn,
.wheel-actions .btn,
.wheel-result-actions .btn,
.wheel-voice-row .btn {
    border-radius: 8px;
}

.wheel-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 138px;
    overflow: auto;
    padding-right: 2px;
}

.wheel-chip {
    align-items: center;
    background: #f3f7f6;
    border: 1px solid var(--wheel-line);
    border-left: 5px solid var(--chip-color, var(--wheel-gold));
    border-radius: 8px;
    color: var(--wheel-ink);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 8px;
    max-width: 100%;
    min-height: 32px;
    padding: 5px 6px 5px 10px;
}

.wheel-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wheel-chip button {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--wheel-muted);
    display: inline-flex;
    height: 22px;
    justify-content: center;
    padding: 0;
    width: 22px;
}

.wheel-chip button:hover,
.wheel-chip button:focus {
    color: var(--wheel-ruby);
}

.wheel-chip--more {
    background: #fff8e5;
    color: #8a5d13;
}

.wheel-controls-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wheel-bg-field {
    grid-column: 1 / -1;
}

.wheel-file-row {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.wheel-switch {
    align-items: center;
    background: #f8fbfa;
    border: 1px solid var(--wheel-line);
    border-radius: 8px;
    color: var(--wheel-ink);
    cursor: pointer;
    display: flex;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
}

.wheel-switch input {
    accent-color: var(--wheel-teal);
    height: 18px;
    width: 18px;
}

.wheel-switch span {
    align-items: center;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
}

.wheel-voice-row {
    grid-template-columns: minmax(0, 1fr) auto;
}

.wheel-voice-row label {
    grid-column: 1 / -1;
}

.wheel-design-studio {
    background: #f8fbfa;
    border: 1px solid var(--wheel-line);
    border-radius: 8px;
    padding: 10px;
}

.wheel-design-studio summary {
    align-items: center;
    color: var(--wheel-ink);
    cursor: pointer;
    display: flex;
    font-weight: 900;
    gap: 10px;
    justify-content: space-between;
    list-style: none;
}

.wheel-design-studio summary::-webkit-details-marker {
    display: none;
}

.wheel-design-studio summary span {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.wheel-design-studio summary small {
    background: #fff8e5;
    border: 1px solid #ead7a5;
    border-radius: 8px;
    color: #805611;
    font-weight: 900;
    min-width: 34px;
    padding: 4px 8px;
    text-align: center;
}

.wheel-color-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
}

.wheel-color-editor {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    max-height: 280px;
    overflow: auto;
    padding-right: 2px;
}

.wheel-color-row {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--wheel-line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: 34px minmax(0, 1fr) 46px;
    padding: 8px;
}

.wheel-color-row b {
    align-items: center;
    background: var(--wheel-teal-soft);
    border: 1px solid rgba(22, 120, 111, .18);
    border-radius: 8px;
    color: var(--wheel-teal);
    display: inline-flex;
    font-size: 12px;
    height: 30px;
    justify-content: center;
}

.wheel-color-row span {
    color: var(--wheel-ink);
    font-size: 13px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wheel-color-row input[type="color"] {
    background: transparent;
    border: 0;
    cursor: pointer;
    height: 34px;
    padding: 0;
    width: 42px;
}

.wheel-color-empty {
    background: #ffffff;
    border: 1px dashed var(--wheel-line-strong);
    border-radius: 8px;
    color: var(--wheel-muted);
    font-size: 13px;
    font-weight: 800;
    padding: 12px;
    text-align: center;
}

.wheel-status {
    background: #eef5ff;
    border-color: #c9defe;
    color: #214a86;
}

.wheel-status.alert-success {
    background: #e7f7f2;
    border-color: #b9e5d8;
    color: #0e6b5d;
}

.wheel-status.alert-warning {
    background: #fff8e5;
    border-color: #ecd896;
    color: #805611;
}

.wheel-status.alert-danger {
    background: #fff0f3;
    border-color: #f2bdca;
    color: #9f2f49;
}

.wheel-board {
    align-self: start;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(22, 120, 111, .055) 0 1px, transparent 1px 34px),
        linear-gradient(180deg, #ffffff, #f7fbfa);
    display: flex;
    flex-direction: column;
    gap: 16px;
    grid-column: 1;
    grid-row: auto;
    min-width: 0;
    padding: 16px;
}

.wheel-stats {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
}

.wheel-stats div {
    background: #ffffff;
    border: 1px solid var(--wheel-line);
    border-radius: 8px;
    min-width: 0;
    padding: 10px;
}

.wheel-stats small {
    color: var(--wheel-muted);
    display: block;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.wheel-stats strong {
    color: var(--wheel-ink);
    display: block;
    font-size: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wheel-visual-wrap {
    aspect-ratio: 1 / 1;
    background:
        repeating-linear-gradient(45deg, rgba(200, 154, 50, .08) 0 1px, transparent 1px 12px),
        linear-gradient(180deg, #ffffff, #edf6f4);
    border: 1px solid var(--wheel-line);
    border-radius: 50%;
    box-shadow: inset 0 0 0 12px #ffffff, 0 24px 46px rgba(23, 32, 33, .14);
    max-width: 660px;
    padding: clamp(10px, 2vw, 18px);
    position: relative;
    width: min(100%, 660px);
}

#luxuryWheelCanvas {
    display: block;
    filter: drop-shadow(0 20px 28px rgba(23, 32, 33, .2));
    height: 100%;
    width: 100%;
}

.wheel-pointer {
    filter: drop-shadow(0 8px 10px rgba(23, 32, 33, .25));
    left: 50%;
    position: absolute;
    top: 4px;
    transform: translateX(-50%);
    z-index: 5;
}

.wheel-pointer span {
    background: linear-gradient(180deg, #fff4bd, #c89a32);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    display: block;
    height: 44px;
    width: 36px;
}

.wheel-center-btn {
    align-items: center;
    background: linear-gradient(135deg, #152020, #16786f 54%, #c89a32);
    border: 3px solid rgba(255, 245, 201, .96);
    border-radius: 50%;
    box-shadow: 0 16px 34px rgba(23, 32, 33, .24), inset 0 1px 0 rgba(255, 255, 255, .24);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    height: clamp(88px, 18%, 118px);
    justify-content: center;
    left: 50%;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: transform .15s ease, box-shadow .15s ease;
    width: clamp(88px, 18%, 118px);
    z-index: 4;
}

.wheel-center-btn span {
    font-size: clamp(16px, 2.7vw, 24px);
    font-weight: 950;
    letter-spacing: .06em;
    line-height: 1;
}

.wheel-center-btn small {
    color: var(--wheel-gold-soft);
    font-size: 11px;
    font-weight: 900;
    margin-top: 5px;
}

.wheel-center-btn:hover,
.wheel-center-btn:focus {
    box-shadow: 0 20px 42px rgba(22, 120, 111, .24), inset 0 1px 0 rgba(255, 255, 255, .3);
    transform: translate(-50%, -50%) scale(1.02);
}

.wheel-center-btn:disabled {
    cursor: wait;
    opacity: .78;
}

.wheel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.wheel-actions .btn-primary {
    background: linear-gradient(135deg, #16786f, #c89a32);
    border-color: #b99032;
    box-shadow: 0 12px 24px rgba(22, 120, 111, .2);
    color: #ffffff;
    font-weight: 900;
}

.wheel-actions .btn-primary:hover,
.wheel-actions .btn-primary:focus {
    background: linear-gradient(135deg, #0f625a, #d5a845);
    color: #ffffff;
}

.wheel-result-panel,
.wheel-history-panel {
    padding: 16px;
}

.wheel-result-panel {
    align-self: start;
    align-content: start;
    background: linear-gradient(180deg, #172021, #1f3432);
    border-color: rgba(200, 154, 50, .36);
    color: #ffffff;
    display: grid;
    gap: 12px;
    grid-column: 1;
    grid-row: auto;
    min-height: 0;
}

.wheel-result-panel__label {
    align-items: center;
    display: flex;
    gap: 8px;
}

.wheel-result-panel__label i,
.wheel-result-panel__label span {
    color: var(--wheel-gold-soft);
}

.wheel-result-panel h2 {
    color: #ffffff;
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 950;
    line-height: 1.05;
    margin: 0;
    overflow-wrap: anywhere;
}

.wheel-result-panel p {
    color: #cbd9d6;
    margin: 0;
}

.wheel-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.wheel-result-panel .btn-outline-light {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .22);
    color: #ffffff;
}

.wheel-result-panel .btn-outline-light:hover,
.wheel-result-panel .btn-outline-light:focus {
    background: rgba(246, 221, 155, .16);
    border-color: rgba(246, 221, 155, .44);
    color: #ffffff;
}

.wheel-history-panel {
    align-self: start;
    grid-column: 1;
    grid-row: auto;
    min-height: 0;
}

.wheel-history {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.wheel-history li {
    align-items: center;
    background: #f8fbfa;
    border: 1px solid var(--wheel-line);
    border-radius: 8px;
    color: var(--wheel-ink);
    display: grid;
    gap: 6px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 9px 10px;
}

.wheel-history b {
    color: var(--wheel-teal);
    font-size: 12px;
}

.wheel-history span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wheel-history__empty {
    color: var(--wheel-muted) !important;
    display: block !important;
}

.wheel-confetti {
    border-radius: 50%;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    z-index: 6;
}

.wheel-confetti span {
    animation: wheel-confetti-fall 900ms cubic-bezier(.2, .75, .2, 1) forwards;
    background: var(--confetti-color, #f6dd9b);
    border-radius: 2px;
    height: 12px;
    left: 50%;
    position: absolute;
    top: 42%;
    transform: translate(-50%, -50%) rotate(0deg);
    width: 7px;
}

.wheel-after-content {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr);
}

.wheel-after-content section {
    background: #ffffff;
    border: 1px solid var(--wheel-line);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(23, 32, 33, .06);
    padding: 18px;
}

.wheel-after-content h2 {
    color: var(--wheel-ink);
    font-size: 18px;
    font-weight: 900;
    margin: 0 0 8px;
}

.wheel-after-content p {
    color: var(--wheel-muted);
    margin: 0 0 12px;
}

.wheel-after-content p:last-child {
    margin-bottom: 0;
}

.wheel-after-content ul {
    color: var(--wheel-muted);
    margin: 4px 0 0;
    padding-left: 20px;
}

.wheel-after-content li + li {
    margin-top: 6px;
}

.wheel-after-content a {
    color: var(--wheel-teal);
    font-weight: 900;
}

.tmp-wheel-page[data-theme="imperial"] {
    --wheel-surface: rgba(19, 24, 25, .94);
    --wheel-surface-2: rgba(26, 34, 35, .94);
    --wheel-ink: #fffaf0;
    --wheel-ink-soft: #f2ead6;
    --wheel-muted: #cfc7b5;
    --wheel-line: rgba(246, 221, 155, .26);
    --wheel-line-strong: rgba(246, 221, 155, .38);
    --wheel-teal: #48c4ad;
    --wheel-teal-soft: rgba(72, 196, 173, .16);
    --wheel-gold: #d6a642;
    --wheel-shadow: 0 28px 70px rgba(7, 11, 12, .32);
}

.tmp-wheel-page[data-theme="imperial"] .wheel-hero,
.tmp-wheel-page[data-theme="velvet"] .wheel-hero {
    background:
        linear-gradient(135deg, rgba(246, 221, 155, .14), rgba(72, 196, 173, .08)),
        linear-gradient(180deg, #171b1c, #101314);
    border-color: rgba(246, 221, 155, .28);
    border-left-color: var(--wheel-gold);
    color: var(--wheel-ink);
}

.tmp-wheel-page[data-theme="imperial"] .wheel-hero .text-muted,
.tmp-wheel-page[data-theme="velvet"] .wheel-hero .text-muted {
    color: var(--wheel-muted) !important;
}

.tmp-wheel-page[data-theme="imperial"] .wheel-dashboard {
    background:
        linear-gradient(90deg, rgba(246, 221, 155, .08) 0 1px, transparent 1px 28px),
        linear-gradient(135deg, #101314 0%, #1a2324 48%, #153d38 100%);
    border-color: rgba(246, 221, 155, .26);
}

.tmp-wheel-page[data-theme="imperial"] .wheel-panel,
.tmp-wheel-page[data-theme="imperial"] .wheel-board,
.tmp-wheel-page[data-theme="imperial"] .wheel-history-panel,
.tmp-wheel-page[data-theme="imperial"] .wheel-design-studio {
    background: rgba(19, 24, 25, .88);
    border-color: rgba(246, 221, 155, .22);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.tmp-wheel-page[data-theme="imperial"] .wheel-board {
    background:
        linear-gradient(90deg, rgba(246, 221, 155, .06) 0 1px, transparent 1px 32px),
        linear-gradient(180deg, rgba(24, 31, 32, .94), rgba(13, 18, 19, .92));
}

.tmp-wheel-page[data-theme="imperial"] .wheel-panel__head strong,
.tmp-wheel-page[data-theme="imperial"] .wheel-field label,
.tmp-wheel-page[data-theme="imperial"] .wheel-stats strong,
.tmp-wheel-page[data-theme="imperial"] .wheel-design-studio summary {
    color: var(--wheel-ink);
}

.tmp-wheel-page[data-theme="imperial"] .wheel-field .form-control,
.tmp-wheel-page[data-theme="imperial"] .wheel-field .form-select,
.tmp-wheel-page[data-theme="velvet"] .wheel-field .form-control,
.tmp-wheel-page[data-theme="velvet"] .wheel-field .form-select {
    background-color: rgba(255, 255, 255, .95);
    color: #172021;
}

.tmp-wheel-page[data-theme="imperial"] .wheel-chip,
.tmp-wheel-page[data-theme="imperial"] .wheel-stats div,
.tmp-wheel-page[data-theme="imperial"] .wheel-color-row,
.tmp-wheel-page[data-theme="imperial"] .wheel-history li,
.tmp-wheel-page[data-theme="imperial"] .wheel-switch,
.tmp-wheel-page[data-theme="imperial"] .wheel-color-empty {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .14);
    color: var(--wheel-ink);
}

.tmp-wheel-page[data-theme="imperial"] .wheel-chip span,
.tmp-wheel-page[data-theme="imperial"] .wheel-color-row span,
.tmp-wheel-page[data-theme="imperial"] .wheel-history span {
    color: var(--wheel-ink);
}

.tmp-wheel-page[data-theme="imperial"] .btn-outline-light,
.tmp-wheel-page[data-theme="velvet"] .btn-outline-light {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(246, 221, 155, .26);
    color: var(--wheel-ink);
}

.tmp-wheel-page[data-theme="imperial"] .btn-outline-light:hover,
.tmp-wheel-page[data-theme="imperial"] .btn-outline-light:focus,
.tmp-wheel-page[data-theme="velvet"] .btn-outline-light:hover,
.tmp-wheel-page[data-theme="velvet"] .btn-outline-light:focus {
    background: rgba(246, 221, 155, .16);
    border-color: rgba(246, 221, 155, .44);
    color: #ffffff;
}

.tmp-wheel-page[data-theme="imperial"] .wheel-visual-wrap {
    background:
        repeating-linear-gradient(45deg, rgba(246, 221, 155, .09) 0 1px, transparent 1px 12px),
        radial-gradient(circle at 50% 45%, rgba(72, 196, 173, .18), rgba(10, 14, 15, .92) 64%);
    border-color: rgba(246, 221, 155, .22);
    box-shadow: inset 0 0 0 12px rgba(255, 255, 255, .04), 0 28px 54px rgba(0, 0, 0, .38);
}

.tmp-wheel-page[data-theme="platinum"] {
    --wheel-surface: #ffffff;
    --wheel-ink: #172021;
    --wheel-ink-soft: #2d3b3b;
    --wheel-muted: #657672;
    --wheel-line: #dbe6e2;
    --wheel-line-strong: #c5d4cf;
    --wheel-teal: #16786f;
    --wheel-teal-soft: #e7f5f2;
    --wheel-gold: #c89a32;
}

.tmp-wheel-page[data-theme="velvet"] {
    --wheel-surface: rgba(28, 16, 25, .94);
    --wheel-ink: #fff6f1;
    --wheel-ink-soft: #f3dfe5;
    --wheel-muted: #dcc4cd;
    --wheel-line: rgba(246, 189, 117, .24);
    --wheel-line-strong: rgba(246, 189, 117, .38);
    --wheel-teal: #65d1bf;
    --wheel-teal-soft: rgba(101, 209, 191, .16);
    --wheel-gold: #e2af55;
}

.tmp-wheel-page[data-theme="velvet"] .wheel-dashboard {
    background:
        linear-gradient(90deg, rgba(226, 175, 85, .08) 0 1px, transparent 1px 30px),
        linear-gradient(135deg, #1f111a, #311726 48%, #122c31 100%);
}

.tmp-wheel-page[data-theme="velvet"] .wheel-panel,
.tmp-wheel-page[data-theme="velvet"] .wheel-board,
.tmp-wheel-page[data-theme="velvet"] .wheel-history-panel,
.tmp-wheel-page[data-theme="velvet"] .wheel-design-studio {
    background: rgba(28, 16, 25, .88);
    border-color: rgba(246, 189, 117, .22);
}

.tmp-wheel-page[data-theme="velvet"] .wheel-chip,
.tmp-wheel-page[data-theme="velvet"] .wheel-stats div,
.tmp-wheel-page[data-theme="velvet"] .wheel-color-row,
.tmp-wheel-page[data-theme="velvet"] .wheel-history li,
.tmp-wheel-page[data-theme="velvet"] .wheel-switch,
.tmp-wheel-page[data-theme="velvet"] .wheel-color-empty {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .14);
}

.tmp-wheel-page[data-theme="studio"] {
    --wheel-surface: #ffffff;
    --wheel-ink: #142131;
    --wheel-ink-soft: #2d3b4d;
    --wheel-muted: #64748b;
    --wheel-line: #d6e3ef;
    --wheel-line-strong: #bdd1e2;
    --wheel-teal: #1d73b7;
    --wheel-teal-soft: #e9f4ff;
    --wheel-gold: #d4922f;
}

.tmp-wheel-page[data-theme="studio"] .wheel-dashboard {
    background:
        linear-gradient(90deg, rgba(29, 115, 183, .07) 0 1px, transparent 1px 26px),
        linear-gradient(180deg, #ffffff, #eef7ff);
}

@keyframes wheel-confetti-fall {
    to {
        opacity: 0;
        transform: translate(var(--confetti-x), var(--confetti-y)) rotate(var(--confetti-rotate));
    }
}

.tmp-wheel-page.is-spinning .wheel-center-btn span {
    animation: wheel-pulse 780ms ease-in-out infinite;
}

@keyframes wheel-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@media (max-width: 1399.98px) {
    .wheel-stage {
        grid-template-columns: minmax(0, 1fr);
    }

    .wheel-board,
    .wheel-result-panel,
    .wheel-history-panel {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 1199.98px) {
    .wheel-dashboard {
        grid-template-columns: 1fr;
    }

    .wheel-stage,
    .wheel-panel--controls {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 767.98px) {
    .tmp-wheel-page .wheel-hero {
        align-items: flex-start;
    }

    .wheel-hero__signal {
        margin-left: 0;
        width: 100%;
    }

    .wheel-dashboard {
        padding: 12px;
    }

    .wheel-controls-grid,
    .wheel-entry-tools,
    .wheel-stats {
        grid-template-columns: 1fr;
    }

    .wheel-actions .btn,
    .wheel-result-actions .btn {
        width: 100%;
    }

    .wheel-pointer span {
        height: 34px;
        width: 28px;
    }
}
