/* The Room: the quiet rooms of the house (help, house code, visit, ticket, order status, 404, privacy and the
   fallback page). Loaded after site.css (and nights.css where a page has it), so equal-specificity rules here win.
   Every object is decoration around words that were already on the page: no new words, no CSS content words.
   Looping motion: none. The one entrance (the ticket) runs only with prefers-reduced-motion: no-preference. */

:is(.info-help, .info-code, .info-visit, .ticket-page, .ticket-note, .os-page, .fb-page, .privacy) { position: relative; }
/* An automatic width, not site.css's 100%: with a very large browser text size the rem max-width outgrows the window,
   and 100% plus the left margin from nights.css would scroll sideways. Auto fills what the margin leaves. */
.wrap.narrow:is(.info-help, .info-code, .info-visit, .ticket-page, .ticket-note, .os-page, .fb-page, .privacy, .not-found) { width: auto; }
/* One head rhythm with home, /nights and /prints: the giant h1 sits .2em above the first thing under it
   (about 26px on a laptop, 12px on a phone), and that first thing adds no margin of its own (grids do not collapse it). */
:is(.info-help, .info-code, .info-visit, .ticket-page, .ticket-note, .os-page, .fb-page, .privacy, .not-found) > h1 { margin-bottom: .2em; }
:is(.info-help, .info-code, .info-visit, .ticket-page, .ticket-note, .os-page, .fb-page, .privacy, .not-found) > h1 + * { margin-top: 0; }

/* The drawn characters, shared. */
.info-help .faq-group:first-of-type::after, .info-visit .map-card::after, .ticket-page .before-come::after {
  content: ""; pointer-events: none; background: url(/assets/room/dog.svg) center bottom / contain no-repeat;
}

/* The sign still behind these heads: the neon name sits above the band, so the h1 is the only headline; the screen
   and the couches stand behind it. From 48em the picture is drawn larger than the band (at least 135vh wide) and
   lifted by a fixed share of its own height, and a veil from the left keeps the heading on dark ground. */
.page-art[data-stop="sign"]:has(~ :is(.info-help, .privacy, .ticket-note, .fb-page)) { --art-y: 61%; }
@media (min-width: 48em) {
  .page-art[data-stop="sign"]:has(~ :is(.info-help, .privacy, .ticket-note, .fb-page))::before { background-size: max(100%, 135vh) auto; background-position: center calc(max(100vw, 135vh) * -.225); }
  .page-art[data-stop="sign"]:has(~ :is(.info-help, .privacy, .ticket-note, .fb-page))::after { background: linear-gradient(to bottom, rgba(11, 2, 20, 0) 44%, rgba(11, 2, 20, .9) 84%), linear-gradient(90deg, rgba(11, 2, 20, .9) 0, rgba(11, 2, 20, .84) 40%, rgba(11, 2, 20, 0) 68%); }
}
/* The top still on a tablet: the phone picture fills the band edge to edge (the desk one leaves a boxed room on flat grid). */
@media (min-width: 48em) and (max-width: 63.99em) { .page-art[data-stop="top"]:has(~ :is(.info-visit, .ticket-page, .ticket-note))::before { background-image: var(--still-phone); background-position: center 6%; } }

/* The short footer of the ticket, order and fallback shells: on the shell grid, and tall enough for the hanging ball. */
body > .site-footer > .contact:only-child { max-width: var(--shell-w); margin: 0 auto; padding: 0 0 8px; }
@media (min-width: 64em) { body > .site-footer:has(> .contact:only-child) { min-height: 11rem; } }

/* A long read sits at about 65 characters, a little larger than body text. */
:is(.privacy, .info-code, .ticket-page, .os-page) :is(p, li, dd) { max-width: 65ch; }

/* ===================== Help: question groups as sticker cards with a name plate ===================== */
.info-help .lead { margin-bottom: 8px; }
.info-help .faq-group { position: relative; margin-block: 56px 40px; padding: 30px 20px 6px; border-radius: 0; }
.info-help .faq-group:first-of-type { margin-top: 96px; }
.info-help .faq-group h2 { display: block; width: fit-content; max-width: calc(100% - 64px); margin: calc(-30px - .62em) 0 8px; padding: .12em .32em .06em;
  font-size: max(1.3rem, min(2.6rem, 11vw)); line-height: .95; color: var(--ink); background: var(--c1); text-shadow: none; box-shadow: 5px 5px 0 var(--c2); border: 2px solid var(--ink); transform: rotate(-2deg); transform-origin: left center; }
