/* site.css — Mumblo, the room of whispers. Dark static, soft volumes, one pink for the voices that were right. */
:root {
  --bg: #0c0a0b; --ink: #d8d2ca; --acc: #ff8fa3; --on-acc: #1a0d10;
  --p1: rgba(19, 16, 17, .9); --p2: #1a1617; --p3: rgba(216, 210, 202, .07); --p4: rgba(216, 210, 202, .12);
  --dim: rgba(216, 210, 202, .58); --faint: rgba(216, 210, 202, .26);
  --disp: 'Bagel Fat One', ui-rounded, 'Arial Rounded MT Bold', system-ui, sans-serif;
  --mono: 'Spline Sans Mono', ui-monospace, Menlo, monospace;
  --e: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
body { overflow: hidden; font: 400 14px/1.45 var(--mono); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
svg { display: block; }
#bg { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }

/* header */
.top { position: fixed; z-index: 6; top: 0; left: 0; right: 0; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(0px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) 0 max(28px, env(safe-area-inset-left)); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 30px/1 var(--disp); letter-spacing: -.01em; }
.brand .mk { width: 50px; height: 50px; color: var(--ink); transition: transform 320ms var(--e); }
.brand:hover .mk { transform: rotate(-6deg) scale(1.06); }
.tools { display: flex; align-items: center; gap: 8px; }
.pill { height: 40px; padding: 0 17px; border: 0; border-radius: 999px; background: var(--p3); color: var(--ink); display: inline-flex; align-items: center; gap: 8px;
  font: 500 13px/1 var(--mono); letter-spacing: .02em; cursor: pointer; white-space: nowrap; transition: background 140ms var(--e), transform 140ms var(--e); }
.pill:hover { background: var(--p4); }
.pill:active { transform: scale(.97); }
.pill.solid { background: var(--ink); color: var(--bg); font-weight: 700; }
.pill.solid:hover { background: #fff; }
.pill svg { width: 18px; height: 18px; }
.ic { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--p3); color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; text-decoration: none; transition: background 140ms var(--e); }
.ic:hover { background: var(--p4); }
.ic svg { width: 18px; height: 18px; }
#snd .w { display: none; } #snd[aria-pressed="true"] .w { display: inline; } #snd[aria-pressed="true"] .x { display: none; }
#snd[aria-pressed="true"] { background: var(--acc); color: var(--on-acc); }
.live { height: 40px; padding: 0 15px; border-radius: 999px; background: rgba(216, 210, 202, .045); display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); color: var(--dim); }
.live b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); animation: ping 1.9s var(--e) infinite; }

