/* ext.css（2026-11-21）キャラまわりの直し：衣装の選び方・ホームの相棒のタップ・結果画面の好感度の文字 */

/* ---------- 衣装を選ぶ（キャラの1人の画面。52〜65） ---------- */
.ch-out2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 16px; }
.ch-ob { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--card, #15171b); border: 1px solid var(--ln2, #333); color: inherit; text-align: left; }
.ch-ob b { font-size: .9rem; font-weight: 900; }
.ch-oth { flex: none; width: 52px; height: 52px; }
.ch-oth .pt { flex: none; }
.ch-oth .pt-face { width: 52px; height: 52px; }
.ch-ob.on { background: var(--lime); color: var(--bk); border-color: #000; box-shadow: 3px 3px 0 var(--or); }
.ch-ob.on .pt-face { box-shadow: 0 0 0 2px #000; }
/* 持っていないキャラ：見るだけ（鍵の印・点線の枠） */
.ch-out2.ro .ch-ob { border-style: dashed; }
.ch-out2.ro .ch-ob.on { background: var(--bk2, #1d2025); color: var(--wh, #fff); border-color: var(--lime); box-shadow: none; }
.ch-olk { position: absolute; top: 6px; right: 8px; opacity: .8; line-height: 0; }
.ch-olock { color: var(--or); font-weight: 700; }

/* ---------- ホームの相棒のタップの動き ---------- */
/* 照れる（顔）：少しすくんで傾く。なでられる（頭）：少し下がる。持ちもの：左右に揺れる。画像の translateX は個別の translate/rotate と重ねる */
.pt.has-img.pt-shy .pt-img { animation: exShy .6s ease-in-out; transform-origin: 50% 20%; }
.pt.has-img.pt-pat .pt-img { animation: exPat .55s ease-in-out; transform-origin: 50% 0; }
.pt.has-img.pt-sway .pt-img { animation: exSway .6s ease-in-out; transform-origin: 50% 40%; }
.pt:not(.has-img).pt-pat .pt-head, .pt:not(.has-img).pt-sway .pt-item { animation: exPat .55s ease-in-out; }
@keyframes exShy { 0%, 100% { rotate: 0deg; scale: 1; } 35% { rotate: -2.5deg; scale: .985; } 70% { rotate: 1deg; } }
@keyframes exPat { 0%, 100% { translate: 0 0; scale: 1; } 40% { translate: 0 6px; scale: 1 .985; } }
@keyframes exSway { 0%, 100% { rotate: 0deg; } 25% { rotate: 2deg; } 60% { rotate: -1.5deg; } }
.pa-tap { animation: exTap .22s ease-out; }
@keyframes exTap { from { translate: 0 5px; opacity: .4; } to { translate: 0 0; opacity: 1; } }
html.calm .pt-shy .pt-img, html.calm .pt-pat .pt-img, html.calm .pt-sway .pt-img, html.calm .pt-pat .pt-head, html.calm .pt-sway .pt-item, html.calm .pa-tap { animation: none; }

/* ---------- 結果画面：好感度の文字が立ち絵と重ならないように（問題箱 #7） ---------- */
/* 立ち絵は左の枠の中だけ。文字の箱は立ち絵より前に出し、好感度の行には暗い地を敷く */
.pa-res { position: relative; align-items: center; }
.pa-rfig { flex: none; position: relative; z-index: 1; width: 110px; height: 138px; overflow: hidden; }
.pa-res .pa-rfig .pt { clip-path: none; overflow: hidden; }
.pa-rbox { position: relative; z-index: 2; }
.pa-res .pa-rbond { display: block; margin-top: 10px; padding: 6px 10px; background: rgba(10, 11, 13, .92); border-left: 3px solid var(--lime); color: var(--wh, #fff); font-size: .74rem; line-height: 1.5; }
.pa-res .pa-rbond b { color: var(--lime); margin-right: 2px; }

/* 相棒に選ばれた日（NEW PARTNER）：立ち絵を画面の残りいっぱいに、ボタンは下に（問題箱 #88、2026-11-22） */
#main:has(> .ch-chosen) { display: flex; flex-direction: column; padding-bottom: 0; }
.ch-chosen { flex: 1; display: flex; flex-direction: column; min-height: 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.ch-chosen .ch-stage { flex: 1; height: auto; min-height: 400px; }
.ch-chosen .ch-act { flex: none; }
