@font-face {
	font-family: "Fredoka";
	src: url("/assets/fonts/Fredoka-SemiBold.ttf") format("truetype");
	font-weight: 600;
	font-display: swap;
}

:root {
	--bg-deep: #0c0e14;
	--bg-card: #141824;
	--bg-card-hover: #1a2030;
	--text: #e8ecf4;
	--text-muted: #9aa3b5;
	--gold: #f1c40f;
	--gold-dim: #c9a008;
	/* Owned-accent design tokens (shared source of truth — used by /play polish too).
	   Gold is the product's primary accent; --accent (Discord blurple) is reserved
	   for Discord-specific actions, not general primary UI. */
	--gold-bright: #ffd75e;
	--gold-grad: linear-gradient(180deg, #ffe07a 0%, #f5c518 48%, #d99e06 100%);
	--gold-grad-soft: linear-gradient(180deg, rgba(255, 224, 122, 0.16), rgba(217, 158, 6, 0.06));
	--gold-glow: 0 6px 18px -6px rgba(241, 196, 15, 0.6), 0 0 0 1px rgba(241, 196, 15, 0.35);
	--font-display: "Fredoka", "Inter", system-ui, sans-serif;
	--font-numeric: "Fredoka", "Inter", system-ui, sans-serif;
	/* Discord brand — keep for "Connect/Join Discord" affordances only. */
	--accent: #5865f2;
	--accent-hover: #4752c4;
	--magic: #9b59b6;
	--thrill: #e74c3c;
	--wayfinder: #2ecc71;
	--border: rgba(255, 255, 255, 0.08);
	--radius: 14px;
	--shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	--max: 1080px;
}

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

html {
	scroll-behavior: smooth;
	overflow-x: clip;
}

body {
	margin: 0;
	overflow-x: clip;
	font-family: "Inter", system-ui, -apple-system, sans-serif;
	background: var(--bg-deep);
	color: var(--text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	background:
		radial-gradient(ellipse 80% 50% at 50% -10%, rgba(88, 101, 242, 0.18), transparent),
		radial-gradient(ellipse 60% 40% at 100% 20%, rgba(241, 196, 15, 0.08), transparent),
		radial-gradient(ellipse 50% 30% at 0% 80%, rgba(155, 89, 182, 0.1), transparent);
	pointer-events: none;
	z-index: -1;
}

a {
	color: var(--gold);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* Keep in-page anchor targets clear of the sticky header. */
[id] {
	scroll-margin-top: 5.5rem;
}

/* Visible keyboard focus on every interactive element. */
:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
	border-radius: 6px;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.nav-cta:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* Discord nav link with brand glyph. */
.nav-discord {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.nav-discord .discord-glyph {
	color: var(--accent);
	flex: none;
}

/* Join buttons fall back to a disabled state when no invite is configured. */
[data-discord-invite].is-disabled {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}

.container {
	width: min(100% - 2rem, var(--max));
	margin-inline: auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(12px);
	background: rgba(12, 14, 20, 0.82);
	border-bottom: 1px solid var(--border);
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.85rem 0;
	gap: 1rem;
}

.logo {
	font-family: "Fredoka", system-ui, sans-serif;
	font-weight: 800;
	font-size: 1.05rem;
	letter-spacing: -0.01em;
	color: var(--text);
	text-decoration: none;
}

.logo span {
	color: var(--gold);
}

.nav-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.55rem 1.1rem;
	border-radius: 999px;
	background: var(--accent);
	color: #fff !important;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none !important;
	transition: background 0.15s, transform 0.15s;
	white-space: nowrap;
}

.nav-cta:hover {
	background: var(--accent-hover);
	transform: translateY(-1px);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	font-size: 0.9rem;
}

.nav-links a:not(.nav-cta) {
	color: var(--text-muted);
	text-decoration: none;
}

.nav-links a:not(.nav-cta):hover {
	color: var(--text);
	text-decoration: none;
}

.hero {
	padding: 4.5rem 0 0;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem 3rem;
	align-items: center;
}

.hero-copy {
	text-align: left;
}

.hero-copy .hero-actions {
	justify-items: stretch;
	max-width: 28rem;
}

.hero-copy .hero-stats {
	justify-content: flex-start;
}

/* In the two-column hero the lead sits inside a left-aligned column — don't
   auto-center it (that fights the column and reads off-balance). */
.hero-copy .hero-lead {
	margin-inline: 0;
	max-width: 38rem;
}

@media (max-width: 900px) {
	.hero {
		padding-top: 3rem;
		text-align: center;
	}

	.hero-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.hero-copy {
		text-align: center;
	}

	.hero-copy .hero-actions,
	.hero-copy .hero-stats {
		justify-content: center;
		margin-left: auto;
		margin-right: auto;
	}

	.hero-copy .hero-lead {
		margin-inline: auto;
	}
}

/* --- Raid demo widget --- */
.raid-demo {
	position: relative;
	background: #1e1f22;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	overflow: hidden;
	box-shadow:
		var(--shadow),
		0 0 0 1px rgba(88, 101, 242, 0.15);
	font-size: 0.82rem;
}

.raid-demo-glow {
	position: absolute;
	inset: -40% -20% auto;
	height: 60%;
	background: radial-gradient(circle, rgba(155, 89, 182, 0.25), transparent 70%);
	pointer-events: none;
	opacity: 0.6;
	transition: opacity 0.4s;
}

.raid-demo.phase-attack .raid-demo-glow {
	background: radial-gradient(circle, rgba(241, 196, 15, 0.28), transparent 70%);
	opacity: 1;
}

.raid-demo.boss-defeated .raid-demo-glow {
	background: radial-gradient(circle, rgba(46, 204, 113, 0.35), transparent 70%);
}

.raid-demo-chrome {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 0.85rem;
	background: #111214;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	font-weight: 600;
	color: #b5bac1;
}

.raid-live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ed4245;
	box-shadow: 0 0 8px #ed4245;
	animation: live-pulse 1.4s ease-in-out infinite;
}

@keyframes live-pulse {
	0%,
	100% {
		opacity: 1;
		transform: scale(1);
		box-shadow: 0 0 8px #ed4245;
	}
	50% {
		opacity: 0.7;
		transform: scale(1.3);
		box-shadow: 0 0 14px rgba(237, 66, 69, 0.6);
	}
}

.raid-channel {
	flex: 1;
	font-family: ui-monospace, "Cascadia Code", monospace;
	font-size: 0.78rem;
	color: #949ba4;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.raid-live-label {
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	color: #ed4245;
	padding: 0.15rem 0.45rem;
	border: 1px solid rgba(237, 66, 69, 0.45);
	border-radius: 4px;
	background: rgba(237, 66, 69, 0.12);
}

.raid-demo-body {
	padding: 1rem 1rem 0.85rem;
	position: relative;
}

.raid-header {
	margin-bottom: 0.75rem;
}

.raid-show {
	font-weight: 800;
	font-size: 1rem;
	color: var(--gold);
}

.raid-boss-name {
	color: var(--text-muted);
	font-size: 0.85rem;
	margin-top: 0.15rem;
}

.raid-beat-title {
	font-weight: 700;
	font-size: 0.95rem;
	margin-bottom: 0.55rem;
	color: #fff;
}

.raid-phase-row {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 0.85rem;
}

.raid-phase {
	flex: 1;
	text-align: center;
	padding: 0.4rem 0.5rem;
	border-radius: 8px;
	font-weight: 700;
	font-size: 0.75rem;
	border: 1px solid var(--border);
	color: var(--text-muted);
	background: rgba(255, 255, 255, 0.03);
	transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.raid-phase.defend.is-active {
	color: #74b9ff;
	border-color: rgba(116, 185, 255, 0.45);
	background: rgba(116, 185, 255, 0.1);
	box-shadow: 0 0 20px rgba(116, 185, 255, 0.15);
}

.raid-phase.attack.is-active {
	color: var(--gold);
	border-color: rgba(241, 196, 15, 0.45);
	background: rgba(241, 196, 15, 0.1);
	box-shadow: 0 0 20px rgba(241, 196, 15, 0.15);
}

.bar-block {
	margin-bottom: 0.85rem;
}

.bar-label-row {
	display: flex;
	justify-content: space-between;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--text-muted);
	margin-bottom: 0.3rem;
}

.bar-track {
	height: 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.45);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.bar-track.boss {
	height: 14px;
}

.bar-fill {
	height: 100%;
	border-radius: 999px;
	transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.boss-fill {
	background: linear-gradient(90deg, #e74c3c, #9b59b6);
	box-shadow: 0 0 12px rgba(231, 76, 60, 0.45);
}

.raid-demo.boss-defeated .boss-fill {
	background: linear-gradient(90deg, #2ecc71, #27ae60);
	box-shadow: 0 0 12px rgba(46, 204, 113, 0.45);
}

.party-fill {
	background: linear-gradient(90deg, #5865f2, #7289da);
}

.party-member.magic .party-fill {
	background: linear-gradient(90deg, var(--magic), #b07cc8);
}

.party-member.thrill .party-fill {
	background: linear-gradient(90deg, var(--thrill), #ff7675);
}

.party-member.wayfinder .party-fill {
	background: linear-gradient(90deg, var(--wayfinder), #55efc4);
}

.raid-party {
	display: grid;
	gap: 0.45rem;
	margin-bottom: 0.75rem;
}

.party-member {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-rows: auto auto;
	gap: 0.15rem 0.5rem;
	align-items: center;
}

.party-name {
	grid-column: 1 / -1;
	font-size: 0.72rem;
	font-weight: 600;
	color: #dbdee1;
}

/* Name color follows the player's class — mirrors their Discord name color. */
.party-member.magic .party-name {
	color: var(--magic);
}

.party-member.thrill .party-name {
	color: var(--thrill);
}

.party-member.wayfinder .party-name {
	color: var(--wayfinder);
}

.party-sub {
	display: block;
	font-size: 0.62rem;
	font-weight: 400;
	color: var(--text-muted, #a3a6aa);
}

.party-hp {
	font-size: 0.68rem;
	color: var(--text-muted);
	font-variant-numeric: tabular-nums;
}

.raid-log-wrap {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	padding-top: 0.65rem;
}

.raid-log-label {
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #72767d;
	margin-bottom: 0.4rem;
}

.raid-log {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	max-height: 7.5rem;
	overflow: hidden;
}

.raid-log-entry {
	padding: 0.4rem 0.55rem;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.35);
	border-left: 3px solid #5865f2;
	font-size: 0.72rem;
	line-height: 1.35;
	color: #dcddde;
	animation: log-in 0.35s ease-out;
}

@keyframes log-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.raid-demo-note {
	margin: 0;
	padding: 0.5rem 0.85rem 0.65rem;
	font-size: 0.68rem;
	color: #72767d;
	background: #111214;
	border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* --- Live wait ticker --- */
.wait-ticker {
	margin-top: 2.5rem;
	overflow: hidden;
	border-block: 1px solid var(--border);
	background: rgba(0, 0, 0, 0.25);
	padding: 0.65rem 0;
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.wait-ticker-track {
	display: flex;
	gap: 2.5rem;
	width: max-content;
	animation: ticker 32s linear infinite;
	white-space: nowrap;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--text-muted);
}

.wait-ticker-track span {
	padding-inline: 0.25rem;
}

@keyframes ticker {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

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

	.raid-live-dot,
	.wait-ticker-track,
	.raid-log-entry,
	.btn-primary {
		animation: none;
	}

	.bar-fill,
	.raid-demo-glow {
		transition: none;
	}
}

.hero-badge {
	display: inline-block;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.04);
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--text-muted);
	margin-bottom: 1.25rem;
}

.hero h1 {
	font-family: "Fredoka", system-ui, sans-serif;
	font-size: clamp(2.8rem, 6vw, 4.2rem);
	line-height: 1.05;
	letter-spacing: -0.01em;
	margin: 0 0 1rem;
	font-weight: 800;
	text-shadow: 0 2px 24px rgba(241, 196, 15, 0.18), 0 0 2px rgba(0, 0, 0, 0.8);
}

.hero h1 em {
	font-style: normal;
	/* Solid luminous gold, not a gradient: a clipped gradient spans the whole
	   two-line <em> box, so the lower line always fell in the dark stop and read
	   muddy. A flat bright gold + soft glow stays legible on the dark hero. */
	color: #ffd84d;
	filter: drop-shadow(0 1px 10px rgba(255, 200, 60, 0.5));
}

.hero-lead {
	font-size: clamp(1.05rem, 2.5vw, 1.25rem);
	color: var(--text-muted);
	max-width: 42rem;
	margin: 0 auto 2rem;
}

.hero-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	justify-content: center;
	margin-bottom: 2.5rem;
	max-width: 28rem;
	margin-left: auto;
	margin-right: auto;
}

.hero-actions .btn-primary {
	grid-column: 1 / -1;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
}

@keyframes cta-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.4), 0 8px 28px rgba(88, 101, 242, 0.35); }
	50%        { box-shadow: 0 0 0 8px rgba(88, 101, 242, 0), 0 8px 28px rgba(88, 101, 242, 0.35); }
}

.btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.95rem 1.65rem;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--accent), #7289da);
	color: #fff !important;
	font-weight: 700;
	font-size: 1.05rem;
	text-decoration: none !important;
	box-shadow: 0 8px 28px rgba(88, 101, 242, 0.35);
	transition: transform 0.15s, box-shadow 0.15s;
	animation: cta-pulse 2.8s ease-in-out infinite;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 24px rgba(88, 101, 242, 0.65);
	animation: none;
}

.btn-primary:active {
	transform: scale(0.97) translateY(1px);
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
	transition-duration: 0.05s;
	animation: none;
}

.btn-secondary {
	display: inline-flex;
	align-items: center;
	padding: 0.95rem 1.4rem;
	border-radius: 999px;
	border: 1px solid var(--border);
	color: var(--text) !important;
	font-weight: 600;
	text-decoration: none !important;
	background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
	background: rgba(255, 255, 255, 0.06);
}

.hero-stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem 2.5rem;
	color: var(--text-muted);
	font-size: 0.9rem;
}

.hero-stats strong {
	display: block;
	color: var(--text);
	font-size: 1.1rem;
}

section {
	padding: 3.5rem 0;
}

.section-label {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--gold);
	margin-bottom: 0.5rem;
}

