:root {
    color-scheme: dark;
    --bg: #031126;
    --bg-deep: #020812;
    --surface: rgba(5, 22, 43, 0.82);
    --panel: rgba(7, 27, 52, 0.84);
    --panel-strong: rgba(9, 35, 67, 0.92);
    --line: rgba(84, 173, 255, 0.24);
    --line-strong: rgba(84, 173, 255, 0.52);
    --text: #f3f9ff;
    --muted: #b6cae1;
    --gold: #78c7ff;
    --gold-soft: rgba(120, 199, 255, 0.16);
    --red: #0867df;
    --red-hover: #1487ff;
    --green: #52f0a6;
    --danger: #ff9a9a;

    /* Put your own image URL here later, for example:
       --site-bg-image: url('https://yourdomain.com/images/bg.jpg');
       or: --site-bg-image: url('../images/bg.jpg');
    */
    --site-bg-image: url("https://images3.alphacoders.com/133/1331917.jpeg");
    --hero-bg-image: url("https://e0.pxfuel.com/wallpapers/961/224/desktop-wallpaper-mu-online.jpg");
}
.download-client-list {
    display: grid;
    gap: 16px;
}
.info-link-box {
    margin-top: 14px;
    text-align: center;
}

.info-link-box a {
    color: var(--muted);
    font-weight: 800;
    text-decoration: none;
    transition: .18s ease;
}

.info-link-box a:hover {
    color: var(--gold);
    text-shadow: 0 0 12px rgba(84, 173, 255, 0.45);
}
.download-client-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(84, 173, 255, 0.16);
    border-radius: 16px;
    background: rgba(1, 11, 24, 0.42);
}

.download-client-card h2 {
    margin: 0;
    color: #dff3ff;
    font-size: 22px;
}

.download-client-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.form-link-box {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(84, 173, 255, 0.16);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}
.news-feature {
    display: grid;
    gap: 18px;
}

.news-highlight {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.news-highlight div,
.news-schedule,
.news-info-card {
    border: 1px solid rgba(84, 173, 255, 0.18);
    border-radius: 16px;
    background: rgba(1, 11, 24, 0.42);
}

.news-highlight div {
    display: grid;
    gap: 6px;
    padding: 16px;
}

.news-highlight span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.news-highlight strong {
    color: var(--gold);
    font-size: 22px;
}

.news-schedule {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.news-schedule h3,
.news-info-card h3 {
    margin: 0;
    color: #dff3ff;
    font-size: 20px;
}

.schedule-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(84, 173, 255, 0.08);
}

.schedule-row strong {
    color: var(--gold);
}

.schedule-row span {
    color: var(--muted);
}

.news-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.news-info-card {
    padding: 18px;
}

.news-info-card p {
    margin: 8px 0 0;
    color: var(--muted);
}

.news-info-card p strong {
    color: var(--text);
}

@media (max-width: 780px) {
    .news-highlight,
    .news-info-grid {
        grid-template-columns: 1fr;
    }

    .schedule-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
.form-link-box a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 900;
}

.form-link-box a:hover {
    color: #fff;
    text-shadow: 0 0 14px rgba(84, 173, 255, 0.55);
}

@media (max-width: 640px) {
    .form-link-box {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}
* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, Segoe UI, Arial, Helvetica, sans-serif;
    background:
        linear-gradient(180deg, rgba(2, 8, 18, 0.25), rgba(2, 8, 18, 0.9) 62%, #020812),
        radial-gradient(circle at 20% 8%, rgba(89, 178, 255, 0.28), transparent 32%),
        radial-gradient(circle at 84% 3%, rgba(33, 115, 255, 0.24), transparent 34%),
        var(--site-bg-image),
        linear-gradient(135deg, #0b315f 0%, #071a33 42%, #020812 100%);
    background-size: cover, auto, auto, cover, auto;
    background-position: center top;
    background-attachment: fixed;
    color: var(--text);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 65%);
}


.hero-logo {
    max-width: 420px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.6));
}

a { color: inherit; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    min-height: 76px;
    padding: 0 max(18px, calc((100vw - 1180px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    border-bottom: 1px solid rgba(84, 173, 255, 0.22);
    background: linear-gradient(180deg, rgba(3, 16, 34, 0.96), rgba(3, 13, 29, 0.88));
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 50px rgba(0,0,0,.32);
}

.top-meta {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.top-online,
.top-server-time {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid rgba(84, 173, 255, 0.28);
    border-radius: 10px;
    background: rgba(4, 18, 38, 0.72);
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: inset 0 0 16px rgba(84, 173, 255, 0.08);
}

.top-online strong,
.top-server-time strong {
    color: var(--green);
    font-size: 16px;
    text-shadow: 0 0 12px rgba(82, 240, 166, 0.48);
}

.nav-toggle,
.nav-toggle-button {
    display: none;
}

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

.nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 800;
    transition: .18s ease;
}

.nav a:hover,
.nav a.active {
    border-color: rgba(84, 173, 255, 0.55);
    background: rgba(25, 107, 218, 0.18);
    color: #fff;
    box-shadow: inset 0 -2px 0 rgba(84, 173, 255, 0.7), 0 0 24px rgba(14, 120, 255, 0.18);
}

.page {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 72px;
}

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    align-items: start;
}

.page-main { min-width: 0; }
.section { display: grid; gap: 22px; }

.content-block,
.panel,
.news-item,
.feature-card,
.guide-card,
.package-card,
.ranking-table-wrap,
.side-panel,
.summary-card,
.shop-balance,
.mini-link-card {
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 120px),
        linear-gradient(135deg, rgba(16, 61, 107, .72), rgba(5, 19, 39, .88));
    box-shadow: 0 22px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(10px);
}

.content-block {
    margin-top: 22px;
    padding: 24px;
    border-radius: 18px;
}

.section-title,
.section-header { display: grid; gap: 7px; }
.section-title { margin-bottom: 16px; }

.section-title span,
.eyebrow {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.section-title h2,
.section-header h1 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    text-shadow: 0 0 22px rgba(92, 187, 255, .3);
}
.section-title h2 { font-size: 26px; }
.section-header h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.05; }

.section-header p,
.hero-section p,
.news-item p,
.feature-card p,
.guide-card p,
.side-note,
.empty {
    color: var(--muted);
    line-height: 1.6;
}

.panel {
    width: 100%;
    max-width: 680px;
    padding: 26px;
    border-radius: 18px;
}

.form-grid { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label,
.side-login-form span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.field input,
.side-login-form input {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(84, 173, 255, 0.28);
    border-radius: 12px;
    padding: 0 14px;
    background: rgba(1, 11, 24, 0.72);
    color: var(--text);
    font: inherit;
}

.field input:focus,
.side-login-form input:focus {
    outline: 2px solid rgba(84, 173, 255, 0.48);
    outline-offset: 2px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(119, 203, 255, .45);
    border-radius: 12px;
    padding: 0 20px;
    background: linear-gradient(180deg, #1593ff, #075ed6);
    color: white;
    font: inherit;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 94, 221, .32), inset 0 1px 0 rgba(255,255,255,.18);
    transition: .18s ease;
}
.button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.button.full { width: 100%; }
.button.secondary { background: rgba(8, 34, 68, .78); color: #bfe4ff; }
.button.ghost { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.16); }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }

.alerts { display: grid; gap: 10px; }
.alert {
    padding: 13px 15px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--panel-strong);
    line-height: 1.5;
}
.alert.success { border-color: rgba(82, 240, 166, 0.6); color: #c9ffe0; }
.alert.error { border-color: rgba(255, 154, 154, 0.75); color: #ffd6d6; }
.page-alerts { margin-bottom: 18px; }

.hero-section {
    min-height: min(620px, calc(100vh - 140px));
    display: grid;
    align-content: center;
    gap: 26px;
    padding: clamp(34px, 6vw, 70px);
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(2, 10, 24, .96) 0%, rgba(5, 25, 51, .82) 46%, rgba(5, 25, 51, .35) 100%),
        radial-gradient(circle at 78% 25%, rgba(99, 192, 255, .28), transparent 28%),
        var(--hero-bg-image),
        linear-gradient(135deg, #135f9f 0%, #071a34 48%, #020812 100%);
    background-size: cover, auto, cover, auto;
    background-position: center, center, center;
    box-shadow: 0 35px 100px rgba(0,0,0,.48), inset 0 0 90px rgba(72, 171, 255, .12);
}

.hero-section h1 {
    max-width: 650px;
    margin: 6px 0 12px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(58px, 10vw, 108px);
    line-height: .92;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-shadow: 0 5px 0 rgba(3, 14, 30, .45), 0 0 34px rgba(161, 221, 255, .62);
}
.hero-section p { max-width: 590px; margin: 0; font-size: clamp(17px, 2.1vw, 21px); color: #e9f7ff; }

.home-actions,
.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.feature-grid,
.guide-grid,
.package-grid,
.account-summary,
.compact-links {
    display: grid;
    gap: 16px;
}
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.package-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.account-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compact-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.feature-card,
.guide-card,
.package-card,
.summary-card,
.mini-link-card {
    border-radius: 18px;
    padding: 20px;
    text-decoration: none;
    transition: .18s ease;
}

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

.step-card {
    min-height: 138px;
    padding: 20px;
    border: 1px solid rgba(80, 160, 255, 0.35);
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(5,15,35,0.68), rgba(5,15,35,0.88));
    z-index: 1;
}

.step-card > * {
    position: relative;
    z-index: 2;
}

.step-card span {
    color: #8cc8ff;
    font-weight: 800;
    font-size: 13px;
}

.step-card h3 {
    margin: 14px 0 8px;
}

.step-card p {
    margin: 0;
    color: #d8e8ff;
}

.step-card-1 {
    background-image: url("https://i.imgur.com/gr7f8hQ.jpeg");
}

.step-card-2 {
    background-image: url("https://i.imgur.com/GrNxUMQ.jpeg");
}

.step-card-3 {
    background-image: url("https://i.imgur.com/JhVPFP8.jpeg");
}

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

    .step-card {
        min-height: 120px;
    }
}

.feature-card { min-height: 154px; display: grid; gap: 8px; align-content: start; }
.mini-link-card { display: grid; gap: 6px; }
.feature-card:hover,
.guide-card:hover,
.mini-link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(84, 173, 255, .6);
    box-shadow: 0 24px 80px rgba(0,0,0,.42), 0 0 34px rgba(13, 119, 255, .16);
}
.feature-card span { color: var(--gold); font-size: 13px; font-weight: 900; }
.feature-card strong,
.mini-link-card strong,
.guide-card h2 { color: #dff3ff; font-size: 18px; }
.feature-card p,
.mini-link-card span,
.guide-card p { margin: 0; }

.info-section-grid {
    display: grid;
    gap: 18px;
}

.info-table-card {
    display: grid;
    gap: 12px;
}

.info-table-card h2 {
    margin: 0;
    color: #dff3ff;
    font-size: 22px;
}

.info-table th {
    width: 36%;
    color: var(--gold);
}

.info-table td {
    color: var(--text);
}

.news-list { display: grid; gap: 14px; }
.news-item { padding: 20px; border-radius: 18px; }
.news-item time { color: var(--gold); font-size: 13px; font-weight: 900; }
.news-item h2 { margin: 8px 0; font-size: 22px; }
.news-item p { margin: 0; }

.sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 16px;
}
.side-panel { display: grid; gap: 14px; padding: 18px; border-radius: 18px; }
.account-panel { border-color: rgba(82, 240, 166, 0.28); }
.side-heading { display: grid; gap: 3px; }
.side-heading span { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.side-heading h2 { margin: 0; color: var(--gold); font-size: 22px; }
.side-login-form { display: grid; gap: 10px; }
.side-login-form label { display: grid; gap: 6px; }

.wcoin-card {
    min-height: 94px;
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 18px;
    border: 1px solid rgba(82, 240, 166, 0.34);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(82, 240, 166, 0.14), transparent), rgba(1, 11, 24, 0.6);
}
.wcoin-card span { color: var(--muted); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.wcoin-card strong { color: #8dffc9; font-size: 34px; line-height: 1; }
.side-actions,
.info-list,
.stat-list { display: grid; gap: 10px; }
.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid rgba(84, 173, 255, 0.16);
    border-radius: 13px;
    background: rgba(1, 11, 24, 0.52);
}
.info-row span { color: var(--muted); font-size: 13px; }
.info-row strong { color: var(--text); font-size: 14px; text-align: right; }

.stat-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 14px;
    border: 1px solid rgba(84, 173, 255, 0.16);
    border-radius: 16px;
    background: rgba(1, 11, 24, 0.5);
}
.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #dff3ff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(20, 135, 255, 0.2);
    border: 1px solid rgba(84, 173, 255, 0.25);
}
.stat-card span { color: var(--muted); font-size: 13px; }
.stat-card strong { display: block; font-size: 22px; margin-top: 2px; }
.online-text { color: var(--green); }

