* {
    box-sizing: border-box;
}

:root {
    --bg: #090909;
    --bg-soft: #131313;
    --panel: rgba(16, 16, 16, 0.9);
    --panel-strong: rgba(24, 24, 24, 0.96);
    --line: rgba(255, 255, 255, 0.09);
    --text: #f8f4ef;
    --muted: #c9c0b7;
    --accent: #df1f26;
    --accent-2: #ff5c39;
    --accent-dark: #780d12;
    --success: #67d46f;
    --warning: #ffbf4d;
    --radius: 24px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

html,
body {
    margin: 0;
    min-height: 100%;
    color: var(--text);
    background:
        radial-gradient(circle at top, rgba(223, 31, 38, 0.35), transparent 38%),
        radial-gradient(circle at bottom right, rgba(255, 92, 57, 0.14), transparent 28%),
        linear-gradient(140deg, #080808 0%, #130707 35%, #0a0a0a 100%);
    font-family: "Barlow Condensed", "Trebuchet MS", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(128deg, rgba(255, 255, 255, 0.04) 0 8px, transparent 8px 30px),
        repeating-linear-gradient(-25deg, rgba(223, 31, 38, 0.16) 0 3px, transparent 3px 22px);
    opacity: 0.4;
}

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

.page-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 60px;
}

.topbar,
.hero-ribbon,
.panel,
.winner-banner,
.flash,
.footer,
.cookie-banner {
    position: relative;
    z-index: 1;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 16px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(10, 10, 10, 0.78);
    backdrop-filter: blur(14px);
}

.brand {
    display: grid;
    gap: 4px;
}

.brand-kicker,
.eyebrow,
.count-label {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.72rem;
    color: #ffb7b3;
}

.brand strong,
h1,
h2,
h3,
h4 {
    font-family: "Bebas Neue", "Impact", sans-serif;
    letter-spacing: 0.04em;
    margin: 0;
}

h1 {
    font-size: clamp(2.6rem, 7vw, 5.4rem);
}

h2 {
    font-size: clamp(2rem, 4.8vw, 3.4rem);
    line-height: 0.95;
}

h3 {
    font-size: 1.65rem;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--muted);
    min-height: 44px;
    text-align: center;
}

.nav a.is-active,
.nav a:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.admin-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.admin-subnav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
}

.admin-subnav a.is-active,
.admin-subnav a:hover {
    background: linear-gradient(135deg, rgba(223, 31, 38, 0.25), rgba(255, 92, 57, 0.12));
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.14);
}

.hero-ribbon,
.panel-grid,
.stat-grid,
.cta-row,
.orders,
.table-like,
.row-actions,
.ticket-cloud,
.media-gallery,
.draw-facts,
.transparency-panel {
    display: grid;
    gap: 16px;
}

.hero-ribbon {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    padding: 26px 28px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    background:
        linear-gradient(120deg, rgba(223, 31, 38, 0.88), rgba(120, 13, 18, 0.72)),
        linear-gradient(45deg, rgba(0, 0, 0, 0.85), transparent);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-community-link {
    position: absolute;
    top: 14px;
    left: 50%;
    width: min(40%, 360px);
    max-height: 180px;
    transform: translateX(-50%);
    z-index: 0;
    display: block;
    line-height: 0;
    border-radius: 999px;
}

.hero-community-mark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 180px;
    opacity: 0.15;
    object-fit: contain;
    transition: opacity 0.18s ease, filter 0.18s ease;
}

.hero-community-link:hover .hero-community-mark,
.hero-community-link:focus-visible .hero-community-mark {
    opacity: 1;
    filter: drop-shadow(0 0 22px rgba(0, 0, 0, 0.68));
}

.hero-copy {
    position: relative;
    z-index: 2;
    min-height: 320px;
    display: grid;
    align-content: center;
    padding: 26px 18px 26px 8px;
    transform: translateY(20%);
}

.hero-portrait-mark {
    position: absolute;
    left: -112px;
    bottom: 0;
    width: min(66%, 676px);
    height: calc(100% - 26px);
    object-fit: cover;
    object-position: 42% center;
    opacity: 1;
    pointer-events: none;
    z-index: 1;
    filter: saturate(0.95) contrast(1.02);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.7) 58%, transparent 96%);
}

