:root {
    --bg: #0d111a;
    --bg-2: #131826;
    --panel: #1b2130;
    --panel-2: #20283a;
    --line: rgba(144, 158, 200, 0.16);
    --text: #f5f7fb;
    --muted: #8e9bbc;
    --purple: #7c41ff;
    --purple-2: #4c41f7;
    --green: #39d47d;
    --red: #ef5a5a;
    --orange: #c27b11;
    --blue: #2a4fc6;
    --shadow: 0 22px 54px rgba(5, 8, 16, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Segoe UI Variable", "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(124, 65, 255, 0.12), transparent 22%),
        linear-gradient(180deg, #0d111a 0%, #121826 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.container {
    width: min(1410px, calc(100vw - 48px));
    margin: 0 auto;
}

.page-main {
    min-height: calc(100vh - 140px);
    padding-bottom: 30px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(16, 21, 32, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner,
.site-footer__inner,
.view-switch,
.card-actions,
.admin-head,
.admin-head__actions,
.game-hero__top,
.hero__actions,
.top-actions {
    display: flex;
    gap: 12px;
}

.site-header__inner,
.site-footer__inner,
.admin-head,
.game-hero__top {
    align-items: center;
    justify-content: space-between;
}

.site-header__inner { padding: 18px 0 16px; gap: 18px; }
.top-actions { align-items: center; justify-content: flex-end; flex-wrap: nowrap; }
.inline-form { margin: 0; }

.brand {
    font-size: clamp(30px, 2.4vw, 38px);
    font-weight: 900;
    letter-spacing: -0.06em;
    white-space: nowrap;
}
.brand__gradient {
    background: linear-gradient(135deg, #8b47ff 0%, #5b42ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.brand__light { color: var(--text); }

.icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.chip-btn,
.primary-btn,
.tab-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.primary-btn {
    border-color: transparent;
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-2) 100%);
    box-shadow: 0 14px 32px rgba(95, 67, 255, 0.26);
}
.primary-btn--small { min-height: 36px; padding: 0 14px; }
.chip-btn--ghost { background: rgba(255, 255, 255, 0.02); }
.tab-pill--active { background: linear-gradient(135deg, var(--purple) 0%, var(--purple-2) 100%); border-color: transparent; }
.chip-btn:hover,
.primary-btn:hover,
.tab-pill:hover { transform: translateY(-1px); }

.hero,
.catalog,
.game-hero,
.auth-shell,
.admin-shell {
    padding-top: 20px;
}

.home-hero {
    padding-top: 46px;
}

.home-catalog {
    padding-top: 26px;
}

.home-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 22px;
    align-items: center;
}

.home-hero__copy {
    max-width: 760px;
}

.home-hero__copy h1 {
    margin: 0 0 12px;
    font-size: clamp(22px, 2vw, 34px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.home-hero__copy p {
    margin: 0;
    max-width: 640px;
    color: var(--muted);
    line-height: 1.65;
}

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

.stat-card--home {
    min-height: 150px;
    padding: 22px 24px;
}

.home-search {
    margin-bottom: 18px;
    padding: 12px 16px;
}

.home-games-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.home-game-card {
    display: flex;
    flex-direction: column;
    min-height: 222px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(145, 162, 204, 0.12);
    background: #1a2030;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.home-game-card:hover {
    transform: translateY(-2px);
    border-color: rgba(145, 162, 204, 0.22);
}

.home-game-card__media {
    display: block;
    width: 100%;
    height: 126px;
    min-height: 126px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #111723;
    border-bottom: 1px solid rgba(145, 162, 204, 0.08);
}

.home-game-card__content {
    display: grid;
    gap: 6px;
    padding: 13px 12px 12px;
    min-height: 96px;
    background:
        linear-gradient(180deg, rgba(74, 53, 12, 0.18) 0%, rgba(25, 31, 45, 0.92) 34%, rgba(24, 30, 44, 0.98) 100%);
}

.home-game-card__title {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.18;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-game-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(245, 247, 251, 0.96);
    font-size: 13px;
    line-height: 1.32;
}

.home-game-card__meta b {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
}

.game-page {
    padding-top: 20px;
}

.game-page__container {
    display: grid;
    gap: 12px;
}

.game-page__brand-row,
.game-page__brand,
.game-toolbar,
.game-toolbar__tabs,
.game-toolbar__actions {
    display: flex;
    gap: 12px;
}

.game-page__brand-row,
.game-toolbar {
    align-items: center;
    justify-content: space-between;
}

.game-page__brand {
    align-items: center;
}

.game-page__panel {
    padding: 16px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(27, 33, 48, 0.96), rgba(21, 27, 41, 0.96));
    box-shadow: var(--shadow);
}

.game-page__search {
    margin-top: 0;
}

.game-filter-pills {
    margin: 14px 0 16px;
}

.game-toolbar {
    margin-bottom: 14px;
}

.game-toolbar__tabs {
    flex-wrap: wrap;
}

.tab-pill--muted {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(245, 247, 251, 0.88);
    border-color: var(--line);
}

.game-page__add-btn {
    white-space: nowrap;
}

.server-online {
    display: inline-flex;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.server-online--online {
    color: #ffd45e;
}

.server-online--offline {
    color: #9ca7c4;
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(205px, 1fr));
    gap: 18px;
    align-items: center;
    padding: 14px 0 8px;
}

.hero__copy {
    grid-column: 1 / span 2;
    padding: 12px 0;
}
.hero__copy h1 {
    margin: 0 0 12px;
    max-width: 760px;
    font-size: clamp(24px, 2.2vw, 40px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}
.hero__copy p,
.form-card__header p,
.game-hero p,
.admin-head p,
.empty-state p,
.site-footer p,
.admin-list__content p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.hero__stats {
    grid-column: 3 / span 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.stat-card,
.panel-table,
.form-card,
.game-hero > .container,
.admin-shell .container > *,
.empty-state {
    background: linear-gradient(180deg, rgba(27, 33, 48, 0.96), rgba(21, 27, 41, 0.96));
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.stat-card {
    padding: 18px 22px;
    min-height: 118px;
}
.stat-card__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
}
.stat-card__value {
    display: block;
    margin-top: 18px;
    font-size: clamp(30px, 2.45vw, 46px);
    letter-spacing: -0.06em;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #68f2a3;
    font-weight: 700;
}
.live-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 rgba(57, 212, 125, 0.55);
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(57, 212, 125, 0.55); opacity: 1; }
    70% { box-shadow: 0 0 0 8px rgba(57, 212, 125, 0); opacity: 0.85; }
    100% { box-shadow: 0 0 0 0 rgba(57, 212, 125, 0); opacity: 1; }
}

.search-panel {
    margin-bottom: 18px;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(11, 14, 21, 0.92);
    border: 1px solid var(--line);
}
.search-panel--compact { margin-top: 18px; }
.search-input {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #8da0d1;
}
.search-input input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 18px;
}

.games-grid,
.server-grid,
.admin-stats,
.admin-list,
.filter-pills,
.form-stack,
.form-grid,
.server-card__meta,
.game-card__meta {
    display: grid;
    gap: 14px;
}

.games-grid { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.games-grid--catalog {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}
.games-grid--catalog .game-card {
    min-height: 222px;
    background: linear-gradient(180deg, rgba(29, 35, 50, 0.97), rgba(19, 25, 38, 0.97));
}
.games-grid--catalog .game-card__cover {
    display: block;
    height: 126px;
    min-height: 126px;
    background-image: var(--card-image);
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #141925;
}
.games-grid--catalog .game-card__body {
    margin-top: 0;
    padding: 14px 14px 15px;
    background: rgba(31, 36, 51, 0.98);
}
.server-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.admin-stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 18px; }
.admin-list { gap: 14px; }
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid__span-2,
.form-grid__actions { grid-column: 1 / -1; }
.server-card__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.game-card__meta { gap: 8px; }

.game-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(145, 162, 204, 0.12);
    background: linear-gradient(180deg, rgba(29, 35, 50, 0.97), rgba(19, 25, 38, 0.97));
    box-shadow: var(--shadow);
}
.game-card__cover,
.admin-list__cover,
.cover-preview__image,
.game-badge {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.game-card__cover {
    min-height: 126px;
    height: 126px;
}
.game-card__body {
    display: grid;
    gap: 10px;
    padding: 14px 14px 15px;
}
.game-card h3,
.admin-list__content h3,
.panel-table__header h2,
.form-card__header h1,
.empty-state h1,
.empty-state h2,
.game-hero h1,
.admin-head h1 {
    margin: 0 0 10px;
    line-height: 1.08;
    letter-spacing: -0.04em;
}
.game-card h3 {
    font-size: 18px;
    line-height: 1.18;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.game-card__meta div,
.admin-list__meta,
.server-name small,
.mono,
.server-card__meta dt {
    color: var(--muted);
    font-size: 13.5px;
}
.game-card__meta div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.game-card__meta strong,
.admin-list__meta span,
.server-card__meta dd {
    display: block;
    color: var(--text);
    font-weight: 800;
    text-align: right;
    font-size: 14px;
}

.panel-table,
.form-card,
.game-hero > .container,
.empty-state { padding: 22px; }
.form-card { max-width: 720px; margin: 0 auto; }
.form-card--wide { max-width: 920px; }
.form-card__header { margin-bottom: 20px; }
.form-stack label,
.form-grid label,
.cover-preview {
    display: grid;
    gap: 9px;
    color: #cad4ef;
}
.form-stack input,
.form-grid input,
.form-grid select,
.form-grid textarea,
.form-stack textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    color: var(--text);
    background: rgba(8, 11, 19, 0.86);
    border: 1px solid rgba(145, 162, 204, 0.16);
    border-radius: 14px;
    outline: 0;
}
.form-grid textarea { min-height: 126px; resize: vertical; }
.form-card__hint { color: var(--muted); margin-top: 16px; }
.form-card__hint a { color: #b7bcff; }
.cover-preview__image { min-height: 220px; border-radius: 18px; border: 1px solid var(--line); }

.monitor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.82fr);
    gap: 18px;
    align-items: start;
}
.monitor-form-card { max-width: none; }
.monitor-form {
    display: grid;
    gap: 16px;
}
.monitor-picker {
    display: grid;
    gap: 8px;
    color: #cad4ef;
}
.monitor-picker select {
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    color: var(--text);
    background: rgba(8, 11, 19, 0.9);
    border: 1px solid rgba(145, 162, 204, 0.16);
    border-radius: 14px;
    outline: 0;
}
.monitor-game-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(10, 14, 22, 0.72);
    border: 1px solid rgba(145, 162, 204, 0.12);
}
.monitor-game-preview__cover {
    width: 92px;
    height: 68px;
    flex: 0 0 92px;
    border-radius: 14px;
    border: 1px solid rgba(145, 162, 204, 0.12);
    background: #121724;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.monitor-game-preview__cover--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #93a3ca;
}
.monitor-game-preview__body {
    display: grid;
    gap: 6px;
}
.monitor-game-preview__body strong {
    font-size: 18px;
    line-height: 1.15;
}
.monitor-game-preview__body span,
.monitor-recent__empty,
.recent-server__body small {
    color: var(--muted);
}
.monitor-driver-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(9, 13, 20, 0.74);
    border: 1px solid rgba(145, 162, 204, 0.12);
}
.monitor-driver-panel.is-hidden { display: none; }
.monitor-driver-panel__header h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.18;
}
.monitor-driver-panel__header p,
.monitor-driver-panel__hint {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}
.monitor-grid {
    gap: 14px;
}
.monitor-grid textarea {
    min-height: 110px;
}
.monitor-form__actions {
    margin-top: 2px;
}
.monitor-recent {
    padding: 22px;
    position: sticky;
    top: 88px;
}
.recent-servers {
    display: grid;
    gap: 2px;
}
.recent-server {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
}
.recent-server + .recent-server {
    border-top: 1px solid rgba(145, 162, 204, 0.1);
}
.recent-server__cover {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(145, 162, 204, 0.12);
    background: rgba(255, 255, 255, 0.04);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aab7da;
}
.recent-server__body strong {
    display: block;
    line-height: 1.35;
}

