@font-face {
  font-family: "Cormorant Garamond";
  src: url("art/fonts/cormorant.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CW Display";
  src: url("art/fonts/oranienbaum.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CW Caps";
  src: url("art/fonts/oswald.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CW Text";
  src: url("art/fonts/cormorant.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CW Num";
  src: url("art/fonts/oldstandard.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1a140f;
  --deep: #0b141c;
  --paper: #f3e6cb;
  --cream: #fbf3de;
  --brass: #c9934b;
  --brass-dark: #7a5223;
  --gold: #f5cc74;
  --crimson: #9f2930;
  --emerald: #2c5b48;
  --muted: #5a4834;
  --cw-bg: #0b0607;
  --cw-leather: #14100e;
  --cw-bone: #ead9b8;
  --cw-bone-dim: #a8916a;
  --cw-gold: #f0d7a0;
  --cw-brass: #be9652;
  --cw-wine: #641622;
  --cw-wine-bright: #8a1a2c;
  --cw-error: #e1b3a0;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--deep);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  height: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#cabinet {
  width: 100%;
  max-width: 440px;
  height: 512px;
  max-height: 100vh;
  background: radial-gradient(circle at 50% 35%, #1d2e3d 0%, #0d1720 100%);
  border: 2px solid #59351e;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.72);
}

/* Slim dark walnut & brass top bar */
.topbar {
  height: 30px;
  background: linear-gradient(180deg, #3c2214 0%, #24130a 100%);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  border-bottom: 1.5px solid var(--brass);
  flex-shrink: 0;
  gap: 3px;
}

.brand {
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 2.5px;
  min-width: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  border-radius: 4px;
  border: 1.5px solid var(--brass);
  background: linear-gradient(180deg, #f3e5c7 0%, #dcc89d 100%);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  min-height: 23px;
  white-space: nowrap;
}

.top-actions button {
  background: linear-gradient(180deg, #4b2d1b 0%, #2b180e 100%);
  color: var(--cream);
  border-color: var(--brass);
  font-size: 9.5px;
  padding: 2px 5px;
  min-height: 22px;
}

button:hover:not(:disabled) { filter: brightness(1.08); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: 0.45; cursor: not-allowed; }

@media (max-width: 390px) {
  .topbar { padding: 0 4px; gap: 2px; }
  .brand { font-size: 9.5px; }
  .top-actions { gap: 2px; }
  .top-actions button { font-size: 9px; padding: 1.5px 4px; }
}

.screen {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.screen[hidden] { display: none !important; }

.show-opening {
  width: min(calc(100% - 24px), 880px);
  max-height: calc(100% - 24px);
  padding: 0;
  color: #f8e4ba;
  background: #170e0a;
  border: 1px solid #ba8b49;
  overflow: auto;
  box-shadow: 0 16px 60px #050302;
}

.show-opening::backdrop { background: rgb(10 5 4 / 84%); }

.show-opening-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  overflow: hidden;
  isolation: isolate;
  background: #62351d url("art/sprites/usher_backdrop.webp") center / cover;
}

.show-opening-stage::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(ellipse at 50% 74%, transparent 18%, rgb(31 9 4 / 72%) 90%);
  opacity: 0.45;
  animation: show-stage-lights 1100ms 160ms ease-out both;
}

.show-opening-curtain {
  position: absolute;
  inset-block: 0;
  width: 50.5%;
  background:
    linear-gradient(180deg, rgb(25 3 6 / 68%), transparent 40%, rgb(29 3 7 / 38%)),
    repeating-linear-gradient(90deg, #310a0f 0%, #711827 8%, #942d38 11%, #410a14 19%);
  box-shadow: 0 0 32px rgb(17 3 3 / 88%), inset 0 -5px #a4743e;
  animation: show-curtain-draw 1050ms 155ms cubic-bezier(0.58, 0.03, 0.28, 1) both;
}

.show-opening-curtain-left { left: 0; --curtain-open: -100%; }
.show-opening-curtain-right { right: 0; --curtain-open: 100%; }

.show-opening-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 8px clamp(12px, 3vw, 28px);
  gap: 6px 12px;
}

.show-opening-footer p { margin: 0; font-size: clamp(15px, 3vw, 23px); }
.show-opening-footer button { min-height: 44px; padding-inline: 12px; }

@keyframes show-curtain-draw { to { transform: translateX(var(--curtain-open)); } }
@keyframes show-stage-lights { from { opacity: 1; } to { opacity: 0.45; } }

@media (prefers-reduced-motion: reduce) {
  .show-opening-curtain { animation: none; transform: translateX(var(--curtain-open)); }
  .show-opening-stage::before { animation: none; }
}

.status-banner {
  background: #23303d;
  color: var(--gold);
  border-bottom: 1px solid var(--brass);
  font-size: 10px;
  padding: 2px 6px;
  text-align: center;
  flex-shrink: 0;
}
.status-banner[hidden] { display: none; }

/* 1. Cover Screen */
#scrCover:not([hidden]) {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.cover-content { display: contents; }
.cover-art-wrap, .cover-meta { grid-area: 1 / 1; }
.cover-meta { position: relative; pointer-events: none; }
.cover-footer { grid-area: 2 / 1; }

.cover-art-wrap {
  position: relative;
  min-height: 0;
  background: #14202b;
  overflow: hidden;
  border-bottom: 2px solid var(--brass);
}

.cover-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stick-badge {
  position: absolute;
  background: linear-gradient(180deg, #fcf4de 0%, #ead7ae 100%);
  color: var(--ink);
  border: 2px solid #966634;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 700;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.52), 0 0 0 1.5px #fcf6e8;
}

.left-stick { top: 8px; left: 8px; }
.right-stick { bottom: 8px; right: 8px; }

.cover-footer {
  background: linear-gradient(180deg, #f6ead0 0%, #e7d4ab 100%);
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cover-footer h1 { margin: 0; font-size: 15.5px; color: #21150c; }
.cover-sub { margin: 0; font-size: 11px; line-height: 1.3; color: var(--muted); }

.pull-primary-btn {
  background: linear-gradient(180deg, #b8323b 0%, #7d1a21 100%);
  color: #fff6e5;
  border: 2px solid var(--gold);
  font-size: 13px;
  min-height: 40px;
  padding: 5px 12px;
  width: 100%;
  box-shadow: 0 3px 0 #481014, 0 0 0 1px #f3e4c3;
}

.secondary-row { display: flex; gap: 6px; }
.secondary-row button { flex: 1; min-height: 33px; }

/* 2. 2D Layered Paper Theatre Balcony Screen */
.play-stage-shell {
  background: radial-gradient(circle at 50% 45%, #192937 0%, #0a121a 100%);
  align-items: center;
  justify-content: center;
}

.paper-theatre-frame {
  position: relative;
  width: 361px;
  height: 482px;
  max-width: 100%;
  max-height: 100%;
  flex-shrink: 0;
  user-select: none;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.78);
}

/* Layer 1-4 Balcony Stage Canvas opening inside usher_proscenium */
.usher-stage-opening {
  position: absolute;
  left: 11.0%;
  top: 14.0%;
  width: 78.0%;
  height: 45.4%;
  z-index: 1;
  overflow: hidden;
}

#balconyCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.proscenium-fg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 3;
  pointer-events: none;
}

/* Top Blank Scroll Ribbon Header */
.top-scroll-placard {
  position: absolute;
  left: 23.0%;
  top: 2.4%;
  width: 54.0%;
  height: 7.0%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #261408;
  pointer-events: none;
  line-height: 1.1;
}

#playDayTitle { font-size: 8.8px; font-weight: 700; }
#playCounters { font-size: 7.3px; font-weight: 700; color: #361d0e; }

/* Layer 5 Sliding Wooden-Stick Placards */
.stick-placard {
  position: absolute;
  z-index: 5;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.55));
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.usher-feedback-banner {
  left: 0;
  top: 12.6%;
  width: 73%;
  min-height: 40px;
  background: url("art/sprites/placard_banner.webp") center / 100% 100% no-repeat;
  padding: 5px 12% 6px 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.usher-feedback-banner.nudge {
  transform: translateX(-8px);
}

.usher-feedback-text {
  font-size: 7.8px;
  line-height: 1.15;
  font-weight: 700;
  color: #261509;
}

.hint-stick-btn {
  right: 1.5%;
  top: 12.6%;
  width: 24.5%;
  height: 44px;
  background: url("art/sprites/placard_rect.webp") top center / 100% 100% no-repeat;
  border: none;
  box-shadow: none;
  color: #2a190c;
  font-size: 8px;
  font-weight: 700;
  padding: 4px 6px 14px;
  white-space: normal;
  line-height: 1.08;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Layer 6 Horizontal Puppet Track Rail */
.guest-rail-slot {
  position: absolute;
  left: 6.5%;
  top: 56.6%;
  width: 87.0%;
  height: 15.2%;
  z-index: 6;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 0 2px;
}

.guest-chip {
  flex: 1 1 0;
  min-width: 0;
  max-width: 68px;
  height: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  transition: transform 0.16s ease;
}

.guest-chip:hover:not(:disabled) {
  filter: none;
  transform: translateY(-2px);
}

.guest-chip.selected {
  transform: translateY(-6px) scale(1.06);
  z-index: 7;
}

.puppet-thumb {
  height: 78%;
  width: auto;
  max-width: 96%;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.55));
}

.guest-chip.selected .puppet-thumb {
  filter: drop-shadow(0 0 7px rgba(245, 204, 116, 0.98));
}

.puppet-tag {
  background: #fbf1d8;
  color: #21140b;
  border: 1px solid #8a5c2c;
  border-radius: 3px;
  font-size: 7.4px;
  font-weight: 700;
  padding: 0.5px 3px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: -4px;
}

.guest-chip.selected .puppet-tag {
  background: #23150b;
  color: var(--gold);
  border-color: var(--gold);
}

.queue-done {
  font-size: 9px;
  font-weight: 700;
  color: #214e35;
  background: rgba(250, 240, 214, 0.92);
  border: 1.5px solid #8a5c2c;
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 10px;
  text-align: center;
}

/* Lower Dark Felt Apron Desk (Left Stub | Brass Punch | Right Quirk Note) */
.apron-ticket-card {
  position: absolute;
  left: 3.8%;
  top: 73.2%;
  width: 31.0%;
  height: 18.8%;
  background: url("art/sprites/prop_ticket.webp") center / 100% 100% no-repeat;
  z-index: 6;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
}

#stubGuestName {
  font-size: 9px;
  color: #1f130a;
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stub-ticket-tag {
  font-family: ui-monospace, monospace;
  font-size: 6.8px;
  font-weight: 700;
  color: #5b251b;
  background: rgba(236, 215, 173, 0.72);
  border: 1px dashed #8c5c32;
  padding: 1.5px 4px;
  border-radius: 2px;
  line-height: 1.15;
}

.stamp-seal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  width: 82%;
  min-height: 44px;
  background: url("art/sprites/prop_seal.webp") center / contain no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff6e5;
  font-family: ui-monospace, monospace;
  font-weight: 900;
  font-size: 8.5px;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
  z-index: 8;
}
.stamp-seal[hidden] { display: none; }

/* Centered Riveted Brass Plaque in usher_proscenium.webp */
.brass-plate-punch {
  position: absolute;
  left: 34.0%;
  top: 77.2%;
  width: 32.0%;
  height: 11.4%;
  z-index: 6;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #211208;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  white-space: normal;
  line-height: 1.1;
  text-shadow: 0 1px 0 rgba(255, 232, 175, 0.65);
}

.brass-plate-punch:hover:not(:disabled) {
  background: rgba(168, 36, 30, 0.14);
}
.brass-plate-punch:disabled { opacity: 0.45; }

.apron-quirk-card {
  position: absolute;
  left: 65.8%;
  top: 73.6%;
  width: 30.2%;
  height: 18.0%;
  z-index: 6;
  background: linear-gradient(180deg, #faf0d7 0%, #e7d4ad 100%);
  border: 1.5px solid #966634;
  border-radius: 4px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45), 0 2px 4px rgba(0,0,0,0.45);
}

#stubQuirk {
  font-size: 7.4px;
  line-height: 1.15;
  color: #24160b;
  font-weight: 700;
  display: block;
}

/* Bottom Slot Pull-Ribbon */
.curtain-pull-tab {
  position: absolute;
  left: 14.0%;
  top: 93.0%;
  width: 72.0%;
  height: 6.6%;
  z-index: 7;
  background: url("art/sprites/placard_pull.webp") center / 100% 100% no-repeat;
  border: none;
  box-shadow: none;
  color: #fff6e2;
  font-size: 8px;
  font-weight: 700;
  padding: 1px 10% 1px 25%;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.65));
}

.curtain-pull-tab.curtain-ready:not(:disabled) {
  filter: drop-shadow(0 0 8px rgba(245, 204, 116, 0.95));
  color: #ffe99c;
}

@media (max-width: 340px) {
  .top-scroll-placard #playDayTitle { font-size: 8px; }
  .top-scroll-placard #playCounters { font-size: 7px; }
  .usher-feedback-text { font-size: 7px; }
  .brass-plate-punch { font-size: 8px; }
  #stubQuirk { font-size: 6.8px; }
  .curtain-pull-tab { font-size: 8px; }
}

/* Secondary Parchment Panels */
.panel {
  flex: 1;
  min-height: 0;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  background: linear-gradient(180deg, #f5e8cc 0%, #e7d4ad 100%);
}

.card-box {
  background: var(--cream);
  border: 1.5px solid var(--brass);
  border-radius: 6px;
  padding: 7px 9px;
  box-shadow: 0 2px 5px rgba(24, 15, 10, 0.14);
}
.card-box h2, .card-box h3 { margin: 0 0 3px 0; font-size: 13.5px; }
.card-box p { margin: 2px 0; font-size: 11px; line-height: 1.35; }

.day-list { display: grid; grid-template-columns: 1fr; gap: 4px; }
.day-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cream);
  border: 1.5px solid var(--brass);
  border-radius: 6px;
  padding: 4px 8px;
  gap: 6px;
}
.day-item strong { font-size: 11.5px; }
.day-item small { display: block; font-size: 10px; color: var(--muted); }

.stub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.stub-card {
  background: var(--cream);
  border: 1.5px solid var(--brass);
  border-radius: 5px;
  padding: 5px 7px;
  font-size: 10.5px;
}
.stub-card.borrowed { background: #e4e7ea; border-style: dashed; }
.stub-card.empty { opacity: 0.65; }
.stub-card strong { display: block; margin-bottom: 2px; }

.poll-list { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.poll-btn { min-height: 34px; font-size: 10px; white-space: normal; line-height: 1.2; }
.poll-btn.chosen {
  background: linear-gradient(180deg, #357654 0%, #225038 100%);
  color: var(--cream);
  border-color: var(--gold);
}

.clue-line { font-size: 10.5px; padding: 2px 0; border-bottom: 1px solid #e7d8b9; }
@media (max-width: 360px) {
  .stub-grid { grid-template-columns: 1fr; }
}

.mobile-usher-shell {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-usher-shell[hidden] { display: none; }

.pc-usher-shell {
  display: none;
}

/* =========================================================================
   Desktop Widescreen 16:9 UI (Circus Welt · play.weltcircus.com Aesthetic)
   ========================================================================= */
@media (min-width: 680px) {
  html, body {
    background: var(--cw-bg);
    color: var(--cw-bone);
  }

  #cabinet {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border: none;
    box-shadow: none;
    background: var(--cw-bg);
  }

  /* Slim obsidian & brass spatial header matching play.weltcircus.com */
  .topbar {
    height: 38px;
    padding: 0 20px;
    gap: 10px;
    background: linear-gradient(180deg, #0b0706 0%, #100b09 100%);
    border-bottom: 1px solid rgba(190, 150, 82, 0.34);
  }

  .brand {
    font-family: "CW Caps", "Oswald", sans-serif;
    font-weight: 300;
    font-size: 13.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #fff5dc 8%, #dcc292 54%, #ad8b58 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  .top-actions {
    gap: 4px;
  }

  .top-actions button {
    background: transparent;
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    box-shadow: none;
    color: #cdb894;
    font-family: "CW Caps", "Oswald", sans-serif;
    font-weight: 300;
    font-size: 12.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 4px 10px;
    min-height: 30px;
    transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
  }

  .top-actions button:hover:not(:disabled),
  .top-actions button:focus-visible {
    filter: none;
    color: #fff1cf;
    background: rgba(100, 22, 34, 0.44);
    border-bottom-color: var(--cw-brass);
    outline: none;
  }

  .status-banner {
    background: #110b09;
    color: var(--cw-bone-dim);
    border-bottom: 1px solid rgba(190, 150, 82, 0.28);
    font-family: "CW Caps", sans-serif;
    font-weight: 300;
    font-size: 11.5px;
    letter-spacing: 0.1em;
    padding: 3px 12px;
  }

  /* 1. Desktop Cover Screen (P03 / P05 Circus Welt Entrance) */
  #scrCover:not([hidden]) {
    grid-template-rows: minmax(0, 1fr);
    background: var(--cw-bg);
  }

  #scrCover .cover-art-wrap {
    height: 100%;
    border-bottom: none;
    background: #0b0607;
  }

  #scrCover .cover-art-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgb(11 6 7 / 82%) 12%, rgb(11 6 7 / 67%) 50%, rgb(11 6 7 / 52%) 100%);
  }

  #scrCover .cover-content {
    grid-area: 1 / 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    overflow-y: auto;
    padding: 22px clamp(24px, 5vw, 64px);
    gap: 12px;
  }

  #scrCover .cover-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-shrink: 0;
    gap: 10px;
    margin-block-start: auto;
  }

  #scrCover .stick-badge {
    position: static;
    background: rgba(11, 8, 7, 0.9);
    color: #eddab4;
    border: 1px solid rgba(190, 150, 82, 0.56);
    border-radius: 2px;
    font-family: "CW Caps", sans-serif;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 12px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.72), inset 0 0 0 3px #0b0807, inset 0 0 0 4px rgba(190, 150, 82, 0.18);
  }

  #scrCover .cover-footer {
    align-items: center;
    flex-shrink: 0;
    width: min(100%, 650px);
    margin-block-end: auto;
    padding: 0;
    gap: 14px;
    text-align: center;
    background: transparent;
    color: var(--cw-bone);
  }

  #scrCover .cover-footer h1 {
    font-family: "CW Display", "Cormorant Garamond", Georgia, serif;
    font-weight: 400;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.06;
    padding-bottom: 14px;
    background: linear-gradient(180deg, #fff6df 8%, #e2c286 55%, #b18848 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    position: relative;
  }

  #scrCover .cover-footer h1::after {
    content: "";
    position: absolute;
    inset-inline: 14%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgb(217 182 115 / 75%), transparent);
  }

  #scrCover .cover-sub {
    font-family: "CW Text", Georgia, serif;
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.44;
    color: #d9c7a6;
    max-width: 44ch;
  }

  #scrCover .pull-primary-btn {
    border-style: solid;
    border-color: transparent;
    border-width: 14px 32px;
    border-image: url("art/ui/btn-velvet.webp") 80 150 fill / 14px 32px stretch;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    color: #f9e8c6;
    font-family: "CW Caps", "Oswald", sans-serif;
    font-weight: 300;
    font-size: 18px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    width: min(100%, 410px);
    min-height: 54px;
    padding: 0 18px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.65));
    transition: filter 0.2s ease, transform 0.18s ease;
  }

  #scrCover .pull-primary-btn:hover:not(:disabled) {
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 16px rgba(255, 190, 105, 0.36)) brightness(1.1);
    transform: translateY(-1px);
  }

  #scrCover .secondary-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 10px;
    margin-top: 2px;
  }

  #scrCover .secondary-row button {
    position: relative;
    flex: none;
    width: auto;
    min-height: 36px;
    padding: 6px 23px;
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #d3bd96;
    font-family: "CW Caps", "Oswald", sans-serif;
    font-weight: 300;
    font-size: 15px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
  }

  #scrCover .secondary-row button::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 50%;
    width: 14px;
    height: 18px;
    transform: translateY(-50%);
    background: url("art/ui/pointer.webp") center / contain no-repeat;
    opacity: 0;
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  #scrCover .secondary-row button:hover:not(:disabled),
  #scrCover .secondary-row button:focus-visible {
    filter: none;
    color: #fff1cf;
    background: linear-gradient(90deg, rgba(100, 22, 34, 0.45), transparent);
    border-bottom-color: rgba(190, 150, 82, 0.65);
    outline: none;
  }

  #scrCover .secondary-row button:hover:not(:disabled)::before,
  #scrCover .secondary-row button:focus-visible::before {
    opacity: 1;
  }

  /* 2. Desktop Secondary Panels (Shows / Stubs / Patron / Result / About) */
  .panel {
    align-items: center;
    padding: 16px 28px;
    gap: 8px;
    background:
      radial-gradient(ellipse 75% 65% at 50% 35%, rgba(28, 16, 12, 0.72), rgba(8, 5, 5, 0.94)),
      url("art/ui/hall.webp") center / cover no-repeat,
      #0b0607;
    color: var(--cw-bone);
  }

  .panel > * {
    width: 100%;
    max-width: 820px;
    flex-shrink: 0;
  }

  .panel > :nth-child(1 of :not([hidden])) {
    margin-block-start: auto;
  }

  .panel > :nth-last-child(1 of :not([hidden])) {
    margin-block-end: auto;
  }

  .card-box {
    background:
      linear-gradient(180deg, rgba(20, 14, 12, 0.88), rgba(11, 8, 7, 0.96)),
      url("art/ui/leather.webp") 0 0 / 380px repeat;
    background-blend-mode: normal, overlay;
    color: var(--cw-bone);
    border: 1px solid rgba(190, 150, 82, 0.48);
    border-radius: 2px;
    padding: 12px 20px;
    box-shadow:
      0 18px 50px rgba(0, 0, 0, 0.78),
      inset 0 0 0 5px #0b0807,
      inset 0 0 0 6px rgba(190, 150, 82, 0.18);
  }

  .card-box h2,
  .card-box h3 {
    font-family: "CW Caps", "Oswald", sans-serif;
    font-weight: 300;
    font-size: 20px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f2dfb6;
    margin: 0 0 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(190, 150, 82, 0.26);
  }

  .card-box p {
    font-family: "CW Text", Georgia, serif;
    font-size: 15.5px;
    line-height: 1.4;
    color: #d8c6a6;
  }

  .day-list {
    gap: 5px;
  }

  .day-item {
    background: rgba(14, 10, 9, 0.9);
    border: 1px solid rgba(190, 150, 82, 0.34);
    border-radius: 2px;
    padding: 7px 14px;
    color: var(--cw-bone);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  }

  .day-item strong {
    font-family: "CW Display", Georgia, serif;
    font-weight: 400;
    font-size: 16.5px;
    color: #f3e2c0;
  }

  .day-item small {
    font-family: "CW Caps", sans-serif;
    font-weight: 300;
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cw-bone-dim);
  }

  .day-item button {
    border: 0;
    border-top: 1px solid rgba(217, 182, 115, 0.62);
    border-bottom: 1px solid rgba(217, 182, 115, 0.62);
    border-radius: 0;
    background: radial-gradient(ellipse 70% 100% at 50% 50%, rgba(110, 22, 34, 0.45), rgba(40, 10, 14, 0.18));
    color: #f4e2bc;
    font-family: "CW Caps", sans-serif;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    min-height: 34px;
    padding: 4px 16px;
  }

  .day-item button:hover:not(:disabled) {
    filter: none;
    color: #fff6df;
    background: radial-gradient(ellipse 75% 100% at 50% 50%, rgba(140, 26, 44, 0.72), rgba(64, 14, 22, 0.35));
    border-color: #eed08e;
  }

  .stub-grid { gap: 8px; }
  .stub-card {
    background:
      linear-gradient(180deg, rgba(244, 232, 206, 0.92), rgba(226, 207, 170, 0.94)),
      url("art/ui/paper.webp") center / cover;
    color: #24160e;
    border: 1px solid #a27b42;
    border-radius: 2px;
    font-family: "CW Text", Georgia, serif;
    font-size: 14px;
    padding: 8px 12px;
  }
  .stub-card strong {
    font-family: "CW Caps", sans-serif;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 12.5px;
    color: #54151e;
  }
  .stub-card.borrowed {
    background: rgba(220, 212, 196, 0.85);
    border-style: dashed;
  }
  .stub-card.empty {
    background: rgba(12, 9, 8, 0.78);
    color: #9e8d72;
    border: 1px dashed rgba(190, 150, 82, 0.32);
    opacity: 0.9;
  }
  .stub-card.empty strong {
    color: #b7a280;
  }

  .poll-btn {
    background: rgba(15, 11, 9, 0.9);
    color: var(--cw-bone);
    border: 1px solid rgba(190, 150, 82, 0.38);
    border-radius: 2px;
    font-family: "CW Text", Georgia, serif;
    font-size: 14.5px;
    min-height: 40px;
  }
  .poll-btn:hover:not(:disabled) {
    filter: none;
    border-color: #e4be73;
    background: rgba(100, 22, 34, 0.38);
  }
  .poll-btn.chosen {
    background: linear-gradient(180deg, #641622 0%, #3d0c14 100%);
    color: #fff3d6;
    border-color: #ebc97f;
  }

  .clue-line {
    font-family: "CW Text", Georgia, serif;
    font-size: 14.5px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(190, 150, 82, 0.22);
    color: #e0cfb1;
  }

  .panel .pull-primary-btn {
    border-style: solid;
    border-color: transparent;
    border-width: 12px 28px;
    border-image: url("art/ui/btn-velvet.webp") 80 150 fill / 12px 28px stretch;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    color: #f8e7c5;
    font-family: "CW Caps", sans-serif;
    font-weight: 300;
    font-size: 15px !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    min-height: 44px !important;
  }

  .panel > button:not(.pull-primary-btn),
  .panel .secondary-row button:not(.pull-primary-btn) {
    width: auto;
    min-width: 170px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    box-shadow: none;
    color: #d6c19b;
    font-family: "CW Caps", sans-serif;
    font-weight: 300;
    font-size: 13.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    min-height: 34px;
    padding: 6px 18px;
  }

  .panel .pull-primary-btn:disabled {
    border-image-source: url("art/ui/button-master.webp");
    color: #b7a382;
    opacity: 0.85;
  }

  .panel > button:not(.pull-primary-btn):hover:not(:disabled),
  .panel .secondary-row button:not(.pull-primary-btn):hover:not(:disabled) {
    filter: none;
    color: #fff2d4;
    background: rgba(100, 22, 34, 0.42);
    border-bottom-color: #e4be73;
  }

  @media (max-height: 620px) {
    .panel {
      padding: 10px 24px;
      gap: 6px;
    }
    .card-box {
      padding: 8px 16px;
    }
    .card-box h2,
    .card-box h3 {
      font-size: 17px;
      margin-bottom: 4px;
      padding-bottom: 4px;
    }
    .card-box p {
      font-size: 13.5px;
    }
    .day-list {
      gap: 3px;
    }
    .day-item {
      padding: 4px 12px;
    }
    .day-item strong {
      font-size: 14.5px;
    }
    .day-item small {
      font-size: 10.5px;
    }
    .day-item button {
      min-height: 28px;
      font-size: 11.5px;
      padding: 2px 12px;
    }
    .panel > button:not(.pull-primary-btn) {
      min-height: 30px;
      padding: 4px 14px;
    }
  }

  .mobile-usher-shell {
    display: none !important;
  }

  .pc-usher-shell:not([hidden]) {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    overflow: clip;
    background:
      radial-gradient(ellipse 75% 65% at 62% 44%, #241311 0%, #0d0808 55%, #070505 100%);
  }
}

.pc-stage-frame {
  position: relative;
  overflow: clip;
  flex: 0 0 auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.88), 0 0 0 1px rgba(190, 150, 82, 0.34);
}

