/* ================= HERO ================= */
.hero {
    padding: 110px 0;
    border-bottom: 1px solid var(--line-soft);
}

.hero-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1050px;
    margin: 0 auto;
}

.hero-emblem {
    width: 260px;
    height: 260px;
    flex-shrink: 0;
    object-fit: contain;
    filter: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.hero h1 {
    font-size: clamp(44px, 6vw, 68px);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.0;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin: 0;
}

.hero-tagline {
    font-size: 17px;
    color: var(--ink-dim);
    line-height: 1.65;
    max-width: 600px;
    margin: 4px 0 0 0;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 12px;
}

@media (max-width: 768px) {
    .hero {
        padding: 70px 0;
    }

    .hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 32px;
    }

    .hero-emblem {
        height: 180px;
        width: 180px;
    }

    .hero-content {
        align-items: center;
    }

    .hero-actions {
        justify-content: center;
    }
}

/* ================= CLAN STATS ================= */
.clan-stats-section {
    padding-top: 36px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line-soft);
}

.clan-stats-section .section-head {
    margin-bottom: 20px;
}

.clan-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.clan-stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 14px;
    text-align: center;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.clan-stat-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.clan-stat-card .stat-value {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--gold-bright);
    line-height: 1.2;
}

.clan-stat-card .stat-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-top: 8px;
}

@media (max-width: 900px) {
    .clan-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .clan-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .clan-stat-card .stat-value {
        font-size: 17px;
    }
}

/* ================= ANNOUNCEMENTS (TABLET SLATE STYLE) ================= */
.board {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tablet {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
    position: relative;
    transition: border-color .2s ease, box-shadow .2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.tablet:hover {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.tablet.pinned {
    border-color: var(--gold-dim);
    background: var(--surface);
}

.tablet.pinned::after {
    content: "PINNED";
    position: absolute;
    top: 14px;
    right: 18px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .12em;
    color: var(--gold-bright);
    background: rgba(232, 178, 61, 0.12);
    border: 1px solid var(--gold-dim);
    padding: 2px 8px;
    border-radius: 2px;
    font-weight: 700;
}

.tablet.archived {
    opacity: 0.85;
    background: rgba(26, 26, 26, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

.tablet.archived:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.2);
}

#toggleNewsArchiveBtn.active {
    background: rgba(232, 178, 61, 0.15);
    border-color: var(--gold);
    color: var(--gold-bright);
}

.tablet .date {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
}

.tablet-time-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.tablet-time-header .date {
    margin-bottom: 0;
}

.local-time-pill {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--gold-bright);
    background: rgba(232, 178, 61, 0.12);
    border: 1px solid rgba(232, 178, 61, 0.3);
    border-radius: 3px;
    padding: 2px 7px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.02em;
}

.news-countdown-badge {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-countdown-badge.status-upcoming {
    color: var(--gold-bright);
    background: rgba(232, 178, 61, 0.18);
    border: 1px solid var(--gold-dim);
}

.news-countdown-badge.status-live {
    color: var(--venom);
    background: rgba(139, 168, 92, 0.18);
    border: 1px solid var(--venom-dim);
}

.news-countdown-badge.status-finished {
    color: var(--ink-faint);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-soft);
}

.tablet h3 {
    font-size: 17px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #ffffff;
}

.tablet p {
    margin: 0;
    color: var(--ink-dim);
    font-size: 14px;
    line-height: 1.55;
}

.tablet-footer {
    margin-top: 16px;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line-soft);
    flex-wrap: wrap;
    gap: 8px;
}

.news-admin-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

/* ================= FEATURED EVENT CARDS & CALENDAR ================= */
.featured-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 38px;
}

.featured-events-grid:not(.has-events) {
    display: none;
}

.comp-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid #966ec8;
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
    position: relative;
}

.comp-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.comp-card.event-type-botw {
    border-left: 3px solid var(--rust);
}

.comp-card.event-type-sotw {
    border-left: 3px solid var(--venom);
}

.comp-card.event-type-rotw {
    border-left: 3px solid #4a7bd4;
}

.comp-card.event-type-bingo {
    border-left: 3px solid var(--gold);
}

.comp-card.event-type-other {
    border-left: 3px solid #966ec8;
}

