/* Auto Party Controller — Shared Styles */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --accent: #6366F1;
  --bg: #0D0D2B;
  --bg2: #1A1A3E;
  --text: #F9FAFB;
  --text-muted: #9CA3AF;
  --success: #22C55E;
  --danger: #EF4444;
  --warn: #F59E0B;
  --radius: 16px;
  --touch-min: 64px;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

h1 { font-size: 1.8rem; color: var(--accent); margin-bottom: 8px; }
h2 { font-size: 1.4rem; margin-bottom: 8px; }
p  { color: var(--text-muted); font-size: 1rem; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  max-width: 360px;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 0.1s, transform 0.1s;
}
.btn:active { opacity: 0.8; transform: scale(0.97); }
.btn.secondary { background: var(--bg2); border: 2px solid var(--accent); }
.btn.danger    { background: var(--danger); }
.btn.success   { background: var(--success); }
.btn.disabled  { opacity: 0.4; pointer-events: none; }

input[type="text"] {
  width: 100%;
  max-width: 360px;
  padding: 14px 20px;
  background: var(--bg2);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1.1rem;
  outline: none;
}
input[type="text"]:focus { border-color: var(--accent); }

.screen { display: none; flex-direction: column; align-items: center; gap: 16px; width: 100%; max-width: 400px; }
.screen.active { display: flex; }

.badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(99,102,241,0.2);
  border: 1px solid var(--accent);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--accent);
}

.player-list { width: 100%; max-width: 360px; }
.player-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.player-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content:center; font-size:1rem; }

.color-btn {
  min-height: 80px;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  flex: 1;
  transition: opacity 0.1s, transform 0.1s;
}
.color-btn:active { opacity: 0.7; transform: scale(0.95); }

.big-btn {
  min-height: 180px;
  font-size: 2rem;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  width: 100%;
  max-width: 360px;
  font-weight: bold;
  transition: opacity 0.1s, transform 0.1s;
}
.big-btn:active { opacity: 0.7; transform: scale(0.96); }

.status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.status-dot.connected { background: var(--success); }
