/* 2026-11-19 星球资讯页重整（仅本地）
   顶部一行：主星球 / 殖民地 [坐标] - 星球名
   资料区：11_总览地图 的星球资讯横条作背景，六项参数用原版图标
   效果区：增益、减益合并到同一条栏位，不再单独写标题
   全部选择器限定在 planet-info 屏幕，避免影响其他页面。 */

/* 页面背景：星图打底 + 该星球从 51_原始大图_星球 取到的随机大图（底边对齐）。 */
body[data-active-screen="planet-info"] .planet-info-screen {
  background-image:
    linear-gradient(180deg, rgba(2, 8, 12, .10) 0%, rgba(2, 8, 12, .24) 46%, rgba(1, 5, 8, .48) 100%),
    var(--planet-home-art, url("../../../assets/planet-pages/star-map.webp")),
    url("../../../assets/planet-pages/star-map.webp");
  background-size: cover, 220% auto, cover;
  background-position: center, center bottom, center;
  background-repeat: no-repeat;
  background-attachment: fixed, fixed, fixed;
}

body[data-active-screen="planet-info"] .planet-info-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  margin-bottom: 1px;
  padding: 7px 12px 8px;
  border: 0;
  border-radius: 5px;
  background-image:
    radial-gradient(120% 90% at 50% 0%, rgba(96, 208, 224, .10), transparent 66%),
    linear-gradient(180deg, rgba(13, 32, 38, .98), rgba(5, 14, 18, .99));
  background-size: 100% 100%, 100% 100%;
  background-position: center, center;
  background-repeat: no-repeat;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .38), inset 0 1px rgba(184, 246, 255, .06), inset 0 -1px rgba(112, 222, 236, .22);
}

body[data-active-screen="planet-info"] .planet-info-head > button { grid-column: auto; grid-row: auto; }

body[data-active-screen="planet-info"] .planet-info-head .planet-info-back {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(104, 226, 238, .34);
  border-radius: 5px;
  clip-path: none;
  background: linear-gradient(180deg, rgba(24, 62, 71, .92), rgba(5, 20, 26, .94));
  color: transparent;
  font-size: 0;
  box-shadow: inset 0 1px rgba(190, 250, 255, .14), 0 3px 10px rgba(0, 0, 0, .3);
}

body[data-active-screen="planet-info"] .planet-info-head .planet-info-back::before {
  width: 17px;
  height: 19px;
}

body[data-active-screen="planet-info"] .planet-info-head .planet-info-back:active {
  border-color: #79ebf5;
  background: rgba(16, 79, 88, .96);
}

body[data-active-screen="planet-info"] .planet-info-head .planet-info-title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: clamp(15px, 4.3vw, 19px);
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .82);
  white-space: nowrap;
}

body[data-active-screen="planet-info"] .planet-info-head .planet-info-head-fill { width: 34px; height: 34px; }

/* ---- 六项星球资料：条带背景取自 11_总览地图 的星球资讯横条 ---- */
body[data-active-screen="planet-info"] .planet-facts-list {
  border: 1px solid rgba(92, 190, 203, .26);
  border-radius: 6px;
  background-color: #04121a;
  background-image:
    linear-gradient(180deg, rgba(3, 11, 15, .52), rgba(3, 11, 15, .68)),
    var(--planet-home-art, url("../../../assets/planet-pages/star-map.webp"));
  background-position: center, center;
  background-repeat: no-repeat;
  background-size: cover, cover;
  box-shadow: inset 0 1px rgba(176, 246, 255, .06), 0 8px 20px rgba(0, 0, 0, .26);
  overflow: hidden;
}

body[data-active-screen="planet-info"] .planet-facts-list > .planet-facts-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  margin: 0;
  padding: 0 10px;
  border-bottom: 1px solid rgba(126, 190, 197, .16);
  background-color: #0a2229;
  background-image:
    radial-gradient(130% 150% at 50% 0%, rgba(142, 228, 240, .18), transparent 72%),
    url("../../../assets/planet-info/planet-info-bar.png");
  background-position: center top, center top;
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%;
}

body[data-active-screen="planet-info"] .planet-facts-band .planet-facts-quality {
  color: #7fe9f4;
  font: 800 9px var(--ref-font-data, sans-serif);
  letter-spacing: .12em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
}

body[data-active-screen="planet-info"] .planet-facts-list > .planet-facts-band .planet-rename-inline {
  width: auto;
  min-width: 52px;
  min-height: 26px;
  border: 1px solid rgba(104, 226, 238, .40);
  border-radius: 5px;
  padding: 0 10px;
  background: rgba(3, 18, 24, .66);
  color: #c9f7fc;
  font: 800 10px var(--ref-font-data, sans-serif);
  letter-spacing: .08em;
  white-space: nowrap;
  box-shadow: inset 0 1px rgba(190, 250, 255, .12);
}

body[data-active-screen="planet-info"] .planet-facts-list > .planet-facts-band .planet-rename-inline:active {
  border-color: #79ebf5;
  color: #fff;
}

body[data-active-screen="planet-info"] .planet-facts-list dl { margin: 0; }

body[data-active-screen="planet-info"] .planet-facts-list dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(126, 190, 197, .11);
  background: linear-gradient(90deg, rgba(10, 30, 36, .46), rgba(4, 14, 19, .18));
}

body[data-active-screen="planet-info"] .planet-facts-list dl > div:nth-child(even) { background: rgba(255, 255, 255, .022); }
body[data-active-screen="planet-info"] .planet-facts-list dl > div:last-child { border-bottom: 0; }

body[data-active-screen="planet-info"] .planet-facts-list dt {
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(240, 253, 255, .88);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
}

