:root {
  --ground: #0E0F11;
  --raised: #17191C;
  --sunk:   #0A0B0C;
  --line:   #24272B;
  --line-2: #33373C;
  --ink:    #F3F2F0;
  --ink-2:  #9C9B98;
  --ink-3:  #6A6967;
  --ok:     #4FBF9A;
  --wait:   #6E9BD1;
  --brand:  #E0A458;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
}

a { color: var(--brand); text-decoration: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

button { font-family: var(--sans); cursor: pointer; }
button:disabled { cursor: not-allowed; }

.wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px;
}

.pad-top { padding-top: max(28px, env(safe-area-inset-top)); }
.pad-bot { padding-bottom: max(28px, env(safe-area-inset-bottom)); }

.studio {
  display: flex; align-items: center; gap: 9px;
  font-size: 10.5px; letter-spacing: .19em; text-transform: uppercase;
  color: var(--brand); font-weight: 600;
}

.display {
  font-family: var(--serif);
  font-size: clamp(38px, 13vw, 54px);
  line-height: .99;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}

.eyebrow {
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2);
}

.muted  { color: var(--ink-2); font-size: 14px; }
.tiny   { color: var(--ink-3); font-size: 12px; }
.stack  { display: flex; flex-direction: column; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 0 18px;
  border: 0; border-radius: 3px;
  background: var(--brand); color: #14100C;
  font-size: 16px; font-weight: 700;
}
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-2); font-weight: 500; font-size: 15px; min-height: 52px;
}
.btn:disabled { background: #2A2C30; color: #5C6167; }

.card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 15px 17px;
}

/* --- écran d'arrivée --- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.hero__glow {
  position: absolute; inset: 0 0 auto 0; height: 52vh; pointer-events: none;
  background:
    radial-gradient(38% 30% at 72% 26%, color-mix(in srgb, var(--brand) 26%, transparent) 0%, transparent 70%),
    radial-gradient(120% 90% at 25% 18%, #7A5636 0%, #3A2A1D 42%, #14100C 78%);
  opacity: .85;
}
.hero__fade {
  position: absolute; left: 0; right: 0; top: 24vh; height: 30vh; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, var(--ground) 88%);
}
.hero__inner { position: relative; flex: 1; display: flex; flex-direction: column; gap: 0; }
.spacer { flex: 1 1 auto; min-height: 24px; }

.avatars { display: flex; }
.avatars i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--raised); display: block; }
.avatars i + i { margin-left: -10px; }

/* --- galerie --- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 34px; padding: 0 15px; border-radius: 17px;
  border: 1px solid var(--line-2); background: transparent; color: #C8C6C3;
  font-size: 13px; font-weight: 500;
}
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #14100C; }

.masonry { display: flex; gap: 5px; align-items: flex-start; }
.masonry__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.tile {
  display: block; width: 100%; border: 0; padding: 0; border-radius: 2px;
  background: #1A1D20 center/cover no-repeat; overflow: hidden; position: relative;
}
.tile img { display: block; width: 100%; height: auto; }
.tile__play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(10,11,13,.28);
}

.live { display: flex; align-items: center; gap: 7px; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); display: block; }

/* --- file d'attente --- */
.queue { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; }
.queue__inner {
  max-width: 520px; margin: 0 auto;
  padding: 14px 20px max(18px, env(safe-area-inset-bottom));
  background: var(--raised); border-top: 1px solid var(--line);
}
.bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); width: 0; transition: width .25s ease; }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 15px; border-radius: 3px;
  background: #131A22; border: 1px solid #24303C; color: #7F94AB; font-size: 13px; line-height: 1.45;
}
.notice b { color: #A9C6E6; display: block; font-size: 14px; margin-bottom: 3px; }

.fab {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 0 20px max(18px, env(safe-area-inset-bottom));
  pointer-events: none;
}
.fab__inner { max-width: 520px; margin: 0 auto; display: flex; gap: 10px; pointer-events: auto; }
.fab__scrim {
  position: fixed; left: 0; right: 0; bottom: 0; height: 130px; z-index: 29; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, var(--ground) 62%);
}

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
