/* ============================================================
   TradeSafeAccount — MAIN LANDING (multi-game hub)
   Distinct visual identity from /swgoh/ (no saber red/blue).
   Palette: deep cosmic navy + neon violet/cyan/gold accents.
   ============================================================ */

:root {
    --bg-0: #050714;
    --bg-1: #0a0d1f;
    --bg-2: #11142b;
    --surface: rgba(20, 24, 50, 0.55);
    --surface-strong: rgba(28, 32, 64, 0.85);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text: #ECEEF7;
    --text-dim: #9aa0bd;
    --text-muted: #6c7299;

    --neon-violet: #8b5cf6;
    --neon-cyan: #22d3ee;
    --neon-gold: #fbbf24;
    --neon-pink: #f472b6;
    --neon-green: #10d97a;

    --grad-primary: linear-gradient(135deg, #8b5cf6 0%, #22d3ee 100%);
    --grad-gold: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    --grad-aurora: linear-gradient(120deg, #8b5cf6 0%, #f472b6 35%, #22d3ee 70%, #10d97a 100%);

    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.35);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: var(--bg-0);
    color: var(--text);
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ============ Cosmic background ============ */
.cosmic-bg {
    position: fixed; inset: 0; z-index: -2;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(139, 92, 246, 0.18), transparent 50%),
        radial-gradient(ellipse at 80% 10%, rgba(34, 211, 238, 0.15), transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(244, 114, 182, 0.12), transparent 50%),
        var(--bg-0);
}
.cosmic-stars {
    position: fixed; inset: -100px; z-index: -1;
    background-image:
        radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 80px 120px, rgba(255,255,255,0.5), transparent),
        radial-gradient(2px 2px at 160px 60px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 240px 220px, rgba(139,92,246,0.6), transparent),
        radial-gradient(1px 1px at 320px 90px, rgba(34,211,238,0.5), transparent);
    background-size: 400px 400px;
    opacity: 0.3;
    animation: starDrift 120s linear infinite;
    will-change: transform;
}
@keyframes starDrift { from { transform: translate(0,0); } to { transform: translate(100px, 100px); } }

/* ============ TSA Tooltip (gradient border) ============ */
[data-tooltip] { position: relative; }

[data-tooltip]::before {
    content: '';
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom: 6px solid #8b5cf6;
    border-top: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.16s;
    z-index: 999;
}
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotateBorder {
    to { --angle: 360deg; }
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background:
        linear-gradient(rgba(5, 7, 20, 0.98), rgba(5, 7, 20, 0.98)) padding-box,
        conic-gradient(from var(--angle), #8b5cf6, #22d3ee, #f472b6, #8b5cf6) border-box;
    border: 1.5px solid transparent;
    border-radius: 8px;
    padding: 5px 11px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(139, 92, 246, 0.2);
    animation: rotateBorder 3s linear infinite;
}
[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}
[data-tooltip]:hover::after {
    transform: translateX(-50%) translateY(0);
}

/* Evitar que el tooltip se vea cuando el dropdown está abierto */
.lang-dropdown.active[data-tooltip]::before,
.lang-dropdown.active[data-tooltip]::after {
    opacity: 0 !important;
    visibility: hidden !important;
}

.lang-options {
    z-index: 1001; /* Por encima del tooltip (1000) */
}

/* ============ Header ============ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(5, 7, 20, 0.92);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex; align-items: center; gap: 20px;
}
.brand-logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: filter 0.2s;
    background: linear-gradient(90deg, #8b5cf6 0%, #22d3ee 45%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.4));
}
.brand-logo-link:hover .brand-logo { filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.6)) brightness(1.15); }
/* child spans just inherit — no individual colors needed */
.bl-trade, .bl-safe, .bl-account {
    -webkit-text-fill-color: inherit;
    color: inherit;
}
.brand-tag {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-left: 12px;
    background: linear-gradient(90deg, #ffffff 0%, #22d3ee 55%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    opacity: 0.85;
}
.header-right {
    margin-left: auto;
    display: flex; align-items: center; gap: 18px;
}
.header-social {
    display: flex;
    gap: 10px;
    align-items: center;
}
.header-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.38);
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}
.header-social a:hover {
    color: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}
