/* ============================================================
   THE DEAD WALL — stylesheet
   You normally won't need to touch this file to update the event.
   All text/dates/content live in index.html (the EVENT object).
   Design tokens you might want to tweak are right below.
   ============================================================ */

:root {
	/* --- Palette (tweak these to re-skin the whole site) --- */
	--ink: #06060a; /* dungeon background, darkest */
	--ink-2: #0d0b12; /* secondary dark */
	--stone: #17141f; /* raised panels */
	--bone: #f3ede1; /* primary text ("bone white") */
	--muted: #a39cae; /* secondary text */
	--blood: #cf1730; /* primary accent (blood red) */
	--ember: #ff5a36; /* warm torch highlight */
	--edge: rgba(255, 255, 255, 0.08); /* hairline borders */

	/* --- Type --- */
	--display: 'Cinzel', 'Times New Roman', serif;
	--body:
		system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

	/* --- Rhythm --- */
	--wrap: min(92vw, 1080px);
	--radius: 14px;

	--cursorX: 50vw;
	--cursorY: 40vh;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: env(safe-area-inset-top, 0px);
}

body {
	margin: 0;
	font-family: var(--body);
	color: var(--bone);
	line-height: 1.6;
	background:
		radial-gradient(120vw 60vh at 50% -10%, #1a0a10 0%, transparent 60%),
		linear-gradient(to bottom, var(--ink) 0%, var(--ink-2) 60%, #0a0710 100%);
	background-attachment: fixed;
	padding-bottom: env(safe-area-inset-bottom, 0px);
	overflow-x: hidden;
}

img,
video,
svg {
	max-width: 100%;
	height: auto;
	display: block;
}
a {
	color: inherit;
}

/* ---------- Reusable section shell ---------- */
.section {
	width: var(--wrap);
	margin-inline: auto;
	padding-block: clamp(3rem, 8vw, 6rem);
	text-align: center;
}

.section > p,
.section > .lede {
	margin-inline: auto;
}

.eyebrow {
	color: var(--ember);
	letter-spacing: 0.04em;
	margin: 0 0 0.4rem;
}

h1,
h2,
h3 {
	font-family: var(--display);
	font-weight: 700;
	line-height: 1.1;
}

.section-title {
	font-size: clamp(1.9rem, 5vw, 3rem);
	letter-spacing: 0.04em;
	margin: 0 0 0.5rem;
	color: var(--bone);
	text-shadow: 0 2px 24px rgba(207, 23, 48, 0.25);
}

.lede {
	color: var(--muted);
	max-width: 60ch;
	font-size: clamp(1rem, 1.6vw, 1.15rem);
}

/* ============================================================
   HERO — the torchlit dungeon stage
   ============================================================ */
.hero {
	position: relative;
	min-height: 88vh;
	min-height: 88svh;
	display: grid;
	place-items: center;
	padding: clamp(2rem, 6vw, 5rem) 1.25rem;
	overflow: hidden;
	isolation: isolate;
}

/* Background image + moving torch spotlight, all in one layer */
.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		radial-gradient(
			circle 34vmax at var(--cursorX) var(--cursorY),
			rgba(255, 255, 255, 0.16) 0%,
			rgba(255, 190, 120, 0.06) 26%,
			rgba(0, 0, 0, 0.55) 58%,
			rgba(0, 0, 0, 0.92) 100%
		),
		url('media/herobg.jpg');
	background-size: cover;
	background-position: center;
	filter: brightness(0.85);
	transition: background-position 0.12s linear;
}

/* Torch flicker: subtle brightness pulse on the whole stage */
@media (prefers-reduced-motion: no-preference) {
	.hero::before {
		animation: flicker 6s steps(1) infinite;
	}
}
@keyframes flicker {
	0%,
	100% {
		filter: brightness(0.86);
	}
	8% {
		filter: brightness(0.72);
	}
	9% {
		filter: brightness(0.9);
	}
	40% {
		filter: brightness(0.8);
	}
	41% {
		filter: brightness(0.95);
	}
	70% {
		filter: brightness(0.78);
	}
}

.hero-plate {
	text-align: center;
	width: fit-content;
	max-width: min(94vw, 900px);
	padding: clamp(1.75rem, 5vw, 3rem) clamp(1.3rem, 5vw, 3.5rem);
	background: rgba(4, 3, 7, 0.42);
	border: 1px solid var(--edge);
	border-radius: 22px;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow:
		0 20px 60px rgba(0, 0, 0, 0.6),
		inset 0 0 60px rgba(255, 255, 255, 0.03);
}

.hero-logo {
	width: clamp(180px, 40vw, 300px);
	margin: 0 auto 0.75rem;
	image-rendering: auto;
}

.hero-owner {
	font-family: var(--display);
	font-size: clamp(1rem, 3vw, 1.5rem);
	color: var(--muted);
	letter-spacing: 0.18em;
	margin: 0;
}
.hero-title {
	font-family: var(--display);
	font-size: clamp(2.3rem, 11.5vw, 6.5rem);
	letter-spacing: clamp(0.02em, 0.5vw, 0.06em);
	white-space: nowrap;
	margin: 0.1em 0;
	color: var(--bone);
	text-shadow:
		0 0 28px rgba(207, 23, 48, 0.45),
		0 4px 2px #000;
}
.hero-year {
	font-family: var(--display);
	font-size: clamp(1.4rem, 5vw, 2.4rem);
	color: var(--blood);
	letter-spacing: 0.35em;
	margin: 0 0 0 0.35em;
}

/* Registration button (shown when registrationOpen = true) */
.cta {
	display: inline-block;
	margin-top: 1.6rem;
	padding: 0.9rem 2.2rem;
	font: 600 1.05rem/1 var(--body);
	color: var(--bone);
	background: linear-gradient(180deg, var(--blood), #8f0f20);
	border: 1px solid rgba(255, 120, 120, 0.35);
	border-radius: 10px;
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(207, 23, 48, 0.35);
	transition:
		transform 0.15s ease,
		box-shadow 0.15s ease,
		filter 0.15s ease;
}
.cta:hover {
	transform: translateY(-2px);
	filter: brightness(1.08);
	box-shadow: 0 12px 30px rgba(207, 23, 48, 0.45);
}
.cta:active {
	transform: translateY(0);
}
.cta.is-closed {
	background: var(--stone);
	border-color: var(--edge);
	color: var(--muted);
	box-shadow: none;
	pointer-events: none;
}

/* ---------- Intro ---------- */
.intro {
	max-width: 68ch;
}
.intro .section-title {
	font-size: clamp(1.5rem, 4vw, 2.2rem);
}

/* ============================================================
   DEMANDS — responsive card grid (was 3 huge GIFs)
   ============================================================ */
/* ============================================================
   🎠  DEMANDS CAROUSEL — stacked cards, swipe / arrows to spin
   ============================================================ */
.demand-carousel {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	margin-top: 2.5rem;
}
.dc-stage {
	position: relative;
	flex: 1 1 auto;
	width: 100%;
	max-width: 540px;
	perspective: 1400px;
	touch-action: pan-y;
	min-height: 320px; /* JS sets the real height */
}
.dc-nav {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 1.7rem;
	line-height: 1;
	color: var(--bone);
	background: rgba(10, 8, 16, 0.7);
	border: 1px solid var(--edge);
	cursor: pointer;
	backdrop-filter: blur(6px);
	transition: background 0.2s ease;
	z-index: 5;
}
.dc-nav:hover {
	background: rgba(120, 90, 220, 0.5);
}
@media (max-width: 620px) {
	.dc-nav {
		display: none;
	} /* swipe on phones */
}
.dc-dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1.25rem;
}
.dc-dot {
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	position: relative;
	border-radius: 50%;
}
/* small visible dot centred inside the larger (accessible) tap target */
.dc-dot::before {
	content: '';
	position: absolute;
	inset: 0;
	margin: auto;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
	border: 1px solid var(--edge);
	transition:
		background 0.2s ease,
		transform 0.2s ease;
}
.dc-dot.on::before {
	background: var(--blood);
	border-color: var(--blood);
	transform: scale(1.25);
}
.demand-aside {
	max-width: 56ch;
	margin: 1.75rem auto 0;
	color: var(--muted);
	font-size: 0.98rem;
	line-height: 1.6;
}
.demand-aside a {
	color: var(--ember);
	text-decoration: none;
}
.demand-aside a:hover {
	text-decoration: underline;
}

.demand-card {
	position: absolute;
	top: 0;
	left: 50%;
	width: clamp(260px, 74vw, 348px);
	background: linear-gradient(180deg, #17141f 0%, #100d17 100%);
	border: 1px solid var(--edge);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
	border-radius: var(--radius);
	overflow: hidden;
	text-align: left;
	display: flex;
	flex-direction: column;
	transform: translateX(-50%);
	transition:
		transform 0.55s cubic-bezier(0.33, 0.72, 0.2, 1),
		opacity 0.5s ease,
		filter 0.5s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
	will-change: transform, opacity;
	backface-visibility: hidden;
}
/* stack positions (set by JS) */
.demand-card.pos-front {
	transform: translateX(-50%) scale(1) rotateY(0);
	z-index: 3;
	opacity: 1;
	filter: none;
}
.demand-card.pos-right {
	transform: translateX(-26%) scale(0.82) rotateY(-26deg);
	z-index: 2;
	opacity: 0.5;
	filter: brightness(0.55) blur(1.5px);
}
.demand-card.pos-left {
	transform: translateX(-74%) scale(0.82) rotateY(26deg);
	z-index: 1;
	opacity: 0.5;
	filter: brightness(0.55) blur(1.5px);
}
/* on phones the cards are big — tuck the back ones further behind */
@media (max-width: 620px) {
	.demand-card.pos-right {
		transform: translateX(-38%) scale(0.8) rotateY(-20deg);
		opacity: 0.38;
		filter: brightness(0.45) blur(2px);
	}
	.demand-card.pos-left {
		transform: translateX(-62%) scale(0.8) rotateY(20deg);
		opacity: 0.38;
		filter: brightness(0.45) blur(2px);
	}
}
.demand-card.pos-hidden {
	transform: translateX(-50%) scale(0.55);
	z-index: 0;
	opacity: 0;
}
.demand-card:not(.pos-front) {
	pointer-events: none;
}
.demand-card.pos-front:hover {
	border-color: rgba(207, 23, 48, 0.5);
	box-shadow:
		0 16px 40px rgba(0, 0, 0, 0.5),
		0 0 24px rgba(207, 23, 48, 0.15);
}
@media (prefers-reduced-motion: reduce) {
	.demand-card {
		transition: opacity 0.2s ease;
	}
}

.demand-media {
	aspect-ratio: 16 / 9;
	width: 100%;
	object-fit: cover;
	background: #000;
	border-bottom: 1px solid var(--edge);
}

.demand-body {
	padding: 1.1rem 1.25rem 1.4rem;
}
.demand-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.4rem;
	letter-spacing: 0.03em;
}
.demand-card h3 a {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}
.demand-card h3 a:hover {
	color: var(--ember);
}
.demand-card p {
	margin: 0;
	color: var(--muted);
	font-size: 0.98rem;
}
.redirect-icon {
	width: 15px;
	height: auto;
	opacity: 0.8;
}

/* Dotted-underline term with hover/tap definition (moupai) */
.term {
	text-decoration: underline dotted;
	cursor: help;
	color: var(--bone);
}

/* Decorative SVGs under a section */
.decor-row {
	display: flex;
	justify-content: center;
	gap: 4vw;
	margin-top: 3rem;
	flex-wrap: wrap;
}
.decor-row img {
	width: clamp(70px, 14vw, 130px);
	opacity: 0.9;
}

/* ============================================================
   SCHEDULE
   ============================================================ */
.schedule-list {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.55rem 1.4rem;
	max-width: 440px;
	margin: 2rem auto 0;
	text-align: left;
}
.schedule-list dt {
	font-weight: 700;
	color: var(--ember);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.schedule-list dd {
	margin: 0;
	color: var(--bone);
}

/* ============================================================
   VENUE
   ============================================================ */
.venue-name {
	font-size: clamp(1.4rem, 3vw, 1.8rem);
	margin: 0.5rem 0 0.3rem;
}
.venue-address {
	color: var(--muted);
	margin: 0;
}
.venue-svg {
	width: clamp(120px, 22vw, 190px);
	margin: 2rem auto 0;
	opacity: 0.92;
}

/* ============================================================
   EVENT DETAILS  (term : value list)
   ============================================================ */
.details {
	max-width: 720px;
	margin: 2rem auto 0;
	text-align: left;
}
.details .row {
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--edge);
}
.details .row:last-child {
	border-bottom: 0;
}
.details b {
	color: var(--bone);
}
.details,
.details p {
	color: var(--muted);
}
.details a {
	color: var(--ember);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.details a:hover {
	color: var(--bone);
}

/* ============================================================
   FAQ — native <details> accordion (accessible, no JS needed)
   ============================================================ */
.faq {
	max-width: 720px;
	margin: 2rem auto 0;
	text-align: left;
}
.faq details {
	border: 1px solid var(--edge);
	border-radius: 10px;
	margin-bottom: 0.6rem;
	background: rgba(255, 255, 255, 0.02);
	overflow: hidden;
}
.faq summary {
	cursor: pointer;
	padding: 0.95rem 1.15rem;
	font-weight: 600;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: center;
	transition: background 0.2s ease;
}
.faq summary::-webkit-details-marker {
	display: none;
}
.faq summary::after {
	content: '+';
	font-size: 1.4rem;
	color: var(--ember);
	transition: transform 0.2s ease;
	line-height: 1;
}
.faq details[open] summary::after {
	transform: rotate(45deg);
}
.faq summary:hover {
	background: rgba(255, 255, 255, 0.04);
}
.faq .answer {
	padding: 0 1.15rem 1.1rem;
	color: var(--muted);
}
.faq .answer a {
	color: var(--ember);
	text-decoration: underline;
}

/* ---------- Back-to-top bats ---------- */
.to-top {
	display: inline-block;
	margin-top: 3rem;
}
.to-top img {
	width: clamp(80px, 16vw, 140px);
	opacity: 0.85;
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
}
.to-top:hover img {
	opacity: 1;
	transform: translateY(-3px);
}

footer {
	text-align: center;
	padding: 2rem 1rem 3rem;
	color: var(--muted);
	font-size: 0.85rem;
}

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	* {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

/* ============================================================
   ✦ SPACE MAHJONG — cosmic layer (starfield, sparkles, comet)
   Subtle nods to this year's Space Mahjong ruleset.
   Everything here respects prefers-reduced-motion.
   ============================================================ */

/* Fixed starfield behind everything. Two layers: a dense static field
   and a sparser brighter field that twinkles very slowly. */
body::before,
body::after {
	content: '';
	position: fixed;
	inset: -10%;
	z-index: -2;
	pointer-events: none;
	background-repeat: repeat;
}
:root {
	--stars-dense: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22600%22%20height%3D%22600%22%20viewBox%3D%220%200%20600%20600%22%3E%3Ccircle%20cx%3D%227.4%22%20cy%3D%2267.4%22%20r%3D%220.67%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.56%22/%3E%3Ccircle%20cx%3D%2283.2%22%20cy%3D%2267.5%22%20r%3D%220.56%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.59%22/%3E%3Ccircle%20cx%3D%2288.4%22%20cy%3D%22444.4%22%20r%3D%220.86%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.31%22/%3E%3Ccircle%20cx%3D%22321.4%22%20cy%3D%22268.7%22%20r%3D%220.69%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%2255.9%22%20cy%3D%2212.2%22%20r%3D%221.06%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.43%22/%3E%3Ccircle%20cx%3D%22119.1%22%20cy%3D%22198.2%22%20r%3D%220.66%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.68%22/%3E%3Ccircle%20cx%3D%22126.2%22%20cy%3D%22130.2%22%20r%3D%220.81%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.5%22/%3E%3Ccircle%20cx%3D%22572.2%22%20cy%3D%22503.2%22%20r%3D%220.65%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.34%22/%3E%3Ccircle%20cx%3D%22501.8%22%20cy%3D%22593.4%22%20r%3D%220.42%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.58%22/%3E%3Ccircle%20cx%3D%22521.0%22%20cy%3D%22390.7%22%20r%3D%220.55%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.61%22/%3E%3Ccircle%20cx%3D%22437.9%22%20cy%3D%22116.3%22%20r%3D%220.85%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%2224.8%22%20cy%3D%22201.6%22%20r%3D%220.63%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.43%22/%3E%3Ccircle%20cx%3D%22388.1%22%20cy%3D%22501.7%22%20r%3D%221.07%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.69%22/%3E%3Ccircle%20cx%3D%22596.1%22%20cy%3D%22473.9%22%20r%3D%220.61%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.33%22/%3E%3Ccircle%20cx%3D%22374.3%22%20cy%3D%22327.5%22%20r%3D%220.87%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.29%22/%3E%3Ccircle%20cx%3D%22115.7%22%20cy%3D%22552.6%22%20r%3D%220.82%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.56%22/%3E%3Ccircle%20cx%3D%2257.4%22%20cy%3D%22239.5%22%20r%3D%221.04%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.54%22/%3E%3Ccircle%20cx%3D%22595.0%22%20cy%3D%22118.1%22%20r%3D%220.72%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.61%22/%3E%3Ccircle%20cx%3D%22266.8%22%20cy%3D%22473.3%22%20r%3D%220.79%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.3%22/%3E%3Ccircle%20cx%3D%2259.3%22%20cy%3D%22589.8%22%20r%3D%220.48%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.34%22/%3E%3Ccircle%20cx%3D%22201.1%22%20cy%3D%22428.1%22%20r%3D%221.0%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.46%22/%3E%3Ccircle%20cx%3D%22298.9%22%20cy%3D%22473.1%22%20r%3D%220.59%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.42%22/%3E%3Ccircle%20cx%3D%22367.6%22%20cy%3D%22381.7%22%20r%3D%220.43%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.3%22/%3E%3Ccircle%20cx%3D%2282.8%22%20cy%3D%22435.1%22%20r%3D%220.89%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.69%22/%3E%3Ccircle%20cx%3D%22460.5%22%20cy%3D%22152.9%22%20r%3D%220.94%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.69%22/%3E%3Ccircle%20cx%3D%22209.2%22%20cy%3D%226.7%22%20r%3D%220.66%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.38%22/%3E%3Ccircle%20cx%3D%22105.7%22%20cy%3D%2227.1%22%20r%3D%220.49%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.64%22/%3E%3Ccircle%20cx%3D%2230.0%22%20cy%3D%22368.4%22%20r%3D%220.54%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.34%22/%3E%3Ccircle%20cx%3D%22492.4%22%20cy%3D%22179.2%22%20r%3D%220.53%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.45%22/%3E%3Ccircle%20cx%3D%22417.0%22%20cy%3D%22314.6%22%20r%3D%221.0%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.43%22/%3E%3Ccircle%20cx%3D%22314.4%22%20cy%3D%22430.3%22%20r%3D%220.72%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.57%22/%3E%3Ccircle%20cx%3D%22280.1%22%20cy%3D%2280.2%22%20r%3D%220.49%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.6%22/%3E%3Ccircle%20cx%3D%22446.9%22%20cy%3D%22565.7%22%20r%3D%220.88%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.51%22/%3E%3Ccircle%20cx%3D%2299.7%22%20cy%3D%22511.9%22%20r%3D%220.48%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.44%22/%3E%3Ccircle%20cx%3D%2284.4%22%20cy%3D%22228.4%22%20r%3D%220.62%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.44%22/%3E%3Ccircle%20cx%3D%22426.7%22%20cy%3D%22324.9%22%20r%3D%220.57%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.6%22/%3E%3Ccircle%20cx%3D%22441.1%22%20cy%3D%22496.3%22%20r%3D%220.42%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.53%22/%3E%3Ccircle%20cx%3D%22537.2%22%20cy%3D%22155.3%22%20r%3D%220.54%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.62%22/%3E%3Ccircle%20cx%3D%22218.3%22%20cy%3D%22240.8%22%20r%3D%220.97%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.42%22/%3E%3Ccircle%20cx%3D%22119.1%22%20cy%3D%22128.6%22%20r%3D%220.64%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.56%22/%3E%3Ccircle%20cx%3D%22221.0%22%20cy%3D%22462.6%22%20r%3D%220.45%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.36%22/%3E%3Ccircle%20cx%3D%22375.0%22%20cy%3D%22287.7%22%20r%3D%220.75%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.67%22/%3E%3Ccircle%20cx%3D%22166.4%22%20cy%3D%22108.9%22%20r%3D%220.42%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.47%22/%3E%3Ccircle%20cx%3D%22178.3%22%20cy%3D%22284.3%22%20r%3D%220.4%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.25%22/%3E%3Ccircle%20cx%3D%22227.8%22%20cy%3D%22454.6%22%20r%3D%220.61%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.66%22/%3E%3Ccircle%20cx%3D%22347.6%22%20cy%3D%22242.1%22%20r%3D%220.94%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%22363.1%22%20cy%3D%22507.9%22%20r%3D%220.78%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.39%22/%3E%3Ccircle%20cx%3D%2257.6%22%20cy%3D%22344.5%22%20r%3D%220.53%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.42%22/%3E%3Ccircle%20cx%3D%22325.5%22%20cy%3D%22564.7%22%20r%3D%220.87%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.48%22/%3E%3Ccircle%20cx%3D%22515.0%22%20cy%3D%22185.2%22%20r%3D%220.67%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.55%22/%3E%3Ccircle%20cx%3D%22332.5%22%20cy%3D%22133.0%22%20r%3D%220.69%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.62%22/%3E%3Ccircle%20cx%3D%22145.4%22%20cy%3D%22423.5%22%20r%3D%220.43%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.68%22/%3E%3Ccircle%20cx%3D%22410.4%22%20cy%3D%22194.2%22%20r%3D%221.09%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.61%22/%3E%3Ccircle%20cx%3D%2237.0%22%20cy%3D%22149.0%22%20r%3D%220.74%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%2284.4%22%20cy%3D%2228.6%22%20r%3D%220.62%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.27%22/%3E%3Ccircle%20cx%3D%22245.4%22%20cy%3D%22323.1%22%20r%3D%220.71%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.31%22/%3E%3Ccircle%20cx%3D%2213.9%22%20cy%3D%22481.7%22%20r%3D%220.71%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.47%22/%3E%3Ccircle%20cx%3D%22286.8%22%20cy%3D%22411.4%22%20r%3D%221.03%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.62%22/%3E%3Ccircle%20cx%3D%22436.3%22%20cy%3D%22203.3%22%20r%3D%220.52%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.29%22/%3E%3Ccircle%20cx%3D%22515.4%22%20cy%3D%2234.1%22%20r%3D%220.8%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.66%22/%3E%3Ccircle%20cx%3D%22193.4%22%20cy%3D%22233.5%22%20r%3D%220.69%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.68%22/%3E%3Ccircle%20cx%3D%22410.5%22%20cy%3D%22503.3%22%20r%3D%220.43%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.58%22/%3E%3Ccircle%20cx%3D%22270.6%22%20cy%3D%22240.9%22%20r%3D%220.97%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.58%22/%3E%3Ccircle%20cx%3D%22546.3%22%20cy%3D%22443.1%22%20r%3D%221.04%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.44%22/%3E%3Ccircle%20cx%3D%22333.7%22%20cy%3D%22470.9%22%20r%3D%220.72%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.31%22/%3E%3Ccircle%20cx%3D%22351.3%22%20cy%3D%22522.7%22%20r%3D%221.01%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.31%22/%3E%3Ccircle%20cx%3D%22228.6%22%20cy%3D%22137.1%22%20r%3D%220.64%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.68%22/%3E%3Ccircle%20cx%3D%22252.7%22%20cy%3D%22187.9%22%20r%3D%220.59%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.45%22/%3E%3Ccircle%20cx%3D%22401.8%22%20cy%3D%22205.5%22%20r%3D%220.53%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%22156.0%22%20cy%3D%22543.7%22%20r%3D%220.52%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.59%22/%3E%3Ccircle%20cx%3D%2264.9%22%20cy%3D%22471.5%22%20r%3D%220.59%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.6%22/%3E%3Ccircle%20cx%3D%22259.3%22%20cy%3D%2246.9%22%20r%3D%220.47%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.61%22/%3E%3Ccircle%20cx%3D%22325.2%22%20cy%3D%22291.6%22%20r%3D%220.65%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.56%22/%3E%3Ccircle%20cx%3D%22289.4%22%20cy%3D%2237.2%22%20r%3D%220.82%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.39%22/%3E%3Ccircle%20cx%3D%22508.0%22%20cy%3D%22329.4%22%20r%3D%220.94%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.3%22/%3E%3Ccircle%20cx%3D%22424.2%22%20cy%3D%22366.3%22%20r%3D%221.0%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.65%22/%3E%3Ccircle%20cx%3D%22330.9%22%20cy%3D%22355.3%22%20r%3D%220.94%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.37%22/%3E%3Ccircle%20cx%3D%22327.0%22%20cy%3D%22472.1%22%20r%3D%220.82%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.49%22/%3E%3Ccircle%20cx%3D%22513.5%22%20cy%3D%22585.2%22%20r%3D%220.58%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.28%22/%3E%3Ccircle%20cx%3D%22368.1%22%20cy%3D%2289.1%22%20r%3D%221.08%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.46%22/%3E%3Ccircle%20cx%3D%22320.5%22%20cy%3D%22490.4%22%20r%3D%221.01%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.31%22/%3E%3Ccircle%20cx%3D%22272.0%22%20cy%3D%22108.3%22%20r%3D%220.72%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.31%22/%3E%3Ccircle%20cx%3D%22526.2%22%20cy%3D%22213.4%22%20r%3D%220.67%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.65%22/%3E%3Ccircle%20cx%3D%22494.0%22%20cy%3D%22201.6%22%20r%3D%220.75%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.55%22/%3E%3Ccircle%20cx%3D%22112.7%22%20cy%3D%2281.7%22%20r%3D%221.0%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.32%22/%3E%3Ccircle%20cx%3D%22424.7%22%20cy%3D%22442.8%22%20r%3D%220.81%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.41%22/%3E%3Ccircle%20cx%3D%22514.6%22%20cy%3D%22471.9%22%20r%3D%220.45%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.65%22/%3E%3Ccircle%20cx%3D%22382.0%22%20cy%3D%22173.6%22%20r%3D%220.52%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.29%22/%3E%3Ccircle%20cx%3D%22486.8%22%20cy%3D%22508.7%22%20r%3D%220.64%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.33%22/%3E%3Ccircle%20cx%3D%2244.0%22%20cy%3D%22248.4%22%20r%3D%220.61%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.27%22/%3E%3C/svg%3E');
	--stars-sparse: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22600%22%20height%3D%22600%22%20viewBox%3D%220%200%20600%20600%22%3E%3Ccircle%20cx%3D%22178.6%22%20cy%3D%22492.7%22%20r%3D%220.48%22%20fill%3D%22%23e8ddff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%22308.5%22%20cy%3D%2297.1%22%20r%3D%220.44%22%20fill%3D%22%23e8ddff%22%20opacity%3D%220.54%22/%3E%3Ccircle%20cx%3D%2286.3%22%20cy%3D%22584.7%22%20r%3D%221.43%22%20fill%3D%22%23e8ddff%22%20opacity%3D%220.85%22/%3E%3Ccircle%20cx%3D%22539.7%22%20cy%3D%22195.3%22%20r%3D%220.7%22%20fill%3D%22%23e8ddff%22%20opacity%3D%220.93%22/%3E%3Ccircle%20cx%3D%22363.8%22%20cy%3D%22554.0%22%20r%3D%220.83%22%20fill%3D%22%23e8ddff%22%20opacity%3D%220.71%22/%3E%3Ccircle%20cx%3D%22430.7%22%20cy%3D%22529.4%22%20r%3D%220.6%22%20fill%3D%22%23e8ddff%22%20opacity%3D%220.63%22/%3E%3Ccircle%20cx%3D%228.2%22%20cy%3D%22335.8%22%20r%3D%221.51%22%20fill%3D%22%23e8ddff%22%20opacity%3D%220.78%22/%3E%3Ccircle%20cx%3D%2289.2%22%20cy%3D%22414.7%22%20r%3D%221.18%22%20fill%3D%22%23e8ddff%22%20opacity%3D%220.55%22/%3E%3Ccircle%20cx%3D%22548.5%22%20cy%3D%22396.0%22%20r%3D%220.99%22%20fill%3D%22%23e8ddff%22%20opacity%3D%220.67%22/%3E%3Ccircle%20cx%3D%2296.3%22%20cy%3D%22280.7%22%20r%3D%220.84%22%20fill%3D%22%23e8ddff%22%20opacity%3D%220.62%22/%3E%3Ccircle%20cx%3D%22387.8%22%20cy%3D%22397.1%22%20r%3D%221.55%22%20fill%3D%22%23e8ddff%22%20opacity%3D%220.98%22/%3E%3Ccircle%20cx%3D%22279.6%22%20cy%3D%22429.7%22%20r%3D%220.85%22%20fill%3D%22%23e8ddff%22%20opacity%3D%220.72%22/%3E%3Ccircle%20cx%3D%22340.2%22%20cy%3D%22588.8%22%20r%3D%220.45%22%20fill%3D%22%23e8ddff%22%20opacity%3D%220.73%22/%3E%3Ccircle%20cx%3D%22201.9%22%20cy%3D%22482.9%22%20r%3D%221.54%22%20fill%3D%22%23e8ddff%22%20opacity%3D%220.74%22/%3E%3Ccircle%20cx%3D%2247.9%22%20cy%3D%22356.6%22%20r%3D%221.11%22%20fill%3D%22%23e8ddff%22%20opacity%3D%220.84%22/%3E%3Ccircle%20cx%3D%22466.0%22%20cy%3D%22278.0%22%20r%3D%221.06%22%20fill%3D%22%23e8ddff%22%20opacity%3D%220.88%22/%3E%3Ccircle%20cx%3D%2216.4%22%20cy%3D%22144.0%22%20r%3D%221.23%22%20fill%3D%22%23e8ddff%22%20opacity%3D%220.99%22/%3E%3Ccircle%20cx%3D%22566.0%22%20cy%3D%22169.1%22%20r%3D%221.57%22%20fill%3D%22%23e8ddff%22%20opacity%3D%220.64%22/%3E%3Ccircle%20cx%3D%22271.7%22%20cy%3D%2295.3%22%20r%3D%221.12%22%20fill%3D%22%23e8ddff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%22411.0%22%20cy%3D%22574.3%22%20r%3D%220.55%22%20fill%3D%22%23e8ddff%22%20opacity%3D%220.83%22/%3E%3Ccircle%20cx%3D%22361.0%22%20cy%3D%22164.5%22%20r%3D%220.44%22%20fill%3D%22%23e8ddff%22%20opacity%3D%220.97%22/%3E%3Ccircle%20cx%3D%22417.1%22%20cy%3D%22375.1%22%20r%3D%220.52%22%20fill%3D%22%23e8ddff%22%20opacity%3D%220.95%22/%3E%3Ccircle%20cx%3D%22239.4%22%20cy%3D%22279.1%22%20r%3D%221.07%22%20fill%3D%22%23e8ddff%22%20opacity%3D%220.72%22/%3E%3Ccircle%20cx%3D%22572.1%22%20cy%3D%22280.4%22%20r%3D%221.21%22%20fill%3D%22%23e8ddff%22%20opacity%3D%220.89%22/%3E%3Ccircle%20cx%3D%22559.7%22%20cy%3D%22102.2%22%20r%3D%220.81%22%20fill%3D%22%23e8ddff%22%20opacity%3D%220.97%22/%3E%3Ccircle%20cx%3D%22363.7%22%20cy%3D%22223.6%22%20r%3D%221.46%22%20fill%3D%22%23e8ddff%22%20opacity%3D%220.56%22/%3E%3C/svg%3E');
}
body::before {
	background-image: var(--stars-dense);
	background-size: 600px 600px;
	opacity: 0.9;
}
body::after {
	background-image: var(--stars-sparse);
	background-size: 600px 600px;
	opacity: 0.7;
}

/* A handful of individual stars that flicker slowly — and a few that drift —
   like the real night sky. Generated by cosmos.js. No cursor interaction. */
.starlayer {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	overflow: hidden;
}
.tw {
	position: absolute;
	width: var(--s, 2px);
	height: var(--s, 2px);
	border-radius: 50%;
	background: radial-gradient(
		circle,
		#fff 0%,
		rgba(232, 221, 255, 0.9) 45%,
		transparent 70%
	);
	opacity: var(--base, 0.5);
	will-change: opacity, transform;
}
@media (prefers-reduced-motion: no-preference) {
	.tw {
		animation: flicker var(--dur, 9s) ease-in-out var(--delay, 0s) infinite;
	}
	.tw.drift {
		animation:
			flicker var(--dur, 9s) ease-in-out var(--delay, 0s) infinite,
			drift var(--ddur, 60s) ease-in-out var(--delay, 0s) infinite alternate;
	}
}
/* mostly steady, with an occasional slow flare — "every now and then" */
@keyframes flicker {
	0%,
	58%,
	100% {
		opacity: var(--base, 0.5);
	}
	70% {
		opacity: calc(var(--base, 0.5) * 0.4);
	}
	82% {
		opacity: 1;
	}
	90% {
		opacity: var(--base, 0.5);
	}
}
@keyframes drift {
	from {
		transform: translate(0, 0);
	}
	to {
		transform: translate(var(--dx, 14px), var(--dy, -10px));
	}
}

/* A rare, faint comet drifting across the hero — one quiet space moment */
.hero::after {
	content: '';
	position: absolute;
	top: 12%;
	left: -20%;
	width: 42%;
	height: 1px;
	z-index: 0;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(232, 221, 255, 0.9) 70%,
		#fff
	);
	filter: drop-shadow(0 0 6px rgba(232, 221, 255, 0.8));
	opacity: 0;
	transform: rotate(14deg);
}
@media (prefers-reduced-motion: no-preference) {
	.hero::after {
		animation: comet 14s ease-in 4s infinite;
	}
}
@keyframes comet {
	0% {
		opacity: 0;
		transform: translate(0, 0) rotate(14deg) scaleX(0.2);
	}
	4% {
		opacity: 1;
	}
	12% {
		opacity: 0;
		transform: translate(150vw, 38vh) rotate(14deg) scaleX(1);
	}
	100% {
		opacity: 0;
		transform: translate(150vw, 38vh) rotate(14deg);
	}
}

/* ---- Sparkle-on-hover for the contest links (esp. Space Mahjong) ---- */
.demand-card h3 a,
.demand-body a {
	position: relative;
	transition:
		color 0.25s ease,
		text-shadow 0.25s ease;
}
.demand-body a {
	color: var(--bone);
	text-decoration: underline;
	text-decoration-color: rgba(232, 221, 255, 0.5);
	text-underline-offset: 3px;
}
.demand-card h3 a:hover,
.demand-body a:hover {
	color: #eae0ff;
	text-shadow:
		0 0 10px rgba(180, 150, 255, 0.7),
		0 0 22px rgba(120, 90, 220, 0.45);
}

/* the twinkling stars themselves, drawn with mask so they inherit a bright tint */
.demand-card h3 a::before,
.demand-card h3 a::after,
.demand-body a::before,
.demand-body a::after {
	content: '';
	position: absolute;
	width: 13px;
	height: 13px;
	background: linear-gradient(180deg, #fff, #d9c8ff);
	-webkit-mask: url('files/sparkle.svg') center / contain no-repeat;
	mask: url('files/sparkle.svg') center / contain no-repeat;
	opacity: 0;
	transform: scale(0.2) rotate(0deg);
	pointer-events: none;
}
.demand-card h3 a::before,
.demand-body a::before {
	top: -10px;
	right: -14px;
}
.demand-card h3 a::after,
.demand-body a::after {
	bottom: -8px;
	left: -12px;
	width: 9px;
	height: 9px;
}

@media (prefers-reduced-motion: no-preference) {
	.demand-card h3 a:hover::before,
	.demand-body a:hover::before {
		animation: spark 900ms ease-in-out infinite;
	}
	.demand-card h3 a:hover::after,
	.demand-body a:hover::after {
		animation: spark 900ms ease-in-out 0.45s infinite;
	}
}
/* reduced-motion users still get a static sparkle, just no twinkle */
@media (prefers-reduced-motion: reduce) {
	.demand-card h3 a:hover::before,
	.demand-card h3 a:hover::after,
	.demand-body a:hover::before,
	.demand-body a:hover::after {
		opacity: 0.9;
		transform: scale(1);
	}
}
@keyframes spark {
	0%,
	100% {
		opacity: 0;
		transform: scale(0.2) rotate(0deg);
	}
	40% {
		opacity: 1;
		transform: scale(1) rotate(90deg);
	}
	70% {
		opacity: 0.6;
		transform: scale(0.85) rotate(160deg);
	}
}

/* Section titles get a faint cosmic halo to tie the theme together */
.section-title {
	text-shadow:
		0 2px 24px rgba(120, 90, 220, 0.28),
		0 0 2px rgba(232, 221, 255, 0.25);
}

/* ============================================================
   SUB-PAGES  (Rules, Costume, Quiz, Payment, Registration, …)
   Shared look so every page matches the home page.
   ============================================================ */
.subpage-nav {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
	padding-top: calc(0.7rem + env(safe-area-inset-top, 0px));
	background: rgba(6, 6, 10, 0.72);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--edge);
}
.subpage-nav .brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
	color: var(--bone);
}
.subpage-nav .brand img {
	width: 116px;
	height: auto;
}
.subpage-nav .brand span {
	font-family: var(--display);
	letter-spacing: 0.12em;
	font-size: 0.95rem;
}
.subpage-nav .back {
	text-decoration: none;
	color: var(--muted);
	font-size: 0.95rem;
	transition: color 0.2s ease;
	white-space: nowrap;
}
.subpage-nav .back:hover {
	color: var(--ember);
}

.subpage {
	width: min(92vw, 820px);
	margin: clamp(2rem, 6vw, 4rem) auto;
	text-align: center;
}
.subpage-title {
	font-family: var(--display);
	font-size: clamp(1.9rem, 6vw, 3.2rem);
	letter-spacing: 0.04em;
	margin: 0 0 0.3rem;
}
.subpage-sub {
	color: var(--muted);
	margin: 0 auto 2rem;
	max-width: 60ch;
}

.panel {
	text-align: left;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--edge);
	border-radius: var(--radius);
	padding: clamp(1.25rem, 4vw, 2.25rem);
	margin: 0 auto 1.5rem;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.panel h2 {
	font-size: clamp(1.2rem, 3vw, 1.6rem);
	margin: 0.2rem 0 1rem;
	letter-spacing: 0.03em;
	color: var(--bone);
}
.panel h2:not(:first-child) {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--edge);
}
.panel p {
	color: var(--muted);
}
.panel a {
	color: var(--ember);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.panel a:hover {
	color: var(--bone);
}

/* rule / bullet lists */
.rules {
	list-style: none;
	margin: 0;
	padding: 0;
}
.rules li {
	position: relative;
	padding: 0.55rem 0 0.55rem 1.6rem;
	color: var(--bone);
	border-bottom: 1px solid var(--edge);
}
.rules li:last-child {
	border-bottom: 0;
}
.rules li::before {
	content: '✦';
	position: absolute;
	left: 0;
	color: var(--blood);
	font-size: 0.8rem;
	top: 0.8rem;
}

/* rulecard deck pills */
.decks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 1rem 0;
}
.deck {
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	border: 1px solid var(--edge);
}
.deck.dealer {
	color: #ffd98a;
	border-color: rgba(255, 180, 80, 0.4);
	background: rgba(255, 180, 80, 0.08);
}
.deck.fortune {
	color: #9be7a0;
	border-color: rgba(120, 230, 140, 0.4);
	background: rgba(120, 230, 140, 0.08);
}
.deck.curse {
	color: #ff8aa0;
	border-color: rgba(255, 90, 120, 0.4);
	background: rgba(255, 90, 120, 0.08);
}

