:root {
	--bg: #0b0c10;
	--bg-alt: #15161b;
	--card: #1a1b23;
	--border: #2a2b35;
	--accent: #d4af37;
	--accent-hover: #e8c547;
	--text: #e4e6eb;
	--text-muted: #9ba1ae;
	--success: #2ecc71;
	--danger: #e74c3c;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
	--logo: #9ba1ae;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Inter', system-ui, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	overflow-x: hidden;
}

html,
body {
	height: 100%;
	width: 100%;
	overflow-x: hidden;
	margin: 0;
	padding: 0;
	scrollbar-width: none;
}

/* Animaciones base */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateX(-20px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.animate {
	animation: fadeInUp 0.6s ease-out forwards;
	opacity: 0;
}

.delay-1 {
	animation-delay: 0.1s;
}

.delay-2 {
	animation-delay: 0.2s;
}

.delay-3 {
	animation-delay: 0.3s;
}

.wrapper {
	display: grid;
	grid-template-rows: auto 1fr auto;
	min-height: 100vh;
}

.container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 1rem;
}

header .container {
	max-width: 100%;
}

.container1 {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 1rem;
}

.container1 h2 {
	background: linear-gradient(135deg, var(--accent), #f37f7f);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
    text-transform: capitalize;
}

/* Header principal */
header {
	background: rgba(21, 22, 27, 0.6);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
	position: sticky;
	width: 100%;
	top: 0;
	z-index: 1000;
	transition: all 0.3s ease;
}

header.scrolled {
	background: rgba(21, 22, 27, 0.95);
	backdrop-filter: blur(3px);
	box-shadow: var(--shadow);
}

.header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
}

.header-bar {
	display: none;
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: linear-gradient(to right, transparent, #ff9900, transparent);
}

/* Links de navegación SPA sin href: el navegador no les pone cursor pointer por defecto */
.spa-link,
[data-page] {
	cursor: pointer;
}

.brand-logo {
	width: 40px;
	height: 40px;
	/*background: linear-gradient(135deg, var(--logo), #333232);*/
	border-radius: 8px;
	transition: 0.3s;
}

.brand:hover .brand-logo {
	transform: rotate(15deg) scale(1.1);
}

.brand-text {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--text);
}

.brand-text span {
	color: var(--accent);
}

.lang-float {
	position: fixed;
	top: 92px;
	right: 1.5rem;
	z-index: 999;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: rgba(21, 22, 27, 0.75);
	backdrop-filter: blur(8px);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 6px 12px 6px 10px;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--text);
	cursor: pointer;
	box-shadow: var(--shadow);
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.lang-float:hover {
	background: rgba(21, 22, 27, 0.92);
	transform: translateY(-1px);
}

.lang-float-flag {
	display: inline-flex;
	line-height: 1;
}

.lang-float-flag svg {
	display: block;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.server-status-indicator {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text-muted);
}

.status-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
}

.status-dot-on {
	background: var(--success);
	box-shadow: 0 0 8px var(--success);
}

.status-dot-off {
	background: var(--danger);
	box-shadow: 0 0 8px var(--danger);
}

/* Nav con Dropdown */
nav ul {
	display: flex;
	gap: 2.75rem;
	list-style: none;
}

nav>ul>li {
	position: relative;
}

nav a {
	color: var(--text-muted);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.95rem;
	padding: 0.5rem 0;
	transition: 0.2s;
	cursor: pointer;
}

nav a:hover,
nav a.active {
	color: var(--accent);
}

.dropdown {
	position: absolute;
	z-index: 1000;
	top: 100%;
	left: 0;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 8px;
	min-width: 180px;
	padding: 0.5rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.25s ease;
	box-shadow: var(--shadow);
}

nav li:hover .dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dropdown a {
	display: block;
	padding: 0.6rem 1rem;
	border-radius: 6px;
}

.dropdown a:hover {
	background: var(--bg-alt);
}

.btn {
	padding: 0.6rem 1.4rem;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	transition: 0.2s;
	border: none;
	cursor: pointer;
}

.btn-primary {
	background: var(--accent);
	color: var(--bg);
}

