:root {
	--accent: #d4006a;
	--accent-soft: #fbe4ef;
	--accent-ink: #8e0047;
	--ink: #1b1c20;
	--ink-2: #4a5261;
	--ink-3: #7a8290;
	--bg: #f3f4f6;
	--surface: #ffffff;
	--surface-2: #f8f9fb;
	--line: #d9dce3;
	--warn: #a8690a;
	--warn-soft: #fbefd7;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root {
		--ink: #eceef2;
		--ink-2: #b7bdc8;
		--ink-3: #8c93a0;
		--bg: #15161a;
		--surface: #1e2026;
		--surface-2: #25282f;
		--line: #353944;
		--accent-soft: #3a1328;
		--accent-ink: #ff7ab5;
		--warn-soft: #3a2a0c;
		--warn: #f0b75a;
		color-scheme: dark;
	}
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	font: 16px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	color: var(--ink);
	background: var(--bg);
}
a {
	color: var(--accent-ink);
}
h1,
h2,
h3 {
	line-height: 1.2;
}
.sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}
button {
	font: inherit;
	cursor: pointer;
	border: 0;
	border-radius: 8px;
	padding: 10px 16px;
	background: var(--accent);
	color: #fff;
	font-weight: 600;
}
button:hover {
	background: var(--accent-ink);
}
button:disabled {
	background: var(--line);
	color: var(--ink-3);
	cursor: not-allowed;
}
button.link {
	background: none;
	color: var(--ink-2);
	padding: 0;
	font-weight: 400;
}
button:focus-visible,
input:focus-visible,
a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* gate */
.gate {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 16px;
}
.gate-card {
	width: min(420px, 100%);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 32px 28px;
	text-align: center;
}
.gate-card form {
	display: grid;
	gap: 12px;
	margin-top: 16px;
}
.gate-card input {
	font: inherit;
	text-align: center;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface-2);
	color: var(--ink);
}
.error {
	color: var(--accent-ink);
	background: var(--accent-soft);
	border-radius: 8px;
	padding: 8px 12px;
}
.logo {
	height: auto;
	max-width: 100%;
}

/* page */
.top {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 12px 24px;
	background: var(--surface);
	border-bottom: 1px solid var(--line);
}
.top nav {
	display: flex;
	gap: 18px;
	align-items: center;
	flex-wrap: wrap;
}
.top nav a {
	color: var(--ink-2);
	text-decoration: none;
}
.top nav form {
	margin: 0;
}
main {
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px 16px 48px;
}
section {
	margin: 40px 0;
}
.intro h1 {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	margin-bottom: 8px;
}
.intro p {
	color: var(--ink-2);
	max-width: 70ch;
}
.fine {
	font-size: 0.9rem;
	color: var(--ink-3);
}
.grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
}
.video,
.persona,
.howto {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 18px;
}
.video video {
	width: 100%;
	border-radius: 8px;
	background: #000;
	aspect-ratio: 16 / 9;
}
.video h3 {
	margin: 0 0 2px;
}
.meta {
	margin: 0 0 12px;
	color: var(--ink-3);
	font-size: 0.9rem;
}
.links {
	font-size: 0.9rem;
	margin: 8px 0 0;
}
.badge {
	display: inline-block;
	background: var(--warn-soft);
	color: var(--warn);
	border-radius: 999px;
	padding: 1px 10px;
	font-size: 0.8rem;
}
.pending {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	background: var(--surface-2);
	color: var(--ink-3);
	border: 1px dashed var(--line);
}
.persona {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.persona .who {
	display: flex;
	flex-direction: column;
}
.persona .who span {
	color: var(--ink-2);
	font-size: 0.95rem;
}
.persona .org {
	color: var(--ink-3) !important;
}
.persona p {
	margin: 4px 0;
}
.persona form,
.persona > button {
	margin-top: auto;
}
.persona button {
	width: 100%;
}
.start {
	font-size: 0.92rem;
	color: var(--ink-2);
}
.note {
	background: var(--warn-soft);
	color: var(--warn);
	border-radius: 8px;
	padding: 10px 14px;
}
.howto {
	margin-top: 20px;
}
.howto h3 {
	margin-top: 0;
}
footer {
	text-align: center;
	color: var(--ink-3);
	font-size: 0.85rem;
	padding: 24px 16px 40px;
}

/* player: cover + central play button (public/player.js) */
.player {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	background: #000;
}
.player video {
	display: block;
}
.player .cover {
	display: none;
}
.player.js:not(.playing) .cover {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border-radius: 0;
	background: rgb(0 0 0 / 0.12);
	color: #fff;
	cursor: pointer;
}
.player.js.no-cover:not(.playing) .cover {
	background:
		radial-gradient(circle at 30% 20%, rgb(255 255 255 / 0.18), transparent 55%),
		linear-gradient(135deg, var(--accent) 0%, var(--accent-ink) 100%);
}
.player.js:not(.playing) video {
	pointer-events: none;
}
.cover .play {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 6px 24px rgb(0 0 0 / 0.35);
	position: relative;
	transition: transform 0.15s ease;
}
.cover .play::after {
	content: '';
	position: absolute;
	left: 31px;
	top: 23px;
	border-style: solid;
	border-width: 15px 0 15px 24px;
	border-color: transparent transparent transparent #fff;
}
.cover:hover .play,
.cover:focus-visible .play {
	transform: scale(1.08);
}
.cover .cover-time {
	position: absolute;
	right: 12px;
	bottom: 12px;
	padding: 2px 10px;
	border-radius: 999px;
	background: rgb(0 0 0 / 0.65);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 500;
}

.links {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.switch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 2px;
	background: none;
	color: var(--ink);
	font-weight: 500;
	font-size: 0.92rem;
}
.switch:hover {
	background: none;
}
.switch .track {
	position: relative;
	width: 40px;
	height: 22px;
	border-radius: 999px;
	background: var(--line);
	transition: background 0.15s ease;
}
.switch .knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.3);
	transition: transform 0.15s ease;
}
.switch[aria-checked='true'] .track {
	background: var(--accent);
}
.switch[aria-checked='true'] .knob {
	transform: translateX(18px);
}
