:root {
    --gold: #c5a05b;
    --gold-bright: #f3d692;
    --gold-dim: rgba(197, 160, 89, 0.55);
    --dark-deep: #05070a;
    --surface: rgba(10, 14, 22, 0.88);
    --surface-card: rgba(12, 17, 28, 0.86);
    --border-gold: rgba(197, 160, 89, 0.32);
    --ink: #ece8df;
    --muted: #9ca3b5;

    --c1: #00e5ff;
    --c2: #ffffff;
    --c3: #ff4d4d;
    --c4: #9d4dff;
    --c5: #4dff88;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--dark-deep);
}

body {
    min-height: 100vh;
    color: var(--ink);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    background:
        url('/home/the-lord-archmage-fondo.webp') no-repeat center center fixed,
        url('/home/the-lord-archmage-fondo-low.webp') no-repeat center center fixed;
    background-color: var(--dark-deep);
    background-size: cover;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 50% 14%, rgba(197, 160, 89, 0.08) 0%, rgba(5, 7, 10, 0.84) 55%, rgba(3, 4, 8, 0.96) 100%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', Georgia, serif;
    color: var(--gold-bright);
    letter-spacing: 1.8px;
}

a {
    color: var(--gold-bright);
    text-decoration: none;
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* Scroll Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #8a6d3b 0%, var(--gold) 50%, var(--gold-bright) 100%);
    box-shadow: 0 0 12px rgba(243, 214, 146, 0.65);
    z-index: 300;
    transition: width 0.08s linear;
}

/* Sticky Glassmorphism Navbar */
.arcane-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(5, 7, 10, 0.86);
    border-bottom: 1px solid var(--border-gold);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65);
}

.arcane-nav-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 11px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-bright);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.nav-brand:hover {
    color: #ffffff;
}

.nav-brand-logo {
    height: 34px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(197, 160, 89, 0.45));
}

.nav-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(197, 160, 89, 0.24);
    background: rgba(15, 21, 34, 0.58);
    color: var(--ink);
    font-family: 'Cinzel', serif;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.9px;
    white-space: nowrap;
}

.nav-pill:hover {
    border-color: var(--gold-bright);
    color: #ffffff;
    background: rgba(197, 160, 89, 0.16);
    transform: translateY(-1px);
}

.nav-pill.is-active {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.36), rgba(138, 109, 59, 0.26));
    border-color: var(--gold-bright);
    color: var(--gold-bright);
    box-shadow: 0 0 14px rgba(197, 160, 89, 0.3);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 6px;
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--gold) 0%, #8a6d3b 100%);
    color: #0b0f19;
    border: 1px solid var(--gold-bright);
    box-shadow: 0 4px 14px rgba(197, 160, 89, 0.28);
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-cta:hover {
    color: #05070a;
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.48);
}

/* Hero Section */
.hof-hero {
    max-width: 1120px;
    margin: 0 auto;
    padding: 46px 20px 26px;
    text-align: center;
}

.hof-hero-logo {
    max-width: min(320px, 76vw);
    height: auto;
    display: block;
    margin: 0 auto 16px;
    filter: drop-shadow(0 0 24px rgba(197, 160, 89, 0.42));
}

.hero-eyebrow {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--border-gold);
    border-radius: 999px;
    background: rgba(10, 14, 22, 0.76);
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hof-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.92), 0 0 36px rgba(197, 160, 89, 0.28);
    margin-bottom: 12px;
}

.hof-lead {
    max-width: 720px;
    margin: 0 auto 22px;
    color: #cbd0dc;
    font-size: clamp(0.95rem, 1.9vw, 1.08rem);
    line-height: 1.7;
}

.hof-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.hof-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid var(--border-gold);
    background: rgba(12, 17, 28, 0.8);
    color: var(--gold-bright);
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.hof-action-btn:hover {
    border-color: var(--gold-bright);
    background: rgba(197, 160, 89, 0.16);
    color: #ffffff;
    transform: translateY(-2px);
}

.hof-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    max-width: 980px;
    margin: 0 auto;
}

