:root {
    color-scheme: dark;
    --bg: #060b10;
    --bg-soft: #091119;
    --surface: #0d151d;
    --surface-raised: #111c26;
    --surface-bright: #16232e;
    --surface-glass: rgba(9, 18, 26, 0.82);
    --line: rgba(154, 186, 207, 0.13);
    --line-strong: rgba(154, 202, 226, 0.24);
    --text: #edf5f8;
    --text-soft: #b4c2ca;
    --muted: #778995;
    --accent: #35d3ed;
    --accent-bright: #6be8f8;
    --accent-deep: #0c91bb;
    --accent-ink: #021017;
    --success: #4de5a6;
    --warning: #f0bd54;
    --danger: #ff6e7b;
    --purple: #9887ff;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
    --glow: 0 0 30px rgba(53, 211, 237, 0.18);
    --radius-xs: 5px;
    --radius-sm: 9px;
    --radius: 14px;
    --radius-lg: 22px;
    --shell: 1400px;
    --transition: 180ms ease;
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 14% 25%, rgba(25, 102, 127, 0.08), transparent 25rem),
        radial-gradient(circle at 80% 70%, rgba(23, 85, 112, 0.06), transparent 30rem),
        var(--bg);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition), background-color var(--transition), border-color var(--transition), opacity var(--transition), transform var(--transition);
}

a:hover {
    color: var(--accent-bright);
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

:focus-visible {
    outline: 3px solid rgba(107, 232, 248, 0.85);
    outline-offset: 3px;
}

::selection {
    color: var(--accent-ink);
    background: var(--accent-bright);
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
ol,
ul {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--text);
    font-weight: 730;
    line-height: 1.16;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.25rem, 4vw, 4.7rem);
}

h2 {
    font-size: clamp(1.55rem, 2.4vw, 2.45rem);
}

h3 {
    font-size: 1.15rem;
}

.shell {
    width: min(calc(100% - 48px), var(--shell));
    margin-inline: auto;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: var(--accent-ink);
    background: var(--accent-bright);
    border-radius: var(--radius-sm);
    font-weight: 800;
    transform: translateY(-160%);
}

.skip-link:focus {
    color: var(--accent-ink);
    transform: translateY(0);
}

.button-reset {
    padding: 0;
    color: inherit;
    background: none;
    border: 0;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.78rem 1.25rem;
    color: var(--text);
    background: var(--surface-bright);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 760;
    line-height: 1.1;
    letter-spacing: 0.01em;
}

.button:hover {
    color: var(--text);
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

.button--primary {
    color: var(--accent-ink);
    background: linear-gradient(135deg, var(--accent-bright), var(--accent));
    border-color: rgba(120, 241, 255, 0.5);
    box-shadow: 0 10px 30px rgba(20, 183, 217, 0.18);
}

.button--primary:hover {
    color: #001017;
    background: linear-gradient(135deg, #a0f5ff, #45daef);
    box-shadow: 0 12px 38px rgba(20, 183, 217, 0.28);
}

.button--ghost {
    color: var(--text-soft);
    background: rgba(14, 24, 33, 0.56);
    border-color: var(--line-strong);
}

.button--ghost:hover {
    color: var(--text);
    background: rgba(25, 41, 53, 0.75);
    border-color: rgba(107, 232, 248, 0.34);
}

.button--quiet {
    min-height: 38px;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.025);
    border-color: var(--line);
}

.button--small {
    min-height: 38px;
    padding: 0.58rem 0.9rem;
    font-size: 0.8rem;
}

.button--large {
    min-height: 56px;
    padding-inline: 1.65rem;
}

.button--block {
    width: 100%;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 720;
}

.text-link span {
    transition: transform var(--transition);
}

.text-link:hover span {
    transform: translateX(3px);
}

.eyebrow {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--accent);
    font-size: 0.71rem;
    font-weight: 850;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.panel {
    background: linear-gradient(145deg, rgba(17, 28, 38, 0.96), rgba(10, 17, 24, 0.98));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.14);
}

.panel__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.panel__heading h2 {
    margin-bottom: 0;
    font-size: 1.25rem;
}

.panel__heading a {
    font-size: 0.8rem;
    font-weight: 750;
}

.section-block {
    padding-block: 82px;
}

.section-block--tight {
    padding-top: 28px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 30px;
}

.section-heading h2 {
    margin-bottom: 0.45rem;
}

.section-heading p {
    max-width: 670px;
    margin-bottom: 0;
    color: var(--muted);
}

.section-heading--center {
    justify-content: center;
    text-align: center;
}

.section-heading--center p {
    margin-inline: auto;
}

.muted-copy,
.form-footnote {
    color: var(--muted);
    font-size: 0.88rem;
}

.label {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.label--accent {
    color: var(--accent-bright);
    background: rgba(53, 211, 237, 0.1);
    border-color: rgba(53, 211, 237, 0.25);
}

/* Atmospheric public header */
.site-hero {
    position: relative;
    isolation: isolate;
    min-height: 560px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 72%, rgba(34, 150, 175, 0.23), transparent 34%),
        radial-gradient(circle at 82% 20%, rgba(73, 150, 172, 0.21), transparent 25%),
        radial-gradient(circle at 18% 24%, rgba(40, 107, 137, 0.22), transparent 28%),
        linear-gradient(180deg, #152e3e 0%, #0b202d 43%, #07121a 82%, var(--bg) 100%);
}

.site-hero::before {
    position: absolute;
    z-index: -2;
    inset: 20% -5% 0;
    opacity: 0.37;
    background:
        linear-gradient(73deg, transparent 48%, rgba(131, 194, 207, 0.13) 49%, transparent 50%) 12% 30% / 210px 210px,
        linear-gradient(106deg, transparent 48%, rgba(131, 194, 207, 0.1) 49%, transparent 50%) 84% 24% / 280px 260px,
        linear-gradient(to top, rgba(1, 9, 14, 0.97), rgba(3, 15, 23, 0.1));
    content: "";
    clip-path: polygon(0 64%, 6% 58%, 12% 62%, 18% 43%, 22% 59%, 28% 55%, 35% 63%, 41% 48%, 47% 61%, 54% 52%, 59% 65%, 65% 47%, 72% 62%, 79% 38%, 83% 58%, 89% 45%, 94% 62%, 100% 54%, 100% 100%, 0 100%);
    filter: blur(1px);
}

.site-hero::after {
    position: absolute;
    z-index: -1;
    right: -10%;
    bottom: 28px;
    left: -10%;
    height: 176px;
    opacity: 0.52;
    background:
        repeating-linear-gradient(90deg, rgba(5, 13, 18, 0.95) 0 38px, transparent 38px 68px),
        linear-gradient(12deg, rgba(4, 11, 16, 0.95), rgba(4, 11, 16, 0.2));
    content: "";
    clip-path: polygon(0 70%, 4% 58%, 7% 60%, 10% 48%, 13% 61%, 17% 50%, 20% 58%, 25% 44%, 28% 60%, 31% 53%, 36% 58%, 40% 38%, 43% 61%, 47% 51%, 52% 64%, 56% 46%, 60% 60%, 64% 49%, 69% 63%, 73% 37%, 77% 57%, 81% 46%, 85% 62%, 91% 45%, 95% 59%, 100% 50%, 100% 100%, 0 100%);
}

.site-hero__media {
    position: absolute;
    z-index: -5;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.62;
    filter: saturate(0.7) contrast(1.08);
}

.site-hero__overlay {
    position: absolute;
    z-index: -4;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 13, 20, 0.48), rgba(9, 28, 40, 0.13) 50%, rgba(4, 13, 20, 0.5)),
        linear-gradient(180deg, rgba(4, 13, 20, 0.12), rgba(3, 10, 15, 0.94));
}

