html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #11253b 0%, #091523 45%, #050b14 100%);
    color: white;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* HEADER */

.top-header {
    position: relative;
    border-bottom: 1px solid rgba(120, 235, 255, 0.35);
    box-shadow: 0 2px 16px rgba(0, 255, 255, 0.08);
    overflow: hidden;
}

.top-header-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, #03070c 0%, #07111c 22%, #0a1825 45%, #08111b 70%, #03070c 100% );
    z-index: 0;
}

.top-header-content {
    display: flex;
    align-items: center;
    gap: 28px;
    overflow: visible !important;
    position: relative;
    z-index: 3001;
    padding: 6px 18px;
}

/* BLOQUE IZQUIERDO */

.brand-panel {
    width: 320px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.brand-avatar {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    border: 1px solid rgba(120, 235, 255, 0.25);
    background: radial-gradient(circle at 30% 30%, #25374b, #0b1320);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.brand-symbol {
    font-size: 34px;
    font-weight: 800;
    color: #dffcff;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
    margin: 0;
}

.brand-subtitle {
    white-space: nowrap;
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    line-height: 1.2;
    margin-top: 4px;
}

/* MENÚ */

.main-menu {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow-x: auto;
}

    .main-menu::-webkit-scrollbar {
        height: 8px;
    }

    .main-menu::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.15);
    }

