* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: radial-gradient(ellipse at 50% 30%, #2d7fd6 0%, #1257a8 70%, #0d3f80 100%);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

html, body { overflow: hidden; }
#stage {
  position: relative;
  width: 1200px;
  height: 700px;
  flex: none;
}
#game {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.hidden { display: none !important; }

/* —— 顶部日期 —— */
#date-box {
  position: absolute;
  top: 10px; left: 10px;
  background: linear-gradient(180deg, #3d7dc4, #1a4f96);
  border: 2px solid #9fd1ff;
  border-radius: 8px;
  padding: 5px 14px;
  color: #eaf6ff;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}
#index-line { font-size: 11px; opacity: 0.85; }

/* —— 对手小卡片 —— */
#rivals {
  position: absolute;
  top: 10px; right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rival {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(61,125,196,0.92), rgba(26,79,150,0.92));
  border: 2px solid #9fd1ff;
  border-radius: 24px;
  padding: 3px 12px 3px 4px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}
.rival.dead { filter: grayscale(1); opacity: 0.6; }
.rival img { width: 34px; height: 34px; border-radius: 50%; }
.rival-name { font-size: 12px; font-weight: 700; text-shadow: 0 1px 2px rgba(255,255,255,0.6); }
.rival-cash { font-size: 11px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }

/* —— 底部 HUD —— */
#hud {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 16px 0 92px;
  background: linear-gradient(180deg, #2e7fd8 0%, #1355a8 100%);
  border-top: 2px solid #8fc9ff;
  border-radius: 0 0 10px 10px;
}
#hud-avatar {
  position: absolute;
  left: 8px; bottom: 4px;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: radial-gradient(#fff, #cfe8ff);
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  overflow: hidden;
}
#hud-avatar img { width: 100%; height: 100%; }
#hud-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 4px #fff, 0 2px 3px rgba(0,0,0,0.4);
  min-width: 80px;
}
.hud-stat {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  text-shadow: 0 2px 3px rgba(0,0,0,0.5);
}
.coin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe082, #f9a825);
  color: #7b4d00;
  font-weight: 900;
  font-size: 15px;
  border: 2px solid #fff8e1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.coin.house { background: radial-gradient(circle at 35% 30%, #b3e5fc, #0288d1); font-size: 13px; }
.coin.pig { background: radial-gradient(circle at 35% 30%, #f8bbd0, #ec407a); font-size: 13px; }

/* —— 按钮 —— */
#controls {
  position: absolute;
  right: 14px; bottom: 68px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.big-btn {
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  padding: 12px 26px;
  border: 3px solid #ffe082;
  border-radius: 40px;
  background: linear-gradient(180deg, #ffb74d 0%, #f57c00 55%, #e65100 100%);
  cursor: pointer;
  text-shadow: 0 2px 3px rgba(0,0,0,0.4);
  box-shadow: 0 5px 14px rgba(0,0,0,0.45), inset 0 2px 3px rgba(255,255,255,0.5);
  transition: transform 0.1s;
}
.big-btn:hover:not(:disabled) { transform: scale(1.05); }
.big-btn:disabled { filter: grayscale(0.8); opacity: 0.55; cursor: default; }
.big-btn.pulse { animation: pulse 1s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 5px 14px rgba(0,0,0,0.45), 0 0 0 0 rgba(255,224,130,0.8); }
  50% { box-shadow: 0 5px 14px rgba(0,0,0,0.45), 0 0 0 12px rgba(255,224,130,0); }
}
.round-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 20px;
  border: 3px solid #b39ddb;
  background: linear-gradient(180deg, #9575cd, #5e35b1);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: transform 0.1s;
}
.round-btn:hover:not(:disabled) { transform: scale(1.1); }
.round-btn:disabled { opacity: 0.5; }

/* —— 骰子 —— */
#dice-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
}
#dice-tray {
  position: absolute;
  left: 50%; top: 45%;                 /* 默认居中（fallback） */
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
#dice-row { display: flex; gap: 20px; }
#dice {
  width: 110px; height: 110px;
  background: linear-gradient(145deg, #ffffff, #dfe6ec);
  border-radius: 22px;
  border: 3px solid #b0bec5;
  box-shadow: 0 14px 34px rgba(0,0,0,0.5), inset 0 2px 4px #fff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 16px;
  gap: 5px;
}
#dice .pip { border-radius: 50%; }
#dice .pip.on {
  background: radial-gradient(circle at 35% 30%, #4a5568, #1a202c);
  box-shadow: inset 0 -2px 3px rgba(0,0,0,0.5);
}
#dice.shaking { animation: shake 0.35s infinite; }
@keyframes shake {
  0% { transform: rotate(-12deg) translate(-6px, 4px) scale(1.02); }
  25% { transform: rotate(9deg) translate(5px, -7px); }
  50% { transform: rotate(-7deg) translate(-4px, -3px) scale(0.98); }
  75% { transform: rotate(11deg) translate(6px, 5px); }
  100% { transform: rotate(-12deg) translate(-6px, 4px) scale(1.02); }
}
#dice.landed { animation: land 0.4s ease-out; }
@keyframes land {
  0% { transform: scale(1.35); }
  60% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

/* —— 气泡 —— */
#bubble {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  background: linear-gradient(180deg, #eaf6ff 0%, #bfe3ff 100%);
  border: 3px solid #5aa9e6;
  border-radius: 18px;
  padding: 10px 22px 10px 10px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.4);
  animation: pop 0.25s ease-out;
  z-index: 5;
}
@keyframes pop {
  from { transform: translateX(-50%) scale(0.6); opacity: 0; }
  to { transform: translateX(-50%) scale(1); opacity: 1; }
}
#bubble img { width: 58px; height: 58px; border-radius: 50%; }
#bubble-text {
  font-size: 16px;
  font-weight: 700;
  color: #1a3a5c;
}

