/*
===============================================================================
	Whiteout Protocol UI Styles
-------------------------------------------------------------------------------
	Refactor hygiene pass only:
	- organized into clearer sections
	- grouped related selectors
	- added comments for future-us
	- preserved current visual behavior

	CSS warning label:
	This file carries the whole cockpit aesthetic. Before changing shared panel,
	viewport, or screen styles, check both map mode and HTML screen mode.
===============================================================================
*/


/* =============================================================================
	01. Theme Tokens
============================================================================= */

:root {
	--text-main: #eafff8;
	--text-muted: rgba(157, 245, 214, 0.58);

	--neon-green: #9df5d6; /* normal system interface */
	--neon-blue: #4b91ff; /* tactical/map/data view */
	--neon-magenta: #ff4bd8; /* hostile, corrupt, unauthorized, black ICE */
	--neon-orange: #ffa84c; /* alerts, warnings, objectives */

	--panel-border: rgba(157, 245, 214, 0.22);
	--panel-bg-top: rgba(6, 28, 24, 0.82);
	--panel-bg-bottom: rgba(2, 8, 7, 0.96);

	--shadow-heavy: rgba(0, 0, 0, 0.72);

	--state-good: #9df5d6;
	--state-info: #4b91ff;
	--state-warning: #ffd166;
	--state-alert: #ffa84c;
	--state-danger: #ff4b6e;
	--state-offline: rgba(157, 245, 214, 0.36);
}


/* =============================================================================
	02. Base Reset + Page Atmosphere
============================================================================= */

* {
	box-sizing: border-box;
}

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

body {
	font-family: Georgia, "Times New Roman", serif;
	color: var(--text-main);
	background:
		radial-gradient(circle at 14% 8%, rgba(255, 75, 216, 0.13), transparent 26rem),
		radial-gradient(circle at 88% 18%, rgba(89, 255, 204, 0.13), transparent 24rem),
		radial-gradient(circle at 50% 100%, rgba(75, 145, 255, 0.10), transparent 32rem),
		linear-gradient(135deg, #020608 0%, #071316 45%, #030407 100%);
}

/* Ambient grid glow behind the cockpit. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(89, 255, 204, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(75, 145, 255, 0.035) 1px, transparent 1px);
	background-size: 32px 32px;
	mask-image: radial-gradient(circle at center, black, transparent 82%);
}

/* Subtle scanline wash over the whole app. */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background: repeating-linear-gradient(
		to bottom,
		rgba(157, 245, 214, 0.025),
		rgba(157, 245, 214, 0.025) 1px,
		transparent 1px,
		transparent 4px
	);
	mix-blend-mode: screen;
	opacity: 0.16;
}


/* =============================================================================
	03. Scrollbar Treatment
============================================================================= */

::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.35);
}

::-webkit-scrollbar-thumb {
	background: rgba(157, 245, 214, 0.28);
	border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
	background: rgba(157, 245, 214, 0.5);
}


/* =============================================================================
	04. App Shell + Header/Footer
============================================================================= */

.page-shell {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 2rem;
}

.game-card {
	width: min(1180px, 100%);
	border: 1px solid rgba(89, 255, 204, 0.26);
	border-radius: 20px;
	background:
		radial-gradient(circle at 12% 0%, rgba(255, 75, 216, 0.07), transparent 22rem),
		radial-gradient(circle at 100% 12%, rgba(89, 255, 204, 0.08), transparent 24rem),
		linear-gradient(180deg, rgba(5, 20, 23, 0.97), rgba(2, 6, 8, 0.99));
	box-shadow:
		0 28px 90px rgba(0, 0, 0, 0.72),
		inset 0 0 0 1px rgba(255, 255, 255, 0.035),
		0 0 46px rgba(89, 255, 204, 0.08);
	overflow: hidden;
}

.game-header,
.game-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	background:
		linear-gradient(
			90deg,
			rgba(0, 0, 0, 0.42),
			rgba(89, 255, 204, 0.055),
			rgba(255, 75, 216, 0.045),
			rgba(0, 0, 0, 0.34)
		);
	border-bottom: 1px solid rgba(89, 255, 204, 0.22);
}

.game-footer {
	border-top: 1px solid rgba(89, 255, 204, 0.16);
	border-bottom: 0;
	font-family: Consolas, "Courier New", monospace;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	color: rgba(157, 245, 214, 0.55);
}

