/* ══════════════════════════════════════════════════════
   ATOMIO · Torment Online — v3.1
   Barra superior + hero + contenido en tarjeta.
   Las fuentes se cargan desde index.php.
   v3.1: botón "Jugar en el navegador", icono Discord (SVG), Tickers en tarjeta.
══════════════════════════════════════════════════════ */

/* Para cambiar el color de todo el sitio: --accent y --accent-ink */
:root {
	--bg:       #0b0d10;
	--surface:  #12151a;
	--surface2: #181c22;
	--surface3: #20252d;
	--line:     rgba(255,255,255,0.06);

	--accent:      #43e0c1;
	--accent-soft: rgba(67,224,193,0.12);
	--accent-glow: rgba(67,224,193,0.30);
	--accent-ink:  #04231d;   /* texto sobre fondo accent */

	--text:        #98a1ac;
	--text-bright: #eef1f5;
	--text-muted:  #646e7a;

	--ok:  #43e08a;
	--bad: #ff6b6b;

	/* alias de compatibilidad con módulos y resp.css viejos */
	--primary: var(--surface);
	--secondary: var(--bg);
	--border: var(--line);
	--border-soft: var(--line);
	--gold: var(--accent);
	--gold-light: var(--accent);
	--gold-dim: var(--text-muted);
	--font-color: var(--text);
	--font-bright: var(--text-bright);
	--font-muted: var(--text-muted);
	--anchor: var(--accent);
	--anchor-hover: #ffffff;

	--bg-danger:  #2a1013; --color-danger:  #ff8a8a; --border-danger:  #4d1a20;
	--bg-warning: #2a1d0a; --color-warning: #f2b45a; --border-warning: #4d3512;
	--bg-info:    #0e1f33; --color-info:    #6bb8f5; --border-info:    #17375a;
	--bg-success: #0c2a1a; --color-success: #4fe093; --border-success: #14492c;
	--bg-default: rgba(255,255,255,0.04); --color-default: var(--text); --border-default: var(--line);

	--r-lg: 22px;
	--r-md: 14px;
	--r-sm: 10px;
	--nav-h: 64px;
	--shadow: 0 18px 50px rgba(0,0,0,0.45);

	--font-display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
	--font-body:    'Figtree', 'Segoe UI', system-ui, sans-serif;
}

/* ══════════ BASE ══════════ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0; padding: 0;
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}
ul { margin: 0; padding: 0; }
li { list-style: none; }
a { color: var(--accent); text-decoration: none; transition: color .18s; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-bright); letter-spacing: -0.015em; }
td { padding: 10px; }
button:hover, input[type="submit"]:hover { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.pull-left  { float: left; }
.pull-right { float: right; }
.centralizeContent { text-align: center; }
.preventCollapse { overflow: hidden; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-100 { width: 100%; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ══════════ BARRA SUPERIOR ══════════ */
.topNav {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(11,13,16,0.82);
	-webkit-backdrop-filter: blur(16px) saturate(150%);
	backdrop-filter: blur(16px) saturate(150%);
	border-bottom: 1px solid var(--line);
}
.topNav-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	max-width: 1280px;
	height: var(--nav-h);
	margin: 0 auto;
	padding: 0 20px;
}
.brand {
	font-family: var(--font-display);
	font-size: 1.35em;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--text-bright);
	white-space: nowrap;
}
.brand:hover { color: var(--accent); }

.navMenu { flex: 1; align-self: stretch; }
.navMenu > ul { display: flex; align-items: stretch; height: 100%; gap: 2px; }
.navMenu > ul > li { position: relative; display: flex; }
.navMenu > ul > li > a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 14px;
	font-weight: 600;
	font-size: 0.97em;
	color: var(--text);
	position: relative;
	transition: color .18s;
}
.navMenu > ul > li > a i { color: var(--text-muted); font-size: 0.95em; transition: color .18s; }
.navMenu > ul > li > a::after {   /* línea indicadora */
	content: '';
	position: absolute;
	left: 14px; right: 14px; bottom: 0;
	height: 2px;
	border-radius: 2px 2px 0 0;
	background: var(--accent);
	transform: scaleX(0);
	transition: transform .2s;
}
.navMenu > ul > li:hover > a,
.navMenu > ul > li:focus-within > a,
.navMenu > ul > li.active > a { color: var(--text-bright); }
.navMenu > ul > li:hover > a i,
.navMenu > ul > li.active > a i { color: var(--accent); }
.navMenu > ul > li:hover > a::after,
.navMenu > ul > li:focus-within > a::after { transform: scaleX(1); }