.pc-counter-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: top left;
  transform: scale(var(--pc-scale, 0.6));
  display: grid;
  grid-template-columns: 39% minmax(0, 1fr);
  background: #0b0607;
  color: var(--cw-bone);
  font-family: "CW Text", "Cormorant Garamond", Georgia, serif;
  user-select: none;
}

.pc-brass-frame {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  border: 18px solid transparent;
  border-image: url("art/ui/frame.webp") 110 / 18px stretch;
  opacity: 0.86;
}

.pc-counter-canvas button {
  font-family: inherit;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  white-space: normal;
  line-height: normal;
}

.pc-counter-canvas button:active:not(:disabled) {
  transform: translateY(0);
}

/* Left Box-Office Leather Desk (Circus Welt dark grained leather + patinated brass) */
.pc-workbench {
  position: relative;
  min-width: 0;
  min-height: 0;
  background:
    radial-gradient(ellipse 95% 55% at 30% 10%, rgba(190, 150, 82, 0.08), rgba(8, 5, 5, 0.72)),
    url("art/ui/leather.webp") 0 0 / 512px repeat,
    #110c0a;
  background-blend-mode: normal, overlay, normal;
  border-right: 1px solid rgba(190, 150, 82, 0.42);
  box-shadow: inset -12px 0 32px rgba(0, 0, 0, 0.52);
  display: flex;
}

