:root {
    --bg: #0e1620;
    --bg-2: #0a1119;
    --panel: #16202d;
    --panel-2: #1b2838;
    --border: #263447;
    --border-2: #1e2c3a;
    --text: #c6d4e1;
    --text-dim: #93a4b4;
    --muted: #6c7d8d;
    --heading: #ffffff;
    --blue: #66c0f4;
    --link: #1a9fff;
    --green-1: #7cb524;
    --green-2: #5a8a17;
    --rel: #4c6b16;
    --up: #1a6ca8;
    --radius: 8px;
    --shell-max: 1400px;
    --topbar-h: 56px;
    --sidebar-w: 232px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--blue); }
img { display: block; max-width: 100%; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: .55rem; color: var(--heading); font-weight: 800; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand:hover { color: var(--heading); }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 6px;
    background: linear-gradient(135deg, #1a9fff, #2c5a7a);
    color: #fff; font-size: 13px; font-weight: 900; letter-spacing: -.02em;
}
.brand-text { font-size: 16px; letter-spacing: -.01em; }

.search { margin-left: auto; display: flex; align-items: center; width: min(360px, 45vw); }
.search input {
    flex: 1; min-width: 0;
    background: var(--panel); border: 1px solid var(--border);
    color: var(--text); border-radius: 6px 0 0 6px;
    padding: .5rem .75rem; font-size: 14px; font-family: inherit;
}
.search input:focus { outline: none; border-color: var(--blue); }
.search button {
    background: var(--panel); border: 1px solid var(--border); border-left: none;
    color: var(--text-dim); border-radius: 0 6px 6px 0; padding: .5rem .7rem; cursor: pointer;
    display: flex; align-items: center;
}
.search button:hover { color: var(--blue); }

.menu-toggle {
    display: none; flex-direction: column; gap: 4px; justify-content: center;
    width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 6px;
    background: var(--panel); cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; width: 18px; margin: 0 auto; background: var(--text); }

.shell { display: flex; max-width: var(--shell-max); margin: 0 auto; }

.sidebar {
    width: var(--sidebar-w); flex: none;
    position: sticky; top: var(--topbar-h); align-self: flex-start;
    height: calc(100vh - var(--topbar-h)); overflow-y: auto;
    padding: 1.1rem .75rem 2rem; border-right: 1px solid var(--border);
    background: var(--bg);
}
.side-group { margin-bottom: 1.4rem; }
.side-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
    color: var(--muted); padding: 0 .6rem; margin-bottom: .45rem;
}
.side-link {
    display: flex; align-items: center; gap: .5rem;
    padding: .45rem .6rem; border-radius: 6px;
    color: var(--text-dim); font-size: 14px; font-weight: 500;
}
.side-link:hover { background: var(--panel); color: var(--heading); }
.side-link.active { background: linear-gradient(90deg, rgba(102,192,244,.16), transparent); color: var(--blue); font-weight: 700; }
.side-link .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.overlay { display: none; }

.content { flex: 1; min-width: 0; padding: 1.6rem 1.9rem 3.5rem; }

.page-head { margin-bottom: 1.25rem; }
.page-head h1 { color: var(--heading); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 .35rem; }
.page-sub { color: var(--text-dim); margin: 0; font-size: 15px; }

.crumb { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 1rem; overflow-wrap: anywhere; }
.crumb a { color: var(--blue); }
.crumb span { margin: 0 .35rem; color: var(--border); }

.filterbar {
    display: flex; flex-wrap: wrap; gap: 1.25rem 2rem;
    padding: .85rem 1rem; margin-bottom: 1.5rem;
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
}
.fb-group { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.fb-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-right: .3rem; }
.fb-chip {
    font-size: 13px; font-weight: 600; color: var(--text-dim);
    padding: .32rem .7rem; border-radius: 999px; border: 1px solid transparent;
}
.fb-chip:hover { background: var(--panel-2); color: var(--heading); }
.fb-chip.active { background: var(--blue); color: #06121d; border-color: var(--blue); }
.fb-select { display: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(198px, 1fr)); gap: 1.1rem; }

