/* Panels, HUD and touch controls shared by the multiplayer games (Flock and Confluence). */
.panel {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(420px, calc(100% - 32px)); padding: 24px; border-radius: 16px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); user-select: text; -webkit-user-select: text;
}
.panel[hidden] { display: none; }
.panel h1 { margin: 0; font-size: 56px; color: var(--duck); line-height: 1; }
.panel h2 { margin: 0 0 8px; font-size: 26px; color: var(--duck); }
.panel .lede { color: var(--muted); margin: 10px 0 18px; }
.panel label { display: block; text-align: left; color: var(--muted); margin-bottom: 6px; }
.panel .big { font-size: 40px; font-weight: 700; margin: 6px 0; }
.panel .how { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
#status { min-height: 1.2em; margin: 10px 0 0; color: #FFC9B8; }
#status:empty { display: none; }
#dead-why, #dead-board { margin: 6px 0; color: var(--muted); }
#dead-board.good { color: var(--duck); font-weight: 700; }
#again {
  margin-top: 14px; padding: 10px 28px; border-radius: 10px; border: 0; background: var(--duck); color: #0F3B4C;
  font-weight: 700; font-size: 18px; cursor: pointer;
}
body.touch .how[data-for="mouse"], body:not(.touch) .how[data-for="touch"] { display: none; }

#hud[hidden] { display: none; }
#hud-len {
  position: fixed; left: calc(16px + env(safe-area-inset-left, 0px)); top: calc(12px + env(safe-area-inset-top, 0px)); margin: 0;
  font-size: 22px; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
#room {
  position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); top: calc(12px + env(safe-area-inset-top, 0px));
  min-width: 170px; padding: 8px 12px; border-radius: 10px; background: rgba(8, 36, 47, 0.55); font-size: 14px;
}
#room-count { margin: 0 0 4px; color: var(--muted); }
#room-top { margin: 0; padding-left: 1.4em; font-variant-numeric: tabular-nums; }
#room-top li { display: flex; justify-content: space-between; gap: 12px; }
#room-top li.me { color: var(--duck); font-weight: 700; }
#room-top li.bot span:first-child::after { content: " (bot)"; color: var(--muted); font-weight: 500; }

#boost {
  position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 84px; height: 84px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 210, 63, 0.35); color: #fff; font-weight: 700; font-size: 16px; touch-action: none;
}
#boost[hidden] { display: none; }
#boost.on { background: rgba(255, 210, 63, 0.75); }
