:root {
  --bg-wall: #F4EFE3;
  --bg-limestone: #EBE2CE;
  --bg-limestone-deep: #E4D8BF;
  --bg-paper: #FCF9F2;
  --bg-paper-elevated: #F6EFE2;
  --bg-placard: rgba(252, 249, 242, 0.94);
  --bg-easel-mat: rgba(235, 226, 206, 0.72);
  --bg-scrim: rgba(24, 18, 12, 0.58);

  --ink-primary: #1E1813;
  --ink-secondary: #524537;
  --ink-muted: #6E5F4F;
  --accent-brass: #855D1C;
  --accent-brass-bright: #C8A055;
  --accent-brass-soft: rgba(133, 93, 28, 0.12);
  --accent-burgundy: #7A1F2B;

  --status-safe: #1F5E42;
  --status-safe-bg: #E7F2EC;
  --status-warn: #8F5B10;
  --status-warn-bg: #F8EEDB;
  --status-danger: #9E242C;
  --status-danger-bg: #FCECEC;

  --frame-walnut: #382416;
  --frame-walnut-edge: #23160D;
  --frame-gilt: #C59D52;
  --hairline: rgba(58, 38, 24, 0.15);
  --hairline-strong: rgba(58, 38, 24, 0.34);

  --card-back-bg: #1B283B;
  --card-back-trim: #D6B778;
  --card-shadow: 0 8px 20px rgba(32, 22, 12, 0.16), 0 2px 5px rgba(32, 22, 12, 0.1);
  --card-lift-shadow: 0 16px 32px rgba(32, 22, 12, 0.26), 0 4px 10px rgba(32, 22, 12, 0.14);
  --placard-shadow: 0 10px 28px rgba(38, 26, 14, 0.07), 0 1px 3px rgba(38, 26, 14, 0.05);

  --font-display: 'Cormorant Garamond', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --tap-min: 42px;
  --radius-card: 3px;
  --radius-sheet: 4px;

  --linen-weave:
    repeating-linear-gradient(0deg, rgba(95, 72, 44, 0.028) 0px, rgba(95, 72, 44, 0.028) 1px, transparent 1px, transparent 5px),
    repeating-linear-gradient(90deg, rgba(95, 72, 44, 0.028) 0px, rgba(95, 72, 44, 0.028) 1px, transparent 1px, transparent 5px),
    radial-gradient(ellipse 88% 58% at 50% 14%, rgba(255, 253, 248, 0.82), transparent 72%);
}

html.theme-nocturnal {
  --bg-wall: #101B16;
  --bg-limestone: #16251E;
  --bg-limestone-deep: #0D1712;
  --bg-paper: #172720;
  --bg-paper-elevated: #1E3129;
  --bg-placard: rgba(23, 39, 32, 0.92);
  --bg-easel-mat: rgba(16, 27, 22, 0.68);
  --bg-scrim: rgba(5, 9, 7, 0.78);

  --ink-primary: #F2EAD9;
  --ink-secondary: #D4C8B4;
  --ink-muted: #AC9E88;
  --accent-brass: #D8B572;
  --accent-brass-bright: #E5C687;
  --accent-brass-soft: rgba(216, 181, 114, 0.15);
  --accent-burgundy: #E08A93;

  --status-safe: #66C498;
  --status-safe-bg: rgba(102, 196, 152, 0.16);
  --status-warn: #E8B153;
  --status-warn-bg: rgba(232, 177, 83, 0.16);
  --status-danger: #ED7A80;
  --status-danger-bg: rgba(237, 122, 128, 0.16);

  --hairline: rgba(216, 181, 114, 0.18);
  --hairline-strong: rgba(216, 181, 114, 0.38);
  --placard-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);

  --linen-weave:
    repeating-linear-gradient(0deg, rgba(216, 181, 114, 0.022) 0px, rgba(216, 181, 114, 0.022) 1px, transparent 1px, transparent 5px),
    repeating-linear-gradient(90deg, rgba(216, 181, 114, 0.022) 0px, rgba(216, 181, 114, 0.022) 1px, transparent 1px, transparent 5px),
    radial-gradient(ellipse 88% 58% at 50% 14%, rgba(32, 54, 44, 0.55), transparent 72%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: clip;
  background-color: var(--bg-wall);
  background-image: var(--linen-weave);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
  color: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none !important;
}

.app-root {
  min-height: 100dvh;
  width: 100%;
}

.boot-loading {
  padding: 64px 20px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  color: var(--ink-secondary);
}

/* ==========================================================================
   MUSEUM BOOKPLATE BUTTONS & SHARED CONTROLS
   ========================================================================== */

.btn-bookplate,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--tap-min);
  padding: 10px 26px;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.14s ease, box-shadow 0.16s ease, opacity 0.15s ease, background-color 0.15s ease;
}

.btn-bookplate:hover:not(:disabled),
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-bookplate:active:not(:disabled),
.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn-bookplate:disabled,
.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.btn-bookplate-primary,
.btn-primary,
.btn-accent,
.btn-gold {
  background: #231B15;
  color: #FAF6EE;
  border: 1px solid #231B15;
  box-shadow:
    inset 0 0 0 1px rgba(200, 160, 85, 0.52),
    0 4px 12px rgba(32, 22, 12, 0.12);
}

html.theme-nocturnal .btn-bookplate-primary,
html.theme-nocturnal .btn-primary,
html.theme-nocturnal .btn-accent,
html.theme-nocturnal .btn-gold {
  background: #D8B572;
  color: #121B16;
  border-color: #D8B572;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.btn-bookplate-secondary,
.btn-secondary,
.btn-ghost {
  background: var(--bg-paper);
  color: var(--ink-primary);
  border: 1px solid var(--hairline-strong);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    0 3px 10px rgba(32, 22, 12, 0.05);
}

html.theme-nocturnal .btn-bookplate-secondary,
html.theme-nocturnal .btn-secondary,
html.theme-nocturnal .btn-ghost {
  box-shadow: none;
}

.btn-bookplate-danger,
.btn-danger {
  background: #6E1C24;
  color: #FAF6EE;
  border: 1px solid #531219;
  box-shadow: inset 0 0 0 1px rgba(224, 168, 150, 0.4);
}

.btn-bookplate-sm,
.btn-compact {
  min-height: 38px;
  padding: 7px 18px;
  font-size: 15.5px;
}

.btn-block {
  width: 100%;
}

.museum-text-link,
.gallery-inline-link,
.btn-link {
  background: transparent;
  border: none;
  padding: 2px 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  font-weight: 600;
  color: var(--accent-burgundy);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.input-control {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 2px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-paper);
  color: var(--ink-primary);
  font-size: 14px;
}

.input-control:focus {
  outline: 1.5px solid var(--accent-brass);
  outline-offset: 1px;
}

/* ==========================================================================
   SHARED FLOATING GALLERY MASTHEAD (OPEN, UNBOXED, ZERO BORDER LINES)
   ========================================================================== */

.museum-landing {
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.museum-masthead {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 22px clamp(18px, 5.5vw, 84px) 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.museum-brand {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 11px;
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
}

.museum-brand-btn {
  cursor: pointer;
  transition: opacity 0.14s ease;
}

.museum-brand-btn:hover {
  opacity: 0.82;
}

.btn-bookplate-resume {
  background: var(--status-safe-bg);
  color: var(--status-safe);
  border: 1px solid var(--status-safe);
  box-shadow: inset 0 0 0 1px rgba(31, 94, 66, 0.14);
}

.btn-bookplate-resume:hover:not(:disabled) {
  background: var(--status-safe);
  color: #FAF6EE;
}

.museum-brand-star {
  color: var(--accent-brass);
  font-size: 15px;
}

.museum-brand-title {
  font-family: var(--font-display);
  font-size: clamp(23px, 2.4vw, 29px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.museum-brand-sub {
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  color: var(--ink-muted);
}

.museum-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.museum-nav-link {
  background: transparent;
  border: none;
  padding: 4px 0;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: color 0.14s ease;
}

.museum-nav-link:hover {
  color: var(--ink-primary);
}

.museum-swatch-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: none;
  padding: 4px 2px;
  font-family: var(--font-display);
  font-size: 15.5px;
  color: var(--ink-secondary);
  cursor: pointer;
}

.museum-swatch-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--frame-gilt);
  display: inline-block;
}

.museum-swatch-dot.is-green {
  background: #14231C;
}

.museum-swatch-dot.is-cream {
  background: #F4EFE3;
}

/* ==========================================================================
   ACT I: CENTERED MUSEUM HERO & TACTILE EASEL STAGE
   ========================================================================== */

.museum-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(20px, 3.5vw, 36px) clamp(18px, 5vw, 64px) clamp(40px, 5vw, 56px);
  text-align: center;
}

.museum-hero-eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--accent-brass);
}