.site-hero__haze {
    position: absolute;
    z-index: -3;
    inset: 0;
    opacity: 0.34;
    background-image:
        radial-gradient(circle, rgba(206, 243, 255, 0.75) 0 1px, transparent 1.8px),
        radial-gradient(circle, rgba(108, 204, 226, 0.55) 0 1.2px, transparent 2px);
    background-position: 0 0, 37px 29px;
    background-size: 88px 88px, 141px 141px;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.site-nav {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    min-height: 88px;
    align-items: center;
    border-bottom: 1px solid rgba(207, 238, 247, 0.1);
}

.site-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    justify-self: start;
    color: var(--text);
    font-size: 0.96rem;
    font-weight: 800;
}

.brand-mark {
    position: relative;
    display: inline-grid;
    width: 102px;
    height: 102px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    color: #e9fcff;
    background:
        linear-gradient(135deg, transparent 48%, rgba(255, 255, 255, 0.14) 49% 54%, transparent 55%),
        conic-gradient(from 42deg, #1d769a, #42e0ed, #148ab7, #55e7ed, #1d769a);
    border: 1px solid rgba(137, 238, 248, 0.45);
    border-radius: 50%;
    box-shadow: inset 0 0 0 8px rgba(5, 28, 39, 0.72), 0 0 44px rgba(48, 211, 230, 0.18);
}

.brand-mark::before,
.brand-mark::after {
    position: absolute;
    inset: 18%;
    border: 1px solid rgba(222, 253, 255, 0.35);
    border-radius: 50%;
    content: "";
}

.brand-mark::after {
    inset: 31%;
    background: rgba(2, 20, 29, 0.72);
    border-color: rgba(255, 255, 255, 0.16);
}

.brand-mark > span {
    position: relative;
    z-index: 2;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.brand-mark--small {
    width: 38px;
    height: 38px;
    box-shadow: inset 0 0 0 3px rgba(5, 28, 39, 0.72), 0 0 24px rgba(48, 211, 230, 0.12);
}

.brand-mark--small::before {
    inset: 16%;
}

.brand-mark--small::after {
    inset: 29%;
}

.brand-mark--small > span {
    font-size: 0.55rem;
}

.site-nav__menu {
    display: contents;
}

.site-nav__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.site-nav__account {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.site-nav__link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    color: rgba(226, 241, 247, 0.72);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 730;
}

.site-nav__link svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.site-nav__link:hover,
.site-nav__link.is-active {
    color: var(--text);
    background: rgba(220, 244, 250, 0.08);
    border-color: rgba(220, 244, 250, 0.08);
}

.site-nav__link.is-active {
    box-shadow: inset 0 -2px 0 var(--accent);
}

.site-nav__user {
    padding-left: 7px;
}

.site-nav__logout {
    display: flex;
    margin: 0;
}

.site-nav__toggle {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 9px;
    color: var(--text);
    background: rgba(9, 20, 29, 0.7);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
}

.site-nav__toggle > span:not(.sr-only) {
    display: block;
    width: 21px;
    height: 2px;
    margin: 3px auto;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.site-nav__toggle[aria-expanded="true"] > span:nth-of-type(2) {
    transform: translateY(5px) rotate(45deg);
}

.site-nav__toggle[aria-expanded="true"] > span:nth-of-type(3) {
    opacity: 0;
}

.site-nav__toggle[aria-expanded="true"] > span:nth-of-type(4) {
    transform: translateY(-5px) rotate(-45deg);
}

.hero-status {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    min-height: 310px;
    align-items: center;
    gap: clamp(36px, 7vw, 110px);
}

.hero-status__side {
    display: flex;
    max-width: 280px;
    align-items: center;
    gap: 15px;
    color: var(--text-soft);
}

.hero-status__side--play {
    justify-self: end;
    text-align: right;
}

.hero-status__side--play .hero-status__icon {
    order: 2;
}

.hero-status__side strong,
.hero-status__side small {
    display: block;
}

.hero-status__side strong {
    margin-bottom: 2px;
    color: var(--accent-bright);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-status__side small {
    color: rgba(225, 240, 246, 0.67);
    font-size: 0.72rem;
}

.hero-status__side:hover {
    color: var(--text);
    transform: translateY(-2px);
}

.hero-status__icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--accent);
    background: rgba(13, 42, 55, 0.68);
    border: 1px solid rgba(69, 215, 237, 0.24);
    border-radius: 14px;
    box-shadow: var(--glow);
}

.hero-status__icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.hero-status__brand {
    display: grid;
    justify-items: center;
    gap: 15px;
    text-align: center;
}

.hero-status__brand p {
    max-width: 290px;
    margin: 0;
    color: rgba(229, 243, 248, 0.66);
    font-size: 0.76rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    background: var(--warning);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(240, 189, 84, 0.08), 0 0 18px rgba(240, 189, 84, 0.45);
}

.status-dot.is-online {
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(77, 229, 166, 0.08), 0 0 18px rgba(77, 229, 166, 0.45);
}

.hero-cap {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr auto auto;
    min-height: 96px;
    align-items: center;
    gap: 30px;
    padding: 20px 24px;
    background: rgba(8, 15, 21, 0.88);
    border: 1px solid var(--line);
    border-bottom: 2px solid rgba(53, 211, 237, 0.35);
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: var(--shadow), 0 0 50px rgba(30, 164, 191, 0.08);
    backdrop-filter: blur(14px);
}

.hero-cap__copy .eyebrow {
    margin-bottom: 2px;
}

.hero-cap__copy strong {
    font-size: 1.14rem;
}

.hero-cap__stats {
    display: flex;
    gap: 28px;
}

.hero-cap__stats > span {
    display: grid;
    min-width: 74px;
    color: var(--muted);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.hero-cap__stats b {
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.2;
}

.site-main {
    position: relative;
    min-height: 48vh;
}

.avatar {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    color: #dffbff;
    background: linear-gradient(145deg, #1a708f, #1fc1d9);
    border: 1px solid rgba(133, 236, 248, 0.32);
    border-radius: 50%;
    object-fit: cover;
    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.03em;
}

.avatar--tiny {
    width: 28px;
    height: 28px;
    font-size: 0.55rem;
}

.avatar--small {
    width: 38px;
    height: 38px;
}

.avatar--large {
    width: 84px;
    height: 84px;
    font-size: 1.1rem;
}

/* Notices */
.flash-stack {
    position: relative;
    z-index: 30;
    display: grid;
    gap: 10px;
    padding-top: 20px;
}

.flash {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    background: var(--surface-raised);
    border: 1px solid var(--line-strong);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.flash p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.flash__icon {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    color: var(--accent);
    background: rgba(53, 211, 237, 0.1);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 900;
}

.flash__close {
    width: 30px;
    height: 30px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: var(--radius-xs);
    font-size: 1.25rem;
}

.flash__close:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.flash--success {
    border-left-color: var(--success);
}

.flash--success .flash__icon {
    color: var(--success);
    background: rgba(77, 229, 166, 0.1);
}

.flash--error {
    border-left-color: var(--danger);
}

.flash--error .flash__icon {
    color: var(--danger);
    background: rgba(255, 110, 123, 0.1);
}

.flash--warning {
    border-left-color: var(--warning);
}

/* Homepage */
.home-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 48px;
    padding-block: 76px 40px;
}

.home-intro h1 {
    max-width: 850px;
    margin-bottom: 0.8rem;
    font-size: clamp(2.1rem, 4vw, 4.2rem);
}

.home-intro h1 span {
    color: var(--accent);
}

.home-intro p {
    max-width: 790px;
    margin-bottom: 0;
    color: var(--text-soft);
    font-size: 1.05rem;
}

.home-intro__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.stat-ribbon {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(12, 20, 28, 0.76);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.stat-ribbon__item {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 13px;
    padding: 22px 25px;
}

.stat-ribbon__item + .stat-ribbon__item::before {
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 0;
    width: 1px;
    background: var(--line);
    content: "";
}

.stat-ribbon__icon,
.stat-ribbon__item > .status-dot {
    grid-row: 1 / span 2;
    color: var(--accent);
    font-size: 0.62rem;
}

.stat-ribbon__item strong {
    font-size: 1.18rem;
    line-height: 1.2;
}

.stat-ribbon__item strong small {
    color: var(--muted);
    font-size: 0.7rem;
}

.stat-ribbon__item > span:last-child {
    color: var(--muted);
    font-size: 0.69rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(330px, 0.78fr);
    align-items: start;
    gap: 26px;
}

.news-feed,
.home-sidebar {
    display: grid;
    gap: 24px;
}

.news-card {
    display: grid;
    grid-template-columns: minmax(250px, 38%) minmax(0, 1fr);
    min-height: 300px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.news-card__visual {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    background-color: #0d2735;
}

.news-card__visual::before,
.news-card__visual::after {
    position: absolute;
    content: "";
}

.news-card__visual::before {
    inset: 0;
    background:
        radial-gradient(circle at 70% 25%, rgba(105, 229, 245, 0.45), transparent 16%),
        linear-gradient(155deg, transparent 0 47%, rgba(3, 13, 19, 0.8) 48% 100%),
        linear-gradient(25deg, #081821, #19647b);
}

.news-card__visual::after {
    right: -12%;
    bottom: 0;
    left: -12%;
    height: 60%;
    background: rgba(3, 11, 16, 0.84);
    clip-path: polygon(0 74%, 10% 55%, 19% 70%, 28% 39%, 36% 64%, 48% 50%, 59% 68%, 69% 35%, 78% 64%, 87% 47%, 100% 66%, 100% 100%, 0 100%);
}

.news-card__visual--services::before {
    background:
        radial-gradient(circle at 35% 30%, rgba(75, 201, 237, 0.48), transparent 16%),
        radial-gradient(circle at 70% 33%, rgba(255, 90, 108, 0.35), transparent 12%),
        repeating-linear-gradient(120deg, transparent 0 43px, rgba(255, 255, 255, 0.03) 44px 45px),
        linear-gradient(145deg, #142632, #103f53 52%, #291922);
}

.news-card__visual--coast::before {
    background:
        radial-gradient(circle at 75% 24%, rgba(247, 195, 112, 0.5), transparent 16%),
        linear-gradient(180deg, #294b5e 0 44%, #17697c 45% 58%, #09242e 59% 100%);
}

.news-card__visual img {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease;
}

.news-card__visual:hover img {
    transform: scale(1.035);
}

.news-card__category {
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 18px;
    padding: 5px 9px;
    color: var(--accent-ink);
    background: var(--accent-bright);
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-card__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: clamp(24px, 3.4vw, 44px);
}

.news-card__body h3 {
    margin-bottom: 14px;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.news-card__body h3 a {
    color: var(--text);
}

.news-card__body h3 a:hover {
    color: var(--accent);
}

.news-card__body > p {
    margin-bottom: 28px;
    color: var(--text-soft);
}

.news-card__footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.news-card__footer b,
.news-card__footer small {
    display: block;
}

.news-card__footer b {
    font-size: 0.78rem;
}

.news-card__footer small {
    color: var(--muted);
    font-size: 0.67rem;
}

.quick-connect,
.thread-list,
.city-code {
    padding: 25px;
}

.quick-connect {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0, rgba(53, 211, 237, 0.17), transparent 45%),
        linear-gradient(145deg, rgba(18, 38, 50, 0.98), rgba(8, 16, 23, 0.98));
    border-color: rgba(53, 211, 237, 0.2);
}

.quick-connect::after {
    position: absolute;
    right: -34px;
    bottom: -34px;
    width: 130px;
    height: 130px;
    opacity: 0.18;
    background: repeating-radial-gradient(circle, transparent 0 10px, var(--accent) 11px 12px);
    border-radius: 50%;
    content: "";
}

.quick-connect h2,
.city-code h2 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.quick-connect p,
.city-code p {
    color: var(--text-soft);
    font-size: 0.88rem;
}

.quick-connect__actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.thread-list .panel__heading {
    align-items: center;
}

.thread-list__item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    color: var(--text);
    border-bottom: 1px solid var(--line);
}

.thread-list__item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.thread-list__item:hover strong {
    color: var(--accent);
}

.thread-list__item strong,
.thread-list__item small {
    display: block;
}

.thread-list__item strong {
    overflow: hidden;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thread-list__item small {
    color: var(--muted);
    font-size: 0.67rem;
}

.thread-list__pulse {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(53, 211, 237, 0.07);
}

.city-code {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
}

.city-code__mark {
    color: rgba(107, 232, 248, 0.2);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.feature-band {
    position: relative;
    padding-block: 92px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(8, 15, 21, 0.15), rgba(11, 25, 34, 0.82)),
        var(--bg-soft);
    border-block: 1px solid var(--line);
}

.feature-band::before {
    position: absolute;
    top: -220px;
    left: 50%;
    width: 700px;
    height: 420px;
    background: rgba(27, 156, 184, 0.08);
    border-radius: 50%;
    content: "";
    filter: blur(60px);
    transform: translateX(-50%);
}

.feature-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    position: relative;
    min-height: 250px;
    padding: 34px;
    overflow: hidden;
    background: rgba(13, 23, 31, 0.78);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.feature-card::after {
    position: absolute;
    right: -45px;
    bottom: -55px;
    width: 170px;
    height: 170px;
    opacity: 0;
    background: radial-gradient(circle, rgba(53, 211, 237, 0.24), transparent 65%);
    content: "";
    transition: opacity var(--transition);
}

.feature-card:hover {
    border-color: rgba(53, 211, 237, 0.26);
    transform: translateY(-3px);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card__number {
    display: block;
    margin-bottom: 46px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.16em;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.35rem;
}

.feature-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.home-cta,
.support-cta {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 36px;
    margin-block: 82px;
    padding: clamp(32px, 4vw, 55px);
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 0, rgba(53, 211, 237, 0.17), transparent 38%),
        linear-gradient(135deg, #102431, #0b161f);
    border: 1px solid rgba(53, 211, 237, 0.22);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.home-cta::before,
.support-cta::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: var(--accent);
    content: "";
    box-shadow: 0 0 24px var(--accent);
}

.home-cta h2,
.support-cta h2 {
    margin-bottom: 8px;
}

.home-cta p,
.support-cta p {
    max-width: 720px;
    margin: 0;
    color: var(--text-soft);
}

/* Auth and setup forms */
.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(500px, 0.72fr);
    min-height: 700px;
    align-items: center;
    gap: clamp(54px, 8vw, 130px);
    padding-block: 85px 110px;
}

.auth-story {
    max-width: 620px;
}

.auth-story h1 {
    margin-bottom: 20px;
    font-size: clamp(2.35rem, 4.8vw, 4.85rem);
}

.auth-story > p {
    color: var(--text-soft);
    font-size: 1.05rem;
}

.auth-story__list {
    display: grid;
    gap: 14px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.auth-story__list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.auth-story__list span {
    display: grid;
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--accent-ink);
    background: var(--accent);
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 900;
}

.auth-story__note {
    margin-top: 34px;
    padding: 20px 22px;
    background: rgba(15, 29, 39, 0.72);
    border: 1px solid var(--line);
    border-left: 2px solid var(--accent);
    border-radius: var(--radius-sm);
}

.auth-story__note strong {
    font-size: 0.88rem;
}

.auth-story__note p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.auth-card,
.setup-card {
    padding: clamp(26px, 3.4vw, 42px);
    box-shadow: var(--shadow);
}

.auth-card__heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.auth-card__heading h2 {
    margin-bottom: 3px;
    font-size: 1.45rem;
}

.auth-card__heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.auth-card__switch {
    margin: 25px 0 0;
    padding-top: 22px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 0.84rem;
    text-align: center;
}

.form-stack {
    display: grid;
    gap: 20px;
}

.form-grid {
    display: grid;
    gap: 18px;
}

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

.field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.field label,
.field__label-row label {
    color: var(--text);
    font-size: 0.79rem;
    font-weight: 760;
}

.field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.field__label-row a {
    font-size: 0.72rem;
    font-weight: 700;
}

.field input,
.field textarea,
.field select,
.help-search__field input {
    width: 100%;
    color: var(--text);
    background: rgba(4, 11, 16, 0.7);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.field input,
.field select {
    min-height: 50px;
    padding: 0 14px;
}

.field textarea {
    min-height: 150px;
    padding: 14px;
    line-height: 1.6;
    resize: vertical;
}

.field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 19px) 22px, calc(100% - 14px) 22px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.help-search__field input:focus {
    background-color: rgba(8, 21, 29, 0.84);
    border-color: rgba(53, 211, 237, 0.7);
    box-shadow: 0 0 0 4px rgba(53, 211, 237, 0.08);
    outline: none;
}

.field input::placeholder,
.field textarea::placeholder,
.help-search__field input::placeholder {
    color: #576b78;
}

.field__hint,
.field__error,
.field__meta,
.field__meta small {
    font-size: 0.69rem;
    line-height: 1.45;
}

.field__hint,
.field__meta,
.field__meta small {
    color: var(--muted);
}

.field__error {
    color: #ff9aa3;
}

.field__meta {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 64px;
}

.password-field button {
    position: absolute;
    top: 50%;
    right: 8px;
    min-width: 48px;
    min-height: 34px;
    color: var(--accent);
    background: transparent;
    border: 0;
    border-radius: var(--radius-xs);
    font-size: 0.7rem;
    font-weight: 750;
    transform: translateY(-50%);
}

.password-field button:hover {
    background: rgba(53, 211, 237, 0.08);
}

.check-field {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px;
    color: var(--text-soft);
    font-size: 0.78rem;
    cursor: pointer;
}

.check-field input {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: var(--accent);
}

.form-alert {
    padding: 11px 13px;
    color: #ffc2c8;
    background: rgba(255, 110, 123, 0.08);
    border: 1px solid rgba(255, 110, 123, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.form-actions--split {
    justify-content: space-between;
}

.setup-shell {
    padding-block: 75px 105px;
}

.setup-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 680px;
    margin: 0 auto 65px;
}

.setup-progress span {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 760;
    text-transform: uppercase;
}

.setup-progress span:not(:last-child)::after {
    height: 1px;
    flex: 1;
    margin-inline: 8px;
    background: var(--line-strong);
    content: "";
}

.setup-progress b {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
}

.setup-progress .is-active {
    color: var(--text);
}

.setup-progress .is-active b {
    color: var(--accent-ink);
    background: var(--accent);
    border-color: var(--accent);
}

.setup-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(600px, 1fr);
    align-items: start;
    gap: clamp(50px, 8vw, 120px);
}

.setup-grid > div:first-child > p {
    max-width: 560px;
    color: var(--text-soft);
}

.requirements {
    margin-top: 32px;
    padding: 20px;
}

.requirements h2 {
    margin-bottom: 16px;
    font-size: 1rem;
}

.requirements__item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 9px 0;
    color: var(--text-soft);
    border-top: 1px solid var(--line);
    font-size: 0.75rem;
}

.requirements__item strong {
    font-size: 0.68rem;
}

.requirements__item .is-passed {
    color: var(--success);
}

.requirements__item .is-failed {
    color: var(--danger);
}

/* Page headers and breadcrumbs */
.page-banner,
.thread-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 35px;
    padding-block: 74px 35px;
}

.page-banner h1,
.thread-hero h1 {
    max-width: 900px;
    margin-bottom: 12px;
    font-size: clamp(2.25rem, 4vw, 4rem);
}

.page-banner p {
    max-width: 760px;
    margin: 0;
    color: var(--text-soft);
}

.page-banner--compact {
    padding-bottom: 25px;
}

.page-banner--compact h1 {
    font-size: clamp(2rem, 3.2vw, 3.3rem);
}

.breadcrumbs {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 10px;
    padding: 0 17px;
    overflow: hidden;
    color: var(--muted);
    background: rgba(15, 24, 32, 0.82);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 0.74rem;
    white-space: nowrap;
}

.breadcrumbs a,
.breadcrumbs span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumbs a {
    flex: 0 1 auto;
    color: var(--accent);
}

/* Forum overview */
.forum-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: start;
    gap: 24px;
    padding-block: 24px 100px;
}

.forum-main,
.forum-sidebar {
    display: grid;
    gap: 20px;
}

.forum-group {
    overflow: hidden;
}

.forum-group__heading {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 17px 20px;
    background: rgba(20, 34, 44, 0.62);
    border-bottom: 1px solid var(--line);
}

.forum-group__heading h2 {
    margin-bottom: 2px;
    font-size: 1.08rem;
}

.forum-group__heading p,
.forum-group__heading > span {
    margin: 0;
    color: var(--muted);
    font-size: 0.69rem;
}

.forum-group__heading > span {
    text-transform: uppercase;
}

.forum-category-row {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) 150px minmax(210px, 0.68fr);
    min-height: 102px;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    transition: background-color var(--transition);
}

.forum-category-row:last-child {
    border-bottom: 0;
}

.forum-category-row:hover {
    background: rgba(255, 255, 255, 0.014);
}

.forum-category-row__icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    background: rgba(53, 211, 237, 0.08);
    border: 1px solid rgba(53, 211, 237, 0.17);
    border-radius: 14px;
}

.forum-category-row__icon span {
    position: relative;
    display: block;
    width: 20px;
    height: 16px;
    border: 2px solid var(--accent);
    border-radius: 5px;
}

.forum-category-row__icon span::after {
    position: absolute;
    bottom: -5px;
    left: 3px;
    width: 6px;
    height: 6px;
    background: rgba(53, 211, 237, 0.08);
    border-bottom: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    content: "";
    transform: skew(-25deg);
}

.forum-category-row__icon--update span,
.forum-category-row__icon--broadcast span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.forum-category-row__icon--update span::after,
.forum-category-row__icon--broadcast span::after {
    top: -3px;
    right: -3px;
    bottom: auto;
    left: auto;
    background: var(--accent);
    border: 0;
    border-radius: 50%;
    transform: none;
}

.forum-category-row__icon--people span {
    width: 13px;
    height: 13px;
    border-radius: 50%;
}

.forum-category-row__icon--people span::after {
    bottom: -10px;
    left: -6px;
    width: 21px;
    height: 10px;
    background: transparent;
    border: 2px solid var(--accent);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    transform: none;
}

.forum-category-row__main h3 {
    margin-bottom: 4px;
    font-size: 0.96rem;
}

.forum-category-row__main p {
    margin: 0;
    color: var(--muted);
    font-size: 0.73rem;
}

.forum-category-row__counts {
    display: flex;
    justify-content: center;
    gap: 22px;
}

.forum-category-row__counts span,
.forum-category-row__latest {
    display: grid;
    color: var(--muted);
    font-size: 0.66rem;
}

.forum-category-row__counts b {
    color: var(--text-soft);
    font-size: 0.84rem;
}

.forum-category-row__latest {
    min-width: 0;
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

.forum-category-row__latest a,
.forum-category-row__latest > span {
    overflow: hidden;
    color: var(--text-soft);
    font-size: 0.73rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forum-category-row__latest small {
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forum-activity,
.forum-stat-card,
.forum-guidelines {
    padding: 21px;
}

.forum-activity__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 14px 0;
    color: var(--text-soft);
    border-bottom: 1px solid var(--line);
}

.forum-activity__item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.forum-activity__item strong,
.forum-activity__item small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forum-activity__item strong {
    color: var(--text-soft);
    font-size: 0.77rem;
}

.forum-activity__item small {
    color: var(--muted);
    font-size: 0.65rem;
}

.forum-stat-card h2,
.forum-guidelines h2 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.forum-stat-card dl {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 22px 0 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.forum-stat-card dl > div {
    display: grid;
    padding: 13px 8px;
    text-align: center;
}

.forum-stat-card dl > div + div {
    border-left: 1px solid var(--line);
}

.forum-stat-card dt {
    color: var(--muted);
    font-size: 0.6rem;
    text-transform: uppercase;
}

.forum-stat-card dd {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 800;
}

.forum-guidelines p {
    color: var(--text-soft);
    font-size: 0.82rem;
}

/* Category table */
.thread-table {
    overflow: hidden;
}

.thread-table__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px 240px;
    min-height: 48px;
    align-items: center;
    gap: 20px;
    padding: 0 22px 0 76px;
    color: var(--muted);
    background: rgba(21, 35, 45, 0.6);
    border-bottom: 1px solid var(--line);
    font-size: 0.66rem;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.thread-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 100px 240px;
    min-height: 102px;
    align-items: center;
    gap: 18px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
}

.thread-row:last-child {
    border-bottom: 0;
}

.thread-row:hover {
    background: rgba(255, 255, 255, 0.014);
}

.thread-row.is-pinned {
    background: linear-gradient(90deg, rgba(53, 211, 237, 0.04), transparent 45%);
}

.thread-row__icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--accent);
    background: rgba(53, 211, 237, 0.07);
    border-radius: 50%;
    font-size: 0.58rem;
}

.thread-row__labels {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.thread-row__labels:empty {
    display: none;
}

.thread-row__main h2 {
    margin: 4px 0;
    font-size: 0.98rem;
}

.thread-row__main h2 a {
    color: var(--text);
}

.thread-row__main p {
    margin: 0;
    color: var(--muted);
    font-size: 0.69rem;
}

.thread-row__main p strong {
    color: var(--text-soft);
}

.thread-row__replies {
    display: grid;
    text-align: center;
}

.thread-row__replies strong {
    font-size: 1rem;
}

.thread-row__replies span {
    color: var(--muted);
    font-size: 0.63rem;
    text-transform: uppercase;
}

.thread-row__latest {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

.thread-row__latest strong,
.thread-row__latest small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thread-row__latest strong {
    color: var(--text-soft);
    font-size: 0.73rem;
}

.thread-row__latest small {
    color: var(--muted);
    font-size: 0.63rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 25px;
}

.pagination a {
    display: grid;
    min-width: 38px;
    height: 38px;
    place-items: center;
    color: var(--text-soft);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    font-size: 0.75rem;
    font-weight: 720;
}

.pagination a:hover,
.pagination a.is-active {
    color: var(--accent-ink);
    background: var(--accent);
    border-color: var(--accent);
}

/* Forum thread */
.thread-hero {
    padding-bottom: 26px;
}

.thread-hero__labels {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.thread-hero__labels:empty {
    display: none;
}

.thread-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 22px;
    color: var(--muted);
    font-size: 0.72rem;
}

.thread-hero__meta span {
    position: relative;
}

.thread-hero__meta span + span::before {
    position: absolute;
    top: 50%;
    left: -13px;
    width: 3px;
    height: 3px;
    background: var(--muted);
    border-radius: 50%;
    content: "";
}

.thread-posts {
    display: grid;
    gap: 18px;
    padding-block: 24px 100px;
}

.forum-post {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    overflow: hidden;
}

.forum-post--original {
    border-top: 2px solid rgba(53, 211, 237, 0.48);
}

.forum-post__author {
    display: flex;
    min-height: 270px;
    align-items: center;
    flex-direction: column;
    padding: 27px 20px;
    background: rgba(17, 29, 39, 0.74);
    border-right: 1px solid var(--line);
    text-align: center;
}

.forum-post__author > strong {
    margin-top: 12px;
    font-size: 0.88rem;
}

.role-badge {
    display: inline-flex;
    min-width: 92px;
    min-height: 25px;
    align-items: center;
    justify-content: center;
    margin-top: 7px;
    padding: 3px 10px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.role-badge--staff {
    color: var(--accent-bright);
    background: rgba(53, 211, 237, 0.08);
    border-color: rgba(53, 211, 237, 0.2);
}

.forum-post__author dl {
    width: 100%;
    margin: 20px 0 0;
    padding-top: 13px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 0.62rem;
}

.forum-post__author dl > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.forum-post__author dd {
    color: var(--text-soft);
}

.forum-post__content {
    display: flex;
    min-width: 0;
    min-height: 270px;
    flex-direction: column;
    padding: 24px 28px;
}

.forum-post__content > header,
.forum-post__content > footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted);
    font-size: 0.67rem;
}

.forum-post__content > header {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
}

.forum-post__content > footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}

.forum-post__body {
    padding-block: 22px 32px;
    color: var(--text-soft);
    font-size: 0.93rem;
    overflow-wrap: anywhere;
}

.reply-panel {
    margin-top: 10px;
    padding: 26px;
}

.reply-panel__message {
    display: flex;
    align-items: center;
    gap: 18px;
}

.reply-panel__message > span {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--accent);
    background: rgba(53, 211, 237, 0.08);
    border-radius: 50%;
}

.reply-panel__message h2 {
    margin-bottom: 3px;
    font-size: 1.08rem;
}

.reply-panel__message p {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.reply-panel__message .button {
    margin-left: auto;
}

.reply-panel .panel__heading {
    margin-bottom: 22px;
}

/* Forum editor */
.editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 24px;
    padding-block: 24px 100px;
}

.editor-card,
.editor-tips {
    padding: clamp(24px, 3vw, 36px);
}

.editor-card .panel__heading {
    margin-bottom: 26px;
}

.editor-tips {
    position: sticky;
    top: 20px;
}

.editor-tips h2 {
    margin-bottom: 22px;
    font-size: 1.25rem;
}

.editor-tips ol {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.editor-tips li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 13px;
}

.editor-tips li > span {
    color: var(--accent);
    font-size: 0.66rem;
    font-weight: 850;
}

.editor-tips strong {
    display: block;
    margin-bottom: 3px;
    font-size: 0.79rem;
}

.editor-tips p {
    margin: 0;
    color: var(--muted);
    font-size: 0.7rem;
}

/* Help Center */
.help-search {
    position: relative;
    padding-block: 92px 105px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(11, 25, 34, 0.68), rgba(7, 13, 18, 0));
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.help-search::after {
    position: absolute;
    top: -260px;
    left: 50%;
    width: 780px;
    height: 500px;
    background: rgba(38, 180, 207, 0.08);
    border-radius: 50%;
    content: "";
    filter: blur(70px);
    transform: translateX(-50%);
}

.help-search > .shell {
    position: relative;
    z-index: 1;
}

.help-search h1 {
    margin-bottom: 14px;
    font-size: clamp(2.5rem, 5vw, 5.1rem);
}

.help-search p {
    color: var(--text-soft);
}

.help-search__field {
    position: relative;
    display: grid;
    max-width: 810px;
    margin: 34px auto 0;
}

.help-search__field svg {
    position: absolute;
    top: 50%;
    left: 19px;
    z-index: 2;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--muted);
    stroke-linecap: round;
    stroke-width: 1.7;
    transform: translateY(-50%);
}

.help-search__field input {
    min-height: 64px;
    padding: 0 60px 0 52px;
    background: rgba(10, 19, 27, 0.86);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
    font-size: 1rem;
}

.help-search__field kbd {
    position: absolute;
    top: 50%;
    right: 16px;
    min-width: 30px;
    padding: 2px 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    font: inherit;
    font-size: 0.68rem;
    transform: translateY(-50%);
}

.help-search__results {
    min-height: 22px;
    margin: 12px 0 0;
    color: var(--muted) !important;
    font-size: 0.72rem;
}

.help-content {
    padding-top: 78px;
}

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

.help-topic-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 136px;
    align-items: center;
    gap: 16px;
    padding: 22px;
    color: var(--text);
}

.help-topic-card:hover {
    color: var(--text);
    border-color: rgba(53, 211, 237, 0.28);
    transform: translateY(-2px);
}

.help-topic-card__icon {
    position: relative;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    background: rgba(53, 211, 237, 0.08);
    border: 1px solid rgba(53, 211, 237, 0.17);
    border-radius: 16px;
}

.help-topic-card__icon > span {
    display: block;
    width: 22px;
    height: 22px;
    border: 2px solid var(--accent);
    border-radius: 50%;
}

.help-topic-card__icon--account > span::after {
    position: absolute;
    right: 12px;
    bottom: 10px;
    left: 12px;
    height: 14px;
    border: 2px solid var(--accent);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    content: "";
}

.help-topic-card__icon--rules > span,
.help-topic-card__icon--privacy > span {
    border-radius: 5px;
}

.help-topic-card__icon--signal > span {
    width: 25px;
    height: 13px;
    border-width: 2px 0 0;
    border-radius: 50% 50% 0 0;
}

.help-topic-card__icon--support > span {
    border-width: 2px 2px 0;
    border-radius: 12px 12px 0 0;
}

.help-topic-card strong,
.help-topic-card small {
    display: block;
}

.help-topic-card strong {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.help-topic-card small {
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.5;
}

.help-topic-card__arrow {
    color: var(--accent);
    font-size: 1.1rem;
}

.help-no-results {
    padding: 35px;
    text-align: center;
}

.help-no-results h2 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.help-no-results p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.faq-section {
    padding-top: 90px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: 12px;
}

.faq-item {
    overflow: hidden;
}

.faq-item h3 {
    margin: 0;
}

.faq-item h3 button {
    display: grid;
    width: 100%;
    min-height: 82px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 15px 20px;
    color: var(--text-soft);
    background: transparent;
    border: 0;
    text-align: left;
}

.faq-item h3 button:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.015);
}