.pc-inside {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 46px 26px;
}

.pc-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-family: "CW Caps", "Oswald", sans-serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bda274;
}

.pc-title {
  margin: 4px 0 0;
  font-family: "CW Display", "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: 98px;
  line-height: 0.94;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #fff6df 8%, #e1c082 54%, #ae8545 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 18px rgba(255, 190, 100, 0.18));
}

.pc-counter-canvas[data-lang="en"] .pc-title {
  font-size: 88px;
}

.pc-title-rule {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  height: 20px;
}

.pc-title-rule::before,
.pc-title-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(190, 150, 82, 0.65) 35%, rgba(190, 150, 82, 0.65) 65%, transparent);
}

.pc-rule-star {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 6px rgba(255, 200, 120, 0.45));
}

.pc-queue-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
}

.pc-queue-label {
  font-family: "CW Caps", "Oswald", sans-serif;
  font-size: 27px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ead9b8;
}

.pc-queue-count {
  font-family: "CW Caps", "Oswald", sans-serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a8916a;
}

.pc-queue-zone {
  margin-top: 10px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.pc-workbench.is-drop-over .pc-queue-zone {
  outline: 1.5px dashed rgba(244, 198, 108, 0.72);
  outline-offset: 6px;
  border-radius: 3px;
}

.pc-guest-list {
  --q-cols: 4;
  display: grid;
  grid-template-columns: repeat(var(--q-cols), minmax(0, 1fr));
  gap: 11px;
  padding: 6px 0 14px;
  border-bottom: 1px solid rgba(190, 150, 82, 0.24);
}

.pc-guest-list.is-compact {
  gap: 9px;
}

.pc-guest {
  appearance: none;
  position: relative;
  background:
    linear-gradient(180deg, rgba(25, 18, 16, 0.96) 0%, rgba(12, 9, 8, 0.99) 100%) !important;
  color: var(--cw-bone);
  border: 1px solid rgba(190, 150, 82, 0.36) !important;
  border-radius: 3px;
  padding: 10px 10px 12px !important;
  text-align: left;
  min-height: 272px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.56),
    inset 0 0 0 1px rgba(255, 224, 172, 0.05) !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.pc-guest:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 186, 112, 0.7) !important;
  background: linear-gradient(180deg, rgba(58, 16, 22, 0.64) 0%, rgba(18, 11, 10, 0.98) 100%) !important;
  filter: none;
}

