/* Classic Progressive — refonte Aion2-style */

:root {
    color-scheme: dark;
    --font: "Outfit", system-ui, sans-serif;
    --serif: "Cormorant Garamond", Georgia, serif;
    --gold: linear-gradient(180deg, #efd7a0, #b8892b);
    --on-gold: #1a1408;
    --ease: cubic-bezier(0.77, 0, 0.175, 1);
    --gnb-h: 56px;
    --bg: #08080c;
    --surface: #121218;
    --surface2: #1a1a22;
    --ink: #f2efe8;
    --mute: #a09a90;
    --accent: #c9a248;
    --accent-hi: #efd7a0;
    --line: rgba(201, 162, 72, 0.28);
    --ok: #3dcc7a;
    --off: #e0554a;
    --gnb-bg: rgba(8, 8, 12, 0.72);
    --hero-ink: #f4f1ea;
    --hero-mute: #d8d0c4;
}

*, *::before, *::after { box-sizing: border-box; }
html {
    font-size: clamp(16.5px, 0.35vw + 15.5px, 18.5px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
html, body { margin: 0; padding: 0; }
body {
    font: 1rem/1.55 var(--font);
    color: var(--ink);
    background: var(--bg);
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent-hi); text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; }
button { font-family: inherit; }

.kicker {
    margin: 0 0 8px;
    font: 700 0.8rem/1 var(--font);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-hi);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    border: 1px solid transparent;
    font: 650 0.9rem/1 var(--font);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter 0.2s, border-color 0.2s;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.82rem; }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { filter: brightness(1.06); color: var(--on-gold); }
.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--line);
    color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hi); }
.btn-full { width: 100%; }

/* ─── GNB ─── */
.gnb {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 300;
    height: var(--gnb-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    background: var(--gnb-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    touch-action: manipulation;
}
.gnb__left, .gnb__right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}
.gnb__right { gap: 14px; }
.gnb__lang {
    flex-shrink: 0;
}
.gnb__lang select {
    background: rgba(8, 8, 12, 0.55);
    border: 1px solid rgba(201, 162, 72, 0.35);
    color: var(--text);
    font: inherit;
    font-size: 0.78rem;
    padding: 4px 8px;
    border-radius: 6px;
    max-width: 7.5rem;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.gnb__logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.gnb__mark {
    width: 34px; height: 34px;
    display: block;
    border-radius: 8px;
    object-fit: contain;
    background: transparent;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(201, 162, 72, 0.35), 0 0 12px rgba(201, 162, 72, 0.18);
}
.gnb__name {
    font-family: var(--serif);
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    font-weight: 700;
}
.gnb__links, .gnb__sections { display: none; }
.gnb__user { font-size: 0.9rem; color: var(--mute); }
.gnb__menu {
    width: 38px; height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center; gap: 5px;
    cursor: pointer;
}
.gnb__menu span { display: block; width: 18px; height: 2px; background: var(--ink); }
.gnb__mute {
    position: relative;
    flex-shrink: 0;
    width: 38px; height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
    cursor: pointer;
    display: grid;
    place-items: center;
}
.gnb__mute:hover { border-color: var(--accent); color: var(--accent-hi); }
.gnb__mute svg { width: 18px; height: 18px; }
.gnb__mute-off { display: none; }
.gnb__mute.is-muted .gnb__mute-on { display: none; }
.gnb__mute.is-muted .gnb__mute-off { display: block; }
.gnb__mute.is-blocked {
    animation: cp-mute-pulse 1.6s ease-in-out infinite;
}
@keyframes cp-mute-pulse {
    50% { border-color: var(--accent-hi); color: var(--accent-hi); }
}
.cp-ambient-media,
#cp-ambient-media {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 220px;
    height: 160px;
    opacity: 0.02;
    pointer-events: none;
    z-index: 0;
    border: 0;
}

.live {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 0.78rem;
    color: var(--mute);
    letter-spacing: 0.01em;
}
.live__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink);
    font-weight: 600;
    white-space: nowrap;
}
.live__sep {
    width: 1px;
    height: 12px;
    background: rgba(255,255,255,0.18);
    flex-shrink: 0;
}
.live__meta { white-space: nowrap; }
.live__specs {
    display: none;
    white-space: nowrap;
}
.live__specs b {
    font-family: var(--serif);
    font-size: 0.95rem;
    color: var(--accent-hi);
    font-weight: 700;
    margin: 0 2px 0 8px;
}
.live__specs b:first-child { margin-left: 0; }
.status-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #6b6870;
    box-shadow: 0 0 0 3px rgba(107,104,112,0.2);
    flex-shrink: 0;
}
.status-dot.checking { background: #6b6870; box-shadow: 0 0 0 3px rgba(107,104,112,0.2); }
.status-dot.online { background: var(--ok); box-shadow: 0 0 0 3px rgba(61,204,122,0.2); }
.status-dot.offline { background: var(--off); box-shadow: 0 0 0 3px rgba(224,85,74,0.2); }

@media (min-width: 1180px) {
    .live__specs { display: inline; }
}
@media (max-width: 820px) {
    .live__meta, .live__sep--wide, .live__specs { display: none; }
}

/* Real desktop pointer only — touch devices keep the mobile chrome even if width ≥ 960 */
@media (min-width: 960px) and (hover: hover) and (pointer: fine) {
    .gnb {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        padding: 0 24px;
        gap: 12px;
    }
    .gnb__left {
        grid-column: 1;
        justify-self: start;
    }
    .gnb__links {
        grid-column: 2;
        justify-self: center;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 4px;
        min-width: 0;
    }
    .gnb__right {
        grid-column: 3;
        justify-self: end;
    }
    .gnb__menu { display: none; }
    .gnb__link,
    .gnb__drop-toggle,
    .gnb__sections button {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 8px 12px;
        border: none;
        background: none;
        color: var(--mute);
        font: 600 0.9rem/1 var(--font);
        border-radius: 6px;
        cursor: pointer;
        transition: color 0.2s, background 0.2s;
        white-space: nowrap;
        text-decoration: none;
    }
    .gnb__link:hover,
    .gnb__drop-toggle:hover,
    .gnb__sections button:hover { color: var(--accent-hi); }
    .gnb__link.is-active,
    .gnb__drop.is-active > .gnb__drop-toggle,
    .gnb__sections button.is-active {
        color: var(--accent-hi);
        background: rgba(201, 162, 72, 0.1);
    }
    .gnb__drop { position: relative; }
    .gnb__drop-caret {
        width: 10px;
        height: 10px;
        opacity: 0.75;
        transition: transform 0.2s;
    }
    .gnb__drop.is-open .gnb__drop-caret { transform: rotate(180deg); }
    .gnb__drop-menu {
        display: none;
        position: absolute;
        top: calc(100% + 6px);
        left: 50%;
        transform: translateX(-50%);
        min-width: 11rem;
        padding: 6px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 10px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
        z-index: 320;
    }
    .gnb__drop.is-open .gnb__drop-menu { display: flex; flex-direction: column; gap: 2px; }
    .gnb__drop-menu a {
        display: block;
        padding: 9px 12px;
        border-radius: 6px;
        color: var(--mute);
        font: 600 0.86rem/1.2 var(--font);
        text-decoration: none;
        white-space: nowrap;
    }
    .gnb__drop-menu a:hover,
    .gnb__drop-menu a.is-active {
        color: var(--accent-hi);
        background: rgba(201, 162, 72, 0.1);
    }
    .cp-landing .gnb__sections,
    .cp-landing .gnb__links { display: none; }
}

@media (min-width: 960px) and (max-width: 1280px) and (hover: hover) and (pointer: fine) {
    .gnb__link,
    .gnb__drop-toggle,
    .gnb__sections button {
        padding: 8px 9px;
        font-size: 0.82rem;
    }
    .gnb__right { gap: 10px; }
    .gnb__user { display: none; }
}

/* Mobile menu landing */
.cp-landing.gnb-open .gnb__sections {
    display: flex; flex-direction: column;
    position: fixed; top: var(--gnb-h); left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 12px;
    z-index: 299;
}
.cp-landing.gnb-open .gnb__sections button {
    width: 100%; text-align: left;
    padding: 12px;
    border: none; background: none;
    color: var(--mute);
    font: 600 1.05rem var(--font);
    cursor: pointer;
    border-radius: 6px;
}
.cp-landing.gnb-open .gnb__sections button.is-active { color: var(--accent-hi); background: rgba(201,162,72,0.08); }

/* Inner pages: slide-down nav on mobile / touch */
.cp-page.gnb-open .gnb__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: fixed;
    top: var(--gnb-h);
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--gnb-h));
    overflow-y: auto;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 12px;
    z-index: 299;
    -webkit-overflow-scrolling: touch;
}
.cp-page.gnb-open .gnb__link {
    width: 100%;
    text-align: left;
    padding: 12px;
    border: none;
    background: none;
    color: var(--mute);
    font: 600 1.05rem var(--font);
    border-radius: 6px;
    text-decoration: none;
}
.cp-page.gnb-open .gnb__link.is-active {
    color: var(--accent-hi);
    background: rgba(201, 162, 72, 0.08);
}
.cp-page.gnb-open .gnb__drop { display: flex; flex-direction: column; gap: 2px; }
.cp-page.gnb-open .gnb__drop-toggle {
    width: 100%;
    text-align: left;
    padding: 8px 12px 4px;
    border: none;
    background: none;
    color: var(--accent-hi);
    font: 700 0.72rem/1 var(--font);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 6px;
    pointer-events: none;
}
.cp-page.gnb-open .gnb__drop-caret { display: none; }
.cp-page.gnb-open .gnb__drop-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: static;
    transform: none;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.cp-page.gnb-open .gnb__drop-menu a {
    width: 100%;
    text-align: left;
    padding: 10px 12px 10px 18px;
    border: none;
    background: none;
    color: var(--mute);
    font: 600 1rem var(--font);
    border-radius: 6px;
    text-decoration: none;
}
.cp-page.gnb-open .gnb__drop-menu a.is-active {
    color: var(--accent-hi);
    background: rgba(201, 162, 72, 0.08);
}