/* Desplegables */
.navMenu > ul > li > ul {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 210px;
	padding: 8px;
	background: var(--surface2);
	border: 1px solid var(--line);
	border-top: none;
	border-radius: 0 0 var(--r-md) var(--r-md);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .18s, transform .18s, visibility .18s;
}
.navMenu > ul > li:hover > ul,
.navMenu > ul > li:focus-within > ul {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.navMenu > ul > li > ul > li > a {
	display: block;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 0.95em;
	font-weight: 500;
	color: var(--text);
}
.navMenu > ul > li > ul > li > a:hover { background: var(--surface3); color: var(--text-bright); }

/* Cuenta */
.navAuth { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.navAuth a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.93em;
	color: var(--text);
	transition: background .18s, color .18s;
}
.navAuth a:hover { background: var(--surface3); color: var(--text-bright); }
.navAuth a.navCta { background: var(--accent); color: var(--accent-ink); }
.navAuth a.navCta:hover { background: #fff; color: var(--accent-ink); }

.navToggle {
	display: none;
	margin-left: auto;
	width: 42px; height: 42px;
	padding: 0;
	background: var(--surface2);
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	color: var(--text-bright);
	font-size: 1.1em;
}

/* ══════════ CONTENEDOR ══════════ */
.main { max-width: 1280px; margin: 0 auto; padding: 20px 20px 2.5rem; }

/* ══════════ HERO ══════════ */
.hero {
	position: relative;
	height: 340px;
	border-radius: var(--r-lg);
	overflow: hidden;
	box-shadow: var(--shadow);
	isolation: isolate;
}
.banner { position: absolute; inset: 0; z-index: -2; background: var(--surface2); }
.slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.2s ease;
}
.slide.is-active { opacity: 1; }

/* Puntos del slider */
.slider-dots {
	position: absolute;
	top: 18px; right: 20px;
	z-index: 2;
	display: flex;
	gap: 8px;
	padding: 8px 10px;
	background: rgba(18,21,26,0.55);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-radius: 999px;
}
.slider-dots .dot {
	width: 8px; height: 8px;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: rgba(255,255,255,0.35);
	transition: width .25s, background .25s;
}
.slider-dots .dot:hover { background: rgba(255,255,255,0.7); }
.slider-dots .dot.is-active { width: 24px; background: var(--accent); }
.hero::before {   /* degradado para que los chips se lean */
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(11,13,16,0.92) 0%, rgba(11,13,16,0.35) 45%, rgba(11,13,16,0) 70%);
	z-index: -1;
}
.hero-inner {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 24px;
}
.hero-stats   { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-actions { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }

.chip {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 16px;
	background: rgba(18,21,26,0.62);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 1px solid rgba(255,255,255,0.09);
	border-radius: 999px;
	font-size: 0.93em;
	font-weight: 500;
	color: var(--text);
	white-space: nowrap;
}
.chip strong { color: var(--text-bright); font-weight: 700; }
.chip > .fa { color: var(--accent); }
.chip a { color: var(--text); }
.chip a:hover { color: #fff; }
#serverSaveTimer { font-family: var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

.status-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.status-dot.online  { background: var(--ok);  box-shadow: 0 0 0 3px rgba(67,224,138,0.2), 0 0 10px var(--ok); animation: pulse 2.4s ease-in-out infinite; }
.status-dot.offline { background: var(--bad); box-shadow: 0 0 0 3px rgba(255,107,107,0.2); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(67,224,138,0), 0 0 10px var(--ok); } }

.socials { display: flex; gap: 8px; }
.socials a {
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	background: rgba(18,21,26,0.62);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 1px solid rgba(255,255,255,0.09);
	border-radius: 50%;
	color: var(--text-bright);
	font-size: 1.1em;
	transition: transform .18s, background .18s;
}
.socials a:hover { transform: translateY(-2px); color: #fff; }
.socials a svg { width: 20px; height: 20px; fill: currentColor; }   /* icono Discord (SVG) */
.socials .s-discord:hover   { background: #5865f2; }
.socials .s-facebook:hover  { background: #1877f2; }
.socials .s-instagram:hover { background: #e1306c; }

/* Botones principales del hero: JUGAR EN EL NAVEGADOR (arriba) + Download client (abajo) */
.hero-cta { display: flex; flex-direction: column; gap: 10px; }
.hero-cta .btn-download,
.hero-cta .btn-play { justify-content: center; }

.btn-play {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 0 24px;
	background: rgba(18,21,26,0.62);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 1.5px solid var(--accent);
	border-radius: 999px;
	color: var(--accent);
	font-family: var(--font-display);
	font-size: 0.95em;
	font-weight: 800;
	letter-spacing: 0.04em;
	white-space: nowrap;
	transition: transform .18s, background .18s, color .18s, box-shadow .18s;
}
.btn-play:hover {
	background: var(--accent);
	color: var(--accent-ink);
	transform: translateY(-2px);
	box-shadow: 0 12px 36px var(--accent-glow);
}

.btn-download {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 0 24px;
	background: var(--accent);
	border-radius: 999px;
	color: var(--accent-ink) !important;
	font-family: var(--font-display);
	font-size: 1em;
	font-weight: 700;
	box-shadow: 0 8px 28px var(--accent-glow);
	transition: transform .18s, box-shadow .18s;
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 12px 36px var(--accent-glow); }

/* ══════════ LAYOUT ══════════ */
.layout { display: flex; gap: 20px; margin-top: 20px; align-items: flex-start; }
.centerPane { flex: 1; min-width: 0; }
.rightPane { width: 300px; flex-shrink: 0; min-width: 0; }

/* ══════════ PANELES / WIDGETS ══════════ */
.panel, .well, .widget, .feedContainer {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	margin-bottom: 18px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.well { padding: 16px; }

.panel-header, .header, .widget h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	width: auto;
	margin: 0;
	padding: 15px 20px;
	font-family: var(--font-display);
	font-size: 1.05em;
	font-weight: 700;
	line-height: 1.25;
	color: var(--text-bright);
	background: var(--surface2);
	border-bottom: 1px solid var(--line);
}
.panel-header::before, .widget h3::before {
	content: '';
	flex-shrink: 0;
	width: 4px; height: 17px;
	border-radius: 4px;
	background: var(--accent);
	box-shadow: 0 0 10px var(--accent-glow);
}
.widget h3 .fa, .panel-header .fa { color: var(--accent); }
.widget center { margin: auto; }

/* ══════════ TABLAS ══════════
   MyAAC anida varias tablas/divs por cada sección. En vez de dibujar una caja
   por capa, se aplanan todas y cada sección queda así:
   título  →  contenido sin fondo  →  líneas finas solo en tablas de datos. */
table { width: 100%; border-collapse: collapse; background: transparent; }
td, th { padding: 11px 10px; font-size: 0.95em; vertical-align: middle; }
th { text-align: left; }

/* 1) Quitar fondos, bordes y sombras de toda la maquinaria de tablas */
.centerPane :is(table, thead, tbody, tfoot, tr, td, th),
.centerPane :is(.InnerTableContainer, .TableShadowContainer,
	.TableShadowContainerRightTop, .TableShadowRightTop, .TableContentAndRightShadow,
	.TableContentContainer, .TableContent, .TableBottomShadow, .BoxContent,
	.Table1, .Table2, .Table3, .Table4, .Table5, .ButtonContainer) {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}
.centerPane :is(.TableShadowContainer, .TableShadowContainerRightTop,
	.TableShadowRightTop, .TableContentAndRightShadow, .TableContentContainer, .BoxContent) {
	padding: 0 !important;
	margin: 0 !important;
}
/* decoraciones vacías de los títulos y esquinas */
.centerPane :is(.CaptionEdgeLeftTop, .CaptionEdgeRightTop, .CaptionBorderTop, .CaptionVerticalLeft,
	.CaptionVerticalRight, .CaptionBorderBottom, .CaptionEdgeLeftBottom, .CaptionEdgeRightBottom,
	.TableShadowContainerRightTop > .Shadow, .TableBottomShadow) { display: none !important; }

/* 2) Cada sección = tarjeta: título arriba (barra) y cuerpo abajo (caja) */
.centerPane .TableContainer, .card {
	margin: 0 0 18px !important;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.centerPane .CaptionContainer, .card-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 15px 20px;
	background: var(--surface2);
	border-bottom: 1px solid var(--line);
	font-family: var(--font-display);
	font-size: 1.05em;
	font-weight: 700;
	line-height: 1.25;
	color: var(--text-bright);
}
.centerPane .CaptionContainer::before, .card-head::before {
	content: '';
	flex-shrink: 0;
	width: 4px; height: 17px;
	border-radius: 4px;
	background: var(--accent);
	box-shadow: 0 0 10px var(--accent-glow);
}
.centerPane .CaptionContainer * { color: inherit !important; background: transparent !important; font: inherit; }
.card-head .fa { color: var(--accent); }

/* Tarjeta reutilizable para páginas propias (castle war, eventos, etc.):
   <div class="card"><div class="card-head">Título</div><div class="card-body">...</div></div>
   Varias tarjetas en fila: envolverlas en <div class="card-grid"> */
.card-body { padding: 18px 20px; }
.card-body > :first-child { margin-top: 0; }
.card-body > :last-child  { margin-bottom: 0; }
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
	margin-bottom: 18px;
}
.card-grid > .card { margin-bottom: 0 !important; }

/* ══════════ TICKERS ══════════
   <div class="card tickers">
     <div class="card-head"><i class="fa fa-bullhorn"></i> Tickers</div>
     <div class="card-body">
       <div class="ticker">
         <div class="ticker-date"><b>26</b><span>Nov</span></div>
         <p class="ticker-text">Texto de la noticia</p>
       </div>
     </div>
   </div> */
.tickers .card-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; }

.ticker {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 10px 14px 10px 10px;
	background: var(--surface2);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	transition: border-color .18s, background .18s, transform .18s;
}
.ticker:hover {
	background: var(--surface3);
	border-color: var(--accent-glow);
	transform: translateX(3px);
}
.ticker-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 52px;
	padding: 7px 0;
	background: var(--accent-soft);
	border: 1px solid var(--accent-glow);
	border-radius: var(--r-sm);
	line-height: 1.1;
}
.ticker-date b {
	font-family: var(--font-display);
	font-size: 1.3em;
	font-weight: 800;
	color: var(--text-bright);
}
.ticker-date span {
	font-size: 0.72em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--accent);
}
.ticker-text { margin: 0; color: var(--text-bright); font-weight: 500; }

/* cuerpo de la tarjeta */
.centerPane .TableContainer > table { margin: 0; }
.centerPane .TableContainer > table > tbody > tr > td,
.centerPane .TableContainer > table > tr > td { padding: 0 !important; }
.centerPane .InnerTableContainer { padding: 8px 16px 14px !important; }

/* 3) Celdas de etiqueta ("World:", "Status:") en gris suave */
.centerPane :is(.LabelV, .LabelV100, .LabelV120, .LabelV150, .LabelV170, .LabelV175, .LabelV200) { color: var(--text-muted); }

/* 4) Tablas de datos (highscores, online, etc.): las que tienen fila de títulos */
.centerPane table:is(.data-table, :has(> thead), :has(> tr > th), :has(> tbody > tr > th),
	:has(> tr.LabelH), :has(> tbody > tr.LabelH)) > tbody > tr > :is(td, th),
.centerPane table:is(.data-table, :has(> thead), :has(> tr > th), :has(> tbody > tr > th),
	:has(> tr.LabelH), :has(> tbody > tr.LabelH)) > tr > :is(td, th) {
	border-bottom: 1px solid var(--line) !important;
}
.centerPane table:is(.data-table, :has(> thead), :has(> tr > th), :has(> tbody > tr > th),
	:has(> tr.LabelH), :has(> tbody > tr.LabelH)) :is(tr.LabelH, thead tr, tr:has(> th)) > :is(td, th) {
	padding-top: 6px;
	padding-bottom: 10px;
	font-size: 0.84em;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--text-muted);
	border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}
