:root {
  --bg: #070709;
  --panel: #111216;
  --panel-2: #17181d;
  --line: rgba(255, 255, 255, 0.08);
  --red: #b91c1c;
  --red-hot: #dc2626;
  --gold: #fcbb00;
  --gold-soft: #fee685;
  --text: #f4f4f5;
  --muted: #9ca3af;
  --wrap: 1240px;
  --rail: 196px;
  --font: "Outfit", "Segoe UI", sans-serif;
  --dock: 62px;
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(700px 380px at 12% -8%, rgba(185, 28, 28, 0.22), transparent 55%),
    radial-gradient(560px 320px at 92% 12%, rgba(252, 187, 0, 0.07), transparent 50%),
    #070709;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom, 0px));
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 0.85rem; }
h1, h2, h3 { margin: 0 0 0.5rem; letter-spacing: -0.03em; line-height: 1.15; }

.wrap { width: min(100% - 1.5rem, var(--wrap)); margin-inline: auto; }

/* —— chrome header —— */
.chrome {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7, 7, 9, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.chrome__inner {
  width: min(100% - 1.25rem, var(--wrap));
  margin-inline: auto;
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0;
  padding-top: max(0.55rem, env(safe-area-inset-top));
}
.chrome__brand img { height: 34px; width: auto; }
.chrome__search {
  justify-self: center;
  width: min(420px, 100%);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.88rem;
}
.chrome__actions { display: flex; align-items: center; gap: 0.45rem; }
.chrome__menu {
  display: none;
  width: 42px; height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 9px 8px;
}
.chrome__menu span {
  display: block; height: 2px; margin: 5px 0;
  background: var(--text);
}

.kk-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0.5rem 1.1rem;
  border-radius: 10px;
  font-weight: 800; font-size: 0.86rem;
  border: 0; cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.kk-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.kk-btn--red {
  background: linear-gradient(135deg, var(--red-hot), var(--red));
  color: #fff;
  box-shadow: 0 8px 22px rgba(185, 28, 28, 0.35);
}
.kk-btn--gold {
  background: linear-gradient(135deg, var(--gold), #e8a400);
  color: #1a1200;
}
.kk-btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
}
.kk-btn--lg { min-height: 48px; padding: 0.75rem 1.4rem; font-size: 0.95rem; }

/* —— lede —— */
.lede {
  padding: 1.35rem 0 1rem;
  max-width: 72ch;
}
.lede__tag {
  display: inline-flex;
  margin: 0 0 0.7rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(185, 28, 28, 0.16);
  border: 1px solid rgba(185, 28, 28, 0.35);
  color: #fca5a5;
  font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.lede h1 {
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  margin-bottom: 0.7rem;
}
.lede h1 em {
  font-style: normal;
  color: var(--gold-soft);
}
.lede > p { color: var(--muted); }
.lede__row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.95rem; }

/* —— lobby shell —— */
.lobby {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  gap: 0.9rem;
  align-items: start;
  margin-bottom: 1.6rem;
}

.rail {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 0.65rem;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  max-height: calc(100vh - 100px);
  overflow: auto;
}
.rail__lab {
  margin: 0 0.55rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.rail__i {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  font-weight: 700; font-size: 0.9rem;
  color: var(--muted);
}
.rail__i img {
  width: 28px; height: 28px;
  object-fit: cover;
  border-radius: 8px;
}
.rail__i:hover, .rail__i.on {
  background: rgba(185, 28, 28, 0.18);
  color: var(--text);
}
.rail__i--cta {
  margin-top: 0.55rem;
  justify-content: center;
  background: linear-gradient(135deg, var(--red-hot), var(--red));
  color: #fff !important;
}

.stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(23, 24, 29, 0.95), rgba(12, 12, 15, 0.98));
  border: 1px solid var(--line);
}