.hero-copy > * {
    position: relative;
    z-index: 1;
}

.hero-ribbon .eyebrow {
    color: #ffe7df;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28);
}

.hero-ribbon .tagline {
    color: #fff1ea;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.24);
}

.hero-ribbon::after {
    content: "180  CHECKOUT  BULLSEYE  NIGHTFLIGHT";
    position: absolute;
    inset: auto 20px 12px auto;
    font-family: "Bebas Neue", "Impact", sans-serif;
    letter-spacing: 0.18em;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.18);
}

.hero-ribbon-stage {
    position: relative;
    display: grid;
    justify-items: end;
    align-items: end;
    min-height: 380px;
}

.hero-jersey-shell {
    position: absolute;
    right: -72px;
    bottom: -259px;
    width: min(100%, 705px);
    height: 645px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.42));
}

.hero-jersey-shell::before {
    content: "";
    position: absolute;
    inset: 10% 15% 6%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.72) 0%, rgba(255, 135, 120, 0.28) 38%, rgba(223, 31, 38, 0.12) 58%, transparent 75%);
    filter: blur(28px);
    z-index: 0;
}

.hero-jersey-image {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transform: translateY(-108px);
}

.tagline {
    max-width: 620px;
    margin: 8px 0 0;
    color: #ffede3;
    font-size: 1.15rem;
}

.countdown-card,
.panel,
.winner-banner,
.flash {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.countdown-card {
    padding: 18px 20px;
    background: rgba(12, 12, 12, 0.75);
    justify-self: end;
    min-width: 240px;
    display: grid;
    gap: 6px;
    position: relative;
    z-index: 2;
}

.countdown-card strong {
    font-size: 1.35rem;
}

.count-value {
    color: #ffd6d2;
}

.flash {
    padding: 14px 18px;
    margin-bottom: 16px;
}

.flash-success {
    border-color: rgba(103, 212, 111, 0.25);
    background: rgba(12, 28, 15, 0.94);
}

.flash-error {
    border-color: rgba(223, 31, 38, 0.4);
    background: rgba(41, 10, 10, 0.94);
}

.winner-banner {
    display: grid;
    gap: 4px;
    padding: 20px 22px;
    margin-bottom: 18px;
    text-align: center;
    justify-items: center;
    background:
        linear-gradient(135deg, rgba(223, 31, 38, 0.35), rgba(255, 92, 57, 0.08)),
        rgba(16, 16, 16, 0.94);
}

.winner-banner strong {
    font-family: "Bebas Neue", "Impact", sans-serif;
    font-size: 2rem;
}

.content {
    display: grid;
    gap: 18px;
}

.panel {
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent),
        var(--panel-strong);
}

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

.hero-panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: start;
}

.home-hero-copy {
    display: grid;
    align-content: start;
    gap: 14px;
    padding-top: 0;
}

.home-hero-copy p,
.home-hero-copy h2 {
    margin: 0;
}

.home-hero-copy h2 strong {
    color: #ff4038;
}

.media-panel {
    display: block;
}

.raffle-gallery-panel {
    padding: 16px;
}

.raffle-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.raffle-gallery-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background:
        linear-gradient(160deg, rgba(223, 31, 38, 0.12), transparent 36%),
        rgba(18, 18, 18, 0.96);
    padding: 16px;
    display: grid;
    align-content: center;
    align-items: center;
    overflow: hidden;
    min-width: 0;
}

.raffle-gallery-frame {
    width: 100%;
    aspect-ratio: 4 / 5;
    display: grid;
    place-items: center;
    padding: 1px;
    border: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 20px;
    background:
        radial-gradient(circle at top, rgba(223, 31, 38, 0.12), transparent 42%),
        rgba(8, 8, 8, 0.78);
}

.raffle-gallery-frame:hover {
    transform: none;
}

.raffle-gallery-image {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 18px;
    object-fit: contain;
    object-position: center center;
    filter: brightness(0.7);
    transition: filter 0.18s ease;
}