.hof-stat-card {
    background: var(--surface-card);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    padding: 16px 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

.hof-stat-value {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 900;
    color: var(--gold-bright);
    letter-spacing: 1px;
    line-height: 1.2;
}

.hof-stat-label {
    margin-top: 5px;
    font-size: 0.76rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1.1px;
}

/* Filter & Navigation Toolbar */
.hof-toolbar {
    max-width: 1120px;
    margin: 6px auto 26px;
    padding: 0 20px;
}

.hof-toolbar-card {
    background: var(--surface);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 18px 20px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
}

.hof-toolbar-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 12px;
    align-items: center;
}

.hof-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.hof-search-icon {
    position: absolute;
    left: 14px;
    color: var(--gold);
    font-size: 0.95rem;
    pointer-events: none;
}

.hof-search-input {
    width: 100%;
    padding: 11px 38px 11px 40px;
    border-radius: 8px;
    border: 1px solid rgba(197, 160, 89, 0.32);
    background: rgba(5, 7, 10, 0.75);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hof-search-input::placeholder {
    color: #7d8597;
}

.hof-search-input:focus {
    border-color: var(--gold-bright);
    box-shadow: 0 0 14px rgba(197, 160, 89, 0.28);
}

.hof-search-clear {
    position: absolute;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(197, 160, 89, 0.2);
    color: var(--gold-bright);
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
}

.hof-search-clear.is-visible {
    display: inline-flex;
}

.hof-search-clear:hover {
    background: var(--gold);
    color: #05070a;
}

.hof-jump-wrap {
    display: flex;
    align-items: center;
}

.hof-jump-select {
    width: 100%;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid rgba(197, 160, 89, 0.32);
    background: rgba(5, 7, 10, 0.85);
    color: var(--ink);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    outline: none;
    cursor: pointer;
}

.hof-jump-select:focus {
    border-color: var(--gold-bright);
    box-shadow: 0 0 14px rgba(197, 160, 89, 0.25);
}

.hof-sort-btn {
    padding: 11px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-gold);
    background: rgba(197, 160, 89, 0.12);
    color: var(--gold-bright);
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.9px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.hof-sort-btn:hover {
    background: rgba(197, 160, 89, 0.24);
    border-color: var(--gold-bright);
    color: #ffffff;
}

.hof-toolbar-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(197, 160, 89, 0.16);
}

.magic-filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.magic-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid rgba(197, 160, 89, 0.25);
    background: rgba(15, 21, 34, 0.65);
    color: #d6d9e2;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.magic-filter-pill:hover {
    border-color: var(--gold-bright);
    color: #ffffff;
    background: rgba(197, 160, 89, 0.14);
}

.magic-filter-pill.is-active {
    border-color: var(--gold-bright);
    background: rgba(197, 160, 89, 0.22);
    color: var(--gold-bright);
    box-shadow: 0 0 12px rgba(197, 160, 89, 0.22);
}

.magic-filter-pill[data-color="c1"].is-active {
    border-color: var(--c1);
    color: var(--c1);
    background: rgba(0, 229, 255, 0.12);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.28);
}

.magic-filter-pill[data-color="c2"].is-active {
    border-color: var(--c2);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.28);
}

.magic-filter-pill[data-color="c3"].is-active {
    border-color: var(--c3);
    color: #ff8585;
    background: rgba(255, 77, 77, 0.14);
    box-shadow: 0 0 12px rgba(255, 77, 77, 0.28);
}

.magic-filter-pill[data-color="c4"].is-active {
    border-color: var(--c4);
    color: #cba2ff;
    background: rgba(157, 77, 255, 0.16);
    box-shadow: 0 0 12px rgba(157, 77, 255, 0.28);
}

.magic-filter-pill[data-color="c5"].is-active {
    border-color: var(--c5);
    color: #82ffac;
    background: rgba(77, 255, 136, 0.12);
    box-shadow: 0 0 12px rgba(77, 255, 136, 0.25);
}

.magic-filter-orb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hof-filter-status {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 500;
}

.hof-filter-status strong {
    color: var(--gold-bright);
}

