:root {
    color-scheme: dark;
    --bg: #040707;
    --bg-elevated: rgba(9, 16, 14, 0.92);
    --panel: rgba(6, 14, 12, 0.88);
    --panel-strong: rgba(9, 24, 19, 0.96);
    --border: rgba(114, 255, 160, 0.35);
    --border-strong: rgba(114, 255, 160, 0.72);
    --text: #edfef1;
    --muted: #9fd0b0;
    --green: #63ff94;
    --green-strong: #32ff75;
    --steam-blue: #1b78ff;
    --steam-blue-strong: #66c4ff;
    --steam-panel: rgba(10, 18, 32, 0.78);
    --amber: #ffcf6f;
    --danger: #ff8e62;
    --shadow: 0 0 0 1px rgba(114, 255, 160, 0.15), 0 24px 80px rgba(0, 0, 0, 0.45);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --site-width: min(1400px, calc(100vw - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top, rgba(31, 110, 62, 0.18), transparent 32%),
        linear-gradient(180deg, #07100c 0%, #020403 56%, #040606 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 5px, 72px 72px;
    opacity: 0.15;
    mix-blend-mode: screen;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--green-strong);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 1000;
    padding: 12px 18px;
    border-radius: 999px;
    font-family: "VT323", monospace;
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #021108;
    background: linear-gradient(135deg, #7bffab 0%, #2dff72 100%);
    border: 1px solid var(--border-strong);
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

kbd {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(114, 255, 160, 0.35);
    font-family: "VT323", monospace;
    font-size: 0.95em;
    background: rgba(6, 15, 12, 0.85);
    color: var(--green);
}

button,
input,
dialog {
    font: inherit;
}

button {
    color: inherit;
}

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

.page-shell {
    position: relative;
    width: var(--site-width);
    margin: 0 auto;
    padding: 20px 0 48px;
}

.crt-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.06;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.7) 0.5px, transparent 0.8px),
        radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.4) 0.5px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.45) 0.5px, transparent 1px);
    background-size: 3px 3px, 4px 4px, 5px 5px;
}

.site-header {
    position: sticky;
    top: 12px;
    z-index: 10;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin-bottom: 28px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(6, 15, 12, 0.78);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

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

.brand-mark {
    width: 46px;
    height: 46px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-title,
.brand-subtitle,
.eyebrow,
.section-kicker,
.section-note,
.stat-value,
.button,
.top-nav a,
.hero-highlights,
.stack-list,
.mode-card span,
.rank-chip,
.weapon-stat,
.site-footer,
.hero-screen-head {
    font-family: "VT323", monospace;
    letter-spacing: 0.06em;
}

.brand-title {
    font-size: 1.7rem;
    color: var(--green);
}

.brand-subtitle {
    font-size: 1rem;
    color: var(--muted);
}

.top-nav {
    display: inline-flex;
    justify-content: center;
    gap: 18px;
}

.top-nav a {
    font-size: 1.35rem;
    color: var(--muted);
    transition: color 180ms ease, text-shadow 180ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
    color: var(--green);
    text-shadow: 0 0 12px rgba(99, 255, 148, 0.5);
}

.header-actions,
.hero-actions,
.cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 1.35rem;
    text-transform: uppercase;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(114, 255, 160, 0.16), 0 0 26px rgba(99, 255, 148, 0.22);
}

.button-primary {
    color: #021108;
    background: linear-gradient(135deg, #7bffab 0%, #2dff72 100%);
}

.button-steam {
    color: #eaf4ff;
    border-color: rgba(102, 196, 255, 0.55);
    background: linear-gradient(135deg, rgba(33, 111, 255, 0.95), rgba(19, 55, 133, 0.96));
}

.button-demo {
    color: var(--green);
    border-color: rgba(114, 255, 160, 0.55);
    background: rgba(5, 15, 12, 0.54);
}

.button-ghost {
    color: var(--green);
    background: rgba(5, 15, 12, 0.54);
}

main {
    display: grid;
    gap: 24px;
}

.hero-section,
.section-grid {
    display: grid;
    gap: 24px;
}

.hero-section {
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    align-items: start;
    min-height: 72vh;
    padding: 28px 0 6px;
}

.hero-copy h1,
.panel h2,
.cta-panel h2,
.section-heading h2 {
    margin: 0;
    line-height: 0.95;
    font-family: "VT323", monospace;
    letter-spacing: 0.04em;
}

.hero-copy h1 {
    max-width: 13ch;
    font-size: clamp(2.9rem, 4.8vw, 4.6rem);
    color: var(--green);
    text-shadow: 0 0 22px rgba(99, 255, 148, 0.24);
}

.eyebrow,
.section-kicker {
    margin: 0 0 8px;
    color: var(--amber);
    font-size: 1.45rem;
    text-transform: uppercase;
}

.hero-text,
.panel p,
.panel-copy,
.section-note,
.dialog-copy p {
    font-size: 1rem;
    line-height: 1.7;
    color: #d8f6df;
}

.hero-copy {
    display: grid;
    gap: 20px;
}

.hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid rgba(114, 255, 160, 0.22);
    border-radius: 999px;
    background: rgba(8, 17, 14, 0.82);
    color: var(--muted);
    font-family: "VT323", monospace;
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-highlights,
.stack-list {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 1.35rem;
}

.hero-highlights li,
.stack-list li {
    margin-bottom: 8px;
}

.hero-visual,
.hero-screen,
.panel,
.stat-card,
.mode-card,
.rule-card,
.weapon-card,
.feature-card,
.gallery-card {
    position: relative;
}

.hero-screen,
.panel,
.stat-card,
.mode-card,
.rule-card,
.weapon-card,
.feature-card,
.gallery-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(8, 16, 14, 0.92), rgba(5, 10, 9, 0.94));
    box-shadow: var(--shadow);
}