/* the room */
main.room { position: fixed; z-index: 2; top: 88px; bottom: 26px; left: max(28px, env(safe-area-inset-left)); right: max(28px, env(safe-area-inset-right));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(520px, 640px); gap: 44px; }
.hero { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 0 0 8px 10px; }
h1 { margin: 0; font: 400 clamp(64px, 8.4vw, 132px)/.84 var(--disp); letter-spacing: -.025em; }
h1 span, h1 em { display: block; }
h1 em { font-style: normal; color: var(--acc); }
.sub { margin: 6px 0 0; max-width: 36ch; font: 500 16px/1.45 var(--mono); color: var(--dim); text-shadow: 0 0 10px var(--bg), 0 0 3px var(--bg); }
.act { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.hold { position: relative; overflow: hidden; height: 70px; padding: 0 30px 0 11px; border: 0; border-radius: 999px; background: var(--acc); color: var(--on-acc);
  display: inline-flex; align-items: center; gap: 14px; cursor: pointer; font: 700 16px/1 var(--mono); letter-spacing: .01em;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; transition: transform 140ms var(--e); }
.hold:hover { transform: translateY(-2px); }
.hold .mic { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; background: var(--on-acc); color: var(--acc); display: grid; place-items: center; }
.hold .mic svg { width: 22px; height: 22px; }
.hold b, .hold .tm { position: relative; z-index: 1; }
.hold .tm { display: none; font-weight: 500; font-variant-numeric: tabular-nums; opacity: .72; }
.hold .fill { position: absolute; inset: 0; background: rgba(26, 13, 16, .18); transform: scaleX(0); transform-origin: left center; }
.hold.rec { transform: scale(.985); }
.hold.rec .tm { display: inline; }
.hold.rec .fill { animation: fillx 15s linear forwards; }
.hold.rec .mic { animation: breathe 900ms ease-in-out infinite; }
.hold.busy { pointer-events: none; opacity: .72; }
.hold.shake { animation: shake 360ms var(--e); }
.band { height: 118px; margin: 2px 0 0; }
.flow { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 0; font: 500 12px/1.1 var(--mono); color: var(--dim); }
.flow li { display: inline-flex; align-items: center; gap: 10px; padding: 7px 15px 7px 7px; border-radius: 999px; background: rgba(216, 210, 202, .05); }
.flow li + li { margin-left: 34px; position: relative; }
.flow li + li::before { content: ""; position: absolute; left: -29px; top: 50%; width: 24px; height: 4px; margin-top: -2px; background: radial-gradient(circle, var(--faint) 1.4px, transparent 1.6px) 0 0 / 6px 4px repeat-x; }
.flow .ico { width: 32px; height: 32px; border-radius: 50%; background: var(--p3); color: var(--ink); display: grid; place-items: center; }
.flow .ico svg { width: 21px; height: 21px; }
.flow .hot { color: var(--ink); }
.flow .hot .ico { background: var(--acc); color: var(--on-acc); }

.panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 12px; border-radius: 32px; background: var(--p1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 40px 90px -50px #000; }
.tabs { display: flex; align-items: center; gap: 4px; padding: 2px 2px 12px; }
.tabs button { height: 36px; padding: 0 17px; border: 0; border-radius: 999px; background: transparent; color: var(--dim); font: 500 13px/1 var(--mono); cursor: pointer; transition: background 140ms var(--e), color 140ms; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { background: var(--p4); color: var(--ink); }
.pulse { margin-left: auto; padding: 0 10px; font: 500 12px/1.2 var(--mono); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity 320ms var(--e); }
.pulse.on { opacity: 1; }
.pulse b { color: var(--acc); font-weight: 700; }

/* now playing */
.now { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 18px; border-radius: 24px; background: var(--p2); transition: background 320ms var(--e); }
.now.loud { background: #1f1517; }
.who { display: flex; align-items: center; gap: 11px; font: 500 13px/1 var(--mono); color: var(--dim); min-width: 0; }
.who b { color: var(--ink); font-weight: 700; white-space: nowrap; }
.av { width: 36px; height: 36px; border-radius: 11px; flex: none; }
.dots { display: inline-flex; gap: 3px; flex: none; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(216, 210, 202, .2); }
.dots i.r { background: var(--acc); }
.dots i.p { background: transparent; box-shadow: inset 0 0 0 1.5px var(--faint); }
.rec { font-variant-numeric: tabular-nums; }
.tag { margin-left: auto; flex: none; height: 26px; padding: 0 11px; border-radius: 999px; font: 700 11px/26px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.tag.loud { background: var(--acc); color: var(--on-acc); }
.tag.muted { background: var(--p4); color: var(--dim); }
.say { margin: 0; min-height: 2.2em; font: 400 36px/1.06 var(--disp); letter-spacing: -.01em; overflow-wrap: anywhere; }
.say .w { opacity: .22; transition: opacity 140ms var(--e), color 140ms var(--e); }
.say .w.on { opacity: 1; }
.say .w.cur { opacity: 1; color: var(--acc); }
.now.muted .say { font-size: 25px; color: var(--dim); }
.now.muted .say .w.cur { color: var(--ink); }
.play { display: flex; align-items: center; gap: 12px; }
.pb { width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; cursor: pointer; transition: transform 140ms var(--e); }
.pb:hover { transform: scale(1.06); }
.pb svg { width: 20px; height: 20px; }
.now.loud .pb { background: var(--acc); color: var(--on-acc); }
.play canvas { flex: 1; min-width: 0; height: 42px; display: block; }
.play .t { width: 38px; text-align: right; font: 500 12px/1 var(--mono); color: var(--dim); font-variant-numeric: tabular-nums; }
.call { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 30px; padding: 0 12px; border-radius: 999px; background: var(--p3); display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--mono); color: var(--dim); white-space: nowrap; }
.chip b { color: var(--ink); font-weight: 700; }
.chip.tk { background: var(--p4); color: var(--ink); font-weight: 700; }
.chip.good b { color: var(--acc); }
button.chip { border: 0; cursor: pointer; }
button.chip:hover { background: var(--p4); }

/* the tape */
.list { position: relative; flex: 1; min-height: 0; margin-top: 10px; overflow: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(#000 86%, transparent); mask-image: linear-gradient(#000 86%, transparent); }
.list::-webkit-scrollbar { display: none; }
.tape, .board { list-style: none; margin: 0; padding: 0 0 40px; display: flex; flex-direction: column; gap: 6px; }
.row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 20px; background: rgba(216, 210, 202, .035); cursor: pointer; transition: background 140ms var(--e); }
.row:hover { background: var(--p3); }
.row.playing { background: rgba(255, 143, 163, .1); }
.l1 { display: flex; align-items: center; gap: 8px; min-width: 0; font: 500 12px/1 var(--mono); color: var(--dim); white-space: nowrap; }
.l1 b { color: var(--ink); font-weight: 700; }
.l2 { margin-top: 7px; font: 500 14px/1.3 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.muted .l2 { color: var(--dim); filter: blur(3.2px); }
.row.muted:hover .l2 { filter: blur(2.2px); }
.row.mine .l2 { filter: none; color: var(--ink); }
.end { display: flex; align-items: center; gap: 8px; }
.st { font: 700 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.st.loud, .st.good { color: var(--acc); }
.row .pb { width: 36px; height: 36px; background: var(--p4); color: var(--ink); }
.row .pb svg { width: 15px; height: 15px; }
.row.loud .pb { background: var(--acc); color: var(--on-acc); }
.row.mine { box-shadow: inset 0 0 0 1.5px rgba(255, 143, 163, .55); }
.row.new { animation: slidein 420ms var(--e), glow 1700ms ease-out; }
.row.flash { animation: glow 1700ms ease-out; }
.row .steps-m { display: flex; gap: 6px; margin-top: 8px; }
.row .steps-m span { height: 22px; padding: 0 9px; border-radius: 999px; background: var(--p3); font: 500 11px/22px var(--mono); color: var(--dim); }
.row .steps-m span.on { background: var(--acc); color: var(--on-acc); }
.row .steps-m span.done { color: var(--ink); }
.picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.board li { display: grid; grid-template-columns: 26px 36px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 20px; background: rgba(216, 210, 202, .035); }
.board .rk { font: 400 20px/1 var(--disp); color: var(--dim); text-align: center; }
.board .nm { min-width: 0; }
.board .nm b { display: block; font: 700 13px/1 var(--mono); margin-bottom: 7px; }
.board .hr { font: 400 26px/1 var(--disp); font-variant-numeric: tabular-nums; }
.board li.loud .hr { color: var(--acc); }
.board li.you { position: sticky; bottom: 0; background: #241c1e; box-shadow: inset 0 0 0 1.5px rgba(255, 143, 163, .45); }
.board .pill { height: 34px; padding: 0 13px; font-size: 12px; }

/* sheets */
.sheet { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(12, 10, 11, .74); animation: fade 220ms var(--e); }
.sheet[hidden] { display: none; }
.sheet .card { position: relative; width: min(780px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 30px 30px 26px; border-radius: 32px; background: #161314; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); animation: pop 320ms var(--e); }
.sheet h2 { margin: 0 56px 22px 0; font: 400 40px/1 var(--disp); letter-spacing: -.01em; }
.sheet .x { position: absolute; top: 20px; right: 20px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.steps > div { padding: 18px; border-radius: 24px; background: rgba(216, 210, 202, .05); }
.steps .big { width: 66px; height: 66px; margin-bottom: 16px; border-radius: 50%; background: var(--p3); color: var(--ink); display: grid; place-items: center; }
.steps .big svg { width: 42px; height: 42px; }
.steps .big.hot { background: var(--acc); color: var(--on-acc); }
.steps b { display: block; margin-bottom: 8px; font: 400 23px/1 var(--disp); }
.steps p { margin: 0; font-size: 13px; color: var(--dim); }
.how { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 7px; font-size: 12px; color: var(--dim); }
.how li { padding-left: 18px; position: relative; }
.how li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }
#cform textarea { width: 100%; resize: none; padding: 18px 20px; border: 0; border-radius: 22px; background: rgba(216, 210, 202, .06); color: var(--ink); font: 400 22px/1.25 var(--disp); }
#cform textarea::placeholder { color: rgba(216, 210, 202, .3); }
#cform .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; background: none; padding: 0; cursor: default; grid-template-columns: none; }
.hint { font-size: 12px; color: var(--dim); }

.toast { position: fixed; z-index: 30; left: 50%; bottom: 30px; max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 700 13px/1.25 var(--mono);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity 220ms var(--e), transform 220ms var(--e); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.hot { background: var(--acc); color: var(--on-acc); }
#ca { position: fixed; z-index: 7; left: max(28px, env(safe-area-inset-left)); bottom: 26px; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--p4); color: var(--ink); font: 500 12px/1 var(--mono); cursor: pointer; }

@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 143, 163, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(255, 143, 163, 0); } }
@keyframes fillx { to { transform: scaleX(1); } }
@keyframes breathe { 50% { transform: scale(1.12); } }
@keyframes shake { 20% { transform: translateX(-6px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } }
@keyframes slidein { from { transform: translateY(-14px); opacity: 0; } }
@keyframes glow { 0% { background: rgba(255, 143, 163, .2); } 100% { background: rgba(216, 210, 202, .035); } }
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

@media (max-width: 1180px) {
  main.room { grid-template-columns: minmax(0, 1fr) minmax(460px, 1.05fr); gap: 28px; }
  .flow li span:last-child { display: none; } .flow li { padding-right: 7px; }
}
@media (max-width: 860px) {
  body { overflow-x: hidden; overflow-y: auto; }
  .top { height: 64px; padding: 0 14px; background: linear-gradient(var(--bg) 55%, rgba(12, 10, 11, 0)); }
  .brand { gap: 7px; font-size: 24px; } .brand .mk { width: 38px; height: 38px; }
  .tools { gap: 6px; } .live { display: none; }
  .pill { height: 36px; padding: 0 13px; font-size: 12px; } .ic { width: 36px; height: 36px; }
  main.room { position: relative; inset: auto; display: block; padding: 78px 14px 112px; }
  .hero { padding: 0; gap: 12px; }
  h1 { font-size: clamp(54px, 15.5vw, 92px); line-height: .86; }
  .sub { margin: 4px 0 0; font-size: 14px; }
  .band { height: 74px; margin: 0; }
  .flow { display: none; }
  .act { position: fixed; z-index: 8; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); margin: 0; padding: 7px; gap: 7px; border-radius: 999px; background: rgba(12, 10, 11, .92); box-shadow: 0 -10px 40px -10px #000; }
  .hold { flex: 1; height: 62px; justify-content: flex-start; }
  .hold:hover { transform: none; }
  .act .ghost { width: 62px; height: 62px; padding: 0; justify-content: center; flex: none; }
  .act .ghost span { display: none; } .act .ghost svg { width: 22px; height: 22px; }
  .panel { margin-top: 4px; padding: 9px; border-radius: 28px; }
  .list { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .now { padding: 16px; gap: 12px; border-radius: 22px; }
  .say { font-size: 27px; } .now.muted .say { font-size: 20px; }
  .who { gap: 9px; } .who .dots i:nth-child(n+7) { display: none; } .row .chip.tk { display: none; } .row .dots i:nth-child(n+6) { display: none; }
  .pulse { display: none; }
  .steps { grid-template-columns: 1fr; } .sheet h2 { font-size: 32px; } .sheet .card { padding: 24px 20px 20px; }
  .toast { bottom: 96px; border-radius: 22px; text-align: center; }
  #ca { bottom: 92px; left: 14px; }
}
@media (max-width: 380px) { .brand span { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; } }
