/* Mobile-first stylesheet for nbalive.homes with 6-color high-contrast palette. */
:root {
  --frame437ed-bg: #0A0A0A;
  --frame437ed-panel: #171310;
  --frame437ed-panel2: #241912;
  --frame437ed-ink: #FAF0E6;
  --frame437ed-ink2: #E5E5E5;
  --frame437ed-muted: #D2C7BC;
  --frame437ed-accent: #FFBF00;
  --frame437ed-accent2: #FFDA70;
  --frame437ed-warm: #A0522D;
  --frame437ed-brown: #8B4513;
  --frame437ed-line: rgba(255, 191, 0, 0.28);
  --frame437ed-shadow: 0 18px 42px rgba(0, 0, 0, 0.52);
  --frame437ed-header: 72px;
}

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

html {
  scroll-padding-top: 88px;
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-width: 0;
  padding: 0;
  background: var(--frame437ed-bg);
  color: var(--frame437ed-ink);
  font: 400 15px/1.62 'Arial Narrow', 'Roboto Condensed', Arial, sans-serif;
  overflow-x: clip;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a, button, summary {
  -webkit-tap-highlight-color: rgba(255, 191, 0, 0.2);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--frame437ed-accent2);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.frame437ed-skip {
  position: fixed;
  top: 4px;
  left: 50%;
  transform: translate(-50%, -180%);
  z-index: 100;
  padding: 10px 16px;
  border-radius: 4px;
  background: var(--frame437ed-accent);
  color: var(--frame437ed-bg);
  border: 2px solid var(--frame437ed-ink);
  font-weight: 700;
}

.frame437ed-skip:focus {
  transform: translate(-50%, 0);
}

.frame437ed-page {
  width: min(100%, 430px);
  margin: 0 auto;
  min-height: 100vh;
  padding-top: var(--frame437ed-header);
  padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px));
  background: var(--frame437ed-bg);
  box-shadow: var(--frame437ed-shadow);
  overflow-x: clip;
}

/* Tab-bar style fixed top navigation */
.frame437ed-top {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  width: min(100%, 430px);
  height: var(--frame437ed-header);
  padding: 12px 10px;
  background: var(--frame437ed-bg);
  border-bottom: 2px solid var(--frame437ed-accent);
}

.frame437ed-brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 44px;
}

.frame437ed-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex-shrink: 0;
}

.frame437ed-brand img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--frame437ed-accent);
}

.frame437ed-brand strong {
  font: 700 18px/1.1 Impact, 'Arial Narrow', Arial, sans-serif;
  letter-spacing: 0.02em;
  color: var(--frame437ed-ink);
}

.frame437ed-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.frame437ed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 5px;
  border: 1px solid var(--frame437ed-accent);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
  max-width: 100%;
  transition: background-color 0.16s, color 0.16s, border-color 0.16s;
}

.frame437ed-btnprimary {
  background: var(--frame437ed-accent);
  color: #171000;
}

.frame437ed-btnprimary:hover {
  background: var(--frame437ed-accent2);
}

.frame437ed-btnoutline {
  background: transparent;
  color: var(--frame437ed-ink);
}

.frame437ed-btnoutline:hover {
  background: #241912;
  color: var(--frame437ed-accent2);
}

.frame437ed-btn:active {
  background: var(--frame437ed-brown);
  color: var(--frame437ed-ink);
  border-color: var(--frame437ed-warm);
}

.frame437ed-menubtn {
  width: 46px;
  min-width: 44px;
  padding: 0;
  font-size: 11px;
  background: var(--frame437ed-panel);
  color: var(--frame437ed-ink);
}

/* Side-drawer navigation panel */
.frame437ed-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  width: min(320px, calc(100vw - 16px));
  max-height: calc(100dvh - 170px - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px;
  grid-template-columns: 1fr;
  gap: 4px;
  background: var(--frame437ed-panel);
  border-left: 2px solid var(--frame437ed-warm);
  border-bottom: 2px solid var(--frame437ed-accent);
  box-shadow: -12px 16px 32px rgba(0, 0, 0, 0.72);
}

.frame437ed-menu.frame437ed-open {
  display: grid;
}

.frame437ed-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 4px;
  border-bottom: 1px solid var(--frame437ed-line);
  color: var(--frame437ed-ink2);
  font-size: 14px;
  transition: background-color 0.16s, color 0.16s;
}