/* collapsible extra section (native details) */
.panel details {
	border: 1px solid var(--edge);
	border-radius: 10px;
	padding: 0 1rem;
	margin-top: 1rem;
	background: rgba(255, 255, 255, 0.02);
}
.panel details summary {
	cursor: pointer;
	padding: 0.9rem 0;
	font-weight: 600;
	list-style: none;
	color: var(--ember);
}
.panel details summary::-webkit-details-marker {
	display: none;
}
.panel details[open] {
	padding-bottom: 1rem;
}

/* payment QR grid */
.qr-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 1.5rem;
}
.qr-card {
	text-align: center;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--edge);
	border-radius: var(--radius);
	padding: 1.25rem;
}
.qr-card img {
	width: 100%;
	max-width: 240px;
	margin: 0 auto 0.75rem;
	border-radius: 8px;
	background: #fff;
	padding: 8px;
}
.qr-card h3 {
	margin: 0;
	font-size: 1.1rem;
}

/* standings table */
.standings {
	width: 100%;
	border-collapse: collapse;
}
.standings th,
.standings td {
	padding: 0.6rem 0.8rem;
	border-bottom: 1px solid var(--edge);
	text-align: left;
}
.standings th {
	color: var(--muted);
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
}
.standings td:last-child,
.standings th:last-child {
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.standings tr:nth-child(-n + 4) td:first-child {
	color: var(--ember);
	font-weight: 700;
}
.standings .rank {
	color: var(--muted);
	width: 3ch;
}

/* forms */
.form {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	text-align: left;
}
.field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}
.field label {
	font-weight: 600;
	color: var(--bone);
	font-size: 0.95rem;
}
.field small {
	color: var(--muted);
	font-weight: 400;
}
.field input,
.field select,
.field textarea {
	font: inherit;
	color: var(--bone);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--edge);
	border-radius: 8px;
	padding: 0.7rem 0.85rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: 2px solid var(--blood);
	outline-offset: 1px;
	border-color: transparent;
}
.field select option {
	background: var(--stone);
}
.form .cta {
	align-self: flex-start;
	cursor: pointer;
	border: 0;
	margin-top: 0.5rem;
}
.note {
	color: var(--muted);
	font-size: 0.9rem;
}