.pc-guest.selected {
  transform: translateY(-7px);
  border-color: #e6c173 !important;
  background:
    linear-gradient(180deg, rgba(94, 18, 30, 0.88) 0%, rgba(44, 10, 16, 0.95) 100%),
    url("art/ui/velvet.webp") 0 0 / 280px repeat !important;
  background-blend-mode: soft-light, normal !important;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.72),
    inset 0 0 0 1px rgba(246, 214, 148, 0.35),
    0 0 20px rgba(190, 150, 82, 0.24) !important;
}

.pc-guest-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 122px;
  margin-bottom: 6px;
  border-radius: 2px;
  background: radial-gradient(ellipse 75% 70% at 50% 56%, rgba(215, 168, 92, 0.18) 0%, rgba(12, 8, 7, 0.28) 72%, transparent 100%);
}

.pc-guest-ptr {
  position: absolute;
  left: -2px;
  top: 2px;
  width: 20px;
  height: 24px;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.16s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.75));
}

.pc-guest.selected .pc-guest-ptr,
.pc-guest:hover .pc-guest-ptr {
  opacity: 1;
}

.pc-guest-art {
  width: 100%;
  height: 118px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.65));
}

.pc-guest-name {
  display: block;
  font-family: "CW Display", "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.04;
  color: #f4e4c2;
  overflow-wrap: anywhere;
}

.pc-guest.selected .pc-guest-name {
  color: #ffeab8;
}

.pc-guest-quirk {
  display: block;
  margin-top: 5px;
  font-family: "CW Text", Georgia, serif;
  font-size: 19.5px;
  font-weight: 500;
  line-height: 1.16;
  color: #d4c2a3;
}

.pc-guest.selected .pc-guest-quirk {
  color: #eedec0;
}

.pc-guest-list.is-compact .pc-guest {
  min-height: 262px;
  padding: 9px 8px 11px !important;
}
.pc-guest-list.is-compact .pc-guest-stage {
  height: 110px;
}
.pc-guest-list.is-compact .pc-guest-art {
  height: 106px;
}
.pc-guest-list.is-compact .pc-guest-name {
  font-size: 22px;
}
.pc-guest-list.is-compact .pc-guest-quirk {
  font-size: 17px;
}

.pc-queue-empty {
  padding: 20px 18px;
  margin-top: 4px;
  font-family: "CW Text", Georgia, serif;
  font-size: 27px;
  font-style: italic;
  color: rgba(234, 217, 184, 0.78);
  background: rgba(10, 7, 6, 0.56);
  border: 1px solid rgba(190, 150, 82, 0.24);
  border-radius: 2px;
}

.pc-queue-empty.is-alert {
  font-family: "CW Text", Georgia, serif;
  font-style: normal;
  font-size: 24px;
  font-weight: 600;
  color: var(--cw-error);
  line-height: 1.28;
  background: rgba(74, 16, 22, 0.45);
  border-color: rgba(225, 179, 160, 0.45);
}

/* Ticket Inspection & Velvet/Brass CTA */
.pc-ticket-zone {
  margin-top: auto;
  padding-top: 14px;
  position: relative;
  z-index: 2;
}

.pc-check-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 10px;
  gap: 12px;
}

.pc-check-title {
  margin: 0;
  font-family: "CW Caps", "Oswald", sans-serif;
  font-size: 29px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0dfb9;
}

.pc-check-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
}

.pc-valid-rule {
  font-family: "CW Num", Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: #f0cf88;
  background: rgba(10, 7, 6, 0.84);
  border: 1px solid rgba(190, 150, 82, 0.42);
  border-radius: 2px;
  padding: 2px 10px;
  white-space: nowrap;
}

.pc-check-sub {
  font-family: "CW Text", Georgia, serif;
  font-size: 21px;
  font-weight: 500;
  color: #d6c09f;
  max-width: 310px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-ticket-row {
  display: grid;
  grid-template-columns: 1fr 174px;
  gap: 16px;
  align-items: center;
}

.pc-ticket {
  position: relative;
  min-height: 148px;
  padding: 20px 44px;
  background: url("art/sprites/prop_ticket.webp") center / 100% 100% no-repeat;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  text-align: center;
  color: #25170d;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.58));
}

.pc-field-label {
  display: block;
  font-family: "CW Caps", "Oswald", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5b3e26;
}

.pc-field-val {
  display: block;
  margin-top: 4px;
  font-family: "CW Num", Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: #22140b;
}

.pc-ticket-seal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  width: 68%;
  height: 82%;
  background: url("art/sprites/prop_seal.webp") center / contain no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff6e5;
  font-family: "CW Caps", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 26px;
  text-shadow: 0 2px 5px #000;
  pointer-events: none;
  z-index: 4;
}
.pc-ticket-seal[hidden] { display: none; }

.pc-punch {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 126px;
  padding: 8px 10px !important;
  border: 1px solid rgba(190, 150, 82, 0.32) !important;
  border-radius: 3px;
  background: rgba(11, 8, 7, 0.72) !important;
  color: #ead9b8;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.pc-punch:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(235, 190, 108, 0.75) !important;
  background: rgba(100, 22, 34, 0.45) !important;
  color: #fff2d4;
}

.pc-punch-img {
  width: 108px;
  height: 78px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.65));
}

.pc-punch-label {
  font-family: "CW Caps", "Oswald", sans-serif;
  font-size: 19px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.1;
}

.pc-feedback {
  margin: 10px 0 0;
  min-height: 54px;
  display: flex;
  align-items: center;
  font-family: "CW Text", Georgia, serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.24;
  color: #ead9b8;
}

.pc-feedback.is-alert {
  color: #f0b89e;
  font-weight: 600;
}

/* Primary Action CTA: Dark Leather (waiting) -> Crimson Velvet & Brass (ready) */
.pc-curtain-btn {
  width: 540px;
  max-width: 100%;
  height: 92px;
  margin: 10px auto 0 !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-width: 22px 46px !important;
  border-image: url("art/ui/button-master.webp") 80 150 fill / 22px 46px stretch !important;
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #c2ae8a;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
  opacity: 0.9;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.16s ease, color 0.2s ease;
}

.pc-curtain-btn.is-ready:not(:disabled) {
  border-image: url("art/ui/btn-velvet.webp") 80 150 fill / 22px 46px stretch !important;
  opacity: 1;
  color: #fff2d4;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.68)) drop-shadow(0 0 22px rgba(244, 198, 108, 0.42));
}

.pc-curtain-btn.is-ready:not(:disabled):hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.72)) drop-shadow(0 0 28px rgba(255, 214, 130, 0.68)) brightness(1.08);
}

.pc-curtain-label {
  font-family: "CW Caps", "Oswald", sans-serif;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pc-counter-canvas[data-lang="en"] .pc-curtain-label {
  font-size: 28px;
}

/* Right Amphitheatre Stage (Nocturnal Circus Welt Balcony) */
.pc-stage {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 85% 60% at 50% 35%, #2b1815 0%, #120b0a 60%, #090606 100%);
}

.pc-arena {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url("art/sprites/usher_backdrop.webp") top center / 100% auto no-repeat;
  filter: brightness(0.9) contrast(1.06) saturate(0.95);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 49%, rgba(0, 0, 0, 0.55) 60%, transparent 72%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 49%, rgba(0, 0, 0, 0.55) 60%, transparent 72%);
}

.pc-balcony-floor {
  position: absolute;
  left: 0;
  right: 0;
  top: 40%;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 52% 28%, rgba(145, 62, 34, 0.28), rgba(16, 10, 9, 0.94) 74%),
    url("art/ui/leather.webp") 0 0 / 420px repeat;
  background-blend-mode: normal, multiply;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.68) 18%, #000 38%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.68) 18%, #000 38%);
}