.centerPane table:is(.data-table, :has(> thead), :has(> tr > th), :has(> tbody > tr > th),
	:has(> tr.LabelH), :has(> tbody > tr.LabelH)) > tbody > tr:not(.LabelH):hover,
.centerPane table:is(.data-table, :has(> thead), :has(> tr > th), :has(> tbody > tr > th),
	:has(> tr.LabelH), :has(> tbody > tr.LabelH)) > tr:not(.LabelH):hover {
	background: rgba(255,255,255,0.03) !important;
}

/* 5) Tablas de la lista de widgets/derecha mantienen su estilo propio */
.rightPane table { background: transparent; }

/* ══════════ FORMULARIOS ══════════ */
input, textarea, select {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	color: var(--text-bright);
	font-family: var(--font-body);
	font-size: 0.97em;
	padding: 8px 14px;
	transition: border-color .18s, box-shadow .18s;
}
input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input { width: 100%; height: 42px; }
textarea { width: 100%; resize: vertical; }
select { height: 42px; cursor: pointer; }
input[type=radio], input[type=checkbox] { width: initial !important; height: initial !important; accent-color: var(--accent); }

button, input[type=submit] {
	background: var(--surface3);
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--text-bright);
	font-family: var(--font-body);
	font-size: 0.95em;
	font-weight: 600;
	padding: 9px 22px;
	transition: background .18s, color .18s, transform .18s;
}
button:hover, input[type=submit]:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button:active, input[type=submit]:active { transform: translateY(1px); }