.info-help .faq-group:nth-of-type(even) h2 { transform: rotate(1.6deg); }
.info-help .faq-group h2:focus-visible { outline-color: var(--focus); }
.info-help .acc { border-bottom: 2px dashed color-mix(in srgb, var(--c1) 55%, var(--edge)); }
.info-help .acc summary { min-height: 56px; padding: 14px 6px 14px 0; font-size: max(1rem, min(1.06rem, 7vw)); }
.info-help .acc summary:hover { color: var(--c1); }
.info-help .acc summary::after { border-color: var(--c1); color: var(--c1); }
.info-help .acc[open] summary::after { background: var(--c1); color: var(--ink); }
.info-help .acc[open] { border-bottom-color: var(--c1); }
.info-help .acc-body { padding: 0 0 18px 16px; border-left: 4px solid var(--c1); margin-bottom: 14px; }
.info-help .acc-body p { max-width: 65ch; font-size: 1.03rem; line-height: 1.6; margin: 0; }
.info-help .acc:target { background: var(--band); }
.info-help .faq-group:first-of-type::after { position: absolute; right: 18px; top: -70px; width: 66px; height: 72px; }
.info-help > .cta-row { margin-top: 8px; }
@media (min-width: 48em) {
  .info-help .faq-group { padding: 30px 28px 8px; }
  .info-help .faq-group:first-of-type::after { width: 84px; height: 92px; top: -90px; right: 32px; }
}
@media (min-width: 75em) {
  .wrap.narrow.info-help { gap: 0 56px; }
  .wrap.narrow.info-help > .faq-group { margin-block: 40px 52px; }
  .info-help .lead { margin-bottom: 72px; }
  /* four groups: Nights down the left with the Find the spot button under it, the other three stacked on the right,
     so neither column leaves a hole (rows: h1, lead, then the three on the right) */
  .info-help:has(> .faq-group:nth-of-type(4):last-of-type) > .faq-group:first-of-type { grid-column: 1; grid-row: span 2; }
  .info-help:has(> .faq-group:nth-of-type(4):last-of-type) > .faq-group:not(:first-of-type) { grid-column: 2; }
  .info-help:has(> .faq-group:nth-of-type(4):last-of-type) > .cta-row { grid-column: 1; grid-row: 5; margin-top: 0; }
}
@media (max-width: 15em) {
  .info-help .faq-group { padding: 10px 0 0; }
  .info-help .faq-group h2 { max-width: 100%; margin: 0 0 6px; transform: none; box-shadow: none; }
  .info-help .faq-group:first-of-type::after { display: none; }
  .info-help .acc-body { padding-left: 8px; }
}

/* ===================== House Code: the rules as a series of posters on the wall ===================== */
.info-code .lead { margin-bottom: 8px; }
.info-code .code-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin: 36px 0 8px; }
.info-code .code-row { --c1: var(--pink); --c2: var(--cyan); position: relative; container-type: inline-size; padding: 26px 22px 22px; border: 2px solid var(--c1); background: var(--surface); box-shadow: var(--off) var(--off) 0 var(--c2); }
.info-code .code-row:nth-child(4n+2) { --c1: var(--gold); --c2: var(--pink); }
.info-code .code-row:nth-child(4n+3) { --c1: var(--cyan); --c2: var(--orange); }
.info-code .code-row:nth-child(4n) { --c1: var(--orange); --c2: var(--cyan); }
/* a strip of tape holding each poster up, in the poster's second neon, ragged at the torn ends; it moves along the top edge poster to poster */
.info-code .code-row::before { content: ""; position: absolute; top: -12px; left: 22%; width: 88px; height: 22px; margin-left: -44px; background: color-mix(in srgb, var(--c2) 85%, transparent); border: 1px solid var(--ink); transform: rotate(-3deg); pointer-events: none;
  clip-path: polygon(0 8%, 5% 0, 9% 10%, 91% 0, 96% 12%, 100% 4%, 97% 50%, 100% 94%, 94% 100%, 8% 92%, 3% 100%, 0 90%, 3% 50%); }
