/* =====================================================================
   Pagina de espera — "pantalla de carga" de juego.
   Paleta del tema Aurum (piedra + oro); estructura propia.
   ===================================================================== */
:root {
	--bg: #12151b; --surface: #1b2029; --surf2: #222833; --line: #2f3746;
	--text: #e7dcc2; --muted: #9aa0ad; --oro: #d9a441; --oro2: #8d6a24; --oro-cl: #e9bb5e;
	--celeste: #87cefa;
	--grad: linear-gradient(180deg, #e9bb5e, #c08f2c);
	--ancho: 1240px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body.ld {
	min-height: 100vh; overflow-x: hidden;
	font: 400 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--text); background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--oro-cl); outline-offset: 3px; }

/* ---------------------------------------------------------------------
   Barra superior (flota sobre el arte)
   --------------------------------------------------------------------- */
.ld-top {
	position: absolute; inset: 0 0 auto; z-index: 5;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	max-width: var(--ancho); margin: 0 auto; padding: 18px 24px;
}
.ld-top__marca { font-weight: 800; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: var(--oro); text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.ld-top__volver {
	display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
	font-size: 13px; font-weight: 600; color: var(--text);
	background: rgba(18,21,27,.5); border: 1px solid rgba(255,255,255,.12);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	transition: border-color .2s, color .2s;
}
.ld-top__volver:hover { color: var(--oro-cl); border-color: rgba(217,164,65,.5); }

/* ---------------------------------------------------------------------
   Pantalla de carga
   --------------------------------------------------------------------- */
.ld-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; }
.ld-hero__arte {
	position: absolute; inset: 0; z-index: -2;
	background: #0d1015 center top / cover no-repeat;
	animation: ld-acerca 26s ease-out both;
}
/* Oscurece hacia la izquierda (donde va el texto) y hacia abajo (se funde
   con la pagina); encima, la rejilla dorada del tema, muy tenue. */
.ld-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(0deg, var(--bg) 0%, rgba(18,21,27,.55) 38%, rgba(18,21,27,0) 70%),
		linear-gradient(180deg, rgba(18,21,27,.8) 0, rgba(18,21,27,0) 90px),
		linear-gradient(90deg, rgba(18,21,27,.94) 0%, rgba(18,21,27,.7) 42%, rgba(18,21,27,.15) 100%),
		linear-gradient(rgba(217,164,65,.05) 1px, transparent 1px) 0 0 / 37px 37px,
		linear-gradient(90deg, rgba(217,164,65,.05) 1px, transparent 1px) 0 0 / 37px 37px;
}
@keyframes ld-acerca { from { transform: scale(1.08); } to { transform: scale(1); } }

.ld-hero__in {
	position: relative; width: 100%; max-width: var(--ancho); margin: 0 auto;
	display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 22px;
	padding: 92px 24px 44px;
}
/* Escritorio: info + acciones a la izquierda, el 300x250 centrado a su lado.
   Todo arranca arriba: la cuenta, el boton y el anuncio se ven sin scroll. */
@media (min-width: 980px) {
	.ld-hero--ad .ld-hero__in {
		grid-template-columns: minmax(0, 1fr) 328px; grid-template-areas: "info ad" "tira ad";
		column-gap: 56px; row-gap: 18px;
	}
	.ld-hero--ad .ld-info { grid-area: info; }
	.ld-hero--ad .ld-ad--hero { grid-area: ad; align-self: center; }
	.ld-hero--ad .ld-tira { grid-area: tira; }
}

.ld-datos {
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
	font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--oro-cl);
}
.ld-datos i { font-style: normal; color: rgba(231,220,194,.3); }
.ld-tit {
	margin: 8px 0 0; max-width: 18ch;
	font-size: clamp(32px, 4.8vw, 64px); font-weight: 800; line-height: .98; letter-spacing: -.025em;
	color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.55); text-wrap: balance; overflow-wrap: anywhere;
}

