html { font-size: 80%; }

body {
    background-color: #0a0a0a;
    color: #a1a1aa;
    font-family: 'Inter', sans-serif;
}

::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #ffffff; }

.custom-scrollbar::-webkit-scrollbar { width: 4px; }

.glass-nav {
    background: transparent;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

#canvas-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.btn-primary {
    background: #ffffff;
    color: #0a0a0a;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.filter-btn.active,
.game-filter.active {
    background: #ffffff;
    color: #0a0a0a;
    border-color: #ffffff;
}

/* ── Asset cards ── */
.asset-card {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    will-change: transform;
    cursor: pointer;
    height: 260px;
    display: flex;
    flex-direction: column;
}
.asset-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: #181818;
}
.asset-card:active {
    transform: scale(0.97) !important;
    transition: transform 0.08s ease !important;
}
.asset-card.tilt-reset {
    transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.15s ease,
                background 0.25s ease,
                box-shadow 0.15s ease !important;
}

/* ── 🔥 Hot / Trending card variant ── */
.asset-card.is-hot {
    border-color: rgba(251, 146, 60, 0.40);
    background: linear-gradient(135deg, #5c2901 0%, #331a00 40%, #201100 75%);
    box-shadow:
        0 0 0 1px rgba(251, 146, 60, 0.18),
        0 0 22px rgba(234, 88, 12, 0.10),
        inset 0 1px 0 rgba(251, 146, 60, 0.10);
}
.asset-card.is-hot:hover {
    border-color: rgba(251, 146, 60, 0.65);
    box-shadow:
        0 0 0 1px rgba(251, 146, 60, 0.32),
        0 0 32px rgba(234, 88, 12, 0.18),
        inset 0 1px 0 rgba(251, 146, 60, 0.14);
}

.tag-hot {
    background: rgba(251, 146, 60, 0.15) !important;
    color: #fb923c !important;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

/* ── Tutorial rows ── */
.tut-row {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.15s ease, background 0.15s ease;
    cursor: pointer;
}
.tut-row:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: #181818;
}
.tut-row:active {
    transform: scale(0.99);
    transition: transform 0.08s ease !important;
}
.tut-row-icon {
    transition: background 0.3s ease, color 0.3s ease;
}
.tut-row:hover .tut-row-icon {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}
.tut-row:hover .tut-row-arrow {
    color: #ffffff;
    transform: translateX(3px);
}

/* ── Staff cards ── */
.staff-card {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.06);
    width: 220px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.staff-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.staff-avatar-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.03));
    flex-shrink: 0;
}
.staff-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0a0a0a;
    display: block;
}

/* ── Modal ── */
.modal-overlay {
    transition: opacity 0.3s ease;
}
.modal-overlay.open {
    opacity: 1 !important;
    pointer-events: all !important;
}
.modal-overlay.open .modal-box {
    transform: scale(1) !important;
}

/* ── License FAQ accordion ── */
.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
    padding: 1rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.2s;
}
.faq-question:hover { color: #d4d4d8; }
.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: #52525b;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: #ffffff; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.2s ease;
    color: #71717a;
    font-size: 0.8rem;
    line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 200px; padding-bottom: 1rem; }

/* ── Animations ── */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes ripple-out {
    0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.35; }
    100% { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}

@keyframes rowFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.news-slide        { display: none; }
.news-slide.active { display: block; animation: fadeIn 0.5s ease-in-out; }

.click-ripple {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%) scale(1);
    animation: ripple-out 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ─────────────────────────────────────────
   MOBILE BLOCK OVERLAY
   ───────────────────────────────────────── */

.mobile-block-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0a0a0a;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: mb-fade-in 0.5s ease both;
}

@keyframes mb-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.mobile-block-overlay.dismissing {
    animation: mb-fade-out 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes mb-fade-out {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(1.04); }
}

.mobile-block-card {
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.03),
        0 32px 80px rgba(0,0,0,0.6),
        0 8px 24px rgba(0,0,0,0.4);
    animation: mb-card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

@keyframes mb-card-in {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mobile-block-logo {
    height: 32px;
    width: auto;
    margin: 0 auto 2rem;
    display: block;
    pointer-events: none;
    user-select: none;
    opacity: 0.85;
}

.mobile-block-icon {
    width: 60px;
    height: 60px;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.4rem;
    color: #ffffff;
}

.mobile-block-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 0.625rem;
}

.mobile-block-desc {
    font-size: 0.8rem;
    color: #52525b;
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.mobile-block-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.07), transparent);
    margin-bottom: 1.75rem;
}

.mobile-block-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #ffffff;
    color: #0a0a0a;
    border: none;
    border-radius: 0.875rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.mobile-block-btn:hover {
    background: #e4e4e7;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255,255,255,0.08);
}

.mobile-block-btn:active {
    transform: scale(0.98);
}

.mobile-block-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    color: #a1a1aa;
    text-decoration: none;
    border-radius: 0.875rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mobile-block-discord:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
    color: #ffffff;
}

/* ─────────────────────────────────────────
   MAINTENANCE PAGE
   ───────────────────────────────────────── */
body.maintenance-page {
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mt-orb {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: mt-pulse-orb 6s ease-in-out infinite;
}
@keyframes mt-pulse-orb {
    0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.5; }
    50%       { transform: translate(-50%, -50%) scale(1.15); opacity: 1;   }
}

.mt-card-wrapper {
    position: relative;
    z-index: 10;
    max-width: 560px;
    width: 90%;
    animation: mt-card-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes mt-card-in {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mt-card-shadow {
    position: absolute;
    inset: 0;
    border-radius: 2.5rem;
    pointer-events: none;
    z-index: -1;
    box-shadow:
        0  2px   6px rgba(0,0,0,0.25),
        0  6px  16px rgba(0,0,0,0.30),
        0 16px  40px rgba(0,0,0,0.35),
        0 32px  80px rgba(0,0,0,0.35),
        0 56px 120px rgba(0,0,0,0.28),
        0 80px 160px rgba(0,0,0,0.18);
}

.mt-card {
    background: #0f0f0f;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 2.5rem;
    padding: 4rem 4.5rem;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.mt-logo {
    height: 36px;
    width: auto;
    margin: 0 auto 2.5rem;
    display: block;
    pointer-events: none;
    user-select: none;
    opacity: 0.9;
}

.mt-icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 1.25rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 1.5rem;
    color: #fff;
}

.mt-icon-badge i {
    display: inline-block;
    will-change: transform;
}

.mt-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
}

.mt-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    flex-shrink: 0;
    animation: mt-blink 1.6s ease-in-out infinite;
}
@keyframes mt-blink {
    0%, 100% { opacity: 1;   box-shadow: 0 0 0 0   rgba(245,158,11,0.45); }
    50%       { opacity: 0.4; box-shadow: 0 0 0 5px rgba(245,158,11,0);    }
}

.mt-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
}

.mt-subtitle {
    font-size: 0.875rem;
    color: #52525b;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.mt-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.08), transparent);
    margin: 2rem 0;
}

.mt-bottom-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #a1a1aa;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mt-btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.mt-btn-discord:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}