.eyebrow {
	margin: 0 0 0.2rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.72rem;
	color: rgba(157, 245, 214, 0.58);
}

h1 {
	margin-bottom: 0;
	font-size: clamp(1.5rem, 3vw, 2.4rem);
	font-weight: 700;
	letter-spacing: 0.03em;
	color: #eafff8;
	text-shadow:
		0 0 12px rgba(89, 255, 204, 0.16),
		0 0 22px rgba(255, 75, 216, 0.08);
}

h2 {
	font-size: 1rem;
	color: rgba(157, 245, 214, 0.86);
}

.status-pill {
	padding: 0.45rem 0.75rem;
	border: 1px solid rgba(89, 255, 204, 0.42);
	border-radius: 999px;
	font-family: Consolas, "Courier New", monospace;
	font-size: 0.78rem;
	color: #d6fff0;
	background:
		linear-gradient(90deg, rgba(89, 255, 204, 0.09), rgba(255, 75, 216, 0.055));
	box-shadow:
		inset 0 0 12px rgba(89, 255, 204, 0.07),
		0 0 18px rgba(89, 255, 204, 0.07);
}


/* =============================================================================
	05. Main Cockpit Layout
============================================================================= */

.game-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 1rem;
	padding: 1rem;
}

.cockpit-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	grid-template-rows: auto minmax(0, 1fr);
	gap: 1rem;
	align-items: stretch;
}

.top-panels {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.play-panel {
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}


/* =============================================================================
	06. Shared Cockpit Panel Treatment
============================================================================= */

/* Terminal, side panel, and viewport share the same glassy cyber-terminal shell. */
.terminal-panel,
.side-panel,
.viewport-frame {
	position: relative;
	border: 1px solid rgba(157, 245, 214, 0.26);
	border-radius: 16px;
	background:
		radial-gradient(circle at 50% 0%, rgba(157, 245, 214, 0.08), transparent 14rem),
		linear-gradient(180deg, rgba(6, 28, 24, 0.82), rgba(2, 8, 7, 0.92));
	box-shadow:
		inset 0 0 32px rgba(0, 0, 0, 0.78),
		0 12px 28px rgba(0, 0, 0, 0.32),
		0 0 22px rgba(89, 255, 204, 0.045);
	overflow: hidden;
}

.terminal-panel::before,
.side-panel::before,
.viewport-frame::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	background:
		linear-gradient(135deg, rgba(157, 245, 214, 0.09), transparent 32%, rgba(212, 170, 92, 0.04)),
		repeating-linear-gradient(
			to bottom,
			rgba(157, 245, 214, 0.025),
			rgba(157, 245, 214, 0.025) 1px,
			transparent 1px,
			transparent 5px
		);
	opacity: 0.65;
}

.terminal-panel,
.side-panel {
	padding: 0.85rem;
}

.terminal-panel h2,
.side-panel h2 {
	position: relative;
	margin-bottom: 0.6rem;
	padding-bottom: 0.45rem;
	border-bottom: 1px solid rgba(157, 245, 214, 0.17);
	font-family: Consolas, "Courier New", monospace;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(214, 255, 240, 0.9);
	text-shadow: 0 0 14px rgba(157, 245, 214, 0.1);
}


/* =============================================================================
	07. Log Panels
============================================================================= */

.log-panel {
	position: relative;
	display: block;
	min-height: 0;
	height: 120px;
	max-height: 120px;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 0.25rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-family: Consolas, "Courier New", monospace;
	font-size: 0.9rem;
	color: #aeeed8;
	scrollbar-color: rgba(157, 245, 214, 0.45) rgba(0, 0, 0, 0.22);
	z-index: 1;
}

.log-entry {
	margin-bottom: 0.35rem;
	opacity: 0.95;
}

.log-entry::before {
	content: "> ";
	color: rgba(157, 245, 214, 0.58);
}


/* =============================================================================
	08. Operative Side Panel + HUD Blocks
============================================================================= */

.side-panel {
	min-width: 0;
	height: 100%;
	max-height: 720px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	color: #9df5d6;
}

.side-panel-header {
	margin-bottom: 0.85rem;
}

#operativePanel {
	position: relative;
	min-height: 0;
	overflow-y: auto;
	display: grid;
	flex: 1 1 auto;
}