.section-title {
	font-family: "Fredoka", system-ui, sans-serif;
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	font-weight: 800;
	letter-spacing: -0.01em;
	margin: 0 0 0.75rem;
}

.section-intro {
	color: var(--text-muted);
	max-width: 38rem;
	margin: 0 0 2rem;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.1rem;
}

.card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-left: 2px solid rgba(241, 196, 15, 0.3);
	border-radius: var(--radius);
	padding: 1.35rem 1.4rem;
	transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
	background: var(--bg-card-hover);
	border-color: rgba(255, 255, 255, 0.12);
	border-left-color: rgba(241, 196, 15, 0.55);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.card-icon {
	font-size: 1.75rem;
	margin-bottom: 0.65rem;
}

.card h3 {
	margin: 0 0 0.45rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.card p {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.92rem;
}

.steps {
	display: grid;
	gap: 1rem;
	counter-reset: step;
}

.step {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1.1rem;
	align-items: start;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.25rem 1.35rem;
}

.step-num {
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	background: rgba(241, 196, 15, 0.12);
	color: var(--gold);
	font-weight: 800;
	display: grid;
	place-items: center;
	font-size: 0.95rem;
}

.step h3 {
	margin: 0 0 0.35rem;
	font-size: 1rem;
}

.step p {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.92rem;
}

.classes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}

