/* INDONESIAN COURTROOM SIMULATOR — Unified visionOS & iOS Clear Glassmorphism UI */
:root {
	--bg: #0c0e14;
	--glass: linear-gradient(145deg, rgba(28, 30, 38, 0.54) 0%, rgba(14, 16, 22, 0.64) 100%);
	--glass-strong: linear-gradient(148deg, rgba(30, 32, 42, 0.62) 0%, rgba(12, 14, 20, 0.72) 100%);
	--glass-sub: rgba(255, 255, 255, 0.10);
	--line: rgba(255, 255, 255, 0.24);
	--line-soft: rgba(255, 255, 255, 0.14);
	--line-gold: rgba(243, 214, 155, 0.48);
	--specular: rgba(255, 255, 255, 0.34);
	--crimson: #8f0008;
	--crimson-bright: #dc2626;
	--gold: #f3d69b;
	--text: #ffffff;
	--muted: rgba(255, 255, 255, 0.80);
	--subtle: rgba(255, 255, 255, 0.60);
	--radius: 16px;
}

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

html, body {
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: var(--bg);
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}

button {
	font-family: inherit;
	color: inherit;
	cursor: pointer;
}

.is-hidden {
	display: none !important;
}

#gameCanvas {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.badge-kicker {
	display: inline-block;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 6px;
}

/* ---------- GLASS BUTTONS ---------- */
.btn-modern {
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.11);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	color: var(--text);
	font-size: 13px;
	font-weight: 600;
	padding: 11px 18px;
	border-radius: 999px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
	transition: transform 0.16s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-modern:hover {
	background: rgba(255, 255, 255, 0.20);
	border-color: rgba(255, 255, 255, 0.40);
}

.btn-modern.primary {
	background: linear-gradient(135deg, rgba(168, 12, 24, 0.88) 0%, rgba(114, 6, 14, 0.92) 100%);
	border-color: rgba(255, 255, 255, 0.34);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 10px 26px rgba(143, 0, 8, 0.38);
}

.btn-modern.primary:hover {
	background: linear-gradient(135deg, rgba(204, 16, 30, 0.94) 0%, rgba(143, 0, 8, 0.96) 100%);
	transform: translateY(-1px);
}

.btn-modern.subtle {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.32);
	color: var(--gold);
}

.btn-modern.ghost {
	background: rgba(255, 255, 255, 0.05);
	border-color: var(--line-soft);
	color: var(--muted);
}

.btn-icon-close {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	color: #ffffff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.18s ease, border-color 0.18s ease;
}

.btn-icon-close:hover {
	background: rgba(220, 38, 38, 0.78);
	border-color: rgba(255, 255, 255, 0.45);
}

/* ---------- SIMPLE JUDGE GAVEL LOADING SCREEN ---------- */
.loading-screen {
	position: fixed;
	inset: 0;
	z-index: 95;
	background: #08080a;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	transition: opacity 0.28s ease;
}

.gavel-loader-stage {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: clamp(28px, 4vw, 52px);
	user-select: none;
}

.gavel-loader-svg {
	width: clamp(128px, 14vw, 164px);
	height: auto;
	overflow: visible;
	flex-shrink: 0;
}

.gavel-striker {
	transform-origin: 114px 62px;
	animation: gavelStrikeLoop 1.15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
	will-change: transform;
}

@keyframes gavelStrikeLoop {
	0%, 14% {
		transform: rotate(0deg);
	}
	52%, 68% {
		transform: rotate(44deg);
	}
	86%, 100% {
		transform: rotate(0deg);
	}
}

.gavel-loader-text {
	font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', Consolas, 'Courier New', monospace;
	font-size: clamp(28px, 3.8vw, 44px);
	font-weight: 400;
	letter-spacing: 0.04em;
	color: #9e9ea6;
	line-height: 1;
	white-space: nowrap;
}

.gavel-dots span {
	display: inline-block;
	animation: gavelDotPulse 1.15s infinite;
}

.gavel-dots span:nth-child(2) {
	animation-delay: 0.18s;
}

.gavel-dots span:nth-child(3) {
	animation-delay: 0.36s;
}

@keyframes gavelDotPulse {
	0%, 20% { opacity: 0.25; }
	50%, 100% { opacity: 1; }
}

