:root {
    color-scheme: dark;
    --bg: #11111b;
    --panel: #191925;
    --panel-soft: #20202e;
    --text: #f3f0f8;
    --muted: #9291a4;
    --violet: #a47aff;
    --line: rgba(255, 255, 255, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    background: radial-gradient(ellipse at 76% -20%, rgba(121, 76, 196, .16), transparent 38%), var(--bg);
    color: var(--text);
    font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.site-header {
    height: 82px;
    padding: 0 max(5.5vw, calc((100vw - 1320px) / 2));
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(17, 17, 27, .82);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px;
    color: #171321; font-size: 24px; font-weight: 800; font-style: italic;
    background: linear-gradient(145deg, #f9d487, #bd8cff 78%); box-shadow: 0 5px 22px #a378ff40;
}
.brand-logo { width: 42px; height: 42px; display: block; border-radius: 14px; object-fit: contain; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 15px; letter-spacing: .04em; }
.brand-copy small { color: #878596; font-size: 9px; letter-spacing: .2em; }
.header-link { color: #c3c0d0; font-size: 13px; transition: color .2s; }
.header-link:hover { color: #fff; }
.header-link span { margin-left: 7px; color: var(--violet); }
.page-shell { max-width: 1320px; margin: 0 auto; padding: 38px 32px 78px; }
.ad-grid { margin-bottom: 39px; padding: 13px 14px 14px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(120deg, #191925, #1b1928); }
.ad-items { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ad-slot { min-width: 0; aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 6px; border: 1px dashed #ffffff20; border-radius: 11px; color: #898697; background: #ffffff04; font-size: 9px; }
.ad-icon { width: 72px; height: 72px; max-width: calc(100% - 4px); max-height: 72px; display: grid; place-items: center; border: 1px solid #c5a3ff30; border-radius: 14px; color: #cbb3f1; background: linear-gradient(145deg, #a47aff26, #f4d29812); font-size: 34px; }
.ad-image { width: 72px; height: 72px; max-width: calc(100% - 4px); max-height: 72px; display: block; border-radius: 14px; object-fit: cover; }
.ad-title { max-width: 100%; overflow: hidden; color: #f5e9ff; font-size: 11px; font-weight: 400; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; background: linear-gradient(90deg, #ffd98a, #ff9ecf, #a9baff, #9bd7d3, #ffd98a); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: ad-title-shimmer 3s linear infinite; }
@keyframes ad-title-shimmer {
    to { background-position: 300% 0; }
}
.ad-slot:nth-child(5n + 2) .ad-icon { border-color: #9bd7d333; color: #9bd7d3; }
.ad-slot:nth-child(5n + 3) .ad-icon { border-color: #f0c88a33; color: #f0c88a; }
.ad-slot:nth-child(5n + 4) .ad-icon { border-color: #eca6c333; color: #eca6c3; }
.ad-slot:nth-child(5n) .ad-icon { border-color: #a9baff33; color: #a9baff; }
.catalog { padding-top: 0; scroll-margin-top: 28px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-eyebrow { color: #8e89a2; font-size: 9px; }
.catalog-heading h2 { margin: 8px 0 4px; font-size: 28px; letter-spacing: -.04em; }
.title-spark { margin-left: 5px; color: #c5a3ff; font-size: 17px; vertical-align: 4px; }
.catalog-subtitle { margin: 0; color: var(--muted); font-size: 12px; }
.search-box { width: min(300px, 34vw); height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid #ffffff12; border-radius: 10px; background: #1a1a26; transition: border-color .2s, box-shadow .2s; }
.search-box:focus-within { border-color: #a47aff80; box-shadow: 0 0 0 3px #a47aff12; }
.search-icon { color: #a9a6b8; font-size: 24px; transform: rotate(-20deg); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font: inherit; font-size: 12px; }
.search-box input::placeholder { color: #777587; }
.search-box kbd { padding: 3px 6px; border: 1px solid #ffffff1a; border-radius: 4px; color: #858294; background: #ffffff08; font: 10px 'DM Sans', sans-serif; }
.list-meta { display: flex; align-items: center; gap: 16px; margin: 30px 0 15px; color: #858294; font-size: 11px; }
.meta-line { height: 1px; flex: 1; background: linear-gradient(90deg, #ffffff16, transparent); }
.game-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px 16px; }
.game-card { min-width: 0; overflow: hidden; border: 1px solid #ffffff0c; border-radius: 13px; background: #191923; transition: transform .25s, border-color .25s, box-shadow .25s; }
.game-card:hover { transform: translateY(-5px); border-color: #b395ed67; box-shadow: 0 13px 30px #07070d9c; }
.game-cover { position: relative; aspect-ratio: 1 / .88; overflow: hidden; background: linear-gradient(145deg, #29283a, #1a1924); }
.game-cover::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, #0c0b12a1); pointer-events: none; }
.game-cover img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .4s; }
.game-card:hover .game-cover img { transform: scale(1.05); }
.game-number { position: absolute; z-index: 1; left: 10px; bottom: 9px; color: #ffffffc2; font-size: 9px; letter-spacing: .14em; }
.game-info { padding: 12px 12px 13px; }
.game-name { overflow: hidden; margin: 0; color: #eceaf2; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.game-id { margin-top: 5px; color: #777587; font-size: 9px; letter-spacing: .08em; }
.list-state { padding: 46px 12px; color: var(--muted); text-align: center; font-size: 13px; }
.list-state[hidden] { display: none; }
.site-footer { min-height: 72px; padding: 0 max(5.5vw, calc((100vw - 1320px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); color: #777587; font-size: 10px; }

@media (max-width: 980px) {
    .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .site-header { height: 68px; padding: 0 20px; }
    .page-shell { padding: 20px 16px 54px; }
    .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
    .brand-logo { width: 38px; height: 38px; border-radius: 12px; }
    .ad-grid { margin-bottom: 31px; padding: 10px; }
    .ad-items { gap: 7px; }
    .ad-slot { gap: 3px; padding: 3px; border-radius: 9px; font-size: 8px; }
    .ad-icon { width: 48px; height: 48px; max-height: 48px; border-radius: 10px; font-size: 26px; }
    .ad-image { width: 48px; height: 48px; max-height: 48px; border-radius: 10px; }
    .ad-title { font-size: 10px; }
    .catalog-heading { align-items: stretch; flex-direction: column; gap: 18px; }
    .catalog-heading h2 { font-size: 25px; }
    .search-box { width: 100%; }
    .list-meta { margin-top: 23px; }
    .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 9px; }
    .game-cover { aspect-ratio: 1 / .9; }
    .game-info { padding: 10px 10px 11px; }
    .game-name { font-size: 11px; }
    .site-footer { min-height: 65px; padding: 0 17px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation: none !important; }
}
