/* ==========================================================================
   LOOM VTT — ESTILOS GLOBAIS & DESIGN SYSTEM (ATMOSFERA TÁTICA RPG)
   ========================================================================== */

/* ── FONTES LOCAIS (@font-face) ────────────────────────────────────────── */
@font-face {
    font-family: 'Cinzel';
    src: url('/assets/fonts/Cinzel[wght].woff2') format('woff2');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter[wght].woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('/assets/fonts/JetBrainsMono[wght].woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Crimson Text';
    src: url('/assets/fonts/CrimsonText-Regular.woff2') format('woff2');
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Crimson Text';
    src: url('/assets/fonts/CrimsonText-Regular-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* ── VARIÁVEIS DO SISTEMA DE DESIGN (:root) ────────────────────────────── */
:root {
    --color-canvas: #07080c;
    --color-surface: #0e1017;
    --color-surface-elevated: #141722;
    --color-surface-card: rgba(14, 16, 23, 0.75);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-subtle: rgba(255, 255, 255, 0.04);
    --color-gold: #f59e0b;
    --color-gold-light: #fbbf24;
    --color-gold-glow: rgba(245, 158, 11, 0.15);
    --color-arcane: #38bdf8;
    --color-arcane-glow: rgba(56, 189, 248, 0.15);
    --color-crimson: #ef4444;
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-text-dim: #64748b;

    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --z-header: 40;
    --z-toast: 60;
}

/* ── BASE & ESTRUTURA GERAL ────────────────────────────────────────────── */
html, body {
    overflow-x: clip;
}

body.overflow-x-hidden,
html.overflow-x-hidden,
.overflow-x-hidden {
    overflow-x: clip !important;
}

/* Garante fixação perfeita da barra de navegação superior ao rolar a página */
header.sticky,
header[class*="sticky"] {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
}

/* ── RESPONSIVIDADE FLUIDA DO MENU SUPERIOR (ADAPTAÇÃO ELEGANTE DE 1024px A 4K) ── */
header nav {
    min-width: 0;
}

header nav a,
header nav a span {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* 1. Telas Muito Grandes / Ultra-Wide / 4K / QHD (>= 1920px):
   Menu amplo, elegante, com tipografia legível e imponente, espaçamento generoso */
@media (min-width: 1920px) {
    header > div {
        padding-left: clamp(2rem, 3vw, 4rem) !important;
        padding-right: clamp(2rem, 3vw, 4rem) !important;
        gap: 2rem !important;
    }
    header nav {
        gap: clamp(1.4rem, 1.6vw, 2.2rem) !important;
        letter-spacing: 0.12em !important;
        font-size: clamp(13px, 0.75vw, 14.5px) !important;
    }
    header nav a {
        font-size: clamp(13px, 0.75vw, 14.5px) !important;
        letter-spacing: 0.12em !important;
    }
    header #nav-user-area {
        gap: 1rem !important;
    }
    header #nav-user-area a,
    header #nav-user-area button {
        padding-left: 1.1rem !important;
        padding-right: 1.1rem !important;
        padding-top: 0.55rem !important;
        padding-bottom: 0.55rem !important;
        font-size: 12px !important;
    }
}

/* 2. Telas Grandes / Full HD Padrão (1440px até 1919px):
   Tamanho de fonte perfeito para monitores 1080p, gaps arejados e bem proporcionados */
@media (min-width: 1440px) and (max-width: 1919px) {
    header > div {
        padding-left: clamp(1.25rem, 1.8vw, 2rem) !important;
        padding-right: clamp(1.25rem, 1.8vw, 2rem) !important;
        gap: clamp(0.9rem, 1.2vw, 1.4rem) !important;
    }
    header nav {
        gap: clamp(0.85rem, 1.15vw, 1.35rem) !important;
        letter-spacing: 0.09em !important;
        font-size: clamp(11.5px, 0.82vw, 12.5px) !important;
    }
    header nav a {
        font-size: clamp(11.5px, 0.82vw, 12.5px) !important;
        letter-spacing: 0.09em !important;
    }
    header #nav-user-area {
        gap: 0.7rem !important;
    }
    header #nav-user-area a,
    header #nav-user-area button {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        font-size: 11px !important;
    }
}

/* 3. Telas Médias / Laptops Standard (1280px até 1439px, ex: 1280x720, 1366x768):
   Tamanho equilibrado (10.5px a 11.2px) com espaçamento otimizado para não quebrar linhas */
