/* ==========================================================================
   DITIO PLAY · sitio público
   ========================================================================== */

body {
    background:
        radial-gradient(900px 600px at 82% -8%, rgba(167, 139, 250, .13), transparent 62%),
        radial-gradient(1000px 700px at 6% 4%, rgba(110, 231, 255, .09), transparent 60%),
        radial-gradient(800px 600px at 50% 110%, rgba(255, 77, 46, .05), transparent 60%),
        var(--bg);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid transparent;
    transition: background .25s, border-color .25s, backdrop-filter .25s;
}

.site-header.is-scrolled {
    background: rgba(6, 9, 15, .82);
    border-bottom-color: var(--line);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    height: var(--header-h);
}

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

.brand__mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(140deg, var(--brand), #ff6a50 55%, var(--cyan));
    color: #08110a;
    box-shadow: 0 0 0 1px rgba(255, 77, 46, .25), 0 8px 26px -10px rgba(255, 77, 46, .7);
}

.brand__logo {
    display: block;
    width: auto;
    max-width: 190px;
    height: 38px;
    object-fit: contain;
}

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

.brand__text {
    font-family: var(--display);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1;
}

.brand__text span {
    color: var(--muted-2);
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 6px;
}

.nav-link {
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    transition: color .18s, background .18s;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .05);
}

.nav-link.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, .07);
}

.header-search {
    position: relative;
    margin-left: auto;
    width: min(270px, 24vw);
}

.header-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 15px;
    height: 15px;
    transform: translateY(-50%);
    color: var(--muted-2);
    pointer-events: none;
}

.header-search input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    font-size: 13px;
    transition: border-color .2s, background .2s;
}

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

.header-search input:focus {
    outline: none;
    border-color: rgba(255, 77, 46, .4);
    background: rgba(255, 255, 255, .06);
}

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

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

.avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(140deg, var(--violet), var(--cyan));
    color: #0b1020;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, .18);
}

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

.avatar--sm {
    width: 30px;
    height: 30px;
    font-size: 10px;
}

.user-menu {
    position: relative;
}

.user-menu > summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px;
    border-radius: 999px;
    transition: background .2s;
}

.user-menu > summary::-webkit-details-marker { display: none; }

.user-menu > summary:hover {
    background: rgba(255, 255, 255, .06);
}

.user-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 220px;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: rgba(14, 21, 34, .98);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    z-index: 70;
}

.user-menu__name {
    padding: 10px 12px 8px;
    font-size: 12px;
    color: var(--muted-2);
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu__panel a,
.user-menu__panel button {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    text-align: left;
    transition: background .16s, color .16s;
}

.user-menu__panel a:hover,
.user-menu__panel button:hover {
    background: rgba(255, 255, 255, .06);
    color: var(--text);
}

.user-menu__panel svg {
    width: 15px;
    height: 15px;
}

.menu-toggle {
    display: none;
}

/* Menú móvil */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    background: rgba(6, 9, 15, .96);
    backdrop-filter: blur(20px);
    padding: 22px;
    opacity: 0;
    transition: opacity .22s;
}

.mobile-nav.is-open {
    display: block;
    opacity: 1;
}

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

.mobile-nav__links {
    display: grid;
    gap: 6px;
}

.mobile-nav__links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    font-family: var(--display);
    font-size: 20px;
    font-weight: 600;
}

.mobile-nav__links a span {
    color: var(--muted-2);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
}

.mobile-nav__footer {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    margin-top: 22px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    overflow: hidden;
    background: linear-gradient(140deg, #101a2e, #0a101c 65%);
    min-height: 540px;
    display: flex;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 45%;
    opacity: .6;
    transform: scale(1.02);
}

.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 8, 14, .97) 0%, rgba(5, 8, 14, .88) 36%, rgba(5, 8, 14, .32) 66%, rgba(5, 8, 14, .45) 100%),
        linear-gradient(0deg, rgba(5, 8, 14, .9), transparent 58%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: 40px;
    align-items: center;
    width: 100%;
    padding: 52px;
}

.hero__content {
    max-width: 640px;
}

.hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid rgba(255, 77, 46, .28);
    background: rgba(255, 77, 46, .1);
    color: var(--brand);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero__kicker i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(42px, 6.4vw, 78px);
    line-height: .94;
    letter-spacing: -.045em;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, var(--brand), #ff6a50 45%, var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__text {
    max-width: 480px;
    color: #c2cee2;
    font-size: 15.5px;
    line-height: 1.65;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 20px;
    font-size: 12.5px;
    color: var(--muted);
}

.hero__meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--muted-2);
}

.hero__meta svg {
    display: inline-block;
    width: 15px;
    height: 15px;
    vertical-align: -3px;
}

.hero__meta .stars {
    font-size: 12px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero__rail {
    display: grid;
    gap: 10px;
    align-content: end;
    align-self: end;
}

.hero__rail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.mini-game {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .09);
    background: rgba(8, 13, 23, .55);
    backdrop-filter: blur(14px);
    transition: background .2s, border-color .2s, transform .2s;
}

.mini-game:hover {
    background: rgba(14, 21, 34, .8);
    border-color: rgba(255, 77, 46, .3);
    transform: translateX(-2px);
}

.mini-game__cover {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface-3);
}

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

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

.mini-game__body strong {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-game__body span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--muted-2);
}

.mini-game__arrow {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 77, 46, .12);
    color: var(--brand);
    flex-shrink: 0;
}

.mini-game__arrow svg {
    width: 13px;
    height: 13px;
}

.hero--plain .hero__inner {
    grid-template-columns: 1fr;
    align-items: center;
    min-height: 460px;
}

.hero--plain .hero__content {
    max-width: 720px;
}

/* --------------------------------------------------------------------------
   Barra de stats
   -------------------------------------------------------------------------- */

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(14, 21, 34, .5);
    overflow: hidden;
}

.stat {
    padding: 20px 26px;
    border-right: 1px solid var(--line);
}

.stat:last-child {
    border-right: 0;
}

