/* THEME: Ops — CRT Military Terminal / Classified / Phosphor Green */
/* Effects: Matrix rain (JS canvas), typewriter title, moving scanline, CRT wölbung, live status, amber warnings */

.psyern-lb.psyern-lb--ops {
	--psyern-bg: #000a00;
	background: #000a00;
	color: #00ff41;
	font-family: 'Share Tech Mono', 'Courier New', monospace;
	border: 1px solid #00ff41;
	border-radius: 4px;
	position: relative;
	overflow: hidden;

	/* Multi-layer glow border */
	box-shadow:
		0 0 5px #00ff41,
		0 0 15px #00ff41,
		0 0 30px #00b32c,
		0 0 60px #004410,
		inset 0 0 30px rgba(0, 255, 65, 0.03);
	animation: psyern-ops-border-pulse 4s ease-in-out infinite;

	/* CRT screen curve */
	transform: perspective(2000px) rotateX(0.2deg);
}

@keyframes psyern-ops-border-pulse {
	0%, 100% { box-shadow: 0 0 5px #00ff41, 0 0 15px #00ff41, 0 0 30px #00b32c, 0 0 60px #004410, inset 0 0 30px rgba(0, 255, 65, 0.03); }
	50% { box-shadow: 0 0 8px #00ff41, 0 0 25px #00ff41, 0 0 50px #00b32c, 0 0 80px #006620, inset 0 0 40px rgba(0, 255, 65, 0.06); }
}

/* Scanlines — static grid */
.psyern-lb.psyern-lb--ops::before {
	content: '';
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.15) 2px, rgba(0, 0, 0, 0.15) 4px);
	pointer-events: none;
	z-index: 4;
}

/* CRT vignette + hard flicker */
.psyern-lb.psyern-lb--ops::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 5, 0, 0.5) 70%, rgba(0, 0, 0, 0.85) 100%);
	pointer-events: none;
	z-index: 3;
	animation: psyern-ops-hardflicker 8s ease-in-out infinite;
}

@keyframes psyern-ops-hardflicker {
	0%, 90%, 100% { opacity: 1; filter: brightness(1); }
	91% { opacity: 0.8; filter: brightness(0.7); }
	92% { opacity: 1; filter: brightness(1.1); }
	93% { opacity: 0.9; filter: brightness(0.9); }
}