.ranking-table-wrap {
    overflow: auto;
    border-radius: 18px;
}
.ranking-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}
.ranking-table th,
.ranking-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(84, 173, 255, 0.13);
    text-align: left;
    vertical-align: middle;
}
.ranking-table th { color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.rank-number { color: var(--gold); font-weight: 900; }
.ranking-link {
    color: #dff3ff;
    font-weight: 900;
    text-decoration: none;
}
.ranking-link:hover {
    color: var(--gold);
}
.ranking-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ranking-tabs a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid rgba(84, 173, 255, 0.3);
    border-radius: 12px;
    background: rgba(4, 18, 38, 0.62);
    color: var(--muted);
    font-weight: 900;
    text-decoration: none;
}
.ranking-tabs a:hover,
.ranking-tabs a.active {
    border-color: rgba(84, 173, 255, 0.65);
    background: rgba(25, 107, 218, 0.22);
    color: #fff;
    box-shadow: inset 0 -2px 0 rgba(84, 173, 255, 0.7), 0 0 24px rgba(14, 120, 255, 0.16);
}
.ranking-block { display: grid; gap: 12px; }
.section-header.compact { gap: 4px; }
.section-header.compact h2 {
    margin: 0;
    color: #dff3ff;
    font-size: 26px;
}
.guild-ranking-table { min-width: 760px; }
.guild-ranking-table td { vertical-align: middle; }
.ranking-table:not(.guild-ranking-table):not(.info-table):not(.member-table) {
    min-width: 780px;
}
.ranking-table:not(.guild-ranking-table):not(.info-table):not(.member-table) th,
.ranking-table:not(.guild-ranking-table):not(.info-table):not(.member-table) td {
    text-align: center;
}
.ranking-table:not(.guild-ranking-table):not(.info-table):not(.member-table) th:nth-child(2),
.ranking-table:not(.guild-ranking-table):not(.info-table):not(.member-table) td:nth-child(2),
.ranking-table:not(.guild-ranking-table):not(.info-table):not(.member-table) th:nth-child(3),
.ranking-table:not(.guild-ranking-table):not(.info-table):not(.member-table) td:nth-child(3) {
    text-align: left;
}
.ranking-table:not(.guild-ranking-table):not(.info-table):not(.member-table) th:nth-child(1),
.ranking-table:not(.guild-ranking-table):not(.info-table):not(.member-table) td:nth-child(1) {
    width: 78px;
}
.ranking-table:not(.guild-ranking-table):not(.info-table):not(.member-table) th:nth-child(6),
.ranking-table:not(.guild-ranking-table):not(.info-table):not(.member-table) td:nth-child(6),
.ranking-table:not(.guild-ranking-table):not(.info-table):not(.member-table) th:nth-child(7),
.ranking-table:not(.guild-ranking-table):not(.info-table):not(.member-table) td:nth-child(7),
.ranking-table:not(.guild-ranking-table):not(.info-table):not(.member-table) th:nth-child(8),
.ranking-table:not(.guild-ranking-table):not(.info-table):not(.member-table) td:nth-child(8) {
    width: 120px;
}
.guild-mark {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    outline: 1px solid rgba(255,255,255,0.14);
    image-rendering: pixelated;
    box-shadow: 0 0 18px rgba(84, 173, 255, 0.12);
}
.guild-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding: 4px 10px 4px 6px;
    border-radius: 999px;
    background: rgba(4, 18, 38, 0.5);
    border: 1px solid rgba(84, 173, 255, 0.16);
    color: #dff3ff;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}