.sr-only-loading {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- MAIN MENU (FULL GLASSMORPHISM OVER LIVE 3D SCENE) ---------- */
.menu-screen {
	position: fixed;
	inset: 0;
	z-index: 80;
	background: radial-gradient(circle at 55% 40%, rgba(12, 13, 18, 0.22) 0%, rgba(10, 11, 16, 0.52) 100%);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 26px;
	overflow-y: auto;
}

.menu-shell {
	width: 100%;
	max-width: 1180px;
	display: grid;
	grid-template-columns: 385px 1fr;
	gap: 20px;
	align-items: stretch;
}

.menu-brand-panel,
.menu-select-panel {
	background: var(--glass);
	border: 1px solid var(--line);
	border-radius: 22px;
	padding: 28px;
	backdrop-filter: blur(26px) saturate(145%);
	-webkit-backdrop-filter: blur(26px) saturate(145%);
	box-shadow:
		inset 0 1px 0 var(--specular),
		inset 1px 0 0 rgba(255, 255, 255, 0.12),
		0 28px 72px rgba(0, 0, 0, 0.50);
}

.menu-brand-panel {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 20px;
}

.menu-brand-panel h1 {
	font-size: 34px;
	font-weight: 900;
	line-height: 1.02;
	letter-spacing: -0.04em;
	text-transform: uppercase;
	color: #ffffff;
	margin-bottom: 14px;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.42);
}

.menu-brand-panel h1 span {
	color: var(--gold);
}

.menu-lead {
	font-size: 13.5px;
	line-height: 1.62;
	color: var(--muted);
	margin-bottom: 16px;
}

.npc-pill-note {
	font-size: 12px;
	line-height: 1.52;
	padding: 12px 14px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--line-soft);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
	color: var(--muted);
}

.npc-pill-note span {
	display: block;
	color: var(--gold);
	font-weight: 700;
	margin-bottom: 2px;
}

.menu-actions-bottom {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.field-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 14px;
}

.field-group span {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--gold);
}

.field-group input {
	padding: 11px 14px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.10);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	color: #ffffff;
	font-size: 14px;
}

.field-group input:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.65);
	background: rgba(255, 255, 255, 0.16);
}

.menu-btn-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

.menu-legal-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.56);
}

.menu-legal-links a {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	transition: color 0.16s ease;
}

.menu-legal-links a:hover {
	color: #FFFFFF;
	text-decoration: underline;
}

.menu-select-panel {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.picker-section h2 {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--gold);
	margin-bottom: 10px;
}

.role-cards,
.witness-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.picker-card {
	text-align: left;
	padding: 16px 17px;
	border-radius: 16px;
	border: 1px solid var(--line-soft);
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
	display: flex;
	flex-direction: column;
	gap: 6px;
	transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.picker-card:hover {
	transform: translateY(-2px);
	border-color: rgba(255, 255, 255, 0.36);
	background: rgba(255, 255, 255, 0.14);
}

.picker-card.selected {
	border-color: rgba(255, 255, 255, 0.56);
	background: linear-gradient(150deg, rgba(168, 12, 24, 0.56) 0%, rgba(255, 255, 255, 0.14) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 14px 32px rgba(143, 0, 8, 0.32);
}

.picker-tag {
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--gold);
}

.picker-card strong {
	font-size: 15.5px;
	font-weight: 700;
	color: #ffffff;
}

.picker-card p {
	font-size: 12.5px;
	line-height: 1.54;
	color: var(--muted);
}

/* ---------- ALL TEXT SHEETS, CASE BRIEFS, TRANSCRIPTS & VERDICTS IN GLASSMORPHISM ---------- */
.paper-sheet {
	background: var(--glass);
	color: #ffffff;
	border: 1px solid var(--line);
	border-radius: 18px;
	backdrop-filter: blur(24px) saturate(145%);
	-webkit-backdrop-filter: blur(24px) saturate(145%);
	box-shadow: inset 0 1px 0 var(--specular), 0 18px 42px rgba(0, 0, 0, 0.42);
}

.case-brief-card.paper-sheet {
	padding: 18px 20px;
}

.paper-letterhead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	padding-bottom: 9px;
	margin-bottom: 10px;
	border-bottom: 1px solid var(--line-soft);
}

