/* 驾驶舱 HUD */
.cockpit { flex: none; width: var(--ckW, 318px); height: 100%; display: flex; }
.ck { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 5px; padding: 7px 11px 8px; border-color: color-mix(in srgb, var(--pc) 45%, var(--line));
  background: linear-gradient(180deg, rgba(46,50,57,.97), rgba(26,28,32,.98)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px #000, 0 8px 22px rgba(0,0,0,.6); }
.ck::before, .ck::after { top: 7px; }
.ck-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ck-mech { width: 34px; height: 28px; object-fit: contain; filter: drop-shadow(0 2px 3px #000); flex: none; }
.ck-who { min-width: 0; flex: 1; line-height: 1.2; }
.ck-name { font-size: 15px; color: var(--pc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-mn { font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-score { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; padding: 3px 8px; border-radius: 8px; background: #0007; border: 1px solid #5a3d86; cursor: help; flex: none; }
.ck-score span { font-size: 10px; color: #c9b2ff; font-family: var(--zh); }
.ck-score b { font-size: 22px; color: #e7dcff; font-weight: 400; }

.ck-fuel { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 9px; background: #0009; border: 1px solid #3a2a14; transition: box-shadow .2s, border-color .2s; }
.ck-fuel.drop-hot { border-color: #ff9a1f; box-shadow: 0 0 0 2px rgba(255,154,31,.6), 0 0 22px rgba(255,154,31,.5); }
.ck.drop-hot { border-color: #ff9a1f; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 2px rgba(255,154,31,.55), 0 0 24px rgba(255,154,31,.35); }
.ck-flbl { display: flex; flex-direction: column; align-items: center; font-size: 10.5px; color: #ffb36b; line-height: 1.1; }
.ck-flbl .ic { width: 20px; height: 20px; }
.fuelbar { position: relative; display: flex; gap: 2px; height: 22px; padding: 0 4px; overflow: hidden; }
.fuelbar::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); animation: fbshine 4.5s ease-in-out infinite; }
@keyframes fbshine { 0%, 70% { left: -45%; } 100% { left: 110%; } }
.fuelbar .seg { position: relative; flex: 1; transform: skewX(-14deg); border-radius: 2px; background: linear-gradient(180deg, #24201b, #15130f); box-shadow: inset 0 0 0 1px #3a3026; transition: background .25s, box-shadow .25s, opacity .25s; }
.fuelbar .seg em { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) skewX(14deg); font-style: normal; font-family: var(--num); font-size: 9px; color: #6b6253; display: none; }
.fuelbar .seg.on { background: linear-gradient(180deg, #ffe1a0 0%, #ffa51f 45%, #d4620a 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 8px rgba(255,140,20,.55); }
.fuelbar .seg.on.low { background: linear-gradient(180deg, #ffb0a0, #ff4f2e 50%, #a8190a); animation: lowfuel 1s ease-in-out infinite; }
@keyframes lowfuel { 50% { filter: brightness(1.4); } }
.fuelbar .seg.cap { background: linear-gradient(180deg, #2d261d, #1b1712); }
.fuelbar .seg.lock { background: transparent; box-shadow: inset 0 0 0 1px #2c2a27; opacity: .55; }
.fuelbar .seg.lock em { display: block; }
.fuelbar .seg.pv-spend { background: repeating-linear-gradient(90deg, #ff5d4d 0 3px, #7a1a10 3px 6px) !important; animation: pvblink .7s steps(2) infinite; box-shadow: 0 0 8px rgba(255,80,60,.7); }
.fuelbar .seg.pv-gain { background: repeating-linear-gradient(90deg, #8dff9f 0 3px, #1f6a2e 3px 6px) !important; animation: pvblink .7s steps(2) infinite; opacity: 1; box-shadow: 0 0 8px rgba(120,255,140,.6); }
@keyframes pvblink { 50% { opacity: .55; } }
.fuelbar .seg.lost { animation: lostK .85s ease-out; }
@keyframes lostK { 0% { background: #fff; box-shadow: 0 0 12px #fff; } 30% { background: #ff6a4a; } 100% { } }
.fuelbar .seg.gain { animation: gainK .55s ease-out both; animation-delay: var(--d, 0ms); }
@keyframes gainK { 0% { filter: brightness(3); transform: skewX(-14deg) scaleY(1.5); } 100% { filter: none; transform: skewX(-14deg); } }
.fb-drop { position: absolute; inset: -4px; display: none; align-items: center; justify-content: center; font-family: var(--zh); font-size: 13px; color: #fff; background: rgba(255,120,20,.45); border-radius: 6px; text-shadow: 0 1px 3px #000; }
.ck-fuel.drop-hot .fb-drop { display: flex; }
.ck-fval { display: flex; align-items: baseline; gap: 1px; line-height: 1; min-width: 50px; justify-content: flex-end; }
.ck-fval .fnow { font-size: 28px; color: #ffcf7a; font-weight: 400; text-shadow: 0 0 12px rgba(255,150,30,.45); }
.ck-fval .fnow.pv { color: #8dff9f; } .ck-fval .fnow.pv.down { color: #ff8a7a; }
.ck-fval span { font-size: 15px; color: var(--dim); }

.ck-row { display: flex; gap: 8px; align-items: stretch; }
.ck-pips { flex: 1; display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 9px; background: #0008; border: 1px solid var(--line); min-width: 0; }
.ck-pips > .ic { width: 20px; height: 20px; }
.ck-pips .pips { flex: 1; display: flex; gap: 3px; align-items: center; min-width: 0; height: 18px; overflow: hidden; }
.ck-pips .pips.many { gap: 1px; }
.ck-pips .pv { flex: none; font-size: 22px; font-weight: 400; min-width: 22px; text-align: right; }
.ck-pips .pv.pvon { color: #8dff9f; font-size: 17px; }
.mv .pip { width: 11px; height: 16px; clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%); background: linear-gradient(180deg, #bfe4ff, #3d9cff 55%, #1456b8); flex: 0 1 11px; min-width: 5px; }
.dr .pip { width: 12px; height: 16px; clip-path: polygon(0 0, 100% 0, 50% 100%); background: linear-gradient(90deg, #ffffff, #b9c3cd 50%, #66717c); flex: 0 1 12px; min-width: 5px; }
.pip.pv { opacity: .45; animation: pvblink .7s steps(2) infinite; }
.pip.none { width: 18px; height: 3px; clip-path: none; background: #444; border-radius: 2px; }
.pip.gain { animation: pipin .45s ease-out both; animation-delay: var(--d); }
@keyframes pipin { 0% { transform: scale(2.2); filter: brightness(3); } 100% { transform: none; } }
.mv { border-color: #1f4f80; } .mv .pv { color: #8cc8ff; }
.dr { border-color: #4b535c; } .dr .pv { color: #e5ebf0; }
.ck-pips.zero { opacity: .6; }

.ck-cred { position: relative; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9px; background: #0008; border: 1px solid #6a3a10; transition: box-shadow .2s, border-color .2s; }
.ck-cred .ic { width: 22px; height: 22px; }
.ck-cred .cv { font-size: 26px; color: #ffc46b; font-weight: 400; line-height: 1; text-shadow: 0 0 10px rgba(255,150,30,.35); }
.ck-cred > span { font-size: 11px; }
.ck-cred.drop-hot { border-color: var(--coin); box-shadow: 0 0 0 2px rgba(242,137,27,.6), 0 0 18px rgba(242,137,27,.45); }
.cr-drop { position: absolute; inset: -3px; display: none; align-items: center; justify-content: center; font-size: 12px; font-family: var(--zh); background: rgba(242,137,27,.5); border-radius: 8px; color: #fff; white-space: nowrap; }
.ck-cred.drop-hot .cr-drop { display: flex; }
.ck-drones { flex: 1; display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.dsh-mini { display: flex; align-items: center; gap: 2px; font-size: 11px; color: var(--dim); margin-right: 2px; white-space: nowrap; }
.dsh-mini .ic { width: 14px; height: 14px; }
.drone { width: 34px; height: 34px; padding: 0; border: none; background: none; border-radius: 50%; cursor: default; position: relative; flex: none; }
.drone img { width: 100%; height: 100%; display: block; border-radius: 50%; filter: drop-shadow(0 2px 3px #000); transition: transform .3s; }
.drone.down img { filter: grayscale(.6) brightness(.6); }
.drone.up img { animation: dronefloat 2.6s ease-in-out infinite; }
.drone.can { cursor: pointer; }
.drone.can::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--hazard); animation: gemring 1.4s ease-out infinite; }
.drone.can:hover img { transform: scale(1.15) rotate(15deg); }
@keyframes dronefloat { 50% { transform: translateY(-2px) rotate(4deg); } }

/* 仪表条：货舱 / 进度 / 市场 */
.dsh { flex: 1; display: flex; gap: 10px; padding: 7px 12px; align-items: stretch; background: linear-gradient(180deg, rgba(38,41,47,.92), rgba(24,26,30,.95)); }
.dsh-box { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dsh-lbl { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--dim); font-family: var(--zh); white-space: nowrap; }
.dsh-lbl .ic { width: 14px; height: 14px; }
.dsh-lbl .num { color: var(--txt); font-size: 14px; margin-left: 2px; }
.store .slots { display: flex; gap: 4px; }
.slot { width: 30px; height: 30px; border-radius: 7px; background: linear-gradient(180deg, #0e0f11, #1b1d21); box-shadow: inset 0 2px 4px rgba(0,0,0,.8), 0 0 0 1px #3a3f47; display: flex; align-items: center; justify-content: center; transition: box-shadow .2s; }
.slot .gem { width: 25px; height: 25px; }
.slot.full { box-shadow: inset 0 2px 4px rgba(0,0,0,.6), 0 0 0 1px #6b5a2a; background: radial-gradient(circle, #2a2618, #141311); }
.slot.lock { opacity: .4; background: repeating-linear-gradient(-45deg, #1a1b1d 0 4px, #222428 4px 8px); }
.slot.lock .ic { width: 13px; height: 13px; }
.store.isfull .slot.full { box-shadow: inset 0 2px 4px rgba(0,0,0,.6), 0 0 0 1px #c0392b; }
.store.isfull .dsh-lbl .num { color: var(--bad); }
.prog { flex: 1; }
.prog .pl { font-size: 11px; font-family: var(--body); }
.track { position: relative; height: 30px; margin-top: 2px; }
.t-cells { position: absolute; inset: 0; display: flex; gap: 1px; border-radius: 6px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px #3a3f47; }
.t-cells i { flex: 1; background: linear-gradient(180deg, #17191c, #202328); }
.t-cells i.ovz { background: repeating-linear-gradient(-45deg, #2a1512 0 3px, #3a1c17 3px 6px); }
.t-tiles, .t-ov { position: absolute; inset: 0; }
/* 溢出区盖在普通板块上，但可点击耗竭的板块（.tt.can）层级高于溢出宝石，确保不被遮挡且必可点击 */
.t-ov { pointer-events: none; } .tov { pointer-events: auto; z-index: 2; }
.tt { position: absolute; top: 1px; bottom: 1px; z-index: 1; border-radius: 4px; display: flex; align-items: center; justify-content: center; gap: 2px; font-size: 15px; color: #fff; text-shadow: 0 1px 2px #000; cursor: zoom-in;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(0,0,0,.6); transition: filter .2s, transform .2s; }
.tt .ic { width: 13px; height: 13px; }
.tt.f2 { background: linear-gradient(180deg, #a98f62, #6e5a39); } .tt.f3 { background: linear-gradient(180deg, #4f8bb8, #2b5577); }
.tt.f4 { background: linear-gradient(180deg, #3d9e7c, #1f6150); } .tt.f5 { background: linear-gradient(180deg, #7d5bb8, #4a2f7a); }
.tt.f6 { background: linear-gradient(180deg, #c0503e, #7a2416); }
.tt.ex { filter: grayscale(.75) brightness(.6); }
.tt.can { z-index: 4; cursor: pointer; animation: ttglow 1.6s ease-in-out infinite; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 0 0 1.5px rgba(150,220,255,.85), 0 2px 6px rgba(0,0,0,.65); }
.tt.can:hover { filter: brightness(1.25); transform: translateY(-2px); z-index: 5; }
@keyframes ttglow { 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 10px rgba(140,210,255,.9); } }
.tov { position: absolute; top: 1px; bottom: 1px; display: flex; align-items: center; justify-content: center; background: rgba(120,30,20,.55); border-radius: 3px; }
.tov .gem { width: 70%; height: 70%; }
.t-ms { position: absolute; left: 0; right: 0; top: -9px; height: 0; z-index: 6; }
.ms { position: absolute; transform: translateX(-50%); top: 0; width: 18px; height: 18px; border-radius: 50%; background: #2a2244; border: 2px solid #7c5ccc; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #e2d6ff; z-index: 2; box-shadow: 0 2px 4px #000; }
.ms.got { background: var(--oc); border-color: #fff; color: #111; }
.ms.mine { box-shadow: 0 0 10px var(--oc), 0 2px 4px #000; }
.ms.fin { width: 22px; height: 22px; top: -2px; background: repeating-conic-gradient(#fff 0 25%, #222 0 50%) 50% / 8px 8px; border-color: var(--hazard); color: #000; font-weight: 700; }
.ms.fin span { background: #ffd34a; border-radius: 4px; padding: 0 2px; font-size: 10px; }
.mkt .market { display: flex; gap: 3px; }
.mcol { display: flex; flex-direction: column; gap: 1px; align-items: center; cursor: help; }
.mc { width: 22px; height: 13px; border-radius: 3px; background: #0d0e10; box-shadow: inset 0 0 0 1px #2e3238; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--dim2); }
.mc.f { background: #1f2a1f; }
.mc .gem { width: 12px; height: 12px; }
.mc.nx { box-shadow: inset 0 0 0 1px var(--hazard); color: var(--hazard); font-size: 11px; }
.mc.ov { opacity: .7; border-top: 1px dashed #5a2a20; }
.mc.ov.nx { color: #ff9a7a; box-shadow: inset 0 0 0 1px #ff7a5a; }
.mg .gem { width: 17px; height: 17px; margin-top: 1px; }

/* 矮屏：驾驶舱更紧凑 */
.game.short .ck-mn { display: none; }
.game.short .ck-mech { width: 26px; height: 22px; }
.game.short .ck-score b { font-size: 18px; }
.game.short .ck-fuel { padding: 4px 7px; }
.game.short .ck-pips { padding: 3px 8px; }
.game.short .ck-cred { padding: 2px 9px; }
.game.short .drone { width: 28px; height: 28px; }
.game.short .dsh { padding: 5px 10px; }
.game.short .slot { width: 26px; height: 26px; }
/* 平板：驾驶舱在仪表条那一行 */
.game[data-lay="tab"] .dash .cockpit { width: 300px; height: auto; }
