:root {
    --bg: #0b1114;
    --panel: #111a1f;
    --panel-2: #17242b;
    --line: #253840;
    --text: #edf7f9;
    --muted: #94aab0;
    --brand: #21c55d;
    --brand-2: #0ea5a5;
    --danger: #ef4444;
    --warn: #f59e0b;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Roboto, Arial, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.site-header,
.admin-topbar {
    align-items: center;
    background: rgba(8, 16, 19, .94);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 24px;
}

.site-header img,
.admin-topbar img {
    height: 42px;
    max-width: 190px;
    object-fit: contain;
}

.site-header .btn {
    flex-shrink: 0;
}

.public-shell,
.admin-main {
    margin: 0 auto;
    max-width: 1180px;
    padding: 28px 20px 56px;
    width: 100%;
}

.hero-raffle {
    align-items: stretch;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
}

.hero-raffle__image,
.raffle-card__image {
    aspect-ratio: 16 / 9;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.hero-raffle__image img,
.raffle-card__image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.panel,
.raffle-card,
.stat-card,
.auth-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.panel,
.auth-card {
    padding: 22px;
}

.public-page-heading {
    align-items: flex-end;
}

.public-page-heading h1,
.hero-raffle__content h1,
.public-info-card h2,
.public-number-panel h2 {
    overflow-wrap: anywhere;
}

.hero-raffle__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    min-width: 0;
}

.hero-raffle__content h1 {
    font-size: 42px;
    line-height: 1.02;
    margin: 0;
}

.hero-raffle__content p {
    margin: 0;
}

.featured-raffle .btn {
    align-self: flex-start;
    margin-top: 4px;
}

.muted {
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 16px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.raffle-list {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    margin-top: 22px;
}

.raffle-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: border-color .2s ease, transform .2s ease;
}

.raffle-card:hover {
    border-color: rgba(33, 197, 93, .55);
    transform: translateY(-2px);
}

.raffle-card__body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.raffle-card__body h3 {
    font-size: 21px;
    line-height: 1.12;
    margin: 0;
    overflow-wrap: anywhere;
}

.raffle-card__body p {
    margin: 0;
}

.progress {
    background: #071013;
    border: 1px solid var(--line);
    border-radius: 99px;
    height: 12px;
    overflow: hidden;
}

.progress span {
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    display: block;
    height: 100%;
}

.btn,
button,
input[type="submit"] {
    background: var(--brand);
    border: 0;
    border-radius: 6px;
    color: #041008;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    padding: 11px 14px;
}

.btn.secondary {
    background: var(--panel-2);
    border: 1px solid var(--line);
    color: var(--text);
}

.manual-winner-form button.secondary,
button.secondary {
    background: var(--panel-2);
    border: 1px solid var(--line);
    color: var(--text);
}

.btn.danger {
    background: var(--danger);
    color: white;
}

button.danger {
    background: var(--danger);
    color: white;
}

.badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
    text-transform: uppercase;
}

.badge.active,
.badge.sold,
.badge.drawn {
    background: rgba(33, 197, 93, .14);
    color: #7df5a6;
}

.badge.available,
.badge.draft {
    background: rgba(148, 170, 176, .16);
    color: #c6d7db;
}

.badge.closed,
.badge.reserved {
    background: rgba(245, 158, 11, .16);
    color: #ffd68a;
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
}

.sidebar {
    background: #081013;
    border-right: 1px solid var(--line);
    padding: 22px;
}

.admin-brand {
    display: inline-flex;
}

.admin-brand img {
    max-width: 185px;
}

.admin-user-card {
    margin: 18px 0 0;
}

.sidebar nav {
    display: grid;
    gap: 8px;
    margin-top: 26px;
}

.sidebar a,
.sidebar button {
    background: transparent;
    border: 1px solid transparent;
    color: var(--muted);
    justify-content: flex-start;
    padding: 11px 12px;
}

.sidebar a:hover,
.sidebar button:hover {
    border-color: var(--line);
    color: var(--text);
}

.admin-content {
    min-width: 0;
}

.admin-header {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 22px;
    min-width: 0;
}