.guild-mini .guild-mark {
    width: 24px;
    height: 24px;
}
.guild-mini:hover {
    color: var(--gold);
}
.muted-value {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-weight: 900;
}
.guild-mark-large {
    width: 96px;
    height: 96px;
    border-radius: 10px;
    outline-color: rgba(84, 173, 255, 0.34);
    box-shadow: 0 0 34px rgba(84, 173, 255, 0.2);
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.detail-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}
.detail-panel {
    display: grid;
    gap: 14px;
}
.detail-panel .info-row {
    min-height: 50px;
    padding: 0 12px;
}
.character-guild-box {
    display: grid;
    gap: 8px;
    margin-top: 4px;
    padding: 14px 12px;
    border-radius: 14px;
    background: rgba(4, 18, 38, 0.62);
    border: 1px solid rgba(84, 173, 255, 0.16);
}
.character-guild-box > span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}
.class-image {
    width: 100%;
    min-height: 240px;
    max-height: 390px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(84, 173, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 20px 60px rgba(0,0,0,.28);
}
.detail-panel h2,
.guild-profile-info h2 {
    margin: 0;
    color: #dff3ff;
    font-size: 24px;
}
.guild-profile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 22px;
    border-radius: 18px;
}
.guild-logo-wrap {
    padding: 12px;
    border-radius: 16px;
    background: rgba(4, 18, 38, 0.62);
    border: 1px solid rgba(84, 173, 255, 0.2);
}
.guild-profile-info {
    display: grid;
    gap: 14px;
    min-width: 0;
}
.guild-profile .detail-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.guild-profile .summary-card {
    min-width: 0;
    padding: 16px 18px;
}
.guild-profile .summary-card strong {
    font-size: clamp(20px, 2.1vw, 28px);
}
.member-table { min-width: 520px; }
.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}
.status-badge.online { color: #baffdc; background: rgba(82, 240, 166, 0.14); border: 1px solid rgba(82, 240, 166, 0.32); }
.status-badge.offline { color: #c5d1df; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }

.shop-balance { padding: 18px; border-radius: 18px; }
.shop-message { padding: 12px 14px; border-radius: 14px; background: var(--panel-strong); border: 1px solid var(--line); }
.package-card { display: grid; gap: 14px; align-content: start; }
.package-card h2 { margin: 0; color: #dff3ff; }
.package-card p { margin: 0; color: var(--muted); }
.package-card strong { color: var(--gold); font-size: 30px; }
.paypal-button { min-height: 45px; }
.summary-card { display: grid; gap: 6px; min-width: 0; }
.summary-card span { color: var(--muted); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.summary-card strong {
    min-width: 0;
    font-size: 28px;
    line-height: 1.08;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.summary-card.highlight strong { color: #8dffc9; }
.launch-panel {
    border-color: rgba(82, 240, 166, 0.28);
    background: linear-gradient(180deg, rgba(25, 73, 118, 0.9), rgba(10, 37, 66, 0.86));
}
.launch-countdown {
    display: block;
    margin-top: 6px;
    color: var(--green);
    font-size: 28px;
    line-height: 1;
    text-shadow: 0 0 18px rgba(82, 240, 166, 0.48);
}
.empty { padding: 22px; }

@media (max-width: 980px) {
    body { background-attachment: scroll; }
    .topbar {
        position: relative;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 12px;
        padding-top: 16px;
        padding-bottom: 16px;
    }
    .top-meta {
        grid-column: 1 / 3;
        grid-row: 1;
        margin-left: 0;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .nav-toggle {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
        pointer-events: none;
    }
    .nav-toggle-button {
        width: 44px;
        height: 40px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        border: 1px solid rgba(84, 173, 255, 0.42);
        border-radius: 10px;
        background: rgba(25, 107, 218, 0.14);
        cursor: pointer;
    }
    .nav-toggle-button span {
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: #fff;
        box-shadow: 0 0 10px rgba(84, 173, 255, 0.45);
    }
    .nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        display: none;
        justify-content: flex-start;
        gap: 8px;
        padding-top: 10px;
        overflow: visible;
        flex-wrap: wrap;
    }
    .nav-toggle:checked + .nav-toggle-button + .nav {
        display: flex;
    }
    .nav a { flex: 1 1 140px; }
    .page-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-grid,
    .package-grid { grid-template-columns: 1fr; }
    .guide-grid,
    .account-summary,
    .detail-grid,
    .detail-grid.two,
    .compact-links { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .top-meta { gap: 6px; }
    .top-online,
    .top-server-time { min-height: 34px; padding: 0 10px; font-size: 11px; gap: 6px; }
    .top-online strong,
    .top-server-time strong { font-size: 14px; }
    .launch-countdown { font-size: 24px; }
    .page { width: min(100% - 22px, 1180px); padding-top: 18px; }
    .hero-section { min-height: 520px; padding: 28px 20px; border-radius: 18px; }
    .home-actions .button,
    .download-actions .button { width: 100%; }
    .content-block,
    .panel,
    .side-panel,
    .feature-card,
    .guide-card,
    .package-card,
    .summary-card,
    .mini-link-card { border-radius: 16px; padding: 17px; }
    .sidebar { grid-template-columns: 1fr; }
    .button { min-height: 50px; }
    .guild-profile { grid-template-columns: 1fr; }
}

/* Guides accordion - matched to existing website style */
.guides-section {
    gap: 24px;
}

.guide-accordion {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.guide-drop {
    display: block;
}

.guide-drop[open] {
    grid-column: 1 / -1;
}

.guide-drop summary {
    list-style: none;
}

.guide-drop summary::-webkit-details-marker {
    display: none;
}

.guide-summary {
    position: relative;
    min-height: 158px;
    display: grid;
    gap: 8px;
    align-content: start;
    cursor: pointer;
}

.guide-summary::after {
    content: "+";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(84, 173, 255, 0.34);
    border-radius: 12px;
    background: rgba(20, 135, 255, 0.16);
    color: #dff3ff;
    font-size: 22px;
    font-weight: 900;
    box-shadow: inset 0 0 16px rgba(84, 173, 255, 0.08);
    transition: .18s ease;
}

.guide-drop[open] .guide-summary::after {
    content: "−";
    border-color: rgba(82, 240, 166, 0.36);
    background: rgba(82, 240, 166, 0.12);
    color: #8dffc9;
}

.guide-open-label {
    width: fit-content;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid rgba(84, 173, 255, 0.22);
    border-radius: 999px;
    background: rgba(1, 11, 24, 0.44);
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.guide-info-panel {
    margin-top: 14px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 120px),
        linear-gradient(135deg, rgba(16, 61, 107, .72), rgba(5, 19, 39, .88));
    box-shadow: 0 22px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(10px);
    overflow: hidden;
    animation: guideSlideDown .24s ease both;
}

@keyframes guideSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guide-info-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 18px;
}

.guide-info-heading .eyebrow {
    grid-column: 1 / -1;
}

.guide-info-heading h2 {
    margin: 0;
    color: #dff3ff;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 30px;
    text-shadow: 0 0 22px rgba(92, 187, 255, .3);
}

.guide-info-panel > p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.guide-info-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 980px) {
    .guide-accordion,
    .guide-steps {
        grid-template-columns: 1fr;
    }

    .guide-drop[open] {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .guide-info-panel {
        padding: 17px;
        border-radius: 16px;
    }

    .guide-info-heading {
        grid-template-columns: 1fr;
    }

    .guide-back {
        width: 100%;
    }
}


/* Compact guide cards + single-open accordion polish */
.guide-accordion {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.guide-summary.guide-card {
    min-height: 124px;
    padding: 16px;
    gap: 5px;
}

.guide-summary span {
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.guide-summary h2 {
    max-width: calc(100% - 38px);
    margin: 0;
    font-size: 17px;
    line-height: 1.18;
}

.guide-summary p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.45;
}

.guide-summary::after {
    top: 14px;
    right: 14px;
    width: 29px;
    height: 29px;
    border-radius: 10px;
    font-size: 19px;
}

.guide-open-label {
    min-height: 25px;
    margin-top: 5px;
    padding: 0 9px;
    font-size: 10px;
    letter-spacing: .06em;
}

.guide-info-panel {
    margin-top: 12px;
    padding: 20px;
}

.guide-info-heading {
    margin-bottom: 14px;
}

.guide-info-heading h2 {
    font-size: 26px;
}

.guide-info-grid {
    gap: 8px;
    margin-bottom: 14px;
}

.guide-steps {
    gap: 12px;
}

.guide-steps .step-card {
    min-height: 118px;
    padding: 16px;
}

.guide-steps .step-card h3 {
    margin: 10px 0 6px;
    font-size: 17px;
}

.guide-steps .step-card p {
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 980px) {
    .guide-accordion {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guide-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .guide-accordion {
        grid-template-columns: 1fr;
    }

    .guide-summary.guide-card {
        min-height: 112px;
        padding: 14px;
    }

    .guide-info-panel {
        padding: 16px;
    }
}


/* Open guide layout: hide the small card and use Prev / Next navigation */
.guide-drop[open] > .guide-summary {
    display: none;
}

.guide-panel-nav {
    display: inline-flex;
    justify-content: flex-end;
    gap: 10px;
}

.guide-panel-nav .button {
    min-height: 48px;
    padding: 0 18px;
    white-space: nowrap;
}

.guide-prev {
    background: rgba(8, 34, 68, .54);
    border-color: rgba(82, 240, 166, 0.42);
    color: #baffdc;
    box-shadow: inset 0 0 18px rgba(82, 240, 166, 0.08), 0 10px 26px rgba(0,0,0,.18);
}

.guide-prev:hover {
    border-color: rgba(82, 240, 166, 0.72);
    box-shadow: inset 0 0 20px rgba(82, 240, 166, 0.12), 0 0 28px rgba(82, 240, 166, 0.12);
}

.guide-next {
    min-width: 158px;
}

.guide-drop[open] .guide-info-panel {
    margin-top: 0;
}

@media (max-width: 640px) {
    .guide-panel-nav {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .guide-panel-nav .button {
        width: 100%;
        padding: 0 10px;
    }
}


/* Real guide content tables */
.guide-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 0 0 16px;
    border: 1px solid rgba(84, 173, 255, 0.18);
    border-radius: 15px;
    background: rgba(1, 11, 24, 0.42);
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.guide-table th,
.guide-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(84, 173, 255, 0.13);
    text-align: left;
    vertical-align: top;
    line-height: 1.45;
}

.guide-table th {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(20, 135, 255, 0.10);
}

.guide-table td:first-child {
    color: #dff3ff;
    font-weight: 900;
    white-space: nowrap;
}

.guide-table td:not(:first-child) {
    color: var(--muted);
}

.guide-table tr:last-child td {
    border-bottom: 0;
}

.guide-text-block {
    margin: 0 0 16px;
    padding: 16px;
    border: 1px solid rgba(84, 173, 255, 0.16);
    border-radius: 15px;
    background: rgba(1, 11, 24, 0.36);
    color: var(--muted);
    line-height: 1.65;
}

.guide-text-block h3 {
    margin: 0 0 8px;
    color: #dff3ff;
    font-size: 18px;
}

.guide-text-block p {
    margin: 0 0 10px;
}

.guide-text-block p:last-child {
    margin-bottom: 0;
}

.guide-note-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.guide-note-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-class-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.guide-class-card {
    min-width: 0;
    border: 1px solid rgba(84, 173, 255, 0.16);
    border-radius: 16px;
    background: rgba(1, 11, 24, 0.30);
    overflow: hidden;
}

.guide-class-card h3 {
    margin: 0;
    padding: 14px 16px;
    color: #dff3ff;
    font-size: 18px;
    background: rgba(20, 135, 255, 0.12);
    border-bottom: 1px solid rgba(84, 173, 255, 0.13);
}

.guide-class-card .guide-table-wrap {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.guide-class-card .guide-table {
    min-width: 440px;
}

@media (max-width: 980px) {
    .guide-class-grid,
    .guide-note-grid.two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .guide-table th,
    .guide-table td {
        padding: 10px 11px;
        font-size: 13px;
    }
}

/* No side-scrolling guide tables */
.guide-table-wrap {
    overflow-x: visible;
}

.guide-table {
    min-width: 0;
    table-layout: fixed;
}

.guide-table th,
.guide-table td {
    overflow-wrap: anywhere;
    word-break: normal;
}

.guide-table td:first-child {
    white-space: normal;
    width: 42%;
}

.guide-class-card .guide-table {
    min-width: 0;
}

.guide-class-card .guide-table th:first-child,
.guide-class-card .guide-table td:first-child {
    width: 44%;
}

.guide-class-card .guide-table th:last-child,
.guide-class-card .guide-table td:last-child {
    width: 56%;
}

/* Slightly roomier single-column layout for skill drops, avoids cramped tables */
#skill-drops .guide-class-grid {
    grid-template-columns: 1fr;
}

#skill-drops .guide-class-card .guide-table th,
#skill-drops .guide-class-card .guide-table td {
    padding: 11px 13px;
}

@media (max-width: 640px) {
    .guide-table,
    .guide-table thead,
    .guide-table tbody,
    .guide-table tr,
    .guide-table th,
    .guide-table td {
        display: block;
        width: 100% !important;
    }

    .guide-table thead {
        display: none;
    }

    .guide-table tr {
        padding: 11px 12px;
        border-bottom: 1px solid rgba(84, 173, 255, 0.13);
    }

    .guide-table tr:last-child {
        border-bottom: 0;
    }

    .guide-table td {
        padding: 0;
        border-bottom: 0;
    }

    .guide-table td + td {
        margin-top: 5px;
        color: var(--muted);
    }
}


/* Keep guide navigation visible and prevent the open panel from hiding under the top menu */
.guide-drop,
.guide-info-panel {
    scroll-margin-top: 104px;
}

.guide-info-heading {
    position: sticky;
    top: 88px;
    z-index: 8;
    margin: -10px -10px 16px;
    padding: 10px;
    border: 1px solid rgba(84, 173, 255, 0.18);
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(8, 35, 68, 0.96), rgba(4, 18, 38, 0.92));
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 32px rgba(0,0,0,.22);
}

@media (max-width: 980px) {
    .guide-info-heading {
        top: 8px;
    }
}

/* Character formulas guide */
.formula-class-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.formula-class-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(84, 173, 255, 0.18);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0) 110px), rgba(1, 11, 24, 0.42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.formula-class-card img {
    width: 100%;
    height: 190px;
    display: block;
    object-fit: cover;
    border-bottom: 1px solid rgba(84, 173, 255, 0.16);
}

.formula-class-body {
    padding: 16px;
}

.formula-class-body h3 {
    margin: 0 0 12px;
    color: #dff3ff;
    font-size: 21px;
}

.formula-list {
    display: grid;
    gap: 8px;
}

.formula-list div {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(120px, .75fr) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    border: 1px solid rgba(84, 173, 255, 0.13);
    border-radius: 12px;
    background: rgba(1, 11, 24, 0.38);
}

.formula-list span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.formula-list strong {
    min-width: 0;
    color: #dff3ff;
    font-size: 14px;
    text-align: right;
    overflow-wrap: anywhere;
}

@media (max-width: 980px) {
    .formula-class-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .formula-class-card img {
        height: 150px;
    }

    .formula-list div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .formula-list strong {
        text-align: left;
    }
}

/* Final guide spacing fix: no sticky overlay, no hidden content, less empty top space */
.guide-info-panel {
    margin-top: 0;
    padding: 18px 20px 20px;
    overflow: visible;
}

.guide-info-heading {
    position: static;
    top: auto;
    z-index: auto;
    margin: 0 0 14px;
    padding: 0 0 12px;
    border: 0;
    border-bottom: 1px solid rgba(84, 173, 255, 0.18);
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px 14px;
}

.guide-info-heading .eyebrow {
    grid-column: 1;
    margin: 0;
}

.guide-info-heading h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.05;
}

.guide-panel-nav {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    display: flex;
    gap: 10px;
}

.guide-panel-nav .button {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
}

.guide-table-wrap {
    margin-top: 0;
}

.guide-table th,
.guide-table td {
    vertical-align: top;
}

#party-exp-system .guide-table th,
#party-exp-system .guide-table td {
    padding: 10px 12px;
}

#party-exp-system .guide-table td:first-child {
    width: 16%;
    min-width: 0;
}

#party-exp-system .guide-table th:not(:first-child),
#party-exp-system .guide-table td:not(:first-child) {
    width: 16.8%;
    text-align: center;
}

@media (max-width: 640px) {
    .guide-info-panel {
        padding: 15px;
    }

    .guide-info-heading {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 8px;
    }

    .guide-info-heading .eyebrow,
    .guide-panel-nav {
        grid-column: auto;
        grid-row: auto;
    }

    .guide-panel-nav {
        width: 100%;
        grid-template-columns: 1fr 1fr;
        display: grid;
    }

    .guide-panel-nav .button {
        width: 100%;
        min-height: 40px;
        padding: 0 10px;
    }
}

/* Character image visibility + basic drops polish */
.formula-class-card img {
    height: 260px;
    object-fit: cover;
    object-position: top center;
}

.basic-drops-table th:first-child,
.basic-drops-table td:first-child {
    width: 34%;
}

.basic-drops-table th:nth-child(2),
.basic-drops-table td:nth-child(2) {
    width: 46%;
}

.basic-drops-table th:last-child,
.basic-drops-table td:last-child {
    width: 20%;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .formula-class-card img {
        height: 220px;
        object-position: top center;
    }

    .basic-drops-table th:last-child,
    .basic-drops-table td:last-child {
        text-align: left;
    }
}

/* ===== 120 FPS HERO EFFECT ===== */
.fps-title {
    position: relative;
    width: fit-content;
    margin: 10px 0 16px;
    display: flex;
    align-items: baseline;
    gap: clamp(10px, 1.7vw, 20px);
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 900;
    line-height: .86;
    letter-spacing: .035em;
    text-transform: uppercase;
    isolation: isolate;
}

.fps-title::before {
    content: "";
    position: absolute;
    inset: -18px -28px -16px;
    z-index: -1;
    border-radius: 28px;
    background:
        radial-gradient(circle at 35% 45%, rgba(80, 185, 255, .34), transparent 56%),
        linear-gradient(90deg, rgba(12, 88, 190, .26), rgba(3, 18, 42, .04));
    filter: blur(2px);
    opacity: .9;
}

.fps-title::after {
    content: "";
    position: absolute;
    left: 2%;
    right: -8%;
    bottom: -12px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(120, 210, 255, .9), rgba(35, 130, 255, .7), transparent);
    box-shadow: 0 0 20px rgba(70, 170, 255, .65);
}

.fps-number {
    position: relative;
    font-size: clamp(82px, 14vw, 166px);
    background: linear-gradient(180deg, #ffffff 0%, #d9f3ff 22%, #77caff 55%, #177cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px rgba(100, 200, 255, .8)) drop-shadow(0 16px 26px rgba(0,0,0,.62));
    text-shadow:
        0 0 18px rgba(120, 210, 255, .65),
        0 0 46px rgba(33, 135, 255, .5),
        0 8px 0 rgba(3, 14, 30, .5);
}

.fps-text {
    font-size: clamp(32px, 4.8vw, 64px);
    color: #e7f7ff;
    letter-spacing: .08em;
    text-shadow:
        0 0 10px rgba(150, 225, 255, .92),
        0 0 28px rgba(55, 155, 255, .72),
        0 5px 18px rgba(0,0,0,.7);
}

.hero-sub {
    max-width: 640px;
    margin: 0;
    color: #ecf8ff;
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 800;
    line-height: 1.45;
    text-shadow:
        0 2px 8px rgba(0,0,0,.8),
        0 0 18px rgba(80, 175, 255, .34);
}

@media (max-width: 640px) {
    .fps-title {
        flex-wrap: wrap;
        gap: 6px 12px;
    }

    .fps-text {
        display: block;
        width: 100%;
        margin-left: 4px;
    }
}


/* ===== COMPACT ALIGNED HOME HERO FIX ===== */
/* Keeps logo, 120 FPS text, subtitle and buttons in one clean aligned column. */
.hero-section.hero-compact {
    min-height: min(560px, calc(100vh - 150px));
    align-content: center;
    justify-items: start;
    gap: 0;
    padding: clamp(34px, 5vw, 58px);
    background:
        linear-gradient(90deg, rgba(2, 10, 24, .96) 0%, rgba(5, 25, 51, .86) 42%, rgba(5, 25, 51, .38) 72%, rgba(5, 25, 51, .18) 100%),
        radial-gradient(circle at 72% 34%, rgba(82, 175, 255, .22), transparent 30%),
        var(--hero-bg-image),
        linear-gradient(135deg, #135f9f 0%, #071a34 48%, #020812 100%);
    background-size: cover, auto, cover, auto;
    background-position: center, center, center;
}

.hero-content {
    width: min(560px, 100%);
    display: grid;
    justify-items: start;
    align-content: center;
    gap: 10px;
    margin-left: clamp(0px, 2.2vw, 30px);
}

.hero-content .hero-logo {
    width: min(350px, 82vw);
    max-width: 350px;
    margin: 0 0 8px;
    justify-self: start;
    filter:
        drop-shadow(0 10px 20px rgba(0,0,0,.58))
        drop-shadow(0 0 18px rgba(95, 180, 255,.24));
}

.hero-eyebrow {
    margin-top: 0;
    color: #9fd8ff;
    font-size: 13px;
    letter-spacing: .1em;
    text-shadow: 0 0 12px rgba(60, 150, 255, .35);
}

.hero-content .fps-title {
    margin: 0 0 6px;
    gap: 12px;
    align-items: baseline;
}

.hero-content .fps-title::before {
    inset: -10px -16px -10px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 36% 44%, rgba(41, 135, 255, .20), transparent 58%),
        linear-gradient(90deg, rgba(8, 72, 170, .18), rgba(3, 18, 42, .03));
    opacity: .8;
}

.hero-content .fps-title::after {
    left: 0;
    right: 0;
    bottom: -7px;
    height: 2px;
    background: linear-gradient(90deg, rgba(112, 200, 255, .76), rgba(26, 120, 255, .45), transparent);
    box-shadow: 0 0 10px rgba(70, 160, 255, .35);
}

.hero-content .fps-number {
    font-size: clamp(52px, 7.2vw, 92px);
    background: linear-gradient(180deg, #dff4ff 0%, #78c9ff 36%, #1677e8 70%, #003f9e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 8px 13px rgba(0,0,0,.58));
    text-shadow:
        0 0 9px rgba(72, 165, 255, .42),
        0 0 18px rgba(20, 105, 230, .30);
}

.hero-content .fps-text {
    font-size: clamp(18px, 2.7vw, 34px);
    color: #bfe7ff;
    letter-spacing: .06em;
    text-shadow:
        0 0 7px rgba(70, 165, 255, .38),
        0 3px 8px rgba(0,0,0,.56);
}

.hero-content .hero-sub {
    max-width: 560px;
    margin: 4px 0 0;
    color: #f0f8ff;
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 900;
    line-height: 1.45;
    text-shadow:
        0 2px 8px rgba(0,0,0,.82),
        0 0 12px rgba(55, 145, 255, .22);
}

.hero-content .home-actions {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-content .home-actions .button {
    min-width: 150px;
    min-height: 54px;
    border-radius: 14px;
}

@media (max-width: 640px) {
    .hero-section.hero-compact {
        min-height: 500px;
        padding: 26px 20px;
    }

    .hero-content {
        width: 100%;
        margin-left: 0;
        gap: 9px;
    }

    .hero-content .hero-logo {
        width: min(270px, 78vw);
        max-width: 270px;
    }

    .hero-content .fps-title {
        flex-wrap: nowrap;
        gap: 9px;
    }

    .hero-content .fps-text {
        width: auto;
        margin-left: 0;
    }

    .hero-content .hero-sub {
        font-size: 17px;
    }

    .hero-content .home-actions {
        width: 100%;
        gap: 10px;
    }

    .hero-content .home-actions .button {
        min-width: 0;
        flex: 1 1 0;
    }
}

/* ===== SIDE-BY-SIDE HOME HERO VARIANT ===== */
/* Logo on the left, 120 FPS + text + buttons on the side for a tighter compact layout. */
.hero-section.hero-side {
    min-height: min(500px, calc(100vh - 155px));
    padding: clamp(30px, 4.2vw, 52px);
    align-content: center;
    justify-items: start;
    background:
        linear-gradient(90deg, rgba(2, 10, 24, .97) 0%, rgba(3, 15, 34, .91) 34%, rgba(5, 25, 51, .58) 63%, rgba(5, 25, 51, .24) 100%),
        radial-gradient(circle at 72% 36%, rgba(82, 175, 255, .24), transparent 30%),
        var(--hero-bg-image),
        linear-gradient(135deg, #135f9f 0%, #071a34 48%, #020812 100%);
    background-size: cover, auto, cover, auto;
    background-position: center, center, center;
}

.hero-side-content {
    width: min(760px, 100%);
    margin-left: clamp(0px, 1.8vw, 22px);
}

.hero-showcase {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(230px, 340px) minmax(260px, 1fr);
    align-items: center;
    column-gap: clamp(22px, 4vw, 52px);
}

.hero-showcase .hero-logo {
    width: min(340px, 100%);
    max-width: 340px;
    margin: 0;
    justify-self: start;
    filter:
        drop-shadow(0 12px 22px rgba(0,0,0,.62))
        drop-shadow(0 0 18px rgba(100, 185, 255,.25));
}

.hero-promo {
    display: grid;
    justify-items: start;
    gap: 9px;
    min-width: 0;
}

.hero-promo .hero-eyebrow {
    margin: 0;
    padding-left: 2px;
    color: #9fd8ff;
    font-size: 12px;
    letter-spacing: .13em;
}

.hero-promo .fps-title {
    margin: 0 0 4px;
    gap: 10px;
    align-items: baseline;
}

.hero-promo .fps-title::before {
    inset: -8px -14px -9px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 36% 44%, rgba(41, 135, 255, .16), transparent 58%),
        linear-gradient(90deg, rgba(8, 72, 170, .14), rgba(3, 18, 42, .02));
    opacity: .72;
}

.hero-promo .fps-title::after {
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: linear-gradient(90deg, rgba(112, 200, 255, .62), rgba(26, 120, 255, .35), transparent);
    box-shadow: 0 0 8px rgba(70, 160, 255, .28);
}

.hero-promo .fps-number {
    font-size: clamp(48px, 6.3vw, 78px);
    background: linear-gradient(180deg, #dff4ff 0%, #75c6ff 36%, #1677e8 70%, #003f9e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 7px 12px rgba(0,0,0,.56));
    text-shadow:
        0 0 8px rgba(72, 165, 255, .36),
        0 0 16px rgba(20, 105, 230, .24);
}

.hero-promo .fps-text {
    font-size: clamp(17px, 2.3vw, 30px);
    color: #bfe7ff;
    letter-spacing: .055em;
    text-shadow:
        0 0 6px rgba(70, 165, 255, .34),
        0 3px 7px rgba(0,0,0,.56);
}

.hero-promo .hero-sub {
    max-width: 410px;
    margin: 5px 0 0;
    color: #f0f8ff;
    font-size: clamp(15px, 1.55vw, 18px);
    font-weight: 850;
    line-height: 1.48;
    text-shadow: 0 2px 8px rgba(0,0,0,.82);
}

.hero-promo .home-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-promo .home-actions .button {
    min-width: 132px;
    min-height: 48px;
    border-radius: 13px;
}

@media (max-width: 980px) {
    .hero-section.hero-side {
        min-height: 500px;
    }

    .hero-side-content {
        width: 100%;
        margin-left: 0;
    }

    .hero-showcase {
        grid-template-columns: minmax(190px, 285px) minmax(230px, 1fr);
        column-gap: 24px;
    }

    .hero-showcase .hero-logo {
        width: min(285px, 100%);
    }
}

@media (max-width: 640px) {
    .hero-section.hero-side {
        min-height: 520px;
        padding: 26px 20px;
    }

    .hero-showcase {
        grid-template-columns: 1fr;
        gap: 16px;
        align-items: start;
    }

    .hero-showcase .hero-logo {
        width: min(260px, 82vw);
    }

    .hero-promo .fps-title {
        flex-wrap: nowrap;
        gap: 9px;
    }

    .hero-promo .fps-text {
        width: auto;
        margin-left: 0;
    }

    .hero-promo .home-actions {
        width: 100%;
        gap: 10px;
    }

    .hero-promo .home-actions .button {
        min-width: 0;
        flex: 1 1 0;
    }
}

.site-footer {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: -34px auto 26px;
    padding: 18px 20px;
    border: 1px solid rgba(84, 173, 255, 0.18);
    border-radius: 16px;
    background: rgba(3, 16, 34, 0.72);
    box-shadow: 0 16px 40px rgba(0,0,0,.22), inset 0 0 20px rgba(84, 173, 255, 0.05);
    color: var(--muted);
    text-align: center;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.6;
    letter-spacing: .02em;
}

.site-footer div:first-child {
    color: #dff3ff;
}

.site-footer div:last-child {
    color: var(--gold);
}
/* Ranking table header: darker top row + glowing separator */
.ranking-table thead th {
    background:
        linear-gradient(180deg, rgba(16, 61, 107, 0.72), rgba(2, 12, 28, 0.92));
    color: #78c7ff;
    border-bottom: 2px solid rgba(84, 173, 255, 0.75);
    box-shadow:
        inset 0 -1px 0 rgba(255, 255, 255, 0.08),
        0 2px 14px rgba(84, 173, 255, 0.22);
}



/* Small glowing line under the header */
.ranking-table thead {
    position: relative;
}

.ranking-table thead::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(120, 199, 255, 0.95),
        transparent
    );
    box-shadow: 0 0 12px rgba(84, 173, 255, 0.75);
}

/* Ranking table white vertical separators */
.ranking-table th,
.ranking-table td {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.ranking-table th:last-child,
.ranking-table td:last-child {
    border-right: 0;
}

/* brighter line under header */
.ranking-table thead th {
    border-bottom: 2px solid rgba(255, 255, 255, 0.55);
}

/* subtle glow so the white lines fit the blue theme */
.ranking-table th,
.ranking-table td {
    box-shadow: inset -1px 0 0 rgba(84, 173, 255, 0.18);
}

/* =========================================================
   Premium layout polish for pages with more panels
   - wider content area
   - better spacing for extra panels
   - darker readable panels
   - improved guide/news/download/ranking/info cards
   ========================================================= */

:root {
    --page-max: 1280px;
    --sidebar-width: 290px;
    --panel-dark: rgba(3, 13, 29, 0.86);
    --panel-darker: rgba(1, 9, 22, 0.74);
    --panel-hover: rgba(12, 48, 90, 0.78);
}

body {
    background:
        linear-gradient(180deg, rgba(2, 8, 18, 0.58), rgba(2, 8, 18, 0.94) 62%, #020812),
        radial-gradient(circle at 20% 8%, rgba(89, 178, 255, 0.18), transparent 32%),
        radial-gradient(circle at 84% 3%, rgba(33, 115, 255, 0.14), transparent 34%),
        var(--site-bg-image),
        linear-gradient(135deg, #0b315f 0%, #071a33 42%, #020812 100%);
    background-size: cover, auto, auto, cover, auto;
    background-position: center top;
    background-attachment: fixed;
}

.topbar {
    padding-left: max(18px, calc((100vw - var(--page-max)) / 2));
    padding-right: max(18px, calc((100vw - var(--page-max)) / 2));
}

.page,
.site-footer {
    width: min(var(--page-max), calc(100% - 36px));
}

.page {
    padding-top: 38px;
}

.page-layout {
    grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
    gap: 34px;
}

.section {
    gap: 28px;
}

.section-header {
    margin-bottom: 2px;
}

.section-header h1 {
    letter-spacing: .015em;
}

.section-header p {
    max-width: 760px;
    color: #c6d8ea;
}

.content-block,
.panel,
.news-item,
.feature-card,
.guide-card,
.package-card,
.ranking-table-wrap,
.side-panel,
.summary-card,
.shop-balance,
.mini-link-card,
.download-client-card,
.news-highlight div,
.news-schedule,
.news-info-card,
.guide-info-panel,
.guide-class-card,
.formula-class-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0) 110px),
        linear-gradient(135deg, rgba(10, 42, 78, .78), rgba(3, 13, 29, .94));
    border-color: rgba(84, 173, 255, 0.20);
    box-shadow:
        0 18px 55px rgba(0,0,0,.34),
        inset 0 1px 0 rgba(255,255,255,.055);
}

.side-panel {
    background:
        linear-gradient(180deg, rgba(18, 58, 99, .72), rgba(3, 13, 29, .92));
    box-shadow: 0 14px 42px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.05);
}

.info-row,
.stat-card,
.mini-link-card,
.summary-card,
.download-client-card,
.guide-text-block,
.formula-list div {
    background: rgba(1, 11, 24, 0.62);
}

/* Homepage / download panels: works better when adding more boxes */
.download-client-list,
.news-list,
.info-section-grid {
    gap: 18px;
}

.download-client-card {
    padding: 20px;
}

.download-client-card:hover,
.news-info-card:hover,
.news-highlight div:hover,
.summary-card:hover,
.mini-link-card:hover,
.feature-card:hover,
.guide-card:hover {
    transform: translateY(-2px);
    border-color: rgba(84, 173, 255, .48);
    box-shadow:
        0 22px 65px rgba(0,0,0,.42),
        0 0 28px rgba(84, 173, 255, .12),
        inset 0 1px 0 rgba(255,255,255,.07);
}

.download-client-card,
.news-info-card,
.news-highlight div,
.summary-card,
.mini-link-card,
.feature-card,
.guide-card {
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

/* Guides: auto-fill keeps rows balanced when more panels are added */
.guide-accordion {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.guide-summary.guide-card {
    min-height: 132px;
}

.guide-summary.guide-card:hover {
    background:
        linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 110px),
        linear-gradient(135deg, rgba(16, 58, 104, .84), rgba(3, 13, 29, .96));
}

/* News/info cards: cleaner grids for more panels */
.news-info-grid,
.news-highlight,
.account-summary,
.compact-links {
    gap: 18px;
}

.news-item {
    padding: 22px;
}

.news-info-card,
.news-highlight div {
    padding: 18px;
}

/* Info / guide / ranking tables */
.info-table-card,
.ranking-table-wrap,
.guide-table-wrap {
    background: rgba(3, 13, 29, 0.80);
}

.info-table tr:nth-child(even),
.guide-table tr:nth-child(even),
.ranking-table tbody tr:nth-child(even) {
    background: rgba(84, 173, 255, 0.035);
}

.info-table th,
.info-table td,
.guide-table th,
.guide-table td,
.ranking-table th,
.ranking-table td {
    border-right: 1px solid rgba(255, 255, 255, 0.075);
}

.info-table th:last-child,
.info-table td:last-child,
.guide-table th:last-child,
.guide-table td:last-child,
.ranking-table th:last-child,
.ranking-table td:last-child {
    border-right: 0;
}

.ranking-table thead th,
.info-table th,
.guide-table th {
    background:
        linear-gradient(180deg, rgba(16, 61, 107, 0.74), rgba(2, 12, 28, 0.94));
    color: #78c7ff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.42);
    box-shadow:
        inset 0 -1px 0 rgba(255,255,255,.08),
        0 2px 14px rgba(84,173,255,.16);
}

.ranking-table tbody tr:hover,
.info-table tr:hover,
.guide-table tr:hover {
    background: rgba(84, 173, 255, 0.075);
}

/* Section headings inside long pages */
.section-title h2,
.section-header.compact h2,
.info-table-card h2,
.news-info-card h3,
.news-schedule h3 {
    letter-spacing: .015em;
}

.section-title h2,
.section-header.compact h2 {
    font-size: 28px;
}

/* Hero and large blocks: slightly less tall so extra panels fit above fold */
.hero-section.hero-side {
    min-height: min(440px, calc(100vh - 160px));
}

.hero-showcase {
    grid-template-columns: minmax(220px, 320px) minmax(260px, 1fr);
}

.hero-showcase .hero-logo {
    width: min(320px, 100%);
}

/* Sidebar: compact enough for additional panels */
.sidebar {
    gap: 18px;
}

.side-panel {
    padding: 17px;
}

.side-heading h2 {
    font-size: 21px;
}

.wcoin-card {
    min-height: 86px;
}

.stat-card {
    min-height: 72px;
}

/* Mobile/tablet safety */
@media (max-width: 980px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .page,
    .site-footer {
        width: min(100% - 22px, var(--page-max));
    }

    .page {
        padding-top: 22px;
    }

    .guide-accordion,
    .news-info-grid,
    .news-highlight,
    .account-summary,
    .compact-links,
    .sidebar {
        grid-template-columns: 1fr;
    }

    .section-header h1 {
        font-size: clamp(38px, 12vw, 54px);
    }
}

/* ===== FINAL POLISH FIX: cleaner info tables + safer wrapping ===== */

/* Key/value info tables should stay subtle, not look like huge blue buttons. */
.info-table-card {
    padding: 0;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 90px),
        rgba(3, 13, 29, 0.76);
}

.info-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    padding: 15px 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(84, 173, 255, 0.13);
    background: transparent;
    box-shadow: none;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.info-table th {
    width: 34%;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(84, 173, 255, 0.045);
    border-right: 1px solid rgba(84, 173, 255, 0.14);
}

.info-table td {
    color: var(--text);
    font-weight: 700;
}

.info-table tr:nth-child(even) {
    background: rgba(84, 173, 255, 0.025);
}

.info-table tr:hover {
    background: rgba(84, 173, 255, 0.055);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: 0;
}

/* Keep ranking tables separated, but softer than pure white lines. */
.ranking-table th,
.ranking-table td {
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset -1px 0 0 rgba(84, 173, 255, 0.08);
}

.ranking-table thead th {
    border-bottom: 2px solid rgba(255, 255, 255, 0.45);
}

/* Guild/profile stat boxes: allow long names like KFCxD and Bezdalius to fit nicely. */
.guild-profile {
    width: min(100%, 760px);
    grid-template-columns: auto minmax(0, 1fr);
}

.guild-profile .detail-grid,
.detail-grid {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.summary-card,
.stat-card,
.info-row,
.guild-mini,
.character-guild-box {
    min-width: 0;
}

.summary-card strong,
.stat-card strong,
.info-row strong,
.guild-mini,
.character-guild-box strong {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

.guild-profile .summary-card {
    padding: 15px 16px;
}

.guild-profile .summary-card strong {
    font-size: clamp(20px, 1.9vw, 26px);
    line-height: 1.12;
}

/* Member/profile tables should match ranking style without being too bright. */
.member-table th,
.member-table td {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.member-table th:last-child,
.member-table td:last-child {
    border-right: 0;
}

.member-table thead th {
    background:
        linear-gradient(180deg, rgba(16, 61, 107, 0.70), rgba(2, 12, 28, 0.92));
    border-bottom: 2px solid rgba(255, 255, 255, 0.36);
}

/* Page spacing: keeps added panels clean without the left side feeling empty. */
.section {
    gap: 24px;
}

.content-block {
    margin-top: 18px;
}

/* Download/news cards: allow more panels and keep text readable. */
.download-client-card,
.news-info-card,
.news-highlight div,
.guide-summary.guide-card {
    min-width: 0;
}

.download-client-card h2,
.news-info-card h3,
.news-highlight strong,
.guide-summary h2,
.guide-summary p {
    overflow-wrap: break-word;
    word-break: normal;
}

@media (max-width: 640px) {
    .info-table,
    .info-table tbody,
    .info-table tr,
    .info-table th,
    .info-table td {
        display: block;
        width: 100% !important;
    }

    .info-table tr {
        padding: 12px 14px;
        border-bottom: 1px solid rgba(84, 173, 255, 0.13);
    }

    .info-table th,
    .info-table td {
        padding: 0;
        border: 0;
        background: transparent;
    }

    .info-table td {
        margin-top: 5px;
    }

    .guild-profile {
        width: 100%;
    }
}

/* ===== INFO PAGE POLISH FIXES ===== */
/* Softer page title so it does not overpower the content */
.section-header h1,
.page-main > .section-header h1 {
    font-size: clamp(42px, 4.2vw, 64px);
    line-height: 0.95;
    letter-spacing: 0.01em;
    color: #f3f9ff;
    text-shadow:
        0 3px 0 rgba(2, 8, 18, 0.36),
        0 0 18px rgba(92, 187, 255, 0.22);
}

.section-header,
.page-main > .section-header {
    margin-bottom: 26px;
}

.section-header p,
.page-main > .section-header p {
    max-width: 680px;
    color: #c6d7e9;
}

/* Replace the harsh full-width dark strip behind info tables */
.info-section-grid,
.info-table-card {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

.info-table-card {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

/* Cleaner section headings: no giant dark block, just a small accent */
.info-table-card h2,
.ranking-block .section-header h2,
.detail-panel h2 {
    position: relative;
    width: fit-content;
    margin: 0 0 4px;
    padding-bottom: 8px;
    color: #e8f6ff;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.01em;
    text-shadow: 0 0 16px rgba(84, 173, 255, 0.22);
}

.info-table-card h2::after,
.ranking-block .section-header h2::after,
.detail-panel h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 72px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(120,199,255,.9), rgba(120,199,255,0));
    box-shadow: 0 0 10px rgba(84, 173, 255, 0.38);
}

/* Restore info table to a cleaner card style */
.info-table-card .ranking-table-wrap,
.info-table-card .guide-table-wrap {
    border: 1px solid rgba(84, 173, 255, 0.22);
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 120px),
        rgba(2, 12, 28, 0.82);
    box-shadow: 0 18px 54px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.045);
}

.info-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    padding: 15px 18px;
    line-height: 1.45;
    border-bottom: 1px solid rgba(84, 173, 255, 0.13);
    overflow-wrap: anywhere;
    word-break: normal;
}

.info-table th {
    width: 34%;
    color: #7fcaff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(12, 43, 77, 0.34);
    border-right: 1px solid rgba(255,255,255,0.10);
}

.info-table td {
    color: #eaf6ff;
    font-weight: 800;
    background: rgba(1, 10, 24, 0.35);
}

.info-table tr:nth-child(even) th {
    background: rgba(16, 55, 96, 0.40);
}

.info-table tr:nth-child(even) td {
    background: rgba(5, 20, 40, 0.48);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: 0;
}

/* Better spacing between Info sections */
.info-section-grid .info-table-card + .info-table-card {
    margin-top: 28px;
}

/* Mobile: prevent table text from crushing */
@media (max-width: 640px) {
    .section-header h1,
    .page-main > .section-header h1 {
        font-size: 42px;
    }

    .info-table,
    .info-table tbody,
    .info-table tr,
    .info-table th,
    .info-table td {
        display: block;
        width: 100% !important;
    }

    .info-table th {
        border-right: 0;
        border-bottom: 0;
        padding-bottom: 5px;
    }

    .info-table td {
        padding-top: 4px;
    }

    .info-table tr {
        padding: 12px 14px;
        border-bottom: 1px solid rgba(84, 173, 255, 0.13);
    }
}

/* ===== Page title + spacing polish ===== */
/* Makes large page titles cleaner and reduces empty vertical gaps on content pages. */
.page-main > .section-header,
.section-header:not(.compact) {
    position: relative;
    gap: 10px;
    margin-bottom: 28px;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(84, 173, 255, 0.16);
}

.page-main > .section-header::after,
.section-header:not(.compact)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: min(220px, 36vw);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(120, 199, 255, 0.9), rgba(120, 199, 255, 0));
    box-shadow: 0 0 14px rgba(84, 173, 255, 0.34);
}

