:root {
  --bg: #1a1030;
  --bg2: #241546;
  --panel: #2e1a56;
  --panel2: #3a2168;
  --ink: #f3ecff;
  --muted: #b6a4de;
  --accent: #ff5c8a;
  --accent2: #ffb347;
  --gold: #ffd45c;
  --good: #4ade80;
  --bad: #ff6b6b;
  --card-w: 120px;
  --card-h: 176px;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0,0,0,.35);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, #3a1f66 0%, transparent 60%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg2) 100%);
  background-attachment: fixed;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

#app { max-width: 1000px; margin: 0 auto; padding: 20px 16px 60px; }

.screen { display: none; }
.screen.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hidden { display: none !important; }

/* ---------------- Home ---------------- */
.hero { text-align: center; margin: 24px 0 20px; }
.title { font-size: 42px; margin: 0; letter-spacing: .5px; }
.tagline { color: var(--muted); margin: 8px 0 0; }

.panel {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  max-width: 460px;
  margin: 0 auto;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field span { color: var(--muted); font-size: 13px; }

input, .btn {
  font-size: 15px;
  font-family: inherit;
}
input {
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--ink);
  padding: 11px 12px;
  border-radius: 10px;
  outline: none;
}
input:focus { border-color: var(--accent); }

.home-actions { display: flex; flex-direction: column; gap: 10px; }

