* { box-sizing: border-box; }

:root {
    --bg: #07090b;
    --panel: #101318;
    --panel-2: #161a20;
    --line: rgba(134, 141, 150, .32);
    --gold: #e1a22a;
    --gold-light: #f5c45c;
    --text: #f1f3f5;
    --muted: #949ba4;
    --green: #45c66e;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 85% 4%, rgba(225, 162, 42, .09), transparent 31rem),
        linear-gradient(180deg, #0d1013 0, var(--bg) 34rem);
    color: var(--text);
    font-family: Arial, sans-serif;
}

a { color: inherit; }
.page { width: min(1180px, calc(100% - 40px)); min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }

.inner-header {
    min-height: 92px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid rgba(134, 141, 150, .2);
}

.home-link {
    justify-self: start;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
    text-decoration: none;
    text-transform: uppercase;
}
.home-link:hover { color: var(--gold-light); }
.brand-link { display: block; width: min(300px, 34vw); }
.brand-logo { display: block; width: 100%; height: auto; }

.steam-login {
    justify-self: end;
    display: flex;
    min-width: 0;
    max-width: 230px;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.steam-icon { display: block; width: 38px; height: 38px; flex: 0 0 auto; object-fit: contain; }
.steam-label {
    max-width: 175px;
    overflow: hidden;
    color: var(--gold-light);
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 12px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: .055em;
    line-height: 1.05;
    text-overflow: ellipsis;
    text-transform: uppercase;
}
.steam-login.is-authenticated .steam-label { font-size: 15px; font-style: normal; letter-spacing: .02em; text-transform: none; white-space: nowrap; }

.section-nav {
    display: flex;
    gap: 8px;
    padding: 18px 0 0;
    overflow-x: auto;
    scrollbar-width: thin;
}
.section-nav a {
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .11em;
    text-decoration: none;
    text-transform: uppercase;
}
.section-nav a:hover,
.section-nav a.is-current { border-color: rgba(225, 162, 42, .75); color: var(--gold-light); }

main { flex: 1 0 auto; padding: 56px 0 76px; }
.page-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 440px); gap: 48px; align-items: end; margin-bottom: 36px; }
.eyebrow { margin: 0 0 9px; color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 0; font-family: "Arial Black", Arial, sans-serif; font-size: clamp(38px, 7vw, 78px); line-height: .94; text-transform: uppercase; }
.page-intro { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.inner-card {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 310px;
    grid-template-rows: 190px 1fr;
    overflow: hidden;
    border: 1px solid rgba(177, 128, 30, .62);
    background: linear-gradient(180deg, var(--panel-2), #090b0e);
    text-decoration: none;
    transition: border-color 180ms ease, transform 180ms ease;
}
.inner-card::before { position: absolute; inset: 0 0 auto; z-index: 3; height: 2px; background: linear-gradient(90deg, var(--gold), #f6dc9b, transparent 88%); content: ""; }
.inner-card:hover { border-color: var(--gold-light); transform: translateY(-3px); }
.card-media { position: relative; overflow: hidden; background: linear-gradient(135deg, #1b2026, #0d0f12); }
.card-image { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.76) contrast(1.08); transition: filter 220ms ease, transform 400ms ease; }
.inner-card:hover .card-image { filter: saturate(.92) contrast(1.08) brightness(1.08); transform: scale(1.025); }
.card-mark { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(245, 196, 92, .9); font-family: "Arial Black", Arial, sans-serif; font-size: 74px; text-shadow: 0 9px 26px #000; }
.card-status { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; background: rgba(6, 8, 10, .82); color: #a4aab1; font-size: 9px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.card-status::before { width: 7px; height: 7px; border-radius: 50%; background: #777d84; content: ""; }
.card-status.is-active { color: var(--green); }
.card-status.is-active::before { background: var(--green); box-shadow: 0 0 9px rgba(69, 198, 110, .6); }
.card-copy { display: flex; min-width: 0; padding: 20px; flex-direction: column; }
.card-kicker { margin: 0 0 7px; color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.card-title { margin: 0; font-family: "Arial Black", Arial, sans-serif; font-size: 20px; line-height: 1.08; text-transform: uppercase; }
.card-summary { margin: 12px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.card-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--gold-light); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.card-more::after { content: "→"; font-size: 15px; }

.detail[hidden], .list-view[hidden] { display: none; }
.detail-back { display: inline-flex; margin-bottom: 24px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.detail-back:hover { color: var(--gold-light); }
.detail-hero { position: relative; min-height: 390px; display: flex; align-items: flex-end; overflow: hidden; border: 1px solid rgba(177, 128, 30, .65); background: #11151a; }
.detail-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) contrast(1.08) brightness(.65); }
.detail-hero::after { position: absolute; inset: 0; background: linear-gradient(80deg, rgba(5, 7, 9, .97) 0, rgba(5, 7, 9, .65) 48%, rgba(5, 7, 9, .18)); content: ""; }
.detail-copy { position: relative; z-index: 1; width: min(710px, 100%); padding: clamp(28px, 6vw, 64px); }
.detail-kicker { margin: 0 0 10px; color: var(--gold-light); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.detail-title { margin: 0; font-family: "Arial Black", Arial, sans-serif; font-size: clamp(34px, 6vw, 70px); line-height: .94; text-transform: uppercase; }
.detail-lead { margin: 18px 0 0; color: #c1c5ca; font-size: 15px; line-height: 1.65; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .75fr); gap: 16px; margin-top: 16px; }
.detail-body, .detail-aside { border: 1px solid var(--line); background: rgba(16, 19, 24, .92); }
.detail-section { padding: 28px 30px; border-bottom: 1px solid rgba(134, 141, 150, .2); }
.detail-section:last-child { border-bottom: 0; }
.detail-section h3 { margin: 0 0 11px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.detail-section p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.detail-aside { align-self: start; }
.detail-stat { padding: 20px 22px; border-bottom: 1px solid rgba(134, 141, 150, .2); }
.detail-stat:last-child { border-bottom: 0; }
.detail-stat dt { margin: 0 0 6px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.detail-stat dd { margin: 0; font-size: 15px; font-weight: 800; }
.not-found { padding: 35px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); }

.site-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; padding: 22px 0 28px; border-top: 1px solid rgba(134, 141, 150, .2); font-size: 12px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.trademark-notice { width: 100%; margin: 3px 0 0; color: #666c73; font-size: 10px; line-height: 1.45; text-align: center; }

@media (max-width: 900px) {
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-heading { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 700px) {
    .page { width: min(100% - 28px, 1180px); }
    .inner-header { grid-template-columns: auto 1fr; min-height: 76px; }
    .brand-link { justify-self: end; width: min(255px, 57vw); }
    .steam-login { grid-column: 1 / -1; margin: 8px 0 14px; justify-self: end; }
    main { padding-top: 42px; }
    .detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
    .card-grid { grid-template-columns: 1fr; }
    .inner-card { min-height: 290px; grid-template-rows: 180px 1fr; }
    .detail-hero { min-height: 430px; }
    .detail-hero::after { background: linear-gradient(0deg, rgba(5, 7, 9, .97), rgba(5, 7, 9, .28)); }
    .detail-copy { padding: 26px 21px; }
    .detail-section { padding: 24px 21px; }
}

@media (prefers-reduced-motion: reduce) {
    .inner-card, .card-image { transition: none; }
}
