/* Layout: phone-sized story deck beside a quiet notes column. The UI stays neutral (ink, bone, stone);
   all colour comes from the group's own photos, and each slide is tinted from the photo it shows. */
:root {
  --ink: #0e0e0f;
  --surface: #161617;
  --raise: #1e1e20;
  --line: #2b2b2e;
  --bone: #f2efe9;
  --stone: #a19e98;
  --hi: #f1c46a;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { background: var(--ink); color: var(--bone); }
body { font-family: var(--body); font-size: 16px; line-height: 1.45; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0 40px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }

/* ---------- top bar ---------- */
.top { max-width: 1060px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-block: 18px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.brand { margin-right: auto; display: flex; align-items: baseline; gap: 10px; }
.brand b { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: 0.01em; }
.brand small { font-size: 12px; color: var(--stone); letter-spacing: 0.1em; text-transform: uppercase; }
.vibe { display: flex; align-items: center; gap: 8px; }
.seg-label { font-size: 12px; color: var(--stone); letter-spacing: 0.08em; text-transform: uppercase; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 999px; font-size: 14px; color: var(--stone); }
.seg button[aria-pressed="true"] { background: var(--bone); color: var(--ink); font-weight: 700; }
.btn { border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 15px; background: var(--bone); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--bone); border: 1px solid rgba(242, 239, 233, 0.35); }
.btn:disabled { opacity: 0.5; cursor: progress; }

/* ---------- stage ---------- */
.stage { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 880px) { .stage { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 32px; } }
.deck { width: 100%; max-width: 420px; }
.source { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--stone); margin-bottom: 10px; min-width: 0; }
.source span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.story { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 82vh; border-radius: 18px; overflow: hidden; background: var(--surface); user-select: none; -webkit-user-select: none; }
@media (max-width: 460px) { .story { aspect-ratio: auto; height: min(76vh, 720px); max-height: none; } }
.bars { position: absolute; z-index: 6; top: 10px; left: 12px; right: 12px; display: flex; gap: 3px; }
.bars i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); }
.bars i.on { background: rgba(255, 255, 255, 0.95); }

.slide { --tint: 30, 30, 32; position: absolute; inset: 0; background: rgb(var(--tint)); color: #fff; overflow: hidden; }
.slide.enter .content { animation: rise 0.45s cubic-bezier(.2, .8, .2, 1); }
.slide.enter .photo { animation: zoom 6s ease-out both; }
@keyframes rise { from { transform: translateY(12px); opacity: 0.5; } to { transform: none; opacity: 1; } }
@keyframes zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .slide.enter .content, .slide.enter .photo { animation: none; } }
.photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.slide.half .photo { bottom: 42%; }
.scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--tint), 0.35) 0%, rgba(var(--tint), 0) 22%, rgba(var(--tint), 0.15) 45%, rgba(var(--tint), 0.92) 72%, rgb(var(--tint)) 100%); }
.slide.half .scrim { background: linear-gradient(180deg, rgba(var(--tint), 0.4) 0%, rgba(var(--tint), 0) 18%, rgba(var(--tint), 0.2) 40%, rgb(var(--tint)) 58%); }
.slide.plain .scrim { background: radial-gradient(120% 60% at 100% 0%, rgba(255, 255, 255, 0.08), transparent 60%); }
.content { position: absolute; inset: 0; padding: 36px 22px 22px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; overscroll-behavior: contain; }
.content.bottom { justify-content: flex-end; }
.cap { position: absolute; z-index: 2; top: 22px; right: 14px; font-size: 11px; color: rgba(255, 255, 255, 0.85); background: rgba(0, 0, 0, 0.35); padding: 2px 8px; border-radius: 999px; backdrop-filter: blur(6px); }

