/* CSS Variables */
:root {
  --primary: #1db954;
  --primary-hover: #1ed760;
  --bg-dark: #121212;
  --bg-elevated: #181818;
  --bg-surface: #282828;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #6a6a6a;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-top: env(safe-area-inset-top, 0px);
  --tap-target: 48px;
  --transition: 0.2s ease;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base */
html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Prevent pull-to-refresh on mobile */
html, body {
  overscroll-behavior-y: contain;
}

/* Views */
.view {
  display: none;
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

.view.active {
  display: flex;
  flex-direction: column;
}

/* Landing View */
.landing-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  padding-top: calc(2rem + var(--safe-area-top));
  text-align: center;
}

.logo {
  margin-bottom: 1.5rem;
}

.logo-icon {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  margin: 0 auto 1rem;
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  border: 20px solid transparent;
  border-left: 30px solid var(--bg-dark);
}

.logo h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.tagline {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 280px;
}

.join-section {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.landing-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  padding-bottom: calc(1.5rem + var(--safe-area-bottom));
  text-align: center;
}

.landing-footer .version-text {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.landing-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition);
}

.landing-footer a:hover {
  color: var(--text-secondary);
}

.landing-footer svg {
  width: 24px;
  height: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  min-height: var(--tap-target);
  touch-action: manipulation;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-dark);
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-hover);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  border-radius: 50px;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-target);
  height: var(--tap-target);
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition);
}

.btn-icon:hover {
  background: var(--bg-surface);
}

.btn-icon:active {
  transform: scale(0.95);
}

.btn-icon svg {
  width: 24px;
  height: 24px;
}

/* Lobby Header */
.lobby-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  padding-top: calc(0.5rem + var(--safe-area-top));
  background: var(--bg-elevated);
  position: sticky;
  top: 0;
  z-index: 100;
}

.lobby-info {
  flex: 1;
  min-width: 0;
}

.lobby-info h2 {
  font-size: 1.125rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-count {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Now Playing Section */
.now-playing {
  padding: 1.5rem 1rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-dark) 100%);
}

.album-art {
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.placeholder-art svg {
  width: 64px;
  height: 64px;
}

.track-info {
  margin-bottom: 1rem;
  padding: 0 1rem;
}

.track-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Progress Bar */
.progress-container {
  padding: 0 1rem;
  margin-bottom: 1rem;
}

.progress-bar {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-surface);
  border-radius: 2px;
  cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: var(--text-primary);
  border-radius: 50%;
  cursor: pointer;
}

.progress-bar::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--text-primary);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Playback Controls */
.playback-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.btn-control svg {
  width: 32px;
  height: 32px;
}

.btn-play {
  width: 64px;
  height: 64px;
  background: var(--text-primary);
  color: var(--bg-dark);
}

.btn-play:hover {
  transform: scale(1.05);
  background: var(--text-primary);
}

.btn-play svg {
  width: 32px;
  height: 32px;
}

/* Shuffle Button Active State */
.btn-control.active {
  color: var(--primary);
}

.btn-control.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}

#shuffle-btn {
  position: relative;
}

/* Repeat Button States */
#repeat-btn {
  position: relative;
  color: var(--text-muted);
}

#repeat-btn[data-mode="all"],
#repeat-btn[data-mode="one"] {
  color: var(--primary);
}

#repeat-btn[data-mode="one"]::after {
  content: '1';
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

/* Bottom Navigation */
.bottom-nav {
  display: flex;
  background: var(--bg-elevated);
  border-top: 1px solid var(--bg-surface);
  position: sticky;
  bottom: 0;
  z-index: 100;
  padding-bottom: var(--safe-area-bottom);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  transition: color var(--transition);
  min-height: var(--tap-target);
}

.nav-item svg {
  width: 24px;
  height: 24px;
}

.nav-item.active {
  color: var(--primary);
}

/* Tab Content */
.tab-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tab-panel {
  display: none;
  flex: 1;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-panel.active {
  display: flex;
}

/* Add Song Input */
.add-song {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-elevated);
  position: sticky;
  top: 0;
}

.add-song input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: none;
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 1rem;
  min-height: var(--tap-target);
}

.add-song input::placeholder {
  color: var(--text-muted);
}

.add-song input:focus {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.add-song .btn {
  padding: 0.75rem;
  min-width: var(--tap-target);
}

.add-song .btn svg {
  width: 24px;
  height: 24px;
}

/* Queue List */
.queue-list {
  list-style: none;
  padding: 0.5rem 0;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  transition: background var(--transition);
}

.queue-item:hover {
  background: var(--bg-elevated);
}

.queue-item.playing {
  background: var(--bg-surface);
}

.queue-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: var(--bg-surface);
  flex-shrink: 0;
  overflow: hidden;
}

.queue-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.queue-item-info {
  flex: 1;
  min-width: 0;
}