.stat__value {
    font-family: var(--display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1;
}

.stat__value span {
    color: var(--brand);
}

.stat__label {
    margin-top: 5px;
    font-size: 11.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   Categorías
   -------------------------------------------------------------------------- */

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.cat-card {
    --cat: var(--brand);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background:
        radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--cat) 14%, transparent), transparent 60%),
        var(--surface);
    overflow: hidden;
    transition: transform .2s, border-color .2s;
}

.cat-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--cat) 45%, transparent);
}

.cat-card__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: color-mix(in srgb, var(--cat) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--cat) 28%, transparent);
    font-size: 21px;
}

.cat-card__name {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.cat-card__count {
    font-size: 12px;
    color: var(--muted-2);
}

.cat-card__arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--muted-2);
    transition: color .2s, transform .2s;
}

.cat-card:hover .cat-card__arrow {
    color: var(--cat);
    transform: translate(2px, -2px);
}

.cat-card__arrow svg {
    width: 16px;
    height: 16px;
}

/* --------------------------------------------------------------------------
   Tarjetas de juego
   -------------------------------------------------------------------------- */

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

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

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

.game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 77, 46, .32);
    box-shadow: 0 26px 50px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 77, 46, .06);
}

.game-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(140deg, var(--surface-3), var(--surface));
}

.game-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.2, .7, .3, 1);
}

.game-card:hover .game-card__media img {
    transform: scale(1.055);
}

.game-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(5, 8, 14, .65), transparent 45%);
    opacity: .85;
    transition: opacity .25s;
}

.game-card:hover .game-card__media::after {
    opacity: .55;
}

.game-card__cat {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(5, 8, 14, .72);
    backdrop-filter: blur(8px);
    font-size: 10.5px;
    font-weight: 600;
    color: #dbe6f7;
    letter-spacing: .02em;
}

.game-card__fav {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(5, 8, 14, .6);
    backdrop-filter: blur(8px);
    color: #cbd5e1;
    transition: color .18s, background .18s, transform .18s;
}

.game-card__fav:hover {
    background: rgba(5, 8, 14, .85);
    transform: scale(1.06);
}

.game-card__fav.is-active {
    color: #ff7d9b;
    border-color: rgba(255, 125, 155, .4);
}

.game-card__fav svg {
    width: 15px;
    height: 15px;
}

.game-card__play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--brand-ink);
    box-shadow: 0 8px 22px -8px rgba(255, 77, 46, .8);
    opacity: 0;
    transform: translateY(6px) scale(.9);
    transition: opacity .22s, transform .22s;
}

.game-card:hover .game-card__play {
    opacity: 1;
    transform: none;
}

.game-card__play svg {
    width: 14px;
    height: 14px;
    margin-left: 2px;
}

.game-card__body {
    padding: 13px 15px 15px;
}

.game-card__body h3 {
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: -.015em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 7px;
    font-size: 11.5px;
    color: var(--muted-2);
}

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

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

.game-card__meta .stars {
    font-size: 10px;
    letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   Ranking
   -------------------------------------------------------------------------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
    gap: 22px;
    align-items: start;
}

.rank-list {
    display: grid;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(14, 21, 34, .45);
    overflow: hidden;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--line);
    transition: background .18s;
}

.rank-item:last-child {
    border-bottom: 0;
}

.rank-item:hover {
    background: rgba(255, 255, 255, .035);
}

.rank-item__num {
    width: 26px;
    font-family: var(--display);
    font-size: 19px;
    font-weight: 700;
    color: var(--muted-2);
    text-align: center;
    flex-shrink: 0;
}

.rank-item:nth-child(1) .rank-item__num { color: var(--brand); }
.rank-item:nth-child(2) .rank-item__num { color: var(--cyan); }
.rank-item:nth-child(3) .rank-item__num { color: var(--violet); }

.rank-item__cover {
    width: 52px;
    height: 52px;
    border-radius: 11px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface-3);
}

.rank-item__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-item__body {
    flex: 1;
    min-width: 0;
}

.rank-item__body strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-item__body span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--muted-2);
}

.rank-item__plays {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.rank-item__plays svg {
    width: 12px;
    height: 12px;
    color: var(--muted-2);
}

.promo-panel {
    position: relative;
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 77, 46, .2);
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(255, 77, 46, .16), transparent 55%),
        radial-gradient(100% 100% at 0% 100%, rgba(167, 139, 250, .18), transparent 55%),
        var(--surface);
    overflow: hidden;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 26px;
}

.promo-panel__glow {
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 77, 46, .22), transparent 65%);
    pointer-events: none;
}

.promo-panel h3 {
    margin-top: 14px;
    font-size: 27px;
}

.promo-panel p {
    margin-top: 10px;
    font-size: 13.5px;
    color: var(--muted);
}

.promo-panel .btn {
    align-self: flex-start;
}

/* --------------------------------------------------------------------------
   Noticias
   -------------------------------------------------------------------------- */

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

.news-card {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
    transition: transform .22s, border-color .22s;
}

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

.news-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--surface-3);
}

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

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

.news-card__tag {
    position: absolute;
    left: 11px;
    top: 11px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(5, 8, 14, .75);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(8px);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--brand);
}

.news-card__body {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 18px;
    flex: 1;
}

.news-card__date {
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.news-card__body h3 {
    font-size: 17px;
    line-height: 1.28;
    letter-spacing: -.015em;
}

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

.news-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand);
}

.news-card__more svg {
    width: 13px;
    height: 13px;
    transition: transform .2s;
}

.news-card:hover .news-card__more svg {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Eventos
   -------------------------------------------------------------------------- */

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

.event-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
    transition: transform .22s, border-color .22s;
}

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

.event-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--surface-3);
}

.event-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .85;
}

.event-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(5, 8, 14, .78), transparent 60%);
}

.event-card__date {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: var(--brand);
    color: var(--brand-ink);
    line-height: 1;
    box-shadow: 0 12px 30px -14px rgba(255, 77, 46, .8);
}

.event-card__date strong {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.04em;
}

.event-card__date span {
    margin-top: 3px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.event-card__state {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.event-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    flex: 1;
}

.event-card__body h3 {
    font-size: 17.5px;
    line-height: 1.25;
}

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

.event-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 10px;
    font-size: 11.5px;
    color: var(--muted-2);
}

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

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

