* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at center, #1e293b 0%, #090d16 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 720x1280 竖屏手机视口容器 */
#app-shell {
  position: relative;
  width: min(100vw, 56.25vh);
  height: min(100vh, 177.78vw);
  max-width: 540px;
  max-height: 960px;
  background-color: #d8f3fa;
  background-image: url("assets/ui/main_bg.png");
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.75), 0 0 0 4px rgba(255, 255, 255, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (max-width: 540px) {
  #app-shell {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
  }
}

/* 屏幕切换层 */
.screen {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.screen.active {
  display: flex;
}

/* ================= 主界面选关面板 ================= */
#main-screen {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(190,235,250,0.22) 100%),
    url("assets/ui/main_bg.png");
  background-size: cover;
  background-position: center;
}

.main-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 4px;
  z-index: 15;
  gap: 8px;
}

.btn-settings {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f3ff78 0%, #a5ea2b 52%, #70be14 100%);
  border: 3px solid #23440d;
  box-shadow: 0 5px 0 #23440d, inset 0 3px 0 rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s;
  flex-shrink: 0;
}
.btn-settings:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #23440d;
}
.btn-settings .icon {
  font-size: 21px;
  line-height: 1;
}
.btn-settings .txt {
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  -webkit-text-stroke: 1px #1e3a0f;
  text-shadow: 0 1.5px 0 #1e3a0f;
  margin-top: 1px;
}

.brand-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.brand-logo-badge {
  background: linear-gradient(180deg, #ffea79 0%, #ff9f1c 100%);
  border: 2.5px solid #3d2200;
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  -webkit-text-stroke: 1px #3d2200;
  text-shadow: 0 1.5px 0 #3d2200;
  box-shadow: 0 3px 0 #3d2200, inset 0 2px 0 rgba(255,255,255,0.8);
  white-space: nowrap;
}
.score-pill {
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid #1d3557;
  border-radius: 999px;
  padding: 2px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 900;
  font-size: 11px;
  color: #1d3557;
  box-shadow: 0 2px 0 rgba(29, 53, 87, 0.25);
}

.search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2.5px solid #1b263b;
  border-radius: 999px;
  padding: 2px 3px 2px 11px;
  width: 175px;
  height: 38px;
  box-shadow: 0 4px 0 rgba(27, 38, 59, 0.22);
}
.search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 13px;
  font-weight: 800;
  color: #1b263b;
  background: transparent;
}
.search-box input::placeholder {
  color: #94a3b8;
}
.btn-search {
  width: 38px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffee65 0%, #ffaa00 100%);
  border: 2px solid #1b263b;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
}