.pc-decks-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.pc-deck {
  position: absolute;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(84, 20, 27, 0.78) 0%, rgba(40, 12, 15, 0.94) 65%, rgba(19, 8, 9, 0.98) 100%),
    url("art/ui/velvet.webp") 0 0 / 320px repeat;
  background-blend-mode: multiply;
  border-top: 1.5px solid rgba(226, 184, 108, 0.58);
  border-bottom: 2px solid rgba(9, 5, 5, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 228, 178, 0.24),
    0 18px 34px rgba(0, 0, 0, 0.72),
    0 1px 0 rgba(190, 150, 82, 0.3);
}

.pc-seats {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.pc-pillars-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.pc-seat,
.pc-seat:hover,
.pc-seat:active,
.pc-seat:active:not(:disabled),
.pc-seat:focus-visible {
  position: absolute;
  transform: translate(-50%, -50%) !important;
  transition: filter 0.14s ease;
}

.pc-seat.occupied {
  cursor: grab;
}
.pc-seat.occupied:active {
  cursor: grabbing;
}

.pc-seat:hover:not(.is-selected):not(.is-upset) .pc-chair {
  filter: drop-shadow(0 0 11px rgba(244, 198, 108, 0.72))
    drop-shadow(0 14px 20px rgba(0, 0, 0, 0.62));
}

.pc-seat.is-selected .pc-chair,
.pc-seat.is-drop-over .pc-chair {
  filter: drop-shadow(0 0 16px rgba(244, 198, 108, 0.98))
    drop-shadow(0 16px 22px rgba(0, 0, 0, 0.65));
}

.pc-seat.is-target:not(.occupied):hover .pc-chair {
  filter: drop-shadow(0 0 14px rgba(244, 198, 108, 0.92))
    drop-shadow(0 14px 20px rgba(0, 0, 0, 0.62));
}

.pc-seat.is-upset .pc-chair {
  filter: drop-shadow(0 0 14px rgba(206, 52, 48, 0.85))
    drop-shadow(0 14px 20px rgba(0, 0, 0, 0.62));
}

.pc-chair {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.62));
}

.pc-seated-guest {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  width: auto;
  max-width: 92%;
  height: 96%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(10, 6, 4, 0.56));
}

.pc-seated-guest.is-plume {
  height: 112%;
}

.pc-seat-code {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  min-width: 44px;
  height: 25px;
  padding: 0 9px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0d0908;
  border: 1px solid rgba(201, 163, 92, 0.64);
  color: #f5e5c2;
  font-family: "CW Num", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.78);
  z-index: 3;
  pointer-events: none;
}

.pc-seat.is-upset .pc-seat-code {
  border-color: rgba(224, 96, 86, 0.9);
  color: #ffd5cf;
}

.pc-seat-alert {
  position: absolute;
  top: 6px;
  right: 2px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, #9b1d28 0%, #641118 100%);
  border: 1.5px solid #ecc984;
  color: #fff6e2;
  font-family: "CW Caps", sans-serif;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.72);
  z-index: 30;
  pointer-events: none;
}

.pc-seat-tip {
  position: absolute;
  left: 50%;
  top: -12px;
  transform: translate(-50%, -100%);
  padding: 5px 14px;
  border-radius: 2px;
  background: rgba(11, 8, 7, 0.94);
  border: 1px solid rgba(201, 163, 92, 0.62);
  color: #f6e7c6;
  font-family: "CW Caps", "Oswald", sans-serif;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.75);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease;
  z-index: 35;
}

.pc-seat:hover .pc-seat-tip,
.pc-seat:focus-visible .pc-seat-tip,
.pc-seat.is-selected .pc-seat-tip {
  opacity: 1;
}

.pc-column {
  position: absolute;
  transform: translateX(-50%);
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.72));
}

.pc-draft-wrap {
  position: absolute;
  left: 12px;
  top: 52%;
  height: 11%;
  z-index: 26;
  pointer-events: none;
}

.pc-draft {
  height: 100%;
  width: auto;
  display: block;
  opacity: 0.86;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55));
}

.pc-wing {
  position: absolute;
  left: -18px;
  top: 0;
  height: 55%;
  z-index: 28;
  pointer-events: none;
}

.pc-wing-curtain {
  height: 100%;
  width: auto;
  display: block;
  filter: brightness(0.86) contrast(1.08) drop-shadow(12px 10px 24px rgba(0, 0, 0, 0.68));
}

.pc-stage-sign {
  position: absolute;
  left: 34px;
  top: 106px;
  min-width: 210px;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 0 18px;
  border-style: solid;
  border-color: transparent;
  border-width: 12px 28px;
  border-image: url("art/ui/plaque.webp") 36 80 fill / 12px 28px stretch;
  font-family: "CW Caps", "Oswald", sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f3dca6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.65));
}

/* Mirrored Aisle Curtain */
.pc-stage[data-aisle="right"] .pc-wing {
  left: auto;
  right: -18px;
}
.pc-stage[data-aisle="right"] .pc-wing-curtain {
  transform: scaleX(-1);
}
.pc-stage[data-aisle="right"] .pc-stage-sign {
  left: auto;
  right: 34px;
}
.pc-stage[data-aisle="right"] .pc-draft-wrap {
  left: auto;
  right: 12px;
}
.pc-stage[data-aisle="right"] .pc-draft {
  transform: scaleX(-1);
}

.pc-stage-bar {
  position: absolute;
  top: 24px;
  left: 28px;
  right: 28px;
  z-index: 32;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}

.pc-box-tag,
.pc-placed-pill,
.pc-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 18px;
  border-radius: 2px;
  background: rgba(11, 8, 7, 0.88);
  border: 1px solid rgba(190, 150, 82, 0.42);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65), inset 0 0 0 3px #0b0807, inset 0 0 0 4px rgba(190, 150, 82, 0.14);
  color: #f1e0be;
}

.pc-box-letter {
  font-family: "CW Display", Georgia, serif;
  font-size: 34px;
  line-height: 0.9;
  color: #edd08c;
}

.pc-box-name {
  font-family: "CW Caps", "Oswald", sans-serif;
  font-size: 21px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pc-stage-pills {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pc-meta-pill,
.pc-placed-pill {
  font-family: "CW Caps", "Oswald", sans-serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pc-meta-pill {
  color: #d6c09a;
}

.pc-apron {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  z-index: 32;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 6px 32px 10px;
  font-family: "CW Text", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  color: #ead9b8;
  background: linear-gradient(180deg, rgba(9, 6, 6, 0) 0%, rgba(10, 7, 6, 0.92) 38%, rgba(8, 5, 5, 0.98) 100%);
}

.pc-apron::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(190, 150, 82, 0.42) 25%, rgba(190, 150, 82, 0.42) 75%, transparent);
  pointer-events: none;
}

.pc-apron-text.is-alert {
  color: #f0b89e;
}

.pc-apron-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pc-apron .pc-reset {
  appearance: none;
  padding: 8px 16px !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid transparent !important;
  background: transparent !important;
  color: #e4d1aa;
  font-family: "CW Caps", "Oswald", sans-serif;
  font-size: 21px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap !important;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.pc-apron .pc-reset[hidden] {
  display: none !important;
}

.pc-apron #pcUnseatBtn {
  color: #f3d698;
  border-bottom-color: rgba(243, 214, 152, 0.45) !important;
}

.pc-apron .pc-reset:hover,
.pc-apron .pc-reset:focus-visible {
  color: #fff2d4;
  background: rgba(100, 22, 34, 0.48) !important;
  border-bottom-color: #be9652 !important;
  outline: none;
}

/* Local rehearsal: balcony and ticket desk above a wide paper guest queue. */
.rehearsal-mode :is(#btnStubs, #btnLang, #btnShare) {
  display: none;
}

.rehearsal-mode #scrShows .day-item {
  gap: 12px;
  padding: 10px;
  align-items: center;
}

.rehearsal-mode #scrShows .day-item strong {
  font-size: clamp(16px, 2vw, 25px);
}

.rehearsal-mode #scrShows .day-item small {
  margin-top: 4px;
  font-size: clamp(13px, 1.4vw, 17px);
  line-height: 1.25;
}

.rehearsal-mode #scrShows .day-item button {
  min-width: 76px;
  min-height: 38px;
}

.rehearsal-mode #scrResult .card-box p {
  font-size: clamp(14px, 1.6vw, 19px);
}

.pc-counter-canvas.has-queue-dock {
  grid-template-columns: minmax(0, 64fr) minmax(0, 36fr);
  grid-template-rows: minmax(0, 1fr) 262px;
}

.has-queue-dock .pc-stage {
  grid-area: 1 / 1;
}

.has-queue-dock .pc-workbench {
  grid-area: 1 / 2;
  border-left: 1px solid rgba(190, 150, 82, 0.42);
  border-right: 0;
  box-shadow: inset 12px 0 32px rgba(0, 0, 0, 0.52);
}

.has-queue-dock .pc-inside {
  padding: 30px 38px 24px;
}

.has-queue-dock .pc-title {
  margin-top: 13px;
  font-size: 63px;
  line-height: 1.02;
}

.has-queue-dock .pc-title-rule::after {
  content: none;
}

.has-queue-dock .pc-ticket-zone {
  margin: 0;
  padding-top: 32px;
}

.has-queue-dock .pc-check-head {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 11px 18px;
}

.has-queue-dock .pc-check-meta {
  align-items: flex-start;
}

.has-queue-dock .pc-check-sub {
  max-width: 100%;
}

.has-queue-dock .pc-valid-rule {
  font-size: 23px;
}

.has-queue-dock .pc-ticket-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.has-queue-dock .pc-ticket {
  min-height: 143px;
  padding-inline: 72px;
}

.has-queue-dock .pc-field-label {
  font-size: 21px;
}

.has-queue-dock .pc-field-val {
  font-size: 34px;
  line-height: 1.1;
  white-space: normal;
  overflow-wrap: anywhere;
}