.info-code .code-row:nth-child(3n+2)::before { left: 50%; transform: rotate(4deg); }
.info-code .code-row:nth-child(3n)::before { left: 78%; transform: rotate(-2deg); }
.info-code .code-row dt { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: .01em; line-height: .95; font-size: min(max(1.3rem, min(2.1rem, 10vw)), 16cqi); color: var(--c1); margin: 0 0 10px; }
.info-code .code-row dd { margin: 0; font-size: 1.03rem; line-height: 1.6; }
/* the targeted rule gets a gold ring, so the white ring stays for keyboard focus only */
.info-code .code-row:target { background: var(--band); outline: 0; box-shadow: 0 0 0 4px var(--gold), calc(var(--off) + 4px) calc(var(--off) + 4px) 0 var(--c2); }
@media (max-width: 47.99em) { .info-code .code-row:nth-child(even):not(:target) { box-shadow: calc(-1 * var(--off)) var(--off) 0 var(--c2); } }
@media (min-width: 48em) {
  .info-code .code-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 36px; align-items: start; }
  .info-code .code-row { padding: 30px 28px 26px; }
  /* an odd last poster leaves a cell: the ball hangs in it from the top (the footer dog is just below) */
  .info-code .code-list:has(> .code-row:last-child:nth-child(odd))::after { content: ""; align-self: stretch; min-height: 200px; pointer-events: none;
    background: url(/assets/room/ball.svg) 50% 0 / auto 62% no-repeat; }
}
@media (min-width: 64em) {
  .wrap.narrow.info-code { max-width: calc(var(--shell-w) + 2 * var(--pad-x)); }
  .info-code .code-row:nth-child(4n+1) { transform: rotate(-.8deg); }
  .info-code .code-row:nth-child(4n+2) { transform: rotate(.6deg); }
  .info-code .code-row:nth-child(4n+3) { transform: rotate(.5deg); }
  .info-code .code-row:nth-child(4n) { transform: rotate(-.6deg); }
}
/* a wide wall: three posters across, the middle one pinned lower, tilts alternating */
@media (min-width: 90em) {
  .info-code .code-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; }
  .info-code .code-list::after { display: none; }
  .info-code .code-row:nth-child(3n+2) { margin-top: 36px; }
  .info-code .code-row:nth-child(odd) { transform: rotate(-1.5deg); }
  .info-code .code-row:nth-child(even) { transform: rotate(1.5deg); }
  .info-code .code-row dd { max-width: 45ch; }
}
@media (max-width: 15em) {
  .info-code .code-row { padding: 18px 8px 10px; box-shadow: 4px 4px 0 var(--c2); }
  .info-code .code-row dd { font-size: 1rem; }
  .info-code .code-row::before { width: 56px; margin-left: -28px; }
}

/* ===================== Visit: a street sign, the map and wayfinding signs ===================== */
.info-visit .find { max-width: none; margin: 0; padding: 0; }
.info-visit .address { margin: 8px 0 64px; max-width: none; font-size: 1rem; }
.info-visit .address strong { position: relative; display: inline-block; max-width: 100%; padding: .32em .7em .26em; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: .02em;
  font-size: max(1.3rem, min(2.6rem, 9.5vw)); line-height: 1; color: var(--ink); background: var(--gold); border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 5px var(--ink), 6px 6px 0 var(--pink); }
/* the two bolts that hold the sign */
.info-visit .address strong::before, .info-visit .address strong::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--ink); }
.info-visit .address strong::before { left: 10px; } .info-visit .address strong::after { right: 10px; }
.info-visit .map-card { position: relative; overflow: visible; border-radius: 0; border: 2px solid var(--cyan); background: var(--well); box-shadow: var(--off) var(--off) 0 var(--pink); margin: 0 0 24px; }
.info-visit .map-card img { display: block; width: 100%; height: auto; }
.info-visit .map-card:hover { border-color: var(--gold); }
.info-visit .map-card:focus-visible { outline-offset: 10px; }
.info-visit .map-card::after { position: absolute; right: 14px; top: -64px; width: 58px; height: 64px; }
.info-visit .btn-row { margin: 0 0 32px; gap: 14px 16px; }
/* each fact is a wayfinding sign: a pointed plate, the words under it */
.info-visit .facts-dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0 0 40px; container-type: inline-size; }
.info-visit .facts-dl dt { --c1: var(--pink); justify-self: start; position: relative; max-width: calc(100% - 18px); margin: 0 0 10px; padding: .55em 1.6em .5em .8em; font-family: var(--f-label); font-size: min(max(.706rem, min(.8rem, 4.2vw)), 6.4cqi); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3;
  color: var(--ink); background: var(--c1); clip-path: polygon(0 0, calc(100% - 1.1em) 0, 100% 50%, calc(100% - 1.1em) 100%, 0 100%); }
