body {
    background-color: #020617;
    color: #f8fafc;
}

.glass {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: linear-gradient(145deg, rgba(30, 64, 175, 0.1) 0%, rgba(15, 23, 42, 0.5) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px -4px rgba(59, 130, 246, 0.25);
}

.glass-card-static:hover {
    transform: none;
    box-shadow: none;
}

.official-nav {
    background: rgba(2, 6, 23, 0.92);
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.nav-link-active {
    color: #fff !important;
}

.cover-art-frame {
    aspect-ratio: 16/9;
    background: linear-gradient(180deg, #111827 0%, #0a0f1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid rgba(59, 130, 246, 0.12);
}

.cover-art-frame img {
    object-fit: contain;
    max-height: 100%;
    width: auto;
    max-width: 100%;
    height: auto;
}

.btn-primary {
    background: #1e40af;
    border-radius: 0.5rem;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #2563eb;
}

.page-hero {
    position: relative;
    padding-top: 7rem;
    padding-bottom: 4rem;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background: #020617;
}

.page-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.breadcrumb a {
    color: #64748b;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #fcd34d;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-chevron {
    transition: transform 0.2s ease;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: #1e40af;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

@keyframes ppsspp-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ppsspp-animate-marquee {
    animation: ppsspp-marquee 40s linear infinite;
}

.ppsspp-animate-marquee:hover {
    animation-play-state: paused;
}

/* Language switcher */
.lang-switch {
    position: relative;
}

.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 2.5rem;
    padding: 0 0.85rem;
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.85);
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.lang-switch-btn .fa-globe {
    color: #3b82f6;
    font-size: 0.85rem;
}

.lang-switch-btn .fa-chevron-down {
    font-size: 0.62rem;
    opacity: 0.55;
    transition: transform 0.18s ease;
}

.lang-switch-btn:hover,
.lang-switch.is-open .lang-switch-btn {
    border-color: rgba(59, 130, 246, 0.55);
    background: rgba(30, 64, 175, 0.25);
}

.lang-switch.is-open .fa-chevron-down {
    transform: rotate(180deg);
}

.lang-switch-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    inset-inline-end: 0;
    min-width: 11.5rem;
    padding: 0.35rem;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 0.75rem;
    background: rgba(2, 6, 23, 0.98);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.65);
    z-index: 60;
}

.lang-switch-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
}

.lang-switch-menu a:hover {
    background: rgba(59, 130, 246, 0.12);
    color: #fff;
}

.lang-switch-menu a[aria-current="true"] {
    background: #1e40af;
    color: #fff;
}

[dir="rtl"] .official-nav .flex.justify-between {
    direction: rtl;
}

[dir="rtl"] .breadcrumb ol {
    flex-direction: row-reverse;
}