@media (min-width: 1280px) and (max-width: 1439px) {
    header > div {
        padding-left: clamp(0.75rem, 1.2vw, 1.25rem) !important;
        padding-right: clamp(0.75rem, 1.2vw, 1.25rem) !important;
        gap: clamp(0.5rem, 0.8vw, 0.9rem) !important;
    }
    header nav {
        gap: clamp(0.5rem, 0.85vw, 0.85rem) !important;
        letter-spacing: 0.06em !important;
        font-size: clamp(10.2px, 0.8vw, 11.2px) !important;
    }
    header nav a {
        font-size: clamp(10.2px, 0.8vw, 11.2px) !important;
        letter-spacing: 0.06em !important;
    }
    header #nav-user-area {
        gap: clamp(0.4rem, 0.55vw, 0.6rem) !important;
    }
    header #nav-user-area a,
    header #nav-user-area button {
        padding-left: 0.6rem !important;
        padding-right: 0.6rem !important;
        padding-top: 0.45rem !important;
        padding-bottom: 0.45rem !important;
        font-size: 10.5px !important;
    }
}

/* 4. Telas Desktop Compactas / Tablets Paisagem (1024px até 1279px):
   Design tático compacto (9.5px a 10px), gap enxuto, sem quebra de palavras */
@media (min-width: 1024px) and (max-width: 1279px) {
    header > div {
        padding-left: 0.6rem !important;
        padding-right: 0.6rem !important;
        gap: 0.35rem !important;
    }
    header nav {
        gap: 0.4rem !important;
        letter-spacing: 0.04em !important;
        font-size: 9.8px !important;
    }
    header nav a {
        font-size: 9.8px !important;
        letter-spacing: 0.04em !important;
    }
    header #nav-user-area {
        gap: 0.3rem !important;
    }
    header #nav-user-area a,
    header #nav-user-area button {
        padding-left: 0.45rem !important;
        padding-right: 0.45rem !important;
        padding-top: 0.4rem !important;
        padding-bottom: 0.4rem !important;
        font-size: 9.8px !important;
    }
}

body {
    background-color: var(--color-canvas);
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Padrão de Grade Tática Suave no Fundo */
.bg-grid-pattern {
    background-color: var(--color-canvas);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(30, 36, 53, 0.45) 0%, transparent 70%),
        radial-gradient(rgba(212, 175, 55, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 32px 32px;
}

/* ── ACESSIBILIDADE & FOCO (:focus-visible) ────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--color-gold) !important;
    outline-offset: 3px !important;
    border-radius: 4px;
}

/* Skip link para navegação por teclado */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--color-gold);
    color: #090b10;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    z-index: 100;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

/* ── COMPONENTES & SUPERFÍCIES ─────────────────────────────────────────── */
.glass-header {
    background-color: rgba(9, 11, 16, 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.glass-card {
    background-color: var(--color-surface-card);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

/* Moldura Tática de HUD do Produto */
.tactical-hud-frame {
    position: relative;
    border: 1px solid var(--color-border);
    background: linear-gradient(180deg, rgba(22, 27, 39, 0.8) 0%, rgba(13, 16, 23, 0.95) 100%);
    box-shadow: 
        0 20px 40px -15px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 50px -10px var(--color-gold-glow);
    border-radius: 1rem;
    overflow: hidden;
}

.tactical-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    pointer-events: none;
}

.tactical-corner-tl { top: 0; left: 0; border-top: 2px solid var(--color-gold); border-left: 2px solid var(--color-gold); }
.tactical-corner-tr { top: 0; right: 0; border-top: 2px solid var(--color-gold); border-right: 2px solid var(--color-gold); }
.tactical-corner-bl { bottom: 0; left: 0; border-bottom: 2px solid var(--color-gold); border-left: 2px solid var(--color-gold); }
.tactical-corner-br { bottom: 0; right: 0; border-bottom: 2px solid var(--color-gold); border-right: 2px solid var(--color-gold); }

/* Aura de tocha na iluminação */
.torch-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.04) 45%, transparent 70%);
    animation: torch-ambience 6s ease-in-out infinite alternate;
}

/* ── ANIMAÇÕES DE GPU (SEM JANK) ───────────────────────────────────────── */
@keyframes torch-ambience {
    0% {
        opacity: 0.4;
        transform: scale(0.96) translate3d(0, 0, 0);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.04) translate3d(2px, -3px, 0);
    }
    100% {
        opacity: 0.45;
        transform: scale(1.0) translate3d(-2px, 2px, 0);
    }
}

@keyframes tactical-reveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-item {
    animation: tactical-reveal 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--i, 0) * 90ms);
}

