/* The full deck on the table (left) and your deck (right). picker.js moves the cards and makes them fly (FLIP). */
.pk { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 52px; align-items: stretch; }
.pk-row + .pk-row { margin-top: 22px; }
.pk-g { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .45); }
.pk-cards { display: flex; flex-wrap: wrap; gap: 14px; }
.pk-slot { position: relative; display: grid; place-items: center; width: 128px; height: 166px; border-radius: 16px; cursor: pointer;
  font-size: 22px; color: rgb(255 255 255 / .16); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .1); background: rgb(255 255 255 / .02); }
.pk-slot:hover { color: color-mix(in oklab, var(--g) 60%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--g) 50%, transparent); }
.pk-slot > i { pointer-events: none; }

.pk-card { position: absolute; inset: 0; display: flex; flex-direction: column; width: 128px; height: 166px; padding: 6px; border: 0; border-radius: 16px; cursor: pointer;
  font-family: inherit; text-align: left; color: #1d1840; background: #fff;
  box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 18px 34px -18px rgb(6 2 20 / .95), 0 0 0 1px rgb(20 10 50 / .08); transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s cubic-bezier(.22,.61,.36,1); }
.pk-art { flex: 1; display: grid; place-items: center; min-height: 0; border-radius: 11px; overflow: hidden; background: radial-gradient(90% 80% at 50% 20%, #fff 0%, var(--soft) 75%); }
.pk-art svg { width: 88%; height: auto; }
.pk-art > i { font-size: 34px; color: var(--g); }
.pk-name { display: flex; align-items: center; gap: 7px; padding: 8px 4px 3px; font-size: 12px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.pk-name i { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 99px; font-size: 9px; color: var(--g); background: var(--soft); }
.pk-table .pk-card:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 26px 40px -18px #000, 0 0 0 2px var(--g); }
.pk-table .pk-card::after { content: "+"; position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 99px;
  font-size: 15px; font-weight: 700; color: #fff; background: var(--g); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .3s cubic-bezier(.22,.61,.36,1); }
.pk-table .pk-card:hover::after { opacity: 1; transform: none; }

/* Your deck */
.pk-tray { position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: 26px;
  background: linear-gradient(180deg, rgb(157 107 255 / .14), rgb(157 107 255 / .04)); box-shadow: inset 0 0 0 1px rgb(201 181 255 / .18), 0 40px 80px -40px #000; }
.pk-tray-h { display: flex; align-items: baseline; gap: 12px; margin: 0; }
.pk.is-form .pk-tray-h b::after { content: ""; }
.pk-tray-h b { font-size: 17px; font-weight: 700; }
.pk-n { font-size: 13.5px; color: #c9b5ff; }
.pk-all { margin-left: auto; padding: 0; border: 0; background: none; cursor: pointer; font: 600 13px "Inter", system-ui, sans-serif; color: rgb(255 255 255 / .55); }
.pk-all:hover { color: #fff; }
.pk-hand { position: relative; flex: 1; min-height: 300px; }
.pk-hand .pk-card { inset: auto; left: 50%; top: 50%; margin: -83px 0 0 -64px; transform-origin: 50% 50%; --s: 1.15; --up: -26px;
  transform: translateX(calc(var(--x, 0px) + var(--push, 0px))) translateY(calc(var(--y, 0px) + var(--lift, 0px))) rotate(var(--r, 0deg)) scale(var(--s));
  transition: transform .32s cubic-bezier(.22,.61,.36,1), box-shadow .32s cubic-bezier(.22,.61,.36,1), z-index 0s linear .08s; }
/* hover: picker.js picks the card from the pointer's x (stable while it rises), the others slide aside */
.pk-hand .pk-card.is-hot { --lift: var(--up); z-index: 99 !important; transition-delay: 0s, 0s, .06s; box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 26px 40px -18px #000, 0 0 0 2px var(--g); }
.pk-hand .pk-card::after { content: "\2212"; position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 99px;
  font-size: 15px; font-weight: 700; color: #fff; background: #1d1531; opacity: 0; transition: opacity .2s; }
.pk-hand .pk-card.is-hot::after { opacity: 1; }
.pk-empty { position: absolute; left: 50%; top: 50%; width: 170px; height: 226px; margin: -128px 0 0 -85px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  border-radius: 18px; font-size: 13.5px; line-height: 1.45; text-align: center; color: rgb(255 255 255 / .5); box-shadow: inset 0 0 0 1.5px rgb(201 181 255 / .3); background: rgb(255 255 255 / .02);
  background-image: repeating-linear-gradient(135deg, transparent 0 10px, rgb(201 181 255 / .04) 10px 20px); }
.pk-empty i { font-size: 24px; color: #c9b5ff; }
.pk.has-cards .pk-empty { display: none; }
.pk-go { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 16px 22px; border: 0; border-radius: 14px; cursor: pointer;
  font: 700 16px "Inter", system-ui, sans-serif; color: #fff; background: linear-gradient(100deg, #8b5cf6, #6d28d9);
  box-shadow: 0 18px 36px -14px rgb(109 40 217 / .8), inset 0 1px 0 rgb(255 255 255 / .25); transition: transform .2s, filter .2s, opacity .2s; }
.pk-go:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08); }
.pk-go:disabled { opacity: .4; cursor: default; }
.pk.is-form .pk-go { display: none; }
.pk.is-form .pk-table { display: none; }


@media (max-width: 1000px) {
  .pk { grid-template-columns: 1fr; }
  .pk-tray { position: sticky; bottom: 10px; order: 2; }
  .pk-hand { min-height: 250px; }
}

/* Tablet and phone: the tray becomes a compact sticky bar (opaque, so the cards never show through) and the table stays readable */
@media (max-width: 1000px) {
  .pk { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pk:not(.is-form) .pk-tray { z-index: 30; padding: 14px 16px 16px; border-radius: 22px; background: linear-gradient(180deg, #2a1d52, #1a1233); box-shadow: inset 0 0 0 1px rgb(201 181 255 / .22), 0 -14px 40px -10px rgb(6 2 20 / .9); }
  .pk:not(.is-form) .pk-hand { flex: none; min-height: 118px; margin: 4px 0 8px; }
  .pk:not(.is-form) .pk-hand .pk-card { --s: .62; --up: -14px; }
  .pk:not(.is-form) .pk-empty { width: 190px; height: 96px; margin: -48px 0 0 -95px; gap: 8px; font-size: 13px; }
  .pk:not(.is-form) .pk-empty i { font-size: 18px; }
  .pk-hand .pk-card { width: 128px; height: 166px; }
  .pk-tray-h { white-space: nowrap; }
  .pk-go { min-height: 48px; }
  .pk-all { min-height: 40px; padding: 0 0 0 8px; }
}
@media (max-width: 640px) {
  .pk-row + .pk-row { margin-top: 26px; }
  .pk-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .pk-slot { width: auto; height: auto; aspect-ratio: 128 / 166; border-radius: 14px; }
  .pk-slot > .pk-card { width: 100%; height: 100%; border-radius: 14px; }
  .pk-slot > .pk-card { overflow: hidden; }
  .pk-slot .pk-name { padding: 6px 2px 2px; font-size: 10.5px; gap: 5px; }
  .pk-slot .pk-name i { width: 18px; height: 18px; font-size: 8px; }
  .pk-tray-h b { font-size: 15px; }
  .pk-n { font-size: 12.5px; }
  .pk-all { margin-left: auto; font-size: 12.5px; }
}