.comp-card-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.comp-card-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.comp-card-badge.badge-live {
    color: var(--venom);
}

.comp-card-badge.badge-upcoming {
    color: var(--gold-bright);
}

.comp-card-badge.type-tag {
    color: var(--ink-faint);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 2px;
    border: 1px solid var(--line-soft);
}

.comp-card-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comp-card-time {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--ink-dim);
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--venom);
    box-shadow: 0 0 8px var(--venom);
    animation: pulse 1.8s infinite;
}

.upcoming-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(139, 168, 92, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 6px rgba(139, 168, 92, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(139, 168, 92, 0);
    }
}

/* ================= CALENDAR TOOLBAR ================= */
.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 16px;
}

.cal-nav {
    background: none;
    border: 1px solid var(--line);
    color: var(--ink);
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.cal-nav:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.cal-month {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink);
    min-width: 140px;
    text-align: center;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cal-scroll-container {
    width: 100%;
    overflow-x: auto;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    min-width: 500px;
}

.cal-weekday {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-faint);
    text-align: center;
    padding: 8px 4px;
    min-width: 0;
    overflow: hidden;
}

.cal-cell {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    min-height: 80px;
    min-width: 0;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color .15s ease;
    overflow: hidden;
}

.cal-cell.empty {
    background: transparent;
    border-color: transparent;
}

.cal-cell.today {
    border-color: var(--gold);
    background: rgba(232, 178, 61, 0.08);
}

.cal-daynum {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-faint);
}

.cal-cell.today .cal-daynum {
    color: var(--gold-bright);
}

.cal-events-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.cal-event {
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.35;
    padding: 4px 6px;
    min-height: 24px;
    border-radius: 2px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: filter .15s ease;
}

.cal-event:hover {
    filter: brightness(1.25);
}

.cal-event.event-botw {
    background: rgba(196, 85, 47, 0.35);
    color: #ff9d82;
    border-left: 2px solid var(--rust);
}

.cal-event.event-sotw {
    background: rgba(139, 168, 92, 0.35);
    color: #b7d687;
    border-left: 2px solid var(--venom);
}

.cal-event.event-rotw {
    background: rgba(74, 123, 212, 0.35);
    color: #96baff;
    border-left: 2px solid #4a7bd4;
}

.cal-event.event-bingo {
    background: rgba(232, 178, 61, 0.35);
    color: var(--gold-bright);
    border-left: 2px solid var(--gold);
}

.cal-event.event-other {
    background: rgba(150, 110, 200, 0.35);
    color: #d1b8f5;
    border-left: 2px solid #966ec8;
}

/* ================= PODIUM ================= */
.podium {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.podium-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-alt);
    border: 1px solid var(--line-soft);
    padding: 6px 10px;
    border-radius: 2px;
    font-size: 12.5px;
}

.podium-row.gold {
    border-color: rgba(232, 178, 61, 0.4);
    background: rgba(232, 178, 61, 0.08);
}

.podium-row.silver {
    border-color: rgba(183, 174, 194, 0.3);
}

.podium-row.bronze {
    border-color: rgba(196, 85, 47, 0.3);
}

.podium-row .p-rank {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    width: 28px;
}

.podium-row.gold .p-rank {
    color: var(--gold-bright);
}

.podium-row.silver .p-rank {
    color: #d1c9db;
}

.podium-row.bronze .p-rank {
    color: #e58767;
}

.podium-row .p-name {
    flex: 1;
    font-weight: 600;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 8px;
}

.podium-row .p-gain {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--gold-bright);
}


/* ================= RANKS ================= */
.rank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.rank-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.rank-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.rank-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: -2px;
    margin-right: 6px;
    flex-shrink: 0;
    object-fit: contain;
}

.rank-card .rk-name {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 16px;
    color: var(--gold-bright);
    display: flex;
    align-items: center;
}

.rank-card .rk-desc {
    margin-top: 8px;
    font-size: 13.5px;
    color: var(--ink-dim);
    white-space: pre-line;
    line-height: 1.5;
}

