/* CreatorMatch — shared tokens and components */
:root {
  --ink: #16131c;
  --ink-2: #3a3542;
  --muted: #6f6879;
  --line: #e9e2d8;
  --paper: #fbf7f1;
  --paper-2: #f3ece1;
  --card: #ffffff;
  --coral: #ff4f3f;
  --coral-deep: #d93a2b;
  --sun: #ffc53d;
  --lilac: #c9bcff;
  --mint: #2fbf87;
  --sky: #9fd8ff;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(22, 19, 28, .06), 0 18px 40px -18px rgba(22, 19, 28, .35);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* manipulation: no double-tap zoom on phones (pinch zoom still works), so quick taps on tabs and buttons don't zoom the page */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; touch-action: manipulation; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.05; margin: 0; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--coral); display: grid; place-items: center; transform: rotate(-8deg); }
.logo-mark svg { width: 18px; height: 18px; }
.logo b { color: var(--coral); font-weight: 800; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 24px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px -8px rgba(255, 79, 63, .7); }
.btn-primary:hover { background: var(--coral-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.chip-light { background: var(--paper-2); color: var(--ink-2); }

/* Avatars */
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: #fff; flex: none; font-size: 15px; }

/* ---------- Swipe deck ---------- */
.deck { position: relative; width: 100%; aspect-ratio: 3 / 4.1; user-select: none; -webkit-user-select: none; touch-action: pan-y; } /* sideways is a swipe, up and down still scroll the page (shared.js) */
.swipe-card { position: absolute; inset: 0; border-radius: 26px; overflow: hidden; color: #fff; box-shadow: var(--shadow); will-change: transform; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .35s ease; background: #333; cursor: grab; }
.swipe-card.dragging { transition: none; cursor: grabbing; }
.swipe-card[data-depth="1"] { transform: translateY(14px) scale(.95); }
.swipe-card[data-depth="2"] { transform: translateY(28px) scale(.9); opacity: .6; }
.swipe-card .media { position: absolute; inset: 0; }
.swipe-card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.swipe-card .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.25) 50%, rgba(10,8,14,.88) 100%); }
.swipe-card .media .play { position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 1; }
.swipe-card .media .shape { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; }
.swipe-card .top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: flex-start; z-index: 2; }
.swipe-card .badge { padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #fff; color: var(--ink); }
.swipe-card .badge.paid { background: var(--sun); }
.swipe-card .badge.gift { background: var(--lilac); }
.swipe-card .monogram { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.95); color: var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.swipe-card .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; z-index: 2; }
.swipe-card h3 { font-size: 27px; display: flex; align-items: center; gap: 7px; }
.swipe-card .meta { font-size: 14px; opacity: .85; margin-top: 2px; }
.swipe-card p { font-size: 14.5px; line-height: 1.45; margin: 10px 0 12px; opacity: .92; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.swipe-card .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.swipe-card .pay { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.2); }
.swipe-card .pay small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; font-weight: 700; }
.swipe-card .pay strong { font-family: var(--font-display); font-size: 30px; line-height: 1; letter-spacing: -0.02em; }
.swipe-card .verified { width: 20px; height: 20px; flex: none; }

/* Song cards: an artist's sound campaign (songCardHTML in shared.js). Cover art with the record
   peeking out where a brief has its photo, and a waveform showing which part of the song to use. */
/* The cover's text is sized to the cover (cqw), so it fits the same on a phone and in the hero */
.swipe-card .media.song .record { position: absolute; z-index: 1; top: 12%; left: 21%; width: 44%; aspect-ratio: 1; container-type: inline-size; }
.swipe-card .media.song .cover { position: absolute; inset: 0; z-index: 1; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 7cqw; box-shadow: 0 18px 36px -12px rgba(0,0,0,.65); }
.swipe-card .media.song .cover b { position: relative; font-family: var(--font-display); font-size: 11cqw; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.swipe-card .media.song .cover small { position: relative; font-size: 6.5cqw; font-weight: 600; opacity: .85; margin-top: 2.5cqw; }
.swipe-card .media.song .cover.photo { background: #222; }
.swipe-card .media.song .cover.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.swipe-card .media.song .cover.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.6)); }
.swipe-card .media.song .cover.photo b, .swipe-card .media.song .cover.photo small { z-index: 1; }
.swipe-card .media.song .cover-sun { position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%; top: -20%; right: -22%; background: rgba(255,255,255,.3); }
.swipe-card .media.song .vinyl { position: absolute; top: 4%; left: 46%; width: 92%; height: 92%; border-radius: 50%; box-shadow: 0 12px 30px -8px rgba(0,0,0,.7);
  background: radial-gradient(circle at 50% 41%, #fff 0 2%, transparent 2.5%), radial-gradient(circle, var(--label) 0 17%, #111 18% 19%, transparent 20%), repeating-radial-gradient(circle, #1c1b20 0 2px, #2a2930 2px 3px); }
.swipe-card[data-depth="0"] .media.song .vinyl { animation: vinyl-spin 6s linear infinite; }
@keyframes vinyl-spin { to { transform: rotate(360deg); } }
.swipe-card .media.song .play { top: 34%; z-index: 2; width: 28cqw; height: 28cqw; }
.swipe-card .badge.sound { background: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.swipe-card .song-clip { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.swipe-card .wave { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; height: 24px; }
.swipe-card .wave i { flex: 1; min-width: 0; border-radius: 2px; background: rgba(255,255,255,.32); }
.swipe-card .wave i.on { background: var(--sun); }
.swipe-card .song-clip small { font-size: 12px; font-weight: 700; color: var(--sun); white-space: nowrap; }
.swipe-card .song-clip + p { -webkit-line-clamp: 2; margin-top: 8px; }

.stamp { position: absolute; top: 34px; z-index: 3; padding: 6px 14px; border: 4px solid; border-radius: 12px; font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: .04em; opacity: 0; pointer-events: none; }
.stamp.like { left: 22px; color: var(--mint); border-color: var(--mint); transform: rotate(-14deg); background: rgba(255,255,255,.9); }
.stamp.nope { right: 22px; color: var(--coral); border-color: var(--coral); transform: rotate(14deg); background: rgba(255,255,255,.9); }
.stamp.super { left: 50%; top: auto; bottom: 46%; color: #3b6cff; border-color: #3b6cff; transform: translateX(-50%) rotate(-6deg); background: rgba(255,255,255,.9); }

.deck-empty { position: absolute; inset: 0; border-radius: 26px; border: 2px dashed var(--line); display: grid; place-items: center; text-align: center; padding: 30px; color: var(--muted); }
.deck-empty h4 { color: var(--ink); font-size: 22px; margin-bottom: 6px; }

.deck-actions { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 22px; }
.round { border: 0; width: 60px; height: 60px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px -6px rgba(22,19,28,.3); transition: transform .15s ease; }
.round:hover { transform: scale(1.08); }
.round:active { transform: scale(.94); }
.round.sm { width: 48px; height: 48px; }
.round svg { width: 26px; height: 26px; }
.round.sm svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
