.fs-gam-campaign {
    position: relative;
    max-width: 480px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    text-align: center;
    font-family: inherit;
}


.fs-gam-campaign.fs-gam-campaign-dice {
    max-width: 640px;
}

/* Pop-a-Balloon */
.fs-gam-balloon-box {
    position: relative;
    width: 100%;
    height: 220px;
    background: linear-gradient(180deg, #e9f4ff, #ffffff);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}

.fs-gam-balloon {
    position: absolute;
    bottom: 22px;                  
    width: 52px;                   
    height: 72px;
    background: radial-gradient(circle at 30% 25%, #ffffff 0%, #ffe5f3 30%, #ff7fb8 70%, #ff4fa0 100%);
    border-radius: 50% 50% 45% 45%;
    cursor: pointer;
    animation: fs-gam-float 4s ease-in-out infinite;
    transform-origin: 50% 100%;
}

.fs-gam-balloon::after {
    content: '';
    position: absolute;
    bottom: -30px;                 
    left: 50%;
    width: 2px;
    height: 30px;
    background: #aaa;
    transform: translateX(-50%);
}

/* pop halo ring */
.fs-gam-balloon::before {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    left: -20%;
    top: -20%;
    border-radius: 50%;
    border: 0 solid rgba(255, 255, 255, 0.9);
    opacity: 0;
}

.fs-gam-balloon:nth-child(1) { left: 10%; animation-delay: 0s; }
.fs-gam-balloon:nth-child(2) { left: 25%; animation-delay: 0.4s; }
.fs-gam-balloon:nth-child(3) { left: 40%; animation-delay: 0.8s; }
.fs-gam-balloon:nth-child(4) { left: 55%; animation-delay: 1.2s; }
.fs-gam-balloon:nth-child(5) { left: 70%; animation-delay: 1.6s; }
.fs-gam-balloon:nth-child(6) { left: 85%; animation-delay: 2s; }
.fs-gam-balloon:nth-child(7) { left: 18%; animation-delay: 2.4s; }
.fs-gam-balloon:nth-child(8) { left: 62%; animation-delay: 2.8s; }

/* floating motion */
@keyframes fs-gam-float {
    0%   { transform: translateY(0) scale(1); }
    50%  { transform: translateY(-30px) scale(1.03); }
    100% { transform: translateY(0) scale(1); }
}

/* big “almost realistic” pop */
.fs-gam-balloon-popped {
    animation: fs-gam-pop 0.55s cubic-bezier(.17,.89,.32,1.49) forwards;
}

/* halo ring expansion when popping */
.fs-gam-balloon-popped::before {
    animation: fs-gam-pop-ring 0.55s ease-out forwards;
}

/* main balloon pop */
@keyframes fs-gam-pop {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
        filter: brightness(1);
    }
    30% {
        transform: scale(1.3) translateY(-8px);
        filter: brightness(1.2);
    }
    55% {
        transform: scale(1.8) translateY(-14px) rotate(-4deg);
        opacity: 0.9;
        filter: brightness(1.4);
    }
    100% {
        transform: scale(0) translateY(-14px) rotate(4deg);
        opacity: 0;
        filter: blur(2px);
    }
}

@keyframes fs-gam-pop-ring {
    0% {
        opacity: 0.9;
        transform: scale(0.3);
        border-width: 0;
    }
    100% {
        opacity: 0;
        transform: scale(1.6);
        border-width: 6px;
    }
}

/* --- Spin-the-Wheel: fixed design --- */

.fs-gam-wheel-container {
    position: relative;
    margin: 10px auto;
}

.fs-gam-wheel {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #ffffff 0, #162a7c 55%, #0a143c 100%);
    box-shadow: 0 12px 25px rgba(0,0,0,0.35);
}

/* pointer */
.fs-gam-wheel-container::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(180deg); /* flipped to point down */
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 22px solid #ff6f61;
    z-index: 5;
}

/* rotor: this is what actually spins */
.fs-gam-wheel-rotor {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(var(--fsWheelRotation, 0deg));
    transition: transform 4s cubic-bezier(0.25, 0.1, 0.25, 1);
    overflow: hidden;
}

/* coloured slices disk */
.fs-gam-wheel-inner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 6px rgba(255,255,255,0.4);
}

/* centre cap */
.fs-gam-wheel-inner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #0b1c4e;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.4);
}

/* labels container */
.fs-gam-wheel-labels {
    position: absolute;
    inset: 0;
}

/* label anchored at centre, rotated into a slice */
.fs-gam-wheel-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 50% 50%;
}

/* wheel labels now use compact prize numbers; full prize names are shown in the key below */
.fs-gam-wheel-label span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 0 3px rgba(0,0,0,0.75);
    background: rgba(11, 28, 78, 0.25);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.3);
    line-height: 1;
}

/* .fs-gam-wheel-segment:nth-child(odd) {
    background: rgba(135, 206, 250, 0.5);
} */

