/* KZ Tops — identidad "violeta" (acento #a970ff, complemento lila #c89bff,
   chips NUB en ambar). Compatible CEF1 (Chromium ~2012): sin flexbox/grid
   (layout con inline-block/floats/tablas), gradientes con sintaxis vieja
   -webkit-gradient + fallback estandar, transiciones/animaciones con
   prefijo -webkit-. Webfonts LOCALES (fonts/): Inter (UI), JetBrains Mono
   (tiempos), Remix Icon (iconos), Noto Emoji (emojis/iconos unicode).
   Nada de CDN externo. */

* { margin: 0; padding: 0; }

/* Inter: sans moderna, muy legible en tamaños chicos (UI + nicks).
 * TTF primero (CEF1, navegadores viejos); woff2 para browsers modernos. */
@font-face {
	font-family: 'KZ Inter';
	src: url('fonts/Inter-Regular.ttf?v=1') format('truetype'),
	     url('fonts/Inter-Regular.woff2?v=1') format('woff2');
	font-weight: 400;
	font-style: normal;
}
@font-face {
	font-family: 'KZ Inter';
	src: url('fonts/Inter-Medium.ttf?v=1') format('truetype'),
	     url('fonts/Inter-Medium.woff2?v=1') format('woff2');
	font-weight: 500;
	font-style: normal;
}
@font-face {
	font-family: 'KZ Inter';
	src: url('fonts/Inter-SemiBold.ttf?v=1') format('truetype'),
	     url('fonts/Inter-SemiBold.woff2?v=1') format('woff2');
	font-weight: 600;
	font-style: normal;
}
@font-face {
	font-family: 'KZ Inter';
	src: url('fonts/Inter-Bold.ttf?v=1') format('truetype'),
	     url('fonts/Inter-Bold.woff2?v=1') format('woff2');
	font-weight: 700;
	font-style: normal;
}

/* JetBrains Mono: tiempos / datos tabulares, suave en 12–13px. */
@font-face {
	font-family: 'KZ Mono';
	src: url('fonts/JetBrainsMono-Regular.ttf?v=1') format('truetype'),
	     url('fonts/JetBrainsMono-Regular.woff2?v=1') format('woff2');
	font-weight: 400;
	font-style: normal;
}
@font-face {
	font-family: 'KZ Mono';
	src: url('fonts/JetBrainsMono-Medium.ttf?v=1') format('truetype'),
	     url('fonts/JetBrainsMono-Medium.woff2?v=1') format('woff2');
	font-weight: 500;
	font-style: normal;
}

/* Remix Icon: webfont local para los iconos de la ficha del perfil.
 * Si la fuente no carga, el cuadradito queda vacio y la linea de texto
 * se banca sola (no queda nada roto). */
@font-face {
	font-family: 'remixicon';
	src: url('fonts/remixicon.woff?v=8') format('woff'),
	     url('fonts/remixicon.ttf?v=8') format('truetype');
	font-weight: normal;
	font-style: normal;
}

.ri {
	font-family: 'remixicon';
	font-style: normal;
	font-weight: normal;
}