.has-queue-dock .pc-punch {
  flex-direction: row;
  justify-content: center;
  gap: 14px;
  min-height: 69px;
}

.has-queue-dock .pc-punch-img {
  width: 75px;
  height: 46px;
}

.has-queue-dock .pc-punch-label {
  font-size: 26px;
}

.has-queue-dock .pc-feedback {
  min-height: 65px;
  font-size: 26px;
}

.has-queue-dock .pc-queue-dock {
  grid-area: 2 / 1 / 3 / 3;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 11px 27px 22px;
  border-top: 1px solid rgba(190, 150, 82, 0.52);
  background: #100b09 url("art/ui/leather.webp") center / 512px repeat;
}

.has-queue-dock .pc-queue-dock.is-drop-over {
  box-shadow: inset 0 0 0 5px #a4834b;
}

.has-queue-dock .pc-queue-zone {
  margin-top: 0;
}

.has-queue-dock .pc-guest-list {
  gap: 15px;
  height: 100%;
  padding: 6px 0 0;
  border: 0;
}

.has-queue-dock .pc-guest-list[hidden] {
  display: none;
}

.has-queue-dock .pc-guest {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 10px !important;
}

.has-queue-dock .pc-guest:is(:hover, .selected) {
  transform: none;
}

.has-queue-dock .pc-guest-stage,
.has-queue-dock .pc-guest-art {
  height: 169px;
}

.has-queue-dock .pc-guest-stage {
  margin: 0;
  background: transparent;
}

.has-queue-dock .pc-guest-art {
  object-position: center bottom;
}

.has-queue-dock .pc-guest-name {
  font-size: 46px;
}

.has-queue-dock .pc-guest-quirk {
  font-size: 27px;
  line-height: 1.14;
}

.has-queue-dock .pc-guest-list.is-compact .pc-guest-name {
  font-size: 33px;
}

.has-queue-dock .pc-guest-list.is-compact .pc-guest-quirk {
  font-size: 23px;
}

.has-queue-dock .pc-apron {
  height: 56px;
}

@media (max-width: 679px) {
  .rehearsal-mode .rehearsal-admit:not([hidden]) {
    position: absolute;
    z-index: 7;
    top: 72%;
    left: 34.5%;
    width: 31%;
    padding: 2px 3px;
    background: #301b13;
    color: #ffe7b2;
    border: 1px solid #986944;
    text-align: center;
    font-size: 8.5px;
    font-weight: 700;
    line-height: 1.08;
    pointer-events: none;
  }

  .rehearsal-mode .stub-ticket-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 8.5px;
  }

  .rehearsal-mode #rehearsalAdmitCodes {
    display: block;
  }

  .rehearsal-mode .brass-plate-punch {
    top: 79.5%;
    height: 10.5%;
  }

  .rehearsal-mode :is(#rehearsalAdmitDate, #rehearsalStubDate) {
    font-size: 14px;
    line-height: 1.05;
  }

  .rehearsal-mode #stubQuirk {
    font-size: 10px;
    line-height: 1.12;
  }
}

/* The workshop follows the theatre's wood, brass and velvet palette. */
.workshop {
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-top: 76px;
  color: #f3e2bb;
  background: #17100d radial-gradient(ellipse at top, #302019, #100c0b 72%);
  font: 15px/1.32 Georgia, serif;
}

.workshop-header, .workshop-content {
  width: min(100%, 1100px);
  margin-inline: auto;
  flex: none;
}

.workshop-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px 20px;
  padding: 10px clamp(12px, 3vw, 28px);
  background: #1d130f;
  border-bottom: 1px solid #88623a;
}

