/* give Anders some love too! we made this together. https://codepen.io/andersschmidt :-) */
html,
body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden; /* 改为hidden以避免滚动条 */
  background-color: #1a2228;
  font-family: "Press Start 2P";
}

body {
  /* 荒凉山脉全屏背景，盖住两侧留白 */
  background-image:
    linear-gradient(rgba(18, 28, 36, 0.55), rgba(18, 28, 36, 0.72)),
    url("../../images/death-stranding/bg-landscape.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}

/* 在 style.css 中添加或修改以下样式 */

#game {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: 80vw;        /* 设置为视口宽度的80% */
  height: 80vh;       /* 设置为视口高度的80% */
  max-width: 640px;   /* 保持最大宽度限制 */
  max-height: 560px;  /* 保持最大高度限制 */
  padding: 20px;
  border: 7px solid black;
  background-color: white;
  box-shadow: 14px 13px 0px -4px rgba(0, 0, 0, 0.38);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* 响应式调整 */
@media (max-width: 800px) {
  #game {
    width: 95vw;
    height: 95vh;
    padding: 10px;
    border-width: 4px;
  }
}

@media (max-width: 500px) {
  #game {
    width: 100vw;
    height: 100vh;
    padding: 5px;
    border-width: 3px;
  }
}


ui-layer.ui-layer {
  user-select: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  font-family: "Press Start 2P", cursive;
}

/* 搬运工剪影生命 + 轻盈肺活量气泡 */
.c-vitals-icon {
  position: absolute;
  left: 4%;
  bottom: 5%;
  z-index: 95;
  width: 96px;
  height: 96px;
  pointer-events: none;
}
.c-vitals-icon__figure {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 52px;
  height: 58px;
  transform: translate(-50%, -50%);
}
.c-vitals-icon__svg {
  width: 52px;
  height: 58px;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 5px rgba(160, 30, 40, 0.4));
}
.c-vitals-icon__outline-g > * {
  fill: rgba(120, 30, 35, 0.2);
  stroke: rgba(255, 130, 120, 0.5);
  stroke-width: 1;
  stroke-linejoin: round;
}
.c-vitals-icon__fill {
  fill: rgba(200, 40, 48, 0.7);
  transition: y 200ms ease, height 200ms ease;
}
.c-vitals-icon.is-low .c-vitals-icon__fill {
  fill: rgba(255, 45, 55, 0.82);
}
.c-vitals-icon.is-low .c-vitals-icon__outline {
  stroke: rgba(255, 90, 80, 0.6);
}
.c-vitals-icon__bubbles {
  position: absolute;
  inset: 0;
}
.c-vitals-icon__bubble {
  position: absolute;
  width: 9px;
  height: 9px;
  margin: 0;
  border-radius: 50%;
  background: rgba(120, 190, 230, 0.35);
  border: 1px solid rgba(180, 220, 245, 0.4);
  box-shadow: none;
  opacity: 0.75;
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease, transform 160ms ease;
}
.c-vitals-icon.is-breath-low .c-vitals-icon__bubble {
  background: rgba(120, 190, 230, 0.2);
  border-color: rgba(180, 220, 245, 0.28);
}
.c-vitals-icon__pack {
  transform-origin: 36px 22px;
  transform-box: fill-box;
}
.c-vitals-icon.is-cargo-damage .c-vitals-icon__pack {
  animation: cargo-pack-shake 0.28s ease-in-out infinite;
}
@keyframes cargo-pack-shake {
  0% { transform: rotate(0deg) translate(0, 0); }
  25% { transform: rotate(-7deg) translate(-1px, 1px); }
  50% { transform: rotate(6deg) translate(1px, -1px); }
  75% { transform: rotate(-5deg) translate(0, 1px); }
  100% { transform: rotate(0deg) translate(0, 0); }
}

/* 左侧统计总览（画布外，与游戏同高、留出间距） */
.c-stats-overview {
  position: fixed;
  z-index: 80;
  width: 268px;
  box-sizing: border-box;
  padding: 16px 16px 14px;
  background: rgba(12, 18, 26, 0.9);
  border: 2px solid rgba(180, 210, 230, 0.3);
  color: #dce7ef;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  line-height: 1.55;
  overflow-y: auto;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}
