body.front-page {
    margin: 0;
    font-family: "Prompt", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #020617;
    color: #e5e7eb;
    position: relative;
    overflow-x: hidden;
}

body.front-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(3, 7, 18, 0.96)),
        url("../images/wallpaper.png") center center / cover no-repeat;
    filter: blur(6px);
    transform: scale(1.05);
}

.layout {
    max-width: 1240px;
    margin: 20px auto 40px;
    padding: 0 18px 32px;
}

.hero {
    padding: 18px 22px 20px;
    border-radius: 20px;
    max-width: 1040px;
    margin: 16px auto 24px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.9));
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.6);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.15) 45%, transparent 70%);
    transform: translateX(-120%);
    animation: heroSweep 7s linear infinite;
    pointer-events: none;
}

.hero-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 14px;
}

.hero-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(252, 211, 77, 0.8);
    font-size: 0.85rem;
    box-shadow: 0 0 0 rgba(250, 204, 21, 0.6);
    animation: badgePulse 2.4s ease-in-out infinite;
}

.hero-top h1 {
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: .03em;
}

.hero-top p {
    margin: 0;
    font-size: 0.95rem;
    color: #e5e7eb;
    opacity: 0.9;
}

.hero-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    max-width: 980px;
    margin: 0 auto;
}

.summary-card {
    padding: 10px 14px 12px;
    border-radius: 14px;
    background-color: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(51, 65, 85, 0.9);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.8);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.summary-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.08) 48%, transparent 70%);
    transform: translateX(-130%);
    animation: cardShine 6s ease-in-out infinite;
    pointer-events: none;
}

.summary-club {
    border-color: rgba(59, 130, 246, 0.85);
}

.summary-tyranny {
    border-color: rgba(250, 204, 21, 0.85);
}

.summary-emperium {
    border-color: rgba(34, 197, 94, 0.85);
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.95);
}

.summary-label {
    font-size: 0.8rem;
    color: #e5e7eb;
    opacity: 0.9;
}

.summary-main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 2px;
    font-size: 0.98rem;
}

.summary-name {
    font-weight: 600;
}

.summary-score {
    font-weight: 600;
    color: #facc15;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.45);
}

.summary-meta {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.78rem;
    color: #e5e7eb;
    opacity: 0.9;
}

.summary-empty {
    justify-content: center;
    font-size: 0.9rem;
    color: #e5e7eb;
    opacity: 0.85;
}

.main-sections {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.section-block {
    border-radius: 20px;
    padding: 16px 18px 18px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(31, 41, 55, 0.9);
}

.section-club {
    background: rgba(15, 23, 42, 0.96);
}

.section-tyranny {
    background: rgba(24, 24, 27, 0.96);
}

.section-emperium {
    background: rgba(15, 23, 42, 0.96);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 10px;
}

.section-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.section-sub {
    margin: 2px 0 0;
    font-size: 0.82rem;
    color: #e5e7eb;
    opacity: 0.8;
}

.rule-box {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.6);
    background: rgba(127, 29, 29, 0.35);
}

.rule-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #facc15;
    margin-bottom: 8px;
}

.rule-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rule-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    color: #f3f4f6;
    border: 1px solid rgba(245, 158, 11, 0.55);
    background: rgba(15, 23, 42, 0.72);
}

.board-error {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(248, 113, 113, 0.16);
    border: 1px solid rgba(248, 113, 113, 0.5);
    font-size: 0.85rem;
}

.table-wrapper {
    overflow-x: auto;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.ranking-table thead {
    background: rgba(15, 23, 42, 0.8);
}

.ranking-table th,
.ranking-table td {
    padding: 6px 8px;
    text-align: left;
}

.ranking-table th:last-child,
.ranking-table td:last-child {
    text-align: center;
    width: 48px;
}

.ranking-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.5);
}

.ranking-table tbody tr:nth-child(odd) {
    background: rgba(15, 23, 42, 0.3);
}

.ranking-table .club-name {
    font-weight: 600;
}

.ranking-table .score {
    font-weight: 600;
    color: #fbbf24;
}

.ranking-table .empty {
    text-align: center;
    color: #9ca3af;
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.tile {
    border-radius: 14px;
    padding: 10px 11px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(55, 65, 81, 0.9);
}

.tile-empty {
    text-align: center;
    font-size: 0.9rem;
    color: #9ca3af;
}

.tile-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
    font-size: 0.8rem;
}

.tile-rank {
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.7);
}

.tile-score {
    color: #fbbf24;
    font-weight: 600;
}

.tile-body .club-main {
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.tile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
    color: #9ca3af;
}

.stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: .01em;
}

.stat::before {
    font-size: 0.8rem;
    display: inline-block;
}

.stat-kill::before {
    content: "⚔";
    color: #22c55e;
}

.stat-death::before {
    content: "☠";
    color: #ef4444;
}

.stat-resu::before {
    content: "✚";
    color: #eab308;
}

.club-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    gap: 14px;
}

