@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@500;700&display=swap');

:root {
	--alc-bg: #070706;
	--alc-panel: #11100e;
	--alc-panel-soft: #171511;
	--alc-line: rgba(211, 177, 95, 0.34);
	--alc-line-cool: rgba(255, 255, 255, 0.14);
	--alc-gold: #d9bd67;
	--alc-gold-bright: #f4db85;
	--alc-text: #f7f0df;
	--alc-muted: rgba(247, 240, 223, 0.72);
	--alc-dim: rgba(247, 240, 223, 0.46);
}

.alc-calendar-shell {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 5%, rgba(214, 176, 91, 0.12), transparent 28rem),
		radial-gradient(circle at 12% 34%, rgba(137, 96, 42, 0.16), transparent 22rem),
		linear-gradient(180deg, #050505 0%, var(--alc-bg) 58%, #030303 100%);
	color: var(--alc-text);
	padding: clamp(28px, 4vw, 72px);
	min-height: 760px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	font-family: Georgia, 'Times New Roman', serif;
}

.alc-calendar-shell *,
.alc-calendar-shell *::before,
.alc-calendar-shell *::after {
	box-sizing: border-box;
}

.alc-calendar-shell [hidden] {
	display: none !important;
}

.alc-modal-backdrop.is-hidden {
	display: none !important;
	opacity: 0 !important;
	pointer-events: none !important;
	visibility: hidden !important;
}

.alc-symbol-field {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: 0.42;
}

.alc-symbol-field span {
	position: absolute;
	display: block;
	color: rgba(255, 255, 255, 0.16);
	font-size: clamp(18px, 2vw, 34px);
	text-shadow: 0 0 22px rgba(217, 189, 103, 0.18);
	animation: alcDrift linear infinite;
}

@keyframes alcDrift {
	0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.08; }
	35% { opacity: 0.28; }
	100% { transform: translate3d(40px, -90px, 0) rotate(24deg); opacity: 0.05; }
}

.alc-hero {
	max-width: 980px;
	margin: 0 auto clamp(28px, 5vw, 64px);
	text-align: center;
}

.alc-account-badge {
	width: fit-content;
	max-width: 100%;
	margin: 0 auto clamp(22px, 4vw, 46px);
	display: grid;
	grid-template-columns: auto;
	gap: 4px;
	border: 1px solid rgba(244, 219, 133, 0.28);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.045);
	padding: 11px 18px;
	text-align: center;
	box-shadow: 0 0 28px rgba(217, 189, 103, 0.1);
}

.alc-account-badge span {
	color: var(--alc-dim);
	font: 700 11px/1 Cinzel, Georgia, serif;
	text-transform: uppercase;
}

.alc-account-badge strong {
	color: var(--alc-text);
	font: 700 18px/1.15 Cinzel, Georgia, serif;
}

.alc-kicker,
.alc-section-heading p {
	margin: 0 0 12px;
	color: var(--alc-gold-bright);
	font-family: Cinzel, Georgia, serif;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}

.alc-hero h1,
.alc-current-title,
.alc-section-heading h2,
.alc-gate-card h2 {
	margin: 0;
	font-family: 'Cinzel Decorative', Cinzel, Georgia, serif;
	font-weight: 900;
	line-height: 0.95;
	color: #fff8e9;
	text-shadow: 0 0 35px rgba(244, 219, 133, 0.12);
}

.alc-hero h1 {
	font-size: clamp(48px, 8vw, 118px);
}

.alc-hero p {
	max-width: 760px;
	margin: 30px auto 0;
	color: var(--alc-muted);
	font-size: clamp(18px, 2.2vw, 29px);
	line-height: 1.45;
}

.alc-toolbar,
.alc-search-panel,
.alc-calendar-card,
.alc-shelf-section,
.alc-gate-card {
	max-width: 1320px;
	margin-inline: auto;
}

.alc-toolbar {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 18px;
	padding: 18px 0;
	border-top: 1px solid var(--alc-line-cool);
	border-bottom: 1px solid var(--alc-line-cool);
}

.alc-current-title {
	text-align: center;
	font-size: clamp(30px, 4vw, 62px);
}

