/* ==========================================================================
   MVSTUDIO PLAY · portal de juegos
   Inspirado en la estructura de portales como CrazyGames: carruseles,
   tarjetas grandes, navegación lateral y acento lima.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tipografías locales
   -------------------------------------------------------------------------- */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-normal-400.woff2") format("woff2");
}

@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/outfit-normal-400.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
    --bg: #15171d;
    --bg-soft: #1a1c23;
    --surface: #1f212a;
    --surface-2: #262834;
    --surface-3: #2d303d;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .16);
    --text: #f5f6fa;
    --muted: #a7aab6;
    --muted-2: #7c808f;
    --brand: #c7ff5b;
    --brand-ink: #101400;
    --violet: #7c5cff;
    --cyan: #47d7ff;
    --pink: #ff5c7a;
    --orange: #ffb84d;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --display: "Outfit", "Inter", ui-sans-serif, system-ui, sans-serif;
    --mono: "Inter", ui-sans-serif, system-ui, sans-serif;
    --shadow: 0 22px 50px -28px rgba(0, 0, 0, .95);
    --header-h: 64px;
    --rail-w: 68px;
}

body {
    background:
        radial-gradient(900px 480px at 8% -8%, rgba(124, 92, 255, .17), transparent 62%),
        radial-gradient(900px 480px at 96% -10%, rgba(71, 215, 255, .09), transparent 62%),
        var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
    opacity: .028;
    background-size: auto;
    mask-image: none;
    -webkit-mask-image: none;
}

body::after {
    display: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.02em;
}

h1 em,
h2 em,
h3 em {
    color: var(--brand);
    font-style: normal;
}

.container {
    max-width: 1420px;
    padding-inline: clamp(16px, 2.2vw, 28px);
}

.section {
    padding-block: 28px;
}

main {
    padding-top: var(--header-h);
}

a:hover {
    color: inherit;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 90;
    height: var(--header-h);
    background: #17191f;
    border-bottom: 1px solid var(--line);
    backdrop-filter: none;
}

.site-header.is-scrolled {
    background: #17191f;
    border-bottom-color: var(--line);
    backdrop-filter: none;
}

.header-inner {
    height: var(--header-h);
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: var(--brand);
    color: var(--brand-ink);
    box-shadow: 0 6px 18px -10px rgba(199, 255, 91, .9);
}

.brand__mark svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: none;
}

.brand__logo {
    height: 32px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
}

.brand__text {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--display);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
    text-transform: none;
}

.brand__text span {
    color: var(--text);
}

.brand__text b,
.brand__text sup {
    display: inline-grid;
    place-items: center;
    padding: 3px 6px;
    border-radius: 6px;
    background: var(--brand);
    color: var(--brand-ink);
    font-family: var(--display);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.main-nav {
    display: none;
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(560px, 44vw);
    height: 42px;
    margin-inline: auto;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #2a2c38;
    transition: border-color .2s, background .2s;
}

.header-search:focus-within {
    border-color: rgba(199, 255, 91, .5);
    background: #30323f;
}

.header-search svg {
    position: static;
    left: auto;
    top: auto;
    width: 18px;
    height: 18px;
    transform: none;
    color: var(--muted);
    flex-shrink: 0;
}

.header-search input {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--font);
    font-size: 13.5px;
    letter-spacing: 0;
    text-transform: none;
    outline: 0;
}

.header-search input::placeholder {
    color: #9ea1b0;
    text-transform: none;
    letter-spacing: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-fav {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    color: var(--text);
    transition: background .2s, color .2s;
}

.header-fav:hover {
    background: rgba(255, 255, 255, .13);
    color: var(--brand);
}

.header-fav svg {
    width: 18px;
    height: 18px;
}

.header-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 18px;
    border: 1px solid var(--brand);
    border-radius: 999px;
    background: var(--brand);
    color: var(--brand-ink);
    font-family: var(--display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    backdrop-filter: none;
}

.header-login:hover {
    border-color: #d6ff85;
    background: #d6ff85;
    color: var(--brand-ink);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    color: var(--text);
}

.user-menu summary {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
}

.user-menu summary .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--violet);
    color: #fff;
    font-family: var(--display);
    font-weight: 700;
}

.user-menu__panel {
    border-radius: 14px;
    background: var(--surface-2);
    border-color: var(--line);
    box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   Rail lateral
   -------------------------------------------------------------------------- */

.portal-rail {
    display: none;
}

@media (min-width: 1000px) {
    .portal-rail {
        position: fixed;
        top: var(--header-h);
        left: 0;
        bottom: 0;
        z-index: 80;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        width: var(--rail-w);
        padding: 14px 0;
        background: #17191f;
        border-right: 1px solid var(--line);
    }

    main {
        padding-left: var(--rail-w);
    }

    .site-footer {
        margin-left: var(--rail-w);
    }
}

.rail-link {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #a7aab6;
    transition: background .2s, color .2s;
}

.rail-link svg {
    width: 21px;
    height: 21px;
}

.rail-link:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.rail-link.is-active {
    background: rgba(124, 92, 255, .2);
    color: var(--brand);
}

.rail-link::after {
    content: attr(data-label);
    position: absolute;
    left: 54px;
    top: 50%;
    z-index: 2;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-4px, -50%);
    transition: opacity .15s, transform .15s;
}

.rail-link:hover::after {
    opacity: 1;
    transform: translate(0, -50%);
}

.rail-sep {
    width: 26px;
    height: 1px;
    margin: 8px 0;
    background: var(--line);
}

.rail-bottom {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
}

/* --------------------------------------------------------------------------
   Botones, etiquetas, formularios
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
    box-shadow: none;
    transition: background .2s, border-color .2s, color .2s, transform .2s;
}

.btn svg {
    width: 17px;
    height: 17px;
}

.btn-primary {
    --btn-bg: var(--brand);
    --btn-color: var(--brand-ink);
    --btn-border: var(--brand);
    background: var(--brand);
    border-color: var(--brand);
    color: var(--brand-ink);
    box-shadow: 0 8px 22px -14px rgba(199, 255, 91, .8);
}

.btn-primary:hover {
    background: #d6ff85;
    border-color: #d6ff85;
    color: var(--brand-ink);
    box-shadow: 0 10px 24px -14px rgba(199, 255, 91, .9);
    filter: none;
}

.btn-ghost {
    --btn-bg: rgba(255, 255, 255, .06);
    --btn-color: var(--text);
    --btn-border: transparent;
    background: rgba(255, 255, 255, .06);
    border-color: transparent;
    color: var(--text);
    backdrop-filter: none;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .11);
    border-color: transparent;
    color: #fff;
}

.btn-dark {
    border-radius: 999px;
}

.btn-sm {
    min-height: 34px;
    padding: 8px 14px;
    font-size: 12px;
}

.btn-lg {
    min-height: 46px;
    padding: 13px 24px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    font-family: var(--font);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: none;
}

.badge--brand {
    border-color: transparent;
    background: rgba(199, 255, 91, .14);
    color: var(--brand);
}

.badge svg {
    width: 12px;
    height: 12px;
}

.input,
.select,
.textarea {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--text);
    font-family: var(--font);
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: rgba(199, 255, 91, .5);
    outline: none;
}

.field > label {
    color: var(--muted);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.eyebrow {
    gap: 8px;
    color: var(--muted);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 14px;
    height: 3px;
    border-radius: 999px;
    background: var(--brand);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding-top: 0;
    border-top: 0;
}

.section-head h2 {
    margin-top: 6px;
    font-family: var(--display);
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 700;
    letter-spacing: -.02em;
}

.section-head p {
    margin-top: 6px;
    max-width: 560px;
    color: var(--muted);
    font-size: 13.5px;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    color: var(--text);
    font-family: var(--display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.section-link:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, .09);
    color: #fff;
}

.section-link svg {
    width: 15px;
    height: 15px;
}

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */

.portal-home {
    padding-top: 22px;
}

.portal-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 20px;
}

.portal-intro h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.035em;
}

.portal-intro h1 em {
    color: var(--brand);
    font-style: normal;
}

.portal-intro p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13.5px;
}

.intent-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 26px;
}