.c-stats-overview__rank--compact {
  margin-bottom: 10px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.c-stats-overview__rank-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.c-stats-overview__level {
  font-size: 11px;
  color: #ffe066;
  margin: 0;
  flex-shrink: 0;
}
.c-stats-overview__title {
  font-size: 9px;
  color: #9cf;
  line-height: 1.3;
  margin: 0;
}
.c-stats-overview__xp {
  margin-top: 2px;
}
.c-stats-overview__xp-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(180, 210, 230, 0.2);
  overflow: hidden;
  margin-bottom: 3px;
}
.c-stats-overview__xp-track i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c9a227, #ffe066);
  transition: width 220ms ease;
}
.c-stats-overview__xp-text {
  font-size: 8px;
  color: rgba(180, 200, 210, 0.75);
}

/* 右侧生涯累计（开发者模式打开时隐藏） */
.c-career-panel {
  position: fixed;
  z-index: 80;
  box-sizing: border-box;
  padding: 14px 12px 12px;
  background: rgba(12, 18, 26, 0.9);
  border: 2px solid rgba(180, 210, 230, 0.3);
  color: #dce7ef;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  line-height: 1.55;
  overflow-y: auto;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}
.c-career-panel__head {
  font-size: 12px;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

/* 右侧：生涯下方的区域小地图（真实高度图缩略，点击展开） */
.c-world-map {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
.c-world-map__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 10px;
  color: #e8f0f6;
}
.c-world-map__hint {
  font-size: 8px;
  color: rgba(160, 190, 210, 0.7);
  letter-spacing: 0;
}
.c-world-map__canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 512 / 448;
  background: #152028;
  border: 1px solid rgba(160, 200, 220, 0.35);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  box-sizing: border-box;
}
.c-world-map__canvas--full {
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-width: 2px;
}
.c-world-map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 8px;
  font-size: 7px;
  color: rgba(170, 195, 210, 0.8);
  line-height: 1.4;
}
.c-world-map__legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 3px;
  vertical-align: -1px;
  border: 1px solid rgba(0, 0, 0, 0.4);
}
.c-world-map__legend i.is-you {
  background: #ffe066;
  border-radius: 50%;
}
.c-world-map__legend i.is-dest {
  background: #ff9a5c;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.c-world-map__legend i.is-route {
  background: #8fd6ff;
  border-radius: 50%;
}
.c-world-map__legend i.is-rain {
  background: rgba(90, 190, 230, 0.85);
  border-radius: 2px;
}
.c-world-map__route {
  margin-top: 6px;
  font-size: 7px;
  line-height: 1.45;
  color: rgba(160, 210, 230, 0.88);
  letter-spacing: 0;
  word-break: break-all;
}