/* ================= ADMIN MOD TEAM ================= */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.admin-card {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.admin-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.admin-card-hero {
    position: relative;
    width: 100%;
    height: 115px;
    min-height: 115px;
    max-height: 115px;
    flex-shrink: 0;
    background: transparent;
    border-bottom: 1px solid var(--line-soft);
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 6px 6px 0;
}

.admin-avatar-img {
    height: 250%;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    margin: 0 auto;
}

.admin-avatar-fallback {
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 26px;
    color: var(--gold-bright);
    letter-spacing: .05em;
}

.admin-card-body {
    background: var(--surface);
    flex: 1;
    padding: 10px 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.admin-card .a-name,
.admin-card .a-ign {
    font-weight: 700;
    font-size: 15px;
    color: var(--ink-bright, #fff);
    letter-spacing: .01em;
}

.admin-card .a-role {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.admin-card .a-desc {
    font-size: 12px;
    color: var(--ink-dim);
    margin-top: 8px;
    line-height: 1.45;
    text-align: center;
    white-space: pre-line;
    word-break: break-word;
}


.pagination-nav-btn {
    padding: 0 12px;
}

.pagination-nav-btn svg {
    display: block;
    pointer-events: none;
}

@media (max-width: 600px) {
    .rank-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .rank-card {
        padding: 14px 10px;
    }

    .rank-card .rk-name {
        font-size: 13.5px;
    }

    .rank-card .rk-desc {
        font-size: 11.5px;
        margin-top: 6px;
    }

    .admin-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .admin-card-hero {
        height: 100px;
        min-height: 100px;
        max-height: 100px;
        padding: 5px 5px 0;
    }

    .admin-avatar-fallback {
        font-size: 20px;
    }

    .admin-card-body {
        padding: 4px 8px 12px;
    }

    .admin-card .a-name,
    .admin-card .a-ign {
        font-size: 14px;
    }

    .admin-card .a-role {
        font-size: 10px;
    }

    .admin-card .a-desc {
        font-size: 11.5px;
        margin-top: 6px;
    }

    .member-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .member-card {
        padding: 12px 10px;
    }

    .member-card .m-name {
        font-size: 13.5px;
    }

    .member-card .m-role,
    .member-card .m-meta {
        font-size: 10px;
    }

    .rules-card {
        padding: 18px 14px;
    }

    .rules-card-title {
        font-size: 14.5px;
        margin-bottom: 14px;
    }

    .rules-list {
        gap: 12px;
    }

    .rules-list .txt {
        font-size: 13.5px;
    }

    .pagination-btn {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 0 4px;
    }

    .pagination-nav-btn {
        padding: 0 8px;
    }

    .pagination-ellipsis {
        width: 18px;
        height: 32px;
        font-size: 11px;
    }

    .members-actions {
        gap: 4px;
        margin-top: 20px;
    }
}

.admin-edit-item-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 12px;
    position: relative;
}

.time-preview-box {
    background: transparent;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    padding: 8px 0;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 11.5px;
}

.time-preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--ink-dim);
    font-size: 11px;
}

.time-preview-row .preview-val {
    color: var(--ink);
    font-weight: 600;
    text-align: right;
}

.time-preview-row .preview-val.highlight {
    color: var(--gold-bright);
}

.quick-duration-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.quick-duration-btn {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-dim);
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.quick-duration-btn:hover {
    color: var(--gold-bright);
    border-color: var(--gold-dim);
    background: rgba(232, 178, 61, 0.08);
}

@media (max-width: 768px) {
    /* Unbox internal lists so the entire page is utilized without nested scrolling boxes */
    #modalFaqList,
    #modalRanksList,
    #modalModsList,
    #hofEntriesAdminList {
        max-height: none !important;
        overflow-y: visible !important;
    }

    .quick-duration-group {
        gap: 5px;
    }

    .quick-duration-btn {
        padding: 6px 11px;
        font-size: 12px;
        min-height: 32px;
    }

    .event-modal-footer {
        padding: 10px 14px;
        gap: 6px;
        flex-wrap: wrap;
    }

    .event-modal-footer #eventModalAdminActions {
        width: 100%;
        display: flex;
        gap: 6px;
        margin-bottom: 4px;
    }

    .event-modal-footer #eventModalAdminActions .btn {
        flex: 1;
        font-size: 12px !important;
        padding: 6px 10px !important;
        height: 34px !important;
    }

    .event-modal-footer > a.btn,
    .event-modal-footer > button.btn {
        flex: 1;
        justify-content: center;
        font-size: 12px !important;
        padding: 6px 10px !important;
        height: 34px !important;
    }
}

