@font-face {
	font-family: "EP Cormorant";
	src: url("../fonts/CormorantGaramond-VariableFont_wght.ttf") format("truetype-variations");
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
}

/* Archive overrides (after base card rules) */
body.post-type-archive-ep_event { background: #080807; }
.ep-events-page { min-height: 100vh; padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 72px) 100px; background: radial-gradient(circle at 80% 0%, rgba(153,111,35,.18), transparent 38%), #080807; color: var(--ep-text); font-family: var(--ep-ui); }
.ep-events-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; width: min(1480px, calc(100% - 48px)); margin: 0 auto clamp(48px, 7vw, 84px); padding-bottom: 34px; border-bottom: 1px solid rgba(201,154,59,.32); }
.ep-events-hero > div:first-child { flex: 1 1 auto; min-width: 0; }
.ep-events-hero h1 { margin: 0 0 14px; color: #fff; font-family: var(--ep-display); font-size: clamp(48px, 7vw, 86px); font-weight: 400; letter-spacing: -.04em; line-height: .9; }
.ep-events-hero p:not(.ep-kicker) { max-width: 820px; margin: 0; color: var(--ep-muted); font-size: 15px; line-height: 1.7; }
.ep-events-hero-mark { display: grid; justify-items: center; gap: 8px; min-width: 120px; color: var(--ep-accent); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.ep-events-list { width: min(1480px, calc(100% - 48px)); margin: 0 auto; }
.ep-events-list-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.ep-events-list-heading h2 { margin: 5px 0 0; color: #fff; font-family: var(--ep-display); font-size: clamp(32px, 4vw, 48px); font-weight: 400; letter-spacing: -.03em; line-height: 1; }
.ep-events-count { color: var(--ep-accent); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ep-past { opacity: .72; }
.ep-past .ep-list-cover img { filter: grayscale(.35); }
.ep-past-badge { display: inline-flex; margin-left: 9px; padding: 4px 7px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: rgba(255,255,255,.65); font-size: 8px; letter-spacing: .08em; vertical-align: middle; }
.ep-past .ep-list-footer { color: rgba(255,255,255,.55); }
.ep-list-card { border-color: rgba(201,154,59,.3); background: rgba(17,17,15,.92); box-shadow: 0 18px 42px rgba(0,0,0,.22); }
.ep-list-footer { border-top: 1px solid rgba(201,154,59,.2); }
@media (max-width: 720px) { .ep-events-page { padding: 42px 18px 72px; } .ep-events-hero { align-items: flex-start; flex-direction: column; margin-bottom: 48px; padding-bottom: 28px; } .ep-events-hero-mark { grid-template-columns: auto auto; justify-items: start; min-width: 0; } .ep-events-list-heading { align-items: flex-start; flex-direction: column; } .ep-events-grid { grid-template-columns: 1fr; gap: 18px; } .ep-list-card { grid-template-columns: 1fr; min-height: 0; } .ep-list-cover { min-height: 220px; max-height: 280px; } .ep-list-body { min-height: 260px; padding: 24px; } }

/* Public event archive */
body.post-type-archive-ep_event { background: #080807; }
.ep-events-page { min-height: 100vh; padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 72px) 100px; background: radial-gradient(circle at 80% 0%, rgba(153,111,35,.18), transparent 38%), #080807; color: var(--ep-text); font-family: var(--ep-ui); }
.ep-events-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; width: min(1320px, 100%); margin: 0 auto clamp(48px, 7vw, 84px); padding-bottom: 34px; border-bottom: 1px solid rgba(201,154,59,.32); }
.ep-events-hero .ep-kicker { margin-bottom: 16px; }
.ep-events-hero h1 { margin: 0 0 14px; color: #fff; font-family: var(--ep-display); font-size: clamp(48px, 7vw, 86px); font-weight: 400; letter-spacing: -.04em; line-height: .9; }
.ep-events-hero p:not(.ep-kicker) { max-width: 560px; margin: 0; color: var(--ep-muted); font-size: 15px; line-height: 1.7; }
.ep-events-hero-mark { display: grid; justify-items: center; gap: 8px; min-width: 120px; color: var(--ep-accent); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.ep-events-list { width: min(1320px, 100%); margin: 0 auto; }
.ep-events-list-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.ep-events-list-heading h2 { margin: 5px 0 0; color: #fff; font-family: var(--ep-display); font-size: clamp(32px, 4vw, 48px); font-weight: 400; letter-spacing: -.03em; line-height: 1; }
.ep-events-count { color: var(--ep-accent); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ep-events-page .ep-list-card { border-color: rgba(201,154,59,.3); background: rgba(17,17,15,.92); box-shadow: 0 18px 42px rgba(0,0,0,.22); }
.ep-events-page .ep-list-body > p:not(.ep-kicker) { display: flex; align-items: center; gap: 7px; }
.ep-list-body > p:not(.ep-kicker)::before { content: ""; display: inline-block; width: 6px; height: 6px; border: 1px solid var(--ep-accent); border-radius: 50%; }
.ep-events-page .ep-list-card h3 { font-size: clamp(30px, 3vw, 43px); }
.ep-events-page .ep-list-footer { border-top: 1px solid rgba(201,154,59,.2); }
@media (max-width: 720px) { .ep-events-page { padding: 42px 18px 72px; } .ep-events-hero { align-items: flex-start; flex-direction: column; margin-bottom: 48px; padding-bottom: 28px; } .ep-events-hero-mark { grid-template-columns: auto auto; justify-items: start; min-width: 0; } .ep-events-list-heading { align-items: flex-start; flex-direction: column; } .ep-events-grid { grid-template-columns: 1fr; gap: 18px; } .ep-list-card { grid-template-columns: 1fr; min-height: 0; } .ep-list-cover { min-height: 220px; max-height: 280px; } .ep-list-body { min-height: 260px; padding: 24px; } }

@font-face {
	font-family: "EP Montserrat";
	src: url("../fonts/Montserrat-VariableFont_wght.ttf") format("truetype-variations");
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
}

:root {
	--ep-primary: #996f23;
	--ep-accent: #c99a3b;
	--ep-bg: #070707;
	--ep-surface: #11110f;
	--ep-surface-soft: #191814;
	--ep-text: #f7f4ed;
	--ep-muted: #c5c0b6;
	--ep-line: rgba(201, 154, 59, 0.38);
	--ep-danger: #d45b52;
	--ep-success: #3e9862;
	--ep-radius: 16px;
	--ep-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
	--ep-display: "EP Cormorant", "Cormorant Garamond", Georgia, serif;
	--ep-ui: "EP Montserrat", Montserrat, Arial, sans-serif;
}

html:has(body.single-ep_event),
body.single-ep_event {
	overflow-x: clip !important;
}

.ep-event-card,
.ep-event-card *,
.ep-events-grid,
.ep-events-grid *,
.ep-my-tickets,
.ep-my-tickets *,
.ep-scanner,
.ep-scanner *,
.ep-ticket-page,
.ep-ticket-page * {
	box-sizing: border-box;
}

.ep-events-back-link { position: absolute; top: 24px; left: clamp(20px, 7vw, 80px); z-index: 3; display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.78); font-family: var(--ep-ui); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: color 180ms ease, transform 180ms ease; }
.ep-events-back-link:hover { color: var(--ep-accent); transform: translateX(-2px); }
.ep-events-back-link re-icon { display: inline-flex; }
.ep-event-breadcrumb { position: absolute; top: 0; left: 0; right: 0; z-index: 3; min-height: 44px; border-bottom: 1px solid rgba(201,154,59,.24); background: rgba(5,5,5,.32); }
.ep-event-breadcrumb > div { display: flex; align-items: center; gap: 10px; width: min(calc(100% - clamp(36px, 7vw, 112px)), 1360px); min-height: 44px; margin-inline: auto; color: rgba(255,255,255,.5); font-family: var(--ep-ui); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.ep-event-breadcrumb a { display: inline-flex; align-items: center; gap: 7px; color: var(--ep-accent); font-weight: 700; text-decoration: none; }
.ep-event-breadcrumb a:hover { color: #fff; }
.ep-event-breadcrumb re-icon { display: inline-flex; }
.ep-event-breadcrumb > div > span:last-child { max-width: 36ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ep-event-card,
.ep-events-grid,
.ep-my-tickets,
.ep-scanner {
	font-family: var(--ep-ui);
}

.ep-event-card {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	width: 100vw;
	max-width: 100vw;
	min-height: 100vh;
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
	border-top: 1px solid var(--ep-primary);
	border-bottom: 1px solid var(--ep-primary);
	border-radius: 0;
	background-color: var(--ep-bg);
	background-image: var(--ep-cover);
	background-position: center;
	background-size: cover;
	color: var(--ep-text);
	box-shadow: var(--ep-shadow);
}

.ep-event-card.ep-compact {
	min-height: 100vh;
}

@media (min-width: 768px) {
	.ep-event-card,
	.ep-event-card.ep-compact { min-height: 90vh; }
}

.ep-event-overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(4, 4, 4, 0.97) 0%, rgba(4, 4, 4, 0.86) 42%, rgba(4, 4, 4, 0.35) 72%, rgba(4, 4, 4, 0.62) 100%),
		linear-gradient(0deg, rgba(4, 4, 4, 0.9), transparent 55%);
}

.ep-event-content {
	display: grid;
	grid-template-columns: minmax(500px, 1.08fr) minmax(540px, 0.92fr);
	grid-template-rows: auto auto auto auto;
	column-gap: clamp(21px, 2vw, 33px);
	align-content: center;
	align-items: start;
	min-height: inherit;
	width: min(calc(100% - clamp(36px, 7vw, 112px)), 1360px);
	margin-inline: auto;
	padding: clamp(44px, 5vw, 72px) 0;
}

.ep-event-content > .ep-kicker { grid-column: 1; grid-row: 1; }
.ep-event-content > h2 { grid-column: 1; grid-row: 2; }
.ep-event-content > .ep-event-description { grid-column: 1; grid-row: 3; }
.ep-event-content > .ep-meta-row { grid-column: 1; grid-row: 4; }
.ep-event-content > .ep-booking-form,
.ep-event-content > .ep-alert:not(.ep-booking-error) {
	grid-column: 2;
	grid-row: 1 / 5;
	align-self: center;
}

@media (min-width: 1101px) {
	.ep-event-content > .ep-booking-form {
		width: 90%;
		justify-self: start;
		align-self: stretch;
		height: 100%;
	}

	.ep-event-content > h2 { font-size: clamp(46px, 4.6vw, 51px); }
	.ep-event-description { font-size: 16px; line-height: 1.68; }
	.ep-meta-item { min-height: 63px; }
}

.ep-kicker {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
	color: var(--ep-accent);
	font-family: var(--ep-ui);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1.4;
	text-transform: uppercase;
}

.ep-kicker > span {
	display: block;
	width: 33px;
	height: 1px;
	background: var(--ep-accent);
}

.ep-event-content > h2,
.ep-scanner h2,
.ep-list-card h3,
.ep-ticket h1 {
	font-family: var(--ep-display);
	font-weight: 400;
	letter-spacing: -0.025em;
}

.ep-event-content > h2 {
	max-width: none;
	margin: 0 0 40px;
	color: var(--ep-text);
	font-size: clamp(40px, 4vw, 44px);
	line-height: 0.98;
}

.ep-event-description {
	width: 100%;
	margin: 0 0 24px;
	color: rgba(255, 255, 255, 0.78);
	font-family: var(--ep-ui);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.65;
	text-align: justify;
	text-justify: inter-word;
}

.ep-event-description__content {
	position: relative;
	max-height: 6.6em;
	overflow: hidden;
}

.ep-event-description.has-overflow:not(.is-expanded) .ep-event-description__content {
	-webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

.ep-event-description.is-expanded .ep-event-description__content,
.ep-event-description.is-ready:not(.has-overflow) .ep-event-description__content {
	max-height: none;
	-webkit-mask-image: none;
	mask-image: none;
}

.ep-description-toggle {
	display: none;
	align-items: center;
	gap: 6px;
	width: auto !important;
	min-width: 0 !important;
	min-height: 30px;
	margin: 8px 0 0;
	padding: 3px 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--ep-accent) !important;
	font-family: var(--ep-ui);
	font-size: 12px;
	font-weight: 750;
	line-height: 1;
	cursor: pointer;
}

.ep-event-description.is-ready.has-overflow .ep-description-toggle { display: inline-flex; }
.ep-description-toggle:hover { background: transparent !important; color: #e0b65f !important; }
.ep-description-toggle:focus-visible { border-radius: 3px; outline: 2px solid var(--ep-accent); outline-offset: 3px; }
.ep-description-toggle re-icon { transition: transform 180ms ease; }
.ep-event-description.is-expanded .ep-description-toggle re-icon { transform: rotate(180deg); }
.ep-description-toggle:active { transform: translateY(1px); }

.ep-event-description > :first-child { margin-top: 0; }
.ep-event-description > :last-child { margin-bottom: 0; }
.ep-event-description p { margin: 0 0 12px; }
.ep-event-description h2,
.ep-event-description h3 {
	margin: 20px 0 10px !important;
	color: var(--ep-text);
	font-family: var(--ep-display);
	font-size: 26px;
	font-weight: 400;
	line-height: 1.1;
}

.ep-meta-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	width: 100%;
	margin: 4px 0 0;
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, 0.11);
	border-radius: 12px;
	background: rgba(7, 7, 7, 0.42);
	backdrop-filter: blur(10px);
}

.ep-meta-item {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	min-width: 0;
	min-height: 55px;
	padding: 9px 0;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 0;
	background: transparent;
}

.ep-meta-item:last-child { border-bottom: 0; }

.ep-meta-item > span {
	display: grid;
	gap: 2px;
}

.ep-meta-item > re-icon,
.ep-meta-item > .ep-reicon {
	display: grid;
	width: 32px;
	height: 32px;
	box-sizing: border-box;
	place-items: center;
	border: 1px solid rgba(201, 154, 59, 0.34);
	border-radius: 9px;
	background: rgba(153, 111, 35, 0.12);
}

.ep-meta-item > .ep-reicon {
	width: 30px !important;
	height: 30px !important;
	padding: 6px !important;
}

.ep-meta-item > re-icon svg {
	display: block;
	width: 18px !important;
	height: 18px !important;
}

.ep-meta-item small {
	color: var(--ep-accent);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-transform: uppercase;
}

.ep-meta-item strong {
	color: var(--ep-text);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
}

.ep-meta-item:first-child strong { white-space: nowrap; }

.ep-meta-row re-icon {
	flex: 0 0 auto;
	color: var(--ep-accent);
}

.ep-booking-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 16px;
	width: 100%;
	padding: clamp(24px, 2.4vw, 34px);
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: var(--ep-radius);
	background: rgba(9, 9, 8, 0.9);
	box-shadow: inset 0 1px rgba(255, 255, 255, 0.055), 0 24px 60px rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(18px);
}

.ep-form-heading {
	display: block;
	margin: 0 0 4px;
	padding: 0 0 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.ep-form-heading > span {
	display: block;
	margin: 0 0 7px;
	color: var(--ep-accent) !important;
	font-size: 9px !important;
	font-weight: 800 !important;
	letter-spacing: 0.13em !important;
	text-transform: uppercase;
}

.ep-form-heading h3 {
	margin: 0 0 7px;
	color: var(--ep-text);
	font-family: var(--ep-display);
	font-size: clamp(28px, 2.4vw, 34px);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1;
}

.ep-form-heading p {
	max-width: 54ch;
	margin: 0;
	color: var(--ep-muted);
	font-size: 11px;
	line-height: 1.5;
}

.ep-booking-form label,
.ep-manual-form label {
	display: grid;
	gap: 8px;
	margin: 0;
}

.ep-booking-form label > span,
.ep-manual-form label > span {
	color: var(--ep-text);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ep-booking-form input:not([type="checkbox"]),
.ep-booking-form select,
.ep-manual-form input {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	outline: 0;
	background: rgba(255, 255, 255, 0.07);
	color: var(--ep-text);
	font: 500 14px/1.3 var(--ep-ui);
	transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.ep-booking-form select option {
	background: var(--ep-surface);
	color: var(--ep-text);
}

.ep-booking-form input:focus,
.ep-booking-form select:focus,
.ep-manual-form input:focus {
	border-color: var(--ep-accent);
	background: rgba(255, 255, 255, 0.1);
	box-shadow: 0 0 0 3px rgba(201, 154, 59, 0.2);
}

.ep-form-wide {
	grid-column: 1 / -1;
}

.ep-check {
	display: flex !important;
	align-items: center;
	grid-template-columns: none !important;
	gap: 9px !important;
	min-height: 20px;
}

.ep-check input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--ep-primary);
}

.ep-check span {
	color: var(--ep-muted) !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	line-height: 1.15;
	text-transform: none !important;
}

.ep-check a {
	color: var(--ep-accent);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.ep-check a:hover {
	color: var(--ep-text);
}

.ep-minor-control {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(200px, 0.46fr);
	align-items: start;
	gap: 8px 24px;
	margin-top: 2px;
	padding: 16px 0 2px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ep-booking-form > .ep-check.ep-form-wide {
	margin-top: -2px;
}

.ep-minors-count {
	align-self: start;
	transform: none;
	gap: 6px !important;
}

.ep-minors-count input { min-height: 42px !important; }

.ep-minor-control > small {
	grid-column: 1 / -1;
	color: var(--ep-muted);
	font-size: 11px;
	line-height: 1.5;
}

.ep-minors-count[hidden] {
	display: none !important;
}

@media (min-width: 768px) {
	.ep-minor-control {
		display: block;
		position: relative;
		min-height: 28px;
	}

	.ep-minors-count:not([hidden]) {
		display: grid;
		position: absolute;
		top: 20px;
		right: 0;
		grid-template-columns: minmax(0, 1fr) 66px;
		align-items: center;
		width: 210px;
		gap: 10px !important;
	}

	.ep-minors-count > span {
		font-size: 9px !important;
		letter-spacing: 0.055em !important;
		line-height: 1.15;
		white-space: nowrap;
	}

	.ep-minors-count input {
		width: 66px !important;
		min-width: 0;
		min-height: 32px !important;
		height: 32px;
		padding: 0 10px !important;
	}
}

.ep-btn,
a.ep-btn,
button.ep-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	font-family: var(--ep-ui);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.015em;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.ep-btn re-icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.ep-btn:hover {
	transform: translateY(-2px);
}

.ep-btn:active {
	transform: translateY(0) scale(0.98);
}

.ep-btn:focus-visible,
.ep-icon-link:focus-visible,
.ep-mini-ticket:focus-visible {
	outline: 3px solid rgba(201, 154, 59, 0.42);
	outline-offset: 3px;
}

.ep-btn-primary,
a.ep-btn-primary,
button.ep-btn-primary {
	background: var(--ep-primary);
	color: #fff;
}

.ep-btn-primary:hover {
	background: var(--ep-accent);
	color: #171006;
}

.ep-btn-secondary,
a.ep-btn-secondary,
button.ep-btn-secondary {
	border-color: rgba(255, 255, 255, 0.55);
	background: rgba(9, 9, 9, 0.66);
	color: #fff;
}

.ep-btn-secondary:hover {
	border-color: var(--ep-accent);
	color: var(--ep-accent);
}

.ep-btn:disabled {
	cursor: not-allowed;
	opacity: 0.48;
	transform: none;
}

.ep-reservation-modal[hidden] {
	display: none;
}

.ep-reservation-modal {
	position: fixed;
	z-index: 99999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 22px;
	background: rgba(0, 0, 0, 0.72);
	backdrop-filter: blur(8px);
}

.ep-reservation-modal__panel {
	width: min(100%, 430px);
	padding: 34px;
	border: 1px solid var(--ep-line);
	border-radius: 16px;
	background: #11110f;
	box-shadow: var(--ep-shadow);
	color: var(--ep-text);
	text-align: center;
}

.ep-reservation-modal__icon {
	display: grid;
	width: 58px;
	height: 58px;
	place-items: center;
	margin: 0 auto 18px;
	border: 1px solid var(--ep-accent);
	border-radius: 50%;
	color: var(--ep-accent);
	animation: ep-modal-pulse 1.15s ease-in-out infinite;
}

.ep-reservation-modal__panel p {
	margin: 0 0 8px;
	color: var(--ep-accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ep-reservation-modal__panel strong {
	font: 400 26px/1.15 var(--ep-display);
}

@keyframes ep-modal-pulse {
	50% { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(201, 154, 59, 0.08); }
}

.ep-alert {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	align-items: start;
	gap: 10px;
	margin: 0 0 18px;
	padding: 15px 17px;
	border: 1px solid var(--ep-line);
	border-radius: 12px;
	background: rgba(153, 111, 35, 0.12);
	color: var(--ep-text);
	font: 600 13px/1.35 var(--ep-ui);
}

.ep-alert > re-icon { color: var(--ep-accent); margin-top: 1px; }
.ep-alert > span { display: grid; gap: 3px; }
.ep-alert strong { color: var(--ep-text); font-size: 13px; }
.ep-alert small { color: var(--ep-muted); font-size: 12px; font-weight: 500; line-height: 1.4; }

.ep-alert-error {
	border-color: rgba(212, 91, 82, 0.5);
	background: rgba(212, 91, 82, 0.13);
}

.ep-alert-error > re-icon { color: #ec9b92; }

/* Booking errors stay available without shifting the hero/form layout. */
.ep-booking-error {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 1000;
	width: min(420px, calc(100vw - 48px));
	margin: 0;
	border-color: rgba(212, 91, 82, 0.68);
	background: rgba(22, 11, 12, 0.96);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
	backdrop-filter: blur(14px);
	animation: ep-alert-in 180ms ease-out both;
}

@keyframes ep-alert-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.ep-reservation-success .ep-reservation-modal__icon {
	animation: none;
	background: rgba(153, 111, 35, 0.12);
}

.ep-success-ticket {
	display: grid;
	grid-template-columns: 116px minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	margin: 22px 0;
	padding: 13px;
	border: 1px solid var(--ep-line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.035);
	text-align: left;
}

.ep-success-ticket [data-ep-qr] {
	display: grid;
	width: 116px;
	height: 116px;
	place-items: center;
	overflow: hidden;
	border-radius: 8px;
	background: #f7f4ed;
}

.ep-success-ticket [data-ep-qr] svg,
.ep-success-ticket [data-ep-qr] canvas { display: block; width: 116px !important; height: 116px !important; }
.ep-success-ticket span { display: grid; gap: 7px; }
.ep-success-ticket b { color: var(--ep-text); font-size: 13px; letter-spacing: 0.04em; }
.ep-success-ticket small { color: var(--ep-muted); font-size: 12px; line-height: 1.35; }
.ep-success-actions { display: grid; gap: 9px; }
.ep-success-actions .ep-btn { width: 100%; justify-content: center; }
.ep-success-ticket-link { color: var(--ep-accent); font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.ep-events-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	width: min(100%, 1320px);
	margin-inline: auto;
}

.ep-list-card {
	display: grid;
	grid-template-columns: minmax(190px, 42%) 1fr;
	overflow: hidden;
	min-height: 300px;
	border: 1px solid var(--ep-line);
	border-radius: var(--ep-radius);
	background: var(--ep-surface);
	color: var(--ep-text);
}

.ep-list-cover {
	display: block;
	min-height: 100%;
	overflow: hidden;
	background: var(--ep-surface-soft);
}

.ep-list-cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ep-list-card:hover .ep-list-cover img {
	transform: scale(1.035);
}

.ep-list-body {
	display: flex;
	padding: clamp(24px, 3vw, 38px);
	flex-direction: column;
}

.ep-list-body .ep-kicker {
	margin-bottom: 12px;
	font-size: 10px;
}

.ep-list-card h3 {
	margin: 0 0 12px;
	font-size: clamp(29px, 3vw, 40px);
	line-height: 1;
}

.ep-list-card h3 a,
.ep-list-card h3 a:hover {
	color: var(--ep-text);
	text-decoration: none;
}

.ep-list-body > p:not(.ep-kicker) {
	margin: 0;
	color: var(--ep-muted);
	font-size: 13px;
}

.ep-list-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: auto;
	padding-top: 22px;
	color: var(--ep-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.ep-icon-link {
	display: inline-flex;
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--ep-accent);
	border-radius: 50%;
	color: var(--ep-accent);
	text-decoration: none;
	transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.ep-icon-link:hover {
	background: var(--ep-accent);
	color: #171006;
	transform: translateX(2px);
}

.ep-my-tickets {
	display: grid;
	gap: 12px;
}

.ep-mini-ticket {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 16px;
	padding: 18px 22px;
	border: 1px solid var(--ep-line);
	border-radius: 12px;
	background: var(--ep-surface);
	color: var(--ep-text);
	text-decoration: none;
	transition: border-color 180ms ease, transform 180ms ease;
}

.ep-mini-ticket:hover {
	border-color: var(--ep-accent);
	color: var(--ep-text);
	transform: translateX(3px);
}

.ep-mini-ticket > re-icon:first-child,
.ep-mini-ticket > re-icon:last-child {
	color: var(--ep-accent);
}

.ep-mini-ticket span {
	display: grid;
	gap: 4px;
}

.ep-mini-ticket small {
	color: var(--ep-muted);
	font-size: 11px;
	letter-spacing: 0.06em;
}

.ep-scanner {
	width: min(100%, 860px);
	margin-inline: auto;
	padding: clamp(24px, 4vw, 46px);
	border: 1px solid var(--ep-line);
	border-radius: var(--ep-radius);
	background: var(--ep-bg);
	color: var(--ep-text);
	box-shadow: var(--ep-shadow);
}

.ep-scanner-head h2 {
	margin: 0 0 12px;
	font-size: clamp(38px, 5vw, 52px);
	line-height: 1;
}

.ep-scanner-head > p:last-child {
	max-width: 62ch;
	margin: 0 0 24px;
	color: var(--ep-muted);
	font-size: 14px;
	line-height: 1.65;
}

.ep-video-wrap {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	background: #0d0d0c;
}

.ep-video-wrap video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ep-scan-frame {
	position: absolute;
	inset: 18%;
	border: 2px solid var(--ep-accent);
	border-radius: 10px;
	box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.32);
}

.ep-scanner-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 18px 0 26px;
}

.ep-manual-form {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: 12px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ep-scan-result {
	min-height: 0;
	margin-top: 18px;
}

.ep-result-card {
	display: grid;
	gap: 10px;
	padding: 22px;
	border: 1px solid var(--ep-line);
	border-radius: 12px;
	background: var(--ep-surface);
}

.ep-result-card.ep-result-valid {
	border-color: rgba(62, 152, 98, 0.8);
	background: rgba(62, 152, 98, 0.12);
}

.ep-result-card.ep-result-used,
.ep-result-card.ep-result-cancelled,
.ep-result-card.ep-result-missing,
.ep-result-card.ep-result-error {
	border-color: rgba(212, 91, 82, 0.65);
	background: rgba(212, 91, 82, 0.11);
}

.ep-result-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 17px;
	font-weight: 700;
}

.ep-result-card dl {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 20px;
	margin: 4px 0 0;
}

.ep-result-card dt {
	color: var(--ep-muted);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ep-result-card dd {
	margin: 3px 0 0;
	font-size: 13px;
	font-weight: 600;
}

.ep-ticket-page {
	min-height: 100dvh;
	margin: 0;
	background: var(--ep-bg);
	color: var(--ep-text);
	font-family: var(--ep-ui);
}

.ep-ticket-shell {
	width: min(100% - 32px, 1040px);
	margin-inline: auto;
	padding: 42px 0 64px;
}

.ep-ticket-actions {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 20px;
}

.ep-ticket {
	overflow: hidden;
	border: 1px solid var(--ep-primary);
	border-radius: var(--ep-radius);
	background: var(--ep-surface);
	box-shadow: var(--ep-shadow);
}

.ep-ticket > header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 30px;
	padding: clamp(28px, 5vw, 54px);
	border-bottom: 1px solid var(--ep-line);
	background: linear-gradient(135deg, rgba(153, 111, 35, 0.15), transparent 54%);
}

.ep-ticket h1 {
	max-width: 15ch;
	margin: 0;
	color: var(--ep-text);
	font-size: clamp(38px, 6vw, 64px);
	line-height: 0.98;
}

.ep-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 0 12px;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ep-status.ep-valid {
	color: #7ad09a;
}

.ep-status.ep-used {
	color: var(--ep-accent);
}

.ep-status.ep-cancelled {
	color: #e2827a;
}

.ep-ticket-main {
	display: grid;
	grid-template-columns: 1fr minmax(260px, 34%);
}

.ep-ticket-data {
	padding: clamp(28px, 5vw, 52px);
}

.ep-ticket-data dl {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 26px 36px;
	margin: 0;
}

.ep-ticket-data dt {
	margin-bottom: 5px;
	color: var(--ep-accent);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ep-ticket-data dd {
	margin: 0;
	color: var(--ep-text);
	font-family: var(--ep-display);
	font-size: 23px;
	line-height: 1.15;
}

.ep-qr-panel {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 34px 24px;
	border-left: 1px dashed var(--ep-line);
	background: #f7f4ed;
	color: #171614;
	flex-direction: column;
	text-align: center;
}

.ep-qr-panel [data-ep-qr] {
	display: grid;
	width: 196px;
	height: 196px;
	place-items: center;
	margin-bottom: 16px;
}

.ep-qr-panel img,
.ep-qr-panel canvas {
	display: block;
	width: 196px !important;
	height: 196px !important;
}

.ep-qr-panel strong {
	font-size: 13px;
	letter-spacing: 0.1em;
}

.ep-qr-panel p {
	margin: 6px 0 0;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ep-ticket > footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 34px;
	padding: 24px clamp(28px, 5vw, 52px);
	border-top: 1px solid var(--ep-line);
}

.ep-ticket > footer svg {
	width: min(100%, 360px);
	height: 72px;
	background: #fff;
}

.ep-ticket > footer p {
	max-width: 46ch;
	margin: 0;
	color: var(--ep-muted);
	font-size: 11px;
	line-height: 1.55;
}

@media (max-width: 1100px) {
	.ep-event-content {
		grid-template-columns: minmax(320px, 0.78fr) minmax(470px, 1.22fr);
		column-gap: 30px;
		width: min(calc(100% - 40px), 1160px);
	}
}

@media (max-width: 900px) {
	.ep-event-content {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto;
		gap: 0;
		width: min(calc(100% - 40px), 760px);
		padding: 46px 0;
	}

	.ep-event-content > .ep-kicker,
	.ep-event-content > h2,
	.ep-event-content > .ep-event-description,
	.ep-event-content > .ep-meta-row,
	.ep-event-content > .ep-booking-form,
	.ep-event-content > .ep-alert:not(.ep-booking-error) {
		grid-column: 1;
		grid-row: auto;
	}

	.ep-meta-row {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		margin-bottom: 24px;
		padding: 0;
	}

	.ep-meta-item {
		padding: 10px 12px;
		border-right: 1px solid rgba(255, 255, 255, 0.09);
		border-bottom: 0;
	}

	.ep-meta-item:last-child { border-right: 0; }

	.ep-events-grid {
		grid-template-columns: 1fr;
	}

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

	.ep-qr-panel {
		border-top: 1px dashed var(--ep-line);
		border-left: 0;
	}
}

@media (max-width: 767px) {
	.ep-event-card,
	.ep-event-card.ep-compact {
		min-height: 0;
		background-position: 60% center;
	}

	.ep-event-overlay {
		background: linear-gradient(0deg, rgba(4, 4, 4, 0.99) 0%, rgba(4, 4, 4, 0.87) 68%, rgba(4, 4, 4, 0.62) 100%);
	}

	.ep-event-content {
		width: 100%;
		padding: 34px 18px;
	}

	.ep-event-content > h2 {
		font-size: 40px;
		line-height: 1.02;
	}

	.ep-event-description {
		margin-bottom: 20px;
		font-size: 13px;
		line-height: 1.6;
		text-align: left;
	}

	.ep-meta-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 22px; padding: 6px 12px; }
	.ep-meta-item:first-child strong { white-space: normal; }
	.ep-meta-item { min-height: 54px; padding: 9px 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
	.ep-meta-item:last-child { border-bottom: 0; }

	.ep-booking-form {
		grid-template-columns: 1fr;
		padding: 22px 18px;
		backdrop-filter: none;
	}

	.ep-form-heading { padding-bottom: 17px; }
	.ep-form-heading h3 { font-size: 29px; }

	.ep-booking-form label,
	.ep-form-wide {
		grid-column: 1;
	}

	.ep-minor-control {
		grid-template-columns: 1fr;
		padding: 16px 0 8px;
	}

	.ep-minors-count {
		transform: none;
	}

	.ep-success-ticket { grid-template-columns: 96px minmax(0, 1fr); }
	.ep-success-ticket [data-ep-qr],
	.ep-success-ticket [data-ep-qr] svg,
	.ep-success-ticket [data-ep-qr] canvas { width: 96px !important; height: 96px !important; }

	.ep-meta-row {
		grid-template-columns: 1fr;
	}

	.ep-meta-item {
		min-width: 0;
	}

	.ep-list-card {
		grid-template-columns: 1fr;
	}

	.ep-list-cover {
		aspect-ratio: 16 / 9;
	}

	.ep-manual-form {
		grid-template-columns: 1fr;
	}

	.ep-manual-form .ep-btn {
		width: 100%;
	}

	.ep-ticket-shell {
		width: min(100% - 20px, 1040px);
		padding-top: 18px;
	}

	.ep-ticket-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.ep-ticket-actions .ep-btn {
		width: 100%;
	}

	.ep-ticket > header {
		align-items: flex-start;
		flex-direction: column;
	}

	.ep-ticket h1 {
		font-size: 42px;
	}

	.ep-ticket-data dl,
	.ep-result-card dl {
		grid-template-columns: 1fr;
	}

	.ep-ticket > footer {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ep-btn,
	.ep-icon-link,
	.ep-mini-ticket,
	.ep-list-cover img {
		transition: none;
	}
}

@media print {
	@page {
		size: A4 portrait;
		margin: 12mm;
	}

	.ep-ticket-page {
		min-height: 0;
		background: #fff;
		color: #111;
	}

	.ep-ticket-shell {
		width: 100%;
		padding: 0;
	}

	.ep-ticket-actions {
		display: none !important;
	}

	.ep-ticket {
		border-color: #996f23;
		background: #11110f;
		box-shadow: none;
		break-inside: avoid;
	}
}


/* Modal de reserva: pantalla completa, sin recortes ni scroll del documento */
body.ep-modal-open { overflow: hidden !important; }
.ep-reservation-modal {
	position: fixed !important;
	inset: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	min-height: 100dvh;
	max-height: none !important;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	z-index: 2147483000 !important;
	box-sizing: border-box;
}
.ep-reservation-modal__panel { max-height: calc(100dvh - 44px); overflow-y: auto; margin: auto; }
@media (max-width: 640px) {
	.ep-reservation-modal { padding: 14px !important; }
	.ep-reservation-modal__panel { width: min(100%, 430px); padding: 25px 20px; max-height: calc(100dvh - 28px); }
}


/* Responsive event experience: mobile-first polish */
html, body { overflow-x: hidden; }
@media (max-width: 767px) {
	.ep-event-card, .ep-event-card.ep-compact { min-height: 0; overflow: visible; }
	.ep-event-breadcrumb { position: relative !important; top: auto !important; left: auto !important; right: auto !important; min-height: 42px; background: rgba(5,5,5,.58); }
	.ep-event-breadcrumb > div { width: 100%; min-height: 42px; padding: 0 18px; gap: 7px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-size: 9px; letter-spacing: .07em; }
	.ep-event-breadcrumb > div::-webkit-scrollbar { display: none; }
	.ep-event-content { width: 100%; min-height: 0; padding: 25px 18px 54px; gap: 0; }
	.ep-event-content > .ep-kicker { margin: 0 0 12px; gap: 10px; font-size: 10px; line-height: 1.35; letter-spacing: .11em; }
	.ep-event-content > .ep-kicker span { flex: 0 0 30px; }
	.ep-event-content > h2 { margin: 0 0 12px; font-size: clamp(34px, 10vw, 44px); line-height: .98; letter-spacing: -.035em; overflow-wrap: anywhere; }
	.ep-event-description { margin: 0 0 20px; max-width: 60ch; font-size: 14px; line-height: 1.55; }
	.ep-meta-row { width: 100%; margin: 0 0 22px; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(9,9,8,.78); }
	.ep-meta-item { min-height: 65px; padding: 13px 16px; }
	.ep-meta-item small { font-size: 9px; letter-spacing: .11em; }
	.ep-meta-item strong { font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
	.ep-booking-form { width: 100%; margin: 0; padding: 22px 18px 24px; gap: 16px; border-radius: 16px; }
	.ep-form-heading { padding-bottom: 16px; }
	.ep-form-heading h3 { font-size: clamp(28px, 8vw, 34px); line-height: 1.02; }
	.ep-form-heading p { font-size: 13px; line-height: 1.5; }
	.ep-booking-form label > span { font-size: 11px; }
	.ep-booking-form input:not([type="checkbox"]), .ep-booking-form select { min-height: 52px; padding-inline: 14px; font-size: 16px; }
	.ep-check { align-items: flex-start; gap: 10px !important; }
	.ep-check input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; }
	.ep-check span { font-size: 13px !important; line-height: 1.4; }
	.ep-booking-form .ep-btn { width: 100%; min-height: 54px; padding-inline: 16px; font-size: 11px; white-space: normal; }
}
@media (max-width: 380px) {
	.ep-event-content { padding-inline: 14px; }
	.ep-event-content > h2 { font-size: 33px; }
	.ep-booking-form { padding-inline: 15px; }
}