/* --------------------------------------------------------------------------
   Newsletter / CTA
   -------------------------------------------------------------------------- */

.cta-panel {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 36px;
    align-items: center;
    padding: 44px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 77, 46, .22);
    background:
        radial-gradient(90% 160% at 100% 0%, rgba(255, 77, 46, .16), transparent 55%),
        radial-gradient(90% 160% at 0% 100%, rgba(110, 231, 255, .1), transparent 55%),
        linear-gradient(120deg, #0d1728, #0a101c);
    overflow: hidden;
}

.cta-panel h2 {
    font-size: clamp(26px, 3.4vw, 40px);
    max-width: 520px;
}

.cta-panel p {
    margin-top: 10px;
    max-width: 460px;
    font-size: 14px;
    color: var(--muted);
}

.newsletter-form {
    display: flex;
    gap: 8px;
    width: min(440px, 100%);
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
    padding: 13px 18px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(5, 8, 14, .55);
    font-size: 13.5px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: rgba(255, 77, 46, .5);
}

.newsletter-form .btn {
    flex-shrink: 0;
}

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

.site-footer {
    margin-top: 70px;
    border-top: 1px solid var(--line);
    background: rgba(7, 11, 19, .7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-block: 52px;
}

.footer-brand p {
    margin-top: 14px;
    max-width: 300px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.footer-col h4 {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 16px;
}

.footer-col ul {
    display: grid;
    gap: 10px;
}

.footer-col a {
    font-size: 13.5px;
    color: var(--muted);
    transition: color .18s;
}

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

.socials {
    display: flex;
    gap: 9px;
    margin-top: 20px;
}

.socials a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    color: var(--muted);
    transition: color .2s, border-color .2s, background .2s;
}

.socials a:hover {
    color: var(--brand);
    border-color: rgba(255, 77, 46, .35);
    background: rgba(255, 77, 46, .07);
}

.socials svg {
    width: 16px;
    height: 16px;
}

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

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

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

/* --------------------------------------------------------------------------
   Cabecera de páginas internas
   -------------------------------------------------------------------------- */

.page-head {
    position: relative;
    padding-block: 52px 34px;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.page-head::after {
    content: "";
    position: absolute;
    top: -140px;
    right: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 77, 46, .09), transparent 65%);
    pointer-events: none;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    color: var(--muted-2);
}

.breadcrumb a {
    transition: color .18s;
}

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

.breadcrumb svg {
    width: 11px;
    height: 11px;
    opacity: .6;
}

.page-head h1 {
    margin-top: 14px;
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -.04em;
}

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

.page-head__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

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

.catalog-layout {
    display: grid;
    grid-template-columns: 246px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.filters {
    position: sticky;
    top: calc(var(--header-h) + 18px);
    display: grid;
    gap: 22px;
}

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

.filter-list {
    display: grid;
    gap: 3px;
}

.filter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 11px;
    border-radius: 9px;
    font-size: 13px;
    color: var(--muted);
    transition: background .16s, color .16s;
}

.filter-link:hover {
    background: rgba(255, 255, 255, .045);
    color: var(--text);
}

.filter-link.is-active {
    background: rgba(255, 77, 46, .1);
    color: var(--brand);
}

.filter-link em {
    font-style: normal;
    font-size: 11px;
    color: var(--muted-2);
    font-variant-numeric: tabular-nums;
}

.filter-link.is-active em {
    color: var(--brand);
}

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

.tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    font-size: 11.5px;
    color: var(--muted);
    transition: color .18s, border-color .18s, background .18s;
}

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

.tag.is-active {
    color: var(--brand);
    border-color: rgba(255, 77, 46, .35);
    background: rgba(255, 77, 46, .08);
}

.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

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

.catalog-toolbar .search-field svg {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 15px;
    height: 15px;
    transform: translateY(-50%);
    color: var(--muted-2);
}

.catalog-toolbar .search-field input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .035);
    font-size: 13.5px;
}

.catalog-toolbar .search-field input:focus {
    outline: none;
    border-color: rgba(255, 77, 46, .45);
}

.catalog-toolbar .select {
    width: auto;
    min-width: 160px;
    padding-block: 11px;
    background-color: rgba(255, 255, 255, .035);
}

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

.empty-state {
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 70px 24px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    text-align: center;
    color: var(--muted);
}

.empty-state strong {
    font-family: var(--display);
    font-size: 20px;
    color: var(--text);
}

/* Paginación */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 38px;
}

.pagination a,
.pagination span {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding-inline: 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
    transition: background .18s, color .18s, border-color .18s;
}

.pagination a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .05);
    border-color: var(--line-strong);
}

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

.pagination .is-disabled {
    opacity: .4;
    pointer-events: none;
}

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

.game-hero {
    position: relative;
    margin-top: 22px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    overflow: hidden;
    background: var(--surface);
    min-height: 400px;
}

.game-hero__bg {
    position: absolute;
    inset: 0;
}

.game-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(22px) saturate(1.2);
    transform: scale(1.12);
    opacity: .4;
}

.game-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 9, 15, .94), rgba(6, 9, 15, .55) 60%, rgba(6, 9, 15, .82)),
        linear-gradient(0deg, rgba(6, 9, 15, .96), transparent 70%);
}

.game-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 34px;
    padding: 44px;
}

.game-cover {
    width: 300px;
    flex-shrink: 0;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .95);
    background: var(--surface-3);
}

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

.game-info {
    flex: 1;
    min-width: 0;
    padding-bottom: 4px;
}

.game-info__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

.game-info h1 {
    font-size: clamp(34px, 5vw, 60px);
    letter-spacing: -.045em;
}

.game-info__tagline {
    margin-top: 10px;
    max-width: 620px;
    color: #c4d0e3;
    font-size: 15px;
}

.game-info__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 18px;
    font-size: 12.5px;
    color: var(--muted);
}

.game-info__meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--muted-2);
}

.game-info__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.game-info__actions .fav-btn.is-active {
    color: #ff7d9b;
    border-color: rgba(255, 125, 155, .4);
    background: rgba(255, 125, 155, .08);
}

