/* "Shame…" voices (public/shamevoice.js). The clip is a strip of the letterboard: felt with its grooves, the waveform
   pegged into it as letter-white stems, board letters for what it is, a bronze stripe down the left for the shame bell.
   Recording: a red dot pulses and the stems rise as you talk. Playing: a periwinkle line sweeps across. */
.sv-strip { position: relative; margin: 4px 0 0; padding: 10px 14px 12px 20px; border-radius: 12px; overflow: hidden;
  background-color: var(--felt); background-image: repeating-linear-gradient(to bottom, transparent 0 7px, var(--felt-groove) 7px 9px);
  color: var(--letter); box-shadow: 0 0 0 1px #f5f5f21f, 0 3px 0 #0000004d; }
.sv-strip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: #9c7a3c; }
.sv-tag { display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font: 600 15px/1.2 var(--board); letter-spacing: .14em; text-transform: uppercase; }
.sv-secs { font-size: 14px; letter-spacing: .08em; text-transform: none; opacity: .78; font-variant-numeric: tabular-nums; }
.sv-wave { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2px; height: 64px; margin-top: 8px; }
.sv-wave i { flex: 1 1 0; max-width: 4px; min-width: 2px; height: calc(var(--h, 0) * 100%); min-height: 2px; border-radius: 1px; background: var(--letter); }
.sv-strip.empty .sv-wave i { opacity: .22; }
.sv-strip.empty .sv-wave { height: 22px; }
.sv-hint { margin: 8px 0 0; font-size: 15px; color: var(--letter); opacity: .85; }
.sv-head { position: absolute; top: -4px; bottom: -4px; left: calc(var(--x, 0) * 100%); width: 2px; margin-left: -1px; background: #7c8cff; opacity: 0; }
.sv-strip.playing .sv-head { opacity: 1; }
.sv-strip.live .sv-tag span:first-child::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%;
  background: #ff5a4f; vertical-align: 1px; animation: sv-blink 1s steps(2, jump-none) infinite; }
@keyframes sv-blink { 50% { opacity: .25; } }

.sv-ctl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sv-ctl .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; flex: 1 1 auto; }
.sv-ic { width: 18px; height: 18px; flex: none; }
.sv-dot { width: 11px; height: 11px; border-radius: 50%; background: #ff5a4f; flex: none; box-shadow: 0 0 0 2px #ffffff40; }
.btn.quiet .sv-dot { box-shadow: none; }
.sv-rec.on .sv-dot { border-radius: 2px; background: #fff; box-shadow: none; } /* Stop = a square */

.sv-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin-top: 2px; }
.sv-file { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--indigo); font-size: 15.5px; font-weight: 700; cursor: pointer; }
.sv-file input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sv-file:focus-within { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 6px; }
.sv-del { min-height: 44px; padding: 0 12px; border: 1.5px solid var(--rule); border-radius: 10px; background: none; color: var(--ink-2); font: 700 15px/1 var(--font); }
.sv-del.armed { color: var(--danger); border-color: var(--danger); background: color-mix(in oklab, var(--danger) 8%, transparent); }

.sv-who { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px 4px; }
.sv-p { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; margin: 0; padding: 2px 0; border: 0; background: none;
  color: var(--c, var(--ink)); font: 700 13px/1.2 var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (prefers-color-scheme: dark) { .sv-p { color: color-mix(in oklab, var(--c, #fff) 45%, white); } }
.sv-p-face { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.sv-p-face .mface { display: block; width: 50px; height: 50px; }
.sv-p-face .mface img, .sv-p-face .mface svg { display: block; width: 100%; height: 100%; }
.sv-p-play { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--felt); color: var(--letter); box-shadow: 0 0 0 2px var(--wall-2); }
.sv-p-play .sv-ic { width: 13px; height: 13px; margin-left: 1px; }
.sv-p-n { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-p:active .sv-p-face { scale: .94; }
.sv-p.playing .sv-p-face { box-shadow: 0 0 0 3px #7c8cff; }
.sv-p:focus-visible { outline-offset: 2px; border-radius: 10px; }
.sv-none { margin: 0; color: var(--ink-2); font-size: 15px; }

/* the menu row's icon: the shame bell */
.sv-ic-bell { background: #9c7a3c; color: #fff; }

/* in the plaza (plaza.js "Out loud"): the Mii saying it out loud gets an ink bubble for the word */
.pm-bubble.shame.said { background: var(--pz-ink); border-color: var(--pz-ink); }
.pm-bubble.shame.said span, .pm-bubble.shame.said span.on { color: #fff; opacity: 1; }
.pm-bubble.shame.said span + span { opacity: .45; }

@media (prefers-reduced-motion: reduce) { .sv-strip.live .sv-tag span:first-child::before { animation: none; } }
.sv-card .btn { margin-top: 10px; }
