/* TwinSong: Dear Audio Twin brand. Archivo wide for display, Instrument Sans for text. */
:root {
  --bg: #131511; --ink: #11130f; --card: rgba(22, 27, 18, .92); --card2: rgba(30, 36, 25, .95); --line: rgba(255, 255, 255, .12);
  --white: #f5f5ef; --grey: #a5a79f; --dim: #90938a; --lime: #d4f26e; --lav: #b3a8f2; --coral: #ff8f7a; --sky: #80bff0;
  --grad: linear-gradient(90deg, #9b95f7 0%, #80bff0 24%, #71d5e6 40%, #b6e8c6 56%, #ecf0b0 69%, #d0eb88 84%, #a8dd68 100%);
  --r: 22px; --pad: 20px; --w: 560px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--white); }
body { font: 500 17px/1.45 'Instrument Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; overflow-x: hidden; }
a { color: var(--lime); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 10px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lime { color: var(--lime); } .lav { color: var(--lav); } .grey { color: var(--grey); } .dim { color: var(--dim); }
.emo { font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; font-style: normal; }
[hidden] { display: none !important; }

.glow { position: fixed; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(60px); opacity: .55; }
.glow.g1 { width: 70vmax; height: 70vmax; right: -30vmax; top: -38vmax; background: radial-gradient(circle, rgba(74, 128, 32, .75), transparent 65%); }
.glow.g2 { width: 80vmax; height: 80vmax; left: -42vmax; bottom: -46vmax; background: radial-gradient(circle, rgba(76, 58, 178, .8), transparent 65%); }

/* header and footer */
.top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; max-width: var(--w); margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) var(--pad) 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand .logo { width: 44px; height: 28px; }
.word { font: 800 25px/1 'Archivo'; font-stretch: 118%; letter-spacing: -.02em; }
.topnav { display: flex; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 8px; border-radius: 999px; background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line); color: var(--white); text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; }
.pill b { font-weight: 800; }
main { position: relative; z-index: 1; flex: 1; width: 100%; max-width: var(--w); margin: 0 auto; padding: 4px var(--pad) 28px; outline: none; }
.foot { position: relative; z-index: 1; width: 100%; max-width: var(--w); margin: 0 auto; padding: 18px var(--pad) max(26px, env(safe-area-inset-bottom));
  color: var(--dim); font-size: 14px; }
.foot p { margin: 4px 0; } .foot a { color: var(--grey); } .foot .links a { margin-right: 14px; }