.faq-item h3 button small {
    display: block;
    margin-bottom: 3px;
    color: var(--accent);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.faq-item__toggle {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--accent);
    background: rgba(53, 211, 237, 0.08);
    border-radius: 50%;
    font-size: 1.1rem;
    transition: transform var(--transition), background-color var(--transition);
}

.faq-item h3 button[aria-expanded="true"] .faq-item__toggle {
    background: rgba(53, 211, 237, 0.16);
    transform: rotate(45deg);
}

.faq-item__answer {
    padding: 0 20px 19px;
    color: var(--text-soft);
    border-top: 1px solid var(--line);
}

.faq-item__answer p {
    margin: 16px 0 0;
    font-size: 0.82rem;
}

[data-help-item][hidden] {
    display: none !important;
}

.policy-section {
    padding-top: 0;
}

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

.policy-card {
    padding: 28px;
    scroll-margin-top: 28px;
}

.policy-card h3 {
    margin-bottom: 12px;
    color: var(--accent);
}

.policy-card p,
.policy-card li {
    color: var(--text-soft);
    font-size: 0.8rem;
}

.policy-card ul {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding-left: 18px;
}

.news-detail-page {
    display: grid;
    gap: 28px;
}

.news-detail {
    overflow: hidden;
}

.news-detail__image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.news-detail__image--fallback {
    display: grid;
    min-height: 320px;
    place-items: center;
    color: rgba(255, 255, 255, 0.9);
    background:
        radial-gradient(circle at 25% 25%, rgba(53, 211, 237, 0.36), transparent 34%),
        linear-gradient(125deg, #102b3d, #071019 65%);
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 900;
    letter-spacing: -0.08em;
}

.news-detail__content {
    max-width: 920px;
    margin-inline: auto;
    padding: clamp(28px, 5vw, 64px);
}

.news-detail__content h1 {
    margin-block: 8px 18px;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.04;
}

.news-detail__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-soft);
}

