:root {
  color-scheme: dark;
  --bg: #10121d;
  --surface: #191c2b;
  --border: #303449;
  --text: #f8f7ff;
  --muted: #b9bbd0;
  --accent: #ffb86a;
  font: 16px/1.55 Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--border); background: #141625; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.header-inner { min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; letter-spacing: -.025em; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 36px; border-radius: 9px; background: var(--accent); color: #231a17; font-size: .86rem; letter-spacing: 0; }
.header-link, .site-footer, .muted { color: var(--muted); }
.header-link { font-size: .9rem; text-decoration: none; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; }
.header-link:hover, .site-footer a:hover { color: var(--text); }
main { min-height: 64vh; padding-block: 32px 48px; }
.intro { padding: clamp(24px, 4.5vw, 55px); border-radius: 24px; border: 1px solid #45466a; background: radial-gradient(ellipse at top right, #48305d, transparent 65%), linear-gradient(135deg,#202747,#1d1c35); }
.intro h1 { max-width: 760px; margin: 0; font-size: clamp(2.25rem, 6vw, 4.2rem); line-height: 1.02; letter-spacing: -.065em; text-wrap: balance; }
.intro p { max-width: 52ch; color: #e1dcec; font-size: clamp(.95rem, 2vw, 1.125rem); margin: 17px 0 0; }
.section-title { margin: 32px 0 14px; font-size: 1.35rem; letter-spacing: -.025em; }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.game-grid li { min-width: 0; }
.game-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--border); border-radius: 15px; overflow: hidden; background: var(--surface); text-decoration: none; transition: border-color .2s, transform .2s; }
.game-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.game-card img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; background: #24263a; }
.game-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; font-weight: 700; line-height: 1.25; }
.play-mark { color: var(--accent); font-size: .9rem; }
.site-footer { border-top: 1px solid var(--border); padding-block: 20px; font-size: .875rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { text-underline-offset: 3px; }
.game-heading { margin: 14px 0; font-size: clamp(1.8rem,4vw,3rem); line-height: 1.1; letter-spacing: -.04em; }
.game-frame { display: block; width: 100%; height: clamp(480px, 75vh, 850px); background: #0a0b12; border: 1px solid var(--border); border-radius: 14px; }
.game-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-top: 16px; }
.primary-link { display: inline-block; padding: 10px 16px; background: var(--accent); color: #231a17; border-radius: 8px; font-weight: 750; text-decoration: none; }
.legal { max-width: 76ch; }
.advert { margin-top: 28px; overflow: hidden; text-align: center; color: var(--muted); font-size: .8rem; }
@media (max-width: 820px) { .game-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 560px) {
  .wrap { width: calc(100% - 24px); }
  .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .game-label { padding: 10px 8px; font-size: .88rem; }
  .intro { border-radius: 16px; }
  main { padding-top: 18px; }
  .game-frame { height: max(420px,68dvh); }
}
@media (prefers-reduced-motion: reduce) { .game-card { transition: none; } }
.more-art { display:grid; place-items:center; aspect-ratio:4/3; background:linear-gradient(135deg,#392a50,#292942); color:var(--accent); font-size:clamp(2.5rem,7vw,5rem); line-height:1; }
