/* Photobooth "ROOMS" — per-experience-style skins (see architecture.md §20).
   A room style is chosen at creation (START) and broadcast in the snapshot; app.js
   mirrors it onto <body data-room="…">, and everything here keys off that attribute.
   Classic is the default look (app.css untouched). Vintage restyles the SAME markup —
   scenes don't branch on style except the booth's chrome (booth.js _applyVintage /
   _applyMeme). The meme room's block is at the bottom of this file.

   Vintage = a 1930s coin-op "photo automat": warm smoky room light, a brushed-metal
   cabinet with rivets, an enamel marquee, red velvet curtains that part when your
   camera comes alive, and a printed/aged strip. Textures in /client/rooms/vintage/
   (curtain.webp, metal.webp, paper.webp) with gradient fallbacks underneath, so the
   skin still reads right while they load. */

/* ---- the room itself: warm, yellowed, industrial ---------------------------- */
body[data-room="vintage"] {
  /* Token overrides: every scene inherits the vintage material automatically. */
  --paper:        #3a332a;
  --paper-raised: #4a4136;
  --ink:          #f2e7cf;
  --ink-soft:     #c8b795;
  --line:         #60543f;
  --pink-tint:    #5c3c46;
  --blue-tint:    #3c4a5c;
  --font-display: "Gowun Batang", "Pretendard", serif;
  --shadow-soft:  0 10px 32px rgba(0, 0, 0, 0.45);

  background:
    /* a warm tungsten lamp from above, industrial gloom pooling at the floor */
    radial-gradient(1100px 700px at 50% -8%, rgba(255, 208, 130, 0.16), transparent 60%),
    radial-gradient(150% 90% at 50% 118%, rgba(12, 9, 5, 0.6), transparent 55%),
    linear-gradient(180deg, #4a4034, #3a332a 55%, #2e2820);
  background-attachment: fixed;
}

/* Faint animated film grain over the whole room (not just the booth) — the entire
   session feels like found footage. Non-interactive and very quiet (4%). */
body[data-room="vintage"]::after {
  content: "";
  position: fixed;
  inset: -60px;
  z-index: 2147483000; /* above app content; pointer-events off so it never blocks */
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: room-grain 900ms steps(3) infinite;
}
@keyframes room-grain {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-24px, 14px); }
  66%  { transform: translate(18px, -20px); }
  100% { transform: translate(0, 0); }
}

/* ---- vintage typography ------------------------------------------------------ */
body[data-room="vintage"] .brand-mark,
body[data-room="vintage"] .choice-title {
  font-family: "Gowun Batang", serif;
  font-style: italic;
  letter-spacing: 0;
}
body[data-room="vintage"] .eyebrow {
  font-family: "Space Mono", monospace;
  color: var(--ink-soft);
}