.info-visit .facts-dl dt:nth-of-type(5n+2) { --c1: var(--gold); } .info-visit .facts-dl dt:nth-of-type(5n+3) { --c1: var(--cyan); }
.info-visit .facts-dl dt:nth-of-type(5n+4) { --c1: var(--orange); } .info-visit .facts-dl dt:nth-of-type(5n) { --c1: var(--gold); }
.info-visit .facts-dl dd { margin: 0 0 26px; padding: 0 0 0 16px; border-left: 3px solid var(--edge); font-size: 1.03rem; line-height: 1.6; max-width: 60ch; }
.info-visit .facts-dl dd a { padding-block: 3px; }
.info-visit .find > h2, .info-visit .two-halves h2, .info-visit .hi-chris h2 { margin-top: 0; }
.info-visit .glance { max-width: none; margin: 0 0 56px; padding: 20px 22px; border-radius: 0; background: var(--surface); border: 2px solid var(--gold); box-shadow: var(--off) var(--off) 0 var(--orange); font-size: 1.03rem; line-height: 1.6; }
.info-visit .two-halves, .info-visit .hi-chris { position: relative; max-width: 46rem; margin: 0 0 48px; padding: 24px 22px; background: var(--surface); border: 2px solid var(--orange); box-shadow: var(--off) var(--off) 0 var(--cyan); }
.info-visit .hi-chris { border-color: var(--cyan); box-shadow: var(--off) var(--off) 0 var(--pink); }
.info-visit :is(.two-halves, .hi-chris) p { max-width: 65ch; font-size: 1.03rem; line-height: 1.6; margin-bottom: 0; }
@media (min-width: 64em) {
  .wrap.narrow.info-visit { max-width: calc(var(--shell-w) + 2 * var(--pad-x)); }
  .info-visit .find { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 56px; align-items: start; }
  .info-visit .find > * { grid-column: 1; }
  .info-visit .find > .address { grid-row: 1; }
  .info-visit .find > .btn-row { grid-row: 2; }
  .info-visit .find > .facts-dl { grid-row: 3 / span 3; }
  .info-visit .find > .map-card { grid-column: 2; grid-row: 1 / span 3; margin-top: 8px; }
  .info-visit .find > h2 { grid-column: 2; grid-row: 4; margin-top: 24px; }
  .info-visit .find > .glance { grid-column: 2; grid-row: 5; }
  /* the street plate is sized to its column, so it reads as one sign on one line */
  .info-visit .address { margin-bottom: 32px; container-type: inline-size; }
  .info-visit .address strong { transform: rotate(-1.5deg); font-size: min(2.6rem, 5.2cqi); text-wrap: balance; }
  .info-visit .map-card { transform: rotate(.8deg); }
  .info-visit .map-card::after { width: 84px; height: 92px; top: -92px; right: 28px; }
  /* the closing cards run the full width on the same two columns as above: title left, words right */
  .info-visit :is(.two-halves, .hi-chris) { max-width: none; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 56px; align-items: center; padding: 32px 36px; }
  .info-visit :is(.two-halves, .hi-chris) h2 { margin: 0; }
  .info-visit :is(.two-halves, .hi-chris) p { margin: 0; }
  .info-visit .two-halves { transform: rotate(-.6deg); }
  .wrap.narrow.info-visit { padding-bottom: 56px; }
  .info-visit > :last-child { margin-bottom: 0; }
}
@media (min-width: 34em) and (max-width: 63.99em) { .info-visit .map-card img { aspect-ratio: 16 / 7; object-fit: cover; } }
@media (max-width: 15em) {
  .info-visit .address strong { padding: .3em .45em; box-shadow: inset 0 0 0 2px var(--gold), inset 0 0 0 3px var(--ink), 3px 3px 0 var(--pink); }
  .info-visit .address strong::before, .info-visit .address strong::after, .info-visit .map-card::after { display: none; }
  .info-visit :is(.glance, .two-halves, .hi-chris) { padding: 12px; }
  .info-visit .facts-dl dd { padding-left: 8px; }
}

/* ===================== The ticket: an arcade ticket with a torn-off stub ===================== */
.ticket-page .ticket-stub { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 42rem; margin: 0 0 36px; padding: 0; border: 3px solid var(--ink); border-radius: 0; background: var(--gold); color: var(--ink);
  box-shadow: 7px 7px 0 var(--pink); -webkit-mask: none; mask: none; }
.ticket-page .stub-main { padding: 22px 22px 18px; min-width: 0; }
.ticket-page .stub-top { margin: 0 0 12px; font-family: var(--f-label); font-weight: 700; font-size: max(.706rem, min(.82rem, 4.4vw)); letter-spacing: .06em; line-height: 1.7; color: var(--ink); }
.ticket-page .stub-seats { margin: 0; text-wrap: balance; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: .01em; font-size: max(1.4rem, min(3.2rem, 11vw)); line-height: .95; color: var(--ink); }
.ticket-page .stub-kept, .ticket-page .stub-by { margin: 10px 0 0; color: var(--ink); font-weight: 600; }
.ticket-page .stub-by { display: inline-block; padding: 2px 10px; border: 2px solid var(--ink); }
/* the stub: perforation, punched notches, a printed bar code and the disco ball (all drawn, none of it words) */
.ticket-page .stub-end { position: relative; min-height: 76px; border-top: 3px dashed var(--ink); background:
  url(/assets/room/ball.svg) right 14px center / auto 64px no-repeat,
  repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 6px, var(--ink) 6px 7px, transparent 7px 10px, var(--ink) 10px 14px, transparent 14px 16px) left 16px center / calc(100% - 110px) 44px no-repeat,
  var(--pink); }