/* ─── Side nav (landing desktop) ─── */
.side-nav, .slide-dots { display: none; }

@media (min-width: 960px) and (hover: hover) and (pointer: fine) {
    .side-nav {
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: fixed;
        left: 0;
        top: var(--gnb-h);
        bottom: 0;
        width: 176px;
        z-index: 200;
        padding: 0 0 24px 36px;
    }
    .side-nav__track {
        position: relative;
        padding-left: 16px;
        border-left: 1px solid var(--line);
        display: flex; flex-direction: column; gap: 2px;
    }
    .side-nav__dot {
        position: absolute; left: -5px;
        width: 9px; height: 9px; border-radius: 50%;
        background: var(--accent);
        box-shadow: 0 0 10px var(--accent);
        transition: top 0.5s var(--ease);
    }
    .side-nav__track button {
        padding: 8px 0 8px 10px;
        border: none; background: none;
        text-align: left;
        font: 500 0.88rem var(--font);
        color: var(--mute);
        cursor: pointer;
        transition: color 0.25s;
    }
    .side-nav__track button.is-active { color: var(--accent-hi); font-weight: 600; }
    .side-nav__track button:hover { color: var(--accent-hi); }
}

@media (max-width: 959.98px), (hover: none) and (pointer: coarse) {
    .slide-dots {
        display: flex; flex-direction: column; gap: 8px;
        position: fixed; right: 12px; top: 50%;
        transform: translateY(-50%); z-index: 200;
    }
    .slide-dots button {
        width: 8px; height: 8px; padding: 0;
        border: none; border-radius: 50%;
        background: rgba(201, 162, 72, 0.3);
        cursor: pointer;
        transition: transform 0.2s, background 0.2s;
    }
    .slide-dots button.is-active {
        background: var(--accent);
        transform: scale(1.4);
        box-shadow: 0 0 8px var(--accent);
    }
}

/* ─── Slides (landing) — view transition, pas de scroll ─── */
html:has(.cp-landing),
.cp-landing {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    overscroll-behavior: none;
    touch-action: none;
}

.slides {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.slides__track {
    position: relative;
    height: 100%;
    width: 100%;
}

.slides.is-animating { pointer-events: none; }

.panel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.035);
    transition:
        opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.8s;
    z-index: 1;
}

.panel.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
    z-index: 2;
}

.panel__inner {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: calc(var(--gnb-h) + 40px) 24px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    box-sizing: border-box;
}
.panel__inner > * {
    width: min(780px, 100%);
    margin-left: auto;
    margin-right: auto;
    flex-shrink: 0;
}

@media (min-width: 960px) {
    .panel__inner {
        padding: calc(var(--gnb-h) + 56px) 48px 56px;
    }
}

/* Panel HOME */
.panel--home { color: var(--hero-ink); }

.panel--home .panel__bg {
    position: absolute; inset: 0; z-index: 0;
}
.panel--home video {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 55% 25%;
}
.panel--home .panel__shade {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(8,8,12,0.2) 0%, rgba(8,8,12,0.75) 70%),
        linear-gradient(180deg, rgba(8,8,12,0.3) 0%, rgba(8,8,12,0.85) 100%);
}
.panel--home .panel__content {
    position: relative; z-index: 2;
    height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: calc(var(--gnb-h) + 16px) 32px 72px;
    max-width: 52rem;
    margin: 0 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}