.raffle-gallery-frame:hover .raffle-gallery-image,
.raffle-gallery-frame:focus-visible .raffle-gallery-image {
    filter: brightness(1);
}

.raffle-gallery-placeholder {
    min-height: 210px;
    aspect-ratio: 4 / 5;
    border-radius: 15px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    display: grid;
    place-items: center;
    text-align: center;
    gap: 8px;
    padding: 16px;
    background:
        repeating-linear-gradient(140deg, rgba(255, 255, 255, 0.03) 0 10px, transparent 10px 24px),
        rgba(255, 255, 255, 0.02);
}

.raffle-gallery-placeholder span {
    font-family: "Bebas Neue", "Impact", sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
}

.raffle-gallery-placeholder small {
    color: var(--muted);
    max-width: 220px;
}

.hero-copy p,
.home-hero-copy p,
.info-card p,
.note-box p,
.panel p,
.table-row p,
.legal-page p {
    margin: 0;
    color: var(--muted);
}

.donation-box {
    margin-top: 18px;
    border-color: rgba(255, 226, 143, 0.18);
    background:
        linear-gradient(160deg, rgba(255, 196, 68, 0.14), rgba(223, 31, 38, 0.08) 55%, transparent),
        rgba(18, 18, 18, 0.96);
}

.donation-actions {
    margin-top: 10px;
}

.donation-link-action {
    margin-left: auto;
}

.donation-media {
    width: min(100%, 220px);
    justify-self: center;
    align-self: start;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 8, 8, 0.76);
    line-height: 0;
}

.donation-media img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-side,
.recent-orders {
    display: grid;
    gap: 12px;
}

.score-card,
.info-card,
.note-box,
.form-card,
.order-card,
.stat-card,
.table-row,
.media-card,
.media-logo-card,
.draw-stage,
.draw-center,
.draw-stream,
.cookie-banner {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background:
        linear-gradient(160deg, rgba(223, 31, 38, 0.12), transparent 36%),
        rgba(18, 18, 18, 0.96);
}

.score-card,
.stat-card {
    padding: 16px 18px;
    display: grid;
    gap: 6px;
}

.score-card strong,
.stat-card strong {
    font-family: "Bebas Neue", "Impact", sans-serif;
    font-size: 2rem;
}

.score-card-text strong {
    font-family: "Barlow Condensed", "Trebuchet MS", sans-serif;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-wrap: balance;
}

.info-card,
.note-box,
.form-card,
.order-card,
.media-card,
.media-logo-card {
    padding: 16px;
}

.note-box {
    display: grid;
    gap: 8px;
}

.media-logo-card,
.media-card,
.draw-screen,
.draw-stage {
    overflow: hidden;
}

.media-logo-card {
    display: grid;
    gap: 0;
    align-content: center;
    align-self: center;
}

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

.media-card {
    display: grid;
    gap: 0;
    align-content: start;
}

.media-card img,
.media-logo {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 18px;
    object-fit: contain;
    filter: brightness(0.7);
    transition: filter 0.18s ease;
}

.media-zoom-trigger {
    width: 100%;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    min-height: 0;
    overflow: hidden;
    border-radius: 20px;
    background:
        radial-gradient(circle at top, rgba(223, 31, 38, 0.12), transparent 42%),
        rgba(8, 8, 8, 0.78);
}

.media-zoom-trigger:hover {
    transform: none;
}

.media-zoom-trigger:hover img,
.media-zoom-trigger:focus-visible img {
    filter: brightness(1);
}

.media-card .media-zoom-trigger {
    aspect-ratio: 4 / 5;
    padding: 1px;
}

.media-logo-card .media-zoom-trigger {
    aspect-ratio: 16 / 9;
    padding: 0;
    display: grid;
    place-items: center;
}

.media-logo {
    background: transparent;
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    transform: none;
}

.media-placeholder {
    min-height: 210px;
    border-radius: 15px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    display: grid;
    place-items: center;
    text-align: center;
    gap: 8px;
    padding: 16px;
    background:
        repeating-linear-gradient(140deg, rgba(255, 255, 255, 0.03) 0 10px, transparent 10px 24px),
        rgba(255, 255, 255, 0.02);
}

