/* ==========================================================================
   News: list page, homepage strip, post pages, press kit
   ========================================================================== */

[hidden] { display: none !important; }

.tag-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c, var(--accent));
    background: color-mix(in srgb, var(--c, var(--accent)) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 35%, transparent);
    padding: 4px 11px;
    border-radius: 999px;
}

/* ----- Page header (news + press) ----- */
.page-head {
    padding: 72px 0 36px;
    background:
        radial-gradient(700px 320px at 15% 0%, rgba(250, 204, 21, 0.08), transparent 70%),
        radial-gradient(500px 280px at 90% 20%, rgba(34, 211, 238, 0.06), transparent 70%);
}
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin: 6px 0 14px; }
.page-head p { color: var(--dim); max-width: 58ch; font-size: 1.05rem; }
.page-body { padding: 8px 0 90px; }

/* ----- Filters ----- */
.news-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 34px; }
.filter-chip {
    appearance: none;
    cursor: pointer;
    font: 700 0.82rem/1 var(--font);
    color: var(--dim);
    background: var(--panel);
    border: 1px solid var(--line-2);
    padding: 10px 16px;
    border-radius: 999px;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.filter-chip:hover { color: var(--text); border-color: var(--c, var(--accent)); }
.filter-chip.on { color: #0b0d10; background: var(--c, var(--accent)); border-color: transparent; }

/* ----- Cover placeholder when a post has no image ----- */
.cover-ph {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    color: color-mix(in srgb, var(--c) 70%, #fff);
    background:
        radial-gradient(60% 80% at 30% 20%, color-mix(in srgb, var(--c) 40%, transparent), transparent 70%),
        linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, var(--panel)), var(--panel));
}

/* ----- Featured + rows (Steam-announcement style) ----- */
.news-feature, .news-row {
    display: grid;
    background: var(--panel);
    border: 1px solid color-mix(in srgb, var(--c) 22%, var(--line));
    border-radius: 22px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.news-feature:hover, .news-row:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 22px 50px -28px var(--c); }
.news-feature { grid-template-columns: 1.25fr 1fr; margin-bottom: 22px; }
.news-row { grid-template-columns: 300px 1fr; margin-bottom: 16px; }
.nf-cover, .nr-cover { position: relative; overflow: hidden; background: #000; }
.nf-cover { aspect-ratio: 16 / 9; }
.nr-cover { aspect-ratio: 16 / 9; align-self: stretch; min-height: 100%; }
.nf-cover img, .nr-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.news-feature:hover img, .news-row:hover img { transform: scale(1.05); }
.nf-body, .nr-body { padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.nr-body { padding: 20px 24px; }
.n-meta { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 0.82rem; }
.n-pin { color: var(--accent); font-weight: 700; font-size: 0.78rem; }
.nf-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.15; }
.nr-body h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.nf-body p, .nr-body p { color: var(--dim); font-size: 0.97rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.n-more { margin-top: 4px; font-weight: 700; font-size: 0.9rem; color: var(--c); }
.news-empty {
    text-align: center;
    padding: 60px 24px;
    border: 1px dashed var(--line-2);
    border-radius: 22px;
    color: var(--dim);
}
.news-empty b { display: block; color: var(--text); font-size: 1.15rem; margin-bottom: 6px; }

.follow-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); align-items: center; }
.follow-row > span { color: var(--dim); font-weight: 600; margin-right: 6px; }

/* ----- Homepage strip ----- */
.news-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.news-card {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid color-mix(in srgb, var(--c) 22%, var(--line));
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.news-card:hover { transform: translateY(-4px); border-color: var(--c); box-shadow: 0 22px 50px -28px var(--c); }
.news-card .nc-cover { aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.news-card .nc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.news-card:hover .nc-cover img { transform: scale(1.05); }
.news-card .nc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.news-card h3 { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.news-card p { color: var(--dim); font-size: 0.92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ----- Post page ----- */
.post-wrap { max-width: 820px; padding-top: 44px; padding-bottom: 80px; }
.back-link { display: inline-block; color: var(--dim); font-weight: 600; font-size: 0.92rem; margin-bottom: 26px; transition: color 0.2s ease; }
.back-link:hover { color: var(--c, var(--accent)); }
.post-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.post-head .n-meta { gap: 14px; }
.post-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; letter-spacing: -0.035em; line-height: 1.08; }
.post-cover { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 34px; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 30px 80px -44px var(--c); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.post-actions .share-btn { border-color: var(--line-2); }

/* ----- Rendered markdown ----- */
.md-body { color: #cdd3db; font-size: 1.05rem; line-height: 1.8; overflow-wrap: anywhere; }
.md-body > * + * { margin-top: 1.1em; }
.md-body h2, .md-body h3, .md-body h4 { color: var(--text); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; margin-top: 1.8em; }
.md-body h2 { font-size: 1.6rem; }
.md-body h3 { font-size: 1.3rem; }
.md-body h4 { font-size: 1.1rem; }
.md-body strong { color: var(--text); }
.md-body a { color: var(--c, var(--accent)); text-decoration: underline; text-underline-offset: 3px; }
.md-body ul, .md-body ol { padding-left: 1.4em; }
.md-body li + li { margin-top: 0.4em; }
.md-body blockquote { border-left: 3px solid var(--c, var(--accent)); padding: 4px 0 4px 18px; color: var(--dim); font-style: italic; }
.md-body hr { border: 0; border-top: 1px solid var(--line-2); margin: 2em 0; }
.md-body code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.9em; background: var(--panel-2); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; }
.md-body pre { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; overflow-x: auto; }
.md-body pre code { background: none; border: 0; padding: 0; }
.md-body img { max-width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.md-body .md-img { text-align: center; }
.md-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.md-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ----- Press kit ----- */
.press-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 26px; }
.press-card {
    background: var(--panel);
    border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 24%, var(--line));
    border-radius: 22px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.press-card h3 { font-size: 1.35rem; font-weight: 900; letter-spacing: -0.02em; }
.press-card p { color: var(--dim); font-size: 0.95rem; }
.press-card .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.press-card .links a { font-size: 0.82rem; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); transition: border-color 0.2s ease, color 0.2s ease; }
.press-card .links a:hover { border-color: var(--c, var(--accent)); color: var(--c, var(--accent)); }
.press-block { margin-top: 56px; }
.press-block h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 8px; }
.press-block > p { color: var(--dim); max-width: 60ch; }
.fact-list { list-style: none; margin-top: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); overflow: hidden; }
.fact-list li { display: flex; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.fact-list li:last-child { border-bottom: 0; }
.fact-list b { flex: none; width: 130px; color: var(--dim); font-weight: 600; }
.fact-list a { color: var(--accent); }
.boiler { margin-top: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; color: var(--text); }
.boiler p + p { margin-top: 12px; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-top: 20px; }
.asset { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.2s ease, transform 0.2s ease; }
.asset:hover { border-color: var(--accent); transform: translateY(-3px); }
.asset .a-img { aspect-ratio: 16 / 10; background: #050607; display: grid; place-items: center; overflow: hidden; }
.asset .a-img img { width: 100%; height: 100%; object-fit: contain; }
.asset .a-cap { padding: 11px 14px; font-size: 0.82rem; display: flex; justify-content: space-between; gap: 8px; color: var(--dim); }
.asset .a-cap b { color: var(--text); font-weight: 700; }

/* ----- Ratings pill (game page) ----- */
.rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(11, 13, 16, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    width: fit-content;
    transition: border-color 0.2s ease;
}
.rating-pill:hover { border-color: var(--c, var(--accent)); }
.rating-pill .star { color: #fbbf24; }
.rating-pill small { color: var(--dim); font-size: 0.8rem; font-weight: 500; }

@media (max-width: 860px) {
    .news-feature { grid-template-columns: 1fr; }
    .news-row { grid-template-columns: 1fr; }
    .nr-cover { aspect-ratio: 16 / 9; min-height: 0; }
    .fact-list li { flex-direction: column; gap: 2px; }
    .fact-list b { width: auto; }
}
