/* ═══════════════════════════════════════════════════════════
   TSC Landing — Torrent Sector Crew Gateway
   Standalone premium page (pre-login)
   ═══════════════════════════════════════════════════════════ */

:root {
	--tsc-landing-accent: rgb(251 146 60);
	--tsc-landing-accent-2: rgb(56 189 248);
	--tsc-landing-glow: rgb(251 146 60 / 0.35);
	--tsc-landing-panel: rgb(9 9 11 / 0.72);
	--tsc-landing-border: rgb(255 255 255 / 0.08);
	--tsc-landing-text: rgb(244 244 245);
	--tsc-landing-muted: rgb(161 161 170);
}

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

html, body {
	margin: 0;
	padding: 0;
	min-height: 100%;
}

body.tsc-landing-body {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
	color: var(--tsc-landing-text);
	background: rgb(0 0 0);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

.tsc-landing-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(ellipse 90% 60% at 15% 10%, rgb(251 146 60 / 0.12), transparent 55%),
		radial-gradient(ellipse 70% 50% at 85% 90%, rgb(56 189 248 / 0.1), transparent 50%),
		linear-gradient(160deg, rgb(3 7 18), rgb(0 0 0));
}

.tsc-landing-bg-image {
	position: absolute;
	inset: 0;
	background-image: url('../pic/landing/tsc-landing-hero-bg.png');
	background-size: cover;
	background-position: center;
	opacity: 0.55;
}

.tsc-landing-bg-title {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	overflow: hidden;
}

.tsc-landing-bg-title-text {
	font-size: clamp(3rem, 14vw, 11rem);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	line-height: 0.9;
	text-align: center;
	color: transparent;
	-webkit-text-stroke: 1px rgb(255 255 255 / 0.06);
	background: linear-gradient(180deg, rgb(255 255 255 / 0.04), transparent 70%);
	-webkit-background-clip: text;
	background-clip: text;
	user-select: none;
	padding: 0 1rem;
	max-width: 100%;
}

.tsc-landing-bg-overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgb(0 0 0 / 0.75) 0%, rgb(0 0 0 / 0.35) 45%, rgb(0 0 0 / 0.65) 100%),
		linear-gradient(180deg, rgb(0 0 0 / 0.35), rgb(0 0 0 / 0.8));
}

.tsc-landing-page {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 28rem;
	grid-template-areas:
		"brand shell"
		"cockpit shell";
	gap: clamp(1rem, 4vw, 3rem);
	align-items: start;
	align-content: start;
	padding: clamp(4rem, 10vh, 5.5rem) clamp(1rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2.5rem);
	max-width: 1400px;
	margin: 0 auto;
}

.tsc-landing-brand {
	grid-area: brand;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding: clamp(0.5rem, 2vw, 1.5rem);
}

.tsc-landing-cockpit-section {
	grid-area: cockpit;
	min-width: 0;
	padding: 0 clamp(0.5rem, 2vw, 1.5rem);
}

.tsc-landing-logo-wrap {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.tsc-landing-logo {
	width: clamp(4rem, 10vw, 6.5rem);
	height: clamp(4rem, 10vw, 6.5rem);
	border-radius: 1.25rem;
	border: 1px solid rgb(251 146 60 / 0.35);
	box-shadow: 0 20px 50px rgb(0 0 0 / 0.45), 0 0 40px rgb(251 146 60 / 0.15);
	object-fit: cover;
}

.tsc-landing-brand-text {
	min-width: 0;
}

.tsc-landing-brand-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0 0 0.35rem;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	border: 1px solid rgb(251 146 60 / 0.35);
	background: rgb(251 146 60 / 0.1);
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgb(254 215 170);
}

.tsc-landing-brand-title {
	margin: 0;
	font-size: clamp(1.75rem, 4vw, 3rem);
	font-weight: 800;
	line-height: 1.05;
	background: linear-gradient(135deg, rgb(255 255 255), rgb(251 146 60));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.tsc-landing-brand-sub {
	margin: 0.5rem 0 0;
	max-width: 36rem;
	font-size: clamp(0.875rem, 1.5vw, 1rem);
	line-height: 1.6;
	color: var(--tsc-landing-muted);
}

.tsc-landing-features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem;
	margin-top: 0.5rem;
}

.tsc-landing-feature {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.55rem 0.7rem;
	border-radius: 0.6rem;
	border: 1px solid var(--tsc-landing-border);
	background: rgb(24 24 27 / 0.45);
	font-size: 0.75rem;
	color: rgb(212 212 216);
}

.tsc-landing-feature .tsc-landing-icon {
	color: var(--tsc-landing-accent);
}

a.tsc-landing-feature--link {
	text-decoration: none;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
}

