:root {
    --page-bg: #090b0e;
    --page-bg-soft: #0e1116;
    --surface: rgba(20, 24, 30, 0.86);
    --surface-solid: #15191f;
    --surface-raised: #1c2128;
    --surface-hover: #242a33;
    --border: rgba(153, 164, 178, 0.18);
    --border-strong: rgba(201, 162, 39, 0.42);
    --brand: #c9a227;
    --brand-bright: #f2c94c;
    --brand-pale: #f0d782;
    --brand-glow: rgba(201, 162, 39, 0.22);
    --danger: #a82a2a;
    --danger-bright: #e14b40;
    --cold: #4e769b;
    --text: #f1f0ec;
    --muted: #9ca4ad;
    --muted-dark: #6f7780;
    --display: 'Oswald', sans-serif;
    --body: 'Manrope', 'Segoe UI', sans-serif;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);

    /* Backward-compatible tokens used by the existing portal script. */
    --inv-bg: rgba(18, 20, 24, 0.97);
    --inv-panel: rgba(28, 32, 38, 0.78);
    --inv-slot: rgba(42, 46, 54, 0.92);
    --inv-slot-hover: rgba(55, 60, 70, 0.95);
    --inv-border: rgba(70, 76, 88, 0.6);
    --inv-accent: var(--brand);
    --inv-accent-dim: var(--brand-glow);
    --inv-text: var(--text);
    --inv-text-dim: var(--muted);
    --inv-radius: var(--radius-sm);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--page-bg);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 18% 38%, rgba(43, 68, 91, 0.13), transparent 32rem),
        linear-gradient(180deg, var(--page-bg) 0%, #0d1014 55%, #080a0d 100%);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

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

::selection {
    background: var(--brand);
    color: #101114;
}

:focus-visible {
    outline: 2px solid var(--brand-bright);
    outline-offset: 4px;
}

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

.section-space {
    padding-block: 118px;
    scroll-margin-top: 90px;
}

.page-grid {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, transparent 5%, #000 28%, #000 80%, transparent 100%);
}

.ambient {
    position: fixed;
    z-index: -1;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(110px);
    opacity: 0.07;
}

.ambient-one {
    top: 22%;
    left: -14rem;
    background: var(--cold);
}

.ambient-two {
    right: -16rem;
    bottom: 6%;
    background: var(--brand);
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: 86px;
    border-bottom: 1px solid transparent;
    background: linear-gradient(180deg, rgba(5, 7, 10, 0.72), rgba(5, 7, 10, 0));
    transition: height 280ms ease, background 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.site-header.scrolled,
.site-header.portal-mode {
    height: 74px;
    border-color: var(--border);
    background: rgba(8, 10, 13, 0.88);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.header-inner {
    width: min(1440px, calc(100% - 48px));
    height: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.brand img {
    width: 50px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(201, 162, 39, 0.23));
    transition: transform 280ms ease, filter 280ms ease;
}

.brand:hover img {
    transform: translateY(-2px) rotate(-2deg);
    filter: drop-shadow(0 0 18px rgba(242, 201, 76, 0.42));
}

.brand-copy {
    display: grid;
    line-height: 1;
}

.brand-copy strong {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-copy small {
    margin-top: 6px;
    color: var(--brand-pale);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.28em;
}

.main-menu {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 5px;
    height: 100%;
    margin-left: auto;
}

.tab-btn,
.menu-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 13px;
    border: 0;
    background: transparent;
    color: rgba(241, 240, 236, 0.64);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    white-space: nowrap;
    cursor: pointer;
    transition: color 220ms ease;
}

.tab-btn::after,
.menu-link::after {
    content: '';
    position: absolute;
    right: 13px;
    bottom: 0;
    left: 13px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
    transform: scaleX(0);
    transition: transform 240ms ease;
}

.tab-btn:hover,
.menu-link:hover,
.tab-btn.active {
    color: #fff;
}

.tab-btn:hover::after,
.menu-link:hover::after,
.tab-btn.active::after {
    transform: scaleX(1);
}

.admin-nav {
    color: #ff7066;
}

.auth-panel {
    flex: 0 0 auto;
    min-width: 76px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-auth-btn {
    min-height: 38px;
    padding: 8px 15px;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    background: rgba(201, 162, 39, 0.08);
    color: var(--brand-pale);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 220ms ease, border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.header-auth-btn:hover {
    transform: translateY(-1px);
    border-color: var(--brand-bright);
    background: rgba(201, 162, 39, 0.16);
    color: #fff;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(18, 21, 26, 0.74);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin-block: 4px;
    background: var(--text);
    transition: transform 220ms ease, opacity 220ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Tabs */
.tab-content {
    display: none;
    animation: tab-in 420ms ease both;
}

.tab-content.active-tab {
    display: block;
}

@keyframes tab-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hero */
.hero {
    --hero-shift-x: 0px;
    --hero-shift-y: 0px;
    position: relative;
    isolation: isolate;
    min-height: max(780px, 100svh);
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #081019;
}

.hero::before {
    content: '';
    position: absolute;
    inset: -5%;
    z-index: -3;
    background-image:
        linear-gradient(180deg, rgba(5, 7, 10, 0.34) 0%, rgba(6, 9, 13, 0.2) 42%, rgba(8, 10, 13, 0.92) 100%),
        linear-gradient(90deg, rgba(5, 8, 12, 0.68), transparent 38%, transparent 65%, rgba(5, 8, 12, 0.58)),
        url('bg.jpg');
    background-position: center;
    background-size: cover;
    filter: saturate(0.84) contrast(1.06) brightness(0.74);
    transform: translate3d(var(--hero-shift-x), var(--hero-shift-y), 0) scale(1.09);
    transition: transform 140ms linear;
    will-change: transform;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 50% 48%, rgba(15, 25, 34, 0.06) 0 23%, rgba(4, 6, 9, 0.7) 78%),
        linear-gradient(180deg, rgba(5, 7, 10, 0.16) 58%, var(--page-bg) 100%);
    pointer-events: none;
}

#embers-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
}

.hero-noise {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.18;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.018) 4px),
        radial-gradient(circle at 72% 68%, rgba(201, 162, 39, 0.12), transparent 9rem);
    mask-image: linear-gradient(180deg, #000, transparent 86%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 72px;
    text-align: center;
}

.hero-mark {
    width: 104px;
    height: 104px;
    margin-bottom: 12px;
    opacity: 0;
    filter: drop-shadow(0 0 22px rgba(201, 162, 39, 0.3));
    animation: hero-rise 900ms 80ms cubic-bezier(.2,.8,.2,1) forwards;
}

.hero-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 17px;
    color: rgba(240, 215, 130, 0.9);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.26em;
    opacity: 0;
    animation: hero-rise 900ms 160ms cubic-bezier(.2,.8,.2,1) forwards;
}

.hero-kicker span {
    width: 34px;
    height: 1px;
    background: var(--brand);
    box-shadow: 0 0 10px var(--brand);
}

.hero h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(6rem, 10.2vw, 11.4rem);
    font-weight: 700;
    line-height: 0.72;
    letter-spacing: 0.015em;
    text-transform: uppercase;
    opacity: 0;
    animation: hero-title-in 1.1s 220ms cubic-bezier(.16,.8,.2,1) forwards;
}

.hero h1 span,
.hero h1 em {
    display: block;
    font-style: normal;
}

.hero h1 span {
    color: #f4f1e9;
    text-shadow: 0 14px 45px rgba(0, 0, 0, 0.55);
}

.hero h1 em {
    margin-top: 0.22em;
    color: var(--brand-bright);
    font-size: 0.54em;
    letter-spacing: 0.62em;
    padding-left: 0.62em;
    text-shadow: 0 0 26px rgba(201, 162, 39, 0.32), 0 10px 30px rgba(0, 0, 0, 0.7);
}

.hero-lead {
    max-width: 720px;
    margin: 42px auto 0;
    color: rgba(241, 240, 236, 0.78);
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.8;
    opacity: 0;
    animation: hero-rise 900ms 420ms cubic-bezier(.2,.8,.2,1) forwards;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 31px;
    opacity: 0;
    animation: hero-rise 900ms 520ms cubic-bezier(.2,.8,.2,1) forwards;
}

.primary-cta,
.secondary-cta {
    position: relative;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 0 26px;
    overflow: hidden;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.primary-cta {
    border: 1px solid var(--brand-bright);
    background: linear-gradient(110deg, #9e7b16, var(--brand-bright) 50%, #b18a1b);
    box-shadow: 0 12px 34px rgba(201, 162, 39, 0.2);
    color: #0c0d10;
}

.primary-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -80%;
    width: 45%;
    height: 200%;
    background: rgba(255, 255, 255, 0.36);
    transform: rotate(18deg);
    transition: left 520ms ease;
}

.primary-cta:hover::before {
    left: 135%;
}

.primary-cta span,
.primary-cta b {
    position: relative;
    z-index: 1;
}

.primary-cta b {
    font-size: 17px;
}

.secondary-cta {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(10, 13, 17, 0.44);
    color: var(--text);
    backdrop-filter: blur(9px);
}

.primary-cta:hover,
.secondary-cta:hover {
    transform: translateY(-3px);
}

.primary-cta:hover {
    box-shadow: 0 18px 46px rgba(201, 162, 39, 0.34);
}

.secondary-cta:hover {
    border-color: var(--brand);
    background: rgba(201, 162, 39, 0.08);
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 27px;
    color: rgba(241, 240, 236, 0.54);
    font-family: var(--display);
    font-size: 10px;
    letter-spacing: 0.16em;
    opacity: 0;
    animation: hero-rise 900ms 600ms cubic-bezier(.2,.8,.2,1) forwards;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-meta span + span::before {
    content: '';
    width: 3px;
    height: 3px;
    margin-right: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.34);
}

.status-dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-bright);
    box-shadow: 0 0 12px var(--brand-bright);
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 1px solid rgba(242, 201, 76, 0.58);
    border-radius: 50%;
    animation: status-pulse 2s ease-out infinite;
}

.scroll-cue {
    position: absolute;
    z-index: 3;
    bottom: 28px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.28em;
    transform: translateX(-50%);
}

.scroll-cue i {
    position: relative;
    width: 1px;
    height: 34px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.16);
}

.scroll-cue i::after {
    content: '';
    position: absolute;
    inset: -100% 0 auto;
    height: 100%;
    background: var(--brand-bright);
    animation: scroll-drop 1.8s ease-in-out infinite;
}

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-title-in {
    from { opacity: 0; transform: translateY(34px) scale(0.97); letter-spacing: 0.04em; }
    to { opacity: 1; transform: translateY(0) scale(1); letter-spacing: 0.015em; }
}

@keyframes status-pulse {
    0% { opacity: 0.9; transform: scale(0.6); }
    100% { opacity: 0; transform: scale(1.5); }
}

@keyframes scroll-drop {
    0% { transform: translateY(0); }
    70%, 100% { transform: translateY(200%); }
}

/* Shared section typography */
.section-kicker {
    margin: 0 0 15px;
    color: var(--brand-pale);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.25em;
}

.section-kicker::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    margin-right: 10px;
    vertical-align: middle;
    background: var(--brand);
    box-shadow: 0 0 8px rgba(201, 162, 39, 0.5);
}

.display-title {
    max-width: 820px;
    margin: 0;
    color: #f3f1eb;
    font-family: var(--display);
    font-size: clamp(2.55rem, 4.3vw, 4.8rem);
    font-weight: 600;
    line-height: 1.03;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.section-lead,
.portal-intro {
    max-width: 690px;
    margin: 25px 0 0;
    color: var(--muted);
    line-height: 1.85;
}

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

.section-heading > p {
    width: min(100%, 390px);
    margin: 0 0 8px;
    color: var(--muted);
}

.section-heading.centered {
    flex-direction: column;
    align-items: center;
    max-width: 850px;
    margin-inline: auto;
    text-align: center;
}

.section-heading.centered .display-title {
    margin-inline: auto;
}

.section-heading.centered > p {
    width: min(100%, 630px);
}

/* Pillars */
.survival-pillars {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: -2px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(15, 18, 23, 0.91);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.pillar-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    min-height: 220px;
    padding: 32px;
    overflow: hidden;
}

.pillar-card + .pillar-card {
    border-left: 1px solid var(--border);
}

.pillar-card::after {
    content: '';
    position: absolute;
    inset: auto 10% 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 260ms ease, transform 260ms ease;
}

.pillar-card:hover::after {
    opacity: 0.8;
    transform: scaleX(1);
}

.pillar-index {
    color: var(--brand);
    font-family: var(--display);
    font-size: 13px;
    font-weight: 600;
}

.pillar-card p {
    margin: 0 0 12px;
    color: var(--muted-dark);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.pillar-card h2 {
    margin: 0 0 13px;
    font-family: var(--display);
    font-size: 27px;
    font-weight: 500;
    line-height: 1.15;
    text-transform: uppercase;
}

.pillar-card div > span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

/* World */
.world-section {
    position: relative;
}

.world-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
    align-items: center;
    gap: 84px;
}

.checked-list {
    display: grid;
    gap: 3px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.checked-list li {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    min-height: 54px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(241, 240, 236, 0.82);
    font-size: 13px;
}

.checked-list li span {
    color: var(--brand);
    font-family: var(--display);
    font-size: 11px;
}

.world-visual {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background-image:
        linear-gradient(180deg, rgba(8, 11, 15, 0.12), rgba(8, 11, 15, 0.76)),
        linear-gradient(90deg, rgba(8, 11, 15, 0.78), transparent 45%),
        url('bg.jpg');
    background-position: 62% center;
    background-size: cover;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35);
}

.world-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(90deg, transparent, #000 35%, #000);
}

.world-radar {
    position: absolute;
    top: 54px;
    right: 48px;
    width: 168px;
    height: 168px;
    border: 1px solid rgba(201, 162, 39, 0.28);
    border-radius: 50%;
}

.world-radar::before,
.world-radar::after,
.world-radar i {
    content: '';
    position: absolute;
    inset: 50% auto auto 50%;
    background: rgba(201, 162, 39, 0.22);
    transform: translate(-50%, -50%);
}

.world-radar::before {
    width: 1px;
    height: 100%;
}

.world-radar::after {
    width: 100%;
    height: 1px;
}

.world-radar i:nth-child(1) {
    width: 68%;
    height: 68%;
    border: 1px solid rgba(201, 162, 39, 0.18);
    border-radius: 50%;
    background: transparent;
}

.world-radar i:nth-child(2) {
    width: 34%;
    height: 34%;
    border: 1px solid rgba(201, 162, 39, 0.18);
    border-radius: 50%;
    background: transparent;
}

.world-radar i:nth-child(3) {
    width: 50%;
    height: 1px;
    transform-origin: left center;
    animation: radar-sweep 5s linear infinite;
}

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

.map-label {
    position: absolute;
    display: grid;
    gap: 2px;
    padding-left: 18px;
    color: #fff;
    font-size: 9px;
    letter-spacing: 0.15em;
}

.map-label::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 0;
    width: 7px;
    height: 7px;
    border: 1px solid var(--brand-bright);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.12), 0 0 12px var(--brand);
}

.map-label b {
    font-family: var(--display);
    font-size: 12px;
    font-weight: 500;
}

.map-label span {
    color: var(--brand-pale);
}

.label-city { top: 36%; left: 36%; }
.label-wild { top: 62%; left: 14%; }
.label-bunker { right: 12%; bottom: 24%; }

.world-caption {
    position: absolute;
    right: 28px;
    bottom: 25px;
    left: 28px;
    display: flex;
    justify-content: space-between;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.52);
    font-size: 8px;
    letter-spacing: 0.16em;
}

.world-caption b {
    color: var(--brand-pale);
}

/* Features */
.features-section {
    background:
        linear-gradient(180deg, transparent, rgba(19, 23, 28, 0.72) 20%, rgba(19, 23, 28, 0.72) 80%, transparent),
        radial-gradient(circle at 75% 48%, rgba(201, 162, 39, 0.06), transparent 28rem);
}

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

