:root {
	--ink: #fff8df;
	--muted: #d9c7de;
	--night: #070914;
	--midnight: #11162b;
	--pink: #ff3eb5;
	--gold: #ffd36a;
	--gold-dark: #c66a18;
	--orange: #ff8b1f;
	--blue: #42c9ff;
	--paper: #fffaf0;
	--paper-ink: #161b2f;
	--line: rgba(255, 255, 255, 0.18);
	--shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
	display: none;
}

body {
	margin: 0;
	color: var(--ink);
	background:
		radial-gradient(circle at 18% 8%, rgba(66, 201, 255, 0.28), transparent 23rem),
		radial-gradient(circle at 82% 10%, rgba(255, 62, 181, 0.28), transparent 24rem),
		linear-gradient(180deg, #050713 0%, #161022 54%, #080912 100%);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.5;
}

body::before {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	content: "";
	background:
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 54px 54px;
	mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 76%, transparent 100%);
}

body.theme-classic,
body.theme-rail {
	--pink: var(--event-primary);
	--gold: var(--event-accent);
	--orange: var(--event-primary);
}

body.theme-rail {
	--ink: #f9ecd2;
	--muted: #d8c7a6;
	--paper: #fff4dc;
	--paper-ink: #302416;
	--line: rgba(244, 195, 106, 0.28);
	--shadow: 0 24px 90px rgba(5, 16, 11, 0.46);
	--gold-dark: #8f4f24;
	--orange: #b45f2a;
	background:
		radial-gradient(circle at 12% 10%, rgba(146, 180, 129, 0.28), transparent 24rem),
		radial-gradient(circle at 86% 8%, rgba(244, 195, 106, 0.18), transparent 25rem),
		linear-gradient(180deg, #13281f 0%, #244234 45%, #101c17 100%);
}

body.theme-classic {
	--ink: #18203f;
	--muted: #5d6680;
	--paper: #fffaf0;
	--paper-ink: #18203f;
	--line: rgba(36, 137, 199, 0.28);
	--shadow: 0 24px 70px rgba(24, 32, 63, 0.16);
	--gold-dark: #c66a18;
	--orange: var(--event-accent);
	background:
		radial-gradient(circle at 84% 10%, rgba(245, 130, 32, 0.18), transparent 21rem),
		radial-gradient(circle at 14% 8%, rgba(36, 137, 199, 0.2), transparent 24rem),
		linear-gradient(180deg, #f8fbff 0%, var(--event-background, #edf4fb) 58%, #f8fbff 100%);
}

body.theme-rail::before {
	background:
		linear-gradient(145deg, transparent 0 56%, rgba(53, 84, 58, 0.28) 56% 62%, transparent 62%),
		linear-gradient(155deg, transparent 0 48%, rgba(70, 101, 72, 0.22) 48% 55%, transparent 55%),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 72px);
	background-size: 100% 100%, 100% 100%, 72px 72px;
	mask-image: none;
}

body.theme-classic::before {
	background:
		linear-gradient(90deg, rgba(36, 137, 199, 0.055) 1px, transparent 1px),
		linear-gradient(rgba(40, 56, 143, 0.04) 1px, transparent 1px);
	background-size: 54px 54px;
	mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 78%, transparent 100%);
}

body.theme-home {
	--ink: #18203f;
	--muted: #5d6680;
	--paper-ink: #18203f;
	--line: rgba(40, 56, 143, 0.16);
	--shadow: 0 24px 70px rgba(24, 32, 63, 0.16);
	background:
		radial-gradient(circle at 84% 10%, rgba(245, 130, 32, 0.18), transparent 21rem),
		radial-gradient(circle at 14% 8%, rgba(36, 137, 199, 0.2), transparent 24rem),
		linear-gradient(180deg, #f8fbff 0%, #edf4fb 58%, #f8fbff 100%);
}

body.theme-home::before {
	display: none;
}

body.theme-home .page-shell {
	width: min(1280px, calc(100% - 48px));
	padding-top: 76px;
}

body.theme-home .site-header,
body.theme-home .page-shell > .site-footer {
	display: none;
}

a {
	color: inherit;
}

button,
input,
select {
	font: inherit;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

.page-shell {
	width: min(1160px, calc(100% - 28px));
	min-height: 100vh;
	margin: 0 auto;
	padding: 14px 0 34px;
}

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 0 0 24px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: inherit;
	text-decoration: none;
}

.brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 156px;
	height: 64px;
	flex: 0 0 auto;
	overflow: hidden;
	padding: 0 12px;
	background: #ffffff;
	border-radius: 999px;
	box-shadow: 0 0 24px rgba(255, 211, 106, 0.3);
}