.ticket-page .stub-end::before, .ticket-page .stub-end::after { content: ""; position: absolute; top: -14px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 3px solid var(--ink); }
.ticket-page .stub-end::before { left: -15px; } .ticket-page .stub-end::after { right: -15px; }
@media (min-width: 34em) {
  .ticket-page .ticket-stub { grid-template-columns: minmax(0, 1fr) 7.5rem; }
  .ticket-page .stub-main { padding: 26px 28px 24px; }
  .ticket-page .stub-end { border-top: 0; border-left: 3px dashed var(--ink); background:
    url(/assets/room/ball.svg) center 0 / auto 54% no-repeat,
    repeating-linear-gradient(0deg, var(--ink) 0 3px, transparent 3px 6px, var(--ink) 6px 7px, transparent 7px 10px, var(--ink) 10px 14px, transparent 14px 16px) center bottom 16px / 60% 32% no-repeat,
    var(--pink); }
  .ticket-page .stub-end::before, .ticket-page .stub-end::after { top: auto; left: -15px; right: auto; }
  .ticket-page .stub-end::before { top: -15px; } .ticket-page .stub-end::after { bottom: -15px; }
}
@media (min-width: 64em) { .ticket-page .ticket-stub { transform: rotate(-1deg); } }
@media (prefers-reduced-motion: no-preference) {
  .ticket-page .ticket-stub { animation: room-ticket-in 420ms cubic-bezier(.2, .9, .3, 1.2) 1 both; }
  @media (min-width: 64em) { .ticket-page .ticket-stub { animation-name: room-ticket-in-tilt; } }
}
@keyframes room-ticket-in { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes room-ticket-in-tilt { from { transform: translateY(18px) rotate(-1deg); opacity: 0; } to { transform: rotate(-1deg); opacity: 1; } }

/* the actions: one full-width button per row on phones, icon and label together at the left; from 34em they pack
   into rows by their own length, each row filled, so no label wraps inside a half-width cell */
.ticket-page .actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 42rem; margin: 0 0 20px; padding: 0; list-style: none; }
.ticket-page .actions li { max-width: none; }
.ticket-page :is(.actions, .cal-sub) .pill { width: 100%; justify-content: flex-start; gap: 12px; text-align: left; }
/* the share answer stays in the page (a live region must exist before its text arrives); it takes no room while empty */
.ticket-page .cal-sub .cta-row { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 34em) {
  .ticket-page .actions { display: flex; flex-wrap: wrap; gap: 18px 20px; }
  .ticket-page .actions li { flex: 1 1 auto; }
  .ticket-page .cal-sub .cta-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 20em) { .ticket-page .stub-time { white-space: nowrap; } }
.ticket-page .actions + .hint { margin: 0 0 32px; max-width: 42rem; }
.ticket-page .before-come { position: relative; max-width: 42rem; margin: 96px 0 32px; padding: 26px 22px 12px; background: var(--surface); border: 2px solid var(--cyan); box-shadow: var(--off) var(--off) 0 var(--pink); }
.ticket-page .before-come h2 { font-size: max(1.3rem, min(2.4rem, 10vw)); text-shadow: .045em .045em 0 var(--pink); margin-bottom: .4em; }
.ticket-page .before-come::after { position: absolute; right: 16px; top: -66px; width: 60px; height: 66px; }
.ticket-page .bc-list { list-style: none; margin: 0; padding: 0; }
.ticket-page .bc-list li { position: relative; padding: 0 0 14px 34px; font-size: 1.03rem; line-height: 1.6; }
.ticket-page .bc-list li::before { content: ""; position: absolute; left: 0; top: .28em; width: 16px; height: 16px; border: 2px solid var(--cyan); box-shadow: 3px 3px 0 var(--pink); }
.ticket-page .cal-sub { max-width: 42rem; margin: 0 0 32px; }
.ticket-page .cal-sub h2 { font-family: var(--f-label); font-size: max(.706rem, min(.82rem, 4.4vw)); font-weight: 700; letter-spacing: .1em; line-height: 1.4; color: var(--gold); text-shadow: none; text-transform: uppercase; margin: 0 0 12px; }
.ticket-page .cal-sub .cta-row { margin-top: 0; gap: 14px 16px; }
.ticket-page :is(.change, .gallery-line) { max-width: 42rem; margin: 0 0 16px; padding: 14px 16px; background: var(--band); border-left: 6px solid var(--pink); color: var(--text); line-height: 1.6; }
.ticket-page .gallery-line { border-left-color: var(--cyan); }
/* desktop: the ticket and its buttons on the left, what to know on the right, starting level with the ticket */
@media (min-width: 64em) {
  .wrap.narrow.ticket-page { max-width: calc(var(--shell-w) + 2 * var(--pad-x)); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(48px, 5vw, 96px); align-items: start; }
  .ticket-page > * { grid-column: 1; }
  .ticket-page > h1 { grid-column: 1 / -1; }
  .ticket-page > .ticket-stub { grid-row: 2; }
  .ticket-page > .actions { grid-row: 3; }
  .ticket-page > .hint { grid-row: 4; }
  .ticket-page > .before-come { grid-column: 2; grid-row: 2 / span 3; margin: 0 0 32px; }
  .ticket-page > .cal-sub { grid-column: 2; grid-row: 5 / span 2; }
  .ticket-page > .change { grid-row: 5; }
  .ticket-page > .gallery-line { grid-row: 6; }
  .ticket-page > :is(.ticket-stub, .actions, .hint, .before-come, .cal-sub, .change, .gallery-line) { max-width: none; }
  .ticket-page .before-come::after { display: none; } /* the footer dog is on this screen */
}
@media (max-width: 15em) {
  .ticket-page .stub-main { padding: 14px 12px; }
  .ticket-page .stub-end { background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 6px) center / 70% 40% no-repeat, var(--pink); min-height: 48px; }
  .ticket-page .stub-end::before, .ticket-page .stub-end::after, .ticket-page .before-come::after { display: none; }
  .ticket-page .before-come { padding: 12px; }
  .ticket-page .bc-list li { padding-left: 24px; }
  .ticket-page :is(.change, .gallery-line) { padding: 8px 10px; border-left-width: 4px; }
}