.game-hero__brand {
    display: flex;
    gap: 16px;
    align-items: center;
}
.game-badge {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.filter-pill {
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 13px;
}
.filter-pill strong { color: var(--text); }
.view-switch { justify-content: flex-end; margin-bottom: 12px; }

.server-table-wrap {
    overflow: auto;
    border-radius: 16px;
    border: 1px solid var(--line);
}
.server-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    background: rgba(12, 16, 24, 0.96);
}
.server-table th,
.server-table td {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(145, 162, 204, 0.1);
}
.server-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: left;
    color: #c9d3ef;
}
.server-row--default { background: rgba(22, 28, 42, 0.98); }
.server-row--blue { background: linear-gradient(90deg, rgba(42, 79, 198, 0.96), rgba(37, 55, 128, 0.96)); }
.server-row--orange { background: linear-gradient(90deg, rgba(194, 123, 17, 0.96), rgba(124, 77, 10, 0.96)); }
.server-row--red { background: linear-gradient(90deg, rgba(174, 28, 28, 0.96), rgba(116, 18, 18, 0.96)); }
.server-row--green { background: linear-gradient(90deg, rgba(18, 116, 78, 0.96), rgba(13, 77, 53, 0.96)); }
.server-row--offline { opacity: 0.74; }
.server-name {
    display: flex;
    gap: 12px;
    align-items: center;
}
.server-name strong { display: block; }
.server-name__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}
.online-badge {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}
.online-badge--online { background: rgba(57, 212, 125, 0.12); color: #8bf9b8; }
.online-badge--offline { background: rgba(239, 90, 90, 0.12); color: #ffaeae; }

.server-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(22, 28, 42, 0.96);
}
.server-card--blue { border-color: rgba(42, 79, 198, 0.34); }
.server-card--orange { border-color: rgba(194, 123, 17, 0.34); }
.server-card--red { border-color: rgba(239, 90, 90, 0.34); }
.server-card--green { border-color: rgba(57, 212, 125, 0.34); }
.server-card__header { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.server-status { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.server-status--offline { background: var(--red); }
.server-card__meta div,
.server-card__meta dt,
.server-card__meta dd { margin: 0; }
.server-card__meta dd { margin-top: 4px; }

.admin-list__item {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(145, 162, 204, 0.14);
}
.admin-list__cover { min-height: 104px; border-radius: 14px; }
.admin-list__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.panel-table__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.empty-state {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.empty-state--tight { margin-top: 18px; }
.empty-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(124, 65, 255, 0.22), rgba(76, 65, 247, 0.16));
    margin-bottom: 16px;
}
.empty-state__actions { margin-top: 14px; }

.flash {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid transparent;
}
.flash--success {
    background: rgba(57, 212, 125, 0.12);
    border-color: rgba(57, 212, 125, 0.2);
    color: #9af7c0;
}
.flash--error {
    background: rgba(239, 90, 90, 0.12);
    border-color: rgba(239, 90, 90, 0.2);
    color: #ffb7b7;
}

.site-footer {
    padding: 18px 0 30px;
    border-top: 1px solid rgba(145, 162, 204, 0.08);
}
.site-footer__meta { color: var(--muted); }
.site-footer__meta span { display: inline-flex; align-items: center; gap: 10px; }

@media (max-width: 1220px) {
    .top-actions {
        flex-wrap: wrap;
    }
    .hero__grid {
        grid-template-columns: 1fr;
    }
    .hero__copy,
    .hero__stats {
        grid-column: auto;
    }
    .home-games-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .home-hero__grid {
        grid-template-columns: 1fr;
    }
    .games-grid--catalog {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .site-header__inner,
    .site-footer__inner,
    .game-hero__top,
    .admin-head,
    .admin-head__actions,
    .top-actions,
    .hero__actions,
    .view-switch,
    .card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__stats,
    .form-grid,
    .admin-list__item,
    .server-card__meta {
        grid-template-columns: 1fr;
    }

    .monitor-layout {
        grid-template-columns: 1fr;
    }

    .monitor-recent {
        position: static;
    }

    .games-grid--catalog {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-games-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .game-hero__brand { align-items: flex-start; }
}

@media (max-width: 720px) {
    .container { width: min(100vw - 20px, 100%); }
    .site-header__inner { padding: 14px 0; }
    .brand { font-size: 28px; }
    .hero__copy h1 { font-size: 28px; }
    .panel-table,
    .form-card,
    .game-hero > .container,
    .empty-state { padding: 18px; }
    .search-input input { font-size: 15px; }
    .game-card__cover { min-height: 112px; }
    .home-hero {
        padding-top: 28px;
    }
    .home-hero__copy h1 {
        font-size: 26px;
    }
    .home-hero__stats {
        grid-template-columns: 1fr;
    }
    .home-games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .home-game-card {
        min-height: 210px;
    }
    .home-game-card__media {
        height: 118px;
        min-height: 118px;
    }
    .games-grid--catalog {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .games-grid--catalog .game-card {
        min-height: 208px;
    }
    .games-grid--catalog .game-card__cover {
        height: 112px;
        min-height: 112px;
    }
    .games-grid--catalog .game-card__body {
        padding-top: 14px;
    }
    .game-card h3 {
        min-height: 38px;
        font-size: 17px;
    }
    .monitor-game-preview {
        display: grid;
        grid-template-columns: 1fr;
    }
    .monitor-game-preview__cover {
        width: 100%;
        height: 118px;
    }
}

@media (max-width: 520px) {
    .game-toolbar,
    .game-page__brand-row {
        flex-direction: column;
        align-items: stretch;
    }
    .home-games-grid {
        grid-template-columns: 1fr;
    }
    .games-grid--catalog {
        grid-template-columns: 1fr;
    }
}
