* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0d1b26; color: #eef4f8;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
canvas { display: block; }

.panel { position: fixed; inset: 0; margin: auto; width: min(420px, 90vw); height: fit-content;
  padding: 28px; border-radius: 18px; background: rgba(13, 27, 38, .92);
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 60px rgba(0,0,0,.4); z-index: 10; }
h1 { margin: 0; font-size: 34px; letter-spacing: .02em; }
.sub { margin: 4px 0 22px; opacity: .65; }
label { display: block; margin-bottom: 14px; font-size: 14px; opacity: .9; }
input { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font-size: 18px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: #08131b; color: inherit; }
button { padding: 14px 22px; font-size: 18px; font-weight: 600; border: 0; border-radius: 12px;
  background: #3fa7ff; color: #04121d; cursor: pointer; }
button:active { transform: translateY(1px); }
#lobby button { width: 100%; margin-top: 6px; }
.msg { min-height: 1.2em; color: #ff9b85; margin: 12px 0 0; }

#hud { position: fixed; left: 16px; top: 16px; right: 16px; z-index: 5; pointer-events: none; }
#hud > * { pointer-events: auto; }
#status { display: inline-block; padding: 8px 14px; border-radius: 10px; background: rgba(0,0,0,.45); font-size: 15px; }
#info { margin-top: 8px; display: table; padding: 6px 14px; border-radius: 10px; background: rgba(0,0,0,.45); color: #ffe9a8; font-size: 15px; }
#info:empty { display: none; }
#buttons { margin-top: 10px; display: flex; gap: 10px; }
.hint { position: fixed; bottom: 14px; left: 0; right: 0; text-align: center; opacity: .7; font-size: 14px; pointer-events: none; }

.label { font-size: 14px; opacity: .9; margin-bottom: 6px; }
#avatarPick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 14px; }
#avatarPick .avatar { padding: 8px 2px; font-size: 12px; font-weight: 500; background: #08131b; color: inherit;
  border: 1px solid rgba(255,255,255,.18); border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
#avatarPick .avatar span { font-size: 26px; line-height: 1.1; }
#avatarPick .avatar.on { border-color: #3fa7ff; background: #12324a; box-shadow: 0 0 0 2px #3fa7ff inset; }
#gamePick { display: contents; }
#gamePick[hidden] { display: none; }
#gamePick button { background: #f3d9a0; color: #2c1a0c; }
button.ghost { background: rgba(0,0,0,.45); color: #eef4f8; border: 1px solid rgba(255,255,255,.25); }

/* Seit 30.11.2026 (Wunsch Jens): oben links aufgeräumt. Menü und Einstellungen sind Schilder am Brettrand,
   Namen stehen auf den Plaketten am Rand, Hinweise erscheinen kurz als Einblendung. */
#status, #info, #toMenu, #musikBtn, #gamePick { display: none !important; }
#hud { top: auto; bottom: 46px; left: 0; right: 0; display: flex; justify-content: center; }
#buttons { margin-top: 0; }
#buttons:not(:has(button:not([hidden]))) { display: none; }
#toast { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); padding: 8px 18px; border-radius: 14px;
  background: rgba(40,24,10,.82); border: 2px solid #c9a14a; color: #f3d9a0; font: 600 17px Georgia, serif;
  opacity: 0; transition: opacity .35s; pointer-events: none; white-space: nowrap; }
#toast.on { opacity: 1; }

/* Offene Tische in der Lobby (30.11.2026) */
#raeume { margin: 4px 0 12px; }
#raumListe { display: grid; gap: 6px; }
#raumListe button { width: 100%; margin: 0; text-align: left; padding: 9px 12px; background: #12324a; color: #eef4f8; border: 1px solid #3fa7ff55; font-size: 14px; }
#raumListe button b { color: #ffd23f; margin-right: 6px; }
#raumListe button .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 3px 0 8px; }
#raumListe button.voll { opacity: .5; }