/* ============================================================
   ✍  DRAMATIC INTRO  — character reveal + emphasized finale
   The intro paragraph writes itself out, then reveals the
   emphasized phrase (wrapped in [[ ]] in the EVENT.intro text).
   ============================================================ */
.lede.typing {
	min-height: 1em;
}
.lede .ch {
	position: relative;
	opacity: 0;
}
/* each character flares softly as it lands — "oomph" without breaking wrapping */
.lede .ch.on {
	animation: chPop 0.5s ease both;
}
@keyframes chPop {
	0% {
		opacity: 0;
		text-shadow: 0 0 12px rgba(200, 180, 255, 0.95);
	}
	55% {
		opacity: 1;
	}
	100% {
		opacity: 1;
		text-shadow: none;
	}
}
/* blinking caret rides the currently-typed character (no layout shift) */
.lede .ch.at::after {
	content: '';
	position: absolute;
	right: -3px;
	top: 0.02em;
	width: 3px;
	height: 1.12em;
	background: var(--ember);
	box-shadow:
		0 0 10px var(--ember),
		0 0 18px rgba(255, 90, 54, 0.6);
	animation: caretBlink 0.7s steps(1) infinite;
}
@keyframes caretBlink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

/* the emphasized finale — creeps through from the dark, then holds SHARP & readable */
.lede .reveal {
	display: inline-block;
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.18em;
	letter-spacing: 0.12em;
	color: #f6efff;
	opacity: 0;
	transform: scale(0.72);
	filter: blur(6px) brightness(0.12);
}
@media (prefers-reduced-motion: no-preference) {
	.lede .reveal.in {
		animation: revealEmerge 1.8s cubic-bezier(0.22, 0.66, 0.2, 1) both;
	}
}
/* reduced-motion / fallback: just show the readable resting state */
.lede .reveal.in {
	opacity: 1;
}
@keyframes revealEmerge {
	/* deep behind the wall: dark, blurred, small */
	0% {
		opacity: 0;
		transform: scale(0.72);
		filter: blur(6px) brightness(0.12);
		letter-spacing: 0.24em;
		text-shadow:
			0 0 1.5px rgba(0, 0, 0, 0),
			0 2px 5px rgba(0, 0, 0, 0),
			0 0 22px rgba(210, 30, 50, 0);
	}
	20% {
		opacity: 1;
		transform: scale(0.82);
		filter: blur(4px) brightness(0.28);
	}
	/* pushing through, sharpening */
	46% {
		transform: scale(0.965);
		filter: blur(0.4px) brightness(0.8);
		letter-spacing: 0.16em;
		text-shadow:
			0 0 1.5px rgba(0, 0, 0, 0.6),
			0 2px 5px rgba(0, 0, 0, 0.45),
			0 0 24px rgba(215, 30, 50, 0.7);
	}
	/* eerie flicker + a glitchy jitter, as if breaking the screen */
	55% {
		transform: translateX(-1.6px) scale(0.982);
		filter: blur(0) brightness(0.3);
	}
	59% {
		transform: translateX(1.4px) scale(0.99);
		filter: blur(0) brightness(1.08);
	}
	67% {
		transform: translateX(-0.8px) scale(1);
		filter: blur(0) brightness(0.46);
	}
	72% {
		transform: translateX(0) scale(1);
		filter: blur(0) brightness(1.04);
	}
	81% {
		filter: blur(0) brightness(0.7);
	}
	86% {
		filter: blur(0) brightness(1);
	}
	/* settled in front of the wall: crisp, dark-edged, faint red menace */
	100% {
		opacity: 1;
		transform: scale(1);
		filter: blur(0) brightness(1);
		letter-spacing: 0.12em;
		text-shadow:
			0 0 1.5px rgba(0, 0, 0, 0.95),
			0 2px 5px rgba(0, 0, 0, 0.7),
			0 0 18px rgba(190, 25, 45, 0.5);
	}
}