.feature-card {
    --x: 50%;
    --y: 50%;
    position: relative;
    min-height: 330px;
    padding: 34px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(31, 36, 44, 0.88), rgba(17, 20, 25, 0.96));
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    transition: transform 320ms cubic-bezier(.2,.8,.2,1), border-color 320ms ease, box-shadow 320ms ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(280px circle at var(--x) var(--y), rgba(201, 162, 39, 0.16), transparent 70%);
    transition: opacity 260ms ease;
}

.feature-card:hover {
    z-index: 1;
    transform: translateY(-7px);
    border-color: var(--border-strong);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35), 0 0 35px rgba(201, 162, 39, 0.06);
}

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

.feature-card-large {
    grid-column: span 2;
    min-height: 370px;
    background:
        linear-gradient(105deg, rgba(15, 18, 23, 0.96) 0%, rgba(20, 25, 31, 0.88) 60%, rgba(43, 50, 59, 0.74)),
        url('bg.jpg') center / cover;
}

.feature-card-large::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(10, 12, 16, 0.94), rgba(10, 12, 16, 0.6) 60%, rgba(10, 12, 16, 0.22));
}

.feature-card-large > * {
    position: relative;
    z-index: 1;
}

.feature-card-wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 30px;
}

.feature-topline {
    display: flex;
    justify-content: space-between;
    max-width: 580px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.feature-topline b {
    color: var(--brand-pale);
}

.feature-card h3 {
    max-width: 590px;
    margin: 26px 0 16px;
    font-family: var(--display);
    font-size: clamp(1.8rem, 2.3vw, 2.8rem);
    font-weight: 500;
    line-height: 1.12;
    text-transform: uppercase;
}

.feature-card p {
    position: relative;
    z-index: 1;
    max-width: 570px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.feature-tag {
    position: relative;
    z-index: 1;
    display: inline-flex;
    padding: 7px 10px;
    border: 1px solid rgba(201, 162, 39, 0.24);
    border-radius: 3px;
    color: var(--brand-pale);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.feature-number {
    position: absolute;
    right: 26px;
    bottom: -28px;
    color: rgba(255, 255, 255, 0.045);
    font-family: var(--display);
    font-size: 12rem;
    font-weight: 700;
    line-height: 1;
}

.feature-signal {
    position: absolute;
    right: 40px;
    bottom: 38px;
    z-index: 2;
    display: flex;
    align-items: end;
    gap: 6px;
    height: 44px;
}

.feature-signal i {
    width: 3px;
    height: 28%;
    background: var(--brand);
    box-shadow: 0 0 8px rgba(201, 162, 39, 0.5);
    animation: signal-bars 1.1s ease-in-out infinite alternate;
}

.feature-signal i:nth-child(2) { height: 55%; animation-delay: 120ms; }
.feature-signal i:nth-child(3) { height: 100%; animation-delay: 240ms; }
.feature-signal i:nth-child(4) { height: 68%; animation-delay: 360ms; }
.feature-signal i:nth-child(5) { height: 36%; animation-delay: 480ms; }

@keyframes signal-bars {
    to { transform: scaleY(0.58); opacity: 0.45; }
}

.feature-icon {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    margin-bottom: 32px;
    border: 1px solid rgba(201, 162, 39, 0.28);
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(201, 162, 39, 0.05), 0 0 20px rgba(201, 162, 39, 0.04);
}

.base-icon::before,
.base-icon::after {
    content: '';
    position: absolute;
    background: var(--brand);
}

.base-icon::before {
    width: 27px;
    height: 22px;
    top: 25px;
    left: 18px;
    border: 1px solid var(--brand);
    background: transparent;
}

.base-icon::after {
    width: 27px;
    height: 27px;
    top: 14px;
    left: 18px;
    background: transparent;
    border-top: 1px solid var(--brand);
    border-left: 1px solid var(--brand);
    transform: rotate(45deg);
}

.infected-icon::before,
.infected-icon::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.infected-icon::before {
    inset: 16px;
    border: 1px solid var(--danger-bright);
    box-shadow: 0 0 16px rgba(225, 75, 64, 0.28);
}

.infected-icon::after {
    inset: 27px;
    background: var(--danger-bright);
}

.danger-card {
    border-color: rgba(168, 42, 42, 0.24);
}

.danger-card .feature-tag {
    border-color: rgba(225, 75, 64, 0.24);
    color: #ff8b82;
}

.vehicle-icon::before {
    content: '';
    position: absolute;
    top: 27px;
    left: 14px;
    width: 34px;
    height: 15px;
    border: 1px solid var(--brand);
    border-radius: 3px;
    box-shadow: -3px 12px 0 -5px var(--brand), 26px 12px 0 -5px var(--brand);
}

.vehicle-icon::after {
    content: '';
    position: absolute;
    top: 19px;
    left: 23px;
    width: 17px;
    height: 9px;
    border-top: 1px solid var(--brand);
    border-left: 1px solid var(--brand);
    border-right: 1px solid var(--brand);
    transform: skewX(-18deg);
}

.economy-icon::before {
    content: '';
    position: absolute;
    inset: 17px;
    border: 1px solid var(--brand);
    transform: rotate(45deg);
}

.economy-icon::after {
    content: 'A';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--brand-pale);
    font-family: var(--display);
    font-size: 18px;
}

.keycards {
    position: relative;
    width: 210px;
    height: 120px;
}

.keycards i {
    position: absolute;
    top: 34px;
    left: 48px;
    width: 96px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 5px;
    background: linear-gradient(140deg, #222832, #0c0f13);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.42);
    transform: rotate(-14deg) translateX(-30px);
}

.keycards i::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 9px;
    width: 18px;
    height: 12px;
    border: 1px solid currentColor;
    border-radius: 2px;
}

.keycards i:nth-child(1) { color: #cf443c; border-color: #85312c; }
.keycards i:nth-child(2) { color: #b79a2b; border-color: #826e24; transform: rotate(-4deg) translateX(-8px); }
.keycards i:nth-child(3) { color: #744f9c; border-color: #563c73; transform: rotate(7deg) translateX(16px); }
.keycards i:nth-child(4) { color: #21262e; border-color: #515863; transform: rotate(18deg) translateX(39px); }

/* Operations */
.operations-section {
    position: relative;
    overflow: hidden;
}

.operations-section::before {
    content: 'AFTERLIFE';
    position: absolute;
    top: 50%;
    left: 50%;
    color: rgba(255, 255, 255, 0.018);
    font-family: var(--display);
    font-size: min(20vw, 22rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.operations-layout {
    position: relative;
    display: grid;
    grid-template-columns: 1fr minmax(430px, 0.78fr);
    align-items: center;
    gap: 86px;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 46px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--border);
}

.metric-row div {
    min-height: 126px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    background: rgba(14, 17, 21, 0.94);
}

.metric-row strong {
    color: var(--brand-pale);
    font-family: var(--display);
    font-size: clamp(2rem, 3vw, 3.2rem);
    font-weight: 500;
    line-height: 1;
}

.metric-row span {
    margin-top: 9px;
    color: var(--muted-dark);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.status-console {
    overflow: hidden;
    border: 1px solid rgba(201, 162, 39, 0.28);
    border-radius: var(--radius);
    background: rgba(12, 15, 19, 0.92);
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.42), 0 0 60px rgba(201, 162, 39, 0.04);
}

.console-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 0 22px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.16);
    background: rgba(201, 162, 39, 0.05);
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.console-head span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.console-head i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-bright);
    box-shadow: 0 0 12px var(--brand);
}

.console-head b {
    color: var(--brand-pale);
}

.console-screen {
    position: relative;
    overflow: hidden;
    padding: 14px 22px;
    background:
        linear-gradient(rgba(201, 162, 39, 0.018) 1px, transparent 1px),
        rgba(8, 11, 14, 0.82);
    background-size: 100% 4px;
}

.scan-line {
    position: absolute;
    z-index: 2;
    top: -20%;
    right: 0;
    left: 0;
    height: 44px;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(242, 201, 76, 0.06), transparent);
    animation: console-scan 5s linear infinite;
}

@keyframes console-scan {
    to { transform: translateY(520px); }
}

.console-screen dl {
    position: relative;
    z-index: 1;
    margin: 0;
}

.console-screen dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    gap: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.console-screen dl div:last-child {
    border-bottom: 0;
}

.console-screen dt {
    color: var(--muted-dark);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.console-screen dd {
    margin: 0;
    color: var(--text);
    font-family: var(--display);
    font-size: 14px;
    letter-spacing: 0.06em;
}

.console-screen dd.pending {
    color: var(--brand-pale);
    font-size: 11px;
}

.status-console > p {
    margin: 0;
    padding: 15px 22px;
    color: var(--muted-dark);
    font-size: 10px;
}

/* Start */
.start-section {
    border-block: 1px solid rgba(255, 255, 255, 0.05);
    background:
        radial-gradient(circle at 50% 100%, rgba(201, 162, 39, 0.08), transparent 30rem),
        rgba(11, 14, 18, 0.68);
}

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

.start-steps::before {
    content: '';
    position: absolute;
    top: 50px;
    right: 16%;
    left: 16%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.32), transparent);
}

.step-card {
    position: relative;
    z-index: 1;
    min-height: 282px;
    padding: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(18, 22, 27, 0.88);
    transition: border-color 260ms ease, transform 260ms ease, background 260ms ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
    background: rgba(23, 28, 34, 0.95);
}

.step-card > span {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: #111419;
    color: var(--brand-pale);
    font-family: var(--display);
    font-size: 15px;
    box-shadow: 0 0 24px rgba(201, 162, 39, 0.08);
}

.step-card h3 {
    margin: 28px 0 12px;
    font-family: var(--display);
    font-size: 26px;
    font-weight: 500;
    text-transform: uppercase;
}

.step-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.start-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 38px;
}

.start-action > span {
    color: var(--muted-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Development journal */
.updates-section {
    position: relative;
}

.updates-section::before {
    content: '';
    position: absolute;
    inset: 9% 0 auto;
    height: 420px;
    pointer-events: none;
    background: radial-gradient(circle at 78% 44%, rgba(201, 162, 39, 0.07), transparent 28rem);
}

.updates-content {
    position: relative;
    display: grid;
    gap: 34px;
}

.updates-empty {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 42px;
    border: 1px dashed rgba(201, 162, 39, 0.3);
    border-radius: var(--radius);
    background:
        linear-gradient(rgba(201, 162, 39, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 162, 39, 0.025) 1px, transparent 1px),
        rgba(13, 16, 20, 0.82);
    background-size: 36px 36px;
    text-align: center;
}

.updates-content.has-updates .updates-empty {
    display: none;
}

.updates-empty span {
    color: var(--brand-pale);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.24em;
}

.updates-empty h3 {
    margin: 15px 0 8px;
    font-family: var(--display);
    font-size: 30px;
    font-weight: 500;
    text-transform: uppercase;
}

.updates-empty p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.featured-news-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(350px, 0.94fr);
    min-height: 510px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #101419;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.featured-news-card:empty {
    display: none;
}

.featured-news-cover {
    position: relative;
    min-height: 510px;
    overflow: hidden;
    background:
        linear-gradient(125deg, rgba(6, 8, 11, 0.25), rgba(6, 8, 11, 0.82)),
        radial-gradient(circle at 66% 24%, rgba(201, 162, 39, 0.22), transparent 16rem),
        url('bg.jpg') center / cover;
}

.featured-news-cover.has-image {
    background-position: center;
    background-size: cover;
}

.featured-news-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 60%, #101419 100%),
        linear-gradient(0deg, rgba(9, 11, 14, 0.55), transparent 58%);
}

.featured-news-cover > img,
.news-reader-cover > img,
.composer-preview-cover > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-news-cover-mark {
    position: absolute;
    z-index: 1;
    left: 34px;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.featured-news-cover-mark::before {
    content: '';
    width: 34px;
    height: 1px;
    background: var(--brand-bright);
}

.featured-news-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 4.4vw, 70px);
}

.featured-news-copy::before {
    content: '';
    position: absolute;
    top: 0;
    right: 42px;
    width: 74px;
    height: 2px;
    background: var(--brand-bright);
    box-shadow: 0 0 18px var(--brand-glow);
}

.news-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.news-chip,
.news-date,
.news-read-time {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.news-chip {
    padding: 6px 9px;
    border: 1px solid rgba(201, 162, 39, 0.45);
    border-radius: 4px;
    background: rgba(201, 162, 39, 0.08);
    color: var(--brand-pale);
}

.news-poll-chip {
    border-color: rgba(117, 201, 164, 0.28);
    background: rgba(85, 201, 138, 0.06);
    color: #77d5a2;
}

.news-date,
.news-read-time {
    color: var(--muted-dark);
}

.news-read-time::before {
    content: '/';
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.14);
}