.info-block {
	position: relative;
	padding: 0.7rem 0.75rem;
	border: 1px solid rgba(157, 245, 214, 0.14);
	border-radius: 10px;
	background:
		linear-gradient(
			180deg,
			rgba(6, 28, 24, 0.78),
			rgba(2, 8, 7, 0.92)
		);
	box-shadow:
		inset 0 0 12px rgba(0, 0, 0, 0.55),
		0 0 10px rgba(89, 255, 204, 0.035);
	overflow: hidden;
}

.info-block::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		repeating-linear-gradient(
			180deg,
			rgba(157, 245, 214, 0.03) 0px,
			rgba(157, 245, 214, 0.03) 1px,
			transparent 2px,
			transparent 4px
		);
	opacity: 0.45;
}

.info-block span {
	display: block;
	margin-bottom: 0.45rem;
	font-family: Consolas, "Courier New", monospace;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(157, 245, 214, 0.58);
}

.info-block strong {
	display: block;
	font-family: Consolas, "Courier New", monospace;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--text-main);
	text-shadow: 0 0 8px rgba(157, 245, 214, 0.08);
}

.info-block--stacked {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.info-block--stacked hr {
	width: 100%;
	height: 1px;
	margin: 0.35rem 0 0.45rem 0;
	border: none;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(157, 245, 214, 0.22),
		transparent
	);
	opacity: 0.9;
}


/* =============================================================================
	09. State + Objective Text Helpers
============================================================================= */

.info-block strong.state-good {
	color: var(--state-good);
	text-shadow: 0 0 10px rgba(157, 245, 214, 0.22);
}

.info-block strong.state-info {
	color: var(--state-info);
	text-shadow: 0 0 10px rgba(75, 145, 255, 0.25);
}

.info-block strong.state-warning {
	color: var(--state-warning);
	text-shadow: 0 0 10px rgba(255, 209, 102, 0.25);
}

.info-block strong.state-alert {
	color: var(--state-alert);
	text-shadow: 0 0 10px rgba(255, 168, 76, 0.28);
}

.info-block strong.state-danger {
	color: var(--state-danger);
	text-shadow: 0 0 12px rgba(255, 75, 110, 0.32);
}

.info-block strong.state-offline {
	color: var(--state-offline);
	text-shadow: none;
}

.objective-required,
.info-block strong .objective-required {
	color: var(--text-main);
}

.objective-optional,
.info-block strong .objective-optional {
	color: rgba(75, 145, 255, 0.68);
	opacity: 0.82;
}

.info-block strong .objective-complete {
	color: var(--state-good);
}

.info-block strong .objective-divider {
	color: rgba(157, 245, 214, 0.38);
}


/* =============================================================================
	10. Tactical Viewport + ROT.js Canvas
============================================================================= */

.viewport-frame {
	position: relative;
	display: flex;
	overflow: hidden;
	align-items: stretch;
	justify-content: stretch;
	height: 520px;
	min-height: 520px;
	max-height: 520px;
	padding: 1rem;
	padding-top: 2rem;
	overflow: auto;
	border: 1px solid rgba(157, 245, 214, 0.22);
	border-radius: 14px;
	background:
		radial-gradient(circle at center, rgba(157, 245, 214, 0.07), transparent 70%),
		linear-gradient(180deg, rgba(6, 28, 24, 0.82), rgba(2, 8, 7, 0.96));
	box-shadow:
		inset 0 0 42px rgba(0, 0, 0, 0.88),
		0 0 20px rgba(89, 255, 204, 0.045);
	isolation: isolate;
}

.viewport-frame::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		repeating-linear-gradient(
			180deg,
			rgba(157, 245, 214, 0.025) 0px,
			rgba(157, 245, 214, 0.025) 1px,
			transparent 2px,
			transparent 5px
		);
	opacity: 0.5;
	z-index: 0;
}

.viewport-frame::after {
	content: "TACTICAL VIEWPORT";
	position: absolute;
	top: 0.75rem;
	left: 0.85rem;
	font-family: Consolas, "Courier New", monospace;
	font-size: 0.64rem;
	letter-spacing: 0.18em;
	color: rgba(157, 245, 214, 0.45);
	pointer-events: none;
	z-index: 2;
}