.intent-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 114px;
    padding: 14px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--g1, #2a2d3a), var(--g2, #17191f));
    color: #fff;
    isolation: isolate;
    transition: transform .2s, filter .2s;
}

.intent-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(120% 100% at 100% 0%, rgba(255, 255, 255, .2), transparent 52%),
        linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .33));
}

.intent-tile:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.intent-tile__label {
    font-family: var(--display);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.15;
}

.intent-tile__count {
    margin-top: 2px;
    color: rgba(255, 255, 255, .7);
    font-size: 11px;
    font-weight: 500;
}

.intent-tile__icon {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 42px;
    line-height: 1;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .28));
}

.portal-block {
    margin-bottom: 30px;
}

.portal-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.portal-section-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text);
}

.portal-section-title h2 {
    margin: 0;
    font-family: var(--display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.015em;
}

.portal-section-title svg {
    width: 18px;
    height: 18px;
    color: var(--muted);
}

.portal-section-title:hover h2 {
    color: var(--brand);
}

.portal-section-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.portal-see-all {
    margin-right: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.portal-see-all:hover {
    color: var(--brand);
}

.portal-arrow {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    color: var(--text);
    cursor: pointer;
    transition: background .2s, color .2s;
}

.portal-arrow:hover {
    background: rgba(255, 255, 255, .14);
    color: var(--brand);
}

.portal-arrow:disabled {
    opacity: .3;
    cursor: default;
}

.portal-arrow svg {
    width: 17px;
    height: 17px;
}

.portal-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 6px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.portal-row::-webkit-scrollbar {
    display: none;
}

.game-tile {
    flex: 0 0 224px;
    min-width: 0;
    scroll-snap-align: start;
}

.game-tile--wide {
    flex: 0 0 460px;
}

.game-tile__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    background: var(--surface-2);
    box-shadow: 0 10px 26px -20px rgba(0, 0, 0, .8);
}

.game-tile__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.game-tile:hover .game-tile__media img {
    transform: scale(1.045);
}

.game-tile__badge {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 2;
    padding: 3px 7px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(18, 19, 24, .78);
    color: #fff;
    font-family: var(--display);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.game-tile__badge--new {
    border-color: transparent;
    background: var(--brand);
    color: var(--brand-ink);
}

.game-tile__play {
    position: absolute;
    right: 9px;
    bottom: 9px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--brand-ink);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s, transform .2s;
}

.game-tile:hover .game-tile__play {
    opacity: 1;
    transform: translateY(0);
}

.game-tile__play svg {
    width: 16px;
    height: 16px;
}

.game-tile__info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 30px 11px 10px;
    background: linear-gradient(180deg, transparent, rgba(7, 8, 12, .9));
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s, transform .2s;
}

.game-tile--wide .game-tile__info,
.game-tile:hover .game-tile__info {
    opacity: 1;
    transform: translateY(0);
}