.admin-header > div {
    min-width: 0;
}

.admin-header h1,
.admin-header h2 {
    line-height: 1.05;
    margin: 0;
    overflow-wrap: anywhere;
}

.admin-header p {
    margin: 0 0 4px;
}

.admin-page-header .btn,
.admin-page-header .actions {
    flex-shrink: 0;
}

.panel-header {
    align-items: flex-start;
    margin-bottom: 16px;
}

.admin-stat-grid {
    align-items: stretch;
}

.stat-card {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.stat-card p,
.stat-card h2 {
    margin: 0;
}

.stat-card h2 {
    font-size: 34px;
    line-height: 1;
    overflow-wrap: anywhere;
}

.admin-table-panel {
    min-width: 0;
}

.table-scroll {
    margin-inline: -2px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-color: var(--line) transparent;
}

.table-scroll table {
    min-width: 720px;
}

.admin-table-panel .actions {
    min-width: 270px;
}

.client-table-panel .table-scroll table {
    min-width: 860px;
}

.client-table-panel .actions {
    min-width: 120px;
}

.admin-client-summary {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin: -4px 0 16px;
    padding-bottom: 16px;
}

.admin-client-summary div {
    display: grid;
    gap: 2px;
}

.admin-client-summary strong {
    color: #7df5a6;
    font-size: 34px;
    line-height: 1;
}

.admin-client-summary span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-client-summary p {
    margin: 0;
    max-width: 620px;
}

.client-contact,
.client-note,
.client-status-stack {
    display: grid;
    gap: 5px;
}

.client-contact + .client-contact {
    color: var(--muted);
    font-size: 13px;
    margin-top: 3px;
}

.client-note {
    margin-top: 5px;
}

.client-status-stack {
    align-items: start;
}

.audit-table-panel .table-scroll table {
    min-width: 1040px;
}

.audit-filter-form {
    align-items: end;
}

.audit-summary strong {
    color: #ffd68a;
}

.audit-event {
    background: rgba(56, 189, 248, .12);
    border: 1px solid rgba(56, 189, 248, .24);
    border-radius: 999px;
    color: #9be3ff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    padding: 6px 10px;
    white-space: nowrap;
}

.audit-origin {
    display: block;
    font-weight: 800;
}

.audit-details {
    min-width: 220px;
}

.audit-details summary {
    color: #ffd68a;
    cursor: pointer;
    font-weight: 900;
}

.audit-details div {
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 6px;
    margin-top: 9px;
    padding: 10px;
}

.audit-details p,
.audit-details pre {
    color: var(--muted);
    margin: 6px 0 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.audit-details pre {
    font-size: 12px;
    line-height: 1.45;
}

.admin-form-panel {
    gap: 18px;
}

.admin-form-grid {
    gap: 14px;
}

.inline-check {
    gap: 10px !important;
    justify-content: flex-start;
}

.admin-filter-form {
    align-items: end;
}

.admin-number-assignment {
    align-items: start;
}

.number-selection-panel,
.participant-sale-panel {
    min-width: 0;
}

.participant-sale-panel {
    align-self: start;
    position: sticky;
    top: 18px;
}

.participant-sale-panel h2,
.participant-sale-panel p {
    margin: 0;
}

.admin-select-number-grid {
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
}

.admin-select-number-grid .number-tile {
    align-content: start;
    cursor: pointer;
    display: grid;
    gap: 7px;
    min-height: 82px;
}

.admin-select-number-grid .number-tile.available:hover {
    border-color: rgba(33, 197, 93, .65);
}

.draw-support-grid {
    align-items: start;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 13px 12px;
    text-align: left;
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

label {
    color: var(--muted);
    display: grid;
    font-size: 13px;
    gap: 8px;
}

input,
select,
textarea {
    background: #071013;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    font: inherit;
    min-height: 42px;
    padding: 10px 12px;
    width: 100%;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.form-actions,
.actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.alert {
    border-radius: var(--radius);
    margin-bottom: 18px;
    padding: 12px 14px;
}

.alert.success {
    background: rgba(33, 197, 93, .14);
    border: 1px solid rgba(33, 197, 93, .35);
}

.alert.error {
    background: rgba(239, 68, 68, .14);
    border: 1px solid rgba(239, 68, 68, .35);
}

.number-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
}

.number-tile {
    background: #071013;
    border: 1px solid var(--line);
    border-radius: 6px;
    min-height: 66px;
    min-width: 0;
    padding: 8px;
    position: relative;
}

.number-tile.sold {
    background: rgba(33, 197, 93, .1);
    border-color: rgba(33, 197, 93, .45);
}

.number-tile input {
    height: 18px;
    min-height: auto;
    padding: 0;
    position: absolute;
    right: 7px;
    top: 7px;
    width: 18px;
}

.number-code {
    display: block;
    font-size: 16px;
    font-weight: 900;
}

.number-owner {
    color: var(--muted);
    display: block;
    font-size: 11px;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pagination {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 16px;
}

.auth-page {
    align-items: center;
    display: grid;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    margin: 0 auto;
    max-width: 420px;
    width: 100%;
}

.draw-stage {
    align-items: center;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(320px, .9fr) minmax(320px, 1fr);
    overflow: hidden;
}

.roulette-wrap {
    display: grid;
    min-height: 420px;
    place-items: center;
    position: relative;
}

.roulette-pointer {
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 34px solid var(--brand);
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45));
    left: 50%;
    position: absolute;
    top: 24px;
    transform: translateX(-50%);
    z-index: 3;
}

.roulette-wheel {
    align-items: center;
    aspect-ratio: 1;
    background:
        radial-gradient(circle at center, #111a1f 0 24%, transparent 25%),
        conic-gradient(
            from -20deg,
            #21c55d,
            #0ea5a5,
            #f59e0b,
            #38bdf8,
            #a3e635,
            #14b8a6,
            #21c55d
        );
    border: 10px solid #071013;
    border-radius: 50%;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .38), inset 0 0 0 2px rgba(255, 255, 255, .12);
    display: grid;
    justify-items: center;
    max-width: 390px;
    position: relative;
    transition: transform 20s cubic-bezier(.08, .76, .08, 1);
    width: min(90vw, 390px);
}

.roulette-wheel.is-spinning {
    box-shadow: 0 36px 96px rgba(33, 197, 93, .2), 0 28px 80px rgba(0, 0, 0, .42), inset 0 0 0 2px rgba(255, 255, 255, .12);
}

.roulette-wheel::after {
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    content: "";
    inset: 22px;
    position: absolute;
}

.roulette-center {
    align-items: center;
    background: #071013;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .35);
    display: grid;
    height: 132px;
    justify-items: center;
    line-height: 1;
    position: relative;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
    width: 132px;
    z-index: 2;
}

.roulette-center strong {
    font-size: 42px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    max-width: 112px;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
}

.roulette-center span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.roulette-center.is-counting {
    border-color: rgba(33, 197, 93, .5);
    box-shadow: 0 0 0 8px rgba(33, 197, 93, .08), 0 18px 42px rgba(0, 0, 0, .42);
}

.roulette-center.is-counting strong {
    color: #7df5a6;
}

.roulette-center.is-landing {
    border-color: rgba(245, 158, 11, .58);
    box-shadow: 0 0 0 10px rgba(245, 158, 11, .1), 0 18px 42px rgba(0, 0, 0, .42);
}

.roulette-center.is-landing strong {
    color: #ffd68a;
}

.roulette-center.is-final {
    border-color: rgba(245, 158, 11, .72);
    box-shadow: 0 0 0 10px rgba(245, 158, 11, .12), 0 18px 42px rgba(0, 0, 0, .42);
    transform: scale(1.06);
}

.roulette-center.is-final strong {
    color: #ffd68a;
}

.roulette-center.is-winner-flash {
    animation: winner-glow 1.05s ease-in-out infinite;
}

.roulette-center.is-winner-flash strong {
    animation: winner-number-pulse 1.05s ease-in-out infinite;
    text-shadow: 0 0 18px rgba(245, 158, 11, .7);
}

.roulette-number {
    background: rgba(7, 16, 19, .78);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: #edf7f9;
    font-size: 9px;
    font-weight: 900;
    left: 50%;
    line-height: 1;
    max-width: 54px;
    min-width: 34px;
    overflow: hidden;
    padding: 4px 6px;
    position: absolute;
    text-align: center;
    text-overflow: ellipsis;
    top: 50%;
    transform:
        rotate(var(--angle))
        translate(var(--distance))
        rotate(var(--reverse-angle));
    white-space: nowrap;
    z-index: 2;
}

.roulette-wheel.is-spinning .roulette-number {
    opacity: .72;
}

.draw-control {
    display: grid;
    gap: 16px;
}

.manual-winner-form {
    background: rgba(255, 255, 255, .035);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 12px;
    margin-top: 6px;
    padding: 14px;
}

.manual-winner-form::before {
    color: #ffd68a;
    content: "Area do super admin";
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.super-admin-winner-form {
    background:
        linear-gradient(135deg, rgba(245, 158, 11, .09), rgba(255, 255, 255, .035)),
        rgba(17, 26, 31, .96);
    border-color: rgba(245, 158, 11, .28);
}

.super-admin-winner-form label {
    min-width: 0;
}

.super-admin-winner-form select,
.super-admin-winner-form textarea {
    border-color: rgba(245, 158, 11, .26);
}

.super-admin-winner-form button {
    justify-self: start;
}

.restart-draw-form {
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.restart-draw-form button {
    width: fit-content;
}

.prepared-winner {
    background: rgba(245, 158, 11, .11);
    border: 1px solid rgba(245, 158, 11, .32);
    border-radius: var(--radius);
    display: grid;
    gap: 7px;
    padding: 16px;
}

.prepared-winner strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
}

.prepared-winner p {
    margin: 0;
}

.prepared-winner small {
    color: var(--muted);
}

.super-admin-prepared-card {
    box-shadow: 0 0 0 1px rgba(245, 158, 11, .06) inset, 0 18px 38px rgba(0, 0, 0, .18);
    overflow: hidden;
    position: relative;
}

.super-admin-prepared-card::before {
    background: linear-gradient(180deg, #ffd68a, rgba(245, 158, 11, .25));
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    top: 0;
    width: 4px;
}

.super-admin-empty-state {
    background: rgba(245, 158, 11, .08);
    border: 1px dashed rgba(245, 158, 11, .28);
    border-radius: var(--radius);
    padding: 14px;
}

.super-admin-mode .admin-table-panel .actions form {
    display: inline-flex;
}

.super-admin-mode .admin-table-panel .actions form button {
    min-height: 40px;
}

.operator-draw-card {
    background: linear-gradient(135deg, rgba(33, 197, 93, .12), rgba(56, 189, 248, .08));
    border: 1px solid rgba(33, 197, 93, .28);
    border-radius: var(--radius);
    display: grid;
    gap: 8px;
    padding: 18px;
}

.operator-draw-card strong {
    display: block;
    font-size: 28px;
    line-height: 1.08;
}

.operator-draw-card p {
    margin: 0;
}

.draw-control h2 {
    font-size: 58px;
    line-height: 1;
    margin: 0;
}

.draw-result {
    background: linear-gradient(135deg, rgba(33, 197, 93, .18), rgba(14, 165, 165, .12));
    border: 1px solid rgba(33, 197, 93, .42);
    border-radius: var(--radius);
    padding: 20px;
    transform: translateY(0) scale(1);
    transition: opacity .35s ease, transform .35s ease;
}

.draw-result.is-waiting {
    opacity: 0;
    transform: translateY(14px) scale(.98);
}

.draw-result.is-revealed {
    animation: reveal-pop .55s ease both;
}

.draw-running {
    background: rgba(33, 197, 93, .08);
    border: 1px solid rgba(33, 197, 93, .26);
    border-radius: var(--radius);
    display: grid;
    gap: 8px;
    padding: 18px;
    transition: opacity .25s ease, transform .25s ease;
}

.draw-running strong {
    display: block;
    font-size: 26px;
    line-height: 1.08;
}

.draw-running p {
    margin: 0;
}

.draw-running.is-hidden {
    opacity: 0;
    transform: translateY(-8px);
}

.draw-result span {
    color: #7df5a6;
    display: block;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.draw-result strong {
    display: block;
    font-size: 48px;
    line-height: 1.05;
    margin-top: 8px;
}

.draw-result p {
    font-size: 22px;
    font-weight: 900;
    margin: 12px 0 6px;
}

.draw-result small {
    color: var(--muted);
}

.number-grid.compact {
    max-height: 460px;
    overflow: auto;
    padding-right: 4px;
}

.sold-number-board {
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
}

.public-info-grid {
    align-items: stretch;
}

.public-info-card {
    align-content: start;
    display: grid;
    gap: 10px;
    min-width: 0;
}

.public-info-card h2,
.public-info-card p {
    margin: 0;
}

.public-info-card p {
    line-height: 1.55;
}

.public-number-panel .admin-header {
    align-items: flex-start;
}

.public-number-panel h2,
.public-number-panel p {
    margin: 0;
}

.public-number-grid {
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
}

.public-number-grid .number-tile {
    align-content: start;
    display: grid;
    gap: 7px;
    min-height: 86px;
}

.public-number-grid .badge {
    font-size: 10px;
    justify-self: start;
    padding: 4px 7px;
}

.winner-number-tile {
    border-color: rgba(245, 158, 11, .85);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, .16), 0 0 24px rgba(245, 158, 11, .22);
    animation: winner-tile-flash 1.15s ease-in-out infinite;
}

.winner-number-tile .number-code {
    color: #ffd68a;
}

body.celebration-open {
    overflow: hidden;
}

.winner-celebration {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(7, 16, 19, .96), rgba(12, 28, 34, .94)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 92px);
    display: grid;
    inset: 0;
    justify-items: center;
    opacity: 0;
    padding: 22px;
    pointer-events: none;
    position: fixed;
    transform: scale(1.02);
    transition: opacity .45s ease, transform .45s ease;
    z-index: 1000;
}

.winner-celebration.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.winner-celebration.is-leaving {
    opacity: 0;
    transform: scale(1.02);
}

.celebration-confetti {
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
}

.celebration-confetti span {
    animation: confetti-fall var(--fall) linear infinite;
    animation-delay: var(--delay);
    background: hsl(var(--hue), 88%, 62%);
    border-radius: 2px;
    height: 16px;
    left: var(--x);
    opacity: .9;
    position: absolute;
    top: -40px;
    transform: rotate(var(--spin));
    width: 8px;
}

.celebration-confetti span:nth-child(3n) {
    height: 10px;
    width: 18px;
}

.celebration-confetti span:nth-child(4n) {
    background: #edf7f9;
}

.celebration-rays {
    animation: celebration-rays 10s linear infinite;
    aspect-ratio: 1;
    background: conic-gradient(
        from 0deg,
        transparent 0 8deg,
        rgba(245, 158, 11, .12) 8deg 14deg,
        transparent 14deg 30deg
    );
    border-radius: 50%;
    filter: blur(.2px);
    max-width: 760px;
    opacity: .48;
    position: absolute;
    width: min(88vw, 760px);
}

.celebration-card {
    animation: celebration-enter .72s cubic-bezier(.18, .8, .2, 1) both;
    background: rgba(17, 26, 31, .92);
    border: 1px solid rgba(255, 214, 138, .35);
    border-radius: var(--radius);
    box-shadow: 0 32px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08) inset;
    display: grid;
    gap: 18px;
    max-width: 620px;
    overflow: hidden;
    padding: 38px;
    position: relative;
    text-align: center;
    width: min(100%, 620px);
    z-index: 2;
}

.celebration-card::before {
    background: linear-gradient(90deg, #21c55d, #ffd68a, #38bdf8);
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.celebration-award-icon {
    animation: award-pop .72s .2s cubic-bezier(.18, .8, .2, 1) both;
    background: linear-gradient(145deg, rgba(255, 214, 138, .16), rgba(33, 197, 93, .08));
    border: 1px solid rgba(255, 214, 138, .38);
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(245, 158, 11, .08), 0 18px 42px rgba(0, 0, 0, .34);
    display: grid;
    height: 82px;
    justify-self: center;
    place-items: center;
    position: relative;
    width: 82px;
}

.celebration-award-icon::after {
    border: 1px solid rgba(255, 214, 138, .3);
    border-radius: 50%;
    content: "";
    inset: 7px;
    position: absolute;
}

.celebration-award-icon svg {
    filter: drop-shadow(0 8px 16px rgba(245, 158, 11, .28));
    height: 58px;
    position: relative;
    width: 58px;
    z-index: 1;
}

.award-halo {
    fill: rgba(245, 158, 11, .1);
    stroke: rgba(255, 214, 138, .34);
    stroke-width: 2;
}

.award-cup {
    fill: #ffd68a;
}

.award-star {
    fill: #071013;
    opacity: .9;
}

.celebration-kicker,
.celebration-number span,
.celebration-winner span,
.celebration-details dt {
    color: #ffd68a;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.celebration-card h2 {
    font-size: 64px;
    line-height: .95;
    margin: 0;
}

.celebration-number {
    background: rgba(245, 158, 11, .1);
    border: 1px solid rgba(245, 158, 11, .34);
    border-radius: var(--radius);
    display: grid;
    gap: 6px;
    justify-self: center;
    min-width: min(100%, 280px);
    padding: 16px 22px;
}

.celebration-number strong {
    animation: winner-number-pulse 1.05s ease-in-out infinite;
    color: #fff4c7;
    font-size: 92px;
    font-variant-numeric: tabular-nums;
    line-height: .9;
    text-shadow: 0 0 24px rgba(245, 158, 11, .78);
}

.celebration-winner {
    display: grid;
    gap: 4px;
}

.celebration-winner strong {
    font-size: 44px;
    line-height: 1;
}

.celebration-details {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 2px 0 0;
    text-align: left;
}

.celebration-details div {
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 6px;
    min-width: 0;
    padding: 11px 12px;
}

.celebration-details dd {
    color: var(--text);
    font-weight: 800;
    margin: 5px 0 0;
    overflow-wrap: anywhere;
}

button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

@keyframes reveal-pop {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(.96);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes winner-glow {
    0%,
    100% {
        border-color: rgba(245, 158, 11, .62);
        box-shadow: 0 0 0 8px rgba(245, 158, 11, .1), 0 0 28px rgba(245, 158, 11, .28), 0 18px 42px rgba(0, 0, 0, .42);
    }

    50% {
        border-color: rgba(255, 214, 138, 1);
        box-shadow: 0 0 0 14px rgba(245, 158, 11, .2), 0 0 44px rgba(245, 158, 11, .52), 0 18px 42px rgba(0, 0, 0, .42);
    }
}

@keyframes winner-number-pulse {
    0%,
    100% {
        color: #ffd68a;
        transform: scale(1);
    }

    50% {
        color: #fff4c7;
        transform: scale(1.08);
    }
}

@keyframes winner-tile-flash {
    0%,
    100% {
        background: rgba(245, 158, 11, .12);
        box-shadow: 0 0 0 2px rgba(245, 158, 11, .16), 0 0 24px rgba(245, 158, 11, .22);
    }

    50% {
        background: rgba(245, 158, 11, .2);
        box-shadow: 0 0 0 3px rgba(245, 158, 11, .28), 0 0 34px rgba(245, 158, 11, .42);
    }
}

@keyframes celebration-enter {
    0% {
        opacity: 0;
        transform: translateY(22px) scale(.96);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes confetti-fall {
    0% {
        transform: translate3d(0, -60px, 0) rotate(0deg);
    }

    100% {
        transform: translate3d(var(--drift), 110vh, 0) rotate(720deg);
    }
}

@keyframes celebration-rays {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes award-pop {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(.72) rotate(-8deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

@media (max-width: 900px) {
    .public-shell,
    .admin-main {
        padding: 22px 16px 48px;
    }

    .site-header,
    .admin-topbar {
        padding: 0 18px;
    }

    .hero-raffle,
    .admin-shell,
    .draw-stage,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-bottom: 1px solid var(--line);
        border-right: 0;
        padding: 18px 16px;
    }

    .admin-sidebar {
        align-items: center;
        display: grid;
        gap: 14px;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .admin-brand img {
        max-width: 150px;
    }

    .admin-user-card {
        justify-self: end;
        margin: 0;
        text-align: right;
    }

    .admin-nav {
        display: flex !important;
        gap: 8px;
        grid-column: 1 / -1;
        margin-top: 0 !important;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .admin-nav a,
    .admin-nav button {
        flex: 0 0 auto;
        min-height: 40px;
        white-space: nowrap;
    }

    .admin-page-header {
        align-items: flex-start;
    }

    .admin-filter-form {
        align-items: stretch;
    }

    .participant-sale-panel {
        position: static;
    }

    .super-admin-winner-form button,
    .restart-draw-form button {
        width: 100%;
    }

    .admin-select-number-grid {
        grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    }

    .draw-support-grid {
        gap: 14px;
    }

    .hero-raffle {
        gap: 14px;
    }

    .hero-raffle__image {
        aspect-ratio: 4 / 3;
        max-height: 360px;
    }

    .hero-raffle__content {
        justify-content: flex-start;
    }

    .hero-raffle__content h1 {
        font-size: 34px;
    }

    .public-raffle-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-number-grid {
        grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    }

    .roulette-center strong {
        font-size: 38px;
    }

    .draw-control h2 {
        font-size: 42px;
    }

    .draw-result strong {
        font-size: 38px;
    }

    .celebration-details {
        grid-template-columns: 1fr;
    }

    .celebration-card {
        max-height: calc(100vh - 44px);
        overflow-y: auto;
        padding: 28px;
    }

    .celebration-card h2 {
        font-size: 48px;
    }

    .celebration-number strong {
        font-size: 72px;
    }

    .celebration-winner strong {
        font-size: 36px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .site-header,
    .admin-topbar {
        gap: 12px;
        min-height: 64px;
        padding: 10px 12px;
    }

    .site-header img,
    .admin-topbar img {
        height: 34px;
        max-width: 150px;
    }

    .site-header .btn {
        min-height: 38px;
        padding: 9px 11px;
    }

    .public-shell,
    .admin-main {
        padding: 18px 12px 40px;
    }

    .admin-sidebar {
        gap: 12px;
        padding: 14px 12px;
    }

    .admin-brand img {
        max-width: 132px;
    }

    .admin-user-card {
        font-size: 13px;
        line-height: 1.35;
    }

    .admin-nav {
        margin-inline: -2px;
    }

    .admin-nav a,
    .admin-nav button {
        border-color: var(--line);
        font-size: 13px;
        padding: 9px 11px;
    }

    .admin-page-header,
    .panel-header {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 16px;
    }

    .admin-page-header .btn,
    .admin-page-header .actions,
    .panel-header .btn,
    .panel-header .actions {
        width: 100%;
    }

    .admin-page-header .btn,
    .panel-header .btn,
    .form-actions .btn,
    .form-actions button,
    .participant-sale-panel button {
        width: 100%;
    }

    .admin-page-header .actions .btn,
    .draw-control > form button {
        flex: 1 1 150px;
    }

    .admin-header h1 {
        font-size: 28px;
    }

    .admin-header h2 {
        font-size: 22px;
    }

    .admin-stat-grid {
        gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-card h2 {
        font-size: 28px;
    }

    .table-scroll {
        margin-inline: -8px;
        padding-inline: 8px;
    }

    .table-scroll table {
        min-width: 620px;
    }

    th,
    td {
        padding: 11px 10px;
    }

    .actions {
        gap: 8px;
    }

    .actions .btn,
    .actions button {
        min-height: 38px;
        padding: 9px 11px;
    }

    .admin-form-panel {
        gap: 14px;
    }

    .admin-form-grid {
        gap: 12px;
    }

    .inline-check {
        align-items: flex-start !important;
        line-height: 1.35;
    }

    .admin-filter-panel {
        margin-bottom: 16px !important;
    }

    .admin-number-assignment {
        gap: 14px;
    }

    .number-selection-panel .pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-select-number-grid {
        gap: 7px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-select-number-grid .number-tile {
        min-height: 74px;
        padding: 7px;
    }

    .participant-sale-panel {
        gap: 12px;
    }

    .super-admin-prepared-card {
        padding: 14px 14px 14px 18px;
    }

    .super-admin-prepared-card strong {
        font-size: 22px;
        overflow-wrap: anywhere;
    }

    .super-admin-prepared-card small {
        line-height: 1.35;
    }

    .super-admin-winner-form {
        gap: 12px;
        padding: 14px;
    }

    .super-admin-winner-form::before {
        font-size: 11px;
        line-height: 1.2;
    }

    .super-admin-winner-form textarea {
        min-height: 96px;
    }

    .restart-draw-form {
        padding-top: 12px;
    }

    .super-admin-mode .admin-table-panel .actions form {
        flex: 1 1 120px;
    }

    .super-admin-mode .admin-table-panel .actions form button {
        width: 100%;
    }

    .admin-client-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .draw-stage {
        gap: 18px;
    }

    .roulette-wrap {
        min-height: 330px;
    }

    .roulette-wheel {
        width: min(86vw, 320px);
    }

    .roulette-number {
        display: none;
    }

    .roulette-center {
        height: 112px;
        width: 112px;
    }

    .admin-header.public-page-heading {
        align-items: flex-start;
        margin-bottom: 16px;
    }

    .public-page-heading h1 {
        font-size: 30px;
        line-height: 1.05;
        margin: 2px 0 0;
    }

    .public-page-heading .muted {
        margin: 0;
    }

    .hero-raffle {
        gap: 12px;
    }

    .hero-raffle__image,
    .raffle-card__image {
        aspect-ratio: 16 / 10;
    }

    .panel,
    .auth-card {
        padding: 16px;
    }

    .hero-raffle__content {
        gap: 10px;
    }

    .hero-raffle__content h1 {
        font-size: 28px;
        line-height: 1.06;
    }

    .featured-raffle .btn {
        align-self: stretch;
    }

    .public-raffle-list {
        gap: 12px;
        grid-template-columns: 1fr;
        margin-top: 16px;
    }

    .raffle-card:hover {
        transform: none;
    }

    .raffle-card__body {
        gap: 9px;
        padding: 14px;
    }

    .raffle-card__body h3 {
        font-size: 19px;
    }

    .public-info-grid {
        gap: 12px;
        margin-top: 16px !important;
    }

    .public-info-card {
        gap: 8px;
    }

    .public-info-card h2,
    .public-number-panel h2 {
        font-size: 22px;
        line-height: 1.1;
    }

    .public-number-panel {
        margin-top: 16px !important;
    }

    .public-number-panel .admin-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 14px;
    }

    .public-number-grid {
        gap: 7px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .public-number-grid .number-tile {
        min-height: 74px;
        padding: 7px;
    }

    .number-code {
        font-size: 15px;
    }

    .number-owner {
        line-height: 1.25;
        white-space: normal;
    }

    .winner-celebration {
        padding: 14px;
    }

    .celebration-card {
        gap: 14px;
        padding: 20px;
    }

    .celebration-card h2 {
        font-size: 32px;
        line-height: 1;
    }

    .celebration-award-icon {
        height: 68px;
        width: 68px;
    }

    .celebration-award-icon svg {
        height: 48px;
        width: 48px;
    }

    .celebration-number {
        padding: 14px 16px;
    }

    .celebration-number strong {
        font-size: 54px;
    }

    .celebration-winner strong {
        font-size: 28px;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 380px) {
    .site-header .btn {
        font-size: 13px;
        padding-inline: 9px;
    }

    .hero-raffle__content h1 {
        font-size: 25px;
    }

    .public-page-heading h1 {
        font-size: 27px;
    }

    .public-number-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-stat-grid,
    .admin-select-number-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .super-admin-prepared-card strong {
        font-size: 20px;
    }

    .super-admin-winner-form {
        padding: 12px;
    }

    .celebration-card h2 {
        font-size: 28px;
    }
}