/* The ticket's other states (not found, still paying, cancelled, the confirm page): a ticket card of their own. */
.note-ticket { position: relative; max-width: 38rem; margin: 8px 0 32px; padding: 24px 22px; background: var(--surface); border: 3px solid var(--gold); box-shadow: var(--off) var(--off) 0 var(--pink); }
.note-ticket .sub { margin: 0; max-width: 60ch; }
.note-ticket .cta-row { margin-top: 22px; }
.is-wait .note-ticket { border-style: dashed; border-color: var(--cyan); }
/* a void ticket: dashed pink edge and a hatched end (a strip along the top on phones, down the side from 34em) */
.is-void .note-ticket { border: 3px dashed var(--pink); box-shadow: var(--off) var(--off) 0 var(--cyan); padding-top: 42px; }
.is-void .note-ticket::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 20px; border-bottom: 3px dashed var(--pink); pointer-events: none;
  background: repeating-linear-gradient(-45deg, var(--pink) 0 3px, var(--well) 3px 9px); }
/* the short states end at the card: the footer follows at the shell's usual spacing */
@media (max-width: 47.99em) {
  .wrap.narrow:is(.ticket-note, .os-missing, .fb-page) { padding-bottom: 24px; }
  :is(.ticket-note, .os-missing, .fb-page) :is(.note-ticket, .os-void, .fb-card) { margin-bottom: 0; }
}
@media (min-width: 34em) { .is-void .note-ticket { padding: 24px 64px 24px 22px; } .is-void .note-ticket::before { left: auto; bottom: 0; height: auto; width: 40px; border-bottom: 0; border-left: 3px dashed var(--pink); } }
@media (min-width: 64em) { .note-ticket { transform: rotate(-.8deg); } .is-void .note-ticket { transform: rotate(.8deg); } }
@media (max-width: 15em) { .note-ticket, .is-void .note-ticket { padding: 12px; } .is-void .note-ticket::before { display: none; } }

/* ===================== Order status: a print shop job ticket ===================== */
.os-page .os-note { text-wrap: balance; }
/* the table still: on phones the wider desk picture, centred on the coaster and the can (the phone crop is all dog);
   from 48em the heading breaks into two lines inside a veil that reaches further right */
@media (max-width: 47.99em) { .page-art[data-stop="table"]:has(~ .os-page)::before { background-image: var(--still-desk); background-position: 50% 40%; } }
@media (min-width: 48em) {
  .os-page h1 { max-width: 10ch; }
  .page-art[data-stop="table"]:has(~ .os-page)::after { background: linear-gradient(to bottom, rgba(11, 2, 20, 0) 44%, rgba(11, 2, 20, .9) 84%), linear-gradient(90deg, rgba(11, 2, 20, .92) 0, rgba(11, 2, 20, .86) 45%, rgba(11, 2, 20, 0) 72%); }
}
.job-ticket { position: relative; max-width: 64rem; margin: 8px 0 36px; padding: 0 22px 24px 34px; background: var(--surface); border: 2px solid var(--orange); box-shadow: var(--off) var(--off) 0 var(--gold); }
/* punched holes: centred on the left edge (half outside), whole holes only, never cut by the top or bottom edge */
.job-ticket::before { content: ""; position: absolute; left: -9px; top: 20px; bottom: 20px; width: 16px; pointer-events: none;
  background: radial-gradient(circle, var(--bg) 0 4px, var(--ink) 4.5px 5.5px, var(--orange) 6px 6.8px, transparent 7.2px) center top / 16px 32px repeat-y; background-repeat: no-repeat space; }