.frame437ed-menu a:hover,
.frame437ed-menu a[aria-current="page"] {
  background: #2E2116;
  color: var(--frame437ed-accent2);
  border-left: 3px solid var(--frame437ed-accent);
}

/* Breadcrumb & Hero */
.frame437ed-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 12px 14px 0;
  font-size: 12px;
  color: var(--frame437ed-muted);
}

.frame437ed-breadcrumb a {
  color: var(--frame437ed-accent2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.frame437ed-hero {
  padding: 18px 14px 12px;
}

.frame437ed-kicker {
  margin: 0 0 6px;
  color: var(--frame437ed-accent2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.frame437ed-hero h1,
.frame437ed-section h2,
.frame437ed-section h3,
.frame437ed-slidecopy strong {
  font-family: Impact, 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.frame437ed-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 7.4vw, 34px);
  line-height: 1.08;
  color: var(--frame437ed-ink);
}

.frame437ed-lede {
  margin: 0;
  color: var(--frame437ed-ink2);
  font-size: 15px;
}

.frame437ed-heroactions,
.frame437ed-ctagroup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.frame437ed-heroactions .frame437ed-btn,
.frame437ed-ctagroup .frame437ed-btn {
  padding: 10px 8px;
}

/* Carousel */
.frame437ed-carousel {
  position: relative;
  margin: 12px 14px 20px;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--frame437ed-line);
}

.frame437ed-slide {
  display: none;
  position: relative;
  aspect-ratio: 16 / 9;
}

.frame437ed-slide.frame437ed-active {
  display: block;
}

.frame437ed-banner {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--frame437ed-panel);
  text-align: left;
}

.frame437ed-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
}

.frame437ed-slidecopy {
  position: absolute;
  inset: auto 12px 12px;
  max-width: calc(100% - 24px);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.frame437ed-slidecopy strong {
  display: block;
  font-size: 20px;
  line-height: 1.15;
  color: var(--frame437ed-ink);
}

.frame437ed-slidecopy span {
  display: block;
  color: var(--frame437ed-accent2);
  font-size: 12px;
}

.frame437ed-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: var(--frame437ed-panel);
}

.frame437ed-dot {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--frame437ed-muted);
  font-size: 12px;
  font-weight: 700;
}

.frame437ed-dot.frame437ed-active {
  background: #2E2116;
  color: var(--frame437ed-accent2);
  border-bottom-color: var(--frame437ed-accent);
}

.frame437ed-carouselpause {
  min-width: 64px;
  min-height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--frame437ed-line);
  border-radius: 4px;
  font-size: 12px;
  color: var(--frame437ed-ink);
}

/* Sections & Facts */
.frame437ed-section {
  padding: 0 14px;
  margin: 22px 0;
}

.frame437ed-sectionhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.frame437ed-sectionhead > div {
  min-width: 0;
}

.frame437ed-sectionhead > p {
  margin: 0;
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--frame437ed-muted);
  font-size: 12px;
}

.frame437ed-section h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.18;
  color: var(--frame437ed-ink);
}

.frame437ed-section h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.25;
  color: var(--frame437ed-ink);
}

.frame437ed-updated {
  margin: 10px 0;
  padding-left: 9px;
  border-left: 3px solid var(--frame437ed-warm);
  color: var(--frame437ed-accent2);
  font-size: 12px;
  font-weight: 700;
}

.frame437ed-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 12px;
  border-top: 1px solid var(--frame437ed-line);
}

.frame437ed-fact {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--frame437ed-line);
}

.frame437ed-fact b {
  color: var(--frame437ed-accent2);
  font-size: 12px;
  line-height: 1.35;
}

.frame437ed-fact span {
  font-size: 13px;
  color: var(--frame437ed-ink2);
  overflow-wrap: anywhere;
}