a.tsc-landing-feature--link:hover {
	border-color: rgb(234 88 12 / 0.45);
	color: rgb(251 146 60);
	background: rgb(234 88 12 / 0.08);
}

/* ── Bridge cockpit dashboard ── */
.tsc-landing-cockpit {
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	margin-top: 0;
}

.tsc-landing-cockpit__hull {
	position: relative;
	padding: clamp(0.65rem, 1.5vw, 0.9rem);
	border-radius: 0.75rem;
	background:
		linear-gradient(180deg, rgb(12 14 20 / 0.92), rgb(6 8 12 / 0.96));
	border: 1px solid rgb(251 146 60 / 0.22);
	box-shadow:
		0 0 0 1px rgb(255 255 255 / 0.03) inset,
		0 24px 60px rgb(0 0 0 / 0.45),
		0 0 48px rgb(251 146 60 / 0.08);
	overflow: hidden;
}

.tsc-landing-cockpit__hull::before {
	content: '';
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		0deg,
		transparent,
		transparent 2px,
		rgb(255 255 255 / 0.015) 2px,
		rgb(255 255 255 / 0.015) 3px
	);
	pointer-events: none;
	opacity: 0.35;
}

.tsc-landing-cockpit__corner {
	position: absolute;
	width: 1.25rem;
	height: 1.25rem;
	border-color: rgb(56 189 248 / 0.55);
	border-style: solid;
	pointer-events: none;
}

.tsc-landing-cockpit__corner--tl { top: 0.4rem; left: 0.4rem; border-width: 2px 0 0 2px; }
.tsc-landing-cockpit__corner--tr { top: 0.4rem; right: 0.4rem; border-width: 2px 2px 0 0; }
.tsc-landing-cockpit__corner--bl { bottom: 0.4rem; left: 0.4rem; border-width: 0 0 2px 2px; }
.tsc-landing-cockpit__corner--br { bottom: 0.4rem; right: 0.4rem; border-width: 0 2px 2px 0; }

.tsc-landing-cockpit__header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.5rem 0.65rem;
	border-bottom: 1px solid rgb(251 146 60 / 0.15);
	font-family: ui-monospace, 'Cascadia Code', 'SF Mono', monospace;
	font-size: 0.625rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgb(161 161 170);
}

.tsc-landing-cockpit__header-left,
.tsc-landing-cockpit__header-right {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.tsc-landing-cockpit__header-right {
	justify-content: flex-end;
}

.tsc-landing-cockpit__callsign {
	color: rgb(251 146 60);
	font-weight: 700;
}

.tsc-landing-cockpit__header-center {
	color: rgb(228 228 231);
	font-weight: 700;
	letter-spacing: 0.2em;
	text-align: center;
}

.tsc-landing-cockpit__status-dot {
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 999px;
	background: rgb(74 222 128);
	box-shadow: 0 0 8px rgb(74 222 128 / 0.8);
	animation: tsc-cockpit-pulse 2s ease-in-out infinite;
}

.tsc-landing-cockpit__status-label {
	color: rgb(134 239 172);
}

.tsc-landing-cockpit__clock {
	color: rgb(56 189 248);
}

.tsc-landing-cockpit__main {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr) minmax(0, 0.95fr);
	gap: clamp(0.5rem, 1.5vw, 0.75rem);
	min-height: clamp(11rem, 28vw, 16rem);
}

.tsc-landing-cockpit__panel {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 0.5rem;
	border-radius: 0.45rem;
	background: rgb(0 0 0 / 0.35);
	border: 1px solid rgb(255 255 255 / 0.05);
	min-width: 0;
}

.tsc-landing-cockpit__panel-title {
	font-family: ui-monospace, monospace;
	font-size: 0.5625rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: rgb(56 189 248 / 0.85);
}

.tsc-landing-cockpit__radar-wrap {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 7rem;
}

.tsc-landing-cockpit__radar {
	width: 100%;
	max-width: 9rem;
	aspect-ratio: 1;
}

.tsc-landing-cockpit__readout {
	font-family: ui-monospace, monospace;
	font-size: 0.5625rem;
	color: rgb(251 146 60 / 0.85);
	text-align: center;
}

.tsc-landing-cockpit__viewport {
	position: relative;
	border-radius: 0.45rem;
	overflow: hidden;
	background: radial-gradient(ellipse 80% 60% at 50% 85%, rgb(20 30 50), rgb(2 4 8));
	border: 1px solid rgb(56 189 248 / 0.12);
	min-height: 11rem;
	cursor: crosshair;
	user-select: none;
	touch-action: none;
}

.tsc-landing-cockpit__fx {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 4;
}