.ri-flag-line:before   { content: "\ed3b"; }
.ri-trophy-line:before { content: "\f22f"; }
.ri-map-2-line:before  { content: "\ef06"; }
.ri-time-line:before   { content: "\f20f"; }
.ri-arrow-left-line:before { content: "\ea60"; }
.ri-search-line:before { content: "\f0d1"; }
.ri-layout-grid-line:before { content: "\ee90"; }
.ri-table-2:before { content: "\f1da"; }
.ri-vip-crown-fill:before { content: "\f28d"; }
.ri-vip-crown-2-fill:before { content: "\f28b"; }
.ri-diamond-fill:before { content: "\f28f"; }
.vip-ico { color: #ffc978; margin-left: 4px; font-size: 14px; }
.staff-ico { margin-left: 4px; font-size: 14px; }
.staff-ico.admin {
	color: #c89bff;
	text-shadow: 0 0 6px #a970ff, 0 0 12px #a970ff;
}
.staff-ico.owner {
	color: #ff4d4d;
	text-shadow: 0 0 6px #ff4d4d, 0 0 12px #ff4d4d;
}
.plink.vip, #p-name.vip { text-shadow: 0 0 8px rgba(255,201,120,.35); }
.plink.staff-admin, #p-name.staff-admin { text-shadow: 0 0 8px rgba(169,112,255,.4); }
.plink.staff-owner, #p-name.staff-owner { text-shadow: 0 0 8px rgba(255,70,70,.4); }
.rank-vip { color: #ffc978; background: #2b220a; border: 1px solid #a8871b; }
.rank-admin { color: #c89bff; background: #1a0a2b; border: 1px solid #6a3aa8; }
.rank-owner { color: #ff4d4d; background: #2b0a0a; border: 1px solid #a81b1b; }

/* Noto Emoji B&W (glyf): fallback para nicks con emoji/iconos.
 * Inter no cubre plano emoji; el MOTD (CEF1) no tiene color-emoji. */
@font-face {
	font-family: 'KZ Emoji';
	src: url('fonts/NotoEmoji-Regular.ttf?v=1') format('truetype');
	font-weight: 400;
	font-style: normal;
}

/* Fondo: imagen PNG horneada (resplandor violeta cenital + grano fino),
 * a prueba de engines viejos — nada de repeating-gradient en CEF1.
 * Cubre siempre el viewport completo (cover + fixed). */
html {
	min-height: 100%;
	background-color: #0a0710;
	background-image: url('bg.png?v=10');
	background-repeat: no-repeat;
	background-position: center top;
	background-attachment: fixed;
	-webkit-background-size: cover;
	background-size: cover;
}

body {
	background: transparent;
	color: #d9cfe8;
	/* Inter local: legible en 12–13px, suavizada. Fallback sistema. */
	font-family: 'KZ Inter', 'KZ Emoji', "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", "Noto Color Emoji", "Noto Emoji", "Twemoji Mozilla", "DejaVu Sans", "Segoe UI", "Noto Sans", Arial, Helvetica, sans-serif;
	font-size: 13px;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Panel principal: fluido (aprovecha la ventana del MOTD) */

#wrap {
	width: 96%;
	max-width: 1100px;
	margin: 14px auto;
	background: #130c1d;
	border: 1px solid #2b1f40;
	border-top: 2px solid #a970ff;
	border-radius: 6px;
	-webkit-border-radius: 6px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.65), 0 0 24px rgba(169, 112, 255, 0.06);
	-webkit-box-shadow: 0 4px 18px rgba(0, 0, 0, 0.65), 0 0 24px rgba(169, 112, 255, 0.06);
	overflow: hidden;
	-webkit-animation: kzWrapIn 0.35s ease-out;
	animation: kzWrapIn 0.35s ease-out;
}

@-webkit-keyframes kzWrapIn {
	from { opacity: 0; -webkit-transform: translateY(6px); }
	to   { opacity: 1; -webkit-transform: translateY(0); }
}
@keyframes kzWrapIn {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Header */

#header {
	padding: 12px 16px 11px;
	background: #170f24;
	background: -webkit-gradient(linear, left top, left bottom, from(#1b1229), to(#120b1c));
	background: linear-gradient(#1b1229, #120b1c);
	border-bottom: 1px solid #2b1f40;
	overflow: hidden;
}

/* Los bloques de header de cada vista van debajo del float de #conn,
 * incluso cuando el mensaje de error es largo y ocupa todo el ancho. */
#hdr-tops, #hdr-profile { clear: both; }

#header h1 {
	display: inline-block;
	font-size: 17px;
	letter-spacing: 3px;
}

.brand-a {
	color: #c89bff;
	text-shadow: 0 0 8px rgba(169, 112, 255, 0.5), 0 1px 2px #000;
}

.brand-b {
	color: #f4eefc;
	text-shadow: 0 1px 2px #000;
	margin-left: 7px;
}

#header .sub {
	font-size: 10px;
	font-weight: bold;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #77659a;
	margin-left: 12px;
}

/* Estado de conexion (ONLINE/OFFLINE): pill con punto y pulso suave
 * en el halo (la animacion va en el elemento, no en el pseudo, porque
 * el WebKit viejo no anima pseudo-elementos). */

#conn {
	float: right;
	margin-top: 3px;
	padding: 3px 11px;
	font-size: 10px;
	font-weight: bold;
	letter-spacing: 1px;
	border-radius: 10px;
	-webkit-border-radius: 10px;
}

#conn:before {
	content: "\eb7c";
	font-family: 'remixicon';
	font-style: normal;
	margin-right: 6px;
	font-size: 6px;
	vertical-align: middle;
	position: relative;
	top: -1px;
}

.conn-ok {
	color: #4ade80;
	background: #0f2416;
	border: 1px solid #1f6b3a;
	-webkit-animation: kzPulse 1.8s ease-in-out infinite;
	animation: kzPulse 1.8s ease-in-out infinite;
}
.conn-ok:before { color: #4ade80; }

.conn-bad {
	color: #ff8a8a;
	background: #2b1416;
	border: 1px solid #7a2b2b;
}
.conn-bad:before { color: #ff8a8a; }

@-webkit-keyframes kzPulse {
	0%   { box-shadow: 0 0 3px rgba(74, 222, 128, 0.15); -webkit-box-shadow: 0 0 3px rgba(74, 222, 128, 0.15); }
	50%  { box-shadow: 0 0 10px rgba(74, 222, 128, 0.5); -webkit-box-shadow: 0 0 10px rgba(74, 222, 128, 0.5); }
	100% { box-shadow: 0 0 3px rgba(74, 222, 128, 0.15); -webkit-box-shadow: 0 0 3px rgba(74, 222, 128, 0.15); }
}
@keyframes kzPulse {
	0%   { box-shadow: 0 0 3px rgba(74, 222, 128, 0.15); }
	50%  { box-shadow: 0 0 10px rgba(74, 222, 128, 0.5); }
	100% { box-shadow: 0 0 3px rgba(74, 222, 128, 0.15); }
}

/* Mapa actual: nombre mono grande con barra de acento y glow medido */

#mapname {
	margin-top: 10px;
	padding-left: 10px;
	border-left: 3px solid #a970ff;
	font-size: 24px;
	font-weight: bold;
	font-family: 'KZ Mono', "JetBrains Mono", Consolas, "Courier New", monospace;
	letter-spacing: 1px;
	color: #f0e9fb;
	text-shadow: 0 0 10px rgba(169, 112, 255, 0.3), 0 1px 2px #000;
}

#mapinfo { margin-top: 7px; }

#mapwr { margin-top: 6px; }
.mapwr-k {
	display: inline-block;
	margin: 0 8px 2px 0;
	font-size: 9px;
	font-weight: bold;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #77659a;
	vertical-align: middle;
}

/* Chips de info (PRO n / NUB m como badges) */

.chip {
	display: inline-block;
	padding: 3px 9px;
	margin: 0 6px 2px 0;
	font-size: 10px;
	font-weight: bold;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #9b8abd;
	background: #0f0a19;
	border: 1px solid #2b1f40;
	border-radius: 3px;
	-webkit-border-radius: 3px;
}

/* Meta del mapa: label + valor, sin uppercase (preserva acentos: Fácil). */
.chip-meta {
	text-transform: none;
	letter-spacing: 0.3px;
	font-weight: normal;
}
.chip-meta .chip-k {
	display: inline-block;
	margin-right: 5px;
	font-size: 9px;
	font-weight: bold;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	opacity: 0.7;
	color: inherit;
}
.chip-meta .chip-v {
	font-weight: bold;
	color: #e8dff8;
}

.chip b {
	margin-left: 5px;
	font-family: 'KZ Mono', "JetBrains Mono", Consolas, "Courier New", monospace;
	font-size: 11px;
	color: #f0e9fb;
}

.chip-pro { color: #c89bff; border-color: #4a2e78; }
.chip-pro b { color: #c89bff; }
.chip-nub { color: #ffd75e; border-color: #5c4d1f; }
.chip-nub b { color: #ffd75e; }

/* Toolbar: tabs PRO/NUB/PRO CON ARMA/NUB CON ARMA + botonera de armas
 * (solo en modo "con arma") + buscador */

#toolbar {
	padding: 12px 16px 10px;
	background: #0f0a19;
	border-bottom: 1px solid #2b1f40;
}

/* Grupo de 4 tabs centrado como una sola pildora segmentada.
 * overflow: hidden contiene el float del boton lupa (lateral derecho). */
#aabar { margin-bottom: 8px; text-align: center; overflow: hidden; }
#typebar { margin-bottom: 10px; text-align: center; overflow: hidden; }

.tab {
	display: inline-block;
	padding: 5px 16px;
	cursor: pointer;
	font-weight: bold;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 2px;
	color: #9b8abd;
	background: #0a0612;
	border: 1px solid #2b1f40;
	border-radius: 3px;
	-webkit-border-radius: 3px;
	-webkit-transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tab:hover {
	background: #181024;
	color: #e3d7f5;
	border-color: #3d2a5c;
}

/* AA 10aa/100aa: pildora segmentada (extremos redondeados, sin doble borde). */
#aabar #tab-aa10 {
	border-radius: 3px 0 0 3px;
	-webkit-border-radius: 3px 0 0 3px;
	border-right: none;
}
#aabar #tab-aa100 {
	border-radius: 0 3px 3px 0;
	-webkit-border-radius: 0 3px 3px 0;
}

/* Pildora segmentada PRO/NUB/…: bordes redondeados solo en los extremos,
 * sin doble borde entre segmentos. */
#tab-pro {
	border-radius: 3px 0 0 3px;
	-webkit-border-radius: 3px 0 0 3px;
	border-right: none;
}

#tab-cc, #tab-prow { border-right: none; border-radius: 0; -webkit-border-radius: 0; }

#tab-ccw {
	border-radius: 0 3px 3px 0;
	-webkit-border-radius: 0 3px 3px 0;
}

/* Ranks: PUNTOS / MAPAS como pildora segmentada de 2. */
#tab-rank-pts {
	border-radius: 3px 0 0 3px;
	-webkit-border-radius: 3px 0 0 3px;
	border-right: none;
}
#tab-rank-maps {
	border-radius: 0 3px 3px 0;
	-webkit-border-radius: 0 3px 3px 0;
}

/* Jumpstats (y cualquier tab suelto en typebar): pills independientes
 * redondeadas, con espacio entre ellas. */
#typebar .tab {
	margin: 0 3px 4px 0;
}
/* Los 4 tabs de tiempos ya están unidos: sin margen entre segmentos. */
#typebar #tab-pro,
#typebar #tab-cc,
#typebar #tab-prow,
#typebar #tab-ccw {
	margin: 0;
}
#typebar #tab-rank-pts,
#typebar #tab-rank-maps {
	margin: 0;
}
/* Maps: TODOS / TIPO / DIFICULTAD como pildora segmentada de 3. */
#typebar #tab-all,
#typebar #tab-type,
#typebar #tab-diff {
	margin: 0;
}
#typebar #tab-all {
	border-radius: 3px 0 0 3px;
	-webkit-border-radius: 3px 0 0 3px;
	border-right: none;
}
#typebar #tab-type {
	border-radius: 0;
	-webkit-border-radius: 0;
	border-right: none;
}
#typebar #tab-diff {
	border-radius: 0 3px 3px 0;
	-webkit-border-radius: 0 3px 3px 0;
}

