*, *::before, *::after {box-sizing: border-box; margin: 0; padding: 0;}
:root {
    --bg: #070914;
    --bg-soft: #0b0f22;
    --panel: #11162f;
    --panel-soft: #151b38;
    --nav: #090c1b;
    --gold: #d8b978;
    --gold-bright: #f0d79a;
    --text: #ece7da;
    --muted: #a7adbf;
    --discord: #5b5bd6;
    --discord-dark: #4646b8;
    --border: rgba(216, 185, 120, .22);
    --border-soft: rgba(148, 163, 184, .18);
    --shadow: 0 18px 50px rgba(0, 0, 0, .55);
    --radius: 14px;
    --focus: #8fd0ff;
    --font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
}
html {scroll-behavior: smooth;}
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background:
        radial-gradient(circle at 15% 0%, rgba(91, 91, 214, .16), transparent 34%),
        radial-gradient(circle at 85% 18%, rgba(216, 185, 120, .12), transparent 30%),
        var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
}
img {max-width: 100%; height: auto;}
a {color: var(--gold); text-decoration: none; transition: color .25s ease;}
a:hover {color: var(--gold-bright);}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 8px;
}
.container {width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px;}
.skip-link {
    position: absolute; left: 16px; top: -80px; z-index: 300;
    background: var(--gold); color: #111; font-weight: 800;
    padding: 10px 16px; border-radius: 10px; transition: top .2s ease;
}
.skip-link:focus {top: 12px; color: #111;}

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 120;
    background: rgba(9, 12, 27, .9);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}