.page-main > .section-header .eyebrow,
.section-header:not(.compact) .eyebrow {
    margin: 0;
    color: #7fcaff;
    letter-spacing: .14em;
    text-shadow: 0 0 12px rgba(84, 173, 255, 0.28);
}

.page-main > .section-header h1,
.section-header:not(.compact) h1 {
    width: fit-content;
    margin: 0;
    font-size: clamp(48px, 5.2vw, 68px);
    line-height: .92;
    color: #f4fbff;
    letter-spacing: .015em;
    text-shadow:
        0 3px 0 rgba(2, 10, 24, 0.5),
        0 0 28px rgba(120, 199, 255, 0.26);
}

.page-main > .section-header h1::after,
.section-header:not(.compact) h1::after {
    content: "";
    display: block;
    width: 76px;
    height: 3px;
    margin-top: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #78c7ff, rgba(120, 199, 255, 0));
    box-shadow: 0 0 14px rgba(84, 173, 255, 0.42);
}

.page-main > .section-header p,
.section-header:not(.compact) p {
    max-width: 620px;
    margin: 6px 0 0;
    color: #c6d8e8;
    font-size: 16px;
    line-height: 1.55;
}

/* Reduce awkward empty space before the first content block/table. */
.page-main > .section-header + .info-section-grid,
.page-main > .section-header + .news-list,
.page-main > .section-header + .panel,
.page-main > .section-header + .content-block,
.page-main > .section-header + .ranking-block,
.page-main > .section-header + .download-client-list,
.page-main > .section-header + .guide-accordion {
    margin-top: -4px;
}