.brand-logo {
	display: block;
	width: 132px;
	max-width: 100%;
	height: auto;
	transform: translate(5px, 3px);
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.site-nav a,
.nav-link {
	flex: 0 0 auto;
	padding: 9px 12px;
	color: var(--muted);
	border: 1px solid transparent;
	border-radius: 999px;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.nav-link:hover,
.nav-link:focus-visible {
	color: var(--ink);
	background: rgba(255, 255, 255, 0.08);
	border-color: var(--line);
	outline: none;
}

body.theme-home .site-nav a:hover,
body.theme-home .site-nav a:focus-visible,
body.theme-home .nav-link:hover,
body.theme-home .nav-link:focus-visible {
	background: rgba(255, 255, 255, 0.7);
}

.app-view:focus {
	outline: none;
}

.home-hero {
	margin: 0 0 44px;
}

.home-hero h1 {
	max-width: 880px;
	margin: 34px 0 16px;
	color: #28388f;
	font-size: clamp(4.8rem, 7vw, 7.2rem);
	font-weight: 425;
	line-height: 0.92;
	letter-spacing: -0.075em;
}

.home-hero h1 span {
	display: block;
}

.home-hero p {
	max-width: 900px;
	margin: 0;
	color: #4f5a79;
	font-size: clamp(1.08rem, 1.45vw, 1.34rem);
}

.hero {
	padding: 10px 0 28px;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.82fr);
	align-items: stretch;
	gap: 26px;
}

.poster-card,
.ticket-panel,
.info-card,
.sponsor-strip,
.event-card,
.state-card,
.checkin-panel,
.order-card {
	border: 1px solid rgba(255, 255, 255, 0.16);
	box-shadow: var(--shadow);
}

.poster-card {
	position: relative;
	overflow: hidden;
	min-height: 660px;
	padding: clamp(26px, 5vw, 56px);
	background:
		linear-gradient(90deg, rgba(255, 62, 181, 0.18), transparent 18%, transparent 82%, rgba(255, 62, 181, 0.2)),
		radial-gradient(circle at 50% 18%, rgba(255, 211, 106, 0.24), transparent 20rem),
		linear-gradient(180deg, #070814 0%, #171022 100%);
	border-radius: 38px;
}

.poster-card::before,
.poster-card::after {
	position: absolute;
	top: 18%;
	bottom: 18%;
	width: 122px;
	content: "";
	background:
		linear-gradient(180deg, rgba(255, 211, 106, 0.92), rgba(255, 62, 181, 0.92)) padding-box,
		repeating-linear-gradient(180deg, #fff 0 8px, transparent 8px 24px) border-box;
	border: 8px solid transparent;
	border-radius: 18px;
	opacity: 0.42;
	filter: blur(0.2px);
}

.poster-card::before {
	left: -64px;
	transform: rotate(-7deg);
}

.poster-card::after {
	right: -64px;
	transform: rotate(7deg);
}

.poster-content {
	position: relative;
	z-index: 1;
	display: grid;
	min-height: 100%;
	align-content: center;
	text-align: center;
}

.eyebrow {
	margin: 0 0 12px;
	color: var(--pink);
	font-size: 0.78rem;
	font-weight: 950;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-shadow: 0 0 16px rgba(255, 62, 181, 0.75);
}

.presenter {
	margin-bottom: 20px;
	color: #f5f1ff;
	font-size: clamp(1.45rem, 3vw, 2.35rem);
	font-weight: 950;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.presenter span {
	display: block;
	color: var(--pink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 0.72em;
	font-style: italic;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

.poster-title {
	margin: 0;
	width: 100%;
	font-size: clamp(3.1rem, 6.6vw, 5.85rem);
	font-weight: 950;
	line-height: 0.86;
	letter-spacing: -0.04em;
	text-transform: uppercase;
}

.title-line {
	display: block;
	white-space: nowrap;
	color: #fff7cf;
	text-shadow:
		0 2px 0 #a04217,
		0 5px 0 #581b25,
		0 0 24px rgba(255, 211, 106, 0.62),
		0 0 42px rgba(255, 139, 31, 0.48);
	-webkit-text-stroke: 1px rgba(255, 139, 31, 0.76);
}

.title-on,
.title-badge {
	display: inline-grid;
	width: min(34vw, 180px);
	height: min(34vw, 180px);
	max-width: 180px;
	max-height: 180px;
	margin: 2px auto 8px;
	place-items: center;
	color: var(--pink);
	border: 5px solid var(--pink);
	border-radius: 50%;
	font-size: clamp(2rem, 7vw, 4.6rem);
	letter-spacing: -0.04em;
	text-shadow: 0 0 18px rgba(255, 62, 181, 0.92);
	box-shadow: inset 0 0 20px rgba(255, 62, 181, 0.35), 0 0 26px rgba(255, 62, 181, 0.42);
	-webkit-text-stroke: 0;
}

.hero-subtitle {
	max-width: 660px;
	margin: 22px auto 0;
	color: var(--muted);
	font-size: clamp(1.05rem, 2vw, 1.34rem);
}

.event-strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin-top: 34px;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.68);
	border: 2px solid var(--pink);
	border-radius: 24px;
	box-shadow: 0 0 24px rgba(255, 62, 181, 0.42);
}

.event-strip div {
	padding: 18px 12px;
	border-left: 1px solid rgba(255, 211, 106, 0.45);
}

.event-strip div:first-child {
	border-left: 0;
}

.event-strip span {
	display: block;
	color: var(--gold);
	font-size: 0.78rem;
	font-weight: 950;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.event-strip strong {
	display: block;
	margin-top: 6px;
	color: #ffffff;
	font-size: clamp(1rem, 2vw, 1.34rem);
	line-height: 1.05;
}

.hero-side {
	display: grid;
	align-content: stretch;
	gap: 18px;
}

.ticket-panel {
	padding: 26px;
	color: var(--paper-ink);
	background: rgba(255, 250, 240, 0.96);
	border-radius: 30px;
}

.ticket-panel .eyebrow,
body.theme-home .eyebrow {
	color: var(--gold-dark);
	text-shadow: none;
}

.ticket-panel h2,
.state-card h1,
.venue-copy h2 {
	margin-bottom: 12px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.2rem, 5vw, 3.9rem);
	line-height: 0.96;
	letter-spacing: -0.06em;
}

.ticket-note,
.stub-disclaimer,
.checkout-result p,
.site-footer p {
	color: #5a6172;
}

.ticket-form {
	display: block;
	margin-top: 22px;
}

.ticket-row,
.total-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding-bottom: 18px;
	margin-bottom: 18px;
	border-bottom: 1px solid rgba(22, 32, 51, 0.14);
}

.ticket-row > div:first-child {
	min-width: 0;
	flex: 1 1 16rem;
}

.ticket-price {
	flex: 0 0 auto;
	font-weight: 950;
	color: var(--primary);
	white-space: nowrap;
}

.ticket-row label {
	display: block;
	margin-bottom: 4px;
	font-weight: 900;
}

.ticket-row p {
	margin-bottom: 0;
	color: #6c7280;
	overflow-wrap: anywhere;
}

.quantity-control {
	display: inline-grid;
	flex: 0 0 auto;
	grid-template-columns: 44px 76px 44px;
	align-items: center;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid rgba(22, 32, 51, 0.16);
	border-radius: 999px;
}

.quantity-button,
.quantity-control input {
	height: 46px;
	border: 0;
	background: transparent;
	font: inherit;
	font-weight: 950;
	text-align: center;
}

.quantity-button {
	color: var(--pink);
	cursor: pointer;
}

.quantity-button:hover,
.quantity-button:focus-visible {
	background: rgba(255, 62, 181, 0.1);
	outline: none;
}

.quantity-control input {
	width: 76px;
	border-inline: 1px solid rgba(22, 32, 51, 0.14);
	appearance: textfield;
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
	margin: 0;
	appearance: none;
}

.total-row {
	font-size: 1.1rem;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 14px 22px;
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-weight: 950;
	text-decoration: none;
	cursor: pointer;
	transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.button:hover,
.button:focus-visible {
	transform: translateY(-1px);
	outline: none;
}

.button-primary,
.button:not(.button-secondary):not(.secondary) {
	color: #ffffff;
	background: linear-gradient(135deg, var(--pink), var(--orange));
	box-shadow: 0 14px 34px rgba(255, 62, 181, 0.24);
}

.button-secondary,
.button.secondary {
	color: var(--ink);
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--line);
}

.ticket-panel .button-secondary,
.ticket-panel .button.secondary {
	color: var(--paper-ink);
	background: #ffffff;
}

.button-full {
	width: 100%;
}

.button.danger {
	background: linear-gradient(135deg, #9f263a, #611524);
}

.button[disabled] {
	cursor: wait;
	opacity: 0.72;
	transform: none;
}

.stub-disclaimer {
	margin: 12px 0 0;
	font-size: 0.88rem;
	text-align: center;
}

.checkout-result,
.message {
	padding: 18px;
	margin-top: 18px;
	color: var(--paper-ink);
	background: #fff6df;
	border: 1px solid rgba(198, 106, 24, 0.26);
	border-radius: 18px;
}

.checkout-result strong,
.message strong {
	display: block;
	margin-bottom: 6px;
}

.checkout-result[hidden],
.message[hidden] {
	display: none;
}

.info-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	padding: 6px 0 28px;
}

.info-card {
	padding: 22px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 22px;
	backdrop-filter: blur(10px);
}

.info-card span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-bottom: 14px;
	color: #111;
	background: var(--gold);
	border-radius: 50%;
	font-weight: 950;
}

.info-card h3 {
	margin-bottom: 8px;
	color: #ffffff;
}

.info-card p {
	color: #cfc8de;
}

.venue-panel,
.section-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
	gap: 18px;
	padding: 6px 0 28px;
}

.state-card + .section-grid {
	padding-top: 28px;
}

.venue-copy,
.map-card,
.checkin-panel,
.order-card {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 24px;
	box-shadow: var(--shadow);
	backdrop-filter: blur(10px);
}

.venue-copy,
.checkin-panel,
.order-card {
	display: grid;
	align-content: start;
	gap: 16px;
	padding: 24px;
}

.venue-copy h2,
.checkin-panel h2,
.order-card h2 {
	color: #ffffff;
}

.venue-copy p,
.checkin-panel p,
.order-card p {
	margin: 0;
	color: var(--muted);
}

.venue-actions,
.button-row,
.checkin-actions,
.result-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.map-card {
	overflow: hidden;
	min-height: 300px;
}

.map-card iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 300px;
	border: 0;
}

