/* ============================================================================
   Confih — Support & Donations Bay ("Obsidian Ruby Spatial Studio")
   ----------------------------------------------------------------------------
   3D Bento crypto asset cards, recessed wallet address wells, and zero-network
   client-side inline SVG QR drawers.
   ========================================================================= */

/* Support is its own view now, with a page hero in front of the bay, so the
   bay no longer needs to open a section with a rule of its own. */
.donations-bay {
  margin-top: 0;
  padding-top: 0;
}

.support-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

/* The hero is a two-column grid; this keeps its side column pinned to the top
   instead of floating in the middle of a tall headline. */
#view-support .page-hero {
  align-items: start;
}

.support-note.is-quiet {
  background: var(--panel-2);
}

.support-uses {
  display: grid;
  gap: 0.42rem;
  margin-top: 0.2rem;
}

.support-uses li {
  position: relative;
  padding-left: 1.05rem;
  font-size: var(--t-small);
  line-height: 1.55;
  color: var(--ink-2);
}

.support-uses li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0.1rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal-2);
  opacity: 0.8;
}

.support-note {
  padding: 1.35rem 1.45rem;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.support-note h3 {
  margin-bottom: 0.55rem;
  font-size: 1.02rem;
}

.support-note p {
  font-size: var(--t-small);
  line-height: 1.66;
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .support-side {
    max-width: 46ch;
  }
}

.donations-bay-head {
  margin-bottom: 1.5rem;
}

.donations-bay-head h2 {
  margin: 0.9rem 0 0.75rem;
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  letter-spacing: -0.035em;
}

.donations-bay-head .lede {
  max-width: 52ch;
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.12rem);
  line-height: 1.65;
  color: var(--ink-2);
}

.asset-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.asset-row {
  display: grid;
  grid-template-columns: minmax(210px, 0.95fr) minmax(0, 1.55fr) auto;
  align-items: center;
  gap: 1.15rem 1.5rem;
  padding: 1.4rem 1.55rem;
  background: var(--panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--edge);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  min-width: 0;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--spring);
}

.asset-row:hover {
  border-color: color-mix(in srgb, var(--coin-glow, transparent) 40%, var(--edge-2));
  transform: translateY(-1px);
}

.asset-ident {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.coin-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.asset-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--edge-2);
  border-radius: 50%;
  background: var(--inset);
  box-shadow:
    0 1px 0 var(--rim-top) inset,
    0 10px 24px -16px var(--coin-glow, transparent);
  transition:
    box-shadow var(--t-mid) var(--ease),
    border-color var(--t-mid) var(--ease),
    transform var(--t-mid) var(--spring);
}

.asset-icon-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
}

.asset-row[data-chain="btc"] {
  --coin-glow: rgba(247, 147, 26, 0.55);
}

.asset-row[data-chain="sol"] {
  --coin-glow: rgba(153, 69, 255, 0.5);
}

.asset-row[data-chain="polygon"] {
  --coin-glow: rgba(123, 63, 228, 0.5);
}

.asset-row[data-chain="eth"] {
  --coin-glow: rgba(98, 126, 234, 0.5);
}

.asset-row[data-chain="usdc-erc20"] {
  --coin-glow: rgba(39, 117, 202, 0.5);
}

.asset-row:hover .asset-icon {
  border-color: var(--edge-3);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 var(--rim-top) inset,
    0 14px 30px -14px var(--coin-glow, transparent);
}

.asset-names {
  min-width: 0;
}

.asset-ident h3 {
  font-size: 1rem;
  font-weight: 660;
}

.asset-ident p {
  margin-top: 0.18rem;
  font-size: 0.8rem;
  color: var(--ink-3);
}

/* Tokens this one address accepts. One address per chain, so USDC on Solana
   and USDC on Polygon never look like the same string twice. */
.asset-accepts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.55rem;
}

.asset-coin {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.16rem 0.5rem 0.16rem 0.24rem;
  border: 1px solid var(--edge-2);
  border-radius: var(--r-pill);
  background: var(--inset);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

.coin-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
}

.asset-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  color: var(--ink-3);
  opacity: 0.75;
  transition: opacity var(--t-fast) var(--ease);
}

/* With a real pointer the instruction would repeat under all three rows, so it
   waits for the reader to reach for the address. Touch keeps it visible. */
@media (hover: hover) and (pointer: fine) {
  .asset-hint {
    opacity: 0;
  }

  .asset-address:hover .asset-hint,
  .asset-address:focus-within .asset-hint {
    opacity: 0.75;
  }
}

.asset-address {
  min-width: 0;
}

.asset-address code {
  display: block;
  padding: 0.8rem 1rem;
  background: var(--inset);
  border: 1px solid var(--edge-2);
  border-radius: var(--r);
  box-shadow: var(--shadow-well);
  font-size: 0.8125rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  color: var(--ink-2);
  user-select: all;
  cursor: text;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.asset-address code:hover {
  border-color: var(--edge-3);
  color: var(--ink);
}

.asset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.asset-actions .button {
  min-height: 42px;
  padding-inline: 1.05rem;
  font-size: 0.82rem;
}

.asset-qr {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  gap: 0.75rem;
  padding: 1.35rem;
  background: var(--inset);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-well);
  animation: qr-open 0.24s var(--settle);
}