/* Help row on Info page: keep it compact and intentional, not floating in empty space. */
.info-help,
.help-row,
.info-start-help {
    margin: 0 0 24px;
    padding: 12px 0 0;
    border-top: 1px solid rgba(84, 173, 255, 0.13);
    text-align: center;
}

/* Section titles like Server Rates / Reset System: remove the ugly green-looking underline feel. */
.info-table-card h2,
.ranking-block .section-header h2,
.detail-panel h2 {
    margin-bottom: 14px;
    padding-bottom: 9px;
    font-size: 25px;
}

.info-table-card h2::after,
.ranking-block .section-header h2::after,
.detail-panel h2::after {
    width: 96px;
    height: 2px;
    background: linear-gradient(90deg, rgba(120, 199, 255, 0.85), rgba(120, 199, 255, 0));
    box-shadow: 0 0 10px rgba(84, 173, 255, 0.32);
}

/* Slightly tighten tables so pages with many panels feel cleaner. */
.info-table th,
.info-table td {
    padding: 13px 18px;
}

.info-section-grid .info-table-card + .info-table-card {
    margin-top: 22px;
}

@media (max-width: 640px) {
    .page-main > .section-header,
    .section-header:not(.compact) {
        margin-bottom: 22px;
        padding-bottom: 20px;
    }

    .page-main > .section-header h1,
    .section-header:not(.compact) h1 {
        font-size: 44px;
    }

    .page-main > .section-header p,
    .section-header:not(.compact) p {
        font-size: 15px;
    }
}