.menu-item {
    position: relative;
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
    transition: transform 0.2s ease, color 0.2s ease;
}

    .menu-item::before {
        content: "";
        position: absolute;
        inset: 0;
        clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
        background: linear-gradient(180deg, #101a28 0%, #0b121d 100%);
        z-index: -2;
    }

    .menu-item::after {
        content: "";
        position: absolute;
        inset: 0;
        clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
        border: 1px solid rgba(255, 255, 255, 0.05);
        z-index: -1;
    }

    .menu-item:hover {
        color: #c6f8ff;
        transform: translateY(-1px);
    }

        .menu-item:hover::before {
            background: linear-gradient(180deg, #162437 0%, #0e1826 100%);
        }

/* LÍNEA BRILLANTE INFERIOR */

.header-glow-line {
    height: 4px;
    width: 100%;
    background: #82f7ff;
    box-shadow: 0 0 15px rgba(130, 247, 255, 0.95);
    position: relative;
    z-index: 1;
}

/* CUERPO */

.page-body {
    min-height: calc(100vh - 114px);
    padding: 30px;
}

.hero-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-card {
    max-width: 850px;
    padding: 40px 50px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
    text-align: center;
}

    .hero-card h1 {
        margin-top: 8px;
        margin-bottom: 18px;
        font-size: 44px;
        font-weight: 800;
    }

    .hero-card p {
        margin: 0;
        color: #d0d8e2;
        font-size: 18px;
        line-height: 1.6;
    }

.hero-mini {
    margin: 0;
    color: rgba(160, 240, 255, 0.75);
    font-size: 12px;
    letter-spacing: 5px;
    text-transform: uppercase;
}

/* RESPONSIVE */

@media (max-width: 991px) {
    .top-header-content {
        flex-direction: column;
    }

    .brand-panel {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        justify-content: center;
    }

    .main-menu {
        justify-content: flex-start;
        padding: 10px 10px 12px 10px;
        gap: 10px;
    }

    .menu-item {
        min-width: 180px;
        height: 70px;
        flex: 0 0 auto;
    }

    .hero-card {
        padding: 30px 24px;
    }

        .hero-card h1 {
            font-size: 34px;
        }

        .hero-card p {
            font-size: 16px;
        }
}

.lead-text {
    font-size: 22px;
    margin-bottom: 20px;
}
.texto-cronicas {
    text-align: justify;
    line-height: 1.7;
}

.cards-page {
    padding: 20px 0 40px 0;
}

.cards-header-box {
    max-width: 900px;
    margin: 0 auto 30px auto;
    padding: 30px 36px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
    text-align: center;
}

    .cards-header-box h1 {
        margin-top: 8px;
        margin-bottom: 12px;
        font-size: 40px;
        font-weight: 800;
    }

    .cards-header-box p {
        margin: 0;
        color: #d0d8e2;
        font-size: 17px;
        line-height: 1.6;
    }

.cards-grid {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.card-box {
    border-radius: 20px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(19,31,47,0.95) 0%, rgba(10,18,30,0.95) 100%);
    border: 1px solid rgba(120, 235, 255, 0.16);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .card-box:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
    }

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.card-cost {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ff8b2b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 0 14px rgba(255, 139, 43, 0.35);
}

.card-faction {
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9edfff;
    font-weight: 700;
}

.card-name {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 10px;
}

.card-type {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(130, 247, 255, 0.12);
    color: #c8f9ff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-collection {
    margin-bottom: 18px;
    color: #c8d2df;
    font-size: 14px;
}

.card-stats {
    display: flex;
    gap: 12px;
}

.stat {
    flex: 1;
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-label {
    font-size: 12px;
    color: #aeb8c5;
    letter-spacing: 1px;
    font-weight: 700;
}

.stat-value {
    font-size: 22px;
    font-weight: 800;
}

.attack .stat-value {
    color: #7cc7ff;
}

.life .stat-value {
    color: #ff7b7b;
}
.card-image-wrapper {
    width: 100%;
    height: 260px;
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.no-image {
    color: #9aa8b8;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.admin-page {
    padding: 20px 0 40px 0;
}

.admin-form-box {
    max-width: 1100px;
    margin: 0 auto 30px auto;
    padding: 30px 36px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
}

    .admin-form-box h1 {
        margin-top: 8px;
        margin-bottom: 20px;
        font-size: 38px;
        font-weight: 800;
    }

.admin-form {
    margin-top: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #d7e4f2;
}

.custom-input {
    background: rgba(12, 22, 35, 0.95) !important;
    border: 1px solid rgba(120, 235, 255, 0.18) !important;
    color: white !important;
    border-radius: 12px !important;
    min-height: 46px;
}

    .custom-input:focus {
        box-shadow: 0 0 0 0.2rem rgba(130, 247, 255, 0.15) !important;
        border-color: rgba(130, 247, 255, 0.45) !important;
        background: rgba(12, 22, 35, 1) !important;
        color: white !important;
    }

.save-btn {
    margin-top: 22px;
    border: none;
    border-radius: 14px;
    padding: 12px 22px;
    font-size: 16px;
    font-weight: 800;
    color: #07111d;
    background: #82f7ff;
    box-shadow: 0 0 18px rgba(130, 247, 255, 0.35);
    transition: transform 0.2s ease;
}

    .save-btn:hover {
        transform: translateY(-1px);
    }

.text-danger {
    font-size: 14px;
    margin-top: 6px;
    display: block;
}

.mt-4 {
    margin-top: 24px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .card-image-wrapper {
        height: 220px;
    }
}
/* VISOR DE CARTA */

.visor-carta {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.visor-contenido {
    position: relative;
}

.marco-carta {
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient( 135deg, #1d2d45, #0d1827 );
    border: 2px solid rgba(120,235,255,0.4);
    box-shadow: 0 0 40px rgba(0,0,0,0.8), 0 0 30px rgba(120,235,255,0.25);
}

    .marco-carta img {
        max-height: 85vh;
        max-width: 85vw;
        border-radius: 10px;
    }

.cerrar-visor {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    background: #ff4b4b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.delete-form {
    margin-top: 16px;
}

.delete-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 15px;
    font-weight: 800;
    color: white;
    background: linear-gradient(180deg, #b93232 0%, #8b1f1f 100%);
    box-shadow: 0 8px 18px rgba(139, 31, 31, 0.28);
    transition: transform 0.2s ease, filter 0.2s ease;
}

    .delete-btn:hover {
        transform: translateY(-1px);
        filter: brightness(1.06);
    }

.game-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0 50px 0;
}

.game-info-box,
.phases-box {
    margin-bottom: 28px;
    padding: 30px 34px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
}

    .game-info-box h1,
    .phases-box h2 {
        margin-top: 8px;
        margin-bottom: 18px;
        font-size: 40px;
        font-weight: 800;
    }

.game-text {
    color: #d0d8e2;
    font-size: 18px;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 18px;
}

    .game-text:last-child {
        margin-bottom: 0;
    }

.phase-card {
    overflow: hidden;
    border-radius: 18px;
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 26px rgba(0,0,0,0.30);
}

.phase-header {
    padding: 16px 24px;
    font-size: 34px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff5de;
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

.phase-body {
    padding: 22px 26px;
    background: rgba(255, 248, 232, 0.92);
    color: #1e1a15;
}

    .phase-body ul {
        margin: 0;
        padding-left: 24px;
    }

    .phase-body li {
        font-size: 18px;
        line-height: 1.8;
        margin-bottom: 8px;
    }

        .phase-body li:last-child {
            margin-bottom: 0;
        }

.alba .phase-header {
    background: linear-gradient(180deg, #b8842f 0%, #8f6422 100%);
}

.amanecer .phase-header {
    background: linear-gradient(180deg, #d86b14 0%, #a54a09 100%);
}

.mediodia .phase-header {
    background: linear-gradient(180deg, #4f7f1f 0%, #2f5310 100%);
}

.anochecer .phase-header {
    background: linear-gradient(180deg, #5a3b68 0%, #34203d 100%);
}

@media (max-width: 768px) {
    .game-info-box,
    .phases-box {
        padding: 24px 18px;
    }

        .game-info-box h1,
        .phases-box h2 {
            font-size: 30px;
        }

    .phase-header {
        font-size: 26px;
        padding: 14px 18px;
    }

    .phase-body {
        padding: 18px;
    }

        .game-text,
        .phase-body li {
            font-size: 16px;
        }
}
.card-types-box {
    margin-bottom: 28px;
    padding: 30px 34px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
}

    .card-types-box h2 {
        margin-top: 8px;
        margin-bottom: 22px;
        font-size: 40px;
        font-weight: 800;
    }

.card-type-row {
    display: grid;
    grid-template-columns: 1.6fr 320px;
    gap: 24px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

    .card-type-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .card-type-row:first-of-type {
        padding-top: 8px;
    }

.card-type-text h3 {
    margin: 0 0 12px 0;
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
}

.card-type-image-slot {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 260px;
    height: 360px;
    border-radius: 18px;
    border: 1px dashed rgba(130, 247, 255, 0.35);
    background: linear-gradient(180deg, rgba(18, 30, 45, 0.95) 0%, rgba(8, 16, 28, 0.95) 100%);
    color: #97c9e6;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.03);
}

/* Cuando quieras poner imágenes reales, usa esta clase */
.card-type-preview {
    width: 260px;
    height: 360px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    display: block;
}

@media (max-width: 900px) {
    .card-type-row {
        grid-template-columns: 1fr;
    }

    .card-type-image-slot {
        justify-content: flex-start;
    }

    .image-placeholder,
    .card-type-preview {
        width: 220px;
        height: 305px;
    }

    .card-types-box {
        padding: 24px 18px;
    }

        .card-types-box h2 {
            font-size: 30px;
        }

    .card-type-text h3 {
        font-size: 24px;
    }
}
.battlefield-box {
    margin-bottom: 28px;
    padding: 30px 34px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
}

    .battlefield-box h2 {
        margin-top: 8px;
        margin-bottom: 18px;
        font-size: 40px;
        font-weight: 800;
    }

.battlefield-board {
    margin-top: 26px;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(11, 21, 34, 0.96) 0%, rgba(7, 13, 22, 0.96) 100%);
    border: 1px solid rgba(120, 235, 255, 0.12);
    box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.03);
}

.battlefield-row {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}

    .battlefield-row:last-child {
        margin-bottom: 0;
    }

.top-row {
    grid-template-columns: 220px 220px 1fr;
}

.middle-row {
    grid-template-columns: 220px 1fr;
}

.bottom-row {
    grid-template-columns: 220px 1fr;
}

.zone {
    min-height: 120px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #eef8ff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.deck-main {
    background: linear-gradient(180deg, #2d4770 0%, #1a2b46 100%);
}

.cemetery {
    background: linear-gradient(180deg, #5a3b68 0%, #382341 100%);
}

.characters-top,
.characters-middle {
    background: linear-gradient(180deg, #3d5f24 0%, #253a14 100%);
}

.sanctuary {
    background: linear-gradient(180deg, #b8852d 0%, #7c591d 100%);
}

.etheria-deck {
    background: linear-gradient(180deg, #285b7a 0%, #173547 100%);
}

.etheria-pool {
    background: linear-gradient(180deg, #1f7c78 0%, #124946 100%);
}

.battlefield-legend {
    margin-top: 26px;
    display: grid;
    gap: 12px;
}

.legend-item {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #d7e0ea;
    line-height: 1.6;
}

.legend-title {
    font-weight: 800;
    color: #ffffff;
}

.legend-text {
    color: #d0d8e2;
}

@media (max-width: 1000px) {
    .top-row,
    .middle-row,
    .bottom-row {
        grid-template-columns: 1fr;
    }

    .zone {
        min-height: 100px;
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .battlefield-box {
        padding: 24px 18px;
    }

        .battlefield-box h2 {
            font-size: 30px;
        }

    .battlefield-board {
        padding: 18px;
    }

    .zone {
        font-size: 18px;
        min-height: 90px;
    }
}
.top-row {
    grid-template-columns: 220px 220px 1fr;
}

.middle-row-corrected {
    grid-template-columns: 220px 220px 1fr;
}

.bottom-row {
    grid-template-columns: 220px 1fr;
}
.spacer-zone {
    background: transparent;
    border: none;
    box-shadow: none;
    pointer-events: none;
}
.play-card-box {
    margin-bottom: 28px;
    padding: 30px 34px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
}

.play-card-box h2 {
    margin-top: 8px;
    margin-bottom: 22px;
    font-size: 40px;
    font-weight: 800;
}

.play-card-row {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 28px;
    align-items: start;
}

.play-card-visuals {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.play-card-image-block h3,
.etheria-step h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
}

.play-image-slot {
    border-radius: 18px;
    border: 1px dashed rgba(130, 247, 255, 0.35);
    background: linear-gradient(180deg, rgba(18, 30, 45, 0.95) 0%, rgba(8, 16, 28, 0.95) 100%);
    box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.wide-slot {
    width: 100%;
    min-height: 320px;
}

.small-slot {
    width: 100%;
    min-height: 230px;
}

.etheria-sequence {
    display: grid;
    grid-template-columns: 1fr 90px 1fr;
    gap: 14px;
    align-items: center;
}

.etheria-step {
    display: flex;
    flex-direction: column;
}

.etheria-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rotation-arrow {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(180deg, #173447 0%, #0f2432 100%);
    border: 1px solid rgba(130, 247, 255, 0.22);
    color: #9feaff;
    font-size: 34px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

@media (max-width: 1000px) {
    .play-card-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .play-card-box {
        padding: 24px 18px;
    }

    .play-card-box h2 {
        font-size: 30px;
    }

    .play-card-image-block h3,
    .etheria-step h3 {
        font-size: 20px;
    }

    .etheria-sequence {
        grid-template-columns: 1fr;
    }

    .etheria-arrow {
        margin: 4px 0;
    }

    .wide-slot {
        min-height: 240px;
    }

    .small-slot {
        min-height: 200px;
    }
}
.play-preview-image {
    width: 40%;
    height: 40%;
    object-fit: contain;
    border-radius: 12px;
}
.cost-card-wrapper {
    position: relative;
    display: inline-block;
}

.cost-arrow-label {
    position: absolute;
    top: 10px;
    right: 100px;
    width: 170px;
    height: 70px;
    pointer-events: none;
}

.cost-arrow-text {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 18px;
    font-weight: 800;
    color: #ffdf8a;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    background: rgba(10, 18, 30, 0.92);
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 223, 138, 0.35);
    white-space: nowrap;
}

.cost-arrow-line {
    position: absolute;
    top: 31px;
    left: 18px;
    width: 70px;
    height: 3px;
    background: #ffdf8a;
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(255, 223, 138, 0.35);
}

.cost-arrow-head {
    position: absolute;
    top: 24px;
    left: 0;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 14px solid #ffdf8a;
    filter: drop-shadow(0 0 5px rgba(255, 223, 138, 0.35));
}
.etheria-preview-image {
    max-width: 170px;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: auto;
    border-radius: 12px;
}

.etheria-rotated {
    transform: rotate(90deg);
}
.factions-box {
    margin-top: 60px;
    padding: 40px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.faction-grid {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.faction-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.faction-card {
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

.faction-image-slot {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 63 / 88;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faction-preview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.faction-content {
    width: 100%;
}

    .faction-content h3 {
        margin: 0 0 6px 0;
        font-size: 1.5rem;
    }

.faction-color {
    margin: 0 0 14px 0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.9;
}

.faction-card.orden .faction-color {
    color: #5aa7ff;
}

.faction-card.caos .faction-color {
    color: #9d9d9d;
}

.faction-card.prosperidad .faction-color {
    color: #e6c84f;
}

.faction-card.instinto .faction-color {
    color: #63c26b;
}

.faction-card.valor .faction-color {
    color: #d95b5b;
}

.faction-card.sombras .faction-color {
    color: #9c63d9;
}

@media (max-width: 900px) {
    .faction-row {
        grid-template-columns: 1fr;
    }

    .factions-box {
        padding: 24px;
    }
}
.rules-page {
    padding: 40px 0 80px;
}

.rules-wrapper {
    width: min(1100px, 92%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.rules-category {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 28px;
    backdrop-filter: blur(8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.rules-category-header {
    margin-bottom: 20px;
}

    .rules-category-header h2 {
        margin: 0;
        font-size: 2rem;
        line-height: 1.1;
    }

.rules-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.rule-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rule-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 52px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

.rule-card p {
    margin: 0;
    line-height: 1.65;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
}

.hero-panel {
    width: min(1100px, 92%);
    margin: 0 auto 28px;
}

.hero-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    padding: 36px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.hero-mini {
    margin: 0 0 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.78;
}

.hero-card h1 {
    margin: 0 0 12px;
    font-size: 3rem;
    line-height: 1;
}

.hero-card p {
    margin: 0;
    max-width: 800px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
    .rules-list {
        grid-template-columns: 1fr;
    }

    .rules-category {
        padding: 22px;
    }

    .hero-card {
        padding: 26px;
    }

        .hero-card h1 {
            font-size: 2.3rem;
        }

    .rules-category-header h2 {
        font-size: 1.6rem;
    }
}
.chronicles-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.chronicle-entry h2 {
    margin-bottom: 20px;
}

.chronicle-entry p {
    margin-bottom: 18px;
    line-height: 1.7;
    font-size: 1.05rem;
}
.chronicles-container {
    max-width: 1100px;
    margin: 50px auto 80px auto;
    padding: 0 20px;
}

.chronicle-entry {
    background: rgba(10, 14, 22, 0.78);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(6px);
}

.chronicle-heading {
    margin-bottom: 24px;
    text-align: center;
}

.chronicle-kicker {
    margin: 0 0 10px 0;
    font-size: 0.82rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #c9a95b;
    opacity: 0.95;
}

.chronicle-heading h2 {
    margin: 0;
    font-size: 2.2rem;
    color: #f4dfb1;
}

.chronicle-image-frame {
    margin-bottom: 30px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: #0b0f16;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.chronicle-main-image {
    display: block;
    width: 100%;
    height: auto;
}

.chronicle-text-block {
    max-width: 920px;
    margin: 0 auto;
}

.chronicle-speaker {
    margin-bottom: 18px;
    font-size: 0.92rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #d8b66a;
    font-weight: 700;
}

.chronicle-text-block p {
    margin-bottom: 18px;
    font-size: 1.08rem;
    line-height: 1.9;
    color: #e8e1d2;
}

.chronicle-text-block strong {
    color: #f3d48a;
}

@media (max-width: 768px) {
    .chronicle-entry {
        padding: 18px;
        border-radius: 16px;
    }

    .chronicle-heading h2 {
        font-size: 1.75rem;
    }

    .chronicle-text-block p {
        font-size: 1rem;
        line-height: 1.75;
    }
}
.chronicles-library {
    max-width: 1100px;
    margin: 50px auto 80px auto;
    padding: 0 20px;
}

.chronicle-card-large {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 28px;
    align-items: center;
    background: rgba(14, 23, 37, 0.82);
    border: 1px solid rgba(120, 190, 255, 0.18);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.chronicle-card-image-wrap {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: #09111b;
}

.chronicle-card-image {
    width: 100%;
    display: block;
    height: auto;
}

.chronicle-card-content {
    color: #e9edf5;
}

.chronicle-card-kicker {
    margin: 0 0 10px 0;
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #c7a862;
}

.chronicle-card-content h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    color: #f5f1e8;
}

.chronicle-card-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.chronicle-read-button {
    display: inline-block;
    padding: 14px 22px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    color: #06111f;
    background: linear-gradient(135deg, #d8b56a, #f0d79a);
    transition: 0.2s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

    .chronicle-read-button:hover {
        transform: translateY(-2px);
        color: #06111f;
    }

.story-page {
    max-width: 1400px;
    margin: 40px auto 70px auto;
    padding: 0 20px;
}

.story-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

.story-sidebar {
    position: sticky;
    top: 120px;
}

.story-sidebar-box {
    background: rgba(13, 22, 34, 0.88);
    border: 1px solid rgba(120, 190, 255, 0.16);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.story-sidebar-kicker {
    margin: 0 0 10px 0;
    font-size: 0.76rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c7a862;
}

.story-sidebar-box h2 {
    margin: 0 0 22px 0;
    font-size: 1.6rem;
    color: #f4f0e6;
}

.story-chapter-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.story-chapter-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    color: #dfe7f3;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: 0.2s ease;
}

    .story-chapter-link:hover {
        color: #ffffff;
        background: rgba(108, 185, 255, 0.12);
    }

    .story-chapter-link.active {
        color: #07111d;
        background: linear-gradient(135deg, #d8b56a, #f0d79a);
        border-color: transparent;
    }

.story-back-link {
    text-decoration: none;
    color: #8fcaf7;
    font-weight: 600;
}

.story-content {
    min-width: 0;
}

.story-article {
    background: rgba(14, 23, 37, 0.84);
    border: 1px solid rgba(120, 190, 255, 0.16);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.30);
}

.story-kicker {
    margin: 0 0 10px 0;
    font-size: 0.82rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #c7a862;
}

.story-article h1 {
    margin-bottom: 24px;
    font-size: 2.5rem;
    color: #f5f1e8;
}

.story-image-frame {
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 28px;
    border: 1px solid rgba(212, 175, 55, 0.16);
    background: #09111b;
}

.story-image {
    width: 100%;
    height: auto;
    display: block;
}

.story-text {
    max-width: 980px;
}

.story-speaker {
    margin-bottom: 18px;
    font-size: 0.92rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #d7b86b;
    font-weight: 700;
}

.story-text p {
    margin-bottom: 18px;
    font-size: 1.06rem;
    line-height: 1.9;
    color: #e6e0d3;
}

.story-text strong {
    color: #f2d38b;
}

@media (max-width: 980px) {
    .chronicle-card-large {
        grid-template-columns: 1fr;
    }

    .story-layout {
        grid-template-columns: 1fr;
    }

    .story-sidebar {
        position: static;
    }

    .story-article {
        padding: 20px;
    }

        .story-article h1 {
            font-size: 2rem;
        }
}
.brand-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    height: 60px; /* tamaño adecuado para menú */
    width: auto;
}
.brand-logo {
    height: 34px;
    cursor: pointer;
}

.modal-carta {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

.modal-carta-img {
    max-height: 90%;
    max-width: 90%;
    box-shadow: 0 0 40px rgba(0,0,0,0.7);
}
.scroll-cartas {
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
}

.scroll-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollCartas 155s linear infinite;
}

    .scroll-track img {
        height: 240px;
        border-radius: 10px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    }

@keyframes scrollCartas {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.hero-banner-carta {
    max-width: 780px;
    width: 100%;
    margin: 0 auto 30px auto;
    padding: 8px;
    background: linear-gradient(145deg, #2a2a2a, #0f0f0f);
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.6);
}

    .hero-banner-carta img {
        width: 100%;
        height: 280px;
        object-fit: cover;
        object-position: center 20%;
        border-radius: 10px;
        border: 3px solid #3a3a3a;
        display: block;
    }

.menu-dropdown {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(15, 20, 30, 0.98);
    border-radius: 10px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s ease;
    z-index: 999999; /* CLAVE */
}

.menu-dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu-item {
    padding: 10px 12px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
}

    .submenu-item:hover {
        background: rgba(255,255,255,0.08);
    }
.brand-panel {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 50px; /* controla la altura del bloque */
    margin: 0;
    padding: 0;
}

    .brand-panel:hover {
        text-decoration: none;
    }
.brand-text {
    line-height: 1.05;
}
html {
    scroll-behavior: smooth;
}

.advanced-menu {
    position: sticky;
    top: 10px;
    z-index: 200;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 2px 0 28px 0;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(8, 20, 38, 0.92);
    border: 1px solid rgba(127, 227, 255, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.30), inset 0 0 0 1px rgba(255,255,255,0.02);
    backdrop-filter: blur(10px);
}

.advanced-menu-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.4px;
    color: #eaf8ff;
    background: linear-gradient(180deg, #12325a 0%, #0a1f3c 100%);
    border: 1px solid rgba(127, 227, 255, 0.22);
    transition: all 0.2s ease;
}

    .advanced-menu-link:hover {
        color: #ffffff;
        transform: translateY(-2px);
        border-color: rgba(127, 227, 255, 0.55);
        box-shadow: 0 0 18px rgba(127, 227, 255, 0.18);
    }

    .advanced-menu-link:active {
        transform: translateY(0);
    }

.anchor-section {
    scroll-margin-top: 190px;
}
html {
    scroll-behavior: smooth;
}

.advanced-menu {
    position: sticky;
    top: 70px;
    z-index: 200;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 6px 0 28px 0;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(8, 20, 38, 0.92);
    border: 1px solid rgba(127, 227, 255, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.30), inset 0 0 0 1px rgba(255,255,255,0.02);
    backdrop-filter: blur(10px);
}

.advanced-menu-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.4px;
    color: #eaf8ff;
    background: linear-gradient(180deg, #12325a 0%, #0a1f3c 100%);
    border: 1px solid rgba(127, 227, 255, 0.22);
    transition: all 0.2s ease;
}

    .advanced-menu-link:hover {
        color: #ffffff;
        transform: translateY(-2px);
        border-color: rgba(127, 227, 255, 0.55);
        box-shadow: 0 0 18px rgba(127, 227, 255, 0.18);
    }

    .advanced-menu-link:active {
        transform: translateY(0);
    }

.anchor-section {
    scroll-margin-top: 170px;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 26px;
}

.rule-card {
    padding: 20px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(20, 42, 70, 0.95), rgba(11, 25, 45, 0.95));
    border: 1px solid rgba(127, 227, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

    .rule-card h3 {
        margin-top: 0;
        margin-bottom: 10px;
        color: #f4fbff;
    }

.essence-slots {
    display: grid;
    grid-template-columns: repeat(5, minmax(90px, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.essence-slot {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 800;
    color: #eaf8ff;
    background: linear-gradient(180deg, rgba(18, 44, 78, 0.95), rgba(8, 24, 45, 0.95));
    border: 1px solid rgba(127, 227, 255, 0.14);
    box-shadow: 0 8px 20px rgba(0,0,0,0.16);
    text-align: center;
}

    .essence-slot span {
        font-size: 0.75rem;
        font-weight: 700;
        color: #9de9ff;
        margin-top: 4px;
    }

.essence-slot-special {
    border: 1px solid rgba(127, 227, 255, 0.55);
    box-shadow: 0 0 18px rgba(127, 227, 255, 0.12), 0 8px 20px rgba(0,0,0,0.16);
}

.deck-schema {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    margin-top: 30px;
}

.deck-schema-card {
    text-align: center;
    padding: 14px 12px 8px 12px;
}

    .deck-schema-card h3 {
        margin-top: 14px;
        margin-bottom: 6px;
        color: #f4fbff;
    }

.deck-schema-frame {
    width: 140px;
    height: 190px;
    margin: 0 auto;
    border-radius: 16px;
    border: 2px solid rgba(127, 227, 255, 0.35);
    background: linear-gradient(180deg, rgba(18, 44, 78, 0.92), rgba(8, 24, 45, 0.92));
    box-shadow: 0 10px 26px rgba(0,0,0,0.22), inset 0 0 0 2px rgba(255,255,255,0.03);
    position: relative;
}

    .deck-schema-frame::before {
        content: "";
        position: absolute;
        inset: 10px;
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.08);
    }

.deck-main-frame {
    box-shadow: 0 10px 26px rgba(0,0,0,0.22), 0 0 20px rgba(127, 227, 255, 0.06), inset 0 0 0 2px rgba(255,255,255,0.03);
}

.deck-essence-frame {
    box-shadow: 0 10px 26px rgba(0,0,0,0.22), 0 0 20px rgba(120, 180, 255, 0.08), inset 0 0 0 2px rgba(255,255,255,0.03);
}

.deck-sanctuary-frame {
    box-shadow: 0 10px 26px rgba(0,0,0,0.22), 0 0 20px rgba(255, 210, 120, 0.08), inset 0 0 0 2px rgba(255,255,255,0.03);
}

.deck-arsenal-frame {
    box-shadow: 0 10px 26px rgba(0,0,0,0.22), 0 0 20px rgba(255, 120, 120, 0.08), inset 0 0 0 2px rgba(255,255,255,0.03);
}

@media (max-width: 768px) {
    .essence-slots {
        grid-template-columns: repeat(2, minmax(90px, 1fr));
    }

    .advanced-menu {
        top: 60px;
    }
}
.essence-slots {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-top: 28px;
}

.essence-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    transition: transform 0.2s ease;
}

    .essence-card img {
        width: 100%;
        display: block;
    }

    .essence-card:hover {
        transform: translateY(-4px);
    }

.essence-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(0,0,0,0.7);
    border-radius: 6px;
    color: white;
}

.essence-special {
    box-shadow: 0 0 16px rgba(120,220,255,0.35), 0 10px 26px rgba(0,0,0,0.45);
}
.hero-card-con-logo {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 32px;
}

.hero-logo-box {
    flex: 0 0 260px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-cronicas {
    width: 100%;
    max-width: 240px;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.35));
}

.hero-text-box {
    flex: 1;
}

    .hero-text-box h1 {
        margin-top: 6px;
        margin-bottom: 18px;
    }

    .hero-text-box .texto-cronicas {
        margin-bottom: 16px;
    }

@media (max-width: 900px) {
    .hero-logo-cronicas {
        max-width: 110px;
    }
}

    .hero-logo-box {
        flex: 0 0 auto;
    }

    .hero-logo-cronicas {
        max-width: 190px;
    }
}
.story-text p,
.story-article > p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    line-height: 1.95;
}

    .story-text p + p,
    .story-article > p + p {
        text-indent: 1.8em;
    }

.cuenta-btn {
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #444;
    background: #151515;
    color: #fff;
    font-weight: 600;
    transition: .15s;
}

.cuenta-btn:hover {
        background: #1d1d1d;
}

.cuenta-btn.activo {
        border: 1px solid #d4af37;
        background: #1c1c1c;
}

.game-logo {
    width: 280px;
    margin: 0 auto 40px auto;
    display: block;
    border-radius: 22px;
    border: 3px solid rgba(255,255,255,0.12);
    box-shadow: 0 12px 30px rgba(0,0,0,0.55), 0 0 18px rgba(255,255,255,0.05);
    overflow: hidden;
}

/* =========================
   RESET GLOBAL
========================= */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background: #05070d;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
}

/* =========================
   BODY GENERAL
========================= */

.page-body {
    width: 100%;
    max-width: 1600px;
    margin: auto;
    padding: 20px;
}

/* =========================
   HERO PRINCIPAL
========================= */

.hero-panel {
    width: 100%;
    padding: 40px 20px 20px 20px;
}

.hero-card {
    width: 100%;
    max-width: 1450px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 40px;
    border-radius: 24px;
    background: linear-gradient( 145deg, rgba(10,20,40,0.92), rgba(5,10,20,0.98) );
    border: 1px solid rgba(120,200,255,0.08);
    box-shadow: 0 10px 40px rgba(0,0,0,0.45), inset 0 0 30px rgba(0,170,255,0.03);
}

/* =========================
   LOGO
========================= */

.hero-logo-box {
    flex: 0 0 420px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-cronicas {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 20px rgba(0,170,255,0.25));
    transition: transform 0.25s ease;
}

    .hero-logo-cronicas:hover {
        transform: scale(1.02);
    }

/* =========================
   TEXTO
========================= */

.hero-text-box {
    flex: 1;
    min-width: 0;
}

.hero-mini {
    color: #69c7ff;
    font-size: 0.95rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-text-box h1 {
    font-size: 4rem;
    margin-bottom: 25px;
    line-height: 1;
    font-weight: 900;
}

.texto-cronicas {
    font-size: 1.08rem;
    line-height: 1.8;
    margin-bottom: 22px;
    color: rgba(255,255,255,0.92);
}

/* =========================
   SCROLL CARTAS
========================= */

.scroll-cartas {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 30px;
    padding: 20px 0;
}

.scroll-track {
    display: flex;
    align-items: center;
    gap: 18px;
    width: max-content;
    animation: scrollCartas 90s linear infinite;
}

    .scroll-track img {
        width: 180px;
        height: auto;
        border-radius: 14px;
        flex-shrink: 0;
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    }

        .scroll-track img:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 12px 28px rgba(0,0,0,0.45);
        }

/* =========================
   ANIMACION
========================= */

@keyframes scrollCartas {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* =========================
   TABLETS
========================= */

@media (max-width: 1100px) {

    .hero-card {
        gap: 30px;
        padding: 30px;
    }

    .hero-logo-box {
        flex: 0 0 320px;
    }

    .hero-logo-cronicas {
        max-width: 320px;
    }

    .hero-text-box h1 {
        font-size: 3rem;
    }

    .texto-cronicas {
        font-size: 1rem;
    }

    .scroll-track img {
        width: 150px;
    }
}

/* =========================
   MOVIL
========================= */

@media (max-width: 900px) {

    .page-body {
        padding: 12px;
    }

    .hero-panel {
        padding: 20px 0;
    }

    .hero-card {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 24px;
        border-radius: 20px;
    }

    .hero-logo-box {
        flex: none;
        width: 100%;
    }

    .hero-logo-cronicas {
        max-width: 260px;
    }

    .hero-mini {
        font-size: 0.85rem;
    }

    .hero-text-box h1 {
        font-size: 2.2rem;
        margin-bottom: 18px;
    }

    .texto-cronicas {
        font-size: 0.96rem;
        line-height: 1.7;
        margin-bottom: 18px;
    }

    .scroll-cartas {
        margin-top: 20px;
        padding: 10px 0;
    }

    .scroll-track {
        gap: 12px;
    }

        .scroll-track img {
            width: 115px;
            border-radius: 10px;
        }
}

/* =========================
   CELULARES PEQUEÑOS
========================= */

@media (max-width: 480px) {

    .hero-card {
        padding: 18px;
    }

    .hero-logo-cronicas {
        max-width: 210px;
    }

    .hero-text-box h1 {
        font-size: 1.8rem;
    }

    .texto-cronicas {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .scroll-track img {
        width: 95px;
    }


    .footer-cronicas {
        margin-top: 60px;
        padding: 25px 0;
        background: #0b1320;
        border-top: 2px solid #17c0eb;
    }

    .footer-links {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 40px;
        flex-wrap: wrap;
    }

        .footer-links a {
            color: white;
            text-decoration: none;
            font-weight: 600;
            transition: .25s;
        }

            .footer-links a:hover {
                color: #17c0eb;
            }

    .footer-copy {
        margin-top: 18px;
        text-align: center;
        color: #8f98a3;
        font-size: 14px;
    }

    @media(max-width:768px) {

        .footer-links {
            flex-direction: column;
            gap: 15px;
        }
    }
}