.btn-primary:hover {
	background: var(--accent-hover);
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Menú flotante al hacer scroll */
.floating-menu {
	position: fixed;
	right: 2rem;
	top: 50%;
	transform: translateY(-50%) translateX(100px);
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 50px;
	padding: 0.8rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	z-index: 999;
	opacity: 0;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	box-shadow: var(--shadow);
}

.floating-menu.show {
	opacity: 1;
	transform: translateY(-50%) translateX(0);
}

.floating-menu a {
	width: 45px;
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--text-muted);
	text-decoration: none;
	transition: 0.2s;
}

.floating-menu a:hover,
.floating-menu a.active {
	background: var(--accent);
	color: var(--bg);
}

/* Botones flotantes de voto, fijos en la esquina inferior derecha */
.vote-float {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	z-index: 999;
}

.vote-float-label {
	color: var(--accent);
	font-weight: 700;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.vote-float-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--card);
	border: 2px solid var(--accent);
	transition: 0.2s;
}

.vote-float-btn:hover {
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.vote-float-btn img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Forms Inputs */
.form-group {
	margin-bottom: 1rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.3rem;
	color: var(--text-muted);
	font-size: 0.9rem;
}

/* Modal registro */
.register-modal {
	max-width: 720px;
	width: 95%;
}

/* Modal redirección de voto */
.vote-redirect-modal {
	max-width: 420px;
	width: 90%;
}

.vote-redirect-body {
	text-align: center;
}

.vote-redirect-icon {
	font-size: 2.5rem;
	color: var(--accent);
	margin-bottom: 1rem;
}

.vote-redirect-body p {
	color: var(--text-muted);
	margin-bottom: 1rem;
}

.vote-redirect-countdown {
	color: var(--text) !important;
	font-weight: 600;
}

.vote-redirect-countdown strong {
	color: var(--accent);
}

#voteRedirectCounter {
	color: var(--accent);
	font-weight: 700;
}

/* Banners de sitios de votación */
.vote-banners {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1rem;
}

.vote-banner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 1.25rem 1rem;
	text-decoration: none;
	color: var(--text);
	font-weight: 600;
	font-size: 0.9rem;
	transition: 0.2s;
}

.vote-banner:hover {
	border-color: var(--accent);
	transform: translateY(-3px);
	box-shadow: var(--shadow);
}

.vote-banner img {
	max-width: 100px;
	max-height: 48px;
	object-fit: contain;
	border-radius: 6px;
}

.vote-banner-text {
	justify-content: center;
	min-height: 96px;
}

.vote-banner-title {
	color: var(--accent);
	font-weight: 700;
	font-size: 1rem;
}

.vote-countdown {
	font-size: 0.75rem;
	color: var(--text-muted);
	font-weight: 400;
	font-variant-numeric: tabular-nums;
}

.vote-banner-cooldown {
	opacity: 0.55;
	pointer-events: none;
	cursor: default;
}

.vote-banner-cooldown:hover {
	transform: none;
	box-shadow: none;
	border-color: var(--border);
}

/* Área de reclamo de recompensa */
.vote-claim-area {
	max-width: 320px;
}

.vote-claim-status {
	color: var(--text-muted);
}

.vote-claim-status a {
	color: var(--accent);
}

.vote-claim-success {
	color: var(--success) !important;
	font-weight: 600;
}

.vote-claim-area select.input {
	width: 100%;
}

.vote-claim-area .btn {
	margin-top: 1rem;
	width: 100%;
}

/* Panel de voto viejo (vote/) embebido dentro de la sección "Votar". La
   altura del iframe se ajusta dinámicamente vía JS (startVoteEmbedAutoResize,
   ver el script al final del documento) a la altura real de su contenido -
   este valor es solo el estado inicial antes de que el iframe cargue. */
.vote-embed-card {
	padding: 0;
	overflow: hidden;
	position: relative;
	min-height: 300px;
}

.vote-embed-loggedout {
	text-align: center;
}

.vote-embed-loggedout p {
	color: var(--text-muted);
	margin-bottom: 1rem;
}

.vote-embed-iframe {
	display: block;
	width: 100%;
	height: 300px;
	border: 0;
	background: var(--card);
	position: relative;
	z-index: 1;
}