.media-placeholder span {
    font-family: "Bebas Neue", "Impact", sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
}

.media-placeholder small {
    color: var(--muted);
    max-width: 220px;
}

.admin-media-preview {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.admin-media-preview img {
    width: 100%;
    max-width: 240px;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    object-fit: contain;
    background:
        radial-gradient(circle at top, rgba(223, 31, 38, 0.12), transparent 42%),
        rgba(8, 8, 8, 0.78);
}

.logo-placeholder {
    min-height: 260px;
}

.info-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.cta-row {
    grid-auto-flow: column;
    justify-content: start;
    margin-top: 18px;
}

.button,
button,
input,
select,
textarea {
    font: inherit;
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 12px 18px;
    transition: transform 0.15s ease, opacity 0.15s ease;
    min-height: 46px;
}

.button:hover,
button:hover {
    transform: translateY(-1px);
}

.button:disabled,
button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.button-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
}

.button-danger {
    background: linear-gradient(135deg, #9d0f16, #ff3d3d);
    color: white;
}

.button-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text);
}

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

.form-card.compact {
    display: grid;
    gap: 12px;
}

.field,
.field-full,
.inline-form {
    display: grid;
    gap: 8px;
}

.admin-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 16px;
}

.admin-search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.field-full {
    grid-column: 1 / -1;
}

.section-title {
    font-family: "Bebas Neue", "Impact", sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    color: #ffe4d2;
}

label {
    color: #ffcabd;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(10, 10, 10, 0.8);
    color: var(--text);
}

textarea {
    resize: vertical;
}

.checkbox-row {
    grid-auto-flow: column;
    justify-content: start;
    align-items: center;
}

.checkbox-row input {
    width: auto;
}

.actions-row {
    display: flex;
    justify-content: flex-start;
}

.orders,
.table-like {
    margin-top: 12px;
}

.customer-list {
    display: grid;
    gap: 14px;
    margin-top: 12px;
}

.customer-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background:
        linear-gradient(160deg, rgba(223, 31, 38, 0.12), transparent 36%),
        rgba(18, 18, 18, 0.96);
    overflow: hidden;
}

.customer-summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px;
    cursor: pointer;
}

.customer-summary::-webkit-details-marker {
    display: none;
}

.customer-summary p,
.customer-body p {
    margin: 0;
}

.customer-summary-meta {
    display: grid;
    justify-items: end;
    gap: 4px;
    text-align: right;
}

.customer-body {
    display: grid;
    gap: 14px;
    padding: 0 18px 18px;
}

.customer-actions,
.admin-shortcuts,
.draw-replay-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.draw-replay-actions {
    justify-content: center;
}

.order-head,
.table-row,
.mini-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.order-head-primary {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.order-head-primary strong,
.order-head-primary span {
    overflow-wrap: anywhere;
}

.order-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.order-card,
.table-row {
    padding: 18px;
}

.table-row.wide {
    align-items: center;
}

.table-row > * {
    min-width: 0;
}

.row-actions,
.inline-form {
    grid-auto-flow: column;
    align-items: center;
}

.ticket-cloud {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    margin-top: 14px;
}

.ticket-cloud span,
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 600;
}

.button-compact {
    min-height: 38px;
    padding: 0 14px;
}

.ticket-cloud span {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.badge-warning {
    background: rgba(255, 191, 77, 0.15);
    color: #ffd27d;
}

.badge-success {
    background: rgba(103, 212, 111, 0.15);
    color: #baf5bf;
}

.badge-muted {
    background: rgba(255, 255, 255, 0.07);
    color: #ddd6cf;
}

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

.text-link {
    color: #fff0d1;
    text-decoration: underline;
}

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

.footer {
    margin-top: 18px;
    padding: 16px 20px;
    color: var(--muted);
    font-size: 0.95rem;
    display: grid;
    gap: 14px;
}

.is-hidden {
    display: none !important;
}

.footer-meta,
.footer-nav,
.cookie-actions,
.cookie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.footer-meta {
    justify-content: space-between;
}

.footer-nav a,
.footer-cookie-button {
    color: #ffded3;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-cookie-button {
    background: transparent;
    border: 0;
    padding: 0;
    min-height: auto;
}

.legal-page {
    display: grid;
    gap: 18px;
}

.legal-page h3 {
    margin-top: 8px;
}

.legal-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 22px;
    color: var(--muted);
}