.hero-screen {
    overflow: hidden;
}

.hero-screen-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    font-size: 1.2rem;
    color: var(--muted);
    border-bottom: 1px solid rgba(114, 255, 160, 0.15);
    background: rgba(7, 18, 14, 0.9);
}

.hero-screen img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.steam-showcase {
    display: grid;
    gap: 16px;
}

.steam-capsule {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 196, 255, 0.24);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(9, 17, 28, 0.92), rgba(6, 10, 18, 0.96));
    box-shadow: 0 0 0 1px rgba(102, 196, 255, 0.08), 0 24px 80px rgba(0, 0, 0, 0.48);
}

.steam-capsule::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 14, 22, 0.08), rgba(3, 6, 13, 0.72)),
        linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 55%);
    pointer-events: none;
}

.steam-capsule img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.steam-capsule-feature {
    min-height: 420px;
}

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

.steam-capsule-half {
    min-height: 205px;
}

.steam-capsule-health {
    min-height: 200px;
    border-color: rgba(94, 231, 216, 0.35);
}

.steam-capsule-health::after {
    background:
        linear-gradient(180deg, rgba(6, 14, 22, 0.12), rgba(3, 18, 16, 0.78)),
        linear-gradient(90deg, rgba(0, 0, 0, 0.5), transparent 60%);
}

.health-tag {
    color: #7ef4e8 !important;
    text-shadow: 0 0 14px rgba(94, 231, 216, 0.45);
}

.steam-capsule-sub {
    margin: 0;
    max-width: 36ch;
    font-size: 0.98rem;
    line-height: 1.45;
    color: #d2faf5 !important;
}

.steam-capsule-head {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    font-family: "VT323", monospace;
    font-size: 1.2rem;
    color: var(--steam-blue-strong);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.steam-capsule-overlay {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    display: grid;
    gap: 8px;
    padding: 18px;
}

.steam-capsule-overlay.compact {
    gap: 4px;
    padding: 14px;
}

.steam-capsule-tag {
    margin: 0;
    color: var(--steam-blue-strong);
    font-family: "VT323", monospace;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
}

.steam-capsule-overlay h2,
.steam-capsule-overlay h3 {
    margin: 0;
    font-family: "VT323", monospace;
    line-height: 0.95;
    color: #f1fff5;
    text-shadow: 0 0 18px rgba(99, 255, 148, 0.24);
}

.steam-capsule-overlay h2 {
    font-size: clamp(2.8rem, 6vw, 4.4rem);
}

.steam-capsule-overlay h3 {
    font-size: 2rem;
}

.steam-capsule-overlay p:last-child {
    margin: 0;
    max-width: 28ch;
    color: #d9edf9;
}

.health-packages-section {
    background:
        radial-gradient(circle at 70% 20%, rgba(94, 231, 216, 0.08), transparent 40%),
        linear-gradient(180deg, rgba(8, 16, 14, 0.92), rgba(5, 12, 11, 0.94));
}

.health-packages-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 28px;
    align-items: start;
}

