.page {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  text-align: center;
  z-index: 9999;
  overflow-y: auto;
}

.game-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  padding: 16px 12px;
}

.credits-container {
  position: fixed;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--meta-text);
  text-align: center;
  pointer-events: none;
  z-index: 10000;
}

.credits-container a {
  pointer-events: auto;
}

.credits-link {
  color: var(--meta-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.credits-link:hover {
  color: var(--text);
}

.credits-copyright {
  font-family: sans-serif;
}

.room-code-display-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.join-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.difficulty-label {
  color: var(--meta-text);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0 0 4px;
}

.leaderboard {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 20px;
  margin-bottom: 10px;
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.leaderboard.lb-visible {
  opacity: 1;
  transform: translateY(0);
}

.lb-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  padding: 2px 0;
}

.lb-row-draws {
  opacity: 0.7;
}

.lb-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  margin: 0 8px;
  flex-shrink: 0;
}

.lb-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.lb-dot-player {
  background: #111111;
  border: 1px solid var(--border);
}

.lb-dot-player2 {
  background: #f8f8f8;
  border: 1px solid var(--border);
}

.lb-dot-bot {
  background: #f8f8f8;
  border: 1px solid var(--border);
}

.lb-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--meta-text);
  white-space: nowrap;
}

.lb-diff {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.7;
}

.lb-score {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}