/* garlicoin.org: gift links and cards: gift, card, claim, redeem, send.
   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. */

/* gift cards */
.gift-form { margin-bottom: 20px; }
.gift-print { display: grid; gap: 8px; container-type: inline-size; }
.gift-panel { position: relative; padding: 4.5% 5%; min-width: 0; }
.gift-front { display: flex; flex-direction: column; background: linear-gradient(135deg, #fde7a3, #f6c454 60%, #f2b632); border-right: 1.5px dashed #b9a77c; }
.gift-logo { position: absolute; right: 5%; top: 7%; width: 18%; height: auto; }
.gift-kicker { margin: 0; font-weight: 700; font-size: 1.15em; opacity: .75; }
.gift-title { margin: 0; font-family: var(--font-fun); font-weight: 600; font-size: 2.8em; line-height: 1; letter-spacing: -.01em; }
.gift-amount { margin: .15em 0 0; font-weight: 800; font-size: 1.9em; line-height: 1.1; min-height: 1.1em; }
.gift-to { margin: .2em 0 0; font-weight: 700; font-size: 1.15em; }
.gift-msg { margin: .1em 0 0; font-size: 1.05em; font-style: italic; max-width: 70%; }
.gift-addr { margin-top: auto; padding-top: .6em; display: flex; gap: 4%; align-items: flex-end; }
.gift-addr canvas { width: 24%; height: auto; border-radius: 4px; flex: none; }
.gift-addr span, .gift-secret { display: block; font-weight: 800; font-size: .85em; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.gift-addr code, .gift-key code { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; word-break: break-all; line-height: 1.3; }
.gift-inside { display: flex; flex-direction: column; gap: 3%; background: #fffdf6; }
.gift-secret { color: #b3261e; opacity: 1; }
.gift-key { display: flex; gap: 4%; align-items: center; }
.gift-key canvas { width: 32%; height: auto; flex: none; border-radius: 4px; }
.gift-key canvas, .gift-key code { filter: blur(6px); transition: filter .2s; }
.gift-key.revealed canvas, .gift-key.revealed code { filter: none; }
.gift-steps { margin: 0; padding-left: 1.3em; font-size: .95em; line-height: 1.35; }
.gift-steps b { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.gift-site { margin: auto 0 0; font-weight: 700; font-size: .95em; opacity: .7; }
.gift-fold { font-size: .88rem; }
.gift-actions { margin-top: 18px; }
@media (max-width: 640px) {
  .gift-panel { aspect-ratio: 95 / 70; }
  .gift-front { border-right: 0; border-bottom: 1.5px dashed #b9a77c; }
}
@media print {
  .gift-print { container-type: normal; }
  .gift-main::before, .gift-main::after { display: none !important; }
  .gift-panel { aspect-ratio: auto; }
  .gift-front { border-right: 1.5px dashed #b9a77c; border-bottom: 0; }
  .gift-key canvas, .gift-key code { filter: none !important; transition: none !important; }
}
@media (max-width: 640px) {
  .gift-form .calc-row input { flex-basis: 100%; }
}
/* gift card: click to see it full size */
.gift-print > .gift-card { cursor: zoom-in; }
.gift-print > .gift-card:hover { box-shadow: 0 8px 24px rgba(60, 45, 10, .18); }
.gift-print > .gift-card:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 3px; }
.gift-zoom { width: min(1100px, 96vw); max-width: none; max-height: 94vh; padding: 16px; border: 0; border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.gift-zoom::backdrop { background: rgba(28, 22, 11, .7); }
.gift-zoom-bar { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.gift-zoom-stage { container-type: inline-size; }
.gift-zoom .gift-card { max-width: none; font-size: 1.6cqi; cursor: default; }
.gift-zoom-note { margin: 10px 0 0; text-align: center; }
@media (max-width: 640px) {
  .gift-zoom { padding: 12px; }
  .gift-zoom .gift-card { font-size: 3.3cqi; }
}
.redeem-steps { gap: 26px; }
.redeem-check .addr-form { display: flex; flex-wrap: wrap; gap: 10px; }
.redeem-check .addr-form input { flex: 1 1 260px; }
.gift-card.rare { background: radial-gradient(circle at 50% 0, #fffbe8, #ffe08a 60%, #f2b632); }
.gift-card-kicker { margin: 0 0 6px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: #966000; }
.gift-card-art { width: 200px; margin: 6px auto 10px; border-radius: 26px; overflow: hidden; box-shadow: 0 8px 20px rgba(120, 80, 0, .2); }
.gift-card-art svg { width: 100%; height: auto; display: block; }
.gift-card-title { margin: 0; font-size: clamp(2rem, 8vw, 3rem); line-height: 1.05; overflow-wrap: anywhere; color: #2b2416; }
.gift-card-sub { margin: 8px auto 0; max-width: 420px; color: #5c4520; }
.gift-card-note { margin: 18px auto 0; max-width: 420px; font-size: 1.15rem; font-style: italic; color: #2b2416; overflow-wrap: anywhere; }
.gift-card-from { margin: 14px 0 0; font-weight: 800; color: #966000; }
.gift-card-foot { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; padding-top: 16px; border-top: 2px dashed rgba(168, 108, 0, .35); text-align: left; }
.gift-card-foot canvas { width: 96px; height: 96px; border-radius: 8px; background: #fff; flex: none; image-rendering: pixelated; }
.gift-card-foot p { margin: 0; font-size: .85rem; color: #5c4520; max-width: 260px; }
.gift-card-actions { justify-content: center; }
.gift-card-edit { margin: 14px auto 0; max-width: 420px; font-size: .78rem; color: #5c4520; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .names-links { justify-content: center; }
}
/* the block strip keeps its place until status.json says */
/* /send/: the amount box */
.send-amount { margin: 4px 0 12px; }
.send-amount input { max-width: 16em; }
/* ---------- /claim/ ---------- */
.claim-form { grid-template-columns: minmax(0, 1fr); }
.claim-key { display: flex; gap: 8px; }
.claim-key input { flex: 1; min-width: 0; }
.claim-found, .claim-summary { padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); border: 2px solid var(--gold); overflow-wrap: anywhere; }
.claim-found strong, .claim-summary strong { font-size: 1.15rem; }
.claim-form .btn { justify-self: start; }
.claim-done .card-title { color: var(--ok); }
.claim-callout { border-left: 4px solid var(--gold); }
#c-step2 { display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); }
#c-step2[hidden] { display: none; }
/* ---------- /send/ ---------- */
.send-fund { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.send-fund canvas { width: 200px; height: 200px; border-radius: 12px; flex: none; }
.send-fund-text { flex: 1 1 240px; min-width: 0; }
.send-addr { overflow-wrap: anywhere; font-size: .95rem; }
.claim-gift { border-left: 4px solid var(--gold); background: var(--gold-soft); }
.send-backup { margin-top: 14px; padding: 12px 14px; border: 2px dashed var(--gold); border-radius: 12px; }
.send-backup p:first-child { margin-top: 0; }
.send-print { display: none; }
@media print {
  .send-print { display: block; max-width: 5in; margin: 0 auto; padding: 16px; border: 2px dashed #999; color: #000; background: #fff; font-family: sans-serif; }
  .send-print h2 { margin: 0 0 10px; font-size: 18px; }
  .send-print canvas { width: 2.2in; height: 2.2in; }
  .send-print .mono { font-family: monospace; overflow-wrap: anywhere; }
}
.send-mine { list-style: none; padding: 0; margin: 8px 0 0; }
.send-mine li { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); }
.send-mine li:first-child { border-top: 0; }
.send-state { text-align: right; font-weight: 700; color: var(--muted); }
.send-state.held { color: var(--gold-text); }
.send-state.claimed { color: var(--ok); }
/* /claim/: the Garlicoin Core and other-wallet guides, folded */
.claim-more summary { cursor: pointer; list-style-position: outside; margin-left: 1.1em; }
.claim-more summary .card-title { display: inline; margin: 0; }
.claim-more summary .muted { display: block; margin-top: 2px; }
.claim-more details[open] summary { margin-bottom: 14px; }
.claim-more h3.card-title { margin-top: 22px; }
