/* ─────────────────────────────────────────────────────────────
   +++ — Band Website
   Dark · Minimal · Cinematic
───────────────────────────────────────────────────────────── */

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

:root {
  --bg:      #080808;
  --fg:      #ede8df;      /* warm off-white */
  --muted:   #484440;      /* dim warm grey */
  --line:    rgba(237, 232, 223, 0.09);
  --player-h: 136px;
  --nav-h:    88px;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Navigation ──────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 52px;
  pointer-events: none;
}
nav * { pointer-events: all; }

.nav-brand {
  font-size: 0.88rem;
  letter-spacing: 0.28em;
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
  font-weight: 400;
  opacity: 0.9;
  transition: opacity 0.2s;
  user-select: none;
}
.nav-brand:hover { opacity: 1; }

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-link {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
  user-select: none;
}
.nav-link:hover { color: var(--fg); }
.nav-link.active { color: var(--fg); }

/* ── Pages ───────────────────────────────────────────────── */

.page {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
  will-change: opacity;
}

.page.active {
  opacity: 1;
  pointer-events: all;
}

/* ── HOME ────────────────────────────────────────────────── */

#page-home {
  flex-direction: column;
}

.logo {
  display: block;
  width: clamp(280px, 52vmin, 560px);
  filter: invert(1);
  opacity: 0;
  transform: scale(0.93) translateY(6px);
  transition:
    opacity   2s    cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 2.4s  cubic-bezier(0.16, 1, 0.3, 1);
}

.logo.visible {
  opacity: 0.88;
  transform: scale(1) translateY(0);
}

.logo { cursor: pointer; }

/* ── DERNIER EP ──────────────────────────────────────────── */

#page-release {
  flex-direction: column;
  padding-top: var(--nav-h);
  padding-bottom: var(--player-h);
}

.release-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* Cover art */
.cover-link {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}

.cover {
  display: block;
  width: clamp(200px, 34vmin, 300px);
  height: clamp(200px, 34vmin, 300px);
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              filter   0.5s ease;
  filter: brightness(0.85) saturate(0.9);
}

.cover-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 8, 0.55);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.cover-hover span {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--fg);
}

.cover-link:hover .cover {
  transform: scale(1.025);
  filter: brightness(0.8) saturate(0.85);
}
.cover-link:hover .cover-hover {
  opacity: 1;
}

/* EP info */
.release-info {
  text-align: center;
}

.ep-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--fg);
  margin-bottom: 7px;
}

.ep-meta {
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── AUDIO PLAYER ────────────────────────────────────────── */

.player {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  padding: 0 52px 32px;
  background: linear-gradient(to top, var(--bg) 60%, transparent);
  transition: opacity 0.5s ease;
}

.player--hidden {
  opacity: 0;
  pointer-events: none;
}

/* Tracklist */
.tracklist {
  display: flex;
  gap: 28px;
  margin-bottom: 10px;
}

.tracklist-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}

.tracklist-btn:hover  { color: var(--fg); }
.tracklist-btn.active { color: var(--fg); }

/* Waveform canvas */
.viz-wrap {
  width: 100%;
  height: 54px;
  margin-bottom: 12px;
}

#vizCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Controls row */
.player-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.track-label {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 90px;
  white-space: nowrap;
}

/* Play / Pause button */
.btn-play {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg);
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.btn-play:hover { opacity: 1; }

.ico {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* Progress bar */
.progress-wrap {
  flex: 1;
  padding: 12px 0;
  cursor: pointer;
}

.progress-track {
  width: 100%;
  height: 1px;
  background: var(--line);
  position: relative;
}

.progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--fg);
  transition: width 0.1s linear;
  pointer-events: none;
}

.progress-wrap:hover .progress-track {
  background: rgba(237, 232, 223, 0.18);
}

/* Time */
.time-display {
  font-family: 'Space Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  min-width: 78px;
  text-align: right;
}
.t-sep { margin: 0 4px; }

