/* The store photograph continues behind the department sign and the monitor.
   Video and chat each retain their own unobstructed native Twitch viewport. */
.watch-room {
  --shop-blue: #173d79;
  --shop-ink: #122b49;
  --shop-paper: #f6f2e5;
  --shop-stock: #ffce35;
  --shop-letter: "Club Marquee", "Arial Narrow", Arial, sans-serif;
  color: var(--shop-ink);
  background: #e8e8df;
  font-family: var(--vc-sans, var(--sans));
  padding-bottom: clamp(28px, 5vw, 75px);
}
.room-width {
  width: min(calc(100% - clamp(40px, 10.2vw, 160px)), 1380px);
  margin-inline: auto;
}
.viewing-station {
  position: relative;
  isolation: isolate;
  background: #0d2238;
  padding-bottom: clamp(17px, 2.5vw, 38px);
  border-bottom: 4px solid var(--shop-stock);
}
.viewing-station::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: clamp(180px, 18vw, 270px);
  z-index: -1;
  background: #c8c0ad url("/assets/counter-interior.webp?v=official-logo") 50% 28% / cover no-repeat;
  border-bottom: 4px solid #dfd9c2;
}
.room-heading { padding: clamp(19px, 2.4vw, 36px) 0 clamp(16px, 1.7vw, 27px); }
.room-heading h1 {
  position: relative;
  isolation: isolate;
  width: fit-content;
  padding: .1em .43em .15em .31em;
  border: 1px solid #274f87;
  border-top: 4px solid var(--shop-stock);
  background: #113465;
  color: #faf8ed;
  box-shadow: 1px 2px 0 #c9c6ac, 2px 4px 0 #6b695f, 2px 8px 12px #0e182744;
  transform: rotate(-1.7deg);
  font: italic 800 clamp(2.9rem, 4.8vw, 5rem)/.98 var(--shop-letter);
  letter-spacing: -.018em;
  text-transform: uppercase;
}
.room-heading h1 em { color: var(--shop-stock); font: inherit; }
.broadcast-frame {
  background: #263742;
  border: 1px solid #0a1d2b;
  padding: clamp(6px, .66vw, 10px) clamp(6px, .66vw, 10px) 0;
  border-radius: 7px 7px 5px 5px;
  box-shadow: inset 0 2px #a7b0ab, inset 2px 0 #7b898a, inset -2px -3px #162b35, 0 10px 20px -8px #020b15a6;
  overflow: hidden;
}
.broadcast {
  display: grid;
  grid-template-columns: minmax(400px, 1fr) minmax(278px, 27%);
  border: 2px solid #12222b;
  background: #0c1621;
}
.screen { width: 100%; aspect-ratio: 16 / 9; min-height: 300px; position: relative; align-self: center; }
.compact-screen {
  display: flex; align-items: end;
  position: absolute; inset: 0;
  padding: clamp(20px, 3.8vw, 52px);
  background: #0c1928 url("./stream-room.webp") center / cover no-repeat;
  color: var(--shop-paper);
}
.screen-copy { position: relative; z-index: 1; }
.screen-copy p { font-size: .88rem; font-weight: 650; margin-top: 8px; text-shadow: 0 1px 4px #071429; }
.screen-copy a { width: max-content; }
.screen iframe, #chat-mount iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-loading { visibility: hidden; }
.chat-room { display: flex; flex-direction: column; min-height: 300px; min-width: 0; background: #f6f3e8; }
.chat-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 clamp(11px, 1.35vw, 23px);
  background: var(--shop-paper);
  color: #173c6f;
  border-bottom: 3px solid var(--shop-stock);
}
.chat-bar h2 { font: italic 800 1.45rem/.98 var(--shop-letter); text-transform: uppercase; }
.chat-bar a, .receiver-foot a, .docket-actions a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 730; text-underline-offset: .21em;
}
.chat-bar a { font-size: .85rem; }
#chat-mount { flex: 1; position: relative; }
.chat-status { margin: 18px 15px; color: #42515a; font-size: .93rem; }
.receiver-foot {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 44px; padding-inline: clamp(8px, 1.2vw, 18px);
}
.receiver-foot::before {
  content: ""; display: block; width: clamp(60px, 9vw, 136px); height: 8px;
  background: repeating-linear-gradient(90deg, #101c25 0 2px, #4c5b61 2px 3px, transparent 3px 7px);
}
.receiver-foot a { color: #f5f1dc; font-size: .83rem; }
.room-docket {
  margin-block: clamp(24px, 3vw, 44px) 0;
  display: grid; grid-template-columns: minmax(200px, .8fr) minmax(0, 2fr);
  background: var(--shop-paper);
  border-bottom: 1px solid #abae9e;
  box-shadow: 0 3px 0 #192b3720;
}
.room-docket h2 {
  display: flex; flex-flow: column; justify-content: center;
  padding: clamp(16px, 2.7vw, 38px);
  background: var(--shop-blue); color: var(--shop-paper); border-top: 4px solid var(--shop-stock);
  font: 750 clamp(1.45rem, 2.5vw, 2.6rem)/1 var(--vc-sans); letter-spacing: -.045em;
}
.room-docket h2 em { color: var(--shop-stock); font: italic 800 1.25em/.95 var(--shop-letter); text-transform: uppercase; letter-spacing: -.01em; }
.docket-copy { padding: clamp(16px, 1.9vw, 29px) clamp(18px, 3vw, 44px); align-self: center; }
.docket-copy p { max-width: 64ch; font-weight: 520; line-height: 1.47; }
.docket-copy code { padding: .02em .21em; background: #ebe7d7; font: 700 .95em var(--mono); }
.docket-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 24px; margin-top: 9px; }
.watch-room .primary { color: var(--shop-ink); background-color: var(--shop-stock); border-color: #f7d266; box-shadow: 0 2px #a88b37; }
.watch-room .primary:hover { background-color: #ffdc70; }
.watch-room a:focus-visible { outline: 3px solid #1b548c; outline-offset: 3px; }
.watch-room .compact-screen a:focus-visible, .receiver-foot a:focus-visible { outline-color: #fff8df; }
.watch-room [hidden] { display: none; }
@media (max-width: 860px) {
  .room-width { width: calc(100% - 40px); }
  .broadcast { grid-template-columns: minmax(0, 1fr); }
  .screen { min-height: 0; }
  .screen:has(iframe) { min-height: 300px; }
  .chat-room { min-height: 360px; }
}
@media (max-width: 500px) {
  .room-width { width: calc(100% - 26px); }
  .room-heading { padding: 18px 0 14px; }
  .room-heading h1 { border-top-width: 3px; }
  .viewing-station::before { height: 152px; background-size: auto 300px; background-position: 60% 36%; }
  .receiver-foot { min-height: 18px; }
  .broadcast-frame:has(.compact-screen:not([hidden])) .receiver-foot a { display: none; }
  .room-docket { grid-template-columns: minmax(0, 1fr); }
  .room-docket h2 { flex-flow: row wrap; justify-content: start; align-items: baseline; gap: .24em; padding: 12px 17px 13px; font-size: 1.5rem; }
  .viewing-station { padding-bottom: 15px; }
  .compact-screen { isolation: isolate; padding: 17px; }
  .compact-screen::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #0c1928 4%,#0c1928df 25%,transparent 68%); }
}
