/* Spotify Jam — page pour rejoindre (v2) */
:root {
  --bg: #0A0C11;
  --card: #12151C;
  --line: #242A35;
  --input-line: #2E3644;
  --text: #F1F3F7;
  --text-2: #C9D0DB;
  --muted: #9BA4B4;
  --accent: #4ADE80;
  --accent-ink: #052E16;
  --orange: #FB923C;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 16px/1.45 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #60A5FA; outline-offset: 3px; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

.join {
  position: relative; overflow: hidden; min-height: 100vh; min-height: 100dvh;
  max-width: 480px; margin: 0 auto; padding: max(56px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center;
}
.glow { position: absolute; left: 50%; top: -220px; width: 520px; height: 520px; margin-left: -260px; border-radius: 50%; background: #0F2A1C; z-index: -1; }
.logo { width: 76px; height: 76px; border-radius: 24px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 18px 50px rgba(74, 222, 128, .25); }
.logo svg { width: 38px; height: 38px; }
.head { display: flex; flex-direction: column; gap: 8px; }
h1 { margin: 0; font-family: "Space Grotesk", Inter, sans-serif; font-size: 34px; line-height: 1.05; letter-spacing: -.01em; }
.head p { margin: 0; color: var(--text-2); font-size: 16px; }

.alert { width: 100%; padding: 14px 16px; border-radius: 16px; background: #2A1810; border: 1px solid #4A2A16; color: #FED7AA; font-weight: 600; text-align: left; }

form { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.digits { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.digits.shake { animation: shake .4s; }
.digits input {
  width: 100%; height: 84px; border-radius: 20px; border: 2px solid var(--input-line); background: var(--card); color: var(--text);
  text-align: center; font: 700 40px "JetBrains Mono", ui-monospace, monospace; caret-color: var(--accent); padding: 0;
}
.digits input:focus { outline: none; border-color: var(--accent); background: #0F1A14; }
.digits input.filled { border-color: #3F7A55; }
.go { height: 58px; border: 0; border-radius: 18px; background: var(--accent); color: var(--accent-ink); font: 700 18px Inter, sans-serif; cursor: pointer; }
.go:disabled { background: #1C2A21; color: #5E7A68; cursor: default; }

.status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #5B6474; }
.status.open .dot { background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
.status.closed .dot { background: var(--orange); }

.steps { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.steps b { width: 28px; height: 28px; border-radius: 50%; background: #242A35; color: var(--text); display: grid; place-items: center; font-size: 14px; }

.host-link { margin-top: auto; color: var(--muted); font-size: 14px; }
.host-link:hover { color: var(--text-2); }

@media (max-width: 360px) {
  .digits input { height: 72px; font-size: 34px; }
  h1 { font-size: 30px; }
}
