/* Page-owned taxonomy guidance: editorial layout follows the guide's green and ink palette. */
body[data-helper-page] {
  padding-block-start: 112px;
  background: #eef4e9;
  color: #182540;
  font-family: "JetBrains Mono", monospace;
}

body[data-helper-page] > .gaming-hero__header {
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  min-height: 96px;
  padding: 12px clamp(18px, 5vw, 84px);
  background-color: #17243f;
  box-shadow: 0 8px 24px rgb(11 22 43 / 20%);
}

body[data-helper-page] > .gaming-hero__header .gaming-hero__nav {
  max-width: 900px;
}

main {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding: 0 clamp(18px, 5vw, 76px) 88px;
  color: #182540;
  font-family: "JetBrains Mono", monospace;
}

.genre-section {
  position: relative;
  margin: 0;
  padding: clamp(42px, 6.2vw, 88px) clamp(22px, 6vw, 82px);
  background: #fff;
  border-bottom: 1px solid #dbe3d4;
  color: #182540;
}

.genre-hero {
  min-height: 470px;
  display: grid;
  align-items: center;
  background: linear-gradient(120deg, #3fc62d 0%, #84e36a 58%, #b5f09b 100%);
  border: 0;
  color: #10243a;
}

.genre-reveal {
  width: min(100%, 920px);
  margin-inline: auto;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(.2,.7,.2,1);
}

.genre-reveal.is-pending {
  opacity: 0;
  transform: translateY(18px);
}

.genre-eyebrow {
  margin: 0 0 18px;
  color: #37712d;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.genre-hero .genre-eyebrow {
  color: #173b25;
}

.genre-section h1,
.genre-section h2 {
  max-width: 850px;
  margin: 0 0 22px;
  color: #182540;
  font-size: clamp(1.65rem, 3.1vw, 3rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.12;
}

.genre-section h1 {
  max-width: 820px;
  font-size: clamp(2.5rem, 6vw, 5.75rem);
  letter-spacing: -.075em;
}

.genre-section p {
  max-width: 760px;
  margin: 0 0 18px;
  color: #48546a;
  font-size: clamp(.94rem, 1.1vw, 1.08rem);
  line-height: 1.8;
}

.genre-section .genre-lede {
  max-width: 730px;
  margin-bottom: 30px;
  color: #203b32;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.75;
}

.genre-section--tint {
  background: #f6f9f2;
}

.genre-note {
  display: grid;
  grid-template-columns: minmax(130px, .34fr) 1fr;
  gap: 18px;
  align-items: start;
  max-width: 780px;
  margin-top: 28px;
  padding: 22px 24px;
  border-left: 4px solid #3fc62d;
  background: #eaf5e3;
  color: #243c2e;
  line-height: 1.65;
}

.genre-note strong {
  color: #203b32;
}

.genre-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 13px 20px;
  border: 2px solid #14233d;
  border-radius: 3px;
  background-color: #17243f;
  color: #fff;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.genre-button:hover {
  background-color: #263d64;
  transform: translateY(-2px);
}

.genre-button:focus-visible,
.genre-search input:focus-visible {
  outline: 3px solid #208a2b;
  outline-offset: 3px;
}

.genre-button--dark {
  min-height: 48px;
  border-color: #203a2c;
  background-color: #203a2c;
  color: #fff;
}

.genre-button--dark:hover {
  background-color: #31583c;
}

.genre-button--light {
  border-color: #17243f;
  background-color: #fff;
  color: #17243f;
}

.genre-button--light:hover {
  background-color: #e6f3df;
}

.genre-search-section {
  background: #e9f4e3;
}

.genre-search {
  max-width: 760px;
  margin-top: 28px;
}

.genre-search label {
  display: block;
  margin-bottom: 9px;
  color: #203a2c;
  font-size: .88rem;
  font-weight: 800;
}

.genre-search__row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.genre-search input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #9aab97;
  border-radius: 3px;
  background-color: #fff;
  color: #182540;
  font: inherit;
}

.genre-error,
.genre-search__status {
  min-height: 1.5em;
  margin: 9px 0 0 !important;
  font-size: .88rem !important;
  font-weight: 700;
}

.genre-error {
  color: #9a2631 !important;
}

.genre-search__status {
  color: #203a2c !important;
}

.genre-source-note {
  margin-top: 30px !important;
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 42%);
  color: #e4eee4 !important;
  font-size: .85rem !important;
}

.genre-section--closing {
  background: #17243f;
  color: #fff;
}

.genre-section--closing h2,
.genre-section--closing .genre-eyebrow {
  color: #fff;
}

.genre-section--closing p:not(.genre-source-note) {
  color: #dce5f0;
}

.genre-section--closing .genre-button {
  margin-top: 10px;
}

.genre-pixel {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
}

@media (max-width: 700px) {
  body[data-helper-page] {
    padding-block-start: 106px;
  }

  body[data-helper-page] > .gaming-hero__header {
    min-height: 90px;
    padding: 12px 16px;
  }

  main {
    padding: 0 12px 48px;
  }

  .genre-section {
    padding: 42px 22px;
  }

  .genre-hero {
    min-height: 0;
    padding-block: 52px;
  }

  .genre-section h1 {
    font-size: clamp(2.2rem, 11vw, 3.45rem);
  }

  .genre-note {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 18px;
  }

  .genre-search__row {
    flex-direction: column;
  }

  .genre-search__row .genre-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .genre-reveal {
    transition: none;
  }

  .genre-reveal.is-pending {
    opacity: 1;
    transform: none;
  }

  .genre-button {
    transition: none;
  }
}

/* Keep the accepted absolute shell header inside the viewport on desktop and tablet. */
@media (min-width: 601px) {
  body[data-helper-page] > .gaming-hero__header {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-inline: clamp(16px, 4vw, 72px) !important;
    gap: clamp(8px, 2vw, 32px) !important;
  }

  body[data-helper-page] .gaming-hero__nav {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-content: flex-end !important;
    gap: clamp(4px, 0.8vw, 16px) !important;
  }

  body[data-helper-page] .gaming-hero__nav-item {
    flex: 0 1 auto !important;
    padding-inline: clamp(4px, 0.65vw, 12px) !important;
  }
}
