/* ============================================================
 * l89 login - mobile-first stylesheet (basefiles)
 * All custom classes and CSS variables use the "s4d2-" prefix.
 * Canvas: 320-430px phone viewports. Wide screens center the
 * phone canvas; no desktop layout is provided.
 * ============================================================ */

:root {
  --s4d2-bg: #141414;
  --s4d2-bg-2: #2F2F2F;
  --s4d2-bg-3: #3C3C3C;
  --s4d2-bg-4: #1c1c1c;
  --s4d2-line: #3C3C3C;
  --s4d2-ink: #f4f4f4;
  --s4d2-ink-2: #cfcfcf;
  --s4d2-muted: #808080;
  --s4d2-accent: #34495E;
  --s4d2-accent-2: #4a6481;
  --s4d2-gold: #d8b46a;
  --s4d2-red: #b04141;
  --s4d2-green: #4f8a5c;
  --s4d2-radius: 14px;
  --s4d2-radius-lg: 22px;
  --s4d2-header-h: 60px;
  --s4d2-bottomnav-h: 70px;
  --s4d2-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  --s4d2-shadow-soft: 0 6px 14px rgba(0, 0, 0, 0.32);
  --s4d2-font: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--s4d2-bg);
  color: var(--s4d2-ink);
  font-family: var(--s4d2-font);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--s4d2-gold);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

button {
  font-family: inherit;
}

.s4d2-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Phone canvas frame ---------------------------------- */
.s4d2-stage {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--s4d2-bg);
  position: relative;
  min-height: 100vh;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
}

@media (min-width: 431px) {
  body {
    background: #0a0a0a;
  }
}

/* ============================================================
 * Top asymmetric brand header
 * ============================================================ */
.s4d2-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.98), rgba(20, 20, 20, 0.92));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--s4d2-line);
}

.s4d2-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.s4d2-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(216, 180, 106, 0.5), var(--s4d2-shadow-soft);
  flex: 0 0 auto;
}

.s4d2-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.s4d2-brand-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #fff;
  white-space: nowrap;
}

.s4d2-brand-sub {
  font-size: 10.5px;
  color: var(--s4d2-gold);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.s4d2-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.s4d2-btn {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13.5px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none;
}

.s4d2-btn:hover {
  text-decoration: none;
}

.s4d2-btn--ghost {
  background: transparent;
  color: var(--s4d2-ink);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.s4d2-btn--ghost:hover {
  border-color: var(--s4d2-gold);
  color: var(--s4d2-gold);
}

.s4d2-btn--primary {
  background: linear-gradient(135deg, var(--s4d2-gold), #b98d3f);
  color: #1a1207;
  box-shadow: var(--s4d2-shadow-soft);
}

.s4d2-btn--primary:hover {
  color: #1a1207;
  transform: translateY(-1px);
}

.s4d2-btn--block {
  width: 100%;
}

.s4d2-iconbtn {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--s4d2-ink);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.s4d2-iconbtn:hover,
.s4d2-iconbtn:focus {
  background: rgba(216, 180, 106, 0.12);
  color: var(--s4d2-gold);
}

.s4d2-iconbtn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ============================================================
 * Slide-up route panel (expanded menu)
 * ============================================================ */
.s4d2-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 80;
}

.s4d2-scrim--show {
  opacity: 1;
  pointer-events: auto;
}

.s4d2-menu-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  max-width: 430px;
  margin: 0 auto;
  background: var(--s4d2-bg-2);
  border-top: 2px solid var(--s4d2-gold);
  border-radius: 22px 22px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform 0.32s cubic-bezier(0.2, 0.85, 0.25, 1);
  z-index: 90;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.55);
  max-height: 80vh;
  overflow-y: auto;
}

.s4d2-menu-panel.s4d2-menu--open {
  transform: translateY(0);
}

.s4d2-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.s4d2-menu-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.s4d2-menu-title::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--s4d2-gold);
  border-radius: 4px;
}

.s4d2-menu-close {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--s4d2-ink);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.s4d2-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.s4d2-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--s4d2-bg-4);
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--s4d2-ink);
  font-size: 13.5px;
  font-weight: 600;
  min-height: 48px;
}

.s4d2-menu-link:hover {
  text-decoration: none;
  background: var(--s4d2-bg-3);
  border-color: rgba(216, 180, 106, 0.5);
  color: var(--s4d2-gold);
}