.map-placeholder {
	display: grid;
	min-height: 300px;
	place-items: center;
	padding: 28px;
	color: var(--muted);
	text-align: center;
}

.sponsor-strip {
	padding: 20px 22px;
	margin: 6px 0 12px;
	color: var(--paper-ink);
	background: rgba(255, 250, 240, 0.96);
	border-radius: 24px;
}

.sponsor-heading {
	margin: 0 0 14px;
	color: #6c7280;
	font-size: 0.78rem;
	font-weight: 950;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.sponsor-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
	align-items: center;
}

.sponsor-logo-card {
	display: grid;
	min-height: 76px;
	place-items: center;
	padding: 10px 12px;
	background: #ffffff;
	border: 1px solid rgba(22, 32, 51, 0.1);
	border-radius: 18px;
}

.sponsor-logo-card img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 54px;
	object-fit: contain;
}

.event-grid,
.detail-grid,
.checkin-grid {
	display: grid;
	gap: 18px;
}

.event-grid {
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	margin-top: 18px;
}

body.theme-home .event-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: 0;
}

.event-card,
.state-card {
	display: grid;
	gap: 14px;
	padding: 24px;
	color: var(--paper-ink);
	background: rgba(255, 255, 255, 0.92);
	border-radius: 28px;
	text-decoration: none;
}

