/* vlog.sh/multiplayer: the page of the rooms. Everything from styles.css (graphite, thin two-tone titles, flat cards,
   white pill); here only what this page adds: the kicker, the room played in the window, the lists. Inside the
   window the room keeps the product's own accent (lime) and each person's color. */

.mp-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 5px 14px 5px 5px; border-radius: 999px; font-size: 13.5px; color: var(--text-2); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.mp-kicker span { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #0d0d0d; background: #fff; }
.mp .hero h1 { max-width: 15em; }
.mp .hero-sub { max-width: 34em; }
.mp-ghost { color: #fff; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line-2); }
.mp-ghost:hover { background: rgba(255, 255, 255, 0.11); }

/* ---------- The room in the window ---------- */
.mp-win { --lime: #aaff00; max-width: 1040px; user-select: none; }
.mp-win .win-bar { gap: 10px; }
.mp-top { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 12px 0 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.mp-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.mp-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(170, 255, 0, 0.16); }
.mp-avs { display: inline-flex; }
.mp-avs b, .mp-notes li > b, .mp-pin {
  display: grid; place-items: center; border-radius: 50%; font-weight: 600; color: #0a0a0a; background: var(--c, #fff);
}
.mp-avs b { position: relative; width: 26px; height: 26px; margin-left: -6px; font-size: 11px; box-shadow: 0 0 0 2px #1c1d1f; }
.mp-avs .mp-agent { color: #fff; background: #1c1d1f; box-shadow: 0 0 0 2px #1c1d1f, inset 0 0 0 1.5px rgba(255, 255, 255, 0.45); font-size: 10px; }
.mp-avs .mp-agent.busy { box-shadow: 0 0 0 2px #1c1d1f; }
.mp-avs .mp-agent.busy::before, .mp-arc { content: ""; border-radius: 50%; border: 2px solid rgba(170, 255, 0, 0.22); border-top-color: var(--lime); animation: mp-turn 0.9s linear infinite; }
.mp-avs .mp-agent.busy::before { position: absolute; inset: 0; }
@keyframes mp-turn { to { transform: rotate(360deg); } }

.mp-room { display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: 0; border-radius: 13px; overflow: hidden; background: #101214; }
.mp-stage { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; padding: 16px 20px 18px; min-width: 0; }
.mp-head { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.mp-v { padding: 5px 11px; border-radius: 9px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line); transition: background 0.3s ease, color 0.3s ease; }
.mp-v.new { color: #0a0a0a; background: var(--lime); }
.mp-frame { position: relative; justify-self: center; height: clamp(300px, 42vw, 470px); aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.mp-frame video { width: 100%; height: 100%; object-fit: cover; }
.mp-chip, .mp-toast {
  position: absolute; left: 50%; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 20px); padding: 7px 12px 7px 9px; border-radius: 999px; font-size: 12px; line-height: 1.3; color: #fff;
  background: rgba(20, 22, 24, 0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transform: translateX(-50%); animation: mp-rise 0.3s ease;
}
.mp-chip { bottom: 12px; }
.mp-toast { top: 12px; padding: 7px 14px; font-weight: 600; color: #0a0a0a; background: var(--lime); box-shadow: none; }
.mp-arc { flex: none; display: block; width: 13px; height: 13px; }
@keyframes mp-rise { from { opacity: 0; transform: translate(-50%, 6px); } }

.mp-track { position: relative; height: 30px; }
.mp-bar { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, 0.12); }
.mp-bar i { display: block; height: 100%; background: rgba(255, 255, 255, 0.7); transition: width 0.9s cubic-bezier(0.3, 0.7, 0.2, 1); }
.mp-pin { position: absolute; top: 0; width: 15px; height: 15px; margin-left: -7.5px; font-size: 8.5px; transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; }
.mp-pin.off { opacity: 0; transform: scale(0.4) translateY(6px); }
.mp-pin.sent { background: #101214; color: var(--c); box-shadow: inset 0 0 0 1.5px var(--c); }
.mp-pin.done { background: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.78); }
.mp-headm { position: absolute; bottom: 0; width: 2px; height: 12px; margin-left: -1px; border-radius: 2px; background: var(--c); transition: left 1s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.3s ease; }
.mp-headm.off { opacity: 0; }

.mp-side { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 0; padding: 16px 12px 14px; border-left: 1px solid var(--line); background: rgba(255, 255, 255, 0.012); text-align: left; }
.mp-side-title { padding: 0 6px 8px; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.mp-notes { display: flex; flex-direction: column; gap: 2px; min-height: 216px; }
.mp-notes li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 9px; padding: 8px 6px; border-radius: 11px; transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1), background 0.3s ease; }
.mp-notes li.off { opacity: 0; transform: translateY(8px); }
.mp-notes li.fresh { background: rgba(255, 255, 255, 0.05); }
.mp-notes li > b { width: 24px; height: 24px; font-size: 10.5px; }
.mp-notes p { font-size: 13.5px; line-height: 1.4; color: #fff; }
.mp-notes p span { display: flex; align-items: center; gap: 7px; margin-bottom: 1px; font-size: 12px; color: var(--text-2); }
.mp-notes p i { padding: 1px 6px; border-radius: 6px; font-style: normal; font-size: 11px; font-family: ui-monospace, "SF Mono", Menlo, monospace; color: #fff; background: rgba(255, 255, 255, 0.09); font-variant-numeric: tabular-nums; }
.mp-notes p em { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--dim); white-space: nowrap; transition: color 0.3s ease; }
.mp-notes li.sent em { color: #fff; }
.mp-notes li.done em { color: var(--lime); }
.mp-tray { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; padding: 7px 7px 7px 12px; border-radius: 13px; font-size: 12.5px; color: var(--text-2); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line); animation: mp-in 0.3s ease; }
.mp-tray b { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #0a0a0a; background: var(--lime); transition: transform 0.15s ease, filter 0.15s ease; }
.mp-tray b.press { transform: scale(0.93); filter: brightness(0.9); }
@keyframes mp-in { from { opacity: 0; transform: translateY(6px); } }
.mp-field { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 7px; border-radius: 18px; font-size: 13.5px; color: var(--dim); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-2); }
.mp-field span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-field span.typing { color: #fff; }
.mp-field span.typing::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -0.18em; background: #fff; animation: mp-blink 1s steps(1) infinite; }
@keyframes mp-blink { 50% { opacity: 0; } }
.mp-at { flex: none; padding: 6px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; font-family: ui-monospace, "SF Mono", Menlo, monospace; color: #0a0a0a; background: var(--lime); font-variant-numeric: tabular-nums; }
.mp-send { flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); transition: background 0.2s ease; }
.mp-send.ready { background: var(--lime); }
.mp .player-desc { min-height: 3em; }

/* ---------- Sections ---------- */
.mp-steps .cell p:not(.mp-n), .mp .cells-3 .cell > p, .mp-roles .cell li { font-size: 15.5px; color: var(--text-2); }
.mp .cells-3 .cell h3, .mp-roles h3 { font-size: 17px; }
.mp .cells-3 .cell > p { margin-top: 8px; text-wrap: pretty; }
.mp-n { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 18px; border-radius: 50%; font-size: 13.5px; font-weight: 500; color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font-variant-numeric: tabular-nums; }

.mp-vs h3 { display: flex; align-items: center; gap: 9px; }
.mp-vs h3 img { border-radius: 5px; }
.mp-vs ul, .mp-roles ul { margin-top: 16px; display: grid; gap: 12px; }
.mp-vs li { position: relative; padding-left: 28px; font-size: 15.5px; color: var(--text-2); }
.mp-vs li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, 0.07) center / 10px no-repeat; }
.mp-vs li.yes { color: #fff; }
.mp-vs li.yes::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.8 5.2 4 7.4 8.2 2.8' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.mp-vs li.no::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.5 5h5' fill='none' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.mp-us { background: var(--card-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px var(--line-2); }

.mp-roles li { position: relative; padding-left: 20px; text-wrap: pretty; }
.mp-roles li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); }
.mp-fine { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14.5px; color: #fff; }

.mp-faq { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.mp section.final { padding-bottom: clamp(72px, 9vw, 120px); }

@media (max-width: 1100px) {
  .mp-room { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 760px) {
  .mp-win .win-bar { justify-content: center; }
  .mp-top { width: 100%; justify-content: space-between; height: 40px; }
  .mp-room { grid-template-columns: minmax(0, 1fr); }
  .mp-stage { padding: 12px 12px 10px; gap: 10px; }
  .mp-frame { height: 320px; }
  .mp-side { border-left: 0; border-top: 1px solid var(--line); padding: 12px 8px 10px; }
  .mp-notes { min-height: 200px; }
  .mp-kicker { font-size: 13px; }
  .mp-faq { padding-inline: var(--pad); }
}

@media (prefers-reduced-motion: reduce) {
  .mp-avs .mp-agent.busy::before, .mp-arc { animation-duration: 2.4s !important; animation-iteration-count: infinite !important; }
}
