@import url("seasonal-themes.css");

:root {
    --bg: #060814;
    --bg-soft: #0d1224;
    --panel: rgba(12, 18, 34, 0.82);
    --panel-strong: rgba(8, 12, 24, 0.92);
    --line: rgba(255, 255, 255, 0.08);
    --text: #f4f6fb;
    --muted: #a7b1c8;
    --gold: #f4c95d;
    --cyan: #79d7ff;
    --rose: #ff9ac3;
    --violet: #9588ff;
    --emerald: #64f2bf;
    --danger: #ff8275;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --radius-xl: 4px;
    --radius-lg: 3px;
    --radius-md: 2px;
    --radius-sm: 1px;
    --font-heading: "Cinzel", serif;
    --font-body: "Instrument Sans", sans-serif;
    --font-mono: "DM Mono", monospace;
    --page-accent: var(--gold);
    --page-accent-soft: rgba(244, 201, 93, 0.22);
    --page-glow: rgba(121, 215, 255, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at top, rgba(121, 215, 255, 0.12), transparent 32%),
        radial-gradient(circle at 85% 20%, rgba(149, 136, 255, 0.14), transparent 26%),
        radial-gradient(circle at 10% 30%, rgba(244, 201, 93, 0.1), transparent 22%),
        linear-gradient(180deg, #090d1a 0%, #060814 50%, #04060e 100%);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.skip-link {
    position: fixed;
    z-index: 10000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.75rem 1rem;
    color: #06110e;
    background: #f4c95d;
    font-weight: 700;
    transform: translateY(calc(-100% - 1rem));
}

.skip-link:focus {
    transform: translateY(0);
}

/* Accesibilidad: foco visible universal para navegación por teclado (WCAG 2.4.7 AA) */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(88, 215, 255, 0.72);
    outline-offset: 3px;
}

/* Accesibilidad: respeto a preferencia de movimiento reducido (WCAG 2.3.3) */
@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;
    }
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.03) 45%, transparent 48%),
        linear-gradient(transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
    opacity: 0.55;
    mix-blend-mode: screen;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.page-shell {
    position: relative;
    /* Keep decorative layers from creating side-scroll without clipping pages. */
    overflow-x: hidden;
}

#particles-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.72;
}

.page-shell::before,
.page-shell::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}

.page-shell::before {
    top: 110px;
    left: -120px;
    background: var(--page-accent-soft);
}

.page-shell::after {
    right: -140px;
    bottom: 10vh;
    background: var(--page-glow);
}

.scroll-progress {
    position: fixed;
    inset: 0 auto auto 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--page-accent), var(--cyan));
    z-index: 90;
    box-shadow: 0 0 18px rgba(121, 215, 255, 0.45);
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 80;
    backdrop-filter: blur(18px);
    background: rgba(5, 8, 16, 0.68);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-nav__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand__mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    padding: 0.45rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.brand__meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.brand__meta strong {
    font-family: var(--font-heading);
    letter-spacing: 0.06em;
}

.brand__meta span {
    font-size: 0.75rem;
    color: var(--muted);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--text);
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 7px 0;
    background: currentColor;
}

.site-nav__links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-nav__links a {
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-md);
    color: var(--muted);
    font-size: 0.86rem;
    transition: 0.2s ease;
}

body[data-page="server"] { --page-accent: var(--cyan); --page-accent-soft: rgba(121, 215, 255, 0.2); }
body[data-page="odysseia"] { --page-accent: var(--violet); --page-accent-soft: rgba(149, 136, 255, 0.22); }
body[data-page="slimefun"] { --page-accent: var(--emerald); --page-accent-soft: rgba(100, 242, 191, 0.18); }
body[data-page="community"] { --page-accent: var(--rose); --page-accent-soft: rgba(255, 154, 195, 0.18); }
body[data-page="rules"] { --page-accent: var(--gold); --page-accent-soft: rgba(244, 201, 93, 0.18); }