.tsc-landing-cockpit__stars {
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(1px 1px at 10% 20%, rgb(255 255 255 / 0.7), transparent),
		radial-gradient(1px 1px at 30% 65%, rgb(255 255 255 / 0.5), transparent),
		radial-gradient(1px 1px at 55% 15%, rgb(255 255 255 / 0.6), transparent),
		radial-gradient(1px 1px at 72% 42%, rgb(255 255 255 / 0.45), transparent),
		radial-gradient(1px 1px at 88% 78%, rgb(255 255 255 / 0.55), transparent),
		radial-gradient(1px 1px at 45% 88%, rgb(255 255 255 / 0.4), transparent);
	animation: tsc-cockpit-drift 40s linear infinite;
}

.tsc-landing-cockpit__horizon {
	position: absolute;
	left: -10%;
	right: -10%;
	bottom: 28%;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgb(56 189 248 / 0.5), transparent);
	box-shadow: 0 0 20px rgb(56 189 248 / 0.35);
}

.tsc-landing-cockpit__planet {
	position: absolute;
	left: 50%;
	bottom: 18%;
	width: 38%;
	aspect-ratio: 1;
	transform: translateX(-50%);
	border-radius: 999px;
	background: radial-gradient(circle at 35% 30%, rgb(251 146 60 / 0.35), rgb(120 50 20 / 0.6) 45%, rgb(10 8 12) 70%);
	box-shadow: 0 0 40px rgb(251 146 60 / 0.2);
	animation: tsc-cockpit-planet-float 8s ease-in-out infinite;
}

.tsc-landing-cockpit__scanline {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 0%, rgb(56 189 248 / 0.06) 50%, transparent 100%);
	background-size: 100% 8px;
	animation: tsc-cockpit-scan 4s linear infinite;
	pointer-events: none;
	opacity: 0.4;
}

.tsc-landing-cockpit__viewport-hud {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding: 0.65rem;
	pointer-events: none;
}

.tsc-landing-cockpit__reticle {
	width: 3.5rem;
	height: 3.5rem;
	border: 1px solid rgb(251 146 60 / 0.45);
	border-radius: 999px;
	box-shadow: 0 0 0 1px rgb(251 146 60 / 0.1) inset;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 5;
	transition: transform 0.05s linear, box-shadow 0.12s ease;
	will-change: left, top, transform;
}

.tsc-landing-cockpit__reticle--fire {
	box-shadow:
		0 0 0 1px rgb(251 146 60 / 0.2) inset,
		0 0 16px rgb(251 146 60 / 0.55);
	transform: translate(-50%, -50%) scale(0.92);
}

.tsc-landing-cockpit__reticle::before,
.tsc-landing-cockpit__reticle::after {
	content: '';
	position: absolute;
	background: rgb(251 146 60 / 0.5);
}

.tsc-landing-cockpit__reticle::before {
	width: 1px;
	height: 120%;
	left: 50%;
	top: -10%;
	transform: translateX(-50%);
}

.tsc-landing-cockpit__reticle::after {
	height: 1px;
	width: 120%;
	top: 50%;
	left: -10%;
	transform: translateY(-50%);
}

.tsc-landing-cockpit__coords,
.tsc-landing-cockpit__viewport-label {
	font-family: ui-monospace, monospace;
	font-size: 0.5625rem;
	letter-spacing: 0.08em;
	color: rgb(56 189 248 / 0.9);
	text-shadow: 0 0 8px rgb(56 189 248 / 0.35);
}

.tsc-landing-cockpit__metrics {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-family: ui-monospace, monospace;
	font-size: 0.5625rem;
}

.tsc-landing-cockpit__metrics li {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	color: rgb(113 113 122);
	border-bottom: 1px solid rgb(255 255 255 / 0.04);
	padding-bottom: 0.25rem;
}

.tsc-landing-cockpit__metrics strong {
	color: rgb(251 146 60);
	font-weight: 600;
}

.tsc-landing-cockpit__log {
	margin-top: auto;
	font-family: ui-monospace, monospace;
	font-size: 0.5rem;
	line-height: 1.5;
	color: rgb(56 189 248 / 0.75);
	max-height: 4.5rem;
	overflow: hidden;
}

.tsc-landing-cockpit__log div {
	animation: tsc-cockpit-log-in 0.4s ease-out;
}

.tsc-landing-cockpit__footer {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr auto;
	align-items: center;
	gap: 0.65rem;
	margin-top: 0.65rem;
	padding-top: 0.65rem;
	border-top: 1px solid rgb(251 146 60 / 0.12);
}

.tsc-landing-cockpit__gauge-label {
	display: block;
	font-family: ui-monospace, monospace;
	font-size: 0.5rem;
	letter-spacing: 0.1em;
	color: rgb(113 113 122);
	margin-bottom: 0.25rem;
}

