.game-detail {
    background-attachment: fixed;
}

.game-detail section[id],
.game-detail div[id] {
    scroll-margin-top: 96px;
}

.game-detail .Title:first-child,
.game-detail .Portada {
    position: relative;
    isolation: isolate;
}

.game-detail .Title:first-child {
    overflow: hidden;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    text-align: center;
}

.game-detail .Title:first-child::after {
    content: "";
    position: absolute;
    inset: auto -80px -100px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    z-index: -1;
}

.game-kicker {
    width: 100%;
    margin: 0 0 8px !important;
    color: #91b2ff !important;
    font: 900 12px 'Montserrat', sans-serif !important;
    text-transform: uppercase;
}

.game-detail .subtitle {
    max-width: 680px;
    margin: 10px auto 0;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: clamp(16px, 1.6vw, 20px) !important;
    line-height: 1.55;
}

.game-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

.game-hero-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 8px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, #2f74ff, #49b7ff);
    color: #ffffff !important;
    font: 900 13px 'Montserrat', sans-serif;
    text-decoration: none;
}

.game-hero-actions .btn.secondary {
    background: rgba(255, 255, 255, 0.08);
}

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

.logikamind-detail .game-hero-actions,
.emr-detail .game-hero-actions {
    position: relative;
    z-index: 2;
}

.logikamind-detail .Portada h1 {
    color: #dff1ff !important;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.52);
}

.logikamind-detail .logikamind-loop h2 {
    font-size: clamp(30px, 4vw, 46px);
}

.logikamind-detail .Portada .subtitle,
.emr-detail .Portada .subtitle {
    position: relative;
    z-index: 2;
    margin-top: 12px;
}

.emr-detail .PortadaTitulo {
    width: min(920px, calc(100% - 32px));
}

.game-redesign {
    color: #f6f7fb;
    font-family: 'Inter', 'Roboto Mono', system-ui, sans-serif;
}

.game-redesign main {
    display: block;
    padding-bottom: 42px;
}