.section-caps-eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-brass);
}

.museum-hero-h1 {
  margin: 0 auto 18px;
  max-width: 880px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.012em;
}

.museum-hero-lead {
  margin: 0 auto 28px;
  max-width: 680px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.48;
  color: var(--ink-secondary);
}

.hero-cta-group {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(34px, 4.5vw, 50px);
}

.hero-primary-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Compact, Tailored Museum Room-Code Slip (Narrower Than Primary Buttons Above) */

.hero-code-slip {
  display: inline-flex;
  align-items: center;
  background: var(--bg-paper);
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  padding: 2px 2px 2px 13px;
  box-shadow: 0 2px 8px rgba(32, 22, 12, 0.05);
  max-width: 246px;
}

.hero-code-slip.is-prominent {
  max-width: 290px;
  margin: 6px 0 8px;
}

.hero-code-input {
  width: 142px;
  min-height: 32px;
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-primary);
}

.hero-code-input::placeholder {
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink-muted);
}

.hero-code-input:focus {
  outline: none;
}

.hero-code-submit {
  min-height: 32px;
  padding: 0 14px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-primary);
  cursor: pointer;
}

.hero-code-submit:hover:not(:disabled) {
  color: var(--accent-brass);
}

.hero-code-error {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--status-danger);
}

.hero-resume-note {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 15.5px;
  color: var(--ink-secondary);
}

/* Tactile Easel & Full-Bleed Cards Stage */

.hero-easel-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin: 0 auto;
}

.hero-verso-fan {
  display: none;
  position: relative;
  width: 210px;
  height: 180px;
}

.hero-verso-card {
  position: absolute;
  top: 18px;
  left: 54px;
  width: 98px;
  height: 140px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(24, 18, 10, 0.22);
}

.hero-verso-card.v-1 { transform: translateX(-42px) rotate(-13deg); }
.hero-verso-card.v-2 { transform: translateX(-13px) rotate(-4deg); }
.hero-verso-card.v-3 { transform: translateX(17px) rotate(5deg); }
.hero-verso-card.v-4 { transform: translateX(46px) rotate(13deg); }

.hero-easel-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-easel-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.hero-easel-btn:hover {
  transform: translateY(-3px);
}

.hero-easel-anchor {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-hidden-plaque,
.easel-hidden-plaque {
  position: absolute;
  top: -13px;
  right: 12px;
  z-index: 4;
  background: rgba(30, 21, 14, 0.92);
  color: #F3E8D2;
  border: 1px solid var(--frame-gilt);
  padding: 2px 9px;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-style: italic;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(20, 12, 6, 0.28);
  pointer-events: none;
}

.hero-tucked-verso {
  position: absolute;
  top: -14px;
  right: -20px;
  z-index: 1;
  width: 68px;
  height: 96px;
  border-radius: 3px;
  overflow: hidden;
  transform: rotate(14deg);
  box-shadow: 0 8px 18px rgba(24, 16, 10, 0.28);
}

.hero-tucked-verso .wax-drop {
  position: absolute;
  top: 10px;
  right: 10px;
}

.hero-wood-mast {
  position: relative;
  z-index: 2;
  width: 22px;
  height: 10px;
  background: #4A311F;
  border-radius: 2px 2px 0 0;
}

.museum-gilt-frame {
  position: relative;
  z-index: 2;
  background: var(--frame-walnut);
  padding: 8px;
  box-shadow:
    inset 0 0 0 1.5px var(--frame-gilt),
    0 22px 44px rgba(32, 20, 10, 0.24),
    0 5px 12px rgba(32, 20, 10, 0.14);
}

.hero-quad-grid {
  width: 236px;
  height: 278px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  background: var(--frame-walnut-edge);
}

.hero-quad {
  position: relative;
  overflow: hidden;
}

.hero-quad img {
  position: absolute;
  width: 200%;
  height: 200%;
  object-fit: cover;
}

.hero-quad.q-tl img { top: 0; left: 0; }
.hero-quad.q-tr img { top: 0; left: -100%; }
.hero-quad.q-bl img { top: -100%; left: 0; }

.hero-quad-missing {
  background: #F7F2E6;
  border: 1px dashed rgba(90, 68, 42, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px;
  color: #56493B;
}

.hero-missing-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
}

.hero-missing-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #855D1C;
}

.hero-wood-legs {
  position: relative;
  z-index: 2;
  width: 180px;
  display: flex;
  justify-content: space-between;
}

.hero-wood-legs span {
  width: 10px;
  height: 15px;
  background: #4A311F;
  display: block;
}

.hero-wood-legs span:first-child { transform: skewX(-14deg); }
.hero-wood-legs span:last-child { transform: skewX(14deg); }

.hero-easel-caption {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  color: var(--ink-secondary);
}

.hero-sample-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-sample-card {
  position: relative;
  width: 128px;
  height: 179px;
  border-radius: 3px;
  overflow: hidden;
  background: #1A130E;
  border: 2.5px solid var(--frame-walnut);
  box-shadow: 0 14px 28px rgba(28, 18, 10, 0.24);
  text-align: left;
}

