/* ============================
   Specs - Game System Requirements
   Steam-inspired Dark Theme
   ============================ */

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-primary: #1b2838;
    --bg-secondary: #171a21;
    --bg-card: #1e2a3a;
    --bg-card-hover: #263447;
    --bg-input: #32404f;
    --bg-header: #171a21;
    --bg-footer: #171a21;
    --text-primary: #c7d5e0;
    --text-secondary: #8f98a0;
    --text-heading: #ffffff;
    --text-link: #67c1f5;
    --text-link-hover: #ffffff;
    --accent: #1a9fff;
    --accent-hover: #47bfff;
    --accent-dark: #0e6eb8;
    --green: #4c6b22;
    --green-light: #a4d007;
    --red: #b94a48;
    --orange: #e5a100;
    --border: #2a475e;
    --border-light: #3d5a73;
    --radius: 4px;
    --radius-lg: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.4);
    --container-max: 1200px;
    --header-height: 64px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--text-link);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--text-link-hover);
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    line-height: 1.3;
}

/* === Container === */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    gap: 8px;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn--outline {
    background: transparent;
    color: var(--text-link);
    border: 1px solid var(--border-light);
}

.btn--outline:hover {
    background: var(--bg-card-hover);
    color: var(--text-heading);
    border-color: var(--text-link);
}

.btn--steam {
    background: linear-gradient(135deg, #1b2838, #2a475e);
    color: #c7d5e0;
    border: 1px solid var(--border-light);
}

.btn--steam:hover {
    background: linear-gradient(135deg, #2a475e, #3d6282);
    color: #fff;
}

.btn--large {
    padding: 14px 32px;
    font-size: 1rem;
}

/* === Header === */
.site-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
}

.site-header__inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 24px;
}

.site-header__logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    flex-shrink: 0;
}

.site-header__logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
}

.site-header__logo-sub {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-nav {
    display: flex;
    gap: 4px;
}

.site-nav__link {
    padding: 8px 16px;
    color: var(--text-secondary);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.site-nav__link:hover {
    color: var(--text-heading);
    background: var(--bg-card);
}

.site-search {
    margin-left: auto;
    display: flex;
    position: relative;
}

.site-search__input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 40px 8px 14px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    width: 240px;
    transition: all 0.2s;
}

.site-search__input:focus {
    outline: none;
    border-color: var(--accent);
    width: 300px;
    background: #1e2837;
}

.site-search__input::placeholder {
    color: var(--text-secondary);
}

.site-search__btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    display: flex;
}

.site-search__btn:hover {
    color: var(--text-heading);
}

/* Hamburger */
.site-header__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.site-header__hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* === Footer === */
.site-footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    margin-top: auto;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.site-footer__links {
    display: flex;
    gap: 24px;
}

.site-footer__links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.site-footer__links a:hover {
    color: var(--text-link);
}

.site-footer__info {
    text-align: right;
}

.site-footer__info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.site-footer__disclaimer {
    margin-top: 4px;
    font-size: 0.75rem !important;
    opacity: 0.7;
}

/* === Main Content === */
main {
    flex: 1;
    padding: 24px 0;
}

/* === Hero Section === */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.hero__subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__search {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 8px;
}

.hero__search-input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 12px 18px;
    border-radius: var(--radius);
    font-size: 1rem;
}

.hero__search-input:focus {
    outline: none;
    border-color: var(--accent);
}

.hero__search-input::placeholder {
    color: var(--text-secondary);
}

/* === Section === */
.section {
    margin-bottom: 40px;
}

.section__title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.section__subtitle {
    color: var(--text-secondary);
    margin-top: -12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.section__more {
    text-align: center;
    margin-top: 24px;
}

/* === Game Grid === */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* === Game Card === */
.game-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.game-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.game-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.game-card__image-wrap {
    position: relative;
    aspect-ratio: 460 / 215;
    overflow: hidden;
    background: var(--bg-secondary);
}

.game-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card:hover .game-card__image {
    transform: scale(1.05);
}

.game-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.game-card__age-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--red);
    color: #fff;
    padding: 2px 6px;
    border-radius: var(--radius);
    font-size: 0.7rem;
    font-weight: 700;
}

.game-card__free-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--green);
    color: var(--green-light);
    padding: 2px 8px;
    border-radius: var(--radius);
    font-size: 0.7rem;
    font-weight: 700;
}

