/* components/isback-card-peek.js: a copy of the card gallery's hover preview (pulls.css .pl-tip);
   a tap on a phone opens components/isback-card-view.js (its own styles). */
.rk-peek-tip .cg-type { font-weight: 700; }
.rk-peek-tip .t-rock { color: #3fb950; }
.rk-peek-tip .t-paper { color: #58a6ff; }
.rk-peek-tip .t-scissors { color: #f0883e; }
.rk-peek-tip .t-gun { color: #e3b341; }

.rk-peek-name { font-size: 1.15rem; font-weight: 700; color: #f0f6fc; }
.rk-peek-kv { color: #8b949e; font-size: 0.9rem; margin-top: 0.15rem; }
.rk-peek-kws { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.5rem; color: #ccc; font-size: 0.95rem; line-height: 1.5; }
.rk-peek-kws li { padding: 0.5rem 0.75rem; background: rgba(0,255,204,0.05); border-left: 3px solid #00ffcc; border-radius: 0 6px 6px 0; }
.rk-peek-kws strong { color: #00ffcc; margin-right: 0.25rem; }
.rk-peek-kws li.kw-title strong { text-decoration: underline; text-underline-offset: 3px; }
.rk-peek-kws .kw-title-tag { color: #8b949e; }
.rk-peek-kws li.rk-peek-none { padding: 0; background: none; border: 0; color: #8b949e; font-size: 0.9rem; }

/* The "Banned / Limited N" badge, on the right of the "#id • Type • Power" row */
.rk-peek-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.35rem 0.5rem; }
.rk-peek-tip .cg-viewer-ban {
  display: inline-flex; align-items: center; gap: 0.4rem; margin: 0 0 0 auto; white-space: nowrap;
  padding: 0.25rem 0.7rem 0.25rem 0.45rem; border-radius: 999px; font-weight: 700; font-size: 0.9rem;
  background: rgba(232, 20, 28, 0.12); border: 1px solid rgba(232, 20, 28, 0.5); color: #ffb4b4;
}
.rk-peek-tip .cg-viewer-ban-limited1, .rk-peek-tip .cg-viewer-ban-limited2, .rk-peek-tip .cg-viewer-ban-limited3 { background: rgba(240, 136, 62, 0.12); border-color: rgba(240, 136, 62, 0.5); color: #ffd2a8; }
.rk-peek-tip .cg-viewer-ban .rk-ban-ico { width: 1.35em; height: 1.35em; }

/* ── Hover preview ── */
.rk-peek-tip {
  position: fixed; z-index: 1000; display: none; max-width: 420px; padding: 12px; pointer-events: none; box-sizing: border-box;
  background: #161b22; border: 1px solid #30363d; border-radius: 10px; box-shadow: 0 8px 24px #0008; color: #e6edf3; text-align: left;
}
.rk-peek-tip-img { display: block; width: 260px; height: 364px; margin: 0 auto 8px; object-fit: cover; border-radius: 6px; }

/* A double-sided card: front left, flip side right */
.rk-peek-flip { display: none; }
.rk-peek-tip.rk-peek-double { max-width: 860px; }
.rk-peek-tip.rk-peek-double { gap: 16px; align-items: flex-start; }
.rk-peek-double .rk-peek-side { width: 396px; min-width: 0; }
.rk-peek-double .rk-peek-flip { display: block; }
