/* XFINALE — THE BIG DOORS (Gene, 2026-11-16: "Too much in the viewer's
   face, I failed the Costco effect.") Three rooms stand large: Fresh Today,
   the Tank, Bread & Circus. Every other wire and show waits behind one
   MORE ROOMS pull-down. The rail copy serves phones, the deck copy desktop. */

.bigdoors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 8px; }
.bigdoor {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
  min-height: 64px; padding: 12px 14px 12px 18px; border-radius: 14px; text-align: left; text-decoration: none; cursor: pointer;
  font: inherit; color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--c) 42%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, rgba(18, 11, 4, 0.94)), rgba(10, 6, 3, 0.94));
  box-shadow: inset 4px 0 0 var(--c);
  transition: transform 0.15s var(--ease-snap, ease), border-color 0.15s, box-shadow 0.15s;
}
.bigdoor b { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.08em; line-height: 1.1; }
.bigdoor__sub { font-size: 0.68rem; line-height: 1.25; color: var(--ink-dim); }
.bigdoor__flag { position: absolute; top: 7px; right: 9px; font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.18em; color: var(--c); }
.bigdoor:hover, .bigdoor:focus-visible {
  outline: none; transform: translateY(-2px); border-color: var(--c);
  box-shadow: inset 4px 0 0 var(--c), 0 12px 26px -12px color-mix(in srgb, var(--c) 75%, transparent);
}
.bigdoor:active { transform: translateY(0) scale(0.98); }

.moredoors { position: relative; margin: 0 0 6px; }
.moredoors > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; padding: 8px 14px; border-radius: 12px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.22em; color: var(--ink-dim);
  border: 1px solid rgba(255, 176, 32, 0.22); background: rgba(12, 7, 3, 0.9);
}
.moredoors > summary::-webkit-details-marker { display: none; }
.moredoors > summary small { font-size: 0.6rem; letter-spacing: 0.08em; color: var(--ink-faint); }
.moredoors > summary::after { content: "\25BE"; font-size: 0.8rem; color: var(--amber, #ffb020); transition: transform 0.15s; }
.moredoors[open] > summary::after { transform: rotate(180deg); }
.moredoors > summary:hover, .moredoors > summary:focus-visible { outline: none; color: var(--ink); border-color: var(--amber, #ffb020); }
.moredoors__panel { padding: 8px 2px 2px; }

.moredoors--deck { display: none; }
/* phones: the rail is a slide-out guide, so the doors ride the top of the
   deck where the thumb lands first; the pull-down stays in the guide */
.rail .bigdoors { display: none; }
.bigdoors--deck { margin: 0 0 10px; }

/* 2026-11-28: NIGHT SHIFT joined as the fourth door; phones stack them two by two */
@media (max-width: 640px) {
  .bigdoors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .bigdoor { min-height: 56px; padding: 10px 8px 10px 12px; }
  .bigdoor b { font-size: 0.74rem; letter-spacing: 0.04em; }
  .bigdoor__sub { display: none; }
}

@media (min-width: 1101px) {
  .rail .moredoors { display: none; }
  .bigdoors--deck { width: 100%; margin: 0; }
  .moredoors--deck { display: block; width: 100%; margin: 0; z-index: 30; }
  .deck > .bigdoors--deck { grid-area: nav; }
  .deck > .moredoors--deck { grid-area: dial; }
  .bigdoors--deck .bigdoor { min-height: 74px; padding: 14px 18px 14px 22px; }
  .bigdoors--deck .bigdoor b { font-size: 1.2rem; }
  .bigdoors--deck .bigdoor__sub { font-size: 0.74rem; }
  /* the pull-down opens over the set instead of shoving it down */
  .moredoors--deck .moredoors__panel {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; display: flex; flex-direction: column; gap: 8px;
    padding: 12px; border-radius: 14px; border: 1px solid rgba(255, 176, 32, 0.25);
    background: rgba(10, 6, 4, 0.97); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.8);
  }
  .moredoors--deck .deckwires { flex-wrap: wrap; overflow: visible; }
  .moredoors--deck .deckwires > a, .moredoors--deck .deckwires > button { flex: 1 1 150px; }
  html.xf-bc .bigdoors, html.xf-bc .moredoors { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .bigdoor, .moredoors > summary::after { transition: none; }
  .bigdoor:hover, .bigdoor:focus-visible { transform: none; }
}