.hero-sample-card.tilt-left { transform: rotate(-4deg); }
.hero-sample-card.tilt-right { transform: rotate(4deg); border-color: #5C1A20; }

.hero-sample-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-sample-img.is-br-crop {
  object-position: 88% 82%;
}

.hero-scroll-cue {
  margin-top: 34px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-style: italic;
  color: var(--ink-secondary);
  transition: transform 0.16s ease, color 0.16s ease;
}

.hero-scroll-cue:hover {
  color: var(--ink-primary);
  transform: translateY(2px);
}

.hero-scroll-arrow {
  font-style: normal;
  color: var(--accent-brass);
}

@media (min-width: 980px) {
  .hero-easel-stage {
    flex-direction: row;
    gap: 58px;
  }
  .hero-verso-fan {
    display: block;
  }
}

/* ==========================================================================
   ACT II: WARM LIMESTONE OVERVIEW BAND (TONAL SHIFT, ZERO CARD BOXES)
   ========================================================================== */

.limestone-band {
  width: 100%;
  background: linear-gradient(180deg, var(--bg-limestone) 0%, var(--bg-limestone-deep) 100%);
  padding: clamp(44px, 6vw, 68px) clamp(20px, 6vw, 96px);
}

.limestone-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.limestone-head {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-serif-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.08;
}

.pillars-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.pillar-heading {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 25px;
  font-style: italic;
  font-weight: 600;
}

.pillar-heading.tone-brass { color: var(--accent-brass); }
.pillar-heading.tone-burgundy { color: var(--accent-burgundy); }
.pillar-heading.tone-emerald { color: var(--status-safe); }

.pillar-col p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.64;
  color: var(--ink-secondary);
}

.limestone-foot {
  margin-top: 28px;
  text-align: center;
}

@media (min-width: 780px) {
  .pillars-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}

/* ==========================================================================
   ACT III: SIX-CONTINENT SALON VERTICAL SCROLL (OPEN GALLERY WALL)
   ========================================================================== */

.salon-scroll {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(54px, 7vw, 88px) clamp(20px, 6vw, 96px) clamp(64px, 8vw, 96px);
}

.salon-intro {
  text-align: center;
  max-width: 740px;
  margin: 0 auto clamp(48px, 6vw, 76px);
}

.salon-main-h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 600;
  line-height: 1.06;
}

.salon-main-sub {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.48;
  color: var(--ink-secondary);
}

.salon-spreads-list {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 7vw, 92px);
}

.salon-spread {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.salon-hero-frame-btn {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease;
}

.salon-hero-frame-btn:hover {
  transform: translateY(-3px);
}

.salon-hero-painting {
  width: 100%;
  max-height: 390px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.salon-placard-caption {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-muted);
}

.salon-continent-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-brass);
}

.salon-artist-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.salon-portrait-medallion {
  flex: 0 0 58px;
  width: 58px;
  height: 70px;
  padding: 2px;
  background: var(--frame-walnut);
  border: 1px solid var(--frame-gilt);
  box-shadow: 0 6px 14px rgba(28, 18, 10, 0.18);
  cursor: pointer;
  overflow: hidden;
}

.salon-portrait-medallion img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
}

.salon-artist-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1.05;
}

.salon-artist-dates {
  margin: 3px 0 0;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-style: italic;
  color: var(--ink-muted);
}

.salon-artist-bio {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.66;
  color: var(--ink-secondary);
}

.salon-companions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.salon-companion-btn {
  flex: 0 1 156px;
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: transform 0.15s ease;
}

.salon-companion-btn:hover {
  transform: translateY(-2px);
}

.salon-companion-frame {
  width: 100%;
  height: 82px;
  padding: 3px;
  background: var(--frame-walnut);
  box-shadow: inset 0 0 0 1px rgba(197, 157, 82, 0.5), 0 6px 14px rgba(28, 18, 10, 0.14);
  display: block;
  overflow: hidden;
}

.salon-companion-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.salon-companion-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-style: italic;
  line-height: 1.2;
  color: var(--ink-secondary);
}

.salon-play-link {
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  font-weight: 600;
  color: var(--accent-burgundy);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.salon-colophon {
  margin-top: clamp(60px, 7vw, 90px);
  text-align: center;
}

.salon-colophon-note {
  max-width: 620px;
  margin: 0 auto 22px;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.48;
  color: var(--ink-secondary);
}

.salon-colophon-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

@media (min-width: 880px) {
  .salon-spread {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 60px;
  }
  .salon-spread.is-reversed {
    grid-template-columns: 0.92fr 1.08fr;
  }
  .salon-spread.is-reversed .salon-artwork-col {
    order: 2;
  }
  .salon-spread.is-reversed .salon-story-col {
    order: 1;
  }
}

/* ==========================================================================
   OPEN PLAY SALON (lobby.js) & CURATORIAL MONOGRAPH (about.js)
   ========================================================================== */

.salon-play-main,
.monograph-main {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) clamp(18px, 5vw, 48px) 56px;
  flex: 1 1 auto;
}

.salon-center-intro,
.monograph-hero {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 32px;
}

.salon-play-h1,
.monograph-h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 54px);
  font-weight: 600;
  line-height: 1.05;
}

.salon-play-lead,
.monograph-lead {
  margin: 0 auto 24px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.48;
  color: var(--ink-secondary);
}

.salon-cta-group {
  margin-bottom: 26px;
}

.salon-mood-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 8px;
}

.salon-mood-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 6px 2px;
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.14s ease, border-color 0.14s ease;
}

.salon-mood-tab:hover {
  color: var(--ink-primary);
}

.salon-mood-tab.is-selected {
  color: var(--ink-primary);
  border-bottom-color: var(--accent-brass);
}

.salon-mood-caption {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-style: italic;
  color: var(--ink-secondary);
}

.salon-seeded-note {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--ink-secondary);
}

.salon-tailor-wrap {
  max-width: 760px;
  margin: 0 auto 36px;
}

.salon-customize-drawer {
  background: var(--bg-placard);
  box-shadow: var(--placard-shadow);
  border-radius: 3px;
  padding: 4px 20px;
}

.salon-customize-summary {
  list-style: none;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink-primary);
  cursor: pointer;
}

.salon-customize-summary::-webkit-details-marker {
  display: none;
}

.salon-customize-summary::after {
  content: '+';
  color: var(--accent-brass);
  font-size: 20px;
}

.salon-customize-drawer[open] .salon-customize-summary::after {
  content: '−';
}

.salon-customize-body {
  padding: 12px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.salon-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .salon-options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.field-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.custom-artist-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-picker-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.custom-picker-hint {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-style: italic;
  color: var(--ink-secondary);
}

.custom-picker-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.custom-selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.custom-selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid var(--accent-brass);
  background: var(--bg-paper);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.custom-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  max-height: 256px;
  overflow-y: auto;
  padding-right: 4px;
}

.custom-artist-tile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 2px;
  border: 1px solid var(--hairline);
  background: var(--bg-paper);
  cursor: pointer;
  text-align: left;
  min-width: 0;
}

.custom-artist-tile.is-picked {
  border-color: var(--accent-brass);
  background: var(--accent-brass-soft);
}

.custom-artist-avatar {
  width: 34px;
  height: 40px;
  object-fit: cover;
  object-position: 50% 20%;
  border: 1px solid var(--frame-gilt);
  flex-shrink: 0;
}

.custom-artist-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.custom-artist-name {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
}

.custom-artist-era {
  font-size: 11px;
  color: var(--ink-muted);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-secondary);
  cursor: pointer;
}

.checkbox-row input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Saved Matches & Invite Stage */

.salon-saved-section {
  max-width: 680px;
  margin: 0 auto;
}

.salon-saved-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.salon-section-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
}

.salon-saved-count {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-muted);
}

.saved-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.saved-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-placard);
  box-shadow: var(--placard-shadow);
  border-radius: 3px;
}

.saved-item-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.saved-code {
  font-weight: 700;
  letter-spacing: 0.1em;
}