/* ================= EVENT MODAL ================= */
.event-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 8, 14, 0.85);
    backdrop-filter: blur(6px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.event-modal-backdrop.open {
    display: flex;
}

.event-modal {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    position: relative;
    padding: 24px;
    scrollbar-width: thin;
}

.event-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    color: var(--ink-faint);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color .15s ease;
}

.event-modal-close:hover {
    color: #ffffff;
}

.event-modal-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.event-modal-type {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 2px;
}

.event-modal-type.type-botw {
    background: rgba(196, 85, 47, 0.35);
    color: #ff9d82;
    border: 1px solid var(--rust);
}

.event-modal-type.type-sotw {
    background: rgba(139, 168, 92, 0.35);
    color: #b7d687;
    border: 1px solid var(--venom);
}

.event-modal-type.type-rotw {
    background: rgba(74, 123, 212, 0.35);
    color: #96baff;
    border: 1px solid #4a7bd4;
}

.event-modal-type.type-bingo {
    background: rgba(232, 178, 61, 0.35);
    color: var(--gold-bright);
    border: 1px solid var(--gold);
}

.event-modal-type.type-other {
    background: rgba(150, 110, 200, 0.35);
    color: #d1b8f5;
    border: 1px solid #966ec8;
}

.event-modal-status {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.event-modal-status.status-ongoing {
    color: var(--venom);
}

.event-modal-status.status-upcoming {
    color: var(--gold-bright);
}

.event-modal-status.status-finished {
    color: var(--ink-faint);
}

.event-modal-title {
    font-size: 19px;
    margin: 0 0 16px 0;
    color: #ffffff;
    line-height: 1.3;
    padding-right: 28px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.event-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
}

.event-modal-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.event-modal-field-full {
    grid-column: 1 / -1;
}

.event-field-label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.event-field-value {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
}

.event-field-desc {
    font-size: 13.5px;
    color: var(--ink-dim);
    line-height: 1.5;
    margin-top: 4px;
}

.event-modal-leaders-section {
    margin-bottom: 20px;
}

.event-leaders-header {
    margin-bottom: 8px;
}

.podium-loading,
.podium-empty {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-faint);
    padding: 12px;
    text-align: center;
    background: var(--surface);
    border-radius: var(--radius);
}

.event-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--line-soft);
    padding-top: 14px;
}

.event-modal-footer .btn {
    font-size: 12px;
    padding: 6px 14px;
    height: 34px;
    white-space: nowrap;
}

/* ================= REVEAL ================= */
.reveal {
    opacity: 1;
    transform: none;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* ================= HALL OF FAME & LEGENDS ================= */
.hof-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hof-tab-btn {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink-dim);
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 8px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s ease;
}

.hof-tab-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.hof-tab-btn.active {
    background: transparent;
    border-color: #ffffff;
    color: #ffffff;
    font-weight: 700;
}

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

.hof-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    border-left: 3px solid var(--gold);
}

