:root {
  --bg: #0b0b0d;
  --bg-2: #131317;
  --ink: #f3f0ea;
  --muted: #a9a59c;
  --line: #2a2a31;
  --accent: #ff5a36;
  --accent-2: #ffc23d;
  --max: 1200px;
  --gutter: 16px;
  --display: "Arial Black", "Helvetica Neue", Arial, "Malgun Gothic", sans-serif;
  --body: "Helvetica Neue", Arial, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --bg: #0b0b0d; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--accent); color: #000; padding: 8px 12px; z-index: 9; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--display); font-size: 20px; text-decoration: none; letter-spacing: 0.02em; }
.brand span { color: var(--accent); margin-left: 4px; }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { text-decoration: none; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav-cta { color: #000 !important; background: var(--accent); padding: 8px 14px; border-radius: 999px; }

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: 64px var(--gutter) 48px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
.eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 18px; }
.hero h1 { font-size: clamp(44px, 7vw, 88px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { color: var(--muted); font-size: 18px; max-width: 520px; margin-top: 22px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-block; text-decoration: none;
  padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { font-size: 18px; padding: 16px 28px; }

.hero-art { position: relative; aspect-ratio: 4 / 3.4; }
.art {
  position: absolute; width: 74%; border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); object-fit: cover;
}
.art-a { top: 0; right: 0; transform: rotate(3deg); }
.art-b { top: 34%; left: 0; transform: rotate(-4deg); width: 66%; }
.art-c { bottom: 0; right: 8%; transform: rotate(1deg); width: 58%; }

/* Ticker */
.ticker { border-block: 1px solid var(--line); background: var(--accent); overflow: hidden; }
.ticker-track { display: flex; gap: 28px; width: max-content; padding: 12px 0; animation: scroll 40s linear infinite; }
.ticker-track span { font-family: var(--display); color: #000; font-size: 20px; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 88px var(--gutter); }
.section-alt { background: var(--bg-2); max-width: none; }
.section-alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 36px; }
.label { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(32px, 4.5vw, 52px); }

/* Games */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.game { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-2); display: flex; flex-direction: column; }
.game-img { aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.game-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.game:hover .game-img img { transform: scale(1.04); }
.game-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-body h3 { font-size: 22px; }
.game-body p:not(.genre) { color: var(--muted); font-size: 15px; }
.genre { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); }
.link { color: var(--accent); font-weight: 700; text-decoration: none; font-size: 15px; margin-top: auto; }
.link:hover { text-decoration: underline; }

/* Catalog */
.catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.cat { border-top: 2px solid var(--accent); padding-top: 18px; }
.cat h3 { font-size: 24px; margin-bottom: 14px; }
.cat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cat li { color: var(--muted); font-size: 15px; }

/* Support cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--line); border-radius: 16px; padding: 26px; text-decoration: none;
  background: var(--bg-2); transition: border-color 0.2s ease, transform 0.2s ease;
}
a.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card h3 { font-size: 24px; }
.card p { color: var(--muted); font-size: 15px; flex: 1; }
.card .link { margin-top: 0; }
.card a.link { display: inline-block; margin-right: 16px; }

/* Contact */
.contact { padding-top: 40px; }
.contact-box {
  border-radius: 24px; padding: clamp(32px, 6vw, 64px);
  background: radial-gradient(circle at 85% 20%, rgba(255, 90, 54, 0.35), transparent 60%), var(--bg-2);
  border: 1px solid var(--line);
}
.contact-box h2 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 14px; }
.contact-box p { color: var(--muted); margin-bottom: 26px; }

/* Footer */
.foot {
  max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 56px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.brand-sm { font-family: var(--display); font-size: 18px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot a:hover { color: var(--ink); }
.copy { color: var(--muted); font-size: 13px; width: 100%; }

/* Phone */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-art { aspect-ratio: 4 / 3; max-width: 560px; }
  .section { padding: 64px var(--gutter); }
}
@media (max-width: 560px) {
  .nav a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 7px 12px; font-size: 13px; }
  .card a.link { display: block; margin: 0 0 6px; }
}
