/* Table item perks (owner 2026-10-07): rabbit hunt, river squeeze, +Time.
   Subtle and premium: muted ivory on smoked glass; champagne (#D4B98A)
   only as a hairline accent — the primary action stays the action bar. */

/* ghosted rabbit cards: the board that would have come, never "real" */
.board .pcard.ghost {
  opacity: .46; filter: saturate(.35) brightness(.92);
  box-shadow: 0 0 0 1px rgba(212,185,138,.28), 0 2px 6px rgba(0,0,0,.4);
}
.board .pk-rabbit-tag {
  position: absolute; left: 50%; top: calc(100% + 3px); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 3px; white-space: nowrap;
  font: 700 8.5px var(--tb-font); letter-spacing: .14em; text-transform: uppercase;
  color: rgba(240,234,222,.62);
}
.board .pk-rabbit-tag svg { width: 10px; height: 10px; }

/* rabbit hunt button (fold-outs before the river, players in the hand) */
.pk-rabbit {
  position: absolute; z-index: 5; transform: translateX(-50%) scale(var(--s, 1)); transform-origin: 50% 0;
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px 0 8px;
  border-radius: 14px; cursor: pointer; overflow: hidden;
  background: linear-gradient(180deg, rgba(40,41,46,.94), rgba(16,17,20,.96));
  border: 1px solid rgba(212,185,138,.42); color: #EDE6D8;
  font: 700 11px var(--tb-font); letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 4px 10px rgba(0,0,0,.5);
  animation: pk-in .22s ease-out both;
}
.pk-rabbit svg { width: 16px; height: 16px; flex: none; }
.pk-rabbit .pk-lock { width: 11px; height: 11px; color: rgba(237,230,216,.7); }
.pk-rabbit.locked { color: rgba(237,230,216,.72); border-color: rgba(255,255,255,.16); }
.pk-rabbit:disabled { opacity: .6; cursor: default; }
/* the window drains along the bottom edge */
.pk-rabbit .pk-bar {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: rgba(212,185,138,.55); transform-origin: 0 50%;
  animation: pk-drain var(--left, 5000ms) linear forwards;
}
.pk-rabbit.locked .pk-bar { background: rgba(255,255,255,.18); }
@keyframes pk-drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes pk-in { from { opacity: 0; transform: translateX(-50%) scale(var(--s, 1)) translateY(-3px); } }

/* river squeeze: the hero's river face down, our back peels off the corner */
.pcard.sq-wrap { background: transparent; box-shadow: none; cursor: grab; touch-action: none; perspective: 260px; }
.pcard.sq-wrap.peeling { cursor: grabbing; }
.pcard.sq-wrap > .pcard.sq-face { position: absolute; inset: 0; width: 100%; height: 100%; }
.pcard.sq-wrap .sq-cover {
  position: absolute; inset: 0; border-radius: inherit; transform-origin: 0 0;
  background: repeating-linear-gradient(45deg, #1b1b1f 0 3px, #24242a 3px 6px);
  border: 1.5px solid #D4B98A; box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0,0,0,.6); backface-visibility: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.pcard.sq-wrap .sq-hint {
  margin-bottom: 4px; font: 700 7.5px var(--tb-font); letter-spacing: .12em; text-transform: uppercase;
  color: rgba(237,230,216,.78); pointer-events: none;
}
/* the dog-eared corner that invites the peel */
.pcard.sq-wrap .sq-corner {
  position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 0 0 4px 0;
  background: linear-gradient(315deg, transparent 50%, rgba(237,230,216,.85) 50%);
  animation: sq-nudge 1.6s ease-in-out infinite;
}
.pcard.sq-wrap.peeling .sq-corner { animation: none; opacity: 0; }
.pcard.sq-wrap.done .sq-cover { transition: transform .24s ease-in, opacity .24s ease-in; transform: perspective(260px) rotate3d(1, -1, 0, -175deg); opacity: 0; }
@keyframes sq-nudge { 0%, 100% { transform: none; } 50% { transform: translate(-1px, -1px) scale(1.15); } }

/* +Time: one 15 s time card on your turn, next to the time bank */
.side-btn.pk-addtime { left: 48px; top: 4px; width: auto; min-width: 44px; padding: 0 8px; font: 800 11.5px var(--tb-font); color: #EDE6D8; }
.side-btn.pk-addtime:disabled { opacity: .55; }
.side-btn.pk-addtime[hidden] { display: none; }

/* +15 time chip (js/table-perks.js paintAddTime). These rules lived only in
   table-actpanel.css, which index.html does not link, so the chip rendered
   unstyled at the stage top-left ("+1530s"). */
.tb-chip {
  position: absolute; z-index: 6; width: 40px; height: 40px; margin: -20px 0 0 -20px; padding: 0; border-radius: 50%; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  background: radial-gradient(circle at 50% 30%, #34353C, #141518 72%); border: 1.5px solid rgba(212,185,138,.6); color: #fff;
  box-shadow: 0 0 0 3px rgba(0,0,0,.35), 0 5px 12px rgba(0,0,0,.55); transform: scale(var(--s, 1));
  animation: tbChipIn .26s cubic-bezier(.2, 1.4, .4, 1) both;
}
.tb-chip b { font: 800 13px var(--tb-font); font-variant-numeric: tabular-nums; }
.tb-chip small { margin-top: 1px; font: 700 8.5px var(--tb-font); color: rgba(237,230,216,.7); font-variant-numeric: tabular-nums; }
.tb-chip.locked { border-color: rgba(255,255,255,.18); }
.tb-chip.locked b { color: rgba(237,230,216,.7); }
.tb-chip:disabled { opacity: .55; cursor: default; }
.tb-chip[hidden] { display: none; }
@keyframes tbChipIn { from { transform: scale(calc(var(--s, 1) * .4)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tb-chip { animation: none; } }
