/* Brilliant people. Terrible party. (/nobody-talking)
   Loaded after new-experiences.css, so these rules win where they overlap. */

/* ---- The level bar: which room you are in, and what the jobs are ---- */
.level-bar { display: grid; gap: 11px; padding: 14px 20px; background: #f4faf6; border-bottom: 1px solid #14212033 }
.levels { display: flex; gap: 6px; flex-wrap: wrap }
.levels .chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 46px; min-width: 54px; padding: 5px 9px; background: #fff; line-height: 1.1 }
.levels .chip b { font-size: 13px }
.levels .chip span { font: 9px ui-monospace, monospace; letter-spacing: .06em }
.levels .chip .won { color: #c07c05 }
.levels .chip .lost { opacity: .4 }
.levels .chip[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink) }
.levels .chip[aria-pressed=true] .won { color: #ffd250 }
.levels .chip:disabled { opacity: .42 }

.brief strong { display: block; font-size: 15px; letter-spacing: -.02em }
.job-list { list-style: none; margin: 9px 0 0; padding: 0; display: grid; gap: 7px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)) }
.job { border-left: 4px solid var(--who); background: #fff; border-radius: 0 6px 6px 0; padding: 8px 11px }
.job b { display: block; font-size: 12px }
.job .needs { display: block; font-size: 11px; color: #4a5651 }
.job .verdict { display: inline-block; margin-top: 5px; font: 9px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .07em; border-radius: 99px; padding: 3px 8px; background: #e4ece8 }
.job .verdict.done { background: #c3eddb }
.job .verdict.badly { background: #ffe7b3 }
.job .verdict.stuck { background: #ffd5d5 }

/* ---- The controls ---- */
.budget { font: 11px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; display: flex; align-items: baseline; gap: 7px }
.budget b { font: 800 22px Jakarta, system-ui, sans-serif; letter-spacing: -.03em }
.guest-buttons { gap: 7px }
.guest-buttons button { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; min-height: 44px; padding: 9px 10px; line-height: 1.3 }
.guest-buttons b { font-size: 12.5px; letter-spacing: -.01em }
.guest-buttons small { font-size: 10px; color: #4a5651; margin-top: 3px }
.guest-buttons button[aria-pressed=true] { background: #d6f6eb; border: 1px solid var(--ink); box-shadow: inset 0 0 0 2px var(--ink) }
.tags { display: block; margin-top: 5px }
.tag { display: inline-block; font: 9px/1.5 ui-monospace, monospace; border-radius: 7px; padding: 3px 7px; margin: 3px 3px 0 0; letter-spacing: .02em }
.tag.has { background: var(--ink); color: #fff }
.tag.needs { background: #fff; border: 1px solid #142120aa }

.section-label { margin: 15px 0 0 }
.connections { gap: 6px; margin-top: 7px; align-items: center }
.link-chip { font-size: 10px; min-height: 38px; padding: 5px 9px; background: #fff }
.no-links { font-size: 11px; color: #56635d; margin: 4px 0 }

/* ---- The stage: name tags and speech bubbles sit over the canvas ---- */
.scene { overflow: hidden }
.stage-bar { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 3; display: flex; gap: 8px; align-items: center; justify-content: space-between; pointer-events: none }
#room-note { background: #fffef4ee; border: 1px solid #14212040; border-radius: 99px; padding: 6px 12px; font-size: 11px; max-width: 74% }
#skip-run { pointer-events: auto; background: #fffef4f2; font-size: 10px; min-height: 38px; padding: 6px 13px; border-radius: 99px }
.name-tags, .bubbles { position: absolute; inset: 0; z-index: 2; pointer-events: none }
.name-tag { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); display: flex; align-items: center; gap: 5px; white-space: nowrap; background: #142120e0; color: #fff; border-radius: 99px; padding: 3px 9px; font: 700 10px Jakarta, system-ui, sans-serif }
.name-tag i { display: block; width: 7px; height: 7px; border-radius: 50% }
.bubble { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); background: #fffdf4; border: 1.5px solid var(--who); border-radius: 9px; padding: 5px 9px; max-width: min(190px, 46%); box-shadow: 2px 3px 0 #1421201f }
.bubble::after { content: ''; position: absolute; left: var(--tail, 50%); bottom: -6px; width: 9px; height: 9px; margin-left: -5px; background: #fffdf4; border-right: 1.5px solid var(--who); border-bottom: 1.5px solid var(--who); transform: rotate(45deg) }
.bubble.below::after { bottom: auto; top: -6px; border: 0; border-left: 1.5px solid var(--who); border-top: 1.5px solid var(--who) }
.bubble p { display: flex; gap: 5px; align-items: flex-start; font-size: 11px; line-height: 1.35 }
.bubble p + p { margin-top: 4px; padding-top: 4px; border-top: 1px dotted #14212040 }
.mark { font-style: normal; font-weight: 800 }
.mark.perfect { color: #16745a }
.mark.wobbly { color: #9a6a06 }
.mark.nonsense, .mark.missing { color: #ad3232 }

/* No WebGL: the stage collapses and the bubbles become a plain list. */
.no-3d { height: auto !important; min-height: 0; align-self: start; background: #eaf5f0 }
.no-3d .stage-bar { position: static; padding: 12px 14px 0 }
.no-3d #room-note { max-width: 100% }
.no-3d .name-tags { display: none }
.no-3d .bubbles { position: static; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px }
.no-3d .bubble { position: static; transform: none; max-width: 100% }
.no-3d .bubble::after { display: none }
.no-3d .fallback { padding: 14px; font-size: 13px }

/* ---- The reveal ---- */
.stars { font-size: 15px; font-weight: 800; letter-spacing: .08em; margin-bottom: 12px }
#result-detail { display: grid; gap: 11px; margin: 18px 0 6px }
.job-report { background: #fff; border: 1px solid #14212026; border-left: 5px solid #9fb3ab; border-radius: 0 8px 8px 0; padding: 11px 14px }
.job-report.done { border-left-color: #2c9d91 }
.job-report.badly { border-left-color: #e0a024 }
.job-report.stuck { border-left-color: #c44a4a }
.job-report b { display: block; font-size: 13px; margin-bottom: 7px }
.job-report ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px }
.job-report li { display: grid; grid-template-columns: 17px 1fr; gap: 1px 6px; align-items: start }
.job-report li .mark { grid-row: span 2; font-size: 13px; line-height: 1.4 }
.job-report .said { font-size: 12.5px; font-weight: 700 }
.job-report .from { grid-column: 2; font-size: 10.5px; color: #56635d }
.finale { background: var(--ink); color: #fff; border-radius: 8px; padding: 17px 19px }
.finale .eyebrow { margin-bottom: 6px }
.finale h3 { font-size: 23px; letter-spacing: -.02em; margin-bottom: 7px }
.finale p { font-size: 13px; margin: 0; max-width: none }

/* ---- Phone. Controls sit above the stage so nothing is hidden behind it. ---- */
@media (max-width: 720px) {
  body[data-experience=nobody-talking] h1 { font-size: 34px; line-height: 1.03; max-width: 19ch }
  .head { padding: 20px 0 16px }
  .head > p { margin-top: 11px; font-size: 12.5px; max-width: none }
  .surface-title { font-size: 8px; padding: 9px 12px; gap: 9px }
  .level-bar { padding: 11px 13px; gap: 9px }
  .levels { gap: 5px }
  .levels .chip { flex: 1; min-width: 0; padding: 5px 2px }
  .brief strong { font-size: 14px }
  .job-list { grid-template-columns: 1fr; gap: 5px }
  .job { padding: 7px 10px }
  .controls { order: 1; padding: 15px 13px }
  .scene { order: 2; height: min(44vh, 330px); border-top: 1px solid #14212033 }
  .guest-buttons { grid-template-columns: 1fr 1fr; gap: 6px }
  .guest-buttons button { padding: 8px }
  .guest-buttons small { font-size: 9.5px }
  .actions { margin-top: 14px; gap: 7px }
  .actions .primary { flex: 1 1 100% }
  .actions button:not(.primary) { flex: 1 }
  #room-note { font-size: 10px; max-width: 66% }
  .name-tag { font-size: 9px; padding: 2px 7px }
  .bubble { max-width: 48%; padding: 4px 8px }
  .bubble p { font-size: 10.5px }
  .stars { font-size: 14px }
  .job-report { padding: 10px 12px }
  .job-report .said { font-size: 12px }
  .share-actions .primary { flex: 1 1 100% }
  .share-actions button:not(.primary) { font-size: 11px; padding: 9px 7px }
}

/* The results list can run long. Keep the offer its own height and in view beside it. */
.result .offer{align-self:start;position:sticky;top:20px}
@media(max-width:720px){.result .offer{position:static}}