.news-detail__meta span:last-child {
    display: grid;
}

.news-detail__meta small {
    color: var(--muted);
}

.news-detail__lead {
    margin-block: 32px 22px;
    color: var(--text);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.75;
}

.news-detail__body {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.news-more {
    padding-top: 24px;
}

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

.news-more__card {
    display: grid;
    gap: 9px;
    padding: 24px;
    text-decoration: none;
}

.news-more__card strong {
    color: var(--text);
}

.news-more__card small {
    color: var(--accent);
}

.news-more__card span {
    color: var(--text-soft);
    font-size: 0.8rem;
}

/* Error page */
.error-page {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 360px;
    min-height: 680px;
    align-items: center;
    gap: clamp(35px, 6vw, 90px);
    padding-block: 90px;
    overflow: hidden;
}

.error-page__code {
    color: rgba(53, 211, 237, 0.11);
    font-size: clamp(7rem, 15vw, 13rem);
    font-weight: 950;
    letter-spacing: -0.09em;
    line-height: 0.8;
}

.error-page__content h1 {
    margin-bottom: 15px;
}

.error-page__content p {
    max-width: 620px;
    color: var(--text-soft);
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.error-page__radar {
    position: relative;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(53, 211, 237, 0.18);
    border-radius: 50%;
    box-shadow: inset 0 0 80px rgba(53, 211, 237, 0.035);
}

.error-page__radar::before,
.error-page__radar::after {
    position: absolute;
    border: 1px solid rgba(53, 211, 237, 0.13);
    border-radius: 50%;
    content: "";
}

.error-page__radar::before {
    inset: 18%;
}

.error-page__radar::after {
    inset: 38%;
}

.error-page__radar span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform-origin: left center;
    animation: radar-scan 5s linear infinite;
}

.error-page__radar i,
.error-page__radar b {
    position: absolute;
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 16px var(--accent);
}

.error-page__radar i {
    top: 31%;
    left: 63%;
}

.error-page__radar b {
    top: 65%;
    left: 35%;
}

@keyframes radar-scan {
    to { transform: rotate(360deg); }
}

.empty-state {
    padding: 54px 30px;
    text-align: center;
}

.empty-state__icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    place-items: center;
    color: var(--accent);
    background: rgba(53, 211, 237, 0.08);
    border: 1px solid rgba(53, 211, 237, 0.17);
    border-radius: 50%;
    font-weight: 900;
}