body[data-active-screen="planet-info"] .planet-facts-list dt img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(76, 216, 232, .32));
}

body[data-active-screen="planet-info"] .planet-facts-list dt i { display: none; }

body[data-active-screen="planet-info"] .planet-facts-list dd {
  margin: 0;
  color: #fff;
  font: 800 13px/1.2 var(--ref-font-data, sans-serif);
  text-align: right;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
}

/* ---- 增益 / 减益 合并：适用中的效果（原版样式，半透明） ---- */
body[data-active-screen="planet-info"] .planet-effects-merged {
  border: 1px solid rgba(118, 208, 220, .22);
  border-radius: 6px !important;
  padding: 0;
  overflow: hidden;
  background: rgba(3, 12, 16, .38);
  box-shadow: inset 0 1px rgba(176, 246, 255, .05), 0 8px 20px rgba(0, 0, 0, .18);
}

body[data-active-screen="planet-info"] .planet-effects-merged > .planet-effects-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 0;
  padding: 0 12px;
  border-top: 1px solid rgba(150, 236, 246, .40);
  border-bottom: 1px solid rgba(126, 190, 197, .22);
  background: linear-gradient(180deg, rgba(88, 110, 116, .62), rgba(50, 68, 74, .50));
}

body[data-active-screen="planet-info"] .planet-effects-band strong {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .10em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .62);
}

body[data-active-screen="planet-info"] .planet-effects-band em {
  position: absolute;
  right: 12px;
  color: rgba(206, 242, 247, .68);
  font: 800 9px var(--ref-font-data, sans-serif);
  font-style: normal;
  letter-spacing: .02em;
}

body[data-active-screen="planet-info"] .planet-effect-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 112px;
  padding: 14px 14px 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

body[data-active-screen="planet-info"] .planet-effect-row::-webkit-scrollbar { display: none; }

body[data-active-screen="planet-info"] .planet-effect-row .planet-effect-empty {
  margin: auto 0;
  width: 100%;
  color: rgba(241, 253, 255, .9);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .8);
}

body[data-active-screen="planet-info"] .planet-effect-row .planet-effect-chip,
body[data-active-screen="planet-info"] .planet-effect-row .planet-effect-chip.buff,
body[data-active-screen="planet-info"] .planet-effect-row .planet-effect-chip.debuff,
body[data-active-screen="planet-info"] .planet-effect-row .planet-effect-chip.active,
body[data-active-screen="planet-info"] .planet-effect-row button.planet-effect-chip.lg-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 48px auto auto;
  justify-items: center;
  align-content: start;
  gap: 4px;
  flex: 0 0 auto;
  width: 68px;
  min-height: 0;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: #e9fdff;
  cursor: pointer;
}

body[data-active-screen="planet-info"] .planet-effect-row .planet-effect-chip > span,
body[data-active-screen="planet-info"] .planet-effect-row .planet-effect-chip.buff > span,
body[data-active-screen="planet-info"] .planet-effect-row .planet-effect-chip.debuff > span,
body[data-active-screen="planet-info"] .planet-effect-row .planet-effect-chip.active > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-active-screen="planet-info"] .planet-effect-row .planet-effect-chip > span img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .65));
  transition: transform 0.16s ease, filter 0.16s ease;
}

body[data-active-screen="planet-info"] .planet-effect-row .planet-effect-chip strong {
  max-width: 100%;
  overflow: hidden;
  color: #eefdff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .85);
}

body[data-active-screen="planet-info"] .planet-effect-row .planet-effect-chip em {
  color: #8be7c1;
  font: 800 9px var(--ref-font-data, sans-serif);
  font-style: normal;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .85);
}

body[data-active-screen="planet-info"] .planet-effect-row .planet-effect-chip.debuff strong { color: #ffdbe0; }
body[data-active-screen="planet-info"] .planet-effect-row .planet-effect-chip.debuff em { color: #ff9eaa; }
body[data-active-screen="planet-info"] .planet-effect-row .planet-effect-chip.debuff > span img {
  filter: drop-shadow(0 0 6px rgba(255, 92, 114, .55));
}
body[data-active-screen="planet-info"] .planet-effect-row .planet-effect-chip.is-shield-cooldown > span img,
body[data-active-screen="planet-info"] .planet-effects-merged .planet-effect-detail.is-shield-cooldown .effect-emblem img {
  filter: sepia(1) hue-rotate(-52deg) saturate(3.2) contrast(1.06) brightness(0.92) drop-shadow(0 0 8px rgba(255, 62, 86, .75));
}
body[data-active-screen="planet-info"] .planet-effect-row .planet-effect-chip.is-shield-cooldown.active > span img {
  transform: scale(1.07);
  filter: sepia(1) hue-rotate(-52deg) saturate(3.5) contrast(1.08) brightness(1) drop-shadow(0 0 11px rgba(255, 76, 98, .92));
}

body[data-active-screen="planet-info"] .planet-effect-row .planet-effect-chip.active > span img {
  transform: scale(1.07);
  filter: drop-shadow(0 0 10px rgba(100, 238, 255, .85)) brightness(1.08);
}

body[data-active-screen="planet-info"] .planet-effects-merged .effect-emblem {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-active-screen="planet-info"] .planet-effect-hint {
  margin: 0;
  padding: 2px 14px 14px;
  color: rgba(240, 253, 255, .92);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .75);
}

body[data-active-screen="planet-info"] .planet-effects-merged .planet-effect-detail {
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(154, 226, 236, .14);
  border-radius: 0;
  background: linear-gradient(135deg, rgba(10, 26, 32, .64), rgba(3, 10, 14, .72));
}