.featured-news-copy h3 {
    margin: 0;
    color: #fff;
    font-family: var(--display);
    font-size: clamp(2.5rem, 4vw, 4.65rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.featured-news-excerpt {
    display: -webkit-box;
    margin: 24px 0 0;
    overflow: hidden;
    color: #aeb4bb;
    font-size: 14px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.featured-news-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.news-open-btn,
.news-admin-action,
.timeline-open {
    border: 0;
    font-family: var(--body);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

.news-open-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 0 18px;
    border: 1px solid var(--brand);
    border-radius: 5px;
    background: var(--brand);
    color: #0b0d10;
    font-size: 10px;
    transition: background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.news-open-btn:hover {
    background: var(--brand-bright);
    box-shadow: 0 12px 30px rgba(201, 162, 39, 0.18);
    transform: translateY(-2px);
}

.news-admin-action {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: rgba(7, 9, 12, 0.58);
    color: var(--muted);
    font-size: 8px;
}

.news-admin-action:hover {
    border-color: var(--border-strong);
    color: #fff;
}

.news-admin-action.danger:hover {
    border-color: rgba(225, 75, 64, 0.56);
    color: #ff8178;
}

.news-archive {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(13, 16, 20, 0.68);
}

.news-archive[hidden] {
    display: none;
}

.news-archive-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 25px 30px 22px;
    border-bottom: 1px solid var(--border);
}

.news-archive-head span {
    color: var(--brand-pale);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.news-archive-head h3 {
    margin: 4px 0 0;
    font-family: var(--display);
    font-size: 28px;
    font-weight: 500;
    text-transform: uppercase;
}

.news-archive-head .news-total {
    color: var(--muted-dark);
}

.news-timeline {
    display: grid;
}

.news-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    min-height: 132px;
    padding: 24px 30px;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 220ms ease;
}

.news-timeline-item:last-child {
    border-bottom: 0;
}

.news-timeline-item::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: var(--brand);
    transform: scaleY(0);
    transition: transform 220ms ease;
}

.news-timeline-item:hover,
.news-timeline-item:focus-visible {
    outline: none;
    background: rgba(255, 255, 255, 0.025);
}

.news-timeline-item:hover::before,
.news-timeline-item:focus-visible::before {
    transform: scaleY(1);
}

.timeline-date {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--muted-dark);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.timeline-date b {
    color: var(--brand-pale);
    font-family: var(--display);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0;
}

.timeline-copy h4 {
    margin: 0;
    color: #f5f4f0;
    font-family: var(--display);
    font-size: clamp(20px, 2vw, 27px);
    font-weight: 500;
    line-height: 1.16;
    text-transform: uppercase;
}

.timeline-copy p {
    display: -webkit-box;
    margin: 8px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.timeline-open {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    color: var(--brand-bright);
    font-size: 16px;
    transition: border-color 220ms ease, transform 220ms ease;
}

.news-timeline-item:hover .timeline-open {
    border-color: var(--border-strong);
    transform: translateX(3px);
}

.featured-news-card img,
.wiki-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

body.reader-open {
    overflow: hidden;
}

.news-reader-overlay {
    position: fixed;
    z-index: 1300;
    inset: 0;
    overflow-y: auto;
    padding: 28px;
    background: rgba(4, 6, 8, 0.88);
    backdrop-filter: blur(18px);
    animation: readerFadeIn 220ms ease both;
}

.news-reader-overlay[hidden] {
    display: none;
}

.news-reader-shell {
    width: min(980px, 100%);
    min-height: calc(100vh - 56px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #0e1217;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.62);
}

.news-reader-header {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: 12px 20px 12px 28px;
    border-bottom: 1px solid var(--border);
    background: rgba(12, 15, 19, 0.94);
    backdrop-filter: blur(16px);
}

.news-reader-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-reader-brand img {
    width: 42px;
    height: 44px;
    object-fit: contain;
}

.news-reader-brand div {
    display: flex;
    flex-direction: column;
}

.news-reader-brand strong {
    font-family: var(--display);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.12em;
}

.news-reader-brand span {
    color: var(--brand-pale);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.news-reader-close {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.news-reader-close:hover {
    border-color: var(--border-strong);
    color: #fff;
}

.news-reader-close svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.news-reader-article {
    width: min(820px, calc(100% - 48px));
    margin: 0 auto;
    padding: 58px 0 70px;
}

.news-reader-cover {
    position: relative;
    min-height: 380px;
    overflow: hidden;
    margin-bottom: 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(125deg, rgba(6, 8, 11, 0.22), rgba(6, 8, 11, 0.76)),
        url('bg.jpg') center / cover;
}

.news-reader-cover:empty {
    display: none;
}

.news-reader-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    color: var(--brand-pale);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.news-reader-meta span + span::before {
    content: '/';
    margin-right: 16px;
    color: rgba(255, 255, 255, 0.2);
}

.news-reader-article > h2 {
    margin: 0 0 38px;
    color: #fff;
    font-family: var(--display);
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.news-article-content {
    color: #c2c7cd;
    font-size: 16px;
    line-height: 1.85;
}

.news-article-content > :first-child {
    margin-top: 0;
}

.news-article-content h2,
.news-article-content h3 {
    margin: 2.1em 0 0.7em;
    color: #f4f2ec;
    font-family: var(--display);
    font-weight: 500;
    line-height: 1.15;
    text-transform: uppercase;
}

.news-article-content h2 { font-size: 32px; }
.news-article-content h3 { font-size: 25px; }

.news-article-content p,
.news-article-content ul,
.news-article-content ol,
.news-article-content blockquote {
    margin: 0 0 1.25em;
}

.news-article-content a {
    color: var(--brand-pale);
    text-decoration-color: rgba(201, 162, 39, 0.5);
    text-underline-offset: 4px;
}

.news-article-content blockquote {
    padding: 18px 22px;
    border-left: 2px solid var(--brand);
    background: rgba(201, 162, 39, 0.055);
    color: #e1dfd8;
}

.news-article-content img {
    display: block;
    width: 100%;
    height: auto;
    margin: 32px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.news-article-content hr {
    height: 1px;
    margin: 38px 0;
    border: 0;
    background: var(--border);
}

.news-poll {
    position: relative;
    overflow: hidden;
    margin-top: 54px;
    padding: 28px;
    border: 1px solid var(--border-strong);
    border-left: 2px solid var(--brand);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 100% 0, rgba(201, 162, 39, 0.09), transparent 38%),
        rgba(8, 11, 14, 0.82);
}

.news-poll[hidden] {
    display: none;
}

.news-poll::before {
    content: '';
    position: absolute;
    inset: 0 28px auto;
    height: 1px;
    background: linear-gradient(90deg, var(--brand), transparent);
    opacity: 0.7;
}

.news-poll-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
}

.news-poll-head > div > span {
    color: var(--brand-pale);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.news-poll-head h3 {
    margin: 8px 0 0;
    color: #f1f0eb;
    font-family: var(--display);
    font-size: clamp(25px, 4vw, 38px);
    font-weight: 500;
    line-height: 1.08;
    text-transform: uppercase;
}

.news-poll-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border: 1px solid rgba(76, 201, 137, 0.28);
    border-radius: 4px;
    color: #73d5a0;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.news-poll-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #55c98a;
    box-shadow: 0 0 10px rgba(85, 201, 138, 0.7);
}

.news-poll-status.is-closed {
    border-color: var(--border);
    color: var(--muted);
}

.news-poll-status.is-closed i {
    background: #737a82;
    box-shadow: none;
}

.news-poll-options {
    display: grid;
    gap: 9px;
}

.news-poll-option {
    --poll-result: 0%;
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    overflow: hidden;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: rgba(4, 6, 8, 0.5);
    color: #d5d8da;
    text-align: left;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.news-poll-option:not(:disabled):hover {
    border-color: rgba(201, 162, 39, 0.58);
    background: rgba(201, 162, 39, 0.055);
    transform: translateX(3px);
}

.news-poll-option:disabled {
    cursor: default;
}

.news-poll-option.is-selected {
    border-color: rgba(201, 162, 39, 0.72);
    background: rgba(201, 162, 39, 0.08);
}

.news-poll-option-bar {
    position: absolute;
    z-index: -1;
    inset: 0 auto 0 0;
    width: var(--poll-result);
    border-right: 1px solid rgba(201, 162, 39, 0.32);
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.16), rgba(201, 162, 39, 0.035));
    transition: width 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.news-poll-option-label {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-poll-option-label i {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--border-strong);
    border-radius: 3px;
    color: #0d1013;
    font-size: 13px;
    font-style: normal;
}

.news-poll-option.is-selected .news-poll-option-label i {
    border-color: var(--brand-bright);
    background: var(--brand-bright);
}

.news-poll-option-label b {
    overflow: hidden;
    overflow-wrap: anywhere;
    font-size: 12px;
    text-overflow: ellipsis;
}

.news-poll-option-result {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    gap: 9px;
    flex: 0 0 auto;
}

.news-poll-option-result b {
    color: #f2c93d;
    font-family: var(--display);
    font-size: 21px;
    font-weight: 500;
}

.news-poll-option-result small,
.news-poll-option-arrow {
    color: var(--muted-dark);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.news-poll-option-arrow {
    color: var(--brand-pale);
    font-size: 17px;
}

.news-poll-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 17px;
    color: var(--muted-dark);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.news-poll-login {
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(201, 162, 39, 0.45);
    background: transparent;
    color: var(--brand-pale);
    font: inherit;
    letter-spacing: inherit;
    cursor: pointer;
}

.news-poll-loading,
.news-poll-error {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.news-poll-loading i {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(201, 162, 39, 0.2);
    border-top-color: var(--brand-bright);
    border-radius: 50%;
    animation: pollSpin 700ms linear infinite;
}

.news-poll-error {
    color: #ff8178;
}

.news-poll.is-submitting {
    pointer-events: none;
    opacity: 0.7;
}

@keyframes pollSpin {
    to { transform: rotate(360deg); }
}

.news-reader-comments {
    margin-top: 58px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.comment-toggle-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #e8e7e2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    cursor: pointer;
}

.comment-toggle-btn b {
    margin-left: auto;
    color: var(--brand-bright);
    font-size: 15px;
    transition: transform 260ms ease;
}

.comment-toggle-btn[aria-expanded="true"] b {
    transform: rotate(180deg);
}

.comment-toggle-btn:hover {
    color: #fff;
}

#comment-count {
    min-width: 30px;
    padding: 4px 9px;
    border: 1px solid var(--border-strong);
    border-radius: 99px;
    background: rgba(201, 162, 39, 0.08);
    color: var(--brand-pale);
    text-align: center;
}

.comments-slide {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 500ms ease, opacity 350ms ease, margin-top 350ms ease;
}

.comments-slide.open {
    max-height: 1400px;
    margin-top: 24px;
    opacity: 1;
}

.comments-list {
    max-height: 430px;
    overflow-y: auto;
    padding-right: 8px;
}

.news-comment {
    margin-bottom: 10px;
    padding: 15px 17px;
    border: 1px solid var(--border);
    border-left: 2px solid rgba(201, 162, 39, 0.66);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.18);
}

.news-comment-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 7px;
}

.news-comment-head b {
    color: var(--brand-pale);
    font-size: 12px;
}

.news-comment-head span {
    color: var(--muted-dark);
    font-size: 10px;
}

.news-comment-text {
    color: #c7cbd0;
    font-size: 13px;
    word-break: break-word;
}

.comment-form {
    margin-top: 16px;
}

.comment-form .auth-input {
    min-height: 90px;
    resize: vertical;
    text-align: left;
}

.comment-form .buy-btn {
    width: auto;
}

@keyframes readerFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Final CTA */
.final-cta {
    position: relative;
    min-height: 720px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background-image:
        linear-gradient(180deg, var(--page-bg), rgba(8, 11, 15, 0.38) 30%, rgba(8, 11, 15, 0.82)),
        linear-gradient(90deg, rgba(8, 11, 15, 0.86), transparent, rgba(8, 11, 15, 0.86)),
        url('bg.jpg');
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

.final-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 55%, transparent, rgba(5, 7, 9, 0.82) 76%);
}

.final-cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-block: 110px;
    text-align: center;
}

.final-cta img {
    width: 110px;
    filter: drop-shadow(0 0 28px rgba(201, 162, 39, 0.25));
}

.final-cta .section-kicker {
    margin-top: 22px;
}

.final-cta h2 {
    max-width: 900px;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(3rem, 6vw, 6.6rem);
    font-weight: 600;
    line-height: 0.98;
    text-transform: uppercase;
}

.final-cta p:not(.section-kicker) {
    max-width: 650px;
    margin: 24px auto 30px;
    color: rgba(241, 240, 236, 0.68);
}

/* Portal tabs */
.portal-tab {
    min-height: 100vh;
    padding: 145px 0 110px;
}

.portal-tab .display-title {
    margin-top: 6px;
}

.portal-intro {
    margin-bottom: 38px;
}

.store-header {
    text-align: center;
}

.store-header .display-title,
.store-header .portal-intro {
    margin-inline: auto;
}

.nav-bar {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin: 18px auto 0;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(19, 23, 28, 0.8);
}

.cat-btn {
    padding: 11px 18px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: color 200ms ease, background 200ms ease;
}

.cat-btn:hover,
.cat-btn.active {
    background: var(--surface-raised);
    color: var(--brand-pale);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding-top: 48px;
}

.card {
    position: relative;
    min-width: 0;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: center;
    transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
    opacity: 0.5;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.card h3 {
    margin: 12px 0;
    color: #fff;
    font-family: var(--display);
    font-size: 22px;
    font-weight: 500;
    text-transform: uppercase;
}

.price {
    margin: 15px 0;
    color: var(--brand-pale);
    font-family: var(--display);
    font-size: 28px;
}

.card.rented {
    cursor: not-allowed;
    filter: grayscale(1);
    opacity: 0.48;
}

.card.rented:hover {
    transform: none;
}

.wiki-card {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(21, 25, 31, 0.84);
    transition: border-color 220ms ease, background 220ms ease;
}

.wiki-card:hover,
.wiki-card.open {
    border-color: var(--border-strong);
    background: rgba(25, 30, 36, 0.94);
}

.wiki-header {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    color: #fff;
    font-family: var(--display);
    font-size: 22px;
    text-transform: uppercase;
    cursor: pointer;
}

.wiki-arrow {
    color: var(--brand-pale);
    font-family: var(--body);
    font-size: 11px;
    transition: transform 260ms ease;
}

.wiki-card.open .wiki-arrow {
    transform: rotate(180deg);
}

.wiki-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    color: #c7c9cd;
    opacity: 0;
    transition: max-height 420ms ease, padding 420ms ease, opacity 280ms ease;
}

.wiki-card.open .wiki-content {
    max-height: 5000px;
    padding: 22px 24px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 1;
}

/* Buttons and forms retained by the portal */
.action-btn,
.auth-btn,
.buy-btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--border-strong);
    border-radius: 5px;
    background: rgba(201, 162, 39, 0.08);
    color: var(--brand-pale);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.action-btn:hover,
.auth-btn:hover,
.buy-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: var(--brand-bright);
    background: rgba(201, 162, 39, 0.16);
    color: #fff;
}

.buy-btn:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.compact-btn {
    width: auto;
    min-width: 140px;
}

.auth-input {
    width: 100%;
    min-height: 46px;
    margin: 0 0 14px;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 5px;
    outline: none;
    background: rgba(5, 7, 9, 0.46);
    color: #fff;
    transition: border-color 220ms ease, box-shadow 220ms ease;
}

.auth-input::placeholder {
    color: #6f747b;
}

.auth-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.09);
}

select.auth-input {
    cursor: pointer;
}

select.auth-input option {
    background: #15191f;
}

.admin-panel {
    margin-top: 30px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(20, 24, 30, 0.88);
}

.visibility-panel {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 24px;
}

.admin-panel h3 {
    margin: 0;
    font-family: var(--display);
    font-size: 25px;
    font-weight: 500;
    text-transform: uppercase;
}

.admin-panel p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.toggle-label input {
    position: absolute;
    opacity: 0;
}

.toggle-label span {
    position: relative;
    width: 42px;
    height: 23px;
    border: 1px solid var(--border);
    border-radius: 99px;
    background: #0d1014;
    transition: background 220ms ease, border-color 220ms ease;
}

.toggle-label span::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--muted);
    transition: transform 220ms ease, background 220ms ease;
}

.toggle-label input:checked + span {
    border-color: var(--brand);
    background: rgba(201, 162, 39, 0.12);
}

.toggle-label input:checked + span::after {
    background: var(--brand-bright);
    transform: translateX(19px);
}

.toggle-label b {
    font-size: 11px;
    text-transform: uppercase;
}

.admin-panel-head {
    display: grid;
    grid-template-columns: 1fr minmax(240px, 360px);
    align-items: end;
    gap: 30px;
    margin-bottom: 24px;
}

.admin-panel-head .auth-input {
    margin: 0;
}

.store-fields {
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.18);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.title-input {
    font-size: 18px;
}

.editor-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 13px;
    color: var(--muted);
    font-size: 11px;
}

.visual-editor-wrapper {
    overflow: hidden;
    margin-bottom: 16px;
    border-radius: 6px;
    background: #fff;
    color: #111;
}

#editor-container {
    height: 470px;
    font-family: var(--body);
    font-size: 14px;
}

.html-editor {
    min-height: 470px;
    resize: vertical;
    font-family: Consolas, monospace;
    font-size: 13px;
}

.publish-btn {
    min-height: 52px;
}

.danger-text {
    color: #ff746b;
}

/* AfterLife portal control center */
.admin-tab {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.admin-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(201, 162, 39, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 162, 39, 0.025) 1px, transparent 1px),
        radial-gradient(circle at 82% 12%, rgba(201, 162, 39, 0.08), transparent 28rem);
    background-size: 46px 46px, 46px 46px, auto;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.admin-shell {
    position: relative;
    z-index: 1;
    width: min(1320px, calc(100% - 48px));
}

.admin-command-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.admin-command-head .display-title {
    margin-bottom: 8px;
}

.admin-command-copy {
    max-width: 690px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.admin-command-actions {
    display: grid;
    flex: 0 0 300px;
    gap: 10px;
    width: 300px;
}

.admin-session-card {
    position: relative;
    min-width: 270px;
    padding: 18px 20px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: linear-gradient(145deg, rgba(26, 30, 36, 0.96), rgba(10, 13, 17, 0.96));
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.24), inset 3px 0 0 rgba(201, 162, 39, 0.7);
}

.admin-session-card::after {
    content: 'A';
    position: absolute;
    top: -33px;
    right: -4px;
    color: rgba(201, 162, 39, 0.055);
    font-family: var(--display);
    font-size: 118px;
    font-weight: 700;
    line-height: 1;
}

.admin-session-card strong,
.admin-session-card small,
.admin-session-state {
    position: relative;
    z-index: 1;
    display: block;
}

.admin-session-state {
    margin-bottom: 12px;
    color: #79d89b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.admin-session-state i {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: #5ee58e;
    box-shadow: 0 0 0 4px rgba(94, 229, 142, 0.08), 0 0 14px rgba(94, 229, 142, 0.48);
}

.admin-session-card strong {
    max-width: 220px;
    overflow: hidden;
    font-family: var(--display);
    font-size: 21px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-session-card small {
    margin-top: 2px;
    color: var(--brand-pale);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.admin-system-link {
    width: 100%;
    min-height: 48px;
    justify-content: space-between;
    padding-inline: 18px;
}

.admin-system-link span {
    text-align: left;
}

.analytics-panel {
    position: relative;
    overflow: hidden;
    border-color: rgba(201, 162, 39, 0.25);
    background:
        linear-gradient(135deg, rgba(23, 28, 34, 0.97), rgba(12, 15, 19, 0.97)),
        var(--surface-solid);
    box-shadow: var(--shadow);
}

.analytics-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 28px;
    width: 138px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-bright), transparent);
    box-shadow: 0 0 18px var(--brand-glow);
}

