/* House of Embers: hover previews (static/preview.js, core/previews.py). One fixed popover; the card inside is the game card, drawn by card.js
   or, without it, the site's own HTML card. Nothing here moves the page: the popover is position: fixed. */

.pv { position: fixed; left: 0; top: 0; z-index: 55; max-width: calc(100vw - 16px); padding: 0; margin: 0; visibility: visible; opacity: 0;
  pointer-events: auto; }
.pv[hidden] { display: none; }
.pv.on { opacity: 1; }
/* the transparent strip between the link and the card, so the pointer can cross to the card without it closing */
.pv[data-side="below"] { padding-top: var(--sp-2); }
.pv[data-side="above"] { padding-bottom: var(--sp-2); }
@media (prefers-reduced-motion: no-preference) {
  .pv { transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); transform: translateY(4px); }
  .pv[data-side="above"] { transform: translateY(-4px); }
  .pv.on { transform: none; }
}

.pv-in { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
.pv-row { display: flex; align-items: flex-start; gap: var(--sp-3); max-width: 100%; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .45)); }
.pv-ic { flex: none; padding-top: 6px; }
.pv-fit { min-width: 0; }
.pv .gc-box { margin: 0; background-color: rgb(16, 0, 16); }   /* the game's box is a little see-through; over page text it needs a floor */
@media (max-width: 400px) { .pv-ic { display: none; } }

/* a person: the face and the hologram on a panel, as the Firekeeper's threshold shows them */
.pv-panel { align-items: center; padding: var(--sp-3) var(--sp-4); background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .45)); }
.pv-face { flex: none; width: 64px; height: 64px; border-radius: 8px; image-rendering: pixelated; background: var(--surface-2); }
.pv-panel .tag { margin: 0; padding: 0; background: none; }

/* the plain tooltip: the title only, when a card cannot be shown */
.pv-text { padding: var(--sp-2) var(--sp-3); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--sp-2);
  color: var(--text); font: 600 14px/1.4 var(--sans); box-shadow: var(--shadow-lift); }

/* a phone's first tap peeks; this says what the second one does */
.pv-hint { margin: 0; padding: 2px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--pill); color: var(--text-2);
  font: 600 12px/1.5 var(--sans); }