.empty-state h1,
.empty-state h2,
.empty-state h3 {
    margin-bottom: 8px;
}

.empty-state p {
    max-width: 570px;
    margin-inline: auto;
    color: var(--muted);
}

/* Footer */
.site-footer {
    position: relative;
    padding-top: 72px;
    background: #070c11;
    border-top: 1px solid var(--line);
}

.site-footer__glow {
    position: absolute;
    top: -1px;
    left: 50%;
    width: 380px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 20px var(--accent);
    transform: translateX(-50%);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(320px, 1.5fr) repeat(3, minmax(130px, 0.55fr));
    gap: clamp(35px, 6vw, 90px);
    padding-bottom: 60px;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-footer__brand strong,
.site-footer__brand span {
    display: block;
}

.site-footer__brand strong {
    font-size: 0.95rem;
}

.site-footer__brand span {
    color: var(--muted);
    font-size: 0.67rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer__about p {
    max-width: 510px;
    margin: 20px 0 15px;
    color: var(--muted);
    font-size: 0.82rem;
}

.site-footer nav {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
}

.site-footer nav h2 {
    position: relative;
    margin-bottom: 12px;
    padding-bottom: 10px;
    font-size: 0.86rem;
}

.site-footer nav h2::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--accent);
    content: "";
    box-shadow: 0 0 10px var(--accent);
}