.panel--home h1 {
    font-size: clamp(2.2rem, 5.2vw, 4.4rem);
    line-height: 0.95;
    margin-bottom: 16px;
    text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.panel--home .lead {
    max-width: 46rem;
    margin: 0 0 28px;
    color: var(--hero-mute);
    font-size: clamp(1.05rem, 1.6vw, 1.4rem);
    line-height: 1.55;
}
.panel--home .cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.panel--home .btn-ghost {
    background: rgba(0,0,0,0.45);
    border-color: rgba(239,215,160,0.4);
    color: #fffaf0;
}

.scroll-hint {
    position: absolute; bottom: 28px; left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--hero-mute);
    animation: bob 2.5s ease-in-out infinite;
    pointer-events: none;
    transition: opacity 0.4s;
}
@keyframes bob {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* Scene panels — embedded content, no frames */
.panel--scene {
    background:
        linear-gradient(180deg, rgba(8,8,12,0.72) 0%, rgba(8,8,12,0.82) 100%),
        url('/background.webp') center / cover no-repeat;
}

.panel__head {
    margin: 0 auto 36px;
    max-width: 46rem;
    text-align: center;
}
.panel__head h2 { font-size: clamp(1.55rem, 2.8vw, 2.25rem); margin-bottom: 8px; }
.panel__head p { margin: 0; color: var(--mute); font-size: 1.05rem; }

.season-line {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 960px) { .season-line { grid-template-columns: repeat(8, 1fr); } }
.season-line li {
    padding: 20px 18px 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 960px) {
    .season-line li {
        padding: 22px 20px 0 0;
        border-bottom: 0;
        border-right: 1px solid rgba(255,255,255,0.1);
        text-align: center;
    }
    .season-line li:last-child { border-right: 0; padding-right: 0; }
}
.season-line .current span { color: var(--accent-hi); }
.season-line strong {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 4px;
}
.season-line span {
    display: block;
    font-family: var(--serif);
    font-size: clamp(1.35rem, 1.8vw, 1.7rem);
    line-height: 1.1;
}
.season-line em {
    display: block;
    font-style: normal;
    font-size: 0.78rem;
    color: var(--mute);
    margin-top: 4px;
}
.season-line .upcoming { opacity: 0.45; }

.feature-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px 36px;
}
@media (min-width: 720px) {
    .feature-row { grid-template-columns: 1fr 1fr; }
}
.feature h3 { font-size: 1.25rem; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--mute); font-size: 0.95rem; }
.feature .num {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--accent);
    display: block;
    margin-bottom: 4px;
}
.feature--cta { padding-top: 4px; }
.feature--cta .btn { margin-top: 14px; }
.feature-row--tight {
    margin-top: 8px;
    gap: 18px 28px;
}
.panel__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.split {
    display: grid;
    gap: 40px;
    width: 100%;
}
@media (min-width: 960px) {
    .split { grid-template-columns: 1.2fr 0.8fr; gap: 72px; align-items: start; }
}
.split h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); margin-bottom: 8px; }
.split__lead { margin: 0 0 18px; color: var(--mute); }

.news-row {
    display: grid;
    gap: 28px 36px;
}
@media (min-width: 960px) { .news-row { grid-template-columns: repeat(3, 1fr); } }
.news-item h3 { font-size: 1.2rem; margin-bottom: 6px; }
.news-item p { margin: 0; color: var(--mute); font-size: 0.95rem; }
.news-item__meta { font-size: 0.78rem !important; letter-spacing: 0.04em; margin-bottom: 8px !important; color: var(--accent) !important; }

.races {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
    width: auto !important;
}
.races figure {
    margin: 0;
    width: 108px;
    flex: 0 0 108px;
    text-align: center;
}
.races img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: contain;
    object-position: center bottom;
    background: transparent;
}
.races figcaption {
    font-size: 0.82rem;
    text-align: center;
    margin-top: 8px;
    font-weight: 500;
    color: var(--ink);
}

.world-tags {
    margin: 28px auto 0;
    text-align: center;
}
.world-tags .chips {
    justify-content: center;
}

.chips {
    display: flex; flex-wrap: wrap; gap: 8px;
    list-style: none; margin: 18px 0 0; padding: 0;
}
.chips li {
    padding: 0;
    border: 0;
    border-radius: 0;
    font-size: 0.92rem;
    background: none;
    color: var(--ink);
}
.chips li::before {
    content: "";
    display: inline-block;
    width: 5px; height: 5px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--accent);
    vertical-align: middle;
}
.chips.muted { margin-top: 10px; }
.chips.muted li { color: var(--mute); }
.chips.muted li::before { background: rgba(255,255,255,0.28); }

.panel__foot {
    margin-top: auto; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex; flex-wrap: wrap; gap: 12px;
    justify-content: space-between; align-items: center;
    font-size: 0.88rem; color: var(--mute);
}
.panel__foot nav { display: flex; gap: 14px; }
.panel__foot a { color: var(--mute); font-size: 0.88rem; }
.panel__foot a:hover { color: var(--accent-hi); }

.empty { text-align: center; color: var(--mute); padding: 32px; }

.cards { display: grid; gap: 16px; }
@media (min-width: 960px) {
    .cards--duo { grid-template-columns: 1fr 1fr; }
    .cards--news { grid-template-columns: repeat(3, 1fr); }
}
.card {
    background: rgba(16, 16, 22, 0.72);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 22px;
    backdrop-filter: blur(14px);
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { margin: 0; color: var(--mute); }

/* ─── Inner pages ─── */
.cp-page {
    min-height: 100vh;
    background: var(--bg);
}
.cp-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(8, 8, 12, 0.7) 0%, rgba(8, 8, 12, 0.88) 100%),
        url('/background.webp') center / cover no-repeat;
}
.cp-page .page,
.cp-page .page-foot {
    position: relative;
    z-index: 1;
}

.page {
    padding: calc(var(--gnb-h) + 32px) 24px 48px;
    max-width: 1180px;
    margin: 0 auto;
}

.page-hero {
    display: flex;
    justify-content: center;
    margin: 0 0 36px;
}
.page-hero__frame {
    position: relative;
    width: min(640px, 100%);
    text-align: center;
    padding: 28px 28px 26px;
    background:
        linear-gradient(180deg, rgba(26, 26, 34, 0.92), rgba(12, 12, 18, 0.88));
    border: 1px solid var(--line);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        0 18px 40px rgba(0, 0, 0, 0.35);
}
.page-hero__frame::before,
.page-hero__frame::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 72, 0.55), transparent);
    pointer-events: none;
}
.page-hero__frame::before { top: 10px; }
.page-hero__frame::after { bottom: 10px; }
.page-hero__ornament {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--accent);
    border-style: solid;
    pointer-events: none;
}
.page-hero__ornament--tl { top: 6px; left: 6px; border-width: 2px 0 0 2px; }
.page-hero__ornament--tr { top: 6px; right: 6px; border-width: 2px 2px 0 0; }
.page-hero__ornament--bl { bottom: 6px; left: 6px; border-width: 0 0 2px 2px; }
.page-hero__ornament--br { bottom: 6px; right: 6px; border-width: 0 2px 2px 0; }
.page-hero .kicker {
    margin: 0 0 10px;
    display: inline-block;
    padding: 0 4px;
}
.page-hero h1 {
    font-size: clamp(1.7rem, 4vw, 2.45rem);
    line-height: 1.05;
    margin: 0 0 10px;
    color: var(--ink);
}
.page-hero__lead,
.page-hero p:not(.kicker) {
    margin: 0;
    color: var(--mute);
    font-size: 1.02rem;
    line-height: 1.45;
    max-width: 36rem;
    margin-inline: auto;
}
.page-hero__lead strong { color: var(--accent-hi); font-weight: 650; }