/* Timeline & Set Cards */
.hof-timeline {
    max-width: 1120px;
    margin: 0 auto 76px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hof-set-card {
    background: var(--surface-card);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.68);
    position: relative;
    scroll-margin-top: 86px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hof-set-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.65;
}

.hof-set-card:hover {
    border-color: rgba(243, 214, 146, 0.55);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.8), 0 0 24px rgba(197, 160, 89, 0.12);
}

.hof-set-card.is-hidden {
    display: none;
}

.hof-set-header {
    padding: 20px 24px;
    background: linear-gradient(90deg, rgba(197, 160, 89, 0.12) 0%, rgba(12, 17, 28, 0.45) 65%, rgba(197, 160, 89, 0.06) 100%);
    border-bottom: 1px solid rgba(197, 160, 89, 0.24);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.hof-set-title-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hof-set-era {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid rgba(197, 160, 89, 0.35);
    background: rgba(5, 7, 10, 0.72);
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.hof-set-era.is-latest {
    border-color: var(--gold-bright);
    color: #0b0f19;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}

.hof-set-era.is-origin {
    border-color: #d97706;
    color: #fde68a;
    background: rgba(146, 64, 14, 0.35);
}

.hof-set-header h2 {
    font-size: clamp(1.18rem, 2.5vw, 1.55rem);
    font-weight: 800;
    color: var(--gold-bright);
    letter-spacing: 1.4px;
    text-transform: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.hof-set-champions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hof-champ-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 8px;
    background: rgba(5, 7, 10, 0.72);
    border: 1px solid rgba(197, 160, 89, 0.26);
    font-size: 0.78rem;
    color: #e6dfd1;
}

.hof-champ-pill .champ-label {
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.6px;
}

.hof-champ-pill strong {
    color: #ffffff;
    font-weight: 600;
}

/* Card Body Grid */
.hof-set-body {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 22px;
    padding: 22px 24px;
    align-items: start;
}

.hof-set-body.hof-set-body--single {
    grid-template-columns: minmax(0, 680px);
    justify-content: center;
}

.hof-panel {
    background: rgba(6, 9, 15, 0.64);
    border: 1px solid rgba(197, 160, 89, 0.18);
    border-radius: 10px;
    overflow: hidden;
}

.hof-panel--arma {
    grid-column: 1 / -1;
}

.hof-panel-title {
    padding: 11px 16px;
    background: rgba(197, 160, 89, 0.09);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    font-family: 'Cinzel', serif;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--gold-bright);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hof-panel-count {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.5px;
    text-transform: none;
}

/* Ranking Tables */
.hof-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.hof-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.hof-table thead th {
    padding: 10px 14px;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(15, 22, 36, 0.75);
    border-bottom: 1px solid rgba(197, 160, 89, 0.22);
    white-space: nowrap;
}

.hof-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.18s ease;
}

.hof-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.hof-table tbody tr:hover {
    background: rgba(197, 160, 89, 0.09);
}

.hof-table tbody tr:last-child {
    border-bottom: none;
}

.hof-table tbody tr.is-match {
    background: rgba(243, 214, 146, 0.16) !important;
    box-shadow: inset 3px 0 0 var(--gold-bright);
}

.hof-table td {
    padding: 9px 14px;
    font-size: 0.88rem;
    color: var(--ink);
    vertical-align: middle;
}

.hof-col-rank {
    width: 48px;
    text-align: center !important;
}

.hof-col-color {
    width: 56px;
    text-align: center !important;
}

.hof-col-guild {
    text-align: right !important;
    white-space: nowrap;
}

/* Rank Badges */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 26px;
    padding: 0 7px;
    border-radius: 6px;
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 700;
}

.rank-1 {
    background: linear-gradient(135deg, #fbe29d 0%, #c5a05b 100%);
    color: #0b0f19;
    border: 1px solid #fff0be;
    box-shadow: 0 0 14px rgba(243, 214, 146, 0.55);
}

.rank-2 {
    background: linear-gradient(135deg, #e5e7eb 0%, #94a3b8 100%);
    color: #0b0f19;
    border: 1px solid #f1f5f9;
    box-shadow: 0 0 10px rgba(203, 213, 225, 0.35);
}

.rank-3 {
    background: linear-gradient(135deg, #e09f67 0%, #9a5b2c 100%);
    color: #0b0f19;
    border: 1px solid #f3ba88;
    box-shadow: 0 0 10px rgba(224, 159, 103, 0.32);
}

.rank-n {
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.76rem;
}

.mage-cell {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
}

.mage-name {
    font-weight: 600;
    color: #ffffff;
}

tr:first-child .mage-name {
    color: var(--gold-bright);
    font-weight: 700;
}

.mage-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    color: #8f9bb0;
}

/* Magic Color Orbs */
.magic-icon {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.55);
    vertical-align: middle;
}

.magic-icon.c1 {
    background-image: url('/img/1.webp');
    border: 1px solid rgba(0, 229, 255, 0.6);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
}

.magic-icon.c2 {
    background-image: url('/img/2.webp');
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.32);
}

.magic-icon.c3 {
    background-image: url('/img/3.webp');
    border: 1px solid rgba(255, 77, 77, 0.62);
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.35);
}

