/* Night-shift hall (lobby.js): the home screen is the museum corridor. HUD on top, players standing
   on the floor in depth, then the feed, one big Play button and the secondary row at the bottom. */
#title.hall { --live: #5ee39a; --ghost: #9fd8ff; --ember: #ff8a5c; --glass: rgba(14,19,44,.74); --gline: rgba(160,175,255,.22);
  justify-content: flex-start; gap: 0; padding-top: max(12px, env(safe-area-inset-top, 0px)); padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)); }
#title.hall .bg { opacity: 1; background: url(img/bg_hall.jpg) center 30% / cover; }
#title.hall .bg::after { background: linear-gradient(180deg, rgba(8,10,26,.88) 0%, rgba(8,10,26,.2) 24%, rgba(8,10,26,0) 42%, rgba(8,10,26,.35) 58%, rgba(8,10,26,.96) 76%); }
#title.hall .corner { top: max(10px, env(safe-area-inset-top, 0px)); }

/* HUD */
.hl-hud { position: relative; padding-right: 96px; }
.hl-brand { display: block; color: var(--gold); font-size: 12px; letter-spacing: .3em; opacity: .85; }
#title.hall h1.hl-title { margin: 2px 0 0; font-family: var(--pixel); font-weight: 400; font-size: 36px; line-height: 1.1; letter-spacing: .12em; color: var(--gold);
  text-shadow: 3px 3px 0 var(--ink), 0 0 18px rgba(242,193,78,.35); }