.armory-header--compact {
    display: flex;
    justify-content: center;
    margin: -12px 0 28px;
}
.armory-header--compact .character-avatar {
    width: 88px;
    height: 88px;
    border-radius: 10px;
    border: 1px solid var(--line);
    object-fit: cover;
    background: rgba(0, 0, 0, 0.35);
}

/* Auth form titles align with page-hero language */
.auth-form .kicker { text-align: center; }
.auth-form h1 { letter-spacing: 0.01em; }

.page-foot {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--line);
    padding: 24px 20px;
    display: flex; flex-wrap: wrap; gap: 12px;
    justify-content: space-between; align-items: center;
    font-size: 0.95rem; color: var(--mute);
    max-width: 1180px; margin: 0 auto;
}
.page-foot nav { display: flex; gap: 16px; }
.page-foot a { color: var(--mute); }

/* Auth */
.auth-wrap {
    min-height: calc(100vh - var(--gnb-h) - 100px);
    display: grid; place-items: center;
}
.auth-form { width: min(440px, 100%); }
.auth-form h1 { text-align: center; font-size: clamp(1.8rem, 4vw, 2.2rem); margin-bottom: 4px; }
.auth-form .sub { text-align: center; color: var(--mute); margin: 0 0 20px; font-size: 1.05rem; }
.auth-form label { display: block; margin: 12px 0 4px; font-size: 0.88rem; color: var(--mute); }
.auth-form input {
    width: 100%; padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font: 1.05rem var(--font);
}
.auth-form input:focus { outline: none; border-color: var(--accent); }
.auth-form .btn { margin-top: 20px; }
.auth-form .msg { text-align: center; min-height: 1.2em; margin-top: 10px; font-size: 0.95rem; }
.auth-form .switch { text-align: center; margin-top: 16px; font-size: 0.98rem; color: var(--mute); }
.auth-form .hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.captcha-img {
    width: 200px;
    height: 64px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #121218;
}
.captcha-refresh { min-height: 40px; }

/* Tables & ranks */
.specs { margin: 0 0 20px; }
.specs div {
    display: flex; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.specs dt { color: var(--mute); }
.specs dd { margin: 0; font-weight: 700; }
.steps { margin: 0 0 16px; padding-left: 18px; color: var(--mute); }
.note {
    padding: 12px 14px;
    border-left: 3px solid var(--accent);
    background: rgba(201,162,72,0.08);
    color: var(--mute); font-size: 0.95rem;
}

.download-launcher { margin-bottom: 24px; }
.card--launcher {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: center;
    padding: 28px 32px;
    border-color: rgba(201, 162, 72, 0.45);
    background:
        linear-gradient(135deg, rgba(201,162,72,0.12) 0%, rgba(16,16,22,0.85) 45%),
        rgba(16, 16, 22, 0.72);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.download-launcher__icon img {
    width: 72px; height: 72px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.card--launcher h2 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    color: var(--accent-hi, #f5e6bc);
}
.download-launcher__lead {
    margin: 0 0 14px;
    color: var(--mute);
    max-width: 52ch;
}
.download-launcher__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    font-size: 0.88rem;
    color: var(--mute);
}
.download-launcher__meta li::before {
    content: '•';
    margin-right: 8px;
    color: var(--accent);
}
.btn--download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 14px 28px;
    font-size: 1rem;
}
@media (max-width: 720px) {
    .card--launcher { grid-template-columns: 1fr; text-align: center; }
    .download-launcher__meta { justify-content: center; }
    .btn--download { width: 100%; }
}

.table-wrap {
    background: rgba(16, 16, 22, 0.72);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(14px);
}
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 14px 16px; text-align: left; font-size: 1rem; }
.table th {
    font-size: 0.8rem; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--accent);
    border-bottom: 1px solid var(--line);
}
.table td { border-bottom: 1px solid rgba(255,255,255,0.05); }
.pill {
    display: inline-block; padding: 3px 8px;
    border-radius: 999px; font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase;
}
.pill.alive { background: rgba(61,204,122,0.15); color: var(--ok); }
.pill.dead { background: rgba(224,85,74,0.15); color: var(--off); }

.castle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin: 8px 0 40px;
}
.castle-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(18, 18, 24, 0.72);
}
.castle-card__media {
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(135deg, rgba(201,162,72,0.12), transparent 55%),
        rgba(8, 8, 12, 0.9);
    display: grid;
    place-items: center;
}
.castle-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.castle-card__media img.is-missing {
    display: none;
}
.castle-card__body {
    padding: 14px 16px 16px;
}
.castle-card__body h2 {
    font-size: 1.25rem;
    margin: 0 0 10px;
}
.castle-card .specs {
    margin: 0;
}

