/* Card browser overlay */
.scrim-browser { background: rgba(2,6,12,0.74); }
.browser { width: 1300px; max-height: 870px; display: flex; flex-direction: column; padding: 20px 26px; border-radius: 18px; background: var(--panel); border: 1px solid var(--panel-edge); box-shadow: 0 20px 70px rgba(0,0,0,0.7); }
.browser-title { font-size: 22px; font-weight: 800; }
.browser-hint { color: var(--ink-dim); font-size: 14px; margin: 4px 0 12px; min-height: 18px; }
.browser-body { overflow: auto; display: flex; flex-direction: column; gap: 12px; padding: 6px 4px; }
.browser-filter { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--panel-edge); background: #07111c; color: var(--ink); font-size: 15px; }
.bgrid { display: flex; gap: 12px; justify-content: center; }
.bgrid.is-wrap { flex-wrap: wrap; justify-content: flex-start; }
.brow { display: flex; gap: 12px; min-height: 120px; padding: 6px 8px; border-radius: 12px; background: rgba(255,255,255,0.03); flex: 1; align-items: center; }
.brow.is-pool { background: rgba(89,183,255,0.05); }
.brow-labels { display: flex; justify-content: space-between; color: var(--ink-dim); font-size: 12px; padding: 0 8px; }
.zone-row { display: flex; gap: 12px; align-items: stretch; }
.zone-label { flex: 0 0 170px; display: flex; align-items: center; font-weight: 800; font-size: 15px; color: #cfe0ec; }
.zone-label.is-bad .zone-count { color: var(--orange); }
.zone-count { color: var(--ink-dim); font-weight: 600; margin-left: 4px; }
.bcard { position: relative; flex: 0 0 auto; cursor: pointer; border-radius: 8px; transition: opacity 160ms ease; touch-action: none; }
.bcard-inner { position: absolute; left: 0; top: 0; width: 150px; height: 210px; transform-origin: 0 0; }
.bcard-inner > * { width: 100%; height: 100%; }
.bcard-glow { position: absolute; inset: -4px; border-radius: 10px; opacity: 0; transition: opacity 150ms ease; box-shadow: 0 0 0 3px #fff4d6, 0 0 22px 6px rgba(255,220,140,0.65); pointer-events: none; }
.bcard.is-selected .bcard-glow { opacity: 1; }
.bcard.is-disabled { opacity: 0.35; cursor: not-allowed; filter: grayscale(0.7); }
.bcard.is-dragging { z-index: 10; cursor: grabbing; transition: none; }
.bcard.is-dragging .bcard-glow { opacity: 0.7; }
.dist-cell { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dist-ctrl { display: flex; gap: 10px; align-items: center; }
.dist-val { font-size: 22px; font-weight: 900; min-width: 30px; text-align: center; }
.peek-inline { margin-right: auto; }
@media (hover: hover) and (pointer: fine) { .bcard:not(.is-disabled):hover { filter: brightness(1.08); } }

/* Actions picker (PROTOCOL v1.4, Arena's ActionsAvailable browser): one copy per action with a header strip */
.browser-actions { width: auto; min-width: 520px; max-width: 1300px; align-items: center; }
.action-row { justify-content: center; gap: 22px; padding: 30px 12px 8px; }
.action-copy { cursor: pointer; }
.action-copy:focus-visible { outline: 3px solid #ffe27a; outline-offset: 4px; border-radius: 10px; }
.action-head { position: absolute; left: 6%; right: 6%; top: -24px; height: 26px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 8px 8px 4px 4px; font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  color: #0b1622; background: linear-gradient(180deg, #cfe6f7, #8fb8d6); box-shadow: 0 4px 12px rgba(0,0,0,0.45); }
.action-head-cost { display: inline-flex; gap: 2px; }
.action-head-cost svg { width: 15px; height: 15px; }
.action-play .action-head, .action-head.action-play { background: linear-gradient(180deg, #d9f0c9, #9cc988); }
.action-head.action-cast { background: linear-gradient(180deg, #cfe6f7, #7fb3dc); }
.action-head.action-activate { background: linear-gradient(180deg, #ffe3b0, #e3b066); }
.action-head.action-cycle { background: linear-gradient(180deg, #e3d6ff, #b49be8); }
.action-head.action-activateMana { background: linear-gradient(180deg, #d6eef0, #8cc4c9); }
@media (hover: hover) and (pointer: fine) {
  .action-copy .bcard-inner { transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
  .action-copy:hover .bcard-inner { transform: scale(0.98) translateY(-6px) !important; }
}
@media (prefers-reduced-motion: reduce) { .action-copy:hover .bcard-inner { transform: scale(0.95) !important; } }
@media (hover: hover) and (pointer: fine) { .action-copy:hover .bcard-glow { opacity: 1; } }