.health-packages-shot {
    margin: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(94, 231, 216, 0.28);
    box-shadow: var(--shadow);
}

.health-packages-shot img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.health-packages-caption {
    margin: 0;
    padding: 10px 14px;
    font-family: "VT323", monospace;
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    background: rgba(6, 14, 12, 0.92);
    border-top: 1px solid rgba(94, 231, 216, 0.2);
}

.health-packages-copy {
    display: grid;
    gap: 16px;
}

.health-packages-list {
    margin: 0;
    padding-left: 20px;
    color: #d4f1da;
    line-height: 1.65;
    font-size: 1rem;
}

.health-packages-list li {
    margin-bottom: 10px;
}

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

.store-cta-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    background:
        radial-gradient(circle at 8% 20%, rgba(31, 120, 255, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(8, 15, 25, 0.94), rgba(5, 10, 18, 0.96));
}

.store-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.stat-card {
    padding: 18px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.45rem;
    color: var(--green);
}

.stat-label {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

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

.panel,
.section-panel {
    padding: 24px;
}

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

.section-heading.compact {
    margin-bottom: 16px;
}

.section-heading h2,
.panel h2,
.cta-panel h2 {
    font-size: clamp(2.4rem, 4.8vw, 3.5rem);
    color: var(--green);
}

.section-note {
    max-width: 42ch;
    margin: 0;
    color: var(--muted);
}

.gallery-live-view-callout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 24px;
    align-items: center;
    margin-bottom: 22px;
    padding: 20px 22px;
    border: 1px solid rgba(0, 255, 255, 0.22);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(8, 22, 24, 0.92), rgba(4, 12, 14, 0.96));
    box-shadow: 0 0 0 1px rgba(94, 231, 216, 0.08);
}

.gallery-live-view-copy {
    display: grid;
    gap: 10px;
}

.gallery-live-view-kicker {
    margin: 0;
    font-family: "VT323", monospace;
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7ef4e8;
}

.gallery-live-view-text {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #d8f6df;
}

.gallery-live-view-shot {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.28);
}

.gallery-live-view-shot img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-live-view-shot figcaption {
    margin: 0;
    padding: 8px 12px;
    font-family: "VT323", monospace;
    font-size: 1.05rem;
    color: var(--muted);
    background: rgba(4, 10, 12, 0.95);
    border-top: 1px solid rgba(0, 255, 255, 0.15);
}

.gallery-grid,
.rules-grid,
.weapons-grid,
.feature-grid {
    display: grid;
    gap: 18px;
}

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

.gallery-card {
    width: 100%;
    padding: 14px;
    text-align: left;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--border-strong);
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(114, 255, 160, 0.18);
}

.gallery-card-copy {
    display: grid;
    gap: 4px;
    padding: 12px 2px 2px;
}

.gallery-card-copy h3,
.dialog-copy h3 {
    margin: 0;
    font-family: "VT323", monospace;
    font-size: 2rem;
    color: var(--green);
}

.gallery-card-copy p {
    margin: 0;
    color: var(--muted);
}

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