/* Motion-off: no typing, show everything at rest */
@media (prefers-reduced-motion: reduce) {
	.lede .ch {
		opacity: 1 !important;
		animation: none !important;
	}
	.lede .ch.at::after {
		display: none;
	}
	.lede .reveal {
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
		letter-spacing: 0.12em;
		text-shadow:
			0 0 1.5px rgba(0, 0, 0, 0.95),
			0 2px 5px rgba(0, 0, 0, 0.7),
			0 0 18px rgba(190, 25, 45, 0.5);
	}
	.tw {
		animation: none !important;
	}
}

/* ============================================================
   🎞  PAST YEARS  — link + horizontal media carousel + lightbox
   ============================================================ */
.past-link {
	display: inline-block;
	margin: 0.25rem 0 2rem;
	padding: 0.7rem 1.6rem;
	font-weight: 600;
	color: #eae0ff;
	text-decoration: none;
	border: 1px solid rgba(180, 150, 255, 0.35);
	border-radius: 999px;
	background: rgba(120, 90, 220, 0.12);
	transition:
		background 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.15s ease;
}
.past-link:hover {
	background: rgba(120, 90, 220, 0.22);
	box-shadow: 0 0 18px rgba(150, 120, 255, 0.35);
	transform: translateY(-1px);
}