/* hero full-bleed */
.hero-strip {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: #0a0a0c;
}
.hero-strip img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-strip__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.2rem 1.25rem 1.15rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88) 55%);
}
.hero-strip__cap span {
  display: inline-block;
  margin-bottom: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(252, 187, 0, 0.18);
  color: var(--gold-soft);
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.hero-strip__cap strong {
  display: block;
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
}
.hero-strip__cap em {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
}

/* mosaic — rearranged banners */
.promo-mosaic {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr 1.15fr;
  grid-template-rows: 150px 150px;
  gap: 0.65rem;
}
.promo-mosaic > a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.promo-mosaic img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform .35s ease, opacity .25s ease;
}
.promo-mosaic > a:hover img { transform: scale(1.05); opacity: 0.7; }
.promo-mosaic > a > div {
  position: relative; z-index: 1;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0.85rem 0.95rem;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.82));
}
.promo-mosaic span {
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-soft);
}
.promo-mosaic strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.05rem;
}
.promo-mosaic p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.promo-mosaic__wide {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.promo-mosaic__tall {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.promo-mosaic__mid {
  grid-column: 3;
  grid-row: 1;
}
.promo-mosaic__mid--live { grid-row: 2; }

/* locker / game grid */
.locker {
  padding: 0.35rem 0.15rem 0.15rem;
}
.locker__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 0.65rem;
}
.locker__head h2 { font-size: 1.25rem; }
.locker__head a { color: var(--gold); font-weight: 700; font-size: 0.88rem; }

.chips {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.chips button {
  min-height: 34px; padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 750; font-size: 0.8rem;
  cursor: pointer;
}
.chips button.on {
  color: #fff;
  background: rgba(185, 28, 28, 0.35);
  border-color: rgba(185, 28, 28, 0.65);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.55rem;
}
.tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-2);
  aspect-ratio: 3 / 4;
  transition: transform .15s ease, border-color .15s ease;
}
.tile:hover {
  transform: translateY(-2px);
  border-color: rgba(252, 187, 0, 0.4);
}
.tile.is-hidden { display: none; }
.tile > img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.tile__badge {
  position: absolute; top: 0.45rem; left: 0.45rem;
  z-index: 2;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.tile__badge--hot { color: #fecaca; border-color: rgba(185, 28, 28, 0.55); }
.tile__badge--new { color: var(--gold-soft); border-color: rgba(252, 187, 0, 0.45); }
.tile__badge--live { color: #86efac; border-color: rgba(34, 197, 94, 0.45); }
.tile__meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 0.55rem 0.55rem 0.6rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.92));
}
.tile__meta strong { display: block; font-size: 0.78rem; }
.tile__meta em { font-style: normal; color: var(--muted); font-size: 0.68rem; }
.tile--logo {
  display: flex; flex-direction: column;
  background:
    radial-gradient(circle at 50% 35%, rgba(185, 28, 28, 0.22), transparent 60%),
    #121216;
}
.tile__logo {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.tile__logo img {
  width: 78%; height: auto;
  object-fit: contain;
  filter: brightness(1.08);
}
.tile--logo .tile__meta { position: relative; background: rgba(0, 0, 0, 0.35); }

.prov-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.45rem;
  padding-top: 0.25rem;
}
.prov-strip a {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px;
  padding: 0.45rem;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.prov-strip img {
  max-height: 22px; width: auto; max-width: 100%;
  object-fit: contain;
  filter: brightness(1.1);
}

/* —— article / SEO —— */
.article {
  padding: 1.35rem 0 0.35rem;
}
.article__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 0.55rem;
}
.article__head h2 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); }
.article__head a { color: var(--gold); font-weight: 700; font-size: 0.9rem; }
.article__body { max-width: 78ch; }
.article__body p { color: var(--muted); }
.article__body h3 {
  font-size: 1.05rem;
  margin: 1rem 0 0.4rem;
  color: #fca5a5;
}
.article__body ul {
  padding-left: 1.15rem;
  margin: 0 0 0.85rem;
  color: var(--muted);
}
.article__body li { margin-bottom: 0.3rem; }

.statline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-top: 1rem;
}
.statline div {
  padding: 0.8rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.statline strong {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.statline span { font-size: 0.9rem; }

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 0.45rem;
  padding: 0.1rem 0.9rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  padding: 0.8rem 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: #fca5a5; }
.faq details p { color: var(--muted); padding-bottom: 0.8rem; }
.cta-row { margin-top: 1.1rem; }

/* —— footer / dock —— */
.foot {
  margin-top: 2rem;
  padding: 1.75rem 0 1.25rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
  font-size: 0.88rem;
}
.foot__brand {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.foot__brand img { height: 30px; width: auto; }
.foot nav {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
}
.foot nav a:hover { color: var(--gold); }
.foot__rg {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0.75rem 0;
}
.rg {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 0.3rem 0.7rem;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.rg img { height: 20px; width: auto; }
.rg--plus {
  background: #7f1d1d;
  border-color: transparent;
  color: #fff; font-weight: 800; font-size: 0.8rem;
}

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--dock) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(7, 7, 9, 0.97);
  border-top: 1px solid var(--line);
}
.dock a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.12rem;
  font-size: 0.62rem; font-weight: 700; color: var(--muted);
}
.dock a.on, .dock a:hover { color: var(--gold); }
.dock img { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; }

@media (max-width: 1100px) {
  .tile-grid { grid-template-columns: repeat(4, 1fr); }
  .prov-strip { grid-template-columns: repeat(4, 1fr); }
  .promo-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 160px 140px 140px;
  }
  .promo-mosaic__wide { grid-column: 1; grid-row: 1; }
  .promo-mosaic__tall { grid-column: 2; grid-row: 1; }
  .promo-mosaic__mid { grid-column: 1 / span 2; }
  .promo-mosaic__mid--live { grid-column: 1 / span 2; }
}

@media (max-width: 900px) {
  .lobby { grid-template-columns: 1fr; }
  .rail {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 70;
    width: min(260px, 82vw);
    max-height: none;
    border-radius: 0;
    transform: translateX(-105%);
    transition: transform .25s ease;
  }
  .rail.open { transform: translateX(0); }
  .chrome__menu { display: inline-block; }
  .chrome__search { display: none; }
  .chrome__inner { grid-template-columns: auto 1fr; }
  .dock { display: grid; }
  .statline { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 1rem, var(--wrap)); }
  .hero-strip { aspect-ratio: 16 / 11; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 0.45rem; }
  .prov-strip { grid-template-columns: repeat(3, 1fr); }
  .promo-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .promo-mosaic__wide,
  .promo-mosaic__tall,
  .promo-mosaic__mid,
  .promo-mosaic__mid--live {
    grid-column: 1;
    grid-row: auto;
    min-height: 140px;
  }
  .lede__row { flex-direction: column; }
  .lede__row .kk-btn { width: 100%; }
  .chrome__actions .kk-btn--ghost { display: none; }
  .statline { grid-template-columns: 1fr; }
}