/* ---- controls in brass & enamel ---------------------------------------------- */
body[data-room="vintage"] .btn-primary {
  background: linear-gradient(180deg, #ecdaae 0%, #d4b57c 55%, #b9975c 100%);
  color: #3a2c17;
  border: 1px solid #8a6f42;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 3px 10px rgba(0, 0, 0, 0.35);
}
body[data-room="vintage"] .btn-primary.is-ready {
  background: linear-gradient(180deg, #b9d4a4 0%, #8fb479 55%, #74995f 100%);
  border-color: #5c7a4a;
  color: #22301a;
}
body[data-room="vintage"] .choice-card,
body[data-room="vintage"] .group-toggle,
body[data-room="vintage"] .pack-card,
body[data-room="vintage"] .room-card {
  background:
    linear-gradient(180deg, rgba(255, 240, 205, 0.045), rgba(0, 0, 0, 0.12)),
    var(--paper-raised);
}
body[data-room="vintage"] .room-card.is-on {
  border-color: #d4b57c;
  box-shadow: 0 0 0 1px rgba(212, 181, 124, 0.35), var(--shadow-soft);
}
body[data-room="vintage"] .code-cell,
body[data-room="vintage"] .text-input {
  background: #2e2820;
  color: var(--ink);
}

/* ---- the machine: a 1930s photo automat around the booth stage ---------------
   Markup built by booth.js _applyVintage():
     .machine > .machine-marquee
              > .machine-body   > .machine-rail.is-left | .machine-center(.booth-stage) | .machine-rail.is-right
              > .machine-base   > .machine-plate | .machine-slot                      */
.machine {
  width: min(100%, 720px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* The lit enamel sign on top — cream lightbox, dark script, softly glowing. */
.machine-marquee {
  align-self: center;
  margin-bottom: 10px;
  padding: 6px 34px 9px;
  background:
    radial-gradient(120% 160% at 50% 0%, #fbf3dc 0%, #efe1bd 70%, #e2cfa2 100%);
  border: 3px solid #6e6252;
  border-radius: 3px;
  box-shadow:
    0 0 26px rgba(255, 226, 150, 0.28),
    inset 0 0 14px rgba(120, 90, 40, 0.25),
    0 4px 14px rgba(0, 0, 0, 0.4);
}
.machine-marquee-text {
  font-family: "Gowun Batang", serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(20px, 4.2vw, 30px);
  color: #241c10;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* The cabinet: brushed metal (photo texture over a metal gradient) + rivet rails. */
.machine-body {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.22)),
    url("/client/rooms/vintage/metal.webp") center / cover,
    linear-gradient(180deg, #9a948a, #7d766c);
  border: 2px solid #59503f;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.machine-rail {
  /* a column of rivets down each side, like the automat's panel seams */
  background-image: radial-gradient(circle 3px at 50% 13px, rgba(255, 252, 240, 0.75) 0 1.4px, rgba(40, 32, 20, 0.55) 2.2px, transparent 3.2px);
  background-size: 100% 30px;
  background-repeat: repeat-y;
  background-position: center 8px;
}
.machine-center {
  padding: 14px 10px;
  /* the booth interior behind the curtain gap — near-black warm */
  background: linear-gradient(180deg, #17130e, #241d15);
  border-left: 2px solid #59503f;
  border-right: 2px solid #59503f;
  min-width: 0;
}

/* Base strip under the stage: the instruction plate + the dispensing slot. */
.machine-base {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--s2);
  padding: 12px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.3)),
    url("/client/rooms/vintage/metal.webp") center / cover,
    linear-gradient(180deg, #8d867b, #6d665c);
  border: 2px solid #59503f;
  border-radius: 0 0 4px 4px;
  box-shadow: var(--shadow-soft);
}
.machine-plate {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  background: radial-gradient(140% 200% at 50% 0%, #f6ecd2 0%, #e7d6ae 100%);
  border: 2px solid #5f5442;
  border-radius: 2px;
  box-shadow: inset 0 0 10px rgba(110, 84, 40, 0.22);
  min-width: 0;
}
.machine-plate-title {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.28em;
  color: #241c10;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.machine-plate-sub {
  font-family: "Gowun Batang", serif;
  font-style: italic;
  font-size: 11.5px;
  color: rgba(36, 28, 16, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.machine-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.machine-slot-mouth {
  width: 120px;
  height: 10px;
  background: linear-gradient(180deg, #050403, #1c160f);
  border: 2px solid #4c4232;
  border-radius: 2px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.2);
}
.machine-slot-ready {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #3a3123;
  background: #e7d6ae;
  border: 1px solid #5f5442;
  border-radius: 2px;
  padding: 2px 8px;
}
.machine-lamp {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7a6a4a;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.5);
  transition: background 300ms ease, box-shadow 300ms ease;
}
.machine-lamp.is-on {
  background: #ffb43a;
  box-shadow: 0 0 8px rgba(255, 180, 58, 0.9);
}
.machine-lamp.is-blink { animation: lamp-blink 1s steps(2) infinite; }
@keyframes lamp-blink {
  0%, 100% { background: #ffb43a; box-shadow: 0 0 8px rgba(255, 180, 58, 0.9); }
  50%      { background: #7a6a4a; box-shadow: none; }
}

/* ---- the velvet curtains over the live feeds ---------------------------------
   Two halves inside .booth-feeds (which is the exact strip-cell box). Closed until
   the local camera is live, then they slide apart — stepping into the booth. */
body[data-room="vintage"] .booth-feeds { position: relative; }
.booth-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 51%;
  z-index: 4;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 30%),
    url("/client/rooms/vintage/curtain.webp") center / cover,
    repeating-linear-gradient(90deg, #6d1420 0 14px, #8a1e2c 14px 26px, #5c101a 26px 40px);
  box-shadow: inset 0 -12px 22px rgba(0, 0, 0, 0.5);
  transition: transform 1600ms cubic-bezier(0.65, 0, 0.25, 1);
  will-change: transform;
}
.booth-curtain.is-left  { left: 0;  border-right: 3px solid rgba(20, 4, 6, 0.8); }
.booth-curtain.is-right { right: 0; border-left: 3px solid rgba(20, 4, 6, 0.8); }
.booth-curtain.is-left.is-open  { transform: translateX(-104%); }
.booth-curtain.is-right.is-open { transform: translateX(104%); }

/* ---- grainy live view ---------------------------------------------------------
   PREVIEW-ONLY (architecture.md §0): a CSS filter + noise overlay on the on-screen
   feeds. The real captured frames are untouched — the strip gets its vintage look
   from the 'automat' FILTER at render time. */
body[data-room="vintage"] .booth-video {
  filter: sepia(0.42) contrast(1.12) saturate(0.72) brightness(0.98);
}
body[data-room="vintage"] .booth-feeds::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: room-grain 800ms steps(4) infinite;
  /* plus a soft projector vignette on the feed corners */
  box-shadow: inset 0 0 60px rgba(10, 6, 2, 0.55);
}
body[data-room="vintage"] .countdown {
  font-family: "Gowun Batang", serif;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.75), 0 0 18px rgba(255, 214, 140, 0.35);
}
/* warm tungsten flash instead of pure white */
body[data-room="vintage"] .booth-flash { background: #ffe9c2; }

/* thumbs read as freshly-printed paper stubs sliding out of the slot */
body[data-room="vintage"] .booth-thumb {
  border: 3px solid #efe3c4;
  border-radius: 1px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  background: #efe3c4;
}
body[data-room="vintage"] .booth-thumb img { filter: sepia(0.35) contrast(1.08) saturate(0.8); }

/* the permission gate matches the room's gloom */
body[data-room="vintage"] .booth-gate { background: rgba(38, 32, 24, 0.93); }

/* ---- mobile ------------------------------------------------------------------ */
@media (max-width: 640px) {
  .machine-body { grid-template-columns: 16px 1fr 16px; }
  .machine-rail { background-size: 100% 24px; }
  .machine-center { padding: 10px 6px; }
  .machine-marquee { padding: 4px 22px 6px; }
  .machine-base {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: var(--s1);
    padding: 10px 12px;
  }
  .machine-plate { align-items: center; width: 100%; }
  .machine-plate-title { font-size: 12px; letter-spacing: 0.2em; }
}

/* =================================================================================
   VINTAGE COMPLETENESS PASS — the two players, every scene, and every overlay.

   THE VINTAGE ACCENT PALETTE (canonical — mirrored in Design.md §9). The classic pink
   and blue don't sit right against the warm dark room, so on vintage the SAME two
   player identities are re-dressed in period materials:

     player "pink" → VELVET ROSE  #D9705B   (tint #5B3A33) — the curtain's warm red
     player "blue" → BRASS GOLD   #D9A954   (tint #52422A) — the machine's fittings
     success green (on dark)      #8FBF9A
     error / warning (on dark)    #E0876C
     enamel cream (plates/tickets)#EFE3C4    ink on enamel  #2E2214

   Everything that says var(--pink)/var(--blue) — cursors, swatches, ready dots, feed
   tags, selection borders, sticker handles, the urgent timer — retints automatically.
   Below that: hardcoded light-mode colors in modals/overlays are re-materialized.  */
body[data-room="vintage"] {
  --pink:      #D9705B;
  --pink-tint: #5B3A33;
  --blue:      #D9A954;
  --blue-tint: #52422A;
}

/* The profile color choices keep their NAMES ("pink"/"blue") in the protocol; on
   vintage they read as velvet + brass, which is the point — same two people, new era. */

/* ---- ticket buttons -------------------------------------------------------------
   The shared next/ready button (.ready-btn on PROFILE/LAYOUT/THEME/EDIT/FILTER/
   DECORATE) becomes a 1930s admission ticket: the generated cutout rides on top of a
   brass gradient, so if the image hasn't loaded the button still reads brass. */
body[data-room="vintage"] .ready-btn {
  min-width: 190px;
  min-height: 58px;
  padding: 14px 34px;
  border: none;
  border-radius: 2px;
  background:
    url("/client/rooms/vintage/ticket.webp") center / 100% 100% no-repeat,
    linear-gradient(180deg, #ecdaae 0%, #d4b57c 55%, #b9975c 100%);
  color: #2e2214;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: none;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.45));
  transition: transform 120ms ease, filter 120ms ease;
}
body[data-room="vintage"] .ready-btn:hover:not(:disabled) {
  transform: translateY(-2px) rotate(-0.6deg);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)) brightness(1.04);
}
body[data-room="vintage"] .ready-btn.is-ready {
  color: #24391f;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.45)) sepia(0.25) hue-rotate(55deg) saturate(0.9);
}

/* ---- PROFILE — punch your name into the machine -------------------------------- */
body[data-room="vintage"] .profile-panel {
  padding: var(--s3);
  background:
    linear-gradient(180deg, rgba(255, 240, 205, 0.05), rgba(0, 0, 0, 0.16)),
    var(--paper-raised);
  border: 2px solid #59503f;
  border-radius: 3px;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
body[data-room="vintage"] .field-label {
  font-family: "Space Mono", monospace;
  letter-spacing: 0.24em;
}
/* the name goes on an engraved brass nameplate */
body[data-room="vintage"] .profile-panel .text-input {
  background: linear-gradient(180deg, #efe0b4, #d9c28c);
  border: 2px solid #59503f;
  border-radius: 2px;
  color: #2e2214;
  font-family: "Space Mono", monospace;
  letter-spacing: 0.08em;
  box-shadow: inset 0 2px 5px rgba(90, 66, 30, 0.35);
}
body[data-room="vintage"] .profile-panel .text-input::placeholder { color: rgba(46, 34, 20, 0.45); }
/* cursor swatches become bakelite machine buttons: deep bezel + brass ring on pick */
body[data-room="vintage"] .swatch {
  border: 3px solid #241f17;
  box-shadow:
    inset 0 4px 8px rgba(255, 255, 255, 0.28),
    inset 0 -5px 9px rgba(0, 0, 0, 0.4),
    0 3px 8px rgba(0, 0, 0, 0.5);
}
body[data-room="vintage"] .swatch.is-selected {
  border-color: #241f17;
  box-shadow:
    0 0 0 3px #d4b57c,
    inset 0 4px 8px rgba(255, 255, 255, 0.28),
    inset 0 -5px 9px rgba(0, 0, 0, 0.4),
    0 4px 10px rgba(0, 0, 0, 0.55);
}
body[data-room="vintage"] .peer-ready { color: #8fbf9a; }

/* ---- EDIT — the strip comes out of the dispenser -------------------------------- */
body[data-room="vintage"] .edit-right::before {
  content: "";
  width: min(356px, 92vw);
  aspect-ratio: 760 / 320; /* the cropped dispenser band's true shape */
  background: url("/client/rooms/vintage/dispenser.webp") center bottom / contain no-repeat;
  margin-bottom: calc(-1 * var(--s2) - 2px); /* the strip tucks under the slot */
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
  z-index: 1;
  pointer-events: none;
}
body[data-room="vintage"] .edit-strip {
  box-shadow: inset 0 0 0 1px rgba(46, 34, 20, 0.25), 0 14px 34px rgba(0, 0, 0, 0.5);
}
/* the pool reads as a pile of fresh sepia contact prints */
body[data-room="vintage"] .edit-pool-item {
  border: 3px solid #efe3c4;
  border-radius: 1px;
  background: #efe3c4;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}
body[data-room="vintage"] .edit-pool-item img { filter: sepia(0.35) contrast(1.08) saturate(0.8); }
body[data-room="vintage"] .edit-pool-item:hover { border-color: #d4b57c; }
body[data-room="vintage"] .edit-pool-item.is-placed { opacity: 0.38; filter: grayscale(0.4); }

/* ---- FILTER — swatch cards as mounted slides ------------------------------------ */
body[data-room="vintage"] .filter-card {
  background: transparent;
  border: none;
}
body[data-room="vintage"] .filter-sample {
  border: 5px solid #efe3c4;
  border-bottom-width: 16px;
  border-radius: 1px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
  background: #efe3c4;
}
body[data-room="vintage"] .filter-card.is-active .filter-sample {
  border-color: #d4b57c;
  box-shadow: 0 0 0 2px rgba(212, 181, 124, 0.4), 0 8px 18px rgba(0, 0, 0, 0.55);
}
body[data-room="vintage"] .filter-cap {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
body[data-room="vintage"] .gallery-dot { background: #6b5f4a; }
body[data-room="vintage"] .gallery-dot.is-active { background: #d4b57c; }

/* ---- THEME — pack boxes as the automat's sample drawers --------------------------- */
body[data-room="vintage"] .pack-card { border: 2px solid #59503f; border-radius: 3px; }
body[data-room="vintage"] .pack-label { font-family: "Gowun Batang", serif; font-style: italic; }
body[data-room="vintage"] .pack-sub { letter-spacing: 0.12em; text-transform: uppercase; font-size: 10px; }
/* the sample chips read as mounted print snippets */
body[data-room="vintage"] .pack-chip { box-shadow: 0 0 0 2px #efe3c4, 0 2px 6px rgba(0, 0, 0, 0.4); border-radius: 1px; }
body[data-room="vintage"] .pack-chip-more { background: #2e2820; color: var(--ink-soft); }
body[data-room="vintage"] .pack-back {
  background: #2e2820;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: "Space Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
/* keep the selection borders readable over the darker material */
body[data-room="vintage"] .theme-strip { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25), 0 3px 10px rgba(0, 0, 0, 0.35); }

/* ---- DOWNLOAD — the finished print under the dispenser --------------------------- */
body[data-room="vintage"] .dl-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
}
body[data-room="vintage"] .dl-preview::before {
  content: "";
  width: min(300px, 80vw);
  aspect-ratio: 760 / 320;
  background: url("/client/rooms/vintage/dispenser.webp") center bottom / contain no-repeat;
  margin-bottom: -6px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}
body[data-room="vintage"] .dl-canvas { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); }
body[data-room="vintage"] .dl-status.is-ok { color: #8fbf9a; }
/* share-to-claim promo box: velvet-toned instead of pink */
body[data-room="vintage"] .dl-actions.dl-free.is-promo {
  box-shadow: 0 0 0 6px rgba(217, 112, 91, 0.14);
}

/* ---- generic status colors on the dark room -------------------------------------- */
body[data-room="vintage"] .acct-note.is-ok,
body[data-room="vintage"] .dlp-note.is-ok { color: #8fbf9a; }
body[data-room="vintage"] .dlp-note.is-err { color: #e0876c; }
body[data-room="vintage"] .acct-giftcode.is-copied { border-color: #8fbf9a; color: #8fbf9a; }
body[data-room="vintage"] .group-toggle-badge { color: #2e2214; background: #d9c28c; }
body[data-room="vintage"] .group-toggle.is-on .group-toggle-badge { color: #2e2214; background: var(--blue); }

/* ---- overlays & modals (paywall popup, thank-you, profile, toast) ----------------
   These live outside #app but inside <body>, so they inherit the vintage tokens; the
   rules below only fix the hardcoded light-mode colors left behind. */
body[data-room="vintage"] .dlp-title,
body[data-room="vintage"] .pay-title,
body[data-room="vintage"] .acct-title,
body[data-room="vintage"] .fgate-title {
  font-family: "Gowun Batang", serif;
  font-style: italic;
  letter-spacing: 0;
}
body[data-room="vintage"] .dlp-card-shell {
  border: 2px solid #59503f;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}
body[data-room="vintage"] .dlp-x { background: #2e2820; color: var(--ink-soft); }
body[data-room="vintage"] .dlp-x:hover { background: #262019; }
body[data-room="vintage"] .dlp-card { background: #3f382e; }
body[data-room="vintage"] .dlp-card-feature {
  border-color: #8a6f42;
  background: linear-gradient(180deg, #4e4331, #443a2b);
  box-shadow: 0 10px 30px rgba(212, 181, 124, 0.12);
}
body[data-room="vintage"] .dlp-pill { background: #2e2820; color: var(--ink-soft); }
body[data-room="vintage"] .dlp-pill-hot { background: linear-gradient(120deg, #c06a52, #a3543e); color: #ffe9dc; }
body[data-room="vintage"] .dlp-feats li { color: #d8ccb2; }
body[data-room="vintage"] .dlp-tick { color: #8fbf9a; }
body[data-room="vintage"] .dlp-card-feature .dlp-tick { color: var(--blue); }
body[data-room="vintage"] .dlp-anchor { color: #8a7d66; }
body[data-room="vintage"] .dlp-btn-premium {
  background: linear-gradient(180deg, #ecdaae 0%, #d4b57c 55%, #b9975c 100%);
  color: #2e2214;
}
body[data-room="vintage"] .dlp-btn-ghost { background: #2e2820; color: var(--ink); }
body[data-room="vintage"] .dlp-btn-ghost:hover:not(:disabled) { background: #262019; }
body[data-room="vintage"] .dlp-divider { color: #8a7d66; }
body[data-room="vintage"] .dlp-redeem-input {
  background: #2e2820;
  color: var(--ink);
  border-color: var(--line);
}
body[data-room="vintage"] .dlp-redeem-input:focus { border-color: var(--blue); }
body[data-room="vintage"] .dlp-game { background: #3f382e; }
body[data-room="vintage"] .dlp-game:hover { border-color: #8a7d66; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); }
body[data-room="vintage"] .dlp-game.is-fav {
  border-color: #8a6f42;
  background: linear-gradient(180deg, #4e4331, #443a2b);
  box-shadow: 0 10px 28px rgba(212, 181, 124, 0.12);
}
body[data-room="vintage"] .dlp-game.is-fav:hover { border-color: var(--blue); }
body[data-room="vintage"] .dlp-game-fav { background: linear-gradient(120deg, #c06a52, #a3543e); color: #ffe9dc; }

/* thank-you (confetti) screen */
body[data-room="vintage"] .pay-check { color: #8fbf9a; }
body[data-room="vintage"] .pay-check.is-premium {
  background: linear-gradient(135deg, var(--pink-tint), var(--blue-tint));
  color: #e8c27b;
}

/* profile / account overlay */
body[data-room="vintage"] .acct-avatar { background: var(--pink-tint); color: #f0c9b8; }
body[data-room="vintage"] .acct-avatar.is-guest { background: #2e2820; color: var(--ink-soft); }
body[data-room="vintage"] .acct-plan-badge { color: #2e2214; background: #d9c28c; border-color: #8a6f42; }
body[data-room="vintage"] .acct-giftcode:hover { background: #262019; }
body[data-room="vintage"] .acct-status-card.is-premium {
  border-color: #8a6f42;
  background: linear-gradient(180deg, #4e4331, var(--paper-raised));
}

/* =================================================================================
   MEME ROOM — "recreate the classics" (see architecture.md §20).

   Deliberately light-handed: the meme room keeps the classic bright look (no token
   flips) plus a faint sunny halftone over the page — the star is the BOOTH's pose
   card (built by booth.js _applyMeme()): every countdown deals a random two-character
   meme above the camera for the couple to recreate. The card is a prompt only —
   never composited into the preview or the strip (§0). */
body[data-room="meme"] {
  background:
    radial-gradient(rgba(255, 196, 74, 0.14) 1.5px, transparent 1.6px),
    radial-gradient(rgba(255, 123, 163, 0.10) 1.5px, transparent 1.6px),
    var(--paper);
  background-size: 26px 26px, 26px 26px, auto;
  background-position: 0 0, 13px 13px, 0 0;
}

/* ---- the pose card above the camera ------------------------------------------- */
.meme-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: min(100%, 440px);
  margin: 0 auto var(--s2);
  padding: 10px 12px 12px;
  background: var(--paper-raised);
  border: 1.5px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
}
.meme-card-tag {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8c3f5e;
  background: var(--pink-tint);
  border-radius: var(--r-ctrl);
  padding: 3px 8px;
}
.meme-card-img {
  display: block;
  max-width: 100%;
  max-height: clamp(110px, 20vh, 190px);
  width: auto;
  border-radius: 2px;
}
.meme-card-cap {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
}
/* dealing the next pose: a quick snap-in, like a card slapped on the table */
.meme-card.pop { animation: meme-deal 320ms cubic-bezier(0.34, 1.4, 0.5, 1); }
@keyframes meme-deal {
  0%   { transform: scale(0.9) rotate(-1.6deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@media (max-width: 640px), (max-height: 720px) {
  .meme-card { padding: 8px 10px 10px; gap: 5px; }
  .meme-card-img { max-height: clamp(90px, 16vh, 150px); }
  .meme-card-cap { font-size: 12px; }
}

/* =================================================================================
   TREND ROOMS — the 2026 Korean photobooth trend pass (architecture.md §20):
   Laundry, Prison, Subway, Airplane, Karaoke. Same rules as vintage/meme: the skin
   keys off body[data-room], the booth chrome is built by booth.js _apply<Style>(),
   and every effect on the live feeds is CSS/preview-only — §0 holds. Textures live
   in /client/rooms/<style>/ with gradient fallbacks underneath. */

/* ---------------------------------------------------------------------------------
   LAUNDRY — the late-night laundromat: mint tiles, a wall of machines, and the booth
   itself is a washing machine — you pose inside the drum, behind the porthole glass. */
body[data-room="laundry"] {
  --pink-tint: #fbdde8;
  --blue-tint: #d8ecf8;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(234, 247, 240, 0.9)),
    url("/client/rooms/laundry/wall.webp") center / cover fixed,
    linear-gradient(180deg, #eef7f1, #d6eee0);
}
/* a few soap bubbles drifting up the page — quiet, non-interactive */
body[data-room="laundry"]::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  opacity: 0.5;
  background:
    radial-gradient(circle 12px at 12% 88%, rgba(255, 255, 255, 0.75) 0 9px, rgba(159, 196, 222, 0.5) 10px, transparent 12px),
    radial-gradient(circle 7px at 24% 96%, rgba(255, 255, 255, 0.7) 0 5px, rgba(159, 196, 222, 0.45) 6px, transparent 7px),
    radial-gradient(circle 9px at 82% 92%, rgba(255, 255, 255, 0.7) 0 7px, rgba(159, 196, 222, 0.45) 8px, transparent 9px);
  background-repeat: no-repeat;
  animation: suds-rise 14s linear infinite;
}
@keyframes suds-rise {
  0%   { transform: translateY(0);      opacity: 0.5; }
  85%  { opacity: 0.35; }
  100% { transform: translateY(-105vh); opacity: 0; }
}

/* the washing machine around the stage (booth.js _applyLaundry) */
.washer {
  width: min(100%, 680px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.washer-panel {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--s2);
  padding: 10px 16px;
  background: linear-gradient(180deg, #ffffff, #e9f2ec);
  border: 2px solid #b9d2c5;
  border-radius: 14px 14px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow-soft);
}
.washer-brand {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: #4d7a64;
}
.washer-leds { display: flex; gap: 6px; }
.washer-led {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #86a394;
  background: #eff5f1;
  border: 1px solid #c9dcd2;
  border-radius: 3px;
  padding: 2px 6px;
}
.washer-led.is-on {
  color: #1d5c3c;
  background: #c9f3dc;
  border-color: #7cc9a2;
  box-shadow: 0 0 8px rgba(124, 201, 162, 0.7);
  animation: washer-led-blink 1.6s steps(2) infinite;
}
@keyframes washer-led-blink { 50% { box-shadow: none; } }
.washer-dial {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    conic-gradient(from 210deg, transparent 0 84%, #4d7a64 84% 92%, transparent 92%),
    radial-gradient(circle at 34% 30%, #ffffff 0%, #dfe9e3 60%, #b9cfc2 100%);
  border: 2px solid #a7c4b4;
  box-shadow: inset 0 -2px 4px rgba(77, 122, 100, 0.25), 0 2px 5px rgba(0, 0, 0, 0.12);
}
.washer-body {
  padding: 16px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.2)),
    linear-gradient(180deg, #f4faf6, #dcebe2);
  border: 2px solid #b9d2c5;
  border-top: none;
  border-bottom: none;
}
/* the drum door: porthole ring + curved glass over the feeds */
body[data-room="laundry"] .booth-feeds {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow:
    0 0 0 7px #d7e5dc,
    0 0 0 10px #9fbfae,
    inset 0 0 30px rgba(38, 66, 52, 0.28);
}
body[data-room="laundry"] .booth-feeds::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  /* curved-glass shine, top-left */
  background:
    radial-gradient(120% 70% at 18% 0%, rgba(255, 255, 255, 0.3), transparent 42%),
    radial-gradient(150% 90% at 50% 118%, rgba(20, 45, 33, 0.22), transparent 55%);
}
/* suds drifting up the glass (booth.js appends .washer-suds > span×7) */
.washer-suds { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.washer-suds span {
  position: absolute;
  bottom: -24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.28) 55%, rgba(255, 255, 255, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: washer-bubble 7s linear infinite;
}
.washer-suds span:nth-child(1) { left: 8%;  width: 12px; height: 12px; animation-delay: 0s; }
.washer-suds span:nth-child(2) { left: 22%; width: 18px; height: 18px; animation-delay: 2.2s; }
.washer-suds span:nth-child(3) { left: 38%; width: 10px; height: 10px; animation-delay: 4.1s; }
.washer-suds span:nth-child(4) { left: 55%; width: 15px; height: 15px; animation-delay: 1.3s; }
.washer-suds span:nth-child(5) { left: 68%; width: 11px; height: 11px; animation-delay: 5.4s; }
.washer-suds span:nth-child(6) { left: 82%; width: 17px; height: 17px; animation-delay: 3.2s; }
.washer-suds span:nth-child(7) { left: 92%; width: 9px;  height: 9px;  animation-delay: 6.1s; }
@keyframes washer-bubble {
  0%   { transform: translateY(0) translateX(0);   opacity: 0; }
  12%  { opacity: 0.85; }
  60%  { transform: translateY(-260px) translateX(6px); }
  100% { transform: translateY(-520px) translateX(-4px); opacity: 0; }
}
.washer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: 10px 16px;
  background: linear-gradient(180deg, #eef5f0, #d9e7de);
  border: 2px solid #b9d2c5;
  border-radius: 0 0 14px 14px;
  box-shadow: var(--shadow-soft);
}
.washer-plate {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #5d8570;
}
.washer-coin {
  width: 44px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(180deg, #22352b, #45604f);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255, 255, 255, 0.7);
}
body[data-room="laundry"] .booth-video { filter: saturate(1.06) brightness(1.03); }
body[data-room="laundry"] .btn-primary,
body[data-room="laundry"] .ready-btn {
  background: linear-gradient(180deg, #9fd8ba 0%, #6cbb92 100%);
  border: 1px solid #4d9974;
  color: #143526;
}

/* ---------------------------------------------------------------------------------
   PRISON — the mugshot studio: grey concrete, a booking board, height-chart rails
   beside the camera. Feeds go near-mono (preview-only; the strip's look comes from
   the seeded 'mono' FILTER at render time). */
body[data-room="prison"] {
  --paper: #cfd2d6;
  --paper-raised: #e4e6e9;
  --ink: #23262b;
  --ink-soft: #5c6169;
  --line: #a7abb2;
  --pink-tint: #e7d3da;
  --blue-tint: #cdd8e5;
  background:
    linear-gradient(180deg, rgba(214, 216, 220, 0.88), rgba(186, 189, 194, 0.92)),
    url("/client/rooms/prison/wall.webp") center / cover fixed,
    linear-gradient(180deg, #c6c9ce, #a9adb3);
}
/* long cell-bar shadows raking across the room */
body[data-room="prison"]::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  opacity: 0.1;
  background: repeating-linear-gradient(104deg, rgba(23, 24, 28, 0.9) 0 22px, transparent 22px 110px);
}
.cellblock {
  width: min(100%, 700px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.cellblock-board {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  margin-bottom: 10px;
  padding: 7px 26px 9px;
  background: #2b2e33;
  border: 2px solid #17181c;
  border-radius: 3px;
  box-shadow: var(--shadow-soft);
}
.cellblock-title {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: clamp(14px, 3.4vw, 19px);
  letter-spacing: 0.3em;
  color: #eceef0;
  white-space: nowrap;
}
.cellblock-sub {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9aa0a8;
}
.cellblock-body {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  background: linear-gradient(180deg, #d7d9dd, #c2c5ca);
  border: 2px solid #8f939a;
  box-shadow: var(--shadow-soft);
}
/* height-chart rails: the classic lineup lines + a fallback ruled gradient */
.cellblock-rail {
  background:
    url("/client/rooms/prison/chart.webp") center / cover,
    repeating-linear-gradient(180deg, #efefec 0 34px, #3a3d42 34px 37px);
  border-left: 1px solid #8f939a;
  border-right: 1px solid #8f939a;
}
.cellblock-center {
  padding: 14px 10px;
  background: linear-gradient(180deg, #babdC2, #a8acb2);
  min-width: 0;
}
.cellblock-placard {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 8px 18px;
  background: #efeeea;
  border: 2px solid #55585e;
  border-radius: 2px;
  box-shadow: var(--shadow-soft);
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: #23262b;
}
.cellblock-date { color: #6a6e75; }
body[data-room="prison"] .booth-video { filter: grayscale(0.85) contrast(1.1) brightness(1.02); }
body[data-room="prison"] .booth-feeds { box-shadow: 0 10px 30px rgba(23, 24, 28, 0.35); }
body[data-room="prison"] .countdown { font-family: "Space Mono", monospace; }
body[data-room="prison"] .btn-primary,
body[data-room="prison"] .ready-btn {
  background: linear-gradient(180deg, #3a3d42, #23262b);
  border: 1px solid #17181c;
  color: #eceef0;
  font-family: "Space Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
body[data-room="prison"] .booth-thumb {
  border: 3px solid #efeeea;
  border-radius: 1px;
  background: #efeeea;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
body[data-room="prison"] .booth-thumb img { filter: grayscale(0.85) contrast(1.08); }

/* ---------------------------------------------------------------------------------
   SUBWAY — the last train home: brushed steel, the line-2 green, grab straps swaying
   over the window and a route strip that names this stop Photo Station. */
body[data-room="subway"] {
  --paper: #e3e5e9;
  --paper-raised: #f2f3f5;
  --ink: #24262b;
  --ink-soft: #5f646c;
  --line: #b6bac2;
  background:
    linear-gradient(180deg, rgba(233, 235, 239, 0.9), rgba(209, 212, 218, 0.93)),
    url("/client/rooms/subway/panel.webp") center / cover fixed,
    linear-gradient(180deg, #d8dade, #bcc0c7);
}
.subway {
  width: min(100%, 700px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.subway-sign {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 6px 18px;
  background: #17181c;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.subway-badge {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #33a23d;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}
.subway-sign-text {
  color: #f4f5f7;
  font-weight: 700;
  font-size: clamp(13px, 3vw, 16px);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
/* grab straps swinging over the window */
.subway-straps {
  display: flex;
  justify-content: space-around;
  width: min(100%, 560px);
  margin: 0 auto -6px;
  z-index: 2;
  pointer-events: none;
}
.subway-strap {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
  animation: strap-sway 3.4s ease-in-out infinite;
}
.subway-strap:nth-child(2) { animation-delay: 0.6s; }
.subway-strap:nth-child(3) { animation-delay: 1.4s; }
@keyframes strap-sway {
  0%, 100% { transform: rotate(2.4deg); }
  50%      { transform: rotate(-2.4deg); }
}
.subway-strap-band {
  width: 7px;
  height: 26px;
  background: linear-gradient(180deg, #9ca1a9, #7d828b);
  border-radius: 2px;
}
.subway-strap-ring {
  width: 26px;
  height: 26px;
  border: 6px solid #eceef0;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.3);
}
.subway-body {
  padding: 16px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.12)),
    linear-gradient(180deg, #d3d6db, #bfc3ca);
  border: 2px solid #9298a1;
  border-radius: 10px;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
/* the feeds read as the car window — night tunnel behind the glass edge */
body[data-room="subway"] .booth-feeds {
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 4px #aab0b8,
    0 0 0 7px #83898f,
    inset 0 0 26px rgba(10, 12, 16, 0.35);
}
body[data-room="subway"] .booth-video { filter: contrast(1.04) saturate(0.96) brightness(1.02); }
.subway-route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 8vw, 64px);
  margin-top: 10px;
  padding: 9px 16px;
  background: #f2f3f5;
  border: 1.5px solid #b6bac2;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.subway-route::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 50%;
  height: 4px;
  margin-top: -12px;
  background: #33a23d;
  border-radius: 2px;
}
.subway-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  z-index: 1;
}
.subway-stop-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #33a23d;
}
.subway-stop.is-here .subway-stop-dot {
  width: 16px;
  height: 16px;
  border-width: 4px;
  box-shadow: 0 0 0 4px rgba(51, 162, 61, 0.25);
}
.subway-stop-name {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f646c;
}
.subway-stop.is-here .subway-stop-name { color: #1d7a2b; }
body[data-room="subway"] .btn-primary,
body[data-room="subway"] .ready-btn {
  background: linear-gradient(180deg, #43b54e 0%, #2d9038 100%);
  border: 1px solid #1d7a2b;
  color: #fff;
}

/* ---------------------------------------------------------------------------------
   AIRPLANE — window seats at golden hour: cream cabin plastic, a lit seatbelt sign,
   the feeds framed as one wide cabin window, a boarding pass under it. */
body[data-room="airplane"] {
  --paper: #efece4;
  --paper-raised: #faf8f2;
  --ink: #33302a;
  --ink-soft: #777164;
  --line: #d4cec0;
  --pink-tint: #fadfd3;
  --blue-tint: #d3e6f8;
  background:
    linear-gradient(180deg, rgba(250, 248, 242, 0.88), rgba(236, 231, 219, 0.92)),
    url("/client/rooms/airplane/cabin.webp") center / cover fixed,
    linear-gradient(180deg, #f2efe8, #ded8ca);
}
.air {
  width: min(100%, 700px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.air-sign {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  padding: 7px 18px;
  background: #2c2f36;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}
.air-sign-brand {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.26em;
  color: #f3e9cf;
}
.air-sign-belt {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffb54d;
  animation: belt-glow 2.6s ease-in-out infinite;
}
@keyframes belt-glow { 50% { opacity: 0.55; } }
.air-picto {
  width: 16px;
  height: 10px;
  border: 2px solid #ffb54d;
  border-radius: 3px;
  position: relative;
}
.air-picto::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  bottom: -4px;
  width: 2px;
  margin-left: -1px;
  background: #ffb54d;
  transform: rotate(24deg);
}
.air-sign-flight {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #aeb6c4;
  white-space: nowrap;
}
.air-body {
  padding: 18px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.25)),
    linear-gradient(180deg, #f6f3ea, #e3ddcd);
  border: 2px solid #cfc7b3;
  border-radius: 26px;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
/* the cabin window: deep plastic bezel with the classic rounded-oval corners */
body[data-room="airplane"] .booth-feeds {
  border-radius: clamp(26px, 7vw, 54px);
  overflow: hidden;
  box-shadow:
    0 0 0 7px #efe9da,
    0 0 0 10px #c9c0aa,
    inset 0 0 34px rgba(64, 58, 40, 0.25);
}
body[data-room="airplane"] .booth-video { filter: saturate(1.08) brightness(1.04) sepia(0.08); }
body[data-room="airplane"] .booth-feeds::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  /* warm dawn light spilling in from the top corner */
  background: radial-gradient(90% 60% at 82% 0%, rgba(255, 196, 120, 0.18), transparent 55%);
}
body[data-room="airplane"] .booth-feeds { position: relative; }
.air-ticket {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 8px 16px;
  background: #fdfbf5;
  border: 1.5px dashed #c9c0aa;
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: #4d4738;
}
.air-ticket-gate { color: #b2793a; }
body[data-room="airplane"] .btn-primary,
body[data-room="airplane"] .ready-btn {
  background: linear-gradient(180deg, #f8c87c 0%, #e8a84e 100%);
  border: 1px solid #c78a35;
  color: #3f2d12;
}

/* ---------------------------------------------------------------------------------
   KARAOKE — the noraebang: dark padded room, magenta/cyan neon, disco light dots and
   an LED song display. The one DARK trend room, so tokens flip like vintage. */
body[data-room="karaoke"] {
  --paper: #201a2c;
  --paper-raised: #2c2440;
  --ink: #f2ecff;
  --ink-soft: #b3a6d4;
  --line: #453a5e;
  --pink: #ff5fd0;
  --pink-tint: #4a2a44;
  --blue: #4fd8ff;
  --blue-tint: #25404e;
  --shadow-soft: 0 10px 32px rgba(0, 0, 0, 0.5);
  background:
    radial-gradient(900px 600px at 18% -6%, rgba(255, 95, 208, 0.2), transparent 60%),
    radial-gradient(900px 600px at 86% 0%, rgba(79, 216, 255, 0.16), transparent 60%),
    linear-gradient(rgba(22, 16, 34, 0.82), rgba(22, 16, 34, 0.88)),
    url("/client/rooms/karaoke/wall.webp") center / cover fixed,
    linear-gradient(180deg, #241c38, #16101f);
}
/* the disco ball's light dots wheeling slowly around the room */
body[data-room="karaoke"]::after {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: 2147483000;
  pointer-events: none;
  opacity: 0.5;
  background:
    radial-gradient(circle 7px at 12% 22%, rgba(255, 95, 208, 0.55) 0 5px, transparent 7px),
    radial-gradient(circle 5px at 30% 64%, rgba(79, 216, 255, 0.5) 0 3px, transparent 5px),
    radial-gradient(circle 8px at 52% 30%, rgba(255, 255, 255, 0.4) 0 5px, transparent 8px),
    radial-gradient(circle 6px at 70% 74%, rgba(255, 95, 208, 0.45) 0 4px, transparent 6px),
    radial-gradient(circle 7px at 86% 40%, rgba(79, 216, 255, 0.5) 0 5px, transparent 7px),
    radial-gradient(circle 5px at 44% 86%, rgba(255, 255, 255, 0.35) 0 3px, transparent 5px);
  animation: disco-wheel 26s linear infinite;
}
@keyframes disco-wheel {
  0%   { transform: rotate(0deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1.15); }
}
body[data-room="karaoke"] .code-cell,
body[data-room="karaoke"] .text-input {
  background: #161020;
  color: var(--ink);
}
body[data-room="karaoke"] .btn-primary,
body[data-room="karaoke"] .ready-btn {
  background: linear-gradient(120deg, #ff5fd0 0%, #b44dff 55%, #4fd8ff 130%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 95, 208, 0.4);
}
body[data-room="karaoke"] .booth-gate { background: rgba(22, 16, 32, 0.93); }
.kara {
  width: min(100%, 680px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.kara-neon {
  align-self: center;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  padding: 4px 22px 8px;
  border: 2px solid rgba(255, 95, 208, 0.5);
  border-radius: 12px;
  box-shadow: 0 0 22px rgba(255, 95, 208, 0.35), inset 0 0 18px rgba(255, 95, 208, 0.15);
}
.kara-neon-ko {
  font-weight: 800;
  font-size: clamp(22px, 5vw, 32px);
  color: #ffd5f3;
  text-shadow: 0 0 8px #ff5fd0, 0 0 26px rgba(255, 95, 208, 0.75);
  animation: neon-flicker 5s steps(1) infinite;
}
.kara-neon-note {
  font-size: clamp(18px, 4vw, 26px);
  color: #bdf0ff;
  text-shadow: 0 0 8px #4fd8ff, 0 0 24px rgba(79, 216, 255, 0.75);
}
@keyframes neon-flicker {
  0%, 100% { opacity: 1; }
  7%  { opacity: 0.75; }
  8%  { opacity: 1; }
  54% { opacity: 1; }
  55% { opacity: 0.65; }
  57% { opacity: 1; }
}
.kara-body {
  padding: 16px 18px;
  background:
    linear-gradient(180deg, rgba(255, 95, 208, 0.06), rgba(0, 0, 0, 0.25)),
    #241c38;
  border: 2px solid #453a5e;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}
body[data-room="karaoke"] .booth-feeds {
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 3px rgba(255, 95, 208, 0.55),
    0 0 24px rgba(255, 95, 208, 0.35),
    0 0 60px rgba(79, 216, 255, 0.2);
}
body[data-room="karaoke"] .booth-video { filter: saturate(1.18) contrast(1.05) brightness(1.02); }
.kara-display {
  margin-top: 10px;
  padding: 8px 12px;
  background: #0c0814;
  border: 2px solid #453a5e;
  border-radius: 8px;
  box-shadow: var(--shadow-soft), inset 0 0 12px rgba(79, 216, 255, 0.12);
  overflow: hidden;
  white-space: nowrap;
}
.kara-display-text {
  display: inline-block;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #6ff0ff;
  text-shadow: 0 0 6px rgba(79, 216, 255, 0.8);
  padding-left: 100%;
  animation: kara-scroll 14s linear infinite;
}
@keyframes kara-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
body[data-room="karaoke"] .countdown {
  text-shadow: 0 0 12px rgba(255, 95, 208, 0.9), 0 4px 30px rgba(0, 0, 0, 0.7);
}
body[data-room="karaoke"] .booth-flash { background: #ffd8f4; }
body[data-room="karaoke"] .peer-ready { color: #7ee8a2; }

/* ---------------------------------------------------------------------------------
   FIFA SPAIN — world-cup night: the stadium bowl behind everything, navy dark room
   with Spain red + trophy gold, a scoreboard over the camera and an LED ribbon
   board under it. Dark room → tokens flip (like vintage/karaoke). */
body[data-room="fifa"] {
  --paper: #101c33;
  --paper-raised: #1a2946;
  --ink: #f4ecd8;
  --ink-soft: #a8b3cc;
  --line: #33436b;
  --pink: #e6465c;
  --pink-tint: #4a2334;
  --blue: #4f86d8;
  --blue-tint: #223a5e;
  --shadow-soft: 0 10px 32px rgba(0, 0, 0, 0.5);
  background:
    linear-gradient(rgba(9, 15, 30, 0.78), rgba(9, 15, 30, 0.86)),
    url("/client/rooms/fifa/stadium.webp") center / cover fixed,
    linear-gradient(180deg, #12203a, #090f1e);
}
/* golden matchday confetti drifting down over the whole room */
body[data-room="fifa"]::after {
  content: "";
  position: fixed;
  inset: -30% 0 0 0;
  z-index: 2147483000;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(circle 5px at 8% 12%, rgba(255, 196, 0, 0.6) 0 3px, transparent 5px),
    radial-gradient(circle 4px at 26% 58%, rgba(198, 11, 30, 0.55) 0 2.5px, transparent 4px),
    radial-gradient(circle 6px at 43% 30%, rgba(255, 223, 107, 0.5) 0 4px, transparent 6px),
    radial-gradient(circle 4px at 62% 72%, rgba(255, 255, 255, 0.4) 0 2.5px, transparent 4px),
    radial-gradient(circle 5px at 78% 22%, rgba(255, 196, 0, 0.55) 0 3px, transparent 5px),
    radial-gradient(circle 4px at 92% 50%, rgba(198, 11, 30, 0.5) 0 2.5px, transparent 4px);
  background-size: 100% 60%;
  animation: fifa-confetti-fall 17s linear infinite;
}
@keyframes fifa-confetti-fall {
  0%   { transform: translateY(-22%); }
  100% { transform: translateY(52%); }
}
body[data-room="fifa"] .code-cell,
body[data-room="fifa"] .text-input {
  background: #0c1526;
  color: var(--ink);
}
body[data-room="fifa"] .btn-primary,
body[data-room="fifa"] .ready-btn {
  background: linear-gradient(180deg, #ffd34d 0%, #e8a512 100%);
  border: 1px solid #b57c08;
  color: #3a2a05;
  box-shadow: 0 0 18px rgba(255, 196, 0, 0.35);
}
body[data-room="fifa"] .booth-gate { background: rgba(9, 15, 28, 0.93); }
body[data-room="fifa"] .peer-ready { color: #7ee8a2; }

/* the arena column: scoreboard → camera → LED ribbon board */
.fifa {
  width: min(100%, 680px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.fifa-board {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  padding: 8px 18px;
  background: linear-gradient(180deg, #16213a, #0c1526);
  border: 2px solid #2c3c63;
  border-radius: 10px;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.fifa-board-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #FFC400;
}
.fifa-score {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "Space Mono", monospace;
}
.fifa-score-team {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 6px;
}
.fifa-score-team.is-esp { background: #C60B1E; color: #FFC400; }
.fifa-score-team.is-arg { background: #75AADB; color: #FFFFFF; }
.fifa-score-num {
  font-weight: 700;
  font-size: 22px;
  color: #fff7dd;
  text-shadow: 0 0 10px rgba(255, 196, 0, 0.7);
}
.fifa-score-colon { color: #FFC400; font-weight: 700; animation: fifa-colon 1.6s steps(1) infinite; }
@keyframes fifa-colon { 50% { opacity: 0.25; } }
.fifa-board-clock {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #a8b3cc;
}
.fifa-body {
  padding: 16px 18px 20px;
  background:
    linear-gradient(180deg, rgba(255, 196, 0, 0.05), rgba(0, 0, 0, 0.28)),
    linear-gradient(180deg, #172644 0%, #101c33 78%, #1f5a33 78.5%, #17482a 100%);
  border: 2px solid #33436b;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}
/* the broadcast frame: gold camera lines + a breathing Spain-red glow on the feeds */
body[data-room="fifa"] .booth-feeds {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 3px rgba(255, 196, 0, 0.7),
    0 0 24px rgba(198, 11, 30, 0.45),
    0 0 62px rgba(255, 196, 0, 0.18);
  animation: fifa-ring 3.4s ease-in-out infinite;
}
@keyframes fifa-ring {
  0%, 100% {
    box-shadow:
      0 0 0 3px rgba(255, 196, 0, 0.7),
      0 0 24px rgba(198, 11, 30, 0.45),
      0 0 62px rgba(255, 196, 0, 0.18);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(255, 214, 64, 0.9),
      0 0 30px rgba(198, 11, 30, 0.6),
      0 0 78px rgba(255, 196, 0, 0.3);
  }
}
/* corner flags planted in the bottom corners of the camera view */
body[data-room="fifa"] .booth-feeds::before,
body[data-room="fifa"] .booth-feeds::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 26px;
  height: 44px;
  z-index: 4;
  pointer-events: none;
  background:
    conic-gradient(from 90deg at 2px 3px, #D6101F 0 34deg, #FFC400 34deg 62deg, transparent 62deg),
    linear-gradient(#f4ecd8, #f4ecd8) 0 0 / 2.5px 100% no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
  opacity: 0.9;
}
body[data-room="fifa"] .booth-feeds::before {
  left: 8px;
  transform: rotate(-7deg);
  transform-origin: bottom left;
}
body[data-room="fifa"] .booth-feeds::after {
  right: 8px;
  transform: scaleX(-1) rotate(-7deg);
  transform-origin: bottom left;
}
body[data-room="fifa"] .booth-video { filter: saturate(1.12) contrast(1.04) brightness(1.02); }
.fifa-display {
  margin-top: 10px;
  padding: 8px 12px;
  background: #070d1a;
  border: 2px solid #33436b;
  border-radius: 8px;
  box-shadow: var(--shadow-soft), inset 0 0 12px rgba(255, 196, 0, 0.12);
  overflow: hidden;
  white-space: nowrap;
}
.fifa-display-text {
  display: inline-block;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #ffd34d;
  text-shadow: 0 0 6px rgba(255, 196, 0, 0.8);
  padding-left: 100%;
  animation: fifa-scroll 16s linear infinite;
}
@keyframes fifa-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
body[data-room="fifa"] .countdown {
  text-shadow: 0 0 14px rgba(255, 196, 0, 0.9), 0 4px 30px rgba(0, 0, 0, 0.7);
}
body[data-room="fifa"] .booth-flash { background: #ffe9b8; }
body[data-room="fifa"] .booth-thumb { border-color: #33436b; }

/* The DOWNLOAD scene always reads light: dark rooms (fifa, karaoke) put the finished
   strip + its buttons on a bright paper panel with hard dark text, so the export UI
   never inherits a dark skin's low-contrast palette. */
body[data-room="fifa"] .scene.download,
body[data-room="karaoke"] .scene.download {
  --ink: #17181C;
  --ink-soft: rgba(23, 24, 28, 0.6);
  --line: #e2ded2;
  background: rgba(252, 250, 244, 0.97);
  border-radius: 16px;
  padding: clamp(16px, 3vw, 28px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
  color: var(--ink);
}
body[data-room="fifa"] .scene.download .eyebrow,
body[data-room="karaoke"] .scene.download .eyebrow { color: var(--ink-soft); }
body[data-room="fifa"] .scene.download .btn-link,
body[data-room="karaoke"] .scene.download .btn-link { color: var(--ink-soft); }

/* ---- trend rooms: mobile ------------------------------------------------------- */
@media (max-width: 640px) {
  .washer-panel { padding: 8px 12px; gap: var(--s1); }
  .washer-body, .subway-body, .air-body, .kara-body, .fifa-body { padding: 10px 8px; }
  .fifa-board { gap: 10px; padding: 6px 12px; }
  .fifa-board-clock { display: none; }
  .fifa-score-num { font-size: 18px; }
  .washer-leds { display: none; }
  .cellblock-body { grid-template-columns: 22px 1fr 22px; }
  .cellblock-center { padding: 10px 6px; }
  .cellblock-title { letter-spacing: 0.18em; }
  .cellblock-placard { gap: 8px; padding: 6px 12px; font-size: 11px; }
  .air-sign { gap: 10px; padding: 6px 12px; }
  .air-sign-flight { display: none; }
  .air-ticket { font-size: 10px; gap: 8px; }
  .subway-straps { width: 100%; }
  .subway-route { gap: clamp(18px, 6vw, 40px); }
}

/* ---- reduced motion ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body[data-room="vintage"]::after,
  body[data-room="vintage"] .booth-feeds::after { animation: none; }
  .booth-curtain { transition: none; }
  .machine-lamp.is-blink { animation: none; }
  body[data-room="vintage"] .ready-btn { transition: none; }
  .meme-card.pop { animation: none; }
  body[data-room="laundry"]::after,
  body[data-room="karaoke"]::after,
  body[data-room="fifa"]::after,
  .washer-suds span,
  .washer-led.is-on,
  .subway-strap,
  .air-sign-belt,
  .kara-neon-ko,
  .kara-display-text,
  .fifa-display-text,
  .fifa-score-colon { animation: none; }
  body[data-room="fifa"] .booth-feeds { animation: none; }
}