.carousel {
	position: relative;
}

.carousel-track {
	display: flex;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0.5rem 2px 1.25rem;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	scrollbar-color: rgba(180, 150, 255, 0.4) transparent;
	-webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar {
	height: 8px;
}
.carousel-track::-webkit-scrollbar-thumb {
	background: rgba(180, 150, 255, 0.35);
	border-radius: 8px;
}

.slide {
	flex: 0 0 auto;
	height: clamp(200px, 42vw, 320px);
	scroll-snap-align: center;
}
.slide-btn {
	height: 100%;
	padding: 0;
	border: 1px solid var(--edge);
	border-radius: var(--radius);
	overflow: hidden;
	background: #000;
	cursor: pointer;
	position: relative;
	display: block;
	transition:
		transform 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}
.slide-btn img {
	height: 100%;
	width: auto;
	display: block;
	object-fit: cover;
}
.slide-btn:hover,
.slide-btn:focus-visible {
	transform: translateY(-3px);
	border-color: rgba(180, 150, 255, 0.6);
	box-shadow:
		0 14px 32px rgba(0, 0, 0, 0.55),
		0 0 22px rgba(150, 120, 255, 0.25);
	outline: none;
}
.play-badge {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 58px;
	height: 58px;
	display: grid;
	place-items: center;
	font-size: 1.3rem;
	color: #fff;
	background: rgba(10, 8, 16, 0.55);
	border: 1.5px solid rgba(255, 255, 255, 0.7);
	border-radius: 50%;
	padding-left: 4px; /* optical centering of ▶ */
	backdrop-filter: blur(2px);
	pointer-events: none;
}

/* prev / next arrows */
.carousel-nav {
	position: absolute;
	top: calc(50% - 0.6rem);
	transform: translateY(-50%);
	z-index: 3;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	font-size: 1.6rem;
	line-height: 1;
	color: var(--bone);
	background: rgba(10, 8, 16, 0.75);
	border: 1px solid var(--edge);
	border-radius: 50%;
	cursor: pointer;
	backdrop-filter: blur(6px);
	transition:
		background 0.2s ease,
		opacity 0.2s ease;
}
.carousel-nav:hover {
	background: rgba(120, 90, 220, 0.5);
}
.carousel-nav.prev {
	left: -6px;
}
.carousel-nav.next {
	right: -6px;
}
.carousel-nav:disabled {
	opacity: 0;
	pointer-events: none;
}
@media (max-width: 620px) {
	.carousel-nav {
		display: none;
	}
} /* swipe on phones */

/* ---- Lightbox ---- */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
}
.lightbox[hidden] {
	display: none;
}
.lightbox:not([hidden]) {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(3vw, env(safe-area-inset-top, 0px)) 3vw;
	background: rgba(4, 3, 8, 0.92);
	backdrop-filter: blur(8px);
}
@media (prefers-reduced-motion: no-preference) {
	.lightbox:not([hidden]) {
		animation: lbIn 0.25s ease;
	}
}
@keyframes lbIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
.lb-stage {
	max-width: 92vw;
	max-height: 86vh;
	display: flex;
}
.lb-stage img,
.lb-stage video {
	max-width: 92vw;
	max-height: 86vh;
	width: auto;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
	background: #000;
}
.lb-close,
.lb-nav {
	position: absolute;
	z-index: 2;
	color: var(--bone);
	background: rgba(20, 16, 28, 0.7);
	border: 1px solid var(--edge);
	cursor: pointer;
	backdrop-filter: blur(6px);
	transition: background 0.2s ease;
}
.lb-close:hover,
.lb-nav:hover {
	background: rgba(120, 90, 220, 0.55);
}
.lb-close {
	top: calc(14px + env(safe-area-inset-top, 0px));
	right: 16px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 1.1rem;
}
.lb-nav {
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 52px;
	border-radius: 50%;
	font-size: 1.9rem;
	line-height: 1;
}
.lb-prev {
	left: 14px;
}
.lb-next {
	right: 14px;
}
@media (max-width: 620px) {
	.lb-nav {
		width: 44px;
		height: 44px;
		font-size: 1.5rem;
	}
	.lb-prev {
		left: 8px;
	}
	.lb-next {
		right: 8px;
	}
}