.escoba-page {
    background:
        radial-gradient(circle at 12% 10%, rgba(47, 168, 107, 0.28), transparent 28%),
        linear-gradient(180deg, #07120f 0%, #10251d 48%, #07120f 100%);
}

.logikamind-page {
    background:
        radial-gradient(circle at 18% 10%, rgba(73, 183, 255, 0.24), transparent 30%),
        linear-gradient(180deg, #06101a 0%, #02070c 48%, #07111b 100%);
}

.cuatrola-page {
    background:
        radial-gradient(circle at 15% 10%, rgba(244, 183, 64, 0.22), transparent 28%),
        linear-gradient(180deg, #151d10 0%, #283618 48%, #10170d 100%);
}

.emr-page {
    background:
        radial-gradient(circle at 16% 8%, rgba(124, 92, 255, 0.26), transparent 30%),
        radial-gradient(circle at 86% 14%, rgba(255, 77, 90, 0.14), transparent 28%),
        linear-gradient(180deg, #0d0d12 0%, #131318 48%, #07070b 100%);
}

.game-hero-v2 {
    width: min(1220px, calc(100% - 32px));
    min-height: calc(100vh - 92px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    gap: clamp(28px, 5vw, 78px);
    align-items: center;
    padding: clamp(54px, 8vw, 96px) 0;
}

.hero-copy-block {
    position: relative;
    z-index: 2;
}

.game-logo-title {
    display: block;
    width: min(320px, 82vw);
    max-height: 150px;
    object-fit: contain;
    object-position: left center;
    margin: 0 0 18px;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.32));
}

.logikamind-logo {
    width: min(230px, 62vw);
    padding: 0;
    border-radius: 8px;
    background: transparent;
}

.clean-logo {
    width: min(210px, 56vw);
}

.emr-logo {
    width: min(300px, 70vw);
}

.game-hero-v2 h1,
.section-copy h2,
.logikamind-steps h2,
.ranking-layout h2 {
    margin: 0;
    color: #ffffff;
    font: 900 clamp(36px, 5vw, 70px) 'Montserrat', sans-serif;
    line-height: 1;
    text-decoration: none;
}

.game-hero-v2 p,
.section-copy p,
.game-strip p,
.step-grid p,
.ranking-layout p {
    color: rgba(246, 247, 251, 0.76);
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.65;
}

.game-hero-v2 .hero-copy-block > p:not(.game-kicker) {
    max-width: 620px;
    margin: 18px 0 0;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.hero-badges span {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 8px 11px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.82);
    font: 900 11px 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.hero-device-stack {
    position: relative;
    min-height: 610px;
}

.device-shot {
    position: absolute;
    width: min(330px, 44vw);
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border: 10px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    background: #050609;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.shot-back {
    right: 10%;
    top: 8%;
    transform: rotate(8deg);
    opacity: 0.82;
}

.shot-front {
    left: 6%;
    top: 20%;
    transform: rotate(-7deg);
}

.floating-game-token {
    position: absolute;
    right: 8%;
    bottom: 9%;
    width: min(170px, 26vw);
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 28px;
    padding: 22px;
    background: rgba(7, 18, 15, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.35);
}

.game-strip,
.media-section,
.ranking-layout,
.logikamind-steps {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto clamp(42px, 7vw, 86px);
}

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

.game-strip article,
.step-grid article,
.score-panel {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.game-strip article,
.step-grid article {
    padding: clamp(18px, 3vw, 28px);
}

.game-strip span,
.step-grid span {
    color: #91b2ff;
    font: 900 12px 'Montserrat', sans-serif;
}

.game-strip strong,
.step-grid h3 {
    display: block;
    margin: 12px 0 8px;
    color: #ffffff;
    font: 900 22px 'Montserrat', sans-serif;
}

.game-strip p,
.step-grid p {
    margin: 0;
    font-size: 14px;
}

.media-section {
    display: grid;
    grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 62px);
    align-items: center;
}

.section-copy p {
    max-width: 520px;
    margin: 16px 0 0;
}

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

.screenshot-grid img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: #050609;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.3);
}

.logikamind-board {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    border: 1px solid rgba(73, 183, 255, 0.24);
    border-radius: 8px;
    padding: clamp(20px, 4vw, 44px);
    background:
        radial-gradient(circle at 30% 20%, rgba(73, 183, 255, 0.16), transparent 26%),
        rgba(255, 255, 255, 0.045);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.logikamind-board img {
    position: absolute;
    right: 8%;
    bottom: -8%;
    width: min(320px, 54vw);
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border: 10px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    transform: rotate(5deg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.card-scene,
.arcade-screen {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.card-scene {
    background:
        radial-gradient(circle at 50% 40%, rgba(244, 183, 64, 0.14), transparent 32%),
        rgba(254, 250, 224, 0.055);
}

.table-shot {
    position: absolute;
    left: 50%;
    top: 52%;
    width: min(600px, 92%);
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.spanish-card {
    position: absolute;
    width: min(106px, 17vw);
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.36));
}

.card-a {
    left: 8%;
    top: 10%;
    transform: rotate(-14deg);
}

.card-b {
    right: 10%;
    top: 14%;
    transform: rotate(16deg);
}

.card-c {
    right: 18%;
    bottom: 10%;
    transform: rotate(-8deg);
}

.wide-media {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: clamp(14px, 3vw, 24px);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
}

.wide-media img {
    width: 100%;
    border-radius: 8px;
}

.arcade-screen video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.48;
}

.arcade-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(7, 7, 11, 0.82));
}

.arcade-screen img {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: min(340px, 70%);
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.44));
}

.code-row,
.clue-row {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: min(440px, 100%);
}

.code-row span,
.clue-row span {
    aspect-ratio: 1;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

.code-row span:nth-child(1) {
    background: #78d77a;
}

.code-row span:nth-child(2) {
    background: #78d77a;
}

.code-row span:nth-child(3) {
    background: #f1d35f;
}

.code-row span:nth-child(4) {
    background: #ff5b62;
}

.clue-row {
    margin-top: 24px;
    width: min(300px, 70%);
}

.clue-row span {
    border-radius: 50%;
}

.clue-row .ok {
    background: #78d77a;
}

.clue-row .mid {
    background: #f1d35f;
}

.clue-row .bad {
    background: #ff5b62;
}

.logikamind-steps {
    display: grid;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 62px);
    align-items: start;
}

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

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.52fr) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 62px);
    align-items: start;
}

