/* Spinning Wheel 2 v1.1.5 — canvas label + host section fixes */
.sw2-app,
.sw2-board {
    --sw2-ink: #102444;
    --sw2-ink-strong: #071b3a;
    --sw2-muted: #5d708e;
    --sw2-surface: #f4f7fd;
    --sw2-surface-strong: #fbfcff;
    --sw2-surface-soft: #eaf1ff;
    --sw2-border: #ccdafa;
    --sw2-primary: #1464f4;
    --sw2-primary-dark: #0b3d91;
    --sw2-primary-soft: #e8f0ff;
    --sw2-gold: #d1a12a;
    --sw2-gold-dark: #7b5a08;
    --sw2-gold-soft: #f6e9bc;
    --sw2-danger: #ad3027;
    --sw2-danger-bg: #faeeec;
    --sw2-shadow: 0 20px 48px rgba(14, 55, 118, 0.14);
    --sw2-radius-sm: 12px;
    --sw2-radius-md: 20px;
    --sw2-radius-lg: 30px;
    color: var(--sw2-ink) !important;
    font-family: inherit !important;
}

/* Break out of Flatsome row/column max-width without touching the theme globally. */
.sw2-app {
    position: relative !important;
    left: 50% !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-right: -50vw !important;
    margin-left: -50vw !important;
    overflow-x: clip !important;
}

.sw2-app *,
.sw2-board * {
    box-sizing: border-box;
}

html.sw2-modal-open {
    overflow: hidden;
}

.sw2-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.sw2-shell {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(520px, 720px) minmax(220px, 1fr);
    gap: clamp(20px, 2.4vw, 42px);
    align-items: center;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px clamp(56px, 5vw, 88px) 30px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.sw2-history-rail {
    min-width: 0;
    align-self: center;
}

.sw2-history-rail-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 0 2px;
}

.sw2-history-kicker {
    color: var(--sw2-primary) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: 0.12em !important;
    line-height: 1 !important;
}

.sw2-history-rail-head strong {
    color: var(--sw2-ink-strong) !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
}

.sw2-history-list {
    display: grid;
    gap: 10px;
}

.sw2-history-item {
    position: relative;
    min-width: 0;
    padding: 14px 14px 13px 16px;
    border: 1px solid #dbe5f8;
    border-radius: 14px;
    background: #fbfcff;
}

.sw2-history-item::before {
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--sw2-primary);
    content: '';
}