.game-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
    align-items: start;
    margin-top: 34px;
}

.panel {
    padding: 26px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(14, 21, 34, .55);
}

.panel + .panel {
    margin-top: 18px;
}

.panel h2 {
    font-size: 21px;
    margin-bottom: 16px;
}

.panel h2:only-child {
    margin-bottom: 0;
}

.side-list {
    display: grid;
    gap: 0;
}

.side-list__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.side-list__row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.side-list__row dt {
    color: var(--muted-2);
}

.side-list__row dd {
    margin: 0;
    font-weight: 500;
    text-align: right;
}

.side-games {
    display: grid;
    gap: 10px;
}

.side-game {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px;
    margin-inline: -8px;
    border-radius: 12px;
    transition: background .18s;
}

.side-game:hover {
    background: rgba(255, 255, 255, .04);
}

.side-game__cover {
    width: 62px;
    height: 46px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface-3);
}

.side-game__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-game strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-game span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--muted-2);
}

.rating-box {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .025);
}

.rating-box__score {
    font-family: var(--display);
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.04em;
}

.rating-box__info {
    flex: 1;
}

.rating-box__info .stars {
    font-size: 15px;
    letter-spacing: 3px;
}

.rating-box__info p {
    margin-top: 5px;
    font-size: 11.5px;
    color: var(--muted-2);
}

.rating-input {
    display: flex;
    gap: 4px;
    margin-top: 12px;
}

.rating-input button {
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(148, 163, 184, .4);
    font-size: 21px;
    line-height: 1;
    transition: color .15s, transform .15s;
}

.rating-input button:hover,
.rating-input button.is-on {
    color: var(--brand);
    transform: scale(1.1);
}

.shots {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.shots a {
    flex: 0 0 min(360px, 82%);
    scroll-snap-align: start;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-3);
}

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

/* Prosa (noticias, descripciones) */
.prose {
    color: #c6d2e5;
    font-size: 14.5px;
    line-height: 1.8;
}

.prose > * + * {
    margin-top: 16px;
}

.prose h2 {
    margin-top: 30px;
    font-size: 24px;
    color: var(--text);
}

.prose h3 {
    margin-top: 24px;
    font-size: 19px;
    color: var(--text);
}

.prose strong {
    color: var(--text);
}

.prose a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose ul,
.prose ol {
    display: grid;
    gap: 8px;
    padding-left: 4px;
}

.prose ul li {
    position: relative;
    padding-left: 22px;
}

.prose ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: .72em;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--brand);
}

.prose ol {
    counter-reset: item;
    padding-left: 0;
}

.prose ol li {
    position: relative;
    padding-left: 30px;
    counter-increment: item;
}

.prose ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: .15em;
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border-radius: 7px;
    background: rgba(255, 77, 46, .12);
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
}

.prose blockquote {
    margin: 22px 0;
    padding: 16px 20px;
    border-left: 3px solid var(--brand);
    border-radius: 0 12px 12px 0;
    background: rgba(255, 77, 46, .05);
    color: #dbe6f7;
    font-size: 15px;
    font-style: italic;
}

.prose code {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .9em;
    color: var(--cyan);
}

.prose img {
    border-radius: 14px;
    border: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Noticia individual
   -------------------------------------------------------------------------- */

.article-head {
    padding-block: 44px 26px;
    max-width: 860px;
    margin-inline: auto;
}

.article-head h1 {
    margin-top: 16px;
    font-size: clamp(32px, 4.6vw, 52px);
    letter-spacing: -.04em;
}

.article-head__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: 18px;
    font-size: 12px;
    color: var(--muted-2);
}

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

.article-head__meta svg {
    width: 13px;
    height: 13px;
}

.article-cover {
    max-width: 1040px;
    margin: 10px auto 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}

.article-cover img {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
}

.article-body {
    max-width: 760px;
    margin: 40px auto 0;
}

.article-lead {
    font-size: 17px;
    line-height: 1.65;
    color: #d6e0ef;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted-2);
}

/* Noticia destacada (listado) */
.news-hero {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    margin-bottom: 26px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
    transition: border-color .22s, transform .22s;
}

.news-hero:hover {
    border-color: rgba(255, 77, 46, .3);
    transform: translateY(-2px);
}

.news-hero__media {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    background: var(--surface-3);
}

.news-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.news-hero:hover .news-hero__media img {
    transform: scale(1.03);
}

.news-hero__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 13px;
    padding: 38px;
}

.news-hero__body h2 {
    font-size: clamp(24px, 2.8vw, 34px);
    line-height: 1.15;
}

.news-hero__body p {
    font-size: 13.5px;
    line-height: 1.6;
}

/* Lista de eventos pasados */
.past-list {
    display: grid;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(14, 21, 34, .45);
    overflow: hidden;
}

.past-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    transition: background .18s;
}

.past-item:last-child {
    border-bottom: 0;
}

.past-item:hover {
    background: rgba(255, 255, 255, .035);
}

.past-item__date {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    line-height: 1;
    flex-shrink: 0;
}

.past-item__date strong {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 700;
}

.past-item__date span {
    font-size: 8.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-top: 3px;
}

.past-item__body {
    flex: 1;
    min-width: 0;
}

.past-item__body strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.past-item__body span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--muted-2);
}

.past-item__arrow {
    color: var(--muted-2);
}

.past-item__arrow svg {
    width: 15px;
    height: 15px;
}

/* --------------------------------------------------------------------------
   Evento individual
   -------------------------------------------------------------------------- */

.event-hero {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 28px;
    align-items: stretch;
    margin-top: 26px;
}

.event-hero__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    min-height: 320px;
}

.event-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-hero__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(255, 77, 46, .09), transparent 55%),
        var(--surface);
}

.event-facts {
    display: grid;
    gap: 14px;
}

.event-fact {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.event-fact__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 77, 46, .09);
    border: 1px solid rgba(255, 77, 46, .18);
    color: var(--brand);
    flex-shrink: 0;
}

.event-fact__icon svg {
    width: 16px;
    height: 16px;
}