.hl-stats { position: relative; display: flex; align-items: flex-end; gap: 12px; margin-top: 8px; min-height: 58px; }
.hl-big { font-size: 60px; line-height: .9; color: var(--live); font-variant-numeric: tabular-nums; text-shadow: 3px 3px 0 var(--ink), 0 0 24px rgba(94,227,154,.45); }
.hl-lbl { display: flex; flex-direction: column; gap: 3px; padding-bottom: 4px; min-width: 0; }
.hl-lbl b { font-weight: 400; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.hl-lbl span { font-size: 12px; color: var(--dim); }
.hl-dot { width: 8px; height: 8px; background: var(--live); box-shadow: 0 0 8px var(--live); animation: hl-pulse 2s infinite; }
@keyframes hl-pulse { 50% { opacity: .35; } }

/* floor: figures stand on their feet at (left, top) */
/* isolation: the figures' depth z-index (their y, up to ~90) stays inside the floor, under modals (z 30) */
.hl-floor { position: relative; flex: 1; min-height: 200px; isolation: isolate; }
.hl-fig { position: absolute; transform: translate(-50%, -100%) scale(calc(var(--s, 1) * var(--k, 1))); transform-origin: 50% 100%; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; animation: hl-bob 4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.hl-fig:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@keyframes hl-bob { 50% { translate: 0 -4px; } }
.hl-bub { font-size: 12px; padding: 3px 8px; background: var(--glass); border: 1px solid var(--gline); white-space: nowrap; }
.hl-bub.duel { color: var(--ember); } .hl-bub.deck { color: var(--ghost); } .hl-bub.ladder { color: var(--gold); }
.hl-med { display: block; width: 76px; height: 76px; border-radius: 50%; background: #1d2447 center / cover; border: 3px solid var(--live);
  box-shadow: 0 0 0 3px rgba(0,0,0,.5), 0 0 22px rgba(94,227,154,.45); }
.hl-fig.you .hl-med { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(0,0,0,.5), 0 0 28px rgba(242,193,78,.6); }
/* my season frame (profile.css .fr-*), as rings round the round medallion: frame colour, a lit ring, an ink rim */
.hl-fig.you .hl-med.fr-silver, .hl-fig.you .hl-med.fr-gold { border-color: var(--fr-m);
  box-shadow: 0 0 0 3px var(--fr-h), 0 0 0 6px var(--ink), 0 0 28px color-mix(in srgb, var(--fr-m) 55%, transparent); }
.hl-fig.you .hl-bub { color: var(--gold); }
.hl-plate { font-size: 12px; padding: 2px 10px; background: rgba(0,0,0,.6); white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0 #000; }
.hl-plate small { display: block; font-size: 12px; color: var(--dim); text-align: center; }
.hl-fig::after { content: ""; width: 64px; height: 12px; border-radius: 50%; background: radial-gradient(rgba(0,0,0,.6), transparent 70%); margin-top: -2px; }
/* afterimages: people who were here recently, honestly not online */
.hl-fig.away { animation: hl-drift 6s ease-in-out infinite; animation-delay: var(--d, 0s); }
.hl-fig.away .hl-med { border-color: rgba(159,216,255,.5); box-shadow: 0 0 26px rgba(159,216,255,.35); filter: grayscale(.85) brightness(.9); opacity: .5; }
.hl-fig.away .hl-plate { background: rgba(0,0,0,.35); color: var(--ghost); opacity: .8; }
.hl-fig.away .hl-bub { color: var(--dim); opacity: .8; }
@keyframes hl-drift { 50% { translate: 0 -8px; opacity: .85; } }
.hl-more { position: absolute; right: 0; top: 8%; font-size: 11px; color: var(--dim); background: var(--glass); border: 1px solid var(--gline); padding: 3px 8px; }
.hl-legend { position: absolute; left: 0; right: 0; top: 2px; margin: 0; text-align: center; font-size: 12px; color: var(--dim); text-shadow: 0 1px 2px #000; }   /* hall text 12px minimum (playtest D2) */

/* bottom: feed, Play, secondary row */
.hl-bottom { position: relative; display: flex; flex-direction: column; gap: 10px; }
.hl-feed { background: var(--glass); border: 1px solid var(--gline); padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; }
.hl-feed h3 { margin: 0; font-weight: 400; font-size: 12px; letter-spacing: .2em; color: var(--dim); }
.hl-feed ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; line-height: 1.45;
  max-height: calc(3 * 1.45em + 8px); overflow-y: auto; overscroll-behavior: contain; }
.hl-feed li { display: flex; gap: 10px; }
.hl-feed .t { flex: 0 0 54px; color: var(--dim); font-size: 11px; font-variant-numeric: tabular-nums; }
.hl-feed b { font-weight: 400; } .hl-feed .w { color: var(--gold); } .hl-feed .mine { color: var(--live); }
.hl-none { margin: 0; font-size: 12px; color: var(--dim); }
#title.hall .menu { gap: 8px; }
#title.hall .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
#title.hall .row3 > * { height: 46px; padding: 0 6px; color: var(--cream); }
#title.hall .menu .lg-btn { display: flex; justify-content: center; align-items: center; gap: 4px; padding: 0 6px; }
#title.hall .lg-btn .lg-emb { width: 24px; height: 24px; flex: none; }
#title.hall .lg-btn > span { display: block; white-space: nowrap; }
#title.hall .lg-btn small, #title.hall .lg-btn .lg-stars { display: none !important; }
.hl-links { display: flex; justify-content: center; gap: 6px; }
#title.hall .hl-links .ghost-btn { font-size: 12px; padding: 4px 9px; color: var(--dim); white-space: nowrap; }
#title.hall .account { min-height: 0; }

/* player card */
.hl-sheet { position: absolute; inset: 0; z-index: 25; display: flex; flex-direction: column; justify-content: flex-end; }
.hl-scrim { position: absolute; inset: 0; background: rgba(8,6,16,.55); }
.hl-card { position: relative; background: linear-gradient(180deg, #1c2350, #111632); border-top: 3px solid var(--gold); box-shadow: 0 -10px 40px rgba(0,0,0,.6);
  padding: 18px max(18px, env(safe-area-inset-left, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; gap: 14px; animation: hl-up .18s ease-out; }
@keyframes hl-up { from { transform: translateY(30px); opacity: 0; } }
.hl-card .hd { display: flex; gap: 14px; align-items: center; }
.hl-card .hl-med { width: 64px; height: 64px; flex: none; }
.hl-card h4 { margin: 0; font-weight: 400; font-size: 18px; }
.hl-card .ti { font-size: 12px; color: var(--gold); }
.hl-card .meta { font-size: 12px; color: var(--dim); }
.hl-nodeck { margin: 0; font-size: 12px; color: var(--dim); }
.hl-card .btns { display: flex; gap: 10px; }
.hl-card .btns > * { flex: 1; }
.hl-card .hl-ch { flex: 2; font-size: 16px; padding: 10px 8px; }

/* Short phones: tighten so the floor keeps room for people. */
@media (max-height: 700px) {
  .hl-title { font-size: 28px; } .hl-big { font-size: 48px; } .hl-stats { min-height: 48px; }
  .hl-feed ul { max-height: calc(2 * 1.45em + 4px); }
}
@media (prefers-reduced-motion: reduce) { .hl-fig, .hl-fig.away, .hl-dot, .hl-card { animation: none; } }
