/* fam.css — familiar pick screen */
.fp-back-drop { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(26,10,38,.93), rgba(5,2,8,.98)); animation: fadeIn .2s ease both; display: flex; flex-direction: column; align-items: center; padding: clamp(6px, 2vh, 16px) 12px; gap: clamp(4px, 1vh, 8px); z-index: 25; }
.fp-title { font-size: clamp(20px, 4.4vh, 34px); text-align: center; margin-top: 2px; white-space: nowrap; }
.fp-sub { font-size: clamp(12px, 2.2vh, 15px); color: var(--ink-dim); text-align: center; }
.fp-wallet { position: absolute; top: clamp(6px, 1.6vh, 12px); left: calc(50% + clamp(150px, 24vw, 260px)); display: flex; align-items: center; gap: 6px; font-size: clamp(16px, 3vh, 20px); padding: 3px 12px; background: rgba(22,12,34,.8); border: 2px solid var(--violet); border-radius: 12px; }
.fp-wallet img { width: 24px; height: 24px; object-fit: contain; }
.fp-msg { position: absolute; left: 50%; bottom: clamp(70px, 14vh, 96px); transform: translateX(-50%); z-index: 2; padding: 4px 14px; border-radius: 10px; background: rgba(10,4,16,.9); font-size: 15px; color: var(--jade); opacity: 0; text-align: center; pointer-events: none; white-space: nowrap; }
.fp-msg.on { animation: fpMsg 2.2s ease both; }
@keyframes fpMsg { 0% { opacity: 0; transform: translateY(8px); } 12%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.fp-row { flex: 1; min-height: 0; width: 100%; max-width: 1000px; display: flex; flex-wrap: nowrap; gap: clamp(6px, 1.5vw, 18px); justify-content: center; align-items: stretch; padding: 8px 0; }
.btn.fp-card { position: relative; flex: 1 1 0; min-width: 0; max-width: 300px; flex-direction: column; justify-content: flex-start; align-items: center; gap: 3px; white-space: normal; text-align: center; overflow: visible; padding: 4px 6px; min-height: 0;
  border-width: 22px; border-image: url("../assets/ui-panel.webp") 22% fill / 22px stretch; background: rgba(18,9,28,.92); background-clip: padding-box; font-size: 14px; animation: popIn .32s cubic-bezier(.2,1.4,.4,1) both; }
.btn.fp-card:hover, .btn.fp-card.focus { transform: scale(1.02); }
.btn.fp-card.sel { transform: scale(1.04); filter: drop-shadow(0 0 9px rgba(93,255,168,.6)); }
.btn.fp-card.sel .txt { text-shadow: 0 2px 0 #12081c; }
.fp-pw { position: relative; height: clamp(56px, 24vh, 180px); width: 100%; flex: none; display: flex; justify-content: center; }
.btn.fp-card img.fp-portrait { height: 100%; width: 100%; max-width: none; max-height: none; object-fit: cover; object-position: 50% 22%; border-radius: 8px; background: radial-gradient(ellipse at 50% 60%, rgba(93,255,168,.18), rgba(0,0,0,0) 70%); }
.btn.fp-card .fp-role.txt { text-shadow: none; }
.locked .fp-portrait { filter: grayscale(1) brightness(.4); }
.fp-lock { position: absolute; right: 4px; top: 2px; font-size: 22px; background: rgba(0,0,0,.6); border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; }
.fp-name { font-size: 18px; line-height: 1.1; }
.fp-role { font-size: 12px; padding: 1px 10px; border-radius: 10px; color: #12081c; text-shadow: none; }
.fp-fighter .fp-role { background: #ff4d6d; } .fp-support .fp-role { background: #5dffa8; } .fp-summoner .fp-role { background: #b98cff; }
.fp-body { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; min-height: 0; flex: 1; overflow: hidden; }
.fp-lbl { font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: .5px; }
.fp-desc { font-size: 14px; line-height: 1.2; font-weight: 400; }
.fp-skrow { display: flex; align-items: center; gap: 6px; }
.fp-sic { width: 28px; height: 28px; object-fit: contain; flex: none; }
.fp-cd { font-size: 12px; color: var(--ink-dim); }
.fp-badge { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-size: 12px; padding: 1px 10px; border-radius: 10px; background: #1f6b4a; border: 1px solid var(--jade); color: #eafff3; white-space: nowrap; }
.fp-unlock { position: absolute; z-index: 2; left: 50%; top: clamp(10px, 8vh, 60px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; font-size: 16px; white-space: nowrap;
  border-style: solid; border-width: 14px 20px; border-image: url("../assets/ui-button.webp") 30% 18% fill / 14px 20px stretch; }
.fp-unlock img { width: 22px; height: 22px; }
.fp-unlock.dim { filter: grayscale(.6) brightness(.7); }
.fp-unlock.shake { animation: fpShake .4s; }
@keyframes fpShake { 0%, 100% { transform: translateX(-50%); } 20%, 60% { transform: translateX(calc(-50% - 7px)); } 40%, 80% { transform: translateX(calc(-50% + 7px)); } }
.fp-bar { display: flex; gap: 12px; justify-content: center; align-items: center; flex: none; }
.btn.fp-back { min-height: 46px; min-width: 110px; }
.btn.fp-go { min-height: 56px; min-width: 190px; font-size: 22px; filter: drop-shadow(0 0 12px rgba(93,255,168,.6)); }
@media (max-height: 460px) {
  .fp-back-drop { padding: 4px 12px; gap: 2px; }
  .fp-sub { display: none; }
  .fp-row { padding: 2px 0; gap: 6px; }
  .btn.fp-card { border-width: 10px; border-image-width: 10px; padding: 0 2px; gap: 1px; }
  .fp-pw { height: 17vh; }
  .fp-cd { display: none; }
  .fp-unlock { top: 10px; }
  .fp-name { font-size: 14px; } .fp-desc { font-size: 12px; line-height: 1.12; }
  .fp-lbl { font-size: 12px; } .fp-sic { width: 20px; height: 20px; }
  .fp-lock { width: 26px; height: 26px; font-size: 16px; }
  .fp-unlock { min-height: 44px; font-size: 14px; border-width: 10px 14px; border-image-width: 10px 14px; }
  .fp-msg { bottom: 56px; }
  .btn.fp-go { min-height: 46px; font-size: 18px; min-width: 150px; }
  .btn.fp-back { min-height: 46px; min-width: 90px; }
  .fp-wallet { font-size: 16px; }
}