.event-fact strong {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.event-fact span {
    display: block;
    margin-top: 2px;
    font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   Reproductor (página de juego)
   -------------------------------------------------------------------------- */

.is-playing {
    overflow: hidden;
}

.play-shell {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    background: #04060a;
}

.play-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 58px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 15, 26, .9);
    flex-shrink: 0;
}

.play-bar__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--muted);
    transition: color .18s, border-color .18s;
}

.play-bar__back:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

.play-bar__back svg {
    width: 14px;
    height: 14px;
}

.play-bar__title {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.play-bar__title strong {
    font-family: var(--display);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.play-bar__title span {
    font-size: 11px;
    color: var(--muted-2);
    white-space: nowrap;
}

.play-bar__actions {
    display: flex;
    gap: 8px;
}

.play-bar__actions .icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.play-bar__actions .icon-btn svg {
    width: 15px;
    height: 15px;
}

.play-frame {
    position: relative;
    flex: 1;
    background: #000;
}

.play-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

/* --------------------------------------------------------------------------
   Auth
   -------------------------------------------------------------------------- */

.auth-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: calc(100dvh - var(--header-h));
    padding-block: 26px;
}

.auth-art {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    overflow: hidden;
    padding: 46px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(90% 90% at 20% 10%, rgba(255, 77, 46, .18), transparent 55%),
        radial-gradient(80% 80% at 90% 90%, rgba(167, 139, 250, .25), transparent 55%),
        linear-gradient(140deg, #0e1728, #080d17);
}

.auth-art__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 30% 20%, #000, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 30% 20%, #000, transparent 70%);
    pointer-events: none;
}

.auth-art__content {
    position: relative;
    z-index: 1;
}

.auth-art h2 {
    margin-top: 18px;
    font-size: clamp(30px, 3.6vw, 46px);
    letter-spacing: -.04em;
    max-width: 420px;
}

.auth-art p {
    margin-top: 14px;
    max-width: 400px;
    font-size: 14px;
    color: #b9c6da;
}

.auth-art__chips {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-art__chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .13);
    background: rgba(5, 8, 14, .4);
    backdrop-filter: blur(8px);
    font-size: 12px;
    color: #cbd5e1;
}

.auth-panel {
    display: grid;
    place-items: center;
    padding: 40px 28px;
}

.auth-card {
    width: min(420px, 100%);
}

.auth-card h1 {
    font-size: 32px;
    letter-spacing: -.035em;
}

.auth-card > p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13.5px;
}

.auth-form {
    display: grid;
    gap: 16px;
    margin-top: 26px;
}

.auth-switch {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

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

.auth-demo {
    margin-top: 18px;
    padding: 13px 15px;
    border-radius: 12px;
    border: 1px dashed var(--line-strong);
    background: rgba(255, 255, 255, .025);
    font-size: 12px;
    color: var(--muted-2);
    line-height: 1.6;
}

.auth-demo code {
    color: var(--brand);
    font-size: 11.5px;
}

/* --------------------------------------------------------------------------
   Cuenta
   -------------------------------------------------------------------------- */

.account-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    padding-block: 40px 20px;
}

.account-card {
    padding: 26px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    text-align: center;
}

.account-card .avatar {
    width: 84px;
    height: 84px;
    margin: 0 auto 14px;
    font-size: 24px;
}

.account-card h2 {
    font-size: 21px;
}

.account-card p {
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--muted-2);
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
}

.account-stat {
    padding: 13px 10px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .025);
}

.account-stat strong {
    display: block;
    font-family: var(--display);
    font-size: 22px;
    line-height: 1;
}

.account-stat span {
    display: block;
    margin-top: 4px;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted-2);
}

.account-main h1 {
    font-size: 32px;
    letter-spacing: -.035em;
}

.account-main > p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13.5px;
}

.account-section {
    margin-top: 30px;
}

.account-section h2 {
    font-size: 20px;
    margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   404 / error
   -------------------------------------------------------------------------- */

.error-page {
    display: grid;
    place-items: center;
    min-height: calc(100dvh - var(--header-h) - 120px);
    padding-block: 60px;
    text-align: center;
}

.error-page__code {
    font-family: var(--display);
    font-size: clamp(90px, 18vw, 180px);
    font-weight: 700;
    line-height: .85;
    letter-spacing: -.06em;
    background: linear-gradient(160deg, var(--brand), var(--cyan) 60%, var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error-page h1 {
    margin-top: 18px;
    font-size: 28px;
}

.error-page p {
    margin: 10px auto 0;
    max-width: 420px;
    color: var(--muted);
    font-size: 14px;
}

.error-page .btn {
    margin-top: 24px;
}

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

@media (max-width: 1180px) {
    .hero__inner {
        grid-template-columns: 1fr;
        padding: 42px;
        gap: 26px;
    }

    .hero__bg {
        display: none;
    }

    .hero__rail {
        display: none;
    }

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

    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .footer-grid .footer-col:last-child {
        display: none;
    }
}

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

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
    }

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

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

    .filters {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 18px;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: rgba(255, 255, 255, .02);
    }

    .filter-block {
        flex: 1;
        min-width: 180px;
    }

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

    .filter-link {
        padding: 6px 10px;
    }

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

    .game-hero__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        gap: 22px;
    }

    .game-cover {
        width: min(320px, 100%);
    }

    .auth-wrap {
        grid-template-columns: 1fr;
    }

    .auth-art {
        display: none;
    }

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

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

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

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

    .news-hero__media {
        min-height: 220px;
        aspect-ratio: 16 / 9;
    }

    .news-hero__body {
        padding: 24px;
    }

    .news-grid,
    .events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .cta-panel {
        grid-template-columns: 1fr;
        padding: 32px;
        gap: 24px;
    }

    .newsletter-form {
        width: 100%;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat:nth-child(2) {
        border-right: 0;
    }

    .stat:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 620px) {
    .header-inner {
        gap: 12px;
    }

    .brand__text {
        font-size: 17px;
    }

    .hero {
        min-height: 0;
        margin-top: 14px;
    }

    .hero__inner {
        padding: 28px 22px;
    }

    .hero h1 {
        font-size: clamp(38px, 12vw, 54px);
    }

    .hero__text {
        font-size: 14px;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .btn {
        flex: 0 0 auto;
        width: 100%;
    }

    .page-head {
        padding-block: 34px 26px;
    }

    .page-head__row {
        flex-direction: column;
        align-items: flex-start;
    }

    .games-grid,
    .games-grid--3,
    .news-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }

    .cat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cat-card {
        padding: 16px;
        gap: 14px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        padding-block: 38px;
    }

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

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

    .cta-panel {
        padding: 24px;
    }

    .newsletter-form {
        flex-direction: column;
    }

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

    .article-head {
        padding-block: 30px 20px;
    }

    .article-body {
        margin-top: 26px;
    }

    .panel {
        padding: 20px;
    }

    .event-hero__panel {
        padding: 24px;
    }

    .game-hero__inner {
        padding: 22px;
    }

    .play-bar__title span {
        display: none;
    }

    .play-bar__back span {
        display: none;
    }

    .auth-panel {
        padding: 20px 0 40px;
    }

    .past-item {
        flex-wrap: wrap;
        gap: 10px;
    }

    .past-item__body {
        flex: 1 1 140px;
    }

    .past-item .badge {
        order: 3;
    }

    .past-item__arrow {
        margin-left: auto;
    }
}

/* --------------------------------------------------------------------------
   Quick Play
   -------------------------------------------------------------------------- */

.quickplay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: clamp(8px, 2vw, 24px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.quickplay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.quickplay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 12, .84);
    backdrop-filter: blur(10px);
}