.class-card {
	position: relative;
	border-radius: var(--radius);
	padding: 1.35rem;
	border: 1px solid var(--border);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.class-card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	pointer-events: none;
}

.class-card.magic {
	background: linear-gradient(160deg, rgba(155, 89, 182, 0.2), var(--bg-card));
}

.class-card.magic:hover {
	transform: translateY(-4px);
	border-color: rgba(155, 89, 182, 0.45);
	box-shadow: 0 8px 32px rgba(155, 89, 182, 0.35);
}

.class-card.thrill {
	background: linear-gradient(160deg, rgba(231, 76, 60, 0.16), var(--bg-card));
}

.class-card.thrill:hover {
	transform: translateY(-4px);
	border-color: rgba(231, 76, 60, 0.45);
	box-shadow: 0 8px 32px rgba(231, 76, 60, 0.35);
}

.class-card.wayfinder {
	background: linear-gradient(160deg, rgba(46, 204, 113, 0.16), var(--bg-card));
}

.class-card.wayfinder:hover {
	transform: translateY(-4px);
	border-color: rgba(46, 204, 113, 0.45);
	box-shadow: 0 8px 32px rgba(46, 204, 113, 0.35);
}

.class-card h3 {
	margin: 0 0 0.35rem;
	font-size: 1rem;
}

