/* ============ Lobby: a little Wall Street plaza where every registered Stonkling wanders ============ */
.dash-title { margin: 0 0 14px; font: 700 20px "Space Grotesk", sans-serif; color: var(--text); }
.lobby { position: relative; height: clamp(360px, 50vw, 540px); border-radius: 24px; overflow: hidden; margin: 8px 0 34px;
  border: 1px solid rgba(124,92,255,.35); box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.03);
  isolation: isolate; user-select: none; -webkit-user-select: none; transition: height .25s ease; }
.lobby-scene { position: absolute; inset: 0; pointer-events: none; }

/* sky: three real moods — bright day, synthwave dusk while Wall Street is open, starry night while it's late */
.lobby-sky { position: absolute; inset: 0 0 40% 0;
  background: linear-gradient(180deg, #120f2e 0%, #2a1b55 38%, #6b2f7a 72%, #d0577f 100%); transition: filter 1s, background 1.2s; }
.lobby-sky::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s;
  background: linear-gradient(180deg, #03040a 0%, #0a0f26 60%, #16204a 100%); }
.lobby-sky::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 17% 42%, #cfe0ff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 29% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 38% 33%, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 47% 8%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 58% 26%, #cfe0ff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 66% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 74% 38%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 83% 20%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 91% 9%, #cfe0ff 50%, transparent 51%),
    radial-gradient(1px 1px at 12% 60%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 52% 52%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 55%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 3% 34%, #fff 50%, transparent 51%);
  animation: lobbyTwinkle 5s ease-in-out infinite alternate; }
.lobby.is-nightsky .lobby-sky::before, .lobby.is-nightsky .lobby-sky::after { opacity: 1; }
@keyframes lobbyTwinkle { from { filter: brightness(.7); } to { filter: brightness(1.25); } }
/* daytime sky overrides the base dusk gradient outright */
.lobby.is-day .lobby-sky { background: linear-gradient(180deg, #2f95ea 0%, #62bdf5 45%, #cdeeff 100%); }

/* synthwave sun (dusk), full sun (day) and a crescent moon (night) */
.lobby-sun { position: absolute; left: 50%; bottom: -8%; width: clamp(160px, 26vw, 300px); aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: linear-gradient(180deg, #ffd36e 0%, #ff8a5c 45%, #ff4f9a 100%);
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 58%, transparent 58% 62%, #000 62% 68%, transparent 68% 73%, #000 73% 78%, transparent 78% 84%, #000 84% 88%, transparent 88% 94%, #000 94%);
  mask-image: repeating-linear-gradient(180deg, #000 0 58%, transparent 58% 62%, #000 62% 68%, transparent 68% 73%, #000 73% 78%, transparent 78% 84%, #000 84% 88%, transparent 88% 94%, #000 94%);
  box-shadow: 0 0 80px rgba(255,120,120,.6); transition: opacity 1.2s, transform 1.2s, background 1.2s; }
.lobby-moon { position: absolute; right: 12%; top: 12%; width: clamp(34px, 5vw, 56px); aspect-ratio: 1; border-radius: 50%;
  box-shadow: inset -12px 4px 0 0 #ffe7a6; filter: drop-shadow(0 0 16px rgba(255,231,166,.55)); opacity: 0; transition: opacity 1.2s; }
.lobby.is-nightsky .lobby-sun { opacity: 0; transform: translate(-50%, 30%); }
.lobby.is-nightsky .lobby-moon { opacity: 1; }
.lobby.is-day .lobby-sun { bottom: 4%; width: clamp(120px, 18vw, 210px); -webkit-mask-image: none; mask-image: none;
  background: radial-gradient(circle at 38% 32%, #fff7d6, #ffd35c 55%, #ffab2e); box-shadow: 0 0 70px rgba(255,205,90,.55); }

/* skyline */
.lobby-city { position: absolute; left: 0; right: 0; bottom: 40%; width: 100%; height: 46%; }
.lobby-city .far { fill: #1a1540; transition: fill 1.2s; } .lobby-city .near { fill: #0f0c26; transition: fill 1.2s; }
.lobby-city .win { fill: #ffd98a; opacity: .22; transition: opacity 1.2s; }
.lobby-city .edge { fill: rgba(255,255,255,.1); transition: fill 1.2s; }
.lobby.is-nightsky .lobby-city .far { fill: #0b0f24; } .lobby.is-nightsky .lobby-city .near { fill: #070a19; }
.lobby.is-nightsky .lobby-city .win { opacity: .55; }
.lobby.is-nightsky .lobby-city .edge { fill: rgba(180,190,255,.2); }
.lobby.is-day .lobby-city .far { fill: #86b8de; } .lobby.is-day .lobby-city .near { fill: #4f83ae; }
.lobby.is-day .lobby-city .win { opacity: .22; fill: #0d2740; }
.lobby.is-day .lobby-city .edge { fill: rgba(255,255,255,.7); }

/* the exchange, with a live LED board of real moves */
.lobby-exchange { position: absolute; left: 50%; bottom: 40%; width: clamp(230px, 34vw, 400px); transform: translateX(-50%); }
.lobby-pediment { height: clamp(26px, 4vw, 44px); clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: radial-gradient(circle at 50% 78%, rgba(255,214,140,.4) 0 3px, transparent 4px 12px, rgba(255,214,140,.22) 12px 14px, transparent 14px),
    linear-gradient(180deg, #3a3470, #221d4a); }
.lobby-board { height: clamp(22px, 2.8vw, 30px); background: #05060a; border: 2px solid #2d2860; border-left: 0; border-right: 0; overflow: hidden; display: flex; align-items: center;
  box-shadow: 0 0 18px rgba(61,214,245,.25), inset 0 0 10px rgba(0,0,0,.9); }
.lobby-board-track { display: flex; gap: 22px; white-space: nowrap; padding-left: 12px; animation: lobbyBoard 40s linear infinite;
  font: 700 clamp(10px, 1.3vw, 13px) "JetBrains Mono", monospace; letter-spacing: .06em; color: #ffcf6e; text-shadow: 0 0 6px rgba(255,207,110,.7); }
.lobby-board-track i { font-style: normal; } .lobby-board-track .up { color: #52f2a4; text-shadow: 0 0 6px rgba(82,242,164,.7); }
.lobby-board-track .down { color: #ff6e8c; text-shadow: 0 0 6px rgba(255,110,140,.7); }
@keyframes lobbyBoard { to { transform: translateX(-50%); } }
/* a real fluted colonnade, carved out of a plain stone panel with a mask (same technique as .lobby-sun's
   stripe mask) so the day/night/dusk stone color keeps swapping under it without regenerating the artwork */
.lobby-cols { height: clamp(60px, 9vw, 104px); background: linear-gradient(180deg, #3f3978, #151233);
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x; -webkit-mask-size: 11.5% 100%; mask-size: 11.5% 100%; -webkit-mask-position: center; mask-position: center;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 100'><rect x='2' y='0' width='36' height='9'/><rect x='6' y='8' width='28' height='6'/><rect x='9' y='14' width='6.5' height='76'/><rect x='16.75' y='14' width='6.5' height='76'/><rect x='24.5' y='14' width='6.5' height='76'/><rect x='6' y='90' width='28' height='10'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 100'><rect x='2' y='0' width='36' height='9'/><rect x='6' y='8' width='28' height='6'/><rect x='9' y='14' width='6.5' height='76'/><rect x='16.75' y='14' width='6.5' height='76'/><rect x='24.5' y='14' width='6.5' height='76'/><rect x='6' y='90' width='28' height='10'/></svg>"); }
.lobby.is-nightsky .lobby-cols { background: linear-gradient(180deg, #2b2758, #100e28); }
.lobby.is-day .lobby-cols { background: linear-gradient(180deg, #ffffff, #cfe3f2); }
/* carved steps: a bright bevel over a shadow per tread instead of a flat stripe */
.lobby-steps { height: clamp(8px, 1.2vw, 14px); margin: 0 -6%;
  background: repeating-linear-gradient(180deg, #4a4390 0 1.5px, #2e2a5c 1.5px 4px, #1d1a40 4px 5.5px, #100e28 5.5px 7px); }
.lobby.is-day .lobby-steps { background: repeating-linear-gradient(180deg, #fff 0 1.5px, #d7ecfb 1.5px 4px, #93bfe4 4px 5.5px, #5c8fbd 5.5px 7px); }

/* plaza floor: a glowing perspective grid */
.lobby-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; overflow: hidden;
  background: linear-gradient(180deg, #1b1440 0%, #0c0a1f 55%, #07060f 100%); transition: background 1.2s; }
.lobby-floor::before { content: ""; position: absolute; left: -60%; right: -60%; top: 0; height: 220%;
  background-image: linear-gradient(rgba(255,79,154,.5) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(61,214,245,.42) 1.5px, transparent 1.5px);
  background-size: 64px 44px; transform: perspective(260px) rotateX(64deg); transform-origin: 50% 0; will-change: transform; animation: lobbyGrid 9s linear infinite; }
.lobby-floor::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30px;
  background: linear-gradient(180deg, rgba(255,120,190,.4), transparent); }
.lobby.is-nightsky .lobby-floor::before { background-image: linear-gradient(rgba(124,92,255,.42) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(61,214,245,.3) 1.5px, transparent 1.5px); }
.lobby.is-nightsky .lobby-floor::after { background: linear-gradient(180deg, rgba(124,92,255,.45), transparent); }
.lobby.is-day .lobby-floor { background: linear-gradient(180deg, #e6d9bf 0%, #c9b48a 55%, #a3895c 100%); }
.lobby.is-day .lobby-floor::before { background-image: linear-gradient(rgba(255,255,255,.6) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(255,255,255,.45) 1.5px, transparent 1.5px); }
.lobby.is-day .lobby-floor::after { background: linear-gradient(180deg, rgba(255,255,255,.4), transparent); }
/* the grid glides one cell toward you and loops — moving the layer (GPU) instead of its background (a repaint
   of the whole floor every frame) */
@keyframes lobbyGrid { from { transform: perspective(260px) rotateX(64deg) translateY(-44px); } to { transform: perspective(260px) rotateX(64deg) translateY(0); } }

/* lamps */
.lobby-lamp { position: absolute; bottom: 12%; width: 4px; height: 34%; background: linear-gradient(#3b3570, #15122e); border-radius: 2px; }
.lobby-lamp::before { content: ""; position: absolute; left: 50%; top: -10px; width: 16px; height: 16px; transform: translateX(-50%); border-radius: 50%;
  background: #ffe3a0; box-shadow: 0 0 22px 8px rgba(255,210,130,.45), 0 0 70px 26px rgba(255,190,110,.18); transition: opacity 1s; opacity: .55; }
.lobby.is-nightsky .lobby-lamp::before { opacity: 1; }
.lobby.is-day .lobby-lamp::before { opacity: .1; }
.lobby-lamp.l1 { left: 4%; } .lobby-lamp.l2 { right: 4%; }
.lobby-lamp.l3 { left: 27%; bottom: 44%; height: 12%; transform: scale(.6); transform-origin: bottom; }
.lobby-lamp.l4 { right: 27%; bottom: 44%; height: 12%; transform: scale(.6); transform-origin: bottom; }

/* ---------- scene dressing ---------- */
/* drifting clouds: pink dusk clouds, white puffy day clouds, gone at night */
.lobby-clouds i { position: absolute; height: 16px; border-radius: 999px; background: rgba(255,186,220,.22); filter: blur(5px); animation: lobbyCloud linear infinite; transition: opacity 1.2s, background 1.2s; }
.lobby-clouds i:nth-child(1) { top: 16%; width: 180px; animation-duration: 95s; animation-delay: -20s; }
.lobby-clouds i:nth-child(2) { top: 30%; width: 120px; height: 12px; animation-duration: 70s; animation-delay: -55s; opacity: .8; }
.lobby-clouds i:nth-child(3) { top: 8%; width: 240px; height: 20px; animation-duration: 120s; animation-delay: -80s; opacity: .6; }
@keyframes lobbyCloud { from { transform: translateX(-260px); } to { transform: translateX(1500px); } }
.lobby.is-nightsky .lobby-clouds i { opacity: 0; }
.lobby.is-day .lobby-clouds i { background: rgba(255,255,255,.85); opacity: .95; filter: blur(3px); }
/* a shooting star now and then (night) */
.lobby-shoot { position: absolute; top: 14%; left: 18%; width: 130px; height: 2px; border-radius: 2px; opacity: 0; transform: rotate(-16deg);
  background: linear-gradient(90deg, rgba(255,255,255,0), #fff 70%, rgba(255,255,255,0)); }
.lobby.is-nightsky .lobby-shoot { animation: lobbyShoot 11s ease-in 4s infinite; }
@keyframes lobbyShoot { 0% { opacity: 0; transform: translate(0, 0) rotate(-16deg); } 2% { opacity: 1; } 8% { opacity: 0; transform: translate(260px, 75px) rotate(-16deg); } 100% { opacity: 0; } }
/* twinkling windows */
.lobby-city .tw { animation: lobbyWin 9s steps(1) infinite; }
@keyframes lobbyWin { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .15; } }
/* a bird or two, day only */
.lobby-birds { position: absolute; inset: 0 0 55% 0; opacity: 0; transition: opacity 1.2s; }
.lobby.is-day .lobby-birds { opacity: .8; }
.lobby-birds i { position: absolute; width: 18px; height: 6px; animation: lobbyBird linear infinite; }
.lobby-birds i::before, .lobby-birds i::after { content: ""; position: absolute; top: 0; width: 9px; height: 6px; border-top: 2px solid rgba(30,40,60,.55); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.lobby-birds i::before { left: 0; } .lobby-birds i::after { left: 8px; transform: scaleX(-1); }
.lobby-birds i:nth-child(1) { top: 18%; animation-duration: 22s; }
.lobby-birds i:nth-child(2) { top: 26%; animation-duration: 28s; animation-delay: -9s; }
@keyframes lobbyBird { from { transform: translateX(-30px); } to { transform: translateX(600px); } }

/* neon billboard: the whole market over the last 24h, same data as the hero chart */
.lobby-billboard { position: absolute; left: 6%; bottom: calc(40% + clamp(70px, 12vw, 130px)); width: clamp(120px, 15vw, 190px); aspect-ratio: 200 / 80;
  padding: 6px 8px 4px; border-radius: 6px; background: rgba(5,6,14,.85); border: 2px solid #ff4f9a; opacity: 0; transition: opacity .8s;
  box-shadow: 0 0 14px rgba(255,79,154,.6), inset 0 0 12px rgba(255,79,154,.25); }
.lobby-billboard.on { opacity: 1; }
.lobby-billboard svg { width: 100%; height: 68%; display: block; overflow: visible; }
.lobby-billboard .bb-line { fill: none; stroke: #52f2a4; stroke-width: 2.4; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px #52f2a4); }
.lobby-billboard .bb-area { fill: rgba(82,242,164,.14); stroke: none; }
.lobby-billboard.down .bb-line { stroke: #ff6e8c; filter: drop-shadow(0 0 4px #ff6e8c); } .lobby-billboard.down .bb-area { fill: rgba(255,110,140,.14); }
.bb-label { display: block; margin-top: 2px; font: 700 clamp(8px, .9vw, 11px) "JetBrains Mono", monospace; letter-spacing: .1em; color: #ffcf6e; text-shadow: 0 0 6px rgba(255,207,110,.7); white-space: nowrap; }
.bb-label b { color: #52f2a4; text-shadow: 0 0 6px rgba(82,242,164,.8); } .lobby-billboard.down .bb-label b { color: #ff6e8c; text-shadow: 0 0 6px rgba(255,110,140,.8); }
.bb-leg { position: absolute; bottom: -22px; width: 3px; height: 22px; background: #2b2654; } .bb-leg.l { left: 22%; } .bb-leg.r { right: 22%; }

/* the exchange's rooftop neon sign */
.lobby-sign { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -6px); display: flex; align-items: center; gap: 8px; white-space: nowrap;
  font: 700 clamp(10px, 1.35vw, 15px) "Space Grotesk", sans-serif; letter-spacing: .22em; color: #bff4ff;
  text-shadow: 0 0 6px #3dd6f5, 0 0 16px rgba(61,214,245,.8), 0 0 30px rgba(124,92,255,.7); animation: lobbyNeon 7s linear infinite; transition: opacity 1.2s; }
.lobby-sign svg { width: 1.6em; height: 1.6em; color: #7cf0ff; filter: drop-shadow(0 0 5px #3dd6f5) drop-shadow(0 0 12px rgba(124,92,255,.8)); }
@keyframes lobbyNeon { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: .55; } }
.lobby.is-day .lobby-sign { opacity: .45; text-shadow: none; }
.lobby-pediment { position: relative; }
.lobby-pediment::after { content: ""; position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(160,140,255,.35), transparent 40%); }
.lobby-cols { position: relative; }
.lobby-cols::after { content: ""; position: absolute; inset: 0; opacity: .5; transition: opacity 1.2s;
  background: linear-gradient(0deg, rgba(255,214,140,.4), transparent 85%); }
.lobby.is-nightsky .lobby-cols::after { opacity: 1; }
.lobby.is-day .lobby-cols::after { opacity: 0; }

/* light spilling from the exchange, and the lit plaza ring in front of it */
.lobby-spill { position: absolute; left: 50%; top: 60%; width: clamp(260px, 44vw, 520px); height: 22%; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0, rgba(255,205,140,.26), rgba(255,160,200,.06) 45%, transparent 72%); pointer-events: none; transition: background 1.2s, opacity 1.2s; }
.lobby.is-nightsky .lobby-spill { background: radial-gradient(ellipse at 50% 0, rgba(255,210,140,.42), rgba(124,92,255,.1) 45%, transparent 72%); }
.lobby.is-day .lobby-spill { opacity: .35; }
.lobby-plaza { position: absolute; left: 50%; top: 76%; width: clamp(240px, 42vw, 520px); height: clamp(40px, 7vw, 86px); transform: translate(-50%, -50%);
  border-radius: 50%; border: 2px solid rgba(61,214,245,.6); box-shadow: 0 0 30px rgba(61,214,245,.6), inset 0 0 30px rgba(124,92,255,.45);
  background: radial-gradient(ellipse, rgba(124,92,255,.18), transparent 70%); will-change: opacity; animation: lobbyPlaza 6s ease-in-out infinite; transition: border-color 1.2s, box-shadow 1.2s; }
.lobby-plaza::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; border: 1px dashed rgba(255,79,154,.5); }
.lobby.is-day .lobby-plaza { border-color: rgba(70,170,255,.55); box-shadow: 0 0 22px rgba(70,170,255,.4), inset 0 0 22px rgba(70,170,255,.3); }
/* the pulse fades the ring's opacity (GPU) instead of animating its box-shadow (a repaint every frame) */
@keyframes lobbyPlaza { 0%, 100% { opacity: .72; } 50% { opacity: 1; } }

/* fireflies over the plaza at night */
.lobby-motes i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff2b8; box-shadow: 0 0 8px 3px rgba(255,220,130,.65);
  opacity: 0; display: none; animation: lobbyFirefly var(--d) ease-in-out var(--dl) infinite; }
.lobby.is-nightsky .lobby-motes i { display: block; }
@keyframes lobbyFirefly { 0%, 100% { opacity: 0; transform: translate(0, 0); } 30% { opacity: .9; } 50% { opacity: .35; transform: translate(var(--dx), var(--dy)); } 70% { opacity: .85; } }

/* cinematic vignette above the scene, under the HUD */
.lobby-vignette { position: absolute; inset: 0; z-index: 1500; pointer-events: none;
  background: radial-gradient(ellipse 80% 75% at 50% 55%, transparent 58%, rgba(3,3,10,.55) 100%); }
.lobby.is-day .lobby-vignette { background: radial-gradient(ellipse 80% 75% at 50% 55%, transparent 62%, rgba(20,40,60,.25) 100%); }

/* the Stonklings */
.lobby-stage { position: absolute; inset: 0; }
.lp { position: absolute; left: 0; top: 0; width: 96px; height: 120px; padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
  transform-origin: 0 0; will-change: transform; color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
.lp-flip { position: absolute; left: 0; top: 16px; width: 96px; height: 96px; transition: transform .25s ease; }
.lp-flip svg { width: 100%; height: 100%; overflow: visible; display: block; }
.lp .night { display: none; }
.lp .aura { opacity: .55; }
.lp-shadow { position: absolute; left: 22px; top: 98px; width: 52px; height: 10px; border-radius: 50%; background: radial-gradient(rgba(0,0,0,.6), transparent 70%); }
.lp-ring { position: absolute; left: 12px; top: 92px; width: 72px; height: 20px; border-radius: 50%; border: 2px solid #3dd6f5;
  box-shadow: 0 0 14px rgba(61,214,245,.8), inset 0 0 10px rgba(61,214,245,.5); animation: lpRing 1.8s ease-in-out infinite; }
@keyframes lpRing { 50% { transform: scale(1.12); opacity: .6; } }
.lp-over { position: absolute; left: 50%; top: 14px; width: 0; height: 0; transform-origin: 0 0; }
.lp-tag { position: absolute; left: 0; bottom: 0; transform: translateX(-50%); transition: transform .3s ease; display: flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 3px 9px; border-radius: 999px; background: rgba(8,9,18,.9); border: 1px solid rgba(255,255,255,.12);
  font: 700 14px "Space Grotesk", sans-serif; color: #eef1ff; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.lp-tag i { font: 700 13px "JetBrains Mono", monospace; font-style: normal; display: none; }
.lp-tag i.up { color: var(--up); } .lp-tag i.down { color: var(--down); } .lp-tag i.flat { color: var(--muted); }
.lp-tag em { font: 700 12px "JetBrains Mono", monospace; font-style: normal; }
.lp-tag u { text-decoration: none; padding: 1px 5px; border-radius: 5px; font: 700 10px "JetBrains Mono", monospace; letter-spacing: .08em;
  color: #d6c9ff; background: rgba(124,92,255,.3); border: 1px solid rgba(124,92,255,.6); }
.lp.r1 .lp-tag { border-color: rgba(255,197,84,.8); box-shadow: 0 0 16px rgba(255,197,84,.45); } .lp.r1 .lp-tag em { color: #ffc554; }
.lp.r2 .lp-tag { border-color: rgba(210,220,235,.7); } .lp.r2 .lp-tag em { color: #d2dceb; }
.lp.r3 .lp-tag { border-color: rgba(210,150,90,.7); } .lp.r3 .lp-tag em { color: #e0a36a; }
.lp.me .lp-tag { border-color: #3dd6f5; background: rgba(8,40,52,.85); }
.lp.host .lp-tag { border-color: rgba(124,92,255,.8); background: rgba(34,22,78,.9); box-shadow: 0 0 16px rgba(124,92,255,.45); }
.lp.host .lp-tag b { font-style: italic; }
.lp.host .lp-tag i, .lp.me .lp-tag i, .lp.r1 .lp-tag i, .lp.r2 .lp-tag i, .lp.r3 .lp-tag i, .lp:hover .lp-tag i, .lp:focus-visible .lp-tag i { display: inline; }
.lp:hover .lp-tag, .lp:focus-visible .lp-tag { background: rgba(30,24,70,.92); border-color: var(--a1); }
.lp:focus-visible { outline: none; } .lp:focus-visible .lp-flip { filter: drop-shadow(0 0 10px rgba(124,92,255,.9)); }
.lp:hover .lp-flip { filter: drop-shadow(0 0 8px rgba(255,255,255,.35)); }
/* a little bunch when several Stonklings share a mood: a soft shared glow under the group */
.lp.grouped .lp-shadow { background: radial-gradient(rgba(124,92,255,.55), transparent 70%); }
.lp.grouped.up .lp-shadow { background: radial-gradient(rgba(82,242,164,.5), transparent 70%); }
.lp.grouped.down .lp-shadow { background: radial-gradient(rgba(255,110,140,.45), transparent 70%); }

/* speech bubbles with real numbers */
.lp-bubble { position: absolute; left: 0; bottom: 34px; padding: 5px 11px; border-radius: 12px; background: #f4f6ff; color: #0b0d18;
  font: 700 15px "JetBrains Mono", monospace; white-space: nowrap; opacity: 0; transform: translateX(-50%) scale(.5); transform-origin: 50% 100%;
  pointer-events: none; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.lp-bubble::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.lp-bubble.on { animation: lpBubble 2.8s cubic-bezier(.2,.9,.3,1.2) forwards; }
@keyframes lpBubble { 0% { opacity: 0; transform: translateX(-50%) scale(.5); } 12%, 82% { opacity: 1; transform: translateX(-50%) scale(1); } 100% { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(.95); } }

/* sleepwalkers: shown while Wall Street itself is closed, whatever the sky looks like */
.lp-zzz { position: absolute; left: 62px; top: 20px; display: none; font: 800 14px "Space Grotesk", sans-serif; color: #cfe0ff; pointer-events: none; }
.lp-zzz i, .lp-zzz b { position: absolute; font-style: normal; font-weight: 800; }
.lp-zzz i { left: 9px; top: -11px; font-size: 17px; } .lp-zzz b { left: 20px; top: -25px; font-size: 21px; }
.lobby.is-asleep .lp-zzz { display: block; animation: lpZzz 3s ease-in-out infinite; }
@keyframes lpZzz { 0%, 100% { opacity: .35; transform: translateY(2px); } 50% { opacity: .95; transform: translateY(-4px); } }

/* heads-up display */
.lobby-hud { position: absolute; left: 14px; top: 14px; right: 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; pointer-events: none; z-index: 2000; }
.lobby-live, .lobby-status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: rgba(6,7,15,.88);
  border: 1px solid rgba(255,255,255,.1); font: 600 12.5px "Inter", sans-serif; color: #e8ebff; }
.lobby-live b { font: 600 12.5px "Inter", sans-serif; color: #fff; }
.lobby-live > i { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 10px var(--up); animation: lobbyLive 1.6s ease-in-out infinite; }
.lobby.is-asleep .lobby-live > i { background: #9ab0ff; box-shadow: 0 0 10px #9ab0ff; }
@keyframes lobbyLive { 50% { opacity: .35; } }
.lobby-status { max-width: min(460px, 100%); color: #c9cfee; font-weight: 500; }
.lobby-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); margin: 0; padding: 6px 12px; border-radius: 999px; z-index: 2000;
  background: rgba(6,7,15,.6); border: 1px solid rgba(255,255,255,.08); font: 600 12px "Inter", sans-serif; color: #b9c0e0; white-space: nowrap; pointer-events: none; }
.lobby-empty { position: absolute; left: 50%; top: 66%; transform: translate(-50%, -50%); z-index: 2000; margin: 0; max-width: 340px; text-align: center;
  padding: 14px 18px; border-radius: 16px; background: rgba(6,7,15,.8); border: 1px solid rgba(124,92,255,.4); color: #dfe3ff; font: 500 14px "Inter", sans-serif; }

/* zoom controls, bottom-right — the plaza is a real place worth a closer look */
.lobby-zoom { position: absolute; right: 14px; bottom: 14px; z-index: 2000; display: flex; flex-direction: column; gap: 6px; }
.lobby-zoom button { width: 32px; height: 32px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(6,7,15,.82);
  color: #e8ebff; font: 700 16px "Inter", sans-serif; cursor: pointer; line-height: 1; }
.lobby-zoom button:hover { background: rgba(30,24,70,.92); border-color: var(--a1); }
.lobby-zoom button:active { transform: scale(.94); }
.lobby.zoomed { cursor: grab; } .lobby.zoomed:active { cursor: grabbing; }
.lobby:fullscreen, .lobby.fullscreen { height: 100vh; border-radius: 0; }
.lobby:fullscreen .lobby-zoom, .lobby.fullscreen .lobby-zoom { bottom: 20px; right: 20px; }
.lobby-viewport { position: absolute; inset: 0; overflow: hidden; }
.lobby-world { position: absolute; inset: 0; transform-origin: 50% 62%; transition: transform .2s ease; }
.lobby-world.dragging { transition: none; }

@media (max-width: 640px) {
  .lobby { border-radius: 18px; height: 440px; }
  .lobby-sky { inset: 0 0 52% 0; }
  .lobby-city, .lobby-exchange { bottom: 52%; }
  .lobby-city { height: 34%; }
  .lobby-floor { height: 52%; }
  .lobby-lamp.l1, .lobby-lamp.l2 { height: 24%; }
  .lobby-billboard { display: none; }
  .lobby-spill { top: 48%; } .lobby-plaza { top: 72%; }
  .lobby-sign { letter-spacing: .12em; }
  .lp:not(.me):not(.host):not(.r1):not(.r2):not(.r3):not(:focus-visible) .lp-tag { display: none; }
  .lobby-status { display: none; }
  .lobby-hint { font-size: 11px; }
  .lobby-lamp.l3, .lobby-lamp.l4 { display: none; }
  .lobby-zoom { right: 8px; bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .lobby-floor::before, .lobby-board-track, .lobby-sky::after, .lp-ring, .lobby-live > i, .lobby.is-asleep .lp-zzz,
  .lobby-clouds i, .lobby.is-nightsky .lobby-shoot, .lobby-city .tw, .lobby-sign, .lobby-plaza, .lobby-motes i, .lobby-birds i { animation: none; }
}