.analytics-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.analytics-head h3 {
    margin-top: 4px;
}

.analytics-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.analytics-range,
.analytics-refresh {
    min-height: 34px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: rgba(5, 7, 9, 0.5);
    color: var(--muted);
    cursor: pointer;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.09em;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.analytics-range {
    padding: 0 12px;
}

.analytics-refresh {
    width: 36px;
    padding: 0;
    color: var(--brand-pale);
    font-size: 18px;
}

.analytics-range:hover,
.analytics-refresh:hover,
.analytics-range.active {
    border-color: var(--brand);
    background: rgba(201, 162, 39, 0.11);
    color: var(--brand-bright);
}

.analytics-refresh:hover {
    transform: rotate(24deg);
}

.analytics-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 26px 0 18px;
}

.analytics-metric {
    position: relative;
    min-height: 126px;
    padding: 17px 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: linear-gradient(155deg, rgba(31, 36, 43, 0.78), rgba(11, 14, 18, 0.78));
}

.analytics-metric::after {
    content: '';
    position: absolute;
    right: -28px;
    bottom: -45px;
    width: 100px;
    height: 100px;
    border: 1px solid rgba(201, 162, 39, 0.11);
    border-radius: 50%;
}

.analytics-metric span,
.analytics-metric small,
.analytics-metric strong {
    position: relative;
    z-index: 1;
    display: block;
}

.analytics-metric span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.analytics-metric strong {
    margin: 7px 0 1px;
    color: var(--text);
    font-family: var(--display);
    font-size: clamp(30px, 3vw, 43px);
    font-weight: 500;
    line-height: 1;
}

.analytics-metric small {
    color: var(--muted-dark);
    font-size: 9px;
}

.analytics-chart-shell {
    position: relative;
    min-height: 350px;
    padding: 18px 18px 8px;
    border: 1px solid rgba(153, 164, 178, 0.13);
    border-radius: var(--radius-sm);
    background: rgba(3, 5, 8, 0.34);
}

.analytics-chart-legend {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    height: 22px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.analytics-chart-legend i {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 5px;
    border-radius: 50%;
}

.analytics-chart-legend .views {
    background: var(--brand-bright);
    box-shadow: 0 0 10px var(--brand-glow);
}

.analytics-chart-legend .unique {
    background: #668cb0;
}

#analytics-chart {
    display: block;
    width: 100%;
    height: 292px;
}

.analytics-status {
    position: absolute;
    inset: 50% 20px auto;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.analytics-status[hidden] {
    display: none;
}

.visibility-panel {
    grid-template-columns: minmax(240px, 1fr) minmax(460px, auto);
    border-left: 2px solid rgba(201, 162, 39, 0.55);
}

.visibility-copy .section-kicker {
    margin-bottom: 6px;
}

.visibility-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

.visibility-save {
    min-width: 132px;
}

.editor-panel {
    position: relative;
    background: linear-gradient(145deg, rgba(20, 24, 30, 0.94), rgba(12, 15, 19, 0.94));
}

.editor-panel::before {
    content: '';
    position: absolute;
    inset: 0 32px auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
    opacity: 0.55;
}

.composer-head-controls {
    display: grid;
    grid-template-columns: auto minmax(220px, 290px);
    align-items: end;
    gap: 6px 14px;
}

.composer-mode {
    align-self: center;
    grid-row: 1 / span 2;
    padding: 7px 9px;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    background: rgba(201, 162, 39, 0.07);
    color: var(--brand-pale);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.composer-select-label {
    color: var(--muted-dark);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.composer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.7fr);
    align-items: start;
    gap: 28px;
}

.composer-fields {
    min-width: 0;
}

.composer-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 8px;
    color: #d7d8d7;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.composer-field-label b {
    color: var(--muted-dark);
    font-size: 8px;
    font-weight: 700;
}

.title-input {
    min-height: 58px;
    padding-inline: 17px;
    border-left: 2px solid rgba(201, 162, 39, 0.62);
    background: rgba(6, 8, 10, 0.56);
    font-family: var(--display);
    font-size: 21px;
    text-transform: uppercase;
}

.editor-tools {
    align-items: flex-end;
    margin-top: 12px;
    margin-bottom: 10px;
}

.editor-tools > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.editor-tools strong {
    color: #d7d8d7;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.editor-tools span {
    color: var(--muted-dark);
    font-size: 9px;
}

.editor-tool-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.composer-tool-btn {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.18);
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.composer-tool-btn:hover {
    border-color: var(--border-strong);
    color: #fff;
}

.composer-tool-btn svg,
.admin-news-search svg,
.admin-news-action svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.composer-tool-btn svg {
    width: 15px;
}

.html-mode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted-dark);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.html-mode-toggle input {
    position: absolute;
    opacity: 0;
}

.html-mode-toggle span {
    position: relative;
    width: 34px;
    height: 18px;
    border: 1px solid var(--border);
    border-radius: 99px;
    background: #090c0f;
}

.html-mode-toggle span::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--muted-dark);
    transition: transform 180ms ease, background 180ms ease;
}

.html-mode-toggle input:checked + span {
    border-color: var(--border-strong);
}

.html-mode-toggle input:checked + span::after {
    background: var(--brand-bright);
    transform: translateX(16px);
}

.visual-editor-wrapper {
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #0a0d11;
    color: #d7d9dc;
}

.visual-editor-wrapper:focus-within {
    border-color: rgba(201, 162, 39, 0.5);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.06);
}

#editor-container {
    height: 430px;
    color: #d7d9dc;
    font-family: var(--body);
    font-size: 14px;
}

.ql-toolbar.ql-snow {
    border: 0;
    border-bottom: 1px solid var(--border);
    background: #11151a;
}

.ql-container.ql-snow {
    border: 0;
}

.ql-snow .ql-stroke {
    stroke: #89919a;
}

.ql-snow .ql-fill,
.ql-snow .ql-stroke.ql-fill {
    fill: #89919a;
}

.ql-snow .ql-picker {
    color: #89919a;
}

.ql-snow button:hover .ql-stroke,
.ql-snow button.ql-active .ql-stroke,
.ql-snow .ql-picker-label:hover .ql-stroke,
.ql-snow .ql-picker-label.ql-active .ql-stroke {
    stroke: var(--brand-bright);
}

.ql-snow button:hover .ql-fill,
.ql-snow button.ql-active .ql-fill {
    fill: var(--brand-bright);
}

.ql-snow .ql-picker-options {
    border-color: var(--border) !important;
    background: #15191f;
    color: #d7d9dc;
}

.ql-editor {
    padding: 22px;
    line-height: 1.75;
}

.ql-editor.ql-blank::before {
    color: #626a73;
    font-style: normal;
}

.html-editor {
    min-height: 485px;
    padding: 18px;
    border-color: var(--border);
    background: #090c0f;
    color: #cfd3d7;
}

.poll-composer {
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: rgba(6, 8, 11, 0.58);
    transition: border-color 180ms ease, background 180ms ease;
}

.poll-composer[hidden] {
    display: none;
}

.poll-composer.is-enabled {
    border-color: rgba(201, 162, 39, 0.42);
    background: rgba(201, 162, 39, 0.025);
}

.poll-composer-head {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
}

.poll-composer-head > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.poll-composer-head > div span {
    color: var(--brand-pale);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.poll-composer-head > div strong {
    color: #e4e4e0;
    font-size: 12px;
    text-transform: uppercase;
}

.poll-enable-toggle {
    flex: 0 0 auto;
}

.poll-composer-body {
    padding: 20px 18px 18px;
    border-top: 1px solid var(--border);
}

.poll-composer-body[hidden] {
    display: none;
}

.poll-options-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin: 20px 0 8px;
}

.poll-options-heading .composer-field-label {
    flex: 1;
    margin: 0;
}

.poll-add-option {
    flex: 0 0 auto;
    padding: 0 0 4px;
    border: 0;
    border-bottom: 1px solid rgba(201, 162, 39, 0.35);
    background: transparent;
    color: var(--brand-pale);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.poll-add-option:disabled {
    border-color: transparent;
    color: var(--muted-dark);
    cursor: default;
}

.poll-options-editor {
    display: grid;
    gap: 7px;
}

.poll-option-editor-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 8px;
}

.poll-option-number {
    color: var(--muted-dark);
    font-family: var(--display);
    font-size: 17px;
    text-align: center;
}

.poll-option-input {
    min-height: 46px;
    text-align: left;
}

.poll-remove-option {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.poll-remove-option:hover:not(:disabled) {
    border-color: rgba(225, 75, 64, 0.5);
    color: #ff8178;
}

.poll-remove-option:disabled {
    opacity: 0.3;
    cursor: default;
}

.poll-remove-option svg {
    width: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.poll-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 19px;
}

.poll-setting-field {
    display: grid;
    gap: 7px;
}

.poll-setting-field > span {
    color: var(--muted-dark);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.poll-setting-field .auth-input {
    min-height: 46px;
    text-align: left;
}

.poll-composer-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 17px;
}

.poll-composer-flags label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #bec3c8;
    font-size: 9px;
    cursor: pointer;
}

.poll-composer-flags label[hidden] {
    display: none;
}

.poll-composer-flags input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.poll-composer-flags label > span {
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 3px;
}

.poll-composer-flags input:checked + span {
    border-color: var(--brand-bright);
    background: var(--brand-bright);
    box-shadow: inset 0 0 0 4px #11151a;
}

.poll-composer-flags input:focus-visible + span {
    outline: 2px solid var(--brand-bright);
    outline-offset: 3px;
}

.poll-composer-flags b {
    font-weight: 700;
}

.poll-editor-note {
    margin: 14px 0 0 !important;
    color: var(--muted-dark) !important;
    font-size: 8px !important;
}

.composer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.composer-secondary-action {
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.16);
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.09em;
    cursor: pointer;
}

.composer-secondary-action:hover {
    border-color: var(--border-strong);
    color: #fff;
}

.composer-actions .publish-btn {
    width: auto;
    min-width: 190px;
    margin-left: auto;
    padding-inline: 24px;
}

.composer-save-state {
    min-height: 18px;
    margin: 9px 0 0 !important;
    color: var(--muted-dark) !important;
    font-size: 9px !important;
}

.composer-save-state.is-saved {
    color: #78c9a0 !important;
}

.composer-save-state.is-dirty {
    color: var(--brand-pale) !important;
}

.composer-preview {
    position: sticky;
    top: 104px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(7, 9, 12, 0.55);
}

.composer-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 17px;
    border-bottom: 1px solid var(--border);
}

.composer-preview-head div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.composer-preview-head span {
    color: var(--brand-pale);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.composer-preview-head strong {
    color: #dfe0df;
    font-size: 10px;
    text-transform: uppercase;
}

.composer-preview-head i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #55c98a;
    box-shadow: 0 0 12px rgba(85, 201, 138, 0.55);
}

.composer-preview-card {
    margin: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #101419;
}

.composer-preview-cover {
    position: relative;
    min-height: 185px;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    background:
        linear-gradient(0deg, rgba(8, 10, 13, 0.84), transparent 70%),
        url('bg.jpg') center / cover;
}

.composer-preview-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(8, 10, 13, 0.84), transparent 70%);
}

.composer-preview-cover span {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.76);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.composer-preview-copy {
    padding: 19px;
}

.composer-preview-copy > span {
    color: var(--brand-pale);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.composer-preview-copy h4 {
    margin: 8px 0 10px;
    color: #f4f3ef;
    font-family: var(--display);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.08;
    text-transform: uppercase;
}

.composer-preview-copy p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.composer-poll-preview {
    display: grid;
    gap: 5px;
    padding: 14px 19px 17px;
    border-top: 1px solid var(--border);
    background: rgba(201, 162, 39, 0.035);
}

.composer-poll-preview span,
.composer-poll-preview small {
    color: var(--brand-pale);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.composer-poll-preview strong {
    overflow: hidden;
    color: #dfe1e2;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.composer-poll-preview small {
    color: var(--muted-dark);
}

.composer-preview-note {
    padding: 0 16px 16px;
    color: var(--muted-dark) !important;
    font-size: 9px !important;
    line-height: 1.55;
}

.news-manager-panel {
    border-left: 2px solid rgba(201, 162, 39, 0.44);
}

.news-manager-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.admin-news-search {
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: rgba(4, 6, 8, 0.36);
    color: var(--muted-dark);
}

.admin-news-search:focus-within {
    border-color: var(--border-strong);
}

.admin-news-search svg {
    width: 16px;
}

.admin-news-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font: 500 11px var(--body);
}

.admin-news-search input::placeholder {
    color: var(--muted-dark);
}

.admin-news-list {
    display: grid;
    border: 1px solid var(--border);
    border-radius: 7px;
}

.admin-news-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-height: 78px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(4, 6, 8, 0.16);
}

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

.admin-news-id {
    color: var(--brand-pale);
    font-family: var(--display);
    font-size: 18px;
}

.admin-news-copy {
    min-width: 0;
}