.legal-updated,
.legal-note {
    color: #ffdbcf;
}

.cookie-banner {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: grid;
    grid-template-columns: 1.3fr auto;
    gap: 18px;
    padding: 18px;
    max-width: 980px;
    margin: 0 auto;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(16px);
    background:
        linear-gradient(135deg, rgba(223, 31, 38, 0.22), rgba(255, 92, 57, 0.08)),
        rgba(12, 12, 12, 0.96);
}

.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 18px;
}

.payment-modal {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: grid;
    place-items: center;
    padding: 18px;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 4, 0.84);
    backdrop-filter: blur(6px);
}

.payment-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 4, 0.82);
    backdrop-filter: blur(6px);
}

.lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 960px);
    max-height: calc(100vh - 36px);
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(160deg, rgba(223, 31, 38, 0.12), transparent 36%),
        rgba(14, 14, 14, 0.98);
    box-shadow: 0 28px 100px rgba(0, 0, 0, 0.65);
}

.payment-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    display: grid;
    gap: 18px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(160deg, rgba(223, 31, 38, 0.16), transparent 36%),
        rgba(14, 14, 14, 0.98);
    box-shadow: 0 28px 100px rgba(0, 0, 0, 0.65);
}

.lightbox-close {
    justify-self: end;
}

.payment-close {
    justify-self: end;
}

.lightbox-image {
    width: 100%;
    max-height: calc(100vh - 150px);
    border-radius: 18px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
}

.payment-copy {
    display: grid;
    gap: 12px;
}

.payment-kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: #ffcabd;
}

.payment-copy p {
    margin: 0;
    color: var(--muted);
}

.payment-reference-card {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.34);
}

.payment-reference-card span {
    color: #ffb7b3;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
}

.payment-reference-card strong {
    font-family: "Bebas Neue", "Impact", sans-serif;
    font-size: clamp(1.9rem, 7vw, 2.6rem);
    letter-spacing: 0.06em;
    line-height: 0.95;
    overflow-wrap: anywhere;
}

.payment-helper {
    color: #ffe0d8;
}

.payment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-copy {
    display: grid;
    gap: 10px;
}

.cookie-kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: #ffcabd;
}

.cookie-copy p {
    color: var(--muted);
    margin: 0;
}

.cookie-copy a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-tags span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.92rem;
    color: #ffe7df;
}

.cookie-actions {
    justify-content: flex-end;
    align-self: end;
}

.draw-screen {
    display: grid;
    gap: 18px;
}

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

.draw-stage {
    position: relative;
    min-height: 420px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, rgba(223, 31, 38, 0.22), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
        rgba(10, 10, 10, 0.98);
}

.draw-stream {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.72;
}

.draw-stream::before,
.draw-stream::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(9, 9, 9, 0.95), transparent 18%, transparent 82%, rgba(9, 9, 9, 0.95));
    z-index: 2;
}

.draw-chip-lane {
    display: flex;
    gap: 12px;
    white-space: nowrap;
    position: absolute;
    left: 0;
    width: max-content;
    animation: draw-scroll linear infinite;
}

.draw-chip-lane.reverse {
    animation-direction: reverse;
}