/* Compact square game grid */
.frame437ed-games {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.frame437ed-game {
  display: block;
  min-width: 0;
  border-radius: 5px;
  overflow: hidden;
  background: var(--frame437ed-panel);
  border: 1px solid var(--frame437ed-line);
  transition: border-color 0.16s, background-color 0.16s;
}

.frame437ed-game:hover {
  border-color: var(--frame437ed-accent);
  background: #241912;
}

.frame437ed-game img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.frame437ed-game span {
  display: block;
  padding: 6px 5px 7px;
  color: var(--frame437ed-ink);
  font-size: 11px;
  line-height: 1.25;
  min-height: 38px;
  overflow-wrap: anywhere;
}

/* Prose, Cards, Steps, Ordered Lists, Tables */
.frame437ed-copy {
  margin: 8px 0;
  color: var(--frame437ed-muted);
  overflow-wrap: anywhere;
}

.frame437ed-copy strong {
  color: var(--frame437ed-ink);
}

.frame437ed-copy a,
.frame437ed-card a,
.frame437ed-faq a,
.frame437ed-ol a,
.frame437ed-callout a {
  color: var(--frame437ed-accent2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.frame437ed-prosegrid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.frame437ed-card {
  padding: 13px;
  border-radius: 6px;
  background: var(--frame437ed-panel);
  border: 1px solid var(--frame437ed-line);
  border-left: 3px solid var(--frame437ed-warm);
}

.frame437ed-card p {
  margin: 0;
  color: var(--frame437ed-muted);
  overflow-wrap: anywhere;
}

.frame437ed-callout {
  margin: 14px 0;
  padding: 13px 14px;
  border-radius: 6px;
  background: var(--frame437ed-panel2);
  border: 1px solid var(--frame437ed-warm);
}

.frame437ed-callout strong {
  display: block;
  margin-bottom: 4px;
  color: var(--frame437ed-accent2);
}

.frame437ed-callout p {
  margin: 0;
  color: var(--frame437ed-ink2);
  font-size: 14px;
}

.frame437ed-summarystrip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.frame437ed-summaryitem {
  padding: 10px 11px;
  border-radius: 6px;
  background: var(--frame437ed-panel);
  border: 1px solid var(--frame437ed-line);
}

.frame437ed-summaryitem small {
  display: block;
  color: var(--frame437ed-accent2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.frame437ed-summaryitem strong {
  display: block;
  margin-top: 2px;
  color: var(--frame437ed-ink);
  font-size: 14px;
}

.frame437ed-steps,
.frame437ed-ol {
  counter-reset: frame437ed-step;
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.frame437ed-step,
.frame437ed-ol li {
  position: relative;
  padding: 12px 13px 12px 46px;
  background: var(--frame437ed-panel);
  border-radius: 6px;
  border: 1px solid var(--frame437ed-line);
  color: var(--frame437ed-muted);
}

.frame437ed-step strong,
.frame437ed-ol li strong {
  color: var(--frame437ed-ink);
}

.frame437ed-step::before,
.frame437ed-ol li::before {
  counter-increment: frame437ed-step;
  content: counter(frame437ed-step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--frame437ed-accent);
  color: #171000;
  font-weight: 800;
  font-size: 13px;
}

.frame437ed-checklist {
  margin: 10px 0;
  padding-left: 20px;
  color: var(--frame437ed-muted);
}

.frame437ed-checklist li {
  padding: 6px 0;
}

.frame437ed-checklist strong {
  color: var(--frame437ed-ink);
}

.frame437ed-tablewrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 12px 0;
  border-radius: 6px;
  border: 1px solid var(--frame437ed-line);
  background: var(--frame437ed-panel);
}

.frame437ed-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.frame437ed-table th,
.frame437ed-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--frame437ed-line);
  vertical-align: top;
}

.frame437ed-table th {
  background: var(--frame437ed-panel2);
  color: var(--frame437ed-accent2);
  font-weight: 700;
}

.frame437ed-table td {
  color: var(--frame437ed-ink2);
}

.frame437ed-table tr:last-child td {
  border-bottom: 0;
}

.frame437ed-glossary {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.frame437ed-glossary div {
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--frame437ed-panel);
  border: 1px solid var(--frame437ed-line);
}

.frame437ed-glossary dt {
  color: var(--frame437ed-accent2);
  font-weight: 700;
  margin-bottom: 3px;
}

.frame437ed-glossary dd {
  margin: 0;
  color: var(--frame437ed-muted);
  font-size: 14px;
}

/* FAQ */
.frame437ed-faq details {
  padding: 10px 0;
  border-bottom: 1px solid var(--frame437ed-line);
}

.frame437ed-faq summary {
  cursor: pointer;
  min-height: 44px;
  padding: 8px 0;
  font-weight: 700;
  color: var(--frame437ed-ink);
}

.frame437ed-faq p {
  margin: 6px 0 4px;
  color: var(--frame437ed-muted);
}

/* Homepage Extended Footer */
.frame437ed-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 12px;
  border-top: 1px solid var(--frame437ed-line);
}

.frame437ed-directory a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 9px 6px;
  border-bottom: 1px solid var(--frame437ed-line);
  color: var(--frame437ed-accent2);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.frame437ed-directory a:nth-child(odd) {
  border-right: 1px solid var(--frame437ed-line);
  padding-right: 10px;
}

.frame437ed-directory a:nth-child(even) {
  padding-left: 10px;
}

.frame437ed-extended {
  padding-top: 20px;
  border-top: 2px solid var(--frame437ed-warm);
}

.frame437ed-brandnote {
  margin: 20px 0 16px;
  padding-top: 14px;
  border-top: 2px solid var(--frame437ed-warm);
}

.frame437ed-brandnote strong {
  color: var(--frame437ed-ink);
  font-size: 15px;
}

.frame437ed-brandnote p {
  margin: 6px 0;
  color: var(--frame437ed-muted);
}

.frame437ed-promotions {
  padding: 0;
  margin: 10px 0 18px;
  list-style: none;
}

.frame437ed-promotions li {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--frame437ed-line);
  padding: 8px 0;
}

.frame437ed-promotions button {
  min-height: 44px;
  border: 1px solid var(--frame437ed-line);
  border-radius: 5px;
  background: var(--frame437ed-panel2);
  color: var(--frame437ed-accent2);
  text-align: left;
  padding: 8px 10px;
  line-height: 1.3;
  font-weight: 700;
  transition: background-color 0.16s, border-color 0.16s;
}

.frame437ed-promotions button:hover {
  background: #302116;
  border-color: var(--frame437ed-accent);
}

.frame437ed-promotions button span {
  display: inline-block;
  min-width: 22px;
  color: var(--frame437ed-ink);
}

.frame437ed-promotions li > span {
  font-size: 12px;
  color: var(--frame437ed-muted);
  padding-left: 10px;
}

/* Common Footer & Floating Bottom Dock */
.frame437ed-footer {
  padding: 16px 14px 20px;
  margin-top: 24px;
  border-top: 1px solid var(--frame437ed-line);
  color: var(--frame437ed-muted);
  font-size: 12px;
}

.frame437ed-bottom {
  position: fixed;
  z-index: 40;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 12px), 418px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  padding: 6px 5px calc(6px + env(safe-area-inset-bottom, 0px));
  background: var(--frame437ed-panel);
  border: 1px solid var(--frame437ed-warm);
  border-radius: 9px;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.55);
}