.admin-news-copy strong {
    display: block;
    overflow: hidden;
    color: #e6e6e2;
    font-size: 12px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-news-poll-badge {
    display: inline-flex;
    margin-left: 8px;
    padding: 3px 5px;
    border: 1px solid rgba(201, 162, 39, 0.32);
    border-radius: 3px;
    color: var(--brand-pale);
    font-size: 6px;
    font-style: normal;
    letter-spacing: 0.1em;
    vertical-align: middle;
}

.admin-news-copy span {
    color: var(--muted-dark);
    font-size: 9px;
}

.admin-news-actions {
    display: flex;
    gap: 7px;
}

.admin-news-action {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.admin-news-action:hover {
    border-color: var(--border-strong);
    color: #fff;
}

.admin-news-action.danger:hover {
    border-color: rgba(225, 75, 64, 0.55);
    color: #ff8178;
}

.admin-news-action svg {
    width: 15px;
}

.admin-news-empty {
    padding: 32px;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.portal-toast {
    position: fixed;
    z-index: 1500;
    right: 24px;
    bottom: 24px;
    max-width: min(380px, calc(100vw - 48px));
    padding: 15px 18px;
    border: 1px solid var(--border-strong);
    border-left: 2px solid var(--brand);
    border-radius: 6px;
    background: rgba(15, 19, 24, 0.97);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.46);
    color: #e4e4df;
    font-size: 11px;
    animation: toastIn 220ms ease both;
}

.portal-toast[hidden] {
    display: none;
}

.portal-toast.is-error {
    border-color: rgba(225, 75, 64, 0.55);
    border-left-color: var(--danger-bright);
}

.portal-toast.is-warning {
    border-color: rgba(226, 182, 53, 0.52);
    border-left-color: var(--brand-bright);
    color: #f1dfaa;
}

.portal-confirm-overlay {
    position: fixed;
    z-index: 1450;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(3, 5, 7, 0.82);
    backdrop-filter: blur(12px);
}

.portal-confirm-overlay[hidden] {
    display: none;
}

.portal-confirm-box {
    width: min(440px, 100%);
    padding: 28px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: #12161b;
    box-shadow: var(--shadow);
}

.portal-confirm-box > span {
    color: var(--brand-pale);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.portal-confirm-box h3 {
    margin: 9px 0 8px;
    font-family: var(--display);
    font-size: 29px;
    font-weight: 500;
    text-transform: uppercase;
}

.portal-confirm-box p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.portal-confirm-box > div {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
}

.portal-confirm-box button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.09em;
    cursor: pointer;
}

.portal-confirm-box [data-confirm-accept] {
    border-color: rgba(225, 75, 64, 0.5);
    color: #ff8178;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1050px) {
    .composer-layout {
        grid-template-columns: 1fr;
    }

    .composer-preview {
        position: static;
        display: grid;
        grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
        align-items: start;
    }

    .composer-preview-head {
        grid-column: 1 / -1;
    }

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

    .visibility-panel {
        grid-template-columns: 1fr;
    }

    .visibility-controls {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 720px) {
    .composer-head-controls,
    .composer-preview {
        grid-template-columns: 1fr;
    }

    .composer-mode {
        grid-row: auto;
        justify-self: start;
    }

    .editor-tool-actions,
    .composer-actions,
    .news-manager-head {
        align-items: stretch;
        flex-direction: column;
    }

    .composer-actions .publish-btn,
    .composer-secondary-action,
    .admin-news-search {
        width: 100%;
        min-width: 0;
        margin-left: 0;
    }

    .admin-news-row {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .admin-news-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .poll-composer-head,
    .poll-options-heading,
    .news-poll-head,
    .news-poll-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .poll-settings-grid {
        grid-template-columns: 1fr;
    }

    .news-poll {
        padding: 22px 18px;
    }

    .news-poll-status {
        align-self: flex-start;
    }

    .news-poll-option-result {
        align-self: flex-end;
        gap: 8px;
    }

    .news-poll-option {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .news-poll-option-label b {
        overflow: visible;
        text-overflow: clip;
    }

    .admin-shell {
        width: min(100% - 28px, 1320px);
    }

    .admin-command-head,
    .analytics-head {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-command-actions,
    .admin-session-card {
        width: 100%;
    }

    .admin-command-actions {
        flex-basis: auto;
    }

    .analytics-panel,
    .admin-panel {
        padding: 20px;
    }

    .analytics-actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr) 36px;
    }

    .analytics-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .analytics-chart-shell {
        min-height: 300px;
        padding-inline: 8px;
    }

    #analytics-chart {
        height: 242px;
    }

    .visibility-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .toggle-label {
        min-height: 38px;
    }
}

@media (max-width: 460px) {
    .analytics-metrics {
        grid-template-columns: 1fr;
    }

    .analytics-actions {
        grid-template-columns: 1fr 1fr;
    }

    .analytics-refresh {
        width: 100%;
    }
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 5, 7, 0.84);
    backdrop-filter: blur(12px);
}

.auth-box {
    width: min(420px, 100%);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: #13171c;
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.65);
}

.auth-title {
    position: relative;
    padding: 18px 54px 18px 22px;
    border-bottom: 1px solid var(--border);
    background: rgba(201, 162, 39, 0.05);
    color: var(--brand-pale);
    font-family: var(--display);
    font-size: 17px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.close-btn {
    position: absolute;
    top: 50%;
    right: 15px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.close-btn:hover {
    color: #fff;
}

.modal-body {
    padding: 24px;
}

.error-msg {
    min-height: 18px;
    margin: 10px 0 0;
    color: #ff746b;
    font-size: 12px;
    text-align: center;
}

.code-input {
    border-color: var(--brand);
}

.product-box {
    width: min(760px, 100%);
    max-height: 92vh;
    overflow-y: auto;
}

.product-image {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.product-description {
    margin-bottom: 28px;
    color: #c7c9cd;
}

.product-purchase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

#pm-price {
    color: var(--brand-pale);
    font-family: var(--display);
    font-size: 30px;
}

#pm-days {
    margin-left: 10px;
    color: var(--muted);
    font-size: 12px;
}

.product-link-label {
    display: block;
    margin-top: 20px;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
}

.product-link-label input {
    width: 100%;
    margin-top: 7px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.28);
    color: var(--brand-pale);
    cursor: pointer;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: #080a0d;
}

.footer-main {
    min-height: 170px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 54px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand img {
    width: 62px;
    filter: drop-shadow(0 0 15px rgba(201, 162, 39, 0.16));
}

.footer-brand div {
    display: grid;
}

.footer-brand strong {
    font-family: var(--display);
    font-size: 20px;
    letter-spacing: 0.05em;
}

.footer-brand span {
    color: var(--brand-pale);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.footer-main > p {
    max-width: 490px;
    margin: 0;
    color: var(--muted-dark);
    font-size: 11px;
}

.footer-main nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 20px;
}

.footer-main nav button,
.footer-main nav a {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: color 200ms ease;
}

.footer-main nav button:hover,
.footer-main nav a:hover {
    color: var(--brand-pale);
}

.footer-bottom {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #565d65;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

/* Reveal effects: content stays visible if JavaScript is unavailable. */
.reveal {
    opacity: 1;
    transform: none;
}

.reveal-ready .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms cubic-bezier(.2,.8,.2,1), transform 700ms cubic-bezier(.2,.8,.2,1);
    transition-delay: var(--delay, 0ms);
}

.reveal-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1180px) {
    .system-jump-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .header-inner {
        gap: 18px;
    }

    .tab-btn,
    .menu-link {
        padding-inline: 9px;
        font-size: 9px;
    }

    .world-layout,
    .operations-layout {
        gap: 52px;
    }

    .world-layout {
        grid-template-columns: minmax(0, 0.8fr) minmax(460px, 1.2fr);
    }

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

@media (max-width: 980px) {
    .section-space {
        padding-block: 90px;
    }

    .site-header,
    .site-header.scrolled,
    .site-header.portal-mode {
        height: 74px;
        border-color: var(--border);
        background: rgba(8, 10, 13, 0.9);
        backdrop-filter: blur(18px);
    }

    .menu-toggle {
        display: block;
    }

    .main-menu {
        position: fixed;
        top: 74px;
        right: 20px;
        left: 20px;
        height: auto;
        max-height: calc(100vh - 96px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow-y: auto;
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: rgba(12, 15, 19, 0.98);
        box-shadow: 0 28px 80px rgba(0, 0, 0, 0.56);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px) scale(0.98);
        transform-origin: top;
        transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease;
    }

    .main-menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .tab-btn,
    .menu-link {
        min-height: 56px;
        justify-content: flex-start;
        padding: 0 17px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 11px;
    }

    .tab-btn::after,
    .menu-link::after {
        inset: 12px auto 12px 0;
        width: 2px;
        height: auto;
        transform: scaleY(0);
    }

    .tab-btn:hover::after,
    .menu-link:hover::after,
    .tab-btn.active::after {
        transform: scaleY(1);
    }

    .world-layout,
    .operations-layout {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .world-visual {
        min-height: 560px;
    }

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

    .feature-card-large,
    .feature-card-wide {
        grid-column: span 2;
    }

    .survival-pillars {
        grid-template-columns: 1fr;
        margin-top: -1px;
    }

    .pillar-card {
        min-height: 0;
    }

    .pillar-card + .pillar-card {
        border-top: 1px solid var(--border);
        border-left: 0;
    }

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

    .footer-main {
        grid-template-columns: 1fr 1fr;
        padding-block: 38px;
    }

    .footer-main > p {
        text-align: right;
    }

    .footer-main nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .visibility-panel {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .shell,
    .header-inner {
        width: min(100% - 28px, 1280px);
    }

    .section-space {
        padding-block: 72px;
    }

    .display-title {
        font-size: clamp(2.35rem, 12vw, 3.6rem);
    }

    .header-inner {
        gap: 12px;
    }

    .brand img {
        width: 43px;
        height: 45px;
    }

    .brand-copy strong {
        font-size: 18px;
    }

    .brand-copy small {
        display: none;
    }

    .auth-panel {
        min-width: 0;
    }

    .header-auth-btn {
        min-height: 34px;
        padding: 6px 10px;
        font-size: 8px;
    }

    .hero {
        min-height: max(720px, 100svh);
    }

    .hero-content {
        padding-top: 58px;
    }

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

    .hero-kicker {
        font-size: 8px;
        letter-spacing: 0.18em;
    }

    .hero h1 {
        font-size: clamp(4.1rem, 21vw, 7rem);
        line-height: 0.76;
    }

    .hero h1 em {
        margin-top: 0.28em;
    }

    .hero-lead {
        margin-top: 32px;
        font-size: 14px;
        line-height: 1.7;
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
    }

    .primary-cta,
    .secondary-cta {
        width: 100%;
    }

    .hero-meta {
        flex-wrap: wrap;
        gap: 8px 14px;
    }

    .scroll-cue {
        display: none;
    }

    .pillar-card {
        padding: 26px 24px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
        margin-bottom: 36px;
    }

    .world-visual {
        min-height: 480px;
    }

    .world-radar {
        top: 32px;
        right: 26px;
        width: 120px;
        height: 120px;
    }

    .label-city { left: 22%; }
    .label-wild { left: 8%; }

    .feature-grid,
    .start-steps,
    .news-grid-small,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .feature-card-large,
    .feature-card-wide {
        grid-column: auto;
    }

    .feature-card,
    .feature-card-large {
        min-height: 310px;
        padding: 27px;
    }

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

    .keycards {
        width: 180px;
        margin-inline: auto;
    }

    .metric-row {
        grid-template-columns: 1fr;
    }

    .metric-row div {
        min-height: 98px;
    }

    .start-steps::before {
        display: none;
    }

    .start-action {
        flex-direction: column;
        text-align: center;
    }

    .featured-news-card {
        padding: 26px;
    }

    .final-cta {
        min-height: 650px;
        background-attachment: scroll;
    }

    .portal-tab {
        padding-top: 116px;
    }

    .nav-bar {
        display: flex;
    }

    .cat-btn {
        flex: 1 1 100%;
    }

    .visibility-panel,
    .admin-panel-head,
    .field-row {
        grid-template-columns: 1fr;
    }

    .editor-tools,
    .product-purchase {
        align-items: stretch;
        flex-direction: column;
    }

    .compact-btn {
        width: 100%;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-main > p {
        text-align: left;
    }

    .footer-main nav {
        grid-column: auto;
    }
}

@media (max-width: 420px) {
    .brand-copy strong {
        font-size: 15px;
    }

    .brand img {
        width: 38px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
        padding: 9px;
    }

    .auth-panel span {
        display: none;
    }

    .hero h1 {
        font-size: 4.1rem;
    }

    .hero-lead {
        max-width: 330px;
    }

    .world-visual {
        min-height: 430px;
    }

    .label-bunker {
        right: 7%;
    }

    .world-caption {
        right: 18px;
        left: 18px;
    }

    .world-caption span {
        display: none;
    }

    .status-console {
        margin-inline: -2px;
    }

    .console-screen {
        padding-inline: 15px;
    }

    .console-screen dl div {
        gap: 12px;
    }

    .console-screen dd {
        font-size: 12px;
        text-align: right;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
    }
}

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

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

    .hero::before {
        transform: scale(1.05);
    }

    #embers-canvas {
        display: none;
    }

    .reveal-ready .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 980px) {
    .featured-news-card {
        grid-template-columns: 1fr;
    }

    .featured-news-cover {
        min-height: 390px;
    }

    .featured-news-cover::after {
        background: linear-gradient(0deg, #101419 0%, transparent 36%);
    }

    .news-timeline-item {
        grid-template-columns: 112px minmax(0, 1fr) auto;
    }
}

@media (max-width: 720px) {
    .featured-news-card {
        min-height: 0;
        padding: 0;
        border-radius: var(--radius);
    }

    .featured-news-cover {
        min-height: 270px;
    }

    .featured-news-cover-mark {
        left: 22px;
        bottom: 19px;
    }

    .featured-news-copy {
        padding: 30px 24px 32px;
    }

    .featured-news-copy h3 {
        font-size: clamp(2.3rem, 12vw, 3.7rem);
    }

    .featured-news-excerpt {
        -webkit-line-clamp: 5;
    }

    .news-open-btn {
        width: 100%;
    }

    .news-archive-head {
        align-items: flex-start;
        padding: 22px;
    }

    .news-timeline-item {
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 22px;
    }

    .timeline-date {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
    }

    .timeline-date b {
        font-size: 17px;
    }

    .news-reader-overlay {
        padding: 0;
        background: #0e1217;
    }

    .news-reader-shell {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .news-reader-header {
        min-height: 66px;
        padding-inline: 16px;
    }

    .news-reader-article {
        width: min(100% - 32px, 820px);
        padding: 32px 0 54px;
    }

    .news-reader-cover {
        min-height: 230px;
        margin-bottom: 30px;
    }

    .news-reader-article > h2 {
        margin-bottom: 28px;
        font-size: clamp(2.5rem, 14vw, 4.2rem);
    }

    .news-article-content {
        font-size: 14px;
    }

    .news-archive-head .news-total {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-reader-overlay,
    .portal-toast {
        animation: none;
    }
}

.account-name {
    max-width: 170px;
    margin-right: 12px;
    overflow: hidden;
    color: var(--brand-pale);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-tab {
    min-height: calc(100vh - 90px);
    background:
        radial-gradient(circle at 75% 40%, rgba(201, 162, 39, 0.11), transparent 28rem),
        linear-gradient(145deg, rgba(7, 10, 13, 0.96), rgba(14, 18, 23, 0.96));
}

.download-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
    align-items: center;
    gap: clamp(40px, 7vw, 110px);
    min-height: calc(100vh - 90px);
    padding-block: clamp(90px, 12vh, 150px);
}

.download-copy {
    max-width: 820px;
}

.download-status {
    margin: 34px 0 22px;
    padding: 16px 18px;
    border-left: 2px solid var(--brand);
    background: rgba(201, 162, 39, 0.07);
    color: var(--muted);
}

.download-metadata {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 28px;
}

.download-metadata[hidden],
.download-action[hidden] {
    display: none;
}

.download-metadata > div {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(19, 23, 28, 0.88);
}

.download-metadata dt {
    color: var(--muted-dark);
    font-family: var(--display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.download-metadata dd {
    margin: 6px 0 0;
    color: var(--text);
    font-weight: 800;
}

.download-metadata .download-hash {
    grid-column: 1 / -1;
}

.download-hash code {
    display: block;
    overflow-wrap: anywhere;
    color: var(--brand-pale);
    font-size: 12px;
    font-weight: 600;
}

.download-action {
    width: fit-content;
}

.download-signal {
    display: grid;
    justify-items: center;
    gap: 20px;
    padding: 50px 24px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(31, 36, 43, 0.76), rgba(11, 14, 18, 0.9));
    box-shadow: 0 0 80px rgba(201, 162, 39, 0.08);
}

.download-signal img {
    filter: drop-shadow(0 0 30px rgba(201, 162, 39, 0.18));
}

.download-signal span {
    color: var(--brand-pale);
    font-family: var(--display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
}

@media (max-width: 820px) {
    .download-shell {
        grid-template-columns: 1fr;
    }

    .download-signal {
        display: none;
    }
}

@media (max-width: 520px) {
    .download-metadata {
        grid-template-columns: 1fr;
    }

    .download-metadata .download-hash {
        grid-column: auto;
    }
}

/* Detailed game-system chapters */
.systems-index {
    position: relative;
    padding-bottom: 88px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background:
        linear-gradient(180deg, rgba(10, 12, 16, 0.18), rgba(20, 24, 29, 0.62)),
        radial-gradient(circle at 50% 0, rgba(201, 162, 39, 0.09), transparent 34rem);
}

.system-jump-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.system-jump-grid a {
    position: relative;
    min-height: 132px;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-content: center;
    column-gap: 4px;
    padding: 24px 30px;
    overflow: hidden;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(14, 17, 22, 0.72);
    transition: background 260ms ease, border-color 260ms ease, transform 260ms ease;
}

.system-jump-grid a::after {
    content: '↘';
    position: absolute;
    top: 19px;
    right: 22px;
    color: rgba(240, 215, 130, 0.35);
    font-size: 13px;
    transition: color 260ms ease, transform 260ms ease;
}

.system-jump-grid a:hover {
    z-index: 1;
    border-color: var(--border-strong);
    background: linear-gradient(145deg, rgba(41, 39, 29, 0.54), rgba(20, 24, 30, 0.95));
    transform: translateY(-4px);
}

.system-jump-grid a:hover::after {
    color: var(--brand-bright);
    transform: translate(3px, 3px);
}

.system-jump-grid span {
    grid-row: span 2;
    color: var(--brand);
    font-family: var(--display);
    font-size: 12px;
}

.system-jump-grid b {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.04em;
}

.system-jump-grid small {
    color: var(--muted-dark);
    font-size: 10px;
    letter-spacing: 0.05em;
}

.system-chapter,
.field-section,
.bunker-chapter,
.warship-chapter {
    position: relative;
    scroll-margin-top: 86px;
}

.chapter-heading {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) minmax(280px, 390px);
    align-items: end;
    gap: 28px;
    margin-bottom: 62px;
}

.chapter-heading > p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.chapter-number {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    color: var(--brand-pale);
    font-family: var(--display);
    font-size: 17px;
    box-shadow: inset 0 0 25px rgba(201, 162, 39, 0.05), 0 0 28px rgba(201, 162, 39, 0.05);
}

.chapter-heading .section-kicker,
.chapter-heading .display-title {
    margin-inline: 0;
}

.chapter-heading .display-title {
    max-width: 800px;
}

.system-label {
    display: inline-flex;
    color: var(--brand-pale);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.19em;
}

/* Combat */
.combat-chapter {
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background:
        linear-gradient(135deg, rgba(23, 27, 34, 0.38), transparent 38%),
        radial-gradient(circle at 92% 34%, rgba(169, 62, 45, 0.09), transparent 30rem);
}

.combat-chapter::before {
    content: 'BALLISTICS';
    position: absolute;
    top: 240px;
    left: -35px;
    color: rgba(255, 255, 255, 0.018);
    font-family: var(--display);
    font-size: clamp(8rem, 17vw, 18rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    pointer-events: none;
}

.combat-overview {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.84fr) minmax(560px, 1.16fr);
    align-items: stretch;
    gap: 18px;
}

.combat-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 530px;
    padding: 54px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(28, 33, 40, 0.9), rgba(13, 16, 20, 0.96));
}

.combat-copy h3,
.vehicle-copy h3,
.software-card h3,
.base-system-list h3,
.field-card h3,
.heli-panel h3,
.detail-panel h3 {
    margin: 16px 0 17px;
    font-family: var(--display);
    font-weight: 500;
    line-height: 1.13;
    text-transform: uppercase;
}

.combat-copy h3 {
    max-width: 560px;
    font-size: clamp(2rem, 3.4vw, 3.7rem);
}

.combat-copy > p {
    max-width: 590px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.combat-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 42px;
    background: var(--border);
    border: 1px solid var(--border);
}

.combat-stats div {
    min-height: 91px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 18px;
    background: #111419;
}

.combat-stats strong {
    color: var(--brand-pale);
    font-family: var(--display);
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
}

.combat-stats span {
    margin-top: 6px;
    color: var(--muted-dark);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.combat-loadout {
    position: relative;
    min-height: 530px;
    overflow: hidden;
    border: 1px solid rgba(201, 162, 39, 0.22);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 50% 45%, rgba(201, 162, 39, 0.1), transparent 38%),
        linear-gradient(145deg, #191e24, #0c0f13 68%);
}

.combat-loadout::before,
.combat-loadout::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.combat-loadout::before {
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    clip-path: polygon(0 0, 26% 0, 26% 1px, 1px 1px, 1px 26%, 0 26%, 0 100%, 100% 100%, 100% 0);
}

.combat-loadout::after {
    inset: 0;
    background: linear-gradient(180deg, transparent 62%, rgba(4, 6, 8, 0.82));
}

.loadout-grid,
.vehicle-grid-lines {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle, #000, transparent 72%);
}

.loadout-code {
    position: absolute;
    z-index: 3;
    top: 30px;
    left: 34px;
    color: rgba(240, 215, 130, 0.68);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.17em;
}

.loadout-weapon,
.loadout-vest,
.loadout-helmet {
    position: absolute;
    z-index: 2;
    object-fit: contain;
    filter: drop-shadow(0 24px 22px rgba(0, 0, 0, 0.7));
}

.loadout-weapon {
    top: 15%;
    left: 5%;
    width: 72%;
    max-height: 54%;
    transform: rotate(-5deg);
}

.loadout-vest {
    right: 3%;
    bottom: 10%;
    width: 26%;
    max-height: 41%;
    opacity: 0.9;
    transform: rotate(3deg);
}

.loadout-helmet {
    top: 19%;
    right: 5%;
    width: 20%;
    max-height: 26%;
    opacity: 0.9;
    transform: rotate(7deg);
}

.loadout-readout {
    position: absolute;
    z-index: 4;
    right: 35%;
    bottom: 32px;
    left: 34px;
    display: grid;
    grid-template-columns: 9px 1fr auto;
    align-items: center;
    gap: 9px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted-dark);
    font-size: 8px;
    letter-spacing: 0.12em;
}

.loadout-readout i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #77a15d;
    box-shadow: 0 0 12px rgba(119, 161, 93, 0.8);
}

.loadout-readout b {
    color: #a9c994;
    font-size: 8px;
}

.shot-flow {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 18px;
    border: 1px solid var(--border);
    background: var(--border);
}

.shot-step {
    position: relative;
    min-height: 280px;
    padding: 34px 31px 30px;
    overflow: hidden;
    background: rgba(15, 18, 23, 0.97);
}

.shot-step::after {
    content: '';
    position: absolute;
    top: 42px;
    right: -1px;
    width: 22px;
    height: 1px;
    background: var(--brand);
    box-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
}

.shot-step > span {
    color: var(--brand);
    font-family: var(--display);
    font-size: 12px;
}

.shot-step h3 {
    margin: 58px 0 14px;
    font-family: var(--display);
    font-size: 23px;
    font-weight: 500;
    text-transform: uppercase;
}

.shot-step p {
    margin: 0;
    color: var(--muted-dark);
    font-size: 11px;
    line-height: 1.75;
}

.danger-step {
    background: linear-gradient(145deg, rgba(61, 22, 21, 0.52), rgba(16, 18, 22, 0.98));
}

.danger-step > span { color: #ef7c72; }
.danger-step::after { background-color: var(--danger-bright); }

.combat-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}

.detail-panel,
.software-card,
.field-card,
.heli-panel {
    --x: 50%;
    --y: 50%;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(28, 33, 40, 0.78), rgba(13, 16, 20, 0.96));
}

.detail-panel::before,
.software-card::before,
.field-card::before,
.heli-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(340px circle at var(--x) var(--y), rgba(201, 162, 39, 0.14), transparent 70%);
    transition: opacity 260ms ease;
}

.detail-panel:hover::before,
.software-card:hover::before,
.field-card:hover::before,
.heli-panel:hover::before {
    opacity: 1;
}

.detail-panel {
    min-height: 330px;
    padding: 44px;
    border-radius: var(--radius);
}

.detail-panel > span {
    color: var(--brand-pale);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.detail-panel h3 {
    max-width: 540px;
    font-size: 30px;
}

.detail-panel p {
    max-width: 580px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.condition-meter {
    position: absolute;
    right: 38px;
    bottom: 34px;
    display: flex;
    gap: 5px;
}

.condition-meter i {
    width: 20px;
    height: 4px;
    background: var(--brand);
}

.condition-meter i:nth-last-child(-n + 2) {
    opacity: 0.17;
}

.trauma-panel {
    border-color: rgba(225, 75, 64, 0.25);
    background: linear-gradient(145deg, rgba(48, 24, 24, 0.68), rgba(13, 16, 20, 0.96));
}

.trauma-panel > span {
    color: #ff8b82;
}

.pulse-line {
    position: absolute;
    right: 30px;
    bottom: 22px;
    width: 38%;
    height: 54px;
    overflow: hidden;
    opacity: 0.34;
}

.pulse-line::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 100%;
    height: 1px;
    background: rgba(225, 75, 64, 0.7);
}

.pulse-line i {
    position: absolute;
    inset: 0;
    background: var(--danger-bright);
    clip-path: polygon(0 49%, 22% 49%, 27% 25%, 33% 76%, 39% 49%, 55% 49%, 60% 38%, 65% 59%, 70% 49%, 100% 49%, 100% 51%, 69% 51%, 65% 63%, 59% 42%, 56% 51%, 38% 51%, 33% 82%, 26% 31%, 23% 51%, 0 51%);
    animation: pulse-drift 2.6s ease-in-out infinite;
}

@keyframes pulse-drift {
    50% { transform: translateX(7px); opacity: 0.55; }
}

/* Bunker video chapter */
.bunker-chapter {
    min-height: 860px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-block: 1px solid rgba(201, 162, 39, 0.18);
    background: #080a0d;
}

.bunker-video,
.bunker-shade,
.bunker-scan {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.bunker-video {
    object-fit: cover;
    object-position: 56% center;
    opacity: 0.64;
    filter: saturate(0.68) contrast(1.12) brightness(0.72);
}

.bunker-shade {
    background:
        linear-gradient(90deg, rgba(6, 8, 10, 0.98) 0%, rgba(6, 8, 10, 0.89) 38%, rgba(6, 8, 10, 0.33) 70%, rgba(6, 8, 10, 0.58) 100%),
        linear-gradient(180deg, rgba(6, 8, 10, 0.72), transparent 32%, transparent 67%, rgba(6, 8, 10, 0.92));
}

.bunker-scan {
    pointer-events: none;
    opacity: 0.1;
    background: repeating-linear-gradient(180deg, transparent 0, transparent 3px, rgba(255, 255, 255, 0.18) 4px);
    mix-blend-mode: overlay;
}

.bunker-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(480px, 0.92fr);
    column-gap: 100px;
    row-gap: 46px;
    padding-block: 120px;
}

.bunker-heading {
    max-width: 660px;
}

.bunker-heading .chapter-number {
    margin-bottom: 28px;
}

.bunker-heading .display-title {
    margin-top: 13px;
    font-size: clamp(3rem, 5vw, 5.9rem);
}

.bunker-heading > p:last-child {
    max-width: 600px;
    margin: 26px 0 0;
    color: rgba(241, 240, 236, 0.68);
    font-size: 13px;
}

.bunker-route {
    align-self: end;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    list-style: none;
    backdrop-filter: blur(5px);
}

.bunker-route li {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 18px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.bunker-route li > span {
    padding-top: 2px;
    color: var(--brand);
    font-family: var(--display);
    font-size: 12px;
}

.bunker-route div {
    display: grid;
    gap: 4px;
}

.bunker-route b {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.bunker-route small {
    max-width: 460px;
    color: rgba(241, 240, 236, 0.56);
    font-size: 10px;
    line-height: 1.6;
}

.bunker-status {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(7, 9, 12, 0.66);
    backdrop-filter: blur(10px);
}

.bunker-status div {
    display: grid;
    grid-template-columns: 11px 1fr;
    align-items: center;
    min-height: 78px;
    gap: 10px;
    padding: 16px 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.bunker-status div:last-child {
    border-right: 0;
}

.bunker-status i {
    grid-row: span 2;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c6473d;
    box-shadow: 0 0 12px rgba(225, 75, 64, 0.85);
}

.bunker-status span {
    color: rgba(255, 255, 255, 0.48);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.bunker-status b {
    color: #ef7c72;
    font-family: var(--display);
    font-size: 12px;
    font-weight: 500;
}

.video-note {
    position: absolute;
    right: 0;
    bottom: 78px;
    margin: 0;
    color: rgba(255, 255, 255, 0.38);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* PC and software */
.computer-chapter {
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(16, 20, 25, 0.94), rgba(9, 12, 15, 0.64)),
        radial-gradient(circle at 22% 42%, rgba(55, 98, 125, 0.11), transparent 32rem);
}

.computer-layout {
    display: grid;
    grid-template-columns: minmax(560px, 1.12fr) minmax(0, 0.88fr);
    gap: 18px;
}

.hardware-stage {
    position: relative;
    min-height: 690px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 46% 46%, rgba(72, 122, 158, 0.16), transparent 42%),
        #0d1116;
    background-size: 58px 58px, 58px 58px, auto, auto;
}

.hardware-stage::after {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.045);
    pointer-events: none;
}

.hardware-orbit {
    position: absolute;
    top: 19%;
    left: 13%;
    width: 58%;
    aspect-ratio: 1;
    border: 1px solid rgba(90, 141, 177, 0.18);
    border-radius: 50%;
    box-shadow: 0 0 0 62px rgba(90, 141, 177, 0.025), 0 0 0 124px rgba(90, 141, 177, 0.018);
}

.hardware-stage img {
    position: absolute;
    z-index: 2;
    object-fit: contain;
    filter: drop-shadow(0 22px 20px rgba(0, 0, 0, 0.68));
}

.hw-monitor {
    top: 10%;
    left: 4%;
    width: 48%;
    max-height: 55%;
}

.hw-case {
    right: 7%;
    bottom: 12%;
    width: 34%;
    max-height: 69%;
}

.hw-gpu { left: 10%; bottom: 15%; width: 35%; max-height: 20%; transform: rotate(-7deg); }
.hw-cooler { top: 13%; right: 8%; width: 17%; max-height: 17%; transform: rotate(8deg); }
.hw-ram { right: 30%; bottom: 7%; width: 21%; max-height: 13%; transform: rotate(13deg); }
.hw-ssd { left: 44%; bottom: 25%; width: 17%; max-height: 19%; transform: rotate(-11deg); }
.hw-reader { left: 40%; bottom: 5%; width: 15%; max-height: 13%; transform: rotate(-8deg); }
.hw-usb { top: 34%; right: 2%; width: 11%; max-height: 12%; transform: rotate(18deg); }

.hardware-caption {
    position: absolute;
    z-index: 3;
    right: 28px;
    bottom: 24px;
    color: rgba(132, 178, 208, 0.56);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.computer-steps {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 1px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--border);
}

.pc-step {
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: center;
    gap: 11px;
    padding: 26px 32px;
    background: rgba(15, 19, 24, 0.98);
}

.pc-step > span {
    align-self: start;
    padding-top: 4px;
    color: #6f9cba;
    font-family: var(--display);
    font-size: 12px;
}

.pc-step h3 {
    margin: 0 0 7px;
    font-family: var(--display);
    font-size: 21px;
    font-weight: 500;
    text-transform: uppercase;
}

.pc-step p {
    margin: 0;
    color: var(--muted-dark);
    font-size: 10px;
    line-height: 1.7;
}

.software-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}

.software-card {
    min-height: 470px;
    padding: 82px 44px 42px;
    border-radius: var(--radius);
}

.window-bar {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    min-height: 45px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 9, 12, 0.7);
}

.window-bar i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #48505a;
}

.window-bar i:first-child { background: #87423d; }
.window-bar i:nth-child(2) { background: #947d3a; }
.window-bar span {
    margin-left: auto;
    color: #565f68;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.software-card h3 {
    max-width: 510px;
    font-size: clamp(2rem, 3vw, 3.3rem);
}

.software-card > p {
    position: relative;
    z-index: 1;
    max-width: 530px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.market-lines {
    position: absolute;
    right: 42px;
    bottom: 38px;
    left: 42px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.5fr;
    align-items: end;
    gap: 8px;
    height: 66px;
    opacity: 0.34;
}

.market-lines i {
    height: 38%;
    border-top: 1px solid var(--brand);
    background: linear-gradient(180deg, rgba(201, 162, 39, 0.25), transparent);
}

.market-lines i:nth-child(2) { height: 69%; }
.market-lines i:nth-child(3) { height: 92%; }

.flasher-card {
    background:
        radial-gradient(circle at 78% 32%, rgba(91, 66, 139, 0.16), transparent 19rem),
        linear-gradient(145deg, rgba(28, 33, 40, 0.9), rgba(13, 16, 20, 0.98));
}

.card-stack {
    position: relative;
    z-index: 1;
    height: 115px;
    margin: -8px 0 24px;
}

.card-stack img {
    position: absolute;
    top: 0;
    width: 132px;
    height: 94px;
    object-fit: contain;
    filter: drop-shadow(0 14px 11px rgba(0, 0, 0, 0.66));
}

.card-stack img:nth-child(1) { left: 0; transform: rotate(-9deg); }
.card-stack img:nth-child(2) { left: 78px; transform: rotate(-3deg); }
.card-stack img:nth-child(3) { left: 156px; transform: rotate(3deg); }
.card-stack img:nth-child(4) { left: 234px; transform: rotate(9deg); }

/* Base */
.base-chapter {
    overflow: hidden;
    border-block: 1px solid rgba(255, 255, 255, 0.05);
    background:
        radial-gradient(circle at 17% 48%, rgba(201, 162, 39, 0.08), transparent 31rem),
        linear-gradient(160deg, rgba(18, 22, 27, 0.94), rgba(8, 10, 13, 0.96));
}

.base-layout {
    display: grid;
    grid-template-columns: minmax(470px, 0.84fr) minmax(0, 1.16fr);
    align-items: center;
    gap: 76px;
}

.base-art {
    position: relative;
    min-height: 680px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: radial-gradient(circle, rgba(201, 162, 39, 0.09), transparent 39%), #0c0f13;
}

.base-art::before,
.base-art::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(201, 162, 39, 0.16);
    border-radius: 50%;
}

.base-art::before { width: 420px; height: 420px; }
.base-art::after { width: 285px; height: 285px; }

.base-blueprint {
    position: absolute;
    inset: 0;
    opacity: 0.14;
    background-image:
        linear-gradient(rgba(201, 162, 39, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 162, 39, 0.12) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: radial-gradient(circle, #000, transparent 74%);
}

.base-art > img {
    position: relative;
    z-index: 2;
    width: 62%;
    max-height: 430px;
    object-fit: contain;
    filter: drop-shadow(0 34px 27px rgba(0, 0, 0, 0.76));
    transform: rotate(-4deg);
}

.base-art-label {
    position: absolute;
    z-index: 3;
    right: 26px;
    bottom: 24px;
    left: 26px;
    display: flex;
    justify-content: space-between;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted-dark);
    font-size: 8px;
    letter-spacing: 0.14em;
}

.base-art-label b { color: var(--brand-pale); }

.chapter-heading.compact {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    margin-bottom: 30px;
}

.base-copy > .section-lead {
    max-width: 690px;
    margin: 0 0 38px;
}

.base-system-list {
    display: grid;
    gap: 1px;
    border: 1px solid var(--border);
    background: var(--border);
}

.base-system-list article {
    display: grid;
    grid-template-columns: 82px 150px 1fr;
    align-items: center;
    gap: 24px;
    min-height: 135px;
    padding: 26px 30px;
    background: rgba(13, 16, 20, 0.97);
}

.base-system-list span {
    color: var(--brand);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.base-system-list h3 {
    margin: 0;
    font-size: 25px;
}

.base-system-list p {
    margin: 0;
    color: var(--muted-dark);
    font-size: 10px;
    line-height: 1.7;
}

/* Vehicles and helicopter */
.vehicle-chapter {
    overflow: hidden;
}

.vehicle-layout {
    display: grid;
    grid-template-columns: minmax(620px, 1.25fr) minmax(340px, 0.75fr);
    align-items: stretch;
    gap: 18px;
}

.vehicle-diagram {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 50% 55%, rgba(201, 162, 39, 0.11), transparent 38%),
        #0c0f13;
}

.vehicle-diagram::after {
    content: '';
    position: absolute;
    z-index: 7;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(7, 9, 12, 0.84), transparent 16%, transparent 79%, rgba(7, 9, 12, 0.78)),
        linear-gradient(90deg, rgba(7, 9, 12, 0.26), transparent 12%, transparent 88%, rgba(7, 9, 12, 0.26));
}

.vehicle-diagram .vehicle-grid-lines {
    z-index: 0;
    pointer-events: none;
}

.vehicle-inspector-toolbar {
    position: absolute;
    z-index: 10;
    top: 18px;
    right: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.vehicle-inspector-id {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.vehicle-inspector-id i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 12px rgba(201, 162, 39, 0.85);
}

.vehicle-view-switch {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--brand);
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(8, 10, 13, 0.76);
    backdrop-filter: blur(10px);
}

.vehicle-view-switch button {
    min-height: 34px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted-dark);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.13em;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.vehicle-view-switch button:hover,
.vehicle-view-switch button:focus-visible {
    color: var(--text);
}

.vehicle-view-switch button.is-active {
    background: var(--brand);
    color: #111318;
    box-shadow: 0 0 22px rgba(201, 162, 39, 0.18);
}

.vehicle-view-stack,
.vehicle-view {
    position: absolute;
    inset: 0;
}

.vehicle-view-stack {
    z-index: 2;
}

.vehicle-view {
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.018);
    transition: opacity 340ms ease, transform 420ms cubic-bezier(.2,.8,.2,1), visibility 340ms step-end;
}

.vehicle-view.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
    transition: opacity 340ms ease, transform 420ms cubic-bezier(.2,.8,.2,1), visibility 0ms step-start;
}

.vehicle-plane {
    --plane-ratio: 16 / 10;
    position: relative;
    width: 100%;
    aspect-ratio: var(--plane-ratio);
}

.vehicle-plane > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.vehicle-plane-exterior {
    width: min(94%, 820px);
}

.vehicle-plane-exterior .vehicle-render {
    filter:
        drop-shadow(0 30px 25px rgba(0, 0, 0, 0.72))
        drop-shadow(0 0 22px rgba(201, 162, 39, 0.09));
}

.vehicle-plane-photo {
    width: 100%;
}

.vehicle-plane-photo::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(7, 9, 12, 0.2), transparent 34%, transparent 70%, rgba(7, 9, 12, 0.14));
}

