/* Lex Casino – mobile-first locked layout */
:root {
  --bg-a: #070b09;
  --bg-b: #0e1512;
  --bg-c: #151d19;
  --gold: #d8bc72;
  --gold-2: #f0d89a;
  --emerald: #1fa745;
  --emerald-2: #27c455;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.64);
  --muted-2: rgba(255, 255, 255, 0.42);
  --line: rgba(216, 188, 114, 0.24);
  --line-soft: rgba(255, 255, 255, 0.1);
  --radius: 12px;
  --radius-sm: 10px;
  --topbar: 56px;
  --header: var(--topbar);
  --max: 1516px;
  --sidebar: 300px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --card-w: 142px;
  --card-xl-w: 176px;
  --gutter: 16px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-a);
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
}
body.nav-open { overflow: hidden; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1rem; color: var(--muted); }
strong { color: var(--text); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-width: 0;
}

.page {
  padding-top: var(--header);
  width: 100%;
  max-width: 100%;
}

.seo h2,
#popular,
#live,
#instant,
#jackpot,
#neu,
#exklusiv {
  scroll-margin-top: calc(var(--header) + 12px);
}

/* ===== HEADER ===== */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(7, 11, 9, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.topbar__row {
  height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand img {
  width: 68px;
  height: 30px;
  max-width: none;
  object-fit: contain;
}

.top-nav {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 2px;
  min-width: 0;
}
.top-nav a {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
}
.top-nav a:hover {
  color: var(--text);
  background: rgba(216, 188, 114, 0.1);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: var(--bg-c);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}
.menu-btn i,
.menu-btn i::before,
.menu-btn i::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.menu-btn i::before,
.menu-btn i::after { content: ""; position: absolute; left: 0; }
.menu-btn i::before { top: -5px; }
.menu-btn i::after { top: 5px; }

/* Article TOC */
.toc {
  margin: 0 0 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #141c18, #0c1210);
  overflow: hidden;
}
.toc__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: var(--gold-2);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
}
.toc__chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}
.toc.is-open .toc__chev {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.toc__panel {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 10px 12px;
}
.toc__panel[hidden] { display: none !important; }
.toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}
.toc__list li {
  margin: 0;
  counter-increment: toc;
}
.toc__list a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}
.toc__list a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding-top: 2px;
  flex: 0 0 auto;
}
.toc__list a:hover,
.toc__list a.is-active {
  color: var(--text);
  background: rgba(216, 188, 114, 0.1);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header);
  left: 0;
  right: 0;
  z-index: 99;
  background: #0b120e;
  border-bottom: 1px solid var(--line-soft);
  max-height: calc(100vh - var(--header));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px var(--gutter);
  color: var(--text);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  transition: filter 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn--login {
  color: var(--text);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--cta {
  color: #fff !important;
  background: linear-gradient(180deg, var(--emerald-2), var(--emerald));
  box-shadow: 0 4px 12px rgba(31, 167, 69, 0.28);
}
.btn--ghost {
  color: var(--text);
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--gold {
  color: #1a1408 !important;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
}
.btn--lg {
  min-height: 42px;
  padding: 0 14px;
  font-size: 12px;
}
.btn--sm {
  min-height: 30px;
  padding: 0 10px;
  font-size: 10px;
}

/* ===== HERO ===== */
.hero {
  padding: 10px 0 0;
}
.hero__grid {
  display: grid;
  gap: 10px;
}
.hero__main {
  position: relative;
  width: 100%;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  aspect-ratio: auto;
  max-height: none;
}
/* Stable LCP/CLS box: ratio only — no max-height:vh (vh jumps with mobile chrome) */
.hero__main picture {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0c1210;
  contain: layout paint;
}
.hero__main picture img,
.hero__main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}
.hero__overlay {
  position: static;
  padding: 12px 0 0;
  background: none;
  /* reserve CTA row so late paint cannot shift promo grid */
  min-height: 54px;
}
.hero__btns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-height: 42px;
}
.hero__btns .btn { width: 100%; }
.hero-btn--desk { display: none !important; }
.hero-btn--mobile {
  display: inline-flex !important;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  min-height: 42px;
  background: rgba(0, 0, 0, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

/* Promo cards – stable 2x2 on mobile, no free scroll */
.side-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow: visible;
}
.side-card {
  position: relative;
  min-height: 96px;
  height: 96px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #141c18, #0c1210);
  overflow: hidden;
  display: block;
  contain: layout paint;
}
.side-card__copy {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 10px 72px 10px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}
.side-card__title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}
.side-card__img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 72px;
  height: 72px;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.pay-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-top: 10px;
  padding: 2px 0;
  min-height: 34px;
  overscroll-behavior-x: contain;
}
.pay-strip::-webkit-scrollbar { display: none; }
.pay-strip span {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

/* ===== LOBBY / RAILS ===== */
.lobby { padding: 12px 0 4px; }
.lobby__grid {
  display: grid;
  gap: 12px;
  min-width: 0;
  overflow-x: clip;
}
.wrap.lobby__grid {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}
.lobby__main {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.lobby,
.hero,
.seo,
.footer {
  max-width: 100%;
  overflow-x: clip;
}

.rail {
  --rail-pad: 12px;
  position: relative;
  margin: 0 0 12px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(28, 38, 33, 0.55), rgba(14, 21, 18, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 0 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden; /* keep rail chrome aligned with wrap; swipe lives in viewport */
}
.rail::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), transparent 80%);
}
.rail--branded {
  border-color: rgba(216, 188, 114, 0.32);
  background:
    radial-gradient(280px 120px at 100% 0%, rgba(31, 167, 69, 0.14), transparent 60%),
    linear-gradient(180deg, #141c18, #0c1210);
}
.rail__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0 var(--rail-pad);
  min-width: 0;
}
.rail__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rail__icon {
  flex: 0 0 auto;
  min-width: 32px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(216, 188, 114, 0.16);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}