.frame437ed-navitem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 54px;
  padding: 5px 2px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--frame437ed-muted);
  font-family: Arial, sans-serif;
  font-size: 10px;
  line-height: 1.25;
  transition: background-color 0.15s, color 0.15s, transform 0.15s;
}

.frame437ed-navicon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--frame437ed-warm);
  border-radius: 5px;
  background: #251B10;
  color: var(--frame437ed-accent);
  font-size: 15px;
}

.frame437ed-navitem:hover,
.frame437ed-navitem.frame437ed-active {
  background: #302315;
  color: var(--frame437ed-ink);
  transform: translateY(-2px);
}

.frame437ed-navitem.frame437ed-active .frame437ed-navicon {
  background: var(--frame437ed-accent);
  color: #171000;
  border-color: var(--frame437ed-accent);
}

.frame437ed-navitem:active {
  transform: translateY(0);
  background: var(--frame437ed-brown);
  color: var(--frame437ed-ink);
}

.frame437ed-muted {
  color: var(--frame437ed-muted);
}

.frame437ed-hr {
  border: 0;
  border-top: 1px solid var(--frame437ed-line);
  margin: 18px 0;
}

@media (min-width: 390px) {
  .frame437ed-games {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 430px) {
  .frame437ed-page,
  .frame437ed-top {
    max-width: 430px;
  }
  .frame437ed-bottom {
    max-width: 418px;
  }
}

@media (max-width: 345px) {
  .frame437ed-brand strong {
    font-size: 16px;
  }
  .frame437ed-btn {
    padding-left: 7px;
    padding-right: 7px;
  }
  .frame437ed-heroactions .frame437ed-btn,
  .frame437ed-ctagroup .frame437ed-btn {
    padding: 10px 6px;
  }
  .frame437ed-fact {
    grid-template-columns: 86px minmax(0, 1fr);
  }
  .frame437ed-summarystrip {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    transform: none !important;
  }
}