.sw2-history-person {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.sw2-history-person strong {
    min-width: 0;
    overflow: hidden;
    color: var(--sw2-ink-strong) !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sw2-history-person time {
    flex: 0 0 auto;
    color: var(--sw2-muted) !important;
    font-size: 10px !important;
    font-variant-numeric: tabular-nums;
    font-weight: 700 !important;
}

.sw2-history-prize {
    margin-top: 7px;
    overflow: hidden;
    color: var(--sw2-primary-dark) !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    line-height: 1.3 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sw2-history-code {
    display: inline-block;
    margin-top: 7px;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--sw2-primary-soft);
    color: var(--sw2-primary-dark) !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.sw2-history-empty {
    padding: 18px 12px;
    border: 1px dashed #cbd9f2;
    border-radius: 14px;
    color: var(--sw2-muted);
    font-size: 12px;
    text-align: center;
}

.sw2-header {
    max-width: 760px;
    margin: 0 auto 12px;
    text-align: center;
}

.sw2-eyebrow,
.sw2-modal-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin: 0 0 12px;
    padding: 5px 11px;
    border: 1px solid #bfd0f4;
    border-radius: 999px;
    background: var(--sw2-primary-soft);
    color: var(--sw2-primary-dark) !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    letter-spacing: 0.12em !important;
    line-height: 1.15 !important;
}

.sw2-title,
.sw2-board-heading h3,
.sw2-modal-card h3,
.sw2-top-card h4 {
    color: var(--sw2-ink-strong) !important;
    font-family: inherit !important;
    text-transform: none !important;
}

.sw2-title {
    margin: 0 !important;
    color: var(--sw2-primary-dark) !important;
    font-size: clamp(38px, 6vw, 64px) !important;
    font-weight: 950 !important;
    letter-spacing: -0.045em !important;
    line-height: 0.98 !important;
}


.sw2-wheel-wrap {
    display: grid;
    min-width: 0;
    justify-items: center;
}

.sw2-wheel-stage {
    position: relative;
    isolation: isolate;
    width: min(100%, 720px);
    aspect-ratio: 1;
    margin: 0 auto;
    padding: 10px;
}

.sw2-wheel-aura {
    position: absolute;
    z-index: 0;
    inset: 4.9%;
    border: 1px solid rgba(20, 100, 244, 0.18);
    border-radius: 999px;
    pointer-events: none;
}

.sw2-wheel-canvas {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 16px 17px rgba(14, 55, 118, 0.16));
}

.sw2-pointer {
    position: absolute;
    z-index: 4;
    top: 2px;
    left: 50%;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-right: 22px solid transparent;
    border-left: 22px solid transparent;
    border-top: 40px solid var(--sw2-primary);
    filter: drop-shadow(0 3px 2px rgba(14, 55, 118, 0.16));
}

.sw2-spin-entry {
    position: absolute !important;
    z-index: 3 !important;
    top: 50% !important;
    left: 50% !important;
    display: grid !important;
    width: 20% !important;
    min-width: 100px !important;
    aspect-ratio: 1 !important;
    min-height: 0 !important;
    padding: 0 !important;
    place-content: center !important;
    transform: translate(-50%, -50%) !important;
    border: 6px solid #f8faff !important;
    border-radius: 999px !important;
    background: var(--sw2-primary) !important;
    color: #f8faff !important;
    box-shadow: 0 10px 24px rgba(14, 55, 118, 0.20) !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease !important;
}

.sw2-spin-entry:hover:not(:disabled) {
    background: var(--sw2-primary-dark) !important;
    transform: translate(-50%, -50%) scale(1.045) !important;
    box-shadow: 0 13px 28px rgba(14, 55, 118, 0.24) !important;
}

.sw2-spin-entry:active:not(:disabled) {
    transform: translate(-50%, -50%) scale(0.985) !important;
}

.sw2-spin-entry:focus-visible {
    outline: 4px solid rgba(20, 100, 244, 0.30) !important;
    outline-offset: 5px !important;
}

.sw2-spin-entry:disabled {
    cursor: wait !important;
    opacity: 0.7 !important;
}

.sw2-spin-entry-main {
    display: block;
    font-size: clamp(24px, 4vw, 44px) !important;
    font-weight: 950 !important;
    letter-spacing: 0.01em !important;
    line-height: 0.98 !important;
}

.sw2-spin-entry-sub {
    display: block;
    margin-top: 6px;
    font-size: clamp(9px, 1.3vw, 12px) !important;
    font-weight: 850 !important;
    letter-spacing: 0.14em !important;
    line-height: 1 !important;
}



.sw2-modal[hidden],
.sw2-code-step[hidden],
.sw2-identity-step[hidden] {
    display: none !important;
}

.sw2-modal {
    position: fixed !important;
    z-index: 120 !important;
    inset: 0 !important;
    display: grid !important;
    isolation: isolate !important;
    padding: 22px !important;
    place-items: center !important;
    opacity: 0;
    transition: opacity 180ms ease-out !important;
}

.sw2-modal.is-open { opacity: 1; }

.sw2-modal-backdrop {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: rgba(6, 24, 55, 0.76);
    backdrop-filter: blur(4px);
}

.sw2-modal-card {
    position: relative !important;
    z-index: 1 !important;
    width: min(100%, 520px) !important;
    max-height: min(88vh, 720px) !important;
    overflow-y: auto !important;
    padding: 36px !important;
    border: 1px solid #cbd9f5 !important;
    border-radius: var(--sw2-radius-md) !important;
    background: var(--sw2-surface-strong) !important;
    box-shadow: var(--sw2-shadow) !important;
    transform: translateY(12px) scale(0.985);
    transition: transform 180ms ease-out !important;
}

.sw2-modal.is-open .sw2-modal-card { transform: translateY(0) scale(1); }

.sw2-modal-card h3 {
    margin: 0 42px 10px 0 !important;
    font-size: clamp(28px, 5vw, 35px) !important;
    font-weight: 900 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.07 !important;
}

.sw2-modal-intro,
.sw2-confirm-copy,
.sw2-result-customer {
    color: #566b89 !important;
    font-size: 15px !important;
    font-weight: 570 !important;
    line-height: 1.58 !important;
}

.sw2-modal-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    display: grid !important;
    width: 38px !important;
    height: 38px !important;
    min-height: 0 !important;
    padding: 0 !important;
    place-items: center !important;
    border: 1px solid var(--sw2-border) !important;
    border-radius: 999px !important;
    background: #eef3fd !important;
    color: var(--sw2-primary-dark) !important;
    font-size: 24px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: background-color 150ms ease, border-color 150ms ease !important;
}

.sw2-modal-close:hover {
    border-color: #b9c9ea !important;
    background: #e7eefc !important;
}

.sw2-label {
    display: block;
    margin: 24px 0 8px !important;
    color: var(--sw2-ink-strong) !important;
    font-size: 14px !important;
    font-weight: 850 !important;
}

.sw2-input {
    width: 100% !important;
    height: 56px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 1px solid #b9caec !important;
    border-radius: var(--sw2-radius-sm) !important;
    background: #fbfcff !important;
    color: var(--sw2-ink-strong) !important;
    font: inherit !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    box-shadow: none !important;
    text-transform: uppercase !important;
    transition: border-color 150ms ease, box-shadow 150ms ease !important;
}