.quickplay__dialog {
    position: relative;
    width: min(1280px, 96vw);
    height: min(820px, 92vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 24px;
    background: #070d17;
    box-shadow: 0 50px 120px -40px #000;
    transform: translateY(10px) scale(.987);
    transition: transform .22s cubic-bezier(.2, .8, .3, 1);
}

.quickplay.is-open .quickplay__dialog {
    transform: none;
}

.quickplay__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px 10px 18px;
    background: rgba(12, 20, 34, .96);
    border-bottom: 1px solid var(--line);
}

.quickplay__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.quickplay__heading strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quickplay__pulse {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 14px var(--brand);
    animation: quickPulse 1.8s ease-in-out infinite;
}

@keyframes quickPulse {
    50% { opacity: .45; transform: scale(.8); }
}

.quickplay__actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.quickplay__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.quickplay__btn:hover {
    background: rgba(255, 255, 255, .09);
    border-color: var(--line-strong);
}

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

.quickplay__btn--close {
    color: #ffb3c2;
}

.quickplay__stage {
    position: relative;
    flex: 1;
    min-height: 0;
    background: #02060c;
}

.quickplay__stage iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 0;
    transition: opacity .25s ease;
}

.quickplay__stage.is-ready iframe {
    opacity: 1;
}

.quickplay__loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.quickplay__stage.is-ready .quickplay__loading {
    display: none;
}

.spinner {
    width: 26px;
    height: 26px;
    border: 2px solid rgba(255, 255, 255, .16);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

body.quickplay-open {
    overflow: hidden;
}

/* El overlay del juego tapa el encabezado: que el menú móvil no
   intercepte los clics del botón de cerrar. */
body.quickplay-open .site-header,
body.quickplay-open .mobile-nav {
    pointer-events: none;
}

@media (max-width: 620px) {
    .quickplay {
        padding: 0;
    }

    .quickplay__dialog {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .quickplay__btn span {
        display: none;
    }

    .quickplay__btn--close span {
        display: inline;
    }
}

/* --------------------------------------------------------------------------
   Lightbox de capturas
   -------------------------------------------------------------------------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(2, 6, 12, .9);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: min(1200px, 94vw);
    max-height: 86vh;
    border-radius: 16px;
    box-shadow: 0 40px 100px -30px #000;
}

.lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(10, 17, 29, .8);
    color: var(--text);
    cursor: pointer;
}

.lightbox__close svg {
    width: 20px;
    height: 20px;
}

/* --------------------------------------------------------------------------
   Seguir jugando
   -------------------------------------------------------------------------- */

.recent-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

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

.recent-card:hover {
    background: var(--surface-2);
    border-color: rgba(255, 77, 46, .28);
    transform: translateY(-2px);
}

.recent-card__cover {
    width: 76px;
    height: 50px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;
    background: var(--surface-3);
}

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

.recent-card__body {
    min-width: 0;
    flex: 1;
}

.recent-card__body strong {
    display: block;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-card__body span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--muted-2);
}

.recent-card__play {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 77, 46, .12);
    color: var(--brand);
}

.recent-card__play svg {
    width: 14px;
    height: 14px;
}

.recent-clear {
    border: 0;
    background: none;
    color: var(--muted-2);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.recent-clear:hover {
    color: var(--brand);
}

/* --------------------------------------------------------------------------
   Instalar app
   -------------------------------------------------------------------------- */

.footer-bottom__right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.install-app {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 77, 46, .28);
    border-radius: 999px;
    background: rgba(255, 77, 46, .08);
    color: var(--brand);
    font: inherit;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}

.install-app[hidden] {
    display: none;
}

.install-app svg {
    width: 14px;
    height: 14px;
}

/* --------------------------------------------------------------------------
   Anuncios
   -------------------------------------------------------------------------- */

.adgate {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    background: #050a13;
}

.adgate[hidden] {
    display: none;
}

.adgate__media {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background: #02060c;
}

.adgate__media img,
.adgate__media video,
.adgate__media iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
}

.adgate__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: clamp(22px, 4vw, 44px);
    border-left: 1px solid var(--line);
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 77, 46, .1), transparent 45%),
        linear-gradient(160deg, #0d1727, #070d17);
}

.adgate__kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--brand);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.adgate__kicker svg {
    width: 15px;
    height: 15px;
}

.adgate__panel h3 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.adgate__panel p {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.65;
}

.adgate__bar {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.adgate__bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), var(--cyan));
    transition: width 1s linear;
}

.adgate__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.adgate__actions .btn {
    flex: 1 1 auto;
}

.play-ad {
    flex-shrink: 0;
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    background: #080e18;
}