.saved-sep {
  color: var(--ink-muted);
}

.saved-status {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-secondary);
}

.saved-status.is-your-turn {
  color: var(--status-safe);
  font-weight: 600;
}

.saved-rival {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.saved-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.invite-code-placard {
  display: inline-block;
  margin: 4px auto 18px;
  padding: 12px 34px;
  background: var(--bg-paper);
  border: 1px solid var(--frame-gilt);
  box-shadow: var(--placard-shadow);
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.salon-invite-controls {
  max-width: 420px;
  margin: 0 auto 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.invite-link-input {
  text-align: center;
  font-size: 13px;
}

.invite-status {
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  color: var(--ink-secondary);
  margin: 0 0 20px;
}

.invite-status.is-ready {
  color: var(--status-safe);
}

/* Studio Quizzes Band & Monograph */

.salon-quizzes-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 920px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .salon-quizzes-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 56px;
  }
}

.salon-quiz-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
}

.salon-quiz-desc {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.monograph-plate {
  margin: 0 auto 40px;
  max-width: 780px;
}

.monograph-plate-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.monograph-prose {
  max-width: 660px;
  margin: 0 auto 40px;
}

.monograph-prose h2 {
  margin: 30px 0 10px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
}

.monograph-prose p {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink-secondary);
}

.monograph-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ==========================================================================
   OPTION 1 FULL-BLEED 5:7 POKER CARDS (HERO + IN-GAME TABLE)
   Zero Top Pills, Drawn Gold Mullion Grid, Natural Wrapped Full Titles
   ========================================================================== */

.art-card-face {
  position: relative;
  width: 100%;
  height: 100%;
  background: #1A130E;
  color: #FAF6EE;
  border: 2px solid var(--frame-walnut);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-align: left;
}

.art-card-face.is-security-face {
  border-color: #5E1920;
}

.art-card-face.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-easel-mat);
  border: 1px dashed var(--hairline-strong);
  color: var(--ink-muted);
  font-size: 12px;
}

.art-card-art {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.art-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.art-card-inner-line {
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(214, 183, 120, 0.36);
  pointer-events: none;
  z-index: 2;
}

.art-card-inner-line.is-alarm-line {
  border-color: rgba(212, 115, 120, 0.48);
}

.art-card-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    to top,
    rgba(15, 10, 7, 0.94) 0%,
    rgba(15, 10, 7, 0.72) 32%,
    rgba(15, 10, 7, 0.0) 64%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 7px 7px 6px;
}

.card-cue-tag {
  align-self: flex-start;
  margin-bottom: 4px;
  padding: 1px 6px;
  border-radius: 2px;
  background: rgba(28, 20, 14, 0.85);
  border: 1px solid rgba(200, 160, 85, 0.6);
  color: #EAD8B3;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-style: italic;
  line-height: 1.15;
}

.card-cue-tag.tone-safe {
  border-color: rgba(114, 198, 158, 0.65);
  color: #C7F0DC;
}

.card-cue-tag.tone-danger {
  background: rgba(78, 18, 24, 0.88);
  border-color: rgba(226, 150, 155, 0.65);
  color: #FADADC;
}

.mullion-credit-row {
  display: flex;
  align-items: flex-end;
  gap: 5px;
}

.mullion-svg {
  flex-shrink: 0;
  margin-bottom: 1px;
}

.mullion-credit-row .mullion-credit-text {
  flex: 1 1 0%;
}

.mullion-credit-text {
  min-width: 0;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
}

.credit-title {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.1;
  color: #FAF6EE;
  white-space: normal;
  overflow-wrap: break-word;
}

.credit-artist {
  font-family: var(--font-display);
  font-size: 10px;
  font-style: italic;
  line-height: 1.12;
  color: #D8C7AE;
  margin-top: 1px;
  white-space: normal;
  overflow-wrap: break-word;
}

.credit-artist.is-danger {
  color: #E8B5B8;
}

.art-card-face.is-compact .credit-title {
  font-size: 10.5px;
}

.art-card-face.is-compact .credit-artist {
  font-size: 9.5px;
}

/* ==========================================================================
   RESTORED WIDE CREAM-LINEN GAME TABLE (table.js)
   Responsive Mobile Portrait (<960px) -> Spacious Salon Table (>=960px)
   ========================================================================== */

.table-shell {
  min-height: 100dvh;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 6px clamp(10px, 2.5vw, 32px) 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 6px 4px 10px;
  border-bottom: 1px solid var(--hairline);
}

.top-bar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  min-width: 0;
}

.table-brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.table-brand-btn {
  background: transparent;
  border: none;
  padding: 2px 4px 2px 0;
  cursor: pointer;
  border-radius: 2px;
  transition: color 0.14s ease, opacity 0.14s ease;
}

.table-brand-btn:hover {
  color: var(--accent-burgundy);
}

.table-brand-btn:focus-visible {
  outline: 1.5px solid var(--accent-brass);
  outline-offset: 2px;
}

.table-brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-topbar {
  min-height: 34px;
  padding: 5px 13px;
  font-size: 14.5px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 2px;
  background: var(--status-danger);
  color: #FFF;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
}

.conn-pill,
.meta-pill {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-style: italic;
  color: var(--ink-secondary);
}

.conn-pill.tone-safe { color: var(--status-safe); }
.conn-pill.tone-warn,
.meta-pill.tone-warn { color: var(--status-warn); }
.conn-pill.tone-danger { color: var(--status-danger); }

/* Upper Stage: Rival Card Fan + The Fence Placard */

.table-upper-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.opponent-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 6px 8px;
}

.opponent-name-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.turn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hairline-strong);
}

.turn-dot.is-active {
  background: var(--accent-brass);
  box-shadow: 0 0 0 3px var(--accent-brass-soft);
}

.opponent-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
}

.opponent-inline-counts {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.opponent-whisper {
  margin: 2px 0 0;
  padding: 4px 12px;
  border-radius: 2px;
  background: var(--bg-placard);
  box-shadow: var(--placard-shadow);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-style: italic;
  color: var(--ink-secondary);
  max-width: 100%;
}

.rival-mini-fan {
  display: inline-flex;
  align-items: center;
  padding: 4px 6px 2px 14px;
}

.mini-fan-card {
  width: 34px;
  height: 48px;
  margin-left: -14px;
  border-radius: 2.5px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.24);
  transform: translateY(var(--fan-arc, 0px)) rotate(var(--fan-rot, 0deg));
  flex-shrink: 0;
}

.mini-fan-card:first-child {
  margin-left: 0;
}

.card-back-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.fence-section {
  background: var(--bg-placard);
  box-shadow: var(--placard-shadow);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 10px 12px 12px;
}

.zone-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 8px;
}

.fence-heading-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.fence-title-serif {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
}

.fence-sub-hint {
  font-size: 12px;
  color: var(--ink-muted);
}

.fence-counters {
  display: inline-flex;
  gap: 6px;
}

.fence-counter-chip {
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--bg-paper-elevated);
  border: 1px solid var(--hairline);
  font-size: 11.5px;
  color: var(--ink-secondary);
}

.fence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.fence-card-btn {
  width: 100%;
  min-width: 0;
  aspect-ratio: 5 / 7;
  max-height: 146px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-card);
  background: transparent;
  cursor: pointer;
  display: block;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.fence-card-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.fence-card-btn.is-selected {
  border-color: var(--accent-brass);
  transform: translateY(-4px);
  box-shadow: var(--card-lift-shadow);
}