.vote-embed-loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--card);
	z-index: 2;
}

.vote-embed-loading[hidden] {
	display: none;
}

.vote-embed-loading .spinner {
	width: 40px;
	height: 40px;
	border: 4px solid var(--border);
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

.modal {
	pointer-events: none;
}

.modal.active {
	pointer-events: auto;
}

#registerModal .modal-content {
	background:
		linear-gradient(180deg,
			rgba(20, 20, 25, 0.98),
			rgba(10, 10, 14, 0.98));

	border:
		1px solid rgba(212, 160, 23, 0.3);

	backdrop-filter: blur(10px);

	border-radius: 18px;

	box-shadow:
		0 0 40px rgba(0, 0, 0, 0.6),
		0 0 20px rgba(212, 160, 23, 0.15);
}

.modal-body {
	max-height: 75vh;
	overflow-y: auto;
}

body.modal-open {
	overflow: hidden;
	padding-right: 0px;
	/* evita shift por scrollbar */
}

.input {
	width: 100%;
	padding: 0.8rem 1rem;
	background: var(--bg-dark);
	border: 1px solid var(--border);
	border-radius: 8px;
	color: var(--text);
	font-size: 1rem;
	transition: 0.2s;
}

.input:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.2);
}

/* Secciones SPA */
.page-section {
	position: relative;
	display: none;
    background:
		linear-gradient(180deg, rgba(11, 12, 16, 0.7) 0%, var(--bg) 100%),
		url('../../img/bg_home.jpg') center;
	background-position: top center;
    background-attachment: fixed;
}

.page-section.active {
	display: block;
}

/* Contenido real por encima de las brasas, pero la sección sigue con overflow visible
   para que el ::before (position:fixed) no quede recortado por el navegador. */
.page-section > div {
	position: relative;
	z-index: 1;
}

.page-section::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 0;
	pointer-events: none;
	background-image:
		radial-gradient(3px 3px at 15% 10%, rgba(255, 120, 60, 0.85), transparent 65%),
		radial-gradient(2.5px 2.5px at 35% 25%, rgba(255, 140, 70, 0.75), transparent 65%),
		radial-gradient(3px 3px at 55% 5%, rgba(255, 100, 50, 0.8), transparent 65%),
		radial-gradient(2.5px 2.5px at 70% 20%, rgba(255, 130, 65, 0.7), transparent 65%),
		radial-gradient(3px 3px at 85% 12%, rgba(255, 110, 55, 0.75), transparent 65%),
		radial-gradient(2.5px 2.5px at 20% 40%, rgba(255, 120, 60, 0.65), transparent 65%),
		radial-gradient(2.5px 2.5px at 60% 45%, rgba(255, 140, 70, 0.6), transparent 65%);
	background-repeat: no-repeat;
	animation: emberFall 20s linear infinite;
}

@keyframes emberFall {
	0% {
		background-position: 15% -10%, 35% -25%, 55% -5%, 70% -20%, 85% -12%, 20% -40%, 60% -45%;
		opacity: 0;
	}
	10% {
		opacity: 0.8;
	}
	90% {
		opacity: 0.4;
	}
	100% {
		background-position: 15% 110%, 35% 125%, 55% 105%, 70% 120%, 85% 112%, 20% 140%, 60% 145%;
		opacity: 0;
	}
}

@media (max-width: 768px) {
	.page-section::before {
		display: none;
	}
}

.page-section1 {
	display: none;
	animation: fadeInUp 0.5s ease-out;
	background:
		linear-gradient(180deg, rgba(11, 12, 16, 0.7) 0%, var(--bg) 100%),
		url('../../img/bg_home.jpg') center/cover;
	background-position: top top -60% center;
    /*background-attachment: fixed;*/
}

.page-section1.active {
	display: block;
}

.hero {
	position: relative;
	padding: 6rem 0 4rem;
	text-align: center;
}

.hero h1 {
	font-size: clamp(2.2rem, 5vw, 4rem);
	font-weight: 900;
	margin-bottom: 1rem;
	letter-spacing: -1px;
}