.play-ad__link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 7px 10px;
    border: 1px solid rgba(255, 77, 46, .16);
    border-radius: 12px;
    background: rgba(255, 77, 46, .04);
    color: var(--text);
}

.play-ad__link:hover {
    border-color: rgba(255, 77, 46, .35);
    background: rgba(255, 77, 46, .07);
}

.play-ad__link img {
    width: 78px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: cover;
}

.play-ad__tag {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.play-ad__body {
    display: grid;
    min-width: 0;
    flex: 1;
}

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

.play-ad__body span {
    overflow: hidden;
    color: var(--muted-2);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.play-ad__link > svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--muted);
}

@media (max-width: 760px) {
    .adgate {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(180px, 1fr) auto;
    }

    .adgate__panel {
        border-top: 1px solid var(--line);
        border-left: 0;
        padding: 20px;
    }

    .play-ad__tag {
        display: none;
    }

    .play-ad__link img {
        width: 58px;
        height: 38px;
    }
}


.reward-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.reward-summary h2 {
    margin: 4px 0 6px;
    font-size: 30px;
}

.reward-history {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.reward-history__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
}

.reward-history__item > span:first-child {
    display: grid;
    min-width: 0;
    gap: 2px;
}

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

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

.user-menu__points {
    display: inline-flex;
    width: fit-content;
    margin: 2px 0 6px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 77, 46, .1);
    color: var(--brand);
    font-size: 10.5px;
    font-weight: 700;
}


/* --------------------------------------------------------------------------
   Obras: libros PDF, arte visual y video
   -------------------------------------------------------------------------- */

.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

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

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

.art-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-3px);
    box-shadow: 0 28px 60px -34px rgba(0, 0, 0, .9);
}

.art-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-3);
}

.art-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.art-card:hover .art-card__media img {
    transform: scale(1.035);
}

.art-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(6, 9, 15, .72));
    pointer-events: none;
}

.art-card__type {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 77, 46, .32);
    border-radius: 999px;
    background: rgba(6, 9, 15, .72);
    color: var(--brand);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

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

.art-card__open {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--brand-ink);
    box-shadow: 0 10px 26px -10px rgba(255, 77, 46, .8);
    transition: transform .25s;
}

.art-card:hover .art-card__open {
    transform: scale(1.08);
}

.art-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 18px 18px 20px;
}

.art-card__meta {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .02em;
}

.art-card__body h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.art-card__body h3 a {
    color: inherit;
}

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

.art-card__body p {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.55;
}

.art-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
    color: var(--brand);
    font-size: 12.5px;
    font-weight: 700;
}

.art-card__more svg {
    width: 15px;
    height: 15px;
    transition: transform .25s;
}

.art-card:hover .art-card__more svg {
    transform: translateX(3px);
}

.art-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 26px 0 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.art-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.art-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    transition: border-color .2s, color .2s, background .2s;
}

.art-filter span {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--surface-3);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

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

.art-filter.is-active {
    border-color: var(--brand);
    background: rgba(255, 77, 46, .1);
    color: var(--brand);
}

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

.art-toolbar__count {
    color: var(--muted);
    font-size: 12.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Ficha de obra ----------------------------------------------------------- */

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

.art-hero__cover {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .95);
}

.art-hero__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
    pointer-events: none;
}

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

.art-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.art-hero__body h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.02;
    letter-spacing: -.04em;
}

.art-hero__author {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 18px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
}

.art-hero__author svg {
    width: 15px;
    height: 15px;
}

.art-hero__description {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.art-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12.5px;
}

.art-hero__meta a,
.art-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.art-hero__meta a {
    color: var(--brand);
    font-weight: 600;
}

.art-hero__meta svg {
    width: 15px;
    height: 15px;
}

/* Visor de libro ---------------------------------------------------------- */

.pdf-reader {
    position: relative;
    margin: 0 0 46px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background:
        radial-gradient(700px 400px at 50% -10%, rgba(255, 77, 46, .06), transparent 70%),
        var(--surface);
}

.pdf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 4px 4px 14px;
}

.pdf-toolbar__nav,
.pdf-toolbar__tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdf-status {
    min-width: 150px;
    text-align: center;
    color: var(--muted);
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}

.pdf-jump {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 4px 0 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
}

.pdf-jump input {
    width: 52px;
    padding: 7px 4px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--fg);
    font: inherit;
    text-align: center;
}

.pdf-jump input:focus {
    outline: none;
    background: var(--surface-3);
}

.pdf-zoom {
    min-width: 46px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.pdf-reader .icon-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--fg);
    transition: border-color .2s, color .2s, background .2s;
}

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

.pdf-reader .icon-btn svg {
    width: 17px;
    height: 17px;
}

.pdf-book {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 16px 1fr;
    align-items: stretch;
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 22%),
        #0a0f18;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .05),
        0 40px 80px -45px rgba(0, 0, 0, 1);
    perspective: 1800px;
}

.pdf-book__page {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    padding: 10px;
    border-radius: 10px;
    background: #f6f4ee;
    box-shadow:
        0 18px 34px -22px rgba(0, 0, 0, .9),
        inset 0 0 0 1px rgba(0, 0, 0, .08);
    overflow: auto;
}

