/* RED NIGHT · a quiet night surface for the menu and supporting pages.
   Load after each page stylesheet. The artwork stays behind the content;
   no assets, fixed layers, filters, animation, or header treatment. */

.menu-chapter {
  background-color: #080c10;
  background-image:
    linear-gradient(180deg, #080c10 0%, transparent 22%, transparent 76%, #080c10 100%),
    radial-gradient(ellipse at 106% 57%, #b7142626 0%, #b714260c 35%, transparent 66%),
    radial-gradient(ellipse at 18% 35%, #f5eee408 0%, transparent 58%);
}

/* These page roots already exist. :has() avoids changing page markup or
   applying a new surface to the cinema, checkout dialogs, or staff app. */
body.staff-body,
body:has(.order-main),
body:has(.legal-main),
body:has(#receipt-paper) {
  background-color: #080c10;
  background-image:
    radial-gradient(ellipse at 106% 19%, #b7142624 0%, #b714260b 34%, transparent 61%),
    radial-gradient(ellipse at 0% 58%, #a9afb40a 0%, transparent 56%),
    linear-gradient(162deg, transparent 16%, #f5eee403 45%, transparent 73%);
  background-repeat: no-repeat;
}

/* Shorter light pools keep the surface intentional on a narrow screen.
   Text, product photographs, receipt paper and controls keep their colours. */
@media (max-width: 700px) {
  .menu-chapter {
    background-image:
      linear-gradient(180deg, #080c10 0%, transparent 20%, transparent 78%, #080c10 100%),
      radial-gradient(ellipse at 112% 48%, #b7142621 0%, #b7142609 38%, transparent 69%),
      radial-gradient(ellipse at 0% 31%, #f5eee407 0%, transparent 58%);
  }

  body.staff-body,
body:has(.order-main),
  body:has(.legal-main),
  body:has(#receipt-paper) {
    background-size: 100% 760px, 100% 940px, 100% 940px;
  }
}

/* All light is static, including with Reduce Motion enabled. Increased
   contrast and printing use the existing plain page surface. */
@media (prefers-contrast: more), (forced-colors: active) {
  .menu-chapter,
  body.staff-body,
body:has(.order-main),
  body:has(.legal-main),
  body:has(#receipt-paper) {
    background-image: none;
  }
}

@media print {
  .menu-chapter,
  body.staff-body,
body:has(.order-main),
  body:has(.legal-main),
  body:has(#receipt-paper) {
    background-image: none;
  }

  body:has(#receipt-paper) {
    background-color: #fff;
  }
}

/* One neutral card edge throughout the site; red identifies actions and state. */
:root{--surface-card:#0c1218;--surface-edge:#f5eee42b}
body.cinema{--panel-edge:var(--surface-edge)}
body.staff-body{--crew-fill:var(--surface-card);--crew-edge:var(--surface-edge)}
.staff-header .wordmark,.order-header>a{display:inline-flex;align-items:center;min-height:44px}
.staff-header #logout{min-width:44px}
:is(.order-summary,.order-timeline,.legal-summary,.wallet-announcement,.crew-management-grid>button,.crew-orders-empty){border-color:var(--surface-edge)}
.crew-order-card:not([data-fulfillment=ready]):not([data-finishing=true]){border-color:var(--surface-edge)}
