/* Generado por season.js a partir de: style.css, announcements.css, commands.css, reviews.css, rpg.css */
:root {
    /* Paleta inspirada en Kanade / 25-ji Nightcord de. — azules de medianoche,
       un acento helado tipo luz de luna, nada de morado genérico de SaaS. */
    --bg: #0c0805;
    --bg-glow: radial-gradient(ellipse 900px 500px at 50% -10%, rgba(255, 138, 31, 0.10), transparent 60%);
    --surface: #18100a;
    --surface-raised: #22160d;
    --border: #3a2413;
    --text: #fff3e6;
    --text-muted: #a89078;
    --accent: #ff8a1f;
    --accent-soft: rgba(255, 138, 31, 0.14);
    --accent-hover: #ffa64d;
    --accent-text: #1a0d02;
    --moon: #ffd9a8;
    --green: #74fc66;
    --purple: #ff6028;
    --orange: #f3ab3c;
    --pink: #ffd08a;
    --danger: #ff6b7a;
    /* Colores de Kanade (rosa) y de Nightcord (morado), aclarados para leerse sobre fondo oscuro */
    --kanade: #ffaa46;
    --nightcord: #ff6028;
    --radius: 16px;
}
body {
    margin: 0;
    background: linear-gradient(180deg, #0a0604 0%, #0d0805 45%, var(--bg) 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100vh;
}
.btn-primary {
    background: linear-gradient(180deg, var(--accent-hover), var(--accent));
    color: var(--accent-text);
    box-shadow: 0 0 0 1px rgba(255, 138, 31, 0.35), 0 8px 24px -8px rgba(255, 138, 31, 0.55);
}
.bg-aurora-1 { width: 620px; height: 420px; top: -160px; left: -120px; background: rgba(200, 84, 12, 0.55); }
.bg-aurora-2 { width: 560px; height: 380px; bottom: -180px; right: -100px; background: rgba(120, 34, 10, 0.4); animation-delay: -9s; }
.bg-aurora-3 { width: 480px; height: 320px; top: 30%; left: 38%; background: rgba(255, 138, 31, 0.14); animation-delay: -17s; }
.bg-star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(255, 217, 168, 0.8);
    animation: star-twinkle var(--tw, 4s) ease-in-out infinite;
    animation-delay: var(--tw-d, 0s);
}
.login-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 75% 65% at 50% 45%, transparent 45%, rgba(12, 8, 5, 0.85) 100%);
    pointer-events: none;
}
.login-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    width: 100%;
    max-width: 1120px;
    padding: 8px 8px 8px 16px;
    background: rgba(24, 16, 10, 0.72);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 999px;
}
.bot-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 0 14px rgba(255, 138, 31, 0.45);
}
.login-mascot {
    font-size: 22px;
    filter: drop-shadow(0 0 10px rgba(255, 138, 31, 0.5));
}
.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(255, 138, 31, 0.25);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.hero-actions .btn-ghost { color: var(--text); background: rgba(24, 16, 10, 0.6); }
.hero-glow {
    position: absolute;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 138, 31, 0.32), rgba(255, 96, 40, 0.12) 45%, transparent 70%);
    filter: blur(20px);
    animation: glow-pulse 6s ease-in-out infinite;
}
.hero-character {
    position: relative;
    z-index: 2;
    height: 88%;
    width: auto;
    filter: drop-shadow(0 0 24px rgba(255, 138, 31, 0.28)) drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
    animation: character-float 7s ease-in-out infinite;
    user-select: none;
    -webkit-user-drag: none;
}
.hero-spark {
    position: absolute;
    z-index: 1;
    color: var(--accent);
    filter: drop-shadow(0 0 8px rgba(255, 138, 31, 0.7));
    animation: avatar-twinkle 3s ease-in-out infinite;
}
.float-card {
    position: absolute;
    z-index: 3;
    width: 230px;
    padding: 14px 16px;
    background: rgba(24, 16, 10, 0.82);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 138, 31, 0.22);
    border-radius: 16px;
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.7), 0 0 30px -12px rgba(255, 138, 31, 0.35);
    animation: card-float 6s ease-in-out infinite;
}
.float-card p { margin: 0; font-size: 0.82rem; line-height: 1.45; color: #d6c2ad; }
.float-card-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1px solid rgba(255, 138, 31, 0.3);
    font-size: 0.95rem;
}
.float-card.mini-widget { background: rgba(24, 16, 10, 0.82); }
.app-sidebar {
    position: sticky;
    top: 16px;
    width: 272px;
    flex-shrink: 0;
    height: calc(100vh - 32px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 18px;
    background: rgba(24, 16, 10, 0.72);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.8);
}
.app-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 96, 40, 0.16), rgba(255, 138, 31, 0.08));
    border: 1px solid rgba(255, 96, 40, 0.3);
}
.app-empty {
    text-align: center;
    padding: 40px 20px;
    border: 1px dashed var(--border);
    border-radius: 20px;
    background: rgba(24, 16, 10, 0.5);
}
.app-empty-icon { font-size: 2.4rem; display: block; margin-bottom: 6px; filter: drop-shadow(0 6px 14px rgba(255, 170, 70, 0.4)); }
.app-input {
    flex: 1;
    min-width: 0;
    background: rgba(12, 8, 5, 0.7);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 12px;
    color: var(--text);
    font: 0.88rem 'Inter', sans-serif;
}
.stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(34, 22, 13, 0.6);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 11px 14px;
}
.guild-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 18px 18px;
    /* Sin backdrop-filter: con muchas tarjetas a la vez es muy pesado de dibujar */
    background: rgba(24, 16, 10, 0.86);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    animation: card-rise 0.4s ease both;
}
.guild-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 70px;
    background: linear-gradient(135deg, rgba(255, 96, 40, 0.28), rgba(255, 138, 31, 0.18));
    opacity: 0.8;
}
.guild-card:hover { transform: translateY(-4px); border-color: rgba(255, 138, 31, 0.55); box-shadow: 0 16px 40px -18px rgba(255, 138, 31, 0.55); }
.guild-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    background: var(--surface-raised);
    border: 3px solid rgba(18, 12, 7, 0.95);
    box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.7);
}
.guild-icon-initials {
    display: grid;
    place-items: center;
    font-family: 'Baloo 2', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--moon);
    background: linear-gradient(135deg, var(--nightcord), #6b4526);
}
.guild-card:hover .guild-card-cta { background: rgba(255, 138, 31, 0.25); }
.guild-card-invite::before { background: linear-gradient(135deg, rgba(255, 143, 177, 0.22), rgba(255, 96, 40, 0.16)); }
.current-guild {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 96, 40, 0.16), rgba(255, 138, 31, 0.08));
    border: 1px solid rgba(255, 96, 40, 0.3);
}
.system-btn:hover { background: rgba(255, 138, 31, 0.07); color: var(--text); }
.system-btn.active { background: var(--accent-soft); color: var(--moon); border-color: rgba(255, 138, 31, 0.35); }
.system-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(34, 22, 13, 0.8);
    font-size: 0.95rem;
}
.system-btn.active .system-icon { background: rgba(255, 138, 31, 0.2); }
.card {
    /* Sin backdrop-filter: con muchas tarjetas a la vez es muy pesado de dibujar */
    background: rgba(24, 16, 10, 0.86);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    transition: border-color 0.2s ease;
}
.card:focus-within { border-color: rgba(255, 138, 31, 0.45); }
.card textarea, .card input[type="text"] {
    width: 100%;
    background: rgba(12, 8, 5, 0.7);
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 10px 12px;
    color: var(--text);
    font: 0.9rem 'Inter', sans-serif;
    resize: vertical;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.room-card {
    /* Sin backdrop-filter: con muchas tarjetas a la vez es muy pesado de dibujar */
    background: rgba(24, 16, 10, 0.86);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px;
    animation: card-rise 0.35s ease both;
}
.category-btn:hover { background: rgba(255, 138, 31, 0.07); color: var(--text); }
.category-btn.active { background: var(--accent-soft); color: var(--moon); border-color: rgba(255, 138, 31, 0.35); }
.category-count {
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(34, 22, 13, 0.9);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 999px;
    flex-shrink: 0;
}
.category-btn.active .category-count { background: rgba(255, 138, 31, 0.25); color: var(--moon); }
.command-card {
    /* Sin backdrop-filter: con muchas tarjetas a la vez es muy pesado de dibujar */
    background: rgba(24, 16, 10, 0.86);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    animation: card-rise 0.3s ease both;
}
.command-card:hover { border-color: rgba(255, 138, 31, 0.4); }
.command-card.expanded { border-color: rgba(255, 138, 31, 0.55); box-shadow: 0 0 36px -14px rgba(255, 138, 31, 0.5); }
.command-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 1.35rem;
    background: linear-gradient(135deg, rgba(255, 138, 31, 0.28), rgba(255, 96, 40, 0.3));
    border: 1px solid rgba(255, 138, 31, 0.35);
    box-shadow: 0 8px 22px -10px rgba(255, 138, 31, 0.6);
}
.vote-tag { background: rgba(255, 170, 70, 0.16); color: var(--kanade); border: 1px solid rgba(255, 170, 70, 0.35); }
.sub-tag { background: rgba(255, 96, 40, 0.16); color: var(--nightcord); border: 1px solid rgba(255, 96, 40, 0.35); }
.command-toggle {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--accent-soft);
    border: 1px solid rgba(255, 138, 31, 0.3);
    color: var(--accent);
    transition: transform 0.25s ease, background 0.2s ease;
}
.command-usage + .command-usage { margin-top: 18px; padding-top: 18px; border-top: 1px dashed rgba(58, 36, 19, 0.9); }
.code-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 10px 14px;
    border-radius: 13px;
    background: rgba(8, 5, 3, 0.75);
    border: 1px solid var(--border);
}
.copy-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 9px;
    border: 1px solid rgba(255, 138, 31, 0.3);
    background: var(--accent-soft);
    color: var(--moon);
    font: 600 0.78rem 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.copy-btn:hover { background: rgba(255, 138, 31, 0.25); }
