/**
 * asongtosee - Public ticket UI
 * Perforated "concert ticket" look: lime stub + paper body over a dark stage background.
 */
:root {
    --tf-lime: #9be24b;
    --tf-lime-hover: #b3ef6c;
    --tf-paper: #dcd9d8;
    --tf-ink: #121212;
    --tf-muted: #4b4b4b;
    --tf-line: rgba(0, 0, 0, 0.42);
    --tf-danger: #b42318;
    --tf-font-display: "Silkscreen", "Space Mono", monospace;
    --tf-font-mono: "Space Mono", ui-monospace, monospace;
    --tf-font-sans: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
    --tf-noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ---------- Stage background (parallax layers, see js/public/parallax.js) ---------- */
body.tf-body {
    margin: 0;
    min-height: 100vh;
    color: #f1f1f1;
    font-family: var(--tf-font-sans);
    background: #0b0b0b;
    overflow-x: hidden;
}

/*
 * --scroll (0..1 page progress) and --px/--py (-1..1 pointer position) are set by parallax.js.
 * Each layer moves by its own --shift (scroll) and --tilt (pointer); deeper layers move less.
 */
.tf-stage {
    --scroll: 0;
    --px: 0;
    --py: 0;
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.tf-stage__layer {
    --shift: 0px;
    --tilt: 0px;
    --bleed: calc(var(--tilt) + 8px);
    position: absolute;
    top: calc(-1 * var(--bleed));
    left: calc(-1 * var(--bleed));
    right: calc(-1 * var(--bleed));
    bottom: calc(-1 * (var(--shift) + var(--bleed)));
    transform: translate3d(
        calc(var(--px) * -1 * var(--tilt)),
        calc(var(--scroll) * -1 * var(--shift) + var(--py) * -1 * var(--tilt)),
        0
    );
    will-change: transform;
}

/* Default stage: dark gradient with soft stage lights */
.tf-stage__base {
    --shift: 90px;
    --tilt: 10px;
    background:
        radial-gradient(ellipse 55% 38% at 28% 6%, rgba(255, 255, 255, 0.2), transparent 62%),
        radial-gradient(ellipse 45% 32% at 78% 14%, rgba(255, 255, 255, 0.16), transparent 66%),
        radial-gradient(ellipse 80% 55% at 50% 115%, rgba(0, 0, 0, 0.95), transparent 72%),
        linear-gradient(180deg, #2b2b2b 0%, #171717 52%, #0b0b0b 100%);
}

/* Custom background image (Pengaturan Web) */
.tf-stage--photo .tf-stage__base {
    --shift: 140px;
    background: #0b0b0b var(--stage-image) center top / cover no-repeat;
    filter: brightness(0.62) contrast(1.05);
}

.tf-stage--photo.is-mono .tf-stage__base {
    filter: grayscale(1) brightness(0.52) contrast(1.15);
}

/* Readability veil over custom photos */
.tf-stage__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.75) 100%);
}

/* Spotlight beams: closest layer, moves the most */
.tf-stage__beams {
    --shift: 260px;
    --tilt: 28px;
    background:
        conic-gradient(from 196deg at 24% -2%, transparent 0deg, rgba(255, 255, 255, 0.09) 7deg, transparent 15deg),
        conic-gradient(from 176deg at 30% -2%, transparent 0deg, rgba(255, 255, 255, 0.07) 6deg, transparent 12deg),
        conic-gradient(from 156deg at 36% -2%, transparent 0deg, rgba(255, 255, 255, 0.06) 6deg, transparent 12deg);
    filter: blur(3px);
}

/* Film grain stays fixed */
.tf-stage__grain {
    position: absolute;
    inset: 0;
    background-image: var(--tf-noise);
    opacity: 0.22;
    mix-blend-mode: overlay;
}

@media (prefers-reduced-motion: reduce) {
    .tf-stage__layer {
        transform: none;
    }
}

a {
    color: inherit;
}

/* ---------- Header ---------- */
.tf-header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem clamp(1rem, 3vw, 2rem);
}

.tf-brand {
    font-family: var(--tf-font-mono);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    color: #eee;
    text-decoration: none;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.35);
}

.tf-header__left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}