.alc-nav-group,
.alc-view-switch,
.alc-filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.alc-button,
.alc-chip {
	min-height: 44px;
	border: 1px solid rgba(244, 219, 133, 0.38);
	border-radius: 8px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
	color: var(--alc-text);
	font: 700 16px/1 Cinzel, Georgia, serif;
	padding: 0 16px;
	cursor: pointer;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.alc-button:hover,
.alc-chip:hover,
.alc-chip.is-active {
	border-color: var(--alc-gold-bright);
	box-shadow: 0 0 28px rgba(217, 189, 103, 0.18), inset 0 0 0 1px rgba(244, 219, 133, 0.12);
	transform: translateY(-1px);
}

.alc-button-primary {
	background: linear-gradient(180deg, rgba(217, 164, 65, 0.22), rgba(217, 164, 65, 0.06));
}

.alc-search-panel {
	display: grid;
	grid-template-columns: minmax(280px, 1fr);
	gap: 16px;
	padding: 24px 0 18px;
}

.alc-search span,
.alc-my-only span {
	display: block;
	margin-bottom: 8px;
	color: var(--alc-gold);
	font: 700 14px/1 Cinzel, Georgia, serif;
}

.alc-search input,
.alc-save-panel select {
	width: 100%;
	min-height: 48px;
	border: 1px solid var(--alc-line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.045);
	color: var(--alc-text);
	padding: 0 14px;
	font: 17px/1.2 Georgia, serif;
}

.alc-my-only {
	display: flex;
	gap: 10px;
	align-items: center;
	color: var(--alc-muted);
}

.alc-my-only span {
	margin: 0;
	color: var(--alc-muted);
	text-transform: none;
}

.alc-chip {
	min-height: 38px;
	font-size: 13px;
	padding-inline: 12px;
}

.alc-chip span {
	margin-right: 7px;
}

.alc-legend {
	max-width: 1320px;
	margin: 0 auto 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.alc-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--alc-muted);
	border: 1px solid color-mix(in srgb, var(--cat), transparent 45%);
	box-shadow: 0 0 22px var(--glow);
	border-radius: 999px;
	padding: 7px 11px;
	background: rgba(255, 255, 255, 0.035);
	font-size: 14px;
}

.alc-calendar-card {
	border: 1px solid var(--alc-line);
	border-radius: 12px;
	background:
		linear-gradient(135deg, rgba(217, 189, 103, 0.08), transparent 30%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
	overflow: hidden;
}

.alc-weekdays,
.alc-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.alc-weekdays {
	border-bottom: 1px solid var(--alc-line-cool);
}

.alc-weekdays span {
	padding: 14px;
	color: var(--alc-gold-bright);
	font: 700 13px/1 Cinzel, Georgia, serif;
	text-align: center;
}

.alc-day {
	position: relative;
	min-height: 150px;
	border: 0;
	border-right: 1px solid rgba(255, 255, 255, 0.08);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(8, 8, 7, 0.72);
	color: var(--alc-text);
	padding: 14px;
	text-align: left;
	cursor: pointer;
	transition: background 160ms ease, box-shadow 160ms ease;
}

.alc-day:hover {
	background: rgba(30, 27, 20, 0.92);
	box-shadow: inset 0 0 0 1px rgba(244, 219, 133, 0.28);
}

.alc-day.is-outside {
	color: var(--alc-dim);
	background: rgba(255, 255, 255, 0.018);
}

.alc-day.is-today {
	box-shadow: inset 0 0 0 1px var(--alc-gold-bright), 0 0 34px rgba(217, 189, 103, 0.2);
}

.alc-day-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	font: 700 17px/1 Cinzel, Georgia, serif;
}

.alc-day-marks {
	position: absolute;
	top: 18px;
	right: 12px;
	display: flex;
	gap: 5px;
}

.alc-day-marks i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--cat);
	box-shadow: 0 0 16px var(--glow);
}

.alc-day-events {
	display: grid;
	gap: 7px;
	margin-top: 18px;
}

.alc-day-events em {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--alc-muted);
	font-style: normal;
	font-size: 14px;
}

.alc-saved-mark {
	position: absolute;
	left: 14px;
	bottom: 12px;
	color: var(--alc-gold-bright);
	font-size: 12px;
}

.alc-grid.is-week .alc-day {
	min-height: 260px;
}

.alc-section-heading {
	margin: 54px 0 20px;
	border-top: 1px solid var(--alc-line-cool);
	padding-top: 28px;
}

.alc-section-heading h2 {
	font-size: clamp(34px, 5vw, 70px);
}

.alc-shelf {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
}

.alc-shelf-card,
.alc-modal-event,
.alc-result,
.alc-empty {
	border: 1px solid color-mix(in srgb, var(--cat, var(--alc-gold)), transparent 48%);
	border-radius: 10px;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018));
	box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28), 0 0 30px var(--glow, rgba(217, 189, 103, 0.12));
}

.alc-shelf-card {
	padding: 18px;
	display: grid;
	gap: 16px;
}

.alc-shelf-card h3,
.alc-modal-event h3 {
	margin: 10px 0;
	font-family: 'Cinzel Decorative', Cinzel, Georgia, serif;
	font-size: 28px;
	line-height: 1.05;
}

.alc-shelf-card p,
.alc-modal-event p {
	color: var(--alc-muted);
	line-height: 1.55;
}

.alc-date-pill {
	display: inline-flex;
	color: var(--alc-gold-bright);
	font: 700 13px/1 Cinzel, Georgia, serif;
}

.alc-shelf-meta {
	display: grid;
	gap: 8px;
	color: var(--alc-muted);
	font-size: 14px;
}

