:root {
  --bg: #0b0b0f;
  --panel: #121218;
  --panel-2: #191920;
  --text: #f7f4f8;
  --muted: #9e9aa8;
  --line: rgba(255,255,255,.1);
  --accent: #ff8fc7;
  --accent-2: #a786ff;
  --max: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: "DM Sans", system-ui, sans-serif; min-height: 100vh; }
a { color: inherit; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .045; z-index: 10; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.site-header { max-width: var(--max); margin: auto; height: 84px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; font: 700 18px "Space Grotesk"; text-decoration: none; letter-spacing: -.4px; }
.brand span:last-child { color: var(--muted); font-weight: 500; }
.brand-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 24px var(--accent); }
.header-link { color: var(--muted); font-size: 14px; text-decoration: none; }
.header-link:hover { color: var(--text); }
main { overflow: hidden; }
.hero { max-width: var(--max); margin: auto; padding: 100px 28px 70px; position: relative; }
.hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -210px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(167,134,255,.20), rgba(255,143,199,.05) 47%, transparent 68%); pointer-events: none; }
.eyebrow { margin: 0 0 20px; color: var(--accent); font: 700 12px "Space Grotesk"; letter-spacing: 2.2px; }
h1, h2 { font-family: "Space Grotesk", sans-serif; letter-spacing: -.045em; }
h1 { max-width: 900px; margin: 0; font-size: clamp(58px, 8vw, 116px); line-height: .91; font-weight: 600; }
h1 em { color: var(--muted); font-style: normal; }
.hero-copy { max-width: 540px; margin: 32px 0 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.controls { margin-top: 52px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.search-wrap { width: min(100%, 360px); height: 48px; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; display: flex; align-items: center; padding: 0 13px; gap: 10px; transition: border-color .2s, background .2s; }
.search-wrap:focus-within { border-color: rgba(255,143,199,.65); background: var(--panel-2); }
.search-wrap > span { color: var(--muted); font-size: 26px; line-height: 0; transform: translateY(-2px); }
.search-wrap input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); background: transparent; font: 500 15px inherit; }
.search-wrap input::placeholder { color: #77737f; }
kbd { color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; font: 11px inherit; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter { border: 1px solid var(--line); color: var(--muted); background: transparent; border-radius: 999px; padding: 9px 14px; cursor: pointer; font: 600 13px inherit; transition: .2s ease; }
.filter:hover { color: var(--text); border-color: rgba(255,255,255,.22); }
.filter.active { color: #171219; border-color: var(--accent); background: var(--accent); }
.library { max-width: var(--max); margin: auto; padding: 36px 28px 110px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: 28px; }
.section-heading span { color: var(--muted); font-size: 13px; }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.23); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #282333, #15131b); }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .3s; }
.card:hover .card-art img { transform: scale(1.045); filter: saturate(1.08); }
.card-art::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(10,10,14,.42)); }
.badge { position: absolute; top: 12px; left: 12px; z-index: 1; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 5px 9px; background: rgba(10,10,14,.66); backdrop-filter: blur(12px); font-size: 10px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.card-body { padding: 17px 17px 18px; }
.card-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.card h3 { overflow: hidden; margin: 10px 0 7px; font: 600 19px/1.18 "Space Grotesk"; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.025em; }
.card p { min-height: 40px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.play-row { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.arrow { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; color: #171219; background: var(--accent); transition: transform .2s; }
.card:hover .arrow { transform: rotate(-12deg) scale(1.05); }
.empty-state { padding: 80px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 18px; }
.about { max-width: var(--max); margin: 0 auto 90px; padding: 80px 28px; border-top: 1px solid var(--line); }
.about h2 { margin: 0 0 24px; font-size: clamp(38px, 5vw, 66px); line-height: 1; }
.about > p:last-child { max-width: 650px; color: var(--muted); font-size: 17px; line-height: 1.7; }
footer { max-width: var(--max); margin: auto; padding: 26px 28px 38px; border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; font-size: 13px; }
@media (max-width: 1000px) { .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .site-header { height: 70px; padding-inline: 18px; }
  .hero { padding: 72px 18px 50px; }
  h1 { font-size: clamp(50px, 16vw, 76px); }
  .hero-copy { margin-top: 24px; font-size: 16px; }
  .controls { margin-top: 38px; align-items: stretch; flex-direction: column; }
  .search-wrap { width: 100%; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
  .filter { flex: 0 0 auto; }
  .library { padding: 28px 18px 80px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .card { border-radius: 14px; }
  .card-body { padding: 13px; }
  .card h3 { font-size: 16px; }
  .card p { display: none; }
  .play-row { margin-top: 12px; padding-top: 11px; }
  .about { margin-bottom: 50px; padding: 65px 18px; }
  footer { padding-inline: 18px; }
}
@media (max-width: 390px) { .game-grid { grid-template-columns: 1fr; } .card p { display: block; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
