/* Full-viewport clean stage: hide all TabStationToo chrome, keep only the PS2 canvas, minimal Lobby, and hover Settings */

html, body {
	margin: 0 !important;
	padding: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	overflow: hidden !important;
	background: #000 !important;
}

/* Hide TabStationToo header, CRT bezel, slate, console front bar, remote, drawers, floor pads, cables, and credits */
header.marquee,
.tv,
.slate,
.sill,
.transport,
.drawer,
.floor,
.pads,
#pads,
.cables,
#cables,
#cables-front,
.credits,
footer,
#library,
#about,
#about-dialog,
[popover] {
	display: none !important;
}

/* Stretch the emulator canvas cleanly across the full viewport */
#room,
#theatre,
#stage-box,
#screen {
	position: fixed !important;
	inset: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	max-width: none !important;
	max-height: none !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: #000 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	outline: none !important;
}

#screen::before,
#screen::after {
	display: none !important;
}

#canvas {
	width: 100% !important;
	height: 100% !important;
	max-width: 100vw !important;
	max-height: 100vh !important;
	display: block !important;
	object-fit: contain !important;
	background: #000 !important;
}

.hairline {
	display: none !important;
}

/* Simple centered Lobby card (only shown when not in-game) */
.np-overlay {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: grid;
	place-items: center;
	padding: 1rem;
	background: radial-gradient(circle at 50% 35%, #1d1b18 0%, #0d0c0b 75%);
}

.np-overlay[hidden] {
	display: none;
}

.np-card {
	width: min(410px, 100%);
	background: rgba(24, 22, 20, 0.94);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 16px;
	padding: 1.6rem;
	color: #f2ede6;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72);
	display: flex;
	flex-direction: column;
	gap: 0.95rem;
	text-align: center;
}

.np-title {
	margin: 0;
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.np-status {
	margin: 0;
	font-size: 0.84rem;
	color: #a8a095;
}

.np-status.ok {
	color: #86efac;
}

.np-status.err {
	color: #fca5a5;
}

.np-btn {
	border-radius: 10px;
	padding: 0.7rem 1.05rem;
	font: inherit;
	font-size: 0.94rem;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.07);
	color: #f2ede6;
	transition: background 120ms ease, border-color 120ms ease;
}

.np-btn:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.15);
}

.np-btn.primary {
	background: #e5a54b;
	border-color: #e5a54b;
	color: #16130f;
}

.np-btn.primary:hover:not(:disabled) {
	background: #f3bc6c;
}

.np-btn.small {
	padding: 0.36rem 0.72rem;
	font-size: 0.8rem;
}

.np-btn.danger {
	background: rgba(248, 113, 113, 0.16);
	border-color: rgba(248, 113, 113, 0.42);
	color: #fca5a5;
}

.np-btn.active {
	background: rgba(229, 165, 75, 0.22);
	border-color: #e5a54b;
	color: #fde6b8;
}

.np-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.np-link-row {
	display: flex;
	gap: 0.45rem;
}

.np-link-input {
	flex: 1;
	min-width: 0;
	background: #100f0e;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 9px;
	padding: 0.5rem 0.65rem;
	color: #f5c372;
	font-family: "Chivo Mono", ui-monospace, monospace;
	font-size: 0.78rem;
}

.np-players {
	display: flex;
	justify-content: center;
	gap: 0.48rem;
	flex-wrap: wrap;
}

.np-slot-chip {
	padding: 0.34rem 0.72rem;
	border-radius: 999px;
	font-family: "Chivo Mono", ui-monospace, monospace;
	font-size: 0.8rem;
	font-weight: 600;
	background: rgba(74, 222, 128, 0.15);
	border: 1px solid rgba(74, 222, 128, 0.4);
	color: #86efac;
}

.np-slot-chip.empty {
	background: rgba(255, 255, 255, 0.03);
	border: 1px dashed rgba(255, 255, 255, 0.15);
	color: #7d756b;
}

.np-game-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	text-align: left;
}

.np-game-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.7rem;
	width: 100%;
	padding: 0.68rem 0.85rem;
	border-radius: 11px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);
	color: #f2ede6;
	font: inherit;
	cursor: pointer;
	text-align: left;
	transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.np-game-card:hover {
	background: rgba(255, 255, 255, 0.09);
	border-color: rgba(255, 255, 255, 0.24);
}

.np-game-card.selected {
	background: rgba(229, 165, 75, 0.18);
	border-color: #e5a54b;
}

.np-game-name {
	font-size: 0.92rem;
	font-weight: 600;
	color: #f6f2eb;
}

.np-game-meta {
	font-size: 0.74rem;
	color: #a8a095;
	margin-top: 0.12rem;
}

.np-game-badge {
	display: inline-block;
	padding: 0.22rem 0.62rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	background: rgba(229, 165, 75, 0.16);
	border: 1px solid rgba(229, 165, 75, 0.42);
	color: #fde6b8;
	align-self: center;
}

.np-save-box {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.11);
	border-radius: 10px;
	padding: 0.62rem 0.78rem;
	text-align: left;
	font-size: 0.77rem;
	line-height: 1.45;
	color: #bdb5aa;
}

.np-save-box strong {
	color: #f5c372;
	font-family: "Chivo Mono", ui-monospace, monospace;
}

/* Hover-reveal floating bar while playing */
.np-hoverbar {
	position: fixed;
	top: 0.85rem;
	right: 0.95rem;
	z-index: 50;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.38rem 0.55rem 0.38rem 0.75rem;
	border-radius: 999px;
	background: rgba(16, 15, 14, 0.84);
	border: 1px solid rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(10px);
	color: #f0ebe3;
	font-family: "Chivo Mono", ui-monospace, monospace;
	font-size: 0.75rem;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
	opacity: 0;
	pointer-events: none;
	transform: translateY(-4px);
	transition: opacity 200ms ease, transform 200ms ease;
}

.np-hoverbar.visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.np-hoverbar[hidden] {
	display: none;
}

.np-dot {
	padding: 0.12rem 0.46rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.7rem;
}

.np-dot.ok {
	background: rgba(74, 222, 128, 0.16);
	color: #86efac;
}

.np-dot.warn {
	background: rgba(250, 204, 21, 0.16);
	color: #fde047;
}

.np-dot.err {
	background: rgba(248, 113, 113, 0.2);
	color: #fca5a5;
}

/* Floating Settings panel (toggled from hover bar) */
.np-settings {
	position: fixed;
	top: 3.6rem;
	right: 0.95rem;
	z-index: 55;
	width: min(310px, calc(100vw - 1.5rem));
	background: rgba(20, 18, 16, 0.96);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 14px;
	padding: 1rem;
	color: #f0ebe3;
	backdrop-filter: blur(12px);
	box-shadow: 0 20px 55px rgba(0, 0, 0, 0.72);
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	font-size: 0.84rem;
}

.np-settings[hidden] {
	display: none;
}

.np-set-group {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.np-set-label {
	font-size: 0.74rem;
	color: #a8a095;
	display: flex;
	justify-content: space-between;
}

.np-set-row {
	display: flex;
	gap: 0.4rem;
	align-items: center;
}

.np-set-row > .np-btn {
	flex: 1;
}

.np-slider {
	flex: 1;
	accent-color: #e5a54b;
}

.np-keys-hint {
	font-family: "Chivo Mono", ui-monospace, monospace;
	font-size: 0.71rem;
	line-height: 1.5;
	color: #b7afa4;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	padding: 0.5rem 0.65rem;
}