.hero h1 span {
	background: linear-gradient(135deg, var(--accent), #fff);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hero h2 span {
	background: linear-gradient(135deg, var(--accent), #810e0e);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
    text-transform: capitalize;
}

.launch-countdown {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 640px;
	margin: 1.5rem auto;
	padding: 1rem 0;
}

.donate-soon-badge {
	display: inline-block;
	background: none;
	border: 1px solid var(--border);
	color: var(--text-muted);
	font-weight: 700;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 0.35rem 1rem;
	border-radius: 50px;
	margin: 0.5rem 0 1.5rem;
}

.launch-countdown-badge {
	display: inline-block;
	background: linear-gradient(135deg, var(--accent), var(--accent-hover));
	color: var(--bg);
	font-weight: 700;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 0.3rem 0.9rem;
	border-radius: 50px;
	margin-bottom: 0.75rem;
}

.launch-countdown-label {
	color: var(--text-muted);
	margin: 0 0 1.5rem;
}

.launch-countdown-label strong {
	color: var(--text);
}

.launch-countdown-timer {
	display: flex;
	gap: clamp(1rem, 4vw, 2.5rem);
	justify-content: center;
}

.launch-countdown-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 4.5rem;
}

.launch-countdown-unit span {
	font-size: clamp(2.4rem, 6vw, 4rem);
	font-weight: 900;
	font-variant-numeric: tabular-nums;
	color: var(--accent);
	line-height: 1;
}

.launch-countdown-unit small {
	color: var(--text-muted);
	font-size: 0.75rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-top: 0.5rem;
}

.server-highlights {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 900px;
	margin: 1.5rem auto 0;
	padding: 1.75rem 2.5rem;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 12px;
}

.server-highlights-title {
	display: inline-block;
	background: linear-gradient(135deg, var(--accent), var(--accent-hover));
	color: var(--bg);
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 0.35rem 1rem;
	border-radius: 50px;
	margin: 0 0 0.75rem;
}

.server-highlights .rates-grid {
	margin: 0.5rem 0 0.5rem;
	width: 100%;
	column-gap: 4rem;
	row-gap: 0.65rem;
}

.server-highlights .rates-grid-item {
	font-size: 0.9rem;
}

.server-highlights-more {
	width: 100%;
	text-align: center;
	color: var(--text-muted);
	font-size: 0.85rem;
	text-decoration: none;
	cursor: pointer;
	margin-top: 0.25rem;
}

.server-highlights-more:hover {
	color: var(--accent);
}

.info-content {
	padding: 1.5rem 2rem;
}

.info-block {
	margin-bottom: 2rem;
}

.info-block:last-child {
	margin-bottom: 0;
}

.info-block h3 {
	color: var(--accent);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 1rem;
	padding-bottom: 0.6rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--border);
}

.info-block ul {
	padding-left: 1.25rem;
}

.info-block li {
	margin-bottom: 0.5rem;
	line-height: 1.5;
}

.info-block ul ul {
	margin-top: 0.5rem;
}

.info-inline-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	list-style: none;
	padding-left: 0 !important;
}

.reward-items-title {
	font-weight: 700;
	margin-top: 1.25rem;
	margin-bottom: 0.75rem;
}

.reward-items {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.reward-item-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 0.6rem 1.1rem;
	transition: border-color 0.2s ease;
}

.reward-item-row:hover {
	border-color: var(--accent);
}

.reward-item-icon img {
	display: block;
	width: 40px;
	height: 40px;
	object-fit: contain;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 3px;
}

.reward-item-desc {
	color: var(--text);
	font-weight: 600;
}

.info-inline-list li {
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 50px;
	padding: 0.3rem 1rem;
	margin-bottom: 0 !important;
}

/* Tabla de comandos */
.commands-table {
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
}

.commands-row {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 1rem;
	padding: 0.75rem 1.25rem;
	border-bottom: 1px solid var(--border);
}

.commands-row:last-child {
	border-bottom: none;
}

.commands-row.commands-header {
	background: var(--bg-alt);
	color: var(--accent);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 0.5px;
}

.commands-row code {
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 0.1rem 0.4rem;
	font-size: 0.85rem;
	color: var(--accent);
	white-space: nowrap;
}