/* ── CONCERTS ────────────────────────────────────────────── */

#page-concerts {
  flex-direction: column;
  align-items: center;
}

.concerts-content {
  width: min(580px, 82vw);
}

.concerts-header {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 44px;
}

.concerts-label {
  font-size: 0.58rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.concerts-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.concerts-soon {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 28px 0;
}

/* Concert row — used when events are added */
.concert-row {
  display: grid;
  grid-template-columns: 106px 1fr auto auto;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.c-date {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.c-venue {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.c-city {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.c-ticket {
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--muted);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.c-ticket:hover {
  color: var(--fg);
  border-color: var(--fg);
}

.c-date-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}
.c-date-link:hover { color: var(--fg); }

/* ── Booking game ────────────────────────────────────────── */

#page-booking {
  display: block;
  position: fixed;
  inset: 0;
  overflow: hidden;
}

/* start / end screens */
#bkStart, #bkEnd {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding: 40px;
}

.bk-headline {
  font-family: 'Space Mono', monospace;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--fg);
}

.bk-sub {
  font-size: clamp(0.8rem, 2vw, 1rem);
  color: var(--muted);
  line-height: 1.6;
}

.bk-cta {
  margin-top: 12px;
  background: none;
  border: 1px solid var(--fg);
  color: var(--fg);
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  padding: 10px 28px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.bk-cta:hover { opacity: 0.55; }

.bk-end-title {
  font-family: 'Space Mono', monospace;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--fg);
}

.bk-end-msg {
  font-size: clamp(0.8rem, 2vw, 1rem);
  color: var(--muted);
  max-width: 380px;
  line-height: 1.6;
}

/* game screen */
#bkGame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.bk-hud {
  display: grid;
  grid-template-columns: 4rem 1fr 4rem;
  align-items: center;
  padding: 10px 20px;
  padding-top: calc(var(--nav-h) + 4px);
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  flex-shrink: 0;
  gap: 12px;
}
#bkScore { text-align: left; }
#bkTimer { text-align: right; }

/* rejection / confirmation message bar */
.bk-msg {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(0.7rem, 1.6vw, 0.88rem);
  color: var(--fg);
  opacity: 0;
  transition: opacity 0.2s;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.bk-msg.visible { opacity: 1; }

#bkMapWrap {
  position: relative;
  flex: 1;
  overflow: hidden;
}

#bkCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* urgent timer */
.bk-timer--urgent { color: #c0392b !important; }

/* ── Platformer — L'Ascension ────────────────────────────── */

#page-platformer {
  display: block;
  position: fixed;
  inset: 0;
  overflow: hidden;
}

#pltStart, #pltEnd {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding: 40px;
  padding-top: calc(var(--nav-h) + 40px);
}

.plt-headline {
  font-family: 'Space Mono', monospace;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--fg);
}

.plt-sub {
  font-size: clamp(0.76rem, 1.8vw, 0.92rem);
  color: var(--muted);
  line-height: 1.75;
}

.plt-cta {
  margin-top: 12px;
  background: none;
  border: 1px solid var(--fg);
  color: var(--fg);
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  padding: 10px 28px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.plt-cta:hover { opacity: 0.55; }

.plt-end-score {
  font-family: 'Space Mono', monospace;
  font-size: clamp(2.4rem, 7vw, 4rem);
  color: var(--fg);
  line-height: 1;
}

.plt-end-title {
  font-family: 'Space Mono', monospace;
  font-size: clamp(1rem, 2.8vw, 1.5rem);
  color: var(--fg);
}

.plt-end-msg {
  font-size: clamp(0.76rem, 1.8vw, 0.92rem);
  color: var(--muted);
  max-width: 400px;
  line-height: 1.65;
  font-style: italic;
}

#pltCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

#pltCtrl {
  display: none;
  position: fixed;
  bottom: 28px;
  left: 0; right: 0;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  pointer-events: none;
  z-index: 20;
}
#pltCtrl.active { display: flex; }

