:root {
    color-scheme: light;
    --bg: #f4f7f6;
    --surface: #ffffff;
    --surface-2: #f8faf9;
    --text: #17201b;
    --muted: #64736b;
    --accent: #128345;
    --accent-dark: #0c6936;
    --accent-soft: #e8f6ee;
    --gold: #f2b705;
    --warning: #ad6b05;
    --danger: #b42318;
    --border: #dce5df;
    --border-strong: #c9d7cf;
    --soft: #eef8f2;
    --shadow: 0 18px 50px rgba(22, 37, 29, 0.08);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(232, 246, 238, 0.8), rgba(244, 247, 246, 0) 320px),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

.site-header,
.admin-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding: 0 max(24px, calc((100vw - 1180px) / 2 + 20px));
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.brand__mark {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    background: var(--accent);
    border-radius: var(--radius);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(18, 131, 69, 0.22);
}

.brand__mark svg,
.admin-nav svg,
.button svg,
.actions svg,
.text-link svg,
.input-shell svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
}

.admin-nav a,
.admin-nav button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: var(--radius);
    color: var(--muted);
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease;
}

.admin-nav form {
    margin: 0;
}

.admin-nav button {
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.admin-nav a:hover,
.admin-nav button:hover {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.site-main,
.admin-main {
    min-height: calc(100vh - 72px);
}

.construction,
.message-page {
    display: grid;
    min-height: calc(100vh - 64px);
    padding: 32px 20px;
    place-items: center;
}

.construction__content,
.message-page__content {
    width: min(100%, 680px);
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
}

p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    background: var(--accent);
    border-radius: var(--radius);
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(18, 131, 69, 0.18);
    transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
    background: var(--accent-dark);
    box-shadow: 0 16px 30px rgba(18, 131, 69, 0.24);
    transform: translateY(-1px);
}

.button--secondary {
    background: #eef3f0;
    color: var(--text);
    box-shadow: none;
}

.button--secondary:hover {
    background: #e2ebe6;
    box-shadow: none;
}

.auth-page,
.admin-page {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 34px 20px;
}

.auth-page {
    display: grid;
    min-height: calc(100vh - 64px);
    place-items: center;
}

.login-body {
    min-height: 100vh;
    background: #07110c;
}

.login-footer {
    position: fixed;
    right: 20px;
    bottom: 14px;
    left: 20px;
    z-index: 5;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    pointer-events: none;
}

.login-footer a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    pointer-events: auto;
}

.login-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.login-footer sup {
    margin-left: 2px;
    font-size: 9px;
}

.auth-page--stadium {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 100vh;
    padding: clamp(28px, 5vw, 58px) 20px;
    align-content: center;
    justify-items: center;
    place-items: center;
    transform: translateY(-22px);
    background:
        linear-gradient(180deg, rgba(3, 8, 12, 0.18), rgba(3, 8, 12, 0.1) 42%, rgba(3, 8, 12, 0.66)),
        url("../images/fondo_canca_16_9.png") center / cover no-repeat;
    isolation: isolate;
}

.auth-page--stadium::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    box-shadow: inset 0 90px 100px rgba(0, 0, 0, 0.24), inset 0 -120px 120px rgba(0, 0, 0, 0.48);
    content: "";
}

.login-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(26px, 7vw, 74px);
    margin-bottom: 26px;
}

