:root {
    /* Paleta "El Archivo" (Dark Academia / Místico) */
    --bg-deep: #0a0b10;
    --bg-panel: rgba(18, 20, 28, 0.7);
    --gold-primary: #d4af37;
    --gold-dim: #8b7332;
    --gold-glow: rgba(212, 175, 55, 0.3);
    --text-main: #e4dfd5;
    --text-muted: #8b8e98;
    --border-color: rgba(212, 175, 55, 0.2);
    
    --font-title: 'Cinzel', serif;
    --font-body: 'Lora', serif;
    --font-mono: 'Fira Code', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Material Symbols Base */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-deep);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(212, 175, 55, 0.05), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(50, 70, 100, 0.1), transparent 40%);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Efecto de partículas / textura */
#ambient-dust {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- Tipografía --- */
h1, h2, h3 {
    font-family: var(--font-title);
    font-weight: 700;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 10px;
}

.title-gold {
    font-size: clamp(3rem, 6vw, 5rem);
    background: linear-gradient(to right, #fff, var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-shadow: 0 0 40px var(--gold-glow);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-style: italic;
    max-width: 600px;
}

/* --- Paneles (Glassmorphism Oscuro) --- */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(212, 175, 55, 0.02);
}

.hero {
    padding: 60px 40px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.side-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.panel {
    padding: 30px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.panel-header h2 {
    font-size: 1.8rem;
    color: var(--gold-primary);
}

.panel-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--gold-dim);
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Estado del Stream --- */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-muted);
}
.pulse-dot.live {
    background-color: #ef4444; /* Rojo para live */
    box-shadow: 0 0 10px #ef4444;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* --- Botones --- */
.btn-gold {
    background: transparent;
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    padding: 12px 24px;
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 0 0 var(--gold-primary);
}

.btn-gold:hover {
    box-shadow: inset 0 50px 0 0 var(--gold-primary), 0 0 20px var(--gold-glow);
    color: var(--bg-deep);
}

/* --- Listas Dinámicas (La Rampa, Leaderboard, Horarios) --- */
.rampa-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game-tome {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border-left: 3px solid var(--gold-dim);
    border-radius: 4px 8px 8px 4px;
    transition: transform 0.2s, border-color 0.2s;
}

.game-tome:hover {
    transform: translateX(5px);
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.05);
}

.tome-cover {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.8);
    background: #111;
}

.tome-info {
    flex: 1;
}

.tome-title {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 5px;
}

.tome-meta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}
.tome-cost {
    color: var(--gold-dim);
}

/* Horarios */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}
.schedule-day {
    font-family: var(--font-title);
    color: var(--gold-primary);
}
.schedule-time {
    font-family: var(--font-mono);
    color: var(--text-main);
}

/* Leaderboard */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rank-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: rgba(255,255,255,0.02);
    border-radius: 6px;
}
.rank-pos {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--text-muted);
    width: 25px;
    text-align: center;
}
.rank-1 .rank-pos { color: var(--gold-primary); text-shadow: 0 0 10px var(--gold-glow); font-size: 1.4rem;}
.rank-2 .rank-pos { color: #c0c0c0; }
.rank-3 .rank-pos { color: #cd7f32; }

.rank-name {
    flex: 1;
    font-weight: 600;
}
.rank-score {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--gold-dim);
}

.loading-text {
    font-style: italic;
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
}

/* --- Animaciones de Entrada --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .grid-layout { grid-template-columns: 1fr; }
    .hero { text-align: center; justify-content: center; }
    .subtitle { margin: 0 auto; }
}

.tome-siguiente {
    border: 2px solid var(--gold-primary) !important;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.15) 0%, rgba(0,0,0,0.4) 100%) !important;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.25), inset 0 0 15px rgba(212, 175, 55, 0.1) !important;
    transform: scale(1.02);
    transform-origin: left center;
    margin-bottom: 20px;
}

.tome-siguiente:hover {
    transform: scale(1.04) translateX(5px);
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.4), inset 0 0 20px rgba(212, 175, 55, 0.2) !important;
}

.sello-siguiente {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold-primary), #ffd700);
    color: var(--bg-deep);
    font-family: var(--font-title);
    font-weight: 900;
    font-size: 0.65rem;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.6), 0 0 5px rgba(255, 215, 0, 0.8) inset;
    border: 1px solid #fff;
    white-space: nowrap;
    z-index: 10;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Modales Web */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-deep);
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    border: 1px solid var(--gold-primary);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.modal-header h3 {
    color: var(--gold-primary);
    margin: 0;
}
.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}
.close-btn:hover { color: var(--gold-primary); }

.gold-input {
    width: 100%;
    padding: 10px;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--gold-dim);
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-mono);
    outline: none;
}
.gold-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* --- Navigation Drawer --- */
.drawer-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}
.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}
.nav-drawer {
    position: fixed;
    top: 0; left: -320px;
    width: 300px; height: 100%;
    background: var(--bg-deep);
    z-index: 1000;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-right: 1px solid var(--gold-primary);
}
.nav-drawer.active {
    left: 0;
}
.drawer-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px; margin-bottom: 20px;
}
.drawer-header h3 {
    color: var(--gold-primary);
    margin: 0;
}
.close-drawer {
    background: none; border: none; color: var(--text-muted);
    font-size: 2rem; cursor: pointer; line-height: 1;
}
.close-drawer:hover { color: var(--gold-primary); }

.drawer-nav {
    display: flex; flex-direction: column; gap: 15px;
}
.drawer-btn {
    background: none; border: none; color: var(--text-main);
    font-family: var(--font-heading); font-size: 1.1rem;
    text-align: left; padding: 12px 15px;
    cursor: pointer; border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    border: 1px solid transparent;
}
.drawer-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
}
.drawer-btn.active {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-primary);
    border-color: var(--gold-primary);
    font-weight: bold;
}

/* Steam Cards */
.steam-card {
    position: relative;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.steam-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}
.steam-card-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}
.steam-card-info {
    padding: 10px;
}
.steam-card-title {
    font-family: var(--font-title);
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.steam-card-meta {
    font-size: 0.75rem;
    color: var(--gold-dim);
}

/* Floating Hamburger Button */
.hamburger-btn {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 800;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    color: var(--gold-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5), inset 0 0 10px rgba(212, 175, 55, 0.05);
    transition: all 0.3s ease;
}
.hamburger-btn:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3), inset 0 0 10px rgba(212, 175, 55, 0.1);
    transform: scale(1.05);
}