/* ── MEDIA & MECHANICS SPOTLIGHT TABS ───────────────────────────────────── */
.mechanics-tab-btn {
    background-color: #11141d;
    border-color: #1e2435;
    color: #94a3b8;
}

.mechanics-tab-btn:hover {
    background-color: #161b27;
    border-color: #2e374f;
    color: #f1f5f9;
}

.mechanics-tab-btn.active {
    background-color: #1a2030;
    border-color: var(--color-gold);
    color: #ffffff;
    box-shadow: 0 0 15px -3px var(--color-gold-glow);
}

/* ── SCROLLBAR ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-canvas);
}

::-webkit-scrollbar-thumb {
    background: #1e2435;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2e374f;
}

/* ── RECURSOS E BANNERS HISTÓRICOS ─────────────────────────────────────── */
.banner-map { background-image: url('/assets/img/general-banners/map-banner.png'); }
.banner-lights { background-image: url('/assets/img/general-banners/lights-banner.png'); }
.banner-dice { background-image: url('/assets/img/general-banners/dice-banner.png'); }
.banner-cards { background-image: url('/assets/img/general-banners/cards-banner.png'); }
.banner-journal { background-image: url('/assets/img/general-banners/journal-banner.png'); }
.banner-macro { background-image: url('/assets/img/general-banners/macro-banner.png'); }
.banner-portal { background-image: url('/assets/img/general-banners/portal-banner.png'); }
.banner-ruins { background-image: url('/assets/img/general-banners/ruins-banner.png'); }

.cat-btn {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.15s ease-in-out;
    user-select: none;
    flex-shrink: 0;
}

/* ── LINE CLAMP UTILITÁRIOS ────────────────────────────────────────────── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── COMPONENTES BEM: GAMING PORTAL ARCHITECTURE ──────────────────────── */
:root {
    --loom-obsidian: #04060a;
    --loom-panel: #0a0d16;
    --loom-panel-hover: #121726;
    --loom-border-metallic: rgba(255, 255, 255, 0.1);
    --loom-border-gold: rgba(245, 158, 11, 0.35);
    --loom-gold: #f59e0b;
    --loom-gold-bright: #fbbf24;
    --loom-gold-glow: rgba(245, 158, 11, 0.2);
    --loom-cyan: #38bdf8;
    --loom-cyan-glow: rgba(56, 189, 248, 0.2);
}

/* Moldura e Cantos de HUD Gamer */
.game-hud-frame {
    position: relative;
    border: 1px solid var(--loom-border-metallic);
    background: linear-gradient(135deg, rgba(10, 13, 22, 0.85) 0%, rgba(4, 6, 10, 0.95) 100%);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.game-hud-frame::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--loom-gold);
    border-left: 2px solid var(--loom-gold);
    pointer-events: none;
}

.game-hud-frame::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid var(--loom-gold);
    border-right: 2px solid var(--loom-gold);
    pointer-events: none;
}

/* Badges e Tags Técnicas Gamer */
.game-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid var(--loom-border-gold);
    color: var(--loom-gold-bright);
}

.game-badge--cyan {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
}

.game-badge--emerald {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

/* Botão Gamer Principal com Brilho Metálico */
.game-btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #030712;
    background: linear-gradient(180deg, #fde68a 0%, #f59e0b 60%, #d97706 100%);
    border: 1px solid #fbbf24;
    border-radius: 0.5rem;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    cursor: pointer;
}

.game-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    filter: brightness(1.05);
}

.game-btn-primary:active {
    transform: translateY(0);
}

.game-btn-secondary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
}

.game-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* Cards de Especificações de Sistema */
.game-spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8125rem;
}

.game-spec-row:last-child {
    border-bottom: none;
}

.game-spec-label {
    color: #94a3b8;
    font-weight: 600;
}

.game-spec-value {
    color: #ffffff;
    font-family: var(--font-mono);
    text-align: right;
}

/* Transições Suaves GPU */
.hero-slide {
    will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .torch-glow {
        animation: none !important;
        opacity: 0.5 !important;
    }
}

/* ==========================================================================
   STUDIO AAA DESIGN SYSTEM (PARADOX / WORLD OF DARKNESS ADAPTATION)
   ========================================================================== */
.font-cinzel { font-family: 'Cinzel', serif, Georgia; }
.font-story { font-family: 'Crimson Text', serif, Georgia; }

.studio-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #05070b;
    font-weight: 800;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.35);
    transition: all 0.25s ease;
    border: 1px solid rgba(251, 191, 36, 0.6);
}

.studio-btn-primary:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.6);
    transform: translateY(-1px);
    color: #000;
}