.tsc-landing-cockpit__gauge-bar {
	height: 0.35rem;
	border-radius: 999px;
	background: rgb(255 255 255 / 0.06);
	overflow: hidden;
}

.tsc-landing-cockpit__gauge-fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	width: 40%;
}

.tsc-landing-cockpit__gauge-fill--thrust {
	background: linear-gradient(90deg, rgb(251 146 60), rgb(234 88 12));
	animation: tsc-cockpit-gauge-a 3s ease-in-out infinite;
}

.tsc-landing-cockpit__gauge-fill--power {
	background: linear-gradient(90deg, rgb(56 189 248), rgb(14 165 233));
	animation: tsc-cockpit-gauge-b 4s ease-in-out infinite;
}

.tsc-landing-cockpit__gauge-fill--comms {
	background: linear-gradient(90deg, rgb(74 222 128), rgb(34 197 94));
	animation: tsc-cockpit-gauge-c 3.5s ease-in-out infinite;
}

.tsc-landing-cockpit__leds {
	display: flex;
	gap: 0.35rem;
}

.tsc-landing-cockpit__led {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 999px;
	background: rgb(63 63 70);
}

.tsc-landing-cockpit__led--a { animation: tsc-cockpit-led 1.2s step-end infinite; background: rgb(251 146 60); }
.tsc-landing-cockpit__led--b { animation: tsc-cockpit-led 1.2s step-end infinite 0.3s; background: rgb(56 189 248); }
.tsc-landing-cockpit__led--c { animation: tsc-cockpit-led 1.2s step-end infinite 0.6s; background: rgb(74 222 128); }
.tsc-landing-cockpit__led--d { animation: tsc-cockpit-led 1.2s step-end infinite 0.9s; background: rgb(251 146 60); }

@keyframes tsc-cockpit-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.45; }
}

@keyframes tsc-cockpit-drift {
	from { transform: translateX(0); }
	to { transform: translateX(-2%); }
}

@keyframes tsc-cockpit-planet-float {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50% { transform: translateX(-50%) translateY(-4px); }
}

@keyframes tsc-cockpit-scan {
	from { background-position: 0 0; }
	to { background-position: 0 100%; }
}

@keyframes tsc-cockpit-gauge-a {
	0%, 100% { width: 35%; }
	50% { width: 78%; }
}

@keyframes tsc-cockpit-gauge-b {
	0%, 100% { width: 55%; }
	50% { width: 88%; }
}

@keyframes tsc-cockpit-gauge-c {
	0%, 100% { width: 42%; }
	50% { width: 70%; }
}

@keyframes tsc-cockpit-led {
	0%, 49% { opacity: 1; }
	50%, 100% { opacity: 0.25; }
}

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

@media (max-width: 900px) {
	.tsc-landing-cockpit__main {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto auto;
	}

	.tsc-landing-cockpit__viewport {
		grid-column: 1 / -1;
		min-height: 10rem;
	}
}

@media (max-width: 640px) {
	.tsc-landing-cockpit__header {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.tsc-landing-cockpit__header-left,
	.tsc-landing-cockpit__header-right {
		justify-content: center;
	}

	.tsc-landing-cockpit__main {
		grid-template-columns: 1fr;
	}

	.tsc-landing-cockpit__footer {
		grid-template-columns: 1fr 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tsc-landing-cockpit__stars,
	.tsc-landing-cockpit__planet,
	.tsc-landing-cockpit__scanline,
	.tsc-landing-cockpit__gauge-fill,
	.tsc-landing-cockpit__led,
	.tsc-landing-cockpit__status-dot {
		animation: none !important;
	}

	.tsc-landing-cockpit__reticle {
		transition: none;
	}
}

.tsc-landing-shell {
	grid-area: shell;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	width: 28rem;
	max-width: 100%;
	min-width: 0;
	flex-shrink: 0;
	align-self: start;
	justify-self: end;
}

body.tsc-landing-body .tsc-theme-toggle--landing {
	position: fixed;
	top: max(1rem, env(safe-area-inset-top, 0px));
	right: max(1rem, env(safe-area-inset-right, 0px));
	left: auto;
	inset-inline-end: max(1rem, env(safe-area-inset-right, 0px));
	inset-inline-start: auto;
	z-index: 100;
	border-color: rgb(255 255 255 / 0.12);
	background: rgb(9 9 11 / 0.55);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	color: rgb(212 212 216);
	box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
}

body.tsc-landing-body .tsc-theme-toggle--landing:hover {
	border-color: rgb(251 146 60 / 0.45);
	color: rgb(251 146 60);
}

@media (max-width: 640px) {
	body.tsc-landing-body .tsc-theme-toggle--landing {
		min-width: 2.5rem;
		padding: 0.375rem;
	}

	body.tsc-landing-body .tsc-theme-toggle--landing .tsc-theme-toggle__label {
		display: none;
	}
}

.tsc-landing-card {
	width: 100%;
	box-sizing: border-box;
	border-radius: 1.15rem;
	border: 1px solid rgb(251 146 60 / 0.22);
	background: var(--tsc-landing-panel);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	box-shadow:
		0 0 0 1px rgb(255 255 255 / 0.04) inset,
		0 30px 80px rgb(0 0 0 / 0.55),
		0 0 60px rgb(251 146 60 / 0.08);
	overflow: hidden;
	align-self: start;
}

.tsc-landing-nav {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-bottom: 1px solid var(--tsc-landing-border);
	background: rgb(0 0 0 / 0.35);
}

.tsc-landing-nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	min-width: 0;
	min-height: 3.25rem;
	padding: 0.75rem 0.35rem;
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--tsc-landing-muted);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.tsc-landing-nav-item span {
	display: block;
	max-width: 100%;
	text-align: center;
	line-height: 1.25;
	overflow-wrap: anywhere;
	hyphens: auto;
}

.tsc-landing-nav-item:hover {
	color: var(--tsc-landing-text);
	background: rgb(255 255 255 / 0.03);
}

.tsc-landing-nav-item--active {
	color: rgb(254 215 170);
	border-bottom-color: var(--tsc-landing-accent);
	background: rgb(251 146 60 / 0.08);
}

.tsc-landing-panel {
	padding: clamp(1rem, 2.5vw, 1.35rem);
	min-width: 0;
	overflow-wrap: anywhere;
}

.tsc-landing-panel-head {
	margin-bottom: 1rem;
}

.tsc-landing-panel-title {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--tsc-landing-text);
}