.c-world-map-full {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 10, 14, 0.55);
  box-sizing: border-box;
}
.c-world-map-full__panel {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: rgba(12, 18, 26, 0.97);
  border: 7px solid #000;
  box-shadow: 14px 13px 0px -4px rgba(0, 0, 0, 0.38);
  padding: 10px 12px 12px;
  font-family: "Press Start 2P", monospace;
  color: #dce7ef;
  overflow: hidden;
}
.c-world-map-full__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  flex-shrink: 0;
  font-size: 11px;
  color: #fff;
}
.c-world-map-full__tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.c-world-map-full__panel .c-world-map__legend {
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
}
.c-world-map-full__tool,
.c-world-map-full__close {
  font-family: inherit;
  font-size: 9px;
  padding: 6px 10px;
  cursor: pointer;
  color: #e8f0f6;
  background: rgba(70, 100, 120, 0.45);
  border: 1px solid rgba(180, 210, 230, 0.4);
}
.c-world-map-full__tool:hover,
.c-world-map-full__close:hover {
  background: rgba(90, 130, 150, 0.65);
}
.c-world-map__canvas--full {
  cursor: crosshair;
}
/* 本单状态：仪表式 HUD（非纯文字列表） */
.c-order-hud {
  margin-bottom: 14px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(18, 34, 48, 0.92), rgba(8, 14, 22, 0.92));
  border: 1px solid rgba(140, 190, 220, 0.28);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.c-order-hud__alt {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.c-order-hud__alt-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.c-order-hud__alt-value {
  font-size: 18px;
  color: #e8f4ff;
  letter-spacing: 0.04em;
  flex: 1;
}
.c-order-hud__alt-unit {
  margin-left: 4px;
  font-size: 11px;
  color: rgba(160, 200, 220, 0.7);
}
.c-order-hud__alt-bar {
  width: 8px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(180, 210, 230, 0.25);
  position: relative;
  overflow: hidden;
}
.c-order-hud__alt-bar i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(200, 230, 255, 0.85), rgba(80, 140, 180, 0.55));
  transition: height 120ms linear;
}
.c-order-hud__meter {
  margin-bottom: 12px;
}
.c-order-hud__meter:last-of-type {
  margin-bottom: 10px;
}
.c-order-hud__tag {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(150, 195, 220, 0.7);
  margin-bottom: 6px;
}
.c-order-hud__track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(180, 210, 230, 0.22);
  overflow: hidden;
  margin-bottom: 6px;
}
.c-order-hud__track i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #3aa8c8, #9ee7ff);
  transition: width 160ms linear, background 200ms ease;
}
.c-order-hud__meter.is-warn .c-order-hud__track i {
  background: linear-gradient(90deg, #c8783a, #ffd08a);
}
.c-order-hud__meter.is-critical .c-order-hud__track i {
  background: linear-gradient(90deg, #a82830, #ff6a6a);
}
#UIStatUmbrellaMeter .c-order-hud__track i {
  background: linear-gradient(90deg, #3a7a98, #8ec8e8);
}
#UIStatUmbrellaMeter.is-open .c-order-hud__tag {
  color: rgba(160, 210, 240, 0.95);
}
#UIStatUmbrellaMeter.is-warn .c-order-hud__track i {
  background: linear-gradient(90deg, #c8783a, #ffd08a);
}
#UIStatUmbrellaMeter.is-critical .c-order-hud__track i {
  background: linear-gradient(90deg, #6a3038, #c06060);
}
.c-order-hud__meter.is-damage .c-order-hud__track {
  animation: cargo-hud-pulse 0.45s ease-in-out infinite;
}
@keyframes cargo-hud-pulse {
  0%, 100% { border-color: rgba(255, 120, 100, 0.35); }
  50% { border-color: rgba(255, 180, 140, 0.85); }
}
.c-order-hud__num {
  font-size: 14px;
  color: #e8f4ff;
  letter-spacing: 0.04em;
}
.c-order-hud__meter.is-warn .c-order-hud__num,
.c-order-hud__meter.is-critical .c-order-hud__num {
  color: #ffb0a0;
}
.c-order-hud__clock {
  font-size: 22px;
  color: #ffe066;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-shadow: 0 0 12px rgba(255, 220, 100, 0.25);
}
.c-order-hud__hint {
  margin-top: 4px;
  font-size: 10px;
  color: rgba(180, 200, 210, 0.7);
  letter-spacing: 0.04em;
}
.c-order-hud__chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* 天气折线图：过去实线 / 预测虚线 */
.c-weather-log {
  margin-bottom: 14px;
  padding: 10px 10px 8px;
  background: rgba(0, 8, 16, 0.55);
  border: 1px solid rgba(120, 180, 210, 0.25);
}
.c-weather-log__head {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(160, 200, 220, 0.8);
  margin-bottom: 6px;
}
.c-weather-log__chart {
  display: block;
  width: 100%;
  height: 78px;
  margin-bottom: 4px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(180, 210, 230, 0.15);
}
.c-weather-log__legend {
  font-size: 10px;
  color: #c8d8e4;
  line-height: 1.4;
}
.c-order-hud__chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #dce7ef;
}
.c-order-hud__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ec8e8;
  box-shadow: 0 0 8px rgba(126, 200, 232, 0.55);
  flex-shrink: 0;
}
.c-order-hud__chip[data-state="rain"] {
  border-color: rgba(90, 170, 220, 0.45);
  color: #9fd8ff;
}
.c-order-hud__chip[data-state="rain"] .c-order-hud__dot {
  background: #5eb8ef;
  animation: weather-blink 0.9s ease-in-out infinite;
}
.c-order-hud__chip[data-state="hail"] {
  border-color: rgba(200, 220, 240, 0.55);
  color: #e8f2ff;
}
.c-order-hud__chip[data-state="hail"] .c-order-hud__dot {
  background: #d8e8f8;
  animation: weather-blink 0.7s ease-in-out infinite;
}
.c-order-hud__chip[data-state="shelter"] {
  border-color: rgba(120, 220, 180, 0.4);
  color: #b8f0d8;
}
.c-order-hud__chip[data-state="shelter"] .c-order-hud__dot {
  background: #6fe0b0;
}
.c-order-hud__chip[data-state="umbrella"] {
  border-color: rgba(100, 170, 220, 0.5);
  color: #c5e4f8;
}
.c-order-hud__chip[data-state="umbrella"] .c-order-hud__dot {
  background: #6ab4e0;
}
.c-order-hud__chip[data-state="hub"] {
  border-color: rgba(220, 180, 80, 0.45);
  color: #f0d878;
}
.c-order-hud__chip[data-state="hub"] .c-order-hud__dot {
  background: #e0c050;
}
.c-order-hud__chip[data-state="river"] {
  border-color: rgba(80, 140, 220, 0.45);
  color: #9ab8ff;
}
.c-order-hud__chip[data-state="river"] .c-order-hud__dot {
  background: #6090e8;
}
.c-order-hud__chip[data-state="ridge"] {
  border-color: rgba(180, 160, 140, 0.4);
  color: #d8c8b8;
}
.c-order-hud__chip[data-state="ridge"] .c-order-hud__dot {
  background: #c0a888;
}
.c-order-hud__chip[data-state="ocean"] {
  border-color: rgba(40, 90, 140, 0.55);
  color: #7eb0d8;
}
.c-order-hud__chip[data-state="ocean"] .c-order-hud__dot {
  background: #1a4060;
}
@keyframes weather-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.c-stats-overview__rows {
  margin-bottom: 10px;
}
.c-stats-overview__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #b8c8d4;
  font-size: 11px;
}
.c-stats-overview__row span:last-child {
  color: #e8eef2;
  text-align: right;
}
.c-stats-overview__row span.is-warn {
  color: #ff8a7a;
}
.c-stats-overview__sub {
  color: #8aa;
  margin: 10px 0 6px;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.c-stats-overview__last {
  color: #dbc744;
  font-size: 11px;
  line-height: 1.5;
}

/* 派送结算：星级跳动 */
.c-rating {
  display: none;
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 125;
  padding: 18px 16px 14px;
  background: rgba(14, 20, 28, 0.94);
  border: 3px solid rgba(180, 210, 230, 0.35);
  color: #e8eef2;
  text-align: center;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
}
.c-rating__title {
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  color: #fff;
}
.c-rating__stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 6px 0 4px;
  min-height: 36px;
}
.c-rating__stars .c-star {
  font-size: 26px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.18);
  display: inline-block;
  transform: translateY(12px) scale(0.4);
  opacity: 0;
}
.c-rating__stars.is-anim .c-star {
  animation: star-bounce 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}