.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    gap: 18px; max-width: 1240px; margin: 0 auto; padding: 14px 24px;
}
.logo-container {display: flex; align-items: center; gap: 14px; min-width: 0;}
.logo-home {color: inherit;}
.logo-home:hover {color: inherit;}
.logo-mobile {display: none;}
.logo-img {width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,.6));}
.logo-text {font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: 1px; color: var(--gold); line-height: 1.1;}
.logo-short {display: none;}
.logo-tagline {display: block; font-family: 'Segoe UI', sans-serif; font-size: .74rem; font-weight: 400; letter-spacing: .2px; color: var(--muted);}
.site-nav {display: flex; align-items: center; gap: 18px;}
.site-nav ul {display: flex; align-items: center; gap: 22px; list-style: none;}
.site-nav a {
    color: #d7dbe7; font-weight: 600; font-size: .95rem;
    padding: 10px 2px; border-bottom: 2px solid transparent;
}
.site-nav a:hover {color: var(--gold-bright);}
.nav-active {color: var(--gold-bright) !important; border-bottom-color: var(--gold) !important;}
.menu-toggle {
    display: none; background: rgba(216,185,120,.08);
    border: 1px solid var(--border); color: var(--gold);
    font-size: 1.35rem; line-height: 1; padding: 8px 12px; border-radius: 8px; cursor: pointer;
}
.site-nav a.btn.btn-discord-top {
    gap: 10px;
    font-size: .9rem;
    padding: 11px 18px;
    min-height: 44px;
    color: #fff;
    background: linear-gradient(180deg, #7070f2, var(--discord-dark));
    border-bottom: 0;
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(70, 70, 184, .5);
    white-space: nowrap;
}
.site-nav a.btn.btn-discord-top:hover {color: #fff; transform: translateY(-1px);}
.site-nav a.btn.btn-discord-top svg {width: 20px; height: 20px; flex: 0 0 20px;}

/* Hero */
.hero {position: relative; overflow: hidden; border-bottom: 1px solid var(--border); background: #05070f;}
.hero-media {position: absolute; inset: 0;}
.hero-media img {width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 1;}
@media (min-width: 1080px) {
    .hero-media {left: 36%; right: 0; width: auto;}
    .hero-media img {object-position: right center;}
    .hero-media::after {
        background:
            linear-gradient(90deg, rgba(5,7,15,.92) 0%, rgba(5,7,15,.42) 18%, rgba(5,7,15,0) 34%),
            radial-gradient(circle at 70% 36%, rgba(91,91,214,.14), transparent 46%),
            linear-gradient(180deg, rgba(5,7,15,.04) 55%, rgba(7,9,20,.58));
    }
}
.hero-media::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(5,7,15,.88) 10%, rgba(5,7,15,.52) 40%, rgba(5,7,15,.1) 70%, rgba(5,7,15,.32) 100%),
        radial-gradient(circle at 72% 38%, rgba(91,91,214,.2), transparent 42%),
        linear-gradient(180deg, rgba(5,7,15,.18), rgba(7,9,20,.72));
}
.hero-inner {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: minmax(0, 620px);
    gap: 48px; align-items: center;
    max-width: 1240px; margin: 0 auto; padding: 56px 24px 48px;
}
.hero-title {
    font-family: var(--font-display); color: var(--gold);
    font-size: clamp(2.6rem, 5.4vw, 4.5rem);
    line-height: .98; letter-spacing: 4px;
    text-shadow: 0 10px 32px rgba(0,0,0,.9), 0 0 60px rgba(216,185,120,.18);
    margin-bottom: 14px;
}
.hero-inner > div {text-align: center; justify-self: start; width: 100%; max-width: 640px;}
.hero-divider-img {display: block; margin: 0 auto 14px; width: 325px; max-width: 72%; height: auto;}
.hero-subtitle {font-size: clamp(1.05rem, 2vw, 1.3rem); color: #e6e9f4; margin: 0 auto 12px; max-width: 34rem;}
.hero-bio {color: #aeb6c9; max-width: 36rem; margin: 0 auto 18px;}
.hero-stats {display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 auto 20px; max-width: 520px;}
.hero-stat {text-align: center; color: var(--gold); font-size: .8rem; font-weight: 700;}
.hero-stat svg {width: 26px; height: 26px; display: block; margin: 0 auto 8px;}
.hero-buttons {display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;}
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 13px 24px; border-radius: 10px;
    font-weight: 800; letter-spacing: .3px; border: 1px solid transparent; cursor: pointer;
}
.btn-discord {background: linear-gradient(180deg, #7070f2, var(--discord-dark)); color: #fff; box-shadow: 0 12px 28px rgba(70,70,184,.5);}
.btn-discord:hover {color: #fff; transform: translateY(-1px);}
.btn-youtube {background: linear-gradient(180deg, #e33232, #b01e1e); color: #fff; box-shadow: 0 12px 28px rgba(176,30,30,.45);}
.btn-youtube:hover {color: #fff; transform: translateY(-1px);}
.btn-twitch {background: linear-gradient(180deg, #7b4dff, #5a2fd6); color: #fff; box-shadow: 0 12px 28px rgba(90,47,214,.45);}
.btn-twitch:hover {color: #fff; transform: translateY(-1px);}
.btn-x {background: linear-gradient(180deg, #2a2f36, #101318); color: #fff; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 12px 28px rgba(0,0,0,.5);}
.btn-x:hover {color: #fff; transform: translateY(-1px);}
.btn-patreon {background: linear-gradient(180deg, #1d2129, #0b0d11); color: #fff; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 12px 28px rgba(0,0,0,.55);}
.btn-patreon:hover {color: #fff; transform: translateY(-1px);}
.btn-outline {background: rgba(216,185,120,.06); color: var(--gold-bright); border-color: var(--gold);}
.btn-outline:hover {background: var(--gold); color: #14101a;}

/* Section titles */
.section-head {display: flex; align-items: center; gap: 18px; margin: 28px 0 28px;}
.section-head::before, .section-head::after {content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(216,185,120,.55), transparent);}
.section-title {font-family: var(--font-display); color: var(--gold); font-size: clamp(1.25rem, 2.6vw, 1.7rem); letter-spacing: 2px; text-align: center; white-space: nowrap;}
.section-description {text-align: center; color: var(--muted); margin: -14px auto 30px; max-width: 720px;}

/* Explore cards */
.features-grid {display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-bottom: 12px;}
.feature-card {
    background: linear-gradient(180deg, rgba(21,27,56,.92), rgba(12,16,34,.96));
    border: 1px solid var(--border-soft); border-radius: var(--radius);
    padding: 28px 22px; text-align: center; position: relative; overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.feature-card::before {
    content: ''; position: absolute; inset: 8px; border: 1px dashed rgba(216,185,120,.22);
    border-radius: 10px; pointer-events: none;
}
.feature-card:hover {transform: translateY(-6px); border-color: var(--border); box-shadow: var(--shadow);}
.feature-card, .post-card, .expedition, .widget {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 30px rgba(0,0,0,.35);
}
.feature-medallion {
    width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%;
    display: grid; place-items: center; overflow: hidden;
    border: 2px solid rgba(216,185,120,.55);
    background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.22), transparent 45%), #1c2447;
    box-shadow: inset 0 0 0 6px rgba(0,0,0,.28), 0 12px 24px rgba(0,0,0,.5);
}
.feature-medallion img {width: 100%; height: 100%; object-fit: cover;}
.feature-card h3 {font-family: var(--font-display); color: #fff; letter-spacing: 1px; margin-bottom: 10px;}
.feature-card p {color: var(--muted); font-size: .94rem; margin-bottom: 16px;}
.feature-link {font-weight: 800; letter-spacing: .5px; text-transform: uppercase; font-size: .82rem;}
.link-guias, .link-guia {color: #b79bff;}
.link-guias:hover, .link-guia:hover {color: #d3c2ff;}
.link-personajes, .link-personaje {color: #62d68a;}
.link-personajes:hover, .link-personaje:hover {color: #8fe6ab;}
.link-herramientas, .link-herramienta {color: #7aa5ff;}
.link-herramientas:hover, .link-herramienta:hover {color: #9dbdff;}
.link-bastiones, .link-bastion, .link-tienda, .link-avalor, .link-explorar, .link-gold {color: var(--gold-bright);}
.link-bastiones:hover, .link-bastion:hover, .link-tienda:hover, .link-avalor:hover, .link-explorar:hover, .link-gold:hover {color: #fff;}
.medallion-guias {background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.22), transparent 45%), #3d2a68;}
.medallion-personajes {background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.22), transparent 45%), #274a34;}
.medallion-herramientas {background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.22), transparent 45%), #26365e;}
.medallion-bastiones, .medallion-tienda, .medallion-avalor {background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.22), transparent 45%), #5b4423;}

/* Posts layout */
.posts-head {display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 70px 0 26px;}
.posts-head h2 {font-family: var(--font-display); color: var(--gold); letter-spacing: 1px; display: flex; align-items: center; gap: 12px; font-size: clamp(1.2rem, 2.4vw, 1.55rem);}
.posts-head h2 svg {width: 28px; height: 28px;}
.link-arrow {font-weight: 800; font-size: .88rem; letter-spacing: .6px; white-space: nowrap;}
.blog-layout {display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start;}
.latest-grid {display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;}
.post-card {
    background: linear-gradient(180deg, rgba(20,25,50,.94), rgba(11,15,34,.97));
    border: 1px solid var(--border-soft); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.post-card:hover {transform: translateY(-5px); border-color: var(--border); box-shadow: var(--shadow);}
.post-media {position: relative; height: 170px; overflow: hidden; background: #0a0e24;}
.post-media img {width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease;}
.post-card:hover .post-media img {transform: scale(1.05);}
.badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    font-size: .72rem; font-weight: 800; letter-spacing: 1px;
    padding: 6px 10px; border-radius: 7px; color: #fff;
    background: rgba(20, 24, 48, .9); border: 1px solid rgba(255,255,255,.18);
}
.badge-guia, .badge-guias {background: #5b3fb0;}
.badge-recurso, .badge-recursos {background: #2f7a4d;}
.badge-herramienta, .badge-herramientas {background: #2f5aa8;}
.badge-noticia, .badge-noticias, .badge-evento, .badge-eventos {background: #a67c2e;}
.badge-blog, .badge-sobre-mi {background: #3c4560;}
.post-content {padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1;}
.post-content h3 {color: #fff; font-size: 1.08rem; line-height: 1.35;}
.post-content p {color: var(--muted); font-size: .93rem; flex: 1;}
.post-meta {color: #8b93a8; font-size: .8rem; display: flex; gap: 8px; flex-wrap: wrap;}
.post-link {font-weight: 800;}

/* Sidebar */
.sidebar {display: flex; flex-direction: column; gap: 20px; min-width: 0;}
.widget, .expedition, .parchment {
    background: linear-gradient(180deg, rgba(20,25,50,.94), rgba(10,13,30,.97));
    border: 1px solid var(--border-soft); border-radius: var(--radius);
    overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.expedition {border-color: var(--border); padding: 24px 22px;}
.expedition h3, .widget h4 {font-family: var(--font-display); color: var(--gold); letter-spacing: 1px; margin-bottom: 12px; font-size: 1.02rem; text-align: center;}
.expedition h3 {text-transform: uppercase;}
.block-divider-img {display: block; margin: 0 auto 14px; width: min(220px, 70%); height: auto;}
.expedition-media {margin: -24px -22px 18px; overflow: hidden; border-radius: 14px 14px 0 0; border-bottom: 1px solid var(--border-soft);}
.expedition-media img {width: 100%; height: 150px; object-fit: cover; display: block;}
.expedition ul {list-style: none; display: grid; gap: 10px; margin: 0 0 18px; color: #d6dbe8; font-size: .92rem;}
.expedition li {margin-bottom: 2px;}
.expedition p {color: var(--muted); margin-bottom: 16px;}
.expedition .btn {width: 100%;}
.widget-media {height: 132px; overflow: hidden; border-bottom: 1px solid var(--border-soft);}
.widget-media img {width: 100%; height: 100%; object-fit: cover;}
.widget-body {padding: 20px;}
.widget-body p {color: var(--muted); margin-bottom: 14px;}
.widget-list {list-style: none; display: grid; gap: 10px; margin-bottom: 16px; color: #d6dbe8;}
.widget-list li {display: flex; gap: 10px; align-items: flex-start;}
.parchment {
    padding: 26px 22px; text-align: center; color: #3d2f1a;
    background:
        radial-gradient(circle at 20% 10%, rgba(255,255,255,.55), transparent 34%),
        radial-gradient(circle at 85% 90%, rgba(120,72,20,.28), transparent 38%),
        linear-gradient(180deg, #e8d3a2, #d9bd85 55%, #cdae72);
    border: 1px solid #8a6a35;
    position: relative;
}
.parchment::before {content: ''; position: absolute; inset: 8px; border: 1px solid rgba(90,60,20,.45); border-radius: 8px; pointer-events: none;}
.parchment blockquote {font-family: var(--font-display); font-style: italic; font-size: 1.02rem; line-height: 1.55;}
.parchment cite {display: block; margin-top: 12px; font-style: normal; font-weight: 800; font-size: .82rem; letter-spacing: .6px;}
.parchment-seal {width: 64px; height: 64px; margin: 16px auto 0; color: #6b4d1f; opacity: .85;}
.parchment-seal svg {width: 100%; height: 100%;}
.empty-state {color: var(--muted); background: rgba(17,22,47,.7); border: 1px dashed var(--border-soft); border-radius: 12px; padding: 20px;}

/* Footer */
.site-footer {margin-top: 80px; background: #05070f; border-top: 1px solid var(--border); padding: 54px 0 0; color: var(--muted);}
.footer-grid {display: grid; grid-template-columns: 1.3fr .8fr .9fr .8fr; gap: 34px; margin-bottom: 34px;}
.footer-brand {display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px;}
.footer-brand img {width: 42px; height: 42px; object-fit: contain;}
.footer-brand strong {font-family: var(--font-display); color: var(--gold); letter-spacing: 1px; display: block;}
.footer-brand span {font-size: .78rem; color: var(--muted); display: block;}
.site-footer h4 {color: var(--gold); font-size: .86rem; letter-spacing: 1px; margin-bottom: 14px;}
.footer-links {list-style: none; display: grid; gap: 9px; font-size: .92rem;}
.footer-nav-links {grid-template-columns: 1fr 1fr; column-gap: 18px;}
.footer-links a {color: #c8cede;}
.footer-links a:hover {color: var(--gold-bright);}
.social-links {display: flex; gap: 10px; flex-wrap: wrap;}
.social-links a {
    width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-soft); border-radius: 10px; color: var(--gold);
    background: rgba(216,185,120,.06);
}
.social-links svg {width: 20px; height: 20px;}
.footer-bottom {
    border-top: 1px solid var(--border-soft); padding: 18px 0 22px;
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    font-size: .8rem; color: #7e8699;
}
.back-top {font-weight: 800;}

/* Articles and pages */
.page-article {max-width: 100%; margin: 0 auto; padding: 44px 0 10px;}
.page-post, .post-shell {
    background: linear-gradient(180deg, rgba(20,25,50,.94), rgba(11,15,34,.97));
    border: 1px solid var(--border-soft); border-radius: 16px;
    overflow: hidden; margin-bottom: 34px; box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.page-post-meta, .post-meta-line {
    display: flex; gap: 12px; flex-wrap: wrap;
    color: var(--gold); text-transform: uppercase; letter-spacing: 1px;
    font-size: .78rem; padding: 26px 30px 0;
}
.page-post-meta span:last-child {color: var(--muted);}
.page-post h1, .post-shell h1 {
    font-family: var(--font-display); color: #fff;
    font-size: clamp(1.7rem, 3.4vw, 2.35rem);
    line-height: 1.18; margin: 14px 30px 20px;
}
.page-post-image, .post-image {width: 100%; max-height: 430px; overflow: hidden; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);}
.page-post-image img, .post-image img {width: 100%; height: auto; display: block;}
.page-post-body, .post-body {padding: 28px 30px 32px; font-size: 1.03rem; line-height: 1.8; color: #e2e8f0;}
.page-post-body p, .post-body p {margin-bottom: 18px;}
.page-post-body h2, .page-post-body h3, .page-post-body h4,
.post-body h2, .post-body h3, .post-body h4 {color: #fff; font-family: var(--font-display); margin: 26px 0 12px; line-height: 1.3;}
.page-post-body ul, .page-post-body ol, .post-body ul, .post-body ol {margin: 0 0 18px 22px; display: grid; gap: 8px;}
.page-post-body blockquote, .post-body blockquote {border-left: 3px solid var(--gold); padding: 8px 16px; color: #d8dcea; background: rgba(216,185,120,.07); border-radius: 0 10px 10px 0; margin-bottom: 18px;}
.page-post-body table, .post-body table {display: block; width: max-content; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin-bottom: 18px;}
.page-post-body th, .page-post-body td, .post-body th, .post-body td {border: 1px solid var(--border-soft); padding: 10px 12px; text-align: left;}
.page-post-body iframe, .post-body iframe {width: 100%; min-height: 360px; border: 0; border-radius: 12px; margin-bottom: 18px;}
.post-actions {display: flex; justify-content: flex-end; padding: 0 30px 30px;}

/* Responsive */
@media (max-width: 1080px) {
    .blog-layout {grid-template-columns: minmax(0, 1fr) 300px;}
    .footer-grid {grid-template-columns: 1fr 1fr;}
    .hero-inner {grid-template-columns: minmax(0, 1fr); padding: 48px 24px 40px;}
    .hero-media {opacity: .55;}
}
@media (max-width: 900px) {
    .site-nav ul {
        position: absolute; top: 100%; left: 0; right: 0; z-index: 130;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--nav); border-top: 1px solid var(--border);
        box-shadow: 0 18px 30px rgba(0,0,0,.6);
        display: none; padding: 10px 0;
    }
    .site-nav ul.open {display: flex;}
    .site-nav li {border-bottom: 1px solid var(--border-soft);}
    .site-nav li a {display: block; padding: 14px 22px; border-bottom: 0;}
    .menu-toggle {display: inline-flex;}
    .btn-discord-top {display: none;}
    .blog-layout {grid-template-columns: minmax(0, 1fr);}
    .posts-head {margin-top: 54px;}
}
@media (max-width: 768px) {
    .nav-container {position: relative; flex-wrap: wrap; padding: 12px 18px;}
    .site-nav {display: contents;}
    .logo-full, .logo-short, .logo-tagline {display: none;}
    .logo-mobile {display: block; font-size: 1.25rem; line-height: 1.2; margin-top: 2px;}
    .container {padding: 0 18px;}
    .hero-inner {padding: 40px 18px 34px;}
    .hero-stats {gap: 6px; max-width: 100%;}
    .hero-stat {font-size: .7rem;}
    .hero-stat svg {width: 22px; height: 22px;}
    .page-post-meta, .post-meta-line {padding: 20px 20px 0;}
    .page-post h1, .post-shell h1 {margin: 12px 20px 16px;}
    .page-post-body, .post-body {padding: 22px 20px 26px;}
    .post-actions {padding: 0 20px 24px;}
    .footer-grid {grid-template-columns: minmax(0, 1fr); gap: 24px;}
    .footer-bottom {flex-direction: column; align-items: flex-start;}
    .page-post-body iframe, .post-body iframe {min-height: 250px;}
    .feature-card {position: relative;}
    .feature-card .feature-link::after {content: ''; position: absolute; inset: 0;}
}
@media (prefers-reduced-motion: reduce) {
    html {scroll-behavior: auto;}
    *, *::before, *::after {transition: none !important; animation: none !important;}
}