.class-card p {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.88rem;
}

.parks-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.park-pill {
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--border);
	font-size: 0.88rem;
	font-weight: 600;
}

.cta-band {
	margin: 2rem 0 0;
	padding: 2.5rem 2rem;
	border-radius: calc(var(--radius) + 4px);
	background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(241, 196, 15, 0.08));
	border: 1px solid rgba(88, 101, 242, 0.35);
	text-align: center;
	box-shadow: var(--shadow);
}

.cta-band h2 {
	font-family: "Fredoka", system-ui, sans-serif;
	margin: 0 0 0.65rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
	letter-spacing: -0.01em;
}

.cta-band p {
	margin: 0 auto 1.5rem;
	max-width: 32rem;
	color: var(--text-muted);
}

/* This band has only two buttons, so the hero grid (full-width primary +
   half-width secondary) reads lopsided. Lay them out as balanced pills. */
.cta-band .hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	max-width: none;
}

.cta-band .hero-actions .btn-primary,
.cta-band .hero-actions .btn-secondary {
	grid-column: auto;
	width: auto;
}

@media (max-width: 480px) {
	.cta-band .hero-actions .btn-primary,
	.cta-band .hero-actions .btn-secondary {
		width: 100%;
		max-width: 22rem;
	}
}

.faq details {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1rem 1.2rem;
	margin-bottom: 0.65rem;
}