.game-tile__info strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-family: var(--display);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-tile__info span {
    display: block;
    overflow: hidden;
    color: rgba(255, 255, 255, .64);
    font-size: 10.5px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-tile--wide .game-tile__info {
    padding: 46px 16px 13px;
}

.game-tile--wide .game-tile__info strong {
    font-size: 20px;
}

.game-tile--wide .game-tile__info span {
    font-size: 11.5px;
}

.game-tile--wide .game-tile__play {
    width: 46px;
    height: 46px;
    right: 14px;
    bottom: 14px;
}

/* CTA comunidad */

.portal-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 8px 0 10px;
    padding: clamp(22px, 3vw, 34px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    background:
        radial-gradient(80% 130% at 100% 0%, rgba(199, 255, 91, .2), transparent 50%),
        linear-gradient(120deg, #2a1b6b, #1b1e2a 58%, #20252c);
}

.portal-cta h2 {
    margin: 4px 0 6px;
    font-family: var(--display);
    font-size: clamp(24px, 2.8vw, 34px);
    font-weight: 800;
    letter-spacing: -.03em;
}

.portal-cta p {
    max-width: 520px;
    color: var(--muted);
    font-size: 13.5px;
}

.portal-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* --------------------------------------------------------------------------
   Tarjetas de juego (catálogo)
   -------------------------------------------------------------------------- */

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.game-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.game-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.game-card__media {
    aspect-ratio: 16 / 9;
    border-radius: 0;
}

.game-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card__media::after {
    background: linear-gradient(180deg, transparent 58%, rgba(7, 8, 12, .7));
}

.game-card__cat {
    top: 9px;
    left: 9px;
    padding: 3px 7px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    background: rgba(18, 19, 24, .78);
    color: #fff;
    font-family: var(--display);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.game-card__play {
    right: 9px;
    bottom: 9px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--brand);
    color: var(--brand-ink);
    opacity: 0;
    transform: translateY(4px);
    backdrop-filter: none;
    box-shadow: none;
}

.game-card:hover .game-card__play {
    opacity: 1;
    transform: translateY(0);
    background: var(--brand);
    border-color: transparent;
    color: var(--brand-ink);
}

.game-card__play svg {
    width: 16px;
    height: 16px;
}

.game-card__fav {
    top: 9px;
    right: 9px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    background: rgba(18, 19, 24, .7);
    color: #fff;
    opacity: 0;
    backdrop-filter: blur(6px);
}

.game-card:hover .game-card__fav,
.game-card__fav.is-active {
    opacity: 1;
}

.game-card__fav.is-active {
    border-color: rgba(199, 255, 91, .5);
    color: var(--brand);
}

.game-card__body {
    padding: 11px 12px 13px;
}

.game-card__body h3 {
    overflow: hidden;
    font-family: var(--display);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-card__body h3 a:hover {
    color: var(--brand);
}

.game-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    row-gap: 2px;
    margin-top: 5px;
    color: var(--muted-2);
    font-family: var(--font);
    font-size: 10.5px;
    letter-spacing: 0;
    text-transform: none;
}

.game-card__meta svg {
    width: 12px;
    height: 12px;
}

.game-card__meta .stars {
    font-size: 9px;
}

.stars__fill {
    color: var(--brand);
}

/* --------------------------------------------------------------------------
   Obras, noticias, eventos
   -------------------------------------------------------------------------- */

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

.art-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.art-card {
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.art-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.art-card__media {
    aspect-ratio: 16 / 10;
    border-radius: 0;
}

.art-card__type {
    top: 9px;
    left: 9px;
    padding: 3px 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(18, 19, 24, .8);
    color: #fff;
    font-family: var(--display);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.art-card__type svg {
    width: 11px;
    height: 11px;
}

.art-card__open {
    right: 9px;
    bottom: 9px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(18, 19, 24, .75);
    color: #fff;
    opacity: 0;
    transform: translateY(4px);
    backdrop-filter: blur(6px);
    box-shadow: none;
}

.art-card:hover .art-card__open {
    opacity: 1;
    transform: none;
    background: var(--brand);
    color: var(--brand-ink);
}

.art-card__body {
    gap: 5px;
    padding: 11px 12px 13px;
}

.art-card__meta {
    color: var(--muted-2);
    font-family: var(--font);
    font-size: 10px;
    letter-spacing: 0;
    text-transform: none;
}

.art-card__body h3 {
    overflow: hidden;
    font-family: var(--display);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.art-card__body p {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.art-card__more {
    padding-top: 5px;
    color: var(--muted);
    font-family: var(--display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.art-card:hover .art-card__more {
    color: var(--brand);
}

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

.news-card {
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.news-card__media {
    aspect-ratio: 16 / 9;
    border-radius: 0;
}

.news-card__tag {
    top: 9px;
    left: 9px;
    padding: 3px 7px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(18, 19, 24, .78);
    color: #fff;
    font-family: var(--display);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .03em;
    backdrop-filter: blur(6px);
}

.news-card__body {
    padding: 11px 12px 13px;
}

.news-card__date {
    color: var(--muted-2);
    font-family: var(--font);
    font-size: 10px;
    letter-spacing: 0;
    text-transform: none;
}

.news-card__body h3 {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 4px;
    font-family: var(--display);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-card__body h3 a:hover {
    color: var(--brand);
}

.news-card__body p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-card__more {
    padding-top: 6px;
    color: var(--muted);
    font-family: var(--display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.news-card:hover .news-card__more {
    color: var(--brand);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.event-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.event-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.event-card__media {
    aspect-ratio: 16 / 9;
    border-radius: 0;
}

.event-card__media img {
    transition: transform .35s;
}

.event-card:hover .event-card__media img {
    transform: scale(1.03);
}

.event-card__body {
    gap: 6px;
    padding: 11px 12px 13px;
}

.event-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.event-card__dateline {
    color: var(--brand);
    font-family: var(--display);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.event-card__top .badge {
    padding: 3px 7px;
    font-size: 9px;
}

.event-card__body h3 {
    font-family: var(--display);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
}

.event-card__body h3 a:hover {
    color: var(--brand);
}

.event-card__body p {
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.45;
}

.event-card__meta {
    color: var(--muted-2);
    font-family: var(--font);
    font-size: 10.5px;
    letter-spacing: 0;
    text-transform: none;
}

.event-card__meta svg {
    width: 12px;
    height: 12px;
}

/* --------------------------------------------------------------------------
   Páginas internas
   -------------------------------------------------------------------------- */

.page-head {
    padding: 24px 0 18px;
    border-bottom: 1px solid var(--line);
    background: none;
}

.page-head::after {
    display: none;
}

.page-head h1 {
    margin: 14px 0 8px;
    font-family: var(--display);
    font-size: clamp(28px, 3.4vw, 38px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.03em;
}

.page-head p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
}

.breadcrumb {
    gap: 7px;
    color: var(--muted-2);
    font-family: var(--font);
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
}

.breadcrumb svg {
    width: 12px;
    height: 12px;
}

.breadcrumb a:hover {
    color: var(--brand);
}

.catalog-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding-block: 24px 36px;
}

.filters {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.filter-block + .filter-block {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.filter-block h3 {
    margin-bottom: 10px;
    color: var(--muted);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-family: var(--display);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.filter-link:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.filter-link.is-active {
    background: rgba(199, 255, 91, .12);
    color: var(--brand);
}

.filter-link em {
    color: inherit;
    font-family: var(--font);
    font-size: 10.5px;
    font-style: normal;
    opacity: .65;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    font-family: var(--font);
    font-size: 11px;
    letter-spacing: 0;
}

.tag:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.tag.is-active {
    border-color: transparent;
    background: var(--brand);
    color: var(--brand-ink);
}

.catalog-toolbar {
    gap: 10px;
    margin-bottom: 18px;
}

.catalog-toolbar .search-field {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.catalog-toolbar .search-field svg {
    color: var(--muted);
}

.catalog-toolbar .search-field input {
    width: 100%;
    height: 42px;
    padding: 10px 14px 10px 40px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-family: var(--font);
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
}

.catalog-toolbar .search-field input:focus {
    border-color: rgba(199, 255, 91, .45);
    background: var(--surface);
    outline: 0;
}

.catalog-toolbar .select {
    width: auto;
    min-width: 160px;
    height: 42px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    background-color: var(--surface);
    color: var(--text);
    font-family: var(--font);
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
}

.catalog-count {
    color: var(--muted-2);
    font-family: var(--font);
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
}

.pagination a,
.pagination span {
    border-radius: 8px;
    border-color: var(--line);
    background: var(--surface);
    color: var(--muted);
    font-family: var(--font);
    font-size: 12px;
}

.pagination a:hover {
    border-color: var(--line-strong);
    color: #fff;
}

.pagination .is-current {
    border-color: transparent;
    background: var(--brand);
    color: var(--brand-ink);
}

.empty-state {
    border: 1px dashed var(--line-strong);
    border-radius: 16px;
    background: var(--surface);
    color: var(--muted);
}

.empty-state strong {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Ficha de juego
   -------------------------------------------------------------------------- */

.game-hero {
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    min-height: auto;
}

.game-hero__bg {
    opacity: .18;
}

.game-hero__bg img {
    filter: blur(34px) saturate(1.1);
    opacity: .7;
}

.game-hero__bg::after {
    background:
        linear-gradient(90deg, rgba(21, 23, 29, .96), rgba(21, 23, 29, .72) 58%, rgba(21, 23, 29, .9)),
        linear-gradient(0deg, rgba(21, 23, 29, .98), transparent 70%);
}

.game-hero__inner {
    gap: 24px;
    padding: clamp(18px, 2.4vw, 26px);
}

.game-cover {
    width: clamp(220px, 25vw, 310px);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.game-info h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.03em;
}

.game-info__tagline {
    margin-top: 7px;
    max-width: 640px;
    color: var(--muted);
    font-size: 13.5px;
}

.game-info__tags {
    gap: 6px;
    margin-bottom: 10px;
}

.game-info__meta {
    gap: 8px 14px;
    margin-top: 12px;
    color: var(--muted);
    font-family: var(--font);
    font-size: 11.5px;
    letter-spacing: 0;
    text-transform: none;
}

.game-info__meta svg {
    width: 14px;
    height: 14px;
}

.game-info__meta .dot {
    width: 3px;
    height: 3px;
    background: var(--muted-2);
}

.game-info__actions {
    gap: 8px;
    margin-top: 18px;
}

.game-info__actions .fav-btn.is-active {
    border-color: rgba(199, 255, 91, .4);
    background: rgba(199, 255, 91, .1);
    color: var(--brand);
}

.game-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    margin-top: 20px;
}

.panel {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.panel h2 {
    font-family: var(--display);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.prose {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
}

.prose h2,
.prose h3 {
    font-family: var(--display);
    font-weight: 700;
    color: var(--text);
}

.prose a {
    color: var(--brand);
}

.prose blockquote {
    border-left-color: var(--brand);
    color: var(--text);
}

.game-sidebar .panel,
.game-sidebar__card {
    border-radius: 16px;
    background: var(--surface);
}

.game-sidebar h3 {
    font-family: var(--display);
}

.screenshot-strip,
.screenshots {
    gap: 10px;
}

.screenshots a,
.screenshot-strip a,
.screenshot-strip img,
.screenshots img {
    border-radius: 12px;
}

/* --------------------------------------------------------------------------
   Obras y lector PDF
   -------------------------------------------------------------------------- */

.art-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    margin: 22px 0 26px;
}

.art-hero__cover {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.art-hero__body h1 {
    margin: 0 0 8px;
    font-family: var(--display);
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.03em;
}

.art-hero__author,
.art-hero__meta {
    color: var(--muted);
    font-family: var(--font);
    font-size: 11.5px;
    letter-spacing: 0;
    text-transform: none;
}

.art-hero__description {
    color: var(--muted);
    font-size: 13.5px;
}

.art-toolbar {
    gap: 12px;
    margin: 20px 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.art-filters {
    gap: 6px;
}

.art-filter {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
}

.art-filter span {
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: inherit;
    font-size: 10px;
}

.art-filter:hover {
    border-color: var(--line-strong);
    color: #fff;
}

.art-filter.is-active {
    border-color: transparent;
    background: var(--brand);
    color: var(--brand-ink);
}

.art-filter.is-active span {
    background: rgba(16, 20, 0, .16);
    color: var(--brand-ink);
}

.art-toolbar__count {
    color: var(--muted-2);
    font-family: var(--font);
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
}

.pdf-reader {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.pdf-toolbar {
    padding: 4px 4px 12px;
}

.pdf-reader .icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text);
}

.pdf-reader .icon-btn:hover {
    border-color: var(--brand);
    background: var(--surface-3);
    color: var(--brand);
}

.pdf-jump {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--muted);
}

.pdf-jump input {
    color: var(--text);
}

.pdf-book {
    border-radius: 12px;
    background: #0b0d12;
}

.pdf-book__page {
    border-radius: 6px;
}

.pdf-book__turn {
    border-radius: 12px;
}

.pdf-reader__foot {
    color: var(--muted-2);
    font-family: var(--font);
    font-size: 11px;
    letter-spacing: 0;
}

.pdf-reader__foot a {
    color: var(--brand);
}

.art-visual a,
.art-video iframe,
.art-video video {
    border-radius: 16px;
}

/* --------------------------------------------------------------------------
   Cuenta y acceso
   -------------------------------------------------------------------------- */

.auth-wrap {
    gap: 24px;
    padding-block: 28px;
}

.auth-art {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        radial-gradient(80% 80% at 15% 10%, rgba(124, 92, 255, .35), transparent 60%),
        radial-gradient(70% 70% at 90% 90%, rgba(199, 255, 91, .16), transparent 60%),
        #1b1e27;
}

.auth-art__chip {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-family: var(--display);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.auth-art h2 {
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -.03em;
}

.auth-art p {
    color: rgba(255, 255, 255, .68);
}

.auth-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}

.auth-card h1 {
    font-family: var(--display);
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -.03em;
}

.auth-card > p {
    color: var(--muted);
    font-size: 13px;
}

.auth-form {
    gap: 14px;
}

.auth-demo {
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--muted);
    font-family: var(--font);
    font-size: 11px;
}

.auth-switch {
    color: var(--muted);
    font-size: 12.5px;
}

.auth-switch a {
    color: var(--brand);
}

.account-layout {
    gap: 20px;
    padding-block: 24px 36px;
}

.account-card,
.account-stat,
.account-section .panel {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.account-card .avatar {
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--pink));
}

.account-card h2 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 18px;
}

.account-stats {
    gap: 8px;
}

.account-stat {
    padding: 12px 8px;
    background: var(--surface-2);
}

.account-stat strong {
    font-family: var(--display);
    font-size: 24px;
    font-weight: 800;
    color: var(--brand);
}

.account-stat span {
    color: var(--muted);
    font-family: var(--font);
    font-size: 9px;
    letter-spacing: 0;
    text-transform: none;
}

.account-main h1 {
    font-family: var(--display);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -.03em;
}

.account-section h2 {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 700;
}

.newsletter-form input {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text);
    font-family: var(--font);
    font-size: 13px;
}

input[type="file"]::file-selector-button {
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text);
    font-family: var(--display);
    font-size: 11px;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    padding: 34px 0 20px;
    border-top: 1px solid var(--line);
    background: #121318;
    color: var(--text);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, .8fr));
    gap: 28px;
}

.footer-brand p {
    max-width: 320px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.55;
}

.footer-mail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
}

.footer-mail:hover {
    color: var(--brand);
}

.footer-mail svg {
    width: 13px;
    height: 13px;
}

.footer-col h4 {
    margin-bottom: 10px;
    color: var(--muted);
    font-family: var(--font);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-col a {
    color: rgba(245, 246, 250, .78);
    font-size: 12.5px;
}

.footer-col a:hover {
    color: var(--brand);
}

.socials {
    margin-top: 14px;
}

.socials a {
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
}

.socials a:hover {
    border-color: var(--line-strong);
    color: var(--brand);
}

.footer-wordmark {
    display: none;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-family: var(--font);
    font-size: 10.5px;
    letter-spacing: 0;
    text-transform: none;
}

.footer-bottom .admin-link {
    color: var(--muted-2);
}

.footer-bottom .admin-link:hover {
    color: var(--brand);
}

.install-app {
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    font-family: var(--display);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.install-app:hover {
    border-color: var(--line-strong);
    color: var(--brand);
}

/* --------------------------------------------------------------------------
   Menú móvil
   -------------------------------------------------------------------------- */

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 120;
    padding: 18px 20px 24px;
    background: #15171d;
}

.mobile-nav__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.mobile-nav__top .brand__mark {
    width: 32px;
    height: 32px;
}

.mobile-nav__top .icon-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    color: var(--text);
}

.mobile-nav__links {
    display: flex;
    flex-direction: column;
}

.mobile-nav__links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    font-family: var(--display);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.mobile-nav__links a span {
    color: var(--muted-2);
    font-family: var(--font);
    font-size: 10px;
    letter-spacing: 0;
    text-transform: none;
}

.mobile-nav__links a:hover {
    color: var(--brand);
}

.mobile-nav__footer {
    margin-top: 22px;
    gap: 8px;
}

.mobile-nav__footer .btn {
    border-radius: 999px;
}

/* --------------------------------------------------------------------------
   Utilidades
   -------------------------------------------------------------------------- */

.tag-cloud {
    margin-bottom: 16px;
}

.page-head__row {
    align-items: flex-end;
}

.recent-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.recent-row::-webkit-scrollbar {
    display: none;
}

.recent-row .game-card {
    flex: 0 0 210px;
}

.recent-games .section-head {
    margin-bottom: 14px;
}

.quickplay__dialog {
    border-radius: 20px;
    background: var(--surface);
}

.quickplay__bar {
    border-radius: 12px;
    background: #17191f;
}

.quickplay__btn {
    border-radius: 10px;
}

.adgate {
    background: #17191f;
}

.adgate__panel {
    background: var(--surface);
}

.toast {
    border-radius: 12px;
}

.lightbox img {
    border-radius: 12px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .intent-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1000px) {
    .header-search {
        width: min(440px, 40vw);
    }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: inline-grid;
    }

    .main-nav {
        display: none;
    }

    .header-search {
        display: none;
    }

    .header-inner {
        gap: 10px;
    }

    .header-actions {
        margin-left: auto;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .filters {
        position: static;
    }

    .game-layout {
        grid-template-columns: 1fr;
    }

    .art-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .portal-home {
        padding-top: 16px;
    }

    .portal-intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .intent-row {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .intent-row::-webkit-scrollbar {
        display: none;
    }

    .intent-tile {
        flex: 0 0 168px;
        min-height: 96px;
        padding: 12px;
    }

    .intent-tile__icon {
        font-size: 34px;
    }

    .game-tile {
        flex: 0 0 190px;
    }

    .game-tile--wide {
        flex: 0 0 280px;
    }

    .game-tile--wide .game-tile__info strong {
        font-size: 17px;
    }

    .portal-section-head {
        margin-bottom: 10px;
    }

    .portal-section-title h2 {
        font-size: 18px;
    }

    .portal-see-all {
        display: none;
    }

    .portal-arrow {
        width: 30px;
        height: 30px;
    }

    .games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .art-grid,
    .art-grid--three,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .portal-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .game-hero__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .game-cover {
        width: 100%;
        max-width: 420px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-login {
        padding: 9px 13px;
        font-size: 12px;
    }

    .brand__text {
        font-size: 15px;
    }

    .brand__text b,
    .brand__text sup {
        font-size: 7px;
        padding: 2px 5px;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }

    .header-fav {
        display: none;
    }

    .header-login {
        font-size: 11px;
        padding: 8px 12px;
    }

    .brand__text {
        font-size: 14px;
    }

    .page-head h1 {
        font-size: 26px;
    }
}

.portal-newsletter {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 460px;
    margin-top: 16px;
}

.portal-newsletter input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(0, 0, 0, .2);
    color: var(--text);
    font-family: var(--font);
    font-size: 12.5px;
}

.portal-newsletter input:focus {
    border-color: rgba(199, 255, 91, .5);
    outline: 0;
}

.mobile-nav .header-search {
    display: flex;
    width: 100%;
    margin: 0 0 18px;
}

@media (max-width: 720px) {
    .portal-newsletter {
        flex-direction: column;
        align-items: stretch;
        max-width: none;
    }

    .portal-newsletter .btn {
        width: 100%;
    }
}

/* La portada de noticias ya trae su propia etiqueta */
.news-hero .news-card__tag {
    display: none;
}

.game-tile {
    position: relative;
    display: block;
}

@media (hover: none) {
    .game-tile__info {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 720px) {
    .game-tile__info,
    .game-tile--wide .game-tile__info {
        position: static;
        padding: 8px 2px 0;
        background: none;
        opacity: 1;
        transform: none;
    }

    .game-tile__info strong,
    .game-tile--wide .game-tile__info strong {
        color: var(--text);
        font-size: 13px;
    }

    .game-tile__info span,
    .game-tile--wide .game-tile__info span {
        color: var(--muted-2);
        font-size: 10px;
    }

    .game-tile__play {
        opacity: 1;
        transform: none;
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 720px) {
    .game-tile__info,
    .game-tile--wide .game-tile__info {
        display: block;
    }
}

/* --------------------------------------------------------------------------
   Descargas
   -------------------------------------------------------------------------- */

.download-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin: 22px 0 18px;
}

.download-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.download-filter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    transition: background .2s, border-color .2s, color .2s;
}

.download-filter span {
    display: inline-grid;
    place-items: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: inherit;
    font-size: 9.5px;
}

.download-filter:hover {
    border-color: var(--line-strong);
    color: #fff;
}

.download-filter.is-active {
    border-color: transparent;
    background: var(--brand);
    color: var(--brand-ink);
}

.download-filter.is-active span {
    background: rgba(16, 20, 0, .15);
    color: var(--brand-ink);
}

.download-count {
    color: var(--muted-2);
    font-size: 11.5px;
}

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

.download-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.download-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.download-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--surface-2);
}

.download-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}

.download-card:hover .download-card__media img {
    transform: scale(1.04);
}

.download-card__format,
.download-card__size {
    position: absolute;
    top: 10px;
    z-index: 2;
    padding: 3px 7px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(18, 19, 24, .78);
    color: #fff;
    font-family: var(--display);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.download-card__format {
    left: 10px;
    border-color: transparent;
    background: var(--brand);
    color: var(--brand-ink);
}

.download-card__size {
    right: 10px;
}

.download-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
}

.download-card__body h3 {
    overflow: hidden;
    font-family: var(--display);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-card__body h3 a:hover {
    color: var(--brand);
}

.download-card__body p {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.download-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted-2);
    font-size: 10.5px;
}

.download-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.download-card__meta svg {
    width: 12px;
    height: 12px;
}

.download-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}

.download-card__btn {
    min-height: 32px;
    padding: 7px 12px;
    font-size: 11.5px;
    text-decoration: none;
}

.download-card__disabled {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px dashed var(--line-strong);
    border-radius: 999px;
    color: var(--muted-2);
    font-size: 10.5px;
}

.download-card__disabled svg {
    width: 13px;
    height: 13px;
}

/* Ficha de descarga */

.download-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    margin: 22px 0 28px;
}

.download-hero__cover {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.download-hero__cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.download-hero__body h1 {
    margin: 12px 0 8px;
    font-family: var(--display);
    font-size: clamp(30px, 3.8vw, 46px);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -.035em;
}

.download-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 11.5px;
}

.download-author svg {
    width: 14px;
    height: 14px;
}

.download-description {
    margin-top: 14px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.65;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.download-unavailable {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border: 1px dashed var(--line-strong);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
}

.download-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--line);
}

.download-info > div {
    padding: 9px 12px;
    background: var(--surface);
}

.download-info span {
    display: block;
    color: var(--muted-2);
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.download-info strong {
    display: block;
    margin-top: 2px;
    color: var(--text);
    font-family: var(--display);
    font-size: 12.5px;
    font-weight: 500;
}

.download-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    color: var(--muted-2);
    font-size: 11px;
    line-height: 1.5;
}

.download-note svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--brand);
}

@media (max-width: 1000px) {
    .download-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .download-grid {
        grid-template-columns: 1fr;
    }

    .download-hero {
        grid-template-columns: 1fr;
    }

    .download-info {
        grid-template-columns: 1fr;
    }
}

/* Seguí jugando */
.portal-see-all {
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--display);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.recent-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.recent-row::-webkit-scrollbar {
    display: none;
}

.recent-card {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 240px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    transition: border-color .2s, background .2s;
}

.recent-card:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
}

.recent-card__cover {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    background: var(--surface-2);
}

.recent-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-card__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.recent-card__body strong {
    overflow: hidden;
    color: var(--text);
    font-family: var(--display);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-card__body span {
    color: var(--muted-2);
    font-size: 10.5px;
}

.recent-card__play {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-left: auto;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--brand);
    color: var(--brand-ink);
    font-size: 10px;
}

/* --------------------------------------------------------------------------
   Búsqueda global, contacto y legales
   -------------------------------------------------------------------------- */

.global-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(760px, 100%);
    margin-top: 18px;
    padding: 6px 6px 6px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
}

.global-search:focus-within {
    border-color: rgba(199, 255, 91, .45);
}

.global-search > svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--muted);
}