.floating-daily {
  position: absolute;
  left: 8px;
  top: 76px;
  z-index: 25;
  width: 58px;
  height: 60px;
  background: linear-gradient(180deg, #fff5b8 0%, #ffc300 60%, #ff9500 100%);
  border: 2.5px solid #3d2600;
  border-radius: 16px;
  box-shadow: 0 5px 0 #3d2600, 0 8px 16px rgba(0,0,0,0.25), inset 0 2px 0 rgba(255,255,255,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: floatBob 2.4s ease-in-out infinite;
}
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.floating-daily .gift-ico {
  font-size: 25px;
  line-height: 1;
}
.floating-daily .gift-lbl {
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(180deg, #ff4d6d 0%, #c9184a 100%);
  padding: 1px 5px;
  border-radius: 7px;
  border: 1.5px solid #222;
  margin-top: 2px;
}

/* 2x3 关卡卡片网格 */
.cards-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 12px 14px;
  padding: 10px 18px 8px 18px;
  margin-top: 20px;
  min-height: 0;
  z-index: 10;
}

.level-card {
  position: relative;
  background: linear-gradient(180deg, #b8f2e6 0%, #64dfdf 45%, #48bfe3 100%);
  border: 3.5px solid #1b3a4b;
  border-radius: 20px;
  padding: 6px 6px 34px 6px;
  box-shadow: 0 6px 0 #1b3a4b, 0 10px 18px rgba(0, 0, 0, 0.22), inset 0 2.5px 0 rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  overflow: hidden;
}
.level-card:hover {
  transform: translateY(-3px);
}
.level-card:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #1b3a4b;
}

.card-preview {
  flex: 1;
  width: 100%;
  background: #fff8ea;
  border: 2.5px solid #1b3a4b;
  border-radius: 13px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-preview img.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: url(#hd-sharpen) contrast(1.06) saturate(1.08);
  transform: translateZ(0);
  backface-visibility: hidden;
}
.card-preview .cover-overlay-badge {
  position: absolute;
  bottom: 5px;
  left: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(3px);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  background: linear-gradient(180deg, #ff6b6b 0%, #d90429 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 8px;
  border: 1.5px solid #222;
  z-index: 4;
}
.card-cleared {
  position: absolute;
  top: 4px;
  right: 4px;
  background: linear-gradient(180deg, #ffee65 0%, #fca311 100%);
  color: #1b263b;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 8px;
  border: 1.5px solid #1b263b;
  z-index: 4;
}
.card-lock {
  position: absolute;
  right: 9px;
  bottom: 36px;
  width: 28px;
  height: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  border: 2px solid #1b263b;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  z-index: 5;
}
.card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  -webkit-text-stroke: 1.2px #102a43;
  text-shadow: 0 2px 0 #102a43;
}

.bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 18px 6px;
  z-index: 15;
}
.circle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.1s;
}
.circle-btn:active {
  transform: scale(0.92);
}
.circle-btn .c-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #ffffff 0%, #bde0fe 55%, #48cae4 100%);
  border: 3px solid #1b3a4b;
  box-shadow: 0 4px 0 #1b3a4b, inset 0 2px 0 rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.circle-btn .c-icon.c-orange {
  background: radial-gradient(circle at 32% 26%, #fff3b0 0%, #ffb703 65%, #fb8500 100%);
}
.circle-btn .c-icon.c-blue {
  background: radial-gradient(circle at 32% 26%, #e0fbfc 0%, #90e0ef 65%, #00b4d8 100%);
}
.circle-btn .c-icon.c-pink {
  background: radial-gradient(circle at 32% 26%, #ffe5ec 0%, #ff8fab 65%, #fb6f92 100%);
}
.circle-btn .c-icon.c-gold {
  background: radial-gradient(circle at 32% 26%, #fffffc 0%, #ffd166 65%, #f4a261 100%);
}
.circle-btn .c-lbl {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  -webkit-text-stroke: 1.1px #102a43;
  text-shadow: 0 1.5px 0 #102a43;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 4px 16px 14px;
  z-index: 15;
}
.page-arrow {
  width: 56px;
  height: 36px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff066 0%, #ffaa00 55%, #e88d00 100%);
  border: 2.5px solid #1b263b;
  box-shadow: 0 4px 0 #1b263b, inset 0 2px 0 rgba(255,255,255,0.85);
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  -webkit-text-stroke: 1px #1b263b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.page-indicator {
  min-width: 98px;
  height: 36px;
  border-radius: 18px;
  background: linear-gradient(180deg, #a2d2ff 0%, #5fa8d3 100%);
  border: 2.5px solid #1b3a4b;
  box-shadow: 0 3px 0 #1b3a4b, inset 0 2px 0 rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  -webkit-text-stroke: 1px #1b3a4b;
  text-shadow: 0 1.5px 0 #1b3a4b;
  padding: 0 16px;
}

/* ================= 游戏内闯关界面 (无剧透纯净原版风格) ================= */
#game-screen {
  background: #1e293b;
}

.game-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: linear-gradient(180deg, #caf0f8 0%, #90e0ef 100%);
  border-bottom: 3px solid #1b3a4b;
  z-index: 30;
}

.hud-btn {
  height: 36px;
  padding: 0 11px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff066 0%, #ffaa00 100%);
  border: 2.5px solid #1b263b;
  box-shadow: 0 3px 0 #1b263b, inset 0 2px 0 rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 900;
  color: #1b263b;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.hud-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #1b263b;
}
.hud-btn.secondary {
  background: linear-gradient(180deg, #98c1d9 0%, #3d5a80 100%);
  color: #fff;
}

.hud-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  margin: 0 6px;
}
.hud-level-name {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  -webkit-text-stroke: 1.1px #102a43;
  text-shadow: 0 1.5px 0 #102a43;
}
.hud-timer {
  font-size: 12px;
  font-weight: 900;
  color: #9c4221;
  background: rgba(255, 255, 255, 0.92);
  padding: 1px 10px;
  border-radius: 99px;
  border: 1.5px solid #9c4221;
  margin-top: 2px;
}

/* 关卡目标横幅 */
.topic-banner {
  background: linear-gradient(180deg, #fff8d6 0%, #ffe699 100%);
  border-bottom: 2.5px solid #1b263b;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 900;
  color: #3d2600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 25;
}
.topic-progress {
  background: linear-gradient(180deg, #ff9f1c 0%, #e76f51 100%);
  color: #fff;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 99px;
  border: 2px solid #1b263b;
  box-shadow: 0 2px 0 #1b263b;
}

/* 舞台交互区 */
.stage-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #111827;
  display: flex;
  flex-direction: column;
}

.fx-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  overflow: hidden;
}
.fx-burst {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: 900;
  color: #ffbe0b;
  text-shadow: 0 2px 4px rgba(0,0,0,0.75);
  animation: burstUp 0.85s ease-out forwards;
}
@keyframes burstUp {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.6); }
  50% { opacity: 1; transform: translate(-50%, -95%) scale(1.2); }
  100% { opacity: 0; transform: translate(-50%, -135%) scale(1); }
}

/* 角色语音气泡 (talkLabel) */
.talk-bubble {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  max-width: 88%;
  background: rgba(255, 255, 255, 0.95);
  border: 2.5px solid #1b263b;
  border-radius: 14px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 900;
  color: #1d3557;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  text-align: center;
}
.talk-bubble.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ================= 无遮挡全景手绘舞台 ================= */
.scene-canvas {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.illustrated-stage {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  filter: url(#hd-sharpen) contrast(1.04) saturate(1.05);
}

/*
 * 隐形交互热区 (未发现时 100% 透明无遮挡！绝不剧透画面内容)
 */
.scene-hitbox {
  position: absolute;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 发现后画出的手绘风红圈 (quan-ring) */
.scene-hitbox .quan-ring {
  position: absolute;
  inset: 0;
  border: 4px solid #ef233c;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.35);
  transition: all 0.28s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  box-shadow: 0 0 10px rgba(239, 35, 60, 0.65), inset 0 0 6px rgba(239, 35, 60, 0.35);
}
.scene-hitbox.done .quan-ring {
  opacity: 1;
  transform: scale(1);
}

/* 发现后在红圈底部浮现的小巧变化角标 (未发现时完全隐藏) */
.scene-hitbox .found-badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) scale(0.5);
  background: rgba(27, 67, 50, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 99px;
  border: 1.5px solid #95d5b2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.scene-hitbox.done .found-badge {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* 只有当玩家主动点击【💡提示】时，才在对应位置闪烁一个发光虚线提示圈（不显示文字剧透） */
.scene-hitbox.highlight-tip {
  border: 3.5px dashed #ffbe0b;
  background: rgba(255, 190, 11, 0.22);
  box-shadow: 0 0 18px rgba(255, 190, 11, 0.95);
  animation: tipRingPulse 0.85s infinite alternate;
  z-index: 35;
}
@keyframes tipRingPulse {
  from { transform: translate(-50%, -50%) scale(0.92); }
  to { transform: translate(-50%, -50%) scale(1.08); }
}

/* 二选一关卡 (Level846) 的轻量级气泡选项 */
.choice-bubble {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.92) 0%, rgba(226,232,240,0.88) 100%);
  border: 3.5px solid #1b263b;
  box-shadow: 0 6px 0 #1b263b, 0 10px 24px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: transform 0.15s;
}
.choice-bubble:hover {
  transform: translate(-50%, -53%) scale(1.04);
}
.choice-bubble.inspected {
  background: radial-gradient(circle, #fffef2 0%, #fef08a 100%);
  border-color: #d97706;
}

/* ================= 底部栏：左侧固定道具区 + 右侧未知线索槽(?) ================= */
.bottom-bar-wrap {
  height: 102px;
  background: linear-gradient(180deg, #ffe599 0%, #f6b26b 45%, #e69138 100%);
  border-top: 3.5px solid #3d2200;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  padding: 6px 10px;
  gap: 8px;
  z-index: 30;
}

.fixed-tool-dock {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.fixed-tool-dock:empty {
  display: none;
}

.bottom-tray {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.bottom-tray::-webkit-scrollbar {
  display: none;
}

.tray-slot {
  min-width: 72px;
  height: 82px;
  background: linear-gradient(180deg, #ffffff 0%, #fff8e7 100%);
  border: 2.5px solid #3d2200;
  border-radius: 14px;
  box-shadow: 0 4px 0 #3d2200, inset 0 2px 0 rgba(255,255,255,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s;
}
.tray-slot.mystery .slot-ico {
  font-size: 28px;
  color: #e63946;
  font-weight: 900;
}
.tray-slot.mystery .slot-lbl {
  display: none;
}
.tray-slot.found {
  background: linear-gradient(180deg, #d8f3dc 0%, #95d5b2 100%);
  border-color: #1b4332;
  box-shadow: 0 4px 0 #1b4332;
  animation: popIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.tray-slot.draggable-tool {
  cursor: grab;
  background: linear-gradient(180deg, #fff0f5 0%, #ffc2d1 100%);
  border: 3px solid #800f2f;
  box-shadow: 0 4px 0 #800f2f;
}
.tray-slot.draggable-tool:active {
  cursor: grabbing;
  transform: scale(0.95);
}
.tray-slot.used {
  opacity: 0.35;
  pointer-events: none;
  filter: grayscale(1);
}
.tray-slot .slot-ico {
  font-size: 26px;
  line-height: 1.1;
}
.tray-slot .slot-lbl {
  font-size: 11px;
  font-weight: 900;
  color: #1b263b;
  text-align: center;
  margin-top: 3px;
  line-height: 1.15;
}

@keyframes popIn {
  0% { transform: scale(0.6); }
  100% { transform: scale(1); }
}

/* 浮动拖拽幽灵节点 */
#drag-ghost {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 3.5px solid #ff9f1c;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
}
#drag-ghost .g-ico {
  font-size: 30px;
}
#drag-ghost .g-lbl {
  font-size: 10px;
  font-weight: 900;
  color: #222;
}

/* ================= 模态弹窗 ================= */
.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-mask.show {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 365px;
  background: linear-gradient(180deg, #ffffff 0%, #f1faee 100%);
  border: 4px solid #1d3557;
  border-radius: 24px;
  box-shadow: 0 12px 0 #1d3557, 0 24px 48px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: popIn 0.22s ease-out;
}

.modal-header {
  background: linear-gradient(180deg, #ffe066 0%, #fca311 100%);
  border-bottom: 3.5px solid #1d3557;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  -webkit-text-stroke: 1.2px #1d3557;
  text-shadow: 0 2px 0 #1d3557;
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff6b6b 0%, #e63946 100%);
  border: 2.5px solid #1d3557;
  box-shadow: 0 2px 0 #1d3557;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 16px;
  max-height: 62vh;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
  color: #1d3557;
  font-weight: 800;
  white-space: pre-wrap;
}

.modal-illustration-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}
.modal-banner-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 20px;
  border: 3px solid #1d3557;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 12px;
  border: 2px solid #cbd5e1;
}

.modal-footer {
  padding: 0 16px 16px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-primary {
  padding: 10px 22px;
  border-radius: 99px;
  background: linear-gradient(180deg, #b5e48c 0%, #52b788 50%, #2d6a4f 100%);
  border: 2.5px solid #1d3557;
  box-shadow: 0 4px 0 #1d3557, inset 0 2px 0 rgba(255,255,255,0.8);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  text-shadow: 0 1.5px 0 #1d3557;
}
.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #1d3557;
}

.btn-warn {
  padding: 10px 20px;
  border-radius: 99px;
  background: linear-gradient(180deg, #ffd166 0%, #f77f00 100%);
  border: 2.5px solid #1d3557;
  box-shadow: 0 4px 0 #1d3557, inset 0 2px 0 rgba(255,255,255,0.8);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  text-shadow: 0 1.5px 0 #1d3557;
}
.btn-warn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #1d3557;
}

.dial-lcd-screen {
  background: linear-gradient(180deg, #d8f3dc 0%, #b7e4c7 100%);
  border: 3px solid #1d3557;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  font-size: 19px;
  font-weight: 900;
  color: #1b4332;
  letter-spacing: 2px;
}
.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.key-btn {
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  border: 2.5px solid #1d3557;
  box-shadow: 0 4px 0 #1d3557;
  font-size: 20px;
  font-weight: 900;
  color: #1d3557;
  cursor: pointer;
}

/* 飘字 Toast 提示 */
#toast-tip {
  position: absolute;
  bottom: 114px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  padding: 8px 16px;
  border-radius: 99px;
  border: 2px solid #ffd166;
  font-size: 13px;
  font-weight: 900;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
  white-space: nowrap;
}
#toast-tip.show {
  opacity: 1;
}
