:root {
  --bg: #071225;
  --bg-2: #0c1b33;
  --panel: rgba(16, 34, 60, 0.84);
  --panel-2: #132a4b;
  --line: rgba(169, 199, 255, 0.18);
  --blue: #218ef5;
  --blue-2: #76c7ff;
  --gold: #ffaa09;
  --text: #f6f9ff;
  --muted: #b6c2d9;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(33, 142, 245, 0.34), transparent 34rem),
    radial-gradient(circle at 12% 92%, rgba(255, 170, 9, 0.16), transparent 32rem),
    linear-gradient(180deg, #081325 0%, #091223 48%, #050b16 100%);
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: rgba(8, 19, 37, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.brand span:last-child,
.side-nav,
.rail-card,
.topbar,
.top-actions,
.hero-actions,
.trust-strip,
.section-head,
.download-actions,
.footer,
.footer div {
  display: flex;
}

.brand {
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: linear-gradient(135deg, #76c7ff, #218ef5 55%, #0b5ead);
  color: white;
  font-weight: 900;
  box-shadow: 0 12px 36px rgba(33, 142, 245, 0.35);
}

.brand span:last-child,
.side-nav,
.rail-card {
  flex-direction: column;
}

.brand strong {
  font-size: 1.32rem;
}

.brand small,
.rail-card small,
.game-card p,
.bonus-section p,
.bonus-list span,
.app-copy p,
.footer p {
  color: var(--muted);
}

.side-nav {
  gap: 8px;
}

.side-nav a {
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  transition: 180ms ease;
}

.side-nav a:hover,
.side-nav a.active {
  border-color: rgba(118, 199, 255, 0.26);
  color: white;
  background: rgba(33, 142, 245, 0.18);
}

.rail-card {
  gap: 6px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.rail-card strong {
  color: var(--blue-2);
  font-size: 2rem;
}

.main {
  min-width: 0;
  padding: 22px clamp(18px, 4vw, 54px) 34px;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 18, 37, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(520px, 100%);
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.top-search input {
  width: 100%;
  height: 42px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.top-actions,
.hero-actions,
.download-actions,
.footer div {
  align-items: center;
  gap: 10px;
}

.primary-btn,
.ghost-btn,
.secondary-btn,
.game-card button,
.quick-grid button,
.download-actions button,
.footer button,
.phone-screen button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(118, 199, 255, 0.28);
  color: white;
}

.primary-btn,
.game-card button,
.phone-screen button {
  padding: 0 18px;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), #146bd0);
  box-shadow: 0 12px 30px rgba(33, 142, 245, 0.28);
}

.primary-btn.large {
  min-height: 52px;
  padding: 0 24px;
  font-weight: 800;
}

.ghost-btn,
.secondary-btn,
.download-actions button,
.footer button {
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: end;
  min-height: 640px;
  margin-top: 22px;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(7, 18, 37, 0.95), rgba(7, 18, 37, 0.55)),
    var(--panel-2);
}

.hero-image,
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  opacity: 0.28;
}

.hero-canvas {
  opacity: 0.9;
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.3rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 690px;
  color: #d8e3f7;
  font-size: 1.08rem;
  line-height: 1.8;
}

.trust-strip {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-strip span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #d8e3f7;
}

.hero-panel {
  padding: 24px;
  border: 1px solid rgba(255, 170, 9, 0.3);
  border-radius: 8px;
  background: rgba(9, 18, 35, 0.78);
  box-shadow: var(--shadow);
}

.panel-label {
  color: var(--muted);
}

.hero-panel strong {
  display: block;
  margin: 8px 0;
  color: var(--gold);
  font-size: 2.4rem;
}

.quick-grid,
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.quick-grid button {
  display: grid;
  gap: 6px;
  min-height: 108px;
  padding: 18px;
  text-align: left;
  background: rgba(19, 42, 75, 0.76);
}

.quick-grid strong {
  color: var(--blue-2);
  font-size: 1.2rem;
}

.quick-grid span {
  color: var(--muted);
}

.section,
.bonus-section,
.app-section,
.footer {
  margin-top: 52px;
}

.section-head {
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.game-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-card,
.bonus-section,
.app-section,
.footer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 34, 60, 0.68);
}

.game-card {
  padding: 24px;
}

.game-card span {
  color: var(--gold);
  font-weight: 900;
}

.game-card h3 {
  margin: 18px 0 10px;
  font-size: 1.45rem;
}

.game-card p {
  min-height: 72px;
  line-height: 1.7;
}

.bonus-section,
.app-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
}

.bonus-section p,
.app-copy p {
  line-height: 1.8;
}

.bonus-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bonus-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.phone {
  width: min(280px, 100%);
  margin: auto;
  padding: 14px;
  border: 1px solid rgba(118, 199, 255, 0.3);
  border-radius: 28px;
  background: #071225;
  box-shadow: var(--shadow);
}

.phone-top {
  width: 76px;
  height: 6px;
  margin: 2px auto 14px;
  border-radius: 999px;
  background: #293548;
}

.phone-screen {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 430px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 170, 9, 0.32), transparent 6rem),
    linear-gradient(180deg, #132a4b, #071225);
}

.phone-screen span {
  color: var(--blue-2);
  font-weight: 900;
  font-size: 2.8rem;
}

.footer {
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .rail {
    position: static;
    height: auto;
  }

  .side-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rail-card {
    display: none;
  }

  .hero,
  .bonus-section,
  .app-section {
    grid-template-columns: 1fr;
  }

  .quick-grid,
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .main {
    padding: 14px;
  }

  .topbar,
  .top-actions,
  .hero-actions,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .side-nav,
  .quick-grid,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 620px;
    padding: 24px;
  }

  .hero h1 {
    font-size: clamp(3rem, 18vw, 4.6rem);
  }
}
