/* 90s New Year's Eve — VHS, cassette, brush red, a little neon. */
:root {
  --bg: #0e0c12;
  --bg2: #17141d;
  --card: #1d1924;
  --line: #2e2838;
  --ink: #f4ecdf;
  --muted: #b3a9bd;
  --red: #e3262f;
  --red-d: #b51c24;
  --cyan: #3ef0ff;
  --pink: #ff3ec8;
  --lime: #c6ff3e;
  --yellow: #ffd23e;
  --ok: #3ee08f;
  --r: 16px;
  --brush: 'Rubik Spray Paint', 'Rubik', system-ui, sans-serif;
  --marker: 'Permanent Marker', 'Rubik', cursive;
  --mono: 'VT323', ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 'Rubik', system-ui, sans-serif;
  min-height: 100vh; overflow-x: hidden;
}
a { color: var(--cyan); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* film grain + scanlines over everything, never in the way */
body::before, body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 50;
}
body::before {
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
}
body::after {
  opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14,12,18,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 10px; height: 56px; }
.logo { font-family: var(--marker); color: var(--ink); text-decoration: none; font-size: 20px; letter-spacing: .5px; direction: ltr; }
.logo b { color: var(--red); font-weight: 400; }
.top .sp { flex: 1; }
.top .who { color: var(--muted); font-size: 14px; text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--red); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none;
  box-shadow: 0 4px 0 var(--red-d), 0 10px 30px rgba(227,38,47,.35);
  transition: transform .12s, box-shadow .12s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--red-d); }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn.cyan { background: var(--cyan); color: #06222a; box-shadow: 0 4px 0 #1aa9b8; }
.btn.green { background: var(--ok); color: #062a17; box-shadow: 0 4px 0 #1f9a5e; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.linkbtn { background: none; border: 0; color: var(--cyan); cursor: pointer; padding: 10px 4px; min-height: 44px; text-decoration: underline; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 26px 0 34px; text-align: center; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto; height: 120%;
  background:
    radial-gradient(40% 35% at 20% 20%, rgba(255,62,200,.22), transparent 70%),
    radial-gradient(40% 35% at 85% 30%, rgba(62,240,255,.18), transparent 70%),
    radial-gradient(60% 40% at 50% 100%, rgba(227,38,47,.25), transparent 70%);
  z-index: -1;
}
.vhs {
  display: flex; justify-content: space-between; font-family: var(--mono); font-size: 22px;
  color: #fff; opacity: .85; direction: ltr; text-shadow: 2px 0 var(--pink), -2px 0 var(--cyan);
}
.vhs .rec::before { content: '●'; color: var(--red); margin-right: 6px; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.title {
  font-family: var(--brush); color: var(--red); font-weight: 400;
  font-size: clamp(54px, 16vw, 104px); line-height: .95; margin: 22px 0 6px;
  transform: rotate(-3deg); text-shadow: 0 3px 0 rgba(0,0,0,.6);
}
.b90 {
  font-family: var(--marker); font-size: clamp(30px, 9vw, 50px); direction: ltr;
  display: inline-block; transform: rotate(-3deg); margin: 0 0 4px; color: #fff;
}
.b90 span { background: linear-gradient(90deg, var(--pink), var(--yellow), var(--lime), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brushline { height: 6px; width: 64%; margin: 0 auto 20px; background: var(--red); border-radius: 6px; transform: rotate(-3deg) skewX(-20deg); }
.nye { letter-spacing: 6px; font-weight: 700; font-size: 15px; color: var(--muted); direction: ltr; }
.date-big { font-family: 'Rubik', sans-serif; font-weight: 900; font-size: clamp(56px, 18vw, 96px); line-height: 1; margin: 14px 0 4px; direction: ltr; letter-spacing: -2px; }
.dj-chip {
  display: inline-flex; align-items: center; gap: 10px; margin: 10px 0 22px;
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--cyan);
  color: var(--cyan); font-family: var(--marker); font-size: 20px; direction: ltr;
  box-shadow: 0 0 18px rgba(62,240,255,.35), inset 0 0 12px rgba(62,240,255,.15);
}
.dj-chip small { font-family: 'Rubik'; color: var(--ink); font-size: 14px; direction: rtl; }

.countdown { display: flex; justify-content: center; gap: 8px; margin: 0 0 22px; direction: ltr; }
.countdown div { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 0; width: 70px; }
.countdown b { display: block; font-family: var(--mono); font-size: 38px; line-height: 1; color: var(--yellow); }
.countdown span { font-size: 12px; color: var(--muted); }
.hero .cta { max-width: 380px; margin: 0 auto; }
.hero .sub { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ---------- sections and cards ---------- */
section { padding: 18px 0; }
h2 { font-family: var(--marker); font-weight: 400; font-size: 28px; margin: 0 0 12px; color: var(--ink); }
h2 .hl { color: var(--red); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card + .card { margin-top: 12px; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.fact .k { color: var(--muted); font-size: 13px; }
.fact .v { font-weight: 700; font-size: 18px; line-height: 1.3; }
.fact .v.price { font-size: 30px; color: var(--yellow); font-family: 'Rubik'; font-weight: 900; }
.fact.wide { grid-column: 1 / -1; }
.fact .nav { margin-top: 8px; }

.genres { display: flex; gap: 8px; flex-wrap: wrap; direction: ltr; justify-content: center; margin-top: 12px; }
.genres span {
  font-family: var(--marker); font-size: 20px; padding: 4px 16px; background: #000; color: #fff;
  transform: skewX(-8deg); border-inline-start: 4px solid var(--red);
}

/* the DJ cassette */
.cassette {
  position: relative; border-radius: 18px; padding: 16px; background: linear-gradient(160deg, #2a2433, #1a1620);
  border: 2px solid #3a3346;
}
.cassette .label {
  background: var(--ink); color: #111; border-radius: 10px; padding: 12px 14px 54px; position: relative;
  background-image: repeating-linear-gradient(0deg, transparent 0 22px, rgba(227,38,47,.25) 22px 23px);
}
.cassette .label .side { position: absolute; top: 10px; left: 12px; font-family: var(--marker); font-size: 22px; color: var(--red); }
.cassette .label h3 { margin: 0; font-family: var(--marker); font-weight: 400; font-size: 34px; direction: ltr; text-align: right; }
.cassette .label p { margin: 2px 0 0; font-weight: 700; }
.cassette .reels {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: 64%; height: 44px; background: #111; border-radius: 30px; display: flex; align-items: center; justify-content: space-around;
}
.cassette .reels i { width: 30px; height: 30px; border-radius: 50%; border: 6px dotted #ddd; animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.steps li::before {
  content: counter(s); flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; background: var(--red); color: #fff;
}
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 15px; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-top: 8px; }
summary { cursor: pointer; padding: 14px 16px; font-weight: 700; min-height: 48px; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
summary::after { content: '+'; color: var(--red); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '−'; }
details > div { padding: 0 16px 14px; color: var(--muted); }

footer { text-align: center; padding: 36px 16px 120px; color: var(--muted); font-size: 13px; }
footer .logo { display: inline-block; margin-bottom: 6px; }

/* sticky buy bar on the landing page */
.buybar {
  position: fixed; inset: auto 0 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(14,12,18,.96) 30%);
  transform: translateY(110%); transition: transform .25s;
}
.buybar.on { transform: none; }
.buybar .wrap { padding: 0; display: flex; gap: 10px; align-items: center; }
.buybar .p { font-weight: 900; font-size: 22px; color: var(--yellow); white-space: nowrap; }

/* ---------- forms ---------- */
.form { display: grid; gap: 12px; }
label.f { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.f input, .f select, .f textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg2); color: var(--ink); font-size: 17px;
}
.f textarea { min-height: 96px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(62,240,255,.2); }
.f input[dir=ltr] { text-align: right; }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--red); }
.err { color: #ff8a8f; font-size: 15px; min-height: 1em; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg2); border-radius: 999px; padding: 4px; border: 1px solid var(--line); }
.seg button { min-height: 44px; border: 0; background: none; border-radius: 999px; cursor: pointer; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--ink); color: #111; }
.invited { display: flex; gap: 10px; align-items: center; background: rgba(62,240,255,.08); border: 1px solid rgba(62,240,255,.4); border-radius: 14px; padding: 12px 14px; }
.invited .em { font-size: 26px; }

/* ---------- ticket (my area) ---------- */
.ticket {
  position: relative; border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg, #251f2e, #16131b); border: 1px solid #3a3346;
}
.ticket .head { padding: 18px 18px 14px; border-bottom: 2px dashed #3a3346; position: relative; }
.ticket .head::before, .ticket .head::after {
  content: ''; position: absolute; bottom: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg);
}
.ticket .head::before { right: -12px; } .ticket .head::after { left: -12px; }
.ticket .tt { font-family: var(--brush); color: var(--red); font-size: 34px; line-height: 1; }
.ticket .meta { color: var(--muted); font-size: 15px; margin-top: 6px; }
.ticket .body { padding: 18px; display: grid; gap: 14px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 6px 12px; border-radius: 999px; font-size: 14px; width: fit-content; }
.status.pending { background: rgba(255,210,62,.14); color: var(--yellow); }
.status.claimed { background: rgba(62,240,255,.12); color: var(--cyan); }
.status.paid { background: rgba(62,224,143,.14); color: var(--ok); }
.status.cancelled, .status.none { background: rgba(255,255,255,.08); color: var(--muted); }
.code { font-family: var(--mono); font-size: 40px; line-height: 1; letter-spacing: 2px; direction: ltr; text-align: center;
  background: #000; color: var(--lime); border-radius: 12px; padding: 12px; }
.paybtns { display: grid; gap: 10px; }
.payopt { display: grid; gap: 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.payopt .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.payopt .name { font-weight: 800; font-size: 18px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.big-ok { text-align: center; }
.big-ok .em { font-size: 54px; line-height: 1; animation: pop .5s cubic-bezier(.3,1.6,.5,1); display: inline-block; }
@keyframes pop { from { transform: scale(.2); opacity: 0; } }

.invite-link { display: flex; gap: 8px; align-items: stretch; }
.invite-link input { flex: 1; min-width: 0; direction: ltr; background: var(--bg2); border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; min-height: 48px; color: var(--ink); font-size: 15px; }
.people { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.people li { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--bg2); border-radius: 12px; }
.score { display: flex; gap: 10px; }
.score div { flex: 1; text-align: center; background: var(--bg2); border-radius: 12px; padding: 10px; }
.score b { display: block; font-size: 28px; font-weight: 900; color: var(--yellow); }
.score span { font-size: 13px; color: var(--muted); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.72); animation: fade .2s; }
.modal .box { width: 100%; max-width: 420px; background: var(--card); border: 1px solid #3a3346; border-radius: 22px; padding: 24px 20px; text-align: center; display: grid; gap: 12px; animation: pop .35s cubic-bezier(.3,1.4,.5,1); }
.modal h3 { margin: 0; font-family: var(--marker); font-weight: 400; font-size: 28px; }
.wa { background: #25d366; color: #052b14; box-shadow: 0 4px 0 #189c49; }
@keyframes fade { from { opacity: 0; } }

.toast { position: fixed; z-index: 70; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: #111; padding: 12px 18px; border-radius: 999px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: opacity .4s; max-width: calc(100% - 32px); text-align: center; }
.toast.out { opacity: 0; }
.center { text-align: center; }
.spin { display: grid; place-items: center; padding: 60px 0; color: var(--muted); }
.mt { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .wrap { max-width: 980px; }
  .hero { padding: 48px 0 60px; }
  .hero .cta { max-width: 420px; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .fact.wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps li { flex-direction: column; }
  .buybar .wrap { max-width: 520px; margin: 0 auto; }
  main.wrap, #app > .wrap { max-width: 720px; }
  .cassette { max-width: 520px; margin: 0 auto; }
}

/* ---------- members' area ---------- */
.mtabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 14px; }
.mtabs a { min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 0 4px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; }
.mtabs a.on { background: var(--ink); color: #111; border-color: var(--ink); }
h3 { margin: 0; font-size: 18px; }
.songs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.songs li { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.songs .si { display: grid; min-width: 0; }
.songs .si b, .songs .si span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.songs .si span { color: var(--muted); font-size: 15px; }
.songs .si small { color: var(--muted); font-size: 12px; }
.songs .si em { color: var(--ok); font-style: normal; }
.vote { flex: none; width: 52px; min-height: 52px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg2); cursor: pointer;
  display: grid; place-items: center; line-height: 1; color: var(--muted); font-size: 13px; }
.vote b { font-size: 18px; color: var(--ink); }
.vote.on { border-color: var(--pink); color: var(--pink); box-shadow: 0 0 14px rgba(255,62,200,.3); }
.vote.on b { color: var(--pink); }
.reply { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(62,240,255,.08); border-inline-start: 3px solid var(--cyan); }
.payopt.check { display: flex; align-items: center; gap: 12px; }
