/* ====================================================================
   MOOD I · STORYBOOK -- the Narrator's look and the Book of Hosts brand
   standard. Rebuilt in plain CSS from the approved design boards in
   ../../design/storybook-mood-v1/ (desktop 1440 wide, phone 390 wide);
   every size, colour, border, shadow and animation below is taken from
   those boards.

   Desktop is the default. Below 1024px the phone board applies. From
   1024px up to 1440px the desktop board is scaled down as a whole (see
   fitBoard() in narrator.js), so its proportions never change.

   Palette: #0B1620 night desk, #0F1E28 navy panels, #132A2A teal
   leather, #EDE6D6 cream vellum, #1B2A36 ink, #D9A441 gold, #B8923E gold
   rule, #8A6420 dark gold text, #5AA8A0 teal, #2E6E69 deep teal,
   #A9C9C4 soft teal text, #1E3A3A / #2A4A4A borders.
   ==================================================================== */

/* ---------- animations (from the boards) ---------- */
@keyframes wave { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(90,168,160,0.55), inset 0 0 60px rgba(90,168,160,0.25); }
  50% { box-shadow: 0 0 0 14px rgba(90,168,160,0), inset 0 0 90px rgba(90,168,160,0.45); }
}
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.wave span { display: block; width: 6px; border-radius: 3px; background: #2E6E69; transform-origin: center; transform: scaleY(0.25); }
.wave.on span { animation: wave 0.9s ease-in-out infinite; }
.wave.on span:nth-child(3n) { animation-duration: 0.7s; animation-delay: -0.2s; }
.wave.on span:nth-child(3n+1) { animation-duration: 1.1s; animation-delay: -0.45s; }
.wave.on span:nth-child(4n) { animation-delay: -0.6s; }
.pulse { animation: pulse 1.4s ease-in-out infinite; }
.star { position: absolute; width: 3px; height: 3px; background: #EDE6D6; border-radius: 50%; animation: twinkle 3s ease-in-out infinite; }
.cardbtn { transition: transform .25s ease, box-shadow .25s ease; }
.cardbtn:hover { transform: translateY(-6px); }
.cardbtn:focus-visible, .pbtn:focus-visible { outline: 3px solid #5AA8A0; outline-offset: 4px; }
input[type=range] { accent-color: #8A6420; }

/* ---------- page ---------- */
html, body { margin: 0; }
body { background: #0B1620; font-family: 'Cardo', Georgia, serif; color: #EDE6D6; }
a { color: #D9A441; }
a:hover { color: #EDE6D6; }

.sb-viewport { overflow: hidden; }
.sb-board {
  position: relative;
  box-sizing: border-box;
  min-height: 2260px;
  padding-bottom: 220px; /* the footer (~130px) plus the board's 90px section spacing */
  background: #0B1620;
  overflow: hidden;
  font-family: 'Cardo', Georgia, serif;
  color: #EDE6D6;
}
.sb-vignette { position: absolute; inset: 0; box-shadow: inset 0 0 220px rgba(0,0,0,0.75); pointer-events: none; }
.sb-stars { position: absolute; top: 0; left: 50%; height: 100%; pointer-events: none; }
.sb-stars--desktop { width: 1440px; margin-left: -720px; }
.sb-stars--phone { width: 390px; margin-left: -195px; display: none; }

.sb-phone-only { display: none !important; }

/* ---------- header ---------- */
.sb-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* 80px at the board's 1440 width; keeps level with the book beyond it */
  padding: 30px max(80px, calc((100% - 1280px) / 2));
  border-bottom: 1px solid #1E3A3A;
}
.sb-brand { display: flex; align-items: center; gap: 16px; }
.sb-brand-mark { width: 52px; height: 52px; display: block; }
.sb-brand-text { display: flex; flex-direction: column; gap: 2px; }
.sb-brand-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: 22px; letter-spacing: 6px; color: #D9A441; }
.sb-brand-sub { font-style: italic; font-size: 15px; color: #A9C9C4; }
.sb-header-right { display: flex; align-items: center; gap: 10px; }
.sb-tier { font-family: 'Silkscreen', monospace; font-size: 11px; color: #5AA8A0; border: 1px solid #2A4A4A; border-radius: 999px; padding: 8px 14px; }
/* Not on the design boards: the pill that links the character page and
   Story mode (story.html) to each other. */
.sb-tier--link { text-decoration: none; }

/* ---------- mood switcher ---------- */
.sb-moods--desktop { display: flex; align-items: center; gap: 10px; padding: 6px; border: 1px solid #1E3A3A; border-radius: 999px; background: #0F1E28; }
.sb-moods--desktop .sb-mood {
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; background: transparent;
  color: #A9C9C4; font-family: 'Silkscreen', monospace; font-size: 12px; letter-spacing: 1px; cursor: pointer;
}
.sb-moods--desktop .sb-mood[aria-pressed="true"] {
  border-color: #D9A441; background: #D9A441; color: #0F1E28;
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 13px; letter-spacing: 2px;
}
.sb-moods--phone { display: none; gap: 8px; padding: 14px 20px 0; }
.sb-moods--phone .sb-mood {
  /* Sized to their labels (the board has equal thirds) so every label
     fits on one line; any spare width is still shared out. */
  flex: 1 1 auto; white-space: nowrap; padding: 0 10px; height: 44px; border-radius: 999px; border: 1px solid #2A4A4A; background: transparent;
  color: #A9C9C4; font-family: 'Silkscreen', monospace; font-size: 10px;
}
.sb-moods--phone .sb-mood[aria-pressed="true"] {
  border-color: #D9A441; background: #D9A441; color: #0F1E28;
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 11px; letter-spacing: 1px;
}

/* ---------- hero ---------- */
.sb-hero { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 54px 0 40px; }
.sb-hero-kicker { font-family: 'Cinzel', serif; font-size: 14px; letter-spacing: 8px; color: #5AA8A0; }
.sb-hero-title { margin: 0; font-family: 'Cinzel', serif; font-weight: 700; font-size: 76px; letter-spacing: 4px; color: #EDE6D6; text-shadow: 0 0 40px rgba(217,164,65,0.25); }
.sb-flourish { display: block; }
.sb-hero-intro { margin: 6px 0 0; font-style: italic; font-size: 21px; color: #A9C9C4; max-width: 680px; text-align: center; line-height: 1.5; }

/* ---------- the book ---------- */
.sb-book {
  position: relative; margin: 0 auto; width: 1280px; box-sizing: border-box; padding: 18px; border-radius: 18px;
  background: #132A2A; border: 1px solid #2A4A4A;
  box-shadow: 0 50px 90px rgba(0,0,0,0.65), inset 0 0 0 6px #102424, inset 0 0 0 7px #B8923E;
}
.sb-pages { display: flex; height: 860px; }
.sb-page {
  position: relative; flex: 1 1 0; min-width: 0; background: #EDE6D6; box-sizing: border-box;
  display: flex; flex-direction: column; color: #1B2A36;
}
.sb-page--left {
  border-radius: 6px 0 0 6px;
  box-shadow: inset -46px 0 50px -30px rgba(70,45,10,0.45), inset 0 0 80px rgba(160,120,60,0.18);
  padding: 60px 64px; align-items: center; gap: 26px;
}
.sb-page--right {
  border-radius: 0 6px 6px 0;
  box-shadow: inset 46px 0 50px -30px rgba(70,45,10,0.45), inset 0 0 80px rgba(160,120,60,0.18);
  padding: 60px 72px; gap: 22px;
}
.sb-page-border { position: absolute; inset: 22px; border: 1px solid #B8923E; border-radius: 4px; pointer-events: none; }
.sb-corner { position: absolute; }
.sb-spine { width: 2px; background: #B8923E; opacity: 0.55; }
.sb-label { font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 6px; color: #8A6420; }
.sb-label--script { align-self: center; }
.sb-label--controls { letter-spacing: 4px; }
.sb-folio { margin-top: auto; font-family: 'Cinzel', serif; font-size: 14px; color: #8A6420; }
.sb-page--right .sb-folio { align-self: center; }

/* ---------- the stage ---------- */
.sb-stage-wrap { position: relative; animation: float 4s ease-in-out infinite; }
.sb-pulse { position: absolute; inset: 0; border-radius: 210px 210px 16px 16px; display: none; }
.sb-board.is-playing .sb-pulse { display: block; }
.sb-arch {
  position: relative; width: 400px; height: 500px; box-sizing: border-box; border-radius: 200px 200px 14px 14px;
  background: #0B1620; border: 4px solid #D9A441;
  box-shadow: 0 0 0 7px #EDE6D6, 0 0 0 9px #B8923E, 0 26px 50px rgba(20,25,30,0.45);
  overflow: hidden; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 54px;
}
.sb-arch-stars { position: absolute; inset: 0; }
.sb-arch-glow {
  position: absolute; left: 50%; bottom: 30px; width: 300px; height: 70px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(90,168,160,0.55), rgba(90,168,160,0) 70%);
}
.sb-sprite { position: relative; width: 288px; height: 288px; flex-shrink: 0; overflow: hidden; }
/* Character builds are 384px native; speaker-stage.js scales them to fit. */
.sb-sprite-frame {
  position: absolute; top: 0; left: 0; width: 384px; height: 384px; border: 0;
  transform-origin: 0 0; image-rendering: pixelated; image-rendering: crisp-edges;
}
.sb-sprite-frame.is-offstage { visibility: hidden; }
.sb-scanlines {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.16) 0px, rgba(0,0,0,0.16) 1px, transparent 1px, transparent 4px);
}
.sb-plate {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 40px;
  background: #0F1E28; border: 1px solid #D9A441; border-radius: 6px; box-shadow: 0 10px 24px rgba(20,25,30,0.35);
}
.sb-plate-name { font-family: 'Cinzel', serif; font-weight: 700; font-size: 26px; letter-spacing: 2px; color: #D9A441; }
.sb-plate-role { font-style: italic; font-size: 17px; color: #A9C9C4; }

/* ---------- the script ---------- */
.sb-chapter { display: flex; flex-direction: column; gap: 6px; }
.sb-chapter-kicker { font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 3px; color: #2E6E69; }
.sb-chapter-name { font-family: 'Cinzel', serif; font-weight: 700; font-size: 38px; line-height: 1.1; color: #0F1E28; }
.sb-dropcap-row { display: flex; gap: 20px; align-items: flex-start; flex: 0 1 auto; min-height: 92px; }
.sb-dropcap {
  flex-shrink: 0; width: 86px; height: 92px; box-sizing: border-box; background: #0F1E28; border: 3px double #D9A441; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 58px; color: #D9A441; cursor: text;
}
/* The script input, set exactly like the board's drop-cap paragraph. */
.sb-script {
  flex: 1 1 auto; min-width: 0; max-height: 100%; box-sizing: border-box; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; resize: none; overflow-y: auto;
  font-family: 'Cardo', Georgia, serif; font-size: 23px; line-height: 1.6; color: #1B2A36;
}
.sb-script::placeholder { color: #1B2A36; opacity: 0.45; }
.sb-script:focus { outline: none; }
.sb-script:focus-visible { outline: 3px solid #5AA8A0; outline-offset: 4px; }
.sb-divider { display: block; }
/* Not on the design boards: the unknown-speaker note under the script
   and the time readout under the wave, set small in the page's own
   type and colours. */
.sb-script-note { margin: 0; font-style: italic; font-size: 15px; line-height: 1.4; color: #8A6420; }
.sb-script-note[hidden], .sb-time[hidden] { display: none; }
.sb-time { display: flex; flex-direction: column; gap: 6px; }
.sb-progress { height: 3px; border-radius: 2px; background: rgba(46,110,105,0.2); overflow: hidden; }
.sb-progress-fill { width: 0; height: 100%; background: #2E6E69; }
.sb-time-text { font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 1px; color: #2E6E69; font-variant-numeric: tabular-nums; }

.sb-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sb-control { display: flex; flex-direction: column; gap: 8px; }
.sb-control-label { font-size: 15px; font-style: italic; color: #3B4B57; }
.sb-control-label--split { display: flex; justify-content: space-between; }
.sb-control-value { font-style: normal; font-family: 'Cinzel', serif; color: #2E6E69; }
.sb-select {
  height: 44px; border: 1px solid #B8923E; border-radius: 6px; background: #F6F1E6; color: #1B2A36;
  font-family: 'Cardo', serif; font-size: 15px; padding: 0 10px;
}
.sb-range { height: 44px; margin: 0; }

.sb-speak-row { display: flex; align-items: center; gap: 22px; margin-top: 6px; }
.sb-speak {
  width: 96px; height: 96px; flex-shrink: 0; border-radius: 50%; border: 3px solid #8A6420; background: #D9A441;
  box-shadow: inset 0 0 0 6px #E9BE62, inset 0 0 0 8px #8A6420, 0 12px 24px rgba(60,40,10,0.35);
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.sb-speak-icon--pause { display: none; }
.sb-board.is-playing .sb-speak-icon--play { display: none; }
.sb-board.is-playing .sb-speak-icon--pause { display: block; }
.sb-speak-side { display: flex; flex-direction: column; gap: 10px; flex-grow: 1; min-width: 0; }
.sb-speak-label { font-family: 'Cinzel', serif; font-weight: 700; font-size: 18px; letter-spacing: 3px; color: #0F1E28; }
.sb-wave { display: flex; align-items: center; gap: 5px; height: 34px; }
.sb-wave span { height: 34px; }

.sb-actions { display: flex; gap: 14px; }
.sb-btn {
  height: 48px; padding: 0 26px; border: 1px solid #0F1E28; border-radius: 6px;
  font-family: 'Cinzel', serif; font-weight: 600; font-size: 14px; letter-spacing: 2px; cursor: pointer;
}
.sb-btn--hush,
.sb-btn--save { background: transparent; color: #0F1E28; }
/* Save WAV is not on the design boards: it is styled as a second Hush
   button, dimmed until there is a finished take to save. */
.sb-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.sb-btn--next { background: #0F1E28; color: #D9A441; }

/* ---------- Dramatis Personae ---------- */
.sb-personae { position: relative; width: 1280px; margin: 0 auto; padding: 90px 0 0; display: flex; flex-direction: column; gap: 34px; }
.sb-personae-head { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sb-personae-head svg { display: block; }
.sb-personae-title { margin: 0; font-family: 'Cinzel', serif; font-weight: 700; font-size: 46px; letter-spacing: 3px; color: #D9A441; }
.sb-personae-intro { margin: 0; font-style: italic; font-size: 18px; color: #A9C9C4; }
.sb-cast { display: flex; flex-direction: column; gap: 34px; }
.sb-cast-heading { font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 5px; color: #5AA8A0; }
.sb-cast-heading--awaiting { color: #7E9593; margin-top: 10px; }
.sb-cast-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 20px; align-items: start; }

.sb-card {
  width: 166px; flex-shrink: 0; box-sizing: border-box; padding: 14px 14px 16px; background: #0F1E28;
  border: 2px solid #2A4A4A; border-radius: 14px; box-shadow: 0 14px 30px rgba(0,0,0,0.45); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: 'Cardo', Georgia, serif; color: #EDE6D6; text-align: center;
}
.sb-card.is-selected { border-color: #5AA8A0; box-shadow: 0 0 0 3px rgba(90,168,160,0.35), 0 20px 44px rgba(0,0,0,0.55); transform: translateY(-8px); }
.sb-card-chapter { font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 3px; color: #D9A441; }
.sb-card-portrait {
  width: 100%; box-sizing: border-box; aspect-ratio: 3 / 3.4; border-radius: 999px 999px 8px 8px; background: #0B1620;
  border: 1.5px solid #B8923E; box-shadow: inset 0 0 30px rgba(90,168,160,0.22);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; overflow: hidden;
}
.sb-card-sprite { display: block; width: 104px; height: 104px; image-rendering: pixelated; image-rendering: crisp-edges; }
.sb-card-name { font-family: 'Cinzel', serif; font-weight: 700; font-size: 14px; line-height: 1.25; color: #EDE6D6; }
.sb-card-role { font-style: italic; font-size: 14px; color: #A9C9C4; line-height: 1.2; }
.sb-card-voice { font-family: 'Silkscreen', monospace; font-size: 9px; letter-spacing: 0.5px; color: #5AA8A0; border: 1px solid #2A4A4A; border-radius: 999px; padding: 4px 8px; }

.sb-card--pending { background: transparent; border: 2px dashed #2A4A4A; box-shadow: none; cursor: default; }
.sb-card--pending .sb-card-chapter { color: #5E7472; }
.sb-card--pending .sb-card-portrait { background: none; border: 1.5px dashed #3A5656; box-shadow: none; align-items: center; padding-bottom: 0; }
.sb-card--pending .sb-card-name { color: #8FA5A3; line-height: normal; }
.sb-card--pending .sb-card-role { color: #7E9593; line-height: normal; }
.sb-card--pending .sb-card-voice { color: #7E9593; border: 1px dashed #2A4A4A; letter-spacing: normal; }

/* ---------- footer ---------- */
.sb-footer {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 30px 0 36px; border-top: 1px solid #1E3A3A;
}
.sb-footer-dashes { width: 220px; height: 4px; background: repeating-linear-gradient(90deg, #5AA8A0 0px, #5AA8A0 6px, transparent 6px, transparent 10px); opacity: 0.6; }
.sb-footer-credit { font-family: 'Silkscreen', monospace; font-size: 11px; letter-spacing: 2px; color: #5AA8A0; }
.sb-footer-note { font-style: italic; font-size: 14px; color: #7E9593; }

/* ====================================================================
   PHONE BOARD (below 1024px): one vellum page, stacked. The two page
   wrappers and the controls grid dissolve (display: contents) so their
   children flow as the phone board orders them.
   ==================================================================== */
@media (max-width: 1023px) {
  .sb-desktop-only { display: none !important; }
  .sb-phone-only { display: revert !important; }
  svg.sb-phone-only { display: block !important; }

  .sb-board { min-height: 1640px; padding-bottom: 80px; }
  .sb-vignette { display: none; }
  .sb-stars--desktop { display: none; }
  .sb-stars--phone { display: block; }

  .sb-header { padding: 18px 20px; }
  .sb-brand { gap: 10px; }
  .sb-brand-mark { width: 34px; height: 34px; }
  .sb-brand-title { font-size: 14px; letter-spacing: 3px; }
  .sb-brand-sub { display: none; }
  .sb-tier { font-size: 9px; padding: 6px 10px; }
  .sb-moods--desktop { display: none; }
  .sb-moods--phone { display: flex; }

  .sb-hero { gap: 8px; padding: 26px 20px 18px; }
  .sb-hero-kicker { font-size: 11px; letter-spacing: 5px; }
  .sb-hero-title { font-size: 34px; letter-spacing: normal; text-shadow: none; text-align: center; }
  .sb-hero-intro { display: none; }

  .sb-book {
    width: auto; margin: 0 16px; padding: 10px; border-radius: 14px;
    box-shadow: 0 30px 50px rgba(0,0,0,0.6), inset 0 0 0 4px #102424, inset 0 0 0 5px #B8923E;
  }
  .sb-pages {
    position: relative; height: auto; flex-direction: column; align-items: center; gap: 18px;
    background: #EDE6D6; border-radius: 6px; padding: 30px 22px 26px; box-sizing: border-box; color: #1B2A36;
    box-shadow: inset 0 0 60px rgba(160,120,60,0.2);
  }
  .sb-pages::before { content: ''; position: absolute; inset: 12px; border: 1px solid #B8923E; border-radius: 4px; pointer-events: none; }
  .sb-page { display: contents; }
  .sb-page-border, .sb-corner, .sb-spine, .sb-folio,
  .sb-label--script, .sb-chapter, .sb-label--controls,
  .sb-control--voice, .sb-control--pitch { display: none; }
  .sb-controls { display: contents; }

  .sb-label { font-size: 11px; letter-spacing: 5px; }
  .sb-stage-wrap { animation: none; }
  .sb-pulse { border-radius: 140px 140px 12px 12px; }
  .sb-arch {
    width: 250px; height: 310px; border-radius: 125px 125px 10px 10px; border-width: 3px;
    box-shadow: 0 0 0 5px #EDE6D6, 0 0 0 7px #B8923E; padding-bottom: 32px;
  }
  .sb-arch-glow { bottom: 18px; width: 200px; height: 50px; }
  .sb-sprite { width: 184px; height: 184px; }
  .sb-plate { gap: 2px; padding: 10px 22px; box-shadow: none; }
  .sb-plate-name { font-size: 18px; letter-spacing: normal; text-align: center; }
  .sb-plate-role { font-size: 14px; }

  .sb-dropcap-row { gap: 12px; align-self: stretch; min-height: 56px; }
  .sb-dropcap { width: 52px; height: 56px; font-size: 34px; }
  .sb-script { font-size: 17px; line-height: 1.55; max-height: none; }
  .sb-script-note { align-self: stretch; font-size: 13px; }
  .sb-time-text { font-size: 12px; }

  .sb-speak-row { gap: 16px; width: 100%; margin-top: 0; }
  .sb-speak { width: 76px; height: 76px; box-shadow: inset 0 0 0 5px #E9BE62, inset 0 0 0 7px #8A6420; }
  .sb-speak-side { gap: 8px; overflow: hidden; }
  .sb-speak-label { font-size: 15px; letter-spacing: 2px; }
  .sb-wave { height: 26px; }
  .sb-wave span { height: 26px; }
  .sb-wave span:nth-child(n+19) { display: none; }

  .sb-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
  .sb-btn { height: 46px; padding: 0; font-size: 13px; cursor: default; }
  .sb-btn--next { letter-spacing: 1px; grid-column: 1 / -1; }

  .sb-control--pace { order: 1; gap: 6px; width: 100%; }
  .sb-control--pace .sb-control-label { font-size: 14px; }

  .sb-personae { width: auto; padding: 34px 0 0; gap: 16px; }
  .sb-personae-head { gap: 8px; }
  .sb-personae-title { font-size: 26px; letter-spacing: normal; }
  .sb-personae-intro { display: none; }
  .sb-cast { flex-direction: row; gap: 14px; overflow-x: auto; padding: 14px 20px 26px; }
  .sb-cast-heading, .sb-card--pending { display: none; }
  .sb-cast-grid { display: contents; }
  .sb-card { width: 140px; padding: 10px 10px 16px; }
  .sb-card-sprite { width: 84px; height: 84px; }
  .sb-card-name { font-size: 12px; }
  .sb-card-role { font-size: 12px; }

  .sb-footer { gap: 8px; padding: 18px 0 24px; }
  .sb-footer-credit { font-size: 9px; letter-spacing: 1px; }
}
/* Narrower than 360px the three labels can't share one line; let them
   wrap rather than run off the edge. */
@media (max-width: 359px) {
  .sb-moods--phone .sb-mood { white-space: normal; flex-basis: 0; }
}