.faq summary {
	cursor: pointer;
	font-weight: 600;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

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

/* Chevron affordance so it reads as expandable. */
.faq summary::after {
	content: "";
	flex: none;
	width: 0.62rem;
	height: 0.62rem;
	border-right: 2px solid var(--text-muted);
	border-bottom: 2px solid var(--text-muted);
	transform: rotate(45deg);
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.faq details[open] summary {
	margin-bottom: 0.65rem;
	color: var(--gold);
}

.faq details[open] summary::after {
	transform: rotate(-135deg);
	border-color: var(--gold);
}

.faq p {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.92rem;
}

.site-footer {
	padding: 2.5rem 0 3rem;
	border-top: 1px solid var(--border);
	color: var(--text-muted);
	font-size: 0.82rem;
}

.site-footer p {
	margin: 0 0 0.65rem;
	max-width: 52rem;
}

.site-footer .container {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

@media (max-width: 768px) {
	.site-header .container {
		flex-wrap: wrap;
		gap: 0.65rem;
	}

	.nav-links {
		flex: 1 1 100%;
		justify-content: center;
	}

	.hero {
		padding-top: 3rem;
	}

	.hero-lead {
		margin-bottom: 1.5rem;
	}

	.hero-actions {
		gap: 0.65rem;
	}

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

@media (max-width: 480px) {
	.container {
		width: min(100% - 1.25rem, var(--max));
	}

	.site-header .container {
		padding: 0.65rem 0;
	}

	.logo {
		font-size: 0.98rem;
	}

	.nav-links {
		flex-direction: column;
		align-items: stretch;
		gap: 0.35rem;
	}

	.nav-links a:not(.nav-cta),
	.nav-cta {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 44px;
		padding-top: 0.55rem;
		padding-bottom: 0.55rem;
	}

	.nav-cta {
		margin: 0;
		width: 100%;
	}

	.hero h1 {
		font-size: clamp(1.75rem, 8vw, 2.35rem);
	}

	.hero-badge {
		font-size: 0.72rem;
		line-height: 1.35;
		padding: 0.4rem 0.7rem;
	}

	.hero-actions {
		grid-template-columns: 1fr;
		max-width: 20rem;
	}

	.btn-primary,
	.btn-secondary {
		justify-content: center;
		min-height: 44px;
		width: 100%;
		font-size: 0.95rem;
		padding: 0.75rem 1.15rem;
	}

	.hero-stats {
		flex-direction: column;
		align-items: center;
		gap: 1rem;
		text-align: center;
	}

	.raid-demo-chrome {
		flex-wrap: wrap;
	}

	.raid-phase-row {
		flex-direction: column;
	}

	.raid-phase {
		min-height: 44px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	section {
		padding: 2.5rem 0;
	}

	.step {
		grid-template-columns: 1fr;
		gap: 0.75rem;
		text-align: center;
	}

	.step-num {
		margin-inline: auto;
	}

	.classes {
		grid-template-columns: 1fr;
	}
}


/* Highlight YOU in the raid roster (pinned to the top server-side), aligned with the
   day-party self tint so the two rosters read as one system. */
.party-member--self {
	position: relative;
	padding-left: 0.55rem;
	border-radius: 4px;
	background: rgba(88, 101, 242, 0.14);
	box-shadow: inset 3px 0 0 #5865f2;
}
.party-you-badge {
	display: inline-block;
	margin-left: 0.35rem;
	padding: 0 0.3rem;
	border-radius: 4px;
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #fff;
	background: #5865f2;
	vertical-align: middle;
}

/* ── Hero: the pitch + front doors + duel diorama (Phase 1 landing rework) ───── */
.hero-pitch {
	font-family: "Cinzel", "Inter", serif;
	letter-spacing: 0.01em;
}
.hero-pitch em {
	font-style: normal;
	background: var(--gold-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.front-doors {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin: 1.4rem 0 0.9rem;
}
.front-door {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 16px 14px 26px;
	background: var(--bg-card);
	border: 1px solid rgba(241, 196, 15, 0.35);
	border-radius: 14px;
	color: inherit;
	text-decoration: none;
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
/* Ticket perforation: a dotted tear line down the left edge. */
.front-door::before {
	content: "";
	position: absolute;
	left: 14px;
	top: 8px;
	bottom: 8px;
	border-left: 2px dashed rgba(241, 196, 15, 0.4);
}
.front-door:hover {
	transform: translateY(-2px);
	border-color: var(--gold);
	box-shadow: var(--gold-glow);
}
.front-door-stub {
	position: absolute;
	top: 50%;
	left: -16px;
	transform: translateY(-50%) rotate(-90deg);
	font-size: 0.52rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	color: rgba(241, 196, 15, 0.55);
}
.front-door-icon { font-size: 1.5rem; line-height: 1; }
.front-door-title {
	font-family: "Cinzel", "Inter", serif;
	font-weight: 700;
	font-size: 1.02rem;
	color: var(--gold-bright);
}
.front-door-sub { font-size: 0.82rem; color: var(--text-dim, #9aa3b5); line-height: 1.4; }
.hero-actions--under { margin-top: 0.4rem; }
@media (max-width: 560px) {
	.front-doors { grid-template-columns: 1fr; }
}

/* The duel diorama — real in-game art, CSS-only loop (~9s). */
.duel-demo { display: flex; flex-direction: column; gap: 10px; }
.duel-demo-frame {
	position: relative;
	aspect-ratio: 4 / 5;
	max-height: 480px;
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid rgba(241, 196, 15, 0.3);
	background:
		radial-gradient(120% 90% at 70% 20%, #2a2440 0%, #161325 55%, #0c0e14 100%);
	box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.8);
}
.duel-demo-backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	image-rendering: pixelated;
	opacity: 0.9;
}
.duel-demo-vignette {
	position: absolute;
	inset: 0;
	box-shadow: inset 0 0 90px 24px rgba(0, 0, 0, 0.65);
	pointer-events: none;
}
.duel-demo-chrome {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-between;
	padding: 8px 12px;
	font-size: 0.66rem;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.75);
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent);
	z-index: 4;
}
.duel-demo-live { color: var(--gold-bright); font-weight: 800; animation: duelLivePulse 1.6s infinite; }
@keyframes duelLivePulse { 50% { opacity: 0.55; } }
.duel-demo-boss {
	position: absolute;
	right: 8%;
	top: 16%;
	width: 38%;
	image-rendering: pixelated;
	filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.6));
	animation: duelBossBob 3.2s ease-in-out infinite, duelBossFlinch 9s infinite;
	z-index: 2;
}
.duel-demo-hero {
	position: absolute;
	left: 10%;
	bottom: 14%;
	width: 34%;
	image-rendering: pixelated;
	filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.65));
	animation: duelHeroLunge 9s infinite;
	z-index: 2;
}
.duel-demo-boss--emoji, .duel-demo-hero--emoji { font-size: 64px; line-height: 1; }
@keyframes duelBossBob { 50% { transform: translateY(-6px); } }
@keyframes duelBossFlinch {
	0%, 30%, 100% { filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.6)); }
	33%, 36% { filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.6)) brightness(2) saturate(0.4); transform: translateX(5px); }
	70%, 73% { filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.6)) brightness(2) saturate(0.4); transform: translateX(-4px); }
}
@keyframes duelHeroLunge {
	0%, 28%, 44%, 64%, 80%, 100% { transform: translate(0, 0); }
	31% { transform: translate(26px, -18px); }
	67% { transform: translate(30px, -20px); }
}
.duel-demo-hpbox {
	position: absolute;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 7px 10px;
	border-radius: 10px;
	background: rgba(10, 10, 18, 0.78);
	border: 1px solid rgba(255, 255, 255, 0.14);
	min-width: 43%;
	z-index: 3;
}
.duel-demo-hpbox--boss { top: 12%; left: 6%; }
.duel-demo-hpbox--hero { bottom: 12%; right: 6%; }
.duel-demo-name { font-size: 0.68rem; font-weight: 700; color: #fff; display: flex; justify-content: space-between; gap: 8px; }
.duel-demo-name em { font-style: normal; font-weight: 600; opacity: 0.85; font-size: 0.62rem; }
.duel-demo-bar { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.duel-demo-fill { display: block; height: 100%; border-radius: 4px; }
.duel-demo-fill--boss { background: linear-gradient(90deg, #ff6b6b, #d63d3d); animation: duelBossHp 9s infinite; }
.duel-demo-fill--hero { background: linear-gradient(90deg, #58e08a, #2dba63); animation: duelHeroHp 9s infinite; }
@keyframes duelBossHp { 0%, 28% { width: 100%; } 36% { width: 72%; } 64% { width: 72%; } 74% { width: 38%; } 92%, 100% { width: 38%; } }
@keyframes duelHeroHp { 0%, 46% { width: 100%; } 54%, 100% { width: 84%; } }
.duel-demo-float {
	position: absolute;
	font-weight: 800;
	font-size: 1rem;
	color: #ffd75e;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
	opacity: 0;
	z-index: 3;
	pointer-events: none;
}
.duel-demo-float--a { right: 22%; top: 30%; animation: duelFloat 9s infinite; animation-delay: 0s; }
.duel-demo-float--b { right: 14%; top: 38%; font-size: 0.72rem; color: #9fe8ff; animation: duelFloat 9s infinite; animation-delay: 3s; }
.duel-demo-float--c { right: 24%; top: 28%; color: #ff9d5c; animation: duelFloat 9s infinite; animation-delay: 6s; }
@keyframes duelFloat {
	0%, 30% { opacity: 0; transform: translateY(0); }
	33% { opacity: 1; }
	42% { opacity: 0; transform: translateY(-34px); }
	43%, 100% { opacity: 0; }
}
.duel-demo-commands {
	position: absolute;
	bottom: 4%;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
	z-index: 3;
}
.duel-demo-cmd {
	font-size: 0.62rem;
	font-weight: 700;
	padding: 5px 9px;
	border-radius: 8px;
	background: rgba(12, 12, 22, 0.82);
	border: 1px solid rgba(241, 196, 15, 0.4);
	color: #ffe9ad;
	white-space: nowrap;
}
.duel-demo-cmd.is-pulse { animation: duelCmdPulse 1.8s infinite; }
@keyframes duelCmdPulse { 50% { box-shadow: 0 0 0 4px rgba(241, 196, 15, 0.25); border-color: var(--gold-bright); } }
@media (prefers-reduced-motion: reduce) {
	.duel-demo-boss, .duel-demo-hero, .duel-demo-fill--boss, .duel-demo-fill--hero,
	.duel-demo-float, .duel-demo-cmd.is-pulse, .duel-demo-live { animation: none !important; }
	.duel-demo-fill--boss { width: 62%; }
	.duel-demo-fill--hero { width: 90%; }
}