.score-panel {
    padding: clamp(18px, 3vw, 28px);
}

#scoreboard.score-panel {
    width: 100%;
    margin: 0;
    align-items: stretch;
}

.score-panel form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.score-panel select {
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.26);
    color: #ffffff;
    font-weight: 800;
}

.score-panel table {
    width: 100%;
}

.score-panel .SinDatos,
#scoreboard.score-panel #topten .SinDatos {
    margin: 16px 0;
    width: auto;
    color: rgba(255, 255, 255, 0.76);
    text-align: left;
    font: 800 clamp(15px, 1.5vw, 18px) 'Inter', system-ui, sans-serif;
    line-height: 1.5;
}

.score-panel th,
.score-panel td,
.score-panel .Puesto,
.score-panel .Nick,
.score-panel .Puntos {
    padding: 10px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
}

.emr-stats span {
    display: block;
    color: #ffffff;
    font: 900 clamp(32px, 5vw, 62px) 'Montserrat', sans-serif;
}

.mechanics-grid {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto clamp(42px, 7vw, 86px);
    display: grid;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 62px);
    align-items: start;
}

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

.mechanic-cards article {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.mechanic-cards img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 18px;
    background: rgba(0, 0, 0, 0.22);
}

.mechanic-cards h3 {
    margin: 18px 18px 8px;
    color: #ffffff;
    font: 900 24px 'Montserrat', sans-serif;
}

.mechanic-cards p {
    margin: 0 18px 20px;
    color: rgba(246, 247, 251, 0.76);
    line-height: 1.55;
}

