/* CRD-02 character / aircraft cards + telop */
#pcard { position: fixed; inset: 0; z-index: 8000; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.82); cursor: pointer; }
#pcard.on { display: flex; animation: pcIn .35s ease both; }
#pcard .pc-skip { position: absolute; right: 16px; bottom: 12px; color: #fff8; font-size: 11px; letter-spacing: .2em; }
@keyframes pcIn { from { opacity: 0; } }
.pc { position: relative; color: #fff; width: min(1000px, 94vw); height: min(520px, 80vh); }
.pc .pc-face { position: absolute; background: center top / cover no-repeat #1a1f29; }
.pc .pc-sil { background: radial-gradient(circle at 50% 30%, #333 0 18%, transparent 19%), radial-gradient(ellipse at 50% 85%, #333 0 40%, transparent 41%), #0d0d0d !important; filter: none !important; }
.pc h2 { font: 400 clamp(40px, 6vw, 84px)/1 var(--fr-disp, "Bebas Neue", sans-serif); letter-spacing: .06em; margin: 4px 0; }
.pc h4 { font-weight: 600; letter-spacing: .12em; opacity: .9; margin: 0 0 8px; }
.pc .pc-q { font-style: italic; opacity: .85; font-size: 17px; margin: 10px 0; }
.pc .pc-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; }
.pc .pc-facts small { display: block; font-size: 10px; letter-spacing: .3em; opacity: .6; } .pc .pc-facts b { font-size: 15px; }
.pc .pc-red { background: #000; color: transparent; }
/* anime: a slanted colour band, the face cut on the diagonal, the name slides in */
.pc-anime .pc-band { position: absolute; inset: 18% -10% 18% -10%; background: var(--pc); transform: skewY(-6deg); animation: pcBand .5s cubic-bezier(.2,.9,.3,1) both; opacity: .92; }
.pc-anime .pc-face { left: 0; top: 0; width: 46%; height: 100%; clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); animation: pcFace .6s .1s cubic-bezier(.2,.9,.3,1) both; }
.pc-anime .pc-body { position: absolute; left: 44%; right: 2%; top: 22%; animation: pcBody .6s .2s cubic-bezier(.2,.9,.3,1) both; text-shadow: 0 2px 0 #0006; }
.pc-anime .pc-body > small { letter-spacing: .4em; font-size: 12px; }
@keyframes pcBand { from { transform: skewY(-6deg) scaleX(0); } } @keyframes pcFace { from { transform: translateX(-40%); opacity: 0; } } @keyframes pcBody { from { transform: translateX(30%); opacity: 0; } }
/* dossier: a file folder on a desk */
.pc-dossier .pc-folder { position: absolute; inset: 6% 4%; background: #d9cfb6; color: #2a2418; border-radius: 4px; box-shadow: 0 20px 40px #0009; animation: pcDrop .5s cubic-bezier(.2,.9,.3,1) both; }
.pc-dossier .pc-tab { position: absolute; left: 24px; top: -22px; background: #d9cfb6; padding: 4px 16px; border-radius: 4px 4px 0 0; font: 12px ui-monospace, monospace; letter-spacing: .2em; }
.pc-dossier .pc-stamp { position: absolute; right: 28px; top: 22px; border: 3px solid #b71c1c; color: #b71c1c; padding: 4px 12px; font: 700 20px ui-monospace, monospace; letter-spacing: .2em; transform: rotate(-8deg); opacity: .8; animation: pcStamp .3s .5s steps(2) both; }
.pc-dossier .pc-face { left: 28px; top: 34px; width: 30%; height: calc(100% - 68px); filter: grayscale(.6) sepia(.25); border: 6px solid #fff; box-shadow: 2px 3px 0 #0003; transform: rotate(-2deg); }
.pc-dossier .pc-body { position: absolute; left: 38%; right: 28px; top: 70px; }
.pc-dossier h2 { color: #2a2418; } .pc-dossier .pc-red { background: #2a2418; }
@keyframes pcDrop { from { transform: translateY(-30px) rotate(-2deg); opacity: 0; } } @keyframes pcStamp { from { transform: rotate(-8deg) scale(2); opacity: 0; } }
/* ace: red frame, warning */
.pc-ace .pc-frame { position: absolute; inset: 8% 10%; border: 2px solid var(--pc); background: #120606e6; box-shadow: 0 0 30px #e5393566, inset 0 0 40px #e5393522;
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px); padding: 26px 30px 26px 38%; animation: pcIn .2s steps(3) both; }
.pc-ace .pc-warn { color: var(--pc); letter-spacing: .4em; font-weight: 700; }
.pc-ace .pc-face { left: 0; top: 0; width: 34%; height: 100%; filter: saturate(.6) contrast(1.15); border-right: 2px solid var(--pc); }
.pc-ace h2 { color: #fff; text-shadow: 0 0 18px var(--pc); }
/* aircraft */
.pc-plane { background: #07121c; border: 1px solid #4fc3f755; box-shadow: 0 0 30px #0009; overflow: hidden; }
.pc-plane.pc-ace { background: #140707; border-color: #e5393588; }
.pc-plane .pc-radar { position: absolute; inset: 0; background: repeating-radial-gradient(circle at 30% 50%, transparent 0 38px, #4fc3f714 38px 39px), repeating-linear-gradient(transparent 0 3px, #ffffff05 3px 4px); }
.pc-plane .pc-jet { position: absolute; left: 3%; top: 10%; width: 52%; height: 80%; background: center / contain no-repeat; animation: pcJet 1s cubic-bezier(.2,.9,.3,1) both; }
.pc-plane .pc-jet.pc-sil { background: none !important; } .pc-plane .pc-jet.pc-sil::after { content: "✈"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 180px; color: #000; text-shadow: 0 0 1px #4fc3f7; }
.pc-plane .pc-body { position: absolute; left: 56%; right: 4%; top: 12%; }
.pc-plane .pc-body > small { letter-spacing: .4em; color: #4fc3f7; } .pc-plane.pc-ace .pc-body > small { color: #e53935; }
.pc-plane .pc-stats > div { display: flex; align-items: center; gap: 10px; margin: 6px 0; } .pc-plane .pc-stats small { width: 80px; font-size: 11px; letter-spacing: .2em; opacity: .7; }
.pc-bar { display: inline-flex; gap: 3px; } .pc-bar i { width: 22px; height: 8px; background: #ffffff1a; transform: skewX(-20deg); } .pc-bar i.on { background: #4fc3f7; }
.pc-plane.pc-ace .pc-bar i.on { background: #e53935; }
.pc-plane .pc-weap { margin-top: 12px; font-size: 13px; opacity: .8; } .pc-plane .pc-pilot { margin-top: 16px; letter-spacing: .3em; font-size: 12px; opacity: .8; }
@keyframes pcJet { from { transform: translateX(-30%) scale(.9); opacity: 0; } }
@media (max-width: 760px) {
  .pc-anime .pc-face, .pc-ace .pc-face { width: 100%; height: 45%; clip-path: none; } .pc-anime .pc-body { left: 4%; top: 48%; } .pc-ace .pc-frame { padding: 52% 18px 18px; }
  .pc-dossier .pc-face { width: 40%; height: 40%; } .pc-dossier .pc-body { left: 28px; top: 48%; }
  .pc-plane .pc-jet { width: 90%; height: 40%; } .pc-plane .pc-body { left: 5%; top: 50%; }
}
body.reduce-motion #pcard *, body.reduce-motion #telop * { animation: none !important; }
/* telop */
#telop { position: absolute; z-index: 40; pointer-events: none; opacity: 0; transition: opacity .5s; color: #fff; }
#telop.on { opacity: 1; }
#telop b { display: block; font: 400 clamp(22px, 3vw, 40px)/1.1 var(--fr-disp, "Bebas Neue", sans-serif); letter-spacing: .08em; text-shadow: 0 2px 8px #000c; }
#telop small { display: block; font-size: 14px; opacity: .85; margin-top: 4px; text-shadow: 0 1px 4px #000; }
#telop.tp-lowerleft { left: 4%; bottom: 30%; border-left: 4px solid var(--accent); padding-left: 14px; }
#telop.tp-center { left: 0; right: 0; top: 40%; text-align: center; }
#telop.tp-full { inset: 0; display: grid; place-content: center; text-align: center; background: #000; }
#telop.on.tp-slide b { animation: tpSlide .6s cubic-bezier(.2,.9,.3,1) both; } @keyframes tpSlide { from { transform: translateX(-60px); opacity: 0; } }
#telop.on.tp-blur b { animation: tpBlur 1s ease both; } @keyframes tpBlur { from { filter: blur(14px); opacity: 0; letter-spacing: .4em; } }
#telop.on.tp-glitch b { animation: tpGl .12s steps(2) 6; text-shadow: 3px 0 #ff1744, -3px 0 #00e5ff; } @keyframes tpGl { 50% { transform: translate(-3px, 1px) skewX(4deg); } }
#telop.tp-words b span { display: inline-block; opacity: 0; animation: tpWord .35s ease forwards; animation-delay: calc(var(--i) * 180ms); } @keyframes tpWord { from { transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* DTH-01 KIA card, last transmission, memorial */
.pc-kia .pc-kframe { position: absolute; inset: 8% 12%; background: #0b0b0b; border: 1px solid #555; box-shadow: 0 0 40px #000; padding: 30px 30px 30px 40%; animation: pcIn 1.4s ease both; }
.pc-kia .pc-face { left: 0; top: 0; width: 36%; height: 100%; filter: grayscale(1) contrast(1.1) brightness(.85); }
.pc-kia small { letter-spacing: .5em; color: #bbb; } .pc-kia h2 { color: #eee; } .pc-kia .pc-q { color: #ffcc80; }
.pc-kia .pc-candle { position: absolute; right: 26px; bottom: 18px; font-size: 34px; animation: kiaFlick 2.4s ease-in-out infinite; }
@keyframes kiaFlick { 50% { opacity: .6; transform: translateY(-2px); } }
#lastcall { position: fixed; inset: 0; z-index: 8100; display: grid; place-items: center; background: rgba(0,0,0,.6); pointer-events: none; }
#lastcall .lc-box { pointer-events: auto; background: #050505; border: 1px solid #ff5252; padding: 18px 22px; width: min(480px, 92vw); color: #fff; box-shadow: 0 0 30px #ff525244; }
#lastcall .lc-box small { color: #ff8a80; letter-spacing: .3em; } #lastcall .lc-box b { display: block; font: 400 34px var(--fr-disp, sans-serif); letter-spacing: .1em; margin: 4px 0 10px; }
#lastcall textarea { width: 100%; min-height: 70px; background: #111; color: #fff; border: 1px solid #333; }
#lastcall .row { justify-content: space-between; margin-top: 8px; } #lastcall .lc-t { color: #ff5252; font-weight: 700; }
#lastcall .lc-gm { background: #111e; } #lastcall:has(.lc-gm) { background: transparent; place-items: end center; padding-bottom: 90px; }
.mem-list { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow: auto; }
.mem-row { display: flex; gap: 12px; align-items: center; } .mem-row > i { width: 48px; height: 48px; border-radius: 50%; background: #222 center / cover; filter: grayscale(1); flex: none; }
.mem-w { font-style: italic; color: #ffcc80; font-size: 13px; }
