/*
 * Bretzel: extra-lab.css (draft)
 * The Playground and the 404 page in the lab's language (pages_extra.py, 2026-11-11). Both sit under
 * the printed nav strip (work-lab.css, .wk-head) and close on footer C; what's their own is here.
 * Hero D's styles come after this file, inline in the page: a rule that changes one of them carries
 * one class more.
 */

/* ════════════════════════════════════════
   THE HEROES: the title printed on the grid paper, the hand's strip of tape, the tape buttons.
   On a phone the print fills the width at most: --lw (set by the builder) is its widest line in em.
════════════════════════════════════════ */
.opt-d .hero.pg-head .copy.pg-copy { padding: clamp(34px, 6.5vh, 80px) var(--pad) clamp(64px, 11vh, 128px); }
.opt-d .print.pg-print, .pg-rulesline { font-size: clamp(56px, min(8.4vw, 14.5vh), 148px); }
/* NO RULES. under the title, as Our Labs' UNDER ONE ROOF.: its top over the foot of GROUND. */
.pg-rulesline { position: relative; z-index: 5; line-height: 1; margin-top: -0.14em; }
.pg-rules { position: relative; left: 0.45em; display: block; margin-inline: auto; filter: drop-shadow(0 1px 1px rgba(30, 24, 18, 0.18)); }
/* the live words in two sentences, one line each where there's room */
.opt-d .pg-copy .sub { max-width: 64ch; margin-top: clamp(12px, 2.4vh, 28px); text-wrap: balance; }
.pg-copy .ctas, .x4-copy .ctas { margin-top: clamp(20px, 3.6vh, 38px); }

/* the 404: the whole first screen, the message in the middle of the sheet */
.opt-d .hero.x4-head { min-height: 100vh; min-height: 100svh; }
.opt-d .hero.x4-head .copy.x4-copy { padding-bottom: clamp(70px, 13vh, 150px); }
.x4-k { margin-bottom: clamp(18px, 3.2vh, 34px); font: 600 12px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; mix-blend-mode: multiply; }
.x4-k.is-in, html:not(.js) .x4-k { opacity: 0.72; }
.opt-d .print.x4-print { font-size: clamp(44px, min(7.6vw, 13vh), 136px); }
/* OOPS! WRONG TURN., the home's strip with TWIST slapped over TURN (pages_extra.x4_strip places it); the
   full stop is printed after the strip and comes with it (right after TURN it would be under it) */
.x4-dot { transition: opacity 0.16s ease; }
.js .x4-dot:not(.is-in) { opacity: 0; }
.opt-d .x4-copy .sub { max-width: 40ch; text-wrap: balance; }

/* ════════════════════════════════════════
   PLAYGROUND · the desk: each experiment a print or a polaroid, taped down where it fell
════════════════════════════════════════ */
.pg-sec { position: relative; padding: clamp(64px, 7vw, 120px) 0 clamp(30px, 4vw, 70px); }
.pg-sec__head { width: min(1240px, 100% - 2 * var(--pad)); margin: 0 auto; color: #ece9e2; }
.pg-sec__head .mx-label { margin: 0; }
.pg-desk {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: start;
  width: min(1240px, 100% - 2 * var(--pad)); margin: clamp(34px, 4vw, 64px) auto 0;
}
.pg-x {
  position: relative; margin: 0; rotate: var(--r, 0deg);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4)) drop-shadow(0 16px 22px rgba(0, 0, 0, 0.32));
  transition: opacity 0.5s ease, translate 0.7s cubic-bezier(0.22, 1, 0.36, 1), scale 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* picked up a little when you point at it */
.pg-x:hover { transform: translateY(-6px) rotate(calc(var(--r, 0deg) * -0.5)); }
.pg-x__img { display: block; width: 100%; height: auto; }
.pg-x__tape { position: absolute; z-index: 2; width: 21%; height: auto; rotate: var(--tr); pointer-events: none; }
.pg-x__tape--l { left: -6%; top: -3.5%; }
.pg-x__tape--r { right: -6%; top: -3.5%; }
.pg-x__tape--c { left: 50%; top: -4.5%; width: 44%; translate: -50% 0; }
/* the tag, on a label of tape stuck over the print's foot. Its height is the English label's at 30% of
   the print (170 / 666 of that), so a longer word (VERPACKUNG) makes the label longer, not its letters smaller */
.pg-x__tag { position: absolute; z-index: 2; left: 5%; bottom: -5.5%; width: 30%; height: auto; rotate: var(--tr);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.28)); }
@supports (width: 1cqw) {
  .pg-x--print { container-type: inline-size; }
  .pg-x__tag { width: auto; height: 7.66cqw; }
}

/* where they fell: the big prints across, the polaroids beside them */
.pg-x--a { grid-column: 1 / span 7; grid-row: 1; }
.pg-x--b { grid-column: 9 / span 4; grid-row: 1; margin-top: clamp(44px, 7vw, 110px); }
.pg-x--c { grid-column: 2 / span 4; grid-row: 2; margin-top: clamp(26px, 3.4vw, 56px); }
.pg-x--d { grid-column: 6 / span 7; grid-row: 2; margin-top: clamp(80px, 10vw, 160px); }

/* the closing sheet, on the desk after the experiments */
.pg-main .tear--close { margin-top: clamp(70px, 9vw, 150px); }

/* ════════════════════════════════════════
   SMALL SCREENS + MOTION
════════════════════════════════════════ */
@media (max-width: 900px) {
  .opt-d .print.pg-print, .pg-rulesline { font-size: min(calc((100vw - 2 * var(--pad)) / var(--lw, 5.1)), 120px); }
  .opt-d .print.x4-print { font-size: min(calc((100vw - 2 * var(--pad)) / var(--lw, 5.8)), 120px); }
  .pg-rules { left: 0; }
  .x4-copy .btn-tape img { height: clamp(42px, 5.4vh, 56px); }
  /* the prints across the desk, the two polaroids side by side between them */
  .pg-desk { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; row-gap: clamp(40px, 8vw, 64px); }
  .pg-x--a, .pg-x--b, .pg-x--c, .pg-x--d { grid-row: auto; margin-top: 0; }
  .pg-x--a, .pg-x--d { grid-column: 1 / -1; }
  .pg-x--b { grid-column: 1; }
  .pg-x--c { grid-column: 2; margin-top: 28px; }
  .pg-x__tag { width: 40%; }
  @supports (width: 1cqw) { .pg-x__tag { width: auto; height: 10.21cqw; } }
}
@media (max-width: 600px) {
  .pg-br { display: none; }        /* a phone wraps the two sentences as one */
}
@media (prefers-reduced-motion: reduce) {
  .pg-x, .x4-dot { transition: none; }
  .pg-x:hover { transform: none; }
}