/* ---- Barra de carga ---- */
.ld-carga, .ld-listo { max-width: 640px; }
/* Panel de carga: vidrio con esquinas doradas, como un HUD */
.ld-carga {
	position: relative; margin-top: 22px; padding: 16px 20px 12px;
	background: rgba(18,21,27,.5); border: 1px solid rgba(255,255,255,.08);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	box-shadow: 0 16px 40px rgba(0,0,0,.3);
}
.ld-carga::before, .ld-carga::after {
	content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
	border: 2px solid var(--oro);
}
.ld-carga::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.ld-carga::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }
.ld-carga[hidden] { display: none; }
.ld-carga__cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ld-carga__txt { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ld-carga__seg { font-size: 13px; color: var(--muted); }
.ld-carga__seg b { font-size: 26px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.ld-barra {
	position: relative; height: 12px; overflow: hidden;
	background: rgba(255,255,255,.06); border: 1px solid rgba(217,164,65,.28);
	clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.ld-barra span {
	position: absolute; inset: 0 auto 0 0; width: 0;
	background: var(--grad); box-shadow: 0 0 22px rgba(233,187,94,.55);
	transition: width 1s linear;
}
/* brillo que recorre lo cargado */
.ld-barra span::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent) -60% 0 / 40% 100% no-repeat;
	animation: ld-brillo 1.6s linear infinite;
}
/* segmentos: la barra se lee como un medidor de juego */
.ld-barra::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: repeating-linear-gradient(90deg, transparent 0 calc(5% - 2px), rgba(18,21,27,.85) calc(5% - 2px) 5%);
}
@keyframes ld-brillo { to { background-position: 160% 0; } }

.ld-tip { min-height: 1.5em; margin-top: 12px; font-size: 14px; color: var(--text); opacity: .85; transition: opacity .35s; }
.ld-tip b { margin-right: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--oro); }
.ld-tip.is-fuera { opacity: 0; }
.ld-pausa { margin-top: 6px; font-size: 12px; color: var(--oro-cl); }

