/* THEME: Military — Tactical HUD / CRT Terminal */
/* Effects: Scanlines, CRT vignette, phosphor bloom, data-stream flicker, radar sweep, terminal cursor */

.psyern-lb.psyern-lb--military {
	--psyern-bg: #0a0f0a;
	background: #0a0f0a;
	color: #4ade80;
	font-family: 'Share Tech Mono', 'Courier New', monospace;
	border: 1px solid #1a3a1a;
	border-radius: 2px;
	position: relative;
}

/* Scanline overlay */
.psyern-lb.psyern-lb--military::before {
	content: '';
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.2) 2px, rgba(0, 0, 0, 0.2) 4px);
	pointer-events: none;
	z-index: 1;
	animation: psyern-mil-scanroll 8s linear infinite;
}

@keyframes psyern-mil-scanroll {
	0% { background-position: 0 0; }
	100% { background-position: 0 200px; }
}

/* CRT vignette + phosphor bloom */
.psyern-lb.psyern-lb--military::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at center, rgba(74, 222, 128, 0.03) 0%, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
	pointer-events: none;
	z-index: 1;
	animation: psyern-mil-flicker 4s ease-in-out infinite;
}

@keyframes psyern-mil-flicker {
	0%, 100% { opacity: 1; }
	92% { opacity: 1; }
	93% { opacity: 0.82; }
	94% { opacity: 1; }
	96% { opacity: 0.9; }
	97% { opacity: 1; }
}

