:root {
    --primary-blue: #5393CF;
    --dark-blue: #204C8A;
    --center-purple: #bf5af2;
    --arcade-font: 'lato', 'Comfortaa', 'Quicksand', system-ui, sans-serif;
}

.cw-wrapper-b3cf9109 {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0px;
    font-family: var(--arcade-font);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.cw-view {
    display: none;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cw-view.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Headings */
.cw-game-heading {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 24px 0;
    letter-spacing: -1.2px;
    line-height: 1.05;
}

.cw-game-desc {
    font-size: 1.7rem;
    color: #fff;
    line-height: 1.45;
    max-width: 720px;
    margin: 0 auto 55px;
}

.cw-outcome-title {
    font-size: 3.3rem;
    font-weight: 900;
    color: var(--dark-blue);
    margin: 0 0 42px 0;
    line-height: 1.1;
}

.cw-outcome-badge {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 28px;
}

.cw-outcome-badge.bg-primary {
    background: var(--primary-blue);
}

.cw-outcome-badge.bg-dark {
    background: var(--dark-blue);
}

/* Wheel Assembly */
.cw-wheel-assembly {
    position: relative;
    width: 620px;
    height: 620px;
    margin: 0 auto 60px;
}

/* Outer Steel Ring */
.cw-steel-ring {
    position: absolute;
    top: -18px;
    left: -18px;
    right: -18px;
    bottom: -18px;
    border-radius: 50%;
    border: 22px solid #a3abb1;
    box-shadow:
        inset 0 3px 6px rgba(255, 255, 255, 0.85),
        inset 0 -3px 6px rgba(0, 0, 0, 0.35),
        0 14px 34px rgba(0, 0, 0, 0.25);
    background: transparent;
    pointer-events: none;
    z-index: 5;
}

.cw-rivet {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #b2b9be 55%, #5a5f63 100%);
    border-radius: 50%;
    box-shadow: 1px 2px 3px rgba(0,0,0,0.45);
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    transform: rotate(calc(45deg * var(--r))) translateY(-306px);
}

/* Pointer */
.cw-pointer-pin {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 54px;
    height: 82px;
    z-index: 10;
    filter: drop-shadow(0 5px 8px rgba(0,0,0,0.35));
    background: linear-gradient(135deg, #e4eaf0 0%, #9ca3af 100%);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.cw-pointer-pin::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 17px;
    height: 17px;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #cbd5e1 55%, #4b5563 100%);
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Wheel Face */
.cw-wheel-core {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    background: conic-gradient(
        var(--primary-blue) 0deg 45deg,
        var(--dark-blue) 45deg 90deg,
        var(--primary-blue) 90deg 135deg,
        var(--dark-blue) 135deg 180deg,
        var(--primary-blue) 180deg 225deg,
        var(--dark-blue) 225deg 270deg,
        var(--primary-blue) 270deg 315deg,
        var(--dark-blue) 315deg 360deg
    );
    transition: transform 5s cubic-bezier(0.18, 0.9, 0.22, 1.01);
    box-shadow: inset 0 0 30px rgba(0,0,0,0.35);
}

.cw-wheel-core::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.35), transparent 38%);
    pointer-events: none;
}

.cw-wheel-core.idle {
    animation: cw-idle-sway 10s ease-in-out infinite alternate;
}

@keyframes cw-idle-sway {
    0% { transform: rotate(-4deg); }
    100% { transform: rotate(4deg); }
}

/* Wedge Labels */
.cw-label-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 140px;
    height: 50%;
    margin-left: -70px;
    transform-origin: bottom center;
    transform: rotate(calc(45deg * var(--i) + 22.5deg));
    display: flex;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
    padding-top: 58px;
}

.cw-wedge-label {
    font-size: 1.45rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    transform: rotate(90deg);
}

.font-dark {
    color: var(--dark-blue);
    text-shadow: 0 1px 2px rgba(255,255,255,0.45);
}

.font-light {
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.55);
}

/* Centre Spin Button */
.cw-spin-hub-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #f472b6 0%, var(--center-purple) 45%, #701a75 100%);
    border: 7px solid #ffffff;
    z-index: 8;
    cursor: pointer;
    outline: none;
    box-shadow:
        inset 0 5px 8px rgba(255,255,255,0.7),
        0 8px 22px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cw-spin-hub-btn:hover {
    transform: translate(-50%, -50%) scale(1.06);
}

.cw-spin-hub-btn:active {
    transform: translate(-50%, -50%) scale(0.92);
}

.cw-hub-text {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Buttons */
.cw-btn {
    font-family: var(--arcade-font);
    font-size: 1.7rem;
    font-weight: 900;
    padding: 22px 48px;
    border-radius: 70px;
    border: none;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.14);
}

.cw-btn-primary,
.cw-btn-secondary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: #ffffff;
}

.cw-btn-primary:hover,
.cw-btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(32, 76, 138, 0.35);
}

.cw-btn-outline {
    background: #ffffff;
    border: 3px solid var(--primary-blue);
    color: var(--primary-blue);
}

.cw-btn-outline:hover {
    background: rgba(83, 147, 207, 0.08);
    transform: translateY(-2px);
}

.cw-btn-block {
    width: 100%;
    text-decoration: none;
    box-sizing: border-box;
}

/* Outcome Cards */
.cw-wrapped-card-wrap {
    perspective: 1000px;
    margin: 44px auto;
    width: 100%;
    max-width: 700px;
}

