@font-face {
  font-family: "Lilita One";
  src: url(assets/fonts/LilitaOne.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url(assets/fonts/Oswald-Bold.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --space: #0a1022;
  --space-2: #1d2f57;
  --card: #111a33;
  --line: #24315a;
  --text: #eef2ff;
  --muted: #a3aecb;
  --orange: #ff7a1f;
  --cyan: #4de1ff;
  --display: "Lilita One", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--space) url(assets/stars.svg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: .5px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(10, 16, 34, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(77, 225, 255, .12);
}
.brand img { height: 40px; width: auto; }
.top nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.top nav a {
  font-family: "Oswald", sans-serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; font-size: 15px; text-decoration: none; color: var(--muted);
}
.top nav a:hover { color: var(--cyan); }

/* hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 8vw, 90px) 20px clamp(60px, 10vw, 120px);
  background: radial-gradient(ellipse at 50% 30%, rgba(29, 47, 87, .95), rgba(10, 16, 34, 0) 70%);
  text-align: center;
}
.orbits { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbits ellipse { fill: none; stroke: var(--cyan); stroke-width: 1.5; opacity: .13; }
.orbits ellipse + ellipse { opacity: .07; }
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero-mark {
  width: min(400px, 82vw); margin: 0 auto 8px;
  filter: drop-shadow(0 18px 40px rgba(255, 122, 31, .25));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-12px) rotate(-1deg); } }
h1 { font-size: clamp(52px, 10vw, 96px); }
h1 span { color: var(--orange); }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 560px; margin: 20px auto 30px; }

.btn {
  display: inline-block;
  font-family: var(--display); font-size: 22px; letter-spacing: .5px;
  color: #1a0b00; background: var(--orange);
  padding: 12px 30px 11px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 6px 0 #b9480b, 0 12px 30px rgba(255, 122, 31, .35);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #b9480b, 0 16px 34px rgba(255, 122, 31, .45); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #b9480b, 0 6px 16px rgba(255, 122, 31, .3); }

/* games */
.games, .about { max-width: 1040px; margin: 0 auto; padding: 40px 20px; }
.games > h2, .about > h2 { font-size: clamp(38px, 6vw, 56px); text-align: center; }
.sub { text-align: center; color: var(--muted); margin: 10px 0 48px; }

.game {
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  background: linear-gradient(160deg, var(--card), rgba(17, 26, 51, .55));
  border: 1px solid var(--line); border-radius: 32px;
  padding: clamp(22px, 4vw, 44px);
  margin-bottom: 36px;
}
.game.flip { grid-template-columns: 1fr 300px; }
.game.flip .phone { order: 2; }
.phone {
  display: block; border-radius: 34px; overflow: hidden;
  border: 9px solid #05070f;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent),
              0 20px 60px color-mix(in srgb, var(--accent) 28%, transparent);
  transform: rotate(-2deg);
  transition: transform .25s;
}
.game.flip .phone { transform: rotate(2deg); }
.game .phone:hover { transform: rotate(0) scale(1.02); }
.title-row { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.game h3 { font-size: clamp(34px, 4.5vw, 46px); }
.genre {
  margin: 4px 0 0; color: var(--accent);
  font-family: "Oswald", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; font-size: 14px;
}
.info > p { color: #d3daf0; margin: 0 0 18px; }
.facts { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li {
  font-size: 14px; padding: 5px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.badge {
  font-family: "Oswald", sans-serif; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 2px; color: var(--muted);
}

.lab {
  display: flex; align-items: center; gap: 22px;
  border: 2px dashed var(--line); border-radius: 28px; padding: 26px 30px;
}
.lab h3 { font-size: 28px; }
.lab p { margin: 4px 0 0; color: var(--muted); }

/* about */
.about { max-width: 720px; text-align: center; padding-bottom: 70px; }
.about p { color: #d3daf0; font-size: 18px; }
.about h2 { margin-bottom: 18px; }

footer {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 26px 20px 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px;
}
footer p { margin: 0; }

@media (max-width: 760px) {
  .game, .game.flip { grid-template-columns: 1fr; text-align: left; }
  .game.flip .phone { order: 0; }
  .phone { width: min(250px, 70vw); margin: 0 auto 6px; }
  .brand img { height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mark { animation: none; }
  .phone, .btn { transition: none; }
}