.s4d2-menu-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.s4d2-menu-link--promo {
  background: linear-gradient(135deg, rgba(216, 180, 106, 0.18), rgba(216, 180, 106, 0.04));
  border-color: rgba(216, 180, 106, 0.45);
  color: var(--s4d2-gold);
}

.s4d2-menu-foot {
  margin-top: 14px;
  text-align: center;
  font-size: 11.5px;
  color: var(--s4d2-muted);
}

/* ============================================================
 * Main content shell
 * ============================================================ */
.s4d2-main {
  padding-bottom: calc(var(--s4d2-bottomnav-h) + 24px);
}

.s4d2-section {
  padding: 22px 14px 4px;
}

.s4d2-section--tight {
  padding-top: 12px;
}

.s4d2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--s4d2-gold);
  margin: 0 0 6px;
  font-weight: 700;
}

.s4d2-h1 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.28;
  color: #fff;
  font-weight: 800;
}

.s4d2-h2 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
}

.s4d2-h2::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: var(--s4d2-gold);
}

.s4d2-h3 {
  margin: 14px 0 6px;
  font-size: 15.5px;
  color: var(--s4d2-gold);
  font-weight: 700;
}

.s4d2-lede {
  margin: 0 0 14px;
  color: var(--s4d2-ink-2);
  font-size: 14.5px;
}

.s4d2-p {
  margin: 0 0 12px;
  color: var(--s4d2-ink-2);
}

/* ============================================================
 * Hero carousel
 * ============================================================ */
.s4d2-hero {
  position: relative;
  margin: 12px 14px 0;
  border-radius: var(--s4d2-radius-lg);
  overflow: hidden;
  background: #0c0c0c;
  box-shadow: var(--s4d2-shadow);
}

.s4d2-hero-track {
  position: relative;
}

.s4d2-hero-slide {
  position: relative;
  display: none;
  cursor: pointer;
}

.s4d2-hero-slide.s4d2-hero-slide--active {
  display: block;
}

.s4d2-hero-slide img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  filter: brightness(0.92);
}

.s4d2-hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 16px 16px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0), rgba(20, 20, 20, 0.88));
}

.s4d2-hero-tag {
  display: inline-block;
  background: rgba(216, 180, 106, 0.85);
  color: #1a1207;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 11px;
  letter-spacing: 0.6px;
  margin-bottom: 7px;
}

.s4d2-hero-title {
  margin: 0 0 4px;
  font-size: 19px;
  color: #fff;
  font-weight: 800;
}

.s4d2-hero-sub {
  margin: 0;
  font-size: 12.5px;
  color: var(--s4d2-ink-2);
}

.s4d2-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.s4d2-hero-arrow:hover {
  background: rgba(216, 180, 106, 0.85);
  color: #1a1207;
}

.s4d2-hero-prev {
  left: 8px;
}

.s4d2-hero-next {
  right: 8px;
}

.s4d2-hero-dots {
  position: absolute;
  bottom: 9px;
  right: 12px;
  display: flex;
  gap: 5px;
  z-index: 6;
}

.s4d2-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
  border: 0;
  padding: 0;
}

.s4d2-hero-dot--active {
  background: var(--s4d2-gold);
  width: 18px;
  border-radius: 4px;
}

/* Quick CTA row */
.s4d2-quickrow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 14px 0;
}

.s4d2-quickcard {
  background: var(--s4d2-bg-2);
  border-radius: var(--s4d2-radius);
  padding: 12px 8px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.s4d2-quickcard:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 180, 106, 0.5);
}

.s4d2-quickcard svg {
  width: 24px;
  height: 24px;
  margin: 0 auto 6px;
  fill: var(--s4d2-gold);
}

.s4d2-quickcard-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}

.s4d2-quickcard-sub {
  font-size: 10.5px;
  color: var(--s4d2-muted);
  margin-top: 2px;
}

/* ============================================================
 * Game sections and grid
 * ============================================================ */
.s4d2-cat {
  margin-top: 22px;
}

.s4d2-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  margin-bottom: 10px;
}