.vehicle-plane-photo::before {
    content: 'LOADING VIEW';
    position: absolute;
    z-index: 0;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.25);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.vehicle-plane-photo > img {
    opacity: 0;
    transition: opacity 280ms ease;
}

.vehicle-plane-photo.is-loaded > img {
    opacity: 1;
}

.vehicle-plane-photo.is-loaded::before {
    display: none;
}

.vehicle-plane-photo.has-error::before {
    content: 'VIEW UNAVAILABLE';
    color: #e8776e;
}

.vehicle-plane-interior > img {
    filter: saturate(0.76) contrast(1.08) brightness(0.82);
}

.vehicle-plane-trunk > img {
    filter: saturate(0.72) contrast(1.08) brightness(0.72);
}

.vehicle-hotspot {
    position: absolute;
    z-index: 6;
    top: var(--hotspot-y);
    left: var(--hotspot-x);
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    touch-action: manipulation;
    transform: translate(-50%, -50%);
}

.vehicle-hotspot::before,
.vehicle-hotspot::after {
    content: '';
    position: absolute;
    inset: 50% auto auto 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.vehicle-hotspot::before {
    width: 13px;
    height: 13px;
    border: 2px solid var(--brand-bright);
    background: rgba(11, 14, 18, 0.92);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.12), 0 0 16px rgba(201, 162, 39, 0.6);
    transition: width 180ms ease, height 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.vehicle-hotspot::after {
    width: 25px;
    height: 25px;
    border: 1px solid rgba(242, 201, 76, 0.46);
    animation: hotspot-pulse 2.1s ease-out infinite;
}

@keyframes hotspot-pulse {
    70%, 100% { width: 44px; height: 44px; opacity: 0; }
}

.vehicle-hotspot > span {
    position: absolute;
    z-index: 2;
    top: 2px;
    right: 1px;
    display: grid;
    place-items: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(8, 10, 13, 0.9);
    color: var(--brand-pale);
    font-family: var(--display);
    font-size: 7px;
}

.vehicle-hotspot > b {
    position: absolute;
    top: calc(100% - 2px);
    left: 50%;
    min-width: max-content;
    padding: 6px 8px;
    border: 1px solid rgba(201, 162, 39, 0.24);
    border-radius: 3px;
    background: rgba(8, 10, 13, 0.9);
    color: rgba(255, 255, 255, 0.74);
    font-size: 7px;
    letter-spacing: 0.1em;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.vehicle-hotspot:hover > b,
.vehicle-hotspot:focus-visible > b,
.vehicle-hotspot.is-active > b {
    opacity: 1;
    transform: translate(-50%, 0);
}

.vehicle-hotspot:hover::before,
.vehicle-hotspot:focus-visible::before,
.vehicle-hotspot.is-active::before {
    width: 19px;
    height: 19px;
    background: var(--brand);
    box-shadow: 0 0 0 5px rgba(201, 162, 39, 0.14), 0 0 24px rgba(242, 201, 76, 0.72);
}

.vehicle-hotspot-portal::before {
    border-style: double;
}

.vehicle-inspector-hint {
    position: absolute;
    z-index: 10;
    right: 22px;
    bottom: 17px;
    left: 22px;
    display: flex;
    justify-content: space-between;
    padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.31);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.14em;
    pointer-events: none;
}

.vehicle-inspector-hint b {
    color: var(--brand-pale);
}

.vehicle-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 620px;
    padding: 52px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(27, 32, 39, 0.88), rgba(13, 16, 20, 0.97));
}

