/* 商店展示条 */
.stall { display: flex; flex-direction: column; gap: 5px; padding: 6px 8px 8px; border-radius: 12px; background: linear-gradient(180deg, rgba(40,43,49,.95), rgba(25,27,31,.95)); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 4px 12px rgba(0,0,0,.45); position: relative; min-width: 0; }
.stall::before { content: ''; position: absolute; left: 10px; right: 10px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--sc, #888); opacity: .9; }
.s-drill { --sc: #ff9a3c; } .s-move { --sc: #3d9cff; } .s-utility { --sc: #2fc274; } .s-advanced { --sc: #a46cff; }
.st-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; white-space: nowrap; }
.st-n { display: flex; align-items: center; gap: 4px; color: var(--sc, var(--hazard)); text-shadow: 0 0 10px color-mix(in srgb, var(--sc, #ffc) 55%, transparent); }
.st-n .ic { width: 15px; height: 15px; }
.st-d { display: flex; align-items: center; gap: 2px; color: var(--dim); font-family: var(--num); font-size: 13px; cursor: help; }
.st-d .ic { width: 13px; height: 13px; }
.lockn { display: inline-flex; align-items: center; color: #b896ff; }
.st-cards { display: flex; gap: 6px; }
.sc { position: relative; width: var(--scW); flex: none; border-radius: 7px; transition: transform .18s cubic-bezier(.25,.8,.3,1), box-shadow .18s; cursor: zoom-in; }
.sc img { width: 100%; display: block; border-radius: 7px; box-shadow: 0 4px 10px rgba(0,0,0,.6); }
.sc .price { position: absolute; right: -5px; bottom: -6px; display: flex; align-items: center; gap: 1px; padding: 1px 6px 1px 3px; border-radius: 8px; background: linear-gradient(180deg, #2d2418, #17120c); border: 1px solid #7a4a12; box-shadow: 0 2px 5px rgba(0,0,0,.8); font-size: 14px; }
.sc .price .ic { width: 15px; height: 15px; }
.sc .price b { font-weight: 400; color: #ffcf7a; }
.sc .price.no b { color: #ff8a7a; }
.sc .price .bat { display: inline-flex; align-items: center; color: #8f8; font-size: 11px; margin-left: 1px; }
.sc .price .bat .ic { width: 13px; height: 13px; }
.sc .permtag { position: absolute; left: 4px; top: 4px; font-size: 10px; padding: 0 5px; border-radius: 5px; background: rgba(90,60,140,.92); color: #fff; font-family: var(--zh); }
.sc.empty { aspect-ratio: 420 / 585; border: 2px dashed #3a3f47; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--dim2); font-size: 11px; line-height: 1.5; cursor: default; }
.sc.can { cursor: pointer; }
.sc.can img { box-shadow: 0 4px 10px rgba(0,0,0,.6), 0 0 0 2px rgba(102,224,138,.8), 0 0 16px rgba(102,224,138,.35); }
.sc.can:hover { transform: translateY(-6px) scale(1.04); z-index: 3; }
.sc.cant { cursor: not-allowed; } .sc.cant img { filter: grayscale(.45) brightness(.75); }
.sc .buyhint { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.8); opacity: 0; transition: all .18s; display: flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 9px;
  background: linear-gradient(180deg, #8dff9f, #2fc274); color: #04220f; font-family: var(--zh); font-size: 13px; box-shadow: 0 4px 12px rgba(0,0,0,.6); white-space: nowrap; pointer-events: none; }
.sc.can:hover .buyhint { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.msbox { display: flex; flex-direction: column; gap: 5px; padding: 6px 8px 8px; border-radius: 12px; background: linear-gradient(180deg, rgba(40,43,49,.95), rgba(25,27,31,.95)); border: 1px solid var(--line); margin-left: auto; flex: none; }
.msbox .st-n { color: #c9b2ff; }
.ms-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mtok { position: relative; width: calc(var(--scW) * .52); cursor: help; }
.mtok img { width: 100%; display: block; filter: drop-shadow(0 2px 3px #000); }
.mtok.got img { filter: grayscale(.85) brightness(.55) drop-shadow(0 2px 3px #000); }
.mtok .mown { position: absolute; right: 0; bottom: 2px; width: 14px; height: 14px; box-shadow: 0 0 0 2px #000, 0 0 8px var(--oc); }
.glowpulse { animation: glowK 1.2s ease-out; }
@keyframes glowK { 0% { box-shadow: 0 0 0 0 rgba(246,194,28,.9); } 40% { box-shadow: 0 0 0 6px rgba(246,194,28,.4), 0 0 30px rgba(246,194,28,.6); } 100% { box-shadow: none; } }

/* 地表补给站（覆盖中间区域，保留底部手牌和驾驶舱） */
.station { position: absolute; left: 0; right: 0; top: 0; bottom: var(--bottomH, 214px); z-index: 25; display: none; padding: 8px 10px; }
.station.on { display: block; animation: stnin .3s cubic-bezier(.2,.8,.3,1); }
@keyframes stnin { from { opacity: 0; transform: translateY(-14px); } }
.stn-bg { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,12,14,.6), rgba(12,12,14,.92) 70%), url('../img/station_bg.webp') center 40% / cover; border-radius: 0 0 14px 14px; }
.stn { position: relative; height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 12px; overflow: auto; background: rgba(18,19,22,.72); backdrop-filter: blur(3px); border-color: rgba(246,194,28,.35); }
.stn-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.stn-t { font-size: 24px; color: var(--hazard); display: flex; align-items: center; gap: 8px; letter-spacing: .1em; text-shadow: 0 2px 0 #000; }
.stn-t .ic { width: 26px; height: 26px; }
.stn-sub { color: var(--dim); font-size: 13px; flex: 1; min-width: 200px; }
.stn-cred { position: relative; display: flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 12px; background: #000a; border: 1px solid #7a4a12; transition: box-shadow .2s; }
.stn-cred.drop-hot .cr-drop { display: flex; }
.stn-cred .ic { width: 26px; height: 26px; } .stn-cred b { font-size: 32px; color: #ffc46b; font-weight: 400; line-height: 1; } .stn-cred span { font-size: 12px; color: var(--dim); }
.stn-cred.drop-hot { box-shadow: 0 0 0 2px rgba(242,137,27,.7), 0 0 20px rgba(242,137,27,.5); }
.stn-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(270px, 320px) 1fr; gap: 12px; }
.stn-main.solo { grid-template-columns: 1fr; }
.stn-left { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: auto; }
.stn-sec { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.45); border: 1px solid var(--line); }
.sec-t { display: flex; align-items: center; gap: 6px; color: var(--hazard); font-size: 15px; letter-spacing: .06em; }
.sec-t .ic { width: 18px; height: 18px; }
.sell-list { display: flex; flex-wrap: wrap; gap: 6px; min-height: 34px; align-items: center; }
.si { display: flex; align-items: center; gap: 4px; padding: 3px 9px 3px 5px; border-radius: 8px; background: #000a; border: 1px solid var(--line); font-size: 13px; }
.si .gem { width: 22px; height: 22px; } .si b { color: #ffcf7a; font-weight: 400; font-size: 16px; } .si em { font-style: normal; color: #ff9a7a; font-size: 11px; }
.sell-note { font-size: 11px; line-height: 1.5; }
.gar { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gb { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 0 7px; align-items: center; text-align: left; padding: 6px 8px; line-height: 1.35; border-radius: 10px; cursor: pointer; border: 1px solid var(--line2); background: var(--metal-hi); color: var(--txt); transition: all .15s; }
.gb:hover:not(:disabled) { border-color: var(--hazard); transform: translateY(-2px); }
.gb:disabled { opacity: .45; cursor: not-allowed; }
.gb.gb-auto, .gb.gb-auto:hover { cursor: default; transform: none; border-color: var(--line2); } .gb-auto .gb-c { color: var(--dim); }
.gb-ic { grid-row: 1 / 4; } .gb-ic .ic { width: 24px; height: 24px; }
.gb-t { font-family: var(--zh); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .gb-s { font-size: 11px; color: var(--dim); } .gb-c { font-size: 11.5px; color: #ffcf7a; }
.gb-ic .ic { width: 22px; height: 22px; }
.stn-shops { display: flex; gap: 10px; flex-wrap: wrap; align-content: flex-start; align-items: flex-start; min-height: 0; overflow: auto; padding: 4px 2px 8px; }
.stall.big { --scW: var(--stW, 120px); padding: 8px 10px 12px; }
.stall.big .st-head { font-size: 14px; }
.station.dronebuy .stn-shops { justify-content: center; }
.stn-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); }

/* 电脑 / 平板：里程碑已经画在进度条上，商店那一行不再放里程碑小面板 */
.game:not([data-lay="phone"]) .msbox { display: none; }
