/* garlicoin.org: @names: /names/, @name pages, /names/all/, sponsor.
   Loaded after /assets/site.css by the pages that need it (their <head> links it). Split out of site.css on
   2026-10-21: keep a rule here only if just these pages use it; anything shared goes in site.css. */

/* ---------- /names/ and /@name ---------- */
.names-field { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; margin-top: 6px; }
.names-field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(242, 182, 50, .22); }
.names-prefix { padding: 0 0 0 14px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.names-field input { flex: 1; min-width: 0; font: inherit; font-size: 1.25rem; font-weight: 800; padding: 12px 14px 12px 2px; border: 0; background: transparent; color: var(--ink); outline: none; }
.names-avail { min-height: 1.4em; margin: 8px 0 0; font-weight: 700; }
.names-avail.good { color: #3c9a4a; }
.names-avail.bad, .names-form .bad { color: var(--bad); }
.names-form .good { color: #3c9a4a; }
.names-form { display: grid; gap: 6px; margin-top: 12px; }
.names-form input { font-size: .92rem; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.names-form p { margin: 0; }
.names-warn { padding: 8px 10px; border-radius: 8px; background: var(--gold-soft); }
.names-form .btn { justify-self: start; margin-top: 6px; }
.names-form .btn:disabled { opacity: .55; cursor: not-allowed; }
.names-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.names-grid .adopt-tile svg { width: 64px; height: 64px; }
.names-profile { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: start; }
.names-avatar { width: 160px; border-radius: 22px; overflow: hidden; background: var(--gold-soft); }
.names-avatar svg { width: 100%; height: auto; display: block; }
.names-handle { font-size: clamp(1.8rem, 6vw, 2.8rem); margin: 0; overflow-wrap: anywhere; line-height: 1.1; }
.names-pay { display: grid; justify-items: center; gap: 8px; }
#p-qr { width: 200px; height: 200px; border-radius: 10px; border: 1px solid var(--line); background: #fff; image-rendering: pixelated; }
.names-tips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 220px; }
.names-tips .chip { font: inherit; font-size: .85rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.names-tips .chip.on { background: var(--gold); border-color: var(--gold-deep); color: #2b2416; font-weight: 700; }
.names-proof { grid-column: 1 / -1; margin: 0; }
@media (max-width: 760px) {
  .names-profile { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .names-who { width: 100%; }
  .names-who .wall-actions { justify-content: center; }
  .names-prefix { font-size: .85rem; padding-left: 10px; }
  .names-field input { font-size: 1.05rem; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .names-avail.good, :root:not([data-theme="light"]) .names-form .good { color: #7fd38b; }
  :root:not([data-theme="light"]) .names-avail.bad, :root:not([data-theme="light"]) .names-form .bad { color: #ff8a80; }
}
:root[data-theme="dark"] .names-avail.good, :root[data-theme="dark"] .names-form .good { color: #7fd38b; }
:root[data-theme="dark"] .names-avail.bad, :root[data-theme="dark"] .names-form .bad { color: #ff8a80; }
/* ---------- /sponsor/ ---------- */
.sponsor-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.sponsor-amounts .chip { font: inherit; font-size: .95rem; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; font-weight: 700; }
.sponsor-amounts .chip.on { background: var(--gold); border-color: var(--gold-deep); color: #2b2416; }
.sponsor-amounts input { width: 110px; font: inherit; padding: 8px 12px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); }
/* @name page: how long a supporter badge to give (names.js) */
.sup-pick { margin: 10px auto 4px; max-width: 420px; text-align: center; }
.sup-pick .sponsor-amounts { justify-content: center; }
.sup-pick .sponsor-amounts .chip { font-size: .88rem; padding: 7px 12px; }
.sup-pick .sponsor-amounts input { width: 140px; }
.sup-pick p { margin: 4px 0 10px; }
.sponsor-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sponsor-list li > span { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .sponsor-lists { grid-template-columns: minmax(0, 1fr); }
}
.names-owner textarea { font: inherit; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); resize: vertical; }
.happy-now { padding: 10px 14px; border-radius: 12px; background: var(--gold-soft); }
.happy-now.on { background: linear-gradient(120deg, #ffe08a, #f2b632); color: #2b2416; }
.names-badge { display: inline-block; margin: 6px 0 2px; padding: 3px 12px; border-radius: 999px; background: linear-gradient(120deg, #ffe08a, #f2b632); color: #2b2416; font-weight: 800; font-size: .85rem; box-shadow: 0 2px 0 #c98a0c; }
.names-star { color: #e09a12; }
.names-support { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding-top: 12px; border-top: 1px dashed var(--line); }
.names-support .wall-msg-out { flex-basis: 100%; margin: 0; }
@media (max-width: 760px) {
  .names-support { justify-content: center; text-align: center; }
}
/* ---------- @name link-in-bio pages ---------- */
.bio-page { --bg1: #fff4d4; --bg2: #f7cf6a; --ink2: #2b2416; --soft: #5c4520; --btn: #fffdf6; --btn-ink: #2b2416; --btn-line: #e09a12; --link: #8a4b00;
  border-radius: 24px; padding: 34px 18px 26px; background: linear-gradient(170deg, var(--bg1), var(--bg2)); color: var(--ink2); }
.bio-page.theme-night { --bg1: #1e1630; --bg2: #3d2b63; --ink2: #f6f1ff; --soft: #cbbfe6; --btn: rgba(255, 255, 255, .1); --btn-ink: #fff; --btn-line: rgba(255, 255, 255, .35); --link: #ffd36a; }
.bio-page.theme-mint { --bg1: #ecfaf2; --bg2: #9fdcb8; --ink2: #153a28; --soft: #2f5e46; --btn: #fff; --btn-ink: #153a28; --btn-line: #3c9a6a; --link: #1d6b45; }
.bio-page.theme-rose { --bg1: #fff0f4; --bg2: #f4a6c0; --ink2: #4a1f2e; --soft: #7a3a50; --btn: #fff; --btn-ink: #4a1f2e; --btn-line: #d0507a; --link: #a3254f; }
.bio-page.theme-ocean { --bg1: #e8f3ff; --bg2: #7fb3ea; --ink2: #10294a; --soft: #2d4d78; --btn: #fff; --btn-ink: #10294a; --btn-line: #3a78c4; --link: #1d5aa6; }
.bio-page.theme-mono { --bg1: #ffffff; --bg2: #f1f1f1; --ink2: #111; --soft: #555; --btn: #111; --btn-ink: #fff; --btn-line: #111; --link: #111; }
.bio-inner { max-width: 540px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.bio-avatar { width: 116px; height: 116px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--btn), 0 10px 26px rgba(0, 0, 0, .18); background: #fff4d4; }
.bio-avatar svg { width: 100%; height: 100%; display: block; }
.bio-handle { margin: 6px 0 0; font-size: clamp(1.7rem, 6vw, 2.3rem); color: var(--ink2); overflow-wrap: anywhere; }
.bio-text { margin: 0; color: var(--soft); font-size: 1.05rem; max-width: 440px; overflow-wrap: anywhere; }
.bio-links { width: 100%; display: grid; gap: 10px; margin-top: 8px; }
.bio-button { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; box-sizing: border-box; padding: 14px 18px; border-radius: 16px; border: 2px solid var(--btn-line);
  background: var(--btn); color: var(--btn-ink); font: inherit; font-weight: 800; font-size: 1.05rem; text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; box-shadow: 0 3px 0 var(--btn-line); }
.bio-button:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--btn-line); }
.bio-button span { font-size: .8rem; font-weight: 700; opacity: .7; }
.bio-tip-toggle { margin-top: 6px; background: linear-gradient(120deg, #ffe08a, #f2b632); color: #2b2416; border-color: #c98a0c; box-shadow: 0 3px 0 #c98a0c; }
.bio-tip { width: 100%; box-sizing: border-box; display: grid; justify-items: center; gap: 10px; padding: 16px; border-radius: 18px; background: var(--btn); border: 2px solid var(--btn-line); color: var(--btn-ink); }
.bio-tip #p-qr { width: 190px; height: 190px; border-radius: 10px; background: #fff; image-rendering: pixelated; }
.bio-addr { font-size: .82rem; overflow-wrap: anywhere; margin: 0; }
.bio-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.bio-row .btn { text-decoration: none; }
.bio-small { margin-top: 8px; }
.bio-page .names-badge { margin: 0; }
.bio-page .wall-msg-out { color: var(--soft); margin: 0; }
.bio-foot { margin: 10px 0 0; font-size: .85rem; color: var(--soft); }
.bio-foot a { color: var(--link); }
.bio-page.theme-night .btn-copy, .bio-page.theme-night .chip { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); }
.bio-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.bio-swatches label { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .8rem; font-weight: 700; cursor: pointer; }
.bio-swatches input { position: absolute; opacity: 0; }
.bio-swatches .sw { width: 42px; height: 42px; border-radius: 12px; border: 2px solid var(--line); background: linear-gradient(170deg, var(--bg1), var(--bg2)); }
.bio-swatches input:checked + .sw { outline: 3px solid var(--gold); outline-offset: 2px; }
.bio-swatches input:focus-visible + .sw { outline: 3px solid var(--gold-deep); }
.bio-edit-links { display: grid; gap: 6px; }
.bio-edit-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 6px; align-items: center; }
.bio-edit-row input { font: inherit; font-size: .9rem; padding: 8px 10px; border: 2px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); min-width: 0; }
.o-clicks { white-space: nowrap; min-width: 4.5em; }
@media (max-width: 560px) {
  .bio-edit-row { grid-template-columns: minmax(0, 1fr); }
  .o-clicks { min-width: 0; }
  .bio-page { border-radius: 18px; padding: 26px 14px 20px; }
}
.bio-tip-toggle span { font-size: inherit; opacity: 1; }
.bio-swatches .sw.theme-garlic { background: linear-gradient(170deg, #fff4d4, #f7cf6a); }
.bio-swatches .sw.theme-night { background: linear-gradient(170deg, #1e1630, #3d2b63); }
.bio-swatches .sw.theme-mint { background: linear-gradient(170deg, #ecfaf2, #9fdcb8); }
.bio-swatches .sw.theme-rose { background: linear-gradient(170deg, #fff0f4, #f4a6c0); }
.bio-swatches .sw.theme-ocean { background: linear-gradient(170deg, #e8f3ff, #7fb3ea); }
.bio-swatches .sw.theme-mono { background: linear-gradient(170deg, #fff, #ddd); box-shadow: inset 0 -12px 0 #111; }
.bio-week { margin: 6px 0 0; font-size: .9rem; font-weight: 700; color: var(--soft); text-align: center; }
.names-sharetip { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
/* ---------- /names/all/ directory ---------- */
.dir-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dir-tools input { flex: 1 1 200px; min-width: 0; font: inherit; padding: 9px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.dir-sort select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; margin-top: 10px; }
.dir-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; min-width: 0; }
.dir-card:hover { border-color: var(--gold); background: var(--gold-soft); }
.dir-art { width: 64px; height: 64px; flex: none; border-radius: 50%; overflow: hidden; }
.dir-art svg { display: block; width: 100%; height: 100%; }
.dir-text { display: grid; gap: 3px; min-width: 0; }
.dir-text strong { overflow-wrap: anywhere; }
.dir-bio { font-size: .92rem; overflow-wrap: anywhere; }
.dir-badge { justify-self: start; font-size: .75rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--gold); color: var(--on-gold); }
.bio-gwallet { margin-top: 10px; width: 100%; }
