:root {
            color-scheme: dark;
            --bg: #0f1115;
            --bg-soft: #151922;
            --panel: #191e28;
            --panel-soft: #202633;
            --panel-raised: #252c3a;
            --text: #f3f3f3;
            --muted: #a4acb8;
            --quiet: #7f8896;
            --line: rgba(255, 255, 255, 0.10);
            --line-strong: rgba(240, 79, 79, 0.42);
            --accent: #f04f4f;
            --accent-strong: #ff6f6f;
            --accent-soft: rgba(240, 79, 79, 0.12);
            --green: #65d991;
            --amber: #f0c46d;
            --red: #ff7d7d;
            --blue: #70a7ff;
            --shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
            --radius-lg: 18px;
            --radius-md: 12px;
            --radius-sm: 8px;
            --maxw: 1180px;
        }

        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            margin: 0;
            background:
                linear-gradient(180deg, rgba(240, 79, 79, 0.08), transparent 380px),
                linear-gradient(180deg, #0d0f14 0%, var(--bg) 58%, #10141b 100%);
            color: var(--text);
            font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        }

        body.locked {
            overflow: hidden;
        }

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

        img {
            max-width: 100%;
        }

        .wrap {
            width: min(calc(100% - 32px), var(--maxw));
            margin: 0 auto;
        }

        .topbar {
            position: sticky;
            top: 0;
            z-index: 20;
            background: rgba(15, 17, 21, 0.86);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            backdrop-filter: blur(16px);
        }

        .topbar-inner {
            min-height: 70px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            min-width: 0;
        }

        .brand {
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 210px;
        }

        .brand-icon {
            width: 44px;
            height: 44px;
            padding: 9px;
            border: 1px solid rgba(255, 255, 255, 0.16);
            border-radius: 13px;
            background: linear-gradient(180deg, #ff6767, #a91f1f);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
        }

        .brand-title {
            display: block;
            font-size: 15px;
            font-weight: 850;
        }

        .brand-subtitle {
            display: block;
            margin-top: 2px;
            color: var(--muted);
            font-size: 12px;
        }

        .nav {
            min-width: 0;
            display: flex;
            flex: 1 1 auto;
            flex-wrap: nowrap;
            justify-content: flex-end;
            gap: 8px;
            overflow-x: auto;
            overscroll-behavior-x: contain;
            scrollbar-width: none;
            white-space: nowrap;
        }

        .nav::-webkit-scrollbar {
            display: none;
        }

        .nav a,
        .btn {
            min-height: 42px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 0 14px;
            border: 1px solid var(--line);
            border-radius: var(--radius-sm);
            background: rgba(255, 255, 255, 0.035);
            color: var(--text);
            font-size: 14px;
            font-weight: 760;
            line-height: 1;
            transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
        }

        .nav a:hover,
        .btn:hover {
            border-color: var(--line-strong);
            background: rgba(240, 79, 79, 0.10);
            transform: translateY(-1px);
        }

        .btn-primary {
            border-color: rgba(255, 255, 255, 0.12);
            background: linear-gradient(180deg, var(--accent-strong), #b52626);
            color: #fff;
        }

        .btn-primary:hover {
            background: linear-gradient(180deg, #ff7b7b, #c12a2a);
        }

        .btn-muted {
            color: var(--muted);
        }

        .hero {
            padding: 40px 0 28px;
        }

        .hero-grid {
            display: grid;
            grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
            gap: 22px;
            align-items: stretch;
        }

        .hero-copy,
        .hero-preview,
        .card {
            border: 1px solid var(--line);
            border-radius: var(--radius-lg);
            background: linear-gradient(180deg, rgba(31, 37, 49, 0.96), rgba(18, 22, 30, 0.96));
            box-shadow: var(--shadow);
        }

        .hero-copy {
            padding: clamp(24px, 4vw, 36px);
            display: grid;
            align-content: center;
            min-height: 520px;
        }

        .eyebrow {
            width: fit-content;
            padding: 7px 10px;
            border: 1px solid rgba(240, 79, 79, 0.32);
            border-radius: 999px;
            background: var(--accent-soft);
            color: #ffb1b1;
            font-size: 11px;
            font-weight: 850;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        h1 {
            margin: 18px 0 16px;
            max-width: 760px;
            font-size: clamp(38px, 4.7vw, 62px);
            line-height: 0.98;
            letter-spacing: -0.045em;
        }

        .lead {
            margin: 0;
            max-width: 720px;
            color: var(--muted);
            font-size: 17px;
            line-height: 1.72;
        }

        .hero-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 24px;
        }

        .hero-points {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            margin-top: 20px;
        }

        .hero-point {
            min-height: 70px;
            padding: 14px;
            border: 1px solid var(--line);
            border-radius: var(--radius-md);
            background: rgba(255, 255, 255, 0.025);
        }

        .hero-point strong {
            display: block;
            margin-bottom: 5px;
            font-size: 14px;
        }

        .hero-point span {
            color: var(--muted);
            font-size: 13px;
            line-height: 1.45;
        }

        .hero-preview {
            overflow: hidden;
            display: grid;
            grid-template-rows: auto 1fr auto;
        }

        .preview-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            padding: 14px 16px;
            border-bottom: 1px solid var(--line);
            background: rgba(0, 0, 0, 0.16);
        }

        .preview-logo {
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 0;
        }

        .preview-logo img {
            width: 132px;
        }

        .preview-status {
            flex: 0 0 auto;
            padding: 7px 10px;
            border: 1px solid rgba(101, 217, 145, 0.25);
            border-radius: 999px;
            background: rgba(101, 217, 145, 0.10);
            color: #9bf0bb;
            font-size: 12px;
            font-weight: 800;
        }

        .preview-image {
            width: 100%;
            height: 100%;
            min-height: 390px;
            object-fit: cover;
            object-position: 48% 16%;
            cursor: zoom-in;
        }

        .preview-foot {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            border-top: 1px solid var(--line);
        }

        .metric {
            padding: 14px 16px;
            border-right: 1px solid var(--line);
        }

        .metric:last-child {
            border-right: 0;
        }

        .metric-value {
            display: block;
            font-size: 21px;
            font-weight: 900;
        }

        .metric-label {
            display: block;
            margin-top: 4px;
            color: var(--muted);
            font-size: 12px;
        }

        .section {
            margin: 22px 0;
        }

        .card {
            padding: clamp(20px, 3vw, 28px);
        }

        .section-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 18px;
            margin-bottom: 18px;
        }

        h2 {
            margin: 0;
            font-size: clamp(24px, 3vw, 32px);
            line-height: 1.1;
            letter-spacing: -0.03em;
        }

        .section-head p,
        .muted {
            margin: 7px 0 0;
            color: var(--muted);
            line-height: 1.65;
        }

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

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

        .feature,
        .game-profile,
        .panel,
        .step,
        .release-box {
            border: 1px solid var(--line);
            border-radius: var(--radius-md);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.014));
        }

        .feature,
        .game-profile,
        .panel,
        .step {
            padding: 18px;
        }

        .feature h3,
        .game-profile h3,
        .panel h3,
        .step h3 {
            margin: 0 0 8px;
            font-size: 17px;
            letter-spacing: -0.015em;
        }

        .feature p,
        .game-profile p,
        .panel p,
        .step p,
        .panel li {
            margin: 0;
            color: var(--muted);
            line-height: 1.65;
        }

        .panel ul {
            margin: 0;
            padding-left: 18px;
        }

        .feature-kicker,
        .step-kicker {
            display: inline-flex;
            align-items: center;
            min-height: 28px;
            padding: 0 9px;
            margin-bottom: 12px;
            border: 1px solid rgba(112, 167, 255, 0.22);
            border-radius: 999px;
            background: rgba(112, 167, 255, 0.09);
            color: #b6ccff;
            font-size: 11px;
            font-weight: 850;
            letter-spacing: 0.07em;
            text-transform: uppercase;
        }

        .step-kicker {
            border-color: rgba(240, 79, 79, 0.28);
            background: var(--accent-soft);
            color: #ffb3b3;
        }

        .game-profile {
            min-height: 180px;
        }

        .note {
            margin: 14px 0 0;
            color: var(--quiet);
            font-size: 13px;
            line-height: 1.6;
        }

        .request-card {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: center;
            gap: 18px;
        }

        .request-card h2 {
            margin-top: 14px;
        }

        .request-card p {
            max-width: 760px;
            margin: 8px 0 0;
            color: var(--muted);
            line-height: 1.65;
        }

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

        .request-paths {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            margin-top: 14px;
        }

        .request-paths div {
            padding: 12px;
            border: 1px solid var(--line);
            border-radius: var(--radius-sm);
            background: rgba(255, 255, 255, 0.025);
        }

        .request-paths strong,
        .request-paths span {
            display: block;
        }

        .request-paths strong {
            font-size: 13px;
        }

        .request-paths span {
            margin-top: 4px;
            color: var(--muted);
            font-size: 12px;
            line-height: 1.5;
        }

        .workflow {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 1px;
            overflow: hidden;
            border: 1px solid var(--line);
            border-radius: var(--radius-lg);
            background: var(--line);
        }

        .workflow-step {
            min-height: 170px;
            padding: 20px;
            background: linear-gradient(180deg, #202633, #171c25);
        }

        .workflow-step span {
            color: var(--accent-strong);
            font-weight: 900;
            font-size: 13px;
        }

        .workflow-step h3 {
            margin: 12px 0 8px;
            font-size: 19px;
        }

        .workflow-step p {
            margin: 0;
            color: var(--muted);
            line-height: 1.65;
        }

        .gallery {
            display: grid;
            gap: 14px;
        }

        .gallery-stage {
            position: relative;
            overflow: hidden;
            border: 1px solid var(--line-strong);
            border-radius: var(--radius-lg);
            background: #090b0f;
        }

        .gallery-image {
            display: block;
            width: 100%;
            aspect-ratio: 16 / 9;
            object-fit: contain;
            cursor: zoom-in;
        }

        .gallery-caption {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            padding: 13px 15px;
            border-top: 1px solid var(--line);
            background: rgba(13, 16, 22, 0.88);
        }

        .gallery-caption strong {
            font-size: 16px;
        }

        .gallery-caption span {
            color: var(--muted);
            font-size: 13px;
        }

        .gallery-arrow {
            position: absolute;
            top: 50%;
            width: 42px;
            height: 42px;
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 999px;
            background: rgba(8, 10, 14, 0.76);
            color: #fff;
            cursor: pointer;
            font-size: 28px;
            transform: translateY(-50%);
        }

        .gallery-prev {
            left: 13px;
        }

        .gallery-next {
            right: 13px;
        }

        .gallery-thumbs {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
            gap: 9px;
        }

        .gallery-thumb {
            padding: 5px;
            border: 1px solid var(--line);
            border-radius: var(--radius-sm);
            background: rgba(255, 255, 255, 0.025);
            cursor: pointer;
        }

        .gallery-thumb[aria-current="true"] {
            border-color: var(--accent);
            background: var(--accent-soft);
        }

        .gallery-thumb img {
            display: block;
            width: 100%;
            aspect-ratio: 16 / 9;
            object-fit: cover;
            border-radius: 6px;
        }

        .compat-summary {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
            margin-bottom: 14px;
        }

        .summary-item {
            padding: 16px;
            border: 1px solid var(--line);
            border-radius: var(--radius-md);
            background: rgba(255, 255, 255, 0.025);
        }

        .summary-item strong {
            display: block;
            font-size: 24px;
        }

        .summary-item span {
            display: block;
            margin-top: 4px;
            color: var(--muted);
            font-size: 13px;
        }

        .compat-tools {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin: 18px 0 12px;
        }

        .search {
            width: min(100%, 380px);
            min-height: 42px;
            padding: 0 13px;
            border: 1px solid var(--line);
            border-radius: var(--radius-sm);
            background: #111620;
            color: var(--text);
            font: inherit;
        }

        .chips {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .chip {
            min-height: 34px;
            padding: 0 10px;
            border: 1px solid var(--line);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.03);
            color: var(--muted);
            cursor: pointer;
            font-weight: 760;
        }

        .chip.active {
            border-color: var(--line-strong);
            background: var(--accent-soft);
            color: #ffd0d0;
        }

        .table-wrap {
            max-height: 620px;
            overflow: auto;
            border: 1px solid var(--line);
            border-radius: var(--radius-md);
            background: rgba(255, 255, 255, 0.015);
        }

        table {
            width: 100%;
            min-width: 860px;
            border-collapse: collapse;
        }

        th,
        td {
            padding: 13px 14px;
            border-bottom: 1px solid var(--line);
            text-align: left;
            vertical-align: top;
        }

        th {
            position: sticky;
            top: 0;
            z-index: 2;
            background: #1b202b;
            color: var(--text);
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        tr:last-child td {
            border-bottom: 0;
        }

        .status {
            display: inline-flex;
            align-items: center;
            min-height: 28px;
            padding: 0 9px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 850;
            white-space: nowrap;
        }

        .status.validated {
            border: 1px solid rgba(101, 217, 145, 0.22);
            background: rgba(101, 217, 145, 0.10);
            color: #99efb9;
        }

        .status.likely {
            border: 1px solid rgba(240, 196, 109, 0.28);
            background: rgba(240, 196, 109, 0.10);
            color: #f4d48f;
        }

        .status.needs {
            border: 1px solid rgba(255, 125, 125, 0.30);
            background: rgba(255, 125, 125, 0.10);
            color: #ffb1b1;
        }

        .release-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
            gap: 14px;
        }

        .release-box {
            padding: 18px;
        }

        .release-title {
            margin: 12px 0 8px;
            font-size: 28px;
            line-height: 1.08;
            letter-spacing: -0.03em;
        }

        .meta {
            display: flex;
            flex-wrap: wrap;
            gap: 9px 14px;
            color: var(--muted);
            font-size: 13px;
            line-height: 1.5;
        }

        .release-body {
            max-height: 360px;
            overflow: auto;
            margin-top: 14px;
            padding-right: 8px;
            color: var(--text);
            line-height: 1.75;
            white-space: pre-wrap;
            word-break: break-word;
        }

        .asset-list,
        .history {
            display: grid;
            gap: 10px;
        }

        .asset,
        .history-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 13px;
            border: 1px solid var(--line);
            border-radius: var(--radius-sm);
            background: rgba(255, 255, 255, 0.025);
        }

        .asset strong,
        .history-item strong {
            display: block;
            word-break: break-word;
        }

        .asset span,
        .history-item span {
            display: block;
            margin-top: 4px;
            color: var(--muted);
            font-size: 13px;
        }

        .empty,
        .loading,
        .error {
            padding: 16px;
            border-radius: var(--radius-md);
            line-height: 1.7;
        }

        .empty,
        .loading {
            border: 1px dashed var(--line);
            color: var(--muted);
            background: rgba(255, 255, 255, 0.02);
        }

        .error {
            border: 1px solid rgba(255, 125, 125, 0.32);
            background: rgba(255, 125, 125, 0.09);
            color: #ffd1d1;
        }

        .footer {
            padding: 8px 0 42px;
            color: var(--muted);
            font-size: 14px;
            text-align: center;
            line-height: 1.7;
        }

        .footer a {
            color: #ffb1b1;
        }

        .lightbox {
            position: fixed;
            inset: 0;
            z-index: 60;
            display: none;
            place-items: center;
            padding: 24px;
            background: rgba(5, 7, 10, 0.90);
            backdrop-filter: blur(12px);
        }

        .lightbox.open {
            display: grid;
        }

        .lightbox img {
            max-width: min(1460px, 96vw);
            max-height: 90vh;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: var(--radius-md);
            box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
        }

        .lightbox-close {
            position: fixed;
            top: 18px;
            right: 18px;
            width: 44px;
            height: 44px;
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
            cursor: pointer;
            font-size: 24px;
        }

        @media (max-width: 980px) {
            .hero-grid,
            .release-grid,
            .grid-2,
            .grid-3,
            .workflow,
            .compat-summary {
                grid-template-columns: 1fr;
            }

            .hero-copy {
                min-height: auto;
            }
        }

        @media (max-width: 760px) {
            .topbar-inner {
                align-items: flex-start;
                flex-direction: column;
                padding: 12px 0;
            }

            .nav {
                width: 100%;
                justify-content: flex-start;
            }

            .hero {
                padding-top: 22px;
            }

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

            .hero-points,
            .preview-foot {
                grid-template-columns: 1fr;
            }

            .metric {
                border-right: 0;
                border-bottom: 1px solid var(--line);
            }

            .metric:last-child {
                border-bottom: 0;
            }

            .preview-image {
                min-height: 260px;
            }

            .request-paths {
                grid-template-columns: 1fr;
            }

            .section-head,
            .request-card,
            .asset,
            .history-item {
                align-items: stretch;
                flex-direction: column;
            }

            .request-card {
                display: flex;
            }

            .request-actions {
                justify-content: stretch;
            }

            .btn {
                width: 100%;
            }
        }

