body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #222;
  background: #f8f8f8;
}

.page {
  padding: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.subline {
  margin: 0 0 16px;
  color: #555;
}

#game-wrapper {
  position: relative;
  border: 1px solid #ddd;
  min-height: 260px;
  margin: 12px 0;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}

#game {
  position: relative;
  height: 360px;
  background: #fafafa;
  border-radius: 6px;
  overflow: hidden;
}

.player {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player.self {
  background: #d44;
  color: #fff;
}

.player.other {
  background: #3a6ee8;
  color: #fff;
}

.socket-auth {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  width: 240px;
}

.socket-title {
  margin-bottom: 8px;
  font-weight: bold;
}

.socket-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.socket-status {
  margin-top: 6px;
  font-size: 12px;
}

.socket-status.ok {
  color: #0a6;
}

.socket-status.error {
  color: #c00;
}

.socket-info {
  margin-top: 8px;
  font-size: 12px;
}

.game-chat {
  border: 1px solid #ddd;
  max-height: 220px;
  min-height: 180px;
  overflow-y: auto;
  padding: 8px;
  font-size: 12px;
  background: #fff;
  border-radius: 6px;
}

.game-chat-form {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.game-chat-form input {
  flex: 1;
  padding: 8px;
}