.draw-chip {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff2eb;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.draw-center {
    position: relative;
    z-index: 3;
    min-width: min(100%, 560px);
    padding: 28px;
    display: grid;
    gap: 12px;
    text-align: center;
    background:
        linear-gradient(145deg, rgba(223, 31, 38, 0.22), rgba(255, 92, 57, 0.08)),
        rgba(10, 10, 10, 0.88);
    box-shadow: 0 24px 100px rgba(0, 0, 0, 0.58);
}

.draw-status,
.draw-note {
    color: #ffd7cb;
}

.draw-name {
    font-family: "Bebas Neue", "Impact", sans-serif;
    letter-spacing: 0.08em;
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 0.9;
}

.draw-name.is-final {
    color: #fff0ab;
    text-shadow: 0 0 30px rgba(255, 233, 126, 0.4);
}

@keyframes draw-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 900px) {
    .hero-ribbon,
    .hero-panel,
    .panel-grid,
    .form-grid,
    .stat-grid,
    .cookie-banner,
    .media-panel,
    .transparency-panel {
        grid-template-columns: 1fr;
    }

    .cta-row,
    .row-actions,
    .inline-form,
    .cookie-actions {
        grid-auto-flow: row;
    }

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

    .nav {
        justify-content: center;
    }

    .countdown-card {
        justify-self: stretch;
        min-width: 0;
    }

    .hero-ribbon-stage {
        min-height: 340px;
        justify-items: center;
    }

    .hero-community-link {
        width: min(44%, 300px);
        top: 16px;
    }

    .hero-community-mark {
        max-height: 150px;
    }

    .hero-copy {
        min-height: 260px;
        padding: 18px 8px 10px;
        transform: translateY(14%);
    }

    .hero-portrait-mark {
        display: none;
    }

    .hero-jersey-shell {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: -176px;
        width: min(92%, 585px);
        height: 525px;
    }

    .hero-jersey-image {
        transform: translateY(-84px);
    }

    .footer-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-row,
    .order-head,
    .mini-row,
    .customer-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .customer-summary-meta {
        justify-items: start;
        text-align: left;
    }

    .order-head-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-search {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

.media-gallery,
.draw-facts {
        grid-template-columns: 1fr 1fr;
    }

    .raffle-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 20px, 1200px);
        padding: 12px 0 110px;
    }

    .panel,
    .hero-ribbon,
    .winner-banner,
    .topbar,
    .cookie-banner {
        border-radius: 20px;
    }

    h1 {
        font-size: 3.2rem;
    }

    h2 {
        font-size: clamp(1.7rem, 10vw, 2.4rem);
    }

    .hero-ribbon {
        padding-bottom: 10px;
    }

    .hero-community-link {
        width: min(56%, 264px);
        top: 18px;
    }

    .hero-community-mark {
        max-height: 132px;
    }

    .hero-copy {
        min-height: 220px;
        padding: 18px 6px 0;
        transform: translateY(10%);
    }

    .hero-portrait-mark {
        display: none;
    }

.footer-credit {
    margin-top: 12px;
    font-size: 0.92rem;
    color: #d8beb7;
}

    .hero-ribbon-stage {
        min-height: 290px;
    }

    .hero-jersey-shell {
        width: min(100%, 480px);
        height: 435px;
        bottom: -121px;
    }

    .hero-jersey-image {
        transform: translateY(-66px);
    }

    .topbar,
    .panel,
    .hero-ribbon,
    .countdown-card,
    .info-card,
    .note-box,
    .form-card,
    .order-card,
    .stat-card,
    .table-row,
    .cookie-banner {
        padding: 16px;
    }

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

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

    .nav a,
    .admin-subnav a,
    .button,
    button {
        width: 100%;
    }

    .cta-row,
    .customer-actions,
    .admin-shortcuts {
        grid-auto-flow: row;
    }

    .donation-link-action {
        margin-left: 0;
    }

    .ticket-cloud {
        grid-template-columns: 1fr;
    }

    .order-head-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .order-head-actions .badge,
    .order-head-actions .button {
        width: 100%;
        justify-content: center;
    }

    .media-gallery,
    .draw-facts {
        grid-template-columns: 1fr;
    }

    .raffle-gallery-grid {
        grid-template-columns: 1fr;
    }

    .draw-stage {
        min-height: 360px;
    }

    .draw-center {
        min-width: 100%;
        padding: 18px;
    }

    .lightbox-modal {
        padding: 10px;
    }

    .payment-modal {
        padding: 10px;
    }

    .lightbox-dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
        padding: 14px;
        border-radius: 18px;
    }

    .payment-dialog {
        width: 100%;
        padding: 16px;
        border-radius: 18px;
    }

    .lightbox-image {
        max-height: calc(100vh - 120px);
    }

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

    .footer-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-tags {
        gap: 8px;
    }
}