.global-search input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    outline: 0;
}

.global-search .btn {
    flex-shrink: 0;
}

.search-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 12.5px;
}

.search-summary a {
    color: var(--brand);
}

.search-group {
    margin-bottom: 30px;
}

.search-group__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.search-group__head h2 {
    margin: 0;
    font-family: var(--display);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.015em;
}

.search-group__head h2 span {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    margin-left: 5px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: var(--muted);
    font-family: var(--font);
    font-size: 10px;
    font-weight: 600;
    vertical-align: middle;
}

.search-suggestions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

/* Contacto */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 22px;
    align-items: start;
    padding: 24px 0 36px;
}

.contact-card,
.contact-info {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.contact-card {
    padding: clamp(20px, 3vw, 30px);
}

.contact-card__head {
    margin-bottom: 18px;
}

.contact-card__head h2 {
    margin-top: 6px;
    font-family: var(--display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.contact-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-card .field {
    margin-bottom: 14px;
}

.contact-card textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-card .btn {
    margin-top: 4px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 22px;
}

.contact-info__block {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.contact-info__block:last-child {
    border-bottom: 0;
}

.contact-info__block > a {
    display: inline-block;
    margin-top: 6px;
    color: var(--brand);
    font-family: var(--display);
    font-size: 17px;
    font-weight: 600;
    word-break: break-word;
}

.contact-info__block p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
}

.contact-info__note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.contact-info__note svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--brand);
}

.contact-info__note p {
    margin-top: 0;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Legales */

.legal-updated {
    display: inline-block;
    margin-top: 10px;
    color: var(--muted-2);
    font-size: 11px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
    padding: 24px 0 40px;
}

.legal-nav {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.legal-nav a {
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
}

.legal-nav a:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.legal-nav a.is-active {
    background: rgba(199, 255, 91, .12);
    color: var(--brand);
}

.legal-content {
    max-width: 820px;
}

.legal-intro {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.legal-content section {
    position: relative;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.legal-index {
    display: block;
    margin-bottom: 4px;
    color: var(--brand);
    font-family: var(--display);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
}

.legal-content h2 {
    margin-bottom: 8px;
    font-family: var(--display);
    font-size: 20px;
    font-weight: 700;
}

.legal-content p {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.75;
}

.legal-content ul {
    margin: 8px 0 10px 18px;
    list-style: disc;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.75;
}

.legal-content a {
    color: var(--brand);
}

.legal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 11px;
}

.legal-footer a {
    color: var(--brand);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 10.5px;
}

.footer-legal a {
    color: var(--muted-2);
}

.footer-legal a:hover {
    color: var(--brand);
}

@media (max-width: 900px) {
    .contact-layout,
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .search-suggestions {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .contact-card .form-row {
        grid-template-columns: 1fr;
    }

    .search-suggestions {
        grid-template-columns: 1fr;
    }

    .search-group__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .global-search {
        padding-left: 12px;
    }
}

/* Acceso: enlaces y notas */
.auth-forgot {
    margin-top: 12px;
    text-align: center;
}

.auth-forgot a {
    color: var(--muted);
    font-size: 12px;
}

.auth-forgot a:hover {
    color: var(--brand);
}

.auth-note {
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px dashed var(--line-strong);
    border-radius: 10px;
    color: var(--muted-2);
    font-size: 11px;
    line-height: 1.55;
}

/* ==========================================================================
   Novelas
   ========================================================================== */

.novel-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 36px;
}

.novel-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.novel-grid--home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.novel-card {
    min-width: 0;
}

.novel-card__cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-2);
    box-shadow: 0 18px 34px -30px rgba(0, 0, 0, .9);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.novel-card:hover .novel-card__cover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.novel-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}

.novel-card:hover .novel-card__cover img {
    transform: scale(1.04);
}

.novel-card__flag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(15, 17, 22, .82);
    color: #ffd479;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.novel-card__read {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--brand);
    color: var(--brand-ink);
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s;
}

.novel-card__read svg {
    width: 13px;
    height: 13px;
}

.novel-card:hover .novel-card__read {
    opacity: 1;
    transform: translateY(0);
}

.novel-card__body {
    padding: 11px 2px 0;
}

.novel-card__genre {
    display: inline-block;
    margin-bottom: 4px;
    color: var(--brand);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.novel-card__body h3 {
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.novel-card__body h3 a:hover {
    color: var(--brand);
}

.novel-card__meta {
    display: block;
    color: var(--muted-2);
    font-size: 11.5px;
}

.novel-card__body p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Catálogo ---------------------------------------------------------------- */

.novel-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 6px 0 22px;
}

.novel-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.novel-filters::-webkit-scrollbar {
    display: none;
}

.novel-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: color .18s, border-color .18s, background .18s;
}

.novel-filter span {
    color: var(--muted-2);
    font-size: 11px;
}

.novel-filter:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

.novel-filter.is-active {
    border-color: transparent;
    background: var(--brand);
    color: var(--brand-ink);
}

.novel-filter.is-active span {
    color: rgba(16, 20, 0, .6);
}

.novel-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: min(360px, 100%);
    padding: 4px 4px 4px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
}