.paper-letterhead span {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.09em;
	color: var(--gold);
}

.paper-stamp {
	font-style: normal;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 3px 10px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.12);
}

.paper-doc-title {
	font-size: 14px;
	font-weight: 800;
	color: #ffffff;
	margin-bottom: 6px;
}

.paper-doc-body {
	font-size: 12.8px;
	line-height: 1.60;
	color: var(--muted);
}

.paper-doc-body strong {
	color: #ffffff;
}

.paper-header {
	border-bottom: 1px solid var(--line) !important;
}

.paper-kicker {
	display: block;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.11em;
	color: var(--gold);
	margin-bottom: 3px;
}

.paper-close {
	color: #ffffff !important;
	border-color: var(--line) !important;
	background: rgba(255, 255, 255, 0.12) !important;
}

.paper-close:hover {
	background: rgba(220, 38, 38, 0.78) !important;
	color: #ffffff !important;
}

.btn-paper {
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	padding: 8px 15px;
	border-radius: 999px;
	transition: background 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
}

.btn-paper:hover {
	background: rgba(255, 255, 255, 0.22);
	border-color: rgba(255, 255, 255, 0.45);
}

.btn-paper.primary {
	background: linear-gradient(135deg, rgba(168, 12, 24, 0.90) 0%, rgba(114, 6, 14, 0.94) 100%);
	border-color: rgba(255, 255, 255, 0.36);
	color: #ffffff;
}

.btn-paper.primary:hover {
	background: linear-gradient(135deg, rgba(204, 16, 30, 0.96) 0%, rgba(143, 0, 8, 0.98) 100%);
	transform: translateY(-1px);
}

.btn-paper.subtle {
	background: rgba(255, 255, 255, 0.10);
	border-color: rgba(255, 255, 255, 0.24);
	color: var(--gold);
}

/* ---------- IN-GAME GLASS HUD ---------- */
.game-hud {
	position: fixed;
	inset: 0;
	z-index: 25;
	pointer-events: none;
}

.hud-card,
.hud-directive,
.hud-bottom-dock,
.hud-right-rail > *,
.dialogue-strip {
	pointer-events: auto;
}

.hud-card {
	position: absolute;
	top: 16px;
	background: var(--glass);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 15px 17px;
	backdrop-filter: blur(22px) saturate(140%);
	-webkit-backdrop-filter: blur(22px) saturate(140%);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.40), inset 0 1px 0 var(--specular);
}

.hud-top-left {
	left: 16px;
	width: 282px;
}

.hud-role-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 7px;
}

.role-badge {
	font-size: 10.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(153, 27, 27, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #ffffff;
}

.timer-pill {
	font-size: 12.5px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--gold);
}

.hud-player-name {
	font-size: 16.5px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: -0.01em;
}

.zone-indicator {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--muted);
	margin: 5px 0 11px;
}

.zone-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 8px #22c55e;
	flex-shrink: 0;
}

.hud-step-bar {
	padding-top: 9px;
	border-top: 1px solid var(--line-soft);
}

.hud-step-meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 6px;
}

.hud-step-meta strong {
	font-size: 11px;
	color: var(--gold);
	white-space: nowrap;
}

.hud-step-meta span {
	font-size: 11.5px;
	font-weight: 600;
	color: #ffffff;
	text-align: right;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.step-track {
	height: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	overflow: hidden;
}

.step-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--crimson-bright) 0%, var(--gold) 100%);
	transition: width 0.3s ease;
}

/* Top-Center Frosted Directive Pill */
.hud-directive {
	position: fixed;
	top: 16px;
	left: 314px;
	right: 384px;
	margin: 0 auto;
	width: fit-content;
	max-width: 540px;
	background: var(--glass);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 10px 18px;
	text-align: center;
	backdrop-filter: blur(22px) saturate(140%);
	-webkit-backdrop-filter: blur(22px) saturate(140%);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42), inset 0 1px 0 var(--specular);
	z-index: 30;
}

.directive-kicker {
	display: block;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.1em;
	color: var(--gold);
	margin-bottom: 3px;
}

.directive-main {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.45;
	color: #ffffff;
}

