.app {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s2);
  min-height: 100vh;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s3);
}

.header-brand {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.header-user {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--s1);
}

.header-user button {
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}
.header-user button:hover { color: var(--text); }

/* Views */
.view { display: none; }
.view.active { display: block; }

/* Auth view */
.auth-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: var(--s3);
}

.auth-form {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 300;
  text-align: center;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.auth-toggle {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}
.auth-toggle a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* Body padding when player visible */
body.player-active {
  padding-bottom: 56px;
}

@media (max-width: 600px) {
  .app { padding: 0 var(--s2); }
  .header { padding: var(--s2) 0; margin-bottom: var(--s2); }
  body.player-active { padding-bottom: 48px; }
}