.loginForm { display: flex; flex-wrap: wrap; }
.loginForm .well { width: 100%; }
.loginForm input, .searchForm input { margin-top: 8px; }
.searchForm { width: 200px; }

#countDownTimer { line-height: 2.3; padding: 0 12px; color: var(--accent); font-family: var(--font-display); font-size: 0.95em; }

/* ══════════ ALERTAS ══════════ */
.alert-box {
	max-width: 560px;
	font-size: 14px;
	border-radius: var(--r-sm);
	border: 1px solid;
	margin: 0 auto 15px;
	text-align: center;
	padding: 11px 18px;
}
.alert-default { background: var(--bg-default); color: var(--color-default); border-color: var(--border-default); }
.alert-info    { background: var(--bg-info);    color: var(--color-info);    border-color: var(--border-info); }
.alert-success { background: var(--bg-success); color: var(--color-success); border-color: var(--border-success); }
.alert-warning { background: var(--bg-warning); color: var(--color-warning); border-color: var(--border-warning); }
.alert-danger  { background: var(--bg-danger);  color: var(--color-danger);  border-color: var(--border-danger); }
.alert-collapse { display: inline-block; }
.alert-size1 { font-size: 12px; }
.alert-size2 { font-size: 15px; }
.alert-size3 { font-size: 18px; }
.alert-size4 { font-size: 20px; }