.login-branding img {
    display: block;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.login-branding__super {
    height: clamp(58px, 9vw, 92px);
}

.login-branding__simplot {
    height: clamp(58px, 9vw, 92px);
    margin-top: -36px;
}

.auth-card {
    width: min(100%, 440px);
    padding: 28px;
}

.auth-page--stadium .auth-card {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(255, 255, 255, 0.62);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(12px);
}

.auth-card .button {
    margin-top: 12px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.page-heading__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.page-heading h1,
.panel__header h1,
.panel__header h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: 0;
}

.panel__header h2 {
    font-size: 22px;
}

.panel {
    margin-bottom: 22px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.metric-card {
    display: grid;
    gap: 12px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.metric-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.metric-card strong {
    color: var(--text);
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1;
}

.metric-card--success strong {
    color: var(--accent-dark);
}

.metric-card--muted strong {
    color: var(--muted);
}

.chart-box {
    position: relative;
    width: 100%;
    height: 340px;
}

.panel__header {
    margin-bottom: 18px;
}

.panel__header--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 12px;
    background: #f3f7f5;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.admin-tab svg {
    width: 17px;
    height: 17px;
}

.admin-tab--active {
    background: var(--accent-soft);
    border-color: #bce3c9;
    color: var(--accent-dark);
}

.field,
.check-field {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.field input,
.stock-item input,
.input-shell input,
.field select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    background: transparent;
    border: 0;
    color: var(--text);
    font: inherit;
    outline: 0;
}

.input-shell {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.input-shell svg {
    color: var(--muted);
}

.field > input,
.stock-item > input,
.field select {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.field > input:focus,
.stock-item > input:focus,
.input-shell:focus-within {
    border-color: var(--accent);
    outline: 3px solid rgba(18, 131, 69, 0.14);
    background: #ffffff;
}

.check-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-field input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.check-field--inline {
    display: inline-flex;
}

.spin-agent-form {
    max-width: 380px;
    margin-bottom: 20px;
}

.table-input {
    width: 140px;
    min-height: 38px;
    padding: 0 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font: inherit;
}

.form-grid {
    display: grid;
    gap: 18px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 760px;
    background: #ffffff;
}

.data-table th,
.data-table td {
    padding: 14px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    background: var(--surface-2);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.data-table tbody tr:hover {
    background: #fbfdfc;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table--compact th,
.data-table--compact td {
    padding: 10px 12px;
}

.actions {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.actions a,
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.actions a {
    min-height: 34px;
    padding: 0 10px;
    background: var(--accent-soft);
    border-radius: var(--radius);
}

.actions a:hover,
.text-link:hover {
    color: var(--accent-dark);
}

.empty-cell {
    color: var(--muted);
    text-align: center;
}

.status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.status--on {
    background: var(--soft);
    color: var(--accent-dark);
}

.status--off {
    background: #fff4ed;
    color: var(--warning);
}

.stock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.stock-item,
.stock-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff, #fbfdfc);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stock-item__name,
.stock-card span {
    color: var(--text);
    font-weight: 800;
}

.stock-item__meta,
.stock-card small,
.muted {
    color: var(--muted);
}

.stock-card strong {
    font-size: 44px;
    line-height: 1;
    color: var(--accent-dark);
}

.mono {
    font-family: Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 13px;
}

.link-box {
    margin: 0;
    padding: 14px;
    overflow-wrap: anywhere;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.copy-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.copy-link-row > span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.table-copy-link {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 360px;
}

.table-copy-link__text {
    display: block;
    min-width: 0;
    max-width: 220px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
}

.table-copy-link__button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 32px;
    padding: 0 9px;
    background: var(--accent-soft);
    border: 0;
    border-radius: var(--radius);
    color: var(--accent-dark);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.table-copy-link__button svg {
    width: 15px;
    height: 15px;
}

.flash {
    width: min(100% - 40px, 1180px);
    margin: 18px auto 0;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-weight: 700;
    border: 1px solid transparent;
    box-shadow: var(--shadow);
}

.flash--success {
    background: var(--soft);
    color: var(--accent-dark);
    border-color: #c9ead5;
}

.flash--error {
    background: #fff1f0;
    color: var(--danger);
    border-color: #ffd5d2;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
}

.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    background: #eef3f0;
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.pagination__link--disabled {
    opacity: 0.45;
    pointer-events: none;
}

.pagination__status {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 560px) {
    .site-header,
    .admin-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 0 18px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .admin-nav {
        width: 100%;
        justify-content: space-between;
        gap: 6px;
        overflow-x: auto;
    }

    .admin-nav a,
    .admin-nav button {
        padding: 0 9px;
    }

    .construction__content,
    .message-page__content {
        padding: 28px 20px;
    }

    p {
        font-size: 16px;
    }

    .page-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .page-heading .button,
    .page-heading__actions .button,
    .form-actions .button {
        width: 100%;
    }

    .page-heading__actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions {
        justify-content: stretch;
    }

    .panel {
        padding: 18px;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .chart-box {
        height: 280px;
    }

    .panel__header--row {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-tabs,
    .pagination {
        width: 100%;
    }

    .pagination {
        justify-content: space-between;
    }

    .copy-link-row {
        align-items: stretch;
        flex-direction: column;
    }

    .page-heading h1,
    .panel__header h1 {
        font-size: 26px;
    }

    .login-branding {
        gap: 22px;
        margin-bottom: 20px;
    }

    .login-branding__super {
        height: 56px;
    }

    .login-branding__simplot {
        height: 56px;
        margin-top: -36px;
    }
}

.roulette-body {
    overflow: hidden;
    background: #0b1610;
}

.roulette-stage {
    position: relative;
    display: grid;
    min-height: 100vh;
    place-items: center;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    isolation: isolate;
}

.roulette-stage::before,
.roulette-stage::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
}

.roulette-stage::before {
    background:
        radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 40%),
        linear-gradient(180deg, rgba(3, 8, 12, 0.2), rgba(3, 8, 12, 0.05) 45%, rgba(3, 8, 12, 0.58));
}

.roulette-stage::after {
    box-shadow: inset 0 -110px 110px rgba(0, 0, 0, 0.45), inset 0 80px 90px rgba(0, 0, 0, 0.25);
}

.roulette-branding {
    position: absolute;
    top: clamp(18px, 4vw, 42px);
    left: max(20px, 4vw);
    right: max(20px, 4vw);
    z-index: 4;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    pointer-events: none;
}

.roulette-branding img {
    display: block;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
}

.roulette-branding__super {
    height: clamp(42px, 8vw, 78px);
}

.roulette-branding__simplot {
    height: clamp(84px, 16vw, 172px);
    margin-top: clamp(-46px, -4vw, -20px);
}

.roulette-scene {
    position: relative;
    z-index: 2;
    width: min(86vmin, 710px);
    aspect-ratio: 1;
    margin-top: clamp(-18px, 0vw, 12px);
    transform: translateY(clamp(-54px, -6vh, -28px));
    filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.28));
}

.roulette-wheel,
.roulette-wheel__spin,
.roulette-wheel__base,
.roulette-wheel__ring {
    position: absolute;
    inset: 0;
}

.roulette-wheel {
    border-radius: 50%;
}

.roulette-wheel__spin {
    transform-origin: 50% 50%;
}

.roulette-wheel__spin.is-idle {
    animation: roulette-auto-spin 14s linear infinite;
}

.roulette-wheel__spin::before {
    position: absolute;
    inset: 6.4%;
    z-index: 0;
    background:
        radial-gradient(circle at 50% 48%, #f2f2f2 0 42%, #e8e8e8 68%, #d9d9d9 100%);
    border-radius: 50%;
    box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.14);
    content: "";
}

.roulette-wheel__base,
.roulette-wheel__ring {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.roulette-wheel__base {
    z-index: 10;
    width: 87.2%;
    height: 87.2%;
    inset: 6.4%;
}

.roulette-wheel__ring {
    z-index: 5;
    -webkit-mask-image: radial-gradient(circle, transparent 0 63.5%, #000 64.2% 100%);
    mask-image: radial-gradient(circle, transparent 0 0, #000 0 100%);
}

.roulette-pointer {
    position: absolute;
    top: -5%;
    left: 50%;
    z-index: 6;
    width: 14.5%;
    transform: translateX(-50%);
    filter: drop-shadow(0 9px 10px rgba(0, 0, 0, 0.28));
    pointer-events: none;
}

.roulette-pointer img {
    display: block;
    width: 100%;
    height: auto;
}

.roulette-slice {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 20;
    width: 15.5%;
    transform:
        translate(-50%, -50%)
        rotate(var(--angle))
        translateY(clamp(-234px, -40.25vmin, -46px))
        rotate(180deg);
    transform-origin: center;
}

.roulette-slice img {
    display: block;
    width: 100%;
    max-height: clamp(70px, 13.5vmin, 118px);
    height: auto;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.roulette-slice--wide {
    width: 16.5%;
}

.roulette-slice--tall {
    width: 12%;
}

.roulette-slice--prize {
    width: 14.5%;
}

.roulette-slice--tall img {
    max-height: clamp(82px, 16vmin, 136px);
}

.roulette-slice--prize img {
    max-height: clamp(74px, 14.5vmin, 126px);
}

@keyframes roulette-auto-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.roulette-controls {
    position: absolute;
    right: 0;
    bottom: clamp(58px, 8vw, 88px);
    left: 0;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.roulette-spin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    min-height: 58px;
    padding: 0 28px;
    background: linear-gradient(180deg, #f7d36b, #d89513);
    border: 2px solid #fff0ad;
    border-radius: 999px;
    box-shadow:
        0 18px 30px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    color: #3b2500;
    cursor: pointer;
    font: inherit;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    pointer-events: auto;
    transition: transform 140ms ease, filter 140ms ease;
}

.roulette-spin-button:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.roulette-spin-button:disabled {
    cursor: wait;
    filter: saturate(0.8);
    opacity: 0.78;
    transform: none;
}

.roulette-panel-link,
.roulette-fullscreen {
    position: absolute;
    bottom: clamp(65px, 8vw, 95px);
    z-index: 8;
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #ffffff;
    cursor: pointer;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.55));
}

.roulette-panel-link {
    left: clamp(14px, 3vw, 28px);
    text-decoration: none;
}

.roulette-fullscreen {
    right: clamp(14px, 3vw, 28px);
}

.roulette-panel-link:hover,
.roulette-fullscreen:hover {
    background: transparent;
    opacity: 0.86;
}

.roulette-panel-link svg,
.roulette-fullscreen svg {
    width: 28px;
    height: 28px;
}

.delivery-stage {
    display: grid;
    min-height: 100vh;
    padding: 28px 20px;
    place-items: center;
    background:
        linear-gradient(180deg, rgba(3, 8, 12, 0.24), rgba(3, 8, 12, 0.1) 42%, rgba(3, 8, 12, 0.68)),
        url("../images/fondo_canca_16_9.png") center / cover no-repeat;
}

.delivery-card {
    width: min(100%, 470px);
    padding: 26px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(12px);
}

.delivery-card h1 {
    margin: 0;
    color: #17201b;
    font-size: clamp(30px, 6vw, 44px);
    line-height: 1;
}

.delivery-eyebrow {
    margin: 0 0 10px;
    color: #128345;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.delivery-muted,
.delivery-receipt {
    margin: 12px 0 0;
    color: #64736b;
    font-size: 16px;
}

.delivery-form {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.delivery-form small {
    color: #64736b;
    font-weight: 700;
}

.delivery-submit {
    width: 100%;
    margin-top: 8px;
}

.delivery-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
}

.delivery-alert--error {
    background: #fff1f0;
    color: #b42318;
}

.delivery-alert--success {
    background: #eef8f2;
    color: #0c6936;
}

.delivery-card--success {
    text-align: center;
}

.delivery-success-icon {
    display: inline-grid;
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
    place-items: center;
    background: #128345;
    border-radius: 999px;
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(18, 131, 69, 0.28);
}

.delivery-success-icon svg {
    width: 36px;
    height: 36px;
}

.roulette-result {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    padding: 20px;
    place-items: center;
    background: rgba(4, 8, 6, 0.72);
    backdrop-filter: blur(5px);
}

.roulette-result[hidden] {
    display: none;
}

.roulette-result__modal {
    position: relative;
    z-index: 2;
    width: min(420px, 100%);
    padding: 26px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 248, 0.98));
    border: 2px solid rgba(247, 211, 107, 0.95);
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
    text-align: center;
}

.roulette-confetti {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.roulette-confetti__item {
    position: absolute;
    display: block;
    width: var(--size, 42px);
    height: var(--size, 42px);
    object-fit: contain;
    opacity: 0.92;
    filter: drop-shadow(0 7px 8px rgba(0, 0, 0, 0.18));
    transform: translate3d(0, 0, 0);
}

.roulette-confetti__item--ball {
    top: -90px;
    left: var(--left, 50%);
    animation:
        roulette-ball-confetti var(--duration, 2200ms) ease-in-out var(--delay, 0ms) infinite,
        roulette-ball-spin calc(var(--duration, 2200ms) * 0.75) linear var(--delay, 0ms) infinite;
}

.roulette-confetti__item--fries {
    top: -70px;
    left: var(--left, 50%);
    animation: roulette-fries-confetti var(--duration, 2600ms) ease-in var(--delay, 0ms) infinite;
}

.roulette-result__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    background: #f2f5f3;
    border: 1px solid #dce5df;
    border-radius: 999px;
    color: #17201b;
    cursor: pointer;
}

.roulette-result__close:hover {
    background: #e7ede9;
}

.roulette-result__close svg {
    width: 20px;
    height: 20px;
}

.roulette-result__eyebrow {
    margin: 0 0 14px;
    color: #0c6936;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.roulette-result__content {
    display: grid;
    justify-items: center;
    align-items: center;
    gap: 14px;
}

.roulette-result__content img {
    display: block;
    width: min(170px, 54vw);
    max-height: 170px;
    object-fit: contain;
}

.roulette-result__content strong {
    color: #17201b;
    font-size: clamp(26px, 5vw, 38px);
    line-height: 1.05;
    text-transform: uppercase;
}

.roulette-result__button {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    margin-top: 22px;
    padding: 0 18px;
    background: #128345;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 14px 28px rgba(18, 131, 69, 0.24);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 17px;
    font-weight: 900;
    text-transform: uppercase;
}

.roulette-result__button:hover {
    background: #0c6936;
}

@keyframes roulette-ball-confetti {
    0% {
        translate: 0 -40px;
        opacity: 0;
    }

    12% {
        opacity: 0.96;
    }

    48% {
        translate: var(--drift, 18px) calc(100vh - 150px);
    }

    64% {
        translate: calc(var(--drift, 18px) * 1.15) calc(100vh - 255px);
    }

    80% {
        translate: calc(var(--drift, 18px) * 1.3) calc(100vh - 150px);
        opacity: 0.96;
    }

    100% {
        translate: calc(var(--drift, 18px) * 1.45) calc(100vh - 132px);
        opacity: 0;
    }
}

@keyframes roulette-ball-spin {
    to {
        rotate: 360deg;
    }
}

@keyframes roulette-fries-confetti {
    0% {
        translate: 0 -30px;
        rotate: var(--rotation-start, -18deg);
        opacity: 0;
    }

    12% {
        opacity: 0.96;
    }

    100% {
        translate: var(--drift, 24px) calc(100vh + 90px);
        rotate: var(--rotation-end, 34deg);
        opacity: 0;
    }
}

@media (max-width: 760px) {
    .roulette-branding {
        top: 18px;
        left: 18px;
        right: 18px;
    }

    .roulette-branding__super {
        height: clamp(36px, 9vw, 50px);
    }

    .roulette-branding__simplot {
        height: clamp(82px, 21vw, 114px);
        margin-top: -26px;
    }

    .roulette-scene {
        width: min(94vw, 560px);
        margin-top: -10px;
        transform: translateY(-34px);
    }

    .roulette-slice {
        transform:
            translate(-50%, -50%)
            rotate(var(--angle))
            translateY(clamp(-234px, -31.25vmin, -46px))
            rotate(180deg);
    }

    .roulette-controls {
        bottom: 62px;
    }

    .roulette-spin-button {
        min-width: 168px;
        min-height: 52px;
        font-size: 19px;
    }

    .roulette-panel-link,
    .roulette-fullscreen {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 420px) {
    .roulette-branding {
        gap: 18px;
    }

    .roulette-branding__super {
        height: 36px;
    }

    .roulette-branding__simplot {
        height: 82px;
        margin-top: -26px;
    }

    .roulette-scene {
        width: 104vw;
    }
}
