* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #1a1a2e;
  color: #e8eaf0;
  min-height: 100vh;
}

#app {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#welcome-panel {
  width: min(520px, calc(100vw - 48px));
  padding: 24px;
  background: #222633;
  border: 1px solid #2e3344;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#welcome-panel h1 {
  text-align: center;
  font-size: 1.75rem;
}

.subtitle,
.meta,
.tip {
  text-align: center;
  color: #9aa3b5;
}

.status-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.status-dot {
  color: #666;
}

#status-offline.active {
  color: #f07178;
}

#status-connecting.active {
  color: #f5c542;
}

#status-online.active {
  color: #3dd68c;
}

#connect-btn {
  min-height: 36px;
  border: none;
  border-radius: 8px;
  background: #6cb6ff;
  color: #0f1117;
  font-weight: 600;
  cursor: pointer;
}

#connect-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hidden {
  display: none !important;
}

#app:has(#game-root:not(.hidden)) {
  display: block;
}

#game-root {
  width: 100vw;
  height: 100vh;
}

#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
