:root {
  --bg: #0d1324;
  --bg-soft: #131b32;
  --bg-card: #1a223f;
  --line: #2a3458;
  --text: #eff2ff;
  --muted: #aeb7da;
  --accent: #c41e3a;
  --gold: #d4af37;
  --wrap: 1240px;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(circle at 80% -20%, #1e2b57 0%, transparent 35%), var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  line-height: 1.56;
}

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

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

.wrap {
  width: min(var(--wrap), calc(100% - 36px));
  margin-inline: auto;
}

.top-header {
  position: relative;
  min-height: 150px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  background: url("./header-bg.webp") center top / cover no-repeat;
}

.top-header .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(8, 11, 26, 0.9), rgba(12, 9, 22, 0.72));
}

.nav-row {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
}

.brand {
  width: fit-content;
}

.brand img {
  width: clamp(170px, 18vw, 240px);
  height: auto;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

nav a {
  font-weight: 600;
  color: #f5f7ff;
}

nav a:hover,
nav a:focus-visible {
  color: var(--gold);
}

.btn-primary,
.btn-secondary,
.slot-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  width: fit-content;
  padding: 10px 24px;
  background: linear-gradient(145deg, #db3452, var(--accent));
}

.btn-primary:hover,
.btn-secondary:hover,
.slot-item a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.33);
}

.lobby {
  padding: 30px 0 24px;
}

.lobby-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.ticker-panel,
.hero-panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.ticker-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 4.1vw, 2.45rem);
  line-height: 1.18;
}

.ticker-panel p {
  margin: 0 0 14px;
  color: var(--muted);
}

.ticker-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.ticker-list p {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #2b355f;
  border-radius: 12px;
  background: #111935;
  font-size: 0.94rem;
}

.ticker-list span {
  color: var(--gold);
  font-weight: 800;
  margin-right: 6px;
}

.btn-secondary {
  padding: 11px 22px;
  background: linear-gradient(145deg, #dd3a58, var(--accent));
}

.hero-panel img {
  width: 100%;
  height: clamp(240px, 34vw, 460px);
  border-radius: 12px;
  object-fit: cover;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.hero-badges span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #33406c;
  background: #121a36;
  font-size: 0.82rem;
  color: #dce4ff;
}

.games-wall {
  padding: 8px 0 30px;
}

.wall-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.wall-head h2,
.wide-content h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.wall-head p {
  margin: 0;
  color: var(--muted);
}

.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.slot-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slot-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.35);
}

.slot-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #101733;
  border-radius: 10px;
}

.slot-item h3 {
  margin: 0;
  font-size: 1rem;
}

.slot-item a {
  width: fit-content;
  padding: 8px 18px;
  background: linear-gradient(145deg, #db3553, var(--accent));
}

.mosaic-grid .slot-item:nth-child(3),
.mosaic-grid .slot-item:nth-child(6) {
  background: linear-gradient(160deg, #1b2547, #192140);
}

.promo-band {
  padding: 4px 18px 22px;
}

.promo-band img {
  width: 100%;
  height: clamp(170px, 22vw, 300px);
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid #2f3a63;
}

.wide-content {
  width: 100%;
  padding: 28px 0 38px;
  background: linear-gradient(180deg, #0f1730, #0d1429);
  border-top: 1px solid #26325b;
  border-bottom: 1px solid #26325b;
}

.wide-content-inner {
  width: calc(100% - 36px);
  margin-inline: auto;
  max-width: none;
}

.wide-content p {
  margin: 14px 0 0;
  color: #b7c0e2;
  max-width: none;
}

.main-footer {
  padding: 18px 0 26px;
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-row p {
  margin: 0;
  color: #8f98bf;
}

@media (min-width: 780px) {
  .mosaic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .nav-row {
    grid-template-columns: auto 1fr auto;
    gap: 20px;
  }

  nav {
    justify-self: center;
  }

  nav ul {
    justify-content: center;
    gap: 22px;
  }

  .btn-primary {
    justify-self: end;
  }

  .lobby-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }

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

  .wide-content-inner {
    width: calc(100% - 70px);
  }
}
