/* The waiting room on the big screen (js/lobbyroom.js). The room itself reuses the intro film's characters and living
   room (css/introfilm.css, scoped to .story), here placed inside the 1920x1080 TV stage instead of full screen. */
.lobby2 { position: absolute; inset: 0; overflow: hidden; }
.lobby2 .lb-room { position: absolute; inset: 0; }
.story.lobbyroom { position: absolute; inset: 0; z-index: 0; cursor: default; background: #2A1838; transition: none; }
.story.lobbyroom .cam { position: absolute; inset: 0; }
.story.lobbyroom .froom { left: 300px; right: -300px; }
.story.lobbyroom .sset { left: 560px; right: 0; width: auto; transform: none; --u: min(0.95cqw, 0.86cqh); }
.story.lobbyroom .fbub { font-size: calc(var(--u) * 3.4); }
.story.lobbyroom .fsfx { font-size: calc(var(--u) * 8); }

/* side panel: logo, how to join, up next */
.lobby2 .lb-side { position: absolute; z-index: 5; left: 0; top: 0; bottom: 0; width: 560px; padding: 34px 40px; display: flex; flex-direction: column; align-items: center; gap: 22px;
  background: linear-gradient(90deg, rgba(20, 8, 40, 0.88), rgba(20, 8, 40, 0.7) 85%, rgba(20, 8, 40, 0)); }
.lobby2 .lb-side .logo { font-size: 64px; margin: 0; }
.lobby2 .lb-side .joincard { width: 100%; flex-direction: column; align-items: center; gap: 14px; padding: 22px; }
.lobby2 .lb-side .joincard .qr { width: 220px; height: 220px; }
.lobby2 .lb-side .joininfo { align-items: center; text-align: center; }
.lobby2 .lb-side .upnext { width: 100%; }
.lobby2 .lb-side .minimedals { width: 100%; }
.lobby2 .lb-top { position: absolute; z-index: 5; left: 560px; right: 0; top: 0; padding: 46px 40px 0; /* clear of the curtain rod */ display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.lobby2 .lb-title { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
/* On a solid navy plaque with a gold edge so it reads over the window and curtains (owner 27 Oct: hard to read). */
.lobby2 .lb-title b { padding: 10px 30px 14px; border-radius: 22px; font: 400 56px/1 "Lilita One", var(--title, sans-serif); color: #FFE14D; letter-spacing: 0.01em;
  background: linear-gradient(180deg, #2E1666, #1A0B40); box-shadow: inset 0 0 0 3px #FFC93C, 0 0 0 4px #7A3A00, 0 10px 24px rgba(0, 0, 0, 0.5); text-shadow: 0 3px 0 #7A3A00; }
.lobby2 .lb-title span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font: 700 24px/1 "Fredoka", var(--head, sans-serif); color: #fff;
  background: rgba(20, 8, 40, 0.65); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.lobby2 .lb-hint { margin: 0; padding: 8px 18px; border-radius: 14px; font: 700 24px/1.2 "Fredoka", var(--head, sans-serif); color: #fff; background: rgba(20, 8, 40, 0.55); }

/* arrivals banner */
.story.lobbyroom .lr-announce { position: absolute; z-index: 30; left: 560px; right: 0; top: 168px; display: flex; justify-content: center; pointer-events: none; opacity: 0; }
.story.lobbyroom .lr-announce.on { animation: lrAnnounce 3.6s ease-out forwards; }
.story.lobbyroom .lr-announce span { padding: 14px 30px 16px; border-radius: 16px; font: 400 40px/1.1 "Lilita One", var(--title, sans-serif); color: #fff; text-align: center; max-width: 1100px;
  background: linear-gradient(#FF5A9E, #D11F6A); box-shadow: 0 0 0 4px #fff, 0 10px 0 #7A0F3E, 0 18px 30px rgba(0, 0, 0, 0.35); transform: rotate(-2deg); }
@keyframes lrAnnounce { 0% { opacity: 0; transform: translateY(-80px) scale(0.6); } 12% { opacity: 1; transform: translateY(0) scale(1.06); } 18% { transform: none; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }
.story.lobbyroom .lr-empty { position: absolute; z-index: 8; left: 50%; top: calc(50% + var(--u) * 2); transform: translate(-50%, -50%); display: none; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 18px 28px; border-radius: 18px; background: rgba(20, 8, 40, 0.75); color: #fff; }
.story.lobbyroom .lr-empty.on { display: flex; animation: sFadeIn 0.5s backwards; }
.story.lobbyroom .lr-empty b { font: 400 44px/1 "Lilita One", var(--title, sans-serif); color: #FFE14D; }
.story.lobbyroom .lr-empty span { font: 700 26px/1.2 "Fredoka", var(--head, sans-serif); }

/* people */
.story.lobbyroom .toon .tname { position: absolute; z-index: 3; left: 50%; top: calc(var(--s) * var(--u) * 0.86); transform: translateX(-50%); width: max-content; max-width: calc(var(--s) * var(--u) * 1.6);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0.12em 0.55em 0.18em; border-radius: 999px; font: 700 calc(var(--u) * 2.9)/1.1 "Fredoka", var(--head, sans-serif);
  color: #1E2340; background: #fff; box-shadow: 0 0.12em 0 rgba(20, 8, 40, 0.35); }
.story.lobbyroom .toon .tcrown { display: none; }
.story.lobbyroom .toon.is-host .tcrown { display: block; }
.story.lobbyroom .toon.away .thead img, .story.lobbyroom .toon.away .tbody { filter: grayscale(0.85) brightness(0.75); }
.story.lobbyroom .toon.away .thead::after { content: "z Z z"; position: absolute; left: 70%; top: -30%; font: 400 calc(var(--u) * 4)/1 "Lilita One", sans-serif; color: #CFE4FF;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4); animation: lrZzz 1.6s ease-in-out infinite; }
@keyframes lrZzz { 0% { opacity: 0; transform: translate(0, 0) rotate(-8deg); } 50% { opacity: 1; } 100% { opacity: 0; transform: translate(20%, -60%) rotate(6deg); } }
.story.lobbyroom .toon.leaving { transition: opacity 0.5s, transform 0.5s; opacity: 0; transform: translateY(calc(var(--u) * -20)) scale(0.6); }
.story.lobbyroom .lr-sign { position: absolute; z-index: 3; transform: translate(-50%, -50%) rotate(-4deg); display: flex; flex-direction: column; align-items: center; padding: 0.3em 0.7em 0.4em;
  border-radius: 0.4em; background: #FFF6DE; box-shadow: 0 0.2em 0.5em rgba(0, 0, 0, 0.3), inset 0 0 0 0.12em #D9A441; font-size: calc(var(--u) * 2.8); color: #5A3A10; }
.story.lobbyroom .lr-sign small { font: 700 0.7em/1 "Fredoka", sans-serif; letter-spacing: 0.12em; text-transform: uppercase; }
.story.lobbyroom .lr-sign b { font: 400 1.1em/1.1 "Lilita One", sans-serif; }

/* emotes (classes added to a .toon for a moment) */
.story .toon.emo-wave .arm.r { animation: eWave 0.26s ease-in-out 6 alternate !important; }
@keyframes eWave { from { transform: rotate(-125deg); } to { transform: rotate(-168deg); } }
.story .toon.emo-dance .tmv { animation: eDance 0.5s ease-in-out 4 !important; }
.story .toon.emo-dance .arm.l { animation: eDanceL 0.25s ease-in-out 8 alternate !important; }
.story .toon.emo-dance .arm.r { animation: eDanceR 0.25s ease-in-out 8 alternate !important; }
@keyframes eDance { 25% { transform: translateY(calc(var(--u) * -2.5)) rotate(-9deg); } 50% { transform: none; } 75% { transform: translateY(calc(var(--u) * -2.5)) rotate(9deg); } }
@keyframes eDanceL { from { transform: rotate(150deg); } to { transform: rotate(40deg); } }
@keyframes eDanceR { from { transform: rotate(-40deg); } to { transform: rotate(-150deg); } }
.story .toon.emo-flex .arm.l { animation: none !important; transform: rotate(110deg); }
.story .toon.emo-flex .arm.r { animation: none !important; transform: rotate(-110deg); }
.story .toon.emo-flex .tbreath { animation: eFlex 0.3s ease-in-out 6 alternate !important; }
@keyframes eFlex { from { transform: scale(1); } to { transform: scale(1.1, 1.05); } }
.story .toon.emo-taunt .tmv { animation: eTaunt 2s ease-in-out !important; }
@keyframes eTaunt { 15%, 75% { transform: translateY(calc(var(--u) * 1)) scale(1.14) rotate(-5deg); } 30%, 45%, 60% { transform: translateY(calc(var(--u) * 1)) scale(1.14) rotate(5deg); } }
.story .toon.emo-cry .tsad { opacity: 1 !important; animation: none !important; }
.story .toon.emo-cry .ttear { animation: sTear 0.6s ease-in infinite !important; }
.story .toon.emo-cry .ttear.t2 { animation-delay: 0.3s !important; }
.story .toon.emo-cry .tmv { animation: eSob 0.35s ease-in-out 6 alternate !important; }
@keyframes eSob { to { transform: translateY(calc(var(--u) * 0.8)) scale(1.02, 0.97); } }
.story .toon.emo-laugh .tmv { animation: eLaugh 0.12s linear 12 alternate !important; }
.story .toon.emo-laugh .thead { animation: eLaughHead 0.24s ease-in-out 6 alternate !important; }
@keyframes eLaugh { from { transform: translateY(0); } to { transform: translateY(calc(var(--u) * -0.9)); } }
@keyframes eLaughHead { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
.story .toon.emo-sneeze .tmv { animation: eSneeze 1.1s ease-in-out !important; }
@keyframes eSneeze { 0% { transform: none; } 35% { transform: rotate(-14deg) translateY(calc(var(--u) * -1)); } 45% { transform: rotate(12deg) translateY(calc(var(--u) * 1.2)) scale(1.05, 0.92); } 100% { transform: none; } }
.story .toon.emo-blownL .tmv { animation: eBlownL 1s cubic-bezier(0.2, 1.3, 0.5, 1) !important; }
.story .toon.emo-blownR .tmv { animation: eBlownR 1s cubic-bezier(0.2, 1.3, 0.5, 1) !important; }
@keyframes eBlownL { 25% { transform: translateX(calc(var(--u) * -6)) rotate(-28deg); } 100% { transform: none; } }
@keyframes eBlownR { 25% { transform: translateX(calc(var(--u) * 6)) rotate(28deg); } 100% { transform: none; } }
.story .toon.emo-pokeL .tmv { animation: ePokeL 0.9s ease-in-out !important; }
.story .toon.emo-pokeR .tmv { animation: ePokeR 0.9s ease-in-out !important; }
.story .toon.emo-pokeL .arm.l { animation: none !important; transform: rotate(75deg); }
.story .toon.emo-pokeR .arm.r { animation: none !important; transform: rotate(-75deg); }
@keyframes ePokeL { 40%, 60% { transform: translateX(calc(var(--u) * -3)) rotate(-10deg); } }
@keyframes ePokeR { 40%, 60% { transform: translateX(calc(var(--u) * 3)) rotate(10deg); } }
.story .toon.emo-poked .tmv { animation: ePoked 0.8s cubic-bezier(0.2, 1.5, 0.5, 1) !important; }
@keyframes ePoked { 20% { transform: translateY(calc(var(--u) * -6)) scale(0.95, 1.08); } 50% { transform: none; } 65% { transform: translateY(calc(var(--u) * -1.5)); } }
.story .toon.emo-yawn .thead { animation: eYawn 2s ease-in-out !important; }
@keyframes eYawn { 30%, 70% { transform: rotate(-12deg) scale(1.06); } }
.story .toon.emo-wild .tmv { animation: eWild 1.5s cubic-bezier(0.3, 0, 0.3, 1) !important; }
@keyframes eWild { 50% { transform: translateY(calc(var(--u) * -10)) rotate(540deg) scale(1.15); } 100% { transform: rotate(720deg); } }

/* bean bags for the two floor seats (beanbag() in js/lobbyroom.js): back layer behind the person, front lip over their legs */
.story.lobbyroom .lbbag { position: absolute; width: calc(var(--s) * var(--u) * 1.95); transform: translate(-50%, -50%); pointer-events: none; animation: lbBagIn 0.5s ease-out both; }
.story.lobbyroom .lbbag svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 calc(var(--u) * 0.6) calc(var(--u) * 0.6) rgba(0, 0, 0, 0.35)); }
.story.lobbyroom .lbbag.back { z-index: 6; }
.story.lobbyroom .lbbag.front { z-index: 8; }
.story.lobbyroom .lbbag.front svg { filter: none; }
.story.lobbyroom .toon.floor .tshadow { display: none; }
@keyframes lbBagIn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.6, 0.4); } }