.queue-item-title {
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item-duration {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.queue-item-remove {
  padding: 0.5rem;
  color: var(--text-muted);
}

.queue-item-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Download Status Indicator on Thumbnail */
.queue-item-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 0.75rem;
  line-height: 1;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 3px;
  padding: 2px 4px;
}

.queue-item-status.ready {
  color: var(--primary);
}

.queue-item-status.downloading {
  animation: pulse-download 1.5s ease-in-out infinite;
}

.queue-item-status.pending {
  opacity: 0.7;
}

.queue-item-status.error {
  color: #e74c3c;
}

@keyframes pulse-download {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Download Status Badge */
.queue-item-badge {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-weight: 600;
}

.queue-item-badge.pending {
  background: var(--bg-surface);
  color: var(--text-muted);
}

.queue-item-badge.downloading {
  background: rgba(29, 185, 84, 0.2);
  color: var(--primary);
}

.queue-item-badge.error {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

/* Download Progress Bar */
.queue-item-progress {
  margin-top: 0.375rem;
  height: 3px;
  background: var(--bg-surface);
  border-radius: 2px;
  overflow: hidden;
}

.queue-item-progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Make thumbnail relative for status positioning */
.queue-item-thumb {
  position: relative;
}

.queue-empty, .listener-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.queue-empty .hint, .listener-empty .hint {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Listeners List */
.listeners-list {
  list-style: none;
  padding: 0.5rem 0;
}

.listener-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}

.listener-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--bg-dark);
}

.listener-name {
  flex: 1;
  font-weight: 500;
}

.listener-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: calc(80px + var(--safe-area-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: calc(100% - 2rem);
  max-width: 400px;
}

.toast {
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 0.875rem 1rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: toast-in 0.3s ease;
}

.toast.error {
  border-left: 3px solid #e74c3c;
}

.toast.success {
  border-left: 3px solid var(--primary);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Connection Status */
.connection-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.connection-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.connection-dot.connected {
  background: var(--primary);
}

/* Responsive - Tablet and up */
@media (min-width: 600px) {
  .album-art {
    width: 280px;
    height: 280px;
  }

  .track-title {
    font-size: 1.5rem;
  }

  .playback-controls {
    gap: 2rem;
  }

  .btn-play {
    width: 72px;
    height: 72px;
  }

  .btn-play svg {
    width: 36px;
    height: 36px;
  }
}

/* Responsive - Desktop */
@media (min-width: 900px) {
  .lobby-view {
    max-width: 800px;
    margin: 0 auto;
  }
}

/* Landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .now-playing {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
  }

  .album-art {
    width: 120px;
    height: 120px;
    margin: 0;
    flex-shrink: 0;
  }

  .track-info {
    text-align: left;
    margin: 0;
    flex: 1;
  }

  .progress-container {
    padding: 0;
    margin: 0.5rem 0;
  }

  .playback-controls {
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .btn-play {
    width: 48px;
    height: 48px;
  }
}

/* Dark mode scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Disabled state */
.btn:disabled, .btn-icon:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Audio unlock prompt for mobile Safari */
.audio-unlock-prompt {
  position: fixed;
  bottom: calc(100px + var(--safe-area-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  animation: unlock-pulse 2s ease-in-out infinite;
}

.audio-unlock-prompt .unlock-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--primary);
  color: var(--bg-dark);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(29, 185, 84, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.audio-unlock-prompt .unlock-content:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(29, 185, 84, 0.5);
}

.audio-unlock-prompt .unlock-content:active {
  transform: scale(0.98);
}

.audio-unlock-prompt svg {
  flex-shrink: 0;
}

@keyframes unlock-pulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.02);
  }
}

/* Dashboard View */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  padding-top: calc(1rem + var(--safe-area-top));
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--bg-surface);
}

.dashboard-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.dashboard-uptime {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.dashboard-content {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-elevated);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-lobbies h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.dashboard-lobby-list {
  list-style: none;
}

.dashboard-lobby-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-elevated);
  border-radius: var(--border-radius);
  margin-bottom: 0.75rem;
}

.dashboard-lobby-id {
  font-family: monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-surface);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.dashboard-lobby-info {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.dashboard-lobby-track {
  color: var(--text-muted);
  font-style: italic;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-lobby-track.playing::before {
  content: '▶ ';
  color: var(--primary);
}

.dashboard-lobby-age {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dashboard-lobby-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-small {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
}

.btn-danger {
  background: #dc3545;
}

.btn-danger:hover {
  background: #c82333;
}

.dashboard-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-radius: var(--border-radius);
}

/* Cache Management Section */
.dashboard-cache {
  margin-top: 2rem;
}

.cache-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cache-header h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0;
}

.cache-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cache-stat {
  background: var(--bg-elevated);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  text-align: center;
}

.cache-stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.125rem;
}

.cache-stat-label {
  font-size: 0.625rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cache-song-list {
  list-style: none;
  max-height: 400px;
  overflow-y: auto;
}

.cache-song-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-elevated);
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
}

.cache-song-thumb {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--bg-surface);
  flex-shrink: 0;
}

.cache-song-thumb-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cache-song-thumb-placeholder svg {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
}

.cache-song-info {
  flex: 1;
  min-width: 0;
}

.cache-song-title {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.125rem;
}

.cache-song-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.cache-song-status {
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
}

.cache-song-status.ready {
  background: rgba(29, 185, 84, 0.2);
  color: var(--primary);
}

.cache-song-status.downloading {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.cache-song-status.pending {
  background: rgba(108, 117, 125, 0.2);
  color: #6c757d;
}

.cache-song-status.error {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.cache-song-actions {
  display: flex;
  gap: 0.375rem;
  flex-shrink: 0;
}

.cache-song-actions .btn-icon {
  width: 32px;
  height: 32px;
}

.cache-song-actions .btn-icon svg {
  width: 16px;
  height: 16px;
}

/* Rejoin Lobby Prompt */
.rejoin-prompt {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 2rem);
  max-width: 360px;
  animation: rejoin-slide-up 0.3s ease;
}

.rejoin-content {
  background: var(--bg-elevated);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--bg-surface);
  text-align: center;
}

.rejoin-content p {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.rejoin-lobby-id {
  font-family: monospace;
  font-size: 0.875rem;
  color: var(--primary);
  background: var(--bg-surface);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  display: inline-block;
}

.rejoin-actions {
  display: flex;
  gap: 0.75rem;
}

.rejoin-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--text-muted);
}

@keyframes rejoin-slide-up {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