.hof-card:hover {
    border-color: rgba(232, 178, 61, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.hof-card.is-drop {
    border-left-color: #ba68c8;
}

.hof-card.is-feat {
    border-left-color: #64b5f6;
}

.hof-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.hof-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hof-tag.tag-sotw { background: rgba(232, 178, 61, 0.18); color: var(--gold-bright); border: 1px solid var(--gold-dim); }
.hof-tag.tag-botw { background: rgba(196, 85, 47, 0.18); color: #ff8a70; border: 1px solid var(--rust-dim); }
.hof-tag.tag-rotw { background: rgba(139, 168, 92, 0.18); color: var(--venom); border: 1px solid var(--venom-dim); }
.hof-tag.tag-comp { background: rgba(232, 178, 61, 0.18); color: var(--gold-bright); border: 1px solid var(--gold-dim); }
.hof-tag.tag-bingo { background: rgba(232, 178, 61, 0.15); color: var(--gold-bright); border: 1px solid var(--gold-dim); }
.hof-tag.tag-chutes { background: rgba(139, 168, 92, 0.15); color: var(--venom); border: 1px solid var(--venom-dim); }
.hof-tag.tag-tournament { background: rgba(196, 85, 47, 0.15); color: #ff8a70; border: 1px solid var(--rust-dim); }
.hof-tag.tag-drop { background: rgba(186, 104, 200, 0.15); color: #e1bee7; border: 1px solid rgba(186, 104, 200, 0.4); }
.hof-tag.tag-feat { background: rgba(100, 181, 246, 0.15); color: #90caf9; border: 1px solid rgba(100, 181, 246, 0.4); }
.hof-tag.tag-event { background: rgba(232, 178, 61, 0.15); color: var(--gold-bright); border: 1px solid var(--gold-dim); }

.hof-date {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-faint);
}

.hof-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
}

/* Event Specific Styles */
.hof-podium-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hof-podium-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    background: transparent;
    padding: 4px 0;
    border: none;
}

.hof-podium-rank {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 11px;
    width: 32px;
    flex-shrink: 0;
    color: var(--ink-dim);
}
.hof-podium-rank.r-1 { color: var(--gold-bright); }
.hof-podium-rank.r-2 { color: #d1d5db; }
.hof-podium-rank.r-3 { color: #cd7f32; }

.hof-podium-name {
    font-weight: 600;
    color: var(--ink);
    flex: 1;
    margin-left: 4px;
}

.hof-podium-score {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--ink-faint);
    flex-shrink: 0;
}

/* Drop / Feat Specific Styles */
.hof-player-banner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: transparent;
    padding: 2px 0;
    border: none;
}

.hof-player-name {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.ironman-badge {
    width: 15px;
    height: 15px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: pixelated;
}

.hof-drop-display {
    display: flex;
    align-items: center;
    gap: 14px;
    background: transparent;
    padding: 2px 0;
    border: none;
}

.hof-drop-icon-box {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.hof-drop-icon-box img {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.hof-drop-item-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
}

.hof-drop-boss-name {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-faint);
    margin-top: 2px;
}

.hof-rarity-pill {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: #ba68c8;
    background: rgba(186, 104, 200, 0.1);
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
    border: 1px solid rgba(186, 104, 200, 0.3);
}

.hof-story-box {
    font-size: 12.5px;
    color: var(--ink-dim);
    line-height: 1.5;
    background: transparent;
    padding: 4px 0;
    border: none;
    font-style: italic;
}

.hof-stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-faint);
    padding-top: 10px;
    border-top: 1px dashed var(--line-soft);
}

.hof-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}

/* Modal Category Toggle Buttons */
.hof-category-opt {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 9px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 11.5px;
    font-family: var(--font-mono);
    color: var(--ink-dim);
    cursor: pointer;
    transition: all .2s ease;
    user-select: none;
}

.hof-category-opt input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.hof-category-opt:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    background: transparent;
}

.hof-category-opt.active,
.hof-category-opt:has(input[type="radio"]:checked) {
    background: transparent;
    border-color: #ffffff;
    color: #ffffff;
    font-weight: 700;
    box-shadow: none;
}

.hof-admin-actions {
    display: flex;
    gap: 6px;
}

/* Auto-complete Search Dropdowns */
.item-search-wrapper {
    position: relative;
}

.item-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius);
    max-height: 220px;
    overflow-y: auto;
    z-index: 150;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
    margin-top: 4px;
    display: none;
    scrollbar-width: thin;
}

.item-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
    transition: background .15s ease;
}

.item-search-item:hover {
    background: var(--surface-active);
    color: #ffffff;
}

.item-search-item img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

.wom-player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
    transition: background .15s ease;
}

.wom-player-item:hover {
    background: var(--surface-active);
    color: #ffffff;
}

.wom-player-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.wom-player-meta {
    font-size: 11px;
    color: var(--ink-faint);
    display: flex;
    align-items: center;
    gap: 8px;
}

.wom-player-badge {
    font-size: 9.5px;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(232, 178, 61, 0.15);
    color: var(--gold-bright);
    border: 1px solid var(--gold-dim);
    text-transform: uppercase;
    font-weight: 700;
}