.rank { list-style: none; margin: 0; padding: 0; }
.rank li {
    display: flex; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.rank span { color: var(--accent-hi); font-weight: 700; }

.search-bar { display: flex; margin-top: 16px; }
.search-bar input {
    flex: 1; padding: 14px 16px;
    border: 1px solid var(--line); border-right: 0;
    border-radius: 8px 0 0 8px;
    background: var(--surface); color: var(--ink);
    font-size: 1.05rem;
}
.search-bar button {
    border: 0; padding: 0 20px;
    border-radius: 0 8px 8px 0;
    background: var(--gold); color: var(--on-gold);
    font-weight: 700; font-size: 0.95rem; cursor: pointer;
}

.auth-only, .admin-only { display: none; }
.is-auth .auth-only, .is-admin .admin-only { display: inline-flex; }

@media (min-width: 600px) and (max-width: 959px) {
    .season-line { grid-template-columns: repeat(4, 1fr); }
    .cards--duo,
    .cards--news { grid-template-columns: 1fr 1fr; }
    .panel__inner { padding: calc(var(--gnb-h) + 32px) 28px 32px; }
}

@media (max-width: 959px) {
    .table thead { display: none; }
    .table tr { display: block; padding: 8px 0; }
    .table td { display: flex; justify-content: space-between; gap: 12px; border: 0; }
    .table td::before { content: attr(data-label); color: var(--mute); font-size: 0.8rem; text-transform: uppercase; font-weight: 700; }
    .page { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 599px) {
    .gnb { padding: 0 12px; }
    .gnb__name { display: none; }
    .panel--home .panel__content { padding: calc(var(--gnb-h) + 12px) 16px 80px; }
    .panel--home .cta { flex-direction: column; align-items: stretch; width: min(100%, 320px); }
    .panel--home .cta .btn { width: 100%; }
    .races figure { width: 96px; flex-basis: 96px; }
    .races img { height: 140px; }
    .scroll-hint { display: none; }
}

/* ─── Mobile / tablet landing fixes (also forced for touch via .cp-mobile) ─── */
@media (max-width: 959.98px), (hover: none) and (pointer: coarse) {
    .gnb {
        gap: 8px;
        padding: 0 10px;
    }
    .gnb__left,
    .gnb__right {
        gap: 6px;
        min-width: 0;
    }
    .gnb__right {
        flex-wrap: nowrap;
        overflow: hidden;
    }
    .gnb__user { display: none; }
    .gnb .btn-sm {
        min-height: 34px;
        padding: 0 10px;
        font-size: 0.72rem;
        letter-spacing: 0.03em;
    }
    .live {
        font-size: 0.7rem;
        gap: 6px;
        max-width: 42vw;
    }
    .live__status { min-width: 0; }
    #server-status-text {
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 9ch;
    }

    /* Keep character visible: frame right/upper subject, lighten mid-frame shade */
    .panel--home video {
        object-fit: cover;
        object-position: 68% 22%;
    }
    .panel--home .panel__shade {
        background:
            linear-gradient(180deg, rgba(8, 8, 12, 0.45) 0%, rgba(8, 8, 12, 0.12) 28%, rgba(8, 8, 12, 0.28) 48%, rgba(8, 8, 12, 0.88) 78%, rgba(8, 8, 12, 0.96) 100%);
    }
    .panel--home .panel__content {
        justify-content: flex-end;
        align-items: center;
        text-align: center;
        padding: calc(var(--gnb-h) + 8px) 18px max(24px, env(safe-area-inset-bottom, 0px) + 20px);
        max-width: 100%;
        box-sizing: border-box;
    }
    .panel--home h1 {
        font-size: clamp(1.85rem, 7.5vw, 2.75rem);
        margin-bottom: 10px;
    }
    .panel--home .lead {
        font-size: clamp(0.95rem, 3.4vw, 1.1rem);
        margin: 0 0 16px;
        max-width: 36rem;
    }
    .panel--home .kicker { margin-bottom: 6px; }

    .panel__inner {
        justify-content: flex-start;
        padding: calc(var(--gnb-h) + 20px) 16px 28px;
        -webkit-overflow-scrolling: touch;
    }
    .panel__head { margin-bottom: 20px; }
    .feature-row { gap: 18px; }
    .races {
        justify-content: center;
        gap: 12px;
    }

    .cookie-consent {
        padding: 8px;
    }
    .cookie-consent__panel {
        padding: 14px 14px 12px;
        gap: 10px;
    }
    .cookie-consent__actions .cookie-btn,
    .cookie-consent__actions .btn {
        min-height: 40px;
    }

    .cp-gate__panel {
        padding: 16px 14px;
        min-height: 0;
        max-width: min(40rem, 100%);
    }
    .cp-gate__panel h1 {
        font-size: clamp(1.9rem, 9vw, 3rem);
        margin-bottom: 10px;
    }
    .cp-gate__lead { margin-bottom: 18px; font-size: 0.95rem; }
    .cp-gate__logo { width: 56px; height: 56px; margin-bottom: 10px; }

    .side-nav { display: none !important; }
}

@media (max-width: 959.98px) and (orientation: portrait),
       (hover: none) and (pointer: coarse) and (orientation: portrait) {
    .panel--home video {
        object-position: 72% 18%;
    }
    /* Leave upper ~45% of the frame for the character */
    .panel--home .panel__content {
        min-height: 0;
        max-height: 52%;
        margin-top: auto;
    }
}

/* Phones / tablets in landscape: short viewport — compact hero, no stacking mess */
@media (orientation: landscape) and (max-height: 520px) {
    .panel--home video {
        object-position: 62% 35%;
    }
    .panel--home .panel__shade {
        background:
            linear-gradient(90deg, rgba(8, 8, 12, 0.82) 0%, rgba(8, 8, 12, 0.35) 42%, rgba(8, 8, 12, 0.2) 100%),
            linear-gradient(180deg, rgba(8, 8, 12, 0.35) 0%, transparent 40%, rgba(8, 8, 12, 0.55) 100%);
    }
    .panel--home .panel__content {
        justify-content: center;
        align-items: flex-start;
        text-align: left;
        max-height: none;
        margin-top: 0;
        padding: calc(var(--gnb-h) + 6px) 4% 12px;
        width: min(52%, 28rem);
        margin-right: auto;
        margin-left: 2%;
    }
    .panel--home h1 {
        font-size: clamp(1.35rem, 4.2vh, 2rem);
        margin-bottom: 6px;
    }
    .panel--home .lead {
        font-size: 0.88rem;
        margin: 0 0 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .panel--home .cta {
        flex-direction: row;
        flex-wrap: wrap;
        width: auto;
        gap: 8px;
    }
    .panel--home .cta .btn {
        width: auto;
        min-height: 36px;
        padding: 0 14px;
        font-size: 0.75rem;
    }
    .scroll-hint { display: none; }
    .panel__inner {
        padding: calc(var(--gnb-h) + 12px) 16px 16px;
    }
    .cp-gate__panel h1 { font-size: clamp(1.5rem, 6vh, 2.4rem); }
    .cp-gate__lead { display: none; }
}

@media (max-width: 599px) {
    .panel--home .panel__content {
        padding-left: 14px;
        padding-right: 14px;
        padding-bottom: max(18px, env(safe-area-inset-bottom, 0px) + 14px);
    }
    .panel--home .cta {
        flex-direction: column;
        align-items: stretch;
        width: min(100%, 300px);
    }
    .panel--home .cta .btn { width: 100%; }
    .gnb__mute { width: 34px; height: 34px; }
}

/* Inner pages: avoid GNB button crush on narrow / touch screens */
@media (max-width: 959.98px), (hover: none) and (pointer: coarse) {
    .cp-page .gnb__menu { display: flex; }
    .cp-page .gnb__right .btn-ghost + .btn-gold,
    .cp-page .gnb__right .btn-gold {
        flex-shrink: 0;
    }
    .page-hero h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
    }
    .guide-nav,
    .rankings-nav {
        justify-content: center;
        gap: 6px 10px;
    }
    .guide-nav a,
    .rankings-nav a { font-size: 0.72rem; }
}

/* JS-backed mobile class (covers “Request desktop site” ~980px width on phones) */
html.cp-mobile .side-nav { display: none !important; }
html.cp-mobile .gnb__menu { display: flex; }
html.cp-mobile.cp-landing .gnb__links { display: none; }
html.cp-mobile.cp-page .gnb__links { display: none; }
html.cp-mobile.cp-page.gnb-open .gnb__links { display: flex; }
html.cp-mobile .gnb__user { display: none; }
html.cp-mobile .panel--home video {
    object-fit: cover;
    object-position: 68% 22%;
}
html.cp-mobile.cp-narrow .panel--home video,
html.cp-touch:not(.cp-landscape-short) .panel--home video {
    object-position: 72% 18%;
}
html.cp-mobile .panel--home .panel__content {
    justify-content: flex-end;
}
html.cp-mobile:not(.cp-landscape-short) .panel--home .panel__content {
    max-height: min(58%, 22rem);
    margin-top: auto;
    padding-bottom: max(88px, env(safe-area-inset-bottom, 0px) + 72px);
}
.gnb__guide { flex-shrink: 0; }
html.cp-landscape-short .panel--home .panel__content {
    max-height: none;
    margin-top: 0;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    width: min(52%, 28rem);
    margin-left: 2%;
    margin-right: auto;
}

.cp-gate {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hero-ink);
    text-align: center;
    cursor: default;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.95s ease;
    pointer-events: none;
}
.cp-gate[hidden] { display: none !important; }
.cp-gate__bg,
.cp-gate__shade,
.cp-gate__rays,
.cp-gate__flash { position: absolute; pointer-events: none; }
.cp-gate__bg,
.cp-gate__shade { inset: 0; }
.cp-gate__panel {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}
.cp-gate__bg {
    background: url('/background.webp') center / cover no-repeat;
    transform: scale(1.04);
    transition: transform 2.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s ease;
}
.cp-gate__shade {
    background:
        radial-gradient(ellipse at 50% 42%, rgba(8,8,12,0.25) 0%, rgba(8,8,12,0.82) 72%),
        linear-gradient(180deg, rgba(8,8,12,0.35) 0%, rgba(8,8,12,0.9) 100%);
    transition: opacity 0.8s ease;
}
.cp-gate__rays {
    inset: -45%;
    background:
        conic-gradient(from 0deg at 50% 48%,
            transparent 0deg,
            transparent 28deg,
            rgba(239, 215, 160, 0.14) 44deg,
            transparent 62deg,
            transparent 148deg,
            rgba(239, 215, 160, 0.1) 168deg,
            transparent 192deg,
            transparent 288deg,
            rgba(201, 162, 72, 0.12) 312deg,
            transparent 338deg);
    opacity: 0;
    mix-blend-mode: screen;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 52% 48% at 50% 48%, #000 0%, #000 32%, transparent 70%);
    mask-image: radial-gradient(ellipse 52% 48% at 50% 48%, #000 0%, #000 32%, transparent 70%);
}
.cp-gate__ring {
    position: absolute;
    left: 50%;
    top: 46%;
    width: min(42vw, 340px);
    height: min(42vw, 340px);
    margin: 0;
    transform: translate(-50%, -50%) scale(0.85);
    border-radius: 50%;
    border: 1px solid rgba(239, 215, 160, 0);
    box-shadow: 0 0 40px 2px rgba(201, 162, 72, 0);
    pointer-events: none;
    opacity: 0;
}
.cp-gate__ring--delay {
    width: min(52vw, 420px);
    height: min(52vw, 420px);
    border-style: dashed;
    animation-delay: 0.9s !important;
}
.cp-gate__flash {
    inset: -30%;
    background:
        radial-gradient(circle at 50% 48%,
            rgba(255, 248, 220, 0.9) 0%,
            rgba(239, 215, 160, 0.45) 18%,
            rgba(201, 162, 72, 0.08) 42%,
            transparent 64%);
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 0%, #000 40%, transparent 72%);
    mask-image: radial-gradient(circle at 50% 48%, #000 0%, #000 40%, transparent 72%);
}
.cp-gate__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
    max-width: 40rem;
    min-height: 280px;
    transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease, filter 0.7s ease;
}
.cp-gate__logo {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    margin-bottom: 14px;
    object-fit: contain;
    background: transparent;
    box-shadow: 0 0 0 1px rgba(201, 162, 72, 0.4), 0 0 28px rgba(201, 162, 72, 0.28);
}
.cp-gate__panel h1 {
    font-size: clamp(2.4rem, 7vw, 4.2rem);
    line-height: 0.95;
    margin: 0 0 14px;
    text-shadow: 0 0 0 rgba(239, 215, 160, 0);
    transition: text-shadow 0.6s ease, letter-spacing 1.2s ease;
}
.cp-gate__lead {
    margin: 0 0 28px;
    color: var(--hero-mute);
    font-size: 1.05rem;
    min-height: 1.6em;
}
.cp-gate__lead[hidden] { display: none !important; }
.cp-gate__enter {
    position: relative;
    isolation: isolate;
    min-width: min(100%, 300px);
    min-height: 56px;
    padding: 0 36px;
    border-radius: 4px;
    border: 1px solid rgba(255, 236, 180, 0.55);
    background:
        linear-gradient(180deg, rgba(255, 248, 220, 0.22) 0%, transparent 42%),
        linear-gradient(180deg, #d4b15a 0%, #a67c2a 48%, #7a5618 100%);
    color: #1a1208;
    font: 700 0.92rem/1 var(--font);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(255, 248, 220, 0.35);
    box-shadow:
        0 0 0 1px rgba(90, 60, 12, 0.55),
        0 10px 28px rgba(0, 0, 0, 0.45),
        0 0 32px rgba(201, 162, 72, 0.28),
        inset 0 1px 0 rgba(255, 248, 220, 0.55),
        inset 0 -2px 0 rgba(70, 45, 10, 0.35);
    pointer-events: auto;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}
.cp-gate__enter::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
    pointer-events: none;
    z-index: 0;
}
.cp-gate__enter:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(90, 60, 12, 0.55),
        0 14px 34px rgba(0, 0, 0, 0.5),
        0 0 42px rgba(239, 215, 160, 0.4),
        inset 0 1px 0 rgba(255, 248, 220, 0.65),
        inset 0 -2px 0 rgba(70, 45, 10, 0.35);
}
.cp-gate__enter:hover::before { transform: translateX(120%); }
.cp-gate__enter:active {
    transform: translateY(1px);
    filter: brightness(0.98);
}
.cp-gate__enter:focus-visible {
    outline: 2px solid rgba(239, 215, 160, 0.85);
    outline-offset: 3px;
}
.cp-gate.is-loading { cursor: wait; }
.cp-gate.is-loading .cp-gate__enter {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.cp-gate.is-loading .cp-gate__bg {
    transform: scale(1.1);
    filter: saturate(1.12) brightness(1.06);
}
.cp-gate.is-loading .cp-gate__shade { opacity: 0.82; }
.cp-gate.is-loading .cp-gate__rays {
    opacity: 1;
    animation: cp-gate-spin 18s linear infinite;
}
.cp-gate.is-loading .cp-gate__ring {
    opacity: 1;
    border-color: rgba(239, 215, 160, 0.28);
    box-shadow: 0 0 50px 4px rgba(201, 162, 72, 0.14);
    animation: cp-gate-ring 2.6s ease-out infinite;
}
.cp-gate.is-loading .cp-gate__panel h1 {
    letter-spacing: 0.03em;
    text-shadow:
        0 0 22px rgba(239, 215, 160, 0.5),
        0 0 48px rgba(201, 162, 72, 0.28);
}
.cp-gate__loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: min(100%, 320px);
    margin-top: 8px;
    animation: cp-gate-loader-in 0.55s ease both;
}
.cp-gate__loader[hidden] { display: none !important; }
.cp-gate__stage {
    margin: 0;
    min-height: 1.4em;
    font: 650 0.72rem/1.35 var(--font);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-hi);
    opacity: 0.9;
    text-shadow: 0 0 18px rgba(239, 215, 160, 0.25);
}
.cp-gate__progress {
    position: relative;
    width: 100%;
    height: 4px;
    border-radius: 99px;
    background: rgba(8, 8, 12, 0.55);
    overflow: hidden;
    border: 1px solid rgba(201, 162, 72, 0.32);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.35),
        0 0 24px rgba(201, 162, 72, 0.18),
        inset 0 1px 2px rgba(0, 0, 0, 0.55);
}
.cp-gate__progress::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(239, 215, 160, 0.08), transparent);
    pointer-events: none;
}
.cp-gate__fill {
    height: 100%;
    width: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, #6e4e14 0%, #c9a248 42%, #efd7a0 78%, #fff6d6 100%);
    box-shadow:
        0 0 12px rgba(239, 215, 160, 0.7),
        0 0 22px rgba(201, 162, 72, 0.35);
    transition: width 0.08s linear;
    position: relative;
}
.cp-gate__fill::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 10px;
    height: calc(100% + 2px);
    border-radius: 99px;
    background: rgba(255, 248, 220, 0.95);
    box-shadow: 0 0 14px 4px rgba(239, 215, 160, 0.75);
    opacity: 0.9;
}
.cp-gate.is-reveal {
    opacity: 0;
    pointer-events: none;
}
.cp-gate.is-reveal .cp-gate__flash {
    animation: cp-gate-flash 0.9s ease-out forwards;
}
.cp-gate.is-reveal .cp-gate__panel {
    opacity: 0;
    transform: scale(1.06);
    filter: blur(6px);
}
.cp-gate.is-reveal .cp-gate__bg {
    transform: scale(1.16);
    filter: brightness(1.2) saturate(1.12);
}
.cp-gate.is-reveal .cp-gate__shade { opacity: 0; }
.cp-gate.is-reveal .cp-gate__rays { opacity: 0; animation: none; }
.cp-gate.is-reveal .cp-gate__ring {
    animation: cp-gate-burst 0.85s ease-out forwards;
}
@keyframes cp-gate-spin {
    to { transform: rotate(360deg); }
}
@keyframes cp-gate-ring {
    0% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1.28); opacity: 0; }
}
@keyframes cp-gate-burst {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.55); opacity: 0; }
}
@keyframes cp-gate-flash {
    0% { opacity: 0; }
    22% { opacity: 0.85; }
    100% { opacity: 0; }
}
@keyframes cp-gate-loader-in {
    from { opacity: 0; transform: translateY(10px) scale(0.96); }
    to { opacity: 1; transform: none; }
}
.gnb,
.side-nav,
.slide-dots {
    transition: opacity 0.9s ease;
}
body.is-gated {
    overflow: hidden;
}
body.is-gated .gnb,
body.is-gated .side-nav,
body.is-gated .slide-dots {
    opacity: 0;
    pointer-events: none;
}
html.cp-entered #cp-gate { display: none !important; }
html.cp-entered body.is-gated { overflow: auto; }
html.cp-entered body.is-gated .gnb,
html.cp-entered body.is-gated .side-nav,
html.cp-entered body.is-gated .slide-dots {
    opacity: 1;
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .panel {
        transition: none;
        transform: none;
    }
    .cp-landing { overflow: auto; height: auto; touch-action: auto; }
    .slides { position: static; overflow: visible; }
    .panel { position: relative; opacity: 1; visibility: visible; pointer-events: auto; height: auto; min-height: 80vh; }
    .cp-gate.is-loading .cp-gate__rays,
    .cp-gate.is-loading .cp-gate__ring,
    .cp-gate.is-reveal .cp-gate__flash,
    .cp-gate__loader { animation: none; }
}