.game-card__info {
    padding: 12px;
}

.game-card__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-card__date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.game-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.game-card__metacritic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.game-card__metacritic--good { background: var(--green); }
.game-card__metacritic--mixed { background: var(--orange); }
.game-card__metacritic--bad { background: var(--red); }

.game-card__platforms {
    display: flex;
    gap: 4px;
}

.platform-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 2px;
    background: var(--bg-input);
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-weight: 700;
}

/* === Genre Grid === */
.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.genre-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
}

.genre-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-1px);
}

.genre-card__name {
    font-weight: 600;
    color: var(--text-heading);
    font-size: 0.9rem;
}

.genre-card__count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* === Compare CTA === */
.section--compare-cta {
    margin-top: 48px;
}

.compare-cta {
    text-align: center;
    padding: 48px;
    background: linear-gradient(135deg, var(--bg-secondary), #1e3a5f);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.compare-cta h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.compare-cta p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* === Page Header === */
.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.page-header__desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.page-header__count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    padding: 4px 12px;
    border-radius: 999px;
    display: inline-block;
    margin-top: 8px;
}

/* === List Controls === */
.list-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.list-controls__sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.list-controls__sort select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    cursor: pointer;
}

/* === Game Detail === */
.game-detail__header {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.game-detail__cover {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.game-detail__image {
    width: 100%;
    display: block;
    border-radius: var(--radius-lg);
}

.age-badge {
    position: absolute;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    border-radius: var(--radius);
}

.age-badge--large {
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    font-size: 1rem;
}

.game-detail__title {
    font-size: 2rem;
    margin-bottom: 12px;
}

.game-detail__description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.game-detail__meta {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.game-detail__meta-item {
    display: flex;
    gap: 12px;
}

.game-detail__meta-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    min-width: 100px;
    flex-shrink: 0;
}

.game-detail__meta-value {
    font-size: 0.9rem;
}

.game-detail__meta-value a {
    margin-right: 4px;
}

.game-detail__free {
    color: var(--green-light);
    font-weight: 600;
}

.game-detail__badges {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.metacritic-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius);
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.metacritic-badge--good { background: var(--green); }
.metacritic-badge--mixed { background: var(--orange); }
.metacritic-badge--bad { background: var(--red); }

.metacritic-badge__score {
    font-size: 1rem;
    font-weight: 800;
}

.metacritic-badge__label {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* === Requirements Table === */
.requirements-section {
    margin-bottom: 32px;
}

.requirements-table {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.requirements-table {
    --req-cols: 2;
}

.requirements-table__header {
    display: grid;
    grid-template-columns: 150px repeat(var(--req-cols), 1fr);
    background: var(--bg-secondary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.requirements-table__header .requirements-table__col {
    padding: 14px 16px;
    color: var(--text-heading);
}

.requirements-table__row {
    display: grid;
    grid-template-columns: 150px repeat(var(--req-cols), 1fr);
    border-top: 1px solid var(--border);
}

.requirements-table__row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.requirements-table__col {
    padding: 12px 16px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.requirements-table__col--label {
    color: var(--text-secondary);
    font-weight: 600;
}


/* === Tier Badges === */
.tier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.tier-badge--s { background: #ff4444; }
.tier-badge--a { background: #ff8800; }
.tier-badge--b { background: #ffcc00; color: #333; }
.tier-badge--c { background: #44bb44; }
.tier-badge--d { background: #4488ff; }

/* === Build Section === */
.build-section {
    margin-bottom: 32px;
}

.build-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.build-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border);
}

.build-card__title {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--accent);
}

.build-card__list {
    list-style: none;
}

.build-card__list li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.build-card__list li:last-child {
    border-bottom: none;
}

.build-card__list strong {
    color: var(--text-secondary);
    margin-right: 8px;
}

/* === Description Section === */
.description-section {
    margin-bottom: 32px;
}

.description-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    line-height: 1.8;
    font-size: 0.9rem;
}

.description-content img {
    border-radius: var(--radius);
    margin: 12px 0;
}

/* === Compare Form === */
.compare-form-section {
    margin-bottom: 32px;
}

.compare-form__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.compare-form__group {
    position: relative;
}

.compare-form__label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 600;
}

.compare-form__input,
.compare-form__select {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.compare-form__input:focus,
.compare-form__select:focus {
    outline: none;
    border-color: var(--accent);
}

.compare-form__actions {
    display: flex;
    gap: 12px;
}

/* Autocomplete */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 250px;
    overflow-y: auto;
    z-index: 50;
    display: none;
}

.autocomplete-results.active {
    display: block;
}

.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.autocomplete-item:hover {
    background: var(--bg-card-hover);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

/* Compatibility Badges */
.compatibility-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 4px 10px;
    border-radius: var(--radius);
    font-size: 0.7rem;
    font-weight: 700;
}

.compatibility-badge--can-run {
    background: var(--green);
    color: var(--green-light);
}

.compatibility-badge--cannot-run {
    background: var(--red);
    color: #fff;
}

/* === Search Form === */
.search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    max-width: 600px;
}

.search-form__input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 12px 18px;
    border-radius: var(--radius);
    font-size: 1rem;
}

.search-form__input:focus {
    outline: none;
    border-color: var(--accent);
}

/* === Pagination === */
.pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.pagination__list {
    display: flex;
    gap: 4px;
    list-style: none;
}

.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.2s;
}

.pagination__link:hover {
    background: var(--bg-card-hover);
    color: var(--text-heading);
    border-color: var(--border-light);
}

.pagination__link--active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.pagination__item--dots span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    color: var(--text-secondary);
}

/* === Breadcrumb === */
.breadcrumb {
    padding-top: 15px;
    margin-bottom: 20px;
}

.breadcrumb__list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    font-size: 0.8rem;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
}

.breadcrumb__item:not(:last-child)::after {
    content: '›';
    color: var(--text-secondary);
    margin-left: 4px;
}

.breadcrumb__item a {
    color: var(--text-secondary);
}

.breadcrumb__item a:hover {
    color: var(--text-link);
}

.breadcrumb__item:last-child {
    color: var(--text-primary);
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 1.1rem;
}

/* === Error Page === */
.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-page h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.error-page p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* === Legal Pages === */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.legal-page__updated {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 32px;
}

.legal-page h2 {
    font-size: 1.2rem;
    margin-top: 28px;
    margin-bottom: 12px;
}

.legal-page h3 {
    font-size: 1rem;
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal-page p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.legal-page ul {
    margin-bottom: 12px;
    padding-left: 24px;
}

.legal-page li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.85rem;
}

.cookie-table th,
.cookie-table td {
    padding: 10px 14px;
    text-align: left;
    border: 1px solid var(--border);
}

.cookie-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-heading);
}