.tsc-landing-panel-title .tsc-landing-icon {
	color: var(--tsc-landing-accent);
}

.tsc-landing-panel-sub {
	margin: 0.35rem 0 0;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--tsc-landing-muted);
}

.tsc-landing-referral {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0 0 0.85rem;
	padding: 0.5rem 0.65rem;
	border-radius: 0.5rem;
	border: 1px solid rgb(56 189 248 / 0.3);
	background: rgb(56 189 248 / 0.08);
	font-size: 0.75rem;
	color: rgb(186 230 253);
}

.tsc-landing-form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.tsc-landing-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.tsc-landing-label {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--tsc-landing-muted);
}

.tsc-landing-input {
	width: 100%;
	padding: 0.65rem 0.8rem;
	border-radius: 0.6rem;
	border: 1px solid rgb(63 63 70 / 0.85);
	background: rgb(0 0 0 / 0.55);
	color: var(--tsc-landing-text);
	font-size: 0.875rem;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.tsc-landing-input:focus {
	outline: none;
	border-color: rgb(251 146 60 / 0.55);
	box-shadow: 0 0 0 3px rgb(251 146 60 / 0.15);
}

.tsc-landing-input--pin {
	font-family: ui-monospace, monospace;
	letter-spacing: 0.2em;
	text-align: center;
	font-weight: 700;
}

.tsc-landing-field-hint {
	font-size: 0.6875rem;
	line-height: 1.45;
	color: rgb(113 113 122);
}

.tsc-landing-pin-hint {
	display: flex;
	align-items: flex-start;
	gap: 0.35rem;
	margin: 0;
	font-size: 0.6875rem;
	line-height: 1.45;
	color: rgb(113 113 122);
}

.tsc-landing-pin-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.4rem;
	margin-top: 0.25rem;
}

.tsc-landing-pin-key {
	padding: 0.65rem;
	border-radius: 0.55rem;
	border: 1px solid rgb(63 63 70 / 0.75);
	background: rgb(24 24 27 / 0.85);
	color: var(--tsc-landing-text);
	font-size: 0.9375rem;
	font-weight: 700;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.tsc-landing-pin-key:hover {
	border-color: rgb(251 146 60 / 0.45);
	background: rgb(39 39 42 / 0.9);
}

.tsc-landing-pin-key:active {
	transform: scale(0.96);
}

.tsc-landing-pin-key--reset,
.tsc-landing-pin-key--back {
	font-size: 0.75rem;
	color: var(--tsc-landing-muted);
}

.tsc-landing-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	width: 100%;
	padding: 0.75rem 1rem;
	border-radius: 0.65rem;
	border: 1px solid transparent;
	font-size: 0.875rem;
	font-weight: 700;
	cursor: pointer;
	transition: filter 0.15s, transform 0.1s, box-shadow 0.15s;
}

.tsc-landing-btn--primary {
	color: rgb(0 0 0);
	background: linear-gradient(135deg, rgb(251 146 60), rgb(234 88 12));
	border-color: rgb(251 146 60 / 0.55);
	box-shadow: 0 10px 30px rgb(251 146 60 / 0.25);
}