/* Turn Ribbon */

.table-turn-ribbon {
  display: flex;
  justify-content: center;
}

.turn-ribbon-placard {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  padding: 6px 16px;
  background: var(--bg-placard);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  box-shadow: var(--placard-shadow);
}

.turn-ribbon-tag {
  padding: 2px 8px;
  border-radius: 2px;
  background: #231B15;
  color: #FAF6EE;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.turn-ribbon-placard.is-waiting .turn-ribbon-tag {
  background: var(--bg-paper-elevated);
  color: var(--ink-secondary);
}

.turn-banner {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink-primary);
}

/* Center Stage: Left Mini Artist Bio Easels + Center Full-Proportion Working Easels */

.table-center-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
}

.table-artists-rail {
  display: none;
}

.artists-rail-label {
  margin: 0 0 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-muted);
}

.mini-bio-easels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mini-bio-easel {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.14s ease;
}

.mini-bio-easel:hover {
  transform: translateY(-2px);
}

.mini-bio-mast {
  width: 10px;
  height: 5px;
  background: #4A311F;
  border-radius: 1px 1px 0 0;
}

.mini-bio-frame {
  width: 100%;
  height: 78px;
  padding: 3px;
  background: var(--frame-walnut);
  box-shadow: inset 0 0 0 1px var(--frame-gilt), 0 4px 10px rgba(28, 18, 10, 0.18);
  overflow: hidden;
  display: block;
}

.mini-bio-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
}

.mini-bio-placard {
  width: 100%;
  background: var(--bg-paper);
  border: 1px solid var(--frame-walnut);
  border-top: none;
  padding: 3px 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mini-bio-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mini-bio-name {
  font-size: 10.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-bio-legs {
  width: 70%;
  display: flex;
  justify-content: space-between;
}

.mini-bio-legs i {
  width: 5px;
  height: 7px;
  background: #4A311F;
  display: block;
}

.mini-bio-legs i:first-child { transform: skewX(-12deg); }
.mini-bio-legs i:last-child { transform: skewX(12deg); }

/* Working Easels */

.easels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.easel-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.easel-side-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.easel-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  justify-items: center;
}

.easel-pair.is-multi {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.easel-slot {
  width: 100%;
  max-width: 240px;
  min-height: 132px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.easel-slot.is-empty {
  background: var(--bg-easel-mat);
  border: 1px dashed var(--hairline-strong);
}

.easel-empty-hint {
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  color: var(--ink-muted);
}

.easel-card-btn {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.easel-wooden-mast {
  width: 16px;
  height: 8px;
  background: #4A311F;
  border-radius: 2px 2px 0 0;
}

.easel-frame-stage {
  position: relative;
  width: auto;
  max-width: 100%;
  height: 132px;
  aspect-ratio: 6 / 7;
  padding: 5px;
  background: var(--frame-walnut);
  box-shadow:
    inset 0 0 0 1.5px var(--frame-gilt),
    0 12px 26px rgba(28, 18, 10, 0.22);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.easel-frame-stage.type-0 {
  aspect-ratio: 5 / 7;
  height: 132px;
  width: auto;
}

.easel-frame-stage.type-1 {
  aspect-ratio: 3 / 2;
  width: min(100%, 198px);
  height: auto;
}

.easel-frame-stage.type-2 {
  aspect-ratio: 6 / 7;
  height: 134px;
  width: auto;
}

.easel-card-btn.has-set-affinity .easel-frame-stage {
  box-shadow:
    inset 0 0 0 2px #E5C888,
    0 0 0 2px rgba(31, 94, 66, 0.38),
    0 0 18px rgba(197, 157, 82, 0.42),
    0 12px 26px rgba(28, 18, 10, 0.22);
}

.easel-card-btn.is-selected .easel-frame-stage {
  box-shadow:
    inset 0 0 0 2px var(--accent-brass-bright),
    0 0 0 3px var(--accent-brass-soft),
    0 14px 28px rgba(28, 18, 10, 0.26);
}

.easel-card-btn.is-interceptable .easel-frame-stage,
.easel-card-btn.has-intercept-affinity .easel-frame-stage {
  box-shadow:
    inset 0 0 0 2px var(--status-danger),
    0 0 18px rgba(166, 28, 49, 0.36),
    0 14px 28px rgba(122, 31, 43, 0.24);
}

.easel-card-btn.is-affinity-lit .easel-frame-stage {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 2px #F5DFA0,
    0 0 0 3px rgba(217, 179, 108, 0.55),
    0 0 24px rgba(217, 179, 108, 0.65),
    0 16px 30px rgba(28, 18, 10, 0.28);
}

.poly-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: grid;
  gap: 2px;
  background: var(--frame-walnut-edge);
}

.poly-grid.type-0 {
  grid-template-rows: 1fr 1fr;
}

.poly-grid.type-1 {
  grid-template-columns: repeat(3, 1fr);
}

.poly-grid.type-2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.poly-cell {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-paper-elevated);
}

.poly-cell.missing {
  background: var(--bg-paper);
  border: 1px dashed var(--hairline-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px;
  text-align: center;
}

.missing-slot-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-style: italic;
  color: var(--ink-secondary);
}

.missing-slot-sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-brass);
}

.hidden-card-corner {
  position: absolute;
  top: -12px;
  right: -14px;
  width: 44px;
  height: 62px;
  border-radius: 2.5px;
  overflow: hidden;
  transform: rotate(14deg);
  z-index: 1;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.34);
}

.hidden-card-corner .wax-drop {
  position: absolute;
  top: 6px;
  right: 6px;
}