.header-social svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Language dropdown */
.lang-dropdown { position: relative; }
.lang-trigger {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.lang-trigger:hover { border-color: var(--neon-violet); background: rgba(139,92,246,0.08); }
.lang-trigger img { width: 18px; border-radius: 2px; }
.lang-trigger svg { width: 12px; height: 12px; opacity: 0.6; }
.lang-options {
    position: absolute; top: calc(100% + 6px); right: 0;
    min-width: 140px;
    background: #11142b;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    padding: 6px;
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    box-shadow: var(--shadow-card);
}
.lang-dropdown.active .lang-options {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.lang-option {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.15s;
}
.lang-option:hover { background: rgba(139,92,246,0.15); }
.lang-option.selected { background: rgba(139,92,246,0.2); color: var(--neon-violet); font-weight: 600; }
.lang-option img { width: 18px; border-radius: 2px; }

/* ============ Hero ============ */
.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px 30px;
    text-align: center;
    position: relative;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.08);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--neon-violet);
    margin-bottom: 18px;
    animation: pulse 3s ease-in-out infinite;
}
.hero-eyebrow::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    /* Reducido a 4.6vw para que quepa en una línea con el texto largo actual */
    font-size: 4.6vw; 
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 12px;
    text-align: center;
    width: 100%;
    white-space: nowrap;
}

/* En pantallas muy grandes, limitamos el crecimiento para que no sea excesivo */
@media (min-width: 1600px) {
    .hero h1 { font-size: 90px; }
}
/* En móviles, permitimos que rompa para que no se vea minúsculo */
@media (max-width: 768px) {
    .hero h1 { 
        font-size: 2rem; 
        white-space: normal;
    }
}

.hero h1 .grad {
    background: var(--grad-aurora);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline;
}

.hero p.lead {
    max-width: 100%;
    margin: 0 auto 24px;
    /* Ajuste fluido para la descripción */
    font-size: clamp(0.8rem, 1.2vw, 1.05rem);
    color: var(--text-dim);
    line-height: 1.4;
}

.hero-cta {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 40px;
}
.btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: all 0.25s;
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
    filter: brightness(1.1);
}
.btn-ghost {
    background: rgba(255,255,255,0.04);
    border-color: var(--border-strong);
    color: var(--text);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--neon-cyan);
}