.tab-on {
	color: #1c0b33;
	background: #a970ff;
	background: -webkit-gradient(linear, left top, left bottom, from(#c89bff), to(#8b4de8));
	background: linear-gradient(#c89bff, #8b4de8);
	border-color: #a970ff;
	text-shadow: none;
	box-shadow: 0 0 10px rgba(169, 112, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
	-webkit-box-shadow: 0 0 10px rgba(169, 112, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tab-on:hover {
	color: #1c0b33;
	background: #a970ff;
	background: -webkit-gradient(linear, left top, left bottom, from(#d3afff), to(#9558f0));
	background: linear-gradient(#d3afff, #9558f0);
	border-color: #a970ff;
}

/* Contador de records dentro del tab: altura/line-height fijos (iguales,
 * sin padding vertical) para que el numero quede opticamente centrado y
 * el chip nunca estire la altura del tab. */

.tcount {
	display: inline-block;
	height: 13px;
	line-height: 13px;
	margin-left: 8px;
	padding: 0 6px;
	font-size: 10px;
	font-family: 'KZ Mono', "JetBrains Mono", Consolas, "Courier New", monospace;
	font-weight: bold;
	color: #c89bff;
	background: #1d1230;
	border: 1px solid #4a2e78;
	border-radius: 8px;
	-webkit-border-radius: 8px;
	vertical-align: middle;
	overflow: hidden;
}

.tab-on .tcount {
	color: #1c0b33;
	background: rgba(28, 11, 51, 0.25);
	border-color: rgba(28, 11, 51, 0.45);
}

/* Botonera de armas: solo visible en modo "con arma" (la oculta .hidden).
 * Estilo HERMANO de los tabs pero diferenciado: pills ghost/outline,
 * mas chicas, centradas; al activarse se rellenan suave de violeta. */

#wpbar { line-height: 24px; text-align: center; }

.wpbtn {
	display: inline-block;
	padding: 2px 9px;
	margin: 0 4px 4px 0;
	cursor: pointer;
	font-size: 10px;
	line-height: 18px;
	font-weight: bold;
	letter-spacing: 1px;
	color: #9b8abd;
	background: transparent;
	border: 1px solid #3d2a5c;
	border-radius: 3px;
	-webkit-border-radius: 3px;
	-webkit-transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.wpbtn:hover {
	color: #e3d7f5;
	border-color: #a970ff;
	background: #181024;
}

/* Activo: relleno suave violeta + borde/glow (claramente distinguible
 * del tab activo, que es pill solido con gradiente) */
.wpbtn-on {
	color: #e9ddff;
	background: #2a1a47;
	border-color: #a970ff;
	box-shadow: inset 0 0 8px rgba(169, 112, 255, 0.22), 0 0 6px rgba(169, 112, 255, 0.12);
	-webkit-box-shadow: inset 0 0 8px rgba(169, 112, 255, 0.22), 0 0 6px rgba(169, 112, 255, 0.12);
}

.wpbtn-on:hover {
	color: #f0e9fb;
	background: #332054;
	border-color: #c89bff;
	box-shadow: inset 0 0 10px rgba(169, 112, 255, 0.3), 0 0 8px rgba(169, 112, 255, 0.18);
	-webkit-box-shadow: inset 0 0 10px rgba(169, 112, 255, 0.3), 0 0 8px rgba(169, 112, 255, 0.18);
}

/* Contador de records dentro del boton de arma (badge mono chico):
 * altura/line-height fijos y menores que la line-height de la pill (18px)
 * para que NO se estire verticalmente ni supere la altura de la pill. */

.wcount {
	display: inline-block;
	height: 12px;
	max-height: 12px;
	line-height: 12px;
	margin-left: 6px;
	padding: 0 5px;
	font-size: 9px;
	font-family: 'KZ Mono', "JetBrains Mono", Consolas, "Courier New", monospace;
	font-weight: bold;
	color: #c89bff;
	background: #1d1230;
	border: 1px solid #4a2e78;
	border-radius: 7px;
	-webkit-border-radius: 7px;
	vertical-align: middle;
	overflow: hidden;
}

.wpbtn-on .wcount {
	color: #f0e9fb;
	background: rgba(169, 112, 255, 0.28);
	border-color: #a970ff;
}

/* Boton lupa del buscador: pegado al lateral derecho de la toolbar, en
 * la misma linea que los tabs (float right, sin flexbox). Cerrado = pill
 * oscuro hermano de los tabs; abierto (.sbtn-on) = "encendido" con el
 * mismo gradiente violeta del tab activo. */

.sbtn {
	float: right;
	padding: 5px 12px;
	cursor: pointer;
	font-size: 12px;
	line-height: 16px;
	color: #9b8abd;
	background: #0a0612;
	border: 1px solid #2b1f40;
	border-radius: 3px;
	-webkit-border-radius: 3px;
	-webkit-transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sbtn:hover {
	background: #181024;
	color: #e3d7f5;
	border-color: #3d2a5c;
}

.sbtn-on {
	color: #1c0b33;
	background: #a970ff;
	background: -webkit-gradient(linear, left top, left bottom, from(#c89bff), to(#8b4de8));
	background: linear-gradient(#c89bff, #8b4de8);
	border-color: #a970ff;
	box-shadow: 0 0 10px rgba(169, 112, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
	-webkit-box-shadow: 0 0 10px rgba(169, 112, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.sbtn-on:hover {
	color: #1c0b33;
	background: #a970ff;
	background: -webkit-gradient(linear, left top, left bottom, from(#d3afff), to(#9558f0));
	background: linear-gradient(#d3afff, #9558f0);
	border-color: #a970ff;
}

/* Fila del buscador desplegado: input centrado en su propia linea */
#searchrow { margin-top: 9px; text-align: center; }

/* Buscador: filtra la primera columna (jugador en tops, mapa en perfil)
 * en vivo. Se despliega con el boton lupa; al cerrarse se limpia el
 * filtro. Si el JS no corre, el input queda oculto y no filtra. */

#search {
	width: 220px;
	padding: 4px 12px;
	font-size: 12px;
	font-family: 'KZ Inter', Arial, Helvetica, sans-serif;
	color: #e6dcf5;
	background: #0a0612;
	border: 1px solid #2b1f40;
	border-radius: 11px;
	-webkit-border-radius: 11px;
	outline: none;
	-webkit-transition: border-color 0.15s ease, box-shadow 0.15s ease;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#search:focus {
	border-color: #a970ff;
	box-shadow: 0 0 8px rgba(169, 112, 255, 0.3);
	-webkit-box-shadow: 0 0 8px rgba(169, 112, 255, 0.3);
}

::-webkit-input-placeholder { color: #6b5b8a; }

/* Mensajes */

#msg {
	padding: 10px 16px;
	color: #ffd75e;
	background: #1c1708;
	border-bottom: 1px solid #4a3d14;
	border-left: 3px solid #ffd75e;
	font-size: 12px;
}

.hidden { display: none; }

/* Tabla de tops: zebra + hover con highlight + filas que entran en
 * cascada (fade con delay incremental puesto inline desde JS). Al
 * filtrar con el buscador se desactiva la animacion (tbody.noanim). */

#tops {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
}

#tops th {
	text-align: left;
	padding: 9px 12px;
	font-size: 10px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #77659a;
	background: #0d0817;
	border-bottom: 1px solid #4a2e78;
	-webkit-user-select: none;
	user-select: none;
}

/* Columnas ordenables: click cicla asc/desc, flecha ▲▼ en el activo */
#tops th.sortable {
	cursor: pointer;
	-webkit-transition: color 0.15s ease;
	transition: color 0.15s ease;
}

#tops th.sortable:hover { color: #c89bff; }

.sarrow {
	margin-left: 5px;
	font-size: 9px;
	color: #a970ff;
}

#tops td {
	padding: 7px 12px;
	border-bottom: 1px solid #1c1429;
}

#tops tbody tr {
	-webkit-animation: kzRowIn 0.3s ease-out both;
	animation: kzRowIn 0.3s ease-out both;
	-webkit-transition: background-color 0.15s ease;
	transition: background-color 0.15s ease;
}

#tops tbody.noanim tr {
	-webkit-animation: none;
	animation: none;
}

@-webkit-keyframes kzRowIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes kzRowIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

#tops tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }

tr.top1 td { background: rgba(169, 112, 255, 0.05); }
tr.top2 td { background: rgba(200, 215, 225, 0.03); }
tr.top3 td { background: rgba(216, 146, 90, 0.03); }

#tops tbody tr:hover { background: rgba(169, 112, 255, 0.08); }

/* Links clickeables: nombre de jugador (a perfil) y de mapa (a sus tops) */

.plink, .maplink {
	cursor: pointer;
	color: #b58cff;
	text-decoration: none;
	/* Mismos fonts Unicode que body (nicks fancy). */
	font-family: 'KZ Inter', 'KZ Emoji', "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", "Noto Color Emoji", "Noto Emoji", "DejaVu Sans", "Segoe UI", "Noto Sans", Arial, Helvetica, sans-serif;
	-webkit-transition: color 0.15s ease, text-shadow 0.15s ease;
	transition: color 0.15s ease, text-shadow 0.15s ease;
}

.c-name {
	font-family: 'KZ Inter', 'KZ Emoji', "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", "Noto Color Emoji", "Noto Emoji", "DejaVu Sans", "Segoe UI", "Noto Sans", Arial, Helvetica, sans-serif;
	word-break: break-all;
}

.plink:hover, .maplink:hover,
.plink:focus, .maplink:focus,
.plink:active, .maplink:active {
	color: #ddc9ff;
	text-decoration: none;
}

.c-pos { width: 46px; color: #8d7da8; text-align: center; }
.c-time { width: 96px; font-family: 'KZ Mono', "JetBrains Mono", Consolas, "Courier New", monospace; font-weight: 500; letter-spacing: 0.5px; color: #cfa9ff; }
.c-diff { width: 92px; }
.c-diffwr { width: 92px; white-space: nowrap; font-family: 'KZ Mono', "JetBrains Mono", Consolas, "Courier New", monospace; font-size: 12px; }
.chip-wr { letter-spacing: 0.2px; }
.chip-wr .flag { margin: 0 4px 0 0; vertical-align: -1px; }
.chip-author .flag,
.chip-meta .chip-v .flag {
	margin: 0 5px 0 0;
	vertical-align: -1px;
	border: 1px solid #2b1f40;
}
.c-author .flag {
	margin: 0 5px 0 0;
	vertical-align: -1px;
	border: 1px solid #2b1f40;
}
.chip-wr-cc { color: #7ecbff; border-color: #2a4a6a; }
.chip-wr-kz { color: #ffb07a; border-color: #5c3d1f; }
.chip-wr-kzr { color: #7ddea0; border-color: #2a5a40; }
.c-weapon { width: 84px; color: #b8a06a; }
.c-date { width: 130px; color: #8d7da8; font-size: 12px; }
.c-pmap { font-family: 'KZ Mono', "JetBrains Mono", Consolas, "Courier New", monospace; }

#tops.view-profile .c-first,
#tops.view-profile .c-pmap {
	width: 44%;
}
#tops.view-profile .c-time { width: 26%; }
#tops.view-profile .c-date { width: 24%; }

#tops.view-ranks .c-first,
#tops.view-ranks .c-name { width: 42%; }
#tops.view-ranks .c-points { width: 24%; }
#tops.view-ranks .c-rank { width: 24%; }

#tops.view-ranks-maps .c-first,
#tops.view-ranks-maps .c-name { width: 62%; }
#tops.view-ranks-maps .c-maps { width: 30%; }

/* Pos y Fecha: ancho = contenido (medalla / 24/08/2026).
 * Nick: 34% de base; nowrap lo estira si el nombre es más largo y
 * Dist/Tiempo/Dif se achican. */
#twrap { overflow-x: hidden; }
#tops.view-tops,
#tops.view-js {
	width: 100%;
	max-width: 100%;
	table-layout: auto;
}
#tops.view-js th {
	letter-spacing: 0.5px;
	padding: 7px 6px;
}
#tops.view-js td { padding: 6px 6px; }

#tops.view-tops .c-pos,
#tops.view-js .c-pos {
	width: 1%;
	white-space: nowrap;
}
#tops.view-tops .c-date,
#tops.view-js .c-jsdate {
	width: 1%;
	white-space: nowrap;
	color: #8d7da8;
	font-size: 12px;
}
#tops.view-tops .c-first,
#tops.view-tops .c-name,
#tops.view-js .c-first,
#tops.view-js .c-name {
	width: 34%;
	min-width: 160px;
	white-space: nowrap;
	word-break: normal;
	overflow: hidden;
}
#tops.view-js .c-name .plink { word-break: normal; }
#tops.view-tops .c-time,
#tops.view-tops .c-diff,
#tops.view-tops .c-diffwr,
#tops.view-tops .c-weapon,
#tops.view-js .c-time,
#tops.view-js .c-diff,
#tops.view-js .c-weapon,
#tops.view-js .c-str,
#tops.view-js .c-sync { width: auto; }
#tops.view-js .c-str,
#tops.view-js .c-sync {
	color: #8d7da8;
	font-size: 12px;
}

/* Medallas top 3: disco con gradiente dorado/plateado/bronce (CSS puro) */

.medal {
	display: inline-block;
	width: 22px;
	height: 22px;
	line-height: 22px;
	text-align: center;
	font-size: 12px;
	font-weight: bold;
	border-radius: 11px;
	-webkit-border-radius: 11px;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.medal-1 {
	color: #241a04;
	background: #ffd75e;
	background: -webkit-gradient(linear, left top, left bottom, from(#ffe889), to(#d9a910));
	background: linear-gradient(#ffe889, #d9a910);
	box-shadow: 0 0 9px rgba(255, 215, 94, 0.45);
	-webkit-box-shadow: 0 0 9px rgba(255, 215, 94, 0.45);
}

.medal-2 {
	color: #1d2b33;
	background: #cfd8dc;
	background: -webkit-gradient(linear, left top, left bottom, from(#f2f6f8), to(#9fb2bd));
	background: linear-gradient(#f2f6f8, #9fb2bd);
	box-shadow: 0 0 9px rgba(200, 215, 225, 0.3);
	-webkit-box-shadow: 0 0 9px rgba(200, 215, 225, 0.3);
}

.medal-3 {
	color: #331b06;
	background: #d8925a;
	background: -webkit-gradient(linear, left top, left bottom, from(#f0b078), to(#b06a28));
	background: linear-gradient(#f0b078, #b06a28);
	box-shadow: 0 0 9px rgba(216, 146, 90, 0.35);
	-webkit-box-shadow: 0 0 9px rgba(216, 146, 90, 0.35);
}

/* Columna Dif.: chip "+mm:ss.cc" respecto al #1; el #1 lleva chip WR */

.diff {
	display: inline-block;
	padding: 2px 7px;
	font-family: 'KZ Mono', "JetBrains Mono", Consolas, "Courier New", monospace;
	font-size: 11px;
	font-weight: bold;
	color: #9b8abd;
	background: #0a0612;
	border: 1px solid #2b1f40;
	border-radius: 3px;
	-webkit-border-radius: 3px;
}

.diff-wr {
	color: #1c0b33;
	letter-spacing: 1px;
	background: #a970ff;
	background: -webkit-gradient(linear, left top, left bottom, from(#c89bff), to(#8b4de8));
	background: linear-gradient(#c89bff, #8b4de8);
	border-color: #a970ff;
	box-shadow: 0 0 8px rgba(169, 112, 255, 0.4);
	-webkit-box-shadow: 0 0 8px rgba(169, 112, 255, 0.4);
}

/* Vista de perfil: header COMPACTO (avatar chico, ficha en dos columnas)
 * para no opacar la tabla. Misma toolbar y tabla que tops. */

#hdr-profile { margin-top: 8px; overflow: hidden; }

#p-avatar {
	float: left;
	width: 112px;
	height: 112px;
	margin-right: 16px;
}

/* Avatar enmarcado: el de 184 px de la API, se ve nítido a 112. */
#p-avatar img {
	display: block;
	width: 112px;
	height: 112px;
	border: 2px solid #a970ff;
	border-radius: 6px;
	-webkit-border-radius: 6px;
	box-shadow: 0 0 14px rgba(169, 112, 255, 0.5), 0 2px 5px rgba(0, 0, 0, 0.6);
	-webkit-box-shadow: 0 0 14px rgba(169, 112, 255, 0.5), 0 2px 5px rgba(0, 0, 0, 0.6);
}

.avatar-ph {
	display: block;
	width: 108px;
	height: 108px;
	line-height: 108px;
	text-align: center;
	font-size: 42px;
	font-weight: bold;
	color: #c89bff;
	background: #181024;
	border: 2px solid #a970ff;
	border-radius: 6px;
	-webkit-border-radius: 6px;
	box-shadow: 0 0 14px rgba(169, 112, 255, 0.35);
	-webkit-box-shadow: 0 0 14px rgba(169, 112, 255, 0.35);
}

#p-idline { margin-left: 128px; padding-top: 10px; }

#p-name {
	font-size: 22px;
	font-weight: bold;
	color: #f0e9fb;
	font-family: 'KZ Inter', 'KZ Emoji', "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", "Noto Color Emoji", "Noto Emoji", "DejaVu Sans", "Segoe UI", "Noto Sans", Arial, Helvetica, sans-serif;
	text-shadow: 0 0 8px rgba(169, 112, 255, 0.25), 0 1px 2px #000;
}

#p-points {
	display: inline-block;
	margin-top: 5px;
	padding: 2px 10px;
	font-size: 13px;
	font-weight: bold;
	letter-spacing: 1px;
	color: #ffd75e;
	background: #241d07;
	border: 1px solid #5c4d1f;
	border-radius: 3px;
	-webkit-border-radius: 3px;
}

/* Ficha del perfil: DOS columnas de lineas icono + label / valor debajo
 * del avatar + nombre + puntos (floats al 50%, sin flexbox). Los iconos
 * son glyphs de Remix Icon (webfont local) en un cuadradito. */

#p-ficha {
	clear: both;
	margin-top: 8px;
	padding-top: 6px;
	border-top: 1px solid #2b1f40;
	overflow: hidden;
}

/* Ficha como tabla de 4 columnas de ancho natural: etiqueta | dato |
 * etiqueta | dato. La tabla se abraza al contenido (width auto), asi no
 * quedan huecos entre bloques a ninguna resolucion. */
.ftable {
	width: auto;
	border-collapse: collapse;
}

.ftable td {
	padding: 4px 0;
	vertical-align: middle;
	white-space: nowrap;
	font-size: 15px;
}

.ftable td.fv {
	padding-right: 44px;
}

.ftable tr:last-child td.fv { padding-right: 0; }

.ftable .flabel {
	display: inline;
	margin-right: 6px;
	color: #8d7da8;
	vertical-align: middle;
}

.ftable .fval, .ftable td.fv { color: #e2d8f2; }

/* Bandera del pais dentro de la ficha */
.ftable img.flag {
	width: 22px;
	margin-right: 6px;
	vertical-align: -3px;
	border: 1px solid #2b1f40;
}

.fico {
	display: inline-block;
	width: 22px;
	height: 22px;
	line-height: 22px;
	text-align: center;
	font-size: 14px;
	color: #a970ff;
	background: #150d24;
	border: 1px solid #2b1f40;
	border-radius: 4px;
	-webkit-border-radius: 4px;
	margin-right: 7px;
	vertical-align: middle;
}

.flabel {
	display: inline;
	margin-right: 6px;
	color: #8d7da8;
	vertical-align: middle;
}

.fval { color: #e2d8f2; vertical-align: middle; }

.fval .flag {
	width: 22px;
	margin-right: 6px;
	vertical-align: -3px;
	border: 1px solid #2b1f40;
}

.ri-dot-fill:before { content: "\eb7c"; }

@-webkit-keyframes kzPulseAway {
	0%   { box-shadow: 0 0 3px rgba(255, 215, 94, 0.2); -webkit-box-shadow: 0 0 3px rgba(255, 215, 94, 0.2); }
	50%  { box-shadow: 0 0 10px rgba(255, 215, 94, 0.55); -webkit-box-shadow: 0 0 10px rgba(255, 215, 94, 0.55); }
	100% { box-shadow: 0 0 3px rgba(255, 215, 94, 0.2); -webkit-box-shadow: 0 0 3px rgba(255, 215, 94, 0.2); }
}
@keyframes kzPulseAway {
	0%   { box-shadow: 0 0 3px rgba(255, 215, 94, 0.2); }
	50%  { box-shadow: 0 0 10px rgba(255, 215, 94, 0.55); }
	100% { box-shadow: 0 0 3px rgba(255, 215, 94, 0.2); }
}

/* Badge de rango del jugador (color por tier) */
.rank-badge {
	display: inline-block;
	padding: 1px 10px;
	font-size: 11px;
	font-weight: bold;
	letter-spacing: 1px;
	border-radius: 4px;
	-webkit-border-radius: 4px;
	vertical-align: 1px;
	margin-right: 6px;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
}
.rank-pts {
	font-family: 'KZ Mono', "JetBrains Mono", Consolas, "Courier New", monospace;
	font-size: 13px;
	color: #b9a8d8;
}

.rank-bronce   { color: #f5c69a; background: #2b1a10; border: 1px solid #8a5a2b; }
.rank-plata    { color: #e6e6e6; background: #23262b; border: 1px solid #7d8794; }
.rank-oro      { color: #ffd75e; background: #2b220a; border: 1px solid #a8871b; }
.rank-platino  { color: #8ef0e8; background: #0d2226; border: 1px solid #2b8a80; }
.rank-diamante { color: #8fc2ff; background: #101c30; border: 1px solid #2b5aa8; }
.rank-maestro  { color: #d5a6ff; background: #1d1230; border: 1px solid #6b3aa8; }
.rank-kzgod {
	color: #fff;
	background: -webkit-gradient(linear, left top, right top, from(#8b1111), to(#e02020));
	background: linear-gradient(to right, #8b1111, #e02020);
	border: 1px solid #ff3b3b;
}

/* Nick del top/perfil: color de rango (gana al violeta default de .plink). */
#wrap #tops .c-name .plink.nr-bronce,
#wrap #p-name.nr-bronce { color: #f5c69a; font-weight: 700; }
#wrap #tops .c-name .plink.nr-plata,
#wrap #p-name.nr-plata { color: #e8edf2; font-weight: 700; }
#wrap #tops .c-name .plink.nr-oro,
#wrap #p-name.nr-oro { color: #ffd75e; font-weight: 700; }
#wrap #tops .c-name .plink.nr-platino,
#wrap #p-name.nr-platino { color: #8ef0e8; font-weight: 700; }
#wrap #tops .c-name .plink.nr-diamante,
#wrap #p-name.nr-diamante { color: #8fc2ff; font-weight: 700; }
#wrap #tops .c-name .plink.nr-maestro,
#wrap #p-name.nr-maestro { color: #d5a6ff; font-weight: 700; }
#wrap #tops .c-name .plink.nr-kzgod,
#wrap #p-name.nr-kzgod { color: #ff3b3b; font-weight: 700; }

#wrap #tops .c-name .plink.nr-bronce:hover,
#wrap #tops .c-name .plink.nr-bronce:focus { color: #ffd2a8; }
#wrap #tops .c-name .plink.nr-plata:hover,
#wrap #tops .c-name .plink.nr-plata:focus { color: #ffffff; }
#wrap #tops .c-name .plink.nr-oro:hover,
#wrap #tops .c-name .plink.nr-oro:focus { color: #ffe99a; }
#wrap #tops .c-name .plink.nr-platino:hover,
#wrap #tops .c-name .plink.nr-platino:focus { color: #c8fff8; }
#wrap #tops .c-name .plink.nr-diamante:hover,
#wrap #tops .c-name .plink.nr-diamante:focus { color: #c4e0ff; }
#wrap #tops .c-name .plink.nr-maestro:hover,
#wrap #tops .c-name .plink.nr-maestro:focus { color: #ead2ff; }
#wrap #tops .c-name .plink.nr-kzgod:hover,
#wrap #tops .c-name .plink.nr-kzgod:focus { color: #ff6b6b; }

#btn-back {
	float: right;
	margin-top: 4px;
	padding: 4px 13px;
	cursor: pointer;
	font-size: 11px;
	font-weight: bold;
	letter-spacing: 1px;
	color: #9b8abd;
	background: #0a0612;
	border: 1px solid #2b1f40;
	border-radius: 3px;
	-webkit-border-radius: 3px;
	-webkit-transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

#btn-back:hover {
	background: #1d1230;
	color: #c89bff;
	border-color: #a970ff;
	box-shadow: 0 0 8px rgba(169, 112, 255, 0.2);
	-webkit-box-shadow: 0 0 8px rgba(169, 112, 255, 0.2);
}

/* Paginador bajo la tabla: pills ghost hermanas de la botonera de armas.
 * Deshabilitado en los extremos (.pgbtn-off): opacidad reducida, sin
 * hover ni cursor pointer. */

#pager {
	padding: 8px 16px 9px;
	text-align: center;
}

.pgbtn {
	display: inline-block;
	min-width: 14px;
	padding: 2px 10px;
	margin: 0 8px;
	cursor: pointer;
	font-size: 13px;
	line-height: 16px;
	font-weight: bold;
	text-align: center;
	color: #9b8abd;
	background: transparent;
	border: 1px solid #3d2a5c;
	border-radius: 3px;
	-webkit-border-radius: 3px;
	vertical-align: middle;
	-webkit-user-select: none;
	user-select: none;
	-webkit-transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.pgbtn:hover {
	color: #e3d7f5;
	border-color: #a970ff;
	background: #181024;
}

.pgbtn-off,
.pgbtn-off:hover {
	cursor: default;
	color: #5c4e78;
	background: transparent;
	border-color: #241a38;
	opacity: 0.4;
	box-shadow: none;
	-webkit-box-shadow: none;
}

.pginfo {
	display: inline-block;
	font-size: 11px;
	color: #8d7da8;
	vertical-align: middle;
}

/* Footer: "actualizado hace Ns" como chip discreto mono */

#footer {
	padding: 9px 16px;
	background: #0d0817;
	border-top: 1px solid #2b1f40;
	overflow: hidden;
}

#updated {
	display: inline-block;
	padding: 2px 9px;
	font-size: 10px;
	font-family: 'KZ Mono', "JetBrains Mono", Consolas, "Courier New", monospace;
	color: #8d7da8;
	background: #0a0612;
	border: 1px solid #2b1f40;
	border-radius: 8px;
	-webkit-border-radius: 8px;
}

#footer .foot-community {
	display: inline-block;
	margin-left: 12px;
	margin-top: 2px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.3px;
	color: #9b8bb8;
}

#footer .foot-note {
	float: right;
	margin-top: 3px;
	font-size: 10px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #5c4e78;
}

/* Miniatura del avatar en tops / rankings */
.av {
	display: inline-block;
	width: 20px;
	height: 20px;
	margin-right: 8px;
	vertical-align: middle;
	border-radius: 3px;
	-webkit-border-radius: 3px;
	border: 1px solid #3d2a5c;
	background: #1a1028;
}
.av-ph {
	width: 20px;
	height: 20px;
	background: #2a1a47;
	border: 1px solid #3d2a5c;
}
.c-name .plink,
.c-name .maplink {
	vertical-align: middle;
}
.c-points {
	font-family: 'KZ Mono', "JetBrains Mono", Consolas, "Courier New", monospace;
	font-weight: bold;
	color: #c89bff;
}
.c-rank {
	font-size: 10px;
	font-weight: bold;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #ffd75e;
}
#wrap #tops .c-rank.nr-bronce { color: #f5c69a; }
#wrap #tops .c-rank.nr-plata { color: #e8edf2; }
#wrap #tops .c-rank.nr-oro { color: #ffd75e; }
#wrap #tops .c-rank.nr-platino { color: #8ef0e8; }
#wrap #tops .c-rank.nr-diamante { color: #8fc2ff; }
#wrap #tops .c-rank.nr-maestro { color: #d5a6ff; }
#wrap #tops .c-rank.nr-kzgod { color: #ff3b3b; }
.c-maps {
	font-family: 'KZ Mono', "JetBrains Mono", Consolas, "Courier New", monospace;
	color: #9b8abd;
	text-align: center;
}
#ranks-title {
	font-size: 18px;
	font-weight: 700;
	color: #f0e9fb;
	letter-spacing: 0.5px;
}
#ranks-sub {
	margin-top: 4px;
	font-size: 11px;
	color: #7a6a96;
	letter-spacing: 0.5px;
}

.chip-type { color: #8ec8ff; border-color: #2a4a6a; }
.chip-diff { color: #ffb070; border-color: #6a4020; }
.chip-com { color: #7ddea0; border-color: #2a5a40; }
.chip-author { color: #d4c4f0; border-color: #4a3a68; }
.chip .muted { color: #7a6a96; font-size: 10px; }

/* Scrollbar estilo HUD (WebKit) */

::-webkit-scrollbar { width: 10px; background: #0a0710; }
::-webkit-scrollbar-track { background: #0d0817; }
::-webkit-scrollbar-thumb {
	background: #2b1f40;
	border: 2px solid #0a0710;
	border-radius: 5px;
	-webkit-border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: #4a2e78; }

/* ---------------------------------------------------------------- */
/* Responsivo (resoluciones bajas del MOTD). Media queries son      */
/* soportadas por CEF1 sin polyfill. El viewport del MOTD es la     */
/* ventana misma: no hace falta que el plugin pase la resolucion.   */
/* ---------------------------------------------------------------- */

@media (max-width: 900px) {
	#wrap { width: 96%; margin: 6px auto; }
	#header h1 { font-size: 15px; }
	#mapname { font-size: 17px; }
	.tab, .wpbtn, .sbtn { font-size: 10px; padding: 3px 8px; }
	#tops th, #tops td { font-size: 11px; padding: 4px 6px; }
	#p-avatar, #p-avatar img { width: 72px; height: 72px; }
	.avatar-ph { width: 68px; height: 68px; line-height: 68px; font-size: 26px; }
	#p-idline { margin-left: 88px; }
	#p-name { font-size: 17px; }
	.ftable td { font-size: 13px; }
}

@media (max-width: 700px) {
	.c-diff { display: none; }
	#header h1 { font-size: 13px; }
	#mapname { font-size: 15px; }
	#tops th, #tops td { font-size: 10px; padding: 3px 4px; }
	.tab, .wpbtn, .sbtn { font-size: 9px; padding: 2px 6px; letter-spacing: 0; }
	#conn { font-size: 9px; padding: 1px 6px; }
	#footer { font-size: 9px; }
}

/* Ventana BAJA (p.ej. 800x600): que TODO quepa sin que el scrollbar del
 * MOTD tape el panel ni el boton "Aceptar" del juego cubra contenido.
 * La tabla scrollea por dentro; la ficha se compacta pero NO se apila. */
@media (max-height: 680px) {
	#wrap { margin-top: 4px; margin-bottom: 4px; }
	#header { padding: 6px 12px; }
	#header h1 { font-size: 13px; }
	#mapname { font-size: 14px; }
	#mapinfo { font-size: 9px; }
	#hdr-profile { margin-top: 2px; }
	#p-avatar, #p-avatar img { width: 56px; height: 56px; }
	.avatar-ph { width: 52px; height: 52px; line-height: 52px; font-size: 22px; }
	#p-idline { margin-left: 72px; }
	#p-name { font-size: 15px; }
	#p-points { font-size: 11px; }
	.ftable td { font-size: 12px; }
	#toolbar { margin: 4px 0; }
	#twrap { max-height: 46vh; overflow-y: auto; overflow-x: hidden; }
	#footer { padding: 4px 12px; font-size: 9px; }
}

/* La pagina NUNCA scrollea: NO. Margen para que el scrollbar del MOTD
 * no tape el panel (body.has-vscroll, lo pone el JS si hay scroll) y
 * aire inferior para el boton "Aceptar" del juego. */
body { padding-bottom: 46px; box-sizing: border-box; }
body.has-vscroll { padding-right: 14px; }

/* Nominar: tarjetas con miniatura. Sin flex/grid (CEF1). El ancho sigue
 * la ventana del MOTD, que crece con la resolución del juego. */
#nom-list { padding: 4px 8px 0; }
.nom-grid { width: 100%; border-collapse: separate; border-spacing: 8px; }
.nom-grid td { width: 33.33%; vertical-align: top; }
.nom-cols-2 td { width: 50%; }
.nom-card {
	display: block;
	width: 100%;
	margin: 0;
	font-size: 13px;
	background: #130c1d;
	border: 1px solid #2b1f40;
	-webkit-border-radius: 6px;
	border-radius: 6px;
	cursor: pointer;
}
.nom-card:hover { border-color: #4a2e78; }
.nom-shot {
	position: relative;
	height: 186px;
	overflow: hidden;
	background-color: #14081c;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	-webkit-background-size: cover;
	-webkit-border-top-left-radius: 6px;
	-webkit-border-top-right-radius: 6px;
	border-top-left-radius: 6px;
	border-top-right-radius: 6px;
}
.nom-badges {
	position: absolute;
	left: 6px;
	top: 6px;
	z-index: 2;
}
.nom-badges .chip { margin: 0 4px 4px 0; }
.nom-shade {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 48%;
	background: #0a0710;
	background: -webkit-gradient(linear, left top, left bottom, from(rgba(10,7,16,0)), to(rgba(10,7,16,.88)));
	background: linear-gradient(rgba(10,7,16,0), rgba(10,7,16,.88));
}
.nom-name {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 8px;
	z-index: 1;
	font-family: 'KZ Mono', Consolas, monospace;
	font-size: 14px;
	font-weight: bold;
	color: #f4eefc;
	text-shadow: 0 1px 4px #000;
	white-space: nowrap;
	overflow: hidden;
}
.nom-meta {
	padding: 8px;
	-webkit-border-bottom-left-radius: 6px;
	-webkit-border-bottom-right-radius: 6px;
	border-bottom-left-radius: 6px;
	border-bottom-right-radius: 6px;
}
.nom-card.is-off { cursor: default; opacity: 0.5; }
.nom-card.is-off:hover { border-color: #2b1f40; }
.nom-card.is-wait { cursor: default; opacity: 0.72; }
.nom-card.is-mine {
	cursor: default;
	opacity: 1;
	border-color: #a970ff;
	box-shadow: 0 0 0 1px #a970ff;
	-webkit-box-shadow: 0 0 0 1px #a970ff;
}
.nom-card.is-mine:hover { border-color: #a970ff; }
.chip-go { color: #f4eefc; border-color: #6a3aa8; background: #24143a; }
.chip-mine { color: #c89bff; border-color: #a970ff; }
.chip-taken { color: #7a6a96; border-color: #2b1f40; }

@media (max-height: 640px) {
	.nom-shot { height: 156px; }
}
@media (min-height: 820px) {
	.nom-shot { height: 220px; }
}
@media (min-height: 1040px) {
	.nom-shot { height: 260px; }
}

/* Lupa a la izquierda del campo. El input va primero en el DOM y flota
 * a la derecha, así al crecer empuja el botón hacia la izquierda. */
#nom-find { height: 28px; overflow: hidden; }
#nom-find .sbtn { float: right; }
#nom-find .nom-view { float: left; margin-right: 6px; }
#tops.view-nom {
	width: 100%;
	max-width: 100%;
	table-layout: auto;
}
#tops.view-nom .c-pos,
#tops.view-nom .c-type,
#tops.view-nom .c-mdiff {
	width: 1%;
	white-space: nowrap;
}
#tops.view-nom .c-name {
	white-space: nowrap;
	word-break: normal;
	overflow: hidden;
}
#tops.view-nom .c-act {
	width: 130px;
	white-space: nowrap;
	text-align: right;
}
#nom-pop {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 30;
	background: #0a0710;
	background: rgba(10, 7, 16, 0.78);
	text-align: center;
}
.nom-pop-card {
	display: inline-block;
	margin-top: 72px;
	max-width: 280px;
	padding: 16px 18px 14px;
	background: #170f24;
	border: 1px solid #4a2e78;
	-webkit-border-radius: 6px;
	border-radius: 6px;
	text-align: center;
}
#nom-pop-txt {
	margin: 0 0 12px;
	color: #ffd75e;
	font-size: 13px;
	font-weight: bold;
	line-height: 1.35;
}
#wrap { position: relative; }

#tops td .nom-act {
	display: inline-block;
	width: auto;
	margin: 0;
	padding: 3px 8px;
	cursor: pointer;
}
#tops tr.is-off { opacity: 0.45; }
#tops tr.is-mine td { background: rgba(169, 112, 255, 0.08); }
#tops tr.is-fail .nom-act { color: #ffd75e; border-color: #6a5420; }
#nom-find #search {
	float: right;
	width: 0;
	margin: 0;
	padding: 4px 0;
	border-color: transparent;
	overflow: hidden;
	-webkit-transition: width 0.28s ease, margin 0.28s ease, padding 0.28s ease, border-color 0.28s ease;
	transition: width 0.28s ease, margin 0.28s ease, padding 0.28s ease, border-color 0.28s ease;
}
#nom-find.is-open #search {
	width: 168px;
	margin-left: 8px;
	padding: 4px 10px;
	border-color: #2b1f40;
}
.nom-act {
	display: block;
	width: 96px;
	margin: 0 auto;
	padding: 3px 0;
	text-align: center;
	font-size: 10px;
	font-weight: bold;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #f4eefc;
	background: #24143a;
	border: 1px solid #6a3aa8;
	-webkit-border-radius: 3px;
	border-radius: 3px;
}
.nom-card.is-mine .nom-act { color: #c89bff; border-color: #a970ff; background: #1a1028; }
.nom-card.is-off .nom-act,
.nom-card.is-wait .nom-act { color: #7a6a96; border-color: #2b1f40; background: #0f0a19; }
.nom-card { position: relative; }
.nom-note {
	position: absolute;
	left: 8px;
	right: 8px;
	top: 38%;
	text-align: center;
	color: #ffd75e;
	font-size: 12px;
	font-weight: bold;
	line-height: 1.3;
}
.nom-card.is-fail .nom-shot,
.nom-card.is-fail .nom-meta { opacity: 0.28; }

#nom-pager { padding: 4px 14px 12px; text-align: center; }
#nom-pager .tab { cursor: pointer; margin: 0 4px; }
#nom-page { display: inline-block; min-width: 90px; color: #9b8abd; font-size: 11px; }
