:root {
  color-scheme: dark;
  --bg: #06100e;
  --bg-deep: #03080b;
  --surface: rgba(9, 27, 25, .86);
  --surface-strong: rgba(12, 38, 34, .94);
  --line: rgba(255, 231, 142, .22);
  --line-soft: rgba(255, 255, 255, .12);
  --ink: #fff8de;
  --muted: #b8c7bd;
  --gold: #ffd75e;
  --gold-deep: #b66c17;
  --emerald: #28e59d;
  --cyan: #42c7e8;
  --ruby: #ff526d;
  --shadow: rgba(0, 0, 0, .44);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #071511 0%, #03080b 42%, #06100e 100%);
}

body::selection {
  color: #130a00;
  background: rgba(255, 215, 94, .9);
}

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

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

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
dl,
dd,
p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(3, 8, 11, .82);
  backdrop-filter: blur(18px);
}

.nav-shell,
.content-shell,
.hero-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img,
.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 0 0 1px rgba(255, 215, 94, .22), 0 12px 30px rgba(0, 0, 0, .35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a,
.text-link,
.footer-links a {
  transition: color .18s ease;
}

.nav-links a:hover,
.text-link:hover,
.footer-links a:hover {
  color: var(--gold);
}

.nav-action,
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.nav-action {
  padding: 0 17px;
  color: #190d00;
  background: linear-gradient(180deg, #fff2ad, var(--gold) 45%, var(--gold-deep));
  box-shadow: inset 0 -2px 0 rgba(79, 42, 0, .35), 0 14px 30px rgba(255, 186, 35, .2);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 148px);
  background:
    linear-gradient(90deg, rgba(3, 8, 8, .96) 0%, rgba(3, 8, 8, .78) 42%, rgba(3, 8, 8, .28) 100%),
    url("/assets/bg-hall.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(3, 8, 11, .94)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 150px);
}

.hero-shell {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - 148px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, .78fr);
  align-items: center;
  gap: 54px;
  padding: 58px 0 70px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  color: #fff4b8;
  font-size: clamp(58px, 10vw, 130px);
  line-height: .88;
  letter-spacing: 0;
  text-shadow: 0 8px 0 rgba(0, 0, 0, .32), 0 0 34px rgba(255, 215, 94, .24);
}

h2 {
  max-width: 860px;
  font-size: clamp(32px, 4.9vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 22px;
  line-height: 1.15;
}

.lead {
  max-width: 650px;
  margin-top: 24px;
  color: #d5e2d7;
  font-size: 18px;
  line-height: 1.64;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  min-width: 168px;
  padding: 0 22px;
  border: 1px solid var(--line-soft);
}

.button.primary {
  color: #190d00;
  border-color: transparent;
  background: linear-gradient(180deg, #fff5bb, var(--gold) 42%, #c57617);
  box-shadow: inset 0 -2px 0 rgba(79, 42, 0, .35), 0 18px 38px rgba(255, 186, 35, .24);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, .08);
}

.release-strip {
  width: min(660px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 38px;
}

.release-strip div {
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 18, 17, .68);
}

.release-strip strong {
  display: block;
  color: var(--gold);
  font-size: 30px;
  line-height: 1;
}

.release-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.phone-preview {
  justify-self: end;
  width: min(420px, 100%);
  min-height: 610px;
  padding: 18px;
  border: 1px solid rgba(255, 215, 94, .38);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 215, 94, .1), rgba(40, 229, 157, .08)),
    url("/assets/bg-login.png") center / cover no-repeat;
  box-shadow: 0 40px 92px var(--shadow), inset 0 0 0 8px rgba(0, 0, 0, .2);
  overflow: hidden;
}

.phone-top {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(1, 12, 12, .7);
}

.phone-top img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.phone-top strong,
.phone-top span {
  display: block;
}

.phone-top span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.phone-top b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
}

.phone-top b img {
  width: 22px;
  height: 22px;
}

.jackpot-marquee {
  margin: 22px 0 14px;
  padding: 17px;
  border: 1px solid rgba(255, 215, 94, .34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(122, 36, 49, .82), rgba(14, 74, 58, .76)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 14px);
}

.jackpot-marquee span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.jackpot-marquee strong {
  display: block;
  margin-top: 7px;
  color: var(--gold);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1;
}

.featured-reels,
.mini-lobby {
  display: grid;
  gap: 12px;
}

.featured-reels {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 13px;
}

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

.featured-reels img,
.mini-lobby img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(0, 0, 0, .24);
}

.content-shell {
  padding: 82px 0;
}

.download-band {
  border-top: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, #03080b, #071410),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 120px);
}

.download-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 38px;
  align-items: start;
}