.game-viewport {
	position: relative;
	overflow: hidden;
	width: fit-content;
	max-width: 100%;
	max-height: 100%;
	line-height: 0;
	padding: 0.75rem;
	margin: 0 auto;
	border: 1px solid rgba(157, 245, 214, 0.26);
	border-radius: 10px;
	background: #020202;
	box-shadow:
		0 0 24px rgba(0, 0, 0, 0.85),
		0 0 38px rgba(89, 255, 204, 0.09);
	z-index: 1;
}

.game-viewport--map {
	display: block;
	width: fit-content;
	min-height: 0;
	margin: 0 auto;
}

.game-viewport--screen {
	display: flex;
	align-items: stretch;
	justify-content: stretch;
	width: 100%;
	height: 100%;
	min-height: 0;
	overflow: hidden;
}

.game-viewport canvas {
	display: block;
	image-rendering: pixelated;
}


/* =============================================================================
	11. Side Panel Interaction Mode
============================================================================= */

#contextPanel {
	position: relative;
	min-height: 0;
	display: none;
}

.side-panel--interaction {
	padding: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border-color: rgba(157, 245, 214, 0.42);
	background:
		radial-gradient(circle at 50% 0%, rgba(157, 245, 214, 0.11), transparent 14rem),
		linear-gradient(180deg, rgba(6, 28, 24, 0.96), rgba(2, 8, 7, 0.99));
	box-shadow:
		inset 0 0 32px rgba(0, 0, 0, 0.88),
		0 0 24px rgba(89, 255, 204, 0.09);
}

.side-panel--interaction::before {
	opacity: 0.9;
}

.side-panel--interaction #contextPanel {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	height: 100%;
}

.interaction-viewport--embedded {
	margin-top: 0;
	flex: 1 1 auto;
	height: 100%;
	min-height: 100%;
	border: 0;
	border-radius: 14px;
	box-shadow: none;
}

.interaction-viewport {
	position: relative;
	flex: 1 1 auto;
	min-height: 100%;
	height: 100%;
	width: 100%;
	margin: 0;
	padding: 0.95rem;
	border: 0;
	border-radius: 16px;
	background: transparent;
	box-shadow: none;
	font-family: Consolas, "Courier New", monospace;
	color: var(--neon-green);
	overflow-y: auto;
	scrollbar-color: rgba(157, 245, 214, 0.45) rgba(0, 0, 0, 0.22);
	z-index: 1;
}

.interaction-viewport::before {
	content: "LOCAL INTERFACE";
	display: block;
	margin-bottom: 0.8rem;
	padding-bottom: 0.55rem;
	border-bottom: 1px solid rgba(157, 245, 214, 0.18);
	font-size: 0.68rem;
	letter-spacing: 0.18em;
	color: rgba(157, 245, 214, 0.58);
}

.interaction-header {
	position: relative;
	padding-bottom: 0.7rem;
	border-bottom: 1px solid rgba(157, 245, 214, 0.22);
}

.interaction-header span,
.interaction-body span,
.interaction-actions span {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: rgba(157, 245, 214, 0.56);
}

.interaction-header strong {
	display: block;
	font-size: 1rem;
	color: var(--neon-green);
	text-shadow: 0 0 14px rgba(157, 245, 214, 0.12);
}

.interaction-body {
	position: relative;
	margin-top: 0.85rem;
	padding: 0.7rem;
	border: 1px solid rgba(157, 245, 214, 0.17);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.24);
	color: #aeeed8;
	line-height: 1.45;
}

.interaction-body strong {
	display: block;
	font-weight: 400;
	color: #aeeed8;
}

.interaction-actions {
	position: relative;
	margin-top: 0.85rem;
	display: grid;
	gap: 0.42rem;
}

.interaction-actions strong {
	display: block;
	padding: 0.45rem 0.55rem;
	border-radius: 7px;
	background:
		linear-gradient(90deg, rgba(157, 245, 214, 0.075), rgba(0, 0, 0, 0.12));
	color: var(--neon-green);
	font-weight: 400;
	box-shadow: inset 3px 0 0 rgba(157, 245, 214, 0.24);
}

.interaction-actions strong:hover {
	background: rgba(157, 245, 214, 0.12);
}


/* =============================================================================
	12. Main Viewport HTML Screens
============================================================================= */