/* Right Sidebar Rail (Camera Control + Glass Transcript Dialog) */
.hud-right-rail {
	position: fixed;
	top: 16px;
	right: 16px;
	bottom: 84px;
	width: 352px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	pointer-events: none;
	z-index: 40;
}

.hud-top-right {
	position: relative;
	top: auto;
	right: auto;
	width: 100%;
	padding: 13px 15px;
	flex-shrink: 0;
}

.cam-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--gold);
	margin-bottom: 8px;
}

.manual-mode-tag {
	border: 1px solid rgba(255, 255, 255, 0.28);
	background: rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	padding: 2px 10px;
	font-size: 10.5px;
	font-weight: 700;
	color: var(--gold);
}

.cam-mode-pills {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	margin-bottom: 8px;
}

.cam-pill {
	border: 1px solid var(--line-soft);
	background: rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	padding: 7px 4px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--muted);
	transition: background 0.16s ease, border-color 0.16s ease;
}

.cam-pill.active {
	background: linear-gradient(135deg, rgba(168, 12, 24, 0.88), rgba(114, 6, 14, 0.92));
	border-color: rgba(255, 255, 255, 0.45);
	color: #ffffff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.cam-preset-row {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.shot-btn {
	flex: 1;
	border: 1px solid var(--line-soft);
	background: rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	padding: 5px 6px;
	font-size: 11px;
	font-weight: 500;
	color: var(--muted);
}

.shot-btn:hover {
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.42);
	background: rgba(255, 255, 255, 0.18);
}

.lock-banner {
	position: fixed;
	bottom: 72px;
	top: auto;
	left: 50%;
	transform: translateX(-50%);
	background: var(--glass-strong);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 5px 16px;
	font-size: 11.5px;
	font-weight: 500;
	color: var(--gold);
	white-space: nowrap;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.36);
	z-index: 28;
}

.world-pin {
	position: fixed;
	left: 0;
	top: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--glass-strong);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border: 1px solid var(--line);
	box-shadow: inset 0 1px 0 var(--specular), 0 8px 22px rgba(0, 0, 0, 0.45);
	z-index: 32;
}

.pin-arrow {
	width: 21px;
	height: 21px;
	border-radius: 50%;
	background: rgba(153, 27, 27, 0.85);
	color: var(--gold);
	font-size: 11px;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.pin-info {
	display: flex;
	flex-direction: column;
	line-height: 1.18;
}

.pin-info strong { font-size: 12px; font-weight: 700; white-space: nowrap; color: #ffffff; }
.pin-info small { font-size: 10.5px; color: var(--gold); font-weight: 600; }

.crosshair {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.82);
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.28);
	transform: translate(-50%, -50%);
}

.crosshair.is-hovering {
	width: 14px;
	height: 14px;
	background: transparent;
	border: 2px solid var(--gold);
}

.interact-prompt {
	position: absolute;
	top: calc(50% + 26px);
	left: 50%;
	transform: translateX(-50%);
	background: var(--glass-strong);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border: 1px solid var(--line);
	padding: 7px 14px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	font-weight: 600;
	color: #ffffff;
	white-space: nowrap;
}

.interact-prompt kbd {
	background: rgba(153, 27, 27, 0.9);
	padding: 2px 7px;
	border-radius: 5px;
	font-weight: 700;
	font-size: 11.5px;
}

.toast-feed {
	position: fixed;
	bottom: 84px;
	left: 16px;
	top: auto;
	transform: none;
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: flex-start;
	max-width: 340px;
	z-index: 35;
}

.hud-toast {
	background: var(--glass-strong);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid var(--line);
	padding: 9px 14px;
	border-radius: 12px;
	font-size: 12.5px;
	font-weight: 500;
	color: #ffffff;
	box-shadow: inset 0 1px 0 var(--specular), 0 10px 24px rgba(0, 0, 0, 0.42);
	transition: opacity 0.25s ease;
}

.hud-toast.fade-out { opacity: 0; }

/* ---------- RIGHT-DOCKED DIALOGUE TRANSCRIPT & CHOICES IN GLASSMORPHISM ---------- */
.dialogue-strip {
	position: relative;
	top: auto;
	right: auto;
	left: auto;
	bottom: auto;
	transform: none;
	width: 100%;
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	z-index: 45;
}

.strip-card.paper-sheet {
	border-radius: 18px;
	padding: 16px 17px;
}