.commands-row.commands-header code {
	background: none;
	border: none;
	color: inherit;
	padding: 0;
}

@media (max-width: 640px) {
	.commands-row {
		grid-template-columns: 1fr;
		gap: 0.35rem;
	}
}

.rates-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(7, auto);
	grid-auto-flow: column;
	column-gap: 3rem;
	row-gap: 1rem;
	margin: 1.5rem 0 2.5rem;
}

.rates-grid-item {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.75rem;
	font-size: 1rem;
	color: var(--text);
}

.rates-grid-key {
	color: var(--accent);
	white-space: nowrap;
}

.rates-grid-value {
	white-space: nowrap;
	text-align: right;
}

@media (max-width: 640px) {
	.rates-grid {
		grid-template-columns: 1fr;
		grid-template-rows: none;
		grid-auto-flow: row;
	}
}

.cardtop.login-page {
	max-width: 420px;
	width: 100%;
	padding: 2rem;
	text-align: center;
}

.cardtop.contact-page {
	max-width: 560px;
	width: 100%;
	padding: 2rem;
	text-align: center;
}

.contact-page .section-description {
	margin-bottom: 1.5rem;
}

.contact-page .discord-card-link {
	font-size: 3.5rem;
}

.contact-social {
	display: flex;
	gap: 2rem;
	justify-content: center;
}

.telegram-link {
	color: #29a9eb;
}

.telegram-link:hover {
	color: #5ec1f2;
}

.contact-page .download-meta {
	margin: 0.75rem 0 0;
}

.login-page h2 {
	margin-bottom: 0.4rem;
}

.login-subtitle {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin-bottom: 1.5rem;
}

.login-page .loginarea {
	margin-top: 0.5rem;
	text-align: left;
}

.login-submit {
	width: 100%;
	margin-top: 0.5rem;
}

.login-links {
	text-align: center;
	margin-top: 1rem;
}

.login-links a {
	color: var(--text-muted);
	font-size: 0.85rem;
	text-decoration: none;
	transition: 0.2s;
}

.login-links a:hover {
	color: var(--accent);
}

.login-divider {
	display: flex;
	align-items: center;
	color: var(--text-muted);
	font-size: 0.8rem;
	margin: 1.5rem 0 1rem;
}

.login-divider::before,
.login-divider::after {
	content: '';
	flex: 1;
	border-bottom: 1px solid var(--border);
}

.login-divider span {
	padding: 0 0.75rem;
	white-space: nowrap;
}

.btn-secondary {
	background: transparent;
	border: 1px solid var(--border);
	color: var(--text);
}

.btn-secondary:hover {
	border-color: var(--accent);
	color: var(--accent);
	transform: translateY(-2px);
}

.login-register-btn {
	display: block;
	width: 100%;
	text-align: center;
}

/* Modal de registro */
.section-description {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin-bottom: 1.25rem;
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 1.25rem;
}

.captcha-box {
	display: flex;
	align-items: flex-end;
	gap: 1rem;
	margin-bottom: 1rem;
}

.captcha-image-wrap {
	position: relative;
	flex-shrink: 0;
}

.captcha-image-wrap img#siimage,
.captcha-image-wrap img#loginCaptchaImg {
	display: block;
	min-width: 120px;
	min-height: 40px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: var(--bg-alt);
}

.captcha-refresh {
	position: absolute;
	bottom: -0.5rem;
	right: -0.5rem;
	width: 1.75rem;
	height: 1.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--accent);
	border: none;
	cursor: pointer;
	padding: 0;
}

.captcha-refresh img {
	width: 14px;
	height: 14px;
}

.captcha-input-group {
	flex: 1;
	margin-bottom: 0;
}

.login-flood-message {
	background: var(--bg-alt);
	border: 1px solid var(--danger);
	border-radius: 10px;
	padding: 1.25rem 1.5rem;
	text-align: center;
}

.login-flood-message h3 {
	color: var(--danger);
	margin-bottom: 0.5rem;
}

.login-flood-message p {
	color: var(--text-muted);
	font-size: 0.9rem;
	line-height: 1.5;
}