.rail__more {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 6px 10px;
}
.rail__tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex: 0 0 auto;
}
.rail__nav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(0, 0, 0, 0.45);
  color: var(--gold);
  cursor: pointer;
  position: relative;
  padding: 0;
  touch-action: manipulation;
}
.rail__nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-60%, -50%) rotate(-45deg);
}
.rail__nav--prev::before { transform: translate(-30%, -50%) rotate(135deg); }
.rail__nav:disabled { opacity: 0.3; cursor: default; }

.rail__viewport {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-padding-inline: var(--rail-pad);
  scrollbar-width: none;
  cursor: grab;
}
.rail__viewport::-webkit-scrollbar { display: none; }
.rail__viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.rail__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  width: max-content;
  max-width: none;
  min-width: max-content;
  padding: 2px var(--rail-pad) 4px;
  box-sizing: border-box;
}

.game-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #101612;
  border: 1px solid rgba(255, 255, 255, 0.06);
  aspect-ratio: 309 / 207;
  text-decoration: none;
  color: var(--text);
  display: block;
  flex: 0 0 auto;
  flex-shrink: 0;
  width: var(--card-w);
  min-width: var(--card-w);
  max-width: var(--card-w);
  contain: layout paint;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.rail--xl .game-card {
  width: var(--card-xl-w);
  min-width: var(--card-xl-w);
  max-width: var(--card-xl-w);
}
.game-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.game-card__badge {
  position: absolute;
  top: 6px;
  right: 0;
  z-index: 2;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px 0 0 4px;
  background: #fff;
  color: #111;
}
.game-card__badge--live {
  left: 0;
  right: auto;
  border-radius: 0 4px 4px 0;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
}
.game-card__badge--live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #ff003d;
  vertical-align: middle;
}
.game-card__badge--ex {
  left: 0;
  right: auto;
  top: auto;
  bottom: 28px;
  width: auto;
  max-width: 90%;
  transform: none;
  text-align: center;
  background: linear-gradient(92deg, #14341d, #1fa745 40%, #20ca4f 50%, #1fa745 60%, #14341d);
  color: #fff;
  border-radius: 0 6px 6px 0;
  padding: 3px 8px;
}
.game-card__name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 6px 6px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88));
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.sidebox { display: none; }
.sidebox__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.sidebox__text { margin: 0 0 12px; font-size: 14px; }
.jackpot-num {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 800;
  color: var(--gold-2);
}

/* ===== SEO ===== */
.seo {
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.seo h1 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 6vw, 2.1rem);
  line-height: 1.2;
  font-weight: 800;
}
.seo h2 {
  margin: 24px 0 10px;
  font-size: clamp(1.1rem, 4.5vw, 1.4rem);
  color: var(--gold-2);
  font-weight: 800;
}
.seo h3 {
  margin: 16px 0 8px;
  font-size: 1.02rem;
  font-weight: 750;
}
.seo ol,
.seo ul { margin: 0 0 12px; padding-left: 18px; }
.seo ul { list-style: disc; }
.seo li { margin-bottom: 4px; color: var(--muted); }
.seo a { text-decoration: underline; text-underline-offset: 2px; }

.table-wrap {
  overflow-x: auto;
  margin: 0 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  background: var(--bg-b);
  -webkit-overflow-scrolling: touch;
}
.seo table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}
.seo th,
.seo td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}
.seo th {
  background: rgba(216, 188, 114, 0.1);
  color: var(--gold-2);
  white-space: nowrap;
}
.seo td { color: var(--muted); }
.seo tr:last-child td { border-bottom: 0; }