.strip-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	padding-bottom: 10px;
	margin-bottom: 10px;
	border-bottom: 1px solid var(--line-soft);
	flex-wrap: wrap;
}

.strip-role-tag {
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(153, 27, 27, 0.88);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #ffffff;
}

.strip-speaker {
	font-size: 15px;
	font-weight: 700;
	color: #ffffff;
	width: 100%;
	order: 3;
	margin-top: 3px;
}

.strip-phase-label {
	font-size: 11px;
	font-weight: 700;
	color: var(--gold);
	margin-right: auto;
	align-self: center;
}

.strip-text {
	font-size: 13.5px;
	line-height: 1.62;
	color: rgba(255, 255, 255, 0.92);
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--line-soft);
	border-radius: 12px;
	margin-bottom: 12px;
}

.strip-choices {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dlg-choice-btn {
	text-align: left;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid var(--line-soft);
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	transition: background 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
}

.dlg-choice-btn:hover {
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.42);
	transform: translateY(-1px);
}

.choice-key {
	width: 24px;
	height: 24px;
	border-radius: 7px;
	background: rgba(153, 27, 27, 0.90);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #ffffff;
	font-size: 11.5px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.dlg-choice-btn strong {
	font-size: 12.8px;
	font-weight: 600;
	line-height: 1.46;
}

.strip-footer {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 4px;
}

.space-next-note {
	font-size: 11.5px;
	color: var(--muted);
	border-top: 1px dashed var(--line-soft);
	padding-top: 8px;
}

.space-next-note strong {
	color: var(--gold);
}

.strip-actions {
	display: flex;
	gap: 6px;
	width: 100%;
	justify-content: flex-end;
	flex-wrap: wrap;
}

/* ---------- BOTTOM FROSTED GLASS DOCK ---------- */
.hud-bottom-dock {
	position: fixed;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 10px;
	background: var(--glass-strong);
	border: 1px solid var(--line);
	border-radius: 999px;
	backdrop-filter: blur(24px) saturate(145%);
	-webkit-backdrop-filter: blur(24px) saturate(145%);
	box-shadow: inset 0 1px 0 var(--specular), 0 12px 34px rgba(0, 0, 0, 0.45);
	z-index: 36;
}

.dock-btn {
	border: 1px solid transparent;
	background: rgba(255, 255, 255, 0.10);
	color: rgba(255, 255, 255, 0.92);
	font-size: 12px;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 999px;
	white-space: nowrap;
	transition: background 0.16s ease, border-color 0.16s ease;
}

.dock-btn:hover { background: rgba(255, 255, 255, 0.22); color: #ffffff; }
.dock-btn.primary {
	background: linear-gradient(135deg, rgba(168, 12, 24, 0.90), rgba(114, 6, 14, 0.92));
	border-color: rgba(255, 255, 255, 0.30);
	color: #ffffff;
}
.dock-btn.primary:hover { background: linear-gradient(135deg, rgba(204, 16, 30, 0.96), rgba(143, 0, 8, 0.98)); }
.dock-btn.exit-web { border-color: rgba(255, 255, 255, 0.22); color: #fecaca; }
.dock-btn.exit-web:hover { background: rgba(185, 28, 28, 0.72); color: #ffffff; }

/* ---------- MODALS & END SCREEN (GLASSMORPHISM) ---------- */
.modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 85;
	background: rgba(8, 10, 14, 0.52);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.modal-card {
	width: 100%;
	max-width: 720px;
	max-height: 88vh;
	overflow-y: auto;
	background: var(--glass-strong);
	backdrop-filter: blur(26px) saturate(145%);
	-webkit-backdrop-filter: blur(26px) saturate(145%);
	border: 1px solid var(--line);
	border-radius: 22px;
	padding: 26px;
	box-shadow: inset 0 1px 0 var(--specular), 0 28px 70px rgba(0, 0, 0, 0.56);
	color: #ffffff;
}

.modal-card.wide { max-width: 840px; }
.modal-card.compact { max-width: 440px; }

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 12px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--line-soft);
}

.modal-header h3 { font-size: 20px; color: #ffffff; }

.dossier-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.dossier-card {
	padding: 15px 17px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--line-soft);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.dossier-card h4 {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--gold);
	margin-bottom: 6px;
}

.dossier-card p, .dossier-card li {
	font-size: 12.8px;
	line-height: 1.56;
	color: var(--muted);
}

.settings-grid, .pause-stack {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.setting-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	color: var(--muted);
}

.setting-row input[type="range"],
.setting-row select {
	width: 200px;
	accent-color: var(--crimson-bright);
}

.setting-row select {
	padding: 6px 10px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid var(--line);
	color: #ffffff;
}

.setting-row select option {
	background: #14161e;
	color: #ffffff;
}

/* Unified Glass Dossier & Verdict Modals */
.modal-card.paper-sheet {
	background: var(--glass-strong) !important;
	color: #ffffff !important;
	border: 1px solid var(--line) !important;
	box-shadow: inset 0 1px 0 var(--specular), 0 28px 72px rgba(0, 0, 0, 0.62) !important;
}

.modal-card.paper-sheet .modal-header {
	border-bottom: 1px solid var(--line-soft);
}

.modal-card.paper-sheet .modal-header h3 {
	font-size: 20px;
	font-weight: 800;
	color: #ffffff !important;
}

.paper-sheet .verdict-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 22px;
	font-weight: 800;
	color: #ffffff;
	margin-bottom: 4px;
}

.paper-sheet .verdict-case {
	font-size: 13px;
	font-weight: 600;
	color: var(--gold);
	margin-bottom: 12px;
}

.paper-sheet .verdict-summary {
	font-size: 13.8px;
	line-height: 1.64;
	padding: 14px 16px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--line-soft);
	color: rgba(255, 255, 255, 0.92);
	margin-bottom: 16px;
}