.novel-search svg {
    width: 16px;
    height: 16px;
    color: var(--muted-2);
    flex-shrink: 0;
}

.novel-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    outline: none;
}

.novel-search input::placeholder {
    color: var(--muted-2);
}

.novel-writing-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 10px 0 50px;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        radial-gradient(600px 200px at 100% 0%, rgba(244, 114, 182, .16), transparent 70%),
        var(--surface);
}

.novel-writing-cta h2 {
    margin: 4px 0 6px;
    font-size: 24px;
}

.novel-writing-cta p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* Ficha ------------------------------------------------------------------- */

.novel-page {
    padding-bottom: 56px;
}

.novel-hero {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
    margin: 26px 0 52px;
}

.novel-hero__cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 30px 70px -44px rgba(0, 0, 0, 1);
}

.novel-genre {
    display: inline-flex;
    padding: 5px 11px;
    border: 1px solid rgba(199, 255, 91, .3);
    border-radius: 999px;
    background: rgba(199, 255, 91, .09);
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.novel-hero__body h1 {
    margin: 12px 0 6px;
    font-size: clamp(32px, 4.4vw, 54px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.02;
}

.novel-byline {
    display: block;
    color: var(--muted);
    font-size: 13.5px;
}

.novel-synopsis {
    max-width: 680px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.75;
}

.novel-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    margin: 22px 0;
    color: var(--muted);
    font-size: 12.5px;
}

.novel-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.novel-stats svg {
    width: 15px;
    height: 15px;
    color: var(--muted-2);
}

.novel-stats strong {
    color: var(--text);
    font-weight: 600;
}

.novel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.novel-preview-note {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding: 14px 18px;
    border: 1px dashed rgba(255, 184, 77, .45);
    border-radius: 14px;
    background: rgba(255, 184, 77, .08);
    color: #ffd28a;
}

.novel-preview-note > svg {
    flex-shrink: 0;
}

.novel-preview-note div {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 2px;
}

.novel-preview-note strong {
    font-size: 13px;
}

.novel-preview-note span {
    font-size: 12px;
    color: rgba(255, 210, 138, .8);
}

.novel-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.novel-section-head h2 {
    margin: 4px 0 0;
    font-size: 24px;
}

.novel-section-head__count {
    color: var(--muted-2);
    font-size: 12px;
}

.novel-toc {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
}

.novel-toc li + li {
    border-top: 1px solid var(--line);
}

.novel-toc a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    transition: background .18s;
}