/* Scrollbar */
.psyern-lb.psyern-lb--ops .psyern-lb__table-wrap::-webkit-scrollbar-thumb { background: #0d3b0d; }
.psyern-lb.psyern-lb--ops .psyern-lb__table-wrap::-webkit-scrollbar-thumb:hover { background: #00ff41; box-shadow: 0 0 6px #00ff41; }

/* ::selection */
.psyern-lb.psyern-lb--ops ::selection { background: rgba(0, 255, 65, 0.3); color: #00ff41; }

/* No global text-shadow — only on specific elements to keep table text sharp */

/* ─── Header ─── */
.psyern-lb.psyern-lb--ops .psyern-lb__header {
	border-bottom: 1px solid rgba(0, 255, 65, 0.3);
}

.psyern-lb.psyern-lb--ops .psyern-lb__title {
	font-family: 'VT323', 'Share Tech Mono', monospace;
	font-size: 1.6rem;
	color: #00ff41;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-shadow: 0 0 4px #00ff41, 0 0 12px rgba(0, 255, 65, 0.4);
}

.psyern-lb.psyern-lb--ops .psyern-lb__title::before {
	content: '> ';
	animation: psyern-ops-cursor 1s step-end infinite;
}

@keyframes psyern-ops-cursor {
	0%, 50% { opacity: 1; }
	51%, 100% { opacity: 0; }
}

.psyern-lb.psyern-lb--ops .psyern-lb__meta {
	color: #2a8a4a;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* ─── Mode Buttons ─── */
.psyern-lb.psyern-lb--ops .psyern-lb__mode-btn {
	color: #2a8a4a;
	border: 1px solid #0d3b0d;
	border-radius: 0;
	font-family: 'Share Tech Mono', monospace;
	transition: all 0.15s;
}

.psyern-lb.psyern-lb--ops .psyern-lb__mode-btn.active {
	color: #00ff41;
	border-color: #00ff41;
	background: rgba(0, 255, 65, 0.1);
	box-shadow: 0 0 10px rgba(0, 255, 65, 0.3), inset 0 0 10px rgba(0, 255, 65, 0.05);
	text-shadow: 0 0 3px rgba(0, 255, 65, 0.5);
}

/* ─── Limit Buttons ─── */
.psyern-lb.psyern-lb--ops .psyern-lb__limit-btn { color: #2a8a4a; border-color: #0d3b0d; }
.psyern-lb.psyern-lb--ops .psyern-lb__limit-btn.active { color: #00ff41; border-color: #00ff41; }

/* ─── Top 3 ─── */
.psyern-lb.psyern-lb--ops .psyern-lb__top3-card {
	background: rgba(0, 10, 0, 0.8);
	border: 1px solid #0d3b0d;
	border-radius: 0;
	backdrop-filter: blur(2px);
}

.psyern-lb.psyern-lb--ops .psyern-lb__top3-card--1 {
	border-color: #ffd700;
	box-shadow: 0 0 15px rgba(255, 215, 0, 0.2), 0 0 40px rgba(255, 215, 0, 0.08);
}
.psyern-lb.psyern-lb--ops .psyern-lb__top3-card--1 .psyern-lb__top3-name {
	color: #ffd700;
	text-shadow: 0 0 3px rgba(255, 215, 0, 0.5);
}
.psyern-lb.psyern-lb--ops .psyern-lb__top3-card--2 {
	border-color: #c0c0c0;
	box-shadow: 0 0 10px rgba(192, 192, 192, 0.15);
}
.psyern-lb.psyern-lb--ops .psyern-lb__top3-card--2 .psyern-lb__top3-name {
	color: #c0c0c0;
	text-shadow: 0 0 6px #c0c0c0;
}
.psyern-lb.psyern-lb--ops .psyern-lb__top3-card--3 {
	border-color: #cd7f32;
	box-shadow: 0 0 8px rgba(205, 127, 50, 0.12);
}
.psyern-lb.psyern-lb--ops .psyern-lb__top3-card--3 .psyern-lb__top3-name {
	color: #cd7f32;
	text-shadow: 0 0 6px #cd7f32;
}

.psyern-lb.psyern-lb--ops .psyern-lb__top3-rank {
	font-family: 'VT323', monospace;
	color: #00ff41;
	text-shadow: 0 0 3px rgba(0, 255, 65, 0.5);
}

.psyern-lb.psyern-lb--ops .psyern-lb__top3-name::before {
	content: '> ';
	color: #0d3b0d;
}

.psyern-lb.psyern-lb--ops .psyern-lb__top3-avatar {
	border: 2px solid #0d3b0d;
	filter: grayscale(60%) brightness(0.7) saturate(1.5);
	box-shadow: 0 0 6px rgba(0, 255, 65, 0.15);
}

.psyern-lb.psyern-lb--ops .psyern-lb__top3-stats { color: #2a8a4a; }

/* ─── Table ─── */
.psyern-lb.psyern-lb--ops .psyern-lb__table {
	font-family: 'Share Tech Mono', monospace;
}

.psyern-lb.psyern-lb--ops .psyern-lb__table th {
	color: #00ff41;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	border-bottom: 1px solid #00ff41;
	text-shadow: 0 0 3px rgba(0, 255, 65, 0.5);
	font-family: 'Share Tech Mono', monospace;
}

.psyern-lb.psyern-lb--ops .psyern-lb__table td {
	border-bottom: 1px solid rgba(0, 255, 65, 0.08);
	color: #2a8a4a;
	transition: all 0.2s;
}

/* Hover — row lights up like data access */
.psyern-lb.psyern-lb--ops .psyern-lb__table tbody tr {
	transition: all 0.15s;
}

.psyern-lb.psyern-lb--ops .psyern-lb__table tbody tr:hover td {
	background: rgba(0, 255, 65, 0.05);
	color: #00ff41;
	text-shadow: 0 0 3px rgba(0, 255, 65, 0.4);
}

/* Left accent bar via inset box-shadow — zero layout shift */
.psyern-lb.psyern-lb--ops .psyern-lb__table tbody tr:hover td:first-child {
	box-shadow: inset 2px 0 0 #00ff41, inset 4px 0 8px rgba(0, 255, 65, 0.3);
}

/* Top 3 rows — Gold / Silver / Bronze */
.psyern-lb.psyern-lb--ops .psyern-lb__table tbody tr:nth-child(1) td { color: #ffd700; text-shadow: 0 0 8px #ffd700; }
.psyern-lb.psyern-lb--ops .psyern-lb__table tbody tr:nth-child(2) td { color: #c0c0c0; text-shadow: 0 0 8px #c0c0c0; }
.psyern-lb.psyern-lb--ops .psyern-lb__table tbody tr:nth-child(3) td { color: #cd7f32; text-shadow: 0 0 8px #cd7f32; }

.psyern-lb.psyern-lb--ops .psyern-lb__name::before {
	content: '> ';
	color: #0d3b0d;
}

.psyern-lb.psyern-lb--ops .psyern-lb__rank {
	color: #00ff41;
	font-family: 'Share Tech Mono', monospace;
	text-shadow: 0 0 4px #00ff41;
}

.psyern-lb.psyern-lb--ops .psyern-lb__kd { color: #00ff41; text-shadow: 0 0 6px rgba(0, 255, 65, 0.5); }
.psyern-lb.psyern-lb--ops .psyern-lb__avatar { border: 1px solid #0d3b0d; filter: grayscale(60%) brightness(0.7); }
.psyern-lb.psyern-lb--ops .psyern-lb__boss-kills { color: #ffb000; }
.psyern-lb.psyern-lb--ops .psyern-lb__reputation { color: #00ff41; }
.psyern-lb.psyern-lb--ops .psyern-lb__playtime { color: #0d3b0d; }
.psyern-lb.psyern-lb--ops .psyern-lb__loading { color: #2a8a4a; text-shadow: 0 0 6px rgba(0, 255, 65, 0.2); }

/* ─── Badges ─── */
.psyern-lb.psyern-lb--ops .psyern-lb__badge-online {
	background: #00ff41;
	box-shadow: 0 0 4px #00ff41, 0 0 10px rgba(0, 255, 65, 0.4);
}
.psyern-lb.psyern-lb--ops .psyern-lb__badge-offline { background: #0d3b0d; }

/* ─── Faction ─── */
.psyern-lb.psyern-lb--ops .psyern-lb__faction--east { background: rgba(231, 76, 60, 0.12); color: #e74c3c; border-color: rgba(231, 76, 60, 0.3); text-shadow: 0 0 4px rgba(231, 76, 60, 0.4); }
.psyern-lb.psyern-lb--ops .psyern-lb__faction--west { background: rgba(52, 152, 219, 0.12); color: #3498db; border-color: rgba(52, 152, 219, 0.3); text-shadow: 0 0 4px rgba(52, 152, 219, 0.4); }
.psyern-lb.psyern-lb--ops .psyern-lb__faction--neutral { background: rgba(0, 255, 65, 0.08); color: #2a8a4a; border-color: rgba(0, 255, 65, 0.2); }
.psyern-lb.psyern-lb--ops .psyern-lb__faction-bar-track { background: #000a00; border: 1px solid #0d3b0d; }
.psyern-lb.psyern-lb--ops .psyern-lb__faction-bar-east { background: #c0392b; box-shadow: 0 0 8px rgba(192, 57, 43, 0.3); }
.psyern-lb.psyern-lb--ops .psyern-lb__faction-bar-west { background: #2980b9; box-shadow: 0 0 8px rgba(41, 128, 185, 0.3); }
.psyern-lb.psyern-lb--ops .psyern-lb__faction-label-east { color: #e74c3c; text-shadow: 0 0 4px rgba(231, 76, 60, 0.4); }
.psyern-lb.psyern-lb--ops .psyern-lb__faction-label-west { color: #3498db; text-shadow: 0 0 4px rgba(52, 152, 219, 0.4); }

/* ─── Separator ─── */
.psyern-lb.psyern-lb--ops .psyern-lb__separator {
	border: none;
	height: 1px;
	background: #00ff41;
	box-shadow: 0 0 4px #00ff41, 0 0 10px #00b32c;
	margin: 16px 0;
	animation: psyern-ops-sep-pulse 2s ease-in-out infinite;
}

@keyframes psyern-ops-sep-pulse {
	0%, 100% { opacity: 0.4; box-shadow: 0 0 4px #00ff41; }
	50% { opacity: 0.8; box-shadow: 0 0 8px #00ff41, 0 0 20px #00b32c; }
}

.psyern-lb.psyern-lb--ops .psyern-lb__name { color: #4ade80; }

/* --- Pagination --- */
.psyern-lb.psyern-lb--ops .psyern-lb__page-btn {
color: #007a20 !important;
border-color: #007a20;
}
.psyern-lb.psyern-lb--ops .psyern-lb__page-btn.active {
color: #00ff41 !important;
border-color: #00ff41;
background: rgba(0, 255, 65, 0.1);
}
.psyern-lb.psyern-lb--ops .psyern-lb__page-btn:hover:not([disabled]) {
color: #00ff41 !important;
border-color: #00ff41;
background: rgba(0, 255, 65, 0.06);
}
.psyern-lb.psyern-lb--ops .psyern-lb__page-btn[disabled] {
color: #007a20 !important;
border-color: #007a20;
opacity: 0.3;
}