/* ============================================================
   🩸  REGISTRATION  — front-page form + public "wall of names"
   ============================================================ */
.register-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(1rem, 3vw, 1.75rem);
	margin-top: 2rem;
	text-align: left;
	align-items: start;
}
@media (max-width: 780px) {
	.register-grid {
		grid-template-columns: 1fr;
	}
}

.register-form-wrap,
.register-list-wrap {
	margin: 0;
}

.field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
@media (max-width: 420px) {
	.field-row {
		grid-template-columns: 1fr;
	}
}

.check {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--muted);
	font-size: 0.95rem;
	cursor: pointer;
}
.check input {
	width: 18px;
	height: 18px;
	accent-color: var(--blood);
}

.reg-status {
	min-height: 1.2em;
	margin: 0.2rem 0 0;
	font-size: 0.95rem;
	color: #9be7a0;
}
.reg-status.err {
	color: #ff8aa0;
}

.demo-note,
.reg-closed {
	border-radius: 10px;
	padding: 0.8rem 1rem;
	font-size: 0.9rem;
	margin-bottom: 1.1rem;
}
.demo-note {
	background: rgba(255, 180, 80, 0.1);
	border: 1px solid rgba(255, 180, 80, 0.35);
	color: #ffd98a;
}
.reg-closed {
	background: rgba(207, 23, 48, 0.1);
	border: 1px solid rgba(207, 23, 48, 0.35);
	color: #ff9aa8;
	text-align: center;
	font-weight: 600;
}

