/* Area MP3 — black, gray & white, computer type */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #000;
  --bg-2: #0a0a0a;
  --card: #0c0c0c;
  --card-2: #141414;
  --line: #222;
  --line-2: #363636;
  --text: #f4f4f4;
  --text-2: #a9a9a9;
  --muted: #6e6e6e;
  --dim: #4a4a4a;
  --radius: 4px;
  --font: "Chakra Petch", ui-monospace, "SF Mono", Menlo, monospace;
  --mono: "Share Tech Mono", ui-monospace, Menlo, monospace;
  --player-h: 0px;
}

html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: var(--player-h);
}
::selection { background: #fff; color: #000; }
a { color: var(--text); text-underline-offset: 3px; }
img, video { max-width: 100%; display: block; }
button { font: inherit; }

/* faint scanlines, like an old monitor */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 400;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px);
}

/* ── type ─────────────────────────────────── */
h1, h2, h3, .caps { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
h1 { font-size: clamp(1.7rem, 5vw, 2.8rem); line-height: 1.12; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.02rem; letter-spacing: .1em; }
.sub { color: var(--muted); }
.lead { color: var(--text-2); font-size: 1.05rem; }
.muted { color: var(--muted); }
.dim { color: var(--text-2); }
.small { font-size: .84rem; }
.mono { font-family: var(--mono); }
.label { font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cursor::after { content: "_"; animation: blink 1.1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

/* ── header ───────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; color: var(--text); text-decoration: none; }
.brand-logo { height: 22px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a.link { color: var(--text-2); text-decoration: none; font-size: .86rem; padding: 8px 10px; text-transform: uppercase; letter-spacing: .1em; }
.nav a.link:hover, .nav a.link.on { color: var(--text); }

/* ── buttons ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: transparent; color: var(--text);
  font-size: .86rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .12s, color .12s, border-color .12s;
}
.btn:hover { border-color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--text); color: #000; border-color: var(--text); }
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.btn-ghost { border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); border-color: var(--line-2); }
.btn-danger { color: var(--text-2); border-style: dashed; }
.btn-lg { padding: 15px 26px; font-size: .95rem; }
.btn-sm { padding: 7px 12px; font-size: .74rem; }
.btn-block { width: 100%; }
.btn.on { background: var(--text); color: #000; border-color: var(--text); }

/* ── layout ───────────────────────────────── */
.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 28px 16px 80px; }
.wrap-wide { max-width: 1080px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card + .card { margin-top: 16px; }
.step-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.step-num { font-family: var(--mono); font-size: .95rem; color: var(--muted); border: 1px solid var(--line-2); padding: 2px 7px; border-radius: 2px; }
.step-num.done { background: var(--text); color: #000; border-color: var(--text); }
.step-title { text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.step-sub { color: var(--muted); font-size: .9rem; }

/* ── drop zones ───────────────────────────── */
.drop {
  position: relative; border: 1px dashed var(--line-2); border-radius: var(--radius);
  padding: 34px 18px; text-align: center; cursor: pointer; min-height: 160px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  transition: border-color .12s, background .12s;
}
.drop.over, .drop:hover { border-color: var(--text); background: #070707; }
.drop .icon { font-family: var(--mono); font-size: 1.6rem; color: var(--text-2); }
.drop .hint { font-family: var(--mono); font-size: .76rem; color: var(--muted); letter-spacing: .06em; }
.drop .browse { text-decoration: underline; text-underline-offset: 3px; }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop.has-file { padding: 12px; border-style: solid; }
.drop .preview { width: 100%; max-height: 300px; object-fit: contain; background: #000; }
.drop .file-meta { font-family: var(--mono); font-size: .8rem; color: var(--text-2); overflow-wrap: anywhere; }

/* ── forms ────────────────────────────────── */
label.field { display: block; }
label.field > span, .field > span { display: block; font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px; }
.input, textarea.input, select.input {
  width: 100%; padding: 12px 13px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: #050505; color: var(--text);
  font: inherit; font-size: 1rem; outline: none; appearance: none; -webkit-appearance: none;
}
.input::placeholder { color: var(--dim); }
.input:focus { border-color: var(--text); }
textarea.input { min-height: 88px; resize: vertical; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix .pre { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: var(--card-2); color: var(--text-2); font-family: var(--mono); white-space: nowrap; }
.input-prefix .input { border-radius: 0 var(--radius) var(--radius) 0; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text-2); cursor: pointer; }
.check input { margin-top: 4px; accent-color: #fff; width: 16px; height: 16px; flex: 0 0 auto; }
.seg { display: inline-grid; grid-auto-flow: column; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.seg button { border: 0; background: none; color: var(--text-2); padding: 10px 16px; cursor: pointer; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 600; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button.on { background: var(--text); color: #000; }
.note { border-left: 2px solid var(--text-2); padding: 8px 12px; background: #080808; color: var(--text-2); font-size: .88rem; }

/* ── progress ─────────────────────────────── */
.progress { height: 6px; background: #111; border: 1px solid var(--line); overflow: hidden; }
.progress > div { height: 100%; width: 0; background: repeating-linear-gradient(90deg, #fff 0 6px, #bbb 6px 8px); transition: width .25s; }

/* ── pills ────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 2px; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--text-2); }
.pill.solid { background: var(--text); color: #000; border-color: var(--text); }

/* ── track cards ──────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 44vw), 1fr)); gap: 12px; }
.tk { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s; }
.tk:hover { border-color: var(--line-2); }
.tk .cov { position: relative; aspect-ratio: 1; background: #050505; overflow: hidden; }
.tk .cov img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); transition: filter .2s, transform .3s; }
.tk:hover .cov img { filter: none; transform: scale(1.02); }
.tk .cov .pbtn { position: absolute; right: 10px; bottom: 10px; }
.tk .cov .tag { position: absolute; left: 10px; top: 10px; }
.tk .body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tk .t { font-weight: 600; letter-spacing: .02em; overflow-wrap: anywhere; color: var(--text); text-decoration: none; }
.tk .a { font-size: .84rem; color: var(--text-2); text-decoration: none; }
.tk .a:hover, .tk .t:hover { text-decoration: underline; }
.tk .meta { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.tk .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.tk .actions .btn { flex: 1; }

/* round play button */
.pbtn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--text); background: rgba(0,0,0,.72); color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pbtn:hover { background: var(--text); color: #000; }
.pbtn svg { width: 16px; height: 16px; }
.pbtn.playing { background: var(--text); color: #000; }

.empty { text-align: center; padding: 46px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--text-2); }

/* ── modal ────────────────────────────────── */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.82); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-bg.show { display: flex; }
.modal { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px; max-height: 92vh; overflow: auto; }
.qr-box { background: #fff; padding: 12px; display: inline-flex; }

/* ── toast ────────────────────────────────── */
#toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--player-h)); transform: translateX(-50%) translateY(20px);
  background: #000; border: 1px solid var(--line-2); color: var(--text);
  padding: 11px 16px; font-family: var(--mono); font-size: .88rem; z-index: 300;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { border-color: var(--text); }
#toast.err::before { content: "ERR › "; color: var(--text-2); }

.setup-banner { background: #111; border-bottom: 1px solid var(--line-2); color: var(--text-2); padding: 10px 16px; font-family: var(--mono); font-size: .84rem; text-align: center; }
.setup-banner code { color: var(--text); }

.footer { text-align: center; color: var(--muted); font-family: var(--mono); font-size: .78rem; padding: 30px 16px 40px; border-top: 1px solid var(--line); }
.footer a { color: var(--text-2); }

/* ── avatar ───────────────────────────────── */
.avatar { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 2rem; color: #000; background: var(--text); overflow: hidden; flex: 0 0 auto; border: 1px solid var(--line-2); }
.avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.1); }

/* ── tabs ─────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 10px 14px; cursor: pointer; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.tabs button.on { color: var(--text); border-bottom-color: var(--text); }
.tabs button .n { font-family: var(--mono); color: var(--muted); margin-left: 6px; font-weight: 400; }

/* ── table-ish lists ──────────────────────── */
.list { border: 1px solid var(--line); border-radius: var(--radius); }
.list .li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.list .li + .li { border-top: 1px solid var(--line); }
.list .li img { width: 48px; height: 48px; object-fit: cover; flex: 0 0 auto; background: #111; }
.list .li .grow { flex: 1; min-width: 0; }
.list .li .grow b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .li .grow span { font-family: var(--mono); font-size: .78rem; color: var(--muted); }

/* ── mini player (bottom bar) ─────────────── */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(0,0,0,.94); border-top: 1px solid var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.player img { width: 44px; height: 44px; object-fit: cover; flex: 0 0 auto; background: #111; }
.player .pi { flex: 1; min-width: 0; }
.player .pi b { display: block; font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .pi span { display: block; font-family: var(--mono); font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .bar { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: #1a1a1a; cursor: pointer; }
.player .bar > div { height: 100%; width: 0; background: var(--text); }
.player .x { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; font-family: var(--mono); }
.player .x:hover { color: var(--text); }

/* equalizer while playing */
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.eq i { width: 2px; background: currentColor; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%,100% { height: 25%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .eq i, .cursor::after { animation: none; } .eq i { height: 60%; } }

@media (max-width: 520px) {
  .card { padding: 18px; }
  .site-header { padding: 12px 14px; }
  .nav a.link { padding: 8px 6px; font-size: .78rem; }
  .nav a.link.hide-sm { display: none; }
  .brand-logo { height: 18px; }
}

/* unread dot on "My page" */
.my-btn { position: relative; }
.my-btn .dot { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--text); color: #000; font-family: var(--mono); font-size: .68rem; display: grid; place-items: center; box-shadow: 0 0 0 2px #000; }
.my-btn.on .dot { background: #000; color: #fff; box-shadow: 0 0 0 2px var(--text); }
.count-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--text); color: #000; font-family: var(--mono); font-size: .72rem; font-weight: 400; }

/* ── secret songs + locations ─────────────── */
img.blurred { filter: blur(22px) grayscale(.4) brightness(.8); transform: scale(1.18); -webkit-touch-callout: none; user-select: none; pointer-events: none; }
.hide-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 6px 10px; background: rgba(0,0,0,.8); border: 1px solid var(--line-2); font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; white-space: nowrap; pointer-events: none; z-index: 2; }
.tk.locked .cov { outline: 1px dashed var(--line-2); outline-offset: -6px; }
.tk .meta.loc { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-map { background: #0b0b0b; }
.am-map .leaflet-tile-pane { filter: invert(1) grayscale(1) brightness(.85) contrast(1.1); }
.leaflet-container { font: inherit; }
.leaflet-container .leaflet-control-attribution { background: rgba(0,0,0,.7); color: var(--muted); font-size: 10px; }
.leaflet-container .leaflet-control-attribution a { color: var(--text-2); }
.leaflet-bar a { background: #000 !important; color: #fff !important; border-color: var(--line-2) !important; }
.am-pin i { display: block; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid #000; box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0,0,0,.6); }
.loc-modal .modal { max-width: 500px; }
.loc-search { display: flex; gap: 8px; }
.loc-search .input { flex: 1; font-size: 16px; }
.loc-results { display: grid; gap: 4px; margin-top: 6px; }
.loc-results button { text-align: left; background: #050505; border: 1px solid var(--line); color: var(--text-2); padding: 8px 10px; font: inherit; font-size: .82rem; cursor: pointer; }
.loc-results button:hover { border-color: var(--text); color: var(--text); }
.loc-map { height: 240px; border: 1px solid var(--line); background: #0b0b0b; }
/* location box fits on a phone screen: shorter map, and Save / Cancel always in view */
.loc-modal .loc-actions { position: sticky; bottom: -24px; margin-bottom: -24px; padding: 12px 0 24px; background: var(--card); border-top: 1px solid var(--line); z-index: 5; }
@media (max-width: 560px) {
  .loc-modal { padding: 10px; }
  .loc-modal .modal { padding: 18px; max-height: calc(100dvh - 20px); }
  .loc-modal .loc-actions { bottom: -18px; margin-bottom: -18px; padding-bottom: 18px; }
  .loc-modal .loc-map { height: 170px; }
  .loc-modal .loc-map > .muted { padding: 52px 8px !important; }
  .loc-modal .modal > p.muted { margin-bottom: 8px !important; }
  .loc-modal #loc-here { margin: 4px 0 !important; }
}
.loc-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 9px 14px; border: 1px dashed var(--line-2); background: none; color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; border-radius: var(--radius); }
.loc-chip:hover { border-color: var(--text); }
.loc-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* pop-out effects */
.fx { display: grid; gap: 4px; }
.fx-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: .92rem; flex-wrap: wrap; }
.fx-row input[type=range] { flex: 1; min-width: 140px; accent-color: #fff; }
.fx-val { font-family: var(--mono); font-weight: 400; margin-left: 4px; }
.fx-hint { font-size: .78rem; color: var(--muted); }
.fx .seg button { padding: 7px 11px; font-size: .74rem; }
details.box { border: 1px solid var(--line-2); padding: 12px 14px; margin-top: 14px; }
details.box > summary { cursor: pointer; list-style: none; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; font-size: .86rem; display: flex; justify-content: space-between; gap: 10px; }
details.box > summary::-webkit-details-marker { display: none; }
details.box > summary::after { content: "+"; font-family: var(--mono); color: var(--muted); }
details.box[open] > summary::after { content: "−"; }
details.box > summary .small { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: auto; margin-right: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* on/off switch (Pixi Wizard's private / blur toggles) */
.toggle { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; padding: 14px; border: 1px solid var(--line-2); background: #050505; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .switch { flex: 0 0 auto; width: 44px; height: 24px; border-radius: 12px; background: #222; border: 1px solid var(--line-2); position: relative; transition: background .2s; margin-top: 2px; }
.toggle .switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.toggle input:checked + .switch { background: #fff; border-color: #fff; }
.toggle input:checked + .switch::after { transform: translateX(20px); background: #000; }
.toggle input:focus-visible + .switch { outline: 2px solid #fff; outline-offset: 2px; }
.toggle b { text-transform: uppercase; letter-spacing: .08em; font-size: .86rem; }
.toggle.disabled { opacity: .45; cursor: not-allowed; }
.radio-list { display: grid; gap: 8px; }
.radio-list label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line-2); cursor: pointer; font-size: .92rem; }
.radio-list label:has(input:checked) { border-color: var(--text); background: #0b0b0b; }
.radio-list input { margin-top: 4px; accent-color: #fff; }
/* trimmer */
.trim { margin-top: 16px; padding: 16px; border: 1px solid var(--line-2); background: #050505; }
.trim video { width: 100%; max-height: 280px; background: #000; margin: 12px 0; object-fit: contain; }
.trim .rng { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 10px; margin: 6px 0; font-family: var(--mono); font-size: .8rem; color: var(--text-2); }
.trim .rng span:last-child { text-align: right; }
.trim input[type=range] { width: 100%; accent-color: #fff; }

/* "Locked until you're there" card on a blurred image (Pixi Wizard style) */
.lock-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; width: 84%; max-width: 300px; padding: 14px 16px; background: rgba(0,0,0,.84); border: 1px solid var(--line-2); text-align: center; transition: opacity .6s; }
.lock-card b { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: .86rem; }
.lock-card span { display: block; font-size: .8rem; color: var(--text-2); margin: 4px 0 10px; overflow-wrap: anywhere; }
.lock-card.done { padding: 10px 16px; }
img.blurred { transition: filter .8s, transform .8s; }

/* PRO artists */
.pro-badge { font-size: .62em; padding: 2px 7px; vertical-align: middle; letter-spacing: .12em; position: relative; top: -.12em; }

/* blue check (more than 5 sales), pixel style */
.vcheck { display: inline-block; width: .95em; height: .95em; margin-left: .32em; vertical-align: -.1em; flex: 0 0 auto; }
.vcheck svg { display: block; width: 100%; height: 100%; }

/* ── artist page colors (picked on My page › Profile) ── */
body[data-theme="blue"]   { --acc: #3aa0ff; }
body[data-theme="red"]    { --acc: #ff4d4d; }
body[data-theme="green"]  { --acc: #39d98a; }
body[data-theme="purple"] { --acc: #a77bff; }
body[data-theme="gold"]   { --acc: #ffc94d; }
body[data-theme="pink"]   { --acc: #ff5fb7; }
body[data-theme="cyan"]   { --acc: #3ee6e6; }
body[data-theme]:not([data-theme="mono"])::after {
  content: ""; position: fixed; left: 0; right: 0; top: 0; height: 460px; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse 80% 100% at 50% -10%, color-mix(in srgb, var(--acc) 26%, transparent), transparent 72%);
}
body[data-theme]:not([data-theme="mono"]) .btn-primary { background: var(--acc); border-color: var(--acc); color: #000; }
body[data-theme]:not([data-theme="mono"]) .btn-primary:hover { background: var(--acc); filter: brightness(1.12); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 25%, transparent); }
body[data-theme]:not([data-theme="mono"]) .prof h1,
body[data-theme]:not([data-theme="mono"]) .themed-title { color: var(--acc); }
body[data-theme]:not([data-theme="mono"]) .prof .avatar,
body[data-theme]:not([data-theme="mono"]) .themed-av .avatar { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--acc); }
body[data-theme]:not([data-theme="mono"]) .tabs button.on { color: var(--acc); border-bottom-color: var(--acc); }
body[data-theme]:not([data-theme="mono"]) .counts b,
body[data-theme]:not([data-theme="mono"]) .price-big { color: var(--acc); }
body[data-theme]:not([data-theme="mono"]) .tk:hover,
body[data-theme]:not([data-theme="mono"]) .tile:hover { border-color: var(--acc); }
body[data-theme]:not([data-theme="mono"]) .pill.solid { background: var(--acc); border-color: var(--acc); color: #000; }
body[data-theme]:not([data-theme="mono"]) .secret { border-color: var(--acc); }

/* color picker on My page */
.swatches { display: flex; flex-wrap: wrap; gap: 28px 12px; }
.swatches button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line-2); cursor: pointer; padding: 0; position: relative; }
.swatches button.on { border-color: var(--text); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }
.swatches button span { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.swatches button.on span { color: var(--text); }
.swatches { padding-bottom: 20px; }

/* page background (color or photo): content sits on a dark glass panel so it stays readable */
body.custom-bg .site-header { background: rgba(0, 0, 0, .72); }
body.custom-bg main.wrap { background: rgba(0, 0, 0, .74); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .10); border-left: 0; border-right: 0; }
@media (min-width: 760px) { body.custom-bg main.wrap { border: 1px solid rgba(255, 255, 255, .10); margin-top: 18px; margin-bottom: 18px; } }
body.custom-bg .footer { background: rgba(0, 0, 0, .72); }
.sum-mini { display: inline-flex; gap: 6px; margin-left: auto; margin-right: 10px; }
.sum-mini .mini { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); display: inline-block; }
/* background circles look exactly like the accent circles */
.swatches .bg-swatch, .swatches .color-pick { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line-2); cursor: pointer; padding: 0; position: relative; display: inline-block; }
.swatches .bg-swatch.on, .swatches .color-pick.on { border-color: var(--text); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }
.swatches .bg-swatch span, .swatches .color-pick span { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; pointer-events: none; }
.swatches .bg-swatch.on span, .swatches .color-pick.on span { color: var(--text); }
.swatches .color-pick { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.swatches .color-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; border-radius: 50%; }
.bg-preview { height: 110px; border: 1px solid var(--line-2); margin-top: 12px; background: linear-gradient(#141414, #000); }

/* the tags on a card (price / FIND IT, and VIDEO or WAV) sit side by side and wrap instead of overlapping */
.tk .cov .tags { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; pointer-events: none; z-index: 2; }
.tk .cov .tags .pill { max-width: 100%; }
/* card tags: small glass chips on one line */
.tk .cov .tags { flex-wrap: nowrap; left: 8px; right: 8px; top: 8px; }
.tk .cov .tags .pill { background: rgba(0,0,0,.62); color: #f4f4f4; border: 1px solid rgba(255,255,255,.22); font-size: .62rem; padding: 2px 7px; letter-spacing: .1em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tk .cov .tags .pill:first-child { background: #f4f4f4; color: #000; border-color: #f4f4f4; flex-shrink: 0; }
body[data-theme]:not([data-theme="mono"]) .tk .cov .tags .pill:first-child { background: var(--acc); border-color: var(--acc); }
.tk .cov .hide-badge { display: inline-flex; align-items: center; gap: 7px; font-size: .62rem; padding: 6px 10px; background: rgba(0,0,0,.66); border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tk .cov .hide-badge i { width: 6px; height: 6px; background: #f4f4f4; box-shadow: 0 0 0 3px rgba(255,255,255,.18); animation: hbp 1.6s ease-in-out infinite; }
@keyframes hbp { 50% { opacity: .25; } }
.tk .cov .tags .pill:first-child { box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
/* settings buttons on My page cards: keep long labels inside the box */
.tk details .btn { white-space: normal; height: auto; min-height: 40px; line-height: 1.35; padding: 9px 10px; text-align: center; overflow-wrap: anywhere; letter-spacing: .06em; }
/* My drops search */
.drop-search { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.drop-search .input { flex: 1; min-width: 0; }
.drop-search #drop-count:empty { display: none; }
.tile a.stats { text-decoration: none; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tile a.stats:hover { text-decoration: none; }
/* only the file-type chip stays, top right */
.tk .cov .tags { justify-content: flex-end; }
.tk .cov .tags .pill.ty, body[data-theme]:not([data-theme="mono"]) .tk .cov .tags .pill.ty { background: rgba(0,0,0,.62); color: #f4f4f4; border-color: rgba(255,255,255,.22); box-shadow: none; }
/* pop-up windows: scroll inside, never drag the page or bounce */
.modal-bg { overscroll-behavior: contain; }
.modal { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; max-height: calc(100dvh - 32px); }
html:has(body.modal-open) { overflow: hidden; }
/* location pin on cards */
.tk .cov .tags .pin-chip { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.66); border: 1px solid rgba(255,255,255,.28); color: #f4f4f4; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); flex-shrink: 0; margin-right: auto; }
.tk .meta.loc { display: flex; align-items: center; gap: 5px; min-width: 0; }
.tk .meta.loc svg { flex-shrink: 0; }
.tk .meta.loc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* blur window fits on one phone screen: tight options, buttons always in view */
.lock-modal .modal { padding: 18px; max-height: calc(100dvh - 24px); }
.lock-modal .radio-list { gap: 6px; }
.lock-modal .radio-list label { padding: 9px 11px; font-size: .88rem; }
.lock-modal .radio-list label b { display: block; }
.lock-modal .opt-desc { display: none; margin-top: 2px; line-height: 1.35; }
.lock-modal .radio-list label:has(input:checked) .opt-desc { display: block; }
.lock-modal textarea { min-height: 0; height: auto; resize: none; }
.lock-modal .lock-actions { position: sticky; bottom: -18px; margin: 14px -18px -18px; padding: 12px 18px 18px; background: var(--card); border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; z-index: 5; }
.lock-modal #l-off { margin-left: auto; }
/* delete X on My page cards: only the X is red */
.tk .actions .btn-danger { color: #ff3b30; }
/* ✕ to remove an upload and pick another */
.drop .rm-file { position: absolute; top: 8px; right: 8px; z-index: 3; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.72); color: #ff3b30; font-size: .95rem; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.drop .rm-file:hover { border-color: #ff3b30; }
/* 3 easy steps under the Create title */
.easy3 { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.easy3 li { display: flex; gap: 12px; align-items: baseline; font-size: .9rem; color: var(--text-2); line-height: 1.4; }
.easy3 b { font-family: var(--mono); font-weight: 400; font-size: .78rem; color: var(--text); letter-spacing: .08em; flex-shrink: 0; }
/* AR camera shortcut in the header */
.nav .ar-cam { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 8px; margin-right: 4px; color: var(--text); text-decoration: none; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(255,255,255,.02); transition: border-color .15s, background .15s; }
.nav .ar-cam:hover, .nav .ar-cam:focus-visible { border-color: var(--text); background: rgba(255,255,255,.06); }
.nav .ar-cam-t { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; }
.nav .ar-cam-scan { stroke: #a0e6ff; filter: drop-shadow(0 0 2px #a0e6ff); animation: arCamScan 2.4s ease-in-out infinite; }
@keyframes arCamScan { 0%, 100% { transform: translateY(-5px); opacity: .2; } 50% { transform: translateY(5px); opacity: 1; } }
@media (max-width: 560px) { .nav .ar-cam { padding: 0 8px; margin-right: 2px; } .nav .ar-cam-t { display: none; } }
@media (prefers-reduced-motion: reduce) { .nav .ar-cam-scan { animation: none; } }
/* 3D model placeholder in the upload box */
.drop .model-ph { width: 100%; min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #000; color: var(--text); font-family: var(--mono); font-size: .74rem; letter-spacing: .18em; }
.drop .model-ph svg { animation: mphSpin 6s linear infinite; }
@keyframes mphSpin { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
@media (prefers-reduced-motion: reduce) { .drop .model-ph svg { animation: none; } }
.easy3-t { margin-top: 8px; font-family: var(--mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