.rules-box {
	max-height: 220px;
	overflow-y: auto;
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 0.75rem 1rem;
	margin-bottom: 0.75rem;
	font-size: 0.75rem;
	color: var(--text-muted);
	line-height: 1.5;
}

.rules-content p {
	margin: 0 0 0.5rem;
}

.rules-content ul {
	margin: 0 0 0.5rem;
	padding-left: 1.1rem;
}

.rules-content li {
	margin-bottom: 0.25rem;
}

.rules-check {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.85rem;
	color: var(--text-muted);
	margin-bottom: 1.25rem;
	cursor: pointer;
}

.rules-check input {
	width: auto;
	accent-color: var(--accent);
}

@media (max-width: 640px) {
	.form-grid {
		grid-template-columns: 1fr;
	}
}

/* Modal de descargas */
.download-block {
	margin-bottom: 1.75rem;
}

.download-block:last-child {
	margin-bottom: 0;
}

/* Grid de tarjetas del staff */
.staff-section .section-description {
	margin: 0.5rem 0 2rem;
}

.staff-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.25rem;
}

.staff-card {
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 1.5rem;
	text-align: center;
	transition: 0.2s;
}

.staff-card:hover {
	border-color: var(--accent);
	transform: translateY(-3px);
}

.staff-card-name {
	font-weight: 700;
	color: var(--accent);
	font-size: 1.05rem;
	margin-bottom: 0.5rem;
}

.staff-card-role {
	color: var(--text-muted);
	font-size: 0.9rem;
}

/* Grid de cards chicas para Castles */
.castles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.25rem;
}

.castle-card {
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	transition: 0.2s;
}

.castle-card:hover {
	border-color: var(--accent);
	transform: translateY(-3px);
}

.castle-card-img {
	width: 100%;
	height: 110px;
	object-fit: cover;
	display: block;
}

.castle-card-body {
	padding: 1rem;
}

.castle-card-body h3 {
	color: var(--accent);
	font-size: 1rem;
	margin-bottom: 0.6rem;
	text-align: center;
	text-transform: capitalize;
}

.castle-card-row {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	font-size: 0.8rem;
	padding: 0.25rem 0;
	border-bottom: 1px solid var(--border);
}

.castle-card-row:last-child {
	border-bottom: none;
}

.castle-card-row span:first-child {
	color: var(--text-muted);
}

.castle-card-row span:last-child {
	color: var(--text);
	font-weight: 600;
	text-align: right;
}

.download-block h3 {
	color: var(--accent);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 1rem;
	padding-bottom: 0.6rem;
	margin-bottom: 0.5rem;
	border-bottom: 1px solid var(--border);
}

.download-option-title {
	color: var(--text);
	font-weight: 700;
	font-size: 0.9rem;
	margin: 1rem 0 0.5rem;
}

.download-meta {
	color: var(--text-muted);
	font-size: 0.85rem;
	margin-bottom: 0.75rem;
}

.download-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.btn-sm {
	padding: 0.45rem 1rem;
	font-size: 0.85rem;
}

.download-steps {
	padding-left: 1.25rem;
	color: var(--text);
}

.download-steps li {
	margin-bottom: 0.5rem;
	line-height: 1.5;
}

.download-steps code {
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 0.1rem 0.4rem;
	font-size: 0.85rem;
	color: var(--accent);
}

main {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	padding: 1.5rem 0 3rem;
}

.widget {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 1.5rem;
	transition: 0.3s;
}

.widget:hover {
	transform: translateY(-3px);
	border-color: var(--accent);
}

.widget-title {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--border);
	color: var(--accent);
}

.card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 1rem;
	margin-bottom: 2rem;
}

.discord-card {
	text-align: center;
	padding: 0 1rem 1rem;
	background: none;
	border: none;
}

.discord-card-subtitle {
	color: var(--text-muted);
	margin-bottom: 1.25rem;
}

.discord-card-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #5865F2;
	font-size: 3rem;
	text-decoration: none;
	transition: 0.2s;
}

.discord-card-link:hover {
	color: #7289da;
	transform: scale(1.1);
}