.vehicle-copy::after {
    content: 'VEHICLE SYSTEM // INSPECT';
    position: absolute;
    right: 24px;
    bottom: 20px;
    color: rgba(255, 255, 255, 0.035);
    font-family: var(--display);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
    pointer-events: none;
}

.vehicle-detail-status {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 2px;
}

.vehicle-detail-status > b {
    color: var(--muted-dark);
    font-family: var(--display);
    font-size: 11px;
    font-weight: 500;
}

.vehicle-copy h3 {
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 3.4vw, 3.7rem);
}

.vehicle-copy p {
    position: relative;
    z-index: 1;
    margin: 0 0 17px;
    color: var(--muted);
    font-size: 12px;
}

.vehicle-copy [data-vehicle-detail-extra] {
    color: var(--muted-dark);
    font-size: 10px;
}

.vehicle-detail-chips {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 17px;
}

.vehicle-detail-chips span {
    padding: 7px 9px;
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 3px;
    color: var(--brand-pale);
    background: rgba(201, 162, 39, 0.035);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.vehicle-copy.is-changing > *:not(.vehicle-detail-status) {
    animation: vehicle-detail-in 260ms ease both;
}

@keyframes vehicle-detail-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.heli-panel {
    min-height: 310px;
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 220px;
    align-items: center;
    gap: 44px;
    margin-top: 18px;
    padding: 42px 50px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 12% 50%, rgba(78, 118, 155, 0.15), transparent 16rem),
        linear-gradient(145deg, rgba(26, 32, 40, 0.94), rgba(11, 14, 18, 0.98));
}

.heli-panel > * { position: relative; z-index: 1; }

.heli-panel h3 {
    max-width: 700px;
    font-size: clamp(2rem, 3.2vw, 3.3rem);
}

.heli-panel p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.heli-radar {
    width: 176px;
    height: 176px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(104, 149, 181, 0.3);
    border-radius: 50%;
    background: repeating-radial-gradient(circle, transparent 0 26px, rgba(104, 149, 181, 0.13) 27px 28px);
}

.heli-radar::before,
.heli-radar::after {
    content: '';
    position: absolute;
    background: rgba(104, 149, 181, 0.25);
}

.heli-radar::before { width: 1px; height: 100%; }
.heli-radar::after { width: 100%; height: 1px; }
.heli-radar i {
    position: absolute;
    top: calc(50% - 0.5px);
    left: 50%;
    width: 50%;
    height: 1px;
    background: #75a8c9;
    transform-origin: left center;
    animation: radar-sweep 5s linear infinite;
}

.heli-route {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 9px;
    color: var(--muted-dark);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.heli-route i {
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--brand) 0 5px, transparent 5px 10px);
}

.heli-route b { color: var(--brand-pale); }

/* Battleship concept */
.warship-chapter {
    position: relative;
    min-height: 980px;
    padding: 128px 0;
    overflow: hidden;
    isolation: isolate;
    border-block: 1px solid rgba(255, 255, 255, 0.055);
    background:
        radial-gradient(circle at 72% 33%, rgba(201, 162, 39, 0.11), transparent 25rem),
        radial-gradient(ellipse at 32% 86%, rgba(48, 75, 91, 0.2), transparent 42rem),
        linear-gradient(155deg, #07090c 4%, #10161c 52%, #080a0d 100%);
}

.warship-chapter::before {
    content: '';
    position: absolute;
    z-index: 0;
    right: -10%;
    bottom: -160px;
    left: -10%;
    height: 410px;
    opacity: 0.34;
    background:
        repeating-linear-gradient(176deg, transparent 0 20px, rgba(94, 127, 143, 0.1) 21px 22px),
        radial-gradient(ellipse at 48% 0, rgba(84, 130, 151, 0.24), transparent 60%);
    transform: rotate(-1deg);
}

.warship-backdrop {
    --warship-shift: -60%;
    position: absolute;
    z-index: 1;
    bottom: 5%;
    left: 50%;
    width: min(78vw, 1380px);
    max-width: none;
    height: auto;
    opacity: 0.68;
    pointer-events: none;
    user-select: none;
    filter:
        saturate(0.72)
        brightness(0.72)
        contrast(1.12)
        drop-shadow(0 48px 38px rgba(0, 0, 0, 0.72))
        drop-shadow(0 0 34px rgba(201, 162, 39, 0.07));
    transform: translateX(var(--warship-shift));
}

.warship-shade {
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(7, 9, 12, 0.9) 0, rgba(7, 9, 12, 0.48) 45%, rgba(7, 9, 12, 0.55) 68%, rgba(7, 9, 12, 0.88) 100%),
        linear-gradient(180deg, rgba(7, 9, 12, 0.82), transparent 26%, transparent 74%, rgba(7, 9, 12, 0.94));
}

.warship-grid-overlay {
    position: absolute;
    z-index: 3;
    inset: 0;
    opacity: 0.12;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(201, 162, 39, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 162, 39, 0.12) 1px, transparent 1px);
    background-size: 74px 74px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 58%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 58%, #000 100%);
}

.warship-shell {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.75fr);
    align-items: center;
    gap: clamp(48px, 7vw, 118px);
    min-height: 724px;
}

.warship-story {
    max-width: 720px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

.warship-story-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 32px;
}

.warship-wip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 32px;
    padding: 0 13px;
    border: 1px dashed rgba(201, 162, 39, 0.48);
    border-radius: 999px;
    color: var(--brand-pale);
    background: rgba(7, 9, 12, 0.7);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.warship-wip i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 13px rgba(242, 201, 76, 0.72);
}

.warship-story .section-kicker,
.warship-story .display-title {
    margin-inline: 0;
}

.warship-story .display-title {
    max-width: 720px;
    margin-bottom: 24px;
    font-size: clamp(3.2rem, 6.3vw, 7rem);
    line-height: 0.92;
}

.warship-lore {
    max-width: 650px;
    margin: 0;
    color: rgba(235, 237, 238, 0.75);
    font-size: 13px;
    line-height: 1.85;
}

.warship-caliber {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: end;
    gap: 13px;
    max-width: 620px;
    margin: 38px 0 28px;
    padding: 20px 22px;
    border-block: 1px solid rgba(201, 162, 39, 0.27);
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.08), transparent);
}

.warship-caliber strong {
    color: var(--brand-bright);
    font-family: var(--display);
    font-size: clamp(4.8rem, 8vw, 8.5rem);
    font-weight: 500;
    line-height: 0.72;
}

.warship-caliber span {
    padding-bottom: 6px;
    color: rgba(255, 255, 255, 0.54);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.17em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.warship-caliber b {
    align-self: center;
    color: var(--text);
    font-family: var(--display);
    font-size: clamp(2.2rem, 4vw, 4.6rem);
    font-weight: 500;
    letter-spacing: 0.035em;
    text-align: right;
}

.warship-dev-note {
    max-width: 620px;
    margin: 0;
    padding-left: 18px;
    border-left: 1px solid var(--brand);
    color: var(--muted-dark);
    font-size: 9px;
    line-height: 1.75;
}

.warship-command {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(201, 162, 39, 0.28);
    border-radius: var(--radius-lg);
    background: rgba(8, 11, 14, 0.86);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5), inset 0 0 54px rgba(201, 162, 39, 0.025);
    backdrop-filter: blur(16px);
}

.warship-command::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(255, 255, 255, 0.012) 3px 4px);
}

.warship-command-head,
.warship-command-foot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 54px;
    padding: 0 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.42);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.warship-command-head span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.warship-command-head i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a14b43;
    box-shadow: 0 0 12px rgba(225, 75, 64, 0.48);
}

.warship-command-head b {
    padding: 5px 8px;
    border: 1px dashed rgba(201, 162, 39, 0.4);
    color: var(--brand-pale);
    font-size: 7px;
}

.warship-readout {
    position: relative;
    z-index: 1;
    min-height: 180px;
    padding: 28px 28px 24px;
    background:
        radial-gradient(circle at 82% 30%, rgba(201, 162, 39, 0.09), transparent 11rem),
        rgba(201, 162, 39, 0.025);
}

.warship-readout > span {
    color: var(--brand);
    font-family: var(--display);
    font-size: 11px;
    letter-spacing: 0.08em;
}