.main-viewport-screen {
	width: 100%;
	height: 100%;
	min-height: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	align-self: stretch;
	font-family: Consolas, "Courier New", monospace;
	line-height: 1.45;
	color: var(--neon-green);
	border-radius: 12px;
	background:
		radial-gradient(circle at 18% 0%, rgba(255, 75, 216, 0.08), transparent 16rem),
		radial-gradient(circle at 100% 14%, rgba(75, 145, 255, 0.08), transparent 18rem),
		linear-gradient(180deg, rgba(4, 20, 19, 0.96), rgba(1, 5, 7, 0.98));
	box-shadow:
		inset 0 0 28px rgba(0, 0, 0, 0.76),
		0 0 28px rgba(89, 255, 204, 0.08);
	overflow: hidden;
}

.main-screen-header,
.main-screen-body {
	width: 100%;
}

.main-screen-header {
	position: relative;
	display: grid;
	gap: 0.35rem;
	padding: 0.85rem 0.95rem;
	border: 1px solid rgba(157, 245, 214, 0.2);
	border-radius: 10px;
	background:
		linear-gradient(
			90deg,
			rgba(157, 245, 214, 0.09),
			rgba(75, 145, 255, 0.055),
			rgba(255, 75, 216, 0.045)
		);
	box-shadow:
		inset 3px 0 0 rgba(157, 245, 214, 0.42),
		0 0 18px rgba(89, 255, 204, 0.055);
}

.main-screen-header span {
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: rgba(157, 245, 214, 0.58);
}

.main-screen-header strong {
	font-size: 1.35rem;
	line-height: 1.15;
	color: #eafff8;
	text-shadow:
		0 0 12px rgba(157, 245, 214, 0.18),
		0 0 18px rgba(255, 75, 216, 0.08);
}

.main-screen-body {
	position: relative;
	display: grid;
	gap: 0.85rem;
	flex: 1 1 auto;
	min-height: 0;
	height: auto;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 0.95rem;
	border: 1px solid rgba(157, 245, 214, 0.16);
	border-radius: 10px;
	background:
		repeating-linear-gradient(
			180deg,
			rgba(157, 245, 214, 0.025) 0px,
			rgba(157, 245, 214, 0.025) 1px,
			transparent 2px,
			transparent 5px
		),
		rgba(0, 0, 0, 0.26);
	color: #aeeed8;
	scrollbar-color: rgba(157, 245, 214, 0.45) rgba(0, 0, 0, 0.22);
}

.main-screen-body p {
	margin: 0 0 0.85rem;
}

.main-screen-body p:last-child {
	margin-bottom: 0;
}

.main-screen-body strong {
	color: #eafff8;
	font-weight: 700;
}

.main-screen-body ul {
	margin: 0;
	padding-left: 1.15rem;
}

.main-screen-body li {
	margin-bottom: 0.45rem;
}

.main-screen-body li::marker {
	color: var(--neon-orange);
}

.main-screen-body code {
	padding: 0.1rem 0.3rem;
	border: 1px solid rgba(157, 245, 214, 0.18);
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.3);
	color: var(--neon-orange);
}


/* =============================================================================
	13. Inventory Screen
============================================================================= */

.main-screen-body--inventory {
	display: flex;
	flex-direction: column;
}

.inventory-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
}

.inventory-category {
	min-height: 120px;
	border: 1px solid rgba(157, 245, 214, 0.16);
	border-radius: 10px;
	background:
		linear-gradient(180deg, rgba(6, 28, 24, 0.62), rgba(0, 0, 0, 0.28));
	overflow: hidden;
}

.inventory-category header {
	padding: 0.55rem 0.7rem;
	border-bottom: 1px solid rgba(157, 245, 214, 0.16);
	font-family: Consolas, "Courier New", monospace;
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: rgba(214, 255, 240, 0.88);
	background:
		linear-gradient(90deg, rgba(157, 245, 214, 0.08), rgba(75, 145, 255, 0.04));
}

.inventory-category-body {
	display: grid;
	gap: 0.45rem;
	padding: 0.65rem;
}

.inventory-item-card,
.inventory-empty {
	padding: 0.55rem 0.65rem;
	border: 1px solid rgba(157, 245, 214, 0.13);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.24);
}

.inventory-item-card strong {
	display: block;
	color: #eafff8;
	font-size: 0.88rem;
}

.inventory-item-card span,
.inventory-empty {
	display: block;
	font-size: 0.72rem;
	color: rgba(157, 245, 214, 0.58);
}