.cardtop {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 12px;
	/*padding: 1rem;  reduce un poco el padding */
	margin: 1rem auto;
	/* centra y reduce margen */
	max-width: 100%;
	/* evita que se pase */
	box-sizing: border-box;
	/* clave */
    animation: fadeInUp 0.5s ease-out;
}

.cardtop p {
  padding: 0.5rem 1rem; /* vertical horizontal */
}

/* Lista de noticias con modal, ordenada de más reciente a más antigua */
.news-card {
	background: none;
	border: none;
	padding: 0 1rem 1rem;
}

.news-card h2 {
	text-align: left;
	margin-bottom: 1.25rem;
}

.news-list {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.news-item {
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 1.75rem 1.25rem;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.news-item:hover {
	border-color: var(--accent);
	box-shadow: var(--shadow);
}

.news-item-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	padding-bottom: 0.6rem;
	margin-bottom: 0.75rem;
	border-bottom: 1px solid var(--border);
	transition: border-color 0.25s ease;
}

.news-item:hover .news-item-header {
	border-color: var(--accent);
}

.news-item h3 {
	color: var(--accent);
	font-size: 1.1rem;
	transition: color 0.25s ease;
}

.news-item-meta {
	color: var(--text-muted);
	font-size: 0.8rem;
	white-space: nowrap;
}

.news-item-excerpt {
	color: var(--text);
	line-height: 1.6;
	margin-bottom: 0.5rem;
}

.news-full-text {
	color: var(--text);
	line-height: 1.6;
	margin-bottom: 0.75rem;
}

.news-item-readmore {
	color: var(--accent);
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	user-select: none;
}

/* Modal Galería */
.modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(5px);
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: 0.3s;
}

.modal.active {
	opacity: 1;
	visibility: visible;
}

.modal-content {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 12px;
	max-width: 800px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	transform: scale(0.9);
	transition: 0.3s;
}

.modal.active .modal-content {
	transform: scale(1);
}

.modal-header {
	padding: 1.5rem;
	border-bottom: 1px solid var(--border);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-body {
	padding: 1.5rem;
}

.modal-close {
	background: none;
	border: none;
	color: var(--text);
	font-size: 1.5rem;
	cursor: pointer;
}

/* Alerta genérico (atualAlert) */
#backblack {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	z-index: 2100;
}

#alerta {
	position: fixed;
	visibility: hidden;
	z-index: 2101;
	max-width: 420px;
	width: 90%;
	background: linear-gradient(180deg, rgba(20, 20, 25, 0.98), rgba(10, 10, 14, 0.98));
	border: 1px solid rgba(212, 160, 23, 0.3);
	border-radius: 18px;
	padding: 2rem 1.5rem 1.5rem;
	text-align: center;
	color: var(--text);
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 160, 23, 0.15);
}

#alerta .ok {
	margin-top: 1.5rem;
}

#alerta .ok>div {
	display: inline-block;
	background: var(--accent);
	color: var(--bg);
	font-weight: 700;
	padding: 0.6rem 2rem;
	border-radius: 8px;
	cursor: pointer;
	transition: 0.2s;
}

#alerta .ok>div:hover {
	background: var(--accent-hover);
	transform: translateY(-2px);
}

#alerta .ok.sucesso>div {
	background: var(--success);
	color: #fff;
}

/* Error inline del login */
.loginarea .error {
	background: rgba(231, 76, 60, 0.12);
	border: 1px solid var(--danger);
	color: var(--danger);
	border-radius: 8px;
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
	font-size: 0.9rem;
	text-align: center;
}