.s4d2-cat-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.s4d2-cat-badge {
  font-size: 10.5px;
  background: var(--s4d2-accent);
  color: #fff;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.s4d2-cat-link {
  font-size: 12px;
  color: var(--s4d2-gold);
  font-weight: 600;
}

.s4d2-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 12px;
}

@media (min-width: 375px) {
  .s4d2-grid {
    gap: 10px;
  }
}

@media (min-width: 395px) {
  .s4d2-grid.s4d2-grid--fluid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.s4d2-game {
  background: var(--s4d2-bg-2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--s4d2-radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease;
  display: block;
  color: var(--s4d2-ink);
  text-align: center;
}

.s4d2-game:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(216, 180, 106, 0.55);
}

.s4d2-game-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0c0c0c;
  overflow: hidden;
}

.s4d2-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s4d2-game-tag {
  position: absolute;
  top: 5px;
  left: 5px;
  background: rgba(176, 65, 65, 0.92);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.4px;
}

.s4d2-game-tag--hot {
  background: linear-gradient(135deg, #d8b46a, #b98d3f);
  color: #1a1207;
}

.s4d2-game-name {
  font-size: 11px;
  line-height: 1.25;
  color: var(--s4d2-ink-2);
  padding: 5px 5px 7px;
  font-weight: 600;
  min-height: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
 * Info / highlights blocks
 * ============================================================ */
.s4d2-card {
  background: var(--s4d2-bg-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--s4d2-radius);
  padding: 14px;
  margin: 0 14px 12px;
}

.s4d2-card-title {
  margin: 0 0 8px;
  font-size: 15px;
  color: #fff;
  font-weight: 700;
}

.s4d2-card-text {
  margin: 0;
  font-size: 13.5px;
  color: var(--s4d2-ink-2);
}

.s4d2-card-text a {
  color: var(--s4d2-gold);
  font-weight: 600;
}

.s4d2-pillrow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 14px 0;
}

.s4d2-pill {
  background: var(--s4d2-bg-2);
  color: var(--s4d2-ink-2);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.s4d2-pill--gold {
  background: rgba(216, 180, 106, 0.14);
  color: var(--s4d2-gold);
  border-color: rgba(216, 180, 106, 0.35);
}

/* Feature grid 2x2 */
.s4d2-featgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 14px;
}

.s4d2-feat {
  background: var(--s4d2-bg-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--s4d2-radius);
  padding: 14px 12px;
  text-align: left;
}

.s4d2-feat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(216, 180, 106, 0.14);
  color: var(--s4d2-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.s4d2-feat-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.s4d2-feat-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.s4d2-feat-text {
  font-size: 12px;
  color: var(--s4d2-muted);
  margin: 0;
}

/* Steps list */
.s4d2-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 4px 14px 0;
}

.s4d2-steps li {
  position: relative;
  padding: 10px 12px 10px 44px;
  background: var(--s4d2-bg-2);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
  counter-increment: step;
  font-size: 13px;
  color: var(--s4d2-ink-2);
}

.s4d2-steps li::before {
  content: counter(step);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--s4d2-gold), #b98d3f);
  color: #1a1207;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.s4d2-steps li strong {
  color: #fff;
}

/* ============================================================
 * Extended footer (homepage only)
 * ============================================================ */
.s4d2-extend {
  margin: 22px 14px 4px;
  background: linear-gradient(180deg, var(--s4d2-bg-2), var(--s4d2-bg-4));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--s4d2-radius-lg);
  padding: 16px;
}

.s4d2-extend-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.s4d2-extend-title::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--s4d2-gold);
  border-radius: 4px;
}

.s4d2-dirgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.s4d2-dirlink {
  display: flex;
  flex-direction: column;
  background: var(--s4d2-bg-3);
  border-radius: 12px;
  padding: 10px 11px;
  color: var(--s4d2-ink);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
  font-weight: 600;
  min-height: 56px;
}

.s4d2-dirlink:hover {
  text-decoration: none;
  border-color: rgba(216, 180, 106, 0.45);
  color: var(--s4d2-gold);
}

.s4d2-dirlink small {
  display: block;
  color: var(--s4d2-muted);
  font-size: 10.5px;
  margin-top: 3px;
  font-weight: 500;
}