/* —— 对话框 —— */
#dialog-layer {
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 60, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
#dialog {
  min-width: 340px;
  max-width: 640px;
  background: linear-gradient(180deg, #c5d4f2 0%, #9fb4e0 100%);
  border: 3px solid #fff;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.5);
  animation: pop2 0.22s ease-out;
}
@keyframes pop2 {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.dlg-title {
  text-align: center;
  font-size: 21px;
  font-weight: 900;
  color: #d84315;
  text-shadow: 0 1px 0 #fff, 0 2px 3px rgba(0,0,0,0.25);
  margin-bottom: 12px;
}
.prop-name {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #283593;
  margin-bottom: 8px;
}
.dlg-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.65);
  border-radius: 8px;
  overflow: hidden;
}
.dlg-table td, .dlg-table th {
  padding: 7px 12px;
  font-size: 14px;
  color: #1a2a4a;
  border-bottom: 1px solid rgba(120,140,190,0.35);
}
.dlg-table th {
  background: linear-gradient(180deg, #3f51b5, #283593);
  color: #fff;
  font-size: 13px;
}
.dlg-table .num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.dlg-table .up { color: #c62828; }
.dlg-table .down { color: #2e7d32; }
.dlg-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}
.dlg-btn {
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  padding: 9px 26px;
  border-radius: 26px;
  border: 2px solid #fff;
  background: linear-gradient(180deg, #90a4ae, #546e7a);
  color: #fff;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
  transition: transform 0.1s;
}
.dlg-btn:hover { transform: scale(1.06); }
.dlg-btn.primary { background: linear-gradient(180deg, #66bb6a, #2e7d32); }

/* —— 股票 —— */
.stock-cash {
  text-align: center;
  font-weight: 800;
  color: #1a2a4a;
  margin-bottom: 8px;
}
.stock-table td { font-size: 13px; padding: 6px 8px; }
.mini-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  border: 1px solid #fff;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.mini-btn.buy { background: linear-gradient(180deg, #ef5350, #c62828); }
.mini-btn.sell { background: linear-gradient(180deg, #66bb6a, #2e7d32); }
.mini-btn:disabled { filter: grayscale(1); opacity: 0.5; cursor: default; }
.mini-btn:hover:not(:disabled) { transform: scale(1.08); }

/* —— 排行榜 —— */
.rank-table td { vertical-align: middle; }
.rank-face { width: 30px; height: 30px; border-radius: 50%; vertical-align: middle; }
.rank-table tr.dead td { opacity: 0.55; }

/* —— 双骰子 —— */
#dice2 {
  width: 110px; height: 110px;
  background: linear-gradient(145deg, #ffffff, #dfe6ec);
  border-radius: 22px;
  border: 3px solid #b0bec5;
  box-shadow: 0 14px 34px rgba(0,0,0,0.5), inset 0 2px 4px #fff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 16px;
  gap: 5px;
}
#dice2 .pip { border-radius: 50%; }
#dice2 .pip.on {
  background: radial-gradient(circle at 35% 30%, #4a5568, #1a202c);
  box-shadow: inset 0 -2px 3px rgba(0,0,0,0.5);
}
#dice2.shaking { animation: shake 0.35s infinite; }
#dice2.landed { animation: land 0.4s ease-out; }

/* —— 开场 Stage Settings —— */
#setup-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(45,127,214,0.96), rgba(10,50,110,0.97));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  border-radius: 10px;
  overflow: auto;
}
#setup-box { text-align: center; max-width: 1080px; width: 96%; padding: 12px 0; }
#setup-title {
  font-size: 36px;
  font-weight: 900;
  color: #ffe082;
  text-shadow: 0 0 12px rgba(255,224,130,0.6), 0 4px 6px rgba(0,0,0,0.5);
  margin-bottom: 14px;
}
#setup-sub { font-size: 18px; color: #cfe8ff; font-weight: 700; letter-spacing: 2px; }
#setup-grid {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}
#setup-left { flex: 0 0 300px; }
#setup-right { flex: 1; max-width: 640px; }
#map-col { display: flex; flex-direction: column; gap: 10px; }
.map-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
  border: 3px solid rgba(255,255,255,0.35);
  border-radius: 14px;
  padding: 8px;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.map-card:hover:not(.locked) { transform: translateY(-2px); }
.map-card.sel {
  border-color: #ffe082;
  box-shadow: 0 0 18px rgba(255,224,130,0.55);
  background: linear-gradient(180deg, rgba(255,235,170,0.25), rgba(255,255,255,0.08));
}
.map-card.locked { opacity: 0.45; cursor: not-allowed; }
.map-thumb {
  width: 132px; height: 77px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.5);
}
.lock-thumb {
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  background: rgba(255,255,255,0.1);
}
.map-name { font-size: 16px; font-weight: 900; color: #fff; text-shadow: 0 2px 3px rgba(0,0,0,0.4); }
.map-sub { font-size: 11px; color: #cfe8ff; margin-top: 3px; }
.map-tag {
  display: inline-block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 800;
  color: #7b4d00;
  background: linear-gradient(180deg, #ffe082, #ffca28);
  border-radius: 8px;
  padding: 2px 8px;
}
#char-row { display: flex; gap: 12px; margin-bottom: 6px; }
.char-card {
  flex: 1;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
  border: 3px solid rgba(255,255,255,0.35);
  border-radius: 14px;
  padding: 10px 6px;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.char-card:hover { transform: translateY(-2px); }
.char-card.sel {
  border-color: #ffe082;
  box-shadow: 0 0 18px rgba(255,224,130,0.55);
  background: linear-gradient(180deg, rgba(255,235,170,0.25), rgba(255,255,255,0.08));
}
.char-card img { width: 58px; height: 58px; }
.char-name { font-size: 14px; font-weight: 800; text-shadow: 0 1px 2px rgba(255,255,255,0.7); }
.char-tag { font-size: 10px; color: #cfe8ff; margin-top: 2px; }
.opt-group { margin-top: 10px; }
.opt-title {
  font-size: 13px;
  font-weight: 800;
  color: #cfe8ff;
  margin-bottom: 6px;
  text-shadow: 0 2px 3px rgba(0,0,0,0.4);
}
.opt-row { display: flex; gap: 8px; flex-wrap: wrap; }
.opt-2col { display: flex; gap: 22px; }
.opt-2col .opt-group { flex: 1; }
.opt-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  color: #eaf6ff;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 18px;
  padding: 6px 14px;
  cursor: pointer;
  transition: transform 0.1s, border-color 0.1s;
}
.opt-btn:hover:not(.locked) { transform: scale(1.05); }
.opt-btn.sel {
  color: #7b4d00;
  background: linear-gradient(180deg, #ffe082, #ffca28);
  border-color: #fff8e1;
  box-shadow: 0 0 10px rgba(255,224,130,0.6);
}
.opt-btn.locked { opacity: 0.45; cursor: not-allowed; }
#setup-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}
#setup-start { font-size: 21px; padding: 12px 40px; }
.continue-btn { background: linear-gradient(180deg, #81c784 0%, #388e3c 55%, #1b5e20 100%); border-color: #c8e6c9; font-size: 21px; padding: 12px 32px; }

/* —— 岔路口 —— */
#fork-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}
#fork-tip {
  position: absolute;
  top: 9%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fff8e1, #ffe082);
  border: 3px solid #f57f17;
  border-radius: 22px;
  padding: 8px 22px;
  font-size: 17px;
  font-weight: 900;
  color: #7b4d00;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  animation: pop 0.25s ease-out;
}
.fork-btn {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(255,248,225,0.95);
  border: 3px solid #f57f17;
  border-radius: 14px;
  padding: 6px 10px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 14px rgba(0,0,0,0.45);
  animation: forkPulse 0.9s infinite;
  z-index: 7;
}
.fork-btn:hover { background: #fff; }
@keyframes forkPulse {
  0%, 100% { box-shadow: 0 6px 14px rgba(0,0,0,0.45), 0 0 0 0 rgba(255,213,79,0.7); }
  50% { box-shadow: 0 6px 14px rgba(0,0,0,0.45), 0 0 0 10px rgba(255,213,79,0); }
}
.fork-arrow { font-size: 20px; color: #e65100; display: inline-block; }
.fork-label { font-size: 12px; font-weight: 800; color: #5d4037; white-space: nowrap; }

/* —— 道具卡栏 —— */
#card-bar {
  position: absolute;
  left: 10px;
  bottom: 92px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 4;
}
.card-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  background: linear-gradient(180deg, #fff8e1, #ffecb3);
  border: 2px solid #ffb300;
  border-radius: 20px;
  padding: 4px 12px 4px 8px;
  font-size: 13px;
  font-weight: 800;
  color: #7b4d00;
  box-shadow: 0 3px 8px rgba(0,0,0,0.35);
  cursor: default;
  opacity: 0.75;
  transition: transform 0.1s;
}
.card-chip.usable {
  cursor: pointer;
  opacity: 1;
  animation: pulse 1.4s infinite;
}
.card-chip.usable:hover { transform: scale(1.08); }
.card-icon { font-size: 16px; }

/* —— 银行 & 选择器 —— */
.bank-input {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
#bank-amt {
  width: 130px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 10px;
  border: 2px solid #7986cb;
  text-align: right;
}
.bank-msg {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #1a3a5c;
}
.dlg-btn.warn { background: linear-gradient(180deg, #ffb74d, #ef6c00); }
.pick-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}
.pick-n { min-width: 56px; font-size: 20px; }
.pick-rival { display: flex; align-items: center; gap: 8px; }
.stock-sym {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  font-weight: 800;
  color: #5c6bc0;
  background: rgba(92,107,192,0.15);
  border-radius: 6px;
  padding: 1px 5px;
}
.stock-table tr.flash td { background: rgba(255,213,79,0.35); }
.hint { font-size: 10px; color: #4a5a7a; font-weight: 600; }

/* —— HUD 载具 —— */
#hud-vehicle {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 3px rgba(0,0,0,0.5);
  min-width: 44px;
}

/* —— 骰子标签 —— */
#dice-tag {
  background: linear-gradient(180deg, #fff8e1, #ffe082);
  border: 3px solid #f57f17;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 14px;
  font-weight: 900;
  color: #7b4d00;
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
  white-space: nowrap;
}

/* —— 卡片背包 —— */
#inv-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.55);
  border-radius: 12px;
  padding: 14px 18px;
  min-height: 92px;
}
#inv-big-icon {
  font-size: 52px;
  width: 78px; height: 78px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #fff8e1, #ffecb3);
  border: 3px solid #ffb300;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
#inv-name { font-size: 18px; font-weight: 900; color: #283593; }
#inv-desc { font-size: 13px; color: #1a2a4a; margin-top: 4px; }
#inv-when { font-size: 11px; color: #5c6bc0; margin-top: 4px; font-weight: 700; }
#inv-block { font-size: 12px; color: #c62828; margin-top: 5px; font-weight: 800; }
#inv-empty { font-size: 14px; color: #4a5a7a; font-weight: 700; text-align: center; width: 100%; }
#inv-hand {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
  flex-wrap: wrap;
}
.inv-card {
  font-family: inherit;
  width: 74px;
  background: linear-gradient(180deg, #fff8e1, #ffecb3);
  border: 2.5px solid #ffb300;
  border-radius: 10px;
  padding: 7px 4px;
  cursor: pointer;
  transition: transform 0.1s, border-color 0.1s;
}
.inv-card:hover { transform: translateY(-3px); }
.inv-card.sel { border-color: #e65100; box-shadow: 0 0 12px rgba(255,179,0,0.7); transform: translateY(-3px); }
.inv-card-icon { font-size: 24px; }
.inv-card-name { font-size: 10px; font-weight: 800; color: #7b4d00; margin-top: 3px; }

/* —— 资产总览 —— */
#asset-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 10px; }
.asset-tab {
  font-family: inherit;
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 800;
  background: rgba(255,255,255,0.5);
  border: 2.5px solid rgba(120,140,190,0.5);
  border-radius: 20px;
  padding: 4px 12px 4px 5px;
  cursor: pointer;
}
.asset-tab img { width: 28px; height: 28px; border-radius: 50%; }
.asset-tab.sel { border-color: #3f51b5; background: #fff; box-shadow: 0 0 10px rgba(63,81,181,0.4); }
.asset-tab.dead { filter: grayscale(1); opacity: 0.6; }
.asset-grid { display: flex; gap: 14px; align-items: flex-start; }
.asset-grid > table { flex: 1; }
#asset-props { flex: 1; max-height: 300px; overflow: auto; }
#asset-props .opt-title { color: #283593; }
.asset-total td { font-weight: 900; background: rgba(255,224,130,0.4); }

/* —— 商店 —— */
.shop-table td { font-size: 12.5px; }
.shop-desc { font-size: 11px; color: #3a4a6a; max-width: 230px; }

/* —— 声音设置 —— */
.audio-table input[type="range"] { width: 180px; }

/* —— v3.2：移动端整体缩放 —— */
#stage { transform-origin: center center; }
#rotate-hint {
  position: fixed;
  inset: auto 0 14px 0;
  text-align: center;
  z-index: 60;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  pointer-events: none;
}

/* —— 保存指示 —— */
#save-indicator {
  position: absolute;
  top: 64px; left: 10px;
  background: rgba(20, 60, 30, 0.85);
  border: 2px solid #81c784;
  color: #c8e6c9;
  font-size: 12px;
  font-weight: 800;
  border-radius: 14px;
  padding: 4px 12px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 8;
}
#save-indicator.show { opacity: 1; }

/* —— 新手提示 —— */
#tip-toast {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%) translateY(-60px);
  max-width: 520px;
  background: linear-gradient(180deg, #fff8e1, #ffe082);
  border: 3px solid #f57f17;
  color: #7b4d00;
  font-size: 14px;
  font-weight: 800;
  border-radius: 18px;
  padding: 8px 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  transition: transform 0.35s ease, opacity 0.3s ease;
  opacity: 0;
  z-index: 25;
  pointer-events: none;
}
#tip-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* —— 行动日志 —— */
#log-panel {
  position: absolute;
  right: 10px; top: 110px;
  width: 285px;
  max-height: 380px;
  background: rgba(12, 35, 70, 0.92);
  border: 2px solid #9fd1ff;
  border-radius: 12px;
  z-index: 9;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
#log-title {
  font-size: 13px;
  font-weight: 900;
  color: #cfe8ff;
  padding: 8px 12px 6px;
  border-bottom: 1px solid rgba(159,209,255,0.35);
}
#log-list {
  overflow-y: auto;
  padding: 6px 10px;
  font-size: 11.5px;
  color: #e3f2fd;
  line-height: 1.75;
}
.log-item { display: flex; gap: 6px; align-items: baseline; }
.log-day {
  flex: none;
  font-size: 9px;
  font-weight: 800;
  color: #90caf9;
  background: rgba(144,202,249,0.15);
  border-radius: 6px;
  padding: 0 4px;
}
.log-icon { flex: none; }

/* —— 调试面板 —— */
#debug-panel {
  position: absolute;
  left: 10px; top: 96px;
  background: rgba(30, 10, 40, 0.92);
  border: 2px dashed #ce93d8;
  border-radius: 10px;
  padding: 8px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 240px;
}
#debug-info {
  width: 100%;
  font-size: 10px;
  color: #e1bee7;
  font-weight: 700;
  word-break: break-all;
  white-space: pre-line;
  line-height: 1.5;
}

/* —— 开发类型选择 —— */
.dev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
}
.dev-card {
  font-family: inherit;
  text-align: center;
  background: rgba(255,255,255,0.6);
  border: 2.5px solid rgba(120,140,190,0.5);
  border-radius: 12px;
  padding: 8px 6px;
  cursor: pointer;
  transition: transform 0.1s, border-color 0.1s, box-shadow 0.1s;
}
.dev-card:hover:not(:disabled) {
  transform: translateY(-3px);
  border-color: #f57f17;
  box-shadow: 0 0 12px rgba(255,179,0,0.5);
}
.dev-card.poor { opacity: 0.55; cursor: not-allowed; }
.dev-icon { font-size: 30px; }
.dev-name { font-size: 14px; font-weight: 900; color: #283593; margin-top: 2px; }
.dev-lv1 { display: block; font-size: 10px; font-weight: 700; color: #5c6bc0; }
.dev-desc { font-size: 10.5px; color: #3a4a6a; margin-top: 4px; min-height: 28px; line-height: 1.35; }
.dev-nums { font-size: 11px; font-weight: 800; color: #bf360c; margin-top: 4px; }
.dlg-notice {
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: #2e7d32;
  background: rgba(76,175,80,0.14);
  border: 1.5px solid rgba(76,175,80,0.5);
  border-radius: 10px;
  padding: 5px 10px;
  margin: -4px 0 10px;
}
.dev-poor { font-size: 10px; font-weight: 800; color: #c62828; margin-top: 2px; }

/* —— 地块详情 Cell Inspector —— */
.cell-note {
  font-size: 12px !important;
  color: #3a4a6a !important;
  font-weight: 600 !important;
  text-align: left !important;
  line-height: 1.5;
  background: rgba(120,140,190,0.1);
}
.cell-hist-title {
  font-size: 13px;
  font-weight: 800;
  color: #283593;
  margin: 12px 0 6px;
}
.cell-hist {
  max-height: 130px;
  overflow-y: auto;
  background: rgba(255,255,255,0.5);
  border-radius: 8px;
  padding: 6px 10px;
}
.cell-hist-row {
  font-size: 12px;
  color: #2a3a54;
  line-height: 1.8;
  border-bottom: 1px dashed rgba(120,140,190,0.3);
}
.cell-hist-row:last-child { border-bottom: none; }

/* —— 商店现金说明 —— */
.shop-note {
  font-size: 11px;
  color: #4a5a7a;
  text-align: center;
  margin: -2px 0 8px;
  line-height: 1.4;
}

/* —— 存档管理 —— */
.slot-list { max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.slot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255,255,255,0.55);
  border: 2px solid rgba(120,140,190,0.4);
  border-radius: 10px;
  padding: 8px 12px;
}
.slot-row.active { border-color: #ffb300; background: rgba(255,235,170,0.35); }
.slot-name { font-size: 14px; font-weight: 800; color: #283593; }
.slot-badge { font-size: 10px; font-weight: 700; color: #5c6bc0; background: rgba(92,107,192,0.15); border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.slot-sub { font-size: 11px; color: #4a5a7a; margin-top: 3px; }
.slot-btns { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
#setup-manage { margin-left: 4px; }

/* —— 地图缩放/跟随控制 —— */
#map-ctrl {
  position: absolute;
  right: 14px;
  top: 33%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 6;
}
.map-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  border: 2px solid #9fd1ff;
  background: linear-gradient(180deg, rgba(61,125,196,0.95), rgba(26,79,150,0.95));
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.1s;
}
.map-btn:hover { transform: scale(1.1); }
.map-btn:active { transform: scale(0.95); }
#game { cursor: grab; }
#game:active { cursor: grabbing; }
#debug-panel button {
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  background: #7b1fa2;
  color: #fff;
  border: 1px solid #ce93d8;
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
}
#debug-panel button:hover { background: #9c27b0; }

/* —— 卡面组件（背包/商店共用） —— */
.card-face {
  width: 76px;
  background: linear-gradient(180deg, #fffdf6, #f4ecd8);
  border: 2.5px solid #90a4ae;
  border-radius: 10px;
  padding: 5px 4px;
  text-align: center;
}
.card-face.rar-uncommon { border-color: #66bb6a; }
.card-face.rar-rare { border-color: #42a5f5; box-shadow: 0 0 8px rgba(66,165,245,0.35); }
.card-face.rar-epic { border-color: #ab47bc; box-shadow: 0 0 10px rgba(171,71,188,0.45); }
.card-face-top {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 800;
}
.card-face-icon { font-size: 26px; line-height: 1.3; }
.card-face-name { font-size: 10px; font-weight: 800; color: #37474f; }
.card-rar { font-size: 10px; font-weight: 900; }
.card-cat-tag {
  font-size: 10px;
  font-weight: 800;
  color: #455a64;
  background: rgba(96,125,139,0.15);
  border-radius: 6px;
  padding: 1px 6px;
  margin-left: 6px;
}
#inv-big-icon.rar-uncommon { border-color: #66bb6a; }
#inv-big-icon.rar-rare { border-color: #42a5f5; }
#inv-big-icon.rar-epic { border-color: #ab47bc; }
.inv-card { background: none; border: none; padding: 0; cursor: pointer; transition: transform 0.1s; }
.inv-card:hover { transform: translateY(-3px); }
.inv-card.sel .card-face { outline: 3px solid #ffb300; transform: translateY(-3px); }

/* —— 商店 v3.2 —— */
.shop-tabs { display: flex; gap: 8px; justify-content: center; margin: 6px 0 10px; }
.shop-tab {
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 16px;
  border: 2px solid rgba(120,140,190,0.5);
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  color: #3a4a6a;
}
.shop-tab.sel {
  background: linear-gradient(180deg, #ffe082, #ffca28);
  border-color: #f57f17;
  color: #7b4d00;
}
.shop-body { max-height: 320px; overflow-y: auto; }
.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.shop-item {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.55);
  border-radius: 10px;
  padding: 7px;
  align-items: center;
}
.shop-item-info { flex: 1; min-width: 0; }
.shop-item .shop-desc { font-size: 11px; color: #3a4a6a; line-height: 1.4; }
.shop-buy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}
.shop-price { font-size: 12px; font-weight: 900; color: #bf360c; }
.shop-price s { color: #90a4ae; font-weight: 600; margin-left: 3px; }
.shop-veh-item { margin-bottom: 8px; }
.shop-veh-item.veh-locked { opacity: 0.6; }
.veh-tier {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  background: #5c6bc0;
  border-radius: 6px;
  padding: 0 5px;
  margin-left: 4px;
}

/* —— 继续上局按钮摘要 —— */
.continue-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.continue-sub { font-size: 11px; font-weight: 700; opacity: 0.9; }

/* —— 新闻预告 —— */
.news-preview {
  text-align: center;
  font-size: 15px;
  color: #1a2a4a;
  background: rgba(255,255,255,0.6);
  border-radius: 10px;
  padding: 16px 14px;
  line-height: 1.8;
}