.magic-icon.c4 {
    background-image: url('/img/4.webp');
    border: 1px solid rgba(157, 77, 255, 0.65);
    box-shadow: 0 0 10px rgba(157, 77, 255, 0.35);
}

.magic-icon.c5 {
    background-image: url('/img/5.webp');
    border: 1px solid rgba(77, 255, 136, 0.6);
    box-shadow: 0 0 10px rgba(77, 255, 136, 0.32);
}

.magic-icon.c6 {
    background-image: url('/img/6.webp');
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 0 8px rgba(148, 163, 184, 0.22);
    opacity: 0.78;
}

/* Guild Badges & Cells */
.guild-tag {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(197, 160, 89, 0.13);
    border: 1px solid rgba(197, 160, 89, 0.34);
    color: var(--gold-bright);
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guild-empty {
    color: rgba(156, 163, 181, 0.42);
    font-size: 0.8rem;
}

.guild-fullname {
    color: #e5e7eb;
    font-weight: 500;
}

.guild-colspan {
    color: var(--muted);
    font-style: italic;
    font-size: 0.84rem;
}

/* Empty Filter State */
.hof-empty-state {
    max-width: 640px;
    margin: 24px auto 64px;
    padding: 36px 24px;
    text-align: center;
    background: var(--surface-card);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    display: none;
}

.hof-empty-state.is-visible {
    display: block;
}

.hof-empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.hof-empty-state p {
    color: var(--muted);
    margin-bottom: 18px;
    font-size: 0.92rem;
}

.hof-reset-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--gold-bright);
    background: linear-gradient(135deg, var(--gold), #8a6d3b);
    color: #0b0f19;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
}

/* Floating Back-to-Top Button */
.hof-top-btn {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 180;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--gold-bright);
    background: rgba(10, 14, 22, 0.9);
    color: var(--gold-bright);
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.hof-top-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.hof-top-btn:hover {
    background: var(--gold);
    color: #05070a;
}

/* Footer */
.arcane-footer {
    border-top: 1px solid rgba(197, 160, 89, 0.16);
    background: rgba(3, 4, 8, 0.94);
    padding: 34px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

.arcane-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 12px;
}

.arcane-footer-links a {
    font-family: 'Cinzel', serif;
    font-size: 0.84rem;
    letter-spacing: 1.2px;
    color: var(--gold);
}

.arcane-footer-links a:hover {
    color: #ffffff;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
    .arcane-nav-inner {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 10px 14px;
    }

    .nav-pills {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .nav-pills::-webkit-scrollbar {
        display: none;
    }

    .nav-pill {
        flex-shrink: 0;
    }
}

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

    .hof-toolbar-top {
        grid-template-columns: 1fr;
    }

    .hof-set-body {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }

    .hof-set-header {
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .hof-hero {
        padding: 32px 14px 20px;
    }

    .hof-toolbar,
    .hof-timeline {
        padding: 0 12px;
    }

    .hof-table td,
    .hof-table thead th {
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    .magic-icon {
        width: 24px;
        height: 24px;
    }

    .hof-col-rank {
        width: 40px;
    }

    .hof-col-color {
        width: 44px;
    }
}