.novel-toc a:hover {
    background: var(--surface-2);
}

.novel-toc__num {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.novel-toc__body {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 2px;
}

.novel-toc__body strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.novel-toc__body span {
    color: var(--muted-2);
    font-size: 11.5px;
}

.novel-toc a > svg {
    width: 15px;
    height: 15px;
    color: var(--muted-2);
}

.novel-related {
    margin-top: 54px;
}

/* Lector ------------------------------------------------------------------ */

.page-reader {
    background: #15171d;
}

.reader-shell {
    --reader-font: 19px;
    --reader-bg: #15171d;
    --reader-paper: #1b1d25;
    --reader-text: #eceef4;
    --reader-muted: #a2a6b3;
    --reader-line: rgba(255, 255, 255, .09);
    min-height: calc(100dvh - var(--header-h));
    background: var(--reader-bg);
    color: var(--reader-text);
}

.reader-shell[data-theme="sepia"] {
    --reader-bg: #ece0c8;
    --reader-paper: #fbf3e2;
    --reader-text: #3a3126;
    --reader-muted: #786a56;
    --reader-line: rgba(58, 49, 38, .14);
}

.reader-shell[data-theme="light"] {
    --reader-bg: #eceef2;
    --reader-paper: #ffffff;
    --reader-text: #22242c;
    --reader-muted: #676b78;
    --reader-line: rgba(34, 36, 44, .12);
}

.reader-progress {
    position: sticky;
    top: var(--header-h);
    z-index: 60;
    height: 3px;
    background: var(--reader-line);
}

.reader-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--brand);
    transition: width .12s linear;
}

.reader-bar {
    position: sticky;
    top: calc(var(--header-h) + 3px);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px clamp(12px, 2.4vw, 26px);
    border-bottom: 1px solid var(--reader-line);
    background: color-mix(in srgb, var(--reader-bg) 88%, transparent);
    backdrop-filter: blur(14px);
}

.reader-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    max-width: 240px;
    padding: 7px 12px;
    border: 1px solid var(--reader-line);
    border-radius: 999px;
    color: var(--reader-muted);
    font-size: 12px;
    transition: color .18s, border-color .18s;
}

.reader-back:hover {
    color: var(--reader-text);
    border-color: var(--reader-line);
}

.reader-back svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.reader-back__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reader-title {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 1px;
}

.reader-title strong {
    overflow: hidden;
    color: var(--reader-text);
    font-family: var(--display);
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reader-title span {
    color: var(--reader-muted);
    font-size: 11px;
}

.reader-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.reader-tool {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--reader-line);
    border-radius: 9px;
    background: transparent;
    color: var(--reader-text);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.reader-tool:hover {
    background: color-mix(in srgb, var(--reader-text) 8%, transparent);
}

.reader-theme {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--reader-line);
    border-radius: 9px;
    color: var(--reader-muted);
}

.reader-theme svg {
    width: 14px;
    height: 14px;
}

.reader-theme select {
    border: 0;
    background: transparent;
    color: var(--reader-text);
    font: inherit;
    font-size: 11.5px;
    outline: none;
    cursor: pointer;
}

.reader-theme option {
    color: #22242c;
}

.reader-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 30px;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 26px clamp(12px, 2.4vw, 26px) 10px;
}

.reader-paper {
    min-width: 0;
    padding: clamp(26px, 5.2vw, 64px);
    border: 1px solid var(--reader-line);
    border-radius: 18px;
    background: var(--reader-paper);
    box-shadow: 0 30px 60px -50px rgba(0, 0, 0, .8);
}

.reader-head {
    margin-bottom: 30px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--reader-line);
}

