@font-face {
	font-family: "Trajan Pro";
	src: url("../fonts/Trajan%20Pro%20Regular.ttf") format("truetype");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Trajan Pro";
	src: url("../fonts/Trajan%20Pro%20Bold.ttf") format("truetype");
	font-style: normal;
	font-weight: 700;
	font-display: swap;
}
:root {
	color-scheme: dark;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #e5e7eb;
	background: #111827;
	--page-bg: #111827;
	--text: #e5e7eb;
	--muted-text: #9ca3af;
	--border: #374151;
	--surface: #1f2937;
	--surface-hover: #374151;
	--shadow: 0 6px 18px rgb(0 0 0 / 25%);
}
:root[data-theme="light"] {
	color-scheme: light;
	color: #1f2937;
	background: #fff;
	--page-bg: #fff;
	--text: #1f2937;
	--muted-text: #4b5563;
	--border: #e5e7eb;
	--surface: #fff;
	--surface-hover: #f3f4f6;
	--shadow: 0 6px 18px rgb(0 0 0 / 7%);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--page-bg); color: var(--text); }
header { border-bottom: 1px solid var(--border); }
nav {
	width: min(1100px, calc(100% - 40px));
	height: 68px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.brand {
	color: inherit;
	font-size: 1.1rem;
	font-weight: 700;
	text-decoration: none;
}
.menu { display: flex; gap: 8px; }
details { position: relative; }
summary {
	cursor: pointer;
	list-style: none;
	padding: 10px 12px;
	border-radius: 7px;
	color: var(--muted-text);
	font-size: .95rem;
}
summary::-webkit-details-marker { display: none; }
summary:hover, details[open] summary { background: var(--surface-hover); color: var(--text); }
summary::after {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin: 0 0 3px 9px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: rotate(45deg);
}
.dropdown {
	position: absolute;
	z-index: 1;
	top: 100%;
	right: 0;
	width: 200px;
	min-height: 40px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface);
	box-shadow: var(--shadow);
}
.dropdown-link {
	display: block;
	padding: 10px 12px;
	border-radius: 7px;
	color: var(--text);
	text-decoration: none;
	white-space: nowrap;
}
.dropdown-link:hover,
.dropdown-link:focus-visible,
.dropdown-link[aria-current="page"] {
	background: var(--surface-hover);
	color: var(--text);
}
.theme-toggle {
	width: 40px;
	height: 40px;
	padding: 8px;
	border: 1px solid var(--border);
	border-radius: 7px;
	background: var(--surface);
	color: var(--text);
	display: grid;
	place-items: center;
	cursor: pointer;
}
.theme-toggle img {
	display: block;
	width: 20px;
	height: 20px;
}
.theme-toggle:hover {
	background: var(--surface-hover);
}
.theme-toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
.account-nav-button {
	min-height: 40px;
	padding: 8px 12px;
	border: 1px solid var(--border);
	border-radius: 7px;
	background: var(--surface);
	color: var(--text);
	font: inherit;
	cursor: pointer;
	white-space: nowrap;
}
.account-nav-button:hover,
.account-nav-button:focus-visible {
	background: var(--surface-hover);
}
.account-nav-button:focus-visible,
.account-dialog button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
.account-dialog {
	width: min(420px, calc(100vw - 32px));
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface);
	color: var(--text);
	box-shadow: var(--shadow);
	font: inherit;
}
.account-dialog::backdrop {
	background: rgb(0 0 0 / 65%);
	backdrop-filter: blur(2px);
}
.account-dialog-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.account-dialog-heading h2 {
	margin: 0;
	font-size: 1.4rem;
}
.account-dialog-close {
	padding: 6px 9px;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: var(--surface);
	color: var(--muted-text);
	font: inherit;
	cursor: pointer;
}
.account-dialog-description {
	margin: 12px 0 18px;
	color: var(--muted-text);
	font-size: .9rem;
}
.account-form {
	display: grid;
	gap: 8px;
}
.account-form label {
	color: var(--muted-text);
	font-size: .85rem;
}
.account-form input {
	width: 100%;
	min-height: 42px;
	margin-bottom: 6px;
	padding: 8px 10px;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: var(--page-bg);
	color: var(--text);
	font: inherit;
}
.account-form input:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
.account-submit {
	min-height: 44px;
	margin-top: 6px;
	border: 1px solid var(--text);
	border-radius: 7px;
	background: var(--text);
	color: var(--page-bg);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.account-mode-toggle {
	margin-top: 14px;
	padding: 4px 0;
	border: 0;
	background: transparent;
	color: var(--muted-text);
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.account-message {
	margin: 12px 0 0;
	color: var(--muted-text);
	font-size: .85rem;
}
.account-notice {
	position: fixed;
	z-index: 2;
	right: 16px;
	bottom: 16px;
	width: min(420px, calc(100vw - 32px));
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface);
	color: var(--text);
	box-shadow: var(--shadow);
	font-size: .9rem;
}
main {
	width: min(1100px, calc(100% - 40px));
	min-height: calc(100vh - 69px);
	margin: 0 auto;
}
.home-hero {
	position: relative;
	display: grid;
	min-height: min(620px, calc(100vh - 69px));
	align-content: center;
	justify-items: center;
	overflow: hidden;
	padding: 64px 24px;
	text-align: center;
	isolation: isolate;
	font-family: "Trajan Pro", Georgia, "Times New Roman", serif;
}
.hero-border {
	position: absolute;
	z-index: -1;
	pointer-events: none;
	background-repeat: no-repeat;
	background-size: 100% 100%;
}
.hero-border-top {
	top: 18px;
	left: 50%;
	width: min(757px, calc(100% - 32px));
	aspect-ratio: 757 / 85;
	background-image: url("../images/hk/top.png");
	transform: translateX(-50%);
}
.hero-border-bottom {
	bottom: 18px;
	left: 50%;
	width: min(729px, calc(100% - 32px));
	aspect-ratio: 729 / 54;
	background-image: url("../images/hk/bottom.png");
	transform: translateX(-50%);
}
.hero-border-corner {
	width: min(210px, calc((100% - 80px) / 2));
	aspect-ratio: 210 / 179;
	background-image: url("../images/hk/corner.png");
}
.hero-border-top-left {
	top: 18px;
	left: 16px;
	transform: scale(-1);
}
.hero-border-top-right {
	top: 18px;
	right: 16px;
	transform: scaleY(-1);
}
.hero-border-bottom-left {
	bottom: 18px;
	left: 16px;
	transform: scaleX(-1);
}
.hero-border-bottom-right {
	right: 16px;
	bottom: 18px;
}
.home-hero::before {
	position: absolute;
	z-index: -1;
	top: 50%;
	left: 50%;
	width: min(620px, 100%, calc(100vh - 69px));
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgb(141 183 179 / 12%), transparent 68%);
	content: "";
	transform: translate(-50%, -50%);
}
.home-eyebrow {
	margin: 0 0 16px;
	color: #d5b77b;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
}
:root[data-theme="light"] .home-eyebrow { color: #81602b; }
.home-hero h1 {
	margin: 0;
	font-size: clamp(2.8rem, 9vw, 5.5rem);
	font-weight: 400;
	letter-spacing: .015em;
	line-height: 1.05;
}
.home-intro {
	max-width: 490px;
	margin: 20px 0 14px;
	color: var(--muted-text);
	font-size: clamp(1rem, 2.5vw, 1.15rem);
	line-height: 1.7;
}
.creation-date {
	margin: 0 0 28px;
	color: var(--muted-text);
	font-size: .85rem;
	letter-spacing: .04em;
}
.play-button {
	display: inline-flex;
	min-height: 54px;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 12px 20px;
	border: 1px solid #d5b77b;
	border-radius: 9px;
	background: linear-gradient(135deg, #d5b77b, #b9975b);
	box-shadow: 0 8px 24px rgb(0 0 0 / 20%);
	color: #17212a;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
:root[data-theme="light"] .play-button {
	border-color: #81602b;
	background: linear-gradient(135deg, #9b7943, #81602b);
	color: #fff;
}
.play-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgb(0 0 0 / 28%);
}
.play-button:focus-visible {
	outline: 3px solid var(--text);
	outline-offset: 4px;
}
.play-button-arrow {
	font-size: 1.25rem;
	line-height: 1;
	transition: transform .18s ease;
}
.play-button:hover .play-button-arrow { transform: translateX(3px); }
@media (max-width: 480px) {
	nav, main { width: calc(100% - 28px); }
	.menu { gap: 0; }
	summary { padding: 10px 8px; }
	.home-hero { min-height: calc(100vh - 69px); }
}