.cookie-policy.prose {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 0 48px;
}
.cookie-policy .lead {
    color: var(--mute);
    margin: 10px 0 28px;
}
.cookie-policy h2 {
    font-size: 1.35rem;
    margin: 28px 0 10px;
}
.cookie-policy p, .cookie-policy li {
    color: var(--mute);
}
.cookie-policy__table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 8px;
    font-size: 0.9rem;
}
.cookie-policy__table th,
.cookie-policy__table td {
    border: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}
.cookie-policy__table th {
    color: var(--accent-hi);
    background: rgba(201, 162, 72, 0.08);
}
.cookie-policy__table code { color: var(--accent-hi); }

/* ─── Guide / info pages ─── */
.guide-nav,
.rankings-nav,
.guide-body {
    max-width: 860px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.guide-nav,
.rankings-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    margin-top: 0;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.guide-nav a,
.rankings-nav a {
    color: var(--mute);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.guide-nav a:hover,
.guide-nav a.is-active,
.rankings-nav a:hover,
.rankings-nav a.is-active { color: var(--accent-hi); }
.guide-body { max-width: 860px; }
.guide-intro,
.guide-body p {
    color: var(--mute);
    margin: 0 0 16px;
}
.guide-h2 {
    font-size: 1.35rem;
    margin: 28px 0 12px;
}
.guide-list {
    margin: 0 0 16px;
    padding-left: 1.2rem;
    color: var(--mute);
}
.guide-list li + li { margin-top: 6px; }
.guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px;
    font-size: 0.92rem;
}
.guide-table th,
.guide-table td {
    border: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}
.guide-table th {
    color: var(--accent-hi);
    background: rgba(201, 162, 72, 0.08);
    font-weight: 650;
    white-space: nowrap;
}
.guide-table td { color: var(--mute); }
.guide-foot { margin-top: 28px; color: var(--mute); font-size: 0.9rem; }
.hardcore-rank-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.hardcore-rank-meta small {
    color: var(--mute);
    font-weight: 500;
    font-size: 0.82rem;
}
.ladder-cache-note {
    color: var(--mute);
    font-size: 0.88rem;
    margin: 0 0 18px;
}
.hardcore-board { margin-bottom: 24px; }
.hardcore-rank-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.hardcore-rank-num {
    color: var(--mute);
    font-size: 0.82rem;
    min-width: 2rem;
}
.hc-status {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
}
.hc-status--alive {
    color: #0a7a2e;
    border-color: rgba(10, 122, 46, 0.35);
    background: rgba(10, 122, 46, 0.08);
}
.hc-status--dead {
    color: #888;
    border-color: rgba(136, 136, 136, 0.35);
    background: rgba(136, 136, 136, 0.1);
}
.rank--hardcore li { align-items: flex-start; }
.guide-cards .card--link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s;
}
.guide-cards .card--link:hover { border-color: var(--accent); }
.guide-cards .card--link p { margin: 8px 0 0; color: var(--mute); font-size: 0.9rem; }
.guide-cards .card--locked {
    border-style: dashed;
    opacity: 0.88;
}
.faq-item {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.02);
}
.faq-item summary {
    cursor: pointer;
    font-weight: 650;
    color: var(--ink);
}
.faq-item p { margin: 10px 0 0; }
.roadmap-line {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}
.roadmap-line__item {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
    background: rgba(255,255,255,0.02);
}
.roadmap-line__item.is-current {
    border-color: rgba(201, 162, 72, 0.55);
    box-shadow: 0 0 0 1px rgba(201, 162, 72, 0.15);
}
.roadmap-line__item.is-past { opacity: 0.78; }
.roadmap-line__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.roadmap-line__badge { color: var(--accent-hi); font-weight: 700; }
.roadmap-line__window { color: var(--mute); }
.roadmap-line__sub,
.roadmap-line__detail,
.roadmap-line__stats { margin: 6px 0 0; color: var(--mute); font-size: 0.92rem; }
.roadmap-line__link { margin-top: 10px; }
.lore-block {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}
.lore-block.upcoming { opacity: 0.75; }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.event-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
    background: rgba(255,255,255,0.02);
}
.event-card h3 { margin: 4px 0 8px; }
.event-card__when { margin: 0; font-size: 0.86rem; color: var(--mute); }
.ladder-reset { margin: 0 0 6px; color: var(--accent-hi); font-size: 0.86rem; font-weight: 650; }
.ladder-period { margin: 0 0 12px; color: var(--mute); font-size: 0.86rem; }


