/* =====================================================================
   kagerou.glass — /refill/refill.css
   "Refill the Dispensary." A single centred slip, on the shared yamero
   base (palette, fonts, stickers, lace, liminal floor). The page carries
   no home-specific chrome — just the sign, the card, and the footer.
   ===================================================================== */

:root {
  --base-2: #161019;   /* panel fill, matches the ledger card */
}

/* Pink gingham ribbon (jirai signature) — the blog's .marble, pinned to
   the top so it frames the page without nudging the centred card. */
.marble {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 13px;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(255, 134, 191, 0.30) 9px 18px),
    repeating-linear-gradient(0deg,  transparent 0 9px, rgba(255, 134, 191, 0.30) 9px 18px),
    linear-gradient(rgba(194, 164, 242, 0.10), rgba(194, 164, 242, 0.10));
  opacity: 0.9;
  border-bottom: 1px solid var(--line-soft);
}

/* ---- Layout: card roughly centred in the viewport ---- */
.refill-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  padding: 4.5rem 1.25rem 2.5rem;
  box-sizing: border-box;
}

/* The 陽炎窓 sign, linking home */
.refill-mark {
  display: inline-block;
  font-family: var(--f-display);
  font-size: clamp(2.1rem, 6.5vw, 3.2rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s ease;
}
.refill-mark:hover { color: var(--pink-soft); }

/* =====================================================================
   The slip — ported from the ledger's "Refill the Dispensary" card
   ===================================================================== */
.refill-card {
  position: relative;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2rem, 4.5vw, 3.2rem);
  text-align: center;
  overflow: visible;
  transform: rotate(-0.7deg);
  background:
    radial-gradient(ellipse 82% 72% at 50% 52%, rgba(13,10,16,0.92), rgba(13,10,16,0.55) 62%, transparent 100%),
    var(--tex-damask),
    radial-gradient(120% 90% at 50% 0%, rgba(255,134,191,0.07), transparent 60%),
    var(--base-2);
  background-size: auto, 84px 84px, auto, auto;
  border: 1px solid var(--line);
  outline: 1px solid var(--line-hair);
  outline-offset: 5px;
  box-shadow: 0 0 44px -12px var(--pink-glow);
}
.refill-card::before {
  content: '✚';
  position: absolute;
  top: -0.72em;
  left: 50%;
  transform: translateX(-50%);
  background: var(--base);
  padding: 0 0.55rem;
  color: var(--pink);
  font-size: 1.2rem;
}
/* Lift content above the card's background layers — but NOT the stickers,
   which must keep their own absolute positioning (the bow + ありがとう). */
.refill-card > :not(.sticker) { position: relative; z-index: 1; }

.refill-card h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  color: var(--ink);
  margin: 0 0 0.7rem;
}
.refill-lede {
  max-width: 42ch;
  margin: 0 auto 1.8rem;
  color: var(--ink-soft);
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(13,10,16,0.9);
}

/* ---- Capsule Ko-fi button ---- */
.kofi-seal {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1.5rem 0.6rem 0.6rem;
  font-family: var(--f-digital);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--base);
  background: linear-gradient(120deg, var(--cyan), var(--pink) 55%, var(--pink-hot));
  border-radius: 999px;
  box-shadow: 0 0 22px -6px var(--pink-hot), 0 0 22px -10px var(--cyan), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.kofi-seal .kofi-wax {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: var(--base);
  color: var(--pink);
  font-family: var(--f-body);
  font-size: 0.8rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}
.kofi-seal:hover { transform: translateY(-2px); box-shadow: 0 6px 26px -6px var(--pink-hot), inset 0 1px 0 rgba(255,255,255,0.4); }
.kofi-seal:active { transform: translateY(0); }

/* =====================================================================
   Crypto addresses — click to copy (XMR + BTC, side by side)
   ===================================================================== */
.crypto-grid {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin: 2rem auto 0;
  max-width: 32rem;
}
.crypto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.crypto-label {
  font-family: var(--f-digital);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--lilac-soft);
}
.crypto-addr {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--cyan);
  background: var(--void);
  border: 1px solid var(--line-cyan);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  width: 100%;
  box-sizing: border-box;
  word-break: break-all;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.crypto-addr:hover, .crypto-addr:focus {
  color: var(--cyan-hot);
  border-color: var(--cyan-hot);
  box-shadow: 0 0 18px -7px var(--cyan);
  outline: none;
}
.crypto-hint {
  font-family: var(--f-digital);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

/* Sits below the slip, in the page flow (not inside the card) */
.refill-coda {
  margin: 0;
  text-align: center;
  font-family: var(--f-digital);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}
.refill-coda b { color: var(--pink-soft); font-weight: 400; }

/* ---- Small "back" link below the slip ---- */
.refill-back {
  font-family: var(--f-digital);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.25s ease;
}
.refill-back:hover { color: var(--pink); }

/* =====================================================================
   Footer — matches the home page (.site-footer in /style.css)
   ===================================================================== */
.site-footer { position: relative; z-index: 10; max-width: 760px; margin: 0 auto; padding: 1rem 1.5rem 3rem; text-align: center; }
.footer-inner { display: flex; align-items: center; justify-content: center; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.6rem; font-family: var(--f-digital); font-size: 0.74rem; }
.footer-logo { font-family: var(--f-display); font-size: 1.05rem; color: var(--ink); }
.footer-sep { color: var(--pink); font-size: 0.66rem; }
.site-footer a { color: var(--ink-dim); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--cyan); }
.footer-craft { margin-top: 1.1rem; font-size: 0.78rem; color: var(--ink-faint); font-style: italic; }
.footer-craft a { color: var(--ink-dim); text-decoration: none; }
.footer-craft a:hover { color: var(--pink); }

@media (max-width: 560px) {
  .refill-card { transform: none; }
  .footer-inner { gap: 0.45rem 0.7rem; }
}