.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.huge { font-family: var(--display); font-stretch: 68%; font-weight: 850; font-size: clamp(48px, 15vw, 68px); line-height: 0.9; text-transform: uppercase; letter-spacing: -0.005em; overflow-wrap: anywhere; }
.big { font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: 32px; line-height: 0.98; text-transform: uppercase; overflow-wrap: anywhere; }
.sub { font-size: 17px; line-height: 1.35; color: rgba(255, 255, 255, 0.9); }
.note { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.push { margin-top: auto; }
.tap { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.num { font-variant-numeric: tabular-nums; }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.trio div { padding: 10px 8px 0 0; }
.trio b { display: block; font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.trio span { font-size: 12px; color: rgba(255, 255, 255, 0.72); }

.rank { display: grid; gap: 8px; }
.rank .r { display: grid; grid-template-columns: 28px minmax(0, 6em) minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 14px; }
.rank .r span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank .bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.rank .bar i { display: block; height: 100%; background: #fff; }
.av { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.18) center / cover; display: grid; place-items: center; font-size: 12px; font-weight: 700; overflow: hidden; }

.facts { display: grid; gap: 0; }
.fact { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.2); align-items: start; }
.fact .av { width: 40px; height: 40px; font-size: 15px; }
.fact .lab { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
.fact .who { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 24px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.fact p { margin: 3px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.85); }

.hours { display: flex; align-items: flex-end; gap: 2px; height: 90px; }
.hours i { flex: 1; background: rgba(255, 255, 255, 0.35); border-radius: 2px 2px 0 0; min-height: 2px; }
.hours i.pk { background: var(--hi); }
.hlab { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255, 255, 255, 0.65); font-variant-numeric: tabular-nums; margin-top: 4px; }

.collage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.collage div { aspect-ratio: 3 / 4; background: rgba(255, 255, 255, 0.1) center / cover; border-radius: 6px; }
.collage div:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

.meter { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.meter i { display: block; height: 100%; background: #fff; }
.emo { display: flex; flex-wrap: wrap; gap: 14px; }
.emo div { display: flex; flex-direction: column; align-items: center; }
.emo b { font-size: 30px; line-height: 1.1; }
.emo span { font-size: 12px; color: rgba(255, 255, 255, 0.75); font-variant-numeric: tabular-nums; }
.words { font-family: var(--display); font-stretch: 70%; font-weight: 700; font-size: 22px; line-height: 1.15; text-transform: uppercase; color: rgba(255, 255, 255, 0.92); }
.words span { color: rgba(255, 255, 255, 0.4); }

.awards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
.award { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px; align-items: center; min-width: 0; }
.award .av { width: 36px; height: 36px; }
.award .t { font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); display: block; }
.award .w { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 17px; text-transform: uppercase; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roasts { display: grid; gap: 0; }
.roast { padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.roast b { font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 15px; }
.roast .rt { font-size: 12px; color: var(--hi); font-weight: 700; margin-left: 6px; }
.roast p { margin: 2px 0 0; font-size: 15px; }
.verdict { font-size: 17px; font-weight: 500; }
.status { font-size: 14px; color: rgba(255, 255, 255, 0.75); min-height: 1.2em; }
.status.err { color: #ffc9b8; }

.single { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: end; }
.cover { width: 96px; aspect-ratio: 1; border-radius: 6px; background: rgba(255, 255, 255, 0.12) center / cover; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7); }
.single h3 { font-family: var(--display); font-stretch: 72%; font-weight: 850; font-size: 26px; line-height: 0.95; text-transform: uppercase; overflow-wrap: anywhere; }
.styles { display: flex; flex-wrap: wrap; gap: 6px; }
.styles button { border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; border-radius: 999px; padding: 4px 11px; font-size: 13px; color: #fff; }
.styles button[aria-pressed="true"] { background: #fff; color: #111; border-color: #fff; font-weight: 700; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.slide .btn { background: #fff; color: #111; }
.slide .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.lyrics { display: grid; gap: 2px; user-select: text; -webkit-user-select: text; }
.lyrics .part { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); margin-top: 10px; }
.lyrics .ln { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 3px 0; color: rgba(255, 255, 255, 0.62); transition: color 0.2s; }
.lyrics .ln.now { color: #fff; }
.lyrics .ln.now .tx { text-decoration: underline; text-decoration-color: var(--hi); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lyrics .who { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lyrics .tx { font-size: 16px; font-weight: 500; line-height: 1.3; }
.tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.eq { display: inline-flex; gap: 3px; align-items: flex-end; height: 14px; vertical-align: middle; }
.eq i { width: 3px; background: currentColor; border-radius: 2px; animation: eq 0.8s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s; } .eq i:nth-child(3) { animation-delay: -0.55s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
@media (prefers-reduced-motion: reduce) { .eq i { animation: none; height: 10px; } }

.nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-top: 12px; }
.nav .pn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-size: 14px; }
.nav .pn:disabled { opacity: 0.4; cursor: default; }
.storybtn { justify-self: center; display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--bone); color: var(--ink); border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 14px; }
.storybtn svg { width: 18px; height: 18px; }
.counter { text-align: center; font-size: 12px; color: var(--stone); margin-top: 8px; font-variant-numeric: tabular-nums; }

/* ---------- notes column ---------- */
.notes { display: grid; gap: 26px; min-width: 0; max-width: 560px; padding-top: 24px; }
.notes h1 { font-family: var(--display); font-stretch: 70%; font-weight: 850; font-size: clamp(40px, 6vw, 64px); line-height: 0.92; text-transform: uppercase; }
.notes p { margin: 0; color: var(--stone); max-width: 62ch; }
.notes h2 { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone); margin-bottom: 10px; }
.steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; color: var(--stone); }
.steps li::before { counter-increment: s; content: counter(s); font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--bone); line-height: 1.3; }
.steps b { color: var(--bone); font-weight: 600; }
.privacy { border-top: 1px solid var(--line); padding-top: 14px; font-size: 14px; color: var(--stone); }
.privacy b { color: var(--bone); font-weight: 600; }
.next { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.next div { font-size: 14px; color: var(--stone); border-top: 1px solid var(--line); padding-top: 8px; }
.next b { display: block; color: var(--bone); font-weight: 600; }

/* ---------- sheets ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(5, 5, 6, 0.78); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.box { width: 100%; max-width: 520px; max-height: 100%; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 14px; }
.box h2 { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 26px; text-transform: uppercase; }
.box ol { margin: 0; padding-left: 20px; color: var(--stone); display: grid; gap: 4px; font-size: 15px; }
.box ol b { color: var(--bone); font-weight: 600; }
.drop { border: 1px dashed #4a4a4f; border-radius: 14px; padding: 16px; display: grid; gap: 6px; justify-items: center; text-align: center; }
.drop.over { border-color: var(--bone); background: rgba(242, 239, 233, 0.05); }
.drop input { max-width: 100%; font-size: 14px; }
.drop .note { color: var(--stone); }
.field { display: grid; gap: 4px; font-size: 14px; color: var(--stone); }
.field input, .field textarea { background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; color: var(--bone); width: 100%; }
.field textarea { min-height: 80px; resize: vertical; font-size: 13px; }
.box .row { justify-content: flex-end; }
.box .status { color: var(--stone); }
.box .status.err { color: #ffb4a2; }
.storyprev { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 16px; align-items: start; }
.storyprev img { width: 100%; border-radius: 10px; display: block; }
.storyprev ol { font-size: 14px; }
@media (max-width: 420px) { .storyprev { grid-template-columns: minmax(0, 1fr); } .storyprev img { max-width: 180px; } }

/* ---------- song audio ---------- */
audio { width: 100%; height: 40px; border-radius: 999px; }
.pick { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.pick select { font: inherit; color: #fff; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 8px; padding: 4px 8px; }
.pick select option { color: #111; }
a.btn { text-decoration: none; display: inline-block; }
.foot { max-width: 1060px; margin: 48px auto 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--stone); }
.foot a { color: var(--bone); }
.legal { max-width: 680px; margin: 0 auto; padding-block: 32px; }
.legal h1 { font-family: var(--display); font-stretch: 72%; font-weight: 850; font-size: 44px; text-transform: uppercase; margin-bottom: 8px; }
.legal h2 { font-family: var(--display); font-stretch: 78%; font-weight: 800; font-size: 24px; text-transform: uppercase; margin: 36px 0 8px; }
.legal p, .legal li { color: var(--stone); max-width: 65ch; }
.legal a { color: var(--bone); }
.legal mark { background: var(--hi); color: #111; padding: 0 4px; border-radius: 3px; }