/* ══════════ FOOTER ══════════ */
footer {
	margin-top: 20px;
	padding: 24px;
	text-align: center;
	font-size: 0.88em;
	color: var(--text-muted);
	border-top: 1px solid var(--line);
}
footer a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
footer a:hover { color: var(--accent); }

/* ══════════ REDES (genérico) ══════════ */
.smedia { font-size: 1.6em; }
.smedia a { display: inline-block; padding: 8px; color: var(--text-muted); border-radius: var(--r-sm); }
.smedia a:hover { color: var(--accent); background: var(--accent-soft); }

/* ══════════ PANEL DERECHO (widgets) ══════════
   Los widgets traen estilos propios (dorado, serifa, mayúsculas); aquí se igualan
   al resto del diseño. Si algún botón no cambia, hay que ajustar su clase. */
.rightPane *:not(.fa):not([class^="fa-"]):not([class*=" fa-"]) {
	font-family: var(--font-body) !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	text-shadow: none !important;
}
.rightPane .widget h3 { font-family: var(--font-display) !important; }
.rightPane .widget > :not(h3):not(script):not(style) { color: var(--text); }
.rightPane .widget { padding-bottom: 0; }
.rightPane .widget > :last-child { margin-bottom: 0; }

/* etiquetas pequeñas (ACCOUNT NAME, PASSWORD...) */
.rightPane label, .rightPane [class*="label" i] {
	color: var(--text-muted) !important;
	font-size: 0.86em !important;
	font-weight: 600 !important;
}

/* enlaces secundarios (Create account, Lost account?) */
.rightPane a { color: var(--text) !important; }
.rightPane a:hover { color: var(--accent) !important; }

/* campos */
.rightPane input:not([type=submit]):not([type=checkbox]):not([type=radio]),
.rightPane select, .rightPane textarea {
	background: var(--bg) !important;
	border: 1px solid var(--line) !important;
	border-radius: var(--r-sm) !important;
	color: var(--text-bright) !important;
	font-size: 0.95em !important;
}
.rightPane input:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-soft) !important; }