/* ===== Compact page header cleanup ===== */
/* Removes the overly large empty spaces and makes titles cleaner. */
.page-main > .section-header,
.section-header:not(.compact) {
    gap: 7px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(84, 173, 255, 0.12);
}

.page-main > .section-header::after,
.section-header:not(.compact)::after {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, rgba(120, 199, 255, 0.7), transparent);
    box-shadow: 0 0 8px rgba(84, 173, 255, 0.22);
}

.page-main > .section-header .eyebrow,
.section-header:not(.compact) .eyebrow {
    font-size: 12px;
    letter-spacing: .12em;
    margin-bottom: 0;
}

.page-main > .section-header h1,
.section-header:not(.compact) h1 {
    width: auto;
    font-family: Inter, Segoe UI, Arial, Helvetica, sans-serif;
    font-size: clamp(42px, 4.6vw, 58px);
    line-height: 1;
    letter-spacing: -0.035em;
    font-weight: 950;
    color: #f5fbff;
    text-shadow:
        0 2px 0 rgba(2, 10, 24, 0.34),
        0 0 20px rgba(120, 199, 255, 0.22);
}

.page-main > .section-header h1::after,
.section-header:not(.compact) h1::after {
    display: none;
}

.page-main > .section-header p,
.section-header:not(.compact) p {
    max-width: 640px;
    margin: 4px 0 0;
    font-size: 15px;
    line-height: 1.45;
    color: #c6d8e8;
}

/* Pull the first content area closer to the title. */
.page-main > .section-header + .info-section-grid,
.page-main > .section-header + .news-list,
.page-main > .section-header + .panel,
.page-main > .section-header + .content-block,
.page-main > .section-header + .ranking-block,
.page-main > .section-header + .download-client-list,
.page-main > .section-header + .guide-accordion {
    margin-top: 0;
}

/* Info helper row: smaller and closer, no floating huge gap. */
.info-help,
.help-row,
.info-start-help {
    margin: 8px 0 14px;
    padding: 9px 0 0;
    border-top: 1px solid rgba(84, 173, 255, 0.11);
    text-align: center;
}

/* Info page section titles: cleaner, no heavy underline. */
.info-table-card h2 {
    margin: 0 0 10px;
    padding: 0;
    color: #eaf6ff;
    font-size: 23px;
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.info-table-card h2::after {
    content: "";
    display: block;
    width: 82px;
    height: 1px;
    margin-top: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(120, 199, 255, 0.8), transparent);
    box-shadow: none;
}

/* Make Info page cards/tables less blocky and more premium. */
.info-table-card {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.info-table {
    overflow: hidden;
    border: 1px solid rgba(84, 173, 255, 0.22);
    border-radius: 16px;
    background: rgba(2, 12, 28, 0.70);
    box-shadow: 0 18px 50px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.045);
}