.cw-wrapped-card {
    background: linear-gradient(145deg, #ffffff, #f1f8fe);
    border: 4px solid var(--primary-blue);
    border-radius: 42px;
    padding: 60px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 24px 54px rgba(32, 76, 138, 0.14);
    transform-style: preserve-3d;
    animation: cardEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardEntrance {
    0% {
        transform: translateY(40px) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.cw-question-render {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1.35;
    margin: 0;
}

.cw-reveal-emoji {
    font-size: 5.8rem;
    margin-bottom: 24px;
    animation: bounceEffect 1.5s infinite;
}

.cw-reveal-title-text {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--dark-blue);
    margin: 0;
    line-height: 1.2;
}

/* Progress */
.cw-progress-meter {
    width: 100%;
    max-width: 560px;
    height: 16px;
    background: #e2e8f0;
    border-radius: 20px;
    margin: 34px auto 10px;
    overflow: hidden;
}

.cw-meter-bar {
    height: 100%;
    border-radius: 20px;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cw-meter-bar.bar-lucky {
    background: var(--primary-blue);
}

.cw-meter-bar.bar-reveal {
    background: var(--dark-blue);
}

.cw-meter-caption {
    font-size: 1.25rem;
    font-weight: 900;
    color: #718096;
    margin-bottom: 34px;
}

.cw-stacked-buttons {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 560px;
    margin: 0 auto;
}

/* Confetti */
.cw-confetti-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99;
    overflow: hidden;
}

.confetti-dot {
    position: absolute;
    width: 13px;
    height: 13px;
    opacity: 0.9;
    animation: fallEffect 2s linear forwards;
}

@keyframes fallEffect {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(900px) rotate(720deg);
        opacity: 0;
    }
}

@keyframes bounceEffect {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Winning Highlight */
.cw-wheel-core.winning-highlight {
    animation: flashEffect 0.3s alternate infinite;
}

@keyframes flashEffect {
    from { filter: brightness(1); }
    to { filter: brightness(1.25); }
}

/* Complete Screen */
.cw-game-complete-icon {
    font-size: 6rem;
    margin-bottom: 34px;
}

/* Laptop / smaller desktop tuning */
@media (max-width: 1100px) {
    .cw-wrapper-b3cf9109 {
        max-width: 820px;
        padding: 56px 44px;
    }

    .cw-game-heading {
        font-size: 3.4rem;
    }

    .cw-game-desc {
        font-size: 1.45rem;
        margin-bottom: 46px;
    }

    .cw-wheel-assembly {
        width: 540px;
        height: 540px;
    }

    .cw-rivet {
        transform: rotate(calc(45deg * var(--r))) translateY(-266px);
    }

    .cw-label-container {
        width: 120px;
        margin-left: -60px;
        padding-top: 50px;
    }

    .cw-wedge-label {
        font-size: 1.25rem;
    }

    .cw-spin-hub-btn {
        width: 125px;
        height: 125px;
    }

    .cw-hub-text {
        font-size: 1.75rem;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .cw-wrapper-b3cf9109 {
        max-width: 100%;
        padding: 42px 24px;
        border-radius: 36px;
    }

    .cw-game-heading {
        font-size: 2.5rem;
    }

    .cw-game-desc {
        font-size: 1.2rem;
        margin-bottom: 36px;
    }

    .cw-wheel-assembly {
        width: 390px;
        height: 390px;
        margin-bottom: 42px;
    }

    .cw-steel-ring {
        top: -12px;
        left: -12px;
        right: -12px;
        bottom: -12px;
        border-width: 15px;
    }

    .cw-rivet {
        width: 12px;
        height: 12px;
        margin-top: -6px;
        margin-left: -6px;
        transform: rotate(calc(45deg * var(--r))) translateY(-192px);
    }

    .cw-pointer-pin {
        top: -24px;
        width: 34px;
        height: 52px;
    }

    .cw-label-container {
        width: 80px;
        margin-left: -40px;
        padding-top: 34px;
    }

    .cw-wedge-label {
        font-size: 0.9rem;
        letter-spacing: 1.2px;
    }

    .cw-spin-hub-btn {
        width: 88px;
        height: 88px;
        border-width: 4px;
    }

    .cw-hub-text {
        font-size: 1.15rem;
    }

    .cw-btn {
        font-size: 1.2rem;
        padding: 16px 34px;
    }

    .cw-outcome-title {
        font-size: 2.2rem;
    }

    .cw-question-render {
        font-size: 1.6rem;
    }

    .cw-reveal-title-text {
        font-size: 1.7rem;
    }

    .cw-wrapped-card {
        min-height: 240px;
        padding: 42px 30px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .cw-wrapper-b3cf9109 {
        padding: 30px 16px;
        border-radius: 28px;
    }

    .cw-game-heading {
        font-size: 1.85rem;
    }

    .cw-game-desc {
        font-size: 1.05rem;
    }

    .cw-wheel-assembly {
        width: 290px;
        height: 290px;
    }

    .cw-steel-ring {
        border-width: 12px;
    }

    .cw-rivet {
        transform: rotate(calc(45deg * var(--r))) translateY(-142px);
    }

    .cw-wedge-label {
        font-size: 0.75rem;
    }

    .cw-label-container {
        width: 70px;
        margin-left: -35px;
        padding-top: 22px;
    }

    .cw-spin-hub-btn {
        width: 70px;
        height: 70px;
    }

    .cw-hub-text {
        font-size: 1rem;
    }

    .cw-question-render {
        font-size: 1.35rem;
    }

    .cw-reveal-title-text {
        font-size: 1.45rem;
    }

    .cw-btn {
        font-size: 1.05rem;
        padding: 14px 28px;
    }
}