:root {
    --primary-blue: #5393CF;
    --dark-blue: #204C8A;
    --center-purple: #bf5af2;
    --arcade-font: 'Lato', 'Comfortaa', 'Quicksand', system-ui, sans-serif;
}

.cw-wrapper-a3cf9109 {
    width: 100%;
    margin: 0 auto;
    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);
}

.cw-spin-trigger-btn{display:none!important;}

/* Headings */
.cw-game-heading {
    font-size: 6rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 24px 0;
    letter-spacing: -1.2px;
    line-height: 1.05;
}

.cw-game-desc {
    font-size: 2.7rem;
    color: #fff;
    line-height: 1.45;
    max-width: 720px;
    margin: 0 auto 100px;
}

.cw-outcome-title {
    font-size: 3.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 42px 0;
    line-height: 1.1;
}

.cw-outcome-badge {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 50px;
    font-size: 45px;
    font-weight: 700;
    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: min(90vw, 80%);
    aspect-ratio: 1 / 1;

    margin: 0 auto 4vh;
}

/* Outer Steel Ring */
.cw-steel-ring{
    position:absolute;
    inset:-2.5%;
    background:url("https://pc.wecoded.it/wp-content/uploads/2026/07/bezel.png")
        center/contain no-repeat;
    pointer-events:none;
    z-index:5;
}

.cw-rivet {
    display:none!important;
    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;

    width:29%;
    aspect-ratio:0.55;

    top:-16%;
    left:50%;

    transform:translateX(-50%);

    background:url("https://pc.wecoded.it/wp-content/uploads/2026/07/pointer3.png")
        center/contain no-repeat;

    z-index:30;
}

.cw-pointer-pin::after{
    display:none;
}

/* 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 - centred and pulled away from hub */
.cw-label-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 38%;
    height: 44px;
    margin: -22px 0 0 0;
    transform-origin: 0 50%;
    transform: rotate(calc(45deg * var(--i) + 22.5deg));
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0px;
    box-sizing: border-box;
    pointer-events: none;
}

.cw-wedge-label {
    display: block;
    font-size: 2.7em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    transform: rotate(0deg);
    line-height: 1;
}

/* Keep labels readable on the left half of the wheel */
.cw-label-container:nth-child(5) .cw-wedge-label,
.cw-label-container:nth-child(6) .cw-wedge-label,
.cw-label-container:nth-child(7) .cw-wedge-label,
.cw-label-container:nth-child(8) .cw-wedge-label {
    transform: rotate(180deg);
}

.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::before{
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.cw-spin-hub-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 225px;
    height: 225px;
    border-radius: 50%;
    background: #701a75;
    border: 7px solid #ffffff;
    z-index: 8;
    cursor: pointer;
    outline: none;
   box-shadow: inset 0 4px 8px rgba(255, 255, 255, 0.3), inset 0 -4px 12px rgba(0, 0, 0, 0.4), 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.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: 4rem;
    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: 2.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: 80vw;
}

.cw-wrapped-card {
    background: linear-gradient(145deg, #ffffff, #f1f8fe);
    border: 4px solid #F5D130;
    border-radius: 42px;
    padding: 60px;
    min-height: 560px;
    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: 3.5rem;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1.35;
    margin: 0;
}

.cw-reveal-emoji {
    font-size: 10rem;
    margin-bottom: 0px;
    animation: bounceEffect 1.5s infinite;
}

.cw-reveal-title-text {
    font-size: 3.5rem;
    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(--primary-blue);
}

.cw-meter-caption {
    font-size: 40px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 34px;
}

.cw-stacked-buttons {
    display: flex;
    flex-direction: column;
    gap: 70px;
    max-width: 800px;
    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-piece {
    position: absolute;
    top: -30px;
    width: 10px;
    height: 18px;
    opacity: 0.95;
    border-radius: 2px;
    animation: confettiFall var(--fall-duration, 2.8s) linear forwards;
}

.confetti-piece.circle {
    border-radius: 50%;
}

.confetti-piece.ribbon {
    width: 8px;
    height: 24px;
    border-radius: 8px;
}

@keyframes confettiFall {
    0% {
        transform:
            translate3d(0, -30px, 0)
            rotateZ(0deg)
            rotateY(0deg);
        opacity: 1;
    }

    50% {
        transform:
            translate3d(var(--drift, 40px), 420px, 0)
            rotateZ(360deg)
            rotateY(180deg);
        opacity: 1;
    }

    100% {
        transform:
            translate3d(calc(var(--drift, 40px) * -1), 900px, 0)
            rotateZ(720deg)
            rotateY(360deg);
        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;
}

/* Fix wheel labels on smaller screens */
@media (max-width: 900px) {
    .cw-label-container {
        width: 38%;
        height: 32px;
        margin-top: -16px;
    }

    .cw-wedge-label {
        font-size: 20px;
        letter-spacing: 1px;
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .cw-label-container {
        width: 41%;
        height: 28px;
        margin-top: -14px;
        padding-right: 12px;
    }

    .cw-wedge-label {
        font-size: 20px;
        letter-spacing: 0.7px;
        max-width: 120px;
    }

    .cw-spin-hub-btn {
        width: 100px;
        height: 100px;
    }

    .cw-hub-text {
        font-size: 1.35rem;
    }
}

@media (max-width: 560px) {
    
    /* Wheel Assembly */
.cw-wheel-assembly {
    position: relative;
    width: 330px;
    height: 330px;
    margin: 0 auto 60px;
}
    
    .cw-label-container {
        width: 50%;
        height: 24px;
        margin-top: -12px;
        padding-right: 32px;
    }

    .cw-wedge-label {
        font-size: 13px;
        letter-spacing: 0px;
        max-width: 95px;
    }
    
    .cw-pointer-pin {
  top: -68px;
  background-size: 120px;
}

    .cw-spin-hub-btn {
        width: 78px;
        height: 78px;
    }

    .cw-game-heading{font-size:3em!important;}
    .cw-outcome-title{font-size:2.5em!important;}
    .cw-wrapped-card{padding:20px;min-height: 120px;}
    .cw-question-render {
        font-size: 24px;}
.cw-game-desc {
    font-size: 1.3em!important;}
    
    
    .cw-hub-text {
        font-size: 1rem;
    }
    .cw-reveal-title-text {
  font-size: 25px;
  font-weight: 900;
  color: var(--dark-blue);
  margin: 0;
  line-height: 1.2;
}
    
    .cw-reveal-emoji {
  font-size: 3em;
  margin-bottom: 0px;
  animation: bounceEffect 1.5s infinite;
}
}