html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
.game-app-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 0%, rgba(37, 99, 235, .16), transparent 28%),
        radial-gradient(circle at 84% 12%, rgba(139, 92, 246, .13), transparent 25%),
        linear-gradient(180deg, #020714 0%, #030916 48%, #020713 100%);
}
.game-app-backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .16;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}
.site-header {
    border-bottom: 1px solid rgba(148, 163, 184, .12);
    background: rgba(2, 8, 24, .88);
    backdrop-filter: blur(20px);
}
.top-nav-link {
    position: relative;
    display: inline-flex;
    height: 72px;
    align-items: center;
    padding: 0 14px;
    color: rgb(148 163 184);
    font-size: 12px;
    font-weight: 700;
    transition: .2s ease;
}
.top-nav-link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #6d5dfc, #22d3ee);
    transform: scaleX(0);
    box-shadow: 0 0 14px rgba(96, 165, 250, .65);
    transition: transform .2s ease;
}
.top-nav-link:hover, .top-nav-link.is-active { color: white; }
.top-nav-link:hover::after, .top-nav-link.is-active::after { transform: scaleX(1); }
.header-action {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, .15);
    border-radius: 10px;
    color: rgb(203 213 225);
    background: rgba(255,255,255,.025);
    transition: .2s ease;
}
.header-action:hover { border-color: rgba(96,165,250,.4); color: white; background: rgba(37,99,235,.11); }
.user-chip {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(96,165,250,.2);
    border-radius: 12px;
    padding: 4px 9px 4px 5px;
    background: rgba(9, 19, 43, .9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.user-chip-avatar, .user-pop-avatar {
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(135deg, #34d399, #2563eb 52%, #8b5cf6);
    color: white;
    font-weight: 900;
}
.user-chip-avatar { width: 32px; height: 32px; border: 2px solid rgba(255,255,255,.18); font-size: 11px; }
.user-pop-avatar { width: 64px; height: 64px; border: 3px solid #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.12); }
.user-chip-avatar img, .user-pop-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-popover {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 360px;
    overflow: hidden;
    border: 1px solid rgba(96,165,250,.2);
    border-radius: 17px;
    background: rgba(7, 17, 38, .97);
    box-shadow: 0 26px 70px rgba(0,0,0,.5);
    backdrop-filter: blur(24px);
}
.user-menu-grid-item { display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgb(203 213 225); transition: .18s ease; }
.user-menu-grid-item span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; border: 1px solid rgba(129,140,248,.15); color: #8b80ff; background: rgba(124,58,237,.06); font-size: 18px; }
.user-menu-grid-item em { font-style: normal; }
.user-menu-grid-item:hover { color: white; transform: translateY(-2px); }
.user-menu-grid-item:hover span { border-color: rgba(129,140,248,.45); background: rgba(124,58,237,.15); }
.ajax-loading-bar {
    position: fixed; left: 0; top: 0; z-index: 100; height: 3px; width: 0; opacity: 0;
    background: linear-gradient(90deg, #7c3aed, #2563eb, #22d3ee); transition: width .25s ease, opacity .2s ease;
}
.ajax-loading-bar.is-active { width: 72%; opacity: 1; }
.ajax-loading-bar.is-done { width: 100%; opacity: 0; }
.launcher-hero {
    background:
        radial-gradient(circle at 71% 22%, rgba(37,99,235,.34), transparent 24%),
        radial-gradient(circle at 83% 38%, rgba(124,58,237,.27), transparent 27%),
        linear-gradient(135deg, #07152d 0%, #081632 44%, #050b1e 100%);
    isolation: isolate;
}
.launcher-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url('/assets/img/theme/hero-ambient.jpg') center/cover no-repeat;
    opacity: .28;
    filter: saturate(1.15);
}
.launcher-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(3,12,30,.96) 0%, rgba(4,14,35,.86) 38%, rgba(4,12,29,.25) 68%, rgba(2,8,24,.16) 100%);
}
.hero-grid-lines { position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(56,189,248,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,.07) 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(to right, black, transparent 72%); }
.hero-crystal { position: absolute; width: 180px; height: 180px; border: 1px solid rgba(59,130,246,.22); transform: rotate(45deg); filter: blur(.1px); background: linear-gradient(135deg, rgba(14,165,233,.06), rgba(124,58,237,.14)); box-shadow: 0 0 80px rgba(37,99,235,.14); }
.hero-crystal-a { left: -110px; top: 105px; }
.hero-crystal-b { right: -100px; bottom: -70px; }
.hero-title span { color: #d9f8ff; text-shadow: 0 0 20px rgba(34,211,238,.23); }
.hero-title em { font-style: normal; color: transparent; background: linear-gradient(90deg, #c4b5fd, #fff, #8be9ff); background-clip: text; -webkit-background-clip: text; text-shadow: 0 0 24px rgba(124,58,237,.26); }
.hero-character { filter: saturate(1.18) contrast(1.05); transform: scale(1.04); animation: heroFloat 7s ease-in-out infinite; }
@keyframes heroFloat { 0%,100% { transform: scale(1.04) translate3d(0,0,0); } 50% { transform: scale(1.055) translate3d(0,-5px,0); } }
.hero-floating-card {
    display: flex; align-items: center; gap: 12px; border: 1px solid rgba(96,165,250,.22); border-radius: 13px; padding: 12px;
    background: linear-gradient(120deg, rgba(11,27,66,.82), rgba(16,29,68,.58)); backdrop-filter: blur(16px); box-shadow: 0 14px 38px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.05);
}
.hero-floating-card > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 10px; background: rgba(37,99,235,.16); font-size: 20px; }
.hero-floating-card strong { display: block; font-size: 12px; }
.hero-floating-card small { display: block; margin-top: 2px; color: rgb(100 116 139); font-size: 10px; }
.primary-game-btn, .secondary-game-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 10px; padding: 11px 20px; font-size: 12px; font-weight: 900; transition: .2s ease; }
.primary-game-btn { background: linear-gradient(90deg, #168bff, #27c7ff); color: white; box-shadow: 0 12px 28px rgba(0,140,255,.27); }
.primary-game-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.secondary-game-btn { border: 1px solid rgba(148,163,184,.2); background: rgba(2,8,23,.44); color: white; }
.secondary-game-btn:hover { border-color: rgba(96,165,250,.4); background: rgba(37,99,235,.1); }
.feature-strip-card {
    display: flex; align-items: center; gap: 13px; min-height: 76px; border: 1px solid rgba(96,165,250,.16); border-radius: 14px; padding: 14px 16px;
    background: linear-gradient(135deg, rgba(7,19,43,.96), rgba(10,19,44,.9)); box-shadow: 0 15px 35px rgba(0,0,0,.25);
}
.feature-strip-card > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; background: linear-gradient(135deg, rgba(37,99,235,.15), rgba(124,58,237,.14)); font-size: 20px; }
.feature-strip-card strong { display: block; font-size: 13px; }
.feature-strip-card small { display: block; margin-top: 2px; color: rgb(100 116 139); font-size: 10px; }
.game-search-input { width: 100%; border: 1px solid rgba(148,163,184,.16); border-radius: 11px; background: rgba(255,255,255,.025); padding: 11px 14px 11px 42px; font-size: 12px; outline: none; transition: .2s; }
.game-search-input:focus { border-color: rgba(56,189,248,.42); box-shadow: 0 0 0 3px rgba(56,189,248,.06); }
.game-filter { border: 1px solid rgba(148,163,184,.15); border-radius: 9px; padding: 8px 16px; color: rgb(148 163 184); background: rgba(255,255,255,.025); font-weight: 700; transition: .18s; }
.game-filter:hover, .game-filter.is-active { border-color: rgba(56,189,248,.35); background: linear-gradient(90deg, #1e7ff8, #37c8ff); color: white; box-shadow: 0 8px 18px rgba(37,99,235,.18); }
.game-card { overflow: hidden; border: 1px solid rgba(96,165,250,.13); border-radius: 13px; background: linear-gradient(180deg, rgba(9,22,50,.96), rgba(6,17,39,.96)); box-shadow: 0 12px 30px rgba(0,0,0,.2); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.game-card:hover { transform: translateY(-5px); border-color: rgba(96,165,250,.4); box-shadow: 0 20px 42px rgba(0,0,0,.34), 0 0 26px rgba(37,99,235,.08); }
.game-cover { position: relative; aspect-ratio: 1.55 / 1; overflow: hidden; background: linear-gradient(135deg, #293cb8, #1d6cf1 50%, #7c3aed); }
.game-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .42s ease; }
.game-card:hover .game-cover img { transform: scale(1.08); }
.game-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.18), transparent 30%), linear-gradient(135deg, #2840d4, #1f64e8 52%, #7432e6); }
.game-placeholder span { font-size: 28px; font-weight: 900; color: white; text-shadow: 0 5px 16px rgba(0,0,0,.28); }
.game-cover-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.14) 50%, transparent 65%); transform: translateX(-130%); transition: transform .65s ease; }
.game-card:hover .game-cover-shine { transform: translateX(130%); }
.game-tag { border-radius: 999px; padding: 3px 9px; font-size: 9px; font-weight: 800; }
.game-tag-platform { background: rgba(16,185,129,.13); color: #5ee7b7; }
.game-tag-channel { background: rgba(59,130,246,.14); color: #8fc5ff; }
.race-panel { background: linear-gradient(135deg, rgba(8,19,45,.96), rgba(10,15,39,.98)); }
.leader-row { display: flex; align-items: center; gap: 12px; border: 1px solid rgba(148,163,184,.09); border-radius: 11px; padding: 11px 13px; background: rgba(255,255,255,.024); }
.leader-pos { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: rgba(255,255,255,.05); color: rgb(148 163 184); font-size: 11px; font-weight: 900; }
.leader-pos.is-top { background: rgba(251,191,36,.13); color: #fcd34d; }
.news-card { border: 1px solid rgba(148,163,184,.1); border-radius: 16px; padding: 20px; background: linear-gradient(180deg, rgba(9,20,44,.82), rgba(6,15,34,.88)); transition: .2s; }
.news-card:hover { transform: translateY(-3px); border-color: rgba(139,92,246,.25); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.route-transition { animation: routeIn .28s ease; }
@keyframes routeIn { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.pressable:active { transform: translateY(1px) scale(.99); }
.smooth-scroll-pad { scroll-margin-top: 86px; }
.glass-panel { border: 1px solid rgba(148,163,184,.1); background: rgba(7,17,38,.72); backdrop-filter: blur(14px); }
.tag-pill { border-radius: 999px; padding: 3px 8px; font-size: 9px; font-weight: 800; }
@media (max-width: 1023px) {
    .launcher-hero::after { background: linear-gradient(180deg, rgba(3,12,30,.94), rgba(4,14,35,.72)); }
    .user-popover { width: min(360px, calc(100vw - 28px)); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.hero-arrow { position: absolute; top: 50%; z-index: 35; transform: translateY(-50%); display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(2,8,24,.45); color: white; backdrop-filter: blur(10px); opacity: .7; transition: .2s; }
.hero-arrow:hover { opacity: 1; border-color: rgba(34,211,238,.35); background: rgba(37,99,235,.22); }