.reader-kicker {
    display: block;
    color: var(--brand);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.reader-head h1 {
    margin: 8px 0 8px;
    color: var(--reader-text);
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.15;
    letter-spacing: -.02em;
}

.reader-meta {
    color: var(--reader-muted);
    font-size: 12px;
}

.reader-content {
    color: var(--reader-text);
    font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
    font-size: var(--reader-font);
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.reader-content p,
.reader-content div {
    margin: 0 0 1.15em;
}

.reader-content > p:first-child,
.reader-content > div:first-child {
    margin-top: 0;
}

.reader-content h2,
.reader-content h3 {
    margin: 1.8em 0 .6em;
    color: var(--reader-text);
    font-family: var(--display);
    line-height: 1.2;
}

.reader-content h2 {
    font-size: 1.45em;
}

.reader-content h3 {
    font-size: 1.2em;
}

.reader-content blockquote {
    margin: 1.5em 0;
    padding: 2px 0 2px 20px;
    border-left: 3px solid var(--brand);
    color: var(--reader-muted);
    font-style: italic;
}

.reader-content ul,
.reader-content ol {
    margin: 0 0 1.2em;
    padding-left: 1.4em;
}

.reader-content li {
    margin-bottom: .4em;
}

.reader-content hr {
    width: 46px;
    height: 0;
    margin: 2.2em auto;
    border: 0;
    border-top: 2px solid var(--reader-line);
}

.reader-content strong {
    font-weight: 700;
}

.reader-end {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 38px;
    padding-top: 18px;
    border-top: 1px solid var(--reader-line);
    color: var(--reader-muted);
    font-size: 11.5px;
}

.reader-end span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.reader-end svg {
    width: 14px;
    height: 14px;
}

.reader-end a {
    color: var(--brand);
    font-weight: 600;
}

.reader-side {
    position: sticky;
    top: calc(var(--header-h) + 88px);
    align-self: start;
    max-height: calc(100dvh - var(--header-h) - 110px);
    overflow-y: auto;
}

.reader-side__card {
    padding: 16px;
    border: 1px solid var(--reader-line);
    border-radius: 16px;
    background: var(--reader-paper);
}

.reader-side__card h2 {
    margin: 4px 0 12px;
    color: var(--reader-text);
    font-size: 16px;
}

.reader-toc {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 2px;
}

.reader-toc a {
    display: flex;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 8px;
    color: var(--reader-muted);
    font-size: 12px;
    line-height: 1.4;
}

.reader-toc a span {
    color: var(--reader-muted);
    opacity: .7;
}

.reader-toc a:hover {
    background: color-mix(in srgb, var(--reader-text) 6%, transparent);
    color: var(--reader-text);
}

.reader-toc a.is-current {
    background: rgba(199, 255, 91, .12);
    color: var(--reader-text);
    font-weight: 600;
}

.reader-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 22px clamp(12px, 2.4vw, 26px) 48px;
}

.reader-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--reader-line);
    border-radius: 14px;
    background: var(--reader-paper);
    color: var(--reader-text);
}

.reader-nav__link:hover {
    border-color: var(--brand);
}

.reader-nav__link--next {
    justify-content: flex-end;
    text-align: right;
}

.reader-nav__link span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.reader-nav__link small {
    color: var(--reader-muted);
    font-size: 10.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.reader-nav__link strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reader-nav__link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--brand);
}

/* Encabezado móvil -------------------------------------------------------- */

@media (max-width: 900px) {
    .header-inner {
        gap: 8px;
        min-width: 0;
    }

    .brand {
        min-width: 0;
        flex-shrink: 1;
    }

    .brand__logo {
        height: 27px;
        max-width: 118px;
    }

    .header-actions {
        gap: 6px;
        flex-shrink: 0;
    }

    .header-login {
        padding-inline: 13px;
        font-size: 13px;
    }

    .novel-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .novel-grid--home {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .novel-hero {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 24px;
    }

    .reader-wrap {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .reader-side {
        display: none;
    }
}

@media (max-width: 700px) {
    .novel-grid,
    .novel-grid--three,
    .novel-grid--home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .novel-hero {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .novel-hero__cover {
        width: min(210px, 58%);
    }

    .novel-hero__body h1 {
        font-size: clamp(28px, 8vw, 40px);
    }

    .novel-writing-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .novel-toolbar {
        align-items: stretch;
    }

    .novel-search {
        min-width: 0;
        width: 100%;
    }

    .novel-toc a {
        padding: 12px 13px;
        gap: 10px;
    }

    .novel-toc__body strong {
        white-space: normal;
    }

    .reader-bar {
        gap: 8px;
        flex-wrap: wrap;
        padding: 8px 10px;
    }

    .reader-back {
        max-width: 42px;
        padding: 7px 9px;
    }

    .reader-back__label {
        display: none;
    }

    .reader-title {
        order: 3;
        flex-basis: 100%;
    }

    .reader-tools {
        margin-left: auto;
    }

    .reader-wrap {
        padding: 10px 8px 0;
    }

    .reader-paper {
        padding: 24px 18px 30px;
        border-radius: 12px;
    }

    .reader-head h1 {
        font-size: clamp(24px, 7vw, 32px);
    }

    .reader-content {
        font-size: max(17px, var(--reader-font));
        line-height: 1.8;
    }

    .reader-nav {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 16px 8px calc(30px + env(safe-area-inset-bottom));
    }

    .reader-end {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .header-fav {
        display: none;
    }

    .brand__logo {
        height: 24px;
        max-width: 98px;
    }

    .header-login {
        padding-inline: 11px;
        font-size: 12.5px;
    }

    .novel-grid,
    .novel-grid--three,
    .novel-grid--home {
        gap: 12px;
    }

    .novel-card__body h3 {
        font-size: 14px;
    }

    .novel-card__body p {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Desarrolladores
   -------------------------------------------------------------------------- */

.dev-count {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.dev-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.dev-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dev-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.dev-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.dev-card__banner {
    display: block;
    height: 88px;
    overflow: hidden;
    background:
        radial-gradient(120px 80px at 18% 20%, rgba(199, 255, 91, .32), transparent 70%),
        linear-gradient(135deg, rgba(124, 92, 255, .55), rgba(71, 215, 255, .2)),
        var(--surface-2);
}

.dev-card__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .78;
    transition: transform .35s ease;
}

.dev-card:hover .dev-card__banner img {
    transform: scale(1.05);
}

.dev-card__body {
    padding: 0 17px 17px;
}

.dev-card__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-top: -32px;
}

.dev-card__avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
    color: var(--brand);
    font-family: var(--display);
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.dev-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dev-card__heading {
    flex: 1;
    min-width: 0;
    padding-bottom: 3px;
}

.dev-card__flag {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 3px 8px;
    border: 1px solid rgba(199, 255, 91, .35);
    border-radius: 999px;
    background: rgba(16, 20, 0, .62);
    color: var(--brand);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.dev-card__heading h3 {
    overflow: hidden;
    margin: 0;
    font-size: 17.5px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dev-card__heading h3 a:hover {
    color: var(--brand);
}

.dev-card__role {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    color: var(--brand);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.dev-card__body p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.dev-card__skills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 11px;
}

.dev-skill {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

.dev-card__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 10.5px;
}

.dev-card__foot span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dev-card__foot svg {
    width: 12px;
    height: 12px;
}

.dev-card__more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    color: var(--text);
    font-size: 11.5px;
    font-weight: 700;
}

.dev-card__more svg {
    width: 13px;
    height: 13px;
}

.dev-card__more:hover {
    color: var(--brand);
}

.dev-invite {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 30px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(480px 220px at 0% 0%, rgba(124, 92, 255, .18), transparent 70%),
        var(--surface);
}

.dev-invite h2 {
    margin: 3px 0 4px;
    font-size: clamp(21px, 3vw, 28px);
}

.dev-invite p {
    max-width: 640px;
    color: var(--muted);
    font-size: 13px;
}

.dev-hero {
    position: relative;
    overflow: hidden;
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
}

.dev-hero__banner {
    height: 230px;
    overflow: hidden;
    background:
        radial-gradient(600px 260px at 12% 0%, rgba(199, 255, 91, .2), transparent 70%),
        linear-gradient(135deg, rgba(124, 92, 255, .55), rgba(71, 215, 255, .18)),
        var(--surface-2);
}

.dev-hero__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .82;
}

.dev-hero__content {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding: 0 26px 24px;
    margin-top: -54px;
}

.dev-hero__avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 116px;
    height: 116px;
    overflow: hidden;
    border: 4px solid var(--surface);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
    color: var(--brand);
    font-family: var(--display);
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -.03em;
    box-shadow: 0 18px 35px -20px #000;
}

.dev-hero__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dev-hero__info {
    flex: 1;
    min-width: 0;
    padding-bottom: 2px;
}

.dev-hero__info h1 {
    margin: 4px 0 7px;
    font-size: clamp(30px, 4vw, 48px);
}

.dev-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 15px;
    color: var(--muted);
    font-size: 12.5px;
}

.dev-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dev-hero__meta svg {
    width: 14px;
    height: 14px;
}

.dev-hero__badge {
    color: var(--brand);
    font-weight: 700;
}

.dev-hero__actions {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 2px;
}

.dev-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
    margin-top: 20px;
}

.dev-profile-main,
.dev-profile-side {
    display: grid;
    gap: 18px;
}

.dev-bio {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.8;
}

.dev-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.dev-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dev-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 12.5px;
    font-weight: 600;
    transition: border-color .15s, color .15s, background .15s;
}

.dev-link:hover {
    border-color: rgba(199, 255, 91, .35);
    background: var(--surface-3);
    color: var(--brand);
}

.dev-link svg {
    width: 15px;
    height: 15px;
    color: var(--brand);
}

.panel.mini-dev {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px;
}

/* Tarjetas de autores (sin banner, con avatar integrado) */
.author-card .dev-card__head {
    margin-top: 0;
    padding-top: 16px;
}

.author-card .dev-card__avatar {
    width: 64px;
    height: 64px;
    font-size: 20px;
}

.author-card .dev-card__heading {
    padding-bottom: 0;
}

/* Autores seguidos y novedades en la cuenta */
.account-authors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.account-author {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    transition: border-color .15s, background .15s;
}

.account-author:hover {
    border-color: rgba(199, 255, 91, .35);
    background: var(--surface-2);
}

.account-author__avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--brand);
    font-family: var(--display);
    font-size: 13px;
    font-weight: 700;
}