.s4d2-promowall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.s4d2-promo {
  background: linear-gradient(135deg, rgba(216, 180, 106, 0.16), rgba(216, 180, 106, 0.03));
  border: 1px solid rgba(216, 180, 106, 0.35);
  border-radius: 12px;
  padding: 11px 10px;
  color: var(--s4d2-gold);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.s4d2-promo:hover {
  text-decoration: none;
  background: linear-gradient(135deg, rgba(216, 180, 106, 0.28), rgba(216, 180, 106, 0.08));
  color: #fff;
}

.s4d2-promo svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.s4d2-disclaimer {
  background: rgba(52, 73, 94, 0.18);
  border-left: 3px solid var(--s4d2-accent);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  color: var(--s4d2-ink-2);
  line-height: 1.55;
}

.s4d2-brandcard {
  background: var(--s4d2-bg-3);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.s4d2-brandcard-logo {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  object-fit: cover;
  flex: 0 0 auto;
}

.s4d2-brandcard-text {
  font-size: 12.5px;
  color: var(--s4d2-ink-2);
}

.s4d2-brandcard-text strong {
  color: #fff;
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

/* ============================================================
 * Footer
 * ============================================================ */
.s4d2-footer {
  padding: 18px 14px calc(20px + env(safe-area-inset-bottom));
  text-align: center;
  border-top: 1px solid var(--s4d2-line);
  background: var(--s4d2-bg-4);
  margin-top: 16px;
}

.s4d2-foot-copy {
  font-size: 11.5px;
  color: var(--s4d2-muted);
  margin: 0;
}

.s4d2-foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.s4d2-foot-links a {
  font-size: 11.5px;
  color: var(--s4d2-ink-2);
}

.s4d2-foot-links a:hover {
  color: var(--s4d2-gold);
}

/* ============================================================
 * Bottom navigation - center raised rail with morphing icons
 * ============================================================ */
.s4d2-bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  max-width: 430px;
  margin: 0 auto;
  height: var(--s4d2-bottomnav-h);
  background: linear-gradient(180deg, rgba(31, 31, 31, 0.97), rgba(15, 15, 15, 0.99));
  border-top: 1px solid var(--s4d2-line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.5);
}

.s4d2-navbtn {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--s4d2-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px 6px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  height: var(--s4d2-bottomnav-h);
  transition: color 0.18s ease;
}

.s4d2-navbtn:hover {
  text-decoration: none;
  color: var(--s4d2-ink);
}

.s4d2-navbtn-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.22s ease, transform 0.22s ease;
}

.s4d2-navbtn-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.22s ease;
}

.s4d2-navbtn-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Active state: background support block + icon morph */
.s4d2-navbtn--active {
  color: var(--s4d2-gold);
}

.s4d2-navbtn--active .s4d2-navbtn-icon {
  background: rgba(216, 180, 106, 0.16);
  transform: translateY(-3px) scale(1.08);
}

.s4d2-navbtn--active .s4d2-navbtn-icon svg {
  transform: scale(1.08);
}

/* Center raised promo button */
.s4d2-navbtn--raised {
  position: relative;
}

.s4d2-navbtn--raised .s4d2-navbtn-icon {
  position: absolute;
  top: -18px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--s4d2-gold), #b98d3f);
  color: #1a1207;
  border: 3px solid var(--s4d2-bg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.s4d2-navbtn--raised .s4d2-navbtn-icon svg {
  width: 24px;
  height: 24px;
}

.s4d2-navbtn--raised .s4d2-navbtn-label {
  margin-top: 32px;
  color: var(--s4d2-gold);
  font-weight: 700;
}

.s4d2-navbtn--raised:hover .s4d2-navbtn-icon {
  transform: translateY(-4px) scale(1.05);
}

/* ============================================================
 * Reveal animation (progressive enhancement)
 * ============================================================ */
.s4d2-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.s4d2-reveal--in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .s4d2-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .s4d2-menu-panel {
    transition: none;
  }
  .s4d2-hero-slide img {
    filter: none;
  }
}

/* High-contrast focus outlines for keyboard users */
.s4d2-btn:focus-visible,
.s4d2-iconbtn:focus-visible,
.s4d2-navbtn:focus-visible,
.s4d2-menu-link:focus-visible,
.s4d2-game:focus-visible,
.s4d2-hero-arrow:focus-visible {
  outline: 2px solid var(--s4d2-gold);
  outline-offset: 2px;
}