.warship-readout h3 {
    margin: 12px 0 8px;
    font-size: clamp(1.7rem, 2.7vw, 2.8rem);
}

.warship-readout p {
    min-height: 43px;
    margin: 0;
    color: var(--muted-dark);
    font-size: 9px;
    line-height: 1.65;
}

.warship-progress {
    height: 3px;
    margin-top: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.warship-progress i {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #8d6a17, var(--brand-bright));
    box-shadow: 0 0 16px rgba(242, 201, 76, 0.6);
    transition: width 420ms cubic-bezier(.2,.8,.2,1);
}

.warship-sequence {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}

.warship-sequence li {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.warship-sequence li::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: transparent;
}

.warship-sequence button {
    width: 100%;
    min-height: 76px;
    display: grid;
    grid-template-columns: 38px 82px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px 12px;
    padding: 14px 24px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 180ms ease, opacity 180ms ease;
}

.warship-sequence button:disabled {
    opacity: 0.34;
    cursor: not-allowed;
}

.warship-sequence li.is-active::before,
.warship-sequence li.is-complete::before {
    background: var(--brand);
    box-shadow: 0 0 14px rgba(242, 201, 76, 0.5);
}

.warship-sequence li.is-active button {
    opacity: 1;
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.1), transparent 72%);
}

.warship-sequence li.is-active button:hover,
.warship-sequence li.is-active button:focus-visible {
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.17), transparent 78%);
}

.warship-sequence li.is-complete button {
    opacity: 0.63;
}

.warship-sequence button > span {
    grid-row: 1 / 3;
    color: var(--brand);
    font-family: var(--display);
    font-size: 13px;
}

.warship-sequence button > i {
    grid-row: 1 / 3;
    color: rgba(255, 255, 255, 0.3);
    font-size: 7px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.warship-sequence button > b {
    align-self: end;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 700;
}

.warship-sequence button > small {
    align-self: start;
    color: var(--muted-dark);
    font-size: 8px;
}

.warship-sequence li.is-complete button > span::after {
    content: ' ✓';
    color: #8eb88d;
}

.warship-command-foot {
    min-height: 66px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 0;
}

.warship-command-foot span {
    max-width: 230px;
    line-height: 1.55;
}

.warship-command-foot button {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 3px;
    color: var(--brand-pale);
    background: transparent;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.warship-command-foot button:disabled {
    opacity: 0.28;
    cursor: not-allowed;
}

.warship-command-foot button:not(:disabled):hover,
.warship-command-foot button:not(:disabled):focus-visible {
    background: rgba(201, 162, 39, 0.1);
}

.warship-flash {
    position: absolute;
    z-index: 5;
    top: 31%;
    right: 7%;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(circle, #fff 0 2%, #ffe8a1 4%, rgba(242, 201, 76, 0.48) 13%, transparent 62%);
    transform: scale(0.12);
}

.warship-chapter.has-fired .warship-flash {
    animation: warship-fire 900ms cubic-bezier(.15,.7,.2,1) both;
}

.warship-chapter.has-fired .warship-backdrop {
    animation: warship-recoil 650ms ease-out both;
}

@keyframes warship-fire {
    0% { opacity: 0; transform: scale(0.12); }
    12% { opacity: 1; transform: scale(0.5); }
    45% { opacity: 0.62; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1.45); }
}

@keyframes warship-recoil {
    0%, 100% { transform: translateX(var(--warship-shift)); }
    15% { transform: translateX(calc(var(--warship-shift) - 8px)); filter: saturate(0.72) brightness(1.04) contrast(1.12) drop-shadow(0 48px 38px rgba(0, 0, 0, 0.72)); }
}

/* Remaining independent systems */
.field-section {
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background:
        linear-gradient(180deg, rgba(18, 22, 27, 0.82), transparent),
        radial-gradient(circle at 88% 30%, rgba(201, 162, 39, 0.07), transparent 28rem);
}

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

.field-card {
    min-height: 330px;
    padding: 38px 34px 72px;
    border-radius: var(--radius);
    transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.field-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.28);
}

.field-card > span {
    position: relative;
    z-index: 1;
    color: var(--brand);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.field-card h3 {
    position: relative;
    z-index: 1;
    max-width: 330px;
    font-size: 29px;
}

.field-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.75;
}

.field-card > b {
    position: absolute;
    right: 34px;
    bottom: 28px;
    left: 34px;
    z-index: 1;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted-dark);
    font-size: 7px;
    letter-spacing: 0.15em;
}

.field-danger {
    border-color: rgba(225, 75, 64, 0.22);
    background:
        radial-gradient(circle at 84% 20%, rgba(225, 75, 64, 0.12), transparent 15rem),
        linear-gradient(145deg, rgba(43, 23, 23, 0.78), rgba(13, 16, 20, 0.98));
}

.field-danger > span,
.field-danger > b { color: #e8776e; }

.field-dev {
    border-style: dashed;
    background: linear-gradient(145deg, rgba(31, 36, 43, 0.5), rgba(13, 16, 20, 0.86));
}

.field-dev::after {
    content: 'WORK IN PROGRESS';
    position: absolute;
    top: 25px;
    right: -36px;
    width: 150px;
    padding: 4px 0;
    color: #111418;
    background: var(--brand);
    font-size: 6px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-align: center;
    transform: rotate(38deg);
}

@media (max-width: 1180px) {
    .combat-overview,
    .computer-layout,
    .vehicle-layout {
        grid-template-columns: 1fr 1fr;
    }

    .chapter-heading {
        grid-template-columns: 62px minmax(0, 1fr) minmax(240px, 320px);
        gap: 20px;
    }

    .combat-copy,
    .vehicle-copy {
        padding: 40px;
    }

    .vehicle-diagram,
    .vehicle-copy {
        min-height: 560px;
    }

    .card-stack img { width: 112px; }
    .card-stack img:nth-child(2) { left: 61px; }
    .card-stack img:nth-child(3) { left: 122px; }
    .card-stack img:nth-child(4) { left: 183px; }

    .base-layout {
        grid-template-columns: minmax(400px, 0.82fr) 1.18fr;
        gap: 42px;
    }

    .heli-panel {
        grid-template-columns: 160px 1fr;
    }

    .heli-radar {
        width: 145px;
        height: 145px;
    }

    .heli-route {
        grid-column: 2;
    }

    .warship-shell {
        grid-template-columns: minmax(0, 1fr) minmax(390px, 0.84fr);
        gap: 42px;
    }

    .warship-backdrop {
        --warship-shift: -63%;
        width: min(96vw, 1200px);
    }
}

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

    .chapter-heading {
        grid-template-columns: 62px 1fr;
        align-items: center;
        margin-bottom: 46px;
    }

    .chapter-heading > p {
        grid-column: 2;
        max-width: 640px;
    }

    .combat-overview,
    .computer-layout,
    .base-layout,
    .vehicle-layout {
        grid-template-columns: 1fr;
    }

    .vehicle-diagram {
        min-height: 0;
        aspect-ratio: 3 / 2;
    }

    .vehicle-copy {
        min-height: auto;
    }

    .combat-loadout {
        grid-row: 1;
    }

    .shot-flow,
    .bunker-status {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shot-step:nth-child(2)::after,
    .shot-step:last-child::after {
        display: none;
    }

    .bunker-content {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .bunker-heading {
        max-width: 720px;
    }

    .bunker-route {
        max-width: 620px;
    }

    .bunker-shade {
        background:
            linear-gradient(90deg, rgba(6, 8, 10, 0.96), rgba(6, 8, 10, 0.68) 72%, rgba(6, 8, 10, 0.74)),
            linear-gradient(180deg, rgba(6, 8, 10, 0.72), transparent 30%, rgba(6, 8, 10, 0.92));
    }

    .video-note {
        bottom: 74px;
    }

    .hardware-stage {
        min-height: 620px;
    }

    .computer-steps {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .pc-step {
        min-height: 190px;
    }

    .base-art {
        min-height: 580px;
    }

    .base-art > img {
        width: 48%;
    }

    .warship-chapter {
        min-height: 0;
        padding: 98px 0;
    }

    .warship-shell {
        grid-template-columns: 1fr;
        gap: 70px;
        min-height: 0;
    }

    .warship-story,
    .warship-command {
        max-width: 760px;
    }

    .warship-backdrop {
        --warship-shift: -61%;
        top: 170px;
        bottom: auto;
        width: 1200px;
        opacity: 0.43;
    }

    .warship-shade {
        background:
            linear-gradient(90deg, rgba(7, 9, 12, 0.9), rgba(7, 9, 12, 0.58) 76%, rgba(7, 9, 12, 0.84)),
            linear-gradient(180deg, rgba(7, 9, 12, 0.82), transparent 20%, rgba(7, 9, 12, 0.82) 52%, rgba(7, 9, 12, 0.96));
    }

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

@media (max-width: 720px) {
    .systems-index {
        padding-bottom: 62px;
    }

    .system-jump-grid {
        grid-template-columns: 1fr;
    }

    .system-jump-grid a {
        min-height: 104px;
        padding: 20px 24px;
    }

    .chapter-heading {
        grid-template-columns: 50px 1fr;
        gap: 14px;
        margin-bottom: 34px;
    }

    .chapter-number {
        width: 48px;
        height: 48px;
        font-size: 14px;
    }

    .chapter-heading > p {
        grid-column: 1 / -1;
        padding-top: 3px;
    }

    .combat-copy {
        min-height: auto;
        padding: 34px 27px;
    }

    .combat-copy h3 {
        font-size: 2.15rem;
    }

    .combat-stats {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    .combat-stats div {
        min-height: 70px;
    }

    .combat-loadout {
        min-height: 420px;
    }

    .loadout-weapon {
        top: 20%;
        width: 78%;
    }

    .loadout-helmet { top: 17%; width: 24%; }
    .loadout-vest { width: 31%; }
    .loadout-readout { right: 36%; left: 23px; }

    .shot-flow,
    .combat-detail-grid,
    .software-grid,
    .field-grid {
        grid-template-columns: 1fr;
    }

    .shot-step {
        min-height: 230px;
    }

    .shot-step::after {
        display: none;
    }

    .shot-step h3 {
        margin-top: 37px;
    }

    .detail-panel {
        min-height: 350px;
        padding: 34px 27px;
    }

    .condition-meter {
        right: 27px;
        left: 27px;
    }

    .condition-meter i {
        flex: 1;
    }

    .pulse-line {
        right: 24px;
        width: 58%;
    }

    .bunker-chapter {
        min-height: 1040px;
    }

    .bunker-content {
        padding-block: 82px;
    }

    .bunker-heading .display-title {
        font-size: clamp(2.8rem, 13vw, 4.3rem);
    }

    .bunker-route li {
        grid-template-columns: 38px 1fr;
    }

    .bunker-status {
        grid-template-columns: 1fr;
    }

    .bunker-status div {
        min-height: 63px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .bunker-status div:last-child {
        border-bottom: 0;
    }

    .video-note {
        display: none;
    }

    .hardware-stage {
        min-height: 480px;
    }

    .hw-monitor { top: 10%; left: 1%; width: 55%; }
    .hw-case { right: 2%; width: 40%; }
    .hw-gpu { left: 4%; width: 38%; }
    .hw-ssd { left: 41%; }
    .hardware-caption { right: 18px; bottom: 18px; font-size: 6px; }

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

    .pc-step {
        min-height: 165px;
        padding: 24px;
    }

    .software-card {
        min-height: 500px;
        padding: 78px 27px 35px;
    }

    .card-stack {
        height: 100px;
    }

    .card-stack img { width: 92px; }
    .card-stack img:nth-child(2) { left: 48px; }
    .card-stack img:nth-child(3) { left: 96px; }
    .card-stack img:nth-child(4) { left: 144px; }

    .base-art {
        min-height: 460px;
    }

    .base-art::before { width: 320px; height: 320px; }
    .base-art::after { width: 210px; height: 210px; }
    .base-art > img { width: 62%; }

    .chapter-heading.compact {
        grid-template-columns: 50px 1fr;
    }

    .base-system-list article {
        grid-template-columns: 1fr;
        gap: 4px;
        min-height: 180px;
        padding: 28px;
    }

    .base-system-list h3 {
        margin: 8px 0;
    }

    .vehicle-diagram {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .vehicle-inspector-toolbar {
        top: 12px;
        right: 12px;
        left: 12px;
    }

    .vehicle-inspector-id {
        display: none;
    }

    .vehicle-view-switch {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }

    .vehicle-view-switch button {
        min-height: 38px;
        padding-inline: 8px;
    }

    .vehicle-hotspot > b {
        display: none;
    }

    .vehicle-inspector-hint {
        right: 14px;
        bottom: 10px;
        left: 14px;
    }

    .vehicle-copy {
        min-height: auto;
        padding: 37px 28px;
    }

    .heli-panel {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 34px 28px;
    }

    .heli-radar {
        width: 120px;
        height: 120px;
    }

    .heli-route {
        grid-column: auto;
    }

    .warship-chapter {
        padding: 76px 0;
    }

    .warship-story-head {
        margin-bottom: 24px;
    }

    .warship-story .display-title {
        font-size: clamp(3.2rem, 14vw, 5.4rem);
    }

    .warship-lore {
        font-size: 12px;
    }

    .warship-backdrop {
        --warship-shift: -60%;
        top: 220px;
        width: 970px;
        opacity: 0.36;
    }

    .warship-caliber {
        grid-template-columns: auto auto 1fr;
        padding-inline: 15px;
    }

    .warship-caliber strong {
        font-size: clamp(4.4rem, 22vw, 7rem);
    }

    .warship-caliber b {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .warship-command-head,
    .warship-command-foot {
        padding-inline: 16px;
    }

    .warship-readout {
        padding: 24px 20px 22px;
    }

    .warship-sequence button {
        grid-template-columns: 34px 68px minmax(0, 1fr);
        min-height: 78px;
        padding: 14px 18px;
        gap-inline: 9px;
    }

    .warship-command-foot {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 15px;
    }

    .warship-command-foot button {
        min-height: 42px;
    }

    .warship-flash {
        top: 24%;
        right: -100px;
    }

    .field-card {
        min-height: 310px;
        padding: 34px 28px 72px;
    }

    .field-card > b {
        right: 28px;
        left: 28px;
    }
}

@media (max-width: 420px) {
    .combat-loadout {
        min-height: 360px;
    }

    .loadout-code {
        top: 20px;
        left: 21px;
    }

    .loadout-readout span {
        display: none;
    }

    .bunker-chapter {
        min-height: 1100px;
    }

    .hardware-stage {
        min-height: 420px;
    }

    .software-card {
        min-height: 530px;
    }

    .card-stack img { width: 78px; }
    .card-stack img:nth-child(2) { left: 39px; }
    .card-stack img:nth-child(3) { left: 78px; }
    .card-stack img:nth-child(4) { left: 117px; }

    .base-art {
        min-height: 400px;
    }

    .base-art-label b {
        display: none;
    }

    .vehicle-diagram {
        min-height: 0;
    }

    .vehicle-inspector-hint > span {
        display: none;
    }

    .vehicle-plane-interior .hotspot-interior-lights { --hotspot-x: 24%; --hotspot-y: 60%; }
    .vehicle-plane-interior .hotspot-interior-hood { --hotspot-x: 34%; --hotspot-y: 76%; }

    .warship-story-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .warship-caliber {
        gap: 8px;
    }

    .warship-sequence button {
        grid-template-columns: 30px minmax(0, 1fr);
        gap-inline: 10px;
    }

    .warship-sequence button > i {
        display: none;
    }

    .warship-sequence button > b,
    .warship-sequence button > small {
        grid-column: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bunker-video {
        display: none;
    }

    .bunker-chapter {
        background: #080a0d url('media/bunker-poster.jpg') center / cover no-repeat;
    }

    .pulse-line i,
    .heli-radar i,
    .vehicle-hotspot::after {
        animation: none;
    }

    .vehicle-view,
    .vehicle-plane-photo > img,
    .vehicle-copy.is-changing > *,
    .warship-progress i,
    .warship-chapter.has-fired .warship-flash,
    .warship-chapter.has-fired .warship-backdrop {
        transition: none;
        animation: none;
    }
}