.command-details-text { margin-top: 10px; font-size: 0.86rem; line-height: 1.6; color: #d6c2ad; }
.page-transition-spinner {
    font-size: 2.4rem;
    filter: drop-shadow(0 0 20px rgba(255, 138, 31, 0.6));
    animation: page-transition-spin 1.1s ease-in-out infinite;
}
.toast {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-raised);
    border: 1px solid var(--accent);
    color: var(--text);
    padding: 12px 22px;
    border-radius: 11px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 12px 30px -10px rgba(255, 138, 31, 0.35);
    z-index: 100;
}
.faq-search {
    width: 100%;
    height: 52px;
    padding: 0 120px 0 46px;
    background: rgba(24, 16, 10, 0.78);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    font: 500 0.95rem 'Inter', sans-serif;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: rgba(24, 16, 10, 0.7);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    font: 600 0.84rem 'Inter', sans-serif;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.faq-item {
    background: rgba(24, 16, 10, 0.72);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:hover { border-color: rgba(255, 138, 31, 0.35); }
.faq-item.open { border-color: rgba(255, 138, 31, 0.5); box-shadow: 0 0 30px -12px rgba(255, 138, 31, 0.45); }
.faq-q-text mark { background: rgba(255, 138, 31, 0.25); color: inherit; border-radius: 3px; padding: 0 1px; }
.faq-item.open .faq-chevron { transform: rotate(45deg); background: rgba(255, 138, 31, 0.25); }
.faq-a p { margin: 0; padding: 0 20px 18px 56px; color: #d6c2ad; font-size: 0.93rem; }
.faq-side-card {
    position: sticky;
    top: 24px;
    text-align: center;
    padding: 26px 22px;
    border-radius: 20px;
    border: 1px solid rgba(255, 170, 70, 0.3);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 170, 70, 0.2), transparent 60%),
        linear-gradient(180deg, rgba(50, 24, 8, 0.85), rgba(24, 16, 10, 0.85));
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 50px -25px rgba(255, 96, 40, 0.6);
}
.faq-side-emoji { font-size: 3.4rem; filter: drop-shadow(0 8px 18px rgba(255, 170, 70, 0.45)); animation: character-float 4s ease-in-out infinite; }
.chat-launcher {
    position: relative;
    width: 64px;
    height: 64px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--surface);
    cursor: pointer;
    box-shadow: 0 0 0 5px var(--accent-soft), 0 10px 30px -6px rgba(255, 138, 31, 0.55);
    transition: transform 0.2s ease;
}
.chat-orbit-noodle {
    position: absolute;
    top: -4px;
    left: 50%;
    width: 26px;
    height: 26px;
    margin-left: -13px;
    overflow: visible;
    filter: drop-shadow(0 2px 6px rgba(255, 170, 70, 0.7));
    animation: orbit-spin 6s linear infinite reverse;
}
.chat-panel {
    position: absolute;
    right: 0;
    bottom: 84px;
    width: 370px;
    height: 540px;
    max-height: calc(100vh - 130px);
    display: flex;
    flex-direction: column;
    background: rgba(18, 12, 7, 0.96);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 138, 31, 0.28);
    border-radius: 22px;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8), 0 0 40px -15px rgba(255, 138, 31, 0.4);
    overflow: hidden;
    transform-origin: bottom right;
    opacity: 0;
    transform: translateY(12px) scale(0.92);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}