/* Hero stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.hero-stat {
    padding: 14px;
    background: rgba(20, 24, 50, 0.85);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.25s;
}
.hero-stat:hover {
    border-color: var(--neon-violet);
    transform: translateY(-3px);
}
.hero-stat .num {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 6px;
}
.hero-stat .label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

/* ============ Section base ============ */
.section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
}
.section-title {
    text-align: center;
    margin-bottom: 32px;
}
.section-title .kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--neon-cyan);
    margin-bottom: 14px;
}
.section-title h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 10px;
}
.section-title p {
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ============ Why-us cards ============ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.why-card {
    position: relative;
    padding: 28px;
    background: rgba(20, 24, 50, 0.8);
    border: 1px solid var(--border);
    border-radius: 18px;
    transition: all 0.3s;
    overflow: hidden;
}
.why-card::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--grad-primary);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}
.why-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card);
}
.why-icon {
    width: 52px; height: 52px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: rgba(139,92,246,0.12);
    border: 1px solid rgba(139,92,246,0.3);
    color: var(--neon-violet);
    margin-bottom: 18px;
    font-size: 1.4rem;
}
.why-card.cyan .why-icon { background: rgba(34,211,238,0.12); border-color: rgba(34,211,238,0.3); color: var(--neon-cyan); }
.why-card.gold .why-icon { background: rgba(251,191,36,0.12); border-color: rgba(251,191,36,0.3); color: var(--neon-gold); }
.why-card.green .why-icon { background: rgba(16,217,122,0.12); border-color: rgba(16,217,122,0.3); color: var(--neon-green); }
.why-card.pink .why-icon { background: rgba(244,114,182,0.12); border-color: rgba(244,114,182,0.3); color: var(--neon-pink); }
.why-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #22d3ee 65%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    line-height: 1.2;
}
.why-card p {
    color: #d1d5db;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============ Security section ============ */
.security-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.security-text h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.15;
}
.security-text h2 .grad {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.security-text p { color: var(--text-dim); margin-bottom: 28px; font-size: 1.02rem; }
.security-steps { list-style: none; }
.security-steps li {
    display: flex; gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.security-steps li:last-child { border-bottom: none; }
.security-steps .step-num {
    flex-shrink: 0;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--grad-primary);
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 16px rgba(139,92,246,0.4);
}
.security-steps .step-num.violet { background: var(--neon-violet) !important; box-shadow: 0 4px 16px rgba(139,92,246,0.4) !important; }
.security-steps .step-num.cyan { background: var(--neon-cyan) !important; box-shadow: 0 4px 16px rgba(34,211,238,0.4) !important; color: #000 !important; }
.security-steps .step-num.gold { background: var(--grad-gold) !important; box-shadow: 0 4px 16px rgba(251,191,36,0.4) !important; color: #000 !important; }
.security-steps .step-num.green { background: var(--neon-green) !important; box-shadow: 0 4px 16px rgba(16,217,122,0.4) !important; color: #000 !important; }
.security-steps .step-num.pink { background: var(--neon-pink) !important; box-shadow: 0 4px 16px rgba(244,114,182,0.4) !important; color: #000 !important; }
.security-title {
    display: inline-block;
    width: fit-content;
    margin-bottom: 4px;
    font-weight: 700;
    font-size: 1.15rem;
    background: linear-gradient(90deg, #ffffff 0%, #22d3ee 70%, #a78bfa 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}
.security-steps .step-body span {
    display: block;
    color: #d1d5db; /* Improved readability */
    font-size: 0.95rem;
    line-height: 1.6;
}

.security-shield {
    position: relative;
    aspect-ratio: 1;
    max-width: 460px;
    margin: 0 auto;
    display: grid; place-items: center;
}
.security-shield::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at center, rgba(139,92,246,0.25), transparent 60%);
    border-radius: 50%;
    animation: pulseRing 4s ease-in-out infinite;
}
@keyframes pulseRing { 0%,100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.08); opacity: 1; } }
.security-shield-inner {
    position: relative;
    width: 70%; aspect-ratio: 1;
    background: rgba(20, 24, 50, 0.95);
    border: 2px solid;
    border-image: var(--grad-primary) 1;
    border-radius: 28px;
    display: grid; place-items: center;
    box-shadow: 0 20px 60px rgba(139,92,246,0.4);
}
.security-shield-inner svg { width: 50%; color: var(--neon-violet); filter: drop-shadow(0 0 20px var(--neon-violet)); }
.security-orbit {
    position: absolute;
    width: 100%; height: 100%;
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: rotate 30s linear infinite;
}
.security-orbit::before, .security-orbit::after {
    content: ''; position: absolute;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 16px var(--neon-cyan);
    top: -6px; left: 50%;
    transform: translateX(-50%);
}
.security-orbit::after {
    background: var(--neon-pink);
    box-shadow: 0 0 16px var(--neon-pink);
    top: auto; bottom: -6px;
}
@keyframes rotate { to { transform: rotate(360deg); } }

/* ============ Payment methods ============ */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}
.pay-tile {
    aspect-ratio: 16/10;
    display: grid; place-items: center;
    background: rgba(20, 24, 50, 0.7);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    transition: all 0.25s;
    text-align: center;
}
.pay-tile:hover {
    transform: translateY(-3px);
    border-color: var(--neon-cyan);
    box-shadow: 0 8px 24px rgba(34,211,238,0.15);
}
.pay-tile .pay-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--neon-cyan);
}
.pay-tile .pay-name {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
.pay-tile .pay-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============ Games section ============ */
.games-section { padding-top: 40px; }
.games-search-bar {
    max-width: 720px;
    margin: 0 auto 40px;
    position: relative;
}
.games-search-bar input {
    width: 100%;
    padding: 18px 56px 18px 56px;
    background: #0a0d1f;
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}
.games-search-bar input:focus {
    outline: none;
    border-color: var(--neon-violet);
    box-shadow: 0 0 0 4px rgba(139,92,246,0.15);
}
.games-search-bar input::placeholder { color: #52525b; }
.games-search-bar .search-icon {
    position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
    color: var(--neon-violet);
    pointer-events: none;
}
.games-search-bar .clear-btn {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px;
    border-radius: 50%;
    display: none;
    place-items: center;
    color: var(--text-muted);
    transition: all 0.15s;
}
.games-search-bar .clear-btn:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.games-search-bar.has-text .clear-btn { display: grid; }

.games-filter-chips {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
}
.chip {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: rgba(255,255,255,0.03);
    color: var(--text-dim);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.active {
    background: var(--grad-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(139,92,246,0.35);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.game-card {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    isolation: isolate;
}
.game-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--border-strong);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(139,92,246,0.25);
    z-index: 2;
}
.game-card.available {
    border-color: rgba(16,217,122,0.4);
}
.game-card.available:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 40px rgba(16,217,122,0.4);
}
.game-card.featured {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 1;
}
.game-card-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.game-card:hover .game-card-img { transform: scale(1.08); }
.game-card-fallback {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    color: rgba(255,255,255,0.85);
    text-align: center;
    padding: 20px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.game-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(5,7,20,0.5) 60%, rgba(5,7,20,0.98) 100%);
    pointer-events: none;
}
.game-card-content {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 16px 16px 14px;
    z-index: 1;
}
.game-card.featured .game-card-content { padding: 24px; }
.game-card-name {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 4px;
    line-height: 1.15;
    background: linear-gradient(90deg, #8b5cf6 0%, #22d3ee 45%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Usamos filter: drop-shadow para que el borde funcione con el degradado */
    filter: 
        drop-shadow(-1.2px -1.2px 0 #000) 
        drop-shadow(1.2px -1.2px 0 #000) 
        drop-shadow(-1.2px 1.2px 0 #000) 
        drop-shadow(1.2px 1.2px 0 #000)
        drop-shadow(0 2px 8px rgba(0,0,0,0.8));
}
.game-card.featured .game-card-name { font-size: 1.6rem; }
.game-card-genre {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    background: linear-gradient(90deg, #ffffff 0%, #22d3ee 55%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: 
        drop-shadow(-1px -1px 0 #000) 
        drop-shadow(1px -1px 0 #000) 
        drop-shadow(-1px 1px 0 #000) 
        drop-shadow(1px 1px 0 #000);
}
.game-card-badge {
    position: absolute; top: 12px; right: 12px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    background: rgba(5,7,20,0.8);
    border: 1px solid;
    z-index: 2;
}
.game-card-badge.live {
    background: rgba(16,217,122,0.18);
    border-color: rgba(16,217,122,0.5);
    color: var(--neon-green);
}
.game-card-badge.live::before {
    content: ''; display: inline-block;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
    margin-right: 5px;
    vertical-align: middle;
    animation: pulse 1.6s infinite;
}
.game-card-badge.soon {
    background: rgba(5, 7, 20, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.game-card-rank {
    position: absolute; top: 12px; left: 12px;
    width: 30px; height: 30px;
    display: grid; place-items: center;
    background: rgba(5,7,20,0.9);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--text-dim);
    z-index: 2;
}
.game-card.available .game-card-rank {
    background: var(--grad-gold);
    border-color: transparent;
    color: #1a1300;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.no-results svg { width: 60px; height: 60px; margin-bottom: 16px; opacity: 0.4; }
.no-results h3 { font-family: 'Orbitron', sans-serif; margin-bottom: 8px; color: var(--text-dim); }

/* ============ Coming-soon modal ============ */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(5,7,20,0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center; justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s;
}
.modal-backdrop.active { display: flex; opacity: 1; }
.modal-card {
    background: var(--surface-strong);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(24px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    transform: scale(0.94);
    transition: transform 0.25s;
}
.modal-backdrop.active .modal-card { transform: scale(1); }
.modal-icon {
    width: 70px; height: 70px;
    margin: 0 auto 20px;
    display: grid; place-items: center;
    border-radius: 18px;
    background: var(--grad-primary);
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 12px 32px rgba(139,92,246,0.4);
}
.modal-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 12px;
}
.modal-card p { color: var(--text-dim); margin-bottom: 24px; }
.modal-card .modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: var(--text-dim);
    display: grid; place-items: center;
    transition: all 0.15s;
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--text); }

/* ============ Footer ============ */
.site-footer {
    margin-top: 80px;
    padding: 40px 28px;
    border-top: 1px solid var(--border);
    background: rgba(5,7,20,0.4);
    text-align: center;
}
.site-footer .footer-inner {
    max-width: 1400px; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center; gap: 15px;
}
.footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.8rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-social a:hover {
    background: var(--grad-primary);
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(139,92,246,0.3);
}
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }
.footer-copy a { color: var(--neon-cyan); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
    .site-header { overflow: visible; }
    .header-inner {
        padding: 8px 12px;
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-width: 100%;
    }
    /* Línea 1: logo centrado */
    .brand-logo-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 4px 0 8px;
        min-width: 0;
    }
    .brand-logo {
        font-size: min(1.35rem, 5.5vw);
        letter-spacing: 0;
        white-space: nowrap;
    }
    .brand-tag { display: none; }
    /* Línea 2: redes + idioma */
    .header-right {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
        border-top: 1px solid var(--border);
        padding: 7px 0 4px;
    }
    .header-social {
        display: flex;
        gap: 5px;
        flex-shrink: 0;
    }
    .header-social a { width: 26px; height: 26px; border-radius: 6px; }
    .header-social svg { width: 12px; height: 12px; }
    .lang-trigger { padding: 5px 9px; font-size: 0.78rem; gap: 5px; flex-shrink: 0; }
    .hero { padding: 50px 20px 40px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 60px 20px; }
    .security-block { grid-template-columns: 1fr; }
    .security-shield { max-width: 320px; }
    .games-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .game-card.featured { grid-column: span 2; grid-row: span 2; }
    .game-card-name { font-size: 0.9rem; }
    .game-card.featured .game-card-name { font-size: 1.2rem; }
}
@media (max-width: 480px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); }
    .game-card.featured { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/9; }
    .hero h1 { font-size: 2.1rem; }
    .hero-stat .num { font-size: 1.4rem; }
}
/* ============ Floating Buttons ============ */
.discord-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: #5865F2;
    color: #FFF;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 20px rgba(88, 101, 242, 0.4);
    text-decoration: none;
}
.discord-float svg { width: 26px; height: 26px; }
.discord-float:hover {
    transform: scale(1.15) rotate(5deg);
    background-color: #4752c4;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 30px rgba(88, 101, 242, 0.6);
}

#scrollToTopBtn {
    position: fixed;
    bottom: 85px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: rgba(10, 15, 23, 0.7);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 50%;
    color: var(--neon-cyan);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.1);
}
#scrollToTopBtn.show {
    opacity: 0.6;
    visibility: visible;
    transform: translateY(0);
}
#scrollToTopBtn:hover {
    opacity: 1;
    background: rgba(34, 211, 238, 0.1);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.4);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .discord-float, #scrollToTopBtn {
        right: 15px;
    }
    .discord-float { bottom: 15px; }
    #scrollToTopBtn { bottom: 75px; }
}