.wax-drop {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #b82c36, #5e1218);
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.wax-drop.known-decoy {
  background: radial-gradient(circle at 35% 35%, #6da4c9, #244861);
}

.easel-wooden-legs {
  width: 96px;
  display: flex;
  justify-content: space-between;
}

.easel-wooden-legs span {
  width: 7px;
  height: 11px;
  background: #4A311F;
  display: block;
}

.easel-wooden-legs span:first-child { transform: skewX(-14deg); }
.easel-wooden-legs span:last-child { transform: skewX(14deg); }

.easel-meta {
  margin-top: 4px;
  padding: 3px 8px;
  background: var(--bg-placard);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.easel-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.easel-progress {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-secondary);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.easel-intercept-tag {
  padding: 1px 5px;
  border-radius: 2px;
  background: var(--status-danger);
  color: #FFF;
  font-size: 9.5px;
}

/* Completed Wall */

.completed-wall-section {
  margin-top: 8px;
}

.completed-wall-toggle {
  width: 100%;
  min-height: 36px;
  padding: 4px 10px;
  border: none;
  border-top: 1px solid var(--hairline);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
}

.completed-wall-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 2px;
}

.completed-wall-rail::-webkit-scrollbar {
  display: none;
}

.completed-plaque-btn {
  flex: 0 0 96px;
  padding: 4px;
  border-radius: 3px;
  border: 1px solid var(--frame-gilt);
  background: var(--bg-paper);
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.completed-plaque-btn.type-0 {
  flex: 0 0 76px;
}

.completed-plaque-btn.type-1 {
  flex: 0 0 124px;
}

.completed-plaque-btn.type-2 {
  flex: 0 0 88px;
}

.completed-plaque-btn .poly-grid {
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 7;
}

.completed-plaque-btn.type-0 .poly-grid {
  aspect-ratio: 5 / 7;
}

.completed-plaque-btn.type-1 .poly-grid {
  aspect-ratio: 3 / 2;
}

.completed-plaque-btn.type-2 .poly-grid {
  aspect-ratio: 6 / 7;
}

.plaque-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
}

.plaque-owner {
  font-size: 10px;
  color: var(--ink-muted);
}

.completed-empty {
  margin: 4px 0;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-muted);
  text-align: center;
}

/* Lower Stage: Status Placard + Overlapping Hand Rail (Zero Scrollbar!) */

.table-lower-stage {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: end;
}

.table-status-placard {
  display: none;
  background: var(--bg-placard);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 12px 14px;
  box-shadow: var(--placard-shadow);
  font-size: 12.5px;
}

.status-placard-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.is-alarm-text {
  color: var(--status-danger);
}

.status-placard-foot {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid var(--hairline);
  font-size: 11.5px;
  color: var(--ink-secondary);
}

.hand-section {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 2px;
}

.hand-header-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.hand-stats {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.hand-sort-btn {
  padding: 2px 10px;
  border-radius: 2px;
  border: 1px solid var(--accent-brass);
  background: var(--bg-paper);
  color: var(--ink-primary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.hand-sort-btn:hover {
  background: var(--accent-brass-soft);
}

.hand-sort-feedback {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-style: italic;
  font-weight: 600;
  color: var(--status-safe);
}

.hand-helper-note {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-muted);
}

.hand-zone {
  width: 100%;
  min-width: 0;
}

.hand-rail {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 16px 6px 8px;
}

.hand-rail::-webkit-scrollbar {
  display: none;
}

.hand-card {
  position: relative;
  flex: 0 0 88px;
  width: 88px;
  height: 124px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-card);
  background: transparent;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  box-shadow: var(--card-shadow);
  transform-origin: bottom center;
  transition: transform 0.17s cubic-bezier(0.2, 0.85, 0.3, 1), border-color 0.15s ease, box-shadow 0.17s ease;
}

/* Set & Cross-Table Affinity Glows */
.fence-card-btn.has-set-affinity,
.hand-card.has-set-affinity {
  border-color: #C59D52;
  box-shadow:
    0 0 0 1px rgba(31, 94, 66, 0.55),
    0 0 15px rgba(197, 157, 82, 0.48),
    var(--card-shadow);
}

.fence-card-btn.has-fence-affinity,
.hand-card.has-fence-affinity {
  border-color: rgba(197, 157, 82, 0.82);
  box-shadow:
    0 0 12px rgba(197, 157, 82, 0.34),
    var(--card-shadow);
}

.fence-card-btn.has-intercept-affinity,
.hand-card.has-intercept-affinity {
  border-color: rgba(166, 28, 49, 0.88);
  box-shadow:
    0 0 15px rgba(166, 28, 49, 0.42),
    var(--card-shadow);
}

.fence-card-btn.is-affinity-lit,
.hand-card.is-affinity-lit {
  border-color: #F2D488;
  box-shadow:
    0 0 0 2px rgba(242, 212, 136, 0.65),
    0 0 22px rgba(217, 179, 108, 0.72),
    var(--card-lift-shadow);
}

.hand-card.is-affinity-lit:not(:hover):not(.is-selected):not(.is-dragging) {
  transform: translateY(-7px);
  z-index: 12;
}

.fence-card-btn.is-affinity-lit:not(:hover):not(.is-selected) {
  transform: translateY(-3px);
}

.hand-card.is-playable:not(.has-set-affinity):not(.has-intercept-affinity) {
  border-color: rgba(31, 94, 66, 0.65);
}

.hand-card.is-selected {
  transform: translateY(-16px);
  border-color: var(--accent-brass-bright);
  box-shadow:
    0 0 0 2px rgba(217, 179, 108, 0.55),
    0 0 22px rgba(197, 157, 82, 0.55),
    var(--card-lift-shadow);
  z-index: 20;
}

.hand-card.is-dragging {
  cursor: grabbing;
  transform: translateX(var(--drag-dx, 0px)) translateY(-18px) scale(1.08) !important;
  z-index: 70 !important;
  transition: none !important;
  box-shadow: 0 18px 36px rgba(20, 12, 6, 0.42);
}

@media (hover: hover) and (pointer: fine) {
  .hand-rail:not(.is-dragging-hand) .hand-card:hover {
    transform: translateY(-38px) scale(1.52);
    z-index: 65;
    box-shadow:
      0 0 0 1.5px #E5C888,
      0 22px 44px rgba(18, 11, 6, 0.44);
  }
}

.sticky-dock {
  position: sticky;
  bottom: 0;
  z-index: 30;
  background: var(--bg-placard);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--hairline);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}

.action-dock {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.dock-btn {
  flex: 1 1 140px;
  max-width: 240px;
  min-height: 40px;
  padding: 6px 14px;
  font-size: 16px;
}

/* Desktop Salon Game Table Proportions (>=960px) */

@media (min-width: 960px) {
  .table-shell {
    gap: 7px;
    padding-bottom: 6px;
  }

  .table-upper-stage {
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 22px;
  }

  .fence-section {
    padding: 8px 12px 10px;
  }

  .fence-card-btn {
    max-height: 132px;
  }

  .mini-fan-card {
    width: 42px;
    height: 59px;
    margin-left: -14px;
  }

  .table-center-stage {
    grid-template-columns: 214px minmax(0, 1fr);
    gap: 26px;
    padding: 2px 0;
  }

  .table-artists-rail {
    display: block;
  }

  .mini-bio-frame {
    height: 68px;
  }

  .mini-bio-name {
    font-size: 10px;
  }

  .easel-slot {
    max-width: 264px;
    min-height: 178px;
  }

  .easel-frame-stage {
    height: 166px;
    width: auto;
    padding: 6px;
  }

  .easel-frame-stage.type-0 {
    height: 168px;
    width: auto;
  }

  .easel-frame-stage.type-1 {
    height: 162px;
    width: auto;
    max-width: 243px;
  }

  .easel-frame-stage.type-2 {
    height: 168px;
    width: auto;
  }

  .easel-wooden-legs {
    width: 112px;
  }

  .completed-wall-section {
    margin-top: 2px;
  }

  .table-lower-stage {
    grid-template-columns: 224px minmax(0, 1fr);
    gap: 22px;
    padding-bottom: 4px;
  }

  .table-status-placard {
    display: block;
    padding: 10px 13px;
  }

  .hand-zone {
    overflow: visible;
  }

  .hand-rail {
    gap: 0;
    overflow: visible;
    padding: 14px 10px 8px 18px;
  }

  .hand-card {
    flex: 0 0 106px;
    width: 106px;
    height: 148px;
    margin-left: var(--hand-overlap, -10px);
  }

  .hand-card:first-child {
    margin-left: 0;
  }

  .sticky-dock {
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
}

/* Catch-up & Table Alerts */

.catchup-banner,
.table-alert {
  padding: 10px 14px;
  border-radius: 3px;
  background: var(--bg-placard);
  border-left: 3px solid var(--accent-brass);
  box-shadow: var(--placard-shadow);
}

.table-alert {
  border-left-color: var(--status-danger);
  color: var(--status-danger);
}

.catchup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.catchup-list {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 13px;
}

/* ==========================================================================
   STUDIO QUIZZES (attribution_quiz.js & kindred_quiz.js)
   ========================================================================== */

.quiz-shell {
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.quiz-stage-card,
.quiz-result-card {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 18px clamp(18px, 5vw, 40px) 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quiz-progress-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.quiz-eyebrow,
.minigame-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-brass);
}

.quiz-score-pill {
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  color: var(--ink-muted);
}

.quiz-progress-track {
  width: 100%;
  height: 3px;
  background: var(--hairline);
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--accent-brass);
  transition: width 0.2s ease;
}

.quiz-prompt {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 600;
  line-height: 1.14;
}

.quiz-prompt.is-dossier-clue {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  padding: 14px 18px;
  border-left: 3px solid var(--accent-brass);
  background: var(--bg-placard);
}

.quiz-subprompt {
  margin: -6px 0 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  color: var(--ink-secondary);
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.quiz-options-grid.is-visual-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quiz-option-card {
  min-height: var(--tap-min);
  padding: 12px 14px;
  border-radius: 3px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-placard);
  box-shadow: var(--placard-shadow);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  text-align: left;
  transition: border-color 0.14s ease, transform 0.12s ease;
}

.quiz-option-card.is-compact-row {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.quiz-option-card:hover:not(:disabled) {
  border-color: var(--accent-brass);
  transform: translateY(-2px);
}

.quiz-option-card.is-selected {
  border-color: var(--accent-brass);
  background: var(--accent-brass-soft);
}

.quiz-option-card.is-correct {
  border-color: var(--status-safe);
  background: var(--status-safe-bg);
}

.quiz-option-card.is-wrong {
  border-color: var(--status-danger);
  background: var(--status-danger-bg);
}

.quiz-option-card.is-dimmed {
  opacity: 0.56;
}

.quiz-opt-thumb-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--frame-walnut);
  padding: 4px;
  overflow: hidden;
}

.quiz-opt-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.curator-opt-avatar {
  width: 46px;
  height: 46px;
  object-fit: cover;
  object-position: 50% 20%;
  border: 1px solid var(--frame-walnut);
  flex-shrink: 0;
}

.quiz-swatch-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 24px;
  border: 1px solid var(--hairline-strong);
}

