:root{color-scheme:light;--paper:#f6f3eb;--surface:#fffdf7;--ink:#221e1a;--muted:#665f56;--stroke:#ded8cd;--orange:#df4f34;--green:#dcedc5;--purple:#eae0fa;--yellow:#f6ebc6;--display:'Space Grotesk','DM Sans',system-ui,sans-serif;--body:'DM Sans',system-ui,sans-serif}
*{box-sizing:border-box} [hidden]{display:none!important}
body{margin:0;background:var(--paper);color:var(--ink);font:500 1rem/1.5 var(--body);min-width:300px} button,input{font:inherit} button,a{-webkit-tap-highlight-color:transparent} button{cursor:pointer} button:disabled{cursor:default} a{color:inherit;text-decoration:none} :focus-visible{outline:3px solid #8e56d8;outline-offset:4px} h1,h2,h3,p{margin:0} svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex:none} .symbols{display:none}
.topbar{border-bottom:1px solid var(--stroke);background:var(--surface)} .topbar-inner{width:min(1180px,calc(100% - 80px));margin:auto;min-height:74px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px} .brand{display:inline-flex;align-items:center;gap:9px;font:700 1.65rem/1 var(--display);letter-spacing:-.08em;width:max-content} .brand-dot{color:var(--orange);margin-left:-7px} .brand-mark{width:37px;height:37px;display:grid;place-items:center;background:var(--orange);color:white;border-radius:11px} .brand-mark svg{width:23px;height:23px;stroke-width:1.6}
.tabs{display:flex;align-items:center;gap:6px;padding:4px;border:1px solid var(--stroke);border-radius:100px;background:var(--paper)} .tab{display:flex;align-items:center;gap:7px;min-height:36px;border:0;border-radius:100px;color:var(--muted);background:transparent;padding:0 15px;font-size:.875rem;font-weight:800;white-space:nowrap} .tab svg,.account svg{width:17px;height:17px} .tab.selected{color:white;background:var(--ink)} .tab:not(.selected):hover{background:#eae4d7;color:var(--ink)} .account{justify-self:end;display:flex;align-items:center;gap:8px;max-width:175px;border:1px solid var(--stroke);border-radius:100px;background:transparent;color:var(--ink);padding:8px 14px;font-size:.875rem;font-weight:800} .account span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap} .account:hover{background:var(--paper)}

.actions{display:flex;justify-content:center;align-items:start;gap:19px;margin:12px auto 0} .action-slot{min-width:64px;display:grid;justify-items:center;gap:6px;font-size:.78rem;color:var(--muted);font-weight:800} .action{position:relative;display:grid;place-items:center;width:56px;height:56px;border:1px solid #332a2126;border-radius:50%;background:white;color:var(--ink);transition:transform .15s,filter .15s} .action:not(:disabled):hover{transform:translateY(-3px);filter:saturate(1.24)} .action:not(:disabled):active{transform:scale(.94)} .action svg{width:26px;height:26px;stroke-width:2} .action.pass{background:#fae3da;color:#a42e1e} .action.like{background:var(--green);color:#345b25} .action.super{background:var(--purple);color:#67419b} .action.undo{background:var(--yellow);color:#644b25} .action b{position:absolute;top:-3px;right:-3px;min-width:20px;height:20px;border-radius:10px;padding:0 4px;background:var(--surface);border:1px solid var(--stroke);color:var(--ink);font-size:.69rem;line-height:18px} .action:disabled{opacity:.42} 
.spotify-link{display:flex;align-items:center;justify-content:center;gap:8px;min-height:41px;border-radius:9px;border:1px solid #29211b;background:var(--ink);color:#fffaf0;font-size:.875rem;font-weight:800;text-align:center;padding:8px 9px} .spotify-link:hover{background:#3d352c} .spotify-link svg{color:#92d780;width:20px;height:20px}
.results-list{margin:10px 0 0;padding:0;list-style:none} .results-list li+li{border-top:1px solid var(--stroke)} .results-list a{display:flex;align-items:center;gap:11px;padding:11px 3px} .results-list a:hover strong{text-decoration:underline} .results-list img,.result-art{width:46px;height:46px;border-radius:6px;background:#e8dac7;flex:none;object-fit:contain} .result-art{display:grid;place-items:center} .results-list strong,.results-list small{display:block} .results-list small{color:var(--muted)} .result-percent{margin-left:auto;background:var(--green);border-radius:100px;padding:3px 8px;font-size:.79rem;white-space:nowrap} .empty-results{margin-top:11px}
.notice{position:fixed;z-index:3;bottom:15px;left:50%;width:max-content;max-width:calc(100% - 30px);translate:-50%;background:var(--ink);color:white;padding:11px 15px;border-radius:10px;box-shadow:0 8px 28px #22151255;font-size:.9rem;text-align:center} dialog{width:min(440px,calc(100% - 28px));max-height:calc(100% - 30px);border:1px solid var(--stroke);border-radius:20px;background:var(--surface);color:var(--ink);padding:23px 24px;box-shadow:0 25px 100px #1e17144d} dialog::backdrop{background:#241b188e;backdrop-filter:blur(3px)} .dialog-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px} .close{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--stroke);border-radius:50%;background:var(--paper);color:var(--muted)} .close svg{width:18px;height:18px} dialog h2{font:700 1.85rem/1.1 var(--display);letter-spacing:-.06em} dialog p{margin:8px 0 14px;color:var(--muted);font-size:.9rem} dialog form{display:grid;gap:6px} dialog label{font-size:.86rem;font-weight:800} dialog input{padding:8px 10px;border:1px solid var(--stroke);border-radius:7px;background:white;color:var(--ink);width:100%;margin-bottom:5px} .primary{display:inline-grid;place-items:center;border:1px solid #bf3d29;background:#c5402c;color:white;border-radius:8px;padding:8px 14px;min-height:41px;font-weight:800} .primary:not(:disabled):hover{background:#aa3221} .primary:disabled{opacity:.65} dialog .error{color:#9e291b;margin:0 0 5px} .spotify-signin{margin-top:15px;border-top:1px solid var(--stroke);padding-top:15px} .spotify-signin p{margin:8px 0 2px;font-size:.8rem} .spotify-link[aria-disabled=true]{opacity:.55} .text-button{border:0;background:none;color:#703e35;padding:7px 0;text-decoration:underline;font-size:.82rem;font-weight:800}

.layout {
  width: min(calc(100% - 36px), max(350px, calc(100svh - 226px)), 560px);
  margin: 22px auto 40px;
}

.stage { min-width: 0; }
.navigation { display: contents; }

.deck-header,
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.deck-header h1,
.results-header h1 {
  font: 700 1.48rem/1.1 var(--display);
  letter-spacing: -.055em;
}

.progress {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  border: 1px solid var(--stroke);
  border-radius: 100px;
  color: var(--muted);
  font-size: .79rem;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.progress:empty { visibility: hidden; }

.deck-area {
  position: relative;
  margin: 15px auto 0;
}

.card-stack {
  position: relative;
  isolation: isolate;
}

.deck-area .actions { margin-top: 23px; }

.stack {
  position: absolute;
  inset: 3% 3% -2%;
  border: 1px solid #dbcebd;
  border-radius: 22px;
  pointer-events: none;
}

.sheet-one { background: #f0dfc8; transform: rotate(4deg); }
.sheet-two { background: #e8dfd3; transform: rotate(-4deg); }

.track-card {
  position: relative;
  display: grid;
  align-items: end;
  aspect-ratio: 1;
  isolation: isolate;
  overflow: hidden;
  border-radius: 21px;
  background: #272320;
  color: white;
  box-shadow: 0 14px 36px #25171233;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  transition: transform .23s ease, opacity .18s ease;
  transform-origin: center 85%;
}

.track-card.dragging { transition: none; cursor: grabbing; }

.track-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.cover-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 54% 46%, #f0a471 0 6%, #963d3a 6.5% 13%, transparent 13.5%),
    repeating-radial-gradient(circle at 54% 46%, #28202d 0 5px, #3e2639 6px 7px, #2c202d 8px 11px);
}

.cover-ambient { display: none; }

.card-shade {
  position: absolute;
  inset: auto 0 0;
  height: 49%;
  background: linear-gradient(transparent, #110d11e8);
  pointer-events: none;
}

.album-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  max-width: calc(100% - 96px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 100px;
  padding: 6px 11px;
  background: #211b20ba;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.card-play,
.track-link {
  display: grid;
  place-items: center;
  border: 1px solid #fff9;
  border-radius: 50%;
  color: white;
  background: #211b20b5;
}

.card-play:hover,
.track-link:hover { background: #201616; }

.card-play {
  position: absolute;
  z-index: 1;
  top: 15px;
  right: 15px;
  width: 46px;
  height: 46px;
  padding: 0;
}

.card-play svg,
.track-link svg { width: 23px; height: 23px; }

.track-info {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: clamp(16px, 4vw, 26px);
  pointer-events: none;
}

.track-info div { min-width: 0; }

.track-info h2 {
  font: 700 clamp(2rem, 6vw, 3.5rem)/1.02 var(--display);
  letter-spacing: -.065em;
  overflow-wrap: anywhere;
}

.track-info p {
  margin-top: 6px;
  color: #fff4ea;
  font-size: clamp(.95rem, 2.5vw, 1.08rem);
  overflow-wrap: anywhere;
}

.track-link {
  width: 43px;
  height: 43px;
  pointer-events: auto;
  flex: none;
}

.swipe-stamp {
  position: absolute;
  top: 62px;
  left: 23px;
  rotate: -11deg;
  opacity: 0;
  border: 3px solid currentColor;
  border-radius: 7px;
  background: #1a1717d9;
  padding: 5px 10px;
  color: #cef5a4;
  font: 700 1.5rem/1 var(--display);
  letter-spacing: .08em;
  pointer-events: none;
}

.swipe-stamp.rejected { color: #ffb5a0; }

.player {
  margin: 15px auto 0;
  width: 100%;
  min-height: 80px;
  border-radius: 12px;
  overflow: hidden;
}

.player iframe { display: block; width: 100%; height: 80px; border: 0; }

.results {
  padding: 20px;
  border: 1px solid var(--stroke);
  border-radius: 21px;
  background: var(--surface);
}

.empty-deck,
.empty-results {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  min-height: 225px;
  padding: 24px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 16px;
}

.empty-deck { position: relative; min-height: min(390px, 55svh); }
.empty-results { margin-top: 12px; }
.empty-deck > svg,
.empty-results > svg { width: 34px; height: 34px; color: var(--orange); }
.empty-deck h2,
.empty-results h2 { font: 700 1.3rem/1.1 var(--display); }
.empty-deck p { color: var(--muted); font-size: .9rem; }

@media (max-width: 690px) {
  body { background: #171412; }

  .topbar { background: #171412; border-color: #3c332c; color: #fff7eb; }

  .topbar-inner {
    width: calc(100% - 32px);
    display: flex;
    min-height: calc(56px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }

  .brand { font-size: 1.35rem; letter-spacing: -.055em; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; }

  .navigation {
    position: fixed;
    z-index: 4;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 6px max(10px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    border-top: 1px solid #44362f;
    background: #201a17;
  }

  .tabs { display: contents; }

  .tab,
  .account {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    width: 100%;
    max-width: none;
    min-height: 50px;
    padding: 4px 3px;
    border: 0;
    border-radius: 9px;
    color: #f0dfd0;
    font-size: .73rem;
  }

  .account span { max-width: 100%; }
  .tab svg, .account svg { width: 23px; height: 23px; }
  .tab.selected { background: #482a23; color: #ffb79b; }
  .tab:not(.selected):hover, .account:hover { background: #362821; color: #fff7eb; }

  .layout {
    width: min(calc(100% - 20px), 540px);
    margin: 9px auto calc(81px + env(safe-area-inset-bottom));
  }

  .deck { position: relative; }

  .deck-header {
    position: absolute;
    z-index: 2;
    top: 11px;
    left: 12px;
    pointer-events: none;
  }

  .deck-header h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .deck-header .progress {
    min-height: 25px;
    border-color: #fff5;
    background: #211b20b5;
    color: #fff7eb;
  }

  .deck-area { margin-top: 0; }
  .stack { display: none; }

  .track-card {
    min-height: max(360px, calc(100svh - 141px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
    aspect-ratio: auto;
    cursor: default;
    border: 1px solid #fff3;
    border-radius: 17px;
    background: #201a18;
  }

  .cover-ambient {
    display: block;
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: blur(24px) brightness(.53);
    transform: scale(1.13);
    pointer-events: none;
  }

  .track-card img { object-position: center 38%; }

  .card-shade {
    inset: 0;
    height: auto;
    background: linear-gradient(180deg, #1914129c, transparent 19%, transparent 42%, #19141254 57%, #191412e3 83%, #191412 100%);
  }

  .album-pill { top: 14px; left: 77px; max-width: calc(100% - 138px); }
  .card-play { top: 9px; right: 9px; }
  .track-info { padding: 16px 16px 101px; }
  .track-info h2 { font-size: clamp(2rem, 8.7vw, 3.25rem); }
  .track-info p { line-height: 1.3; }

  .deck-area .actions {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 13px;
    left: 0;
    margin: 0;
    gap: clamp(8px, 3.8vw, 25px);
  }

  .deck-area:has(.track-card[hidden]) .actions { position: static; margin-top: 15px; }
  .action-slot { min-width: 52px; gap: 5px; }
  .action-slot > span { color: #fff0e2; }
  .action { width: 50px; height: 50px; border-color: #fff5; }
  .action b { top: 0; right: 0; }
  .action svg { width: 24px; height: 24px; }
  .player { margin-top: 9px; }
  .notice { z-index: 5; bottom: calc(69px + env(safe-area-inset-bottom)); }
}

@media (max-width: 360px) {
  .action-slot { font-size: .73rem; }
  .action { width: 46px; height: 46px; }
  .card-play { width: 42px; height: 42px; }
}

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