.btn {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, opacity .15s;
  font-weight: 600;
}
.btn:hover { background: rgba(255,255,255,.18); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, var(--accent), #e24675); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.ghost { background: transparent; }

.divider { text-align: center; color: var(--muted); margin: 18px 0; position: relative; font-size: 13px; }
.divider::before, .divider::after {
  content: ""; position: absolute; top: 50%; width: 34%; height: 1px; background: rgba(255,255,255,.12);
}
.divider::before { left: 0; } .divider::after { right: 0; }

.join-row { display: flex; gap: 8px; }
.code-input { text-transform: uppercase; letter-spacing: 4px; font-weight: 700; text-align: center; flex: 1; }
.error { color: var(--bad); min-height: 18px; font-size: 13px; margin: 10px 0 0; }
.hint { color: var(--muted); font-size: 13px; }

.rules-toggle { max-width: 460px; margin: 18px auto 0; color: var(--muted); }
.rules-toggle summary { cursor: pointer; padding: 8px 0; }
.rules-body { font-size: 13.5px; line-height: 1.5; }
.rules-body table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.rules-body td { padding: 3px 6px; border-bottom: 1px solid rgba(255,255,255,.08); }

/* ---------------- Lobby ---------------- */
#screen-lobby h2 { display: flex; align-items: center; gap: 10px; }
.code-chip {
  background: var(--gold); color: #3a2168; font-weight: 800; letter-spacing: 3px;
  padding: 4px 12px; border-radius: 8px; font-size: 20px;
}
.code-chip.small { font-size: 13px; padding: 2px 8px; letter-spacing: 2px; }
.share-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
#share-link { flex: 1; min-width: 180px; font-size: 12px; }
.invite { margin: 10px 0 4px; }
.invite-label { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.invite-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.invite-row #share-link { flex: 1 1 200px; }

.seat-list { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.seat {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 10px 14px;
}
.seat .badge { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: rgba(255,255,255,.12); }
.seat .badge.host { background: var(--gold); color: #3a2168; }
.seat .badge.bot { background: #7c5cff; }
.seat .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); }
.seat .dot.off { background: #777; }
.seat .name { font-weight: 600; flex: 1; }
.seat .rm { margin-left: auto; }

.lobby-controls { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.host-only { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.inline-field { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.tokens-input { width: 60px; text-align: center; }

/* ---------------- Game ---------------- */
.game-header {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 16px;
}
.round-info { font-weight: 700; }
.deck-info { color: var(--muted); font-size: 14px; margin-left: auto; }

.opponents {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px;
}
.opp {
  background: var(--panel); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 12px; min-width: 150px; position: relative;
  transition: box-shadow .2s, transform .2s;
}
.opp.current { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.opp.eliminated { opacity: .5; filter: grayscale(.6); }
.opp.targetable { cursor: pointer; box-shadow: 0 0 0 2px var(--accent); }
.opp.targetable:hover { transform: translateY(-3px); }
.opp .opp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.opp .opp-name { font-weight: 700; }
.opp .tag { font-size: 10px; padding: 1px 6px; border-radius: 10px; background: #7c5cff; }
.opp .tokens { display: flex; gap: 3px; margin: 6px 0; }
.heart { color: var(--accent); }
.heart.empty { color: rgba(255,255,255,.18); }
.opp .status { font-size: 12px; color: var(--muted); min-height: 16px; }
.opp .protected-badge { color: var(--accent2); }

.mini-cards { display: flex; gap: 4px; align-items: flex-end; margin-top: 6px; flex-wrap: wrap; }
.mini-card {
  width: 26px; height: 38px; border-radius: 5px; background: var(--panel2);
  border: 1px solid rgba(255,255,255,.15); font-size: 11px; display: flex;
  align-items: center; justify-content: center; font-weight: 700;
}
.mini-card.back { background: repeating-linear-gradient(45deg,#4a2c86,#4a2c86 4px,#3a2168 4px,#3a2168 8px); color: transparent; }
.mini-label { font-size: 10px; color: var(--muted); width: 100%; }

.table-center { text-align: center; min-height: 30px; margin: 8px 0; }
.banner {
  display: inline-block; padding: 8px 16px; border-radius: 20px;
  background: rgba(0,0,0,.25); color: var(--gold); font-weight: 700; min-height: 20px;
}

.private-msg { text-align: center; color: var(--accent2); font-weight: 600; min-height: 22px; margin: 6px 0; }

/* Persistent "what just happened" announcement */
.announce {
  display: inline-block; margin-top: 8px; padding: 6px 14px; border-radius: 16px;
  font-weight: 600; font-size: 14px; color: var(--ink);
  background: rgba(0,0,0,.22); opacity: 0; transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease; max-width: 92%;
}
.announce.show { opacity: 1; transform: none; }
.announce.hit { background: rgba(255,92,138,.22); color: #ffd0dd; }
.announce.peek { background: rgba(255,179,71,.18); color: var(--accent2); }

/* Face-up mini cards (hands, peeks, discards) */
.mini-card.face {
  position: relative; background: linear-gradient(160deg, #fff6f9, #ffe0ec);
  color: #40203a; flex-direction: column; gap: 0; padding: 2px 0;
}
.mini-card .mini-val { font-size: 11px; font-weight: 900; line-height: 1; }
.mini-card .mini-emoji { font-size: 15px; line-height: 1; }
.mini-card.peeked { box-shadow: 0 0 0 2px var(--accent2); }
.mini-card .peek-eye { position: absolute; top: -8px; right: -6px; font-size: 12px; }

/* Play area: table center + discard pile side panel */
.play-area { display: flex; gap: 16px; align-items: flex-start; margin: 8px 0; flex-wrap: wrap; }
.play-area .table-center { flex: 1 1 300px; }

.discard-area {
  flex: 0 0 auto; width: 210px; max-width: 100%;
  background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 10px 12px;
}
.discard-area h3 { margin: 0 0 8px; font-size: 14px; color: var(--muted); font-weight: 700; }
.discard-count { color: var(--gold); }
.discard-cards { display: flex; gap: 6px; flex-wrap: wrap; max-height: 220px; overflow-y: auto; }
.pile-empty { color: var(--muted); font-size: 12px; font-style: italic; }

/* Medium face-up card with a readable name (discard pile + Spy token) */
.med-card {
  width: 56px; min-height: 74px; border-radius: 9px; position: relative;
  background: linear-gradient(160deg, #fff6f9, #ffe0ec); color: #40203a;
  border: 1px solid rgba(255,255,255,.5); box-shadow: 0 3px 8px rgba(0,0,0,.28);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4px 2px; user-select: none;
}
.med-card .med-val { position: absolute; top: 3px; left: 5px; font-weight: 900; font-size: 12px; }
.med-card .med-emoji { font-size: 22px; line-height: 1; margin-top: 6px; }
.med-card .med-name { font-size: 10px; font-weight: 700; margin-top: 3px; text-align: center; }
.med-card.back-card {
  background: repeating-linear-gradient(45deg,#4a2c86,#4a2c86 6px,#3a2168 6px,#3a2168 12px);
  color: rgba(255,255,255,.35); font-size: 20px; font-weight: 800;
}
.med-card.dealt { animation: dealIn .42s cubic-bezier(.2,.8,.3,1.2); }

/* Spy shown in front of a player */
.spy-front { display: flex; gap: 6px; margin-top: 10px; }
.opp .spy-front { justify-content: center; }
.med-card.spy-card { box-shadow: 0 0 0 2px var(--accent2), 0 3px 8px rgba(0,0,0,.28); }

/* Deal-in animation for a freshly played card */
@keyframes dealIn {
  0% { transform: translateY(-26px) scale(.6) rotate(-8deg); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}
.mini-card.dealt { animation: dealIn .42s cubic-bezier(.2,.8,.3,1.2); }

.options-row { gap: 18px; }
.options-row .inline-field { cursor: pointer; }

/* Current-seat "thinking" indicator */
.status.thinking { color: var(--gold); }
.opp.current { animation: pulseSeat 1.4s ease-in-out infinite; }
@keyframes pulseSeat {
  0%, 100% { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
  50% { box-shadow: 0 0 0 4px rgba(255,212,92,.5), var(--shadow); }
}

/* Selected target highlight */
.opp.target-picked { box-shadow: 0 0 0 3px var(--gold) !important; }

.you-area { margin-top: 10px; }
.your-info { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.your-info .you-name { font-weight: 800; font-size: 17px; }

.hand { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; min-height: var(--card-h); }

/* Cards — placeholder art (CSS). Swap in images later via .card .art */
.card {
  width: var(--card-w); height: var(--card-h);
  border-radius: 12px; position: relative; cursor: default;
  background: linear-gradient(160deg, #fff6f9, #ffe6ef);
  color: #40203a; box-shadow: var(--shadow);
  border: 2px solid rgba(255,255,255,.6);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 8px 6px; transition: transform .12s ease, box-shadow .12s ease;
  user-select: none;
}
.card .val { position: absolute; top: 6px; left: 9px; font-weight: 900; font-size: 20px; }
.card .val.br { top: auto; left: auto; bottom: 6px; right: 9px; transform: rotate(180deg); }
.card .art { font-size: 46px; margin-top: 20px; }
.card .cname { font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.card .cdesc { font-size: 11px; text-align: center; color: #6b3a5e; padding: 0 7px 6px; line-height: 1.3; }
.card.playable { cursor: pointer; }
.card.playable:hover { transform: translateY(-10px); box-shadow: 0 14px 30px rgba(0,0,0,.4); }
.card.selected { transform: translateY(-14px); box-shadow: 0 0 0 3px var(--gold), var(--shadow); }
.card.disabled { opacity: .5; }
.card.back {
  background: repeating-linear-gradient(45deg,#4a2c86,#4a2c86 8px,#3a2168 8px,#3a2168 16px);
  border-color: rgba(255,255,255,.25);
}

.action-bar {
  margin-top: 16px; padding: 14px; border-radius: 12px;
  background: var(--panel); border: 1px solid rgba(255,255,255,.08); min-height: 20px;
}
.action-bar .prompt { font-weight: 700; margin-bottom: 10px; }
.action-bar .choices { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 12px; border-radius: 20px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16); cursor: pointer; font-weight: 600; font-size: 14px;
}
.chip:hover { background: rgba(255,255,255,.2); }
.chip.sel { background: var(--gold); color: #3a2168; border-color: transparent; }
.waiting { color: var(--muted); }

.log-wrap { margin-top: 20px; flex: 1 1 320px; }
.log-wrap h3 { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.log {
  background: rgba(0,0,0,.22); border-radius: 10px; padding: 10px 14px;
  max-height: 260px; overflow-y: auto; font-size: 13px; line-height: 1.5;
}
.log .entry { padding: 2px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.log .entry:last-child { border-bottom: none; }
.log .entry.round { color: var(--gold); font-weight: 700; }

/* Log + card-reference side by side */
.bottom-row { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.rule-card-wrap { margin-top: 20px; flex: 0 0 auto; width: 280px; max-width: 100%; }
.rule-card-wrap h3 { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.rule-card {
  background: linear-gradient(180deg, #fff6f9, #ffe6ef); color: #40203a;
  border-radius: 12px; padding: 6px 10px; box-shadow: var(--shadow);
}
.rule-row { display: flex; gap: 8px; align-items: center; padding: 3px 2px; border-bottom: 1px solid rgba(64,32,58,.12); }
.rule-row:last-child { border-bottom: none; }
.rule-badge {
  flex: 0 0 auto; width: 26px; height: 34px; border-radius: 6px;
  background: linear-gradient(160deg, #ffd9e6, #ffc2d7); border: 1px solid rgba(64,32,58,.2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.rule-badge .rule-val { font-weight: 900; font-size: 12px; line-height: 1; }
.rule-badge .rule-emoji { font-size: 13px; line-height: 1; }
.rule-body { flex: 1; min-width: 0; }
.rule-head { display: flex; align-items: baseline; gap: 6px; }
.rule-name { font-weight: 800; font-size: 12.5px; }
.rule-count { font-weight: 700; font-size: 11px; color: #a03c68; }
.rule-desc { font-size: 10.5px; line-height: 1.2; color: #6b3a5e; margin-top: 0; }

.round-over {
  position: fixed; inset: 0; background: rgba(10,4,24,.82);
  display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px;
}
.round-over .card-modal {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 28px;
  max-width: 440px; text-align: center; box-shadow: var(--shadow);
}
.round-over h2 { margin-top: 0; }
.round-over .reveal { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 16px 0; }
.modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }

/* Leave / back buttons */
.back-btn { margin-bottom: 10px; }
.leave-btn { margin-left: 8px; }

/* Reveal ("flash the cards") modal */
.reveal-modal { max-width: 520px; }
.reveal-title { font-size: 20px; line-height: 1.3; }
.reveal-oust { color: var(--bad); font-weight: 800; font-size: 18px; margin: 6px 0 2px; }
.reveal-card { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.reveal-card .mini-label { color: var(--muted); font-size: 12px; }
@keyframes flashIn {
  0% { transform: rotateY(90deg) scale(.8); opacity: 0; }
  55% { opacity: 1; }
  70% { transform: rotateY(0deg) scale(1.06); }
  100% { transform: none; opacity: 1; }
}
.card.flash-in { animation: flashIn .5s ease both; box-shadow: 0 0 0 3px var(--gold), var(--shadow); }
.reveal-modal .btn.primary { margin-top: 8px; }

/* ---- Card-game flourish animations ---- */

/* Modal entrance: backdrop fade + box pop */
.round-over { animation: backdropIn .25s ease both; }
@keyframes backdropIn { from { background: rgba(10,4,24,0); } to { background: rgba(10,4,24,.82); } }
.card-modal { animation: modalPop .34s cubic-bezier(.2,.9,.3,1.35) both; }
@keyframes modalPop {
  0% { transform: scale(.82) translateY(14px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

/* Dealing hands/seats in at the start of a round */
@keyframes dealFromDeck {
  0% { transform: translate(0, -300px) rotate(-16deg) scale(.6); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.deal-in { animation: dealFromDeck .5s cubic-bezier(.2,.8,.3,1.05) both; }

/* Drawing a card into your hand */
@keyframes drawIn {
  0% { transform: translate(140px, -140px) rotate(14deg) scale(.7); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.card.draw-in { animation: drawIn .46s cubic-bezier(.2,.8,.3,1.05) both; }

/* A card gliding to the discard pile */
.flying-card {
  position: fixed; z-index: 200; pointer-events: none;
  transition: transform .55s cubic-bezier(.4,.05,.25,1), opacity .55s ease;
  box-shadow: 0 12px 34px rgba(0,0,0,.55);
}

/* Elimination shake */
@keyframes shakeOut {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); } 40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); } 80% { transform: translateX(5px); }
}
.opp.just-eliminated, .you-area.just-eliminated { animation: shakeOut .5s ease; }
.opp.just-eliminated { box-shadow: 0 0 0 3px rgba(255,107,107,.85), var(--shadow); }

/* Token gained → heart pops */
@keyframes heartPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.7); color: var(--gold); text-shadow: 0 0 12px var(--gold); }
  100% { transform: scale(1); }
}
.heart.pop { animation: heartPop .6s ease; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------------- Mobile (device-detected via html.is-mobile) ---------------- */
html.is-mobile { --card-w: 104px; --card-h: 154px; }
html.is-mobile #app { padding: 12px 10px 40px; }
html.is-mobile .title { font-size: 32px; }
html.is-mobile .tagline { font-size: 14px; }
html.is-mobile .panel { padding: 18px; }

/* Header wraps; deck info drops to its own line */
html.is-mobile .game-header { gap: 6px 12px; }
html.is-mobile .deck-info { margin-left: 0; flex-basis: 100%; }

/* Opponents: two compact seats per row */
html.is-mobile .opponents { gap: 8px; }
html.is-mobile .opp { min-width: 0; flex: 1 1 44%; padding: 9px 10px; }
html.is-mobile .opp .opp-name { font-size: 14px; }

/* Stacked reference panels, shorter scroll areas */
html.is-mobile .play-area { gap: 10px; }
html.is-mobile .discard-area, html.is-mobile .rule-card-wrap { width: 100%; }
html.is-mobile .discard-cards { max-height: 132px; }
html.is-mobile .bottom-row { gap: 10px; }
html.is-mobile .log { max-height: 150px; }

/* Comfortable tap targets */
html.is-mobile .btn { padding: 12px 16px; min-height: 46px; }
html.is-mobile .btn.small { padding: 9px 13px; min-height: 40px; }
html.is-mobile .chip { padding: 11px 15px; font-size: 15px; }
html.is-mobile input { padding: 12px; font-size: 16px; } /* 16px avoids iOS zoom-on-focus */
html.is-mobile .code-input { font-size: 18px; }

/* Modals fit the screen */
html.is-mobile .card-modal { padding: 20px 15px; max-height: 88vh; overflow-y: auto; width: 100%; }
html.is-mobile .reveal-title { font-size: 17px; }
html.is-mobile .round-over { padding: 12px; }

/* Hand stays centered and tappable; avoid tap-delay/double-tap zoom on cards */
html.is-mobile .hand { gap: 10px; }
.card, .med-card, .mini-card, .chip, .btn, .opp { touch-action: manipulation; }

/* Sticky control bar: during your turn the play controls pin to the bottom */
html.is-mobile .action-bar.active-turn {
  position: sticky; bottom: 0; z-index: 30;
  margin-top: 12px;
  background: linear-gradient(180deg, rgba(46,26,86,.86), rgba(36,21,70,.96));
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 24px rgba(0,0,0,.45);
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}

html.is-small { --card-w: 92px; --card-h: 138px; }
html.is-small .opp { flex-basis: 100%; }
html.is-small .title { font-size: 28px; }

/* Long-press full-size card preview */
.card-preview-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(6,2,16,.8);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  animation: backdropIn .15s ease both;
}
.card-preview-overlay .preview-card {
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  animation: previewIn .2s ease both;
}
@keyframes previewIn {
  0% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.9); opacity: 1; }
}
.card-preview-overlay .preview-hint { color: var(--muted); font-size: 13px; margin-top: 60px; }