.loginarea .loader {
	width: 28px;
	height: 28px;
	margin: 1.5rem auto;
	border: 3px solid var(--border);
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

footer {
	background: var(--bg-alt);
	border-top: 1px solid var(--border);
	padding: 3rem 0 0;
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1.5rem 3rem;
	padding-bottom: 2rem;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.footer-links a {
	color: var(--text-muted);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	transition: 0.2s;
}

.footer-links a:hover {
	color: var(--accent);
}

.footer-social {
	display: flex;
	gap: 1.25rem;
}

.footer-social a {
	color: var(--text-muted);
	font-size: 1.3rem;
	transition: 0.2s;
}

.footer-social a:hover {
	color: var(--accent);
	transform: translateY(-2px);
}

.footer-bottom {
	border-top: 1px solid var(--border);
	padding: 1.25rem 0;
	text-align: center;
	color: var(--text-muted);
	font-size: 0.85rem;
}

.ranking-table {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ranking-header,
.ranking-row {
	display: grid;
	grid-template-columns: 20% 1fr 20%;
	align-items: center;
	padding: 8px 12px;
}

.ranking-5colh {
	display: grid;
	grid-template-columns: 20% 1fr 20% 20% 20%;
	align-items: center;
	padding: 8px 12px;
}

.ranking-5col {
	display: grid;
	grid-template-columns: 20% 1fr 20% 20% 20%;
	align-items: center;
	padding: 8px 12px;
}

.ranking-header {
	font-weight: bold;
	color: #da8b24;
	border-bottom: 2px solid #da8b24;
}

.ranking-row {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 6px;
	transition: all 0.2s ease;
}

.ranking-row:hover {
	background: rgba(218, 139, 36, 0.15);
	transform: translateX(5px);
}

.ranking-row span:first-child {
	color: #aaa;
}

.ranking-row span:last-child {
	text-align: right;
	color: #fff;
	font-weight: bold;
}

.ranking-5col span:last-child {
	text-align: right;
	color: #fff;
	font-weight: bold;
}

.ranking-4colh {
	display: grid;
	grid-template-columns: 1fr 20% 20% 20%;
	align-items: center;
	padding: 8px 12px;
}

.ranking-4col {
	display: grid;
	grid-template-columns: 1fr 20% 20% 20%;
	align-items: center;
	padding: 8px 12px;
}

.ranking-4col span:last-child {
	text-align: right;
	color: #fff;
	font-weight: bold;
}

.ranking-header span:last-child {
	text-align: right;
	font-weight: bold;
}

/* Mobile */
.mobile-toggle {
	display: none;
}

@media (max-width: 992px) {
	main {
		grid-template-columns: 1fr;
	}

	.floating-menu {
		display: none;
	}
}

@media (max-width: 768px) {
	nav ul {
		display: none;
	}

	.mobile-toggle {
		display: block;
		background: none;
		border: none;
		color: var(--text);
		font-size: 1.5rem;
	}

	nav.mobile-open ul {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--card);
		padding: 1rem;
	}

	.brand {
		order: 1;
	}

	.nav-actions {
		order: 2;
		margin-left: auto;
	}

	#nav {
		order: 3;
	}

	.server-status-indicator {
		display: none;
	}
}

@media (max-width: 768px) {

	html,
	body {
		overflow-x: hidden !important;
	}

	.server_status {
		width: 100%;
		height: 100%;
		position: relative;
	}

	.server_status img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.page-section1 {
		display: none;
		animation: fadeInUp 0.5s ease-out;
		background:
			linear-gradient(180deg, rgba(11, 12, 16, 0.7) 0%, var(--bg) 100%),
			url('../../img/bg_home_mobile.jpg') center/cover;
		background-position: top center;
	}

	.page-section1.active {
		display: block;
	}

	.hero {
		position: relative;
		padding: 6rem 0 4rem;
		text-align: center;
		background:
			linear-gradient(180deg, rgba(11, 12, 16, 0.3) 0%, var(--bg) 100%),
			url('../../img/bg_home_mobile.jpg') center/cover;
		background-position: top center;
	}
}

@media (min-width: 769px) {
	.header-bar {
		display: block;
	}
}

::-webkit-scrollbar {
	width: 2px;
}

::-webkit-scrollbar-track {
	background: transparent;
	opacity: 0.01;
}

::-webkit-scrollbar-thumb {
	background: transparent;
	border-radius: 4px;
	opacity: 0.01;
}

::-webkit-scrollbar-thumb:hover {
	background: transparent;
	opacity: 0.01;
}

/* Para Firefox */
* {
	scrollbar-width: thin;
	scrollbar-color: #0b0c10 #0b0c10;
}

.server_status {
	width: 100%;
	height: 100%;
	position: relative;
}

.server_status img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}