:root { color-scheme: dark; --bg: #090b17; --panel: #111525; --text: #f5f6ff; --muted: #a7aec4; --cyan: #66f5ef; --pink: #f46abf; --line: #292e42; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid #25283a; background: #0a0d19; }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 900; letter-spacing: .035em; line-height: 1.1; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--cyan); color: var(--cyan); font-size: 27px; position: relative; }
.brand-mark span { position: absolute; color: var(--pink); font-size: 12px; right: 3px; bottom: 4px; }
.brand-accent, .footer-brand span { color: var(--cyan); }
.brand small { display: block; color: #777f98; font-size: 8px; letter-spacing: .22em; margin-top: 5px; }
nav { display: flex; align-items: center; gap: 32px; font-size: 13px; font-weight: 700; }
nav a:not(.nav-cta) { color: #c4c9d8; }
nav a:hover, .text-link:hover { color: var(--cyan); }
.nav-cta { border: 1px solid #50556a; padding: 10px 15px; }
.nav-cta span { color: var(--cyan); margin-left: 9px; }
.hero { min-height: 570px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 60px; padding-block: 88px; }
.eyebrow { color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: .18em; margin: 0 0 19px; }
.live-dot { display: inline-block; width: 7px; height: 7px; background: var(--cyan); border-radius: 50%; margin-right: 8px; box-shadow: 0 0 10px var(--cyan); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 900; line-height: 1.03; letter-spacing: -.055em; }
h1 { font-size: clamp(42px, 5vw, 68px); margin-bottom: 23px; }
h1 span, h2 span { color: var(--cyan); }
h1 em { color: var(--pink); font-style: normal; }
.hero-description { max-width: 470px; color: #b7bfd1; font-size: 16px; }
.hero-actions, .card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 29px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 19px; border: 1px solid transparent; font-size: 12px; font-weight: 800; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.button-primary { background: var(--cyan); color: #07151a; }
.button-primary:hover { background: #a6fffa; }
.button-secondary { background: transparent; color: white; border-color: #4a5065; }
.button-secondary:hover { border-color: var(--cyan); color: var(--cyan); }
.text-link { font-size: 13px; font-weight: 700; }
.text-link span { color: var(--cyan); margin-left: 6px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 23px; border-top: 1px solid var(--line); margin-top: 49px; padding-top: 18px; color: #818ba4; font-size: 9px; letter-spacing: .1em; }
.hero-meta strong { color: #e8ebf8; margin-right: 4px; }
.hero-art { position: relative; aspect-ratio: 1.18; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border: 1px solid #54466b; background: linear-gradient(180deg, #15132950, #100e1ed9), url('../games/gridrunner-wpm/images/track-bg.png') center / cover; box-shadow: 16px 16px 0 #141324, 0 0 70px #78358e1a; }
.hero-art::after { content: ''; position: absolute; inset: 9px; border: 1px solid #ffffff24; pointer-events: none; }
.hero-art img { width: 92%; align-self: center; object-fit: contain; filter: drop-shadow(0 0 20px #ec53dc50); }
.art-label, .art-footer { display: flex; justify-content: space-between; gap: 12px; padding: 25px; color: #e2d8e9; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.art-label span:last-child { color: var(--cyan); }
.art-footer span:last-child { font-size: 21px; color: var(--cyan); }
.catalog-section { background: #101320; border-block: 1px solid #25283a; padding: 90px 0 100px; }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
h2 { font-size: clamp(35px, 4vw, 51px); margin-bottom: 16px; }
.section-top p:not(.eyebrow), .guide-intro { color: var(--muted); }
.section-number { color: #656f87; font-size: 10px; font-weight: 800; letter-spacing: .15em; white-space: nowrap; }
.slash { color: var(--pink); }
.catalog-toolbar { display: flex; align-items: center; gap: 18px; border-block: 1px solid var(--line); margin-top: 34px; padding: 15px 0; }
.catalog-toolbar label, #result-count { color: #8d96ad; font-size: 9px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
#result-count { margin: 0 0 0 auto; }
.search-wrap { display: flex; align-items: center; gap: 10px; border: 1px solid #343a50; background: #0b0e1b; padding: 0 12px; width: min(350px, 100%); color: var(--cyan); }
.search-wrap span { font-size: 24px; }
.search-wrap input { border: 0; outline: 0; background: transparent; color: white; min-width: 0; width: 100%; padding: 11px 0; font-size: 12px; }
.game-list { padding-top: 28px; }
.game-card { display: grid; grid-template-columns: .9fr 1.1fr; max-width: 900px; border: 1px solid #343a50; background: #151929; }
.card-art { min-height: 270px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(135deg, #21122dbb, #0d1328ad), url('../games/gridrunner-wpm/images/track-bg.png') center / cover; }
.card-index, .card-art-bottom { color: #f6c6e8; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.card-art-title { max-width: 300px; font-weight: 900; font-style: italic; letter-spacing: -.06em; line-height: .95; font-size: clamp(35px, 4vw, 50px); color: white; text-shadow: 3px 3px #a32690, 0 0 24px #e24ac9; }
.card-content { padding: 30px; }
.card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: #8992aa; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.status { color: var(--cyan); }
.card-content h3 { font-size: 26px; letter-spacing: -.035em; margin: 22px 0 0; }
.card-tagline { color: var(--pink); font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.card-description { color: var(--muted); font-size: 14px; max-width: 420px; }
.empty-state { color: var(--muted); padding: 20px 0; }
.guide-section { padding-block: 100px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guide-grid article { border-top: 2px solid #514762; padding-top: 18px; }
.guide-grid article span { color: var(--pink); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.guide-grid h3 { font-size: 17px; margin: 14px 0 8px; }
.guide-grid p, .about-inner p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.about-section { background: #141322; border-block: 1px solid #30263d; padding: 80px 0; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.about-inner h3 { margin-bottom: 10px; }
.footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { font-size: 12px; font-weight: 900; }
.footer-brand small { display: block; color: #8790a7; letter-spacing: .2em; font-size: 9px; }
.footer p, .footer > a:last-child { font-size: 10px; color: #8992aa; }
dialog { width: min(600px, calc(100% - 32px)); max-height: min(85vh, 800px); padding: 28px; color: var(--text); background: #151929; border: 1px solid #545b73; box-shadow: 0 20px 100px #000b; }
dialog::backdrop { background: #03040bd9; }
.dialog-header { display: flex; justify-content: space-between; align-items: start; }
.close-button { color: white; background: transparent; border: 1px solid #545b73; width: 40px; height: 40px; font-size: 26px; line-height: 1; cursor: pointer; }
.dialog-description, .dialog-section li { color: var(--muted); font-size: 14px; }
.dialog-section { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 20px; }
.dialog-section h3 { margin-bottom: 8px; font-size: 15px; }
.dialog-section ul { padding-left: 20px; }
.dialog-section li + li { margin-top: 5px; }
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 65px; }
  .hero-art { max-width: 580px; width: 100%; }
  .guide-section { grid-template-columns: 1fr; gap: 35px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 72px; }
  .brand { font-size: 11px; }
  .brand-mark { width: 35px; height: 35px; }
  nav { gap: 14px; }
  nav a:not(.nav-cta) { display: none; }
  .nav-cta { font-size: 11px; padding: 9px 10px; white-space: nowrap; }
  .hero { padding-block: 56px 65px; }
  .hero-meta { gap: 14px; }
  .catalog-section, .guide-section { padding-block: 65px; }
  .section-number { display: none; }
  .catalog-toolbar { flex-wrap: wrap; gap: 10px; }
  .catalog-toolbar label { width: 100%; }
  .search-wrap { flex: 1; }
  .game-card { grid-template-columns: 1fr; }
  .card-art { min-height: 210px; }
  .card-content { padding: 24px; }
  .guide-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 10px; }
  .footer { flex-wrap: wrap; padding-block: 25px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0.01ms !important; } }