.inventory-category-tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.55rem;
}

.inventory-category-tab {
	padding: 0.55rem 0.65rem;
	border: 1px solid rgba(157, 245, 214, 0.13);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.22);
}

.inventory-category-tab strong {
	display: block;
	font-family: Consolas, "Courier New", monospace;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(214, 255, 240, 0.82);
}

.inventory-category-tab small {
	display: block;
	margin-top: 0.2rem;
	color: rgba(157, 245, 214, 0.52);
}

.inventory-category-tab--selected {
	border-color: rgba(157, 245, 214, 0.42);
	background:
		linear-gradient(90deg, rgba(157, 245, 214, 0.14), rgba(75, 145, 255, 0.06)),
		rgba(0, 0, 0, 0.26);
	box-shadow:
		inset 3px 0 0 rgba(157, 245, 214, 0.45),
		0 0 14px rgba(89, 255, 204, 0.08);
}

.inventory-category--focused {
	min-height: 220px;
}

.inventory-item-card--selected {
	border-color: rgba(255, 168, 76, 0.48);
	background:
		linear-gradient(90deg, rgba(255, 168, 76, 0.13), rgba(0, 0, 0, 0.24));
	box-shadow:
		inset 3px 0 0 rgba(255, 168, 76, 0.58),
		0 0 14px rgba(255, 168, 76, 0.08);
}

.inventory-item-card--equipped {
	border-color: rgba(157, 245, 214, 0.38);
	box-shadow:
		inset 3px 0 0 rgba(157, 245, 214, 0.42),
		0 0 12px rgba(157, 245, 214, 0.06);
}

.inventory-item-card small {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.68rem;
	color: rgba(255, 168, 76, 0.72);
}

.inventory-loadout-panel .state-offline {
	opacity: 0.45;
	color: rgba(157, 245, 214, 0.44);
}


/* =============================================================================
	14. Character Screen
============================================================================= */

.main-screen-body--character {
	display: flex;
	flex-direction: column;
}

.character-summary-grid,
.character-equipment-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
}

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

.character-stat-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.65rem;
}

.character-stat-card {
	padding: 0.65rem;
	border: 1px solid rgba(157, 245, 214, 0.15);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.24);
}

.character-stat-card span {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: rgba(157, 245, 214, 0.58);
}

.character-stat-card strong {
	display: block;
	color: #eafff8;
	font-size: 1.2rem;
}

.character-stat-card small {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.68rem;
	color: rgba(157, 245, 214, 0.52);
}


/* =============================================================================
	15. Notifications
============================================================================= */

#notificationFeed {
	position: absolute;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	width: 320px;
	pointer-events: none;
	z-index: 999;
}

.notification {
	padding: 0.7rem 0.9rem;
	border: 1px solid rgba(157, 245, 214, 0.18);
	border-radius: 10px;
	font-family: Consolas, "Courier New", monospace;
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	background:
		linear-gradient(180deg,
			rgba(8, 22, 20, 0.92),
			rgba(2, 6, 6, 0.96));
	backdrop-filter: blur(4px);
	box-shadow:
		0 0 16px rgba(0, 0, 0, 0.45),
		0 0 10px rgba(157, 245, 214, 0.08);
}

.notification--info {
	color: var(--state-info);
}

.notification--good {
	color: var(--state-good);
}

.notification--warning {
	color: var(--state-alert);
}

.notification--danger {
	color: var(--state-danger);
}

@keyframes notificationFadeIn {
	from {
		transform: translateY(-6px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}


/* =============================================================================
	16. Responsive Layout
============================================================================= */

@media (max-width: 960px) {
	.cockpit-layout {
		grid-template-columns: 1fr;
	}

	.top-panels {
		grid-template-columns: 1fr;
	}

	.side-panel {
		height: auto;
	}

	.interaction-viewport {
		height: auto;
		min-height: 260px;
	}
}

@media (max-width: 860px) {
	.page-shell {
		padding: 1rem;
	}

	.game-layout {
		grid-template-columns: 1fr;
	}

	.side-panel {
		order: 2;
	}

	.viewport-frame {
		min-height: auto;
	}

	.inventory-grid,
	.character-summary-grid,
	.character-equipment-grid,
	.character-stat-grid {
		grid-template-columns: 1fr;
	}
}