.c-rating__stars .c-star.is-full,
.c-rating__stars .c-star.is-half {
  color: #ffe066;
  text-shadow: 0 0 8px rgba(255, 200, 60, 0.45);
}
.c-rating__stars .c-star.is-half {
  background: linear-gradient(90deg, #ffe066 50%, rgba(255, 255, 255, 0.18) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 4px rgba(255, 200, 60, 0.4));
}
@keyframes star-bounce {
  0% { opacity: 0; transform: translateY(14px) scale(0.35); }
  55% { opacity: 1; transform: translateY(-6px) scale(1.18); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.c-rating__score {
  font-size: 12px;
  color: #ffe066;
  margin-bottom: 10px;
}
.c-rating__rows {
  text-align: left;
  font-size: 9px;
  line-height: 1.7;
  margin: 0 auto 10px;
  max-width: 340px;
}
.c-rating__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.c-rating__row span:last-child {
  color: #9cf;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.c-rating__row .c-star {
  font-size: 11px;
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  color: rgba(255, 255, 255, 0.2);
}
.c-rating__row .c-star.is-full,
.c-rating__row .c-star.is-half {
  color: #ffe066;
}
.c-rating__cargo {
  text-align: left;
  max-width: 340px;
  margin: 0 auto 12px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 9px;
  line-height: 1.55;
  color: #c5d4de;
}
.c-rating__cargo-title {
  color: #9cf;
  margin-bottom: 4px;
}
.c-rating__likes {
  font-size: 11px;
  color: #dbc744;
  margin-bottom: 12px;
}
.c-rating__btn {
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid rgba(180, 210, 230, 0.45);
  background: rgba(60, 90, 110, 0.45);
  color: #eef5fa;
  font-family: inherit;
  font-size: 10px;
  cursor: pointer;
}
.c-rating__btn:hover {
  background: rgba(90, 130, 150, 0.65);
}

.c-navigator {
  width: 120px;       /* 增加尺寸 */
  height: 120px;
  background-color: rgba(0, 0, 0, 0.15);
  position: absolute;
  bottom: 7.5%;
  right: 7.5%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.c-navigator .player {
  display: inline-block;
  width: 6px;         /* 增加尺寸 */
  height: 6px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  position: absolute;
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); /* 调整阴影大小 */
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}
.c-navigator .dot {
  width: 6px;         /* 增加尺寸 */
  height: 6px;
  background-color: #dbc744;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
}

/* 左上角派送/Likes 已并入左侧统计总览 */
.c-score {
  display: none !important;
}

.c-dialog {
  position: absolute;
  padding: 25px;      /* 增加内边距 */
  left: 15%;
  right: 15%;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.25);
  color: white;
  display: none;
  text-align: center;
  border: 3px solid rgba(0, 0, 0, 0.05);
  font-size: 15px;    /* 增大字体 */
  line-height: 28px;  /* 调整行高 */
}

.c-instructions {
  width: 380px;       /* 增加宽度 */
  height: 360px;      /* 增加高度 */
  background-color: #cccaaa;
  box-shadow: 6px 6px 0 0 #aaaaaa; /* 调整阴影 */
  padding: 25px;      /* 增加内边距 */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99;
  transition: opacity 250ms ease-in-out, transform 250ms ease-in-out;
  transform: translate(100%, 100%) rotate(45deg);
  opacity: 0;
  will-change: opacity, transform;
}
.c-instructions.in {
  transform: translate(0%, -50%) rotate(0deg);
  opacity: 1;
}
.c-instructions__headline {
  position: absolute;
  top: 15px;          /* 调整位置 */
  left: 0;
  right: 0;
  max-width: 80%;     /* 调整宽度 */
  margin: 0 auto;
  text-align: center;
  font-size: 16px;    /* 增大字体 */
  background-color: #cccaaa;
  padding: 7px;       /* 增加内边距 */
  line-height: 24px;  /* 调整行高 */
}
.c-instructions__content {
  border: 5px solid #aaaaaa; /* 调整边框 */
  height: 100%;
  font-size: 11px;    /* 增大字体 */
}
.c-instructions__content .c-instructions__checklists {
  padding: 50px 20px 0 20px; /* 调整内边距 */
}
.c-instructions__content .c-instructions__checklists section + section {
  margin-top: 30px;   /* 增加间距 */
}
.c-instructions__content .c-instructions__checklists ul li {
  line-height: 18px;  /* 增加行高 */
}
.c-instructions__hint {
  text-align: center;
  opacity: 0.55;
  font-size: 10px;
  padding: 8px 0 12px;
}

.uppercase {
  text-transform: uppercase;
}

/* 派送三选一升级面板 */
.c-upgrade-pick {
  display: none;
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 120;
  background: rgba(20, 28, 36, 0.92);
  border: 3px solid rgba(255, 255, 255, 0.2);
  padding: 18px 14px 14px;
  color: #e8eef2;
  text-align: center;
}
.c-upgrade-pick__title {
  font-size: 13px;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.c-upgrade-pick__hint {
  font-size: 10px;
  color: #9ab;
  margin-bottom: 14px;
}
.c-upgrade-pick__list {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.c-upgrade-pick__card {
  flex: 1 1 28%;
  min-width: 120px;
  max-width: 180px;
  padding: 12px 10px;
  background: rgba(70, 100, 120, 0.35);
  border: 2px solid rgba(180, 210, 230, 0.35);
  cursor: pointer;
  text-align: left;
  transition: background 120ms ease, border-color 120ms ease;
}
.c-upgrade-pick__card:hover {
  background: rgba(90, 130, 150, 0.55);
  border-color: rgba(220, 240, 255, 0.7);
}
.c-upgrade-pick__name {
  font-size: 12px;
  margin-bottom: 8px;
  color: #fff;
}
.c-upgrade-pick__desc {
  font-size: 10px;
  line-height: 16px;
  color: #c5d4de;
}

.c-toast {
  display: none;
  position: absolute;
  bottom: 28%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 140;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.65);
  color: #e8eef2;
  font-size: 11px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  max-width: 86%;
  text-align: center;
}

/* BT 方向 QTE 面板 */
.c-bt-encounter {
  position: absolute;
  left: 50%;
  top: 16%;
  transform: translateX(-50%);
  z-index: 130;
  width: min(360px, 78%);
  padding: 16px 18px 18px;
  background: rgba(14, 10, 14, 0.9);
  border: 3px solid rgba(200, 70, 60, 0.55);
  color: #f2e8e8;
  text-align: center;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
}
.c-bt-encounter__title {
  font-size: 12px;
  margin-bottom: 8px;
  color: #ffb0a0;
  letter-spacing: 0.06em;
}
.c-bt-encounter__progress {
  font-size: 10px;
  color: #9cf;
  margin-bottom: 10px;
}
.c-bt-encounter__arrow {
  margin: 8px auto 12px;
  width: 64px;
  height: 64px;
  line-height: 64px;
  font-size: 36px;
  color: #667;
  background: rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.12);
  transition: color 80ms ease, border-color 80ms ease, transform 80ms ease;
}
.c-bt-encounter__arrow.is-active {
  color: #ffe066;
  border-color: #ffe066;
  transform: scale(1.08);
  box-shadow: 0 0 14px rgba(255, 200, 60, 0.45);
}
.c-bt-encounter__arrow.is-consume {
  color: #9ab;
  border-color: rgba(160, 180, 200, 0.35);
  font-size: 28px;
  box-shadow: none;
}
.c-bt-encounter.is-consume {
  border-color: rgba(140, 160, 180, 0.4);
  background: rgba(12, 16, 22, 0.9);
}
.c-bt-encounter.is-consume .c-bt-encounter__title {
  color: #c5d4de;
}
.c-bt-encounter.is-consume .c-bt-encounter__timer-fill {
  background: linear-gradient(90deg, #456, #8ab);
}
.c-bt-encounter__timer {
  height: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-bottom: 10px;
}
.c-bt-encounter__timer-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c44, #ffe066);
  transition: width 50ms linear;
}
.c-bt-encounter__hint {
  font-size: 9px;
  line-height: 14px;
  color: #d8c8c8;
}

/* 开发者模式：固定在页面右侧 */
.c-dev-panel {
  position: fixed;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  z-index: 9999;
  width: 220px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 12px 12px 10px;
  background: rgba(16, 22, 30, 0.92);
  border: 2px solid rgba(180, 210, 230, 0.35);
  color: #dce7ef;
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.c-dev-panel__head {
  font-size: 11px;
  margin-bottom: 4px;
  color: #fff;
}
.c-dev-panel__sub {
  font-size: 8px;
  color: #8aa;
  margin-bottom: 10px;
}
.c-dev-panel__section {
  margin: 10px 0 6px;
  color: #9cf;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 8px;
}
.c-dev-panel__row {
  display: block;
  margin: 6px 0;
  cursor: pointer;
  user-select: none;
}
.c-dev-panel button {
  display: block;
  width: 100%;
  margin: 5px 0;
  padding: 7px 6px;
  border: 1px solid rgba(180, 210, 230, 0.35);
  background: rgba(60, 90, 110, 0.45);
  color: #eef5fa;
  font-family: inherit;
  font-size: 8px;
  cursor: pointer;
  text-align: left;
}
.c-dev-panel button:hover {
  background: rgba(90, 130, 150, 0.65);
}
.c-dev-panel__close {
  margin-top: 10px !important;
  background: rgba(90, 50, 50, 0.55) !important;
}
.c-dev-panel__info {
  margin-top: 10px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.35);
  white-space: pre-line;
  color: #b8c8d4;
  font-size: 8px;
}