.podium {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.podium-card {
    position: relative;
    border-radius: 16px;
    padding: 10px 14px 9px 52px;
    background-color: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(51, 65, 85, 0.9);
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.8);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-detail {
    position: absolute;
    top: 8px;
    right: 8px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(15, 23, 42, 0.7);
    color: #f8fafc;
    border-radius: 999px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-detail:hover {
    transform: translateY(-1px);
    border-color: rgba(250, 204, 21, 0.8);
    background: rgba(30, 64, 175, 0.75);
}

.btn-detail.mini {
    position: static;
    width: 24px;
    height: 24px;
    font-size: 0.72rem;
}

.icon-search {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 50%;
    position: relative;
}

.icon-search::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    right: -5px;
    bottom: -3px;
    transform: rotate(45deg);
    transform-origin: center;
}

.podium-card::before {
    content: " ";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.7);
}

.podium-1 {
    border-color: rgba(250, 204, 21, 0.9);
}

.podium-1::before {
    content: "🏆";
    background: radial-gradient(circle at 30% 20%, #facc15, #b45309);
}

.podium-2 {
    border-color: rgba(148, 163, 184, 0.9);
}

.podium-2::before {
    content: "🥈";
    background: radial-gradient(circle at 30% 20%, #e5e7eb, #4b5563);
}

.podium-3 {
    border-color: rgba(251, 146, 60, 0.9);
}

.podium-3::before {
    content: "🥉";
    background: radial-gradient(circle at 30% 20%, #fb923c, #b45309);
}

.podium-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.9);
}

.podium-rank {
    font-size: 0.8rem;
    color: #9ca3af;
}

.podium-name {
    font-weight: 600;
}

.podium-score {
    font-size: 0.9rem;
    color: #facc15;
    font-weight: 600;
}

.podium-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.78rem;
    color: #9ca3af;
}

.podium-empty {
    font-size: 0.88rem;
    color: #e5e7eb;
    opacity: 0.9;
}

.tyr-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tyr-podium-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.tyr-card {
    border-radius: 16px;
    padding: 10px 11px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(55, 65, 81, 0.9);
}

.tyr-card-1 {
    border-color: rgba(250, 204, 21, 0.95);
}

.tyr-card-2 {
    border-color: rgba(148, 163, 184, 0.9);
}

.tyr-card-3 {
    border-color: rgba(251, 146, 60, 0.9);
}

.tyr-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.82rem;
    margin-bottom: 3px;
}

.tyr-rank {
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(252, 211, 77, 0.85);
    background: rgba(15, 23, 42, 0.8);
}

.tyr-score {
    color: #facc15;
    font-weight: 600;
}

.tyr-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.tyr-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
    color: #9ca3af;
}

.view-tabs {
    margin-top: 8px;
    display: inline-flex;
    gap: 8px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.view-tab {
    border: none;
    background: transparent;
    padding: 6px 16px;
    border-radius: 999px;
    color: #e5e7eb;
    font-size: 0.86rem;
    cursor: pointer;
}

.view-tab.active {
    background: linear-gradient(135deg, #facc15, #f97316);
    color: #111827;
    box-shadow: 0 10px 26px rgba(250, 204, 21, 0.55);
}

.view-section {
    display: none;
}

.view-section.active {
    display: block;
}

.pagination {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    font-size: 0.85rem;
}

.pagination a {
    min-width: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    text-decoration: none;
    text-align: center;
    border: 1px solid rgba(148, 163, 184, 0.65);
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.75);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.45);
    transition: all 0.18s ease;
}

.pagination a:hover {
    transform: translateY(-1px);
    border-color: rgba(250, 204, 21, 0.75);
    color: #f8fafc;
}

.pagination a.active {
    background: linear-gradient(135deg, #facc15, #f97316);
    border-color: transparent;
    color: #111827;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}

.detail-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.detail-modal.open {
    display: flex;
}

.detail-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(4px);
}

.detail-modal-content {
    position: relative;
    width: min(560px, calc(100% - 24px));
    border-radius: 16px;
    padding: 16px 16px 14px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 24px 55px rgba(2, 6, 23, 0.95);
    z-index: 1;
}

.detail-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    cursor: pointer;
    color: #f8fafc;
    background: rgba(30, 41, 59, 0.9);
}

.detail-modal-content h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.detail-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
    font-size: 0.86rem;
    margin-bottom: 10px;
}

.detail-breakdown {
    border-top: 1px solid rgba(51, 65, 85, 0.8);
    padding-top: 10px;
}

.detail-breakdown-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #facc15;
    margin-bottom: 6px;
}

.detail-break-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.82rem;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(71, 85, 105, 0.45);
}

.site-footer {
    margin: 6px auto 16px;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.78);
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

.footer-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 6px;
}

.site-footer .dot {
    opacity: 0.6;
}

@keyframes heroSweep {
    0% {
        transform: translateX(-120%);
    }
    55%,
    100% {
        transform: translateX(120%);
    }
}

@keyframes cardShine {
    0%,
    68% {
        transform: translateX(-130%);
    }
    100% {
        transform: translateX(130%);
    }
}

@keyframes badgePulse {
    0%,
    100% {
        box-shadow: 0 0 0 rgba(250, 204, 21, 0);
    }
    50% {
        box-shadow: 0 0 12px rgba(250, 204, 21, 0.5);
    }
}

@media (max-width: 900px) {
    .club-layout {
        grid-template-columns: 1fr;
    }
}