.site-nav__links a:hover,
.site-nav__links a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.nav-store-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    padding: 0.52rem 0.95rem !important;
    border-radius: 2px !important;
    background: linear-gradient(135deg, #f4c95d 0%, #e1a120 100%) !important;
    color: #121808 !important;
    font-weight: 800 !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 0 16px rgba(244, 201, 93, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    border: 1px solid #ffd875 !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.nav-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(244, 201, 93, 0.75), inset 0 1px 0 #fff !important;
    color: #000 !important;
}

.nav-store-btn small {
    display: inline-block;
    padding: 0.1rem 0.35rem;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 2px;
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: #fff;
    font-weight: 600;
}

.nav-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.95rem;
    border-radius: 2px;
    background: rgba(88, 101, 242, 0.16);
    border: 1px solid rgba(88, 101, 242, 0.45);
    color: #cfd6ff;
    font-weight: 700;
    font-size: 0.82rem;
    transition: 0.2s ease;
}

.nav-discord:hover {
    background: #5865f2;
    color: #fff;
    box-shadow: 0 0 16px rgba(88, 101, 242, 0.45);
}

.hero {
    position: relative;
    padding: 4.5rem 0 2.5rem;
    z-index: 1;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--page-accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
}

.eyebrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 20px currentColor;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 7vw, 5.4rem);
    line-height: 0.95;
    margin: 0.9rem 0 1rem;
}

.hero__tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #e8edf9;
    max-width: 52ch;
    margin: 0 0 1rem;
}

.hero__intro {
    color: var(--muted);
    max-width: 60ch;
    line-height: 1.75;
    margin: 0;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--page-accent), #fff0aa);
    color: #171108;
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(244, 201, 93, 0.18);
    font-weight: 700;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.hero-stage {
    position: relative;
    min-height: 500px;
    perspective: 1400px;
}