.tsc-landing-btn--primary:hover {
	filter: brightness(1.06);
	box-shadow: 0 12px 34px rgb(251 146 60 / 0.35);
}

.tsc-landing-btn--accent {
	color: rgb(0 0 0);
	background: linear-gradient(135deg, rgb(56 189 248), rgb(14 165 233));
	border-color: rgb(56 189 248 / 0.55);
	box-shadow: 0 10px 30px rgb(56 189 248 / 0.2);
}

.tsc-landing-btn:active {
	transform: scale(0.98);
}

.tsc-landing-panel-links {
	margin-top: 0.85rem;
	padding-top: 0.85rem;
	border-top: 1px solid var(--tsc-landing-border);
}

.tsc-landing-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: rgb(251 146 60);
	text-decoration: none;
}

.tsc-landing-link:hover {
	color: rgb(254 215 170);
	text-decoration: underline;
}

.tsc-landing-checks {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.tsc-landing-check {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	font-size: 0.75rem;
	line-height: 1.45;
	color: rgb(212 212 216);
	cursor: pointer;
}

.tsc-landing-check input {
	margin-top: 0.15rem;
	accent-color: var(--tsc-landing-accent);
}

.tsc-landing-check a {
	color: rgb(251 146 60);
}

.tsc-landing-info {
	margin-bottom: 0.85rem;
	padding: 0.7rem 0.8rem;
	border-radius: 0.6rem;
	border: 1px solid rgb(56 189 248 / 0.22);
	background: rgb(56 189 248 / 0.06);
	font-size: 0.75rem;
	line-height: 1.55;
	color: rgb(186 230 253);
}

.tsc-landing-info a {
	color: rgb(125 211 252);
}

.tsc-landing-captcha {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
}

.tsc-landing-captcha-img {
	border-radius: 0.45rem;
	border: 1px solid rgb(63 63 70 / 0.75);
	max-width: 100%;
	height: auto;
}

.tsc-landing-captcha-refresh {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.4rem 0.65rem;
	border-radius: 0.45rem;
	border: 1px solid rgb(63 63 70 / 0.75);
	background: rgb(24 24 27 / 0.75);
	color: var(--tsc-landing-muted);
	font-size: 0.6875rem;
	font-weight: 600;
	cursor: pointer;
}

.tsc-landing-captcha-refresh:hover {
	color: var(--tsc-landing-text);
	border-color: rgb(251 146 60 / 0.4);
}

.tsc-landing-alert {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 0.75rem;
	padding: 0.55rem 0.7rem;
	border-radius: 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
}

.tsc-landing-alert--error {
	border: 1px solid rgb(248 113 113 / 0.4);
	background: rgb(248 113 113 / 0.1);
	color: rgb(252 165 165);
}

.tsc-landing-alert--success {
	border: 1px solid rgb(74 222 128 / 0.4);
	background: rgb(74 222 128 / 0.1);
	color: rgb(134 239 172);
}

.tsc-landing-alert-text {
	margin: 0.35rem 0 0;
	font-weight: 500;
	line-height: 1.45;
}

.tsc-landing-alert-list {
	margin: 0.35rem 0 0;
	padding-left: 1.1rem;
	font-weight: 500;
	line-height: 1.45;
}

.tsc-landing-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.65rem;
	font-size: 0.6875rem;
	color: rgb(113 113 122);
}

.tsc-landing-footer-link {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	color: rgb(161 161 170);
	text-decoration: none;
}

.tsc-landing-footer-link:hover {
	color: rgb(251 146 60);
}

.tsc-landing-footer-sep {
	opacity: 0.45;
}

.tsc-landing-icon {
	width: 1em;
	text-align: center;
}

@media (max-width: 1023px) {
	.tsc-landing-page {
		grid-template-columns: 1fr;
		grid-template-areas: none;
		display: flex;
		flex-direction: column;
		max-width: 34rem;
		padding-top: clamp(3.5rem, 12vh, 4.5rem);
	}

	.tsc-landing-brand {
		order: 1;
		text-align: center;
		align-items: center;
	}

	.tsc-landing-shell {
		display: contents;
	}

	.tsc-landing-card {
		order: 2;
	}

	.tsc-landing-cockpit-section {
		order: 3;
		width: 100%;
		padding: 0;
		margin-top: 0.25rem;
	}

	.tsc-landing-footer {
		order: 4;
	}

	.tsc-landing-logo-wrap {
		justify-content: center;
	}

	.tsc-landing-features {
		grid-template-columns: 1fr;
		width: 100%;
	}

	.tsc-landing-bg-title-text {
		font-size: clamp(2rem, 18vw, 5rem);
	}
}