/* type */
.eyebrow { font: 700 13px/1.2 'Instrument Sans'; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); margin: 14px 0 8px; }
h1, h2, h3 { font-family: 'Archivo'; font-weight: 800; font-stretch: 120%; letter-spacing: -.025em; margin: 0; }
h1 { font-size: clamp(40px, 12vw, 64px); line-height: .94; }
h2 { font-size: clamp(28px, 8vw, 38px); line-height: 1; }
h3 { font-size: 21px; line-height: 1.1; font-stretch: 110%; }
/* heading levels follow the page outline; these keep the look when the level changes */
.h2 { font-size: clamp(28px, 8vw, 38px); line-height: 1; }
.h3 { font-size: 21px; line-height: 1.1; font-stretch: 110%; }
.lede { font-size: 18px; color: #dcddd5; margin: 14px 0 0; }
p { margin: 10px 0; }

/* cards and buttons */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: 14px 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.card.link { display: block; text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
.card.link:hover { transform: translateY(-2px); border-color: rgba(212, 242, 110, .5); }
.card .row, .tier .row, .groups .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card h3 + p, .card .h3 + p { margin-top: 6px; color: var(--grey); font-size: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none;
  padding: 16px 24px 17px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 18px;
  box-shadow: 0 10px 34px rgba(212, 242, 110, .25); transition: transform .12s, box-shadow .12s, filter .12s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn.big { width: 100%; padding: 19px 24px 20px; font-size: 20px; }
.btn.ghost { background: rgba(255, 255, 255, .06); color: var(--white); border: 1px solid var(--line); box-shadow: none; }
.btn.lav { background: var(--lav); box-shadow: 0 10px 34px rgba(179, 168, 242, .25); }
.btn.small { padding: 10px 16px 11px; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.tag { display: inline-block; font: 700 12px/1 'Instrument Sans'; letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 8px;
  background: rgba(255, 255, 255, .08); color: var(--grey); }
.tag.lime { background: rgba(212, 242, 110, .16); color: var(--lime); }
.tag.lav { background: rgba(179, 168, 242, .18); color: var(--lav); }

/* home */
.hero { margin: 0; padding: 18px 0 16px; }
.hero > .eyebrow:first-child { margin-top: 0; }
.hero h1 .song { display: block; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 10px 0 0; }
.steps li { position: relative; padding: 0 0 12px 40px; color: #dcddd5; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font: 800 15px/1 'Archivo'; color: var(--ink); background: var(--lime); }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini .card { margin: 0; }
.big-emoji { font-size: 34px; line-height: 1; margin-bottom: 8px; display: block; }

/* play */
.qhead { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 12px; color: var(--grey); font-weight: 700; }
.dots { display: flex; gap: 6px; }
.dots i { width: 26px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .14); }
.dots i.done { background: var(--lime); } .dots i.now { background: var(--lav); }
.prompt { font: 800 clamp(30px, 8.6vw, 44px)/1.02 'Archivo'; font-stretch: 112%; letter-spacing: -.025em; margin: 4px 0 18px; }
.timer { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; margin: 0 0 16px; }
.timer i { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; }
.timer.low i { background: var(--coral); }
.secs { font: 800 15px/1 'Archivo'; color: var(--grey); }
.search { position: relative; }
.search input { width: 100%; padding: 18px 20px 19px; border-radius: 18px; border: 2px solid var(--line); background: #0d0f0b; font-size: 20px; font-weight: 600;
  outline: none; color: var(--white); }
.search input:focus { border-color: var(--lime); }
.search input::placeholder { color: var(--dim); }
.sugg { list-style: none; margin: 8px 0 0; padding: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--card2); }
.sugg:empty { display: none; }
.sugg li button { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 13px 16px 14px; cursor: pointer;
  display: flex; align-items: center; gap: 12px; }
.sugg li:last-child button { border-bottom: 0; }
.sugg li button:hover, .sugg li button:focus-visible { background: rgba(212, 242, 110, .1); outline: none; }
.sugg .nm { font-weight: 700; font-size: 18px; display: block; }
.sugg .sub { font-size: 14px; color: var(--grey); display: block; margin-top: 1px; }
.sugg .fl { font-size: 24px; width: 30px; text-align: center; flex: none; }
.hint { color: var(--dim); font-size: 15px; margin: 10px 2px 0; min-height: 22px; }
.hint.bad { color: var(--coral); font-weight: 600; }
.locked { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px; background: rgba(212, 242, 110, .12); border: 1px solid rgba(212, 242, 110, .4);
  font-weight: 700; font-size: 18px; }
.locked .ck { width: 32px; height: 32px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-weight: 900; flex: none; }

/* results */
.score { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 2px; }
.score b { font: 800 64px/1 'Archivo'; font-stretch: 112%; letter-spacing: -.03em; }
.grid { font-size: 30px; letter-spacing: 4px; margin: 8px 0 4px; filter: drop-shadow(0 0 1.5px rgba(245, 245, 239, .5)); }   /* outlines the black hearts */
.items { list-style: none; padding: 0; margin: 8px 0 0; }
.items li { padding: 14px 0; border-top: 1px solid var(--line); }
.items li:first-child { border-top: 0; }
.items .pq { color: var(--grey); font-size: 14px; font-weight: 600; }
.items .ans { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.items .ans b { font-size: 18px; }
.items .why { color: var(--grey); font-size: 14px; margin-top: 2px; }
.badge { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 7px; border-radius: 999px; font: 800 13px/1 'Archivo'; font-stretch: 105%;
  background: rgba(255, 255, 255, .08); white-space: nowrap; }
.badge.twin { background: var(--lime); color: var(--ink); }
.badge.rare { background: var(--lav); color: var(--ink); }
.badge.popular { background: rgba(128, 191, 240, .25); color: #cfe6fb; }
/* the black heart disappears on a dark chip, so it sits on a small light disc */
.badge.solo .emo { display: inline-grid; place-items: center; width: 19px; height: 19px; margin: -2px 0; border-radius: 50%; background: rgba(245, 245, 239, .85); font-size: 11px; }
.twin-card { position: relative; overflow: hidden; border-radius: 26px; padding: 22px; margin: 16px 0; border: 1px solid rgba(212, 242, 110, .45);
  background: radial-gradient(120% 90% at 100% 0%, rgba(212, 242, 110, .2), transparent 60%), radial-gradient(120% 120% at 0% 100%, rgba(155, 149, 247, .28), transparent 60%), var(--card); }
.twin-card .flag { font-size: 64px; line-height: 1; }
.twin-card h2 { margin: 10px 0 6px; }
.stamp-new { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(0, 0, 0, .3); font-weight: 700; }
.stamp-new .emo { font-size: 28px; }

/* passport */
.passport { border-radius: 28px; padding: 22px 18px 24px; margin: 12px 0; background: linear-gradient(160deg, #2b2457 0%, #1c1a33 55%, #141a10 100%);
  border: 1px solid rgba(179, 168, 242, .35); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.passport .ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.passport .count { font: 800 54px/1 'Archivo'; font-stretch: 112%; }
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; margin-top: 18px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 3px dashed var(--lime); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 8px; transform: rotate(var(--rot, -6deg)); background: rgba(212, 242, 110, .05); }
.stamp:nth-child(3n+2) { border-color: var(--lav); --rot: 5deg; background: rgba(179, 168, 242, .07); }
.stamp:nth-child(3n) { border-color: var(--sky); --rot: -2deg; background: rgba(128, 191, 240, .06); }
.stamp .emo { font-size: 34px; line-height: 1; }
.stamp b { font: 800 11px/1.1 'Archivo'; font-stretch: 100%; letter-spacing: .03em; text-transform: uppercase; margin-top: 5px; }
.stamp small { font-size: 10px; color: var(--grey); margin-top: 2px; }
.stamp.empty { border-color: rgba(255, 255, 255, .15); color: var(--dim); transform: none; background: none; }

/* party */
.code { font: 800 clamp(56px, 18vw, 92px)/1 'Archivo'; font-stretch: 125%; letter-spacing: .06em; margin: 6px 0; }
.players { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.players li { padding: 9px 14px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-weight: 700; display: flex; gap: 8px; align-items: center; }
.players li.off { opacity: .45; }
.players li .ok { color: var(--lime); }
.groups { list-style: none; padding: 0; margin: 12px 0 0; }
.groups li { padding: 14px 16px; border-radius: 18px; margin: 10px 0; background: var(--card); border: 1px solid var(--line); }
.groups li.twin { border-color: var(--lime); background: rgba(212, 242, 110, .1); }
.groups li.chorus { border-color: rgba(128, 191, 240, .5); }
.groups .who { color: var(--grey); font-size: 15px; margin-top: 4px; }
.board { list-style: none; padding: 0; margin: 10px 0 0; counter-reset: b; }
.board li { display: flex; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 18px; }
.board li::before { counter-increment: b; content: counter(b) '.'; color: var(--grey); width: 32px; }
.board li span { flex: 1; }
.field { display: block; margin: 12px 0; }
.field span { display: block; font-weight: 700; margin-bottom: 6px; color: #dcddd5; }
.field input { width: 100%; padding: 15px 16px 16px; border-radius: 16px; border: 2px solid var(--line); background: #0d0f0b; font-size: 18px; font-weight: 600; }
.field input:focus { border-color: var(--lime); outline: none; }
.field input.code-in { text-transform: uppercase; letter-spacing: .3em; font: 800 26px/1 'Archivo'; font-stretch: 120%; }

/* tiers and modal */
.tiers { display: grid; gap: 12px; margin-top: 14px; }
.tier { border-radius: 20px; padding: 16px; border: 1px solid var(--line); background: var(--card2); }
.tier.best { border-color: var(--lime); background: radial-gradient(120% 120% at 100% 0%, rgba(212, 242, 110, .16), transparent 60%), var(--card2); }
.tier .price { font: 800 28px/1 'Archivo'; font-stretch: 112%; margin: 6px 0 2px; }
.tier ul { margin: 10px 0 12px; padding-left: 20px; color: #dcddd5; }
.tier li { margin: 4px 0; }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(5, 6, 4, .72); display: flex; align-items: flex-end; justify-content: center; padding: 12px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet { width: 100%; max-width: var(--w); max-height: 92vh; overflow: auto; border-radius: 26px; padding: 22px 20px 24px; background: #171b13; border: 1px solid var(--line);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .5); }
.sheet .x { float: right; background: rgba(255, 255, 255, .08); border: 0; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 20px; }
@media (min-width: 700px) { .modal { align-items: center; } }
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; background: var(--white); color: var(--ink);
  padding: 12px 18px; border-radius: 999px; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); max-width: calc(100% - 32px); }

/* prose pages */
.prose h2 { margin: 22px 0 8px; font-size: 26px; }
.prose p, .prose li { color: #dcddd5; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@keyframes pop { 0% { transform: scale(.6) rotate(-14deg); opacity: 0; } 60% { transform: scale(1.12) rotate(4deg); opacity: 1; } 100% { transform: scale(1) rotate(var(--rot, -6deg)); } }
.stamp.fresh { animation: pop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.rise { animation: rise .45s ease both; }

.copybox { width: 100%; margin: 12px 0 4px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05);
  color: var(--white); font: 600 16px/1.45 "Instrument Sans", system-ui, sans-serif; resize: none; }
.prose li .emo { margin-right: 3px; }
.restore-code { font: 800 34px/1 'Archivo'; font-stretch: 118%; letter-spacing: .12em; margin: 10px 0 4px; }
.card .go { display: inline-block; margin-top: 10px; color: var(--lime); font-weight: 800; }
