/* Scene labels occupy their own space; characters stay smaller than their seats. */
.live-stage .live-actor{width:var(--actor-size,52px);height:var(--actor-size,52px);margin-left:calc(var(--actor-size,52px) / -2);margin-top:calc(-1 * var(--actor-size,52px));}
.live-stage .live-actor .actor-art{height:var(--actor-size,52px)}
.live-stage .live-actor .tata-sprite{width:var(--actor-size,52px);height:var(--actor-size,52px)}
.live-stage .live-actor.staff .tata-sprite{width:calc(var(--actor-size,52px) * .8);height:calc(var(--actor-size,52px) * .8)}
.live-stage .live-actor .actor-label{display:none;bottom:-22px;max-width:155px;padding:3px 7px;white-space:normal;color:#243e36;background:#fffdf5;border:1px solid #94a89a;font-size:11px;line-height:1.4;box-shadow:0 2px 6px #213d3226}
.live-stage .live-actor:focus-visible{z-index:115!important}
.live-stage .live-actor:focus-visible .actor-label{display:block}
@media(hover:hover){.live-stage .live-actor:hover{z-index:115!important}.live-stage .live-actor:hover .actor-label{display:block}}
.live-stage .live-actor .actor-speech{display:none;bottom:calc(var(--actor-size,52px) - 4px);font-size:10px;line-height:1.3;white-space:nowrap;max-width:none;padding:2px 5px;color:#573919;background:#fff2c8;border:1px solid #ad873e;box-shadow:none}
.live-stage .live-actor.need_help .actor-speech{display:block}
.live-stage .live-actor .actor-meter{bottom:-3px;height:3px}
.live-stage .live-room-name{top:-4%;font-size:12px;padding:3px 10px;line-height:1.4;color:#263f37;background:#fffdf5;box-shadow:none}
.live-stage .live-room-name small{font-size:10px;color:#425b4e}
.live-stage .room-lock{display:none}
.live-stage .room-open{bottom:30%;font-size:12px;background:#fffdf5;color:#284d41;min-height:44px}
.live-bottom .live-message{display:block;flex:1 0 100%;min-width:0;white-space:normal;font-size:12px;line-height:1.6;color:#314e42;overflow-wrap:anywhere}
.live-burst{font-size:12px;color:#284a3c;background:#fffdf3;border-radius:8px;padding:2px 6px}
.play-heading{gap:10px}.play-heading h3{min-width:0;font-size:18px;line-height:1.5;overflow-wrap:anywhere}.play-heading button{flex-shrink:0}
.play-zone[data-mode='rhythm']{display:grid;grid-template-rows:minmax(0,1fr) auto auto;align-items:center;justify-items:center;gap:8px;padding:12px;height:260px}
.play-zone[data-mode='rhythm'] .play-portrait{position:static;transform:none;min-height:0;align-self:center}
.play-zone[data-mode='rhythm'] .tata-sprite{width:125px;height:125px}
.play-zone[data-mode='rhythm'] .rhythm-hint{position:static;margin:0;line-height:1.5;color:#294839;background:#f7fcf5;border-radius:8px;padding:4px 10px;font-size:12px}
.play-zone[data-mode='rhythm'] .rhythm-track{position:relative;inset:auto;width:92%;height:26px;margin:0}
.play-zone[data-mode='drinks'] .play-portrait .tata-sprite{width:125px;height:125px}
.drink-order{font-size:13px;padding:4px;background:#fffdf4;color:#294839;letter-spacing:0}
@media(orientation:landscape) and (max-height:540px){
 .play-zone[data-mode='rhythm']{gap:3px;padding:6px}
 .play-zone[data-mode='rhythm'] .tata-sprite{width:90px;height:90px}
 .play-zone[data-mode='rhythm'] .rhythm-hint{font-size:11px;padding:2px 6px}
}
/* A separate growth journal keeps collection details out of the play scene. */
.growth-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:8px 16px;background:#eaf1e6;border-top:1px solid #cbd7c7}
.growth-entry button{min-height:44px;border:1px solid #a7bca8;border-radius:12px;background:#fffdf5;color:#284c3e;font-size:13px;font-weight:700;padding:7px 12px}
.growth-entry span{font-size:12px;color:#3c5949;line-height:1.5}
.growth-dialog{width:min(720px,calc(100% - 24px))}.growth-body{padding:18px;line-height:1.6;color:#304b3d}
.growth-summary{padding:16px;border:1px solid #c8d9c6;background:#edf4e8;border-radius:16px;margin-bottom:16px}
.growth-summary h3{font-size:22px;font-weight:800}.growth-summary p{font-size:13px;margin:5px 0}
.growth-body progress{display:block;width:100%;height:10px;accent-color:#4c7861;margin:8px 0}
.growth-tabs{display:flex;gap:8px;margin-bottom:14px}.growth-tabs button{flex:1;min-height:44px;border-radius:12px;border:1px solid #b7c9b4;font-weight:700;background:#f2f5eb;color:#304b3d}.growth-tabs button[aria-pressed=true]{background:#456f5a;color:#fff}
.growth-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.growth-card{min-width:0;border:1px solid #d4d9c9;background:#fffef8;border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:5px}
.growth-card h4{font-size:15px;font-weight:800}.growth-card p{font-size:12px;line-height:1.7;margin:0}.growth-card .growth-portrait{height:60px;display:flex;align-items:center;gap:8px}.growth-portrait .tata-sprite{width:54px;height:54px}.growth-portrait .character-art{font-size:27px}
.growth-card button{margin-top:auto;min-height:44px;background:#456f5a;color:white;border:0;border-radius:10px;padding:8px;font-size:13px;font-weight:700}
.growth-card button:disabled{background:#e9ede2;color:#53634f}.growth-note{font-size:12px;margin:0 0 14px;color:#48604f}
#growth-feedback{min-height:24px;font-size:13px;color:#345c41;font-weight:700;margin-bottom:12px}
.growth-card.locked{background:#f1f0e8}.growth-card.earned{border-color:#6e9974}
@media(max-width:500px){.growth-body{padding:12px}.growth-grid{grid-template-columns:1fr}.growth-entry{padding:7px 10px;gap:6px}.growth-entry button{padding:7px 9px}.growth-entry span{font-size:11px}.play-heading{padding:12px}.play-heading h3{font-size:16px}}

.live-stage .live-actor.need_help .actor-speech{top:24px;bottom:auto;left:calc(100% - 5px);transform:none}
.live-stage .live-actor .actor-speech:after{display:none}
#growth-feedback:empty{display:none}
.growth-body progress{border:0;border-radius:8px;overflow:hidden;background:#dce6d7}
.growth-body progress::-webkit-progress-bar{background:#dce6d7;border-radius:8px}
.growth-body progress::-webkit-progress-value{background:#5b8566;border-radius:8px}
.growth-body progress::-moz-progress-bar{background:#5b8566;border-radius:8px}
/* Desktop uses the available width; banners must never shrink the map. */
@media(min-width:1001px){
 main{overflow-y:auto!important;overflow-x:hidden}
 .live-shell{height:auto;min-height:100%}
 #scene-viewport{flex:0 0 auto;min-height:0}
 .live-stage{margin-inline:0}
 .live-stage .live-actor .actor-label{display:none!important}
 .live-stage .live-actor .actor-speech{font-size:12px;padding:3px 7px}
 .live-stage .live-actor.need_help .actor-speech{top:calc(var(--actor-size,72px) * .45)}
 #live-character-info{min-height:22px;line-height:22px;font-size:13px;color:#304e43}
 .live-stage .live-room-name{font-size:15px;padding:5px 14px}
 .live-stage .live-room-name small{font-size:12px}
}
.live-stage .live-actor.selected .actor-art{outline:3px solid #a66c28;outline-offset:3px;border-radius:12px;background:#fff5d866}
#assign-banner .tata-sprite{width:24px;height:24px}
@media(min-width:1001px) and (max-width:1279px){
 .live-stage .live-room-name{font-size:12px;padding:3px 10px}
 .live-stage .live-room-name small{font-size:10px}
}