.event-card {
	position: relative;
	overflow: hidden;
	transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

body.theme-home .event-card {
	min-height: 198px;
	align-content: center;
	gap: 13px;
	padding: 22px 28px;
	background: rgba(255, 255, 255, 0.92);
	border-color: rgba(40, 56, 143, 0.16);
}

body.theme-home .event-card.theme-rail {
	background:
		radial-gradient(circle at 88% 8%, rgba(244, 195, 106, 0.2), transparent 16rem),
		rgba(255, 246, 220, 0.88);
	border-color: rgba(199, 139, 63, 0.28);
}

.event-card::before {
	position: absolute;
	inset: 0 auto 0 0;
	width: 8px;
	content: "";
	background: linear-gradient(180deg, var(--event-accent, var(--gold)), var(--event-primary, var(--pink)));
}

body.theme-home .event-card.theme-broadway::before {
	background: linear-gradient(180deg, #f58220 0%, #2489c7 56%, #28388f 100%);
}

body.theme-home .event-card.theme-rail::before {
	background: linear-gradient(180deg, #28388f 0%, #2489c7 100%);
}

.event-card:hover,
.event-card:focus-visible {
	transform: translateY(-2px);
	outline: 2px solid rgba(245, 130, 32, 0.45);
	outline-offset: 3px;
}

.event-card.sold-out {
	opacity: 0.78;
}

.event-card h2 {
	margin: 0;
	color: var(--event-primary, #28388f);
	font-size: 1.6rem;
	line-height: 1.1;
}

body.theme-home .event-card h2 {
	color: #28388f;
	font-size: clamp(1.7rem, 2vw, 2rem);
}

body.theme-home .event-card p:not(.eyebrow) {
	color: #4f5a79;
	font-size: 1.08rem;
}

.meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.meta-row span {
	padding: 6px 10px;
	color: var(--event-primary, #28388f);
	background: #f3f7fc;
	border: 1px solid rgba(36, 137, 199, 0.16);
	border-radius: 999px;
	font-weight: 800;
}

body.theme-home .meta-row span {
	color: #28388f;
	background: rgba(255, 255, 255, 0.54);
	border-color: rgba(36, 137, 199, 0.18);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.68) inset;
}

.state-card {
	padding: clamp(28px, 6vw, 56px);
}

.state-card .eyebrow {
	color: #8d235f;
	text-shadow: none;
}

.state-card .lead {
	max-width: 720px;
	color: #5a6172;
	font-size: 1.14rem;
}

.availability-note {
	padding: 12px 14px;
	color: #3f4658;
	background: rgba(36, 137, 199, 0.08);
	border: 1px solid rgba(36, 137, 199, 0.18);
	border-radius: 16px;
	font-weight: 800;
}

.availability-note.sold-out {
	color: #7c1f30;
	background: rgba(159, 38, 58, 0.08);
	border-color: rgba(159, 38, 58, 0.22);
}

.state-card .checkout-result,
.state-card .message {
	color: var(--paper-ink);
	background: #ffffff;
	border-color: rgba(22, 32, 51, 0.18);
	box-shadow: 0 10px 28px rgba(22, 32, 51, 0.08);
}

.state-card .checkout-result p,
.state-card .message p {
	color: #3f4658;
}

.state-card .button-secondary,
.state-card .button.secondary {
	color: var(--paper-ink);
	background: #ffffff;
	border-color: rgba(22, 32, 51, 0.18);
	box-shadow: 0 10px 28px rgba(22, 32, 51, 0.08);
}

.state-card .button-secondary:hover,
.state-card .button-secondary:focus-visible,
.state-card .button.secondary:hover,
.state-card .button.secondary:focus-visible {
	background: #f4f7fb;
}

.checkin-form {
	display: grid;
	gap: 14px;
}

.field {
	display: grid;
	gap: 6px;
}

.field label {
	font-weight: 850;
}

.field input,
.field select {
	width: 100%;
	padding: 12px 14px;
	color: var(--paper-ink);
	background: #ffffff;
	border: 1px solid rgba(22, 32, 51, 0.16);
	border-radius: 16px;
}

.field small {
	color: #687084;
}

.checkbox-field {
	align-content: center;
	padding: 12px 0;
}

.checkbox-field label {
	display: flex;
	align-items: center;
	gap: 10px;
}

.checkbox-field input {
	width: auto;
}

.admin-dashboard {
	display: grid;
	gap: 18px;
	margin-top: 28px;
}

.dashboard-hero {
	margin-bottom: 22px;
}

.dashboard-layout {
	display: grid;
	grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
	gap: 18px;
	align-items: start;
}

.dashboard-sidebar,
.dashboard-editor {
	color: var(--paper-ink);
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(22, 32, 51, 0.16);
	border-radius: 24px;
	box-shadow: var(--shadow);
}

.dashboard-sidebar {
	display: grid;
	gap: 14px;
	padding: 20px;
}

.dashboard-sidebar h2,
.dashboard-editor h2 {
	margin: 0;
	color: var(--paper-ink);
}

.dashboard-event-list {
	display: grid;
	gap: 10px;
}

.dashboard-event-button {
	display: grid;
	gap: 4px;
	width: 100%;
	padding: 14px;
	color: var(--paper-ink);
	background: #ffffff;
	border: 1px solid rgba(22, 32, 51, 0.14);
	border-radius: 16px;
	text-align: left;
	cursor: pointer;
}

.dashboard-event-button:hover,
.dashboard-event-button:focus-visible,
.dashboard-event-button.selected {
	background: #f3f7fc;
	border-color: rgba(36, 137, 199, 0.32);
	outline: none;
}

.dashboard-event-button span,
.dashboard-event-button small,
.muted {
	color: #626b7e;
}

.dashboard-editor {
	padding: 24px;
}

.dashboard-form {
	display: grid;
	gap: 20px;
}

.dashboard-editor-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
}

.dashboard-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.dashboard-ticket-fieldset {
	display: grid;
	gap: 14px;
	padding: 18px;
	border: 1px solid rgba(22, 32, 51, 0.16);
	border-radius: 20px;
}

.dashboard-ticket-fieldset legend {
	padding: 0 8px;
	font-weight: 950;
}

.dashboard-ticket-types {
	display: grid;
	gap: 16px;
}

.dashboard-ticket-type {
	display: grid;
	gap: 12px;
	padding: 14px;
	background: #f8fafc;
	border: 1px solid rgba(22, 32, 51, 0.12);
	border-radius: 16px;
}

.dashboard-ticket-type-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.dashboard-ticket-type-header h3 {
	margin: 0;
	font-size: 1rem;
}

.admin-summary-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.admin-summary-card {
	display: grid;
	gap: 8px;
	padding: 18px;
	color: var(--paper-ink);
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(22, 32, 51, 0.16);
	border-radius: 20px;
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.admin-summary-card span {
	color: #5a6172;
	font-size: 0.82rem;
	font-weight: 900;
	text-transform: uppercase;
}

.admin-summary-card strong {
	font-size: clamp(1.7rem, 3vw, 2.4rem);
	line-height: 1;
}

.admin-summary-card p {
	margin: 0;
	color: #4f5668;
	font-size: 0.9rem;
}

.admin-table-wrap {
	overflow-x: auto;
	color: var(--paper-ink);
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(22, 32, 51, 0.16);
	border-radius: 22px;
	box-shadow: var(--shadow);
}

.admin-table {
	width: 100%;
	min-width: 1100px;
	border-collapse: collapse;
	font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
	padding: 12px 14px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid rgba(22, 32, 51, 0.1);
}

.admin-table th {
	color: #4a5266;
	background: #f5f7fb;
	font-size: 0.78rem;
	font-weight: 950;
	text-transform: uppercase;
	white-space: nowrap;
}

.admin-table tr:last-child td {
	border-bottom: 0;
}

.admin-table td small {
	display: block;
	margin-top: 6px;
	color: #606879;
	line-height: 1.35;
}

.status-pill {
	display: inline-flex;
	width: fit-content;
	padding: 6px 10px;
	color: #ffffff;
	background: #28388f;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 900;
	text-transform: uppercase;
}

.status-pill.valid,
.status-pill.checked_in {
	background: #177245;
}

.status-pill.pending {
	background: #8a6514;
}

.status-pill.refunded,
.status-pill.cancelled,
.status-pill.not_found,
.status-pill.wrong_event,
.status-pill.already_checked_in {
	background: #9f263a;
}

.qr-reader {
	overflow: hidden;
	background: rgba(255, 255, 255, 0.08);
	border: 1px dashed var(--line);
	border-radius: 22px;
}

.qr-reader video {
	border-radius: 18px;
}

.site-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 24px 0 0;
	color: var(--muted);
	font-size: 0.92rem;
}

.site-footer strong {
	color: #ffffff;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.footer-links a {
	font-weight: 800;
	text-decoration: none;
}

body.theme-classic .brand-mark {
	box-shadow: 0 0 28px rgba(245, 130, 32, 0.24);
}

body.theme-classic .poster-card {
	background:
		radial-gradient(circle at 86% 10%, rgba(245, 130, 32, 0.16), transparent 18rem),
		radial-gradient(circle at 12% 12%, rgba(36, 137, 199, 0.18), transparent 19rem),
		linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.98) 54%, rgba(255, 246, 229, 0.98));
	border-color: rgba(36, 137, 199, 0.2);
	box-shadow: 0 24px 70px rgba(24, 32, 63, 0.14);
}

body.theme-classic .poster-card::before {
	top: -56px;
	right: -44px;
	bottom: auto;
	left: auto;
	width: 250px;
	height: 250px;
	background:
		radial-gradient(ellipse at 58% 48%, rgba(255, 248, 222, 0.98) 0 20%, rgba(247, 180, 77, 0.95) 21% 32%, rgba(199, 106, 24, 0.78) 33% 37%, transparent 38%),
		radial-gradient(ellipse at 54% 50%, transparent 0 51%, rgba(245, 130, 32, 0.32) 52% 57%, transparent 58%),
		linear-gradient(145deg, transparent 0 52%, rgba(202, 132, 42, 0.52) 53% 61%, transparent 62%),
		repeating-conic-gradient(from 18deg at 54% 50%, rgba(245, 130, 32, 0.28) 0 4deg, transparent 4deg 16deg);
	border: 0;
	border-radius: 50%;
	filter: blur(0.2px);
	opacity: 0.72;
	transform: none;
}

body.theme-classic .poster-card::after {
	top: auto;
	right: auto;
	bottom: 8%;
	left: -9%;
	width: 74%;
	height: 170px;
	background:
		radial-gradient(ellipse at 14% 50%, transparent 0 26%, rgba(245, 130, 32, 0.68) 27% 31%, transparent 32%),
		radial-gradient(ellipse at 30% 50%, transparent 0 35%, rgba(36, 137, 199, 0.58) 36% 39%, transparent 40%),
		linear-gradient(176deg, transparent 0 31%, rgba(202, 132, 42, 0.58) 32% 37%, transparent 38%),
		linear-gradient(176deg, transparent 0 47%, rgba(245, 130, 32, 0.5) 48% 53%, transparent 54%),
		linear-gradient(176deg, transparent 0 63%, rgba(40, 56, 143, 0.44) 64% 68%, transparent 69%);
	border: 0;
	border-radius: 0;
	filter: none;
	opacity: 0.46;
	transform: rotate(-8deg);
}

body.theme-classic .presenter {
	color: var(--event-primary);
	font-size: clamp(1.15rem, 2.2vw, 1.85rem);
	letter-spacing: 0.06em;
	overflow-wrap: anywhere;
	text-shadow: none;
}

body.theme-classic .presenter span {
	color: var(--event-accent);
}

body.theme-classic .poster-title {
	font-size: clamp(2.65rem, 5.45vw, 4.95rem);
	line-height: 0.92;
	letter-spacing: -0.035em;
}

body.theme-classic .title-line {
	color: var(--event-primary);
	text-shadow:
		0 3px 0 rgba(245, 130, 32, 0.42),
		0 10px 28px rgba(24, 32, 63, 0.14);
	-webkit-text-stroke: 0;
	overflow-wrap: anywhere;
	white-space: normal;
}

body.theme-classic .hero-subtitle {
	color: #5d6680;
}

body.theme-classic .event-strip {
	background: rgba(255, 255, 255, 0.88);
	border-color: rgba(36, 137, 199, 0.28);
	box-shadow: 0 18px 44px rgba(24, 32, 63, 0.12);
}

body.theme-classic .event-strip div {
	min-width: 0;
	border-left-color: rgba(245, 130, 32, 0.36);
}

body.theme-classic .event-strip span {
	color: #ffb45c;
}

body.theme-classic .event-strip strong {
	color: var(--event-primary);
	overflow-wrap: break-word;
}

body.theme-classic .ticket-panel,
body.theme-classic .sponsor-strip {
	background: rgba(255, 250, 240, 0.97);
	border-color: rgba(36, 137, 199, 0.2);
}

body.theme-classic .ticket-panel h2,
body.theme-classic .state-card h1 {
	color: var(--paper-ink);
}

body.theme-classic .ticket-panel .eyebrow,
body.theme-classic .state-card .eyebrow {
	color: var(--event-accent);
	text-shadow: none;
}

body.theme-classic .checkout-result,
body.theme-classic .message {
	background: #fff4e9;
	border-color: rgba(245, 130, 32, 0.28);
}

body.theme-classic .info-card,
body.theme-classic .venue-copy,
body.theme-classic .map-card,
body.theme-classic .checkin-panel,
body.theme-classic .order-card {
	background: rgba(255, 255, 255, 0.88);
	border-color: rgba(36, 137, 199, 0.18);
	box-shadow: 0 18px 52px rgba(24, 32, 63, 0.12);
}

body.theme-classic .info-card span {
	color: #17203f;
	background: #ffc05a;
}

body.theme-classic .info-card h3,
body.theme-classic .venue-copy h2,
body.theme-classic .order-card h2,
body.theme-classic .site-footer strong {
	color: var(--event-primary);
}

body.theme-classic .info-card p,
body.theme-classic .venue-copy p,
body.theme-classic .order-card p,
body.theme-classic .site-footer p {
	color: #5d6680;
}

body.theme-rail .brand-mark {
	box-shadow: 0 0 28px rgba(244, 195, 106, 0.28);
}

body.theme-rail .poster-card {
	background:
		radial-gradient(circle at 50% 8%, rgba(244, 195, 106, 0.24), transparent 18rem),
		linear-gradient(180deg, rgba(28, 74, 53, 0.86), rgba(16, 34, 29, 0.94)),
		repeating-linear-gradient(90deg, rgba(116, 74, 42, 0.24) 0 14px, rgba(65, 39, 24, 0.18) 14px 28px);
	border-color: rgba(244, 195, 106, 0.34);
}

body.theme-rail .poster-card::before {
	top: 10%;
	right: 10%;
	bottom: auto;
	left: 10%;
	width: auto;
	height: 230px;
	background:
		radial-gradient(circle at 24% 58%, rgba(255, 255, 255, 0.26), transparent 4.8rem),
		radial-gradient(circle at 44% 38%, rgba(255, 255, 255, 0.22), transparent 5.8rem),
		radial-gradient(circle at 62% 54%, rgba(255, 255, 255, 0.18), transparent 5.2rem);
	border: 0;
	border-radius: 50%;
	filter: blur(2px);
	opacity: 0.5;
	transform: none;
}

body.theme-rail .poster-card::after {
	top: auto;
	right: 0;
	bottom: 0;
	left: 0;
	width: auto;
	height: 170px;
	background:
		linear-gradient(80deg, transparent 0 45%, rgba(39, 25, 16, 0.8) 45% 46%, transparent 46% 54%, rgba(39, 25, 16, 0.8) 54% 55%, transparent 55%),
		repeating-linear-gradient(90deg, transparent 0 34px, rgba(112, 69, 37, 0.9) 34px 50px, transparent 50px 78px);
	border: 0;
	border-radius: 0;
	filter: none;
	opacity: 0.7;
	transform: none;
}

body.theme-rail .presenter {
	margin-bottom: 16px;
	color: #f2dfb7;
	font-size: clamp(1.25rem, 2.4vw, 1.9rem);
	letter-spacing: 0.06em;
}

body.theme-rail .presenter span {
	color: var(--gold);
}

body.theme-rail .title-line {
	color: #f8e5b8;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(3rem, 5.2vw, 4.85rem);
	line-height: 0.9;
	letter-spacing: -0.06em;
	text-shadow:
		0 2px 0 #58351e,
		0 8px 24px rgba(5, 16, 11, 0.74),
		0 0 34px rgba(244, 195, 106, 0.28);
	-webkit-text-stroke: 0;
	white-space: normal;
}

body.theme-rail .hero-subtitle {
	max-width: min(100%, 560px);
	font-size: clamp(1rem, 1.7vw, 1.18rem);
}

body.theme-rail .event-strip {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) minmax(0, 0.84fr);
	margin-top: 28px;
	background: rgba(24, 36, 28, 0.86);
	border-color: rgba(244, 195, 106, 0.82);
	box-shadow: 0 20px 54px rgba(5, 16, 11, 0.38);
}

