.screen {
  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;
  opacity: 1;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

.screen.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.game-container {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 16px 12px;
  background: var(--bg);
  z-index: 9998;
  overflow-y: auto;
  transition: opacity 0.3s ease;
}

.game-container.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

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

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

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

.credits-link:hover {
  opacity: 0.7;
}

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

.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}