.info-table th,
.info-table td {
    padding: 13px 18px;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.info-table th {
    width: 32%;
    background: rgba(10, 38, 70, 0.58);
}

.info-table td {
    background: rgba(1, 10, 24, 0.42);
}

.info-section-grid .info-table-card + .info-table-card {
    margin-top: 18px;
}

/* Guild/detail text wrapping fixes. */
.summary-card strong,
.guild-profile-info h2,
.detail-panel h2,
.guild-mini,
.ranking-link,
.info-row strong,
.info-row span {
    overflow-wrap: anywhere;
    word-break: normal;
}

.guild-profile .summary-card {
    align-self: stretch;
}

@media (max-width: 640px) {
    .page-main > .section-header,
    .section-header:not(.compact) {
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

    .page-main > .section-header h1,
    .section-header:not(.compact) h1 {
        font-size: 40px;
        letter-spacing: -0.025em;
    }

    .page-main > .section-header p,
    .section-header:not(.compact) p {
        font-size: 14px;
    }

    .info-help,
    .help-row,
    .info-start-help {
        margin: 6px 0 12px;
    }
}

/* ===== FINAL INFO PAGE CLEANUP: compact hero, nicer title, no double divider ===== */
/* Removes the extra long horizontal lines around the Info intro area. */
.page-main > .section-header,
.section-header:not(.compact) {
    margin-bottom: 16px !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
    gap: 8px !important;
}

.page-main > .section-header::before,
.page-main > .section-header::after,
.section-header:not(.compact)::before,
.section-header:not(.compact)::after {
    display: none !important;
    content: none !important;
}

/* Nicer page title: fantasy serif, clean glow, not the chunky block font. */
.page-main > .section-header h1,
.section-header:not(.compact) h1 {
    position: relative;
    width: fit-content;
    margin: 0 !important;
    padding: 0 0 9px !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: clamp(48px, 5.4vw, 72px) !important;
    line-height: .92 !important;
    font-weight: 900 !important;
    letter-spacing: -0.035em !important;
    color: #f8fcff !important;
    text-shadow:
        0 2px 0 rgba(1, 8, 18, .55),
        0 9px 22px rgba(0, 0, 0, .45),
        0 0 20px rgba(120, 199, 255, .24) !important;
}

.page-main > .section-header h1::after,
.section-header:not(.compact) h1::after {
    content: "" !important;
    display: block !important;
    position: absolute;
    left: 3px;
    bottom: 0;
    width: 92px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(120, 199, 255, .95), rgba(120, 199, 255, .28), transparent);
    box-shadow: 0 0 12px rgba(84, 173, 255, .34);
}

.page-main > .section-header .eyebrow,
.section-header:not(.compact) .eyebrow {
    margin: 0 !important;
    color: #7fcaff !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    letter-spacing: .13em !important;
    text-shadow: 0 0 12px rgba(84, 173, 255, .2);
}

.page-main > .section-header p,
.section-header:not(.compact) p {
    max-width: 640px !important;
    margin: 2px 0 0 !important;
    color: #c8d8e8 !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
}

/* Help line should feel like a small note, not a divider block. */
.info-help,
.help-row,
.info-start-help {
    margin: 12px 0 20px !important;
    padding: 0 !important;
    border-top: 0 !important;
    text-align: center;
    color: #c8d8e8;
}

/* Pull the first section closer after the help row. */
.info-section-grid,
.page-main > .section-header + .info-section-grid {
    margin-top: 0 !important;
    gap: 22px !important;
}

/* Cleaner section headings: no green underline, compact blue accent only. */
.info-table-card h2,
.ranking-block .section-header.compact h2,
.section-title h2 {
    position: relative;
    width: fit-content;
    margin: 0 0 12px !important;
    padding-bottom: 8px !important;
    color: #eef8ff !important;
    font-size: 24px !important;
    line-height: 1.1 !important;
    font-weight: 950 !important;
    letter-spacing: -0.025em !important;
    text-shadow: 0 0 16px rgba(84, 173, 255, .18);
}

.info-table-card h2::after,
.ranking-block .section-header.compact h2::after,
.section-title h2::after {
    content: "" !important;
    display: block !important;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 72px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(120, 199, 255, .82), rgba(120, 199, 255, .18), transparent) !important;
    box-shadow: 0 0 10px rgba(84, 173, 255, .25) !important;
}

/* Restore info tables to a cleaner dark style with readable wrapping. */
.info-table-card {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.info-table {
    width: 100%;
    overflow: hidden;
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid rgba(84, 173, 255, .22) !important;
    border-radius: 16px !important;
    background: rgba(2, 12, 28, .74) !important;
    box-shadow: 0 16px 44px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.04) !important;
}

.info-table th,
.info-table td {
    padding: 14px 18px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    border-bottom: 1px solid rgba(84, 173, 255, .12) !important;
}

.info-table th {
    width: 34% !important;
    min-width: 190px;
    color: #7fcaff !important;
    background: linear-gradient(180deg, rgba(16, 61, 107, .44), rgba(4, 19, 39, .56)) !important;
    border-right: 1px solid rgba(84, 173, 255, .18) !important;
}

.info-table td {
    color: #eaf4ff !important;
    background: rgba(1, 10, 24, .44) !important;
    font-weight: 750;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: 0 !important;
}

@media (max-width: 640px) {
    .page-main > .section-header h1,
    .section-header:not(.compact) h1 {
        font-size: 48px !important;
    }

    .info-table th,
    .info-table td {
        min-width: 0;
        padding: 12px 14px !important;
    }
}

/* ===== FINAL TITLE EFFECT PASS ===== */
/* Polished fantasy title effect for page headings without extra divider lines. */
.page-main > .section-header,
.section-header:not(.compact) {
    gap: 6px !important;
    margin-bottom: 18px !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
}

.page-main > .section-header::before,
.page-main > .section-header::after,
.section-header:not(.compact)::before,
.section-header:not(.compact)::after {
    display: none !important;
    content: none !important;
}

.page-main > .section-header h1,
.section-header:not(.compact) h1 {
    position: relative;
    width: fit-content;
    margin: 0 !important;
    padding: 0 0 9px !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: clamp(48px, 5vw, 68px) !important;
    font-weight: 900 !important;
    line-height: .92 !important;
    letter-spacing: .01em !important;
    color: #ffffff !important;
    background: linear-gradient(180deg, #ffffff 0%, #e7f6ff 34%, #9ed9ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 3px 0 rgba(1, 9, 22, .42),
        0 10px 24px rgba(0, 0, 0, .45),
        0 0 18px rgba(84, 173, 255, .28),
        0 0 34px rgba(84, 173, 255, .16) !important;
    filter: drop-shadow(0 12px 18px rgba(0,0,0,.28));
}

.page-main > .section-header h1::after,
.section-header:not(.compact) h1::after {
    content: "";
    position: absolute;
    left: 3px;
    bottom: 0;
    width: min(92px, 74%);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(145, 216, 255, .95), rgba(84, 173, 255, .35), transparent);
    box-shadow: 0 0 12px rgba(84, 173, 255, .42);
}

.page-main > .section-header .eyebrow,
.section-header:not(.compact) .eyebrow {
    margin: 0 0 2px !important;
    color: #7fcaff !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    letter-spacing: .12em !important;
    text-shadow: 0 0 12px rgba(84, 173, 255, .32);
}

.page-main > .section-header p,
.section-header:not(.compact) p {
    max-width: 650px !important;
    margin: 4px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #d5e4f1 !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    text-shadow: 0 1px 8px rgba(0,0,0,.34);
}

/* Compact help note spacing on info pages. */
.info-help,
.help-row,
.info-start-help {
    margin: 14px 0 18px !important;
    padding: 10px 0 0 !important;
    border-top: 1px solid rgba(84, 173, 255, .13) !important;
}

/* Better section title style: clean blue accent, no chunky underline. */
.info-table-card h2,
.ranking-block .section-header.compact h2,
.section-title h2 {
    margin: 0 0 12px !important;
    padding-bottom: 7px !important;
    font-family: Inter, Segoe UI, Arial, Helvetica, sans-serif !important;
    font-size: 24px !important;
    line-height: 1.05 !important;
    color: #eef8ff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,.38), 0 0 14px rgba(84,173,255,.2) !important;
}

.info-table-card h2::after,
.ranking-block .section-header.compact h2::after,
.section-title h2::after {
    width: 58px !important;
    height: 2px !important;
    background: linear-gradient(90deg, rgba(120, 199, 255, .9), rgba(120, 199, 255, .2), transparent) !important;
    box-shadow: 0 0 10px rgba(84, 173, 255, .28) !important;
}

/* Subtle title shimmer, disabled for users who prefer less motion. */
@media (prefers-reduced-motion: no-preference) {
    .page-main > .section-header h1,
    .section-header:not(.compact) h1 {
        background-size: 100% 100%;
        animation: titleGlowPulse 4.8s ease-in-out infinite;
    }

    @keyframes titleGlowPulse {
        0%, 100% {
            text-shadow:
                0 3px 0 rgba(1, 9, 22, .42),
                0 10px 24px rgba(0, 0, 0, .45),
                0 0 16px rgba(84, 173, 255, .24),
                0 0 30px rgba(84, 173, 255, .12);
        }
        50% {
            text-shadow:
                0 3px 0 rgba(1, 9, 22, .42),
                0 10px 24px rgba(0, 0, 0, .45),
                0 0 22px rgba(84, 173, 255, .36),
                0 0 44px rgba(84, 173, 255, .20);
        }
    }
}

@media (max-width: 640px) {
    .page-main > .section-header h1,
    .section-header:not(.compact) h1 {
        font-size: 46px !important;
    }
}

/* ===== TITLE GLOW FIX - brighter readable fantasy effect ===== */
/* Uses real text color + shadows. The previous gradient clip made the title look darker. */
.page-main > .section-header,
.section-header:not(.compact) {
    gap: 7px !important;
    margin-bottom: 18px !important;
}

.page-main > .section-header h1,
.section-header:not(.compact) h1 {
    position: relative !important;
    width: fit-content !important;
    margin: 0 !important;
    padding: 0 4px 4px 0 !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: clamp(52px, 5.2vw, 72px) !important;
    font-weight: 900 !important;
    line-height: .92 !important;
    letter-spacing: .015em !important;

    /* Important: keep normal text color, do not clip text to transparent. */
    color: #f7fbff !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #f7fbff !important;

    text-shadow:
        0 1px 0 #ffffff,
        0 2px 0 rgba(126, 196, 245, .55),
        0 4px 0 rgba(0, 16, 38, .9),
        0 9px 18px rgba(0, 0, 0, .72),
        0 0 12px rgba(116, 201, 255, .55),
        0 0 30px rgba(41, 142, 255, .28) !important;
    filter: none !important;
}

/* Small icy shine line inside the title area, not a long page divider. */
.page-main > .section-header h1::after,
.section-header:not(.compact) h1::after {
    content: "" !important;
    position: absolute !important;
    left: 6px !important;
    right: 8px !important;
    bottom: 2px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, transparent, rgba(170, 228, 255, .95), rgba(84, 173, 255, .42), transparent) !important;
    box-shadow: 0 0 10px rgba(84, 173, 255, .45) !important;
    opacity: .85 !important;
}

/* Remove extra horizontal lines that made the header area feel empty. */
.page-main > .section-header p,
.section-header:not(.compact) p {
    margin-top: 10px !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
}

.page-main > .section-header p::before,
.page-main > .section-header p::after,
.section-header:not(.compact) p::before,
.section-header:not(.compact) p::after {
    display: none !important;
    content: none !important;
}

/* Disable previous pulse animation because it fought the new readable shadow. */
@media (prefers-reduced-motion: no-preference) {
    .page-main > .section-header h1,
    .section-header:not(.compact) h1 {
        animation: titleSoftGlow 4.2s ease-in-out infinite !important;
    }

    @keyframes titleSoftGlow {
        0%, 100% {
            text-shadow:
                0 1px 0 #ffffff,
                0 2px 0 rgba(126, 196, 245, .55),
                0 4px 0 rgba(0, 16, 38, .9),
                0 9px 18px rgba(0, 0, 0, .72),
                0 0 12px rgba(116, 201, 255, .55),
                0 0 30px rgba(41, 142, 255, .28);
        }
        50% {
            text-shadow:
                0 1px 0 #ffffff,
                0 2px 0 rgba(155, 218, 255, .68),
                0 4px 0 rgba(0, 16, 38, .9),
                0 9px 18px rgba(0, 0, 0, .72),
                0 0 18px rgba(138, 215, 255, .7),
                0 0 42px rgba(41, 142, 255, .36);
        }
    }
}

@media (max-width: 640px) {
    .page-main > .section-header h1,
    .section-header:not(.compact) h1 {
        font-size: 48px !important;
    }
}

/* ===== TITLE SIZE FIX - smaller, cleaner header titles ===== */
.page-main > .section-header h1,
.section-header:not(.compact) h1 {
    font-size: clamp(42px, 3.8vw, 56px) !important;
    line-height: 0.98 !important;
    letter-spacing: 0.01em !important;
    text-shadow:
        0 1px 0 rgba(255,255,255,.75),
        0 2px 0 rgba(70, 140, 200, .38),
        0 5px 12px rgba(0, 0, 0, .68),
        0 0 12px rgba(116, 201, 255, .38),
        0 0 24px rgba(41, 142, 255, .18) !important;
}

