/* ============================================================
   lk-header.css — MMO Portal style with crisp underline (no glow)
   ============================================================ */

/* Self-hosted-style fallback: pull Cinzel from Google Fonts as a stable
   replacement for Beaufort for LoL when its CDN is down. */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800&display=swap');

.lk-tnav {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: transparent;
}
.lk-tnav-inner {
    display: flex; align-items: center; gap: 0;
    max-width: 1280px; margin: 0 auto;
    padding: 18px 36px;
    position: relative;
}

/* Logo (left) — same dims as the original ui-logo-small */
.lk-tnav-logo {
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 57px;
    margin-right: 24px;
    line-height: 0;
    transition: filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.lk-tnav-logo img {
    max-width: -moz-fit-content;
    max-width: fit-content;
    object-fit: contain;
}
.lk-tnav-logo:hover { filter: brightness(1.5); }

/* Nav links */
.lk-tnav-links {
    position: relative;
    display: flex; gap: 18px; align-items: center;
    flex: 1;
}
.lk-tnav-link {
    position: relative;
    padding: 14px 22px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    /* Force the same font as the public site nav. Beaufort first, Cinzel as
       a stable fallback (cdnfonts.com Beaufort URL has been intermittent). */
    font-family: 'Beaufort for LoL', 'Beaufort for LOL', 'Cinzel', 'Trajan Pro', Georgia, serif !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color 0.2s;
    display: flex; align-items: center; gap: 7px;
}
.lk-tnav-link span { font-family: inherit !important; letter-spacing: inherit !important; }
.lk-tnav-link:hover { color: #fff; text-decoration: none; }
.lk-tnav-link--active { color: #fff; }

/* Animated sliding underline indicator */
.lk-tnav-indicator {
    position: absolute;
    bottom: 5px;
    left: 0;
    height: 1px;
    width: 0;
    background: #fff;
    pointer-events: none;
    opacity: 0;
    transform: translateX(0);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s;
}
.lk-tnav-links.is-ready .lk-tnav-indicator { opacity: 1; }

/* Right side: Discord (white outlined circle) */
.lk-tnav-side {
    display: flex; align-items: center; gap: 10px;
    margin-left: auto;
}
.lk-tnav-discord {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
    transition: all 0.22s;
}
.lk-tnav-discord:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

/* Hide the original site nav + mobile menu */
.navigation,
.mobile-menu { display: none !important; }

/* ---- Site nav: tablet ---- */
@media (max-width: 900px) {
    .lk-tnav-inner { padding: 14px 18px; gap: 6px; }
    .lk-tnav-logo { width: 38px; height: 48px; margin-right: 14px; }
    .lk-tnav-logo img { max-height: 48px; }
    .lk-tnav-link { padding: 10px 14px; font-size: 11px; letter-spacing: 0.12em; }
}

/* ---- Site nav: phone ---- */
@media (max-width: 720px) {
    .lk-tnav-inner { padding: 10px 12px; gap: 4px; align-items: center; }
    .lk-tnav-logo { width: 32px; height: 40px; margin-right: 8px; flex-shrink: 0; }
    .lk-tnav-logo img { max-height: 40px; }
    /* Make the link strip horizontally scrollable so it never overflows the row */
    .lk-tnav-links {
        gap: 0;
        flex: 1 1 auto;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
    }
    .lk-tnav-links::-webkit-scrollbar { display: none; }
    .lk-tnav-link {
        padding: 8px 10px;
        font-size: 10px;
        letter-spacing: 0.08em;
        white-space: nowrap;
        flex-shrink: 0;
    }
    /* Animated underline indicator off — looks janky on a scrolling strip */
    .lk-tnav-indicator { display: none !important; }
    .lk-tnav-side { margin-left: 4px; flex-shrink: 0; }
    .lk-tnav-discord { width: 32px; height: 32px; }
    .lk-tnav-discord svg { width: 15px; height: 15px; }
}

/* ---- Hero logo glow: smaller halo on small screens ---- */
@media (max-width: 720px) {
    .logo-big::before { width: 240px; height: 240px; filter: blur(30px); }
}
@media (max-width: 480px) {
    .logo-big::before { width: 180px; height: 180px; filter: blur(22px); }
}

/* ---- Start Game button: scale down on phones ---- */
@media (max-width: 720px) {
    .button-primary { transform: scale(0.85); transform-origin: center; }
}
@media (max-width: 420px) {
    .button-primary { transform: scale(0.72); }
}

/* Slow Start Game button hover transition — smooth 1.5s in/out */
.button-primary {
    transition-duration: 1.5s !important;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition-property: filter, transform, opacity !important;
}

/* Hero logo Pulse Glow (demo variant №1) — applied site-wide */
.logo-big { isolation: isolate; }
.logo-big::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 360px; height: 360px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.55) 0%, rgba(124, 58, 237, 0.22) 35%, transparent 65%);
    filter: blur(42px);
    z-index: -1;
    animation: heroLogoPulse 3.6s ease-in-out infinite;
    pointer-events: none;
}
.logo-big .logo {
    filter: drop-shadow(0 4px 24px rgba(124, 58, 237, 0.55))
            drop-shadow(0 0 8px rgba(167, 139, 250, 0.25));
    animation: heroLogoBreath 3.6s ease-in-out infinite;
}
@keyframes heroLogoPulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}
@keyframes heroLogoBreath {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.025); }
}
@media (prefers-reduced-motion: reduce) {
    .logo-big::before,
    .logo-big .logo { animation: none; }
}

