:root{--ink:#18101f;--paper:#f7efce;--cream:#fffaf0;--line:#a896bd;--green:#1f9d68;--purple:#3b214e;--gold:#ebc85b}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:12px ui-monospace,SFMono-Regular,Menlo,monospace;min-height:100vh}header{height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid var(--line);background:#fbf2ce}header div{display:flex;align-items:center;gap:14px}header b{letter-spacing:2px;font-size:14px}header span{color:#8d6f8f}header em{background:var(--purple);color:white;padding:4px 8px;font-style:normal}header i{color:var(--green);font-style:normal;font-size:10px}button{font:inherit;border:1px solid var(--line);background:transparent;padding:8px 11px;color:var(--ink);cursor:pointer}button:hover,button.active{background:var(--purple);color:white}nav{height:46px;padding:7px 14px;display:flex;gap:8px;align-items:center;border-bottom:1px solid var(--line)}nav span{margin-left:auto;color:#6d5f73}main{display:grid;grid-template-columns:minmax(680px,1fr) 330px;height:calc(100vh - 133px);min-height:590px}.stage{background:#160e1e;padding:16px;display:flex;flex-direction:column;gap:12px}.stage #floor{position:relative;margin:auto;width:min(82vw,850px);max-width:calc(100% - 20px);aspect-ratio:544/352;border:7px solid #ebe5d9;outline:2px solid #514651;overflow:hidden;background:#222}.stage img{width:100%;height:100%;display:block;image-rendering:pixelated}.agent{position:absolute;width:34px;height:48px;transform:translate(-50%,-80%);transition:left 7s linear,top 7s linear;z-index:4}.agent .body{width:19px;height:30px;margin:auto;border:2px solid #24172c;background:var(--shirt,#7f8dd2);box-shadow:inset 0 8px #f0c0a0,5px 0 rgba(0,0,0,.15)}.agent.walk .body{animation:bob .5s steps(2) infinite}.agent.reading .body{box-shadow:inset 0 8px #f0c0a0,-5px 6px #faf5d7}.agent.typing .body{animation:type .22s steps(2) infinite}.agent.waiting{filter:saturate(.25)}@keyframes bob{50%{transform:translateY(-4px)}}@keyframes type{50%{transform:translateX(2px)}}.bubble{position:absolute;bottom:44px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#fff8df;border:1px solid #34263c;border-radius:7px;padding:3px 6px;font-size:9px;box-shadow:2px 2px #34263c}.name{position:absolute;top:35px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#fff4c9;padding:2px 5px;border-radius:8px;font-size:8px;border:1px solid #756579}.seatglow{position:absolute;width:38px;height:25px;border-radius:50%;background:rgba(113,255,166,.28);box-shadow:0 0 14px 6px rgba(83,255,166,.35);transform:translate(-50%,-50%);z-index:2;animation:pulse 1.5s infinite}@keyframes pulse{50%{opacity:.45}}#fog{position:absolute;inset:0;z-index:3;pointer-events:none;box-shadow:inset 0 0 95px 50px rgba(12,7,18,.6);transition:.4s}body.active-only #fog{background:radial-gradient(circle at var(--fx,50%) var(--fy,50%),transparent 0 15%,rgba(12,7,18,.86) 31%)}.eventbar{background:#fff7dd;border:1px solid var(--line);padding:10px 12px;display:flex;gap:12px;align-items:center}.eventbar b{background:var(--purple);color:white;padding:6px 8px}.eventbar small{margin-left:auto;color:#77677d}aside{padding:16px;background:var(--cream);border-left:1px solid var(--line);overflow:auto}aside h2{margin:0;font-size:13px;letter-spacing:2px}.sub{color:#7f6e84;margin:7px 0 16px}.feeditem{padding:10px;border:1px solid #c6b5cb;margin-bottom:8px;background:white}.feeditem b{display:block;margin-bottom:4px}.feeditem .state{float:right;color:var(--green)}.feeditem small{color:#7c6c81}aside h3{font-size:10px;letter-spacing:1px;margin-top:20px}.legend{display:grid;grid-template-columns:1fr 1fr;gap:6px}.legend span,#seats span{background:#eee5cf;padding:7px;display:block;margin-bottom:5px}footer{height:33px;padding:8px 14px;display:flex;gap:16px;border-top:1px solid var(--line);font-size:9px}footer b{color:#a36b00}footer #sync{margin-left:auto;color:var(--green)}@media(max-width:900px){main{grid-template-columns:1fr;height:auto}.stage{min-height:520px}aside{border-left:0}header span{display:none}}
/* V1.01: keep event content in its own readable band above the footer */
.eventbar{position:relative;z-index:8;min-height:42px;flex-wrap:nowrap;overflow:hidden}
.eventbar b{flex:0 0 auto;white-space:nowrap}
.eventbar #event{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.eventbar small{flex:0 0 auto;white-space:nowrap}
footer{position:relative;z-index:9;background:var(--paper);align-items:center;overflow:hidden}
footer span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
footer #sync{flex:0 0 auto;overflow:visible}
/* V1.02: fit the floor and event band inside the main row, never under footer */
main{min-height:0}
.stage{min-height:0;overflow:hidden}
.stage #floor{flex:1 1 auto;min-height:0;width:auto;height:auto;max-height:calc(100% - 60px);max-width:100%;aspect-ratio:544/352}
.eventbar{flex:0 0 42px;min-height:42px;height:42px}
/* V1.03: persistent nodes allow visible route interpolation instead of resetting transitions */
.agent{transition:left 9s linear,top 9s linear}
.seatglow{transition:left 9s linear,top 9s linear}
/* V1.05 audio controls */
header button{padding:6px 8px}
