﻿/* LMH Chrome v2 вЂ” neon header brand, user menu, MONSTER TIME pill
   Load after lmh-social-theme.css on every page with site chrome. */

:root {
    --chrome-accent: var(--neon-accent, #d4ff4d);
    --chrome-accent-dim: var(--neon-accent-dim, #8bc34a);
    --chrome-hot: var(--neon-hot, #ff6b4a);
    --chrome-glow: var(--neon-glow, rgba(212, 255, 77, 0.48));
    --chrome-panel: var(--neon-panel, rgba(12, 14, 18, 0.96));
    --chrome-ease: var(--neon-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

/* === Header brand вЂ” Mexican emblem + Rye wordmark === */
.lmh-header-brand {
    gap: 12px;
    transition: opacity 0.2s var(--chrome-ease), transform 0.2s var(--chrome-ease);
}

.lmh-header-brand:hover,
.lmh-header-brand:focus-visible {
    opacity: 1;
    transform: translateY(-1px);
    outline: none;
}

.lmh-header-brand__logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid var(--chrome-accent);
    background: #0a0c10;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.55),
        0 0 16px rgba(212, 255, 77, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.5);
    filter: none;
    animation: lmh-chrome-logo-breathe 3.6s ease-in-out infinite;
}

.lmh-header-brand__line {
    font-family: var(--lmh-mexican, "Rye", "Bebas Neue", serif);
    font-size: clamp(1.05rem, 2.4vw, 1.4rem);
    letter-spacing: 0.02em;
    text-transform: none;
    color: rgba(255, 248, 235, 0.94);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.lmh-header-brand__line--accent {
    font-size: clamp(1.2rem, 2.8vw, 1.58rem);
    color: var(--chrome-accent);
    text-shadow:
        0 0 14px rgba(212, 255, 77, 0.5),
        0 1px 10px rgba(0, 0, 0, 0.5);
    animation: lmh-chrome-accent-shimmer 4s ease-in-out infinite;
}

@keyframes lmh-chrome-logo-breathe {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(0, 0, 0, 0.55),
            0 0 12px rgba(212, 255, 77, 0.32),
            0 8px 20px rgba(0, 0, 0, 0.5);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(0, 0, 0, 0.55),
            0 0 22px rgba(212, 255, 77, 0.55),
            0 8px 20px rgba(0, 0, 0, 0.5);
    }
}

@keyframes lmh-chrome-accent-shimmer {
    0%, 100% { opacity: 0.92; }
    50% { opacity: 1; }
}

@media (max-width: 520px) {
    .lmh-header-brand__logo {
        width: 56px;
        height: 56px;
    }

    .lmh-header-brand__line {
        font-size: 0.92rem;
    }

    .lmh-header-brand__line--accent {
        font-size: 1.08rem;
    }
}

/* === Auth button === */
.auth-btn {
    border-color: rgba(212, 255, 77, 0.22);
    background: rgba(12, 14, 18, 0.82);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    backdrop-filter: blur(14px);
    transition:
        border-color 0.18s var(--chrome-ease),
        background 0.18s var(--chrome-ease),
        color 0.18s var(--chrome-ease),
        box-shadow 0.18s var(--chrome-ease);
}

.auth-btn:hover,
.auth-btn:focus-visible {
    border-color: rgba(212, 255, 77, 0.55);
    background: rgba(212, 255, 77, 0.1);
    color: var(--chrome-accent);
    box-shadow: 0 0 18px rgba(212, 255, 77, 0.18);
    outline: none;
}

/* === User menu hit target === */
.nickname {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.topbar-profile-level:not(.hidden) {
    color: var(--chrome-accent);
    border-color: rgba(212, 255, 77, 0.35);
}

.user-profile-hit {
    gap: 8px;
    padding: 4px 6px 4px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    transition:
        border-color 0.18s var(--chrome-ease),
        background 0.18s var(--chrome-ease),
        box-shadow 0.18s var(--chrome-ease);
}

.user-menu-wrap.is-logged-in .user-profile-hit:hover,
.user-menu-wrap.is-logged-in .user-profile-hit:focus-visible,
.user-menu-wrap.is-logged-in.is-menu-open .user-profile-hit {
    border-color: rgba(212, 255, 77, 0.28);
    background: rgba(212, 255, 77, 0.06);
    box-shadow: 0 0 16px rgba(212, 255, 77, 0.12);
}

.avatar {
    background: rgba(18, 20, 24, 0.95);
    border: 1px solid rgba(212, 255, 77, 0.2);
    color: var(--chrome-accent);
    box-shadow: none;
}

.user-menu-wrap.is-logged-in .user-profile-hit:hover .avatar,
.user-menu-wrap.is-logged-in .user-profile-hit:focus-visible .avatar,
.user-menu-wrap.is-logged-in.is-menu-open .user-profile-hit .avatar {
    border-color: rgba(212, 255, 77, 0.55);
    box-shadow: 0 0 12px rgba(212, 255, 77, 0.25);
}

.user-menu-wrap.is-logged-in .user-profile-hit:hover .nickname,
.user-menu-wrap.is-logged-in .user-profile-hit:focus-visible .nickname,
.user-menu-wrap.is-logged-in.is-menu-open .user-profile-hit .nickname {
    color: var(--chrome-accent);
}

/* === Dropdown + icons === */
.user-menu-dropdown {
    min-width: 188px;
    padding: 6px;
    border: 1px solid rgba(212, 255, 77, 0.22);
    border-radius: 12px;
    background: var(--chrome-panel);
    backdrop-filter: blur(16px);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(212, 255, 77, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    pointer-events: none;
    transition:
        opacity 0.16s var(--chrome-ease),
        transform 0.16s var(--chrome-ease),
        visibility 0.16s;
}

.user-menu-wrap.is-logged-in.is-menu-open .user-menu-dropdown,
.user-menu-wrap.is-logged-in:hover .user-menu-dropdown,
.user-menu-wrap.is-logged-in:focus-within .user-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 9px 11px;
    border-radius: 8px;
    transition:
        background 0.14s var(--chrome-ease),
        color 0.14s var(--chrome-ease);
}

.user-menu-item__ico {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: var(--chrome-accent);
    opacity: 0.85;
}

.user-menu-item__ico svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.1;
}

.user-menu-item__row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.user-menu-item__label {
    flex: 1 1 auto;
    min-width: 0;
}

.user-menu-item:hover,
.user-menu-item:focus-visible {
    background: rgba(212, 255, 77, 0.12);
    color: var(--chrome-accent);
    outline: none;
}

.user-menu-item:hover .user-menu-item__ico,
.user-menu-item:focus-visible .user-menu-item__ico {
    opacity: 1;
}

.user-menu-item-logout {
    color: rgba(255, 140, 120, 0.9);
}

.user-menu-item-logout .user-menu-item__ico {
    color: #ff8f75;
}

.user-menu-item-logout:hover,
.user-menu-item-logout:focus-visible {
    background: rgba(255, 107, 74, 0.14);
    color: #ff8f75;
}

/* === MONSTER TIME v3 — logo center + spinning circular text === */
.lmh-drink-fab.lmh-mt3 {
    position: fixed;
    right: max(14px, env(safe-area-inset-right, 14px));
    bottom: max(18px, env(safe-area-inset-bottom, 18px));
    z-index: 90;
    width: 104px;
    height: 104px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    font: inherit;
    overflow: visible;
    isolation: isolate;
    transition: transform 0.2s var(--chrome-ease);
}

.lmh-drink-fab.lmh-mt3:hover,
.lmh-drink-fab.lmh-mt3:focus-visible {
    transform: translateY(-4px) scale(1.04);
    outline: none;
    background: transparent;
    box-shadow: none;
}

.lmh-drink-fab.lmh-mt3:active {
    transform: translateY(-1px) scale(1.01);
}

.lmh-mt3__aura {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 255, 77, 0.4), transparent 68%);
    filter: blur(12px);
    animation: lmh-mt3-aura 2.6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.lmh-mt3__ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.55);
    border-right-color: rgba(212, 255, 77, 0.4);
    border-bottom-color: rgba(255, 120, 50, 0.3);
    animation: lmh-mt3-spin 3.2s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.lmh-mt3__face {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 200, 0.22), transparent 48%),
        linear-gradient(160deg, #1a2210 0%, #0a0c08 55%, #12180c 100%);
    border: 1.5px solid rgba(212, 255, 77, 0.55);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.5),
        0 0 22px rgba(212, 255, 77, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.lmh-mt3__orbit {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    animation: lmh-mt3-orbit 12s linear infinite;
}

.lmh-mt3__orbit-text {
    fill: var(--chrome-accent, #d4ff4d);
    font-family: "Bebas Neue", var(--lmh-display, Impact), sans-serif;
    font-size: 21px;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.lmh-mt3__logo {
    position: relative;
    z-index: 2;
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.lmh-mt3__sparks {
    position: absolute;
    inset: -10px;
    pointer-events: none;
    z-index: 3;
}

.lmh-mt3__sparks i {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #f8ffc8;
    box-shadow: 0 0 8px rgba(212, 255, 77, 1);
    animation: lmh-mt3-spark 2.4s ease-in-out infinite;
    opacity: 0;
}

.lmh-mt3__sparks i:nth-child(1) { top: 8%; left: 18%; animation-delay: 0s; }
.lmh-mt3__sparks i:nth-child(2) { top: 14%; right: 12%; left: auto; animation-delay: 0.4s; }
.lmh-mt3__sparks i:nth-child(3) { bottom: 16%; left: 10%; animation-delay: 0.9s; }
.lmh-mt3__sparks i:nth-child(4) { bottom: 10%; right: 14%; left: auto; animation-delay: 1.4s; }

.lmh-drink-fab.lmh-mt3 .lmh-mt3__frame,
.lmh-drink-fab.lmh-mt3 .lmh-mt3__card,
.lmh-drink-fab.lmh-mt3 .lmh-mt3__seal,
.lmh-drink-fab.lmh-mt3 .lmh-mt3__embers,
.lmh-drink-fab.lmh-mt3 .lmh-mt3__label,
.lmh-drink-fab.lmh-mt3 .lmh-mt3__text,
.lmh-drink-fab.lmh-mt3 .lmh-monster-time-fab__fx,
.lmh-drink-fab.lmh-mt3 .lmh-monster-time-fab__core,
.lmh-drink-fab.lmh-mt3 .lmh-monster-time-fab__label,
.lmh-drink-fab.lmh-mt3 .lmh-mt-btn__body,
.lmh-drink-fab.lmh-mt3 .lmh-drink-fab__core {
    display: none !important;
}

.lmh-drink-fab.lmh-mt3.is-busy {
    opacity: 0.7;
    cursor: wait;
}

.lmh-drink-fab.lmh-mt3.is-busy .lmh-mt3__orbit {
    animation-play-state: paused;
}

@keyframes lmh-mt3-aura {
    0%, 100% { opacity: 0.45; transform: scale(0.92); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes lmh-mt3-spin {
    to { transform: rotate(360deg); }
}

@keyframes lmh-mt3-orbit {
    to { transform: rotate(360deg); }
}

@keyframes lmh-mt3-spark {
    0%, 100% { opacity: 0; transform: scale(0.3); }
    30% { opacity: 1; transform: scale(1.1); }
    70% { opacity: 0.15; transform: scale(0.5) translateY(-8px); }
}

.lmh-monster-time-btn {
    border: 1px solid rgba(212, 255, 77, 0.5) !important;
    border-radius: 16px !important;
    background:
        linear-gradient(160deg, rgba(212, 255, 77, 0.2), rgba(255, 107, 74, 0.12)),
        rgba(10, 12, 10, 0.95) !important;
    color: var(--chrome-accent) !important;
    box-shadow: 0 0 24px rgba(212, 255, 77, 0.28) !important;
    animation: none !important;
}

.lmh-monster-time-btn::before,
.lmh-monster-time-btn__fx {
    display: none !important;
}

@media (max-width: 520px) {
    .lmh-drink-fab.lmh-mt3 {
        width: 92px;
        height: 92px;
        right: max(12px, env(safe-area-inset-right, 12px));
        bottom: max(14px, env(safe-area-inset-bottom, 14px));
    }

    .lmh-mt3__logo {
        width: 46px;
        height: 46px;
    }

    .lmh-mt3__orbit-text {
        font-size: 18.4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lmh-header-brand__logo,
    .lmh-header-brand__line--accent,
    .user-menu-dropdown,
    .lmh-mt3__aura,
    .lmh-mt3__ring,
    .lmh-mt3__orbit,
    .lmh-mt3__sparks i {
        animation: none !important;
    }
}
