#home-view {
  --home-line: #5b3541;
  --home-copy: #c8becb;
  --home-accent: #ff92a4;
}

#home-view .nfa-hero {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  min-height: 0;
  padding: clamp(30px, 5vw, 76px) 0 clamp(28px, 4vw, 52px);
  text-align: center;
}

#home-view .nfa-hero h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  text-wrap: balance;
  margin-block: 13px 20px;
}

#home-view .nfa-hero-copy { max-width: 790px; }
#home-view .nfa-hero-description { margin-inline: auto; color: var(--home-copy); max-width: 53ch; }
#home-view .nfa-hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  width: min(100%, 470px);
  gap: 10px;
  margin: 26px auto 0;
}

#home-view .nfa-hero-actions > :is(.primary-button, .secondary-button) {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: auto;
  min-height: 58px;
  justify-content: center;
  padding: 12px 10px;
  gap: 10px;
  text-align: center;
  white-space: normal;
  font-size: clamp(.75rem, 1.25vw, .98rem);
}

#home-view .nfa-hero-actions > .primary-button span {
  width: 26px;
  height: 26px;
  font-size: 1.12rem;
}

#home-view .nfa-hero-trust { justify-content: center; color: var(--home-copy); gap: 12px 18px; margin-top: 20px; }

.nfa-featured-games {
  position: relative;
  left: 50%;
  translate: -50% 0;
  box-sizing: border-box;
  width: var(--featured-width, 100%);
  margin-bottom: clamp(22px, 4vw, 44px);
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: clamp(14px, 2vw, 28px) clamp(12px, 3vw, 60px);
  overflow: clip;
}

.nfa-featured-games > header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px 4px;
}

.nfa-featured-games > header img { display: block; width: clamp(95px, 10vw, 145px); height: auto; }
.nfa-featured-games > header h2 { font-size: clamp(1rem, 1.8vw, 1.42rem); color: #fff4f6; margin: 0; }

.nfa-featured-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #70414d;
  border-radius: 13px;
  color: #fff4f6;
  background: #1b1219;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease;
}

.nfa-featured-card img { display: block; width: 100%; height: auto; aspect-ratio: 1.85; object-fit: cover; }
.nfa-featured-card span { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 11px 10px; font-size: clamp(.73rem, 1.15vw, .95rem); font-weight: 700; }
.nfa-featured-card b { color: var(--home-accent); font-size: 1rem; }
.nfa-featured-card:hover { border-color: var(--home-accent); background: #2a1924; }
.nfa-featured-card > span { min-height: 50px; }

.nfa-featured-track {
  grid-column: 1 / -1;
  display: grid;
  gap: 9px;
  min-width: 0;
}

.nfa-featured-row {
  --featured-gap: 10px;
  min-width: 0;
  overflow: clip;
  touch-action: pan-y;
}

.nfa-featured-belt { display: flex; width: max-content; will-change: transform; }
.nfa-featured-group { display: flex; flex: none; gap: var(--featured-gap); padding-inline-end: var(--featured-gap); }

.nfa-featured-row .nfa-featured-card {
  position: relative;
  flex: none;
  width: clamp(148px, 15.6vw, 270px);
  aspect-ratio: 2.47;
  border-radius: 9px;
  border: 0;
}

.nfa-featured-row .nfa-featured-card img,
.nfa-featured-row .nfa-featured-card .deco-cover { width: 100%; height: 100%; aspect-ratio: auto; }

.nfa-featured-row .nfa-featured-card > span {
  position: absolute;
  inset: auto 0 0;
  min-height: 0;
  padding: 18px 8px 6px;
  background: linear-gradient(transparent, #100d13 94%);
  font-size: clamp(.72rem, 1.08vw, .96rem);
  line-height: 1.2;
  text-shadow: 0 1px 3px #000;
}

.nfa-featured-row .nfa-featured-card:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }

.nfa-featured-controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.nfa-featured-controls[hidden] { display: none; }
.nfa-featured-controls > div { display: flex; gap: 5px; }
.nfa-featured-position { font-size: .76rem; color: var(--home-copy); font-variant-numeric: tabular-nums; }

.nfa-featured-controls button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 40px;
  padding: 5px 8px;
  border: 1px solid #70414d;
  border-radius: 8px;
  background: #241722;
  color: #fff4f6;
  font: inherit;
  cursor: pointer;
}