.quiz-swatch-chip {
  display: block;
  width: 100%;
  height: 100%;
}

.quiz-opt-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quiz-opt-label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.quiz-opt-sub {
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.curator-specimen-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  padding: 6px;
  background: var(--frame-walnut);
  box-shadow: inset 0 0 0 1px var(--frame-gilt), var(--card-shadow);
  overflow: hidden;
}

.curator-specimen-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 2px 9px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-style: italic;
  background: rgba(20, 15, 10, 0.85);
  border: 1px solid var(--frame-gilt);
  color: #FAF6EE;
}

.curator-reveal-placard {
  padding: 14px 16px;
  border-radius: 3px;
  border: 1px solid var(--accent-brass);
  background: var(--bg-placard);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.curator-reveal-placard.is-correct {
  border-color: var(--status-safe);
}

.curator-reveal-copy p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.quiz-result-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 580px) {
  .quiz-result-hero {
    flex-direction: row;
    align-items: flex-start;
  }
}

.quiz-result-portrait {
  width: 120px;
  height: 150px;
  object-fit: cover;
  object-position: 50% 20%;
  border: 4px solid var(--frame-walnut);
  box-shadow: var(--card-shadow);
  flex-shrink: 0;
}

.quiz-result-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-brass);
}

.quiz-result-name {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.06;
}

.quiz-result-dateline {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  color: var(--ink-muted);
}

.quiz-result-reason {
  margin: 8px 0 0;
  font-size: 14.5px;
  font-weight: 600;
}

.quiz-result-bio {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ink-secondary);
}

.quiz-result-works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quiz-result-work {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.quiz-result-work img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 3px solid var(--frame-walnut);
  display: block;
}

.quiz-result-work figcaption {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--ink-secondary);
}

.quiz-result-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quiz-kindred-section {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-subhead {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.quiz-kindred-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.quiz-kindred-chip {
  padding: 8px 10px;
  border-radius: 3px;
  border: 1px solid var(--hairline);
  background: var(--bg-placard);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.quiz-kindred-avatar {
  width: 40px;
  height: 40px;
  object-fit: cover;
  object-position: 50% 20%;
  border: 1px solid var(--frame-walnut);
  flex-shrink: 0;
}

.quiz-kindred-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.quiz-kindred-meta strong {
  font-size: 13px;
}

.quiz-kindred-meta span {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.quiz-footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   MODALS, MUSEUM LIGHTBOX & 64-ARTIST ARCHIVE SHEET
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg-scrim);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.modal-sheet {
  width: 100%;
  max-width: min(640px, 100vw);
  max-height: 90dvh;
  background: var(--bg-paper);
  border-top: 2px solid var(--frame-gilt);
  border-radius: 4px 4px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.32);
}

.modal-sheet-tall {
  height: 84dvh;
}

.gallery-lightbox-sheet {
  max-width: min(780px, 96vw);
}

.archive-modal-sheet {
  max-width: min(1040px, 96vw);
  height: 86dvh;
}

@media (min-width: 640px) {
  .modal-backdrop {
    align-items: center;
    padding: 20px;
  }
  .modal-sheet {
    border-radius: 4px;
    border: 1px solid var(--frame-gilt);
  }
}

.modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--hairline);
}

.modal-eyebrow {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-brass);
}

.modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.12;
}

.modal-subtitle {
  margin: 3px 0 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  color: var(--ink-secondary);
}

.btn-close-modal {
  min-width: 38px;
  min-height: 38px;
  border-radius: 2px;
  border: 1px solid var(--hairline);
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px;
}

.modal-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline);
  background: var(--bg-paper-elevated);
}

.gallery-lightbox-footer {
  justify-content: space-between;
}

.gallery-lightbox-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  background: var(--bg-easel-mat);
}

.gallery-lightbox-img {
  max-width: 100%;
  max-height: 56dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border: 5px solid var(--frame-walnut);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.gallery-lightbox-story {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-secondary);
}

/* 64-Artist Archive Modal Layout */

.archive-modal-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 780px) {
  .archive-modal-body {
    grid-template-columns: 290px minmax(0, 1fr);
    overflow: hidden;
  }
  .archive-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: 1px solid var(--hairline);
    padding-right: 14px;
  }
  .archive-artist-list {
    flex: 1 1 auto;
    overflow-y: auto;
  }
  .archive-detail {
    overflow-y: auto;
    padding-right: 6px;
  }
}

.archive-search-input {
  margin-bottom: 10px;
}

.archive-artist-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 240px;
  overflow-y: auto;
}

@media (min-width: 780px) {
  .archive-artist-list {
    max-height: none;
  }
}

.archive-artist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 2px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.archive-artist-row:hover {
  background: var(--bg-paper-elevated);
}

.archive-artist-row.is-active {
  background: var(--accent-brass-soft);
}

.archive-artist-thumb {
  width: 36px;
  height: 42px;
  object-fit: cover;
  object-position: 50% 20%;
  border: 1px solid var(--frame-gilt);
  flex-shrink: 0;
}