.job-head { margin: 0 -22px 22px 0; padding: 18px 22px 14px 0; border-bottom: 3px dashed var(--orange); }
.job-head .os-number { margin: 0; font-family: var(--f-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: max(.706rem, min(.94rem, 4.6vw)); color: var(--gold); }
.job-head .os-items { margin: 8px 0 0; font-size: 1.06rem; }
.os-page .os-steps { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; padding: 0; counter-reset: none; }
.os-page .os-steps li { position: relative; display: block; min-height: 64px; max-width: none; margin: 0; padding: 6px 0 18px 54px; border: 0; border-radius: 0; background: none; color: var(--text); line-height: 1.45; }
/* the node */
.os-page .os-steps li::before { content: ""; position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--edge); background: var(--bg); box-sizing: border-box; }
/* the track to the next node */
.os-page .os-steps li::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 0; width: 4px; background: var(--edge); }
.os-page .os-steps li:last-child::after { display: none; }
.os-page .os-steps li.os-done::before { background: var(--gold); border-color: var(--gold); }
.os-page .os-steps li.os-done::after { background: var(--gold); }
.os-page .os-steps li.os-current::before { background: var(--pink); border-color: var(--pink); box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--pink); }
.os-page .os-steps li.os-upcoming::before { border-style: dashed; }
.os-page .os-steps li.os-upcoming::after { background: repeating-linear-gradient(var(--edge) 0 6px, transparent 6px 11px); }
.os-page .os-steps li.os-upcoming { color: var(--soft); }
.os-page .os-glyph { position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; margin: 0; color: var(--ink); font-weight: 700; font-size: 1.05rem; line-height: 1; }
.os-page .os-steps strong { display: block; font-size: 1.06rem; }
.os-page .os-steps li.os-current strong { color: var(--pink-300); font-size: 1.15rem; }
.os-page .os-note { display: block; color: var(--soft); font-weight: 400; font-size: .94rem; }
.os-page .os-steps li.os-current .os-note { color: var(--text); font-weight: 600; }
@media (min-width: 60em) {
  .wrap.narrow.os-page { max-width: calc(64rem + 2 * var(--pad-x)); }
  .os-page .os-steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .os-page .os-steps li { padding: 50px 14px 4px 0; min-height: 0; }
  .os-page .os-steps li::after { left: 34px; right: 0; top: 15px; bottom: auto; width: auto; height: 4px; }
  .os-page .os-steps li.os-upcoming::after { background: repeating-linear-gradient(90deg, var(--edge) 0 6px, transparent 6px 11px); }
  .job-ticket { transform: rotate(-.5deg); }
}
.os-next { max-width: 64rem; }
.os-next .sub { max-width: 60ch; }
.os-next .sub strong { color: var(--gold); }
.os-next .cta-row { margin-top: 16px; margin-bottom: 20px; }
.os-page > .change { margin-top: 28px; padding: 14px 16px; max-width: 42rem; background: var(--band); border-left: 6px solid var(--orange); color: var(--text); }
.os-void { position: relative; max-width: 38rem; margin: 8px 0 32px; padding: 42px 22px 24px; background: var(--surface); border: 3px dashed var(--orange); box-shadow: var(--off) var(--off) 0 var(--pink); }
.os-void::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 20px; border-bottom: 3px dashed var(--orange); pointer-events: none;
  background: repeating-linear-gradient(-45deg, var(--orange) 0 3px, var(--well) 3px 9px); }
@media (min-width: 34em) { .os-void { padding: 24px 64px 24px 22px; } .os-void::before { left: auto; bottom: 0; height: auto; width: 40px; border-bottom: 0; border-left: 3px dashed var(--orange); } }
.os-void .sub { margin: 0; } .os-void .cta-row { margin-top: 22px; }
/* a 320 phone: slimmer sides and body-size text on the void and note cards, so the email address in them fits on one line */
@media (min-width: 15.01em) and (max-width: 21.99em) { :is(.note-ticket, .os-void) { padding-inline: 14px; } :is(.note-ticket, .os-void) .sub { font-size: 1.059rem; } }
@media (max-width: 15em) {
  .job-ticket { padding: 0 10px 12px 12px; border-left-width: 6px; }
  .job-ticket::before { display: none; }
  .job-head { margin-right: -10px; padding-right: 10px; }
  .os-void::before { display: none; }
  .os-void { padding: 12px; }
  .os-page .os-steps li { padding-left: 44px; }
}