.nfa-featured-controls button:hover { border-color: var(--home-accent); }
.nfa-featured-controls button:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 2px; }
.nfa-featured-card .deco-cover { display: grid; aspect-ratio: 1.85; }
.nfa-featured-card .deco-cover > span { display: grid; padding: 0; font-size: clamp(.85rem, 2.2vw, 1.6rem); }

#home-view .nfa-home-search {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 10px 24px;
  margin: 0 0 20px;
  padding: clamp(18px, 3vw, 34px);
  border-color: var(--home-line);
  background: linear-gradient(125deg, #351921f2, #141016f8 68%);
}

#home-view .nfa-home-search h2 { margin: 0; font-size: clamp(1.5rem, 2.55vw, 2.15rem); }
#home-view .nfa-home-search form { margin: 0; }
#home-view .nfa-home-search input { padding-block: 14px; font-size: .95rem; }
#home-view .nfa-popular { grid-column: 2; margin-top: 2px; gap: 7px; }
#home-view .nfa-popular a { color: #e0cedb; background: #160f16; }

#home-view .nfa-benefits { gap: 12px; padding: 0 0 clamp(35px, 5vw, 70px); }
#home-view .nfa-benefits article { background: linear-gradient(155deg, #211721f2, #131017f0); padding: clamp(15px, 2vw, 24px); border-color: #503443; }
#home-view .nfa-benefit-icon { margin-bottom: 14px; border-radius: 10px; }
#home-view .nfa-benefits h3 { margin-bottom: 7px; }
#home-view .nfa-benefits p { color: var(--home-copy); }

#home-view .nfa-home-faq { gap: clamp(22px, 5vw, 74px); padding: clamp(26px, 4vw, 52px) 0 14px; align-items: start; }
#home-view .nfa-faq-intro h2 { margin: 3px 0 12px; text-wrap: balance; }
#home-view .nfa-faq-intro p { color: var(--home-copy); }
#home-view .nfa-faq-list { border: 0; display: grid; gap: 9px; }
#home-view .nfa-faq-list details { border: 1px solid #503443; border-radius: 12px; background: #18121b; }
#home-view .nfa-faq-list details[open] { border-color: #83515f; background: #221622; }
#home-view .nfa-faq-list summary { padding: 13px 16px; min-height: 52px; border-radius: 12px; }
#home-view .nfa-faq-list summary::after { width: 27px; height: 27px; display: grid; place-items: center; line-height: 1; border-radius: 50%; background: #472330; }
#home-view .nfa-faq-list details p { padding: 0 16px 16px; color: var(--home-copy); }

#home-view .nfa-home-bottom-cta { margin-top: 28px; padding: 22px 0 8px; }
#home-view .nfa-home-bottom-cta > a { min-height: 58px; }

@media (max-width: 800px) {
  #home-view .nfa-hero { grid-template-columns: 1fr; gap: 22px; }
  #home-view .nfa-hero h1 { font-size: clamp(2.6rem, 9vw, 4.5rem); text-wrap: initial; }
  #home-view .nfa-home-search { grid-template-columns: 1fr; }
  #home-view .nfa-popular { grid-column: 1; }
}

@media (max-width: 400px) {
  #home-view .nfa-hero-actions > :is(.primary-button, .secondary-button) { gap: 6px; padding-inline: 6px; min-height: 50px; }
  #home-view .hero-community-icon { width: 15px; height: 15px; }
  #home-view .nfa-hero-actions > .primary-button span { width: 20px; height: 20px; }
  #home-view .nfa-home-search input { font-size: 1rem; padding-inline: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .nfa-featured-card { transition: none; }
}