.sw2-input:hover { border-color: #a9bee8 !important; }

.sw2-input:focus-visible {
    border-color: var(--sw2-primary) !important;
    outline: 3px solid rgba(20, 100, 244, 0.14) !important;
    outline-offset: 1px !important;
}

.sw2-help {
    margin: 8px 0 18px !important;
    color: var(--sw2-muted) !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

.sw2-app .button,
.sw2-board .button {
    min-height: 50px !important;
    margin: 0 !important;
    padding: 0 21px !important;
    border-radius: var(--sw2-radius-sm) !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease, opacity 150ms ease !important;
}

.sw2-app .button.primary,
.sw2-board .button.primary {
    border-color: var(--sw2-primary) !important;
    background: var(--sw2-primary) !important;
    color: #f8faff !important;
}

.sw2-app .button.primary:hover:not(:disabled),
.sw2-board .button.primary:hover:not(:disabled) {
    border-color: var(--sw2-primary-dark) !important;
    background: var(--sw2-primary-dark) !important;
    transform: translateY(-1px) !important;
}

.sw2-app .button.is-outline {
    border-color: #b9caec !important;
    background: transparent !important;
    color: var(--sw2-primary-dark) !important;
}

.sw2-app .button.is-outline:hover:not(:disabled) {
    border-color: #a9bee8 !important;
    background: var(--sw2-primary-soft) !important;
}

.sw2-app .button:focus-visible,
.sw2-modal-close:focus-visible {
    outline: 3px solid rgba(201, 154, 36, 0.46) !important;
    outline-offset: 3px !important;
}

.sw2-app .button:disabled,
.sw2-app .button.is-busy {
    cursor: wait !important;
    opacity: 0.62 !important;
}

.sw2-check-button { width: 100% !important; }

.sw2-status {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: var(--sw2-radius-sm);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.5;
}

.sw2-status:empty { display: none; }
.sw2-status.is-loading { background: #eef3fd; color: #536987; }
.sw2-status.is-success { background: var(--sw2-primary-soft); color: var(--sw2-primary-dark); }
.sw2-status.is-error { background: var(--sw2-danger-bg); color: var(--sw2-danger); }

.sw2-verified-mark {
    display: grid;
    width: 60px;
    height: 60px;
    margin-bottom: 18px;
    place-items: center;
    border: 2px solid #8cace7;
    border-radius: 999px;
    background: var(--sw2-primary-soft);
    color: var(--sw2-primary-dark);
    font-size: 29px;
    font-weight: 950;
}

.sw2-customer-card {
    display: grid;
    gap: 5px;
    margin: 22px 0 14px;
    padding: 19px;
    border-left: 5px solid var(--sw2-primary);
    border-radius: 0 var(--sw2-radius-sm) var(--sw2-radius-sm) 0;
    background: #eef3fd;
}

.sw2-customer-label {
    color: var(--sw2-muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sw2-customer-name {
    color: var(--sw2-ink-strong);
    font-size: 23px;
    font-weight: 900;
    line-height: 1.17;
}

.sw2-customer-code {
    color: var(--sw2-primary-dark);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    font-weight: 850;
}

.sw2-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.sw2-modal-actions .button.primary { flex: 1 1 220px; }
.sw2-modal-actions .button.is-outline { flex: 0 1 auto; }

.sw2-result-card {
    overflow: hidden !important;
    text-align: center;
}

.sw2-result-card h3 { margin-right: 0 !important; }

.sw2-result-prize {
    margin: 24px 0 12px;
    color: var(--sw2-primary-dark) !important;
    font-size: clamp(36px, 7vw, 54px) !important;
    font-weight: 950 !important;
    letter-spacing: -0.04em !important;
    line-height: 1.02 !important;
}

.sw2-result-customer { margin-bottom: 24px !important; }

.sw2-result-stars {
    position: absolute;
    inset: 0;
    background: url("../img/gold-stars.svg") center top / 100% auto no-repeat;
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease;
}

.sw2-result-card.is-top-reward {
    border: 3px solid var(--sw2-gold) !important;
    background-color: #fbf8ea !important;
    background-image: url("../img/gold-stars.svg") !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-size: 100% auto !important;
}

.sw2-result-card.is-top-reward .sw2-result-stars { opacity: 1; }

.sw2-result-card.is-top-reward .sw2-modal-kicker {
    border-color: #d8bd6d;
    background: var(--sw2-gold-soft);
    color: var(--sw2-gold-dark) !important;
}

.sw2-result-card.is-top-reward .sw2-result-prize { color: var(--sw2-gold-dark) !important; }

.sw2-board {
    max-width: 1080px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid var(--sw2-border);
    border-radius: var(--sw2-radius-md);
    background: var(--sw2-surface-strong);
    box-shadow: 0 10px 28px rgba(14, 55, 118, 0.07);
}

.sw2-board-heading { margin-bottom: 20px; }

.sw2-board-heading h3 {
    margin: 0 !important;
    font-size: clamp(25px, 3vw, 35px) !important;
    font-weight: 900 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.12 !important;
}

.sw2-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--sw2-border);
    border-radius: var(--sw2-radius-sm);
}

.sw2-board-table {
    width: 100%;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.sw2-board-table th,
.sw2-board-table td {
    padding: 14px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--sw2-border) !important;
    text-align: left !important;
    vertical-align: middle !important;
}

.sw2-board-table th {
    background: #edf3ff !important;
    color: #566b89 !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

.sw2-board-table tbody tr:last-child td { border-bottom: 0 !important; }

.sw2-board-table tbody tr:hover td { background: #f6f8fd !important; }

.sw2-code-badge,
.sw2-congrats-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
}

.sw2-code-badge {
    background: #edf3ff;
    color: var(--sw2-primary-dark);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.sw2-congrats-badge {
    margin-bottom: 14px;
    border: 1px solid #d8bd6d;
    background: var(--sw2-gold-soft);
    color: var(--sw2-gold-dark);
}

.sw2-top-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.sw2-top-card {
    min-width: 0;
    padding: 22px;
    border: 1px solid #d8bd6d;
    border-radius: var(--sw2-radius-md);
    background: #fbf8ea;
}

.sw2-top-card h4 {
    margin: 0 0 8px !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    line-height: 1.18 !important;
}

.sw2-top-card p {
    margin: 0 0 8px !important;
    color: var(--sw2-ink) !important;
    font-weight: 750;
}

.sw2-top-card time {
    color: var(--sw2-muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.sw2-empty-state {
    padding: 28px;
    border: 1px dashed #b9c9ea;
    border-radius: var(--sw2-radius-sm);
    background: #f5f8fe;
    color: var(--sw2-muted);
    text-align: center;
}

@media (max-width: 1180px) {
    .sw2-app {
        left: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .sw2-shell {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 18px;
        padding: 18px 18px 28px;
    }

    .sw2-wheel-wrap {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .sw2-history-rail-left {
        grid-column: 1;
        grid-row: 2;
    }

    .sw2-history-rail-right {
        grid-column: 2;
        grid-row: 2;
    }

    .sw2-history-rail {
        align-self: start;
    }
}

@media (max-width: 760px) {
    .sw2-shell {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 12px 12px 24px;
    }

    .sw2-wheel-wrap,
    .sw2-history-rail-left,
    .sw2-history-rail-right {
        grid-column: 1;
    }

    .sw2-wheel-wrap { grid-row: 1; }
    .sw2-history-rail-left { grid-row: 2; }
    .sw2-history-rail-right { grid-row: 3; }

    .sw2-history-rail-head { margin-bottom: 10px; }
    .sw2-history-list { gap: 8px; }
    .sw2-history-item { padding: 12px 12px 11px 14px; }

    .sw2-header { margin-bottom: 18px; }
    .sw2-title { font-size: clamp(31px, 10vw, 43px) !important; }
    .sw2-subtitle { font-size: 15px !important; }

    .sw2-wheel-stage {
        width: min(100%, 560px);
        padding: 7px;
    }

    .sw2-pointer {
        border-right-width: 16px;
        border-left-width: 16px;
        border-top-width: 29px;
    }

    .sw2-spin-entry {
        min-width: 88px !important;
        border-width: 4px !important;
    }

    .sw2-wheel-caption {
        margin-top: 2px;
        font-size: 12px;
    }

    .sw2-modal { padding: 14px !important; }

    .sw2-modal-card {
        padding: 28px 20px !important;
        border-radius: 17px !important;
    }

    .sw2-modal-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .sw2-modal-actions .button { width: 100% !important; }
    .sw2-board { padding: 20px 14px; }
    .sw2-top-grid { grid-template-columns: 1fr; }
    .sw2-board-table thead { display: none; }

    .sw2-board-table,
    .sw2-board-table tbody,
    .sw2-board-table tr,
    .sw2-board-table td {
        display: block;
        width: 100%;
    }

    .sw2-board-table tr {
        padding: 12px 14px;
        border-bottom: 1px solid var(--sw2-border);
    }

    .sw2-board-table tr:last-child { border-bottom: 0; }

    .sw2-board-table td {
        display: grid;
        grid-template-columns: 108px 1fr;
        gap: 10px;
        padding: 6px 0 !important;
        border-bottom: 0 !important;
    }

    .sw2-board-table td::before {
        color: var(--sw2-muted);
        content: attr(data-label);
        font-size: 11px;
        font-weight: 850;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sw2-app *,
    .sw2-board * {
        scroll-behavior: auto !important;
        animation: none !important;
        transition-duration: 1ms !important;
    }
}

/* v1.1.4 - premium three-column layout, brand header and compact wheel */
.sw2-app {
    background: #fdfefe !important;
    padding: 0 0 28px !important;
}

.sw2-app::before,
.sw2-app::after,
.sw2-shell::before,
.sw2-shell::after {
    display: none !important;
    content: none !important;
}

.sw2-brand-header {
    position: relative;
    display: grid;
    width: min(100%, 1680px);
    min-height: 96px;
    margin: 0 auto;
    padding: 22px clamp(54px, 5vw, 88px) 8px;
    place-items: center;
}

.sw2-brand-logo {
    position: absolute;
    top: 20px;
    left: clamp(54px, 5vw, 88px);
    display: flex;
    width: min(170px, 18vw);
    height: 54px;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none !important;
}

.sw2-brand-logo-image {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 54px !important;
    margin: 0 !important;
    object-fit: contain !important;
}

.sw2-brand-logo-text {
    color: var(--sw2-primary-dark) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
}

.sw2-brand-title {
    margin: 0 !important;
    background: linear-gradient(90deg, #073aaf 0%, #1464f4 32%, #29a9ff 55%, #1464f4 76%, #073aaf 100%);
    background-size: 230% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
    font-size: clamp(34px, 4.2vw, 58px) !important;
    font-weight: 950 !important;
    letter-spacing: -0.045em !important;
    line-height: 1 !important;
    text-align: center !important;
    animation: sw2-brand-title-flow 6.5s ease-in-out infinite alternate;
}

@keyframes sw2-brand-title-flow {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}

.sw2-shell {
    grid-template-columns: minmax(260px, 1fr) minmax(500px, 660px) minmax(260px, 1fr);
    gap: clamp(28px, 3vw, 54px);
    align-items: start;
    width: min(100%, 1680px);
    margin: 0 auto;
    padding: 10px clamp(54px, 5vw, 88px) 18px;
    background: transparent !important;
}

.sw2-history-rail {
    display: flex;
    min-width: 0;
    height: clamp(500px, 67vh, 640px);
    align-self: start;
    flex-direction: column;
    padding-top: 28px;
}

.sw2-history-rail-head {
    flex: 0 0 auto;
    margin-bottom: 10px;
    padding: 0 0 10px;
    border-bottom: 1px solid #e2eaf7;
}

.sw2-history-kicker {
    font-size: 12px !important;
    letter-spacing: 0.1em !important;
}

.sw2-history-kicker-gold {
    color: #9a7012 !important;
}

.sw2-history-rail-head strong {
    color: #55708f !important;
    font-size: 12px !important;
    font-weight: 760 !important;
}

.sw2-history-rail .sw2-board-content {
    min-height: 0;
    flex: 1 1 auto;
}

.sw2-rail-scroll {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #c4d4ed transparent;
    scrollbar-width: thin;
    padding-right: 4px;
}

.sw2-rail-scroll::-webkit-scrollbar { width: 5px; }
.sw2-rail-scroll::-webkit-scrollbar-track { background: transparent; }
.sw2-rail-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #c4d4ed;
}

.sw2-history-list {
    gap: 0;
}

.sw2-history-item {
    padding: 16px 2px 16px 13px;
    border: 0;
    border-bottom: 1px solid #e5ecf6;
    border-radius: 0;
    background: transparent;
}

.sw2-history-item:last-child {
    border-bottom: 0;
}

.sw2-history-item::before {
    top: 18px;
    bottom: 18px;
    width: 2px;
    border-radius: 999px;
}

.sw2-history-person strong {
    font-size: 14px !important;
}

.sw2-history-prize {
    margin-top: 6px;
    color: #0e4ca6 !important;
    font-size: 13px !important;
}

.sw2-history-code {
    margin-top: 7px;
    padding: 2px 7px;
    background: #edf4ff;
    font-size: 9px !important;
}

.sw2-history-empty {
    margin-top: 2px;
    padding: 22px 12px;
    border-color: #d5dfef;
    background: transparent;
}

.sw2-hall-item::before {
    background: #c8992b;
}

.sw2-hall-badge {
    margin-bottom: 7px;
    color: #9a7012 !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    letter-spacing: 0.1em !important;
}

.sw2-hall-prize {
    margin-top: 0;
    color: #74520a !important;
    font-size: 15px !important;
}

.sw2-hall-person {
    margin-top: 7px;
}

.sw2-hall-person strong {
    color: #263d5d !important;
    font-size: 13px !important;
}

.sw2-hall-empty {
    border-color: #ead9a9;
    color: #80631d;
}

.sw2-wheel-stage {
    width: min(100%, 660px);
    padding: 4px;
}

.sw2-wheel-aura {
    display: none !important;
}

.sw2-wheel-canvas {
    filter: drop-shadow(0 12px 18px rgba(18, 62, 126, 0.10));
}

.sw2-pointer {
    top: -1px;
    border-right-width: 14px;
    border-left-width: 14px;
    border-top-width: 26px;
    filter: none;
}

.sw2-spin-entry {
    width: 17.5% !important;
    min-width: 88px !important;
    border-width: 4px !important;
    background: #1464f4 !important;
    box-shadow: 0 7px 18px rgba(14, 65, 145, 0.14) !important;
}

.sw2-spin-entry:hover:not(:disabled) {
    background: #0f55d5 !important;
    box-shadow: 0 9px 20px rgba(14, 65, 145, 0.17) !important;
}

.sw2-spin-entry-main {
    font-size: clamp(22px, 3.2vw, 38px) !important;
    letter-spacing: -0.01em !important;
}

@media (max-width: 1180px) {
    .sw2-brand-header {
        min-height: 92px;
        padding: 18px 22px 6px;
    }

    .sw2-brand-logo {
        left: 22px;
        width: 135px;
        height: 48px;
    }

    .sw2-brand-logo-image { max-height: 48px !important; }

    .sw2-shell {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 18px;
        width: 100%;
        padding: 8px 18px 26px;
    }

    .sw2-wheel-wrap {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .sw2-history-rail-left {
        grid-column: 1;
        grid-row: 2;
    }

    .sw2-history-rail-right {
        grid-column: 2;
        grid-row: 2;
    }

    .sw2-history-rail {
        height: 420px;
        padding-top: 0;
    }
}

@media (max-width: 760px) {
    .sw2-app { padding-bottom: 20px !important; }

    .sw2-brand-header {
        display: block;
        min-height: 0;
        padding: 16px 16px 4px;
        text-align: center;
    }

    .sw2-brand-logo {
        position: static;
        width: 120px;
        height: 42px;
        margin: 0 auto 12px;
        justify-content: center;
    }

    .sw2-brand-logo-image { max-height: 42px !important; }

    .sw2-brand-title {
        font-size: clamp(31px, 10vw, 43px) !important;
    }

    .sw2-shell {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 10px 12px 22px;
    }

    .sw2-wheel-wrap,
    .sw2-history-rail-left,
    .sw2-history-rail-right {
        grid-column: 1;
    }

    .sw2-wheel-wrap { grid-row: 1; }
    .sw2-history-rail-left { grid-row: 2; }
    .sw2-history-rail-right { grid-row: 3; }

    .sw2-history-rail {
        height: auto;
        max-height: 440px;
        padding-top: 0;
    }

    .sw2-rail-scroll {
        max-height: 360px;
    }

    .sw2-wheel-stage {
        width: min(100%, 560px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sw2-brand-title {
        animation: none !important;
        background-position: 45% 50% !important;
    }
}


/* v1.1.5 - label-safe wheel, larger branding, remove host-section color bleed */
.section.sw2-host-section,
.sw2-host-section,
.sw2-host-section > .section-bg,
.sw2-host-section > .section-bg > .bg-fill,
.sw2-host-section .sw2-host-background {
    background-color: #fdfefe !important;
    background-image: none !important;
}

.sw2-host-section > .section-bg,
.sw2-host-section .sw2-host-background {
    opacity: 1 !important;
}

.sw2-app {
    min-height: 100% !important;
    background: #fdfefe !important;
}

.sw2-brand-header {
    min-height: 112px;
    padding-top: 18px;
}

.sw2-brand-logo {
    top: 12px;
    width: min(250px, 22vw);
    height: 88px;
}

.sw2-brand-logo-image {
    max-height: 84px !important;
}

.sw2-wheel-stage {
    overflow: visible !important;
}

.sw2-wheel-canvas {
    overflow: visible !important;
}

@media (max-width: 1180px) {
    .sw2-brand-header {
        min-height: 104px;
    }

    .sw2-brand-logo {
        width: 190px;
        height: 72px;
    }

    .sw2-brand-logo-image {
        max-height: 68px !important;
    }
}

@media (max-width: 680px) {
    .sw2-brand-header {
        min-height: 126px;
        padding-top: 70px;
    }

    .sw2-brand-logo {
        top: 10px;
        left: 50%;
        width: 170px;
        height: 58px;
        transform: translateX(-50%);
        justify-content: center;
    }

    .sw2-brand-logo-image {
        max-height: 56px !important;
    }
}


/* v1.1.6 - larger boards/logo, full host neutralization, safer labels */
body.sw2-page-active #main,
body.sw2-page-active #content,
body.sw2-page-active .page-wrapper,
.sw2-main-host,
.sw2-host-surface,
.sw2-host-section,
.sw2-host-section > .section-content,
.sw2-host-section > .section-bg,
.sw2-host-section > .section-bg > .bg-fill,
.sw2-host-section .sw2-host-background {
    background-color: #fdfefe !important;
    background-image: none !important;
}
.sw2-host-section {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
}
.sw2-empty-trailing-section { display: none !important; }
.sw2-app {
    position: relative !important;
    z-index: 2 !important;
    padding-bottom: 86px !important;
    margin-bottom: -64px !important;
}
.sw2-brand-header { min-height: 136px; padding-top: 22px; }
.sw2-brand-logo {
    top: 8px;
    width: 240px;
    height: 126px;
    align-items: flex-start;
}
.sw2-brand-logo-image {
    width: 142px !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    transform: scale(1.04);
    transform-origin: left top;
}
.sw2-shell {
    grid-template-columns: minmax(300px, 1fr) minmax(500px, 660px) minmax(300px, 1fr);
}
.sw2-history-rail {
    height: clamp(560px, 72vh, 680px);
    padding-top: 18px;
}
.sw2-history-kicker {
    font-size: 17px !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
}
.sw2-history-rail-head strong { font-size: 15px !important; font-weight: 800 !important; }
.sw2-history-person strong { font-size: 16px !important; line-height: 1.28 !important; }
.sw2-history-person time { font-size: 12px !important; }
.sw2-history-prize {
    font-size: 15px !important;
    line-height: 1.36 !important;
    white-space: normal;
    text-overflow: clip;
}
.sw2-history-code { font-size: 11px !important; }
.sw2-history-empty { padding: 32px 16px; font-size: 16px !important; line-height: 1.5; }
.sw2-hall-badge { font-size: 11px !important; }
.sw2-hall-prize { font-size: 18px !important; line-height: 1.3 !important; }
.sw2-hall-person strong { font-size: 15px !important; }
@media (max-width: 1180px) {
    .sw2-app { margin-bottom: 0 !important; padding-bottom: 34px !important; }
    .sw2-brand-logo { width: 180px; height: 100px; }
    .sw2-brand-logo-image { width: 96px !important; }
    .sw2-history-kicker { font-size: 15px !important; }
    .sw2-history-rail-head strong { font-size: 13px !important; }
}
@media (max-width: 680px) {
    .sw2-brand-header { min-height: 156px; padding-top: 92px; }
    .sw2-brand-logo { width: 150px; height: 78px; }
    .sw2-brand-logo-image { width: 82px !important; transform-origin: center top; }
    .sw2-history-kicker { font-size: 14px !important; }
    .sw2-history-person strong { font-size: 15px !important; }
    .sw2-history-prize { font-size: 14px !important; }
}


/* v1.1.7 - exact host-page background fix + full-label safety */
html.sw2-page-active-root,
html.sw2-page-active-root body,
body.sw2-page-active,
body.sw2-page-active #wrapper,
body.sw2-page-active #main,
body.sw2-page-active #content,
body.sw2-page-active .page-wrapper {
    background-color: #fdfefe !important;
    background-image: none !important;
}
html.sw2-page-active-root {
    min-height: 100% !important;
}
body.sw2-page-active,
body.sw2-page-active #wrapper {
    min-height: 100vh !important;
}
body.sw2-page-active .absolute-footer,
body.sw2-page-active #footer,
body.sw2-page-active #footer-wrapper {
    background-color: #fdfefe !important;
    background-image: none !important;
}

/* v1.1.8 - Vietnamese diacritic-safe animated title */
.sw2-brand-title {
    display: block !important;
    min-height: 1.34em !important;
    padding: 0.11em 0 0.16em !important;
    overflow: visible !important;
    line-height: 1.16 !important;
    box-sizing: content-box !important;
    text-rendering: geometricPrecision;
}

.sw2-brand-header {
    overflow: visible !important;
    min-height: 154px !important;
}

@media (max-width: 1180px) {
    .sw2-brand-header { min-height: 142px !important; }
}

@media (max-width: 680px) {
    .sw2-brand-title {
        min-height: 1.42em !important;
        padding-top: 0.14em !important;
        padding-bottom: 0.18em !important;
        line-height: 1.18 !important;
    }
    .sw2-brand-header { min-height: 176px !important; }
}
.sw2-brand-title {
    height: auto !important;
    max-height: none !important;
    white-space: normal !important;
}


/* v1.2.3 - phone-first layout refinement */
@media (max-width: 680px) {
    html.sw2-page-active-root,
    body.sw2-page-active {
        overflow-x: hidden !important;
    }

    .sw2-app {
        width: 100% !important;
        max-width: 100% !important;
        padding-bottom: 24px !important;
        overflow-x: clip !important;
    }

    .sw2-brand-header {
        display: block !important;
        min-height: 0 !important;
        padding: 16px 12px 4px !important;
        text-align: center !important;
    }

    .sw2-brand-title {
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 auto !important;
        padding: 6px 4px 10px !important;
        font-size: clamp(30px, 9.2vw, 40px) !important;
        line-height: 1.18 !important;
        letter-spacing: -0.025em !important;
        overflow: visible !important;
    }

    .sw2-shell {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 6px 10px 24px !important;
    }

    .sw2-wheel-wrap {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
    }

    .sw2-wheel-stage {
        width: min(calc(100vw - 20px), 500px) !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 5px !important;
        touch-action: manipulation !important;
    }

    .sw2-wheel-canvas {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .sw2-pointer {
        top: -2px !important;
        border-right-width: 13px !important;
        border-left-width: 13px !important;
        border-top-width: 24px !important;
    }

    .sw2-spin-entry {
        width: 20% !important;
        min-width: 76px !important;
        min-height: 76px !important;
        padding: 0 !important;
        border-width: 4px !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent;
    }

    .sw2-spin-entry-main {
        font-size: clamp(20px, 6.4vw, 28px) !important;
        line-height: 1 !important;
    }

    .sw2-history-rail {
        width: 100% !important;
        height: auto !important;
        max-height: 360px !important;
        padding: 14px 12px !important;
        border-radius: 14px !important;
    }

    .sw2-rail-scroll {
        max-height: 280px !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .sw2-history-rail-head {
        margin-bottom: 8px !important;
    }

    .sw2-history-kicker {
        font-size: 13px !important;
        letter-spacing: 0.06em !important;
    }

    .sw2-history-rail-head strong {
        font-size: 12px !important;
    }

    .sw2-history-item {
        padding: 11px 10px 10px 12px !important;
    }

    .sw2-history-person strong {
        font-size: 14px !important;
    }

    .sw2-history-prize {
        font-size: 13px !important;
        line-height: 1.35 !important;
    }

    .sw2-hall-prize {
        font-size: 16px !important;
    }

    .sw2-modal {
        align-items: end !important;
        padding: 10px !important;
    }

    .sw2-modal-card {
        width: 100% !important;
        max-width: none !important;
        max-height: min(88dvh, 720px) !important;
        padding: 24px 16px 18px !important;
        border-radius: 18px !important;
        overscroll-behavior: contain;
    }

    .sw2-modal-card h3 {
        margin-right: 44px !important;
        font-size: clamp(25px, 7.6vw, 32px) !important;
        line-height: 1.12 !important;
    }

    .sw2-modal-close {
        top: 12px !important;
        right: 12px !important;
        width: 44px !important;
        height: 44px !important;
    }

    .sw2-label {
        margin-top: 18px !important;
    }

    .sw2-input {
        height: 52px !important;
        font-size: 17px !important;
    }

    .sw2-app .button,
    .sw2-board .button {
        min-height: 48px !important;
        width: 100% !important;
        padding: 0 16px !important;
        font-size: 15px !important;
        touch-action: manipulation !important;
    }

    .sw2-modal-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    .sw2-customer-card {
        margin: 16px 0 12px !important;
        padding: 15px !important;
    }

    .sw2-result-card {
        text-align: center !important;
    }
}

@media (max-width: 420px) {
    .sw2-brand-title {
        font-size: clamp(28px, 9.5vw, 36px) !important;
    }

    .sw2-shell {
        padding-right: 8px !important;
        padding-left: 8px !important;
    }

    .sw2-wheel-stage {
        width: min(calc(100vw - 16px), 430px) !important;
    }

    .sw2-spin-entry {
        min-width: 68px !important;
        min-height: 68px !important;
    }

    .sw2-spin-entry-main {
        font-size: 20px !important;
    }

    .sw2-history-rail {
        max-height: 330px !important;
        padding: 12px 10px !important;
    }

    .sw2-rail-scroll {
        max-height: 250px !important;
    }

    .sw2-modal {
        padding: 6px !important;
    }

    .sw2-modal-card {
        padding: 22px 14px 16px !important;
        border-radius: 16px !important;
    }
}

/* Spinning Wheel 2 - independent status, six-digit code and responsive wheel. */
.sw2-wheel-wrap{min-width:0}
.sw2-spin-status{margin:12px auto 0;max-width:540px;min-height:0;text-align:center}
.sw2-spin-status:empty{display:none}
.sw2-retry{display:block;margin:12px auto 0 !important}
.sw2-retry[hidden]{display:none!important}
.sw2-result-customer{font-size:17px!important;line-height:1.5!important}
.sw2-claim-code{display:block;margin:8px auto 16px;font-size:clamp(30px,6vw,42px);font-weight:900;letter-spacing:0.16em;font-variant-numeric:tabular-nums;color:#0b3d91}
.sw2-copy-code{margin:0 8px 12px!important}
.sw2-result-close{margin:0 8px 12px!important}
@media(max-width:680px){
  .sw2-wheel-stage{width:min(92vw,400px)!important;max-width:100%!important;aspect-ratio:1/1;margin-inline:auto}
  .sw2-wheel-canvas{max-width:100%!important}
  .sw2-shell{padding-left:12px!important;padding-right:12px!important;gap:18px!important}
  .sw2-history-rail{width:100%;min-width:0}
  .sw2-spin-entry{min-width:68px;min-height:68px}
  .sw2-brand-title{font-size:clamp(28px,7vw,42px)!important;line-height:1.28!important;overflow:visible!important}
  .sw2-app .sw2-result-card{width:min(96vw,460px)!important;max-height:min(90vh,760px);overflow-y:auto}
}
/* Claim actions: preserve a comfortable gap on desktop and mobile. */
.sw2-result-card .sw2-copy-code,
.sw2-result-card .sw2-result-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0 5px 10px !important;
}
@media (max-width: 680px) {
    .sw2-result-card .sw2-copy-code,
    .sw2-result-card .sw2-result-close {
        display: flex;
        width: calc(100% - 16px);
        margin: 0 auto 12px !important;
    }
}