@keyframes qr-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.asset-qr-svg {
  display: grid;
  place-items: center;
  width: 184px;
  height: 184px;
  padding: 8px;
  background: #ffffff;
  border-radius: var(--r);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.42);
}

.asset-qr-svg svg {
  display: block;
  width: 100%;
  height: 100%;
}

.asset-qr-caption {
  font-size: 0.8rem;
  color: var(--ink-3);
  text-align: center;
}

.support-status {
  margin-bottom: 1.25rem;
  padding: 0.9rem 1.15rem;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-left: 3px solid var(--signal);
  border-radius: var(--r);
  font-size: 0.86rem;
  color: var(--ink-2);
}

.support-status.is-error {
  border-left-color: var(--warn);
  color: var(--warn);
}

.support-demo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 0.45rem 0.95rem;
  background: var(--mid-soft);
  border: 1px solid color-mix(in srgb, var(--mid) 40%, transparent);
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 620;
  color: var(--mid);
}

@media (pointer: coarse), (max-width: 768px) {
  .asset-actions .button {
    min-height: 44px;
  }
}

@media (max-width: 1120px) {
  .asset-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding: 1.25rem;
  }

  .asset-actions .button {
    flex: 1 1 auto;
  }

  .asset-address code {
    font-size: 0.78rem;
  }
}

/* ── The note ───────────────────────────────────────────────────────────
   The one place on the site allowed to sound like a person rather than a
   service. Two columns: a label/heading rail and a measured body column. */

.support-story {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.5rem, 1rem + 2.4vw, 3.5rem);
  align-items: start;
}

.story-head h2 {
  max-width: 18ch;
  margin-top: 0.85rem;
}

.story-body {
  display: grid;
  gap: 1.05rem;
  max-width: 62ch;
}

.story-body p {
  font-size: clamp(0.98rem, 0.95rem + 0.16vw, 1.06rem);
  line-height: 1.72;
  color: var(--ink-2);
}

.story-lead {
  font-size: clamp(1.12rem, 1.02rem + 0.5vw, 1.42rem);
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.story-ask {
  position: relative;
  padding-left: 1.1rem;
  border-left: 2px solid color-mix(in srgb, var(--signal) 62%, transparent);
  color: var(--ink) !important;
}

.story-sign {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

.story-sign span {
  font-family: var(--sans);
  font-size: 0.74rem;
  color: var(--ink-3);
}

/* A quiet counter under the addresses: real ledger numbers, no projection. */
.support-impact {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.15rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-3);
}

.support-impact::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent);
}

@media (max-width: 900px) {
  .support-story {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-head h2 {
    max-width: 24ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .asset-row,
  .asset-row:hover {
    transform: none;
  }

  .asset-icon {
    transition: none;
  }
}

/* ── Contact ────────────────────────────────────────────────────────────
   Two addresses, no form. Cards rather than a list so the page keeps the
   same furniture as the rest of the site. */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
}

.contact-card {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 1.4rem 1.5rem;
}

.contact-kind {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* `.card h3` is a space-between flex row for title + arrow; an address wants
   to read as one string, so opt out of that here. */
.contact-card h3 {
  display: block;
  font-family: var(--mono);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.contact-card h3 > span {
  display: inline;
  white-space: normal;
}

.contact-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.contact-card:hover h3 {
  color: var(--signal-2);
}

.contact-empty {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink-3);
}

/* Contact addresses are assembled so no proxy rewrites them: the @ is drawn,
   the parts are real text, and site.js turns the card into a mailto: link. */
.mail-at::after {
  content: "@";
}

.mail-user,
.mail-domain {
  white-space: nowrap;
}

/* ── Buy Me a Coffee ────────────────────────────────────────────────────
   Card payments sit above the wallet addresses because most people never
   get past the first option. Same panel furniture as the coin rows. */

.coffee-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.15rem 1.4rem;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.35rem;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 221, 0, 0.12), transparent 62%),
    var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
}

.coffee-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 12px 26px -16px rgba(255, 221, 0, 0.55);
}

.coffee-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.coffee-copy {
  min-width: 0;
}

.coffee-kind {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.coffee-copy h3 {
  margin: 0.35rem 0 0.4rem;
  font-size: 1.08rem;
  font-weight: 660;
}

.coffee-copy p {
  max-width: 62ch;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.coffee-cta {
  white-space: nowrap;
}

.coffee-cta .arrow {
  margin-left: 0.45rem;
}

.crypto-divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.25rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.crypto-divider::before,
.crypto-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--edge-2);
}

.crypto-divider span {
  white-space: nowrap;
}

@media (max-width: 820px) {
  .coffee-panel {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .coffee-cta {
    grid-column: 1 / -1;
    justify-content: center;
  }
}
