/* The Stems 2 pre-drop homepage: one hidden song you can hear but not see, then the drop (one stem every few
   hours until the mint), the six albums filling in, and what only the reveal decides. Everything sits under
   .predrop so it can't disturb the site's shared styles. Token art (the hero and the lanes) stays black in both
   themes, as the site's frames do. */

.predrop { --wrap: 1120px; --slate: #17191c; --redact: #17191c; }
:root[data-theme='light'] .predrop { --redact: #151515; }
.predrop .wrap { max-width: var(--wrap); margin: 0 auto; }
.predrop .stack { display: flex; flex-direction: column; gap: 24px; }
.predrop .stack > * + * { margin-top: 0; }
.predrop .tag { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; padding: 3px 8px; margin-right: 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); vertical-align: 1px; }
.predrop .statement .dim { color: var(--dim); }
.predrop .facts b { color: var(--fg); font-weight: 400; }
.predrop .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* the collection switch, under the menu (the same one sits on /genesis). It sits at the top of the page and scrolls
   away with it, so it never covers the text below. */
.view-switch { position: absolute; z-index: 49; top: calc(74px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.view-switch a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; color: var(--dim); transition: color 0.2s, background 0.2s; white-space: nowrap; }
.view-switch a:hover { color: var(--fg); }
.view-switch a[aria-current="page"] { color: var(--bg); background: var(--fg); }
body.menu-open .view-switch { display: none; }

/* ── 1 · the hero: one hidden song (deliberately not the real unrevealed token) ── */
.predrop .hero { padding-top: clamp(150px, 20vh, 200px); }
.predrop .hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: clamp(32px, 6vw, 88px); align-items: center; }
.predrop .hero .copy { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.predrop .token { position: relative; display: block; width: 100%; max-width: 100%; aspect-ratio: 1; background: #000; outline: 1px solid var(--hair); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.predrop .token canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.predrop .token:hover { outline-color: var(--line); }
.predrop .hold { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.predrop .hold-btn { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; padding: 0 28px 0 22px; gap: 10px; }
.predrop .hold-btn .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.predrop .hold-btn[aria-pressed="true"] .dot { animation: pd-beat 0.75s ease-in-out infinite; }
@keyframes pd-beat { 50% { transform: scale(0.55); } }
.predrop .hold-note { font-family: var(--mono); font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.predrop .caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 13px; }
.predrop .caption b { font-weight: 500; }
.predrop .caption span { color: var(--faint); font-family: var(--mono); font-size: 12px; }

/* ── 2 · the drop ── */
.predrop .status { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 14px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); font-variant-numeric: tabular-nums; }
.predrop .status b { color: var(--fg); font-weight: 400; }
.predrop .drop-group { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.predrop .more { align-self: flex-start; margin-top: 6px; }
.predrop .lanes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.predrop .lane { position: relative; display: block; width: 100%; text-align: left; aspect-ratio: 4 / 1; border-radius: 10px; overflow: hidden; background: var(--slate); }
.predrop .lane svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.predrop .lane .t { position: absolute; top: 7px; left: 11px; right: 11px; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 1.2; pointer-events: none; }
.predrop .lane .t b { font-weight: 500; color: #5c646d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.predrop .lane .t span { font-family: var(--mono); font-size: 10.5px; color: #5c646d; white-space: nowrap; }
.predrop .lane.out { cursor: pointer; background: #0c0d0e; box-shadow: inset 0 0 0 1px rgba(236, 235, 230, 0.07); }
.predrop .lane.out .t b { color: #ecebe6; }
.predrop .lane.out .t span { color: rgba(236, 235, 230, 0.56); }
.predrop .lane.out:hover { box-shadow: inset 0 0 0 1px rgba(236, 235, 230, 0.16); }
.predrop .lane.today { box-shadow: inset 0 0 0 1px rgba(236, 235, 230, 0.32); }
.predrop .lane .wave { transform-origin: 50% 50%; }
.predrop .lane.fresh .wave { animation: pd-draw 1.1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes pd-draw { from { transform: scaleY(0); opacity: 0; } }
.predrop .lane .head { opacity: 0; }
.predrop .lane.playing .head { opacity: 1; }
.predrop .lane .play { position: absolute; right: 8px; bottom: 7px; padding: 2px 7px; border-radius: 999px; background: #ecebe6; color: #000; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; pointer-events: none; opacity: 0; transition: opacity 0.15s; }
.predrop .lane.out:hover .play, .predrop .lane.out:focus-visible .play, .predrop .lane.playing .play { opacity: 1; }
@media (hover: none) { .predrop .lane.out .play { opacity: 0.85; } }
.predrop .lane:not(.out) .play { display: none; }
.predrop .lane.soon { background: transparent; box-shadow: none; border: 1px dashed var(--line); }
.predrop .lane.soon .t b, .predrop .lane.soon .t span { color: var(--faint); }

/* ── 3 · the albums ── */
.predrop .albums { display: flex; flex-direction: column; gap: 34px; }
.predrop .album-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.predrop .album-h b { font-weight: 500; font-size: 15px; }
.predrop .album-h span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-variant-numeric: tabular-nums; }
.predrop .track { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--hair); }
.predrop .track .n { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.predrop .track .title { font-size: 18px; min-width: 0; }
.predrop .track .meta { font-family: var(--mono); font-size: 12px; color: var(--dim); white-space: nowrap; }
.predrop .track .dots { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 5px; }
.predrop .track .dots i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--faint); }
.predrop .track .dots i.on { background: var(--fg); border-color: var(--fg); }
.predrop .redact { display: inline-block; height: 0.95em; vertical-align: -0.12em; background: var(--redact); border-radius: 3px; }

/* ── 4 · held back ── */
.predrop .held { margin: 0; border-top: 1px solid var(--hair); }
.predrop .held div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 6px 24px; padding: 20px 0; border-bottom: 1px solid var(--hair); align-items: baseline; }
.predrop .held dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.predrop .held dd { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.predrop .held dd .redact { height: 18px; }
.predrop .held dd p { color: var(--dim); font-size: 15px; }

@media (max-width: 860px) {
  .view-switch { top: calc(70px + env(safe-area-inset-top, 0px)); }
  .predrop .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .predrop .hero .token-wrap { max-width: 460px; width: 100%; margin: 0 auto; }
  .predrop .held div { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) { .predrop .track .meta { grid-column: 2 / -1; } }
@media (prefers-reduced-motion: reduce) { .predrop *, .predrop *::before, .predrop *::after { animation: none !important; } }