.download-copy p,
.platform-copy p,
.fair-layout p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.download-copy p {
  max-width: 520px;
  margin-top: 22px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.download-card,
.game-card,
.feature-card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 52px rgba(0, 0, 0, .18);
}

.download-card {
  min-height: 238px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
}

.download-card.primary-download {
  border-color: rgba(255, 215, 94, .42);
  background: linear-gradient(180deg, rgba(30, 68, 47, .95), rgba(13, 35, 31, .92));
}

.download-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.download-card h3 {
  margin-top: 12px;
}

.download-card p {
  flex: 1;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.download-card .button {
  width: 100%;
  min-width: 0;
  margin-top: 18px;
}

.release-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr .9fr 1fr 2.4fr;
  gap: 10px;
}

.release-meta div {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
}

.release-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.release-meta dd {
  margin-top: 8px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.games-band {
  border-top: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(7, 20, 16, .96), rgba(3, 8, 11, .98)),
    url("/assets/bg-hall.png") center / cover fixed no-repeat;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.text-link {
  color: var(--gold);
  font-weight: 900;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, .07);
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  color: #170c00;
  border-color: transparent;
  background: var(--gold);
}

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

.feature-card {
  min-height: 180px;
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: linear-gradient(135deg, rgba(105, 31, 45, .84), rgba(9, 54, 46, .88));
}

.feature-card img {
  width: 116px;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 7px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .22);
}

.feature-card span,
.game-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.feature-card strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.15;
}

.feature-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.game-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 94, .58);
  background: var(--surface-strong);
}

.game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 7px;
  background: rgba(0, 0, 0, .22);
}

.game-card strong {
  min-height: 38px;
  display: flex;
  align-items: flex-end;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.2;
}

.game-card span {
  display: block;
  margin-top: 6px;
}

.platform-band {
  border-top: 1px solid var(--line-soft);
  background:
    linear-gradient(135deg, #04090d 0%, #081f18 48%, #120d13 100%);
}

.platform-layout {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 54px;
  align-items: center;
}

.asset-stage {
  min-height: 340px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 215, 94, .28);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 215, 94, .11), rgba(40, 229, 157, .08)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 18px);
}

.asset-stage img {
  width: min(350px, 80%);
  object-fit: contain;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, .5));
}

.platform-copy p {
  max-width: 640px;
  margin-top: 22px;
}

.platform-points {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.platform-points div {
  display: grid;
  grid-template-columns: minmax(150px, .38fr) 1fr;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line-soft);
}

.platform-points strong {
  color: var(--gold);
}

.platform-points span {
  color: var(--muted);
  line-height: 1.5;
}

.fair-band {
  border-top: 1px solid var(--line-soft);
  background: #03080b;
}

.fair-layout {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 42px;
  align-items: start;
}

footer {
  border-top: 1px solid var(--line-soft);
  background: #020507;
}

.footer-shell {
  min-height: 92px;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 1120px) {
  .hero-shell,
  .download-layout,
  .platform-layout,
  .fair-layout {
    grid-template-columns: 1fr;
  }

  .phone-preview {
    justify-self: start;
  }

  .download-grid,
  .featured-games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .brand span {
    display: none;
  }

  .nav-shell,
  .content-shell,
  .hero-shell {
    width: min(100% - 22px, 1200px);
  }

  .nav-shell {
    justify-content: flex-start;
    gap: 12px;
  }

  .nav-action {
    min-width: 0;
    max-width: 230px;
    margin-left: 0;
    padding: 0 14px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: auto;
  }

  .hero-shell {
    min-height: auto;
    gap: 34px;
    padding: 44px 0 54px;
  }

  .hero-actions {
    display: grid;
    max-width: 320px;
  }

  .hero-actions .button {
    width: 100%;
  }

  h1 {
    font-size: clamp(52px, 18vw, 86px);
  }

  h2 {
    font-size: clamp(30px, 10vw, 46px);
  }

  .release-strip,
  .download-grid,
  .featured-games,
  .release-meta {
    grid-template-columns: 1fr;
  }

  .phone-preview {
    min-height: 540px;
    border-radius: 20px;
  }

  .content-shell {
    padding: 62px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .feature-card {
    grid-template-columns: 96px 1fr;
    min-height: 150px;
  }

  .feature-card img {
    width: 96px;
  }

  .platform-points div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .brand img,
  .footer-brand img {
    width: 44px;
    height: 44px;
  }

  .nav-action {
    min-height: 42px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero-actions,
  .download-card .button {
    display: grid;
  }

  .button {
    width: 100%;
    min-width: 0;
  }

  .phone-top {
    grid-template-columns: 48px 1fr;
  }

  .phone-top b {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .game-card {
    min-height: 168px;
  }
}