.mid-cta {
  margin: 14px 0;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(31, 167, 69, 0.16), rgba(216, 188, 114, 0.08));
  display: grid;
  gap: 10px;
}
.mid-cta__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.mid-cta__text { margin: 0; font-size: 14px; }
.mid-cta .btn { width: 100%; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--line);
  background: #040705;
  padding: 24px 0 18px;
}
.footer__grid { display: grid; gap: 18px; }
.footer__title {
  margin: 0 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 800;
}
.footer a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  padding: 3px 0;
}
.footer__cta { margin-top: 12px; }
.footer__cta .btn,
.footer .btn {
  display: inline-flex !important;
  width: auto;
  max-width: 100%;
  min-height: 42px;
  padding: 0 18px;
  font-size: 12px;
  color: #fff !important;
}
.footer__note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--muted-2);
}
.age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 6px;
  border: 2px solid #e11d48;
  border-radius: 50%;
  color: #e11d48;
  font-weight: 800;
  font-size: 12px;
  vertical-align: middle;
}

/* ===== >=480px ===== */
@media (min-width: 480px) {
  :root {
    --card-w: 154px;
    --card-xl-w: 190px;
  }
  .side-card {
    height: 104px;
    min-height: 104px;
  }
  .side-card__img {
    width: 84px;
    height: 84px;
  }
  .side-card__copy { padding-right: 86px; }
}

/* ===== >=640px ===== */
@media (min-width: 640px) {
  :root {
    --topbar: 60px;
    --gutter: 20px;
    --card-w: 168px;
    --card-xl-w: 220px;
  }
  .top-actions .btn--login { display: inline-flex; }
  .hero__main picture {
    aspect-ratio: 16 / 5;
  }
  .hero__main picture img {
    object-position: center center;
  }
  .hero__overlay {
    padding: 14px 0 0;
    min-height: 56px;
  }
  .hero__btns {
    display: flex;
    width: auto;
    max-width: 460px;
  }
  .hero__btns .btn { width: auto; }
  .hero-btn--mobile { display: none !important; }
  .hero-btn--desk { display: inline-flex !important; }
  .side-cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .side-card {
    height: 110px;
    min-height: 110px;
  }
  .side-card__img {
    width: 92px;
    height: 92px;
  }
  .side-card__copy { padding-right: 96px; }
  .side-card__title { font-size: 15px; }
  .pay-strip {
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
    background: linear-gradient(180deg, #121816, #0c100e);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 10px;
  }
  .rail__tools {
    display: inline-flex;
    gap: 6px;
    margin-left: auto;
  }
  .mid-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .mid-cta .btn { width: auto; }
  .game-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }
  .game-card::after {
    content: "Spielen";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    transform: translate(-50%, -40%) scale(0.92);
    opacity: 0;
    pointer-events: none;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--emerald-2), var(--emerald));
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    transition: 0.18s ease;
  }
  .game-card:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(216, 188, 114, 0.5);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    z-index: 2;
  }
  .game-card:hover img { filter: brightness(0.7); }
  .game-card:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ===== >=980px ===== */
@media (min-width: 980px) {
  .menu-btn { display: none; }
  .top-nav { display: flex; }
  .lobby__grid {
    grid-template-columns: minmax(0, 1fr) var(--sidebar);
    align-items: start;
    gap: 16px;
  }
  .sidebox {
    display: block;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(160deg, #151d19, #0d1411);
    padding: 16px;
  }
  .sidebox + .sidebox { margin-top: 12px; }
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

/* ===== >=1200px ===== */
@media (min-width: 1200px) {
  :root { --sidebar: 320px; }
  .hero__grid {
    grid-template-columns: 1fr 280px;
    align-items: stretch;
  }
  .side-cards {
    grid-template-columns: 1fr;
    height: 100%;
  }
  .side-card {
    height: auto;
    min-height: 0;
    flex: 1;
  }
}

/* Ultra-narrow phones */
@media (max-width: 480px) {
  .rail__more { display: none; }
}

@media (max-width: 360px) {
  :root {
    --gutter: 14px;
    --card-w: 132px;
    --card-xl-w: 158px;
  }
  .top-actions .btn--login { display: none; }
  .btn--cta {
    font-size: 10px;
    padding: 0 10px;
    min-height: 34px;
  }
  .side-card__title { font-size: 12px; }
  .side-card__img {
    width: 64px;
    height: 64px;
  }
  .side-card__copy { padding-right: 66px; }
}