.card {
    display: flex; flex-direction: column;
    background: var(--panel); border: 1px solid var(--border-2); border-radius: var(--radius);
    overflow: hidden; transition: border-color .18s, transform .18s;
}
.card:hover { border-color: var(--blue); transform: translateY(-2px); }
.card-thumb { position: relative; aspect-ratio: 16 / 10; background: var(--panel-2); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-status {
    position: absolute; top: .5rem; left: .5rem;
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
    padding: .2rem .5rem; border-radius: 4px; color: #fff;
}
.card-status.rel { background: var(--rel); }
.card-status.up { background: var(--up); }
.card-body { padding: .65rem .7rem .75rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-title {
    font-size: 14px; font-weight: 700; color: var(--heading); line-height: 1.3; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
}
.card-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card-meta time { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.card-plats { display: flex; gap: .25rem; flex-wrap: wrap; justify-content: flex-end; }
.plat { font-size: 10px; font-weight: 700; color: var(--muted); background: var(--panel-2); padding: .1rem .35rem; border-radius: 3px; }
.card-plat-badges { position: absolute; top: .5rem; right: .5rem; display: flex; gap: .25rem; flex-wrap: wrap; justify-content: flex-end; max-width: 72%; }
.pbadge { font-size: 10px; font-weight: 800; color: #dfe9f2; background: rgba(10, 17, 25, .82); border: 1px solid rgba(102, 192, 244, .35); padding: .12rem .4rem; border-radius: 4px; }

.empty { padding: 2.5rem 1rem; text-align: center; color: var(--text-dim); background: var(--panel); border: 1px dashed var(--border); border-radius: var(--radius); }

.pager { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin: 2rem 0 .5rem; }
.pg {
    min-width: 38px; text-align: center; padding: .45rem .65rem; border-radius: 6px;
    background: var(--panel); border: 1px solid var(--border); color: var(--text-dim); font-weight: 700; font-size: 14px;
}
.pg:hover { border-color: var(--blue); color: var(--heading); }
.pg.active { background: var(--blue); color: #06121d; border-color: var(--blue); }
.pg-gap { padding: .45rem .3rem; color: var(--muted); }

.prose { margin-top: 2.5rem; color: var(--text); font-size: 15.5px; line-height: 1.75; max-width: 860px; overflow-wrap: break-word; }
.prose h2 { color: var(--heading); font-size: 1.3rem; font-weight: 800; margin: 2rem 0 .75rem; }
.prose h3 { color: var(--heading); font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.prose p { margin: 0 0 1rem; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.page-article { max-width: 820px; margin: 0 auto; }
.page-article h1 { color: var(--heading); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin: 0 0 1.25rem; }

.gp-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-bottom: 1.5rem; }
.gp-cover-wrap { align-self: start; }
.gp-cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--border-2); cursor: zoom-in; transition: border-color .15s; }
.gp-cover:hover { border-color: var(--blue); }
.gp-status { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: .25rem .6rem; border-radius: 4px; margin-bottom: .75rem; color: #fff; }
.gp-status.up { background: var(--up); }
.gp-status.rel { background: var(--rel); }
.gp-title { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 900; line-height: 1.08; letter-spacing: -.02em; color: var(--heading); margin: 0 0 1rem; overflow-wrap: break-word; }
.gp-title-kw { display: block; font-size: .4em; font-weight: 700; letter-spacing: .04em; color: var(--text-dim); margin-top: .4rem; text-transform: uppercase; }

.steam-box {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    background: linear-gradient(135deg, #1b2838, #101a24);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: .8rem 1rem; margin: 0 0 1.25rem;
}
.steam-info { display: flex; flex-direction: column; gap: .1rem; }
.steam-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.steam-price { font-size: 18px; font-weight: 800; color: var(--heading); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.steam-price .old { color: var(--muted); text-decoration: line-through; font-size: 14px; font-weight: 600; }
.steam-price .disc { background: #4c6b16; color: #d2ff9e; font-size: 12px; font-weight: 800; padding: .1rem .4rem; border-radius: 4px; }
.steam-price .free { color: #a1d05a; }
.buy-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    background: linear-gradient(180deg, var(--green-1), var(--green-2));
    color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .01em;
    padding: .6rem 1.3rem; border-radius: 6px; white-space: nowrap;
}
.buy-btn:hover { color: #fff; filter: brightness(1.08); }

.gp-facts { display: grid; grid-template-columns: 1fr; gap: .5rem; font-size: 14px; }
.gp-fact { background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 6px; padding: .5rem .75rem; min-width: 0; }
.gp-fact span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .15rem; }
.gp-fact b { color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.gp-fact a { color: var(--blue); }

.gp-h2 { font-size: 1.4rem; font-weight: 800; color: var(--heading); margin: 2.25rem 0 1rem; padding-left: .75rem; border-left: 4px solid var(--blue); }
.gp-lead { color: var(--text); font-size: 16.5px; line-height: 1.65; font-weight: 600; margin: 0 0 1rem; max-width: 860px; overflow-wrap: break-word; }
.gp-desc { color: var(--text); font-size: 15.5px; line-height: 1.78; max-width: 860px; overflow-wrap: break-word; }
.gp-desc p { margin: 0 0 1rem; }
.gp-desc h2 { font-size: 1.2rem; font-weight: 800; color: var(--heading); margin: 1.75rem 0 .75rem; padding: 0; border: none; }
.gp-desc strong { color: var(--heading); font-weight: 700; }

.gp-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.gp-tag { background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text-dim); font-size: 12.5px; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; }
.gp-feature { border-color: rgba(102, 192, 244, .3); color: #cfe4f5; }

.gp-fact-wide { grid-column: 1 / -1; }

.gp-sysreq { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 860px; }
.sysreq-col { background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 1rem 1.1rem; }
.sysreq-col h3 { margin: 0 0 .6rem; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); font-weight: 800; }
.sysreq-col dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .3rem .8rem; font-size: 13.5px; }
.sysreq-col dt { color: var(--muted); font-weight: 700; white-space: nowrap; }
.sysreq-col dd { margin: 0; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.sysreq-col dd.full { grid-column: 1 / -1; }

.lightbox { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(4, 8, 12, .92); align-items: center; justify-content: center; padding: 2rem; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 96vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lightbox-close { position: absolute; top: 1rem; right: 1.25rem; width: 44px; height: 44px; border: none; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: rgba(255, 255, 255, .2); }

.gp-filmstrip { display: flex; gap: .5rem; overflow-x: auto; margin-top: .6rem; padding-bottom: .5rem; scroll-snap-type: x proximity; }
.gp-filmstrip img { flex: 0 0 auto; width: 128px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; border: 1px solid var(--border-2); background: var(--panel-2); cursor: zoom-in; scroll-snap-align: start; transition: border-color .15s; }
.gp-filmstrip img:hover { border-color: var(--blue); }
.gp-filmstrip::-webkit-scrollbar { height: 8px; }
.gp-filmstrip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.gp-filmstrip::-webkit-scrollbar-track { background: transparent; }

.gp-sim { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.gp-simcard { display: block; background: var(--panel); border: 1px solid var(--border-2); border-radius: var(--radius); overflow: hidden; transition: border-color .18s; }
.gp-simcard:hover { border-color: var(--blue); }
.gp-simthumb { aspect-ratio: 16 / 10; background: var(--panel-2); }
.gp-simthumb img { width: 100%; height: 100%; object-fit: cover; }
.gp-simbody { padding: .6rem .7rem; }
.gp-simbody h3 { font-size: 13.5px; font-weight: 700; color: var(--heading); line-height: 1.3; margin: 0 0 .2rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gp-simbody time { font-size: 11px; color: var(--muted); }

.gp-cmt-form { background: var(--panel); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1.75rem; max-width: 860px; }
.gp-cmt-form input, .gp-cmt-form textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--border); color: var(--heading); border-radius: 6px; padding: .65rem .8rem; font-size: 14px; margin-bottom: .6rem; font-family: inherit; }
.gp-cmt-form input:focus, .gp-cmt-form textarea:focus { outline: none; border-color: var(--blue); }
.gp-cmt-form textarea { resize: vertical; min-height: 84px; }
.gp-cmt-btn { background: linear-gradient(180deg, var(--green-1), var(--green-2)); color: #fff; font-weight: 800; font-size: 14px; border: none; border-radius: 6px; padding: .6rem 1.5rem; cursor: pointer; }
.gp-cmt-btn:hover { filter: brightness(1.08); }
.gp-cmt-btn:disabled { opacity: .6; cursor: default; }
.gp-cmt-err { color: #ff8a8a; font-size: 13px; font-weight: 700; margin-bottom: .6rem; }
.gp-hidden { display: none; }
.gp-nocmt { color: var(--muted); font-style: italic; }

.gp-cmt { display: flex; gap: .85rem; margin-bottom: 1.4rem; max-width: 860px; }
.gp-cmt-av { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--panel-2); color: var(--heading); display: flex; align-items: center; justify-content: center; font-weight: 900; text-transform: uppercase; }
.gp-cmt-main { flex: 1; min-width: 0; }
.gp-cmt-head { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .2rem; }
.gp-cmt-name { font-weight: 800; color: var(--heading); font-size: 14px; }
.gp-cmt-time { font-size: 11px; color: var(--muted); font-weight: 700; }
.gp-cmt-body { color: var(--text); font-size: 14.5px; line-height: 1.6; margin: 0 0 .5rem; overflow-wrap: anywhere; }
.gp-cmt-react { display: flex; gap: .5rem; }
.gp-cmt-react .react-btn { background: transparent; border: 1px solid var(--border); color: var(--text-dim); border-radius: 999px; padding: .2rem .7rem; font-size: 12px; font-weight: 700; cursor: pointer; display: inline-flex; gap: .35rem; align-items: center; }
.gp-cmt-react .react-btn:hover { border-color: var(--blue); color: var(--heading); }

.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); margin-top: 2rem; }
.footer-inner { max-width: var(--shell-max); margin: 0 auto; padding: 2rem 1.9rem; }
.footer-brand { display: flex; align-items: center; gap: .5rem; color: var(--heading); font-weight: 800; margin-bottom: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1rem; }
.footer-links a { color: var(--text-dim); font-size: 14px; font-weight: 600; }
.footer-links a:hover { color: var(--blue); }
.footer-note { color: var(--muted); font-size: 12.5px; margin: 0 0 .5rem; max-width: 720px; }
.footer-copy { color: var(--muted); font-size: 12.5px; margin: 0; }
.footer-note a { color: var(--text-dim); }

.status-page { text-align: center; padding: 4rem 1rem; }
.status-code { font-size: 4rem; font-weight: 900; color: var(--blue); line-height: 1; }
.status-page h1 { color: var(--heading); font-size: 1.5rem; margin: .75rem 0 .5rem; }
.status-page p { color: var(--text-dim); margin: 0 0 1.5rem; }
.status-btn { display: inline-block; background: var(--blue); color: #06121d; font-weight: 800; padding: .6rem 1.4rem; border-radius: 6px; }
.status-btn:hover { color: #06121d; filter: brightness(1.05); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (min-width: 768px) {
    .gp-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
    .gp-cover-wrap { min-width: 0; display: flex; flex-direction: column; height: 100%; }
    .gp-cover { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; }
    .gp-filmstrip { flex: 0 0 auto; }
    .gp-sim { grid-template-columns: repeat(3, 1fr); }
    .gp-sysreq { grid-template-columns: 1fr 1fr; }
    .gp-facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .menu-toggle { display: flex; }
    .sidebar {
        position: fixed; left: 0; top: var(--topbar-h);
        height: calc(100vh - var(--topbar-h)); height: calc(100dvh - var(--topbar-h));
        width: 260px; transform: translateX(-100%); transition: transform .22s ease; z-index: 60;
        overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
        padding-bottom: 4rem;
    }
    .sidebar.open { transform: translateX(0); box-shadow: 0 0 40px rgba(0,0,0,.5); }
    .overlay { position: fixed; inset: var(--topbar-h) 0 0 0; background: rgba(0,0,0,.55); z-index: 55; }
    .overlay.show { display: block; }
    .content { padding: 1.25rem 1.1rem 3rem; }
    .footer-inner { padding: 1.75rem 1.1rem; }
    .brand-text { display: none; }
}

@media (max-width: 460px) {
    .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
    .steam-box { flex-direction: column; align-items: stretch; }
    .buy-btn { justify-content: center; }
}

@media (max-width: 767px) {
    .filterbar { flex-direction: column; align-items: stretch; gap: .7rem; padding: .85rem; }
    .fb-chips { display: none; }
    .fb-select { display: flex; flex-direction: column; gap: .3rem; }
    .fb-select .fb-label { width: auto; margin: 0; }
    .filter-select {
        width: 100%; background: var(--bg-2); border: 1px solid var(--border); color: var(--heading);
        border-radius: 6px; padding: .6rem 2rem .6rem .8rem; font-size: 14px; font-family: inherit; font-weight: 600;
        appearance: none; -webkit-appearance: none; cursor: pointer;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b9bab' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
        background-repeat: no-repeat; background-position: right .75rem center; background-size: 12px;
    }
    .filter-select:focus { outline: none; border-color: var(--blue); }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