.workshop h1, .workshop h2, .workshop p { margin: 0; }
.workshop h1 { font-size: clamp(22px, 3vw, 32px); font-weight: 500; line-height: 1.05; }
.workshop h2 { font-size: 17px; font-weight: 600; }
.workshop-content { display: grid; gap: 12px; padding: 12px clamp(12px, 3vw, 28px) 24px; }
.workshop-nav, .workshop-subhead, .workshop-quick, .workshop-actions, .workshop-review {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.workshop button, .workshop select {
  min-height: 44px;
  color: #f3e2bb;
  background: #291a15;
  border: 1px solid #9d7546;
  border-radius: 3px;
  box-shadow: none;
  font: 600 14px/1.25 Georgia, serif;
}

.workshop button { padding: 7px 12px; white-space: normal; }
.workshop button[aria-pressed="true"] { border-color: #edbf72; background: #5b2426; }
.workshop :is(button, select):focus-visible { outline: 2px solid #f6c779; outline-offset: 2px; }
.workshop .workshop-primary:not(:disabled) { color: #23130a; background: #e4bb78; border-color: #f5d99d; }
.workshop button:disabled { opacity: 0.56; }

.workshop-field { display: grid; gap: 3px; font-size: 13px; color: #e4cba6; }
.workshop-field select { min-width: 0; width: 100%; padding: 6px; font-size: 16px; }
.workshop-layout { display: flex; gap: 5px; }
.workshop-layout button { min-width: 48px; }
.workshop-actions .workshop-field { min-width: min(195px, 100%); }
.workshop-actions { align-items: end; }
.workshop-columns { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.workshop-stage {
  border: 1px solid #9d7546;
  background: linear-gradient(rgb(24 13 10 / 16%), #1b0d0b 82%), url("art/sprites/usher_backdrop.webp") center top / cover;
  box-shadow: inset 0 0 24px #1b0c07;
}
.workshop-stage-rail, .workshop-active-clue {
  padding: 9px 12px;
  background: #1a110dec;
  border-bottom: 1px solid #aa774a;
}
.workshop-stage-rail { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.workshop-stage-rail span:last-child { font-variant-numeric: tabular-nums; color: #f6c67c; white-space: nowrap; }
.workshop-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px; }
.workshop .workshop-seat {
  display: grid;
  position: relative;
  justify-items: center;
  align-content: end;
  gap: 1px;
  min-width: 0;
  min-height: 76px;
  padding: 3px 3px 5px;
  color: #ffedc9;
  background: #21130fba;
  border-color: #bd945b;
}
.workshop .workshop-seat[aria-pressed="true"] { background: #5b2426e8; border-color: #ffd183; }
.workshop-seat-art { display: block; width: 62px; height: clamp(41px, 8vw, 65px); object-fit: contain; }
.workshop-seat-id { position: absolute; top: 4px; left: 5px; font-size: 11px; color: #ffe0a7; }
.workshop-seat-name { width: 100%; font-size: 12px; overflow-wrap: anywhere; }
.workshop-seat.has-conflict::after {
  content: "!";
  position: absolute;
  top: 4px;
  right: 5px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: #fff2d6;
  background: #9c2933;
  font-size: 13px;
}
.workshop-inspector { display: grid; gap: 8px; padding: 12px; border: 1px solid #9d7546; background: #241813; }
.workshop-inspector h2 { padding-bottom: 5px; border-bottom: 1px solid #725238; }
.workshop-quick h2 { width: 100%; }
.workshop-quick button { flex: 0 1 auto; }
.workshop-small { color: #d8bc97; font-size: 13px; }
.workshop-status { width: 100%; padding: 8px 10px; background: #302018; border-left: 2px solid #c89d5b; }
.workshop-actions { padding-top: 8px; border-top: 1px solid #795739; }
.workshop-actions .workshop-small { width: 100%; }

.workshop-player-guests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.workshop-player-guests button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  text-align: left;
  padding: 7px;
}
.workshop-player-guests img { width: 30px; height: 42px; object-fit: contain; flex: none; }
.workshop-player-guests strong, .workshop-player-guests small { display: block; overflow-wrap: anywhere; }
.workshop-player-guests small { margin-top: 2px; color: #e4c7a1; font-weight: 400; }
.workshop-active-clue { min-height: 50px; font-size: 14px; }
.workshop-gallery-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 10px; }
.workshop-entry {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid #997345;
  background: #241813 url("art/ui/leather.webp") center / cover;
}
.workshop-entry > div:first-child { flex: 1 1 125px; min-width: 0; }
.workshop-review { flex-basis: 100%; }
.workshop-result { justify-items: start; }
.workshop-result h2 { font-size: clamp(24px, 5vw, 38px); }
.workshop .workshop-mobile-back { display: none; }

@media (max-width: 680px) {
  .workshop { scroll-padding-top: 100px; }
  .workshop-header { padding-block: 8px; }
  .workshop-nav { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) auto; }
  .workshop .workshop-nav button, .workshop .workshop-subhead button { padding-inline: 6px; font-size: 12px; }
  .workshop-columns { grid-template-columns: 1fr; }
  .workshop-subhead { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; }
  .workshop-content { gap: 9px; }
  .workshop .workshop-mobile-back { display: inline-block; justify-self: start; grid-row: 1; grid-column: 2; }
  .workshop-inspector { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .workshop-inspector > :not(h2, .workshop-mobile-back) { grid-column: 1 / -1; }
}


/* Compact weekly box office */
#cabinet:has(#scrPlay:not([hidden]) .counter-show:not([hidden])) {
  border: 0;
  background: #211215;
}

#cabinet:has(#scrPlay:not([hidden]) .counter-show:not([hidden])) .topbar {
  background: #24171a;
  border: 0;
  padding-inline: 8px;
}

#cabinet:has(#scrPlay:not([hidden]) .counter-show:not([hidden])) .top-actions button {
  min-height: 24px;
  border-color: #976c4e;
  background: transparent;
}

.counter-show {
  flex: 1;
  width: 100%;
  min-height: 0;
  padding: 8px 12px 4px;
  display: grid;
  grid-template-rows: auto auto 44px 44px minmax(115px, 1fr) 62px;
  gap: 4px;
  overflow: auto;
  background: radial-gradient(ellipse at 18% -8%, #674134, #392324 52%, #231518 100%);
  color: #f9e6c4;
  font: 500 13px/1.22 system-ui, sans-serif;
}

.counter-show [hidden],
.counter-show[hidden] {
  display: none;
}

.counter-show[data-ready="true"] {
  grid-template-rows: auto auto minmax(115px, 1fr) 62px;
}

.counter-show[data-ready="true"] :is(.counter-inspector, .counter-tools, .counter-queue) {
  display: none;
}

:is(.counter-show, .result-screen.is-landscape) :is(h1, h2, p, dl, dd) {
  margin: 0;
}

.counter-heading {
  min-width: 0;
  padding: 0 2px 2px;
}

.counter-edition {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.counter-heading p {
  color: #e0b88e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .055em;
}

.counter-heading h1 {
  margin-top: 1px;
  font: 700 34px/.95 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.03em;
}

.counter-ready {
  padding: 7px 2px 9px;
  color: #ebc497;
  font-size: 13px;
}

.counter-inspector {
  min-width: 0;
  min-height: 114px;
  display: grid;
  grid-template-columns: minmax(53px, 26%) minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  padding: 5px 7px 5px 3px;
  border-radius: 10px;
  background: linear-gradient(108deg, #81583d68, #24151b85 66%);
}

.counter-portrait {
  width: 100%;
  height: 103px;
  align-self: end;
  object-fit: contain;
  filter: drop-shadow(1px 3px 4px #211115aa);
}

.counter-inspector-copy {
  grid-column: 2;
  min-width: 0;
}

.counter-inspector h2 {
  font: 700 25px/.95 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.02em;
}

.counter-quirk {
  min-height: 2.4em;
  color: #f3dfc4;
  font-size: 12px;
}

.counter-today {
  display: flex;
  gap: 5px;
  align-items: baseline;
  color: #e7c198;
  font-size: 11px;
}

.counter-today strong {
  color: #fff0ce;
  font-size: 10.5px;
  white-space: nowrap;
}

.counter-ticket {
  display: grid;
  grid-template-columns: minmax(36px, .58fr) minmax(0, 1.42fr) minmax(55px, 1fr);
  align-items: center;
  min-height: 46px;
  padding: 4px 11px;
  background: url("art/sprites/prop_ticket.webp") center / 100% 100% no-repeat;
  color: #39201c;
  text-align: center;
}

.counter-ticket dt {
  color: #634431;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.counter-ticket dd {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.counter-ticket div:nth-child(2) dd {
  font-size: clamp(10.5px, 3.75vw, 14px);
}

.counter-ticket div:last-child dd {
  font-size: 11px;
  letter-spacing: -.035em;
}

.counter-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.counter-feedback {
  align-self: center;
  max-height: 44px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  padding-left: 2px;
  color: #f5dbb8;
  font-size: 11px;
}

.counter-feedback[data-punched="true"] {
  color: #d6e6b1;
}

.counter-show button {
  touch-action: manipulation;
}

.counter-show button:focus-visible {
  position: relative;
  outline: 2px solid #ffda82;
  outline-offset: -3px;
}

.counter-punch,
.counter-hint,
.counter-guest {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
}

.counter-punch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px 3px 6px;
  background: linear-gradient(#f9ddab, #d8a873);
  color: #382219;
  font: 750 12px/1 system-ui, sans-serif;
}

.counter-punch img {
  width: 28px;
  height: 26px;
  object-fit: contain;
}

.counter-queue,
.counter-guest-list {
  display: flex;
  align-items: stretch;
  gap: 3px;
  min-width: 0;
}

.counter-guest-list {
  flex: 1;
}

.counter-hint,
.counter-guest {
  padding: 2px 5px;
  color: #f7ddaf;
  background: #2b191c;
  font: 650 11px/1.1 system-ui, sans-serif;
}

.counter-guest {
  min-width: 0;
  flex: 1;
  white-space: normal;
  overflow-wrap: anywhere;
}

.counter-guest[aria-pressed="true"] {
  background: #70483b;
  box-shadow: inset 0 -2px #efbf84;
  color: #fff0d2;
}

.counter-hint {
  min-width: 44px;
  background: transparent;
  text-decoration: underline;
  text-decoration-color: #a67d60;
  text-underline-offset: 3px;
}

.counter-stage {
  min-height: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(#21111977, transparent 40%, #1e1115bd 92%),
    url("art/sprites/usher_backdrop.webp") center 55% / cover;
}

.counter-stage-caption {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 5px;
  padding: 5px 8px;
  background: linear-gradient(#28191ddc, #28191d26);
  color: #ffedd2;
  font-size: 10.5px;
}

.counter-stage-caption h2 {
  font: 750 10.5px/1.2 system-ui, sans-serif;
}

.counter-wing,
.counter-draft {
  position: absolute;
  pointer-events: none;
}

.counter-wing {
  top: 0;
  left: -11px;
  width: 25%;
}

.counter-draft {
  z-index: 1;
  width: 33px;
  bottom: 7px;
  left: 2px;
}

.counter-seats {
  position: absolute;
  inset: 19px 6px 1px 22px;
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows), minmax(0, 1fr));
}

.counter-seat {
  position: relative;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff1ce;
}

.counter-seat[aria-pressed="true"] {
  background: radial-gradient(ellipse, #f9bd5c5e, transparent 65%);
}

.counter-seat img {
  pointer-events: none;
  position: absolute;
  bottom: 4px;
  left: 50%;
  height: 92%;
  width: 92%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
}

.counter-seat .counter-occupant {
  height: 98%;
  bottom: 4px;
  filter: drop-shadow(2px 2px 2px #261317cc);
}

.counter-seat .counter-pillar {
  height: 112%;
  left: 66%;
  width: 27%;
  z-index: 1;
  object-position: center bottom;
}

.counter-number {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 1px;
  transform: translateX(-50%);
  padding: 0 4px;
  border-radius: 2px;
  background: #2b191b;
  color: #ffe8bd;
  font: 800 10px/1.3 system-ui, sans-serif;
}

.counter-seat-reaction:not(:empty) {
  position: absolute;
  z-index: 1;
  right: 18%;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #872a28;
  color: #fff7df;
  font: 800 12px/16px system-ui, sans-serif;
}

.counter-show[data-ready="true"] .counter-seats {
  inset-block-start: 28%;
}

.counter-show[data-rows="3"]:not(.is-landscape, [data-ready="true"]) {
  grid-template-rows: auto auto 44px 44px minmax(153px, 1fr) 58px;
  gap: 3px;
  padding-block: 5px 3px;
}

.counter-show[data-rows="3"]:not(.is-landscape) .counter-heading h1 {
  font-size: 30px;
}

.counter-show[data-rows="3"]:not(.is-landscape) .counter-inspector {
  min-height: 104px;
  padding-block: 4px;
}

.counter-show[data-rows="3"]:not(.is-landscape) .counter-portrait {
  height: 90px;
}

.counter-curtain {
  min-height: 44px;
  width: 100%;
  padding: 9px 34px 0 0;
  border: 0;
  background: url("art/ui/curtain-walnut.webp") center / min(100%, 310px) auto no-repeat;
  color: #ffebc5;
  font: 700 22px/.9 "Cormorant Garamond", Georgia, serif;
  text-shadow: 0 1px 2px #21131a;
  letter-spacing: -.015em;
}

.counter-curtain:disabled {
  opacity: .72;
}

@media (max-width: 320px) {
  .counter-show { padding-inline: 10px; }
  .counter-ticket { padding-inline: 8px; }
}

/* Landscape counter: game UI design system, sections 2, 3, 6 and 7. */
#cabinet:has(#scrPlay:not([hidden]) .counter-show.is-landscape, #scrResult.is-landscape:not([hidden])) {
  --game-bg: #17110e;
  --panel-glass: #0b0807f2;
  --panel-ink: #ebd4a5;
  --panel-ink-soft: #c8ae83;
  --panel-brass: #be9652;
  --panel-wine: #641622;
  --cw-focus: #e3bd77;
  --cw-ink-hover: #fff1cf;
  --cw-hit: 44px;
  --cw-edge-left: max(24px, env(safe-area-inset-left));
  --cw-edge-right: max(24px, env(safe-area-inset-right));
  --cw-edge-bottom: max(24px, env(safe-area-inset-bottom));
  --type-control: "CW Caps", "Arial Narrow", sans-serif;
  --type-reading: "CW Display", Georgia, serif;
  --type-dialogue: "CW Text", Georgia, serif;
  --type-number: "CW Num", Georgia, serif;

  max-width: none;
  height: 100dvh;
  max-height: 100vh;
  border: 0;
  color: var(--panel-ink);
  background: var(--game-bg);
}

#cabinet:has(#scrPlay:not([hidden]) .counter-show.is-landscape, #scrResult.is-landscape:not([hidden])) .topbar {
  height: var(--cw-hit);
  padding-inline: var(--cw-edge-left) var(--cw-edge-right);
  gap: 5px;
  border: 0;
  background: var(--panel-glass);
}

#cabinet:has(#scrPlay:not([hidden]) .counter-show.is-landscape, #scrResult.is-landscape:not([hidden])) .top-actions {
  gap: 3px;
}

#cabinet:has(#scrPlay:not([hidden]) .counter-show.is-landscape, #scrResult.is-landscape:not([hidden])) .brand {
  color: var(--panel-ink);
  font: 300 13px/1 var(--type-control);
  letter-spacing: .08em;
}

#cabinet:has(#scrPlay:not([hidden]) .counter-show.is-landscape, #scrResult.is-landscape:not([hidden])) .top-actions button {
  min-width: var(--cw-hit);
  min-height: var(--cw-hit);
  padding-inline: 5px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--panel-ink);
  font: 300 12px/1 var(--type-control);
  text-transform: uppercase;
  letter-spacing: .06em;
}

#cabinet:has(#scrPlay:not([hidden]) .counter-show.is-landscape, #scrResult.is-landscape:not([hidden])) .top-actions button:is(:hover, :focus-visible) {
  background: #64162244;
  border-bottom-color: var(--panel-brass);
  color: var(--cw-ink-hover);
}

#cabinet:has(#scrPlay:not([hidden]) .counter-show.is-landscape, #scrResult.is-landscape:not([hidden])) :focus-visible {
  outline: 2px solid var(--cw-focus);
  outline-offset: -2px;
}

.counter-show.is-landscape,
.result-screen.is-landscape {
  display: grid;
  grid-template-columns: clamp(260px, 43%, 355px) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) 44px 46px;
  gap: 4px 12px;
  padding: 4px var(--cw-edge-right) var(--cw-edge-bottom) var(--cw-edge-left);
  background: linear-gradient(#0b0807b8, #0b0807d9), url("art/ui/leather.webp") left top / 320px repeat, var(--game-bg);
  color: var(--panel-ink);
  font: 16px/1.2 var(--type-reading);
}

.counter-show.is-landscape {
  grid-template-areas:
    "intro stage"
    "card stage"
    "tools stage"
    "lever queue";
}

.counter-show.is-landscape[hidden] {
  display: none;
}

.is-landscape .counter-heading {
  grid-area: intro;
  padding: 0;
}

.is-landscape .counter-heading p {
  color: var(--panel-ink-soft);
  font: 300 12px/1.1 var(--type-control);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.is-landscape .counter-heading h1 {
  margin-top: 2px;
  color: var(--panel-ink);
  font: 300 clamp(24px, 3.9vw, 32px)/1.05 var(--type-control);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.is-landscape :is(.counter-inspector, .result-card) {
  grid-area: card;
  min-height: 0;
  align-self: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.is-landscape .counter-inspector {
  grid-template:
    "portrait name" auto
    "portrait quirk" auto
    "admit admit" auto
    "ticket ticket" auto /
    clamp(53px, 8.6vw, 72px) minmax(0, 1fr);
  gap: 1px 8px;
  align-items: start;
}

.is-landscape .counter-inspector-copy {
  display: contents;
}

.is-landscape .counter-portrait {
  grid-area: portrait;
  height: clamp(72px, 19.2vh, 92px);
  align-self: end;
  object-position: center bottom;
}

.is-landscape .counter-inspector h2,
.result-screen.is-landscape #resHeading {
  color: var(--panel-ink);
  font: 300 clamp(20px, 3.3vw, 27px)/1.1 var(--type-control);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.is-landscape .counter-inspector h2 {
  grid-area: name;
}

.is-landscape .counter-quirk {
  grid-area: quirk;
  min-height: 0;
  color: var(--panel-ink);
  font: 16px/1.13 var(--type-reading);
}

.is-landscape .counter-today {
  grid-area: admit;
  align-self: end;
  margin-block: 1px;
  color: var(--panel-ink-soft);
  font: 13px/1.15 var(--type-reading);
}

.is-landscape .counter-today strong {
  color: var(--panel-ink);
  font: 400 14px/1.15 var(--type-number);
  white-space: normal;
}

.is-landscape .counter-ticket,
.result-screen.is-landscape .result-stub-paper {
  background: none;
  border-style: solid;
  border-color: transparent;
  border-image: url("art/sprites/prop_ticket.webp") 28 51 28 51 fill stretch;
  color: #302923;
}

.is-landscape .counter-ticket {
  grid-area: ticket;
  min-height: 44px;
  margin-top: 3px;
  padding: 0 4px;
  border-width: 7px 22px;
  grid-template-columns: minmax(42px, .56fr) minmax(0, 1.44fr) minmax(83px, 1fr);
}

.is-landscape .counter-ticket dt {
  color: inherit;
  font: 300 11px/1 var(--type-control);
  letter-spacing: .06em;
}

.is-landscape .counter-ticket dd,
.is-landscape .counter-ticket div:nth-child(2) dd,
.is-landscape .counter-ticket div:last-child dd {
  font: 400 16px/1.05 var(--type-number);
  letter-spacing: 0;
  white-space: normal;
}

.is-landscape .counter-tools {
  grid-area: tools;
  gap: 4px;
}

.is-landscape .counter-feedback {
  color: var(--panel-ink-soft);
  font: 500 14px/1.08 var(--type-dialogue);
}

.is-landscape .counter-feedback[data-punched="true"] {
  color: var(--panel-ink);
}

.is-landscape .counter-stage {
  grid-area: stage;
  border-radius: 0;
  background:
    linear-gradient(0deg, #0b0807bb, transparent 50%),
    url("art/sprites/usher_backdrop.webp") center top / cover;
  box-shadow: none;
}

.is-landscape .counter-stage-caption {
  padding: 6px 8px;
  align-items: baseline;
  background: linear-gradient(var(--panel-glass), transparent);
  color: var(--panel-ink);
  font: 14px/1.1 var(--type-reading);
}

.is-landscape .counter-stage-caption h2 {
  font: 300 13px/1.1 var(--type-control);
  letter-spacing: .075em;
  text-transform: uppercase;
}

.is-landscape .counter-wing {
  z-index: 1;
  top: 5%;
  left: -6px;
  width: auto;
  height: 61%;
  max-width: 28%;
  object-fit: fill;
}

.is-landscape .counter-draft {
  bottom: 10%;
  width: 13%;
  left: -1%;
}

.is-landscape .counter-seats {
  inset: 24% 4% 7px 13%;
  row-gap: 1px;
}

.counter-show.is-landscape[data-rows="3"] .counter-seats {
  inset-block-start: 18%;
}

.is-landscape .counter-seat {
  border-radius: 0;
}

.is-landscape .counter-number {
  bottom: 2px;
  padding: 1px 4px;
  border-radius: 0;
  background: var(--panel-glass);
  color: var(--panel-ink);
  box-shadow: none;
  font: 400 13px/1 var(--type-number);
}

.is-landscape .counter-queue {
  grid-area: queue;
  align-items: center;
  gap: 4px;
}

.is-landscape .counter-guest-list {
  gap: 4px;
}

.is-landscape :is(.counter-guest, .counter-hint, .counter-punch, .result-extras button, .result-navigation button) {
  min-height: var(--cw-hit);
  min-width: 0;
  padding: 4px 5px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--panel-ink);
  font: 300 13px/1 var(--type-control);
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: normal;
}

.is-landscape .counter-hint {
  min-width: var(--cw-hit);
}

.is-landscape .counter-guest[aria-pressed="true"] {
  background: #64162266;
  color: var(--cw-ink-hover);
  box-shadow: inset 3px 0 var(--panel-brass);
}

.is-landscape :is(.counter-guest, .counter-hint, .counter-punch, .result-extras button, .result-navigation button):enabled:is(:hover, :focus-visible) {
  color: var(--cw-ink-hover);
  border-bottom-color: var(--panel-brass);
  background: #64162244;
}

.is-landscape :is(.counter-punch, #btnNextShow) {
  background: linear-gradient(180deg, #7a1a2acc, #4c0f1acc);
  box-shadow: inset 0 0 0 1px #be965299;
}

.is-landscape .counter-punch {
  padding-inline: 5px 8px;
  font-size: 14px;
}

.is-landscape .counter-curtain {
  grid-area: lever;
  justify-self: center;
  max-width: 318px;
  padding: 7px 37px 0 0;
  background-size: contain;
  color: var(--panel-ink);
  font: 400 clamp(17px, 2.6vw, 22px)/1 var(--type-reading);
  letter-spacing: 0;
}

.is-landscape .counter-curtain:disabled {
  opacity: .55;
}

.counter-show.is-landscape[data-ready="true"] {
  grid-template-areas:
    "intro stage"
    "ready stage"
    "ready stage"
    "lever stage";
}

.is-landscape .counter-ready {
  grid-area: ready;
  align-self: end;
  padding: 0 0 4px;
  color: var(--panel-ink);
  font: 300 24px/1.1 var(--type-control);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.counter-show.is-landscape[data-ready="true"] .counter-seats,
.result-screen.is-landscape .result-hall .counter-seats {
  inset-block-start: 28%;
}

.result-hall,
#resShortTitle {
  display: none;
}

.result-navigation {
  display: grid;
}

.result-navigation button {
  min-height: 36px;
}

.result-extras button {
  min-width: 0;
  white-space: normal;
}

.result-screen.is-landscape {
  grid-template-areas:
    "intro stage"
    "card stage"
    "tools stage"
    "lever stage";
  align-items: stretch;
}

.result-screen.is-landscape > * {
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
}

.result-screen.is-landscape #resFullTitle,
.result-screen.is-landscape #resStubContext,
.result-screen.is-landscape #resCommunity:empty {
  display: none;
}

.result-screen.is-landscape #resShortTitle,
.result-screen.is-landscape .result-hall {
  display: block;
}

.result-screen.is-landscape .result-card-status {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 4px;
}

.result-screen.is-landscape #resHeading {
  margin: 0;
  padding: 0;
  border: 0;
}

.result-screen.is-landscape #resSummary {
  margin: 0;
  color: var(--panel-ink-soft);
  font: 14px/1.1 var(--type-reading);
  white-space: nowrap;
}

.result-screen.is-landscape .result-score {
  font-family: var(--type-number);
}

.result-screen.is-landscape .result-stub-paper {
  padding: 2px 5px 3px;
  border-width: 8px 21px;
}

.result-screen.is-landscape #resStubTitle {
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  color: inherit;
  font: 300 16px/1 var(--type-control);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.result-screen.is-landscape #resStubText {
  margin: 0;
  color: inherit;
  font: 16px/1.16 var(--type-reading);
}

.result-screen.is-landscape .result-navigation {
  grid-area: lever;
}

.is-landscape #btnNextShow {
  min-height: var(--cw-hit);
  font-size: 17px;
}

.result-screen.is-landscape .result-extras {
  grid-area: tools;
  justify-content: space-between;
  gap: 4px;
}

.result-screen.is-landscape .result-extras button {
  padding-inline: 0;
  text-align: left;
}