.tf-header--sticky {
    position: sticky;
    top: 0;
    z-index: 10;
    align-items: center;
    background: transparent;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.tf-header--sticky .tf-anchors,
.tf-header--sticky .tf-tabs {
    background: transparent;
}

.tf-anchors {
    position: relative;
    display: flex;
    gap: 4px;
    padding: 3px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.55);
    isolation: isolate;
}

.tf-anchors__indicator {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;
    z-index: -1;
    width: var(--section-width, 0px);
    transform: translateX(var(--section-left, 3px));
    border-radius: 4px;
    background: var(--tf-lime);
    transition: transform 0.2s ease, width 0.2s ease;
    pointer-events: none;
}

.tf-anchors a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-family: var(--tf-font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: #bdbdbd;
}

.tf-anchors a:hover {
    color: var(--tf-lime);
}

.tf-anchors a.is-active {
    color: var(--tf-ink);
    background: var(--tf-lime);
}

.tf-anchors.is-ready a.is-active {
    background: transparent;
}

.tf-header--sticky ~ .tf-main #events,
.tf-header--sticky ~ .tf-main .tf-block[id] {
    scroll-margin-top: calc(var(--section-header-height, 130px) + 16px);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    .tf-anchors__indicator {
        transition: none;
    }
}

.tf-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 3px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.55);
}

.tf-tab {
    font-family: var(--tf-font-display);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #f2f2f2;
    background: #0b0b0b;
    border: 1px solid #2c2c2c;
    border-radius: 4px;
    padding: 0.5rem 0.8rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.tf-tab:hover {
    background: #1d1d1d;
}

.tf-tab.is-active {
    color: var(--tf-ink);
    background: var(--tf-lime);
    border-color: var(--tf-lime);
}

.tf-tab.is-closed {
    color: #8d8d8d;
    background: #2a2a2a;
    text-decoration: line-through;
}

/* ---------- Layout ---------- */
.tf-main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: clamp(1.5rem, 6vh, 4rem) clamp(1rem, 3vw, 1.5rem) 7rem;
}

.tf-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: calc(100vh - 230px);
}