.plt-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  background: rgba(8,8,8,0.65);
  color: var(--fg);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: all;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}
.plt-btn:active { background: rgba(237,232,223,0.15); }
.plt-btn-j { width: 72px; height: 72px; font-size: 1.6rem; }

@media (hover: hover) and (pointer: fine) {
  #pltCtrl { display: none !important; }
}

/* ── Quiz page ───────────────────────────────────────────── */

#page-quiz {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.quiz-wrap {
  width: min(480px, 84vw);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.quiz-wrap.fade-out {
  opacity: 0;
  transform: translateY(8px);
}

.quiz-counter {
  font-family: 'Space Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 24px;
}

.quiz-q {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--fg);
  margin-bottom: 32px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
}

.quiz-opt {
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  padding: 13px 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  gap: 18px;
  align-items: baseline;
  font-family: 'Space Grotesk', sans-serif;
}

.quiz-opt:last-child {
  border-bottom: 1px solid var(--line);
}

.quiz-opt-letter {
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  color: var(--fg);
  flex-shrink: 0;
  width: 14px;
  transition: color 0.2s, opacity 0.2s;
}

.quiz-opt-text {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--fg);
  line-height: 1.5;
  transition: color 0.2s, opacity 0.2s;
}

.quiz-opt:focus,
.quiz-opt:focus-visible { outline: none; }

.quiz-opt.correct .quiz-opt-text,
.quiz-opt.correct .quiz-opt-letter { color: var(--fg); opacity: 1; }

.quiz-opt.wrong .quiz-opt-text,
.quiz-opt.wrong .quiz-opt-letter { opacity: 0.15; }

.quiz-opt:disabled { cursor: default; }

/* Result screen */
.quiz-score {
  font-family: 'Space Mono', monospace;
  font-size: clamp(2.5rem, 8vw, 4rem);
  letter-spacing: -0.02em;
  color: var(--fg);
  text-align: center;
  margin-bottom: 12px;
}

.quiz-msg {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 44px;
}

.quiz-replay {
  background: none;
  border: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
  display: block;
  margin: 0 auto;
  padding: 0;
}
.quiz-replay:hover { color: var(--fg); }

/* ── Particle overlay ─────────────────────────────────────── */

#particleOverlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500;
  overflow: hidden;
}

/* ── Surprise page ───────────────────────────────────────── */

#page-surprise {
  overflow: hidden;
}

.plus-particle {
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  color: var(--fg);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  will-change: transform;
}

/* ── Social links ────────────────────────────────────────── */

.social-links {
  position: fixed;
  bottom: 32px;
  left: 52px;
  z-index: 90;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: opacity 0.4s ease;
}

.social-links--hidden {
  opacity: 0;
  pointer-events: none;
}

.social-link {
  color: var(--muted);
  transition: color 0.2s;
  line-height: 0;
}

.social-link:hover {
  color: var(--fg);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 600px) {
  .social-links {
    left: 24px;
    bottom: 24px;
  }
}

/* ── Mobile ──────────────────────────────────────────────── */

@media (max-width: 600px) {

  /* Tighter nav padding */
  nav {
    padding: 24px 24px;
  }

  /* Bigger touch target on play button */
  .btn-play {
    width: 44px;
    height: 44px;
  }

  /* Tighter player padding */
  .player {
    padding: 0 24px 28px;
  }

  /* Hide track label to save space in player row */
  .track-label {
    display: none;
  }

  /* Concert grid: stack into 2 rows instead of 4 columns */
  .concert-row {
    grid-template-columns: 90px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 16px;
    padding: 16px 0;
  }

  .c-date {
    grid-column: 1;
    grid-row: 1;
  }

  .c-venue {
    grid-column: 2;
    grid-row: 1;
  }

  .c-city {
    grid-column: 1;
    grid-row: 2;
  }

  .c-ticket {
    grid-column: 2;
    grid-row: 2;
  }

  /* Concerts container full width */
  .concerts-content {
    width: 90vw;
  }
}