/* —— News article —— */
.news-article {
    width: min(720px, 100%);
    margin: 0 auto;
    padding: clamp(12px, 3vw, 28px) 0 clamp(28px, 6vw, 56px);
    box-sizing: border-box;
}
.news-article h1 {
    margin: 0.2em 0 0.45em;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.55rem, 4.5vw, 2.35rem);
    line-height: 1.15;
    font-weight: 700;
    color: #fff;
    overflow-wrap: anywhere;
}
.news-article__meta {
    margin: 0 0 1.35rem;
    color: var(--mute, #9a948c);
    font-size: 0.92rem;
}
.news-article__body {
    margin: 0;
    color: var(--text, #f2eee6);
    font-size: clamp(0.95rem, 2.6vw, 1.05rem);
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.news-article__body p {
    margin: 0 0 1.15em;
}
.news-article__body p:last-child {
    margin-bottom: 0;
}
.news-article__heading {
    margin: 1.55em 0 0.65em;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: clamp(1.05rem, 3vw, 1.22rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    line-height: 1.3;
}
.news-article__heading:first-child {
    margin-top: 0.35em;
}
.news-article__leadline {
    margin: 0 0 0.35em !important;
    font-weight: 700;
    color: #fff;
}
.news-article__body strong {
    font-weight: 700;
    color: #fff;
}
.news-article__back {
    margin-top: 2rem;
}
.news-item h3 a {
    color: inherit;
    text-decoration: none;
}
.news-item h3 a:hover {
    color: var(--accent, #d4c4a0);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .news-article {
        padding-left: 2px;
        padding-right: 2px;
    }
    .news-article__body {
        line-height: 1.65;
    }
    .news-article__heading {
        margin-top: 1.35em;
    }
}

/* —— Premium —— */
.gnb__premium-link {
    color: var(--accent-hi);
    font: 600 0.86rem/1 var(--font);
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 2px;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.gnb__premium-link:hover {
    color: #fff;
    border-bottom-color: rgba(201, 162, 72, 0.55);
}
.gnb__link--premium {
    color: var(--accent-hi);
}
.gnb__link--premium.is-active,
.gnb__link--premium:hover {
    color: #fff;
}

.account-premium-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
}
.account-premium-row__link {
    margin-left: auto;
    font-weight: 600;
    color: var(--accent-hi);
    text-decoration: none;
}
.account-premium-row__link:hover {
    color: #fff;
    text-decoration: underline;
}

.premium-page { max-width: 820px; margin: 0 auto; }
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 10px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.premium-benefits-grid li {
    padding: 10px 12px 10px 34px;
    border-radius: 8px;
    background: rgba(201, 162, 72, 0.08);
    border: 1px solid rgba(201, 162, 72, 0.2);
    position: relative;
    font-size: 0.94rem;
}
.premium-benefits-grid li::before {
    content: "✓";
    position: absolute;
    left: 12px;
    top: 10px;
    color: var(--accent-hi);
    font-weight: 700;
}

.premium-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 12px;
    margin: 0 0 14px;
}
.premium-plan-card {
    position: relative;
    padding: 18px 14px;
    border-radius: 12px;
    text-align: center;
    background: var(--surface2);
    border: 1px solid var(--line);
}
.premium-plan-card--popular {
    border-color: rgba(201, 162, 72, 0.65);
    box-shadow: 0 8px 24px rgba(201, 162, 72, 0.18);
}
.premium-plan-card__tag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 10px;
    border-radius: 999px;
    font: 700 0.72rem/1 var(--font);
    background: var(--gold);
    color: var(--on-gold);
    white-space: nowrap;
}
.premium-plan-card__tag--best { background: linear-gradient(180deg, #f5e6b8, #c9a248); }
.premium-plan-card__name {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.premium-plan-card__price {
    display: block;
    font: 700 1.35rem/1 var(--serif);
    color: var(--accent-hi);
}

.premium-badge {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(201, 162, 72, 0.12);
    border: 1px solid rgba(201, 162, 72, 0.3);
}
.premium-badge--active {
    background: rgba(61, 204, 122, 0.12);
    border-color: rgba(61, 204, 122, 0.35);
    color: var(--ok);
}
.premium-badge--suspended {
    background: rgba(224, 85, 74, 0.12);
    border-color: rgba(224, 85, 74, 0.35);
    color: var(--off);
}

.premium-guest-checkout {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.premium-guest-checkout p { margin: 0; color: var(--mute); flex: 1; min-width: 12rem; }

.premium-checkout__submit {
    margin-top: 8px;
    width: 100%;
    max-width: 20rem;
}

@media (max-width: 640px) {
    .account-premium-row__link { margin-left: 0; width: 100%; }
}

/* Season transition overlay (global, all visitors) */
body.is-season-transition { overflow: hidden; }
body.is-season-transition .page,
body.is-season-transition .slides,
body.is-season-transition .gnb { pointer-events: none; user-select: none; }
.cp-season-transition {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 24px;
}
.cp-season-transition[hidden] { display: none !important; }
.cp-season-transition__shade {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 8, 0.92);
    backdrop-filter: blur(8px);
}
.cp-season-transition__panel {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    text-align: center;
    padding: 28px 24px 32px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(24, 22, 18, 0.98), rgba(10, 10, 14, 0.98));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.cp-season-transition__logo { margin-bottom: 12px; }
.cp-season-transition__msg {
    margin: 0 0 18px;
    color: var(--mute);
    min-height: 1.5em;
}
.cp-season-transition__progress {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    border: 1px solid rgba(201, 162, 72, 0.25);
}
.cp-season-transition__fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--gold);
    transition: width 0.45s ease;
}
.cp-season-transition__pct {
    margin: 10px 0 0;
    font-weight: 600;
    color: var(--accent-hi);
}
.cp-season-transition__hint {
    margin: 14px 0 0;
    font-size: 0.88rem;
    color: var(--mute);
}