/* ---- Listo: la barra se convierte en el boton ---- */
.ld-listo { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 22px; animation: ld-entra .5s cubic-bezier(.2,.8,.2,1) both; }
.ld-listo[hidden] { display: none; }
.ld-btn {
	position: relative; overflow: hidden;
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	min-height: 62px; padding: 0 38px;
	font-size: 18px; font-weight: 800; letter-spacing: .02em; color: #1a1408;
	background: var(--grad); box-shadow: 0 10px 34px rgba(217,164,65,.35), inset 0 1px 0 rgba(255,255,255,.4);
	clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
	transition: transform .15s, filter .2s;
}
.ld-btn svg { font-size: 22px; stroke-width: 2.6; }
.ld-btn::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%) -150% 0 / 200% 100% no-repeat;
	animation: ld-destello 2.8s ease-in-out 1s infinite;
}
.ld-btn:hover { filter: brightness(1.08); }
.ld-btn:active { transform: translateY(1px); }
.ld-listo__ok { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--celeste); }
.ld-listo__ok svg { font-size: 16px; stroke-width: 2.6; }
@keyframes ld-entra { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ld-destello { 0%, 55% { background-position: -150% 0; } 100% { background-position: 250% 0; } }

/* ---------------------------------------------------------------------
   Anuncios: siempre etiquetados y con su marco
   --------------------------------------------------------------------- */
.ld-ad { text-align: center; }
.ld-ad__lbl { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ld-ad__in { display: flex; justify-content: center; overflow: hidden; }
/* el 300x250 dentro de la pantalla de carga, en vidrio */
.ld-ad--hero {
	justify-self: center; width: 100%; max-width: 328px; padding: 10px 13px 13px;
	background: rgba(18,21,27,.55); border: 1px solid rgba(217,164,65,.3);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.ld-ad--hero .ld-ad__in { min-height: 250px; }   /* reserva el hueco: sin saltos al cargar */
.ld-ad--abajo { padding: 14px; background: var(--surface); border: 1px solid var(--line); }
.ld-ad--lado .ld-ad__in { min-height: 250px; }

/* ---------------------------------------------------------------------
   Debajo de la pantalla de carga
   --------------------------------------------------------------------- */
.ld-cuerpo { display: block; max-width: var(--ancho); margin: 0 auto; padding: 4px 24px 56px; }
/* Zona de anuncios: los laterales flanquean SOLO esta franja; las
   sugerencias de abajo van a todo lo ancho. */
.ld-zona__c { width: 100%; min-width: 0; max-width: 760px; margin: 0 auto; }
.ld-lado { display: none; }
@media (min-width: 1200px) {
	.ld-zona--lados { display: grid; grid-template-columns: 300px minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
	.ld-zona--lados .ld-lado { display: block; }
	.ld-zona--lados .ld-zona__c { max-width: none; }
	.ld-zona--uno { display: flex; justify-content: center; gap: 32px; align-items: start; }
	.ld-zona--uno .ld-lado { display: block; flex: 0 0 300px; }
	.ld-zona--uno .ld-zona__c { margin: 0; max-width: 640px; }
}

/* ---- Acciones dentro de la pantalla: patrocinado + Telegram ---- */
.ld-tira { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 640px; }
@media (min-width: 720px) { .ld-tira { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.ld-patro, .ld-tg {
	display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px;
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	transition: border-color .2s, background .2s;
}
.ld-patro { background: rgba(18,21,27,.5); border: 1px dashed rgba(135,206,250,.3); color: var(--celeste); }
/* etiqueta arriba (puede ser larga: "Esta saliendo hacia un sitio externo"), enlace debajo */
.ld-patro { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 3px; }
.ld-patro em {
	grid-column: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
	font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.ld-patro span { grid-column: 1; font-size: 15px; font-weight: 700; line-height: 1.2; }
.ld-patro svg { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 18px; }
.ld-patro:hover { border-color: var(--celeste); }
.ld-tg { background: rgba(42,171,238,.1); border: 1px solid rgba(42,171,238,.28); }
.ld-tg svg { font-size: 26px; fill: #2aabee; stroke: none; }
.ld-tg b { display: block; font-size: 14px; color: #fff; }
.ld-tg small { font-size: 12px; color: var(--muted); }
.ld-tg:hover { background: rgba(42,171,238,.13); }

/* ---- Cabecera de seccion ---- */
.ld-sec { margin-top: 36px; }
.ld-sec__cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.ld-sec__cab h2 {
	position: relative; padding-left: 16px;
	font-size: 24px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; color: #fff;
}
.ld-sec__cab h2::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 4px; background: var(--grad); }
.ld-sec__cab h2 span { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--oro); }
.ld-flechas { display: flex; gap: 6px; }
.ld-flechas button {
	display: grid; place-items: center; width: 38px; height: 38px;
	border: 1px solid var(--line); background: var(--surface); font-size: 18px; color: var(--text);
	transition: border-color .2s, color .2s;
}
.ld-flechas button:hover { border-color: var(--oro); color: var(--oro-cl); }
@media (hover: none) { .ld-flechas { display: none; } }

/* ---- Lo mas visto: tira deslizable con el numero gigante detras ---- */
.ld-top10 {
	list-style: none; display: grid; grid-auto-flow: column;
	grid-auto-columns: minmax(150px, 62%); gap: 14px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding: 4px 2px 6px; scrollbar-width: none;
}
@media (min-width: 560px) { .ld-top10 { grid-auto-columns: minmax(170px, 34%); } }
.ld-top10::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .ld-top10 { grid-auto-columns: calc((100% - 5 * 14px) / 6); } }
@media (min-width: 1150px) { .ld-top10 { grid-auto-columns: calc((100% - 6 * 14px) / 7); } }
.ld-top10 > li { scroll-snap-align: start; }
.ld-t { position: relative; display: block; padding-left: 30px; }
.ld-t__n {
	position: absolute; left: -6px; top: 4px; z-index: 0;
	font-size: 100px; font-weight: 800; line-height: .82; letter-spacing: -.06em;
	color: var(--bg); -webkit-text-stroke: 2px rgba(217,164,65,.8);
	text-shadow: 0 0 24px rgba(217,164,65,.18);
}
.ld-t__img {
	position: relative; z-index: 1; display: block; aspect-ratio: 3 / 4; overflow: hidden;
	background: #0d1015; border: 1px solid var(--line);
	box-shadow: -10px 10px 24px rgba(0,0,0,.45);
	transition: border-color .2s, transform .25s;
}
.ld-t__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ld-t:hover .ld-t__img { border-color: var(--oro); transform: translateY(-3px); }
.ld-t:hover .ld-t__img img { transform: scale(1.05); }
.ld-t__tit {
	position: relative; z-index: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	margin-top: 9px; font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--text);
}
.ld-t__peso {
	position: absolute; z-index: 2; top: 8px; right: 8px; padding: 2px 7px;
	font-size: 10px; font-weight: 700; color: #fff;
	background: rgba(10,12,16,.85); border: 1px solid rgba(255,255,255,.12);
}

/* ---- Mas como este: filas compactas ---- */
.ld-filas { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 700px) { .ld-filas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .ld-filas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ld-f {
	display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px;
	background: linear-gradient(90deg, var(--surf2), var(--surface)); border: 1px solid var(--line);
	transition: border-color .2s, background .2s;
}
.ld-f__img { width: 56px; height: 56px; flex: none; overflow: hidden; background: #0d1015; }
.ld-f__img img { width: 100%; height: 100%; object-fit: cover; }
.ld-f__txt { min-width: 0; flex: 1; }
.ld-f__txt b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; font-weight: 700; color: #fff; }
.ld-f__txt small { font-size: 12px; color: var(--muted); }
.ld-f__ir { font-size: 18px; color: var(--oro); opacity: .45; transition: opacity .2s, transform .2s; }
.ld-f:hover { border-color: var(--oro2); }
.ld-f:hover .ld-f__ir { opacity: 1; transform: translateX(2px); }

.ld-pie { padding: 22px 24px 30px; border-top: 1px solid var(--line); text-align: center; font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------------
   Movil
   --------------------------------------------------------------------- */
@media (max-width: 640px) {
	.ld-top { padding: 14px 16px; }
	.ld-top__volver { padding: 6px 10px; font-size: 12px; }
	.ld-hero { min-height: 0; }
	.ld-hero__in { padding: 70px 16px 24px; gap: 18px; }
	.ld-hero::before {
		background:
			linear-gradient(0deg, var(--bg) 0%, rgba(18,21,27,.82) 45%, rgba(18,21,27,.25) 100%),
			linear-gradient(180deg, rgba(18,21,27,.8) 0, rgba(18,21,27,0) 80px),
			linear-gradient(rgba(217,164,65,.05) 1px, transparent 1px) 0 0 / 37px 37px,
			linear-gradient(90deg, rgba(217,164,65,.05) 1px, transparent 1px) 0 0 / 37px 37px;
	}
	.ld-carga { margin-top: 18px; padding: 14px 14px 10px; }
	.ld-listo { margin-top: 18px; }
	.ld-btn { width: 100%; }
	.ld-cuerpo { padding: 4px 16px 44px; }
	.ld-sec { margin-top: 38px; }
	.ld-sec__cab h2 { font-size: 21px; }
	.ld-t__n { font-size: 104px; }
}

@media (prefers-reduced-motion: reduce) {
	.ld-hero__arte, .ld-barra span::after, .ld-btn::after, .ld-listo { animation: none; }
	.ld-barra span, .ld-tip { transition: none; }
}