.studio-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f1f5f9;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.studio-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fbbf24;
    transform: translateY(-1px);
}

/* Vitrine de Cartões de Descoberta (Padrão Paradox "What Are You?") */
.discovery-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background-color: #0e121b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.discovery-card:hover {
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.9), 0 0 30px rgba(245, 158, 11, 0.15);
}

.discovery-card:hover .discovery-arrow {
    transform: translateX(6px);
    color: #fbbf24;
}

.discovery-card:hover .discovery-img {
    transform: scale(1.05);
}

/* ==========================================================================
   PARADOX INTERACTIVE / WORLD OF DARKNESS STUDIO ARCHITECTURE
   ========================================================================== */
.pdx-btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background-color: #ffffff;
    color: #000000;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 0;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}
.pdx-btn-solid:hover {
    background-color: #e2e8f0;
    transform: translateY(-1px);
}

.pdx-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.75);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 0;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}
.pdx-btn-outline:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-1px);
}

.pdx-card {
    background-color: #111111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.pdx-card:hover {
    background-color: #181818;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}
.pdx-card:hover .pdx-arrow {
    transform: translateX(4px);
    color: #ffffff;
}

/* ── STUDIO DASHBOARD & LAUNCHER SYSTEM (PARADOX / DARK NORDIC) ── */
.studio-card {
    background: linear-gradient(180deg, rgba(14, 18, 26, 0.95) 0%, rgba(8, 10, 15, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    transition: all 0.25s ease;
}
.studio-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
}
.studio-card-gold {
    background: linear-gradient(180deg, rgba(20, 16, 10, 0.95) 0%, rgba(10, 8, 5, 0.98) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 25px rgba(245, 158, 11, 0.06);
}

.studio-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #05070b;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
    border-radius: 0.5rem;
}
.studio-btn-primary:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
    transform: translateY(-1px);
    color: #000000;
}

.studio-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f1f5f9;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-radius: 0.5rem;
}
.studio-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fbbf24;
    transform: translateY(-1px);
}

.studio-input {
    background-color: #05070a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.75rem;
    color: #ffffff;
    transition: all 0.2s ease;
}
.studio-input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.font-cinzel {
    font-family: 'Cinzel', serif, Georgia !important;
}

/* ── RESPONSIVE GUARDS & UTILITY PRECEDENCE (MOBILE <640px) ──────────────── */
@media (max-width: 639px) {
    /* Ensure hidden utility class forcefully hides components on mobile */
    .pdx-btn-solid.hidden,
    .pdx-btn-outline.hidden,
    #nav-user-area > a.hidden,
    #nav-user-area > button.hidden {
        display: none !important;
    }

    /* Avoid forced horizontal overflow on ultra-narrow mobile viewports */
    .pdx-btn-solid,
    .pdx-btn-outline {
        max-width: 100%;
        white-space: normal;
    }
}