.tf-footer {
    position: fixed;
    left: 1.5rem;
    bottom: 1.5rem;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tf-footer form {
    margin: 0;
}

.tf-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font: 500 0.95rem var(--tf-font-sans);
    color: var(--tf-ink);
    text-decoration: none;
    background: rgba(232, 232, 232, 0.88);
    border: 0;
    border-radius: 12px;
    padding: 0.7rem 1rem;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.tf-pill:hover {
    background: #fff;
}

/* ---------- Perforated shapes ---------- */
.tf-ticket__part,
.tf-paper {
    --r: 26px;
    --h: 4.5px;
    --gap: 15px;
    --side: -100px;
    background-color: var(--tf-paper);
    background-image: var(--tf-noise);
    background-blend-mode: multiply;
    -webkit-mask:
        radial-gradient(circle var(--r) at 0 0, #0000 98%, #000) 0 0 / 100% 100% no-repeat,
        radial-gradient(circle var(--r) at 100% 0, #0000 98%, #000) 0 0 / 100% 100% no-repeat,
        radial-gradient(circle var(--r) at 0 100%, #0000 98%, #000) 0 0 / 100% 100% no-repeat,
        radial-gradient(circle var(--r) at 100% 100%, #0000 98%, #000) 0 0 / 100% 100% no-repeat,
        radial-gradient(circle var(--h) at 50% 0, #0000 96%, #000) 0 0 / var(--gap) 100% repeat-x,
        radial-gradient(circle var(--h) at 50% 100%, #0000 96%, #000) 0 0 / var(--gap) 100% repeat-x,
        radial-gradient(circle var(--h) at var(--side) 50%, #0000 96%, #000) 0 0 / 100% var(--gap) repeat-y;
    -webkit-mask-composite: source-in;
    mask:
        radial-gradient(circle var(--r) at 0 0, #0000 98%, #000) 0 0 / 100% 100% no-repeat,
        radial-gradient(circle var(--r) at 100% 0, #0000 98%, #000) 0 0 / 100% 100% no-repeat,
        radial-gradient(circle var(--r) at 0 100%, #0000 98%, #000) 0 0 / 100% 100% no-repeat,
        radial-gradient(circle var(--r) at 100% 100%, #0000 98%, #000) 0 0 / 100% 100% no-repeat,
        radial-gradient(circle var(--h) at 50% 0, #0000 96%, #000) 0 0 / var(--gap) 100% repeat-x,
        radial-gradient(circle var(--h) at 50% 100%, #0000 96%, #000) 0 0 / var(--gap) 100% repeat-x,
        radial-gradient(circle var(--h) at var(--side) 50%, #0000 96%, #000) 0 0 / 100% var(--gap) repeat-y;
    mask-composite: intersect;
}

/* ---------- Event ticket ---------- */
.tf-ticket {
    display: grid;
    grid-template-columns: minmax(220px, 300px) 1fr;
    width: min(920px, 100%);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
    color: var(--tf-ink);
}

.tf-ticket__part {
    position: relative;
    padding: 2.6rem 2.25rem;
}

.tf-ticket__stub {
    --side: 0;
    container-type: inline-size;
    background-color: var(--tf-lime);
    border-right: 1.5px dashed var(--tf-line);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 360px;
    text-align: center;
}

.tf-ticket__city {
    --chars: 6;
    margin: 0;
    font-family: var(--tf-font-display);
    font-weight: 700;
    /* Scales the pixel font so the longest word always fits the stub width. */
    font-size: clamp(1rem, calc(100cqi / (var(--chars) * 0.95)), 2.6rem);
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.tf-ticket__icon {
    width: 120px;
    height: auto;
    color: var(--tf-ink);
}

.tf-ticket__venue {
    margin: 0;
    font-weight: 800;
    font-size: 1.12rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.tf-ticket__body {
    --side: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tf-ticket__headline {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1.5px dashed var(--tf-line);
    font-weight: 800;
    font-size: clamp(1.35rem, 2.6vw, 1.9rem);
    letter-spacing: -0.02em;
}

.tf-ticket__meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin: 0;
}

.tf-ticket__meta dt {
    font-size: 0.8rem;
    font-weight: 500;
    color: #333;
}

.tf-ticket__meta dd {
    margin: 0.15rem 0 0;
    font-weight: 600;
    font-size: 1.05rem;
}

.tf-ticket__desc {
    margin: 0;
    color: var(--tf-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tf-ticket__cta {
    margin-top: auto;
}

/* ---------- Buttons ---------- */
.tf-btn {
    display: block;
    width: 100%;
    font-family: var(--tf-font-mono);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    color: var(--tf-ink);
    background: var(--tf-lime);
    border: 1.5px solid var(--tf-ink);
    border-radius: 6px;
    padding: 0.95rem 1rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.tf-btn:hover {
    background: var(--tf-lime-hover);
}

.tf-btn:active {
    transform: translateY(1px);
}

.tf-btn--ghost {
    background: transparent;
}

.tf-btn--ghost:hover {
    background: rgba(0, 0, 0, 0.06);
}

.tf-btn--inline {
    display: inline-block;
    width: auto;
    padding: 0.7rem 1.2rem;
    font-size: 0.82rem;
}

.tf-btn[aria-disabled="true"],
.tf-btn:disabled {
    color: #5d5d5d;
    background: #bdbab9;
    border-color: #8f8c8b;
    cursor: not-allowed;
    pointer-events: none;
}

.tf-link {
    color: var(--tf-ink);
    font-weight: 600;
}

/* ---------- Paper panel ---------- */
.tf-paper {
    --r: 20px;
    width: min(920px, 100%);
    color: var(--tf-ink);
    padding: 2.5rem clamp(1.25rem, 4vw, 2.75rem);
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
}

.tf-paper--narrow {
    width: min(520px, 100%);
}

.tf-paper__title {
    margin: 0 0 0.35rem;
    font-weight: 800;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    letter-spacing: -0.02em;
}

.tf-paper__subtitle {
    margin: 0 0 1.75rem;
    color: var(--tf-muted);
}

.tf-section {
    margin-top: 2rem;
}

.tf-section__title {
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1.5px dashed var(--tf-line);
    font-family: var(--tf-font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tf-section__title--actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.tf-order-banner {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 1;
    object-fit: cover;
    object-position: top;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.tf-print {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--tf-line);
    border-radius: 6px;
    color: inherit;
    background: transparent;
}

.tf-print:hover,
.tf-print:focus-visible {
    color: #121212;
    background: var(--tf-lime);
}

/* ---------- Forms ---------- */
.tf-grid {
    display: grid;
    gap: 1rem 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tf-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tf-label {
    font-family: var(--tf-font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2d2d2d;
}

.tf-label.is-required::after {
    content: " *";
    color: var(--tf-danger);
}

.tf-input {
    width: 100%;
    font: 500 1rem var(--tf-font-sans);
    color: var(--tf-ink);
    background: rgba(255, 255, 255, 0.55);
    border: 1.5px solid var(--tf-ink);
    border-radius: 6px;
    padding: 0.7rem 0.85rem;
}

.tf-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(155, 226, 75, 0.7);
}

.tf-input:disabled {
    opacity: 0.5;
}

.tf-input.is-invalid {
    border-color: var(--tf-danger);
}

.tf-hint {
    font-size: 0.8rem;
    color: var(--tf-muted);
}

.tf-error {
    font-size: 0.82rem;
    color: var(--tf-danger);
}

.tf-choice {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.tf-choice label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.tf-choice input {
    accent-color: var(--tf-ink);
    width: 1.05rem;
    height: 1.05rem;
}

/* ---------- Ticket options ---------- */
.tf-option {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1.5px dashed var(--tf-line);
}

.tf-option:last-child {
    border-bottom: 0;
}

.tf-option__name {
    margin: 0;
    font-weight: 800;
    font-size: 1.1rem;
}

.tf-option__meta {
    margin: 0.2rem 0 0;
    font-size: 0.88rem;
    color: var(--tf-muted);
}

.tf-option__price {
    font-family: var(--tf-font-mono);
    font-weight: 700;
}

.tf-option__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    justify-content: flex-end;
}

.tf-option__donation {
    grid-column: 1 / -1;
}

.tf-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1.5px solid var(--tf-ink);
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.55);
}

.tf-stepper button {
    width: 2.4rem;
    font: 700 1.1rem var(--tf-font-mono);
    color: var(--tf-ink);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.tf-stepper button:hover {
    background: var(--tf-lime);
}

.tf-stepper input {
    width: 3rem;
    text-align: center;
    font: 700 1rem var(--tf-font-mono);
    border: 0;
    border-inline: 1.5px solid var(--tf-ink);
    background: transparent;
    -moz-appearance: textfield;
}

.tf-stepper input::-webkit-outer-spin-button,
.tf-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ---------- Summary / info boxes ---------- */
.tf-summary {
    display: grid;
    gap: 0.4rem;
    padding: 1.25rem 1.4rem;
    border-radius: 8px;
    color: #f1f1f1;
    background: var(--tf-ink);
    font-family: var(--tf-font-mono);
}

.tf-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
}

.tf-summary__row--total {
    margin-top: 0.4rem;
    padding-top: 0.6rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.35);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tf-lime);
}

.tf-note {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    color: #a9a9a9;
}

.tf-bank {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
    border: 1.5px dashed var(--tf-ink);
    border-radius: 8px;
    font-family: var(--tf-font-mono);
}

.tf-bank strong {
    font-size: 1.15rem;
}

/* ---------- Alerts & badges ---------- */
.tf-alert {
    width: min(920px, 100%);
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--tf-ink);
    background: var(--tf-lime);
    border: 1.5px solid var(--tf-ink);
}

.tf-alert--error {
    color: #fff;
    background: #8f1d14;
    border-color: #3b0a06;
}

.tf-alert ul {
    margin: 0.4rem 0 0;
    padding-left: 1.2rem;
    font-weight: 500;
}

.tf-badge {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    border: 1.5px solid var(--tf-ink);
    border-radius: 4px;
    font-family: var(--tf-font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #fff;
}

.tf-badge--success { background: var(--tf-lime); }
.tf-badge--warning { background: #ffd666; }
.tf-badge--info { background: #9fd3ff; }
.tf-badge--danger { background: #ff8f84; }
.tf-badge--secondary,
.tf-badge--dark { background: #c9c6c5; }

/* ---------- Tables & definition lists ---------- */
.tf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.tf-table th {
    font-family: var(--tf-font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
    color: #333;
    padding: 0.6rem 0.5rem;
    border-bottom: 1.5px solid var(--tf-ink);
}

.tf-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px dashed var(--tf-line);
    vertical-align: top;
}

.tf-table .text-end {
    text-align: right;
}

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

.tf-dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem 1.5rem;
    margin: 0;
}

.tf-dl__schedule {
    grid-column: 1 / -1;
}

.tf-dl dt {
    font-family: var(--tf-font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #444;
}

.tf-dl dd {
    margin: 0.2rem 0 0;
    font-weight: 600;
    word-break: break-word;
}

.tf-reference {
    font-family: var(--tf-font-display);
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    letter-spacing: 0.06em;
}

/* ---------- Ticket pass (QR) ---------- */
.tf-passes {
    display: grid;
    gap: 1.25rem;
}

.tf-pass {
    display: grid;
    grid-template-columns: 200px 1fr;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
}

.tf-pass .tf-ticket__part {
    --r: 16px;
    --h: 3.5px;
    --gap: 12px;
    padding: 1.4rem;
}

.tf-pass__qr {
    --side: 0;
    background-color: var(--tf-lime);
    border-right: 1.5px dashed var(--tf-line);
    display: grid;
    place-items: center;
}

.tf-pass__qr svg {
    width: 100%;
    max-width: 160px;
    height: auto;
    background: #fff;
    border-radius: 6px;
    padding: 6px;
}

.tf-pass__body {
    --side: 100%;
    background-color: #ecebea;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
}

.tf-pass__number {
    font-family: var(--tf-font-display);
    font-size: 1.15rem;
    letter-spacing: 0.04em;
}

/* ---------- Misc ---------- */
.tf-empty {
    width: min(920px, 100%);
    padding: 3rem 1.5rem;
    text-align: center;
    color: #cfcfcf;
    border: 1.5px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-family: var(--tf-font-mono);
}

.tf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.tf-stack {
    display: grid;
    gap: 1rem;
}

.tf-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.tf-pagination .page-link {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border: 1.5px solid var(--tf-ink);
    border-radius: 4px;
    text-decoration: none;
    color: var(--tf-ink);
    font-family: var(--tf-font-mono);
}

.tf-pagination .active .page-link {
    background: var(--tf-lime);
}

.tf-pagination .disabled .page-link {
    opacity: 0.4;
}

.tf-pagination .small.text-muted {
    display: none;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

html {
    scroll-behavior: smooth;
    background-color: #0b0b0b;
}

/* ---------- Poster on the ticket stub ---------- */
.tf-ticket__stub--poster {
    padding: 0;
    background-color: var(--tf-ink);
    background-image: none;
}

.tf-ticket__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tf-ticket__title {
    margin: -0.5rem 0 0;
    font-weight: 800;
    font-size: 1.1rem;
}

.tf-ticket__title span {
    font-weight: 500;
    color: var(--tf-muted);
}

/* ---------- Landing blocks ---------- */
.tf-block {
    width: min(1040px, 100%);
    padding-top: 3rem;
    scroll-margin-top: 1rem;
}

.tf-block__header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
}

.tf-kicker {
    font-family: var(--tf-font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tf-lime);
}

.tf-block__title {
    margin: 0;
    font-family: var(--tf-font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f4f4f4;
}

/* Compact tickets */
.tf-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.tf-mini {
    display: grid;
    grid-template-columns: 96px 1fr;
    min-height: 150px;
    color: var(--tf-ink);
    text-decoration: none;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45));
    transition: transform 0.15s ease;
}

.tf-mini:hover {
    transform: translateY(-3px);
}

.tf-mini .tf-ticket__part {
    --r: 14px;
    --h: 3px;
    --gap: 11px;
    position: relative;
}

.tf-mini__stub {
    --side: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--tf-lime);
    border-right: 1.5px dashed var(--tf-line);
}

.tf-mini__stub--poster {
    background-color: var(--tf-ink);
    background-image: none;
}

.tf-mini__day {
    font-family: var(--tf-font-display);
    font-size: 2rem;
    line-height: 1;
}

.tf-mini__month {
    font-family: var(--tf-font-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tf-mini__body {
    --side: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.1rem 1.25rem;
}

.tf-mini__name {
    font-weight: 800;
    font-size: 1.15rem;
}

.tf-mini__meta {
    font-size: 0.85rem;
    color: var(--tf-muted);
}

.tf-mini__state {
    margin-top: auto;
    font-family: var(--tf-font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b6b6b;
}

.tf-mini__state.is-open {
    color: #3f7d0e;
}

/* Sponsors */
.tf-sponsors + .tf-sponsors {
    margin-top: 1.75rem;
}

.tf-sponsors__label {
    margin: 0 0 0.85rem;
    font-family: var(--tf-font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #bdbdbd;
}

.tf-sponsors__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tf-logo {
    display: grid;
    place-items: center;
    height: 96px;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    background-color: var(--tf-paper);
    background-image: var(--tf-noise);
    background-blend-mode: multiply;
    color: var(--tf-ink);
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

a.tf-logo:hover {
    transform: translateY(-2px);
    background-color: var(--tf-lime);
}

.tf-logo img {
    max-width: 100%;
    max-height: 56px;
    object-fit: contain;
    filter: grayscale(1) contrast(1.1);
    mix-blend-mode: multiply;
}

a.tf-logo:hover img {
    filter: none;
}

.tf-logo__name {
    font-weight: 800;
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* FAQ */
.tf-faqs {
    display: grid;
    gap: 0.75rem;
}

.tf-faq {
    border-radius: 10px;
    background-color: var(--tf-paper);
    background-image: var(--tf-noise);
    background-blend-mode: multiply;
    color: var(--tf-ink);
}

.tf-faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
}

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

.tf-faq summary::after {
    content: "+";
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border: 1.5px solid var(--tf-ink);
    border-radius: 4px;
    font-family: var(--tf-font-mono);
    font-weight: 700;
    background: var(--tf-lime);
}

.tf-faq[open] summary::after {
    content: "−";
}

.tf-faq__answer {
    padding: 0 1.4rem 1.25rem;
    border-top: 1.5px dashed var(--tf-line);
    padding-top: 1rem;
    line-height: 1.6;
    color: #2b2b2b;
}

/* ---------- Event details (admin rich text) ---------- */
.tf-rich {
    line-height: 1.7;
    font-size: 1rem;
    color: #1f1f1f;
    overflow-wrap: anywhere;
}

.tf-rich > :first-child {
    margin-top: 0;
}

.tf-rich h2,
.tf-rich h3 {
    margin: 1.75rem 0 0.6rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.tf-rich h2 {
    font-size: 1.45rem;
}

.tf-rich h3 {
    font-size: 1.15rem;
}

.tf-rich p {
    margin: 0 0 0.9rem;
}

.tf-rich ul,
.tf-rich ol {
    padding-left: 1.4rem;
}

.tf-rich li {
    margin-bottom: 0.35rem;
}

.tf-rich a {
    color: var(--tf-ink);
    font-weight: 600;
}

.tf-rich img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1rem auto;
    border-radius: 8px;
}

.tf-rich blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--tf-lime);
    background: rgba(255, 255, 255, 0.45);
}

.tf-rich .ql-align-center {
    text-align: center;
}

.tf-rich .ql-align-right {
    text-align: right;
}

.tf-rich .ql-align-justify {
    text-align: justify;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
    .tf-header {
        flex-direction: column;
    }

    .tf-ticket,
    .tf-pass {
        grid-template-columns: 1fr;
    }

    .tf-ticket__stub,
    .tf-pass__qr {
        --side: -100px;
        border-right: 0;
        border-bottom: 1.5px dashed var(--tf-line);
        min-height: auto;
    }

    .tf-ticket__body,
    .tf-pass__body {
        --side: -100px;
    }

    .tf-option {
        grid-template-columns: 1fr;
    }

    .tf-option__controls {
        justify-content: flex-start;
    }

    .tf-footer {
        position: static;
        justify-content: center;
        padding: 0 1rem 2rem;
    }

    .tf-main {
        padding-bottom: 2rem;
    }

    .tf-hero {
        min-height: auto;
    }

    .tf-ticket__stub--poster {
        padding: 1.25rem;
    }

    .tf-ticket__stub--poster .tf-ticket__poster {
        position: static;
        display: block;
        height: auto;
        object-fit: contain;
    }

    .tf-mini__stub--poster {
        padding: 0.75rem;
    }

    .tf-mini__stub--poster .tf-ticket__poster {
        position: static;
        height: auto;
        object-fit: contain;
    }
}