/* ===================== The fallback page (any render fault) ===================== */
.fb-card { position: relative; max-width: 40rem; margin: 8px 0 40px; padding: 24px 22px; background: var(--surface); border: 2px solid var(--accent); box-shadow: var(--off) var(--off) 0 var(--accent-2); }
.fb-card > :first-child { margin-top: 0; } .fb-card > :last-child { margin-bottom: 0; }
.fb-card .cta-row { margin-block: 24px; }
@media (max-width: 15em) { .fb-card { padding: 12px; } }

/* ===================== 404: drifted off the dance floor (the ball is in the art, the dog on the footer) ===================== */
.not-found .cta-row { gap: 16px 20px; }

/* ===================== Privacy: calm and readable ===================== */
.privacy .updated { opacity: 1; display: inline-block; max-width: 100%; margin: 0 0 28px; padding: 6px 14px; font-family: var(--f-body); font-weight: 600; font-size: 1rem; line-height: 1.5; color: var(--text); border: 2px solid var(--gold); background: var(--surface); }
/* a wide window: the ball on its rod and the dog keep the reader company in the right gutter (drawn, aria-free, no words) */
@media (min-width: 75em) {
  .privacy::before { content: ""; content: "" / ""; position: sticky; top: 28vh; float: right; width: 240px; height: 380px; margin: 0 -320px -380px 0; pointer-events: none;
    background: url(/assets/room/ball.svg) 50% 0 / auto 58% no-repeat, url(/assets/room/dog.svg) 50% 100% / auto 30% no-repeat; }
}
.privacy p, .privacy li { font-size: 1.059rem; line-height: 1.65; }
@media (min-width: 64em) { .privacy p, .privacy li { font-size: 1.125rem; } }
.privacy ul { padding-left: 1.3em; }
.privacy li { margin-bottom: .6em; }
.privacy li::marker { color: var(--pink); }
.privacy h2 { --c1: var(--pink); max-width: 46rem; margin: 1.5em 0 .5em; padding-top: .55em; border-top: 3px solid var(--c1); font-size: max(1.3rem, min(2.3rem, 9vw)); line-height: 1; text-shadow: .05em .05em 0 var(--c1); }
.privacy h2:nth-of-type(4n+2) { --c1: var(--cyan); } .privacy h2:nth-of-type(4n+3) { --c1: var(--gold); } .privacy h2:nth-of-type(4n) { --c1: var(--orange); }
.privacy code { font-size: .9em; padding: 1px 5px; background: var(--well); border: 1px solid var(--edge); color: var(--gold); }
.privacy a { overflow-wrap: anywhere; }

@media (max-width: 15em) { .privacy p, .privacy li { font-size: 1rem; } .privacy ul { padding-left: 1em; } }

/* ===================== Every page here, high contrast and forced colours ===================== */
@media (prefers-contrast: more) {
  .info-help .faq-group h2, .info-visit .address strong { box-shadow: none; }
}
@media (forced-colors: active) {
  .info-help .faq-group:first-of-type::after, .info-visit .map-card::after, .ticket-page .before-come::after,
  .info-code .code-list::after, .info-code .code-row::before, .ticket-page .stub-end, .is-void .note-ticket::before, .os-void::before,
  .info-visit .address strong::before, .info-visit .address strong::after { display: none; }
  .info-help .faq-group h2, .info-visit .facts-dl dt, .info-visit .address strong { forced-color-adjust: auto; border: 2px solid CanvasText; box-shadow: none; clip-path: none; }
  .info-code .code-row, .ticket-page .ticket-stub, .ticket-page .before-come, .note-ticket, .job-ticket, .fb-card, .os-void, .info-visit :is(.glance, .two-halves, .hi-chris, .map-card) { box-shadow: none; border: 2px solid CanvasText; background-image: none; }
  /* done = filled disc with a tick, current = hollow double ring with an arrow, coming up = plain ring */
  .os-page .os-steps li::before, .os-page .os-glyph { forced-color-adjust: none; }
  .os-page .os-steps li::before { border: 2px solid CanvasText; background: Canvas; box-shadow: none; }
  .os-page .os-steps li.os-done::before { background: CanvasText; }
  .os-page .os-steps li.os-current::before { background: Canvas; border: 6px double CanvasText; }
  .os-page .os-glyph { color: Canvas; }
  .os-page .os-steps li.os-current .os-glyph { color: CanvasText; }
  .job-ticket::before { display: none; }
}