@media screen and (max-width: 920px) {
    .game-hero-v2,
    .media-section,
    .logikamind-steps,
    .ranking-layout,
    .mechanics-grid {
        grid-template-columns: 1fr;
    }

    .hero-device-stack,
    .logikamind-board,
    .card-scene,
    .arcade-screen {
        min-height: 470px;
    }

    .game-strip,
    .step-grid,
    .mechanic-cards {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 620px) {
    .game-redesign main {
        padding-bottom: 24px;
    }

    .game-hero-v2 {
        min-height: auto;
        width: min(100% - 32px, 520px);
        gap: 24px;
        padding-top: 30px;
        padding-bottom: 36px;
    }

    .game-logo-title {
        width: min(260px, 74vw);
        max-height: 110px;
        margin-bottom: 14px;
    }

    .clean-logo {
        width: min(190px, 54vw);
    }

    .game-hero-v2 h1,
    .section-copy h2,
    .logikamind-steps h2,
    .ranking-layout h2,
    .game-page-cta h2,
    .related-games h2 {
        font-size: clamp(30px, 10vw, 42px);
        line-height: 1;
    }

    .game-hero-v2 p,
    .section-copy p,
    .ranking-layout p,
    .game-page-cta p {
        font-size: 16px;
        line-height: 1.55;
    }

    .hero-badges {
        gap: 7px;
        margin-top: 18px;
    }

    .hero-badges span {
        padding: 7px 9px;
        font-size: 10px;
    }

    .game-strip,
    .media-section,
    .ranking-layout,
    .logikamind-steps,
    .mechanics-grid,
    .game-page-cta,
    .related-games {
        width: min(100% - 32px, 520px);
        margin-bottom: 44px;
    }

    .game-strip,
    .media-section,
    .logikamind-steps,
    .ranking-layout,
    .mechanics-grid {
        gap: 18px;
    }

    .game-strip article,
    .step-grid article,
    .score-panel {
        padding: 18px;
    }

    .hero-device-stack {
        min-height: 330px;
        overflow: hidden;
    }

    .device-shot {
        width: min(184px, 52vw);
        border-width: 7px;
        border-radius: 22px;
    }

    .shot-front {
        left: 2px;
        top: 26px;
    }

    .shot-back {
        right: 2px;
        top: 0;
    }

    .floating-game-token {
        width: 100px;
        right: 4px;
        bottom: 8px;
        border-radius: 18px;
        padding: 14px;
    }

    .screenshot-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
    }

    .screenshot-grid img {
        min-width: 72%;
        scroll-snap-align: start;
    }

    .logikamind-board {
        min-height: 360px;
        padding: 18px;
    }

    .logikamind-board img {
        width: min(210px, 58vw);
        right: -4%;
    }

    .card-scene,
    .arcade-screen {
        min-height: 310px;
    }

    .spanish-card {
        width: 70px;
    }

    .table-shot {
        width: min(440px, 94%);
    }

    .wide-media {
        padding: 12px;
    }

    .score-panel form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .score-panel select {
        width: 100%;
        min-width: 0;
    }

    .score-panel {
        overflow-x: auto;
    }

    .score-panel th,
    .score-panel td,
    .score-panel .Puesto,
    .score-panel .Nick,
    .score-panel .Puntos {
        padding: 9px 7px;
        font-size: 14px;
    }

    .game-page-cta {
        gap: 18px;
        padding: 20px;
    }

    .related-card {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .related-card img {
        width: 68px;
        height: 68px;
    }
}

.game-page-cta,
.related-games {
    width: min(1080px, calc(100% - 32px));
    margin: clamp(34px, 6vw, 72px) auto;
    border-radius: 8px;
    font-family: 'Inter', 'Roboto Mono', system-ui, sans-serif;
}

.game-page-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: clamp(22px, 4vw, 42px);
    background:
        radial-gradient(circle at top left, rgba(47, 116, 255, 0.16), transparent 32%),
        rgba(255, 255, 255, 0.055);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
}

.game-page-cta .eyebrow,
.related-games .eyebrow {
    margin: 0 0 10px;
    color: #91b2ff;
    font: 900 12px 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.game-page-cta h2,
.related-games h2 {
    margin: 0;
    color: #ffffff;
    font: 900 clamp(28px, 4vw, 52px) 'Montserrat', sans-serif;
    line-height: 1;
}

.game-page-cta p {
    max-width: 620px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.6;
}

.game-page-cta .btn,
.related-card .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 8px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, #2f74ff, #49b7ff);
    color: #ffffff;
    font: 900 13px 'Montserrat', sans-serif;
    text-decoration: none;
    white-space: nowrap;
}

.related-games {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.related-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.055);
    color: #ffffff;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease;
}

.related-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.09);
}

.related-card img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.related-card span {
    display: block;
    color: rgba(255, 255, 255, 0.56);
    font: 900 11px 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.related-card strong {
    display: block;
    margin-top: 5px;
    color: #ffffff;
    font: 900 17px 'Montserrat', sans-serif;
    line-height: 1.1;
}

header .navbar .btn-primary {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: linear-gradient(135deg, #2f74ff, #49b7ff);
    color: #ffffff;
    font-weight: 800;
}

@media screen and (max-width: 760px) {
    .game-hero-actions {
        width: 100%;
    }

    .game-hero-actions .btn {
        flex: 1 1 150px;
    }

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

    .game-page-cta .btn {
        width: 100%;
    }

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