:root {
    color-scheme: light;
    --ink: #18171c;
    --muted: #65606f;
    --paper: #fffaf1;
    --panel: #ffffff;
    --line: #ded6c7;
    --accent: #da3e52;
    --accent-dark: #9e1f35;
    --stage: #111015;
    --gold: #f2b544;
    --green: #167c4f;
    --red: #b72c3b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--paper);
}

a {
    color: inherit;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px clamp(18px, 5vw, 64px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 250, 241, 0.95);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0;
}

.topbar nav {
    display: flex;
    gap: 16px;
    font-size: 14px;
}

.topbar nav a {
    text-decoration: none;
    color: var(--muted);
}

main {
    min-height: 72vh;
}

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2vw, 18px);
    min-height: calc(100svh - 74px);
    padding: clamp(12px, 2vw, 24px) clamp(12px, 2vw, 24px) clamp(18px, 3vw, 32px);
    overflow: hidden;
    background: var(--stage);
    border-bottom: 1px solid var(--line);
}

.poster-hero::after {
    content: none;
}

.poster-stage {
    position: relative;
    width: min(100%, calc((100svh - 74px - 86px) * 2.1333333));
    max-height: calc(100svh - 74px - 86px);
    aspect-ratio: 1920 / 900;
}

.hero-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.hero-action {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    width: min(100%, calc((100svh - 74px - 86px) * 2.1333333));
    max-width: 100%;
}

.hero-action .button {
    min-height: 48px;
    min-width: 180px;
    padding: 0 22px;
    font-size: 16px;
}

.section p {
    color: var(--muted);
    line-height: 1.6;
}

.contact-section {
    padding-top: 24px;
}

.contact-panel {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.contact-panel h2 {
    margin: 0 0 6px;
    font-size: clamp(28px, 4vw, 48px);
}

.contact-panel p {
    margin: 0;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.event-backdrop {
    position: relative;
    min-height: 520px;
    border-radius: 8px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(17, 16, 21, 0.25), rgba(17, 16, 21, 0.95)),
        var(--stage);
    box-shadow: 0 24px 80px rgba(17, 16, 21, 0.24);
}

.poster-backdrop {
    min-height: 0;
    aspect-ratio: 1 / 1;
    align-self: center;
    background: var(--stage);
}

.event-poster {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.backdrop-logo {
    position: absolute;
    inset: -12% -18% auto auto;
    width: min(78%, 420px);
    opacity: 0.22;
}

.backdrop-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.headliner-card {
    position: absolute;
    inset: 24px;
    margin: 0;
    display: grid;
    align-content: end;
}

.headliner-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    opacity: 0.9;
}

.headliner-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: linear-gradient(180deg, transparent 35%, rgba(17, 16, 21, 0.9));
}

.headliner-card figcaption {
    position: relative;
    z-index: 1;
    padding: 24px;
    color: #fff;
}

.headliner-card span {
    display: block;
    margin-bottom: 6px;
    color: var(--gold);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
}

.headliner-card strong {
    display: block;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 0.95;
}

.show-card,
.panel,
.ticket {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(60, 36, 25, 0.08);
}

.show-card {
    padding: 24px;
}

.show-card dl,
.show-strip dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.show-card div,
.show-strip div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.show-card div:last-child,
.show-strip div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.show-strip {
    padding: 20px clamp(18px, 5vw, 64px);
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.show-strip dl {
    max-width: 1120px;
    margin: 0 auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.show-strip div {
    display: block;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 0 16px 0 0;
}

.show-strip div:last-child {
    border-right: 0;
}

.show-strip dd {
    text-align: left;
    margin-top: 6px;
}

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

dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.section {
    padding: 42px clamp(18px, 5vw, 64px);
    max-width: 1120px;
    margin: 0 auto;
}

.section h2 {
    font-size: clamp(28px, 4vw, 48px);
    margin: 0 0 12px;
}

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

.panel {
    padding: 24px;
}

label {
    display: block;
    font-weight: 700;
    margin: 16px 0 7px;
}

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

.package-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.package-options label {
    display: block;
    margin: 0;
    cursor: pointer;
}

.package-options input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    min-height: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
}

.package-options span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 76px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font-weight: 800;
    text-align: center;
    line-height: 1.25;
    padding: 14px 12px;
}

.package-options small {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.package-options input:checked + span {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.package-options input:checked + span small {
    color: #fff;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.payment-options label {
    display: block;
    margin: 0;
    cursor: pointer;
}

.payment-options input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    min-height: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
}

.payment-options span {
    display: grid;
    gap: 4px;
    min-height: 74px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 12px;
}

.payment-options strong,
.payment-options small {
    display: block;
}

.payment-options small {
    color: var(--muted);
    font-weight: 400;
    line-height: 1.35;
}

.payment-options input:checked + span {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.payment-options input:checked + span small {
    color: rgba(255, 255, 255, 0.86);
}

.button,
button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    border: 0;
    border-radius: 6px;
    padding: 0 18px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button.secondary {
    background: var(--ink);
}

.button.full,
button.full {
    width: 100%;
    margin-top: 18px;
}

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

.flash {
    margin: 18px clamp(18px, 5vw, 64px) 0;
    padding: 14px 16px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--line);
}

.flash.error {
    border-color: var(--red);
    color: var(--red);
}

.ticket-list {
    display: grid;
    gap: 18px;
}

.ticket {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 18px;
    padding: 20px;
    align-items: center;
}

.ticket img {
    width: 180px;
    height: 180px;
    border: 1px solid var(--line);
}

.status {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 800;
    background: #eee;
}

.status.paid,
.status.unused,
.scan-result.accepted {
    background: #e8f7ef;
    color: var(--green);
}

.status.pending,
.status.unpaid,
.status.in_kind,
.scan-result.unpaid {
    background: #fff4d6;
    color: #8a5b00;
}

.status.used,
.status.backed_out,
.scan-result.used,
.scan-result.invalid {
    background: #fdecef;
    color: var(--red);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

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

th {
    background: #f7efe0;
}

.scanner-box {
    min-height: 320px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.scan-result {
    margin-top: 18px;
    padding: 18px;
    border-radius: 8px;
    font-weight: 800;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 24px clamp(18px, 5vw, 64px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 760px) {
    .hero,
    .grid,
    .ticket,
    .show-strip dl {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        gap: 10px;
        padding: 10px;
    }

    .poster-stage {
        width: 100%;
        max-height: none;
    }

    .hero-action {
        width: 100%;
        justify-content: flex-end;
    }

    .hero-action .button {
        min-height: 42px;
        min-width: 132px;
        padding: 0 14px;
        font-size: 14px;
    }

    .event-backdrop {
        min-height: 420px;
    }

    .show-strip div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 0 0 12px;
    }

    .package-options {
        grid-template-columns: 1fr;
    }

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

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

    .contact-actions {
        justify-content: flex-start;
    }

    .ticket img {
        width: 100%;
        height: auto;
        max-width: 260px;
    }
}