.fs-gam-spin-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(90deg, #ff7eb3, #ff758c);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.fs-gam-spin-btn:hover {
    opacity: 0.9;
}

.fs-gam-scratch-container {
    position: relative;
    width: 300px;
    height: 180px;
    margin: 0 auto 10px;
}

/* The scratch layer (canvas) must be on TOP */
.fs-gam-scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;          
    height: 100%;
    border-radius: 12px;
    z-index: 2;           
    cursor: crosshair;
}

.fs-gam-instruction-top {
    margin-bottom: 8px;
    font-weight: 600;
}

/* Prize / background sits underneath */
.fs-gam-scratch-underlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff0f6, #e6f7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    user-select: none;    /* prevent text selection */
}

.fs-gam-scratch-text {
    font-weight: 600;
    color: #444;
    user-select: none;    
}

/* animated question marks while scratching */
.fs-gam-scratch-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
}

.fs-gam-scratch-placeholder span {
    font-size: 32px;
    font-weight: 700;
    color: #999;
    opacity: 0.7;
    animation: fs-gam-q-bounce 1.4s ease-in-out infinite;
}

.fs-gam-scratch-placeholder span:nth-child(2) {
    animation-delay: 0.15s;
}
.fs-gam-scratch-placeholder span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fs-gam-q-bounce {
    0%   { transform: translateY(0) scale(1);   opacity: 0.5; }
    50%  { transform: translateY(-6px) scale(1.06); opacity: 1; }
    100% { transform: translateY(0) scale(1);   opacity: 0.5; }
}

/* prize text that replaces the question marks */
.fs-gam-scratch-text {
    position: relative;
    z-index: 2;
    display: block;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: #333;
    padding: 0 10px;
    user-select: none;
}

/* Result overlay */
.fs-gam-result {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fs-gam-result-inner {
    position: relative;
    padding: 20px 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    max-width: 360px;
}

.fs-gam-result-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
}

.fs-gam-result-body p {
    margin: 5px 0;
}