@media (max-width: 480px) {
	.tsc-landing-nav-item span {
		font-size: 0.625rem;
	}

	.tsc-landing-nav-item {
		padding: 0.6rem 0.25rem;
	}
}

/* ── Login warp / landing sequence ── */

body.tsc-landing-body--warp {
	overflow: hidden;
	position: fixed;
	inset: 0;
	width: 100%;
}

body.tsc-landing-warp-active .tsc-landing-page,
body.tsc-landing-warp-active .tsc-landing-bg {
	transition: opacity 0.6s ease, transform 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body.tsc-landing-warp-active:has(.tsc-landing-warp--fly) .tsc-landing-page {
	opacity: 0;
	transform: scale(1.35) translateZ(0);
	filter: blur(6px);
}

body.tsc-landing-warp-active:has(.tsc-landing-warp--fly) .tsc-landing-bg-image {
	animation: tsc-warp-bg-zoom 2.2s cubic-bezier(0.45, 0, 0.15, 1) forwards;
	transform-origin: center center;
}

@keyframes tsc-warp-bg-zoom {
	from { transform: scale(1); opacity: 0.55; }
	to { transform: scale(2.8); opacity: 0.9; }
}

.tsc-landing-warp {
	position: fixed;
	top: var(--tsc-warp-offset-top, 0px);
	left: var(--tsc-warp-offset-left, 0px);
	width: var(--tsc-warp-vw, 100vw);
	height: 100vh;
	height: 100svh;
	height: var(--tsc-warp-vh, 100svh);
	z-index: 100;
	display: grid;
	place-items: center;
	pointer-events: none;
	opacity: 0;
	margin: 0;
	padding: 0;
}

.tsc-landing-warp--fly,
.tsc-landing-warp--land,
.tsc-landing-warp--exit {
	opacity: 1;
}

.tsc-landing-warp-vignette {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at center, transparent 20%, rgb(0 0 0 / 0.65) 100%);
	opacity: 0;
	transition: opacity 0.4s ease;
}

.tsc-landing-warp--fly .tsc-landing-warp-vignette {
	opacity: 1;
}

.tsc-landing-warp-stars {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	pointer-events: none;
}

.tsc-landing-warp-star {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 2px;
	margin-left: -1px;
	height: calc(20px + (var(--i) * 3px));
	background: linear-gradient(180deg, rgb(251 146 60), transparent);
	border-radius: 999px;
	opacity: 0;
	transform-origin: 50% 0%;
	--angle: calc(var(--i) * 7.5deg);
	--dist: calc(40px + (var(--i) * 11px));
	transform: rotate(var(--angle)) translateY(calc(var(--dist) * -1));
}

.tsc-landing-warp--fly .tsc-landing-warp-star {
	animation: tsc-warp-star 1.4s linear infinite;
	animation-delay: calc(var(--i) * 0.03s);
}

@keyframes tsc-warp-star {
	0% {
		opacity: 0;
		transform: rotate(var(--angle)) translateY(-30vh) scaleY(0.4);
	}
	15% { opacity: 0.9; }
	100% {
		opacity: 0;
		transform: rotate(var(--angle)) translateY(120vh) scaleY(2.5);
	}
}

.tsc-landing-warp-tunnel {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 0;
	height: 0;
	overflow: visible;
	opacity: 0;
}

.tsc-landing-warp--fly .tsc-landing-warp-tunnel {
	opacity: 1;
}

.tsc-landing-warp-ring {
	position: absolute;
	left: 0;
	top: 0;
	width: min(90vw, 520px);
	height: min(90vw, 520px);
	border-radius: 999px;
	border: 2px solid rgb(251 146 60 / 0.35);
	box-shadow: 0 0 40px rgb(251 146 60 / 0.15), inset 0 0 30px rgb(56 189 248 / 0.08);
	transform: translate(-50%, -50%) scale(0.15);
	animation: tsc-warp-ring 1.8s ease-out infinite;
}

.tsc-landing-warp-ring:nth-child(2) {
	animation-delay: 0.35s;
	border-color: rgb(56 189 248 / 0.3);
}

.tsc-landing-warp-ring:nth-child(3) {
	animation-delay: 0.7s;
	width: min(70vw, 380px);
	height: min(70vw, 380px);
}

@keyframes tsc-warp-ring {
	0% {
		transform: translate(-50%, -50%) scale(0.15);
		opacity: 0.9;
	}
	100% {
		transform: translate(-50%, -50%) scale(2.5);
		opacity: 0;
	}
}