body.theme-rail .event-strip div {
	min-width: 0;
	padding: 16px 10px;
	border-left-color: rgba(244, 195, 106, 0.32);
}

body.theme-rail .event-strip strong {
	overflow-wrap: break-word;
	font-size: clamp(0.95rem, 1.55vw, 1.14rem);
}

body.theme-rail .event-strip strong,
body.theme-rail .info-card h3,
body.theme-rail .venue-copy h2,
body.theme-rail .site-footer strong {
	color: #fff1cc;
}

body.theme-rail .ticket-panel,
body.theme-rail .sponsor-strip {
	background: rgba(255, 244, 220, 0.96);
	border-color: rgba(143, 79, 36, 0.22);
}

body.theme-rail .ticket-note,
body.theme-rail .stub-disclaimer,
body.theme-rail .checkout-result p,
body.theme-rail .site-footer p {
	color: #5f513f;
}

body.theme-rail .quantity-button {
	color: var(--event-primary);
}

body.theme-rail .quantity-button:hover,
body.theme-rail .quantity-button:focus-visible {
	background: rgba(159, 75, 35, 0.12);
}

body.theme-rail .button-primary,
body.theme-rail .button:not(.button-secondary):not(.secondary) {
	background: linear-gradient(135deg, #9f4b23, #d08a3f);
	box-shadow: 0 14px 34px rgba(61, 35, 18, 0.28);
}

body.theme-rail .button-secondary,
body.theme-rail .button.secondary {
	color: #f8e5b8;
	background: rgba(244, 195, 106, 0.1);
	border-color: rgba(244, 195, 106, 0.32);
}

body.theme-rail .ticket-panel .button-secondary,
body.theme-rail .ticket-panel .button.secondary {
	color: var(--paper-ink);
	background: #ffffff;
}

body.theme-rail .checkout-result,
body.theme-rail .message {
	background: #fff1cc;
	border-color: rgba(143, 79, 36, 0.3);
}

body.theme-rail .info-card,
body.theme-rail .venue-copy,
body.theme-rail .map-card,
body.theme-rail .checkin-panel,
body.theme-rail .order-card {
	background: rgba(15, 32, 25, 0.68);
	border-color: rgba(244, 195, 106, 0.24);
}

body.theme-rail .info-card span {
	color: #2c2116;
	background: var(--gold);
}

body.theme-rail .info-card p {
	color: var(--muted);
}

.noscript-card {
	position: fixed;
	inset: 20px;
	z-index: 10;
	display: grid;
	place-content: center;
	padding: 24px;
	color: var(--paper-ink);
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 24px;
	box-shadow: var(--shadow);
}

@media (max-width: 900px) {
	.hero-grid,
	.info-grid,
	.venue-panel,
	.section-grid,
	.sponsor-grid,
	.dashboard-layout {
		grid-template-columns: 1fr;
	}

	.admin-summary-grid,
	.dashboard-form-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.poster-card {
		min-height: 560px;
	}
}

@media (max-width: 640px) {
	.page-shell {
		width: min(100% - 18px, 1160px);
	}

	.site-header,
	.site-footer {
		align-items: flex-start;
		flex-direction: column;
	}

	.site-nav {
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 6px;
		padding-bottom: 4px;
		scrollbar-width: none;
	}

	.site-nav::-webkit-scrollbar {
		display: none;
	}

	.site-nav a {
		padding: 8px 10px;
		font-size: 0.94rem;
	}

	body.theme-home .page-shell {
		width: min(100% - 32px, 1280px);
		padding-top: 38px;
	}

	.home-hero h1 {
		font-size: clamp(3.7rem, 16vw, 5.4rem);
	}

	body.theme-home .event-grid {
		grid-template-columns: 1fr;
	}

	.admin-summary-grid,
	.dashboard-form-grid {
		grid-template-columns: 1fr;
	}

	.dashboard-editor-header {
		flex-direction: column;
	}

	.poster-card,
	.ticket-panel,
	.info-card,
	.venue-copy,
	.map-card,
	.checkin-panel,
	.dashboard-sidebar,
	.dashboard-editor,
	.order-card,
	.event-card,
	.sponsor-strip {
		border-radius: 24px;
	}

	.poster-card {
		min-height: auto;
		padding: 28px 18px;
	}

	.poster-card::before,
	.poster-card::after {
		display: none;
	}

	.event-strip,
	.ticket-row,
	.total-row {
		grid-template-columns: 1fr;
	}

	.event-strip div {
		border-top: 1px solid rgba(255, 211, 106, 0.35);
		border-left: 0;
	}

	.event-strip div:first-child {
		border-top: 0;
	}

	.ticket-row,
	.total-row {
		align-items: flex-start;
		flex-direction: column;
	}
}
