.myth-page {
    padding: 0 6vw 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.myth-hero .hero__lead {
    max-width: 680px;
}

.panel {
    background: rgba(12, 11, 14, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.8rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.panel-header h2 {
    font-family: "Cinzel", serif;
    margin: 0 0 0.35rem;
    letter-spacing: 0.06em;
}

.panel-header p {
    margin: 0;
    color: var(--text-mute);
}

.myth-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.summary-card {
    padding: 1.1rem 1.2rem;
    border-radius: 14px;
    border: 1px solid rgba(240, 210, 160, 0.2);
    background: linear-gradient(140deg, rgba(26, 22, 20, 0.95), rgba(12, 11, 14, 0.7));
}

.summary-card h3 {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(240, 210, 160, 0.7);
}

.summary-card p {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #f5d9a5;
}

.section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.section-card {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 9, 12, 0.7);
    text-decoration: none;
    color: var(--text-ice);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.section-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 171, 80, 0.45);
    box-shadow: 0 0 18px rgba(255, 171, 80, 0.2);
}

.section-card h3 {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mute);
}

html {
    scroll-behavior: smooth;
}

.layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.layout-image {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 9, 12, 0.75);
    padding: 1rem;
}

.layout-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.layout-zones {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.zone-card {
    border-radius: 14px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 14, 18, 0.85);
}

.zone-card h4 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
}

.zone-card p {
    margin: 0;
    color: var(--text-mute);
    font-size: 0.9rem;
}

.zone-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
    margin-top: 0.4rem;
    color: rgba(245, 217, 165, 0.85);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-cell {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.stat-icon {
    width: 24px;
    height: 24px;
    background-image: url("../assets/images/myth/stats/spritesheet-stat-icons.webp");
    background-position: var(--icon-pos);
    background-size: var(--icon-size);
    background-repeat: no-repeat;
    flex: 0 0 auto;
}

.rank-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.rank-button {
    border-radius: 999px;
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(14, 13, 18, 0.8);
    color: var(--text-ice);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    font-size: 0.85rem;
}

.rank-button.is-active {
    border-color: rgba(240, 162, 75, 0.8);
    color: var(--ember-strong);
    background: rgba(20, 17, 12, 0.9);
    box-shadow: 0 0 20px rgba(224, 135, 46, 0.25);
}

.rank-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.rank-card {
    border-radius: 14px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 11, 14, 0.7);
}

.rank-card h4 {
    margin: 0 0 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
    color: var(--text-mute);
}

.rank-card p {
    margin: 0;
    font-size: 1.1rem;
    color: #f5d9a5;
}

.rank-details summary {
    cursor: pointer;
    padding: 0.6rem 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
    color: rgba(240, 210, 160, 0.85);
}

.rank-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.6rem;
}

.rank-table th,
.rank-table td {
    text-align: left;
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
}

.rank-table th {
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.table-meta {
    color: var(--text-mute);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.myth-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1100px;
}

.myth-table th,
.myth-table td {
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.92rem;
    white-space: nowrap;
}

.myth-table th {
    position: sticky;
    top: 0;
    background: rgba(12, 11, 14, 0.95);
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    z-index: 2;
}

.myth-table .col-node {
    position: sticky;
    left: 0;
    background: rgba(12, 11, 14, 0.98);
    z-index: 3;
    text-align: left;
}

.myth-table .col-stat {
    text-align: left;
}

.myth-table tr.best-holy td {
    background: rgba(224, 135, 46, 0.08);
}

.myth-table tr.best-holy td:nth-child(5) {
    color: #f6d18b;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(240, 162, 75, 0.4);
}

.myth-table tr.best-holy td:nth-child(5)::after {
    content: " ★";
    color: rgba(240, 162, 75, 0.9);
}

.row-muted {
    color: rgba(230, 220, 200, 0.75);
}

.table-pagination {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0.8rem 0 0.6rem;
    color: var(--text-mute);
}

.table-pagination[hidden] {
    display: none;
}

.table-pagination #paginationStatus {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.roll-chip {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-weight: 600;
}

.roll-low {
    background: rgba(46, 135, 66, 0.35);
    color: #d6f7d6;
}

.roll-mid {
    background: rgba(189, 130, 30, 0.35);
    color: #ffe4b0;
}

.roll-high {
    background: rgba(158, 42, 42, 0.35);
    color: #ffd2d2;
}

.roll-extreme {
    background: rgba(82, 12, 12, 0.7);
    color: #ffc9c9;
}

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

@media (max-width: 700px) {
    .myth-page {
        padding: 0 7vw 3rem;
    }
}