.tsc-landing-warp-hud {
	position: absolute;
	left: clamp(1rem, 4vw, 2rem);
	bottom: clamp(1rem, 4vw, 2rem);
	min-width: 12rem;
	padding: 0.75rem 0.9rem;
	border-radius: 0.65rem;
	border: 1px solid rgb(251 146 60 / 0.35);
	background: rgb(0 0 0 / 0.55);
	font-family: ui-monospace, monospace;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.tsc-landing-warp--fly .tsc-landing-warp-hud,
.tsc-landing-warp--land .tsc-landing-warp-hud {
	opacity: 1;
	transform: translateY(0);
}

.tsc-landing-warp-hud-line {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.6875rem;
	margin-bottom: 0.35rem;
}

.tsc-landing-warp-hud-label {
	color: rgb(113 113 122);
	letter-spacing: 0.08em;
}

.tsc-landing-warp-hud-value {
	color: rgb(251 146 60);
	font-weight: 700;
}

.tsc-landing-warp-progress {
	height: 0.25rem;
	border-radius: 999px;
	background: rgb(39 39 42 / 0.8);
	overflow: hidden;
	margin-top: 0.35rem;
}

.tsc-landing-warp-progress-fill {
	display: block;
	height: 100%;
	width: 0%;
	border-radius: 999px;
	background: linear-gradient(90deg, rgb(56 189 248), rgb(251 146 60));
	transition: width 0.1s linear;
}

.tsc-landing-warp-touchdown {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	padding:
		max(1.5rem, env(safe-area-inset-top, 0px))
		max(1.5rem, env(safe-area-inset-right, 0px))
		max(1.5rem, env(safe-area-inset-bottom, 0px))
		max(1.5rem, env(safe-area-inset-left, 0px));
	pointer-events: none;
}

.tsc-landing-warp-touchdown-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: min(92vw, 24rem);
	opacity: 0;
	transform: scale(1.2) translateY(30px);
}

.tsc-landing-warp-touchdown--show .tsc-landing-warp-touchdown-inner {
	animation: tsc-warp-touchdown 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes tsc-warp-touchdown {
	0% {
		opacity: 0;
		transform: scale(1.35) translateY(40px);
		filter: blur(8px);
	}
	55% {
		opacity: 1;
		transform: scale(0.96) translateY(-6px);
		filter: blur(0);
	}
	75% {
		transform: scale(1.02) translateY(2px);
	}
	100% {
		opacity: 1;
		transform: scale(1) translateY(0);
		filter: blur(0);
	}
}

.tsc-landing-warp-touchdown-burst {
	position: absolute;
	left: 50%;
	top: 50%;
	width: min(120vw, 28rem);
	height: min(120vw, 28rem);
	transform: translate(-50%, -50%);
	border-radius: 999px;
	background: radial-gradient(circle, rgb(251 146 60 / 0.35), transparent 65%);
	opacity: 0;
	animation: tsc-warp-burst 1s ease-out 0.1s forwards;
	pointer-events: none;
}

@keyframes tsc-warp-burst {
	from { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
	to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.tsc-landing-warp-logo {
	position: relative;
	z-index: 1;
	border-radius: 1rem;
	border: 1px solid rgb(251 146 60 / 0.45);
	box-shadow: 0 0 50px rgb(251 146 60 / 0.35);
	margin-bottom: 0.85rem;
}

.tsc-landing-warp-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgb(74 222 128);
	text-shadow:
		0 1px 2px rgb(0 0 0 / 0.9),
		0 0 12px rgb(0 0 0 / 0.65);
}

.tsc-landing-warp-title {
	margin: 0.35rem 0 0;
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	font-weight: 800;
	color: rgb(244 244 245);
	text-shadow:
		0 2px 4px rgb(0 0 0 / 0.95),
		0 4px 24px rgb(0 0 0 / 0.75),
		0 0 48px rgb(0 0 0 / 0.45);
}

.tsc-landing-warp-user {
	margin: 0.25rem 0 0;
	font-size: 1.125rem;
	font-weight: 700;
	color: rgb(251 146 60);
	text-shadow:
		0 2px 4px rgb(0 0 0 / 0.9),
		0 4px 20px rgb(0 0 0 / 0.7),
		0 0 32px rgb(0 0 0 / 0.4);
}

.tsc-landing-warp-sub {
	margin: 0.5rem 0 0;
	font-size: 0.8125rem;
	color: rgb(161 161 170);
	text-shadow:
		0 1px 3px rgb(0 0 0 / 0.85),
		0 0 16px rgb(0 0 0 / 0.55);
}

.tsc-landing-warp--exit {
	animation: tsc-warp-exit 0.5s ease forwards;
}

@keyframes tsc-warp-exit {
	to {
		opacity: 0;
		background: rgb(0 0 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tsc-landing-warp,
	.tsc-landing-warp-star,
	.tsc-landing-warp-ring,
	.tsc-landing-warp-touchdown--show .tsc-landing-warp-touchdown-inner {
		animation: none !important;
	}
}