/* Confetti */
.fs-gam-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.fs-gam-confetti::before,
.fs-gam-confetti::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        radial-gradient(circle, #ff8a80 2px, transparent 2px),
        radial-gradient(circle, #ffd180 2px, transparent 2px),
        radial-gradient(circle, #80d8ff 2px, transparent 2px),
        radial-gradient(circle, #ccff90 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0;
    transform: translateY(-100%);
}

.fs-gam-confetti-active::before,
.fs-gam-confetti-active::after {
    animation: fs-gam-confetti-fall 1.6s ease-out forwards;
}

@keyframes fs-gam-confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(-100%);
    }
    100% {
        opacity: 0;
        transform: translateY(50%);
    }
}

/* Misc */
.fs-gam-instruction {
    font-size: 13px;
    color: #666;
}

.fs-gam-error {
    color: red;
}

.fs-gam-result-image {
    max-width: 120px;
    border-radius: 8px;
}

.fs-gam-coupon-code {
    font-family: monospace;
    padding: 2px 6px;
    border-radius: 4px;
    background: #fff7d0;
}


/* === Dice game (single die sprite + static face) === */

.fs-gam-dice-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.fs-gam-dice-stage {
    width: 580px;
    height: 200px;
    border-radius: 18px;
    background: radial-gradient(circle at 20% 0%, #ffffff 0, #e7f1ff 40%, #d6e0f5 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.4),
        0 10px 25px rgba(15, 35, 52, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.fs-gam-dice-canvas {
    display: block;
}

.fs-gam-dice-stage::after {
    content: "";
    position: absolute;
    bottom: 34px;
    left: 50%;
    width: 180px;
    height: 28px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.35) 0, rgba(0,0,0,0) 70%);
    opacity: 0.7;
    filter: blur(2px);
    pointer-events: none;
}


/* Dice game: show result card below die instead of full overlay */
.fs-gam-campaign-dice .fs-gam-result {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    background: transparent;
    display: none; /* shown via .show() */
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 18px;
}

.fs-gam-campaign-dice .fs-gam-result-inner {
    max-width: 420px;
    margin: 0 auto;
}


/* Ensure hand cursor over the die area */
.fs-gam-dice-stage,
.fs-gam-dice-canvas {
    cursor: pointer;
}

/* === SmartNexus Interactive Experience === */
.fs-gam-campaign.fs-gam-experience {
    max-width: 980px;
    padding: 28px;
    text-align: left;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.fs-gam-experience-hero {
    text-align: center;
    padding: 18px 18px 22px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: radial-gradient(circle at top left, #eef6ff, #ffffff 62%);
    box-shadow: inset 0 0 0 1px rgba(15, 35, 52, 0.06);
}

.fs-gam-experience-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.08);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 12px;
}

.fs-gam-experience-hero h2 {
    margin: 0 0 6px;
    font-size: clamp(24px, 4vw, 40px);
    color: #0f172a;
}

.fs-gam-experience-hero p {
    margin: 0;
    color: #475569;
    font-size: 18px;
}

.fs-gam-lead-form label,
.fs-gam-field-block > label {
    display: block;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
}

.fs-gam-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.fs-gam-lead-form input[type="text"],
.fs-gam-lead-form input[type="email"],
.fs-gam-lead-form input[type="tel"],
.fs-gam-lead-form select,
.fs-gam-lead-form textarea {
    width: 100%;
    border: 1px solid #d7dfec;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 15px;
    background: #fff;
    box-sizing: border-box;
}

.fs-gam-field-block {
    margin-top: 18px;
}

.fs-gam-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 12px;
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e5edf8;
}

.fs-gam-checkbox-grid label,
.fs-gam-consent-box label {
    font-weight: 500;
    color: #334155;
}

.fs-gam-consent-box {
    margin-top: 18px;
    padding: 16px;
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #3f2f1d;
}

.fs-gam-consent-box label {
    display: block;
    margin-top: 10px;
}

.fs-gam-consent-box details {
    margin-top: 12px;
}

.fs-gam-form-actions {
    text-align: center;
    margin-top: 20px;
}

.fs-gam-form-message {
    margin-top: 12px;
    text-align: center;
    font-weight: 700;
}

.fs-gam-error-message { color: #b91c1c; }
.fs-gam-success-message { color: #047857; }

.fs-gam-primary-btn,
.fs-gam-game-choice,
.fs-gam-spin-btn {
    cursor: pointer;
}

.fs-gam-game-select {
    text-align: center;
    margin-top: 18px;
}

.fs-gam-game-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.fs-gam-game-choice {
    border: 1px solid #dbe7f6;
    border-radius: 18px;
    padding: 18px 14px;
    background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
    box-shadow: 0 10px 22px rgba(15, 35, 52, 0.08);
    color: #0f172a;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fs-gam-game-choice:hover,
.fs-gam-game-choice.is-selected {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.16);
    border-color: #60a5fa;
}

.fs-gam-game-choice strong {
    display: block;
    font-size: 17px;
    margin-bottom: 6px;
}

.fs-gam-game-choice span {
    display: block;
    font-size: 13px;
    color: #64748b;
}

.fs-gam-selected-game {
    text-align: center;
    margin-top: 20px;
}

.fs-gam-campaign-experience .fs-gam-result {
    position: static;
    background: transparent;
    margin-top: 24px;
    display: none;
}

.fs-gam-campaign-experience .fs-gam-result-inner {
    max-width: 520px;
    margin: 0 auto;
}

@media (max-width: 760px) {
    .fs-gam-campaign.fs-gam-experience {
        padding: 18px;
    }
    .fs-gam-form-grid,
    .fs-gam-checkbox-grid,
    .fs-gam-game-options {
        grid-template-columns: 1fr;
    }
    .fs-gam-dice-stage {
        max-width: 100%;
        width: 100%;
    }
    .fs-gam-dice-canvas {
        max-width: 100%;
    }
}

/* Lead form gate rendered from Freedom Contact Forms */
.fs-gam-form-gate {
    max-width: 760px;
    margin: 24px auto 0;
    padding: 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #dbe7f6;
    box-shadow: 0 12px 30px rgba(15, 35, 52, 0.08);
}

.fs-gam-form-gate h3 {
    margin-top: 0;
    text-align: center;
}

.fs-gam-form-gate > p {
    text-align: center;
    color: #64748b;
}

.fs-gam-form-gate-complete {
    text-align: center;
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.fs-gam-form-gate .fs-cf-wrapper,
.fs-gam-form-gate .fs-cf-form {
    margin-top: 12px;
}

/* Spin-the-Wheel prize number key */
.fs-gam-wheel-legend {
    max-width: 520px;
    margin: 14px auto 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    text-align: left;
}

.fs-gam-wheel-legend-title {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
}

.fs-gam-wheel-legend-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.fs-gam-wheel-legend-table th,
.fs-gam-wheel-legend-table td {
    padding: 7px 8px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: top;
}

.fs-gam-wheel-legend-table th {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fs-gam-wheel-legend-table tr:last-child td {
    border-bottom: none;
}

.fs-gam-wheel-legend-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #0b1c4e;
    color: #ffffff;
    font-weight: 800;
    line-height: 1;
}


/* Booth/event flow: next participant button after a play */
.fs-gam-next-entry-wrap {
    margin-top: 18px;
}
.fs-gam-next-entry-btn {
    display: inline-block;
    background: #0f172a;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 700;
}
.fs-gam-next-entry-btn:hover,
.fs-gam-next-entry-btn:focus {
    background: #1e293b;
    color: #ffffff !important;
}
.fs-gam-next-entry-note {
    margin-top: 8px;
    font-size: 13px;
    color: #64748b;
}