/* Pixel noise background */
.psyern-lb.psyern-lb--military {
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* Custom scrollbar */
.psyern-lb.psyern-lb--military .psyern-lb__table-wrap::-webkit-scrollbar-thumb {
	background: #2a4a2a;
}
.psyern-lb.psyern-lb--military .psyern-lb__table-wrap::-webkit-scrollbar-thumb:hover {
	background: #4ade80;
	box-shadow: 0 0 6px rgba(74, 222, 128, 0.4);
}

/* ::selection */
.psyern-lb.psyern-lb--military ::selection {
	background: rgba(74, 222, 128, 0.3);
	color: #86efac;
}

/* ─── Header ─── */
.psyern-lb.psyern-lb--military .psyern-lb__header {
	border-bottom: 1px dashed #2a4a2a;
}

.psyern-lb.psyern-lb--military .psyern-lb__title {
	font-family: 'Oswald', sans-serif;
	color: #86efac;
	text-shadow: 0 0 10px rgba(74, 222, 128, 0.6), 0 0 40px rgba(74, 222, 128, 0.2), 0 0 80px rgba(74, 222, 128, 0.1);
	animation: psyern-mil-titleflicker 6s ease-in-out infinite;
}

@keyframes psyern-mil-titleflicker {
	0%, 89%, 91%, 93%, 100% { opacity: 1; text-shadow: 0 0 10px rgba(74, 222, 128, 0.6), 0 0 40px rgba(74, 222, 128, 0.2); }
	90% { opacity: 0.85; text-shadow: 0 0 5px rgba(74, 222, 128, 0.3); }
	92% { opacity: 0.9; text-shadow: 0 0 15px rgba(74, 222, 128, 0.8); }
}

.psyern-lb.psyern-lb--military .psyern-lb__title::before {
	content: '[CLASSIFIED] ';
	font-size: 0.6em;
	opacity: 0.6;
	animation: psyern-cursor-blink 1.2s step-end infinite;
}

.psyern-lb.psyern-lb--military .psyern-lb__meta {
	color: #3a7a3a;
}

/* ─── Mode buttons ─── */
.psyern-lb.psyern-lb--military .psyern-lb__mode-btn {
	color: #3a7a3a;
	border: 1px solid #2a4a2a;
	transition: all 0.2s, box-shadow 0.3s;
}

.psyern-lb.psyern-lb--military .psyern-lb__mode-btn.active {
	color: #4ade80;
	border-color: #4ade80;
	background: rgba(74, 222, 128, 0.1);
	box-shadow: 0 0 10px rgba(74, 222, 128, 0.3), inset 0 0 10px rgba(74, 222, 128, 0.05);
	text-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
}

/* ─── Limit buttons ─── */
.psyern-lb.psyern-lb--military .psyern-lb__limit-btn {
	color: #3a7a3a;
	border-color: #2a4a2a;
}

.psyern-lb.psyern-lb--military .psyern-lb__limit-btn.active {
	color: #4ade80;
	border-color: #4ade80;
}

/* ─── Top 3 ─── */
.psyern-lb.psyern-lb--military .psyern-lb__top3-card {
	background: #0d150d;
	border: 1px solid #1a3a1a;
	overflow: hidden;
}

/* Radar sweep effect on #1 card */
.psyern-lb.psyern-lb--military .psyern-lb__top3-card--1 {
	border-color: #4ade80;
	box-shadow: 0 0 20px rgba(74, 222, 128, 0.2), inset 0 0 30px rgba(74, 222, 128, 0.03);
	animation: psyern-mil-pulse 2s ease-in-out infinite;
	background: #0d150d radial-gradient(circle at 50% 50%, rgba(74, 222, 128, 0.06) 0%, transparent 70%);
}

@keyframes psyern-mil-pulse {
	0%, 100% { box-shadow: 0 0 20px rgba(74, 222, 128, 0.2), inset 0 0 30px rgba(74, 222, 128, 0.03); }
	50% { box-shadow: 0 0 35px rgba(74, 222, 128, 0.35), inset 0 0 40px rgba(74, 222, 128, 0.06); }
}

.psyern-lb.psyern-lb--military .psyern-lb__top3-card--2 {
	box-shadow: 0 0 12px rgba(74, 222, 128, 0.1);
}

.psyern-lb.psyern-lb--military .psyern-lb__top3-rank {
	color: #86efac;
	text-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
}

/* Terminal cursor before name */
.psyern-lb.psyern-lb--military .psyern-lb__top3-name::before {
	content: '> ';
	animation: psyern-cursor-blink 1s step-end infinite;
}

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

.psyern-lb.psyern-lb--military .psyern-lb__top3-avatar {
	border: 2px solid #2a4a2a;
	filter: grayscale(50%) brightness(0.8) saturate(1.5);
	box-shadow: 0 0 8px rgba(74, 222, 128, 0.15);
}

/* ─── Table ─── */
.psyern-lb.psyern-lb--military .psyern-lb__table th {
	color: #3a7a3a;
	border-bottom: 1px solid #1a3a1a;
	font-family: 'Share Tech Mono', monospace;
}

.psyern-lb.psyern-lb--military .psyern-lb__table td {
	border-bottom: 1px solid rgba(42, 74, 42, 0.3);
}

/* Data-stream hover effect */
.psyern-lb.psyern-lb--military .psyern-lb__table tbody tr {
	transition: background 0.15s, text-shadow 0.2s;
}

.psyern-lb.psyern-lb--military .psyern-lb__table tbody tr:hover td {
	background: rgba(74, 222, 128, 0.06);
	text-shadow: 0 0 3px rgba(74, 222, 128, 0.3);
}

/* Left accent bar via inset box-shadow — zero layout shift */
.psyern-lb.psyern-lb--military .psyern-lb__table tbody tr:hover td:first-child {
	box-shadow: inset 2px 0 0 #4ade80, inset 4px 0 6px rgba(74, 222, 128, 0.3);
}

.psyern-lb.psyern-lb--military .psyern-lb__name::before {
	content: '\25B6  ';
	font-size: 0.6em;
	color: #3a7a3a;
}

.psyern-lb.psyern-lb--military .psyern-lb__rank {
	color: #86efac;
	text-shadow: 0 0 4px rgba(74, 222, 128, 0.3);
}

.psyern-lb.psyern-lb--military .psyern-lb__kd {
	color: #4ade80;
	text-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
}

.psyern-lb.psyern-lb--military .psyern-lb__avatar {
	filter: grayscale(60%) brightness(0.8);
	border: 1px solid #2a4a2a;
}

.psyern-lb.psyern-lb--military .psyern-lb__boss-kills { color: #86efac; }
.psyern-lb.psyern-lb--military .psyern-lb__reputation { color: #4ade80; }
.psyern-lb.psyern-lb--military .psyern-lb__playtime { color: #1a3a1a; }
.psyern-lb.psyern-lb--military .psyern-lb__loading { color: #3a7a3a; }

/* ─── Badges ─── */
.psyern-lb.psyern-lb--military .psyern-lb__badge-online {
	background: #4ade80;
	box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
	animation: psyern-mil-pulse-badge 2s ease-in-out infinite;
}

@keyframes psyern-mil-pulse-badge {
	0%, 100% { box-shadow: 0 0 4px rgba(74, 222, 128, 0.4); }
	50% { box-shadow: 0 0 8px rgba(74, 222, 128, 0.8); }
}

.psyern-lb.psyern-lb--military .psyern-lb__badge-offline { background: #2a4a2a; }

/* ─── Faction ─── */
.psyern-lb.psyern-lb--military .psyern-lb__faction--east { background: rgba(231, 76, 60, 0.12); color: #e74c3c; border-color: rgba(231, 76, 60, 0.3); }
.psyern-lb.psyern-lb--military .psyern-lb__faction--west { background: rgba(52, 152, 219, 0.12); color: #3498db; border-color: rgba(52, 152, 219, 0.3); }
.psyern-lb.psyern-lb--military .psyern-lb__faction--neutral { background: rgba(74, 222, 128, 0.08); color: #3a7a3a; border-color: rgba(74, 222, 128, 0.2); }
.psyern-lb.psyern-lb--military .psyern-lb__faction-bar-east { background: #c0392b; }
.psyern-lb.psyern-lb--military .psyern-lb__faction-bar-west { background: #2980b9; }
.psyern-lb.psyern-lb--military .psyern-lb__faction-label-east { color: #e74c3c; }
.psyern-lb.psyern-lb--military .psyern-lb__faction-label-west { color: #3498db; }
.psyern-lb.psyern-lb--military .psyern-lb__faction-bar-track { background: #0d150d; border: 1px solid #1a3a1a; }

/* ─── Separator — dashed data stream ─── */
.psyern-lb.psyern-lb--military .psyern-lb__separator {
	border: none;
	height: 1px;
	background: repeating-linear-gradient(90deg, #2a4a2a 0px, #2a4a2a 8px, transparent 8px, transparent 14px);
	margin: 16px 0;
	animation: psyern-mil-datastream 2s linear infinite;
}

@keyframes psyern-mil-datastream {
	0% { background-position: 0 0; }
	100% { background-position: 56px 0; }
}

.psyern-lb.psyern-lb--military .psyern-lb__name { color: #a0d080; }
.psyern-lb.psyern-lb--military .psyern-lb__table td { color: #a0d080; }

/* --- Pagination --- */
.psyern-lb.psyern-lb--military .psyern-lb__page-btn {
color: #2a5a2a !important;
border-color: #2a5a2a;
}
.psyern-lb.psyern-lb--military .psyern-lb__page-btn.active {
color: #4ade80 !important;
border-color: #4ade80;
background: rgba(74, 222, 128, 0.1);
}
.psyern-lb.psyern-lb--military .psyern-lb__page-btn:hover:not([disabled]) {
color: #4ade80 !important;
border-color: #4ade80;
background: rgba(74, 222, 128, 0.06);
}
.psyern-lb.psyern-lb--military .psyern-lb__page-btn[disabled] {
color: #2a5a2a !important;
border-color: #2a5a2a;
opacity: 0.3;
}
