/* Rumplebitskin "Tip Rumplebitskin": a full-screen panel over the feed. Same dark palette and structure as rewards.css. */
html.fbtip-open, html.fbtip-open body { overflow: hidden; }
#fbtip { position: fixed; inset: 0; z-index: 500; display: none; background: #0a0a0a; color: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch; font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-text-size-adjust: 100%; }
#fbtip.on { display: block; }
#fbtip *, #fbtip *::before, #fbtip *::after { box-sizing: border-box; }
#fbtip h1, #fbtip h2, #fbtip p { margin: 0; }
.fbtip-wrap { max-width: 480px; margin: 0 auto; padding: 14px 14px 90px; min-height: 100%; text-align: center; }

.fbtip-top { display: flex; align-items: center; gap: 10px; padding: 4px 0 14px; border-bottom: 1px solid #1e1e1e; margin-bottom: 22px; text-align: left; }
.fbtip-top h1 { font-size: 20px; font-weight: 800; flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.2; }
.fbtip-back { flex: none; width: 38px; height: 38px; border-radius: 999px; border: 1px solid #1e1e1e; background: #141414; color: #eeeeee; font: inherit; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.fbtip-back:hover { border-color: #9945ff; }
#fbtip button:focus-visible, #fbtip a:focus-visible, .fbtip-input:focus-visible { outline: 2px solid #00ff88; outline-offset: 2px; }

.fbtip-mascot { display: block; width: 96px; height: auto; margin: 4px auto 10px; filter: drop-shadow(0 8px 20px rgba(0,0,0,.5)); }
.fbtip-mascot.big { width: 180px; border-radius: 18px; border: 1px solid #2a2a2a; margin-bottom: 18px; }
.fbtip-lead { font-family: 'Bodoni Moda', Georgia, serif; font-size: 24px; font-weight: 700; color: #ffd064; margin-bottom: 8px; }
.fbtip-sub { font-size: 14px; color: #cccccc; line-height: 1.55; margin-bottom: 20px; }
.fbtip-thanks { font-family: 'Bodoni Moda', Georgia, serif; font-size: 28px; font-weight: 700; color: #ffd064; margin-bottom: 10px; overflow-wrap: anywhere; }

.fbtip-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.fbtip-amt { min-height: 44px; padding: 8px 4px; border-radius: 12px; border: 1px solid #2a2a2a; background: #141414; color: #eeeeee; font: inherit; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 13px; font-weight: 700; cursor: pointer; }
.fbtip-amt:hover { border-color: #9945ff; }
.fbtip-amt.on { border-color: #ffb020; background: rgba(255,176,32,.12); color: #ffd064; }
.fbtip-input { display: block; width: 100%; min-height: 44px; margin-bottom: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid #2a2a2a; background: #141414; color: #fff; font: inherit; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 15px; text-align: center; }
.fbtip-err { font-size: 13px; color: #ff5555; margin-bottom: 12px; }

.fbtip-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 34px; margin-top: 4px; border-radius: 999px; border: none;
  background: linear-gradient(180deg, #ffd064, #ffb020); color: #0a0a0a;
  font: inherit; font-size: 15px; font-weight: 800; letter-spacing: .5px; cursor: pointer;
}
.fbtip-btn:disabled { opacity: .6; cursor: default; }
.fbtip-btn:hover:not(:disabled) { opacity: .92; }
.fbtip-btn2 { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid #2a2a2a; background: #141414; color: #eeeeee; font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.fbtip-btn2:hover { border-color: #9945ff; }
.fbtip-link { display: block; margin: 16px auto 0; background: none; border: none; color: #888888; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.fbtip-link:hover { color: #eeeeee; }
.fbtip-hint { margin-top: 18px; font-size: 12px; color: #888888; line-height: 1.5; }
.fbtip-total { margin-top: 14px; font-size: 13px; color: #14f195; font-weight: 700; }

.fbtip-fee { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 14px; }
.fbtip-fee b { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 26px; color: #ffd064; }
.fbtip-fee span { font-size: 12px; color: #888888; }
.fbtip-or { margin: 18px 0 10px; font-size: 12px; color: #888888; }
.fbtip-qr { width: 200px; margin: 0 auto 14px; padding: 8px; background: #fff; border-radius: 14px; }
.fbtip-qr svg { display: block; width: 100%; height: auto; }
.fbtip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fbtip-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 13px; color: #cccccc; min-height: 20px; }
.fbtip-spin { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #2a2a2a; border-top-color: #00ff88; animation: fbtip-spin 1s linear infinite; }
@keyframes fbtip-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fbtip-spin { animation: none; } }
@media (max-width: 360px) { .fbtip-amounts { grid-template-columns: repeat(2, 1fr); } }
