/* Velac cyber-dystopia shell — dark blues / purples / cyan accents (matches Godot TVRPG UI) */
:root {
	--bg-deep: #07070f;
	--bg-mid: #12101c;
	--bg-panel: rgba(14, 12, 28, 0.94);
	--accent-cyan: #5ce1ff;
	--accent-cyan-glow: rgba(92, 225, 255, 0.35);
	--accent-purple: #8b62ff;
	--accent-purple-deep: #4a2d8c;
	--text: #e8e6f2;
	--text-muted: #908ca3;
	--border-subtle: rgba(120, 180, 255, 0.18);
	--danger: #ff7a9a;
}

* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
	min-height: 100dvh;
}

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	font-family: system-ui, "Segoe UI", Roboto, Ubuntu, sans-serif;
	color: var(--text);
	background: linear-gradient(165deg, var(--bg-deep) 0%, #15102a 42%, #0c1428 100%);
	background-attachment: fixed;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(ellipse 85% 55% at 50% -10%, rgba(100, 70, 200, 0.14), transparent 50%),
		radial-gradient(ellipse 70% 45% at 100% 100%, rgba(40, 100, 200, 0.1), transparent 45%),
		radial-gradient(ellipse 50% 40% at 0% 80%, rgba(140, 60, 180, 0.08), transparent 40%);
}

/* Centered flows (login, lobby, roster, etc.) */
body.velac-web {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 1.25rem 1rem 2rem;
	position: relative;
	z-index: 1;
}

.velac-panel {
	width: 100%;
	max-width: 28rem;
	padding: 1.75rem 1.5rem;
	background: var(--bg-panel);
	border: 1px solid var(--border-subtle);
	border-radius: 12px;
	box-shadow:
		0 0 0 1px rgba(80, 100, 200, 0.12),
		0 16px 48px rgba(0, 0, 0, 0.5),
		0 0 32px rgba(92, 225, 255, 0.05);
	backdrop-filter: blur(10px);
}

.velac-panel form {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

h1,
h2 {
	margin: 0 0 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--accent-cyan);
	text-shadow: 0 0 24px var(--accent-cyan-glow);
}

h1 {
	font-size: 1.5rem;
}

h2 {
	font-size: 1.35rem;
	text-align: center;
}

label {
	display: block;
	font-size: 0.875rem;
	color: var(--text-muted);
	margin-top: 0.5rem;
}

p {
	margin: 0.5rem 0;
	line-height: 1.5;
	color: var(--text-muted);
}

a {
	color: var(--accent-cyan);
	text-decoration: none;
	border-bottom: 1px solid rgba(92, 225, 255, 0.35);
	transition: color 0.15s, border-color 0.15s;
}

a:hover {
	color: #b8f0ff;
	border-bottom-color: var(--accent-cyan);
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
	width: 100%;
	padding: 0.75rem 0.9rem;
	margin: 0.2rem 0 0.45rem;
	font-size: 1rem;
	color: var(--text);
	background: rgba(6, 8, 20, 0.9);
	border: 1px solid rgba(100, 140, 220, 0.22);
	border-radius: 8px;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
textarea:focus,
select:focus {
	border-color: rgba(92, 225, 255, 0.55);
	box-shadow: 0 0 0 2px rgba(92, 225, 255, 0.12);
	background: rgba(10, 12, 28, 0.95);
}

button,
input[type="submit"] {
	width: 100%;
	margin-top: 0.65rem;
	padding: 0.85rem 1rem;
	font-size: 1.05rem;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	border: none;
	border-radius: 8px;
	background: linear-gradient(180deg, #6f52d4 0%, var(--accent-purple-deep) 100%);
	box-shadow:
		0 2px 10px rgba(0, 0, 0, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
	transition: filter 0.15s, transform 0.08s;
}

button:hover,
input[type="submit"]:hover {
	filter: brightness(1.1);
}

button:active,
input[type="submit"]:active {
	transform: translateY(1px);
}

footer {
	margin-top: 1.5rem;
	text-align: center;
	font-size: 0.85rem;
	color: var(--text-muted);
}

/* Legacy pages (e.g. prompt battle) without .velac-panel */
body:not(.velac-web) {
	padding: 1.25rem 1rem 2rem;
	max-width: 42rem;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

body:not(.velac-web) h1 {
	font-size: 1.35rem;
	margin-bottom: 0.75rem;
}

@media (max-width: 480px) {
	.velac-panel {
		padding: 1.35rem 1.1rem;
	}

	h1 {
		font-size: 1.3rem;
	}

	h2 {
		font-size: 1.2rem;
	}

	button,
	input[type="submit"] {
		font-size: 1rem;
		padding: 0.8rem;
	}
}