.alc-remove {
	justify-self: start;
}

.alc-empty {
	padding: 22px;
	color: var(--alc-muted);
}

.alc-search-results {
	display: grid;
	gap: 10px;
}

.alc-result {
	width: 100%;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 12px;
	align-items: center;
	color: var(--alc-text);
	text-align: left;
	padding: 13px 14px;
	cursor: pointer;
}

.alc-result span {
	color: var(--cat);
	font-size: 22px;
}

.alc-result em {
	color: var(--alc-muted);
	font-style: normal;
}

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

.alc-modal {
	position: relative;
	width: min(940px, 100%);
	max-height: min(760px, 92vh);
	overflow: auto;
	border: 1px solid var(--alc-line);
	border-radius: 14px;
	background:
		radial-gradient(circle at 82% 8%, rgba(217, 189, 103, 0.13), transparent 20rem),
		#0b0a09;
	padding: clamp(22px, 4vw, 42px);
	box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
}

.alc-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 42px;
	height: 42px;
	border: 1px solid var(--alc-line-cool);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.04);
	color: var(--alc-text);
	font-size: 26px;
	cursor: pointer;
}

.alc-modal-date {
	color: var(--alc-gold);
	font: 700 15px/1 Cinzel, Georgia, serif;
	text-transform: uppercase;
}

.alc-modal h2 {
	margin: 10px 48px 22px 0;
	font-family: 'Cinzel Decorative', Cinzel, Georgia, serif;
	font-size: clamp(32px, 5vw, 62px);
}

.alc-modal-events {
	display: grid;
	gap: 16px;
}

.alc-modal-event {
	padding: 20px;
}

.alc-modal-event.is-focused {
	box-shadow: 0 0 0 1px var(--alc-gold-bright), 0 0 34px var(--glow);
}

.alc-event-topline,
.alc-symbol-tags,
.alc-save-panel {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.alc-event-topline {
	justify-content: space-between;
	color: var(--cat);
	font: 700 14px/1 Cinzel, Georgia, serif;
}

.alc-event-topline strong {
	font-size: 32px;
}

.alc-advice {
	margin: 16px 0;
	padding: 14px;
	border-left: 2px solid var(--cat);
	background: rgba(255, 255, 255, 0.04);
	color: var(--alc-muted);
	line-height: 1.55;
}

.alc-symbol-tags span {
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	padding: 7px 10px;
	color: var(--alc-muted);
	background: rgba(255, 255, 255, 0.035);
}

.alc-save-panel {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.alc-save-panel label {
	display: grid;
	gap: 7px;
	min-width: 180px;
	color: var(--alc-gold);
	font: 700 13px/1 Cinzel, Georgia, serif;
}

.alc-save-panel select {
	min-height: 42px;
	color-scheme: dark;
}

.alc-toast {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 99999;
	max-width: min(360px, calc(100vw - 48px));
	transform: translateY(18px);
	opacity: 0;
	pointer-events: none;
	border: 1px solid var(--alc-line);
	border-radius: 10px;
	background: #11100e;
	color: var(--alc-text);
	padding: 14px 16px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
	transition: opacity 160ms ease, transform 160ms ease;
}

.alc-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.alc-login-gate {
	display: grid;
	place-items: center;
	min-height: 520px;
}

.alc-gate-card {
	width: min(760px, 100%);
	text-align: center;
	border: 1px solid var(--alc-line);
	border-radius: 14px;
	background: linear-gradient(145deg, rgba(217, 189, 103, 0.09), rgba(255, 255, 255, 0.03));
	padding: clamp(28px, 6vw, 70px);
}

.alc-gate-card h2 {
	font-size: clamp(30px, 5vw, 58px);
	margin-bottom: 24px;
}

body.alc-modal-open {
	overflow: hidden;
}

@media (max-width: 900px) {
	.alc-calendar-shell {
		padding: 24px 14px;
	}

	.alc-toolbar {
		grid-template-columns: 1fr;
		justify-items: center;
	}

	.alc-weekdays {
		display: none;
	}

	.alc-grid,
	.alc-grid.is-week {
		display: grid;
		grid-template-columns: 1fr;
	}

	.alc-day,
	.alc-grid.is-week .alc-day {
		min-height: 112px;
		border-right: 0;
	}

	.alc-day.is-outside {
		display: none;
	}

	.alc-result {
		grid-template-columns: auto 1fr;
	}

	.alc-result em {
		grid-column: 2;
	}

	.alc-save-panel {
		display: grid;
	}
}

@media (max-width: 560px) {
	.alc-hero h1 {
		font-size: 42px;
	}

	.alc-hero p {
		font-size: 17px;
	}

	.alc-nav-group,
	.alc-view-switch {
		width: 100%;
		justify-content: center;
	}

	.alc-button,
	.alc-chip {
		min-width: 0;
	}

	.alc-modal {
		padding: 22px 16px;
	}
}