/* ---- wall of names ---- */
.reg-count {
	display: flex;
	align-items: baseline;
	gap: 0.5rem 1rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}
.reg-count-n {
	font-family: var(--display);
	font-size: clamp(2rem, 6vw, 3rem);
	color: var(--bone);
	line-height: 1;
	text-shadow: 0 0 20px rgba(207, 23, 48, 0.4);
}
.reg-count-label {
	color: var(--muted);
}
.reg-cap {
	margin-left: auto;
	color: var(--ember);
	font-variant-numeric: tabular-nums;
	font-size: 0.95rem;
}

.reg-wall {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	max-height: 340px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(180, 150, 255, 0.4) transparent;
}
.reg-name {
	padding: 0.38rem 0.8rem;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--edge);
	font-size: 0.92rem;
	color: var(--bone);
	animation: nameIn 0.4s ease both;
}
.reg-name.playing {
	border-color: rgba(207, 23, 48, 0.45);
	background: rgba(207, 23, 48, 0.1);
}
@keyframes nameIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	.reg-name {
		animation: none;
	}
}
.reg-empty {
	color: var(--muted);
	margin: 0.5rem 0 0;
}

/* ============================================================
   ☰  FLOATING BURGER QUICK-NAV (front page)
   ============================================================ */
.burger {
	position: fixed;
	z-index: 900;
	top: calc(14px + env(safe-area-inset-top, 0px));
	right: 16px;
}
.burger-btn {
	width: 50px;
	height: 50px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: rgba(10, 8, 16, 0.72);
	border: 1px solid var(--edge);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
	transition:
		background 0.2s ease,
		box-shadow 0.2s ease;
}
.burger-btn:hover {
	background: rgba(120, 90, 220, 0.35);
}
.burger-lines {
	display: block;
	width: 22px;
	height: 16px;
	position: relative;
}
.burger-lines span {
	position: absolute;
	left: 0;
	height: 2px;
	width: 100%;
	background: var(--bone);
	border-radius: 2px;
	transition:
		transform 0.28s ease,
		opacity 0.2s ease,
		top 0.28s ease;
}
.burger-lines span:nth-child(1) {
	top: 0;
}
.burger-lines span:nth-child(2) {
	top: 7px;
}
.burger-lines span:nth-child(3) {
	top: 14px;
}
.burger.open .burger-lines span:nth-child(1) {
	top: 7px;
	transform: rotate(45deg);
}
.burger.open .burger-lines span:nth-child(2) {
	opacity: 0;
}
.burger.open .burger-lines span:nth-child(3) {
	top: 7px;
	transform: rotate(-45deg);
}

