@media (max-width: 980px) {
    :root {
        --header-h: 72px;
    }

    .site-header__inner {
        grid-template-columns: auto auto 1fr;
        gap: 16px;
    }

    .brand {
        width: 110px;
    }

    .brand img {
        width: 110px;
    }

    .nav-toggle {
        display: grid;
        width: 42px;
        height: 42px;
        place-content: center;
        gap: 4px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: rgba(255,255,255,.03);
        cursor: pointer;
    }

    .nav-toggle span:not(.sr-only) {
        width: 18px;
        height: 2px;
        background: var(--text);
    }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 20px;
        right: 20px;
        display: none;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: rgba(8,9,13,.97);
        box-shadow: var(--shadow-lg);
        backdrop-filter: blur(18px);
    }

    .main-nav.is-open {
        display: grid;
    }

    .main-nav a {
        padding: 13px 14px;
    }

    .main-nav a::after {
        display: none;
    }

    .header-actions {
        justify-self: end;
    }

    .hero {
        height: auto;
        min-height: 780px;
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-block: 120px 80px;
    }

    .feature-grid,
    .ranking-selector-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .world-section__grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .auth-shell__grid {
        grid-template-columns: 1fr;
        gap: 42px;
        max-width: 680px;
    }

    .auth-story {
        padding-top: 40px;
    }

    .auth-story h1 {
        font-size: clamp(3rem, 9vw, 5rem);
    }

    .account-grid {
        grid-template-columns: 1fr;
    }

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

    .wiki-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .wiki-sidebar {
        position: static;
    }

    .category-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .site-footer__grid > div:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .section {
        padding: 76px 0;
    }

    .site-header__inner {
        grid-template-columns: auto auto 1fr;
    }

    .brand,
    .brand img {
        width: 92px;
    }

    .header-actions .button--ghost {
        display: none;
    }

    .header-actions .button {
        min-height: 38px;
        padding-inline: 13px;
        font-size: .78rem;
    }

    .server-status-badge {
        min-height: 38px;
        padding-inline: 10px;
    }

    .server-status-badge__label {
        display: none;
    }

    .server-status-badge__value {
        font-size: .74rem;
    }

    .hero {
        min-height: 720px;
    }

    .hero__background {
        background-position: 62% center;
    }

    .hero__veil {
        background:
            linear-gradient(90deg, rgba(3,4,7,.94), rgba(3,4,7,.58)),
            linear-gradient(180deg, rgba(3,4,7,.18), #07080b);
    }

    .hero__content {
        padding-block: 100px 70px;
    }

    .hero__copy h1 {
        font-size: clamp(3.1rem, 15vw, 5rem);
    }

    .hero__copy p {
        font-size: 1rem;
    }

    .hero__actions {
        display: grid;
    }

    .hero__actions .button {
        width: 100%;
    }

    .scroll-cue {
        display: none;
    }

    .feature-grid,
    .article-grid,
    .ranking-selector-grid,
    .character-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 300px;
    }

    .world-section__copy h2 {
        font-size: 2.4rem;
    }

    .stat-strip {
        grid-template-columns: 1fr;
    }

    .callout {
        display: grid;
        padding: 30px 24px;
    }

    .callout .button {
        width: 100%;
    }

    .page-hero {
        min-height: 360px;
        padding: calc(var(--header-h) + 70px) 0 54px;
    }

    .page-hero--compact {
        min-height: 320px;
    }

    .page-hero h1 {
        font-size: clamp(2.7rem, 13vw, 4rem);
    }

    .auth-shell {
        padding-bottom: 40px;
    }

    .auth-card {
        padding: 24px 20px;
    }

    .auth-links {
        display: grid;
    }

    .wiki-search {
        display: grid;
    }

    .category-list {
        grid-template-columns: 1fr;
    }

    .article-detail {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .ranking-toolbar {
        display: grid;
    }

    .ranking-toolbar__pager {
        justify-content: space-between;
    }

    .ranking-table-wrap {
        overflow-x: auto;
    }

    .ranking-table {
        min-width: 680px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
    }

    .site-footer__grid > div:first-child,
    .site-footer__grid > div:last-child {
        grid-column: 1 / -1;
    }

    .site-footer__bottom {
        display: grid;
        gap: 6px;
    }
}
