/* PokéPrey (systems/prey.js): the three slots, the cards, the day's ladder. */

.pr { display: grid; gap: 14px; position: relative; }
.pr-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pr-title { font-family: var(--pixel); font-size: 1.15rem; letter-spacing: 0.08em; margin-right: 6px; }
.pr-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 auto; }
.pr-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px;
  background: #0b1424; border: 1px solid var(--line); font-family: var(--pixel); font-size: 0.95rem; color: var(--text);
}
.pr-pill img { width: 18px; height: 18px; }
.pr-pill.gold { color: #ffd23f; }
.pr-pill.star { cursor: pointer; }
.pr-pill.star b { color: #fff; background: #7a3df0; border-radius: 4px; padding: 0 4px; font-size: 0.8rem; }
.pr-pill.star:hover { border-color: #9a6bff; }
.pr-plus { color: #b39cff; }
.pr-pill.dia { color: #7fe3ff; }
.pr-route { margin-left: auto; color: var(--muted); font-size: 0.9rem; }
.pr-route b { color: var(--text); }

.pr-ladder { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: #0b1424; border: 1px solid var(--line); }
.pr-ladder > span { font-family: var(--pixel); font-size: 0.75rem; color: var(--muted); margin-right: 4px; }
.pr-ladder i {
  font-style: normal; font-family: var(--pixel); font-size: 0.65rem; min-width: 26px; text-align: center;
  padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted);
}
.pr-ladder i.used { text-decoration: line-through; opacity: 0.45; }
.pr-ladder i.now { border-color: #e6b800; color: #ffd23f; box-shadow: 0 0 0 1px #e6b80055; }
.pr-ladder-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }

.pr-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pr-slot {
  display: grid; grid-template-rows: auto 1fr auto auto auto; justify-items: center; gap: 10px;
  min-height: 420px; padding: 14px; border-radius: 12px; background: #121a28; border: 1px solid var(--line);
}
.pr-slot.locked { border-style: dashed; background: #0e1420; }
.pr-slot h4 { font-family: var(--pixel); font-size: 0.85rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.pr-go { width: 100%; font-family: var(--pixel); padding: 12px; background: linear-gradient(180deg, #1f7a8c, #135565); border-color: #2bb6cf; color: #fff; }
.pr-go:hover { filter: brightness(1.12); }
.pr-go.dim { background: #1a2232; border-color: var(--line); color: var(--text); }
.pr-lock { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 22px 14px; border: 1px solid var(--line); border-radius: 12px; align-self: start; max-width: 180px; }
.pr-lock-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #1a2232; font-size: 1.4rem; }
.pr-left { font-size: 0.95rem; }
.pr-left b { font-family: var(--pixel); color: #7fe3ff; }

/* the face-down cards */
.pr-backs { position: relative; width: 170px; height: 210px; align-self: center; }
.pr-back {
  position: absolute; inset: 0; border-radius: 10px; border: 2px solid #c9d2e3;
  background: repeating-linear-gradient(135deg, #1b2130 0 8px, #222a3b 8px 16px);
  display: grid; place-items: center; align-content: center; gap: 10px; box-shadow: 0 6px 18px #0008;
}
.pr-back.b0 { transform: rotate(-9deg) translate(-14px, 4px); }
.pr-back.b1 { transform: rotate(-4deg) translate(-6px, 2px); }
.pr-back.b2 { transform: rotate(2deg); }
.pr-back span { font-family: var(--pixel); font-size: 0.75rem; letter-spacing: 0.12em; color: #dfe6f3; }
.pr-ball {
  width: 54px; height: 54px; border-radius: 50%; border: 3px solid #2a2f3a;
  background: linear-gradient(180deg, #5ed6f0 0 47%, #2a2f3a 47% 53%, #e8eef5 53%);
  box-shadow: inset 0 0 0 9px transparent;
  position: relative;
}
.pr-ball::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #e8eef5; border: 3px solid #2a2f3a; }

/* a card */
.pr-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.pr-card {
  width: 190px; display: grid; grid-template-rows: auto 120px auto auto auto; border-radius: 10px; overflow: hidden;
  background: #121a28; border: 2px solid #3a4560; color: var(--text); font: inherit; text-align: left; padding: 0;
  clip-path: polygon(0 0, 92% 0, 100% 6%, 100% 100%, 8% 100%, 0 94%);
}
button.pr-card { cursor: pointer; transition: transform 0.12s, border-color 0.12s; }
button.pr-card:hover { transform: translateY(-3px); border-color: #8aa0c8; }
.pr-card.on { border-color: #ffd23f; box-shadow: 0 0 0 2px #ffd23f66; transform: translateY(-4px); }
.pr-card.big { width: 180px; }
.pr-ribbon { font-family: var(--pixel); font-size: 0.8rem; padding: 7px 12px; color: #fff; letter-spacing: 0.04em; }
.pr-art { display: grid; place-items: center; background: radial-gradient(circle at 50% 55%, #2a3550 0, #121a28 70%); }
.pr-name { font-family: var(--pixel); font-size: 1rem; padding: 8px 12px 0; }
.pr-routelv { font-size: 0.7rem; letter-spacing: 0.08em; color: var(--muted); padding: 2px 12px 0; }
.pr-bonus { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px 10px; }
.pr-bonus b { font-family: var(--pixel); font-size: 1.35rem; }
.pr-stars i { font-style: normal; color: #4a5470; font-size: 0.8rem; }
.pr-stars i.on { color: #ffd23f; }
.k-exp .pr-ribbon { background: linear-gradient(90deg, #e07a1f, #f0a040); }
.k-exp .pr-bonus b { color: #ff9a3d; }
.k-capture .pr-ribbon { background: linear-gradient(90deg, #2b5fb8, #4a86e0); }
.k-capture .pr-bonus b { color: #6aa8ff; }
.k-gold .pr-ribbon { background: linear-gradient(90deg, #b8901b, #e0bd3a); }
.k-gold .pr-bonus b { color: #ffd23f; }
.k-loot .pr-ribbon { background: linear-gradient(90deg, #2f8f4e, #49b86c); }
.k-loot .pr-bonus b { color: #6fe08f; }

.pr-choose { display: grid; gap: 14px; }
.pr-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.pr-actions .btn { min-height: 46px; }
.pr-reroll { display: grid; justify-items: center; line-height: 1.15; }
.pr-reroll small { color: #ffd23f; font-family: var(--pixel); }
.pr-species[disabled] { opacity: 0.5; }
.pr-confirm { min-width: 190px; font-family: var(--pixel); background: linear-gradient(180deg, #1f7a8c, #135565); border-color: #2bb6cf; color: #fff; }
.pr-confirm[disabled] { background: #1c3a44; border-color: #2a5560; color: #8fb3bd; opacity: 1; cursor: default; }
.pr-species-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 340px; overflow-y: auto; }
.pr-sp { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 6px; text-align: left; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: #0b1424; color: var(--text); font: inherit; cursor: pointer; }
.pr-sp > :first-child { grid-row: span 2; }
.pr-sp:hover { border-color: #9a6bff; }
.pr-foot { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); padding-top: 10px; }
.pr-i { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--muted); font-size: 0.7rem; font-style: italic; }
.center { text-align: center; }

.pr-price { display: inline-flex; align-items: center; gap: 4px; }
.pr-price img { width: 14px; height: 14px; }

/* the "are you sure" of a paid action, over the window */
.pr-ask { position: absolute; inset: -8px; z-index: 5; display: grid; place-items: center; background: #050a14b3; border-radius: 10px; }
.pr-ask-box {
  display: grid; gap: 10px; min-width: 280px; padding: 18px 20px; border-radius: 12px;
  background: #121a28; border: 1px solid #2bb6cf; box-shadow: 0 12px 32px #000a;
}
.pr-ask-box > b { font-family: var(--pixel); font-size: 1rem; text-align: center; margin-bottom: 4px; }
.pr-ask-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 0.95rem; }
.pr-ask-row .pr-price { font-family: var(--pixel); }
.pr-ask-row .pr-price img { width: 16px; height: 16px; }
.pr-ask-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.pr-ask-btns .btn { min-width: 100px; }

@media (max-width: 760px) {
  .pr-slots { grid-template-columns: 1fr; }
  .pr-slot { min-height: 0; }
  .pr-route { margin-left: 0; }
}