.rule-card {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.rule-index {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(114, 255, 160, 0.28);
    color: var(--amber);
    font-family: "VT323", monospace;
    font-size: 1.2rem;
}

.rule-card h3,
.weapon-card h3,
.feature-card h3,
.mode-card h3 {
    margin: 0;
    font-family: "VT323", monospace;
    font-size: 2rem;
    color: var(--green);
}

.rule-card p,
.weapon-card p,
.feature-card p,
.mode-card p {
    margin: 0;
    color: #d4f1da;
    line-height: 1.7;
}

.rule-points {
    display: grid;
    gap: 8px;
}

.rule-point {
    padding: 10px 12px;
    border-left: 2px solid rgba(114, 255, 160, 0.5);
    border-radius: 8px;
    background: rgba(8, 20, 16, 0.74);
    color: var(--muted);
}

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

.mode-card {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.mode-card span {
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.mode-status-live {
    color: #03220d;
    background: linear-gradient(135deg, #81ffaf, #3eff7a);
}

.mode-status-limited {
    color: #2c1600;
    background: linear-gradient(135deg, #ffd98d, #ffb546);
}

.rank-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.rank-chip {
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(114, 255, 160, 0.24);
    background: rgba(7, 16, 13, 0.82);
    color: var(--muted);
    font-size: 1.15rem;
    text-transform: uppercase;
}

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

.weapon-card {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.weapon-media {
    display: grid;
    place-items: center;
    min-height: 180px;
    border-radius: 18px;
    border: 1px solid rgba(114, 255, 160, 0.18);
    background:
        radial-gradient(circle at top, rgba(80, 255, 136, 0.14), transparent 45%),
        rgba(6, 15, 12, 0.9);
}

.weapon-media img {
    max-height: 110px;
    object-fit: contain;
}

.weapon-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.weapon-stat {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(10, 22, 17, 0.76);
    border: 1px solid rgba(114, 255, 160, 0.16);
    color: var(--muted);
    font-size: 1.1rem;
}

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

.feature-card {
    padding: 18px;
}

.updates-panel {
    overflow: hidden;
}

.updates-marquee {
    overflow: hidden;
    margin-bottom: 18px;
    padding: 4px 0;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.updates-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: updates-scroll 38s linear infinite;
}

.updates-marquee:hover .updates-track {
    animation-play-state: paused;
}

.update-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 420px;
    max-width: 420px;
    padding: 14px 16px;
    border: 1px solid rgba(102, 196, 255, 0.26);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(9, 17, 28, 0.9), rgba(6, 11, 20, 0.96));
    color: #dbedf9;
}

.update-pill-date,
.update-date {
    display: inline-flex;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(102, 196, 255, 0.14);
    color: var(--steam-blue-strong);
    font-family: "VT323", monospace;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.update-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(102, 196, 255, 0.22);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(10, 17, 28, 0.9), rgba(5, 10, 19, 0.94));
}

.update-card h3 {
    margin: 0;
    font-family: "VT323", monospace;
    font-size: 2rem;
    color: var(--green);
}

.update-card p {
    margin: 0;
    color: #d4e8f2;
    line-height: 1.7;
}

.cta-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    background:
        radial-gradient(circle at 10% 20%, rgba(84, 255, 140, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(10, 20, 17, 0.98), rgba(6, 12, 10, 0.95));
}

.site-footer {
    padding: 22px 4px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    font-family: "VT323", monospace;
    font-size: 1.25rem;
    letter-spacing: 0.06em;
}

.footer-legal a {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
    color: var(--green-strong);
}

.site-footer-tagline {
    margin: 0;
    max-width: 52ch;
    line-height: 1.5;
}

.site-footer-partof {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

.site-footer-partof a {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.site-footer-partof a:hover,
.site-footer-partof a:focus-visible {
    color: var(--green-strong);
}

.a11y-widget {
    width: 100%;
    max-width: 520px;
    text-align: left;
    border: 1px solid rgba(114, 255, 160, 0.28);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    background: rgba(6, 14, 12, 0.72);
}

.a11y-widget-summary {
    cursor: pointer;
    font-family: "VT323", monospace;
    font-size: 1.35rem;
    letter-spacing: 0.06em;
    color: var(--amber);
    list-style: none;
}

.a11y-widget-summary::-webkit-details-marker {
    display: none;
}

.a11y-widget-body {
    margin-top: 12px;
    display: grid;
    gap: 12px;
}

.a11y-widget-lead,
.a11y-widget-hint {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #d8f6df;
}

.a11y-widget-hint {
    color: var(--muted);
    min-height: 1.2em;
}

.a11y-widget-list {
    margin: 0;
    padding-left: 20px;
    color: #d8f6df;
    font-size: 0.95rem;
    line-height: 1.55;
}

.a11y-reduce-motion-btn {
    width: fit-content;
    justify-self: start;
}

.legal-shell {
    padding-bottom: 32px;
}

.legal-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(6, 15, 12, 0.78);
}

.legal-back {
    font-family: "VT323", monospace;
    font-size: 1.35rem;
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.legal-brand {
    font-family: "VT323", monospace;
    font-size: 1.15rem;
    color: var(--muted);
    letter-spacing: 0.06em;
}

.legal-main {
    padding: 28px 24px 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(8, 16, 14, 0.92), rgba(5, 10, 9, 0.94));
    box-shadow: var(--shadow);
}

.legal-main h1 {
    margin: 0 0 8px;
    font-family: "VT323", monospace;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--green);
    letter-spacing: 0.04em;
}

.legal-updated {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 0.95rem;
}

.legal-section {
    margin-bottom: 24px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    margin: 0 0 10px;
    font-family: "VT323", monospace;
    font-size: 1.85rem;
    color: var(--amber);
    letter-spacing: 0.04em;
}

.legal-section p {
    margin: 0 0 12px;
    line-height: 1.7;
    color: #d8f6df;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-list {
    margin: 0;
    padding-left: 22px;
    line-height: 1.65;
    color: #d8f6df;
}

.legal-list li {
    margin-bottom: 8px;
}

.gallery-dialog {
    width: min(980px, calc(100vw - 24px));
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: 28px;
    background: rgba(4, 12, 10, 0.96);
    color: var(--text);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}

.gallery-dialog::backdrop {
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
}

.dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(114, 255, 160, 0.35);
    border-radius: 999px;
    color: var(--green);
    background: rgba(6, 15, 12, 0.86);
    cursor: pointer;
}

.dialog-media-wrap {
    padding: 18px 18px 0;
}

.dialog-media-wrap img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(114, 255, 160, 0.18);
}

.dialog-copy {
    padding: 18px 22px 22px;
}

@keyframes updates-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 8px));
    }
}

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

    .updates-track {
        animation: none;
    }
}