.page-main > .section-header h1::after,
.section-header:not(.compact) h1::after {
    left: 4px !important;
    right: 6px !important;
    bottom: -3px !important;
    height: 1px !important;
    opacity: .7 !important;
}

@media (prefers-reduced-motion: no-preference) {
    .page-main > .section-header h1,
    .section-header:not(.compact) h1 {
        animation: titleSmallGlow 4.5s ease-in-out infinite !important;
    }

    @keyframes titleSmallGlow {
        0%, 100% {
            text-shadow:
                0 1px 0 rgba(255,255,255,.75),
                0 2px 0 rgba(70, 140, 200, .38),
                0 5px 12px rgba(0, 0, 0, .68),
                0 0 12px rgba(116, 201, 255, .38),
                0 0 24px rgba(41, 142, 255, .18);
        }
        50% {
            text-shadow:
                0 1px 0 rgba(255,255,255,.85),
                0 2px 0 rgba(90, 170, 230, .45),
                0 5px 12px rgba(0, 0, 0, .68),
                0 0 16px rgba(138, 215, 255, .5),
                0 0 30px rgba(41, 142, 255, .24);
        }
    }
}

@media (max-width: 640px) {
    .page-main > .section-header h1,
    .section-header:not(.compact) h1 {
        font-size: 38px !important;
    }
}

/* ===== FINAL TITLE TWEAK - smaller text, stronger glow ===== */
.page-main > .section-header h1,
.section-header:not(.compact) h1 {
    font-size: clamp(34px, 3.1vw, 46px) !important;
    line-height: 1 !important;
    letter-spacing: 0.015em !important;
    color: #f4fbff !important;
    text-shadow:
        0 1px 0 rgba(255,255,255,.9),
        0 2px 0 rgba(85, 160, 220, .45),
        0 5px 12px rgba(0, 0, 0, .75),
        0 0 14px rgba(150, 225, 255, .72),
        0 0 34px rgba(74, 170, 255, .48),
        0 0 64px rgba(20, 105, 230, .26) !important;
}

.page-main > .section-header h1::after,
.section-header:not(.compact) h1::after {
    left: 2px !important;
    right: 2px !important;
    bottom: -4px !important;
    height: 1px !important;
    opacity: .95 !important;
    box-shadow:
        0 0 10px rgba(120, 205, 255, .75),
        0 0 24px rgba(42, 145, 255, .42) !important;
}

@media (prefers-reduced-motion: no-preference) {
    .page-main > .section-header h1,
    .section-header:not(.compact) h1 {
        animation: titleSmallStrongGlow 4.2s ease-in-out infinite !important;
    }

    @keyframes titleSmallStrongGlow {
        0%, 100% {
            text-shadow:
                0 1px 0 rgba(255,255,255,.9),
                0 2px 0 rgba(85, 160, 220, .45),
                0 5px 12px rgba(0, 0, 0, .75),
                0 0 14px rgba(150, 225, 255, .72),
                0 0 34px rgba(74, 170, 255, .48),
                0 0 64px rgba(20, 105, 230, .26);
        }
        50% {
            text-shadow:
                0 1px 0 rgba(255,255,255,1),
                0 2px 0 rgba(115, 190, 245, .55),
                0 5px 12px rgba(0, 0, 0, .75),
                0 0 20px rgba(170, 235, 255, .92),
                0 0 48px rgba(74, 170, 255, .62),
                0 0 86px rgba(20, 105, 230, .34);
        }
    }
}

@media (max-width: 640px) {
    .page-main > .section-header h1,
    .section-header:not(.compact) h1 {
        font-size: 32px !important;
    }
}

/* ===== INFO PAGE TABLES - restored cleaner style ===== */
/* Makes Info tables look closer to the earlier cleaner version: dark body,
   blue label column, clear row lines, rounded outer border, and safe wrapping. */
.info-section-grid {
    gap: 22px;
}

.info-table-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.info-table-card h2,
.ranking-block .section-header.compact h2,
.detail-panel h2,
.guild-profile-info h2 {
    margin: 0 0 12px;
    color: #eef8ff;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.58),
        0 0 18px rgba(84, 173, 255, 0.22);
}

.info-table-card h2::after,
.ranking-block .section-header.compact h2::after,
.detail-panel h2::after,
.guild-profile-info h2::after {
    content: "";
    display: block;
    width: 92px;
    height: 2px;
    margin-top: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(120, 199, 255, 0.95), rgba(120, 199, 255, 0));
    box-shadow: 0 0 12px rgba(84, 173, 255, 0.35);
}

.info-table-card .ranking-table-wrap,
.info-table-card.ranking-table-wrap,
.info-table-wrap {
    border: 1px solid rgba(84, 173, 255, 0.32);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(1, 10, 23, 0.76);
    box-shadow:
        0 18px 52px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.info-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
    background: rgba(1, 10, 23, 0.82);
}

.info-table th,
.info-table td {
    min-height: 58px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(84, 173, 255, 0.17);
    vertical-align: middle;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
    box-shadow: none;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: 0;
}

.info-table th {
    width: 34%;
    color: #83d0ff;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
    background:
        linear-gradient(180deg, rgba(18, 67, 113, 0.82), rgba(7, 35, 66, 0.84));
    border-right: 1px solid rgba(255,255,255,0.16);
}

.info-table td {
    color: #f0f7ff;
    font-size: 15px;
    font-weight: 850;
    background: rgba(1, 10, 23, 0.86);
}

.info-table tr:nth-child(even) td {
    background: rgba(4, 18, 38, 0.88);
}

.info-table tr:hover th {
    background:
        linear-gradient(180deg, rgba(24, 83, 136, 0.9), rgba(9, 43, 79, 0.9));
}

.info-table tr:hover td {
    background: rgba(7, 25, 49, 0.94);
}

@media (max-width: 640px) {
    .info-table,
    .info-table tbody,
    .info-table tr,
    .info-table th,
    .info-table td {
        display: block;
        width: 100% !important;
    }

    .info-table th {
        padding: 12px 14px 6px;
        border-right: 0;
        border-bottom: 0;
    }

    .info-table td {
        padding: 4px 14px 13px;
    }

    .info-table tr {
        border-bottom: 1px solid rgba(84, 173, 255, 0.17);
    }

    .info-table tr:last-child {
        border-bottom: 0;
    }
}

/* ===== CLEAN INFO TABLE FIX - no chunky bumps, safer wrapping ===== */
/* This overrides the previous Info table experiment with a flatter, cleaner table. */
.info-table-card {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.info-table-card h2 {
    margin: 0 0 10px !important;
    color: #eef8ff !important;
    font-size: 23px !important;
    font-weight: 900 !important;
    letter-spacing: -0.015em !important;
    text-shadow: 0 2px 10px rgba(0,0,0,.65), 0 0 16px rgba(84,173,255,.18) !important;
}

.info-table-card h2::after {
    width: 58px !important;
    height: 1px !important;
    margin-top: 7px !important;
    opacity: .65 !important;
    background: linear-gradient(90deg, rgba(120,199,255,.75), transparent) !important;
    box-shadow: none !important;
}

.info-table-card .ranking-table-wrap,
.info-table-card.ranking-table-wrap,
.info-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    border-radius: 15px !important;
    border: 1px solid rgba(84,173,255,.30) !important;
    background: rgba(1,10,23,.82) !important;
    box-shadow: 0 16px 44px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.035) !important;
}

.info-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: rgba(1,10,23,.86) !important;
}

.info-table tr {
    background: transparent !important;
}

.info-table th,
.info-table td {
    height: auto !important;
    min-height: 0 !important;
    padding: 14px 18px !important;
    border-bottom: 1px solid rgba(84,173,255,.15) !important;
    box-shadow: none !important;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    line-height: 1.45 !important;
    vertical-align: middle !important;
}

.info-table th {
    width: 34% !important;
    color: #84d0ff !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    letter-spacing: .085em !important;
    text-transform: uppercase !important;
    text-align: left !important;
    background: rgba(7,31,58,.86) !important;
    border-right: 1px solid rgba(84,173,255,.24) !important;
}

.info-table td {
    color: #eef7ff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    background: rgba(1,10,23,.86) !important;
}

.info-table tr:nth-child(even) th {
    background: rgba(9,37,68,.86) !important;
}

.info-table tr:nth-child(even) td {
    background: rgba(3,14,30,.88) !important;
}

.info-table tr:hover th,
.info-table tr:hover td {
    filter: brightness(1.06);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: 0 !important;
}

/* Prevent long values from being cut off on the Info page. */
.info-table td *,
.info-table th * {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
}

@media (max-width: 640px) {
    .info-table th,
    .info-table td {
        display: block !important;
        width: 100% !important;
    }

    .info-table th {
        padding: 12px 14px 4px !important;
        border-right: 0 !important;
    }

    .info-table td {
        padding: 4px 14px 13px !important;
    }
}

/* ===== DOWNLOAD PAGE POLISH ===== */
/* Make download cards cleaner and keep both download buttons consistent. */
.download-client-list {
    gap: 18px;
}

.download-client-card {
    position: relative;
    padding: 22px;
    border-radius: 18px;
    border: 1px solid rgba(84, 173, 255, 0.22);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.035), transparent 85px),
        rgba(1, 11, 24, 0.58);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 14px 36px rgba(0,0,0,0.22);
}

.download-client-card h2 {
    color: #e7f5ff;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-shadow:
        0 2px 8px rgba(0,0,0,0.45),
        0 0 14px rgba(84,173,255,0.16);
}

.download-client-card p {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    padding: 7px 11px;
    border: 1px solid rgba(84, 173, 255, 0.18);
    border-radius: 999px;
    background: rgba(84, 173, 255, 0.075);
    color: #c8dcf0;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.015em;
}

.download-client-card p::before {
    content: "CLIENT";
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* One consistent medium-dark download button style. */
.download-client-card .button,
.download-client-card .button.secondary,
.download-client-card .button.ghost {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    border-radius: 13px;
    border-color: rgba(84, 173, 255, 0.52);
    background:
        linear-gradient(180deg, rgba(25, 118, 218, 0.76), rgba(7, 58, 122, 0.82));
    color: #edf8ff;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        inset 0 -1px 0 rgba(0,0,0,0.28),
        0 10px 24px rgba(0, 74, 180, 0.22);
    text-shadow: 0 1px 8px rgba(0,0,0,0.48);
}

.download-client-card .button:hover,
.download-client-card .button.secondary:hover,
.download-client-card .button.ghost:hover {
    transform: translateY(-1px);
    border-color: rgba(120, 199, 255, 0.82);
    background:
        linear-gradient(180deg, rgba(33, 139, 245, 0.86), rgba(8, 72, 151, 0.9));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.16),
        0 12px 30px rgba(0, 96, 220, 0.28),
        0 0 22px rgba(84, 173, 255, 0.16);
}

.download-client-card .button:active,
.download-client-card .button.secondary:active,
.download-client-card .button.ghost:active {
    transform: translateY(0);
}

/* Download footer links inside the panel. */
.download-client-list + .form-link-box,
.form-link-box {
    border-top-color: rgba(84, 173, 255, 0.14);
}

.form-link-box a {
    color: #88d2ff;
    text-shadow: 0 0 10px rgba(84, 173, 255, 0.24);
}

@media (max-width: 640px) {
    .download-client-card {
        padding: 17px;
    }

    .download-client-card h2 {
        font-size: 21px;
    }

    .download-client-card p {
        font-size: 12px;
    }
}