.archive-artist-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.archive-artist-info strong {
  font-family: var(--font-display);
  font-size: 16.5px;
  line-height: 1.15;
}

.archive-artist-info span {
  font-size: 11px;
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-detail-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.archive-detail-portrait {
  width: 76px;
  height: 94px;
  object-fit: cover;
  object-position: 50% 20%;
  border: 3px solid var(--frame-walnut);
  box-shadow: var(--card-shadow);
  flex-shrink: 0;
}

.archive-detail-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.06;
}

.archive-works-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}

.archive-work-item {
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.archive-work-frame {
  padding: 4px;
}

.archive-work-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.archive-work-caption {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.archive-work-caption strong {
  font-family: var(--font-display);
  font-size: 14.5px;
  line-height: 1.15;
}

.archive-work-caption span {
  font-size: 11px;
  color: var(--ink-muted);
}

/* Table Modals: Tuck, Log, Folios, Zoom, Rules, End & Menu */

.tuck-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}

.tuck-card-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  min-height: 148px;
  border-radius: 4px;
  border: 1.5px solid var(--hairline-strong);
  background: var(--bg-paper-elevated);
  cursor: pointer;
}

.tuck-card-btn.is-security {
  border-color: var(--status-danger);
}

.tuck-card-btn .art-card-face {
  height: 124px;
}

.tuck-action-tag {
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
}

.log-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-entry {
  padding: 6px 2px;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}

.log-meta {
  font-weight: 700;
  color: var(--accent-brass);
  margin-right: 4px;
}

.log-private {
  color: var(--status-safe);
  font-weight: 600;
}

.folio-scope-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.folio-scope-row .is-selected {
  border-color: var(--accent-brass);
  background: var(--accent-brass-soft);
}

.folio-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 10px;
}

.folio-tab-btn {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 10px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
}

.folio-tab-btn.is-active {
  color: var(--ink-primary);
  border-bottom-color: var(--accent-brass);
}

.folio-bio-spread {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.folio-portrait {
  flex: 0 0 74px;
  width: 74px;
  height: 92px;
  overflow: hidden;
  border: 2px solid var(--frame-walnut);
}

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

.folio-artist-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
}

.folio-dateline {
  margin: 2px 0 6px;
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-muted);
}

.folio-story {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.folio-works-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.folio-work-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 4px;
  border: none;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.folio-uncut-art {
  width: 60px;
  height: 70px;
  overflow: hidden;
  border: 2px solid var(--frame-walnut);
  flex-shrink: 0;
}

.folio-uncut-art.type-0 {
  width: 48px;
  height: 67px;
}

.folio-uncut-art.type-1 {
  width: 84px;
  height: 56px;
}

.folio-uncut-art.type-2 {
  width: 58px;
  height: 68px;
}

.folio-work-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.folio-full-collection-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.folio-collection-note {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  color: var(--ink-secondary);
}

.folio-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  padding: 0;
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-style: italic;
  font-weight: 600;
  color: var(--accent-burgundy);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.zoom-stage {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.zoom-canvas {
  width: auto;
  max-width: min(100%, 300px);
  height: min(46dvh, 308px);
  aspect-ratio: 6 / 7;
  border: 4px solid var(--frame-walnut);
  box-shadow: inset 0 0 0 1px var(--frame-gilt), var(--card-shadow);
  overflow: hidden;
}

.zoom-canvas.type-0 {
  aspect-ratio: 5 / 7;
}

.zoom-canvas.type-1 {
  aspect-ratio: 3 / 2;
  width: min(100%, 396px);
  height: auto;
  max-width: 396px;
}

.zoom-canvas.type-2 {
  aspect-ratio: 6 / 7;
}

.zoom-grid {
  width: auto;
  max-width: 100%;
  height: min(44dvh, 294px);
  aspect-ratio: 6 / 7;
  padding: 5px;
  background: var(--frame-walnut);
  box-shadow: inset 0 0 0 1px var(--frame-gilt), var(--card-shadow);
}

.zoom-grid.type-0 {
  aspect-ratio: 5 / 7;
}

.zoom-grid.type-1 {
  aspect-ratio: 3 / 2;
  width: min(100%, 384px);
  height: auto;
}

.zoom-grid.type-2 {
  aspect-ratio: 6 / 7;
}

.zoom-note {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ink-secondary);
}

.rules-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
}

.rules-section h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent-brass);
}

.rules-section p,
.rules-section ul {
  margin: 0;
}

.rules-section ul {
  padding-left: 18px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.score-card {
  padding: 12px;
  background: var(--bg-paper-elevated);
  border-top: 2px solid var(--accent-brass);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.menu-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-invite-box {
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-invite-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}

.card-back-picker-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-back-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.card-back-choice {
  padding: 8px 4px;
  border-radius: 3px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.card-back-choice:hover {
  transform: translateY(-2px);
}

.card-back-choice.is-selected {
  border-color: var(--accent-brass);
  background: var(--accent-brass-soft);
}

.card-back-preview {
  width: 56px;
  height: 78px;
  border-radius: 2.5px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: block;
}

.card-back-choice-label {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

/* ==========================================================================
   DEDICATED "MEET THE ARTISTS" EXHIBITION PAGE (artists.js)
   ========================================================================== */

.artists-page-main {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(20px, 3.8vw, 38px) clamp(18px, 5vw, 72px) 84px;
  flex: 1 1 auto;
}

.artists-page-hero {
  text-align: center;
  max-width: 840px;
  margin: 0 auto clamp(42px, 5vw, 64px);
}

.artists-controls-bar {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.artists-search-wrap {
  width: 100%;
  max-width: 520px;
}

.artists-search-input {
  text-align: center;
  font-family: var(--font-display);
  font-size: 17px;
  background: var(--bg-placard);
  box-shadow: var(--placard-shadow);
}

.artists-continent-tabs {
  gap: 6px 20px;
}

.artists-continent-tabs .tab-count {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink-muted);
}

.catalogue-entries-list {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 76px);
}

.catalogue-artist-entry {
  padding-bottom: clamp(40px, 5vw, 60px);
  border-bottom: 1px solid var(--hairline);
}

.catalogue-artist-entry:last-child {
  border-bottom: none;
}

.catalogue-artist-entry.is-highlighted {
  scroll-margin-top: 24px;
}

.catalogue-artist-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 16px;
}

.catalogue-artist-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.catalogue-portrait {
  flex: 0 0 66px;
  width: 66px;
  height: 82px;
}

.catalogue-artist-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.05;
}

.catalogue-artist-bio {
  max-width: 880px;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.66;
  color: var(--ink-secondary);
}

.catalogue-works-trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

@media (min-width: 760px) {
  .catalogue-works-trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
  }
}

.catalogue-work-card {
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: transform 0.18s ease;
}

.catalogue-work-card:hover {
  transform: translateY(-3px);
}

.catalogue-work-frame {
  width: 100%;
  padding: 6px;
}

.catalogue-work-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.catalogue-work-caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.catalogue-work-caption strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink-primary);
}

.catalogue-work-caption span {
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.catalogue-work-caption .catalogue-work-role {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-muted);
}

.catalogue-empty-state {
  text-align: center;
  padding: 48px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink-secondary);
}
