/* The rules hero is one continuous composition at every breakpoint. */
.header-hero-actions { display: none; }
.rules-hero-bg { transform-origin: 68% 62%; }

/* Keep the complete wheel inside the daily-rules artwork panel. */
.rule-panel-art.art-daily img {
  right: 5%;
  bottom: 24px;
  width: 83%;
  height: auto;
  max-height: calc(100% - 112px);
  object-fit: contain;
}

@media (max-width: 760px) {
  .rules-hero {
    display: block;
    min-height: 710px;
    padding: 105px 0 305px;
    background: #faf9f4;
  }
  .rules-hero::after {
    display: block;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
      #faf9f4 0%,
      #faf9f4 40%,
      #faf9f4e8 50%,
      #faf9f49c 61%,
      #faf9f400 78%);
  }
  .rules-hero-grid {
    position: relative;
    z-index: 2;
    min-height: 0;
  }
  .rules-hero-bg {
    position: absolute;
    inset: auto 0 0;
    width: 100%;
    height: 480px;
    margin: 0;
    object-fit: cover;
    object-position: 90% 53%;
    -webkit-mask-image: none;
    mask-image: none;
    z-index: 0;
  }
  .rules-hero-copy { max-width: 540px; }
  .rules-hero-actions { position: relative; z-index: 3; }
  .rules-hero-actions .rules-button-line {
    background: #fffdf8ec;
    border-color: #b5cbd2;
    box-shadow: 0 4px 15px #143e6620;
  }
}

@media (max-width: 374px) {
  .rules-hero { padding-bottom: 295px; }
  .rules-hero-bg { height: 450px; object-position: 91% 53%; }
}

@media (prefers-reduced-motion: no-preference) {
  .rules-kicker,
  .rules-hero h1,
  .rules-lead,
  .rules-hero-actions {
    opacity: 0;
    transform: translateY(17px);
    animation: rules-hero-enter .78s cubic-bezier(.2,.7,.2,1) forwards;
  }
  .rules-hero h1 { animation-delay: .1s; }
  .rules-lead { animation-delay: .2s; }
  .rules-hero-actions { animation-delay: .3s; }
  .rules-hero-bg { animation: rules-scene-enter 1.25s cubic-bezier(.2,.7,.2,1) both; }

  .rules-motion-stage {
    opacity: 0;
    translate: 0 25px;
    transition: opacity .72s cubic-bezier(.2,.7,.2,1), translate .72s cubic-bezier(.2,.7,.2,1);
  }
  .rules-motion-stage.is-revealed { opacity: 1; translate: 0 0; }
  .rule-panel:not([hidden]) { animation: rules-panel-enter .48s cubic-bezier(.2,.7,.2,1) both; }
  .faq-list details[open] p,
  .mobile-rule-list details[open] .mobile-rule-body { animation: rules-answer-enter .3s ease-out both; }

  @keyframes rules-hero-enter {
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes rules-scene-enter {
    from { opacity: .6; scale: 1.045; }
    to { opacity: 1; scale: 1; }
  }
  @keyframes rules-panel-enter {
    from { opacity: .55; translate: 0 12px; }
    to { opacity: 1; translate: 0 0; }
  }
  @keyframes rules-answer-enter {
    from { opacity: 0; translate: 0 -6px; }
    to { opacity: 1; translate: 0 0; }
  }
}
