.hs-app {
	--hs-night: #07111f;
	--hs-night-soft: #0c1c2d;
	--hs-panel: rgba(14, 29, 45, 0.92);
	--hs-panel-light: rgba(22, 42, 60, 0.88);
	--hs-border: rgba(185, 210, 225, 0.16);
	--hs-text: #f6f1e8;
	--hs-muted: #9fb0bd;
	--hs-gold: #efbd5a;
	--hs-gold-light: #ffe4a0;
	--hs-teal: #52c9b8;
	--hs-danger: #ff8c86;
	--hs-success: #80dec1;
	box-sizing: border-box;
	position: relative;
	width: 100%;
	min-height: min(900px, 100svh);
	margin: 0;
	overflow: hidden;
	color: var(--hs-text);
	background: var(--hs-night);
	border-radius: clamp(0px, 2vw, 28px);
	font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	isolation: isolate;
}

.hs-app *,
.hs-app *::before,
.hs-app *::after {
	box-sizing: inherit;
}

.hs-app button,
.hs-app input {
	font: inherit;
}

.hs-app button {
	-webkit-tap-highlight-color: transparent;
}

.hs-app [hidden] {
	display: none !important;
}

.hs-screen {
	position: relative;
	min-height: min(900px, 100svh);
}

.hs-screen.is-entering {
	animation: hs-screen-in 650ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.hs-boot {
	display: grid;
	position: absolute;
	z-index: 30;
	inset: 0;
	place-content: center;
	justify-items: center;
	gap: 20px;
	min-height: min(900px, 100svh);
	color: var(--hs-muted);
	background:
		radial-gradient(circle at 50% 42%, rgba(72, 164, 160, 0.14), transparent 30%),
		var(--hs-night);
}

.hs-boot-mark {
	width: 48px;
	height: 48px;
	border: 1px solid rgba(239, 189, 90, 0.25);
	border-top-color: var(--hs-gold);
	border-radius: 50%;
	animation: hs-spin 1.2s linear infinite;
}

.hs-boot p {
	margin: 0;
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hs-boot.is-error p {
	max-width: 280px;
	color: var(--hs-danger);
	text-align: center;
}

.hs-title-screen {
	display: grid;
	place-items: center;
	padding: max(32px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
	background: #07111f;
}

.hs-title-backdrop,
.hs-title-stars {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.hs-title-backdrop {
	z-index: -2;
	background:
		linear-gradient(180deg, rgba(3, 11, 21, 0.24) 0%, rgba(3, 11, 21, 0.12) 35%, rgba(3, 10, 17, 0.5) 65%, rgba(3, 8, 14, 0.96) 100%),
		linear-gradient(90deg, rgba(4, 13, 23, 0.25), transparent 50%, rgba(4, 13, 23, 0.18)),
		url("../images/human-story-title-bg.png") center center / cover no-repeat;
	transform: scale(1.02);
	animation: hs-hero-breathe 18s ease-in-out infinite alternate;
}

.hs-title-stars {
	z-index: -1;
	opacity: 0.45;
	background-image:
		radial-gradient(circle at 18% 18%, rgba(255, 230, 170, 0.8) 0 1px, transparent 1.8px),
		radial-gradient(circle at 75% 12%, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.6px),
		radial-gradient(circle at 85% 31%, rgba(255, 224, 158, 0.7) 0 1px, transparent 1.5px);
	background-size: 120px 120px, 180px 180px, 240px 240px;
	animation: hs-stars 8s ease-in-out infinite alternate;
}

.hs-title-content {
	display: flex;
	position: relative;
	z-index: 1;
	flex-direction: column;
	justify-content: space-between;
	width: min(100%, 480px);
	min-height: calc(min(900px, 100svh) - 64px);
	text-align: center;
}

.hs-brand {
	padding-top: clamp(46px, 10svh, 100px);
	text-shadow: 0 4px 24px rgba(0, 0, 0, 0.48);
}

.hs-brand-eyebrow,
.hs-card-eyebrow,
.hs-creation-header span {
	display: block;
	color: var(--hs-gold-light);
	font-size: 0.67rem;
	font-weight: 700;
	letter-spacing: 0.19em;
	text-transform: uppercase;
}

.hs-brand h1 {
	margin: 10px 0 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(3.15rem, 14vw, 5.5rem);
	font-weight: 400;
	letter-spacing: 0.025em;
	line-height: 0.82;
}

.hs-brand h1 em {
	display: block;
	margin-top: 16px;
	color: var(--hs-gold);
	font-size: 0.54em;
	font-weight: 400;
	letter-spacing: 0.16em;
}

.hs-brand p {
	margin: 24px 0 0;
	color: rgba(255, 255, 255, 0.86);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(0.94rem, 3.8vw, 1.15rem);
	font-style: italic;
	letter-spacing: 0.04em;
}

.hs-title-menu {
	display: grid;
	gap: 12px;
	padding: 26px 0 0;
}

.hs-menu-button,
.hs-settings-button,
.hs-button,
.hs-icon-button,
.hs-action-cost {
	border: 0;
	cursor: pointer;
}

.hs-menu-link,
.hs-public-discover-link {
	text-decoration: none;
}

.hs-menu-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 100%;
	min-height: 62px;
	padding: 12px 24px;
	border-radius: 14px;
	font-size: 0.9rem;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.hs-menu-button:hover:not(:disabled),
.hs-menu-button:focus-visible {
	transform: translateY(-2px);
}

.hs-menu-button-primary {
	color: #251b0b;
	background: linear-gradient(135deg, #ffe39a, #d99b35);
	box-shadow: 0 12px 35px rgba(210, 146, 42, 0.24), inset 0 1px rgba(255, 255, 255, 0.7);
}

.hs-menu-button-primary.is-secondary-choice {
	color: var(--hs-text);
	background: rgba(12, 29, 45, 0.88);
	border: 1px solid rgba(239, 189, 90, 0.38);
	box-shadow: none;
}

.hs-menu-button-secondary {
	color: var(--hs-text);
	background: rgba(10, 29, 47, 0.88);
	border: 1px solid rgba(141, 194, 220, 0.34);
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(14px);
}

.hs-menu-icon {
	display: grid;
	width: 30px;
	height: 30px;
	place-items: center;
}

.hs-menu-icon svg,
.hs-icon-button svg,
.hs-settings-button svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.hs-menu-button-secondary .hs-menu-icon svg {
	fill: currentColor;
	stroke: none;
}

.hs-settings-button {
	display: inline-flex;
	align-items: center;
	justify-self: center;
	gap: 9px;
	margin-top: 4px;
	padding: 9px 14px;
	color: rgba(255, 255, 255, 0.72);
	background: transparent;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hs-settings-button span {
	display: grid;
	width: 30px;
	height: 30px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 50%;
}

.hs-settings-button svg {
	width: 16px;
	height: 16px;
}

.hs-title-message {
	min-height: 22px;
	margin: 5px 0 0;
	color: var(--hs-gold-light);
	font-size: 0.76rem;
}

.hs-public-app {
	overflow: auto;
}

.hs-public-screen {
	min-height: min(900px, 100svh);
}

.hs-public-content {
	justify-content: flex-end;
	gap: clamp(110px, 24svh, 240px);
}

.hs-public-panel {
	width: 100%;
	padding: 18px;
	background: linear-gradient(180deg, rgba(5, 15, 25, 0.18), rgba(5, 15, 25, 0.72));
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 24px;
	box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
	backdrop-filter: blur(10px);
}

.hs-auth-shell {
	display: grid;
	gap: 12px;
	width: 100%;
}

.hs-auth-card {
	width: 100%;
	padding: 18px;
	background: linear-gradient(180deg, rgba(5, 15, 25, 0.2), rgba(5, 15, 25, 0.76));
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 24px;
	box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
	backdrop-filter: blur(10px);
}

.hs-auth-card.is-entering {
	animation: hs-step-in 280ms ease both;
}

.hs-auth-form {
	display: grid;
	gap: 13px;
	text-align: left;
}

.hs-auth-form h2 {
	margin: 0 0 2px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.5rem, 6vw, 2.05rem);
	font-weight: 400;
	line-height: 1.1;
	text-align: center;
}

.hs-auth-form .hs-card-eyebrow {
	text-align: center;
}

.hs-auth-back {
	justify-self: start;
	padding: 0;
	color: var(--hs-muted);
	background: transparent;
	border: 0;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
}

.hs-auth-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.hs-auth-links button {
	padding: 0;
	color: var(--hs-gold-light);
	background: transparent;
	border: 0;
	font-size: 0.72rem;
	font-weight: 700;
	cursor: pointer;
}

.hs-auth-message {
	min-height: 20px;
	margin: 0;
	color: var(--hs-muted);
	font-size: 0.76rem;
	text-align: center;
}

.hs-auth-message.is-error,
.hs-title-message.is-error {
	color: var(--hs-danger);
}

.hs-auth-message.is-success,
.hs-title-message.is-success {
	color: var(--hs-success);
}

.hs-title-message.is-info {
	color: var(--hs-gold-light);
}

.hs-auth-terms {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--hs-muted);
	font-size: 0.75rem;
	line-height: 1.4;
}

.hs-auth-terms input {
	margin-top: 3px;
	accent-color: var(--hs-gold);
}

.hs-provider-mark {
	color: var(--hs-gold-light);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.08rem;
	font-weight: 700;
}

.hs-public-menu {
	padding: 0;
}

.hs-registration-closed {
	padding: 14px 16px;
	color: var(--hs-gold-light);
	background: rgba(239, 189, 90, 0.08);
	border: 1px solid rgba(239, 189, 90, 0.24);
	border-radius: 14px;
	font-size: 0.78rem;
	font-weight: 700;
	text-align: center;
}

.hs-public-discover {
	display: grid;
	gap: 14px;
	padding: 24px 18px 28px;
	background:
		radial-gradient(circle at 18% 0%, rgba(82, 201, 184, 0.12), transparent 28%),
		linear-gradient(180deg, #07111f, #0c1c2d);
}

.hs-public-discover-card,
.hs-public-feature-grid article {
	padding: 20px;
	background: var(--hs-panel);
	border: 1px solid var(--hs-border);
	border-radius: 20px;
	box-shadow: 0 16px 46px rgba(0, 0, 0, 0.16);
}

.hs-public-discover-card h2 {
	margin: 8px 0 10px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.6rem, 6vw, 2.35rem);
	font-weight: 400;
	line-height: 1.12;
}

.hs-public-discover-card p {
	margin: 0;
	color: var(--hs-muted);
}

.hs-public-feature-grid {
	display: grid;
	gap: 10px;
}

.hs-public-feature-grid article {
	display: grid;
	gap: 6px;
}

.hs-public-feature-grid strong {
	color: var(--hs-gold-light);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.2rem;
	font-weight: 400;
}

.hs-public-feature-grid span {
	color: var(--hs-muted);
	font-size: 0.82rem;
}

.hs-creation-screen,
.hs-game-screen {
	padding: max(18px, env(safe-area-inset-top)) 16px max(26px, env(safe-area-inset-bottom));
	background:
		radial-gradient(circle at 80% 0%, rgba(40, 140, 143, 0.18), transparent 28%),
		radial-gradient(circle at 0% 65%, rgba(193, 132, 41, 0.11), transparent 28%),
		linear-gradient(155deg, #07111f, #0c1c2d 52%, #08131f);
}

.hs-screen-glow {
	position: absolute;
	top: 65px;
	left: 50%;
	width: 220px;
	height: 220px;
	background: rgba(92, 198, 183, 0.08);
	border-radius: 50%;
	filter: blur(50px);
	transform: translateX(-50%);
	pointer-events: none;
}

.hs-creation-header,
.hs-game-header,
.hs-card-heading,
.hs-character-card,
.hs-ap-meta,
.hs-stat-card,
.hs-action-card,
.hs-modal-panel header,
.hs-setting-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.hs-creation-header,
.hs-game-header {
	position: relative;
	z-index: 2;
	max-width: 900px;
	margin: 0 auto;
}

.hs-creation-header > div {
	flex: 1;
}

.hs-creation-header strong {
	display: block;
	margin-top: 2px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.08rem;
	font-weight: 400;
}

.hs-step-count {
	flex: 0 0 auto;
	color: var(--hs-muted) !important;
	font-size: 0.76rem !important;
	letter-spacing: 0.06em !important;
}

.hs-step-count b {
	color: var(--hs-gold);
	font-size: 1rem;
}

.hs-icon-button {
	display: grid;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	place-items: center;
	color: var(--hs-text);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--hs-border);
	border-radius: 50%;
}

.hs-icon-button:hover,
.hs-icon-button:focus-visible {
	color: var(--hs-gold-light);
	background: rgba(255, 255, 255, 0.1);
}

.hs-step-progress {
	position: relative;
	z-index: 2;
	max-width: 900px;
	height: 3px;
	margin: 18px auto 0;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 999px;
}

.hs-step-progress span {
	display: block;
	width: 20%;
	height: 100%;
	background: linear-gradient(90deg, var(--hs-gold), var(--hs-gold-light));
	box-shadow: 0 0 14px rgba(239, 189, 90, 0.5);
	transition: width 350ms ease;
}

.hs-life-form {
	position: relative;
	z-index: 1;
	max-width: 900px;
	margin: 0 auto;
	padding: clamp(30px, 6svh, 64px) 0 88px;
}

.hs-creation-step.is-active {
	animation: hs-step-in 400ms ease both;
}

.hs-step-intro {
	max-width: 580px;
	margin: 0 auto 28px;
	text-align: center;
}

.hs-step-symbol {
	display: inline-grid;
	width: 52px;
	height: 52px;
	place-items: center;
	margin-bottom: 15px;
	color: var(--hs-gold);
	border: 1px solid rgba(239, 189, 90, 0.36);
	border-radius: 50%;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 0.82rem;
	box-shadow: 0 0 26px rgba(239, 189, 90, 0.08);
}

.hs-step-intro h2 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.8rem, 7vw, 3rem);
	font-weight: 400;
	line-height: 1.12;
}

.hs-step-intro p {
	margin: 10px auto 0;
	color: var(--hs-muted);
	font-size: 0.9rem;
}

.hs-form-card {
	display: grid;
	gap: 14px;
	max-width: 620px;
	margin: 0 auto 24px;
	padding: 20px;
	background: var(--hs-panel);
	border: 1px solid var(--hs-border);
	border-radius: 20px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(14px);
}

.hs-field label,
.hs-choice-group legend {
	display: block;
	margin-bottom: 8px;
	color: #c7d2da;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hs-field input {
	width: 100%;
	min-height: 52px;
	padding: 12px 15px;
	color: var(--hs-text);
	background: rgba(2, 10, 18, 0.4);
	border: 1px solid rgba(181, 207, 221, 0.18);
	border-radius: 12px;
	outline: 0;
	transition: border 150ms ease, box-shadow 150ms ease;
}

.hs-field input:focus {
	border-color: rgba(239, 189, 90, 0.7);
	box-shadow: 0 0 0 3px rgba(239, 189, 90, 0.1);
}

.hs-choice-group {
	max-width: 620px;
	margin: 0 auto;
	padding: 0;
	border: 0;
}

.hs-choice-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.hs-choice-grid-three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hs-choice-card {
	display: flex;
	position: relative;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 105px;
	padding: 14px 10px;
	overflow: hidden;
	color: var(--hs-text);
	background: var(--hs-panel);
	border: 1px solid var(--hs-border);
	border-radius: 16px;
	text-align: center;
	cursor: pointer;
	transition: transform 160ms ease, border 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.hs-choice-card:hover {
	transform: translateY(-2px);
	border-color: rgba(239, 189, 90, 0.35);
}

.hs-choice-card:has(input:checked) {
	background: linear-gradient(145deg, rgba(68, 63, 45, 0.9), rgba(24, 42, 54, 0.92));
	border-color: var(--hs-gold);
	box-shadow: 0 8px 28px rgba(208, 147, 47, 0.12), inset 0 0 0 1px rgba(255, 225, 156, 0.12);
}

.hs-choice-card input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.hs-choice-card strong {
	font-size: 0.82rem;
}

.hs-choice-card small {
	display: block;
	margin-top: 6px;
	color: var(--hs-muted);
	font-size: 0.68rem;
	line-height: 1.35;
}

.hs-choice-icon {
	margin-bottom: 6px;
	color: var(--hs-gold-light);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.45rem;
}

.hs-country-grid,
.hs-belief-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hs-country-card {
	align-items: flex-start;
	min-height: 122px;
	padding: 16px;
	text-align: left;
}

.hs-country-code {
	display: inline-grid;
	width: 36px;
	height: 28px;
	place-items: center;
	margin-bottom: 12px;
	color: var(--hs-gold-light);
	background: rgba(239, 189, 90, 0.1);
	border: 1px solid rgba(239, 189, 90, 0.2);
	border-radius: 7px;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.hs-choice-orbit {
	width: 34px;
	height: 34px;
	margin-bottom: 10px;
	border: 1px solid rgba(120, 217, 203, 0.64);
	border-radius: 50%;
	box-shadow: inset 8px 0 rgba(82, 201, 184, 0.1), 0 0 18px rgba(82, 201, 184, 0.08);
}

.hs-difficulty-grid {
	grid-template-columns: 1fr;
	max-width: 660px;
	margin: 0 auto;
}

.hs-difficulty-card {
	align-items: flex-start;
	min-height: 116px;
	padding: 18px;
	text-align: left;
}

.hs-difficulty-card strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.16rem;
	font-weight: 400;
}

.hs-recommended {
	position: absolute;
	top: 0;
	right: 0;
	padding: 4px 9px;
	color: #291e0b;
	background: var(--hs-gold);
	border-radius: 0 15px 0 10px;
	font-size: 0.55rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hs-life-preview {
	max-width: 520px;
	margin: 0 auto;
	padding: 30px 22px;
	background:
		linear-gradient(145deg, rgba(31, 54, 67, 0.92), rgba(11, 27, 42, 0.96));
	border: 1px solid rgba(239, 189, 90, 0.25);
	border-radius: 24px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
	text-align: center;
}

.hs-preview-avatar,
.hs-avatar {
	display: grid;
	place-items: center;
	color: #2b210e;
	background:
		linear-gradient(145deg, rgba(255, 244, 203, 0.92), rgba(215, 155, 54, 0.92));
	border: 3px solid rgba(255, 229, 164, 0.42);
	border-radius: 50%;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.hs-preview-avatar {
	width: 84px;
	height: 84px;
	margin: 0 auto 16px;
	font-size: 1.5rem;
}

.hs-life-preview h3 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.75rem;
	font-weight: 400;
}

.hs-life-preview > p {
	margin: 5px 0 18px;
	color: var(--hs-muted);
}

.hs-preview-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.hs-preview-chips span {
	padding: 6px 10px;
	color: var(--hs-gold-light);
	background: rgba(239, 189, 90, 0.08);
	border: 1px solid rgba(239, 189, 90, 0.18);
	border-radius: 999px;
	font-size: 0.7rem;
}

.hs-form-message {
	min-height: 22px;
	margin: 18px auto 0;
	color: var(--hs-danger);
	font-size: 0.76rem;
	text-align: center;
}

.hs-form-navigation {
	display: flex;
	position: fixed;
	z-index: 12;
	right: max(16px, calc((100vw - 900px) / 2));
	bottom: max(16px, env(safe-area-inset-bottom));
	left: max(16px, calc((100vw - 900px) / 2));
	gap: 10px;
	padding: 10px;
	background: rgba(5, 15, 25, 0.84);
	border: 1px solid var(--hs-border);
	border-radius: 16px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
	backdrop-filter: blur(16px);
}

.hs-button {
	min-height: 50px;
	padding: 11px 18px;
	border-radius: 12px;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: transform 160ms ease, opacity 160ms ease;
}

.hs-button:hover:not(:disabled) {
	transform: translateY(-1px);
}

.hs-button-gold {
	flex: 1;
	color: #281d0b;
	background: linear-gradient(135deg, #ffe19a, #d99b35);
	box-shadow: 0 8px 22px rgba(211, 151, 48, 0.18);
}

.hs-button-ghost {
	flex: 0 0 96px;
	color: var(--hs-text);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--hs-border);
}

.hs-button:disabled,
.hs-action-cost:disabled {
	cursor: not-allowed;
	filter: grayscale(0.5);
	opacity: 0.42;
}

.hs-app.is-busy button {
	pointer-events: none;
	opacity: 0.62;
}

.hs-game-screen {
	min-height: min(900px, 100svh);
	overflow: auto;
}

.hs-game-header {
	max-width: 1160px;
	margin-bottom: 18px;
}

.hs-game-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hs-logout-button {
	min-height: 34px;
	padding: 7px 10px;
	color: var(--hs-muted);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--hs-border);
	border-radius: 999px;
	font-size: 0.64rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.hs-logout-button:hover,
.hs-logout-button:focus-visible {
	color: var(--hs-gold-light);
}

.hs-game-logo {
	display: flex;
	align-items: center;
	gap: 9px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 0.83rem;
	letter-spacing: 0.12em;
}

.hs-game-logo span {
	display: grid;
	width: 32px;
	height: 32px;
	place-items: center;
	color: #241a09;
	background: var(--hs-gold);
	border-radius: 9px;
	font-size: 1rem;
	font-weight: 700;
}

.hs-game-layout {
	display: grid;
	gap: 14px;
	max-width: 1160px;
	margin: 0 auto;
}

.hs-game-main,
.hs-game-side {
	display: grid;
	align-content: start;
	gap: 14px;
}

.hs-game-card {
	padding: 18px;
	background:
		linear-gradient(145deg, rgba(22, 43, 59, 0.94), rgba(10, 25, 39, 0.95));
	border: 1px solid var(--hs-border);
	border-radius: 20px;
	box-shadow: 0 16px 46px rgba(0, 0, 0, 0.18);
	backdrop-filter: blur(12px);
}

.hs-game-card h2,
.hs-game-card h3,
.hs-game-card h4,
.hs-game-card p {
	margin-top: 0;
}

.hs-character-card {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 80% 15%, rgba(239, 189, 90, 0.17), transparent 35%),
		linear-gradient(135deg, rgba(26, 68, 76, 0.98), rgba(14, 32, 48, 0.98));
}

.hs-character-card::after {
	content: "";
	position: absolute;
	right: -45px;
	bottom: -55px;
	width: 155px;
	height: 155px;
	border: 1px solid rgba(239, 189, 90, 0.12);
	border-radius: 50%;
}

.hs-avatar {
	flex: 0 0 68px;
	width: 68px;
	height: 68px;
	font-size: 1.18rem;
}

.hs-character-copy {
	flex: 1;
	min-width: 0;
}

.hs-character-copy h2 {
	margin: 3px 0 1px;
	overflow: hidden;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.4rem, 6vw, 2.15rem);
	font-weight: 400;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hs-character-copy p {
	margin: 0;
	overflow: hidden;
	color: #b7c5ce;
	font-size: 0.78rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hs-age-badge {
	display: grid;
	position: relative;
	z-index: 1;
	flex: 0 0 62px;
	min-height: 62px;
	place-content: center;
	padding: 8px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	text-align: center;
}

.hs-age-badge strong,
.hs-age-badge span {
	display: block;
}

.hs-age-badge strong {
	color: var(--hs-gold-light);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.55rem;
	line-height: 1;
}

.hs-age-badge span {
	margin-top: 3px;
	color: var(--hs-muted);
	font-size: 0.57rem;
}

.hs-card-heading {
	align-items: flex-start;
	margin-bottom: 16px;
}

.hs-card-heading h3,
.hs-game-card > h3 {
	margin: 3px 0 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.34rem;
	font-weight: 400;
}

.hs-ap-value {
	color: var(--hs-gold-light);
	font-size: 0.9rem;
}

.hs-ap-value span {
	font-size: 1.35rem;
}

.hs-ap-track,
.hs-stat-track {
	height: 8px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 999px;
}

.hs-ap-track span,
.hs-stat-track span {
	display: block;
	width: 0;
	height: 100%;
	background: linear-gradient(90deg, var(--hs-teal), var(--hs-gold));
	border-radius: inherit;
	box-shadow: 0 0 14px rgba(87, 206, 190, 0.25);
	transition: width 350ms ease;
}

.hs-ap-meta {
	margin: 8px 0 17px;
	color: var(--hs-muted);
	font-size: 0.69rem;
}

.hs-ap-meta b {
	color: var(--hs-text);
}

.hs-age-up-button {
	width: 100%;
}

.hs-actions {
	display: grid;
	gap: 9px;
}

.hs-action-card {
	padding: 12px;
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 15px;
}

.hs-action-icon {
	display: grid;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	place-items: center;
	color: var(--hs-gold-light);
	background: rgba(239, 189, 90, 0.09);
	border: 1px solid rgba(239, 189, 90, 0.12);
	border-radius: 13px;
	font-size: 1.12rem;
}

.hs-action-copy {
	flex: 1;
	min-width: 0;
}

.hs-action-copy h4 {
	margin: 0;
	font-size: 0.86rem;
}

.hs-action-copy p {
	margin: 3px 0 0;
	color: var(--hs-muted);
	font-size: 0.68rem;
	line-height: 1.35;
}

.hs-action-cost {
	flex: 0 0 auto;
	min-width: 58px;
	min-height: 38px;
	padding: 7px 9px;
	color: #2b200c;
	background: var(--hs-gold);
	border-radius: 10px;
	font-size: 0.68rem;
	font-weight: 800;
}

.hs-stats {
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px;
}

.hs-stat-card {
	padding: 8px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hs-stat-card:last-child {
	border-bottom: 0;
}

.hs-stat-icon {
	display: grid;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	place-items: center;
	color: var(--hs-teal);
	background: rgba(82, 201, 184, 0.08);
	border-radius: 9px;
	font-size: 0.8rem;
}

.hs-stat-copy {
	flex: 1;
}

.hs-stat-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 5px;
}

.hs-stat-heading span {
	color: #bac7cf;
	font-size: 0.72rem;
}

.hs-stat-heading strong {
	color: var(--hs-text);
	font-size: 0.78rem;
}

.hs-stat-track {
	height: 4px;
}

.hs-report {
	margin: 10px 0 0;
	color: var(--hs-muted);
	font-size: 0.78rem;
}

.hs-timeline {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hs-timeline-item {
	display: flex;
	position: relative;
	gap: 12px;
	padding-bottom: 18px;
}

.hs-timeline-item:not(:last-child)::before {
	content: "";
	position: absolute;
	top: 12px;
	bottom: 0;
	left: 5px;
	width: 1px;
	background: rgba(239, 189, 90, 0.19);
}

.hs-timeline-item:last-child {
	padding-bottom: 0;
}

.hs-timeline-dot {
	position: relative;
	z-index: 1;
	flex: 0 0 11px;
	width: 11px;
	height: 11px;
	margin-top: 5px;
	background: var(--hs-gold);
	border: 3px solid #193042;
	border-radius: 50%;
	box-shadow: 0 0 0 2px rgba(239, 189, 90, 0.35);
}

.hs-timeline-age {
	display: block;
	margin-bottom: 1px;
	color: var(--hs-gold);
	font-size: 0.59rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.hs-timeline-item strong {
	font-size: 0.78rem;
}

.hs-timeline-item p {
	margin: 2px 0 0;
	color: var(--hs-muted);
	font-size: 0.68rem;
	line-height: 1.4;
}

.hs-toast {
	position: fixed;
	z-index: 50;
	right: 18px;
	bottom: 18px;
	left: 18px;
	padding: 12px 16px;
	color: var(--hs-text);
	background: rgba(8, 22, 35, 0.96);
	border: 1px solid var(--hs-border);
	border-radius: 13px;
	box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
	font-size: 0.76rem;
	text-align: center;
	opacity: 0;
	pointer-events: none;
	transform: translateY(12px);
	transition: opacity 180ms ease, transform 180ms ease;
}

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

.hs-toast.is-error {
	color: var(--hs-danger);
	border-color: rgba(255, 140, 134, 0.32);
}

.hs-toast.is-success {
	color: var(--hs-success);
}

.hs-modal {
	position: fixed;
	z-index: 100;
	inset: 0;
}

.hs-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(1, 7, 13, 0.75);
	backdrop-filter: blur(6px);
}

.hs-modal-panel {
	position: absolute;
	right: 16px;
	bottom: max(16px, env(safe-area-inset-bottom));
	left: 16px;
	max-width: 440px;
	margin: auto;
	padding: 22px;
	color: var(--hs-text);
	background: #102538;
	border: 1px solid var(--hs-border);
	border-radius: 22px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
	animation: hs-modal-in 240ms ease both;
}

.hs-modal-panel h2 {
	margin: 3px 0 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.65rem;
	font-weight: 400;
}

.hs-setting-row {
	margin-top: 22px;
	padding: 15px 0;
	border-top: 1px solid var(--hs-border);
	border-bottom: 1px solid var(--hs-border);
}

.hs-setting-row span {
	flex: 1;
}

.hs-setting-row strong,
.hs-setting-row small {
	display: block;
}

.hs-setting-row strong {
	font-size: 0.84rem;
}

.hs-setting-row small,
.hs-modal-panel > p {
	color: var(--hs-muted);
	font-size: 0.68rem;
}

.hs-setting-row input {
	width: 44px;
	height: 24px;
	accent-color: var(--hs-gold);
}

.hs-modal-panel > p {
	margin: 14px 0 0;
}

.hs-menu-button:focus-visible,
.hs-settings-button:focus-visible,
.hs-icon-button:focus-visible,
.hs-button:focus-visible,
.hs-action-cost:focus-visible,
.hs-choice-card:focus-within {
	outline: 2px solid var(--hs-gold-light);
	outline-offset: 3px;
}

@keyframes hs-screen-in {
	from { opacity: 0; transform: scale(1.01); }
	to { opacity: 1; transform: scale(1); }
}

@keyframes hs-step-in {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes hs-modal-in {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes hs-spin {
	to { transform: rotate(360deg); }
}

@keyframes hs-hero-breathe {
	from { transform: scale(1.02) translate3d(0, 0, 0); }
	to { transform: scale(1.065) translate3d(0, -0.8%, 0); }
}

@keyframes hs-stars {
	from { opacity: 0.28; }
	to { opacity: 0.55; }
}

@media (min-width: 560px) {
	.hs-creation-screen,
	.hs-game-screen {
		padding-right: 24px;
		padding-left: 24px;
	}

	.hs-form-card {
		grid-template-columns: repeat(2, 1fr);
	}

	.hs-country-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.hs-belief-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.hs-difficulty-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.hs-actions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hs-toast {
		right: 24px;
		left: auto;
		width: min(360px, calc(100vw - 48px));
	}
}

@media (min-width: 900px) {
	.hs-app {
		min-height: 820px;
	}

	.hs-screen,
	.hs-boot {
		min-height: 820px;
	}

	.hs-title-screen {
		min-height: 820px;
	}

	.hs-title-content {
		min-height: 740px;
	}

	.hs-title-backdrop {
		background-position: center 57%;
	}

	.hs-country-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.hs-game-layout {
		grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.8fr);
	}

	.hs-actions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 370px) {
	.hs-choice-grid-three {
		grid-template-columns: 1fr;
	}

	.hs-choice-grid-three .hs-choice-card {
		min-height: 74px;
	}

	.hs-character-card {
		flex-wrap: wrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hs-app *,
	.hs-app *::before,
	.hs-app *::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

.hs-app.hs-reduced-motion *,
.hs-app.hs-reduced-motion *::before,
.hs-app.hs-reduced-motion *::after {
	scroll-behavior: auto !important;
	animation-duration: 0.01ms !important;
	animation-iteration-count: 1 !important;
	transition-duration: 0.01ms !important;
}