.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 96, 40, 0.14), transparent);
}
.chat-online-dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--green);
    border: 2px solid #120c07;
}
.chat-msg-bot .chat-bubble { background: var(--surface-raised); border: 1px solid var(--border); border-radius: 16px 16px 16px 5px; color: #eadbc9; }
.chat-suggestion {
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 138, 31, 0.35);
    background: var(--accent-soft);
    color: var(--moon);
    font: 500 0.78rem 'Inter', sans-serif;
    cursor: pointer;
}
.site-footer {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 22px;
    padding: 22px 24px 34px;
    border-top: 1px solid rgba(58, 36, 19, 0.7);
    font-size: 0.85rem;
    color: var(--text-muted);
}
.terms-page {
    background: linear-gradient(180deg, #0a0604 0%, #0d0805 40%, var(--bg) 100%);
    background-attachment: fixed;
}
.terms-summary-card {
    padding: 18px;
    border-radius: 16px;
    background: rgba(24, 16, 10, 0.72);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
}
.terms-content section {
    scroll-margin-top: 24px;
    padding: 26px 28px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: rgba(24, 16, 10, 0.72);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
}
.terms-content p, .terms-content li { color: #d6c2ad; font-size: 0.94rem; line-height: 1.65; }
.terms-table td { padding: 11px 14px; border-top: 1px solid var(--border); color: #d6c2ad; vertical-align: top; line-height: 1.55; }
.terms-table tr:hover td { background: rgba(255, 138, 31, 0.04); }
.fb-open-btn { gap: 7px; color: var(--text); border-color: rgba(255, 170, 70, 0.35); background: rgba(255, 170, 70, 0.07); }
.fb-open-btn:hover { border-color: var(--kanade); background: rgba(255, 170, 70, 0.14); }
.fb-overlay {
    --fb-type: var(--accent);
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 16px;
    background: rgba(8, 5, 3, 0.72);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.2s ease;
    overflow-y: auto;
}
.fb-modal {
    position: relative;
    width: min(980px, 100%);
    margin: auto 0; /* centrado, pero si no cabe se puede desplazar hasta arriba */
    background: linear-gradient(180deg, rgba(34, 22, 13, 0.98), rgba(18, 12, 7, 0.98));
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    transform: translateY(14px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    overflow: hidden;
}
.fb-aside { padding: 30px 26px 24px; background: rgba(8, 5, 3, 0.55); border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fb-type-card:hover { border-color: rgba(255, 138, 31, 0.4); transform: translateY(-2px); }
.fb-chip:hover { color: var(--text); border-color: rgba(255, 138, 31, 0.4); }
.fb-input {
    width: 100%; padding: 12px 14px; border-radius: 12px;
    background: rgba(8, 5, 3, 0.6); border: 1px solid var(--border); color: var(--text);
    font: 0.95rem 'Inter', sans-serif; outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fb-input::placeholder { color: #7a6450; }
.fb-drop {
    display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
    padding: 18px; border-radius: 14px; cursor: pointer;
    border: 1.5px dashed #5a3c22; background: rgba(8, 5, 3, 0.35); color: var(--text);
    font-size: 0.9rem; transition: border-color 0.15s ease, background 0.15s ease;
}
.fb-thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #120c07; animation: card-rise 0.25s ease both; }
.status-page {
    /* Estado: colores reservados, siempre con ícono + texto */
    --st-good: #0ca30c;
    --st-warn: #fab219;
    --st-bad: #d03b3b;
    --st-none: #5a3c22;
    /* Series de la gráfica de latencia (validadas para el fondo oscuro) */
    --st-series-1: #e0701a;
    --st-series-2: #c9608c;
}
.st-banner {
    display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 16px;
    background: rgba(24, 16, 10, 0.86); border: 1px solid var(--border);
}
.st-banner.is-good { border-color: color-mix(in srgb, var(--st-good) 55%, transparent); background: color-mix(in srgb, var(--st-good) 10%, rgba(24, 16, 10, 0.9)); }
.st-banner.is-warn { border-color: color-mix(in srgb, var(--st-warn) 55%, transparent); background: color-mix(in srgb, var(--st-warn) 9%, rgba(24, 16, 10, 0.9)); }
.st-banner.is-bad { border-color: color-mix(in srgb, var(--st-bad) 60%, transparent); background: color-mix(in srgb, var(--st-bad) 12%, rgba(24, 16, 10, 0.9)); }
.st-card { padding: 16px 18px; border-radius: 16px; background: rgba(24, 16, 10, 0.86); border: 1px solid var(--border); }
.st-stat { padding: 14px; border-radius: 14px; background: rgba(24, 16, 10, 0.86); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.st-search { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 14px; background: rgba(8, 5, 3, 0.6); border: 1px solid var(--border); margin-bottom: 12px; }
.st-search-result { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; font-size: 0.9rem; background: rgba(24, 16, 10, 0.86); border: 1px solid var(--border); }
.st-shard {
    min-width: 46px; height: 42px; padding: 0 12px; border-radius: 10px; cursor: pointer;
    font: 700 0.95rem 'Inter', sans-serif; background: rgba(24, 16, 10, 0.9); border: 1px solid var(--border);
    transition: transform 0.12s ease, border-color 0.12s ease;
}
.st-dot-mark { stroke: #18100a; stroke-width: 2; }
.st-incident { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(24, 16, 10, 0.86); border: 1px solid var(--border); }
.st-tip {
    position: fixed; z-index: 600; pointer-events: none; max-width: 260px;
    display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px;
    background: #261a10; border: 1px solid var(--border); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.8);
    font-size: 0.8rem; color: var(--text);
}
.sys-card select, .sys-card input[type="number"] {
    width: 100%; background: rgba(12, 8, 5, 0.7); border: 1px solid var(--border); border-radius: 11px;
    padding: 10px 12px; color: var(--text); font: 0.9rem 'Inter', sans-serif; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sys-card select option, .sys-card select optgroup { background: #18100a; color: var(--text); }
.sys-checks { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; padding: 8px; border-radius: 11px; border: 1px solid var(--border); background: rgba(12, 8, 5, 0.5); }
.sys-check:hover { background: rgba(255, 138, 31, 0.07); }
.gd-search { display: flex; align-items: center; gap: 10px; max-width: 560px; margin-top: 18px; padding: 6px 14px; border-radius: 14px; background: rgba(8, 5, 3, 0.6); border: 1px solid var(--border); }
.gd-toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding: 18px 10px 18px 14px;
    scrollbar-width: thin; scrollbar-color: rgba(255, 138, 31, 0.35) transparent; scrollbar-gutter: stable; border-radius: 18px; background: rgba(24, 16, 10, 0.72); border: 1px solid var(--border); }
.gd-toc::-webkit-scrollbar-thumb { background: rgba(255, 138, 31, 0.28); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.gd-toc::-webkit-scrollbar-thumb:hover { background: rgba(255, 138, 31, 0.5); background-clip: padding-box; }
.gd-toc a { position: relative; font-size: 0.98rem; font-weight: 500; color: #d6c2ad; text-decoration: none; padding: 10px 12px; border-radius: 11px; line-height: 1.3; transition: background 0.15s ease, color 0.15s ease; }
.gd-toc a:hover { background: rgba(255, 138, 31, 0.07); color: var(--text); }
.gd-card { scroll-margin-top: 20px; padding: 20px 22px; border-radius: 18px; background: rgba(24, 16, 10, 0.86); border: 1px solid var(--border); transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.gd-card.is-target { border-color: rgba(255, 138, 31, 0.6); box-shadow: 0 0 0 4px var(--accent-soft); }
.gd-badge { display: inline-block; margin-top: 5px; font-size: 0.72rem; font-weight: 700; color: var(--moon); padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(255, 138, 31, 0.35); }
.gd-what { margin: 6px 0 0; line-height: 1.6; color: #e6d5c3; }
.gd-cmd:hover { background: rgba(255, 138, 31, 0.14); }
.gd-cmd[data-copied]::after { content: attr(data-copied); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 3px 8px; border-radius: 6px; background: #261a10; border: 1px solid var(--border); color: var(--text); font: 600 0.72rem 'Inter', sans-serif; white-space: nowrap; }
.terms-lang-select {
    appearance: none; -webkit-appearance: none;
    padding: 8px 32px 8px 14px; border-radius: 999px; cursor: pointer;
    font: 600 0.85rem 'Inter', sans-serif; color: var(--text);
    background: rgba(24, 16, 10, 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a9b6cc' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 13px center;
    border: 1px solid var(--border);
}
.terms-lang-select:hover { border-color: rgba(255, 138, 31, 0.4); }
.terms-lang-select option { background: #18100a; color: var(--text); }
.nav-dd-menu {
    position: absolute; top: calc(100% + 10px); left: 50%; z-index: 30;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
    width: min(560px, calc(100vw - 32px)); padding: 12px;
    background: rgba(34, 22, 13, 0.97); border: 1px solid var(--border); border-radius: 16px;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
    opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.nav-dd-item:hover, .nav-dd-item:focus-visible { background: rgba(255, 138, 31, 0.08); outline: none; }
.anime-search {
    width: 100%; margin: 12px 0 8px; background: rgba(12, 8, 5, 0.7); border: 1px solid var(--border); border-radius: 11px;
    padding: 10px 12px; color: var(--text); font: 0.9rem 'Inter', sans-serif;
}
.an-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); border-radius: 26px; border: 1px solid rgba(255, 138, 31, 0.22); scroll-margin-top: 16px;
    background:
        radial-gradient(ellipse 560px 300px at 0% 0%, rgba(255, 138, 31, 0.14), transparent 70%),
        radial-gradient(ellipse 520px 340px at 100% 100%, rgba(255, 96, 40, 0.16), transparent 70%),
        rgba(18, 12, 7, 0.86);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.an-summary { margin: 0; font-size: 1.05rem; line-height: 1.65; color: #e6d5c3; }
.an-icons img { width: 48px; height: 48px; padding: 5px; border-radius: 14px; background: rgba(8, 5, 3, 0.6); border: 1px solid var(--border); transition: transform 0.18s ease; }
.an-block { display: flex; gap: 12px; padding: 16px; border-radius: 16px; background: rgba(8, 5, 3, 0.55); border: 1px solid var(--border); }
.an-block p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: #d6c2ad; }
.an-card code { padding: 1px 6px; border-radius: 6px; font-size: 0.9em; background: rgba(8, 5, 3, 0.7); border: 1px solid var(--border); color: var(--moon); white-space: nowrap; }
.an-art::before { content: ''; position: absolute; left: 50%; top: 230px; width: 280px; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 138, 31, 0.3), transparent 68%); filter: blur(14px); }
.cm-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: center; gap: 24px; padding: 40px 44px; margin-bottom: 28px;
    border-radius: 28px; border: 1px solid rgba(255, 138, 31, 0.22);
    background:
        radial-gradient(ellipse 560px 300px at 8% 0%, rgba(255, 138, 31, 0.16), transparent 70%),
        radial-gradient(ellipse 480px 320px at 100% 100%, rgba(255, 96, 40, 0.20), transparent 70%),
        rgba(18, 12, 7, 0.82);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.cm-sub { margin: 0; max-width: 520px; font-size: 1.02rem; line-height: 1.6; color: #e6d5c3; }
.cm-search { display: flex; align-items: center; gap: 10px; max-width: 520px; margin-top: 22px; padding: 6px 16px; border-radius: 16px; background: rgba(8, 5, 3, 0.65); border: 1px solid var(--border); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.cm-fact { padding: 6px 13px; border-radius: 999px; background: rgba(8, 5, 3, 0.6); border: 1px solid var(--border); font-size: 0.86rem; color: #e6d5c3; }
.cm-avatar-ring { position: relative; width: 220px; height: 220px; border-radius: 50%; padding: 6px;
    background: conic-gradient(from 210deg, #ff8a1f, #ff6028, #ffd08a, #ff8a1f);
    box-shadow: 0 0 0 10px rgba(255, 138, 31, 0.07), 0 0 70px rgba(255, 138, 31, 0.35); animation: cm-bob 6s ease-in-out infinite; }
.cm-avatar-ring img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #120c07; border: 4px solid #120c07; }
.cm-float { position: absolute; padding: 7px 13px; border-radius: 12px; font: 600 0.84rem 'Inter', sans-serif; color: var(--text); white-space: nowrap;
    background: rgba(18, 12, 7, 0.92); border: 1px solid rgba(255, 138, 31, 0.3); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4); animation: cm-bob 5s ease-in-out infinite; }
.cm-spark-3 { bottom: 76px; left: 4px; font-size: 1.5rem; color: #ffd08a; animation-delay: -2s; }
.cm-side { position: sticky; top: 16px; padding: 18px 14px; border-radius: 20px; background: rgba(24, 16, 10, 0.86); border: 1px solid var(--border); }
.rv-hero { position: relative; overflow: hidden; max-width: 820px; padding: 36px 32px 32px; border-radius: 24px; border: 1px solid rgba(255, 138, 31, 0.22);
    background:
        radial-gradient(ellipse 480px 240px at 10% 0%, rgba(255, 138, 31, 0.16), transparent 70%),
        radial-gradient(ellipse 440px 240px at 100% 100%, rgba(255, 208, 138, 0.14), transparent 70%),
        rgba(18, 12, 7, 0.82);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.rv-chip { padding: 7px 14px; border-radius: 999px; cursor: pointer; font: 600 0.85rem 'Inter', sans-serif; color: #d6c2ad; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.rv-chip:hover { color: var(--text); background: rgba(255, 138, 31, 0.07); }
.rv-chip.active { color: var(--moon); background: var(--accent-soft); border-color: rgba(255, 138, 31, 0.5); }
.rv-card { position: relative; break-inside: avoid; margin: 0 0 18px; padding: 26px 22px 20px; border-radius: 20px; background: rgba(24, 16, 10, 0.86); border: 1px solid var(--border); transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.rv-card:hover { transform: translateY(-3px); border-color: rgba(255, 138, 31, 0.5); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); }
.rv-quote { position: absolute; top: 4px; right: 18px; font: 800 4.6rem/1 'Baloo 2', sans-serif; color: rgba(255, 138, 31, 0.16); pointer-events: none; }
.rv-avatar { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; font: 800 1.05rem 'Baloo 2', sans-serif; color: #1a0d02;
    background: linear-gradient(135deg, hsl(var(--h) 85% 74%), hsl(calc(var(--h) + 45) 85% 66%)); }
.rv-topic { flex-shrink: 0; padding: 4px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; color: var(--moon); border: 1px solid rgba(255, 138, 31, 0.35); white-space: nowrap; }
.rpg-hero { position: relative; overflow: hidden; padding: 34px 32px 30px; border-radius: 24px; border: 1px solid rgba(255, 138, 31, 0.22);
    background:
        radial-gradient(ellipse 520px 260px at 12% 0%, rgba(255, 138, 31, 0.16), transparent 70%),
        radial-gradient(ellipse 460px 260px at 100% 100%, rgba(255, 96, 40, 0.16), transparent 70%),
        rgba(18, 12, 7, 0.82);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.rpg-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 16px 14px; border-radius: 16px; text-decoration: none; color: var(--text);
    background: rgba(8, 5, 3, 0.55); border: 1px solid var(--border); transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease; }
.rpg-stat:hover { transform: translateY(-3px); border-color: rgba(255, 138, 31, 0.55); background: rgba(255, 138, 31, 0.07); }
.rpg-line { margin: 10px 0 0; line-height: 1.55; font-size: 0.92rem; color: #e6d5c3; }
.rpg-note { margin: 12px 0 0; line-height: 1.6; font-size: 0.92rem; color: #e6d5c3; padding: 10px 14px; border-left: 3px solid rgba(255, 138, 31, 0.45); background: rgba(255, 138, 31, 0.05); border-radius: 0 10px 10px 0; }
.rpg-list { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; line-height: 1.55; font-size: 0.92rem; color: #e6d5c3; }
.rpg-kv > div { padding: 10px 14px; border-radius: 12px; background: rgba(8, 5, 3, 0.45); border: 1px solid var(--border); }
.rpg-box { padding: 16px 18px; border-radius: 14px; background: rgba(8, 5, 3, 0.45); border: 1px solid var(--border); }
.rpg-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; cursor: pointer; font: 600 0.85rem 'Inter', sans-serif; color: #d6c2ad; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.rpg-chip:hover { color: var(--text); background: rgba(255, 138, 31, 0.07); }
.rpg-chip.active { color: var(--moon); background: var(--accent-soft); border-color: rgba(255, 138, 31, 0.5); }
.rpg-table tbody tr:hover td { background: rgba(255, 138, 31, 0.04); }
.rpg-stat-chip { display: inline-block; padding: 2px 8px; margin: 1px 2px 1px 0; border-radius: 999px; font-size: 0.76rem; font-weight: 600; white-space: nowrap; color: var(--moon); background: rgba(255, 138, 31, 0.1); border: 1px solid rgba(255, 138, 31, 0.22); }
.rpg-details { margin-top: 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(8, 5, 3, 0.35); }
.rpg-class { scroll-margin-top: 16px; padding: 18px; border-radius: 16px; background: rgba(8, 5, 3, 0.45); border: 1px solid var(--border); display: flex; flex-direction: column; }
.rpg-class:target { border-color: rgba(255, 138, 31, 0.6); box-shadow: 0 0 0 4px var(--accent-soft); }
.rpg-class-desc { margin: 10px 0 0; line-height: 1.55; font-size: 0.92rem; color: #e6d5c3; }
.rpg-bar-label { color: #d6c2ad; }
.rpg-bar-val { font-variant-numeric: tabular-nums; white-space: nowrap; color: #e6d5c3; }
.rpg-skill { padding: 10px 12px; border-radius: 12px; background: rgba(255, 138, 31, 0.05); border: 1px solid rgba(255, 138, 31, 0.16); }
.rpg-skill p { margin: 6px 0 0; line-height: 1.5; font-size: 0.86rem; color: #e6d5c3; }

/* ── Halloween: adornos ── */
html.season-halloween body { background: linear-gradient(180deg, #080403 0%, #120a05 45%, #0c0805 100%); background-attachment: fixed; }
html.season-halloween .hero-glow { background: radial-gradient(circle, rgba(255, 122, 26, 0.42), rgba(160, 30, 10, 0.18) 45%, transparent 70%); }
html.season-halloween .hero-character { height: 96%; filter: drop-shadow(0 0 26px rgba(255, 122, 26, 0.38)) drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6)); }
html.season-halloween .hero-spark { color: #ff8a1f; opacity: 1; font-size: 1.9rem; }
html.season-halloween .btn-primary { box-shadow: 0 8px 26px rgba(255, 122, 26, 0.28); }
.season-ribbon { position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; padding: 9px 16px; font: 600 0.9rem 'Inter', sans-serif; color: #1a0d02; text-decoration: none;
    background: linear-gradient(90deg, #ff8a1f, #ffb04d 50%, #ff8a1f); background-size: 200% auto; animation: season-slide 8s linear infinite; }
.season-ribbon b { font-weight: 800; }
.season-ribbon span.season-go { padding: 3px 11px; border-radius: 999px; background: #1a0d02; color: #ffb04d; font-size: 0.8rem; white-space: nowrap; }
.season-ribbon:hover span.season-go { color: #fff; }
@keyframes season-slide { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
.season-bat { position: fixed; z-index: 0; pointer-events: none; opacity: 0.16; font-size: 2.2rem; animation: season-bob 7s ease-in-out infinite; }
@keyframes season-bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .season-ribbon, .season-bat { animation: none; } }
/* En pantallas chicas la cinta se acorta y deja libre la esquina del selector de idioma */
@media (max-width: 760px) { .season-ribbon { justify-content: flex-start; padding-right: 118px; } .season-ribbon .season-text { display: none; } }
