/* garlicoin.org: the wall, proof, adopt a block, and the parts @names share with them.
   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. */

/* ---------- /wall/: messages on the chain ---------- */
.wall-layout { display: grid; gap: 18px; }
.wall-compose textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 1.1rem; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); resize: vertical; min-height: 84px; }
.wall-meter { height: 6px; border-radius: 3px; background: var(--line); margin-top: 8px; overflow: hidden; }
.wall-meter span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .15s ease, background .2s; }
.wall-meter span.near { background: #e07b12; }
.wall-meter span.over { background: #c8352b; }
.wall-count { margin: 6px 0 14px; }
.wall-count.over { color: var(--bad); font-weight: 700; }
.wall-compose .label { margin-bottom: 6px; }
.wall-compose form .btn { margin-top: 14px; }
.wall-compose form .btn:disabled { opacity: .55; cursor: not-allowed; }
.wall-search { font: inherit; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); min-width: 0; width: 200px; }
#wall-stats { margin: 10px 0 14px; }
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.wall-brick { --b1: #f6e2bd; --b2: #ecc98b; --bt: #3a2a12; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; text-align: left; font: inherit; color: var(--bt);
  padding: 14px 16px 12px; border-radius: 10px; border: 1px solid rgba(90, 60, 20, .18); cursor: pointer; min-height: 92px;
  background: linear-gradient(160deg, var(--b1), var(--b2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(90, 55, 15, .14), 0 2px 6px rgba(60, 40, 10, .1);
  transition: transform .15s ease, box-shadow .15s ease; }
.wall-brick:hover, .wall-brick:focus-visible { transform: translateY(-2px) rotate(-.4deg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(90, 55, 15, .14), 0 8px 18px rgba(60, 40, 10, .18); }
.wall-brick.t1 { --b1: #f3d7b0; --b2: #e2b277; }
.wall-brick.t2 { --b1: #f7ead0; --b2: #e9d3a6; }
.wall-brick.t3 { --b1: #f1dcc4; --b2: #d9b28a; }
.wall-brick.t4 { --b1: #f8e6c0; --b2: #f0cf86; }
.wall-brick.t5 { --b1: #efe0c8; --b2: #dcc196; }
.wall-brick.ours { --b1: #ffe8a3; --b2: #f2b632; border: 2px solid #c98a0c; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -3px 0 rgba(120, 75, 0, .2), 0 0 0 3px rgba(242, 182, 50, .18), 0 4px 12px rgba(150, 100, 0, .2); }
.wall-brick.waiting { border-style: dashed; animation: wall-wait 1.6s ease-in-out infinite; }
.wall-brick.fresh { animation: wall-in .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.wall-brick-text { margin: 0; font-size: 1.05rem; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.wall-brick-meta { margin: 0; font-size: .78rem; opacity: .9; }
.wall-preview { cursor: default; }
.wall-preview.empty .wall-brick-text { opacity: .7; }
.wall-preview:hover { transform: none; }
@keyframes wall-in { from { opacity: 0; transform: translateY(-14px) scale(.9); } to { opacity: 1; transform: none; } }
.wall-focus { border: 2px solid var(--gold); background: linear-gradient(180deg, var(--gold-soft), var(--card) 70%); }
.wall-focus.pop { animation: wall-in .6s cubic-bezier(.2, 1.3, .4, 1) both; }
.wall-focus-text { margin: 6px 0 8px; font-size: clamp(1.4rem, 4.2vw, 2.2rem); line-height: 1.25; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; quotes: "\201C" "\201D"; }
.wall-focus-text::before { content: open-quote; color: var(--gold-text); }
.wall-focus-text::after { content: close-quote; color: var(--gold-text); }
.wall-focus-meta { color: var(--muted); margin: 0 0 12px; }
.wall-verify { margin-top: 10px; }
.wall-verify summary { cursor: pointer; font-weight: 600; color: var(--gold-text); }
.wall-verify pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--gold-soft); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: .82rem; }
.wall-how { padding-left: 1.1rem; display: grid; gap: 8px; }
@media (max-width: 600px) {
  .wall-search { width: 100%; }
  .wall-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .wall-brick, .wall-brick.fresh, .wall-focus.pop, .wall-brick.waiting { animation: none; transition: none; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wall-brick { --b1: #4a3518; --b2: #3a2911; --bt: #f5e6c4; border-color: rgba(255, 210, 120, .14); box-shadow: inset 0 1px 0 rgba(255, 230, 170, .08), inset 0 -3px 0 rgba(0, 0, 0, .25), 0 2px 6px rgba(0, 0, 0, .3); }
  :root:not([data-theme="light"]) .wall-brick.t1 { --b1: #533a1a; --b2: #3d2a10; }
  :root:not([data-theme="light"]) .wall-brick.t2 { --b1: #45361f; --b2: #33281a; }
  :root:not([data-theme="light"]) .wall-brick.t3 { --b1: #4d3322; --b2: #382417; }
  :root:not([data-theme="light"]) .wall-brick.t4 { --b1: #554019; --b2: #3e2e0f; }
  :root:not([data-theme="light"]) .wall-brick.t5 { --b1: #48392a; --b2: #352a1e; }
  :root:not([data-theme="light"]) .wall-brick.ours { --b1: #7a5508; --b2: #5a3d04; --bt: #fff1c8; border-color: #f2b632; }
}
:root[data-theme="dark"] .wall-brick { --b1: #4a3518; --b2: #3a2911; --bt: #f5e6c4; border-color: rgba(255, 210, 120, .14); box-shadow: inset 0 1px 0 rgba(255, 230, 170, .08), inset 0 -3px 0 rgba(0, 0, 0, .25), 0 2px 6px rgba(0, 0, 0, .3); }
:root[data-theme="dark"] .wall-brick.t1 { --b1: #533a1a; --b2: #3d2a10; }
:root[data-theme="dark"] .wall-brick.t2 { --b1: #45361f; --b2: #33281a; }
:root[data-theme="dark"] .wall-brick.t3 { --b1: #4d3322; --b2: #382417; }
:root[data-theme="dark"] .wall-brick.t4 { --b1: #554019; --b2: #3e2e0f; }
:root[data-theme="dark"] .wall-brick.t5 { --b1: #48392a; --b2: #352a1e; }
:root[data-theme="dark"] .wall-brick.ours { --b1: #7a5508; --b2: #5a3d04; --bt: #fff1c8; border-color: #f2b632; }
.wall-compose .wall-msg-out { margin: 10px 0 0; min-height: 0; }
.wall-compose .wall-msg-out:empty { display: none; }
.wall-compose > .muted { margin-top: 18px; }
.wall-pins { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 2px dashed var(--line); }
.wall-brick.pinned { --b1: #fff3c4; --b2: #f7cf5a; border: 2px solid #e09a12; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 0 3px rgba(242, 182, 50, .25), 0 6px 16px rgba(150, 100, 0, .22); }
.wall-tag.pin { background: #c8352b; color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wall-brick.pinned { --b1: #8a5e06; --b2: #5e3f03; --bt: #fff4d0; border-color: #f2b632; }
}
:root[data-theme="dark"] .wall-brick.pinned { --b1: #8a5e06; --b2: #5e3f03; --bt: #fff4d0; border-color: #f2b632; }
/* ---------- /proof/ ---------- */
.proof-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 34px 18px; border: 3px dashed var(--line); border-radius: 16px; cursor: pointer; background: var(--gold-soft); transition: border-color .15s, transform .15s, background .15s; }
.proof-drop:hover, .proof-drop.over, .proof-drop:focus-within { border-color: var(--gold); transform: scale(1.01); }
.proof-drop strong { font-size: 1.2rem; color: var(--ink); }
.proof-drop-icon { width: 48px; height: 48px; color: var(--gold-text); }
.proof-drop-icon svg { width: 100%; height: 100%; }
.proof-paste { margin-top: 14px; }
.proof-hash-form { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.proof-hash-form input { flex: 1 1 260px; min-width: 0; font-size: .85rem; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.proof-result.pop { animation: wall-in .6s cubic-bezier(.2, 1.3, .4, 1) both; }
.proof-name { font-weight: 700; margin: 2px 0; overflow-wrap: anywhere; }
.proof-hash { font-size: .82rem; overflow-wrap: anywhere; background: var(--gold-soft); border-radius: 8px; padding: 8px 10px; margin: 6px 0 14px; color: var(--ink); }
.proof-progress { margin: -6px 0 14px; }
.proof-badge { display: inline-block; font-weight: 800; padding: 4px 12px; border-radius: 999px; background: var(--line); color: var(--ink); margin: 0 0 10px; }
.proof-badge.ok { background: #3c9a4a; color: #fff; }
.proof-big { font-size: clamp(1.3rem, 3.8vw, 1.9rem); font-weight: 800; margin: 0 0 4px; color: var(--ink); }
.proof-state { border-top: 1px solid var(--line); padding-top: 14px; }
.proof-again { margin-top: 14px; }
.adopt-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.adopt-quick .chip { font: inherit; font-size: .9rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.adopt-quick .chip:hover { border-color: var(--gold); }
.adopt-date { display: inline-flex; align-items: center; gap: 6px; }
.adopt-date input { font: inherit; font-size: .85rem; border: 0; background: transparent; color: var(--ink); padding: 0; }
.adopt-card { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
.adopt-card.pop { animation: wall-in .6s cubic-bezier(.2, 1.3, .4, 1) both; }
.adopt-art { border-radius: 18px; padding: 10px; background: var(--gold-soft); display: flex; justify-content: center; }
.adopt-art svg { width: 100%; max-width: 240px; height: auto; display: block; }
.adopt-art.rare { box-shadow: 0 0 0 3px var(--gold), 0 0 30px rgba(242, 182, 50, .45); }
.adopt-name { font-size: 1.4rem; font-weight: 800; margin: 2px 0; color: var(--ink); }
.adopt-owner { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(160deg, #ffe8a3, #f2b632); color: #2b2416; }
.adopt-owner .label { color: #6b4a00; }
.adopt-owner-name { font-size: 1.5rem; font-weight: 800; margin: 0; }
.adopt-owner-line { font-style: italic; margin: 4px 0; overflow-wrap: anywhere; }
.adopt-owner .muted { color: #5c4520; }
.adopt-busy { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); font-weight: 600; }
.adopt-free { font-weight: 800; color: #3c9a4a; margin: 0 0 4px; }
.adopt-count { margin: 0; }
.adopt-count.over { color: var(--bad); font-weight: 700; }
.adopt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.adopt-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 10px 8px; border-radius: 14px; background: var(--gold-soft); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .15s; }
.adopt-tile:hover { transform: translateY(-2px); }
.adopt-tile svg { width: 84px; height: 84px; }
.adopt-tile-h { font-size: .75rem; color: var(--muted); }
.adopt-tile-line { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .adopt-card { grid-template-columns: minmax(0, 1fr); }
  .adopt-art { max-width: 260px; margin: 0 auto; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .adopt-owner { background: linear-gradient(160deg, #7a5508, #4e3503); color: #fff1c8; }
  :root:not([data-theme="light"]) .adopt-owner .label, :root:not([data-theme="light"]) .adopt-owner .muted { color: #f5d98a; }
  :root:not([data-theme="light"]) .adopt-free { color: #7fd38b; }
  :root:not([data-theme="light"]) .proof-badge.ok { background: #2f7a3b; }
}
:root[data-theme="dark"] .adopt-owner { background: linear-gradient(160deg, #7a5508, #4e3503); color: #fff1c8; }
:root[data-theme="dark"] .adopt-owner .label, :root[data-theme="dark"] .adopt-owner .muted { color: #f5d98a; }
:root[data-theme="dark"] .adopt-free { color: #7fd38b; }
:root[data-theme="dark"] .proof-badge.ok { background: #2f7a3b; }
.adopt-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.adopt-steps li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: start; }
.adopt-steps li > span:last-child { grid-column: 2; color: var(--muted); font-size: .92rem; line-height: 1.4; }
.adopt-step-n { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--gold); color: #2b2416; box-shadow: 0 3px 0 var(--gold-deep); }
.adopt-faq { margin: 0; }
.adopt-faq dt { font-weight: 800; margin-top: 14px; color: var(--ink); }
.adopt-faq dt:first-child { margin-top: 0; }
.adopt-faq dd { margin: 4px 0 0; color: var(--muted); line-height: 1.5; }
@media (max-width: 700px) {
  .adopt-steps ol { grid-template-columns: minmax(0, 1fr); }
}
.wall-pin-note { margin: 6px 0 0; }
/* ---------- gift option + /card/ ---------- */
.gift-fields { display: grid; gap: 6px; margin: 4px 0 6px; padding: 10px 12px; border-left: 4px solid var(--gold); background: var(--gold-soft); border-radius: 0 10px 10px 0; }
.gift-fields textarea { font: inherit; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); resize: vertical; }
/* wall threads */
.wall-parent { display: block; margin: 4px 0 2px; font-size: .9rem; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.wall-parent:hover { color: var(--gold-text); }
.wall-thread { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.wall-replies { display: grid; gap: 6px; margin: 6px 0 12px; }
.wall-reply-item { display: grid; gap: 2px; padding: 8px 12px; border-left: 3px solid var(--gold); background: var(--card); border-radius: 0 10px 10px 0; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.wall-reply-item small { color: var(--muted); }
.wall-reply-item:hover { background: var(--gold-soft); }
.wall-brick-re { margin: 0 0 -6px; font-size: .75rem; font-weight: 800; opacity: .65; }
