html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
canvas { position: absolute; display: block; }
#game { image-rendering: pixelated; image-rendering: crisp-edges; }
#overlay { pointer-events: auto; }
.lobby { position: fixed; inset: 4vh 4vw; display: none; flex-direction: column; background: rgba(8, 4, 24, 0.94); border: 2px solid #ff5aa0; color: #eee; font: 14px/1.35 "Lucida Console", "Courier New", monospace; z-index: 5; box-shadow: 0 0 40px rgba(255, 90, 160, 0.35); }
.lobby button { font: inherit; background: #ffd21a; color: #1a0a00; border: 0; padding: 4px 10px; cursor: pointer; font-weight: bold; }
.lobby button.ghost { background: transparent; color: #ccc; border: 1px solid #666; }
.lobby input, .lobby select { font: inherit; background: #120a2a; color: #fff; border: 1px solid #5a4a8a; padding: 4px 6px; }
.lb-head { display: flex; gap: 16px; align-items: center; padding: 10px 14px; border-bottom: 1px solid #3a2a5a; }
.lb-title { font-weight: bold; color: #ffd21a; font-size: 18px; letter-spacing: 2px; }
.lb-status { color: #8fd; flex: 1; }
.lb-name { display: flex; gap: 8px; align-items: center; padding: 10px 14px; }
.lb-body { display: flex; flex: 1; min-height: 0; }
.lb-col { padding: 10px 14px; overflow: auto; }
.lb-col h3 { margin: 0 0 8px; color: #ff9ad0; font-size: 13px; letter-spacing: 2px; }
.lb-users { width: 26%; border-right: 1px solid #3a2a5a; }
.lb-users ul, .lb-results ul { list-style: none; margin: 0; padding: 0; }
.lb-users li { display: flex; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px dashed #2a1a4a; }
.lb-users li.me .nm { color: #ffd21a; }
.lb-users .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.lb-users .st { color: #888; font-size: 12px; }
.lb-ft { margin-top: 12px; color: #aaa; font-size: 12px; }
.lb-chat { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.lb-log { flex: 1; overflow-y: auto; padding: 6px; background: rgba(0, 0, 0, 0.35); border: 1px solid #2a1a4a; word-wrap: break-word; }
.lb-log .sys { color: #9ab; font-style: italic; }
.lb-log .ts { color: #666; font-size: 11px; }
.lb-say { display: flex; gap: 6px; margin-top: 6px; }
.lb-say input { flex: 1; }
.lb-results { width: 24%; border-left: 1px solid #3a2a5a; }
.lb-results li { padding: 3px 0; color: #ccc; font-size: 13px; }
.lb-results li.live { color: #7f7; }
.lb-note { color: #888; font-size: 12px; margin-top: 14px; }
.lb-invites .inv { display: flex; gap: 8px; align-items: center; background: #3a1030; border: 1px solid #ff5aa0; padding: 6px 8px; margin-bottom: 6px; }
.lb-invites .inv span { flex: 1; }
.lb-set { margin-bottom: 6px; }
.lb-set:empty { display: none; }
.lb-set { background: #10203a; border: 1px solid #3aa0ff; padding: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lb-set .cap { width: 100%; color: #9cf; font-size: 12px; letter-spacing: 2px; }
.lb-set .score { display: flex; gap: 14px; align-items: baseline; flex: 1; font-size: 20px; }
.lb-set .score .v { color: #ffd21a; font-weight: bold; font-size: 26px; }
@media (max-width: 800px) { .lb-users, .lb-results { width: 30%; } .lb-results { display: none; } }