/* botones/teselas neutros (Offers, History...) */
.rightPane button, .rightPane [class*="btn" i], .rightPane [class*="button" i], .rightPane input[type=submit] {
	background: var(--surface3) !important;
	background-image: none !important;
	border: 1px solid var(--line) !important;
	border-radius: var(--r-md) !important;
	box-shadow: none !important;
	color: var(--text-bright) !important;
	font-weight: 600 !important;
	transition: background .18s, color .18s, transform .18s;
}
.rightPane button:hover, .rightPane [class*="btn" i]:hover, .rightPane [class*="button" i]:hover {
	background: var(--surface2) !important;
	color: var(--accent) !important;
}

/* botones principales (Login, Buy coins, Find...) */
.rightPane [type=submit], .rightPane [class*="primary" i], .rightPane [class*="buy" i], .rightPane [class*="gold" i] {
	background: var(--accent) !important;
	border: 0 !important;
	border-radius: 999px !important;
	color: var(--accent-ink) !important;
	font-weight: 700 !important;
	box-shadow: 0 6px 20px var(--accent-glow) !important;
}
.rightPane [type=submit]:hover, .rightPane [class*="primary" i]:hover, .rightPane [class*="buy" i]:hover, .rightPane [class*="gold" i]:hover {
	background: #fff !important;
	color: var(--accent-ink) !important;
	transform: translateY(-1px);
}
.rightPane [type=submit] *, .rightPane [class*="buy" i] *, .rightPane [class*="gold" i] * { color: inherit !important; }

/* ══════════ COMPATIBILIDAD ══════════ */
.modIcon > i:nth-child(2)       { display: none; }
.modIcon:hover > i:nth-child(1) { display: none; }
.modIcon:hover > i:nth-child(2) { display: inline-block; }
#loginContainer li { text-align: right; }
#account-manage { width: initial !important; }
.TableContentContainer .TableContent { border: initial !important; }
.topPane { background: var(--bg); border-bottom: 1px solid var(--line); margin-bottom: 10px; overflow: hidden; }
.vertical-menu a { color: var(--anchor) !important; }
.gold-divider { border: none; height: 1px; background: linear-gradient(90deg, transparent, var(--text-muted), transparent); margin: 14px 0; opacity: .5; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1100px) {
	.navAuth a span { display: none; }
	.topNav-inner { gap: 16px; }
}
@media (max-width: 960px) {
	.topNav-inner { gap: 12px; }
	.navToggle { display: grid; place-items: center; }
	.navAuth { margin-left: 0; }

	.navMenu {
		display: none;
		position: absolute;
		top: var(--nav-h);
		left: 0; right: 0;
		max-height: calc(100vh - var(--nav-h));
		overflow-y: auto;
		padding: 10px 16px 16px;
		background: var(--surface);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
	}
	.navMenu.open { display: block; }
	.navMenu > ul { flex-direction: column; height: auto; gap: 2px; }
	.navMenu > ul > li { flex-direction: column; }
	.navMenu > ul > li > a { padding: 12px; border-radius: var(--r-sm); }
	.navMenu > ul > li > a::after { display: none; }
	.navMenu > ul > li:hover > a,
	.navMenu > ul > li.active > a { background: var(--surface3); }
	.navMenu > ul > li > ul {
		position: static;
		display: none;
		opacity: 1; visibility: visible; transform: none;
		min-width: 0;
		margin: 2px 0 6px 18px;
		padding: 0 0 0 10px;
		background: transparent;
		border: none;
		border-left: 1px solid var(--line);
		border-radius: 0;
		box-shadow: none;
	}
	.navMenu > ul > li.active > ul { display: block; }
	.navMenu > ul > li:hover > ul { display: none; }
	.navMenu > ul > li.active:hover > ul { display: block; }

	.main { padding: 14px 12px 2rem; }
	.hero { height: 300px; border-radius: var(--r-md); }
	.hero-inner { flex-direction: column; align-items: flex-start; padding: 16px; }
	.layout { flex-direction: column; }
	.centerPane, .rightPane { width: 100%; }
}
@media (max-width: 480px) {
	.brand { font-size: 1.15em; }
	.btn-download { flex: 1; justify-content: center; }
	.hero-actions { width: 100%; }
	.hero-cta { flex: 1; }
	.btn-play { font-size: 0.88em; padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

.BigButton, .BigButtonOver { background-image: none !important; }