.cookie-table td {
    background: var(--bg-card);
}

/* === Ad Slots === */
.ad-slot {
    margin: 20px 0;
    text-align: center;
}

.ad-slot--leaderboard {
    max-width: 728px;
    margin: 20px auto;
}

.ad-slot--square {
    max-width: 336px;
    margin: 15px 0;
}

.ad-slot--top {
    max-width: var(--container-max);
    margin: 12px auto;
    padding: 0 20px;
}

/* === Cookie Consent === */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    z-index: 1000;
    padding: 16px 0;
}

.cookie-consent__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-consent p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cookie-consent a {
    color: var(--text-link);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .game-detail__header {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-header__hamburger {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-header);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 12px;
    }

    .site-nav.active {
        display: flex;
    }

    .site-search {
        margin-left: 0;
        flex: 1;
    }

    .site-search__input {
        width: 100%;
    }

    .site-search__input:focus {
        width: 100%;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero__subtitle {
        font-size: 0.95rem;
    }

    .hero__search {
        flex-direction: column;
    }

    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .genre-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .compare-form__grid {
        grid-template-columns: 1fr;
    }

    .compare-cta {
        padding: 32px 20px;
    }

    .compare-cta h2 {
        font-size: 1.4rem;
    }

    .requirements-table__header,
    .requirements-table__row {
        grid-template-columns: 100px repeat(var(--req-cols), 1fr);
    }

    .requirements-table__col {
        padding: 8px 10px;
        font-size: 0.78rem;
    }

    .game-detail__title {
        font-size: 1.5rem;
    }

    .site-footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .site-footer__info {
        text-align: center;
    }

    .cookie-consent__inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .game-card__info {
        padding: 8px;
    }

    .game-card__title {
        font-size: 0.8rem;
    }

    .pagination__link {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .requirements-table__header,
    .requirements-table__row {
        grid-template-columns: 80px repeat(var(--req-cols), 1fr);
    }
}