.account-author__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-author span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.account-author strong {
    overflow: hidden;
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-author small {
    overflow: hidden;
    color: var(--muted-2);
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-updates {
    display: grid;
    gap: 8px;
}

.account-update {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px 10px 8px 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
}

.account-update:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
}

.account-update__cover {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 38px;
    height: 48px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--surface-3);
    color: var(--brand);
}

.account-update__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-update__cover--icon svg {
    width: 16px;
    height: 16px;
}

.account-update__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.account-update__body strong {
    overflow: hidden;
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-update__body small {
    overflow: hidden;
    color: var(--muted-2);
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-update > svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--muted-2);
}

.game-video-main {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #000;
}

.game-video-main iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.game-video-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
    color: var(--muted-2);
    font-size: 10.5px;
}

.game-video-foot a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
}

.game-video-foot svg {
    width: 13px;
    height: 13px;
}

.game-video-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.game-video-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #000;
    cursor: pointer;
}

.game-video-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .75;
    transition: opacity .2s, transform .25s;
}

.game-video-thumb span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .18);
    color: #fff;
    font-size: 22px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, .8);
}

.game-video-thumb:hover img {
    opacity: 1;
    transform: scale(1.04);
}

.game-video-thumb.is-active {
    border-color: rgba(199, 255, 91, .55);
    box-shadow: 0 0 0 1px rgba(199, 255, 91, .25);
}

@media (max-width: 680px) {
    .game-video-thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-authors {
        grid-template-columns: 1fr;
    }
}


/* --------------------------------------------------------------------------
   Navegación móvil: barra inferior y menú por secciones
   -------------------------------------------------------------------------- */

.mobile-bottom-nav {
    display: none;
}

.mobile-cat-bar {
    display: none;
}

@media (max-width: 900px) {
    body {
        padding-bottom: 68px;
    }

    body.page-reader,
    body.page-auth,
    body.page-artwork--pdf,
    body.is-playing {
        padding-bottom: 0;
    }

    body.page-reader .mobile-bottom-nav,
    body.page-auth .mobile-bottom-nav,
    body.page-artwork--pdf .mobile-bottom-nav,
    body.is-playing .mobile-bottom-nav {
        display: none;
    }

    .mobile-bottom-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 110;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 2px;
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: rgba(15, 17, 23, .97);
        box-shadow: 0 -12px 30px -20px #000;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .mobile-bottom-nav a,
    .mobile-bottom-nav button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-height: 48px;
        padding: 5px 2px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: var(--muted-2);
        font: 600 9px/1 var(--font);
        text-decoration: none;
        cursor: pointer;
    }

    .mobile-bottom-nav svg {
        width: 20px;
        height: 20px;
    }

    .mobile-bottom-nav a.is-active,
    .mobile-bottom-nav a:hover,
    .mobile-bottom-nav button:hover {
        background: rgba(199, 255, 91, .08);
        color: var(--brand);
    }

    .mobile-nav {
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .mobile-nav__body {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding-bottom: 16px;
    }

    .mobile-nav__label {
        display: block;
        margin-bottom: 8px;
        color: var(--muted-2);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: .1em;
        text-transform: uppercase;
    }

    .mobile-nav__tiles {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .mobile-nav__tile {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 10px 11px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--surface);
        color: var(--text);
        font-family: var(--display);
        font-size: 13px;
        font-weight: 600;
    }

    .mobile-nav__tile svg {
        width: 17px;
        height: 17px;
        flex-shrink: 0;
        color: var(--brand);
    }

    .mobile-nav__tile.is-active {
        border-color: rgba(199, 255, 91, .4);
        background: rgba(199, 255, 91, .1);
        color: var(--brand);
    }

    .mobile-nav__chips {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
    }

    .mobile-nav__chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 7px 10px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: var(--surface);
        color: var(--muted);
        font-size: 11.5px;
        font-weight: 600;
    }

    .mobile-nav__chip em {
        color: var(--muted-2);
        font-style: normal;
        font-size: 10px;
        opacity: .75;
    }

    .mobile-nav__chip.is-active,
    .mobile-nav__chip:hover {
        border-color: rgba(199, 255, 91, .4);
        background: rgba(199, 255, 91, .1);
        color: var(--brand);
    }

    .mobile-nav__list {
        display: flex;
        flex-direction: column;
    }

    .mobile-nav__list a {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 10px 0;
        border-bottom: 1px solid var(--line);
        color: var(--muted);
        font-size: 12.5px;
        font-weight: 600;
    }

    .mobile-nav__list a svg {
        width: 16px;
        height: 16px;
        color: var(--brand);
    }

    .mobile-nav__list a.is-active,
    .mobile-nav__list a:hover {
        color: var(--text);
    }

    .catalog-layout .filters {
        display: none;
    }

    .mobile-cat-bar {
        display: flex;
        gap: 4px;
        overflow-x: auto;
        margin: 0 0 14px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .mobile-cat-bar::-webkit-scrollbar {
        display: none;
    }

    .mobile-cat {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        flex-shrink: 0;
        padding: 7px 10px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: var(--surface);
        color: var(--muted);
        font-size: 11px;
        font-weight: 600;
        white-space: nowrap;
    }

    .mobile-cat em {
        color: var(--muted-2);
        font-style: normal;
        font-size: 9.5px;
        opacity: .7;
    }

    .mobile-cat.is-active {
        border-color: rgba(199, 255, 91, .4);
        background: rgba(199, 255, 91, .12);
        color: var(--brand);
    }
}

.mini-dev__avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--brand);
    font-family: var(--display);
    font-size: 15px;
    font-weight: 700;
}

.mini-dev__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-dev__body {
    flex: 1;
    min-width: 0;
}

.mini-dev__body .eyebrow {
    margin: 0;
    font-size: 9px;
}

.mini-dev__body strong {
    display: block;
    overflow: hidden;
    font-family: var(--display);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-dev__body p {
    margin: 1px 0 0;
    color: var(--muted);
    font-size: 10.5px;
}

.mini-dev__link {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text);
}

.mini-dev__link svg {
    width: 14px;
    height: 14px;
}

.mini-dev__link:hover {
    border-color: rgba(199, 255, 91, .35);
    color: var(--brand);
}

@media (max-width: 1100px) {
    .dev-grid,
    .dev-grid--home,
    .dev-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dev-profile-grid {
        grid-template-columns: 1fr;
    }

    .dev-profile-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .dev-grid,
    .dev-grid--home,
    .dev-grid--three,
    .dev-profile-side {
        grid-template-columns: 1fr;
    }

    .dev-invite {
        flex-direction: column;
        align-items: flex-start;
    }

    .dev-hero__banner {
        height: 150px;
    }

    .dev-hero__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 0 18px 20px;
        margin-top: -44px;
    }

    .dev-hero__avatar {
        width: 88px;
        height: 88px;
        font-size: 28px;
    }

    .dev-hero__actions {
        width: 100%;
    }

    .dev-hero__actions .btn {
        flex: 1;
        justify-content: center;
    }
}