.pdf-book__page--left {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

.pdf-book__page--right {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

.pdf-book__spine {
    position: relative;
    background: linear-gradient(90deg,
        rgba(0, 0, 0, .28),
        rgba(0, 0, 0, .55) 45%,
        rgba(0, 0, 0, .28));
}

.pdf-book__canvas {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.pdf-book__canvas canvas {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%;
    margin: 0 auto;
    transition: width .2s;
}

.pdf-page-label {
    position: absolute;
    bottom: 7px;
    color: rgba(15, 23, 42, .42);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    letter-spacing: .08em;
}

.pdf-book__page--left .pdf-page-label { left: 12px; }
.pdf-book__page--right .pdf-page-label { right: 12px; }

.pdf-book__loading {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 18px;
    background: rgba(7, 11, 18, .92);
    color: var(--muted);
    font-size: 13px;
}

.pdf-book__page {
    cursor: pointer;
}

.pdf-book__page::before {
    content: "";
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    border-radius: 50%;
    background: rgba(8, 14, 10, .6);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

.pdf-book__page::after {
    content: "";
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 9px;
    height: 9px;
    margin-top: -6px;
    border-top: 2px solid var(--brand);
    border-right: 2px solid var(--brand);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

.pdf-book__page--left::before { left: 10px; }
.pdf-book__page--left::after { left: 25px; transform: rotate(-135deg); }
.pdf-book__page--right::before { right: 10px; }
.pdf-book__page--right::after { right: 25px; transform: rotate(45deg); }

.pdf-book__page:hover::before,
.pdf-book__page:hover::after {
    opacity: 1;
}

.pdf-book.is-flipping .pdf-book__page,
.pdf-book.is-flipping .pdf-book__canvas {
    overflow: visible;
}

.pdf-flip {
    position: absolute;
    inset: 10px;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    border-radius: 4px;
    background: #f6f4ee;
    box-shadow: 0 26px 50px -24px rgba(0, 0, 0, .9);
    transform: perspective(1800px) rotateY(0deg);
    transition: transform .58s cubic-bezier(.25, .7, .3, 1), box-shadow .58s ease;
    will-change: transform;
    transform-style: preserve-3d;
}

.pdf-flip canvas {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%;
    backface-visibility: hidden;
}

.pdf-flip::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(0, 0, 0, .38),
        rgba(0, 0, 0, 0) 24%,
        rgba(255, 255, 255, .16) 52%,
        rgba(0, 0, 0, 0) 78%,
        rgba(0, 0, 0, .32));
    opacity: 0;
    transition: opacity .3s ease;
}

.pdf-flip.is-next { transform-origin: left center; }
.pdf-flip.is-prev { transform-origin: right center; }

.pdf-flip.is-running.is-next {
    transform: perspective(1800px) rotateY(-176deg);
    box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .6);
}

.pdf-flip.is-running.is-prev {
    transform: perspective(1800px) rotateY(176deg);
    box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .6);
}

.pdf-flip.is-running::after {
    opacity: .65;
}

@media (max-width: 860px) {
    .pdf-flip {
        inset: 6px;
    }
}

@media (hover: none) {
    .pdf-book__page::before,
    .pdf-book__page::after {
        display: none;
    }
}

.pdf-book__error {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-content: center;
    gap: 8px;
    margin: 0;
    padding: 24px;
    border-radius: 18px;
    background: rgba(7, 11, 18, .94);
    color: var(--muted);
    text-align: center;
}

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

.pdf-reader__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 6px 2px;
    color: var(--muted);
    font-size: 12px;
}

.pdf-reader__foot strong {
    color: var(--fg);
    font-weight: 700;
}

.pdf-reader__foot a {
    color: var(--brand);
    font-size: 12px;
    font-weight: 600;
}

.pdf-reader:fullscreen {
    margin: 0;
    padding: 24px;
    border-radius: 0;
    background: #05080e;
    overflow: auto;
}

.pdf-reader:fullscreen .pdf-book {
    max-width: none;
}

/* Arte visual y video ----------------------------------------------------- */

.art-visual {
    margin: 0 0 46px;
    text-align: center;
}

.art-visual a {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
}

.art-visual img {
    display: block;
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    background: #05080e;
}

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

.art-visual__hint svg {
    width: 15px;
    height: 15px;
}

.art-video {
    margin: 0 0 46px;
}

.art-video iframe,
.art-video video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #05080e;
}

.art-video video {
    object-fit: contain;
}

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

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

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

@media (max-width: 860px) {
    .pdf-book {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .pdf-book__spine {
        display: none;
    }

    .pdf-book__page--left {
        display: none;
    }

    .pdf-book__page--right {
        border-radius: 10px;
    }

    .pdf-toolbar {
        justify-content: center;
    }

    .pdf-jump,
    .pdf-toolbar__tools .icon-btn:not([data-pdf-fullscreen]) {
        display: none;
    }
}

@media (max-width: 640px) {
    .art-grid,
    .art-grid--three {
        grid-template-columns: 1fr;
    }

    .art-toolbar {
        align-items: flex-start;
    }

    .art-hero__cover {
        border-radius: 18px;
    }

    .pdf-book__page {
        min-height: 260px;
        padding: 6px;
    }

    .pdf-book__loading {
        font-size: 12px;
    }

    .pdf-reader__foot span {
        display: none;
    }
}

/* ==========================================================================
   Inicio inmersivo del juego
   ========================================================================== */

body.is-playing {
    overscroll-behavior: none;
}

.play-shell {
    position: relative;
}

.play-start {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(700px 420px at 50% 0%, rgba(199, 255, 91, .16), transparent 70%),
        rgba(4, 6, 10, .9);
    backdrop-filter: blur(6px);
    transition: opacity .25s;
}

.play-start[hidden] {
    display: none;
}

.play-start.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-start__panel {
    width: min(460px, 100%);
    text-align: center;
}

.play-start__kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--brand);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.play-start__panel h1 {
    margin: 0 0 10px;
    font-family: var(--display);
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.03em;
}

.play-start__panel p {
    margin: 0 auto 22px;
    max-width: 380px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.play-start__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 210px;
    padding: 15px 30px;
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: var(--brand-ink);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 18px 40px -20px rgba(199, 255, 91, .7);
    transition: transform .18s, box-shadow .18s;
}

.play-start__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px -20px rgba(199, 255, 91, .85);
}

.play-start__button svg {
    width: 18px;
    height: 18px;
}

.play-start__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--muted-2);
    font-size: 10.5px;
}

.play-start__hint svg {
    width: 13px;
    height: 13px;
}

body.is-immersive .play-ad {
    display: none;
}

body.is-immersive .play-bar {
    height: 48px;
}

body.is-immersive .play-frame iframe {
    border-radius: 0;
}

@media (max-height: 520px) {
    .play-ad {
        display: none;
    }

    .play-bar {
        height: 44px;
    }

    .play-bar__title span {
        display: none;
    }

    .play-start__panel h1 {
        font-size: clamp(24px, 4vw, 34px);
    }

    .play-start__button {
        padding: 11px 24px;
    }

    .play-start__hint {
        display: none;
    }
}

