/* 暗区行动 · 独立视觉系统（Tarkov 式暗绿 / 黄铜 / 军工终端） */
#gWrap:has(.tk-shell) .g-seats,
#gWrap:has(.tk-raid-shell) .g-seats { display: none; }
#gWrap:has(.tk-shell) .g-stage,
#gWrap:has(.tk-raid-shell) .g-stage { background-image: none; background: transparent; padding: 0; min-height: 0; }
#gWrap:has(.tk-shell) .g-acts,
#gWrap:has(.tk-raid-shell) .g-acts { display: none; }
#gWrap:has(.tk-shell) .g-top,
#gWrap:has(.tk-raid-shell) .g-top { display: none; }
#gWrap:has(.tk-shell) .g-head,
#gWrap:has(.tk-raid-shell) .g-head { display: none; }
#gWrap:has(.tk-shell) .g-rogue,
#gWrap:has(.tk-raid-shell) .g-rogue { display: none; }
#gWrap:has(.tk-shell) .g-head h2,
#gWrap:has(.tk-raid-shell) .g-head h2 { letter-spacing: .04em; }
body:has(.tk-raid-shell) .dock { display: none; }
.tk-shell, .tk-raid-shell {
  --tk-bg: #0d110e;
  --tk-panel: #141b16;
  --tk-panel2: #19231b;
  --tk-line: rgba(191,172,106,.2);
  --tk-gold: #d6bd6c;
  --tk-green: #91e6ab;
  --tk-red: #ff7064;
  --tk-text: #e7e3d2;
  --tk-dim: #98a095;
  width: 100%;
  color: var(--tk-text);
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  letter-spacing: .02em;
  position: relative;
}
.tk-shell {
  background:
    radial-gradient(ellipse 90% 40% at 20% 0%, rgba(104,132,81,.12), transparent 60%),
    radial-gradient(ellipse 50% 30% at 100% 20%, rgba(214,189,108,.08), transparent 70%),
    linear-gradient(160deg, #0f1511, #0b0e0c 70%);
  border: 1px solid rgba(191,172,106,.2);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.03);
}
.tk-shell:before {
  content: "";
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen; opacity: .45;
}
.tk-shell > * { position: relative; z-index: 1; }
.tk-shell-result { background: linear-gradient(145deg,#141b16,#0c100d); }
.tk-eyebrow { font-size: 9px; letter-spacing: .28em; color: var(--tk-gold); opacity: .8; text-transform: uppercase; }
.tk-banner { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 22px 20px 18px; border-bottom: 1px solid var(--tk-line); background: linear-gradient(180deg, rgba(24,34,26,.7), rgba(9,12,10,.35)); }
.tk-brand h1 { margin: 4px 0 5px; font-size: clamp(24px, 3.4vw, 38px); line-height: .95; letter-spacing: .03em; color: #f0ead2; font-weight: 900; }
.tk-brand h1 small { font-size: 13px; letter-spacing: .1em; color: var(--tk-gold); font-weight: 500; margin-left: 5px; vertical-align: 2px; }
.tk-brand p { margin: 0; color: #8f9a8d; font-size: 11px; line-height: 1.55; max-width: 430px; }
.tk-wallet { display: flex; gap: 14px; padding-bottom: 2px; flex: none; }
.tk-wallet div { display: flex; flex-direction: column; gap: 3px; min-width: 58px; }
.tk-wallet small { font-size: 9px; color: #8d978a; letter-spacing: .12em; }
.tk-wallet b { font-size: 15px; color: #f0e7c6; font-variant-numeric: tabular-nums; }
.tk-wallet b:first-child { color: var(--tk-gold); }
.tk-tabs { display: flex; gap: 2px; padding: 0 14px; border-bottom: 1px solid var(--tk-line); background: rgba(8,11,9,.62); overflow-x: auto; scrollbar-width: none; }
.tk-tabs::-webkit-scrollbar { display: none; }
.tk-tab { flex: none; border: 0; background: transparent; color: #8c978a; min-width: 67px; padding: 11px 9px 9px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; border-bottom: 2px solid transparent; }
.tk-tab i { font-style: normal; font-size: 16px; line-height: 1; color: #788376; }
.tk-tab span { font-size: 10px; letter-spacing: .1em; }
.tk-tab.on { color: #f1e6bf; border-bottom-color: var(--tk-gold); background: linear-gradient(180deg, transparent, rgba(214,189,108,.08)); }
.tk-tab.on i { color: var(--tk-gold); }
.tk-guest { padding: 8px 18px; color: #d6bd6c; font-size: 10px; background: rgba(214,189,108,.08); border-bottom: 1px solid rgba(214,189,108,.15); }
.tk-panel { padding: 18px 18px 22px; }
.tk-null { color: #899286; font-size: 12px; padding: 30px 18px; text-align: center; border: 1px dashed rgba(191,172,106,.18); margin: 18px; }
.tk-section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 16px 0 10px; padding-bottom: 7px; border-bottom: 1px solid rgba(191,172,106,.14); }
.tk-section-title b { font-size: 13px; letter-spacing: .1em; color: #e9e0c5; }
.tk-section-title span { font-size: 10px; color: #818c80; }
.tk-gear-row { display: grid; grid-template-columns: repeat(6, minmax(78px,1fr)); gap: 7px; }
.tk-gear-slot { min-height: 97px; background: linear-gradient(160deg, rgba(32,44,34,.76), rgba(14,19,15,.8)); border: 1px solid rgba(191,172,106,.16); border-radius: 3px; padding: 7px 6px 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.tk-gear-slot.filled { border-color: rgba(191,172,106,.36); }
.tk-gear-slot small { font-size: 9px; color: #889486; letter-spacing: .08em; }
.tk-gear-art { width: 39px; height: 39px; color: #c7c3ad; display: grid; place-items: center; }
.tk-gear-art svg { width: 100%; height: 100%; }
.tk-gear-art span { font-size: 27px; color: #596454; }
.tk-gear-slot b { font-size: 10px; font-weight: 500; color: #d9d3bc; line-height: 1.25; max-height: 28px; overflow: hidden; }
.tk-mini { border: 1px solid rgba(191,172,106,.4); color: #d9c786; background: rgba(214,189,108,.07); border-radius: 2px; font-size: 9px; padding: 3px 6px; cursor: pointer; margin-top: auto; }
.tk-mini:active { background: rgba(214,189,108,.2); }
.tk-btn { border: 1px solid rgba(191,172,106,.34); color: #ded4b4; background: #1b241c; padding: 8px 12px; border-radius: 3px; font-size: 11px; cursor: pointer; font-family: inherit; letter-spacing: .03em; transition: background .15s, border-color .15s, transform .1s; }
.tk-btn:hover { border-color: rgba(214,189,108,.7); background: #233026; }
.tk-btn:active { transform: translateY(1px); }
.tk-btn.primary { background: linear-gradient(180deg, #c7ad63, #a98f4f); border-color: #e1c878; color: #171b13; font-weight: 700; }
.tk-btn.primary:hover { filter: brightness(1.08); }
.tk-btn.tiny { padding: 4px 7px; font-size: 9px; }
.tk-btn.small { padding: 7px 11px; font-size: 10px; }
.tk-items-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
.tk-item { min-height: 61px; display: flex; align-items: center; gap: 8px; padding: 7px; border: 1px solid rgba(191,172,106,.13); border-radius: 3px; background: linear-gradient(145deg, rgba(30,41,32,.62), rgba(13,17,14,.9)); position: relative; }
.tk-item.compact { min-height: 48px; padding: 5px; }
.tk-item-art { flex: none; width: 39px; height: 39px; display: grid; place-items: center; color: #bcb9a2; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.04); }
.tk-item-art svg { width: 100%; height: 100%; }
.tk-item-main { min-width: 0; flex: 1; }
.tk-item-title { display: flex; align-items: baseline; gap: 5px; }
.tk-item-title b { font-size: 11px; color: #e1dcc8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-item-title em { font-style: normal; font-size: 8px; color: #e0bd62; border: 1px solid rgba(224,189,98,.35); padding: 1px 3px; white-space: nowrap; }
.tk-item-sub { font-size: 9px; color: #8a9589; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-item-desc { font-size: 9px; line-height: 1.35; color: #748071; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-item-price { font-size: 10px; color: #d6bd6c; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tk-item-actions { flex: none; display: flex; flex-direction: column; gap: 3px; }
.tk-detail-layer { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 18px; background: rgba(4,7,5,.76); backdrop-filter: blur(7px); }
.tk-detail-layer[hidden] { display: none; }
.tk-detail-backdrop { position: absolute; inset: 0; }
.tk-detail-panel { position: relative; z-index: 1; width: min(560px, 94vw); max-height: 88vh; overflow: auto; padding: 18px; border: 1px solid rgba(214,189,108,.42); background: linear-gradient(160deg, #202b21, #0c110d 72%); box-shadow: 0 25px 80px rgba(0,0,0,.62), inset 0 0 35px rgba(214,189,108,.04); }
.tk-detail-close { position: absolute; right: 8px; top: 7px; width: 28px; height: 28px; border: 1px solid rgba(191,172,106,.3); background: rgba(9,13,10,.75); color: #cfc6a8; font-size: 18px; line-height: 1; cursor: pointer; }
.tk-detail-head { display: flex; align-items: center; gap: 12px; padding-right: 26px; }
.tk-detail-art { flex: none; width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid rgba(214,189,108,.28); background: radial-gradient(circle at 45% 35%, rgba(214,189,108,.16), rgba(0,0,0,.2)); }
.tk-detail-art svg { width: 100%; height: 100%; }
.tk-detail-head h2 { margin: 3px 0 4px; font-size: 20px; color: #eee6cd; letter-spacing: .04em; }
.tk-detail-head p { margin: 0; color: #a59f88; font-size: 10px; }
.tk-detail-desc { margin: 14px 0 12px; padding: 10px 11px; border-left: 2px solid rgba(214,189,108,.5); background: rgba(214,189,108,.045); color: #b9b39b; font-size: 11px; line-height: 1.7; }
.tk-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 5px; }
.tk-detail-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 7px 9px; border: 1px solid rgba(191,172,106,.11); background: rgba(0,0,0,.14); }
.tk-detail-row span { color: #7f8b7e; font-size: 10px; white-space: nowrap; }
.tk-detail-row b { color: #ddd3b5; font-size: 10px; font-weight: 500; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-detail-foot { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 13px; padding-top: 10px; border-top: 1px solid rgba(191,172,106,.12); color: #7e897c; font-size: 9px; }
@media (max-width: 600px) {
  .tk-detail-panel { width: 96vw; max-height: 90vh; padding: 14px; }
  .tk-detail-grid { grid-template-columns: 1fr; }
  .tk-detail-head h2 { font-size: 16px; }
  .tk-detail-art { width: 52px; height: 52px; }
}
.tk-item.tk-r-gray { border-color: rgba(152,160,147,.3); }
.tk-item.tk-r-green { border-color: rgba(97,199,119,.4); }
.tk-item.tk-r-blue { border-color: rgba(85,169,234,.5); }
.tk-item.tk-r-purple { border-color: rgba(178,115,239,.55); }
.tk-item.tk-r-gold { border-color: rgba(227,187,80,.62); box-shadow: inset 0 0 20px rgba(227,187,80,.06); }
.tk-item.tk-r-red { border-color: rgba(242,100,88,.7); box-shadow: inset 0 0 22px rgba(242,100,88,.08); }
.tk-item.tk-r-eternal { border-color: rgba(255,122,217,.8); box-shadow: inset 0 0 24px rgba(255,122,217,.12), 0 0 10px rgba(88,184,255,.08); }
.tk-tier-tag { font-size: 8px; padding: 1px 4px; border: 1px solid currentColor; margin-left: 4px; opacity: .9; }
.tk-tier-tag.tk-r-gray { color: #98a093; }
.tk-tier-tag.tk-r-green { color: #61c777; }
.tk-tier-tag.tk-r-blue { color: #55a9ea; }
.tk-tier-tag.tk-r-purple { color: #b273ef; }
.tk-tier-tag.tk-r-gold { color: #e3bb50; }
.tk-tier-tag.tk-r-red { color: #f26458; }
.tk-tier-tag.tk-r-eternal { color: #ff7ad9; text-shadow: 0 0 8px rgba(255,122,217,.7); }
.tk-item-price small { margin-left: 5px; font-size: 8px; }
.tk-item-price small.up, .tk-market-pulse em.up { color: #6edb8b; }
.tk-item-price small.down, .tk-market-pulse em.down { color: #ff7b70; }
.tk-market-pulse { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 6px 8px; margin: 0 0 8px; border: 1px solid rgba(214,189,108,.2); background: rgba(19,26,19,.72); font-size: 9px; color: #aeb8a5; }
.tk-market-pulse > i { width: 5px; height: 5px; border-radius: 50%; background: #8fe1a0; box-shadow: 0 0 8px #8fe1a0; }
.tk-market-pulse b { color: #e7d9a8; font-weight: 500; }
.tk-market-pulse div { display: flex; gap: 8px; flex-wrap: wrap; }
.tk-market-pulse div span { color: #929e90; }
.tk-market-pulse em { font-style: normal; }
.tk-item.tk-r-rare { border-color: rgba(92,164,222,.35); }
.tk-item.tk-r-epic { border-color: rgba(179,112,232,.4); }
.tk-item.tk-r-legendary { border-color: rgba(224,189,98,.6); box-shadow: inset 0 0 20px rgba(224,189,98,.05); }
.tk-item.tk-r-rare .tk-item-title em { color: #75c5ff; border-color: rgba(117,197,255,.35); }
.tk-item.tk-r-epic .tk-item-title em { color: #c18aff; border-color: rgba(193,138,255,.35); }
.tk-loadout-layout { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: start; }
.tk-operator-wrap { padding: 10px; background: radial-gradient(ellipse at 50% 30%, rgba(214,189,108,.14), transparent 65%), #0d120e; border: 1px solid rgba(191,172,106,.2); display: flex; flex-direction: column; align-items: center; }
.tk-operator { width: 126px; height: 177px; }
.tk-op-stats { text-align: center; display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.tk-op-stats span { font-size: 12px; color: #e6dfca; }
.tk-op-stats small { font-size: 9px; color: #8e9989; }
.tk-brief { margin-top: 13px; padding: 10px; border-left: 2px solid var(--tk-gold); background: rgba(214,189,108,.06); display: flex; flex-direction: column; gap: 5px; }
.tk-brief b { font-size: 11px; color: #e8d9a7; }
.tk-brief span { font-size: 10px; color: #a6ad9e; }
.tk-gun-hero { position: relative; min-height: 202px; padding: 20px 15px 10px; border: 1px solid rgba(191,172,106,.2); background: radial-gradient(ellipse at 50% 35%, rgba(90,113,80,.22), transparent 62%), linear-gradient(180deg,#121812,#0a0e0b); overflow: hidden; }
.tk-gun-glow { position: absolute; left: 25%; top: 35%; width: 50%; height: 60px; background: rgba(214,189,108,.12); filter: blur(26px); }
.tk-gun-svg { position: relative; width: 100%; max-width: 550px; display: block; margin: 0 auto; filter: drop-shadow(0 14px 20px rgba(0,0,0,.6)); }
.tk-gun-label { font-size: 10px; fill: #d8cfb5; letter-spacing: 2px; }
.tk-gun-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; position: relative; }
.tk-gun-title small { font-size: 10px; color: #8d998b; }
.tk-gun-title b { font-size: 11px; color: var(--tk-gold); font-weight: 500; }
.tk-empty-gun { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #808c7e; }
.tk-empty-gun .tk-art { width: 86px; height: 86px; color: #5e6c5b; }
.tk-empty-gun b { color: #cfc8ad; font-size: 13px; }
.tk-empty-gun span { font-size: 10px; }
.tk-gun-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; padding-top: 14px; }
.tk-gun-stats { padding: 0 4px; }
.tk-stat { display: grid; grid-template-columns: 50px 1fr 28px; align-items: center; gap: 7px; margin: 7px 0; }
.tk-stat label { font-size: 10px; color: #9ba495; }
.tk-stat div { height: 5px; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.05); }
.tk-stat div i { display: block; height: 100%; background: #7e9b79; }
.tk-stat div i.dmg { background: linear-gradient(90deg,#8e6b42,#d2a45b); }
.tk-stat div i.acc { background: linear-gradient(90deg,#547b86,#9ad8d8); }
.tk-stat div i.rec { background: linear-gradient(90deg,#8d5f55,#d0846e); }
.tk-stat div i.ergo { background: linear-gradient(90deg,#7a8b5b,#c8cf83); }
.tk-stat b { font-size: 10px; color: #d5d0b8; text-align: right; font-variant-numeric: tabular-nums; }
.tk-gun-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 9px; color: #879181; }
.tk-gun-meta span { border: 1px solid rgba(255,255,255,.06); padding: 4px 6px; }
.tk-gun-meta b { color: #d3cba9; font-weight: 500; }
.tk-slot-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.tk-mod-slot { min-height: 53px; border: 1px dashed rgba(191,172,106,.25); padding: 5px 6px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; position: relative; background: rgba(11,15,12,.6); }
.tk-mod-slot.filled { border-style: solid; border-color: rgba(191,172,106,.35); background: rgba(214,189,108,.06); }
.tk-mod-slot.selected { border-color: var(--tk-gold); box-shadow: inset 0 0 0 1px rgba(214,189,108,.24); }
.tk-mod-slot small { font-size: 9px; color: #879282; }
.tk-mod-slot b { font-size: 10px; color: #d6d1b9; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-mod-slot .tk-mini { position: absolute; right: 4px; bottom: 4px; }
.tk-plus { position: absolute; right: 8px; bottom: 1px; color: #7f8c7c; font-size: 18px; }
.tk-compat-list { max-height: 260px; overflow: auto; display: flex; flex-direction: column; gap: 4px; padding-right: 3px; }
.tk-market-head, .tk-map-head, .tk-result-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; flex-wrap: wrap; }
.tk-market-head h2, .tk-map-head h2, .tk-result-head h2 { margin: 3px 0; font-size: 25px; letter-spacing: .06em; }
.tk-market-search { display: flex; gap: 5px; flex: 1; min-width: 230px; max-width: 460px; }
.tk-market-search input { flex: 1; min-width: 0; background: #0b100c; border: 1px solid rgba(191,172,106,.28); color: #e8e1c9; padding: 9px 11px; border-radius: 2px; font-family: inherit; font-size: 11px; outline: none; }
.tk-market-search input:focus { border-color: var(--tk-gold); }
.tk-cat-row { display: flex; gap: 4px; overflow: auto; margin: 13px 0 8px; padding-bottom: 2px; scrollbar-width: none; }
.tk-cat { border: 1px solid rgba(191,172,106,.18); background: #121a13; color: #9da695; padding: 6px 9px; font-size: 10px; cursor: pointer; border-radius: 2px; flex: none; font-family: inherit; }
.tk-cat.on { color: #f0dfae; border-color: var(--tk-gold); background: rgba(214,189,108,.12); }
.tk-sort-row { display: flex; align-items: center; gap: 4px; overflow: auto; margin: 0 0 7px; padding-bottom: 2px; scrollbar-width: none; }
.tk-sort-row > span { flex: none; font-size: 9px; color: #6f7c6e; letter-spacing: .08em; }
.tk-sort { border: 1px solid rgba(191,172,106,.13); background: rgba(18,26,19,.7); color: #8c9889; padding: 4px 7px; font-size: 9px; cursor: pointer; border-radius: 2px; flex: none; font-family: inherit; }
.tk-sort.on { color: #e9d79e; border-color: rgba(214,189,108,.58); background: rgba(214,189,108,.1); }
.tk-cal-row { display: flex; align-items: center; gap: 4px; overflow: auto; margin: 0 0 7px; padding-bottom: 2px; scrollbar-width: none; }
.tk-cal-row > span { flex: none; font-size: 9px; color: #6f7c6e; letter-spacing: .08em; }
.tk-cal { border: 1px solid rgba(191,172,106,.13); background: rgba(18,26,19,.7); color: #8c9889; padding: 4px 7px; font-size: 9px; cursor: pointer; border-radius: 2px; flex: none; font-family: inherit; }
.tk-cal em { margin-left: 4px; color: #687466; font-style: normal; font-size: 8px; }
.tk-cal.on { color: #e9d79e; border-color: rgba(214,189,108,.58); background: rgba(214,189,108,.1); }
.tk-cal.on em { color: #c9b478; }
.tk-gun-spec { margin-top: 6px; color: #7e8a7d; }
.tk-gun-spec span { border-color: rgba(191,172,106,.1); }
.tk-market-meta { display: flex; justify-content: space-between; font-size: 9px; color: #818d7e; margin: 7px 0 9px; }
.tk-page-row { display: flex; justify-content: center; gap: 7px; margin-top: 13px; }
.tk-trader-tabs { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; margin-bottom: 10px; }
.tk-trader-tab { border: 1px solid rgba(191,172,106,.17); background: #121912; padding: 8px; color: #9fa897; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; cursor: pointer; font-family: inherit; border-left: 2px solid var(--tc, #d5bf77); }
.tk-trader-tab.on { background: rgba(214,189,108,.09); border-color: rgba(214,189,108,.5); }
.tk-trader-tab i { width: 5px; height: 5px; background: var(--tc, #d5bf77); border-radius: 50%; }
.tk-trader-tab b { font-size: 11px; color: #ded7c1; }
.tk-trader-tab small { font-size: 9px; color: #8a9587; }
.tk-trader-head { font-size: 10px; color: #8f9b8c; margin: 7px 0; }
.tk-hideout-banner { padding: 12px 0 8px; }
.tk-hideout-banner h2 { margin: 3px 0; font-size: 26px; }
.tk-hideout-banner p { color: #98a392; font-size: 11px; }
.tk-hideout-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.tk-hideout-card { display: flex; gap: 9px; padding: 10px; background: linear-gradient(145deg,#1b251c,#0e140f); border: 1px solid rgba(191,172,106,.16); }
.tk-hideout-card.maxed { border-color: rgba(126,205,139,.3); }
.tk-hideout-art { flex: none; width: 53px; height: 53px; color: #b8bc9d; background: rgba(0,0,0,.18); display: grid; place-items: center; }
.tk-hideout-art svg { width: 100%; height: 100%; }
.tk-hideout-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tk-hideout-main small { font-size: 9px; color: #d0b866; }
.tk-hideout-main b { font-size: 12px; color: #e2dcc4; }
.tk-hideout-main span { font-size: 9px; color: #899585; line-height: 1.4; }
.tk-hideout-main .tk-btn { align-self: flex-start; margin-top: 4px; }
.tk-progress { height: 3px; background: #0b0f0c; margin: 4px 0; }
.tk-progress i { display: block; height: 100%; background: var(--tk-gold); }
.tk-hideout-main em { font-style: normal; font-size: 9px; color: var(--tk-green); }
.tk-craft-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.tk-craft-card { padding: 10px; border: 1px solid rgba(191,172,106,.16); background: linear-gradient(145deg,#182219,#0c110d); }
.tk-craft-card.off { opacity: .62; }
.tk-craft-head { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.tk-craft-head b { font-size: 11px; color: #e4dcc0; }
.tk-craft-head span { font-size: 8px; color: #c7b471; }
.tk-craft-card p { margin: 5px 0; font-size: 9px; line-height: 1.5; color: #8d9988; }
.tk-craft-need { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.tk-craft-need span { font-size: 8px; color: #9ab5a0; border: 1px solid rgba(126,205,139,.16); padding: 1px 4px; }
/* 行动任务 */
.tk-quest-level { display: flex; justify-content: space-between; gap: 10px; align-items: flex-end; padding: 8px 0 10px; border-bottom: 1px solid rgba(191,172,106,.16); }
.tk-quest-level h2 { margin: 2px 0 0; font-size: 24px; }
.tk-quest-level h2 small { font-size: 10px; color: #8f9c8b; font-weight: 400; margin-left: 5px; }
.tk-quest-xp { width: 150px; text-align: right; }
.tk-quest-xp b { display: block; font-size: 11px; color: #d9c98e; }
.tk-quest-xp small { display: block; font-size: 8px; color: #7f8d7b; margin-bottom: 2px; }
.tk-quest-list { display: flex; flex-direction: column; gap: 7px; }
.tk-quest-card { display: flex; gap: 8px; align-items: flex-start; padding: 9px; border: 1px solid rgba(191,172,106,.14); background: linear-gradient(145deg,#182219,#0c110d); }
.tk-quest-card.done { border-color: rgba(214,189,108,.55); box-shadow: inset 0 0 20px rgba(214,189,108,.06); }
.tk-quest-giver { flex: none; width: 27px; height: 27px; display: grid; place-items: center; font-size: 11px; color: #d8c78c; border: 1px solid rgba(214,189,108,.28); background: rgba(214,189,108,.08); }
.tk-quest-main { flex: 1; min-width: 0; }
.tk-quest-title { display: flex; justify-content: space-between; gap: 6px; }
.tk-quest-title b { font-size: 11px; color: #e6dec5; }
.tk-quest-title span { font-size: 8px; color: #c8b97a; }
.tk-quest-main p { margin: 2px 0 4px; font-size: 9px; color: #8d9988; line-height: 1.45; }
.tk-quest-reward { margin-top: 4px; font-size: 8px; color: #94a38c; }
.tk-quest-card .tk-btn { flex: none; align-self: center; }
.tk-quest-closed { display: flex; flex-wrap: wrap; gap: 5px; }
.tk-quest-closed span { font-size: 9px; color: #87957f; border: 1px solid rgba(126,205,139,.14); padding: 2px 5px; }
/* 安全箱 */
.tk-sec-list { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; padding: 5px 0 0; }
.tk-sec-list:empty { display: none; }
.tk-sec-title { font-size: 8px; letter-spacing: .12em; color: #d6bd6c; }
.tk-sec-chip { font-size: 8px; color: #c9d6bf; border: 1px solid rgba(214,189,108,.25); background: rgba(214,189,108,.05); padding: 1px 4px; }
.tk-secure { border-color: rgba(214,189,108,.35) !important; color: #d9c785 !important; }
.tk-maps-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }
.tk-map-card { display: flex; gap: 9px; padding: 8px; border: 1px solid rgba(191,172,106,.14); background: #111812; cursor: pointer; }
.tk-map-card.on { border-color: var(--tk-gold); background: rgba(214,189,108,.06); }
.tk-map-thumb { position: relative; flex: none; width: 90px; height: 83px; background: #1b241c; overflow: hidden; border: 1px solid rgba(255,255,255,.05); }
.tk-map-thumb:before, .tk-map-thumb:after { content: ""; position: absolute; background: rgba(214,189,108,.13); }
.tk-map-thumb:before { left: 13px; top: 12px; width: 29px; height: 7px; box-shadow: 20px 22px rgba(214,189,108,.13), 39px 9px rgba(214,189,108,.13), 5px 42px rgba(214,189,108,.13); }
.tk-map-thumb:after { right: 14px; top: 8px; width: 2px; height: 65px; box-shadow: -30px 6px rgba(214,189,108,.08); }
.tk-map-thumb i { position: absolute; width: 4px; height: 4px; background: var(--tk-green); border-radius: 50%; box-shadow: 0 0 8px var(--tk-green); }
.tk-map-thumb i:nth-child(1) { right: 14px; bottom: 14px; }
.tk-map-thumb i:nth-child(2) { left: 12px; top: 31px; background: #7fb7e6; box-shadow: 0 0 8px #7fb7e6; }
.tk-map-thumb i:nth-child(3) { left: 52px; top: 52px; background: #e6b47f; box-shadow: 0 0 8px #e6b47f; }
.tk-map-thumb span { position: absolute; left: 5px; bottom: 4px; font-size: 8px; color: #96a18f; background: rgba(0,0,0,.55); padding: 1px 3px; }
.tk-map-thumb-port { background: linear-gradient(145deg, #1a2b2d 0%, #111b1c 64%, #192528 100%); }
.tk-map-thumb-port:before { left: 8px; top: 12px; width: 37px; height: 8px; box-shadow: 17px 14px rgba(104,164,170,.25), 8px 28px rgba(104,164,170,.2), 31px 36px rgba(214,189,108,.14); background: rgba(104,164,170,.22); }
.tk-map-thumb-port:after { right: 10px; top: 10px; width: 2px; height: 60px; background: rgba(104,164,170,.3); box-shadow: -40px 8px rgba(104,164,170,.14); }
.tk-map-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tk-map-info > div:first-child { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.tk-map-info b { font-size: 13px; color: #e3ddc7; }
.tk-map-info small { font-size: 9px; color: #899586; }
.tk-risk { font-size: 8px; color: #e0b968; border: 1px solid rgba(224,185,104,.3); padding: 1px 3px; }
.tk-snow-tag { font-size: 8px; color: #9cc8d6; border: 1px solid rgba(126,184,201,.42); background: rgba(47,89,103,.22); padding: 1px 4px; letter-spacing: .04em; }
.tk-heat-tag { font-size: 8px; color: #e6b97d; border: 1px solid rgba(207,151,84,.38); background: rgba(76,49,30,.28); padding: 1px 4px; letter-spacing: .04em; }
.tk-map-info p { margin: 0; font-size: 9px; color: #879282; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-map-foot { display: flex; justify-content: space-between; align-items: center; gap: 5px; margin-top: auto; }
.tk-map-foot span { font-size: 9px; color: #9ba492; }
.tk-deploy-hint { margin-top: 9px; padding: 8px 10px; border: 1px solid rgba(191,172,106,.2); font-size: 10px; color: #aeb49f; }
.tk-deploy-hint em { color: var(--tk-red); font-style: normal; }
.tk-result { min-height: 350px; }
.tk-result-head p { color: #9a9e8d; font-size: 11px; }
.tk-result-list { display: flex; flex-direction: column; gap: 5px; margin: 15px 0; }
.tk-result-row { display: grid; grid-template-columns: 26px 1fr 76px 56px 40px; align-items: center; gap: 7px; padding: 9px 8px; background: #111812; border-left: 2px solid #697466; }
.tk-result-row.extracted { border-left-color: var(--tk-green); background: rgba(111,240,153,.05); }
.tk-result-row.killed { border-left-color: var(--tk-red); background: rgba(255,112,100,.045); }
.tk-result-row i { font-style: normal; text-align: center; font-size: 16px; color: #c7d0bd; }
.tk-result-row.extracted i { color: var(--tk-green); }
.tk-result-row.killed i { color: var(--tk-red); }
.tk-result-row b { display: block; font-size: 12px; color: #ded9c3; }
.tk-result-row small { font-size: 9px; color: #8e9988; }
.tk-result-row span { font-size: 10px; color: #c5c0a8; text-align: right; font-variant-numeric: tabular-nums; }
.tk-result-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.tk-result-stats div { padding: 9px; border: 1px solid rgba(191,172,106,.17); }
.tk-result-stats small { display: block; color: #8c9786; font-size: 9px; }
.tk-result-stats b { color: #ddc575; font-size: 17px; }
.tk-result-actions { display: flex; gap: 7px; margin-top: 14px; }
.tk-feed { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; color: #7f8b7c; font-size: 9px; }
.tk-base-feed { padding: 0 18px 15px; }

/* ---------------- 实时 Raid */
.tk-raid-shell { position: relative; background: #0a0e0a; border: 1px solid rgba(191,172,106,.26); border-radius: 3px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.tk-raid-hud { display: flex; align-items: center; gap: 12px; padding: 8px 11px; background: linear-gradient(180deg,#1a231a,#0e130e); border-bottom: 1px solid rgba(191,172,106,.22); }
.tk-raid-map { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tk-raid-map b { font-size: 12px; color: #e5ddc2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-raid-stats { display: flex; gap: 9px; align-items: center; }
.tk-raid-stats div { text-align: right; }
.tk-raid-stats small { display: block; font-size: 8px; color: #7e8b7c; }
.tk-raid-stats b { font-size: 13px; color: #e5d8a9; font-variant-numeric: tabular-nums; }
.tk-raid-weap { flex: none; text-align: right; border-left: 1px solid rgba(191,172,106,.2); padding-left: 9px; }
.tk-raid-weap span { display: block; color: #9aa391; font-size: 9px; }
.tk-raid-weap b { color: #ffe7a6; font-size: 15px; }
.tk-raid-weap small { color: #8c9786; font-size: 9px; font-weight: 400; }
.tk-raid-stage { position: relative; background: #0b0f0b; overflow: hidden; }
#tkCanvas { display: block; width: 100%; touch-action: none; }
.tk-raid-top-left { position: absolute; left: 9px; top: 8px; font-size: 9px; color: #b9b79d; background: rgba(5,9,6,.64); padding: 4px 6px; display: flex; gap: 4px; align-items: center; }
.tk-live-dot { width: 5px; height: 5px; background: #8fe1a0; border-radius: 50%; box-shadow: 0 0 8px #8fe1a0; animation: tkBlink 1.1s infinite; }
@keyframes tkBlink { 50% { opacity: .3; } }
.tk-raid-feed { position: absolute; left: 9px; top: 86px; max-width: 52%; display: flex; flex-direction: column; gap: 2px; pointer-events: none; }
.tk-raid-feed span { font-size: 8px; color: rgba(214,211,187,.78); background: rgba(5,9,6,.58); padding: 2px 5px; width: fit-content; }
.tk-raid-extract { position: absolute; right: 9px; top: 42px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; background: rgba(5,9,6,.65); padding: 5px 7px; border-left: 2px solid rgba(111,240,153,.35); max-width: 160px; }
.tk-raid-extract i { width: 100%; height: 2px; background: rgba(111,240,153,.22); display: block; }
.tk-raid-extract i:after { content: ""; display: block; width: 100%; height: 100%; background: #86e9a4; transform-origin: left; transform: scaleX(var(--p,0)); }
.tk-raid-extract b { font-size: 9px; color: #a5d9ad; font-weight: 500; }
.tk-raid-extract span { font-size: 8px; color: #8e9c8c; }
.tk-raid-extract.in { border-left-color: #86e9a4; background: rgba(38,89,46,.5); }
.tk-raid-survival { position: absolute; right: 9px; top: 96px; display: flex; gap: 7px; align-items: center; padding: 4px 7px; background: rgba(5,9,6,.68); border-left: 2px solid rgba(142,214,255,.32); font-size: 8px; color: #a9b8b2; pointer-events: none; }
.tk-raid-survival[hidden] { display: none; }
.tk-raid-survival span { display: flex; align-items: center; gap: 3px; }
.tk-raid-survival b { color: #d8ecff; font-size: 10px; font-variant-numeric: tabular-nums; }
.tk-raid-survival i { width: 24px; height: 3px; background: linear-gradient(90deg,#9fd8ff,#5b8ab0); position: relative; }
.tk-raid-survival.low b { color: #ffb46e; }
.tk-raid-survival.low i { background: linear-gradient(90deg,#ffb46e,#c97a3d); }
.tk-raid-survival.freezing b { color: #ff6f63; }
.tk-raid-survival.freezing i { background: #ff554b; animation: tkBlink .8s infinite; }
.tk-raid-survival.frost { border-left-color: #ff7b5f; }
.tk-frost { color: #ff9b7a; font-size: 8px; border: 1px solid rgba(255,123,95,.45); padding: 1px 3px; }
.tk-frost[hidden] { display: none; }
.tk-weather-badge { position: absolute; left: 9px; top: 34px; display: flex; align-items: center; gap: 6px; padding: 4px 7px; background: rgba(5,9,6,.68); border-left: 2px solid rgba(158,216,255,.38); color: #c6d7d3; pointer-events: none; z-index: 12; }
.tk-weather-badge[hidden] { display: none; }
.tk-weather-badge b { font-size: 10px; font-weight: 500; color: #d8ecff; }
.tk-weather-badge span { font-size: 8px; color: #91aaa9; }
.tk-weather-badge.storm { border-left-color: #ff9b65; background: rgba(22,12,8,.78); }
.tk-weather-badge.storm b { color: #ffc08d; }
.tk-shelter-tip { position: absolute; left: 9px; top: 59px; padding: 3px 6px; background: rgba(54,34,16,.72); color: #ffd391; border: 1px solid rgba(255,178,99,.34); font-size: 8px; pointer-events: none; z-index: 12; }
.tk-shelter-tip[hidden] { display: none; }
.tk-weather-fx { position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0; background: radial-gradient(ellipse at 50% 42%, rgba(226,242,255,.04), transparent 54%), linear-gradient(180deg, rgba(7,10,14,.22), transparent 30%, transparent 68%, rgba(7,10,14,.34)); mix-blend-mode: screen; }
.tk-weather-fx.storm { animation: tkStormBreathe 5.8s ease-in-out infinite; }
@keyframes tkStormBreathe { 50% { filter: brightness(1.18); } }
.tk-sniper-alert { position: absolute; left: 0; right: 0; margin: 0 auto; width: max-content; top: 8px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 13px; background: rgba(40,7,6,.9); border: 1px solid rgba(255,83,72,.75); box-shadow: 0 0 20px rgba(255,60,50,.25); color: #ffd7d0; pointer-events: none; z-index: 60; }
.tk-sniper-alert[hidden] { display: none; }
.tk-sniper-alert span { font-size: 7px; letter-spacing: .18em; color: #ff7d6d; }
.tk-sniper-alert b { font-size: 10px; font-weight: 500; }
.tk-sniper-alert em { font-style: normal; font-size: 8px; color: #ff9a8a; }
@keyframes tkSniperPulse { 50% { box-shadow: 0 0 34px rgba(255,60,50,.55); } }
.tk-sniper-alert { animation: tkSniperPulse .7s infinite; }
.tk-raid-search { position: absolute; left: 50%; top: 44%; transform: translateX(-50%); width: 180px; text-align: center; pointer-events: none; }
.tk-raid-search b { display: block; font-size: 10px; color: #f0dfae; background: rgba(8,12,8,.82); padding: 4px 7px; }
.tk-raid-search i { display: block; height: 3px; margin-top: 3px; background: #d6bd6c; width: 0; }
.tk-raid-bottom { display: grid; grid-template-columns: 1fr; align-items: center; gap: 6px; padding: 7px 10px 6px; background: linear-gradient(180deg,#111812,#0a0e0a); border-top: 1px solid rgba(191,172,106,.16); }
.tk-stick { position: relative; width: 86px; height: 86px; border: 1px solid rgba(191,172,106,.42); background: radial-gradient(circle,rgba(214,189,108,.11),rgba(6,10,7,.6)); border-radius: 50%; touch-action: none; user-select: none; }
.tk-stick-float { position: absolute; z-index: 19; display: none; pointer-events: none; left: 90px; bottom: 52px; }
.tk-stick-float.active { display: block; animation: tkStickIn .12s ease-out; }
@keyframes tkStickIn { from { opacity: .3; transform: scale(.82); } to { opacity: 1; transform: scale(1); } }
.tk-joy-zone { position: absolute; left: 0; top: 0; bottom: 0; width: 52%; z-index: 8; touch-action: none; user-select: none; }
.tk-joy-zone span { position: absolute; left: 12px; bottom: 8px; font-size: 9px; color: rgba(222,213,178,.55); background: rgba(5,9,6,.55); border: 1px solid rgba(214,189,108,.14); padding: 3px 6px; pointer-events: none; }
.tk-joy-zone.active span { opacity: 0; }
.tk-fight { position: absolute; inset: 0; z-index: 22; pointer-events: none; }
.tk-fight .tk-fire { position: absolute; right: 14px; bottom: 20px; pointer-events: auto; }
.tk-fight .tk-mini-acts { display: contents; }
.tk-fight .tk-mini-acts .tk-key { position: absolute; pointer-events: auto; min-width: 40px; min-height: 30px; border: 1px solid rgba(191,172,106,.36); background: rgba(12,18,13,.82); color: #e6ddbf; font-size: 10px; padding: 5px 6px; border-radius: 3px; }
#tkReload { right: 10px; bottom: 82px; }
#tkSearch { right: 10px; bottom: 118px; }
#tkNade { right: 72px; bottom: 18px; }
#tkRoll { right: 72px; bottom: 54px; }
#tkSprint { right: 72px; bottom: 90px; }
#tkStairs { right: 124px; bottom: 18px; }
.tk-roll { border-color: rgba(255,209,102,.55) !important; }
.tk-roll:active, .tk-roll.cooling { filter: brightness(.8); }
#tkSprint.on { border-color: rgba(130,215,255,.75); color: #b8ecff; background: rgba(32,66,78,.82); box-shadow: 0 0 9px rgba(130,215,255,.22); }
.tk-layout-btn, .tk-layout-reset { position: absolute; z-index: 30; top: 8px; border: 1px solid rgba(214,189,108,.4); background: rgba(10,15,11,.8); color: #e4d39a; font: inherit; font-size: 13px; width: 26px; height: 26px; border-radius: 3px; cursor: pointer; }
.tk-layout-btn { right: 9px; }
.tk-layout-reset { right: 42px; width: auto; padding: 0 7px; font-size: 9px; }
.tk-layout-reset[hidden] { display: none; }
.tk-layout-mode .tk-key, .tk-layout-mode .tk-stick-float { outline: 1px dashed rgba(255,225,140,.8); outline-offset: 3px; }
.tk-layout-mode .tk-joy-zone { pointer-events: none; }
.tk-layout-mode .tk-key { cursor: move; }
.tk-floor-chip { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); z-index: 12; padding: 4px 7px; background: rgba(5,9,6,.72); border: 1px solid rgba(214,189,108,.26); color: #ffe7a6; font-size: 9px; pointer-events: none; }
.tk-tier-legend { position: absolute; right: 9px; top: 96px; z-index: 12; display: flex; flex-direction: row; gap: 5px; padding: 4px 6px; background: rgba(5,9,6,.62); border-left: 1px solid rgba(214,189,108,.22); pointer-events: none; }
.tk-tier-legend span { font-size: 8px; color: #b9b79d; display: flex; align-items: center; gap: 3px; }
.tk-tier-legend i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; box-shadow: 0 0 5px currentColor; }
.tk-browser-help { position: absolute; left: 10px; bottom: 128px; z-index: 9; max-width: 48%; font-size: 8px; line-height: 1.35; color: rgba(220,214,186,.62); padding: 3px 6px; background: rgba(5,9,6,.52); border-left: 2px solid rgba(220,214,186,.22); pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .tk-joy-zone { pointer-events: none; }
  .tk-joy-zone span { display: none; }
}
.tk-stamina { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 8px; color: #8c9988; }
.tk-stamina i { flex: 1; height: 4px; background: #2b352b; display: block; }
.tk-stamina em { display: block; height: 100%; background: #5fa8d8; }
.tk-stamina b { color: #9ac3dc; font-weight: 500; }
.tk-stick-ring { position: absolute; inset: 16px; border: 1px dashed rgba(214,189,108,.22); border-radius: 50%; }
.tk-stick-knob { position: absolute; width: 31px; height: 31px; left: 27px; top: 27px; border-radius: 50%; background: radial-gradient(circle at 35% 30%,#e4d28c,#9b864c); box-shadow: 0 0 13px rgba(214,189,108,.28); border: 1px solid #eee3b5; transform: translate(0,0); pointer-events: none; }
.tk-stick span { position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%); color: #788576; font-size: 8px; white-space: nowrap; }
.tk-fight { display: flex; flex-direction: column; align-items: stretch; gap: 5px; }
.tk-fire { border: 1px solid #e6c979; background: radial-gradient(circle at 35% 30%,#eedb92,#a98945); color: #10150e; border-radius: 50%; width: 66px; height: 66px; align-self: center; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 0 0 4px rgba(214,189,108,.08), 0 0 20px rgba(214,189,108,.16); touch-action: none; }
.tk-fire:active { transform: scale(.92); filter: brightness(1.15); }
.tk-fire span { font-size: 17px; line-height: .8; }
.tk-fire b { font-size: 11px; }
.tk-fire small { font-size: 7px; opacity: .55; }
.tk-mini-acts { display: flex; justify-content: center; gap: 3px; }
.tk-hp-panel { min-width: 0; }
.tk-hp-head { display: flex; justify-content: space-between; gap: 3px; align-items: baseline; margin-bottom: 4px; }
.tk-hp-head span { font-size: 9px; color: #9aa294; }
.tk-hp-head small { color: #d0c394; font-size: 8px; }
.tk-hp-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 7px; }
.tk-hp-bar { display: grid; grid-template-columns: 21px 1fr 18px; align-items: center; gap: 3px; font-size: 8px; color: #9ba592; }
.tk-hp-bar i { height: 4px; background: #2b352b; display: block; }
.tk-hp-bar em { display: block; height: 100%; background: #8dcf9d; }
.tk-hp-bar.low em { background: #e0b25d; }
.tk-hp-bar.dead em { background: #c94d47; }
.tk-hp-bar b { text-align: right; color: #d4ceb6; font-weight: 400; }
.tk-bleed { grid-column: 1/-1; color: #e9857c; font-size: 8px; }
.tk-raid-bag { padding: 7px 10px 9px; border-top: 1px solid rgba(191,172,106,.1); background: #080c09; }
.tk-bag-head { display: flex; justify-content: space-between; gap: 8px; color: #a6ad99; font-size: 9px; margin-bottom: 4px; }
.tk-bag-head small { color: #7f8d7e; font-size: 8px; }
.tk-bag-list { display: flex; gap: 4px; overflow-x: auto; min-height: 23px; scrollbar-width: none; }
.tk-bag-list::-webkit-scrollbar { display: none; }
.tk-bag-item { flex: none; border: 1px solid rgba(191,172,106,.16); background: #121a13; padding: 3px 5px; font-size: 9px; color: #c5c4ae; display: flex; align-items: center; gap: 4px; }
.tk-bag-item b { color: #cdb86d; font-weight: 400; }
.tk-use { border: 1px solid rgba(214,189,108,.4); background: rgba(214,189,108,.1); color: #e4cf89; font-size: 8px; padding: 1px 4px; }
.tk-bag-empty { color: #7a887b; font-size: 9px; }
.tk-raid-shell .tk-raid-bag .tk-bag-item.tk-r-rare { border-color: rgba(92,164,222,.35); }
.tk-raid-shell .tk-raid-bag .tk-bag-item.tk-r-epic { border-color: rgba(179,112,232,.4); }
/* 战局背包里的带品级枪：边框、名字、价格一起变色，红色典藏一眼可辨。 */
.tk-raid-shell .tk-raid-bag .tk-bag-item.tk-r-gray { border-color: rgba(152,160,147,.4); }
.tk-raid-shell .tk-raid-bag .tk-bag-item.tk-r-green { border-color: rgba(97,199,119,.55); background: rgba(97,199,119,.07); }
.tk-raid-shell .tk-raid-bag .tk-bag-item.tk-r-green b { color: #7edb94; }
.tk-raid-shell .tk-raid-bag .tk-bag-item.tk-r-blue { border-color: rgba(85,169,234,.6); background: rgba(85,169,234,.07); }
.tk-raid-shell .tk-raid-bag .tk-bag-item.tk-r-blue b { color: #75c5ff; }
.tk-raid-shell .tk-raid-bag .tk-bag-item.tk-r-purple { border-color: rgba(178,115,239,.68); background: rgba(178,115,239,.08); }
.tk-raid-shell .tk-raid-bag .tk-bag-item.tk-r-purple b { color: #c18aff; }
.tk-raid-shell .tk-raid-bag .tk-bag-item.tk-r-gold { border-color: rgba(227,187,80,.72); background: rgba(227,187,80,.08); }
.tk-raid-shell .tk-raid-bag .tk-bag-item.tk-r-gold b { color: #f0cf78; }
.tk-raid-shell .tk-raid-bag .tk-bag-item.tk-r-red { border-color: rgba(242,100,88,.9); background: rgba(242,100,88,.1); box-shadow: inset 0 0 14px rgba(242,100,88,.12), 0 0 9px rgba(242,100,88,.12); }
.tk-raid-shell .tk-raid-bag .tk-bag-item.tk-r-red b { color: #ff8c7e; }
.tk-raid-shell .tk-raid-bag .tk-bag-item.tk-r-eternal { border-color: rgba(255,122,217,.82); background: rgba(255,122,217,.08); }
.tk-raid-shell .tk-raid-bag .tk-bag-item.tk-r-eternal b { color: #ff9fe4; }
.tk-sec-chip.tk-r-gray { border-color: rgba(152,160,147,.45); }
.tk-sec-chip.tk-r-green { border-color: rgba(97,199,119,.5); color: #7edb94; }
.tk-sec-chip.tk-r-blue { border-color: rgba(85,169,234,.55); color: #75c5ff; }
.tk-sec-chip.tk-r-purple { border-color: rgba(178,115,239,.62); color: #c18aff; }
.tk-sec-chip.tk-r-gold { border-color: rgba(227,187,80,.65); color: #f0cf78; }
.tk-sec-chip.tk-r-red { border-color: rgba(242,100,88,.8); color: #ff8c7e; background: rgba(242,100,88,.08); }

/* 战利品翻找面板：自动打开背包，容器物资一件件翻出，每件都带价值色背景。 */
.tk-loot-layer {
  position: absolute; inset: 0; z-index: 42;
  display: flex; align-items: center; justify-content: center;
  padding: 10px; background: rgba(3,6,4,.76);
}
.tk-loot-layer[hidden], .tk-stair-layer[hidden] { display: none; }
.tk-loot-card {
  width: min(760px, 96%); max-height: 92%; min-height: 0;
  display: flex; flex-direction: column;
  border: 1px solid rgba(226,193,104,.38); border-radius: 4px;
  background: linear-gradient(180deg, #131b14, #080c09 78%);
  box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.45) inset;
}
.tk-loot-head {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px 8px; border-bottom: 1px solid rgba(191,172,106,.18);
  background: linear-gradient(180deg, rgba(43,54,40,.72), rgba(11,16,11,.3));
}
.tk-loot-head h3 { margin: 1px 0 2px; color: #eee3bd; font-size: 16px; letter-spacing: .5px; }
.tk-loot-head small { color: #a7ad9b; font-size: 9px; }
.tk-loot-close { flex: none; }
.tk-loot-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 8px; padding: 8px 10px; overflow: hidden; }
.tk-loot-pane { min-height: 0; display: flex; flex-direction: column; border: 1px solid rgba(191,172,106,.14); background: rgba(0,0,0,.2); }
.tk-loot-pane > header { flex: none; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 6px 8px 5px; border-bottom: 1px solid rgba(191,172,106,.12); color: #b9bdab; font-size: 9px; }
.tk-loot-pane > header b { color: #e0c87d; font-size: 9px; font-weight: 500; }
.tk-loot-items, .tk-loot-baglist { flex: 1; min-height: 0; overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 5px; scrollbar-width: thin; }
.tk-loot-item {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 7px;
  padding: 6px 7px; border: 1px solid rgba(160,168,154,.2);
  background: rgba(90,100,88,.08);
}
.tk-loot-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tk-loot-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d5d5c0; font-size: 10px; font-weight: 600; }
.tk-loot-main small { color: #8f9b88; font-size: 8px; }
.tk-loot-acts { flex: none; display: flex; gap: 3px; }
.tk-loot-take { border: 1px solid rgba(218,191,107,.44); background: rgba(218,191,107,.1); color: #e6d498; font-size: 8px; padding: 3px 5px; border-radius: 2px; }
.tk-loot-take:disabled { opacity: .28; border-color: rgba(130,140,128,.3); color: #879080; }
.tk-loot-lock { border-color: rgba(99,183,152,.44); background: rgba(99,183,152,.1); color: #a8dfc8; }
.tk-loot-new { animation: tkLootPop .28s ease-out both; }
@keyframes tkLootPop { from { opacity: 0; transform: translateY(5px) scale(.98); } to { opacity: 1; transform: none; } }
.tk-loot-scanning { flex: none; display: flex; align-items: center; gap: 5px; padding: 5px 7px; color: #b7a96f; font-size: 8px; border-top: 1px dashed rgba(191,172,106,.16); }
.tk-loot-scanning i { width: 6px; height: 6px; border-radius: 50%; background: #e0c064; animation: tkLootPulse 1s infinite; }
@keyframes tkLootPulse { 0%,100% { opacity: .3; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.2); } }
.tk-loot-empty { color: #7f8c7c; font-size: 9px; padding: 7px 3px; }
.tk-loot-bagrow {
  flex: none; display: flex; align-items: center; gap: 5px;
  border: 1px solid rgba(160,168,154,.18); background: rgba(90,100,88,.08);
  padding: 4px 5px; color: #bec2b0; font-size: 8px;
}
.tk-loot-bagrow span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-loot-bagrow i { flex: none; color: #9b8e5e; font-style: normal; font-size: 7px; border: 1px solid rgba(191,172,106,.25); padding: 0 2px; }
.tk-loot-bagrow b { flex: none; color: #d6c27e; font-weight: 400; }
.tk-loot-bagrow button { flex: none; border: 1px solid rgba(99,183,152,.35); background: rgba(99,183,152,.08); color: #a8dfc8; font-size: 7px; padding: 1px 3px; }
.tk-loot-sec { flex: none; max-height: 56px; overflow: auto; padding: 5px 6px; border-top: 1px solid rgba(191,172,106,.1); display: flex; flex-wrap: wrap; gap: 3px; }
.tk-loot-foot { flex: none; display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 7px 11px 9px; border-top: 1px solid rgba(191,172,106,.13); color: #8e9987; font-size: 8px; }
.tk-loot-foot .tk-btn { flex: none; }
/* 每件物资的价值底色：灰/绿/蓝/紫/金/红/炫彩 */
.tk-loot-item.tk-r-gray { background: rgba(150,160,148,.1); border-color: rgba(150,160,148,.34); }
.tk-loot-item.tk-r-green { background: linear-gradient(90deg, rgba(97,199,119,.15), rgba(10,16,11,.14)); border-color: rgba(97,199,119,.46); }
.tk-loot-item.tk-r-green .tk-loot-main b { color: #8ddf9f; }
.tk-loot-item.tk-r-blue { background: linear-gradient(90deg, rgba(85,169,234,.18), rgba(10,16,18,.14)); border-color: rgba(85,169,234,.54); }
.tk-loot-item.tk-r-blue .tk-loot-main b { color: #91d0ff; }
.tk-loot-item.tk-r-purple { background: linear-gradient(90deg, rgba(178,115,239,.2), rgba(17,10,20,.14)); border-color: rgba(178,115,239,.62); }
.tk-loot-item.tk-r-purple .tk-loot-main b { color: #d0a2ff; }
.tk-loot-item.tk-r-gold { background: linear-gradient(90deg, rgba(227,187,80,.2), rgba(22,17,8,.14)); border-color: rgba(227,187,80,.65); }
.tk-loot-item.tk-r-gold .tk-loot-main b { color: #f2d37e; }
.tk-loot-item.tk-r-red { background: linear-gradient(90deg, rgba(242,100,88,.22), rgba(22,9,8,.14)); border-color: rgba(242,100,88,.8); box-shadow: inset 0 0 16px rgba(242,100,88,.12); }
.tk-loot-item.tk-r-red .tk-loot-main b { color: #ff9b8d; }
.tk-loot-item.tk-r-eternal { background: linear-gradient(90deg, rgba(255,122,217,.23), rgba(255,184,92,.1)); border-color: rgba(255,122,217,.73); }
.tk-loot-item.tk-r-eternal .tk-loot-main b { color: #ffb4e7; }
.tk-loot-bagrow.tk-r-blue span, .tk-loot-bagrow.tk-r-purple span, .tk-loot-bagrow.tk-r-red span { color: #d8d2b8; }
/* 楼层选择：踩楼梯自动触发，多方向时弹层 */
.tk-stair-layer { position: absolute; inset: 0; z-index: 44; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(3,6,4,.64); }
.tk-stair-card {
  width: min(330px, 88%); display: flex; flex-direction: column; gap: 7px;
  padding: 13px 14px; border: 1px solid rgba(226,193,104,.4); border-radius: 4px;
  background: linear-gradient(180deg, #182017, #0a0e0a);
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
}
.tk-stair-card h3 { margin: 0; color: #f0e2b3; font-size: 16px; }
.tk-stair-card p { margin: 0; color: #a6ae9a; font-size: 9px; line-height: 1.6; }
.tk-stair-options { display: flex; flex-direction: column; gap: 5px; margin: 2px 0; }
.tk-stair-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid rgba(218,191,107,.35); background: rgba(218,191,107,.08);
  color: #dcd0a8; padding: 9px 10px; text-align: left;
}
.tk-stair-opt b { color: #efd47d; font-size: 13px; }
.tk-stair-opt span { color: #a7ae97; font-size: 9px; }
.tk-stair-card .tk-btn { align-self: flex-start; }
.tk-loc { flex: none; font-style: normal; font-size: 7px; color: #a99a61; border: 1px solid rgba(191,172,106,.25); padding: 0 2px; }

/* 微信内置浏览器横屏兜底：竖屏视口里把整个游戏舞台旋转 90°，玩家把手机横过来即可正常游玩。
   一旦微信/系统真的把视口转成横屏，app.js 会撤掉这个类，自动回到普通横屏布局。 */
body.wx-rotate-landscape #screenGame {
  position: fixed; top: 0; left: 100vw;
  width: 100vh; height: 100vw;
  width: 100dvh; height: 100dvw;
  transform: rotate(90deg); transform-origin: top left;
  z-index: 80; overflow: hidden; padding: 0; margin: 0;
  background: #080b08;
}
body.wx-rotate-landscape #screenGame > .topbar { display: none !important; }
body.wx-rotate-landscape #stageRoot {
  display: flex; width: 100%; height: 100%;
  padding: 0; margin: 0; overflow: hidden;
}
body.wx-rotate-landscape #dock, body.wx-rotate-landscape .chat-panel { display: none !important; }
body.wx-rotate-landscape .tk-raid-shell {
  width: 100%; height: 100%; border: 0; border-radius: 0;
  display: flex; flex-direction: column; overflow: hidden;
}
body.wx-rotate-landscape .tk-raid-stage { flex: 1 1 auto; min-height: 0; }
body.wx-rotate-landscape .tk-raid-bag { flex: none; }


@media (min-width: 901px) {
  /* 桌面端：内层 g-wrap 的 auto margin 会把整块缩成手机宽度，这里显式给足 780px。 */
  #gWrap > .g-wrap:has(.tk-shell),
  #gWrap > .g-wrap:has(.tk-raid-shell) { width: min(100%, 780px); margin-left: auto; margin-right: auto; padding-top: 4px; padding-bottom: 10px; }
  body:has(.tk-raid-shell) #screenGame,
  body:has(.tk-shell) #screenGame { padding-bottom: 0; }
  body:has(.tk-raid-shell) .g-variant-chip,
  body:has(.tk-shell) .g-variant-chip,
  body:has(.tk-raid-shell) .g-top,
  body:has(.tk-shell) .g-top { display: none !important; }
  .tk-raid-stage { display: flex; justify-content: center; }
  #tkCanvas { flex: none; }
}

@media (max-width: 720px) {
  .tk-tier-legend { display: none; }
  .tk-raid-feed { top: 78px; max-width: 58%; }
  /* 暗区是主画面，手机端把外层留白压到最小，让 Canvas 尽量吃满屏宽 */
  body:has(.tk-shell) #stageRoot,
  body:has(.tk-raid-shell) #stageRoot { padding-left: 7px; padding-right: 7px; padding-top: 8px; }
  .tk-banner { padding: 16px 13px 12px; align-items: flex-start; flex-direction: column; gap: 9px; }
  .tk-brand h1 { font-size: 27px; }
  .tk-brand p { font-size: 10px; max-width: none; }
  .tk-wallet { width: 100%; justify-content: space-between; gap: 8px; }
  .tk-wallet div { min-width: 0; }
  .tk-panel { padding: 12px 10px 17px; }
  .tk-tabs { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 0; padding: 0; }
  .tk-tab { min-width: 0; padding: 9px 0 7px; border-right: 1px solid rgba(191,172,106,.05); }
  .tk-tab span { font-size: 8px; letter-spacing: 0; white-space: nowrap; }
  .tk-tab i { font-size: 13px; }
  .tk-item { min-height: 55px; gap: 6px; }
  .tk-item-art { width: 32px; height: 32px; }
  .tk-item-title b { font-size: 10px; }
  .tk-item-sub { font-size: 8px; }
  .tk-gear-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 5px; overflow: visible; padding-bottom: 2px; }
  .tk-gear-slot { flex: none; width: auto; min-height: 88px; }
  .tk-items-grid { grid-template-columns: 1fr; }
  .tk-loadout-layout { grid-template-columns: 1fr; }
  .tk-operator-wrap { flex-direction: row; justify-content: center; gap: 12px; }
  .tk-operator { width: 95px; height: 134px; }
  .tk-op-stats { text-align: left; }
  .tk-gun-grid { grid-template-columns: 1fr; gap: 10px; }
  .tk-gun-hero { min-height: 145px; padding: 11px 8px 6px; }
  .tk-gun-svg { max-width: 100%; }
  .tk-slot-grid { grid-template-columns: repeat(3,1fr); }
  .tk-compat-list { max-height: 190px; }
  .tk-hideout-grid, .tk-maps-grid { grid-template-columns: 1fr; }
  .tk-craft-grid { grid-template-columns: 1fr; }
  .tk-quest-level { flex-direction: column; align-items: flex-start; }
  .tk-quest-xp { width: 100%; text-align: left; }
  .tk-quest-card { flex-wrap: wrap; }
  .tk-quest-main { flex-basis: calc(100% - 38px); }
  .tk-map-thumb { width: 78px; height: 75px; }
  .tk-result-row { grid-template-columns: 20px 1fr 64px 40px; gap: 4px; }
  .tk-result-row span:nth-child(4) { display: none; }
  .tk-raid-hud { padding: 6px 8px; gap: 5px; }
  .tk-raid-map b { font-size: 10px; }
  .tk-raid-stats { gap: 5px; }
  .tk-raid-stats b { font-size: 11px; }
  .tk-raid-weap { padding-left: 5px; }
  .tk-raid-weap span { font-size: 8px; }
  .tk-raid-bottom { grid-template-columns: 1fr; gap: 5px; padding: 6px 7px 5px; }
  .tk-stick { width: 78px; height: 78px; }
  .tk-stick-knob { width: 28px; height: 28px; left: 24px; top: 24px; }
  .tk-stick span { bottom: -12px; font-size: 7px; }
  .tk-fire { width: 59px; height: 59px; }
  .tk-hp-bars { grid-template-columns: 1fr 1fr; gap: 1px 4px; }
  .tk-hp-bar { grid-template-columns: 18px 1fr 14px; }
  .tk-raid-bag { padding: 5px 7px 7px; }
}
@media (max-width: 390px) {
  .tk-raid-hud { flex-wrap: wrap; }
  .tk-raid-stats { order: 3; margin-left: auto; }
  .tk-raid-weap { order: 2; margin-left: auto; }
  .tk-raid-map { flex-basis: 100%; }
  .tk-raid-bottom { grid-template-columns: 1fr; }
  .tk-stick { width: 70px; height: 70px; }
  .tk-stick-knob { width: 25px; height: 25px; left: 22px; top: 22px; }
}

/* ---------- 格子式仓库 / 拖拽装备 ---------- */
.tk-inv-panel {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 13px 15px;
}
.tk-inv-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tk-inv-title { display: flex; align-items: baseline; gap: 8px; }
.tk-inv-title b { font-size: 17px; letter-spacing: .12em; color: #e6dfc8; }
.tk-inv-title small { font-size: 9px; color: #8e998a; }
.tk-inv-filters { display: flex; gap: 3px; flex-wrap: wrap; }
.tk-inv-filter {
  border: 1px solid rgba(191,172,106,.18); background: #11170f; color: #9ca58f;
  font-size: 9px; padding: 4px 9px; border-radius: 2px;
}
.tk-inv-filter.on { border-color: rgba(214,189,108,.72); background: rgba(214,189,108,.14); color: #e5d18a; }
.tk-inv-body { display: grid; grid-template-columns: minmax(0,1fr) 282px; gap: 11px; min-height: 0; flex: 1; }
.tk-inv-left { display: flex; flex-direction: column; min-width: 0; min-height: 0; gap: 6px; }
.tk-inv-grid {
  display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 3px;
  padding: 4px; border: 1px solid rgba(191,172,106,.16);
  background:
    linear-gradient(rgba(191,172,106,.025), rgba(191,172,106,.025)),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(191,172,106,.035) 23px 24px);
  overflow-y: auto; align-content: start; min-height: 0;
  scrollbar-width: thin; scrollbar-color: rgba(191,172,106,.35) transparent;
}
.tk-inv-cell, .tk-inv-empty-cell { aspect-ratio: 1; min-width: 0; }
.tk-inv-empty-cell { border: 1px solid rgba(191,172,106,.11); background: rgba(0,0,0,.17); }
.tk-inv-tile {
  position: relative; aspect-ratio: 1; min-width: 0; overflow: hidden;
  border: 1px solid rgba(191,172,106,.25); background: linear-gradient(150deg,#1a2118,#0d130e);
  color: #c8c7ae; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; padding: 3px 4px 4px; cursor: grab; touch-action: none; user-select: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.018);
}
.tk-inv-tile .tk-inv-tile-art { width: 27px; height: 27px; flex: none; opacity: .95; }
.tk-inv-tile .tk-art { width: 100%; height: 100%; }
.tk-inv-tile-name { width: 100%; font-size: 7.5px; line-height: 1.15; text-align: center; color: #d8d2bc; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tk-inv-tile-type { width: 100%; font-size: 6.5px; text-align: center; color: #7e8b78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-inv-tile-price { font-size: 7px; color: #c8b370; }
.tk-inv-sell {
  position: absolute; right: 1px; top: 1px; border: 1px solid rgba(214,189,108,.3);
  background: rgba(8,12,9,.88); color: #cdb86d; font-size: 7px; line-height: 1;
  padding: 2px 3px; border-radius: 1px;
}
.tk-inv-tile.tk-r-gray { border-color: rgba(152,160,147,.35); }
.tk-inv-tile.tk-r-green { border-color: rgba(97,199,119,.52); }
.tk-inv-tile.tk-r-blue { border-color: rgba(85,169,234,.6); }
.tk-inv-tile.tk-r-purple { border-color: rgba(178,115,239,.66); }
.tk-inv-tile.tk-r-gold { border-color: rgba(227,187,80,.76); }
.tk-inv-tile.tk-r-red { border-color: rgba(242,100,88,.82); box-shadow: inset 0 0 16px rgba(242,100,88,.11); }
.tk-inv-tile.tk-r-eternal { border-color: rgba(255,122,217,.9); box-shadow: inset 0 0 18px rgba(255,122,217,.16), 0 0 9px rgba(88,184,255,.1); }
.tk-inv-tile.tk-r-rare { border-color: rgba(92,164,222,.55); }
.tk-inv-tile.tk-r-epic { border-color: rgba(179,112,232,.55); }
.tk-inv-tile.tk-r-legendary { border-color: rgba(226,157,67,.72); }
.tk-inv-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 8px; color: #7d897b; }
.tk-inv-side { border: 1px solid rgba(191,172,106,.15); background: rgba(10,15,11,.72); padding: 7px; min-width: 0; }
.tk-inv-side-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 1px 6px; color: #d7d2bc; }
.tk-inv-side-head b { font-size: 12px; letter-spacing: .1em; }
.tk-inv-side-head small { font-size: 8px; color: #7f8d7e; }
.tk-drop-board { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
.tk-drop-slot {
  min-height: 66px; border: 1px dashed rgba(191,172,106,.25); background: rgba(0,0,0,.18);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 4px 3px; text-align: center; color: #98a18f; position: relative;
  cursor: grab; touch-action: none; user-select: none;
}
.tk-drop-slot.wide { grid-column: span 2; }
.tk-drop-slot.filled { border-style: solid; border-color: rgba(191,172,106,.42); background: rgba(26,34,24,.8); }
.tk-drop-slot small { font-size: 7.5px; color: #7f8d7e; letter-spacing: .05em; }
.tk-drop-slot b { width: 100%; font-size: 8px; font-weight: 400; color: #d5d0b9; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tk-drop-art { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.tk-drop-art .tk-art { width: 100%; height: 100%; }
.tk-drop-art span { font-size: 19px; color: #6e7c6c; line-height: 1; }
.tk-drop-plus, .tk-drag-hint { font-size: 7px; color: #788776; }
.tk-inv-side-note { margin-top: 6px; color: #788776; font-size: 8px; line-height: 1.5; border-top: 1px solid rgba(191,172,106,.1); padding-top: 5px; }
.tk-drop-on { border-color: #d8bd62 !important; background: rgba(214,189,108,.15) !important; box-shadow: inset 0 0 0 1px rgba(214,189,108,.25); }
.tk-drag-ghost {
  position: fixed; z-index: 99999; pointer-events: none; transform: translate(-50%,-50%);
  display: flex; align-items: center; justify-content: center; border: 1px solid rgba(214,189,108,.7);
  background: rgba(17,25,17,.94); color: #e0d8bd; opacity: .9; box-shadow: 0 5px 18px rgba(0,0,0,.55);
  border-radius: 2px;
}
.tk-drag-ghost .tk-inv-sell { display: none; }
.tk-drag-ghost .tk-inv-tile-name, .tk-drag-ghost .tk-inv-tile-type, .tk-drag-ghost .tk-inv-tile-price { display: none; }
body.tk-dragging { cursor: grabbing; user-select: none; }

@media (max-width: 720px) {
  .tk-inv-body { grid-template-columns: 1fr; }
  .tk-inv-grid { grid-template-columns: repeat(6, minmax(0,1fr)); }
  .tk-inv-side { order: -1; }
  .tk-drop-board { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .tk-inv-foot { flex-direction: column; gap: 3px; }
}

@media (orientation: landscape) {
/* ---------- 手机上启动暗区：全屏横屏手游布局 ---------- */
body.landscape-mode:has(.tk-shell) .topbar,
body.landscape-mode:has(.tk-shell) #dock,
body.landscape-mode:has(.tk-shell) .g-top,
body.landscape-mode:has(.tk-shell) .g-head,
body.landscape-mode:has(.tk-shell) .g-seats,
body.landscape-mode:has(.tk-shell) .g-log,
body.landscape-mode:has(.tk-shell) .tk-base-feed { display: none !important; }
body.landscape-mode:has(.tk-shell) #screenGame { height: 100dvh; min-height: 100dvh; overflow: hidden; }
body.landscape-mode:has(.tk-shell) #stageRoot {
  height: 100dvh; min-height: 100dvh; max-width: none; padding: 0; margin: 0; overflow: hidden;
}
body.landscape-mode:has(.tk-shell) .g-wrap { height: 100%; max-width: none; padding: 0; gap: 0; }
body.landscape-mode:has(.tk-shell) .g-stage { height: 100%; min-height: 0; padding: 0; border: 0; background: transparent; }
body.landscape-mode:has(.tk-shell) .tk-shell {
  height: 100dvh; width: 100vw; max-width: none; border: 0; border-radius: 0;
  display: flex; flex-direction: column; overflow: hidden;
}
body.landscape-mode:has(.tk-shell) .tk-banner {
  flex: none; flex-direction: row; align-items: center; gap: 12px;
  padding: 5px 12px; min-height: 39px;
}
body.landscape-mode:has(.tk-shell) .tk-eyebrow,
body.landscape-mode:has(.tk-shell) .tk-brand p { display: none; }
body.landscape-mode:has(.tk-shell) .tk-brand h1 { font-size: 18px; line-height: 1; margin: 0; }
body.landscape-mode:has(.tk-shell) .tk-wallet { width: auto; margin-left: auto; gap: 10px; }
body.landscape-mode:has(.tk-shell) .tk-wallet div { min-width: 44px; }
body.landscape-mode:has(.tk-shell) .tk-wallet span { font-size: 7px; }
body.landscape-mode:has(.tk-shell) .tk-wallet b { font-size: 11px; }
body.landscape-mode:has(.tk-shell) .tk-tabs {
  flex: none; display: grid; grid-template-columns: repeat(8,minmax(0,1fr));
  height: 42px; padding: 0; border-top: 1px solid rgba(191,172,106,.12);
}
body.landscape-mode:has(.tk-shell) .tk-tab { min-width: 0; padding: 5px 0 3px; }
body.landscape-mode:has(.tk-shell) .tk-tab i { font-size: 13px; }
body.landscape-mode:has(.tk-shell) .tk-tab span { font-size: 8px; white-space: nowrap; }
body.landscape-mode:has(.tk-shell) .tk-panel {
  flex: 1; min-height: 0; overflow-y: auto; padding: 7px 12px 9px;
  border-radius: 0; border: 0;
}
body.landscape-mode:has(.tk-shell) .tk-inv-panel { overflow: hidden; display: flex; }
body.landscape-mode:has(.tk-shell) .tk-inv-head { flex: none; min-height: 28px; }
body.landscape-mode:has(.tk-shell) .tk-inv-title b { font-size: 15px; }
body.landscape-mode:has(.tk-shell) .tk-inv-body { grid-template-columns: minmax(0,1fr) 252px; gap: 9px; }
body.landscape-mode:has(.tk-shell) .tk-inv-side { order: 0; width: 252px; overflow-y: auto; }
body.landscape-mode:has(.tk-shell) .tk-inv-grid { grid-template-columns: repeat(9,minmax(0,1fr)); }
body.landscape-mode:has(.tk-shell) .tk-inv-tile-name { font-size: 8.5px; }
body.landscape-mode:has(.tk-shell) .tk-inv-tile-type,
body.landscape-mode:has(.tk-shell) .tk-inv-tile-price { font-size: 7.5px; }
body.landscape-mode:has(.tk-shell) .tk-drop-slot { min-height: 55px; }
body.landscape-mode:has(.tk-shell) .tk-inv-side-note { display: none; }
body.landscape-mode:has(.tk-shell) .tk-inv-foot { flex: none; }

/* Raid 也吃满横屏 */
body.landscape-mode:has(.tk-raid-shell) .topbar,
body.landscape-mode:has(.tk-raid-shell) #dock { display: none !important; }
body.landscape-mode:has(.tk-raid-shell) #screenGame,
body.landscape-mode:has(.tk-raid-shell) #stageRoot { height: 100dvh; min-height: 100dvh; max-width: none; padding: 0; margin: 0; overflow: hidden; }
body.landscape-mode:has(.tk-raid-shell) .g-wrap { height: 100%; max-width: none; padding: 0; gap: 0; }
body.landscape-mode:has(.tk-raid-shell) .g-stage { height: 100%; min-height: 0; padding: 0; border: 0; background: transparent; }
body.landscape-mode:has(.tk-raid-shell) .tk-raid-shell { height: 100dvh; width: 100vw; border: 0; border-radius: 0; }
body.landscape-mode:has(.tk-raid-shell) .tk-raid-stage { flex: 1; min-height: 0; }
body.landscape-mode:has(.tk-shell) .tk-guest { display: none !important; }

body.landscape-mode:has(.tk-shell) .g-variant-chip,
body.landscape-mode:has(.tk-shell) .g-rogue,
body.landscape-mode:has(.tk-shell) .g-challenge,
body.landscape-mode:has(.tk-shell) .g-acts,
body.landscape-mode:has(.tk-shell) .g-items,
body.landscape-mode:has(.tk-shell) .g-undo,
body.landscape-mode:has(.tk-shell) .g-final { display: none !important; }

/* 横屏物品格：压缩到一格内完整显示名称与价格 */
body.landscape-mode:has(.tk-shell) .tk-inv-tile { padding: 2px 3px 3px; gap: 0; }
body.landscape-mode:has(.tk-shell) .tk-inv-tile-art { width: 19px; height: 19px; }
body.landscape-mode:has(.tk-shell) .tk-inv-tile-name { font-size: 8px; line-height: 1.1; max-height: 18px; }
body.landscape-mode:has(.tk-shell) .tk-inv-tile-type { font-size: 7px; line-height: 1.15; }
body.landscape-mode:has(.tk-shell) .tk-inv-tile-price { font-size: 7px; line-height: 1.15; }
body.landscape-mode:has(.tk-shell) .tk-inv-sell { font-size: 7px; padding: 1px 2px; }

/* 横屏装备槽：3 行完整落在 252px 侧栏内 */
body.landscape-mode:has(.tk-shell) .tk-inv-side { padding: 5px; }
body.landscape-mode:has(.tk-shell) .tk-inv-side-head { padding-bottom: 3px; }
body.landscape-mode:has(.tk-shell) .tk-drop-slot { min-height: 47px; padding: 2px 2px; gap: 1px; }
body.landscape-mode:has(.tk-shell) .tk-drop-art { width: 18px; height: 18px; }
body.landscape-mode:has(.tk-shell) .tk-drop-slot small { font-size: 6.5px; line-height: 1.1; }
body.landscape-mode:has(.tk-shell) .tk-drop-slot b { font-size: 7.5px; line-height: 1.1; -webkit-line-clamp: 1; }
body.landscape-mode:has(.tk-shell) .tk-drag-hint,
body.landscape-mode:has(.tk-shell) .tk-drop-plus { display: none; }

/* 横屏 Raid：隐藏外边玩法条，压缩 HUD/操作区，让画布和开火键都在一屏内 */
body.landscape-mode:has(.tk-raid-shell) .g-variant-chip,
body.landscape-mode:has(.tk-raid-shell) .g-rogue,
body.landscape-mode:has(.tk-raid-shell) .g-challenge,
body.landscape-mode:has(.tk-raid-shell) .g-acts,
body.landscape-mode:has(.tk-raid-shell) .g-items,
body.landscape-mode:has(.tk-raid-shell) .g-undo,
body.landscape-mode:has(.tk-raid-shell) .g-final { display: none !important; }
body.landscape-mode:has(.tk-raid-shell) .tk-raid-shell {
  display: flex; flex-direction: column; overflow: hidden;
}
body.landscape-mode:has(.tk-raid-shell) .tk-raid-hud {
  flex: none; min-height: 44px; padding: 4px 10px; gap: 8px;
}
body.landscape-mode:has(.tk-raid-shell) .tk-raid-map { gap: 0; }
body.landscape-mode:has(.tk-raid-shell) .tk-raid-map .tk-eyebrow { display: none; }
body.landscape-mode:has(.tk-raid-shell) .tk-raid-map b { font-size: 11px; }
body.landscape-mode:has(.tk-raid-shell) .tk-raid-stats { gap: 8px; }
body.landscape-mode:has(.tk-raid-shell) .tk-raid-stats small { font-size: 7px; }
body.landscape-mode:has(.tk-raid-shell) .tk-raid-stats b { font-size: 12px; }
body.landscape-mode:has(.tk-raid-shell) .tk-raid-weap b { font-size: 13px; }
body.landscape-mode:has(.tk-raid-shell) .tk-raid-stage { flex: none; }
body.landscape-mode:has(.tk-raid-shell) .tk-raid-bottom {
  flex: none; grid-template-columns: 1fr; gap: 5px; padding: 3px 8px 2px;
}
body.landscape-mode:has(.tk-raid-shell) .tk-stick { width: 62px; height: 62px; }
body.landscape-mode:has(.tk-raid-shell) .tk-stick-ring { inset: 12px; }
body.landscape-mode:has(.tk-raid-shell) .tk-stick-knob { width: 24px; height: 24px; left: 19px; top: 19px; }
body.landscape-mode:has(.tk-raid-shell) .tk-stick span { bottom: -10px; font-size: 7px; }
body.landscape-mode:has(.tk-raid-shell) .tk-fire { width: 50px; height: 50px; }
body.landscape-mode:has(.tk-raid-shell) .tk-fire span { font-size: 13px; }
body.landscape-mode:has(.tk-raid-shell) .tk-fire b { font-size: 9px; }
body.landscape-mode:has(.tk-raid-shell) .tk-fire small { display: none; }
body.landscape-mode:has(.tk-raid-shell) .tk-mini-acts { gap: 2px; }
body.landscape-mode:has(.tk-raid-shell) .tk-mini-acts .tk-btn { padding: 3px 5px; font-size: 8px; }
body.landscape-mode:has(.tk-raid-shell) .tk-hp-head { margin-bottom: 2px; }
body.landscape-mode:has(.tk-raid-shell) .tk-hp-head span,
body.landscape-mode:has(.tk-raid-shell) .tk-hp-head small { font-size: 7px; }
body.landscape-mode:has(.tk-raid-shell) .tk-hp-bars { gap: 1px 5px; }
body.landscape-mode:has(.tk-raid-shell) .tk-hp-bar { grid-template-columns: 18px 1fr 14px; font-size: 7px; }
body.landscape-mode:has(.tk-raid-shell) .tk-raid-bag { flex: none; padding: 3px 9px 4px; }
body.landscape-mode:has(.tk-raid-shell) .tk-bag-head { font-size: 8px; margin-bottom: 2px; }
body.landscape-mode:has(.tk-raid-shell) .tk-bag-head small { font-size: 7px; }
body.landscape-mode:has(.tk-raid-shell) .tk-bag-list { min-height: 18px; }
body.landscape-mode:has(.tk-raid-shell) .tk-bag-item { font-size: 8px; padding: 2px 4px; }
body.landscape-mode:has(.tk-raid-shell) .tk-raid-feed span { font-size: 8px; padding: 1px 4px; }
.tk-exit {
  flex: none; border: 1px solid rgba(191,172,106,.3); background: rgba(10,15,11,.8);
  color: #c9c3a8; font-size: 9px; padding: 5px 8px; border-radius: 2px; line-height: 1;
}
body.landscape-mode:has(.tk-raid-shell) .tk-exit { font-size: 8px; padding: 4px 6px; }
}

.tk-inv-power {
  display: flex; gap: 4px; margin-top: 6px; flex: none;
}
.tk-inv-power span {
  flex: 1; display: flex; align-items: center; justify-content: space-between;
  border: 1px solid rgba(191,172,106,.14); background: rgba(0,0,0,.2);
  padding: 3px 5px; font-size: 8px; color: #8e998a;
}
.tk-inv-power b { color: #d9c47a; font-size: 10px; }
@media (orientation: landscape) {
  body.landscape-mode:has(.tk-shell) .tk-inv-power { margin-top: 3px; }
  body.landscape-mode:has(.tk-shell) .tk-inv-power span { padding: 2px 4px; font-size: 7px; }
}

/* 弹药按整组出售：把组价、发数和折合单发价说清楚 */
.tk-market-note {
  flex: none; margin: 0 0 8px; padding: 7px 9px;
  border-left: 2px solid #bfac6a; background: rgba(191,172,106,.06);
  color: #a9a891; font-size: 10px; line-height: 1.6;
}
.tk-ammo-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tk-big-price { color: #e7d49a; font-size: 14px; font-weight: 700; }
.tk-big-price small { color: #8e998a; font-size: 9px; font-weight: 400; }
.tk-unit-price {
  color: #8fb09a; font-size: 9px; border: 1px solid rgba(143,176,154,.24);
  padding: 1px 4px; border-radius: 2px;
}
.tk-item-actions .tk-btn.tiny { padding: 4px 6px; font-size: 8px; }

/* 装备页弹匣管理 */
.tk-mag-panel {
  flex: none; margin-top: 6px; padding: 7px;
  border: 1px solid rgba(191,172,106,.18);
  background: linear-gradient(180deg, rgba(34,40,31,.72), rgba(10,14,10,.82));
}
.tk-mag-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
.tk-mag-title b { color: #e7d49a; font-size: 11px; letter-spacing: 1px; }
.tk-mag-title span { color: #8e998a; font-size: 8px; }
.tk-mag-visual {
  display: flex; flex-wrap: wrap; gap: 2px; min-height: 16px; max-height: 34px;
  overflow: hidden; padding: 4px; background: rgba(0,0,0,.32); border: 1px solid rgba(191,172,106,.12);
}
.tk-mag-visual i {
  width: 5px; height: 13px; border-radius: 2px 2px 0 0;
  background: #30382c; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.tk-mag-visual i.on { background: linear-gradient(180deg, #e0bf66, #8f7430); }
.tk-mag-line { display: flex; justify-content: space-between; align-items: baseline; margin-top: 5px; color: #c9c3a8; font-size: 9px; }
.tk-mag-line b { color: #fff; font-size: 17px; }
.tk-mag-line small { color: #a9a891; font-size: 8px; }
.tk-mag-stock { margin-top: 3px; color: #8e998a; font-size: 8px; }
.tk-mag-stock b { color: #d9c47a; }
.tk-mag-actions { display: flex; gap: 4px; margin-top: 6px; }
.tk-mag-actions .tk-btn { flex: 1; padding: 5px 4px; font-size: 8px; }
.tk-mag-switch { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }
.tk-mag-switch button {
  border: 1px solid rgba(191,172,106,.2); background: rgba(0,0,0,.24); color: #b9b7a0;
  padding: 3px 5px; font-size: 8px; border-radius: 2px;
}
.tk-mag-switch button.on { border-color: #bfac6a; color: #f0dda2; background: rgba(191,172,106,.14); }
.tk-mag-switch button small { color: #7f8b7e; font-size: 7px; }
.tk-mag-tip, .tk-mag-empty { margin: 5px 0 0; color: #6f7b6d; font-size: 7px; line-height: 1.5; }

/* 破产一键碎装 */
.tk-scav-box {
  display: flex; align-items: center; gap: 12px; flex: none; margin-top: 10px;
  padding: 10px 12px; border: 1px solid rgba(178,115,239,.32);
  background: linear-gradient(100deg, rgba(59,35,78,.58), rgba(15,19,14,.86));
}
.tk-scav-box > div { flex: 1; min-width: 0; }
.tk-scav-box .tk-eyebrow { color: #d9a6ff; font-size: 8px; }
.tk-scav-box b { display: block; color: #f0e6d0; font-size: 15px; margin: 2px 0 3px; }
.tk-scav-box p { margin: 0; color: #a9a891; font-size: 9px; line-height: 1.5; }
.tk-scav-btn { flex: none; min-width: 168px; padding: 10px 12px; }
@media (orientation: landscape) {
  body.landscape-mode:has(.tk-shell) .tk-mag-panel { padding: 5px; }
  body.landscape-mode:has(.tk-shell) .tk-mag-line b { font-size: 14px; }
  body.landscape-mode:has(.tk-shell) .tk-mag-tip { display: none; }
  body.landscape-mode:has(.tk-shell) .tk-scav-box { padding: 7px 9px; gap: 8px; }
  body.landscape-mode:has(.tk-shell) .tk-scav-box b { font-size: 12px; }
  body.landscape-mode:has(.tk-shell) .tk-scav-box p { font-size: 8px; }
  body.landscape-mode:has(.tk-shell) .tk-scav-btn { min-width: 138px; padding: 7px 8px; font-size: 9px; }
}
@media (max-width: 700px) {
  .tk-scav-box { align-items: stretch; flex-direction: column; }
  .tk-scav-btn { width: 100%; }
  .tk-ammo-price { gap: 4px; }
  .tk-big-price { font-size: 12px; }
}

.tk-gun-caliber { font-size: 9px; fill: #8e9989; letter-spacing: 1px; }
.tk-gun-optic, .tk-gun-muzzle, .tk-gun-stock { opacity: .96; }
.tk-reload-bar {
  position: relative; height: 4px; margin-top: 3px; background: rgba(0,0,0,.55);
  border: 1px solid rgba(191,172,106,.22); overflow: hidden;
}
.tk-reload-bar i {
  display: block; height: 100%; width: var(--r, 0%);
  background: linear-gradient(90deg, #8f7430, #f0dda2);
  transition: width .12s linear;
}
.tk-reload-bar small {
  position: absolute; right: 2px; top: -11px; color: #d9c47a; font-size: 7px; letter-spacing: 1px;
}


/* ============================================================ */
/* 2026-11-19 · 商业手游级视听升级：3D 枪模 / 受伤边缘 / 全地图天气 */
/* ============================================================ */

/* ---------- 改枪页：Blender 360° 转台 ---------- */
.tk-gun-hero {
  min-height: 350px;
  padding: 12px 14px 10px;
  border: 1px solid rgba(191,172,106,.26);
  background:
    radial-gradient(ellipse at 50% 28%, rgba(110,139,98,.24), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(196,157,74,.10), transparent 55%),
    linear-gradient(180deg,#141b14 0%,#0b100c 52%,#070a08 100%);
  box-shadow: inset 0 1px 0 rgba(255,240,190,.06), inset 0 -36px 60px rgba(0,0,0,.45);
}
.tk-gun-glow { left: 18%; top: 28%; width: 64%; height: 110px; background: rgba(214,189,108,.15); filter: blur(38px); }
.tk-gun-headline { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; z-index: 4; pointer-events: none; }
.tk-gun-eyebrow { display: flex; align-items: center; gap: 6px; font-size: 8px; letter-spacing: .18em; color: #b7bf9e; text-transform: uppercase; }
.tk-gun-eyebrow i { width: 5px; height: 5px; background: #d9c071; box-shadow: 0 0 9px rgba(232,202,113,.85); transform: rotate(45deg); }
.tk-gun-360 { font-size: 7px; letter-spacing: .17em; color: #8e9d84; padding: 3px 6px; border: 1px solid rgba(191,172,106,.22); background: rgba(6,10,7,.44); }
.tk-orbit-view { position: relative; height: 288px; margin: 2px -4px 0; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.tk-orbit-view.dragging { cursor: grabbing; }
.tk-orbit-aura { position: absolute; left: 50%; top: 48%; width: 76%; height: 46%; transform: translate(-50%,-50%); background: radial-gradient(ellipse at center, rgba(201,219,175,.18), rgba(201,219,175,.04) 46%, transparent 70%); filter: blur(18px); pointer-events: none; }
.tk-orbit-grid { position: absolute; left: 50%; bottom: 23px; width: 64%; height: 34px; transform: translateX(-50%); background:
  repeating-linear-gradient(90deg, rgba(184,197,153,.12) 0 1px, transparent 1px 18px),
  repeating-linear-gradient(0deg, rgba(184,197,153,.10) 0 1px, transparent 1px 8px);
  border-radius: 50%; opacity: .45; mask-image: radial-gradient(ellipse at center, #000 35%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 72%); pointer-events: none; }
.tk-orbit-ring { position: absolute; left: 50%; bottom: 15px; width: 64%; height: 42px; transform: translateX(-50%); border: 1px solid rgba(206,190,132,.3); border-radius: 50%; box-shadow: 0 0 26px rgba(194,210,154,.11), inset 0 0 22px rgba(194,210,154,.08); pointer-events: none; }
.tk-orbit-ring::after { content: ""; position: absolute; left: 50%; top: 50%; width: 76%; height: 1px; transform: translate(-50%,-50%); background: linear-gradient(90deg, transparent, rgba(213,196,132,.55), transparent); }
.tk-orbit-img { position: absolute; left: 50%; top: 47%; transform: translate(-50%,-50%); max-width: 94%; max-height: 90%; width: auto; height: auto; object-fit: contain; pointer-events: none; filter: drop-shadow(0 22px 22px rgba(0,0,0,.62)) drop-shadow(0 3px 5px rgba(0,0,0,.5)) saturate(1.06) contrast(1.05) brightness(1.07); will-change: filter; }
.tk-orbit-view.dragging .tk-orbit-img { filter: drop-shadow(0 16px 18px rgba(0,0,0,.55)) brightness(1.07); }
.tk-orbit-tag { position: absolute; left: 2px; top: 8px; display: flex; align-items: center; gap: 5px; font-size: 7px; letter-spacing: .08em; color: #b6c1a5; background: rgba(6,10,7,.62); border-left: 2px solid rgba(206,190,132,.5); padding: 3px 6px; pointer-events: none; }
.tk-orbit-tag span { width: 4px; height: 4px; border-radius: 50%; background: #a8dc91; box-shadow: 0 0 8px #a8dc91; }
.tk-orbit-corner { position: absolute; right: 1px; bottom: 4px; font-size: 6px; letter-spacing: .16em; color: rgba(143,155,127,.55); pointer-events: none; }
.tk-orbit-hint { position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); font-size: 7px; color: rgba(195,203,172,.66); letter-spacing: .05em; white-space: nowrap; pointer-events: none; }
.tk-orbit-axis { position: absolute; right: 5px; top: 46%; display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; opacity: .55; }
.tk-orbit-axis i { width: 1px; height: 62px; background: linear-gradient(180deg, transparent, rgba(210,198,151,.75), transparent); }
.tk-orbit-axis em { font-style: normal; font-size: 6px; color: rgba(205,196,160,.8); letter-spacing: .12em; }
.tk-gun-title { position: absolute; left: 8px; bottom: 30px; right: 8px; padding: 0; background: linear-gradient(90deg, rgba(5,8,6,.72), rgba(5,8,6,.18) 72%, transparent); pointer-events: none; z-index: 3; }
.tk-gun-title small { font-size: 9px; color: #b6bd9e; letter-spacing: .04em; }
.tk-gun-title b { font-size: 10px; color: #e4cd86; }
.tk-gun-spec-chips { position: relative; display: flex; gap: 5px; flex-wrap: wrap; padding-top: 4px; z-index: 3; }
.tk-gun-spec-chips span { font-size: 7px; letter-spacing: .1em; color: #b3bd9d; background: rgba(10,15,10,.62); border: 1px solid rgba(191,172,106,.2); padding: 3px 6px; }
.tk-gun-spec-chips span:first-child { color: #e1ca86; border-color: rgba(214,190,114,.36); }

/* ---------- 受伤状态：屏幕边缘视觉 ---------- */
.tk-hurt { position: absolute; inset: 0; z-index: 7; pointer-events: none; overflow: hidden; --hurt: 0; --head: 0; --arms: 0; --legs: 0; --bleed: 0; --frost: 0; }
.tk-hurt-blood { position: absolute; inset: -2px; opacity: calc(var(--hurt) * .24 + var(--bleed) * .03); background:
  radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(72,2,4,.12) 70%, rgba(104,4,6,.50) 90%, rgba(57,1,3,.82) 100%),
  radial-gradient(ellipse at 50% 118%, rgba(120,5,7,.38), transparent 50%);
  transition: opacity .28s linear; }
.tk-hurt-top { position: absolute; left: -6%; right: -6%; top: -4%; height: 21%; opacity: calc(var(--head) * .58); background: radial-gradient(ellipse at 50% 0%, rgba(156,8,10,.78), rgba(111,3,5,.34) 42%, transparent 72%); filter: blur(5px); }
.tk-hurt-bottom { position: absolute; left: -4%; right: -4%; bottom: -5%; height: 20%; opacity: calc(var(--hurt) * .22 + var(--legs) * .30); background: linear-gradient(180deg, transparent, rgba(82,2,4,.46) 64%, rgba(126,4,7,.72)); filter: blur(4px); }
.tk-hurt-side { position: absolute; top: -6%; bottom: -6%; width: 8%; opacity: calc(var(--arms) * .58 + var(--hurt) * .08); background: linear-gradient(90deg, rgba(129,4,7,.82), rgba(82,2,4,.28) 58%, transparent); filter: blur(5px); }
.tk-hurt-side.left { left: -2%; }
.tk-hurt-side.right { right: -2%; transform: scaleX(-1); }
.tk-hurt-pulse { position: absolute; inset: 0; opacity: 0; box-shadow: inset 0 0 42px 8px rgba(150,7,10,.62), inset 0 0 16px 2px rgba(255,54,44,.16); }
.tk-hurt.low .tk-hurt-pulse { opacity: calc(.18 + var(--hurt) * .42); animation: tkHeartbeatEdge 1.12s ease-in-out infinite; }
.tk-hurt.critical .tk-hurt-pulse { opacity: .34; animation: tkHeartbeatEdge .72s ease-in-out infinite; }
.tk-hurt.bleeding .tk-hurt-bottom { filter: blur(1px) saturate(1.25); }
@keyframes tkHeartbeatEdge { 0%,100% { box-shadow: inset 0 0 28px 4px rgba(130,5,8,.30); } 45% { box-shadow: inset 0 0 50px 12px rgba(172,9,12,.54); } }
.tk-hurt-frost { position: absolute; inset: 0; opacity: var(--frost); background:
  radial-gradient(ellipse at 100% 0%, rgba(205,238,255,.55), transparent 36%),
  radial-gradient(ellipse at 0% 100%, rgba(186,225,244,.5), transparent 34%),
  radial-gradient(ellipse at 50% 50%, transparent 58%, rgba(196,232,249,.36) 88%, rgba(230,250,255,.62) 100%);
  mix-blend-mode: screen; filter: blur(.6px); }
.tk-hurt-frost::after { content: ""; position: absolute; inset: 0; opacity: .55; background:
  repeating-conic-gradient(from 18deg at 6% 8%, rgba(230,250,255,.42) 0 1deg, transparent 1deg 16deg),
  repeating-conic-gradient(from 74deg at 94% 92%, rgba(220,244,255,.4) 0 1deg, transparent 1deg 18deg);
  mask-image: radial-gradient(ellipse at center, transparent 48%, #000 92%); -webkit-mask-image: radial-gradient(ellipse at center, transparent 48%, #000 92%); }
.tk-hurt-drops i { position: absolute; top: calc(4% + (var(--i) * 9%)); left: calc(4% + (var(--i) * 10.5%)); width: 2px; height: 9px; border-radius: 50% 50% 45% 45%; background: linear-gradient(180deg, rgba(255,52,40,.72), rgba(112,3,5,.92)); opacity: calc(var(--bleed) * .8); box-shadow: 0 0 5px rgba(126,2,5,.6); animation: tkBloodDrop calc(2.6s + var(--i) * .18s) linear infinite; }
.tk-hurt-drops i:nth-child(2n) { top: auto; bottom: calc(3% + (var(--i) * 8%)); left: calc(70% - (var(--i) * 7%)); height: 7px; }
.tk-hurt-drops i:nth-child(3n) { left: auto; right: calc(2% + (var(--i) * 6%)); top: calc(9% + (var(--i) * 7%)); }
@keyframes tkBloodDrop { 0% { transform: translateY(-9px) scaleY(.7); opacity: 0; } 18% { opacity: calc(var(--bleed) * .85); } 72% { opacity: calc(var(--bleed) * .6); } 100% { transform: translateY(34px) scaleY(1.35); opacity: 0; } }
.tk-hurt-scan { position: absolute; left: -10%; right: -10%; top: 46%; height: 1px; opacity: 0; background: linear-gradient(90deg, transparent, rgba(255,206,190,.55), transparent); box-shadow: 0 0 18px rgba(255,90,70,.35); }
.tk-hurt.hit .tk-hurt-scan { animation: tkHitScan .28s ease-out; }
.tk-hurt.hit .tk-hurt-top { filter: blur(4px) brightness(1.5); }
.tk-hurt.head-hit .tk-hurt-top { opacity: 1; background: radial-gradient(ellipse at 50% 0%, rgba(235,55,42,.98), rgba(138,4,6,.6) 46%, transparent 76%); }
.tk-hurt.leg-hit .tk-hurt-bottom { opacity: .95; }
@keyframes tkHitScan { 0% { opacity: .8; transform: scaleX(.4); } 100% { opacity: 0; transform: scaleX(1.4); } }
.tk-raid-stage.tk-shake { animation: tkHitShake .26s cubic-bezier(.36,.07,.19,.97); }
@keyframes tkHitShake {
  10% { transform: translate(-2px, 1px) rotate(-.18deg); }
  30% { transform: translate(2px, -1px) rotate(.22deg); }
  50% { transform: translate(-1px, 1px) rotate(-.12deg); }
  70% { transform: translate(1px, 0) rotate(.08deg); }
  100% { transform: none; }
}

/* ---------- 全地图天气：屏幕层 ---------- */
.tk-weather-fx { position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: 1; mix-blend-mode: normal; overflow: hidden; }
.tk-weather-fx::before, .tk-weather-fx::after { content: ""; position: absolute; inset: -22%; pointer-events: none; opacity: 0; }
.tk-weather-fx[data-wx="rain"]::before, .tk-weather-fx.storm::before {
  /* 不再画满屏长斜线：长线会被读成“划痕”。雨线交给 canvas 的短雨丝，这里只留湿气和镜头水汽。 */
  opacity: .30;
  background: radial-gradient(ellipse at 50% 118%, rgba(30,68,88,.46), transparent 60%),
              linear-gradient(180deg, rgba(160,205,220,.035), transparent 26%, transparent 74%, rgba(8,18,24,.06));
  animation: none;
}
.tk-weather-fx[data-wx="rain"]::after { opacity: .25; background: radial-gradient(ellipse at 50% 120%, rgba(30,68,88,.42), transparent 62%); }
@keyframes tkRainShift { to { transform: translate3d(-18px, 34px, 0); } }
.tk-weather-fx[data-wx="snow"]::before, .tk-weather-fx[data-wx="storm"]::after {
  opacity: .58;
  background-image:
    radial-gradient(circle, rgba(245,253,255,.92) 0 1.1px, transparent 1.4px),
    radial-gradient(circle, rgba(218,241,255,.68) 0 1.7px, transparent 2px),
    radial-gradient(circle, rgba(255,255,255,.55) 0 .9px, transparent 1.2px);
  background-size: 68px 68px, 112px 112px, 44px 44px;
  animation: tkSnowDrift 7.6s linear infinite;
}
@keyframes tkSnowDrift { to { transform: translate3d(-42px, 68px, 0); } }
.tk-weather-fx[data-wx="fog"]::before { opacity: .55; background:
  radial-gradient(ellipse at 22% 30%, rgba(214,226,226,.44), transparent 44%),
  radial-gradient(ellipse at 78% 64%, rgba(205,219,219,.38), transparent 48%),
  linear-gradient(180deg, rgba(190,205,205,.15), transparent 32%, rgba(188,204,204,.36)); animation: tkFogBreathe 5.4s ease-in-out infinite; }
.tk-weather-fx[data-wx="dust"]::before { opacity: .6; background:
  radial-gradient(ellipse at 50% 100%, rgba(196,142,78,.4), transparent 64%),
  repeating-linear-gradient(96deg, transparent 0 31px, rgba(222,176,108,.12) 31px 33px, transparent 33px 67px);
  animation: tkDustMove 3.2s linear infinite; }
.tk-weather-fx[data-wx="gale"]::before { opacity: .36; background: repeating-linear-gradient(112deg, transparent 0 46px, rgba(196,218,222,.18) 46px 47px, transparent 47px 98px); animation: tkGaleShift 1.7s linear infinite; }
.tk-weather-fx[data-wx="storm"]::before { opacity: .68; animation: tkRainShift .34s linear infinite, tkStormGlow 4.8s ease-in-out infinite; background-color: rgba(5,10,16,.18); }
.tk-weather-fx.storm::before { box-shadow: inset 0 0 100px rgba(0,0,0,.5); }
@keyframes tkStormGlow { 0%,86%,100% { filter: brightness(1); } 88% { filter: brightness(1.8) contrast(1.1); } 90% { filter: brightness(1.2); } 92% { filter: brightness(2.1); } }
@keyframes tkFogBreathe { 50% { transform: translate3d(2%, -1%, 0) scale(1.06); } }
@keyframes tkDustMove { to { transform: translate3d(70px, -18px, 0); } }
@keyframes tkGaleShift { to { transform: translate3d(-56px, 0, 0); } }

/* ---------- 天气徽章与切换提示 ---------- */
.tk-weather-badge { position: absolute; left: 9px; top: 34px; display: flex; flex-direction: column; gap: 3px; padding: 5px 8px 5px 9px; min-width: 124px; max-width: 236px; background: linear-gradient(135deg, rgba(7,13,10,.86), rgba(7,13,10,.52)); border: 1px solid rgba(158,196,170,.18); border-left: 2px solid rgba(153,214,186,.58); color: #c7d8d1; pointer-events: none; z-index: 12; box-shadow: 0 6px 18px rgba(0,0,0,.32); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.tk-weather-badge[hidden] { display: none; }
.tk-weather-main { display: flex; align-items: baseline; gap: 7px; }
.tk-weather-badge b { font-size: 11px; font-weight: 600; color: #e2f3e8; letter-spacing: .04em; }
.tk-weather-badge span { font-size: 7px; color: #9eb4ac; letter-spacing: .02em; }
.tk-weather-badge em { font-style: normal; font-size: 7px; line-height: 1.3; color: #a8b9a4; border-top: 1px solid rgba(166,186,165,.12); padding-top: 3px; }
.tk-weather-badge.lowvis { border-left-color: #e0a76d; background: linear-gradient(135deg, rgba(20,14,10,.9), rgba(19,14,10,.58)); }
.tk-weather-badge.lowvis b { color: #ffd3a2; }
.tk-weather-badge.storm { border-left-color: #ff9364; background: linear-gradient(135deg, rgba(24,10,9,.92), rgba(24,12,9,.6)); animation: tkWeatherPulse 3.6s ease-in-out infinite; }
.tk-weather-badge.storm b { color: #ffc09b; }
.tk-weather-badge.storm em { color: #e5a58a; }
@keyframes tkWeatherPulse { 50% { box-shadow: 0 0 22px rgba(255,114,72,.22); } }
.tk-weather-toast { position: absolute; left: 50%; top: 54px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 15px; background: linear-gradient(180deg, rgba(10,16,15,.92), rgba(8,12,10,.78)); border-top: 1px solid rgba(214,196,138,.55); border-bottom: 1px solid rgba(214,196,138,.24); color: #efdfae; z-index: 70; pointer-events: none; animation: tkWeatherToast 3.6s ease both; }
.tk-weather-toast[hidden] { display: none; }
.tk-weather-toast b { font-size: 7px; letter-spacing: .22em; color: #b5a77c; }
.tk-weather-toast span { font-size: 10px; color: #f1e3ba; white-space: nowrap; }
@keyframes tkWeatherToast { 0% { opacity: 0; transform: translate(-50%, -8px); } 10%,84% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -4px); } }

/* ---------- 手机与横屏适配 ---------- */
@media (max-width: 720px) {
  .tk-gun-hero { min-height: 236px; padding: 9px 8px 7px; }
  .tk-orbit-view { height: 186px; }
  .tk-orbit-img { max-width: 100%; max-height: 88%; }
  .tk-orbit-tag { top: 3px; font-size: 6px; }
  .tk-orbit-hint { font-size: 6px; }
  .tk-gun-title { bottom: 24px; }
  .tk-gun-headline { align-items: flex-start; }
  .tk-gun-360 { display: none; }
  .tk-weather-badge { max-width: 168px; padding: 4px 6px; }
  .tk-weather-badge b { font-size: 9px; }
  .tk-weather-badge span, .tk-weather-badge em { font-size: 6px; }
  .tk-weather-toast span { font-size: 9px; }
  .tk-weather-toast { top: 48px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  body.landscape-mode:has(.tk-shell) .tk-gun-hero { min-height: 158px; padding: 6px 9px 5px; }
  body.landscape-mode:has(.tk-shell) .tk-orbit-view { height: 120px; }
  body.landscape-mode:has(.tk-shell) .tk-orbit-img { max-height: 96%; }
  body.landscape-mode:has(.tk-shell) .tk-gun-title { bottom: 16px; }
  body.landscape-mode:has(.tk-shell) .tk-orbit-hint { display: none; }
  body.landscape-mode:has(.tk-raid-shell) .tk-weather-badge {
  top: 30px; left: 8px; max-width: 238px; padding: 3px 6px;
}
body.landscape-mode:has(.tk-raid-shell) .tk-weather-badge em { display: none; }
body.landscape-mode:has(.tk-raid-shell) .tk-weather-badge .tk-weather-main { font-size: 8px; gap: 5px; white-space: nowrap; }
body.landscape-mode:has(.tk-raid-shell) .tk-raid-feed { top: 70px; }
  body.landscape-mode:has(.tk-raid-shell) .tk-weather-badge em { display: none; }
  body.landscape-mode:has(.tk-raid-shell) .tk-weather-toast { top: 34px; }
}


/* ---------- 战场电影感：暗角、颗粒、天气压暗 ---------- */
.tk-raid-stage::before {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 47%, transparent 46%, rgba(2,4,3,.30) 76%, rgba(1,2,2,.62) 100%),
    linear-gradient(180deg, rgba(3,6,5,.12), transparent 22%, transparent 78%, rgba(2,4,3,.20));
}
.tk-raid-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: .16;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.055) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}
.tk-raid-stage[data-wx="storm"]::before,
.tk-raid-stage[data-wx="rain"]::before { background: radial-gradient(ellipse at 50% 47%, transparent 38%, rgba(2,6,9,.40) 72%, rgba(1,3,4,.75) 100%), linear-gradient(180deg, rgba(1,4,7,.2), transparent 24%, transparent 74%, rgba(1,4,7,.34)); }
.tk-raid-stage[data-wx="fog"]::before { background: radial-gradient(ellipse at 50% 47%, transparent 32%, rgba(18,25,24,.28) 70%, rgba(8,12,11,.58) 100%); }
.tk-raid-stage[data-wx="dust"]::before { background: radial-gradient(ellipse at 50% 47%, transparent 40%, rgba(36,22,10,.32) 74%, rgba(17,10,4,.64) 100%); }
.tk-raid-stage[data-wx="snow"]::before { background: radial-gradient(ellipse at 50% 47%, transparent 42%, rgba(8,15,18,.30) 76%, rgba(4,9,11,.62) 100%); }

/* 受伤时把暗角压得更低，血层才有层次 */
.tk-raid-stage:has(.tk-hurt.critical)::before { background: radial-gradient(ellipse at 50% 47%, transparent 50%, rgba(4,2,2,.26) 76%, rgba(12,1,2,.48) 100%); }

/* 天气徽章不遮住击杀播报 */
.tk-raid-feed { top: 98px; }
@media (max-width: 720px) {
  .tk-raid-feed { top: 92px; max-width: 52%; }
  .tk-raid-stage::after { opacity: .10; }
}
.tk-surgery-layer {
  position: fixed; inset: 0; z-index: 220; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(5,9,7,.35), rgba(2,4,3,.86));
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.tk-surgery-layer[hidden] { display: none; }
.tk-surgery-card {
  width: min(360px, 88vw); padding: 16px 18px 14px; background: linear-gradient(145deg, #101712, #080d09);
  border: 1px solid rgba(199,170,104,.32); border-left: 2px solid rgba(224,183,91,.72);
  box-shadow: 0 24px 70px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,244,202,.06);
}
.tk-surgery-card h3 { margin: 4px 0 7px; font-size: 20px; color: #f1e4bd; font-weight: 500; letter-spacing: .06em; }
.tk-surgery-card p { margin: 0 0 11px; font-size: 9px; line-height: 1.55; color: #9da890; }
.tk-surgery-limbs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0 12px; }
.tk-surgery-limb {
  text-align: left; padding: 8px 9px; border: 1px solid rgba(192,74,57,.45); background: rgba(38,10,8,.55);
  color: #f0b0a2; cursor: pointer; font-family: inherit;
}
.tk-surgery-limb b { display: block; font-size: 11px; font-weight: 500; }
.tk-surgery-limb span { display: block; margin-top: 3px; font-size: 7px; color: #b98778; }
.tk-surgery-limb:hover { border-color: #d4775f; background: rgba(80,22,15,.7); }
.tk-surgery-card .tk-btn { width: 100%; margin-top: 2px; }
.tk-surgery-use { border-color: rgba(212,98,77,.6) !important; color: #ffb5a5 !important; }

.tk-vitals {
  position: absolute; left: 8px; top: 8px; z-index: 16;
  width: auto; max-width: 92px; padding: 2px 3px 2px 2px;
  display: flex; align-items: flex-start; gap: 3px;
  background: linear-gradient(160deg, rgba(8,14,12,.38), rgba(8,12,10,.12));
  border: 0; border-left: 1px solid rgba(153,205,167,.28);
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  pointer-events: none;
}
.tk-body-figure { width: 36px; height: 48px; flex: none; display: block; overflow: visible; }
.tk-body-ghost { fill: rgba(160,184,166,.04); stroke: rgba(190,211,192,.12); stroke-width: .5; }
.tk-body-part { fill: #78b98d; stroke: rgba(4,8,5,.9); stroke-width: 1.2; transition: fill .18s ease, opacity .18s ease; }
.tk-body-part.blacked { fill: #050706; stroke: #4a1510; stroke-width: 1.1; filter: drop-shadow(0 0 2px rgba(126,26,18,.5)); }
.tk-body-part.low { fill: #b63a31; }
.tk-body-part.mid { fill: #c7954d; }
.tk-body-part.good { fill: #69bd86; }
.tk-body-line { fill: none; stroke: rgba(6,10,7,.5); stroke-width: .6; }
.tk-vitals-mini { min-width: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding-top: 1px; }
.tk-vitals-mini em { font-style: normal; font-size: 7px; line-height: 1.1; color: #b9d7bb; white-space: nowrap; letter-spacing: .02em; }
.tk-vitals-mini span { font-size: 6px; line-height: 1.15; color: #7f9682; white-space: nowrap; }
.tk-vitals-mini span[hidden] { display: none; }
.tk-vitals.bleeding .tk-vitals-mini span#tkBleedState { color: #ee8075; }
.tk-vitals.blacked { border-left-color: rgba(209,69,52,.85); box-shadow: 0 0 14px rgba(124,25,18,.16); }
.tk-vitals.blacked .tk-vitals-mini em { color: #ff796a; }
/* 天气/楼层让到小人体右侧，不再占左上主画面 */
.tk-weather-badge { left: 94px; top: 8px; max-width: 210px; min-width: 0; }
.tk-floor-chip { left: 94px; top: 62px; transform: none; }
.tk-shelter-tip { left: 94px; top: 88px; }
.tk-raid-feed { top: auto; bottom: 124px; max-width: 46%; }
.tk-weather-toast { left: 50%; }
.tk-med-strip { margin-top: 4px; font-size: 7px; color: rgba(187,184,152,.62); letter-spacing: .02em; }
@media (max-width: 720px) {
  .tk-vitals { left: 6px; top: 6px; max-width: 80px; padding: 1px 2px; }
  .tk-body-figure { width: 30px; height: 40px; }
  .tk-vitals-mini em { font-size: 6px; }
  .tk-vitals-mini span { font-size: 5.5px; }
  .tk-weather-badge { left: 84px; top: 6px; max-width: 160px; padding: 3px 5px; }
  .tk-weather-badge b { font-size: 8px; }
  .tk-weather-badge span, .tk-weather-badge em { font-size: 5.5px; }
  .tk-floor-chip { left: 84px; top: 56px; font-size: 7px; padding: 3px 5px; }
  .tk-shelter-tip { left: 84px; top: 82px; font-size: 6px; }
  .tk-raid-feed { bottom: 92px; max-width: 56%; }
  .tk-raid-feed span { font-size: 7px; }
  .tk-med-strip { font-size: 6px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .tk-vitals { left: 6px; top: 6px; max-width: 82px; padding: 1px 2px; }
  .tk-body-figure { width: 31px; height: 42px; }
  .tk-weather-badge { left: 86px; top: 6px; max-width: 180px; }
  .tk-floor-chip { left: 86px; top: 54px; }
  .tk-shelter-tip { left: 86px; top: 78px; }
  .tk-raid-feed { top: auto; bottom: 66px; max-width: 44%; }
  .tk-med-strip { display: none; }
  .tk-raid-bottom .tk-hp-head { margin-bottom: 2px; }
}

@media (orientation: landscape) and (max-height: 500px) {
  body.landscape-mode:has(.tk-raid-shell) .tk-vitals { left: 6px; top: 6px; max-width: 82px; }
  body.landscape-mode:has(.tk-raid-shell) .tk-weather-badge { left: 86px; top: 6px; max-width: 178px; padding: 3px 6px; }
  body.landscape-mode:has(.tk-raid-shell) .tk-weather-badge em { display: none; }
  body.landscape-mode:has(.tk-raid-shell) .tk-floor-chip { left: 86px; top: 54px; }
  body.landscape-mode:has(.tk-raid-shell) .tk-shelter-tip { left: 86px; top: 78px; }
  body.landscape-mode:has(.tk-raid-shell) .tk-raid-feed { top: auto; bottom: 66px; max-width: 44%; }
}


/* v15 枪械品级徽章：红枪在改枪台直接一眼可见 */
.tk-gun-spec-chips .tk-gun-grade { border: 1px solid rgba(242,100,88,.55); color: #ff8c7e; background: rgba(242,100,88,.12); box-shadow: 0 0 12px rgba(242,100,88,.16); }
.tk-gun-spec-chips .tk-gun-grade.tk-r-purple { border-color: rgba(178,115,239,.55); color: #c18aff; background: rgba(178,115,239,.10); box-shadow: 0 0 12px rgba(178,115,239,.14); }
.tk-gun-spec-chips .tk-gun-grade.tk-r-blue { border-color: rgba(85,169,234,.5); color: #75c5ff; background: rgba(85,169,234,.09); }
.tk-gun-spec-chips .tk-gun-grade.tk-r-green { border-color: rgba(97,199,119,.45); color: #7edb94; background: rgba(97,199,119,.08); }
.tk-gun-spec-chips .tk-gun-grade.tk-r-gray { border-color: rgba(152,160,147,.45); color: #b6bbae; background: rgba(152,160,147,.10); box-shadow: none; }
.tk-gun-spec-chips .tk-gun-grade.tk-r-gold { border-color: rgba(227,187,80,.55); color: #f0cf78; background: rgba(227,187,80,.10); box-shadow: 0 0 12px rgba(227,187,80,.12); }

/* v15b 战场 HUD 减负：顶部只留时间/击杀/带出/弹药，说明文字进中央短提示 */
.tk-hud-ghost { display: none !important; }
.tk-raid-hud { min-height: 34px; padding: 3px 9px; gap: 10px; justify-content: space-between; }
.tk-raid-stats { flex: 1; justify-content: flex-start; gap: 13px; }
.tk-raid-stats div { display: flex; align-items: center; gap: 3px; text-align: left; }
.tk-raid-stats small { display: inline; font-size: 9px; line-height: 1; color: #89937f; }
.tk-raid-stats b { font-size: 12px; line-height: 1.1; }
.tk-raid-weap { display: flex; align-items: center; gap: 5px; padding-left: 9px; }
.tk-raid-weap span { display: none; }
.tk-raid-weap b { font-size: 14px; }
.tk-raid-extract[hidden] { display: none !important; }
.tk-med-strip:empty { display: none; }
.tk-center-hint {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) scale(.96);
  z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 120px; max-width: 74%; padding: 8px 18px 9px;
  background: linear-gradient(180deg, rgba(7,12,9,.93), rgba(7,12,9,.74));
  border-top: 1px solid rgba(226,203,132,.62); border-bottom: 1px solid rgba(226,203,132,.28);
  box-shadow: 0 10px 30px rgba(0,0,0,.46); text-align: center; pointer-events: none;
  opacity: 0; transition: opacity .18s ease, transform .18s ease;
}
.tk-center-hint.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.tk-center-hint b { font-size: 12px; font-weight: 600; letter-spacing: .12em; color: #f7e6b4; }
.tk-center-hint b[hidden], .tk-center-hint span[hidden] { display: none; }
.tk-center-hint span { font-size: 10px; line-height: 1.45; color: #d5d1bb; white-space: pre-wrap; }
@media (max-width: 720px), (max-height: 500px) {
  .tk-raid-hud { min-height: 30px; padding: 2px 8px; gap: 7px; }
  .tk-raid-stats { gap: 9px; }
  .tk-raid-stats small { font-size: 8px; }
  .tk-raid-stats b { font-size: 11px; }
  .tk-raid-weap b { font-size: 13px; }
  .tk-center-hint { top: 45%; max-width: 82%; padding: 6px 13px 7px; }
  .tk-center-hint b { font-size: 10px; }
  .tk-center-hint span { font-size: 9px; }
}
body.landscape-mode:has(.tk-raid-shell) .tk-raid-hud { min-height: 30px; padding: 2px 9px; }