.hero-stage__core {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.orbital-logo {
    position: relative;
    width: min(480px, 92%);
    aspect-ratio: 1;
    transform-style: preserve-3d;
    animation: floatStage 9s ease-in-out infinite;
}

.orbital-logo__ring,
.orbital-logo__ring::before,
.orbital-logo__ring::after {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.orbital-logo__ring {
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: rotateX(66deg);
    box-shadow: 0 0 40px rgba(121, 215, 255, 0.12);
}

.orbital-logo__ring::before,
.orbital-logo__ring::after {
    content: "";
    border: 1px dashed rgba(255, 255, 255, 0.12);
}

.orbital-logo__ring::before {
    transform: rotateY(70deg);
}

.orbital-logo__ring::after {
    transform: rotateX(24deg) rotateY(20deg);
}

.orbital-logo__seal {
    position: absolute;
    inset: 16%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.22), transparent 40%),
        radial-gradient(circle at 50% 52%, rgba(121, 215, 255, 0.18), transparent 62%),
        linear-gradient(180deg, rgba(17, 26, 50, 0.92), rgba(8, 13, 26, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
}

.orbital-logo__seal img {
    width: 42%;
    filter: drop-shadow(0 0 28px rgba(244, 201, 93, 0.35));
}

.stage-card {
    position: absolute;
    width: 180px;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(16, 22, 39, 0.88), rgba(9, 13, 24, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
}

.stage-card strong {
    display: block;
    font-family: var(--font-heading);
    margin-bottom: 0.4rem;
    color: var(--page-accent);
}

.stage-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.stage-card--a {
    top: 8%;
    left: 0;
    transform: rotateY(24deg) rotateX(7deg);
}

.stage-card--b {
    right: 2%;
    top: 22%;
    transform: rotateY(-20deg) rotateX(8deg);
}

.stage-card--c {
    left: 9%;
    bottom: 8%;
    transform: rotateY(18deg) rotateX(-8deg);
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.metric-card,
.panel-card,
.journey-card,
.fact-card,
.cta-banner,
.sequence-nav,
.live-card,
.rule-card,
.store-card,
.boss-card,
.quote-panel {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(17, 22, 38, 0.86), rgba(10, 14, 24, 0.96));
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.metric-card {
    padding: 1.15rem;
}

.metric-card span {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 0.45rem;
}

.metric-card strong {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--page-accent);
    line-height: 1.16;
    overflow-wrap: anywhere;
}

.section {
    position: relative;
    z-index: 1;
    padding: 2rem 0;
}

.section__head {
    max-width: 760px;
    margin-bottom: 1.35rem;
}

.section__head h2 {
    margin: 0 0 0.65rem;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.section__head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.panel-card,
.journey-card,
.fact-card,
.live-card,
.rule-card,
.store-card,
.boss-card,
.quote-panel {
    padding: 1.25rem;
}

.panel-card h3,
.journey-card h3,
.fact-card h3,
.live-card h3,
.rule-card h3,
.store-card h3,
.boss-card h3 {
    margin: 0 0 0.55rem;
    font-family: var(--font-heading);
    color: #fff4c7;
}

.panel-card p,
.journey-card p,
.fact-card p,
.live-card p,
.rule-card p,
.store-card p,
.boss-card p,
.quote-panel p,
.rule-card li,
.store-card li,
.boss-card li {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.journey-grid,
.facts-grid,
.live-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.journey-card__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin-bottom: 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--page-accent);
    font-weight: 700;
}

.fact-card ul,
.rule-card ul,
.boss-card ul {
    margin: 0;
    padding-left: 1rem;
}

.fact-card li + li,
.rule-card li + li,
.boss-card li + li {
    margin-top: 0.5rem;
}

.cta-banner {
    display: grid;
    grid-template-columns: 1.2fr auto;
    gap: 1.2rem;
    align-items: center;
    padding: 1.4rem;
}

.cta-banner p {
    margin: 0.5rem 0 0;
    color: var(--muted);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.sequence-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
}

.sequence-link {
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 48%;
}

.sequence-link small {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.sequence-link strong {
    font-family: var(--font-heading);
}

.site-footer {
    position: relative;
    z-index: 1;
    padding: 2rem 0 3rem;
}

.site-footer__grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.2rem;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    color: var(--muted);
}

.toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 120;
    min-width: 240px;
    max-width: 360px;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(10, 14, 22, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    color: var(--text);
    transform: translateY(30px);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
}

.toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.hidden {
    display: none !important;
}

@keyframes floatStage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 960px) {
    .hero__grid,
    .cta-banner,
    .site-footer__grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .metrics,
    .panel-grid,
    .journey-grid,
    .facts-grid,
    .live-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-stage {
        min-height: 420px;
    }

    .stage-card {
        width: 150px;
    }
}

@media (max-width: 760px) {
    .nav-toggle {
        display: block;
    }

    .site-nav__links {
        position: absolute;
        top: calc(100% + 0.4rem);
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        background: rgba(8, 11, 20, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        box-shadow: var(--shadow);
    }

    .site-nav__links.is-open {
        display: flex;
    }

    .metrics,
    .panel-grid,
    .journey-grid,
    .facts-grid,
    .live-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 3.2rem;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .hero-stage {
        min-height: 360px;
    }

    .stage-card {
        position: static;
        width: auto;
        margin-top: 0.75rem;
        transform: none;
    }

    .orbital-logo {
        width: min(340px, 100%);
    }

    .cta-actions,
    .sequence-nav {
        justify-content: flex-start;
        display: flex;
        flex-direction: column;
    }

    .sequence-link {
        max-width: 100%;
    }
}

/* Information pages are reading-first. The launch-scene composition belongs
   only to the portal front, not to every detail page. */
body:not(.portal-page) .hero {
    padding: 6.6rem 0 1.4rem;
}

body:not(.portal-page) .hero__grid {
    grid-template-columns: minmax(0, 780px);
    justify-content: start;
}

body:not(.portal-page) .hero h1 {
    max-width: 15ch;
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.05;
}

body:not(.portal-page) .hero__intro {
    max-width: 66ch;
}

body:not(.portal-page) .hero-stage {
    display: none;
}

body:not(.portal-page) .metrics {
    max-width: 980px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-top: 1.6rem;
}

body:not(.portal-page) .metric-card {
    padding: .9rem;
    border-radius: 14px;
    box-shadow: none;
    min-width: 0;
    min-height: 112px;
}

body:not(.portal-page) .metric-card--compact strong { font-size: clamp(1.08rem, 1.6vw, 1.32rem); overflow-wrap: normal; }

body:not(.portal-page) .section {
    padding: 1.35rem 0;
}

body:not(.portal-page) .section__head {
    margin-bottom: 1rem;
}

body:not(.portal-page) .panel-card,
body:not(.portal-page) .fact-card,
body:not(.portal-page) .live-card,
body:not(.portal-page) .rule-card,
body:not(.portal-page) .store-card,
body:not(.portal-page) .boss-card {
    border-radius: 16px;
    box-shadow: none;
}

@media (max-width: 760px) {
    body:not(.portal-page) .metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.brief-hero { position: relative; z-index: 1; padding: 8.5rem 0 3.2rem; border-bottom: 1px solid var(--line); background: linear-gradient(115deg, rgba(121,215,255,.08), transparent 48%), linear-gradient(180deg, rgba(8,13,27,.84), rgba(8,13,27,.15)); }
.brief-hero__inner { max-width: 820px; }.brief-hero h1 { max-width: 15ch; margin: .7rem 0; font: clamp(2.6rem, 5vw, 4.5rem)/1.04 var(--font-heading); letter-spacing: -.04em; }.brief-hero__tagline { max-width: 58ch; margin: 0; color: #d8e8fb; font-size: clamp(1.06rem, 2vw, 1.28rem); line-height: 1.55; }.brief-hero__intro { max-width: 66ch; margin: .8rem 0 0; color: var(--muted); line-height: 1.7; }.brief-hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.editorial-main { position: relative; z-index: 1; }.editorial-section { padding: clamp(3rem, 7vw, 6.2rem) 0; }.editorial-section--tint { background: rgba(255,255,255,.025); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.editorial-heading { max-width: 710px; margin-bottom: 2rem; }.editorial-heading h2 { margin: .45rem 0; font: clamp(1.9rem, 3.8vw, 3.3rem)/1.12 var(--font-heading); letter-spacing: -.035em; }.editorial-heading p:last-child { color: var(--muted); line-height: 1.7; }.editorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }.editorial-grid .panel-card, .editorial-grid .rule-card { min-height: 220px; padding: 1.35rem; border: 0; border-radius: 0; background: rgba(10,15,28,.94); box-shadow: none; }.editorial-grid .panel-card h3 { margin-top: 2rem; }.editorial-grid--rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }.editorial-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }.editorial-facts .fact-card { border-radius: 0; box-shadow: none; background: transparent; }.editorial-main .cta-banner { border-radius: 0; box-shadow: none; }
@media (max-width: 760px) { .brief-hero { padding: 6.4rem 0 2.5rem; }.editorial-grid, .editorial-grid--rules, .editorial-facts { grid-template-columns: 1fr; } }

/* Greek visual system shared by every non-portal page. */
body { background: #080a12; }
body::before, .page-shell::before, .page-shell::after { display: none; }
.site-nav { background: rgba(8, 10, 18, 0.96); border-bottom: 1px solid rgba(222, 183, 94, 0.28); }
.site-nav__bar::after { content: ""; position: absolute; inset: auto 0 -4px; height: 3px; background: #d7b45e; opacity: .7; }
.hero { isolation: isolate; min-height: 640px; padding: 7rem 0 4rem; border-bottom: 1px solid rgba(222, 183, 94, .28); background-color: #080a12; background-image: url("../assets/drakes-olympus-v1.webp"); background-repeat: no-repeat; background-size: cover; background-position: center right; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(5, 7, 14, .58); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 18px; z-index: -1; border-top: 2px solid #d7b45e; border-bottom: 2px solid #d7b45e; opacity: .7; }
.hero__grid { min-height: 520px; align-items: center; }
.hero h1, .brief-hero h1 { letter-spacing: 0; text-wrap: balance; }
.eyebrow { color: #d7b45e; letter-spacing: .14em; }
.hero__tagline { color: #eee9dc; }
.hero-stage { border: 1px solid rgba(222, 183, 94, .36); background: rgba(8, 10, 18, .58); min-height: 430px; }
.hero-stage__core { opacity: .78; }
.stage-card, .panel-card, .fact-card, .rule-card { border-radius: 6px; border-color: rgba(222, 183, 94, .28); background: rgba(12, 14, 24, .92); box-shadow: none; }
.stage-card strong, .panel-card h3, .fact-card h3 { color: #f0dc9c; }
.btn { border-radius: 5px; }
.btn-primary { background: #d7b45e; color: #120f0a; border-color: #d7b45e; }
.btn-secondary { background: rgba(8, 10, 18, .74); border-color: rgba(222, 183, 94, .5); }
.section { padding: clamp(3.5rem, 7vw, 6.8rem) 0; }
.section:nth-of-type(even) { border-top: 1px solid rgba(222, 183, 94, .14); border-bottom: 1px solid rgba(222, 183, 94, .14); background: #0c0e18; }
.section__head { padding-left: 1rem; border-left: 3px solid #d7b45e; }
.panel-grid, .facts-grid { gap: 12px; }
.panel-card, .fact-card { min-height: 190px; }
.site-footer { background: #05060c; border-top-color: rgba(222, 183, 94, .35); }
@media (max-width: 760px) { .hero { min-height: auto; padding: 6rem 0 3.5rem; background-position: 68% center; }.hero::before { background: rgba(5, 7, 14, .72); }.hero-stage { min-height: 340px; }.site-nav__bar::after { display: none; } }
.brief-hero { min-height: 480px; padding: 9rem 0 4rem; border-top: 0; border-bottom: 18px double rgba(215,180,94,.7); background-color: #080a12; background-image: url("../assets/drakes-olympus-v1.webp"); background-repeat: no-repeat; background-position: center right; background-size: cover; }
.brief-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(5,7,14,.64); }
.brief-hero__inner { position: relative; }
.canvas-bg, #particles-canvas { display: none !important; }

@media (max-width: 760px) {
    .site-nav__links { border-radius: 6px; }
}

@media (max-width: 520px) {
    body:not(.portal-page) .metrics { grid-template-columns: 1fr; }
    body:not(.portal-page) .metric-card { min-height: 0; overflow-wrap: anywhere; }
}

/* Cabecera canónica compartida por portada, tienda, guías y soporte. */
.site-nav {
    background: rgba(5, 19, 15, .94);
    border-bottom: 1px solid rgba(216, 182, 90, .32);
}

.site-nav__bar { min-height: 76px; }
.brand__mark {
    border-color: rgba(216, 182, 90, .34);
    border-radius: 10px;
    background: rgba(22, 43, 34, .9);
}
.site-nav__links a { color: rgba(244, 239, 223, .72); border-radius: 5px; }
.site-nav__links a:hover,
.site-nav__links a.active { color: #f4efdf; background: rgba(244, 239, 223, .08); }
.site-nav__links .nav-discord {
    color: #10231b;
    border-radius: 5px;
    background: #e1c36c;
    box-shadow: none;
}

@media (max-width: 760px) {
    .site-nav__links { background: rgba(5, 19, 15, .98); border-color: rgba(216, 182, 90, .28); }
    .site-nav__links a { min-height: 44px; display: flex; align-items: center; }
}

/* Tema DrakesCraft. Definidos una sola vez para que la tienda y la guia no deriven:
   estaban usando dorados y verdes casi iguales pero distintos, que se nota como
   descuido sin que se sepa por que. */
:root {
    --dk-fondo: #101a16;
    --dk-panel: #172a22;
    --dk-panel-alto: #1e3529;
    --dk-linea: #2b4437;
    --dk-texto: #f2f8f3;
    --dk-suave: #adc3b4;
    --dk-oro: #ffe289;
    --dk-verde: #7fe9a6;
    --dk-verde-fuerte: #6fe3a2;
}

/* Boton de patrocinio de GitHub en el pie. El iframe lo sirve github.com, asi que la CSP
   necesita frame-src https://github.com; sin esa directiva el navegador lo bloquea en silencio. */
.site-footer__sponsor {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.site-footer__sponsor span {
  font-size: .85rem;
  opacity: .75;
}
.site-footer__sponsor iframe {
  display: block;
  color-scheme: light;
}

/* Cookie & Privacy Banner */
.dk-cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 440px;
  width: calc(100% - 40px);
  background: rgba(16, 26, 22, 0.96);
  border: 1px solid rgba(216, 182, 90, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 20px rgba(127, 233, 166, 0.12);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.dk-cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
}
.dk-cookie-text {
  font-size: 0.88rem;
  color: var(--dk-suave);
  line-height: 1.45;
  margin: 0;
}
.dk-cookie-text strong {
  color: var(--dk-oro);
}
.dk-cookie-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.dk-cookie-btn {
  background: #e1c36c;
  color: #10231b;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dk-cookie-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.dk-cookie-link {
  font-size: 0.82rem;
  color: var(--dk-oro);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* ==========================================================================
   Banner Bilingüe y Selector de Idioma (Google Translate In-Page)
   ========================================================================== */
.dk-lang-banner {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 99999;
  max-width: 480px;
  background: rgba(7, 23, 18, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(100, 242, 191, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(100, 242, 191, 0.15);
  border-radius: 8px;
  padding: 0.85rem 1.15rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.dk-lang-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
}
.dk-lang-banner__content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.dk-lang-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.dk-lang-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.35;
}
.dk-lang-text strong {
  color: var(--gold);
  font-size: 0.88rem;
}
.dk-lang-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}
.dk-lang-btn {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.dk-lang-btn--primary {
  background: var(--gold);
  color: #060814;
  border: none;
}
.dk-lang-btn--primary:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}
.dk-lang-btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.dk-lang-btn--ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Ocultar barra superior genérica de Google Translate */
.goog-te-banner-frame.skiptranslate,
body > .skiptranslate:not(.dk-lang-banner) {
  display: none !important;
}
body {
  top: 0px !important;
}

/* Botón de idioma en barra de navegación */
.nav-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.nav-lang-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold);
  color: var(--gold);
}

@media (max-width: 640px) {
  .dk-lang-banner {
    top: auto;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
  .dk-lang-banner__content {
    flex-wrap: wrap;
  }
  .dk-lang-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 0.4rem;
  }
}


.nav-youtube {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.95rem;
    border-radius: 2px;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fca5a5;
    font-weight: 700;
    font-size: 0.82rem;
    transition: 0.2s ease;
}

.nav-youtube:hover {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.45);
}

.founder-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.founder-yt-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #fca5a5;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.founder-yt-badge:hover {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.5);
}

/* ==========================================================================
   RESPONSIVE (2026-10-14): el menu de escritorio no cabe por debajo de ~1180 px (tablets, ventanas
   estrechas y moviles en modo escritorio): "Discord" y el selector de idioma se salian de la pantalla.
   Se colapsa a hamburguesa desde 1180 px; el resto del orden de la pagina no cambia.
   ========================================================================== */
html, body { max-width: 100%; overflow-x: clip; }
img, video, canvas, svg, iframe { max-width: 100%; }

@media (max-width: 1180px) {
    .nav-toggle { display: block; }

    .site-nav__links {
        position: absolute;
        top: calc(100% + 0.4rem);
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        padding: 0.8rem;
        max-height: calc(100vh - 6rem);
        overflow-y: auto;
        background: rgba(5, 19, 15, .98);
        border: 1px solid rgba(216, 182, 90, .28);
        border-radius: 16px;
        box-shadow: var(--shadow);
    }
    .site-nav__links.is-open { display: flex; }
    .site-nav__links a { min-height: 44px; display: flex; align-items: center; }
    .site-nav__links .nav-lang-btn,
    .site-nav__links .nav-discord { justify-content: center; }
}

@media (max-width: 960px) {
    .hero-stage { min-height: 320px; }
}

@media (max-width: 560px) {
    .container, .wrap, main > section { padding-left: 1rem; padding-right: 1rem; }
    h1 { overflow-wrap: anywhere; }
    table { display: block; overflow-x: auto; }
    .btn, .button, button { min-height: 44px; }
}


/* Compliance & Legal Disclaimer Footer Box */
.site-footer__compliance {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: rgba(14, 20, 28, 0.85);
    border: 1px solid rgba(216, 182, 90, 0.25);
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.site-footer__compliance .compliance-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.6rem;
}

.site-footer__compliance .compliance-title {
    font-family: var(--font-mono, monospace);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fef3c7;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.03em;
}

.site-footer__compliance .compliance-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

.site-footer__compliance .compliance-desc strong {
    color: #e2e8f0;
}

/* Store Compliance Ribbon */
.store-compliance-ribbon {
    margin-top: 1.25rem;
    padding: 0.65rem 1rem;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: #cbd5e1;
}

.store-compliance-ribbon .ribbon-tag {
    background: #f59e0b;
    color: #0f172a;
    font-weight: 800;
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    font-family: var(--font-mono, monospace);
    white-space: nowrap;
}

.store-compliance-ribbon p {
    margin: 0;
    line-height: 1.4;
}

.checkout-eula-notice {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.45;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    border-left: 2px solid rgba(216, 182, 90, 0.4);
}

.checkout-eula-notice a {
    color: #fbbf24;
    text-decoration: underline;
}