html.reduce-motion {
    scroll-behavior: auto;
}

html.reduce-motion .updates-track {
    animation: none !important;
}

html.a11y-font-step-1 {
    font-size: 106.25%;
}

html.a11y-font-step-2 {
    font-size: 112.5%;
}

html.a11y-font-step-3 {
    font-size: 118.75%;
}

html.a11y-font-step-4 {
    font-size: 125%;
}

html.a11y-font-step-5 {
    font-size: 131.25%;
}

html.a11y-high-contrast {
    --text: #ffffff;
    --muted: #d4f5e0;
    --border: rgba(140, 255, 185, 0.78);
    --border-strong: rgba(170, 255, 200, 0.95);
    --green: #8affb8;
    --green-strong: #62ffc4;
    --amber: #ffe08a;
    --steam-blue-strong: #7ed0ff;
}

html.a11y-grayscale {
    filter: grayscale(1);
}

html.a11y-link-highlight .page-shell a:not(.button):not(.brand),
html.a11y-link-highlight .legal-main a {
    text-decoration: underline;
    text-underline-offset: 3px;
    outline: 2px solid #ffe066;
    outline-offset: 2px;
    background-color: rgba(255, 224, 102, 0.12);
    border-radius: 4px;
}

html.a11y-large-cursor,
html.a11y-large-cursor body,
html.a11y-large-cursor body * {
    cursor:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='12' fill='%2363ff94' stroke='%2302140a' stroke-width='2'/%3E%3C/svg%3E")
 16 16,
        crosshair !important;
}

.a11y-reading-guide {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 3.25rem;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
    background: rgba(255, 230, 120, 0.14);
    border-top: 2px solid rgba(255, 210, 80, 0.9);
    border-bottom: 2px solid rgba(255, 210, 80, 0.9);
    pointer-events: none;
    z-index: 930;
    box-shadow: 0 0 28px rgba(255, 220, 100, 0.12);
}

html.a11y-readable body {
    line-height: 1.65;
}

html.a11y-readable .page-shell p,
html.a11y-readable .page-shell li,
html.a11y-readable .panel-copy,
html.a11y-readable .legal-main p,
html.a11y-readable .legal-main li {
    line-height: 1.8;
}

.site-footer-a11y-hint {
    margin: 0;
    max-width: 62ch;
    line-height: 1.55;
    font-size: 0.95rem;
    color: #d8f6df;
}