.site-footer nav a {
    color: var(--muted);
    font-size: 0.76rem;
}

.site-footer nav a:hover {
    color: var(--accent);
    transform: translateX(2px);
}

.site-footer__bottom {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #53636d;
    border-top: 1px solid var(--line);
    font-size: 0.68rem;
}

/* Dashboard pages can keep the shared navigation without the public status masthead. */
.dashboard-page .site-hero,
.admin-page .site-hero {
    min-height: auto;
}

.dashboard-page .hero-status,
.dashboard-page .hero-cap,
.admin-page .hero-status,
.admin-page .hero-cap {
    display: none;
}

.dashboard-page .site-hero::after,
.admin-page .site-hero::after {
    display: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .site-nav {
        grid-template-columns: auto 1fr auto;
    }

    .site-nav__brand > span:last-child {
        display: none;
    }

    .site-nav__link {
        padding-inline: 10px;
    }

    .site-nav__account .site-nav__link:not(.site-nav__user) {
        padding-inline: 8px;
    }

    .home-grid {
        grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
    }

    .news-card {
        grid-template-columns: 1fr;
    }

    .news-card__visual {
        min-height: 260px;
    }

    .forum-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .forum-category-row {
        grid-template-columns: auto minmax(200px, 1fr) 125px;
    }

    .forum-category-row__latest {
        display: none;
    }

    .setup-grid {
        grid-template-columns: minmax(0, 0.7fr) minmax(520px, 1fr);
        gap: 50px;
    }

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

    .error-page {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .error-page__radar {
        display: none;
    }
}

@media (max-width: 960px) {
    .shell {
        width: min(calc(100% - 32px), var(--shell));
    }

    .site-hero {
        min-height: 500px;
    }

    .site-nav {
        display: flex;
        min-height: 74px;
        justify-content: space-between;
    }

    .site-nav__brand > span:last-child {
        display: inline;
    }

    .site-nav__toggle {
        display: block;
    }

    .site-nav__menu {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        display: none;
        padding: 12px;
        background: rgba(7, 15, 22, 0.97);
        border: 1px solid var(--line-strong);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        backdrop-filter: blur(18px);
    }

    .site-nav__menu.is-open {
        display: grid;
        gap: 10px;
    }

    .site-nav__links,
    .site-nav__account {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .site-nav__account {
        padding-top: 10px;
        border-top: 1px solid var(--line);
    }

    .site-nav__link,
    .site-nav__account .button {
        width: 100%;
        justify-content: center;
    }

    .site-nav__logout {
        width: 100%;
    }

    .hero-status {
        min-height: 270px;
        gap: 28px;
    }

    .hero-status__side {
        max-width: 220px;
    }

    .hero-status__side strong {
        font-size: 0.72rem;
    }

    .hero-status__side small {
        font-size: 0.63rem;
    }

    .hero-cap {
        grid-template-columns: 1fr auto;
    }

    .hero-cap__stats {
        display: none;
    }

    .home-intro {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .home-intro__actions {
        justify-content: flex-start;
    }

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

    .stat-ribbon__item:nth-child(3)::before {
        display: none;
    }

    .stat-ribbon__item:nth-child(n+3) {
        border-top: 1px solid var(--line);
    }

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

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

    .city-code {
        grid-column: 1 / -1;
    }

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

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

    .feature-card__number {
        margin-bottom: 25px;
    }

    .auth-shell,
    .setup-grid {
        grid-template-columns: 1fr;
    }

    .auth-shell {
        gap: 45px;
    }

    .auth-story {
        max-width: none;
    }

    .setup-grid {
        gap: 40px;
    }

    .forum-layout {
        grid-template-columns: 1fr;
    }

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

    .forum-guidelines {
        grid-column: 1 / -1;
    }

    .thread-table__header {
        grid-template-columns: minmax(0, 1fr) 90px;
    }

    .thread-table__header span:last-child {
        display: none;
    }

    .thread-row {
        grid-template-columns: 36px minmax(0, 1fr) 90px;
    }

    .thread-row__latest {
        display: none;
    }

    .forum-post {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .editor-layout {
        grid-template-columns: 1fr;
    }

    .editor-tips {
        position: static;
    }

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

    .site-footer__grid {
        grid-template-columns: 1.5fr repeat(2, 0.75fr);
    }

    .site-footer__about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    body {
        font-size: 15px;
    }

    .shell {
        width: min(calc(100% - 24px), var(--shell));
    }

    .site-hero {
        min-height: 530px;
    }

    .site-nav__links,
    .site-nav__account {
        grid-template-columns: 1fr;
    }

    .site-nav__link,
    .site-nav__account .button {
        justify-content: flex-start;
    }

    .hero-status {
        grid-template-columns: 1fr 1fr;
        min-height: 340px;
        align-content: center;
        gap: 28px 14px;
        padding-block: 25px 110px;
    }

    .hero-status__brand {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .hero-status__brand .brand-mark {
        width: 82px;
        height: 82px;
    }

    .hero-status__side {
        width: 100%;
        max-width: none;
        justify-content: center;
        text-align: left;
    }

    .hero-status__side--play {
        text-align: right;
    }

    .hero-status__icon {
        width: 42px;
        height: 42px;
    }

    .hero-cap {
        position: absolute;
        right: 12px;
        bottom: 0;
        left: 12px;
        width: auto;
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 17px;
    }

    .hero-cap .button {
        width: 100%;
    }

    .home-intro {
        padding-top: 60px;
    }

    .home-intro__actions,
    .home-intro__actions .button {
        width: 100%;
    }

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

    .stat-ribbon__item + .stat-ribbon__item::before {
        display: none;
    }

    .stat-ribbon__item:nth-child(n+2) {
        border-top: 1px solid var(--line);
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-block {
        padding-block: 65px;
    }

    .news-card__visual {
        min-height: 210px;
    }

    .news-card__footer {
        grid-template-columns: auto 1fr;
    }

    .news-card__footer .button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .home-sidebar {
        grid-template-columns: 1fr;
    }

    .city-code {
        grid-column: auto;
    }

    .home-cta,
    .support-cta {
        grid-template-columns: 1fr;
        margin-block: 60px;
    }

    .home-cta .button,
    .support-cta .button {
        width: 100%;
    }

    .form-grid--two {
        grid-template-columns: 1fr;
    }

    .auth-shell {
        min-height: 0;
        padding-block: 65px 80px;
    }

    .auth-story h1 {
        font-size: 2.8rem;
    }

    .setup-progress {
        margin-bottom: 45px;
    }

    .setup-progress span {
        align-items: flex-start;
        flex-direction: column;
        font-size: 0.56rem;
    }

    .setup-progress span:not(:last-child)::after {
        position: absolute;
        top: 14px;
        left: 33px;
        width: calc(100% - 40px);
        margin: 0;
    }

    .page-banner,
    .thread-hero {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 20px;
        padding-top: 58px;
    }

    .page-banner__actions,
    .page-banner__actions .button {
        width: 100%;
    }

    .breadcrumbs {
        overflow-x: auto;
    }

    .forum-category-row {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
    }

    .forum-category-row__counts {
        grid-column: 2;
        justify-content: flex-start;
    }

    .forum-sidebar {
        grid-template-columns: 1fr;
    }

    .forum-guidelines {
        grid-column: auto;
    }

    .thread-table__header {
        display: none;
    }

    .thread-row {
        grid-template-columns: 34px minmax(0, 1fr);
        min-height: 112px;
        gap: 13px;
    }

    .thread-row__replies {
        grid-column: 2;
        justify-content: start;
        grid-auto-flow: column;
        gap: 5px;
        text-align: left;
    }

    .forum-post {
        grid-template-columns: 1fr;
    }

    .forum-post__author {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        min-height: auto;
        justify-items: start;
        gap: 3px 12px;
        padding: 16px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        text-align: left;
    }

    .forum-post__author .avatar--large {
        width: 52px;
        height: 52px;
        grid-row: 1 / span 2;
        font-size: 0.75rem;
    }

    .forum-post__author > strong {
        margin: 0;
        align-self: end;
    }

    .forum-post__author .role-badge {
        min-width: 0;
        align-self: center;
        grid-row: 1 / span 2;
        grid-column: 3;
        margin: 0;
    }

    .forum-post__author dl {
        display: none;
    }

    .forum-post__content {
        min-height: 240px;
        padding: 19px;
    }

    .reply-panel__message {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .reply-panel__message .button {
        width: 100%;
        margin-left: 0;
    }

    .editor-tips ol {
        grid-template-columns: 1fr;
    }

    .help-search {
        padding-block: 68px 80px;
    }

    .help-search__field input {
        min-height: 58px;
        padding-right: 18px;
    }

    .help-search__field kbd {
        display: none;
    }

    .help-topic-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .help-topic-card {
        min-height: 120px;
    }

    .error-page {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .error-page__code {
        font-size: 7rem;
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 38px 26px;
    }

    .site-footer__about {
        grid-column: 1 / -1;
    }

    .site-footer__bottom {
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
        padding-block: 18px;
    }
}

@media (max-width: 420px) {
    .site-nav__brand > span:last-child {
        display: none;
    }

    .hero-status__side {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .hero-status__side--play {
        text-align: center;
    }

    .hero-status__side--play .hero-status__icon {
        order: 0;
    }

    .forum-category-row__icon {
        width: 40px;
        height: 40px;
    }

    .field__meta {
        flex-direction: column;
        gap: 3px;
    }

    .form-actions--split {
        flex-direction: column-reverse;
    }

    .form-actions--split .button {
        width: 100%;
    }

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

    .site-footer__about {
        grid-column: auto;
    }
}

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

    .news-more__grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