.verdict-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-bottom: 16px;
}

.paper-sheet .v-stat {
	padding: 12px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--line-soft);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.paper-sheet .v-stat span { font-size: 11px; color: var(--subtle); font-weight: 600; }
.paper-sheet .v-stat strong { font-size: 15px; color: #ffffff; }

.paper-sheet .verdict-log-box {
	max-height: 165px;
	overflow-y: auto;
	padding: 13px 16px;
	border-radius: 14px;
	background: rgba(0, 0, 0, 0.22);
	border: 1px solid var(--line-soft);
	margin-bottom: 16px;
}

.paper-sheet .verdict-log-box h4 {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--gold);
	margin-bottom: 6px;
}

.paper-sheet .verdict-log-box ul {
	padding-left: 16px;
	font-size: 12px;
	line-height: 1.56;
	color: var(--muted);
}

.verdict-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	flex-wrap: wrap;
}

@media (max-width: 1180px) {
	.hud-directive { left: 306px; right: 342px; padding: 9px 14px; }
	.hud-right-rail { width: 316px; }
}

@media (max-width: 980px) {
	.menu-shell, .role-cards, .witness-cards, .dossier-grid, .verdict-stats {
		grid-template-columns: 1fr;
	}
	.hud-top-left { top: 12px; left: 12px; width: 220px; padding: 11px 13px; }
	.hud-directive {
		top: auto;
		bottom: 132px;
		left: 12px;
		right: auto;
		max-width: 280px;
		margin: 0;
		text-align: left;
	}
	.hud-right-rail { top: 12px; right: 12px; bottom: 84px; width: min(320px, calc(100vw - 24px)); }
	.lock-banner { display: none; }
	.toast-feed { left: 12px; bottom: 82px; }
	.hud-bottom-dock { flex-wrap: wrap; justify-content: center; border-radius: 16px; max-width: calc(100vw - 24px); }
}

/* 4 GB RAM / Integrated GPU Lite Glass Compositing (~4x cheaper over WebGL canvas) */
html.perf-lite .loading-box,
html.perf-lite .menu-brand-panel,
html.perf-lite .menu-select-panel,
html.perf-lite .paper-sheet,
html.perf-lite .hud-card,
html.perf-lite .hud-directive,
html.perf-lite .lock-banner,
html.perf-lite .hud-bottom-dock,
html.perf-lite .modal-card,
html.perf-lite .verdict-card,
html.perf-lite .world-pin {
	backdrop-filter: blur(8px) saturate(120%) !important;
	-webkit-backdrop-filter: blur(8px) saturate(120%) !important;
}