.burger-menu {
	list-style: none;
	margin: 0.6rem 0 0;
	padding: 0.4rem;
	position: absolute;
	right: 0;
	top: 100%;
	min-width: 200px;
	background: rgba(12, 10, 18, 0.92);
	border: 1px solid var(--edge);
	border-radius: 14px;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
	opacity: 0;
	transform: translateY(-8px) scale(0.97);
	transform-origin: top right;
	pointer-events: none;
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
}
.burger.open .burger-menu {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}
.burger-menu a {
	display: block;
	padding: 0.6rem 0.9rem;
	border-radius: 9px;
	color: var(--bone);
	text-decoration: none;
	font-size: 0.98rem;
	transition:
		background 0.15s ease,
		color 0.15s ease;
}
.burger-menu a:hover {
	background: rgba(255, 255, 255, 0.07);
	color: var(--ember);
}
.burger-cta {
	color: #eae0ff !important;
	background: rgba(207, 23, 48, 0.16);
	margin-top: 0.2rem;
	font-weight: 600;
}
.burger-cta:hover {
	background: rgba(207, 23, 48, 0.3) !important;
	color: #fff !important;
}
@media (prefers-reduced-motion: reduce) {
	.burger-menu,
	.burger-lines span {
		transition: none;
	}
}

/* ---- paid / not-paid indicator on each registrant ---- */
.reg-name {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}
.paid-box {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
	border: 1.5px solid var(--muted);
	border-radius: 4px;
	position: relative;
	background: transparent;
}
.paid-box.is-paid {
	background: #3fae6b;
	border-color: #3fae6b;
}
.paid-box.is-paid::after {
	content: '';
	position: absolute;
	left: 4px;
	top: 1px;
	width: 4px;
	height: 8px;
	border: solid #06120b;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.reg-legend {
	color: var(--muted);
	font-size: 0.82rem;
	margin: 0.9rem 0 0;
	display: flex;
	align-items: center;
}
.reg-legend .paid-box {
	display: inline-block;
	vertical-align: middle;
	margin: 0 0.35rem;
	width: 13px;
	height: 13px;
}

/* ============================================================
   🪦  TOMBSTONE — registered names on the carved stone
   ============================================================ */
.tombstone-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* souls-captured header — now OUTSIDE the stone, like before */
.tombstone-wrap .reg-count {
	display: flex;
	align-items: baseline;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.3rem 0.9rem;
	text-align: center;
	margin: 0 0 0.9rem;
}
.tombstone-wrap .reg-count-n {
	font-family: var(--display);
	font-size: clamp(2rem, 6vw, 3rem);
	line-height: 1;
	color: var(--bone);
	text-shadow: 0 0 20px rgba(207, 23, 48, 0.4);
}
.tombstone-wrap .reg-count-label {
	color: var(--muted);
}
.tombstone-wrap .reg-cap {
	margin-left: 0;
	color: var(--ember);
	font-variant-numeric: tabular-nums;
	font-size: 0.95rem;
}

/* the stone — larger, cropped tight, top-aligned with the form */
.tombstone {
	position: relative;
	width: 100%;
	max-width: 430px;
	aspect-ratio: 457 / 637;
	background: url('media/tombstone.webp') center / contain no-repeat;
	filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.5));
	/* dissolve the hard bottom edge so it blends into the page */
	-webkit-mask-image: linear-gradient(
		to bottom,
		#000 83%,
		rgba(0, 0, 0, 0.4) 93%,
		transparent 100%
	);
	mask-image: linear-gradient(
		to bottom,
		#000 83%,
		rgba(0, 0, 0, 0.4) 93%,
		transparent 100%
	);
}
/* only the names live inside the stone now */
.tombstone .reg-wall {
	position: absolute;
	left: 50%;
	top: 45%;
	transform: translate(-50%, -50%);
	width: 82%;
	flex-wrap: nowrap;
	/* ~15 names fit; the rest scrolls */
	max-height: 70%;
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 0, 0, 0.35) transparent;
}
.tombstone .reg-wall::-webkit-scrollbar {
	width: 4px;
}
.tombstone .reg-wall::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.3);
	border-radius: 4px;
}
.tombstone .reg-name {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 1.75rem;
	flex: 0 0 auto;
	padding: 0;
	margin: 0;
	background: none;
	border: 0;
	border-radius: 0;
	text-align: center;
	font-family: var(--display);
	font-weight: 700;
	letter-spacing: 0.01em;
	font-size: clamp(0.92rem, 2vw, 1.12rem);
	line-height: 1.1;
	color: #16161b;
	text-shadow:
		0 1px 0 rgba(255, 255, 255, 0.65),
		0 -0.5px 0 rgba(0, 0, 0, 0.22);
	animation: none;
	min-width: 0;
}
.tombstone .reg-name-t {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.tombstone .reg-name.playing {
	color: #08080c;
}
/* paid names are etched in Dracula red */
.tombstone .reg-name.paid {
	color: var(--blood);
}
.tombstone .paid-box {
	width: 13px;
	height: 13px;
	flex: 0 0 auto;
	border-radius: 2px;
	border: 1.5px solid rgba(0, 0, 0, 0.65);
	background: rgba(255, 255, 255, 0.28);
	box-shadow:
		inset 0 1px 1px rgba(0, 0, 0, 0.35),
		0 1px 0 rgba(255, 255, 255, 0.5);
}
.tombstone .paid-box.is-paid {
	background: #4e7a2e;
	border-color: #2f4a1c;
}
.tombstone .paid-box.is-paid::after {
	left: 3px;
	top: 0;
	width: 4px;
	height: 7px;
	border-color: #f2f7e8;
	border-width: 0 2px 2px 0;
}
.tombstone .reg-empty {
	position: absolute;
	top: 42%;
	left: 18%;
	right: 26%;
	text-align: center;
	color: #3a3a42;
	font-size: 0.8rem;
	margin: 0;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
/* legend below the stone */
.tombstone-wrap .reg-legend {
	justify-content: center;
	margin-top: 0.9rem;
}

/* mahjong hand illustrations inside detail pages */
.hand {
	display: block;
	max-width: min(100%, 430px);
	height: auto;
	margin: 0.5rem 0 0.3rem;
	padding: 0.45rem 0.6rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--edge);
	border-radius: 10px;
}

/* ---- newly added names get "etched" into the stone ---- */
.tombstone .reg-name.etching {
	position: relative;
}
.tombstone .reg-name.etching .reg-name-t {
	animation: etch 2s cubic-bezier(0.25, 0.1, 0.25, 1) both;
}
@keyframes etch {
	0% {
		clip-path: inset(0 100% 0 0);
		filter: brightness(1.9);
	}
	100% {
		clip-path: inset(0 0 0 0);
		filter: brightness(1);
	}
}
/* a chisel-dust glint sweeping across as the name is carved */
.tombstone .reg-name.etching::after {
	content: '';
	position: absolute;
	top: 2px;
	bottom: 2px;
	left: 0;
	width: 14px;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.6),
		transparent
	);
	filter: blur(1px);
	animation: etchGlint 2s ease-in both;
}
@keyframes etchGlint {
	0% {
		left: 0;
		opacity: 0.9;
	}
	90% {
		opacity: 0.6;
	}
	100% {
		left: 100%;
		opacity: 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	.tombstone .reg-name.etching .reg-name-t {
		animation: none;
	}
	.tombstone .reg-name.etching::after {
		display: none;
	}
}

/* colour key under the tombstone: red = paid, black = not paid yet */
.tombstone-wrap .reg-legend {
	justify-content: center;
	align-items: center;
	gap: 0;
	margin-top: 1rem;
	color: var(--muted);
	font-size: 0.9rem;
	text-align: center;
}
.reg-legend .legend-paid {
	color: var(--blood);
	font-weight: 800;
	padding-right: 0.25rem;
}

/* visually-hidden text for screen readers (keeps content accessible without visible layout) */
.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
