/* ==========================================================================
   waiting.css：対戦相手待ち画面
   ========================================================================== */
#待機画面 {
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.waiting-container {
  text-align: center;
  background: rgba(0, 0, 0, 0.65);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 30px 24px;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loader-pulse {
  font-size: 50px;
  animation: パルス 1.2s infinite alternate;
}

@keyframes パルス {
  from { transform: scale(0.9); }
  to { transform: scale(1.15); }
}

.waiting-title {
  font-size: 18px;
  letter-spacing: 0.5px;
}

.waiting-count {
  font-size: 14px;
  color: #ffcc00;
}

.player-list-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-entry {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
}

.test-skip-btn {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  color: #ccc;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
}

.cancel-wait-btn {
  background: transparent;
  border: 1px solid rgba(255, 80, 80, 0.7);
  color: #f8b4b4;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

/* 接続案内ボックス */
.connect-info-box {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed #ffcc00;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.connect-label {
  font-size: 11px;
  color: #ffcc00;
  font-weight: bold;
}

.connect-url {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 10px;
  border-radius: 8px;
  word-break: break-all;
  user-select: all; /* タップで全選択可能 */
}

.connect-sub {
  font-size: 10px;
  color: #aaa;
}