.site-footer-a11y-hint a {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.site-footer-a11y-hint a:hover,
.site-footer-a11y-hint a:focus-visible {
    color: var(--green-strong);
}

.a11y-float-btn {
    position: fixed;
    z-index: 940;
    left: max(16px, env(safe-area-inset-left, 0px));
    right: auto;
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 999px;
    border: 2px solid rgba(10, 28, 18, 0.9);
    color: #03140a;
    background: linear-gradient(145deg, #8affc4 0%, #3dff8a 48%, #1bc964 100%);
    box-shadow:
        0 0 0 1px rgba(114, 255, 160, 0.45),
        0 10px 28px rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

.a11y-float-btn:hover,
.a11y-float-btn:focus-visible {
    filter: brightness(1.06);
}

.a11y-float-icon {
    width: 28px;
    height: 28px;
}

.a11y-panel-dialog {
    width: min(480px, calc(100vw - 24px));
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: rgba(4, 12, 10, 0.97);
    color: var(--text);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
}

.a11y-panel-dialog::backdrop {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
}

.a11y-panel-inner {
    padding: 22px 22px 18px;
    max-height: min(85vh, 640px);
    overflow-y: auto;
}

.a11y-panel-title {
    margin: 0 0 8px;
    padding-right: 40px;
    font-family: "VT323", monospace;
    font-size: clamp(1.85rem, 4.5vw, 2.35rem);
    letter-spacing: 0.04em;
    color: var(--green);
}

.a11y-panel-intro {
    margin: 0 0 18px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--muted);
}

.a11y-panel-intro a {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.a11y-panel-intro a:hover,
.a11y-panel-intro a:focus-visible {
    color: var(--green-strong);
}

.a11y-font-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.a11y-font-btn {
    flex: 1 1 4rem;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(114, 255, 160, 0.35);
    background: rgba(6, 15, 12, 0.88);
    color: #e8fdf0;
    cursor: pointer;
    font-family: "VT323", monospace;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
}

.a11y-font-btn-wide {
    flex: 1.4 1 6rem;
    font-size: 1.05rem;
    font-family: inherit;
}

.a11y-font-btn:hover,
.a11y-font-btn:focus-visible {
    border-color: var(--green-strong);
}

.a11y-font-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.a11y-panel-section {
    margin-bottom: 18px;
}

.a11y-panel-section:last-of-type {
    margin-bottom: 14px;
}

.a11y-panel-heading {
    margin: 0 0 8px;
    font-family: "VT323", monospace;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    color: var(--amber);
}

.a11y-panel-hint {
    margin: 8px 0 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--muted);
    min-height: 1.2em;
}

.a11y-toggle {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(114, 255, 160, 0.35);
    background: rgba(6, 15, 12, 0.88);
    color: #e8fdf0;
    cursor: pointer;
    font-size: 0.98rem;
    line-height: 1.35;
}

.a11y-toggle[aria-pressed="true"] {
    border-color: var(--green-strong);
    background: rgba(99, 255, 148, 0.14);
    color: var(--green-strong);
}

.a11y-panel-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    padding-top: 6px;
    border-top: 1px solid rgba(114, 255, 160, 0.2);
    margin-top: 4px;
}

.a11y-panel-statement {
    font-family: "VT323", monospace;
    font-size: 1.15rem;
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.a11y-panel-statement:hover,
.a11y-panel-statement:focus-visible {
    color: var(--green-strong);
}

@media (max-width: 920px) {
    .site-header,
    .hero-section,
    .section-grid,
    .cta-panel,
    .store-cta-strip {
        grid-template-columns: 1fr;
    }

    .site-header {
        border-radius: 30px;
    }

    .top-nav {
        justify-content: start;
        flex-wrap: wrap;
    }

    .gallery-grid,
    .rules-grid,
    .weapons-grid,
    .feature-grid,
    .mode-grid,
    .stats-strip,
    .updates-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .health-packages-grid {
        grid-template-columns: 1fr;
    }

    .gallery-live-view-callout {
        grid-template-columns: 1fr;
    }

    .store-cta-actions {
        justify-content: start;
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(100vw - 20px, 1400px);
        padding-top: 12px;
    }

    .site-header,
    .panel,
    .section-panel {
        padding: 18px;
    }

    .hero-copy h1 {
        max-width: 11ch;
        font-size: clamp(3rem, 16vw, 4.5rem);
    }

    .gallery-grid,
    .rules-grid,
    .weapons-grid,
    .feature-grid,
    .mode-grid,
    .stats-strip,
    .weapon-stat-grid,
    .updates-grid {
        grid-template-columns: 1fr;
    }

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

    .header-actions,
    .hero-actions,
    .cta-actions,
    .store-cta-actions {
        width: 100%;
    }

    .button {
        width: 100%;
    }

    .update-pill {
        min-width: 320px;
        max-width: 320px;
    }
}