/* Painéis: menu recolhível e conteúdo fluido em telas menores que o desktop. */
@media (max-width: 1023px) {
    body.admin-dashboard > aside,
    body.partner-dashboard > aside,
    body.account-dashboard > aside {
        position: static;
        top: auto;
    }

    body.admin-dashboard > aside > div:first-child,
    body.partner-dashboard > aside > div:first-child {
        padding: 0.75rem 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    body.admin-dashboard #admin-mobile-menu:not(.hidden),
    body.partner-dashboard #partner-mobile-menu:not(.hidden) {
        padding: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 0.75rem;
        background: rgba(0, 0, 0, 0.3);
    }

    body.account-dashboard #dash-mobile-menu:not(.hidden) {
        margin-top: 0.75rem;
        padding: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 0.75rem;
        background: rgba(0, 0, 0, 0.3);
    }

    body.admin-dashboard > aside > div:first-child > #admin-mobile-menu,
    body.partner-dashboard > aside > div:first-child > #partner-mobile-menu {
        margin-top: 0;
    }

    body.admin-dashboard #admin-mobile-menu nav,
    body.partner-dashboard #partner-mobile-menu nav,
    body.account-dashboard #dash-mobile-menu nav {
        display: grid;
        gap: 0.25rem;
        margin: 0;
        overflow: visible;
    }

    body.admin-dashboard #admin-mobile-menu nav > *,
    body.partner-dashboard #partner-mobile-menu nav > *,
    body.account-dashboard #dash-mobile-menu nav > * {
        min-width: 0;
        margin-top: 0;
    }

    body.admin-dashboard #admin-mobile-menu nav > button,
    body.partner-dashboard #partner-mobile-menu nav > button,
    body.partner-dashboard #partner-mobile-menu nav > a,
    body.account-dashboard #dash-mobile-menu nav > button {
        width: 100%;
        min-height: 2.75rem;
        padding: 0.65rem 0.75rem;
        white-space: normal;
        text-align: left;
    }

    body.admin-dashboard #admin-mobile-menu nav > div,
    body.partner-dashboard #partner-mobile-menu nav > div {
        padding: 0.5rem 0.25rem 0.25rem;
    }

    body.admin-dashboard > aside > div:last-child,
    body.partner-dashboard > aside > div:last-child {
        padding: 0.75rem 1rem;
    }

    body.admin-dashboard header,
    body.partner-dashboard header,
    body.account-dashboard header {
        height: auto;
        min-height: 4rem;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    body.admin-dashboard header > div:first-child,
    body.partner-dashboard header > div:first-child {
        min-width: 0;
        flex: 1 1 100%;
    }

    body.admin-dashboard #topbar-view-title,
    body.partner-dashboard #topbar-partner-title {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    body.admin-dashboard main,
    body.partner-dashboard main,
    body.account-dashboard main {
        padding: 1rem;
        gap: 1.25rem;
    }

    body.admin-dashboard main > *,
    body.partner-dashboard main > *,
    body.account-dashboard main > * {
        min-width: 0;
    }

    body.admin-dashboard .overflow-x-auto,
    body.partner-dashboard .overflow-x-auto,
    body.account-dashboard .overflow-x-auto {
        width: 100%;
        max-width: 100%;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    body.admin-dashboard .overflow-x-auto > table,
    body.partner-dashboard .overflow-x-auto > table,
    body.account-dashboard .overflow-x-auto > table {
        min-width: 600px;
    }

    body.account-dashboard #dash-mobile-menu nav > button {
        min-height: 2.75rem;
    }

    body.account-dashboard #dash-sidebar-footer .w-full.space-y-2 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    body.account-dashboard #dash-sidebar-footer .w-full.space-y-2 > * {
        min-width: 0;
        min-height: 2.75rem;
        margin-top: 0;
        white-space: normal;
    }
}

/* ── BARRA DE NAVEGAÇÃO PARADOX / WORLD OF DARKNESS ─────────────────────── */
.pdx-nav {
    display: none;
    align-items: center;
    height: 100%;
    font-weight: 700;
    text-transform: uppercase;
    color: #a3a3a3;
    font-size: 11px;
    letter-spacing: 0.1em;
    gap: 0.875rem;
}

@media (min-width: 1024px) {
    .pdx-nav {
        display: flex;
    }
}

@media (min-width: 1280px) {
    .pdx-nav {
        font-size: 12px;
        letter-spacing: 0.12em;
        gap: 1.25rem;
    }
}

@media (min-width: 1536px) {
    .pdx-nav {
        letter-spacing: 0.14em;
        gap: 1.75rem;
    }
}

.pdx-nav-item {
    display: inline-flex;
    align-items: center;
    height: 100%;
    position: relative;
    white-space: nowrap;
    color: #a3a3a3;
    transition: color 0.15s ease;
    cursor: pointer;
}

.pdx-nav-item:hover {
    color: #ffffff;
}

.pdx-nav-item .nav-text {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding-top: 4px;
    padding-bottom: 4px;
}

/* Indicador ativo colado diretamente ao texto (distância exata e responsiva de 3px) */
.pdx-nav-item.active {
    color: #ffffff;
}

.pdx-nav-item.active .nav-text::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #ffffff;
    border-radius: 1px;
}

.pdx-nav-item.active-amber {
    color: #ffffff;
}

.pdx-nav-item.active-amber .nav-text::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #fbbf24;
    border-radius: 1px;
}

/* Hover sutil no traço acompanhando o texto */
.pdx-nav-item:not(.active):not(.active-amber):hover .nav-text::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.35);
    border-radius: 1px;
}


/* Avatar oficial do criador: proporcao quadrada estrita 128x128 */
.creator-avatar-box {
    width: 128px !important;
    height: 128px !important;
    min-width: 128px !important;
    min-height: 128px !important;
    max-width: 128px !important;
    max-height: 128px !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
}

/* ── Acessibilidade mobile: alvos de toque ≥ 44px sem alterar o layout ── */
.carousel-dot { position: relative; transition: background-color 0.3s ease; }
.carousel-dot::before { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
footer li > a { position: relative; }
footer li > a::before { content: ""; position: absolute; inset: -14px -10px; }
#mobile-menu a { display: flex; align-items: center; min-height: 44px; }
