/* 《救媽媽》— 擬真手機 UI */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  background: #0a0a0c;
  color: #111;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; border: none; background: none; cursor: pointer; }

/* ===== 舞台與外框 ===== */
#stage {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#frame {
  width: 100%;
  max-width: 430px;
  height: 100%;
  max-height: 932px;
  display: flex;
  flex-direction: column;
  background: #0a0a0c;
  position: relative;
  overflow: hidden;
}
@media (min-width: 500px) and (min-height: 980px) {
  #frame { border-radius: 40px; box-shadow: 0 0 0 10px #1c1c1e, 0 30px 80px rgba(0,0,0,.8); }
}

/* ===== 頂部黑條（Snoop 式框架） ===== */
#topbar {
  flex: none;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
#topbar.show { display: flex; }
#topbar .q-progress { color: #bbb; font-weight: 500; }

/* ===== 手機螢幕（白色圓角面板） ===== */
#phone {
  flex: 1;
  min-height: 0;
  margin: 0 10px 4px;
  background: #fff;
  border-radius: 44px;
  position: relative;
  overflow: hidden;
  display: none;
  box-shadow: 0 0 0 3px #3d3d42, 0 0 0 6px #141416, 0 18px 50px rgba(0,0,0,.65);
}
#phone.show { display: block; }

/* 動態島與 Home 橫條 */
#dyn-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 112px;
  height: 31px;
  background: #000;
  border-radius: 20px;
  z-index: 50;
  pointer-events: none;
}
#home-indicator {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 132px;
  height: 5px;
  border-radius: 3px;
  background: rgba(60,60,67,.55);
  z-index: 36;
  pointer-events: none;
}

.statusbar {
  position: absolute;
  top: 14px; left: 0; right: 0;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px 0 34px;
  font-size: 15px;
  font-weight: 600;
  z-index: 30;
  pointer-events: none;
  color: #111;
  letter-spacing: .2px;
}
.statusbar.light { color: #fff; }
.statusbar .sb-right { display: flex; gap: 6px; align-items: center; font-size: 11.5px; font-weight: 700; }
.statusbar .sig { display: flex; gap: 1.5px; align-items: flex-end; }
.statusbar .sig i { display: block; width: 3px; background: currentColor; border-radius: 1px; }
.statusbar .sig i:nth-child(1) { height: 4px; }
.statusbar .sig i:nth-child(2) { height: 6px; }
.statusbar .sig i:nth-child(3) { height: 8px; }
.statusbar .sig i:nth-child(4) { height: 10px; opacity: .35; }
.statusbar .batt {
  position: relative;
  width: 25px; height: 12.5px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  opacity: .95;
}
.statusbar .batt:after {
  content: '';
  position: absolute;
  right: -4.5px; top: 2.5px;
  width: 2.5px; height: 5px;
  background: currentColor;
  border-radius: 0 2px 2px 0;
  opacity: .5;
}
.statusbar .batt-level {
  position: absolute;
  left: 1.5px; top: 1.5px; bottom: 1.5px;
  width: 62%;
  background: currentColor;
  border-radius: 1.5px;
}

/* ===== App 畫面共用 ===== */
.app-screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}
.app-screen.active { display: flex; }
.app-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 40px; }
.navhead {
  flex: none;
  padding: 52px 16px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,249,249,.94);
  backdrop-filter: blur(10px);
  border-bottom: .5px solid #e2e2e2;
  z-index: 10;
}
.navhead .back {
  color: #0a7cff;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px 4px 0;
}
.navhead .nav-title { font-size: 17px; font-weight: 700; flex: 1; text-align: center; }
.navhead .nav-sub { font-size: 12px; color: #888; font-weight: 400; }
.navhead .nav-spacer { width: 52px; }
.navhead .nav-avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; }

/* ===== 主畫面 ===== */
#scr-home { background: linear-gradient(160deg, #3d3358 0%, #6b5a8e 45%, #b48ea8 100%); }
#home-widget {
  margin: 78px 24px 8px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.25);
}
#home-widget .hw-time { font-size: 46px; font-weight: 300; letter-spacing: 1px; }
#home-widget .hw-date { font-size: 15px; margin-top: 2px; opacity: .92; }
#icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 8px;
  padding: 22px 20px;
}
.app-icon { display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; }
.app-icon .ic {
  width: 58px; height: 58px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 29px;
  box-shadow: 0 4px 10px rgba(0,0,0,.22);
  overflow: hidden;
}
.app-icon .ic svg { width: 100%; height: 100%; display: block; }
.app-icon .lb { font-size: 11.5px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.app-icon .badge {
  position: absolute;
  top: -5px; right: 6px;
  min-width: 19px; height: 19px;
  background: #ff3b30;
  color: #fff;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
#dock {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  background: rgba(255,255,255,.28);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  display: flex;
  justify-content: space-around;
  padding: 10px 6px;
}
#dock .app-icon .lb { display: none; }

/* ===== 訊息列表（擬真通訊軟體） ===== */
#scr-msglist .navhead { padding-top: 52px; }
.chat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: #fff;
  cursor: pointer;
}
.chat-row:active { background: #f0f0f2; }
.chat-avatar {
  width: 50px; height: 50px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
}
.chat-info { flex: 1; min-width: 0; }
.chat-name { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.chat-name .members { font-size: 13px; color: #999; font-weight: 400; }
.chat-name .official-badge { font-size: 10px; background: #4a6fa5; color: #fff; border-radius: 4px; padding: 1px 4px; }
.chat-preview { font-size: 13.5px; color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.chat-meta { flex: none; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.chat-time { font-size: 12px; color: #a0a0a0; }
.chat-unread {
  min-width: 19px; height: 19px;
  background: #06C755;
  color: #fff;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ===== 聊天室 ===== */
.chatroom .app-body { background: #7494C0; padding: 8px 10px 20px; }
.day-sep { text-align: center; margin: 14px 0 6px; }
.day-sep span {
  background: rgba(0,0,0,.18);
  color: #fff;
  font-size: 11.5px;
  border-radius: 10px;
  padding: 3px 10px;
}
.msg-line { display: flex; margin: 6px 0; align-items: flex-end; gap: 6px; }
.msg-line.mine { flex-direction: row-reverse; }
.msg-avatar {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  align-self: flex-start;
}
.msg-stack { max-width: 74%; display: flex; flex-direction: column; }
.msg-sender { font-size: 12px; color: #edf1f7; margin: 0 0 3px 4px; text-shadow: 0 1px 2px rgba(0,0,0,.15); }
.bubble {
  background: #fff;
  border-radius: 16px;
  border-top-left-radius: 4px;
  padding: 9px 12px;
  font-size: 15px;
  line-height: 1.45;
  word-break: break-word;
  box-shadow: 0 1px 1px rgba(0,0,0,.08);
  cursor: pointer;
  position: relative;
}
.mine .bubble { background: #8CE24F; border-top-left-radius: 16px; border-top-right-radius: 4px; }
.msg-time { font-size: 10.5px; color: #dfe6ef; flex: none; margin-bottom: 2px; text-shadow: 0 1px 2px rgba(0,0,0,.15); }
.bubble .chat-img { margin: -3px -6px 6px; }

/* 聊天內圖片（擬真縮圖） */
.chat-img {
  width: 190px;
  height: 130px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  text-align: center;
  padding: 8px;
}
.chat-img .ci-emoji { font-size: 34px; }
.chat-img .ci-text { font-size: 12px; opacity: .95; }
.chat-img .ci-num { font-size: 22px; font-weight: 800; letter-spacing: .5px; }
.img-profit { background: #14181f; }
.img-profit .ci-num { color: #37d67a; }
.img-profit .ci-text { color: #8a93a3; }
.img-lotus { background: linear-gradient(150deg, #f2a0b5, #e86a8a); }
.img-sunrise { background: linear-gradient(170deg, #f7b733, #e2574c); }
.img-real { background-size: cover; background-position: center; justify-content: flex-end; }
.img-real .ci-overlay {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.75), 0 0 2px rgba(0,0,0,.6);
  padding-bottom: 6px;
}

/* ===== 相簿 ===== */
.album-section-title { font-size: 20px; font-weight: 800; padding: 14px 16px 6px; display: flex; align-items: center; gap: 6px; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 0 3px;
}
.photo-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  text-align: center;
  padding: 6px;
  overflow: hidden;
}
.photo-cell .pc-emoji { font-size: 34px; }
.photo-cell.pc-real { background-size: cover; background-position: center; }
.album-tools { padding: 8px 16px 30px; }
.tool-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 4px;
  border-bottom: .5px solid #e5e5e5;
  font-size: 16.5px;
  cursor: pointer;
}
.tool-row .tr-ic { font-size: 20px; width: 30px; text-align: center; }
.tool-row .tr-lock { margin-left: auto; color: #b5b5b5; font-size: 15px; }
/* 照片檢視 */
#scr-photoview { background: #000; }
#scr-photoview .navhead { background: rgba(20,20,20,.9); border-bottom-color: #222; }
#scr-photoview .nav-title { color: #fff; }
#pv-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; gap: 18px; }
#pv-img {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3/4;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  padding: 20px;
  text-align: center;
  cursor: pointer;
}
#pv-img .pv-emoji { font-size: 72px; }
#pv-img .pv-num { font-size: 34px; font-weight: 800; color: #37d67a; }
#pv-caption { color: #c9c9c9; font-size: 13.5px; line-height: 1.6; padding: 0 10px 8px; }
.pk-photo { background: linear-gradient(155deg, #6b8f5e, #38543a); }
#pv-img.pv-real { background: none; padding: 0; aspect-ratio: auto; max-height: 62vh; overflow: auto; }
#pv-img.pv-real img { max-width: 100%; max-height: 62vh; border-radius: 4px; object-fit: contain; cursor: zoom-in; transition: transform .15s; }
#pv-img.pv-real.zoomed { max-height: 62vh; overflow: auto; }
#pv-img.pv-real.zoomed img { max-width: none; max-height: none; width: 200%; cursor: zoom-out; }
#pv-actions { flex: none; padding: 10px 18px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
#pv-actions .pv-zoomhint { font-size: 12px; color: #8a8f98; }
#pv-actions .pv-flag {
  width: 100%; max-width: 340px;
  background: #e5484d; color: #fff;
  font-size: 16px; font-weight: 800;
  border-radius: 14px; padding: 14px;
}
#pv-actions .pv-flag:active { transform: scale(.98); }
.pk-screenshot { background: #14181f; }
.pk-portrait { background: linear-gradient(160deg, #40507a, #1f2740); }
.pk-idcard { background: linear-gradient(150deg, #7fa8a0, #4d7a72); }
.pk-news { background: linear-gradient(160deg, #5a5a66, #2c2c33); }

/* ===== 備忘錄 ===== */
#scr-notes .app-body { background: #f6f6f2; }
.note-row {
  margin: 8px 14px;
  background: #fff;
  border-radius: 12px;
  padding: 13px 16px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.note-row .nr-title { font-size: 16px; font-weight: 600; }
.note-row .nr-sub { font-size: 13px; color: #999; margin-top: 3px; }
#scr-noteview .app-body { background: #fffef8; padding: 14px 20px 40px; }
#nv-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
#nv-time { font-size: 12.5px; color: #a5a196; margin-bottom: 16px; }
#nv-body { font-size: 16.5px; line-height: 1.9; white-space: pre-wrap; color: #2b2a26; }

/* ===== 通話 ===== */
.call-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: .5px solid #ececec;
}
.call-row .cr-name { font-size: 16px; font-weight: 500; }
.call-row .cr-name.missed { color: #ff3b30; }
.call-row .cr-detail { font-size: 13px; color: #909090; margin-top: 2px; }
.call-row .cr-time { margin-left: auto; font-size: 13px; color: #a0a0a0; flex: none; }
.call-row .cr-ic { font-size: 18px; width: 26px; text-align: center; }

/* ===== 銀行 App ===== */
#scr-bank .app-body { background: #eef1f6; }
#bank-head {
  background: linear-gradient(140deg, #274b8a, #3a6ec4);
  color: #fff;
  padding: 62px 20px 20px;
}
#bank-head .bh-brand { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
#bank-head .bh-label { font-size: 12px; opacity: .8; margin-top: 14px; }
#bank-head .bh-balance { font-size: 34px; font-weight: 800; letter-spacing: .5px; }
.bank-list-title { font-size: 14px; font-weight: 700; color: #66707f; padding: 16px 18px 6px; }
.bank-row {
  display: flex;
  align-items: center;
  margin: 0 12px 8px;
  background: #fff;
  border-radius: 12px;
  padding: 13px 15px;
  cursor: pointer;
}
.bank-row .bk-info { flex: 1; }
.bank-row .bk-title { font-size: 15px; font-weight: 600; }
.bank-row .bk-note { font-size: 12.5px; color: #93999f; margin-top: 2px; }
.bank-row .bk-amt { font-size: 16px; font-weight: 700; }
.bank-row .bk-amt.pos { color: #d33; }
.bank-row .bk-amt.neg { color: #2a7a3f; }
.bank-row.pending { border: 1.5px dashed #e8a33d; }
.bank-row .bk-day { font-size: 12px; color: #a8adb3; width: 40px; flex: none; }

/* ===== 劇情／標題全螢幕 ===== */
.full-screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  color: #eee;
  background: #0a0a0c;
  z-index: 60;
  overflow-y: auto;
}
.full-screen.active { display: flex; }
#s-title .t-logo { font-size: 64px; }
#s-title h1 { font-size: 40px; font-weight: 900; letter-spacing: 6px; color: #fff; margin: 16px 0 6px; }
#s-title .t-sub { color: #999; font-size: 15px; margin-bottom: 8px; }
#s-title .t-chapter {
  color: #d8b04a;
  font-size: 14px;
  border: 1px solid #5a4a20;
  border-radius: 999px;
  padding: 5px 16px;
  margin: 14px 0 34px;
}
.btn-primary {
  background: #fcc71d;
  color: #201a05;
  font-size: 17px;
  font-weight: 800;
  border-radius: 999px;
  padding: 15px 52px;
  box-shadow: 0 6px 24px rgba(252,199,29,.25);
}
.btn-primary:active { transform: scale(.97); }
.btn-ghost { color: #888; font-size: 14px; margin-top: 18px; padding: 8px 20px; }
#s-title .t-foot { position: absolute; bottom: 26px; font-size: 11.5px; color: #555; line-height: 1.7; }
#s-story .story-text {
  max-width: 340px;
  text-align: left;
  font-size: 16.5px;
  line-height: 2.05;
  color: #d5d5d5;
  white-space: pre-wrap;
  margin-bottom: 36px;
}
/* 前後測畫面 */
.quiz-box { max-width: 360px; width: 100%; }
.qz-lead { color: #fcc71d; font-size: 15px; font-weight: 700; text-align: center; margin-bottom: 16px; }
.qz-scenario {
  background: #17181d; border: 1px solid #34343c; border-radius: 16px;
  padding: 18px 18px; font-size: 15.5px; line-height: 1.75; color: #e4e6ea;
  white-space: pre-wrap; margin-bottom: 20px;
}
.qz-q { font-size: 18px; font-weight: 800; color: #fff; text-align: center; margin-bottom: 16px; }
.qz-options { display: flex; flex-direction: column; gap: 10px; }
.qz-opt {
  width: 100%; text-align: center; border: 1.5px solid #3a3d46; background: #1d1d22;
  color: #e4e6ea; font-size: 16px; font-weight: 600; border-radius: 14px; padding: 15px;
}
.qz-opt:active { background: #26262c; }
.qz-opt.picked { border-color: #fcc71d; background: rgba(252,199,29,.12); }
/* 結案報告知識增益 */
.r-gain {
  width: 100%; max-width: 350px; margin: 14px auto 0;
  background: rgba(111,207,151,.08); border: 1px solid rgba(111,207,151,.3);
  border-radius: 14px; padding: 14px 16px; text-align: center;
  font-size: 14px; color: #b9bec7;
}
.r-gain b { color: #6fcf97; font-weight: 800; }
.r-gain .rg-big { font-size: 22px; font-weight: 900; color: #6fcf97; }

#s-connect .conn-ring {
  width: 74px; height: 74px;
  border-radius: 50%;
  border: 3px solid #333;
  border-top-color: #fcc71d;
  animation: spin 1s linear infinite;
  margin-bottom: 26px;
}
@keyframes spin { to { transform: rotate(360deg); } }
#s-connect .conn-text { font-size: 19px; font-weight: 700; color: #fff; }
#s-connect .conn-sub { font-size: 13px; color: #888; margin-top: 8px; }

/* ===== 題目系統 ===== */
#qpill {
  flex: none;
  margin: 10px 14px 14px;
  background: #1d1d22;
  color: #fff;
  border: 1px solid #34343c;
  border-radius: 18px;
  padding: 13px 16px;
  display: none;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}
#qpill.show { display: flex; }
#qpill.shake { animation: shake .4s; }
#qpill .qp-badge {
  flex: none;
  background: #fcc71d;
  color: #201a05;
  font-size: 12.5px;
  font-weight: 800;
  border-radius: 8px;
  padding: 4px 8px;
}
#qpill .qp-text { flex: 1; font-size: 13.5px; color: #ddd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#qpill .qp-arrow { color: #999; font-size: 13px; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-7px); }
  40%,80% { transform: translateX(7px); }
}

/* 題目卡 */
.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: none;
  align-items: flex-end;
  z-index: 50;
}
.sheet-mask.show { display: flex; }
.q-sheet {
  width: 100%;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(160deg, #b6a4e3 0%, #cbb1de 55%, #e3c2d9 100%);
  padding: 18px 20px 30px;
  max-height: 82%;
  overflow-y: auto;
  animation: slideup .28s ease;
}
@keyframes slideup { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.q-sheet .qs-handle { width: 44px; height: 5px; border-radius: 3px; background: rgba(0,0,0,.18); margin: 0 auto 14px; }
.q-sheet .qs-asker { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 14px; }
.q-sheet .qs-avatar {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: #6a9fd8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border: 3px solid rgba(255,255,255,.75);
}
.q-sheet .qs-name { font-size: 15px; font-weight: 700; color: #3a2f52; }
.q-card {
  background: #fff;
  border: 2px solid #3f9e63;
  border-radius: 18px;
  padding: 16px 18px 20px;
}
.q-card .qc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.q-card .qc-num { font-size: 13px; color: #777; font-weight: 600; }
.q-card .qc-prompt { font-size: 17.5px; font-weight: 700; line-height: 1.65; color: #1c1c1e; }
.q-card .qc-hint {
  margin-top: 12px;
  background: #fff7df;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: #7a6220;
  display: none;
}
.q-card .qc-hint.show { display: block; }
.q-answer { margin-top: 16px; }
.q-answer .qa-input {
  width: 100%;
  border: 1.5px solid #ddd;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 16px;
  background: #f7f5fb;
  outline: none;
}
.q-answer .qa-input:focus { border-color: #8f7cc9; }
.q-answer .qa-submit {
  width: 100%;
  margin-top: 10px;
  background: #3f9e63;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  padding: 13px;
}
.q-option {
  width: 100%;
  text-align: left;
  border: 1.5px solid #ddd;
  background: #fafafa;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.5;
  margin-top: 8px;
  color: #222;
}
.q-option:active { background: #eee; }
.q-option.wrong { border-color: #e07070; background: #fbecec; color: #b04a4a; animation: shake .4s; }
.qa-golook {
  width: 100%;
  margin-top: 16px;
  background: #2b2b30;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  padding: 14px;
}
.qa-golook span { color: #fcc71d; }

/* 破詐卡 */
.f-sheet {
  width: 100%;
  border-radius: 26px 26px 0 0;
  background: #17181d;
  color: #eee;
  padding: 22px 22px 32px;
  max-height: 86%;
  overflow-y: auto;
  animation: slideup .3s ease;
}
.f-sheet .fs-ok { text-align: center; font-size: 42px; }
.f-sheet .fs-okmsg { text-align: center; color: #6fcf97; font-weight: 800; font-size: 17px; margin: 4px 0 18px; }
.f-card {
  border: 1px solid #3a3d46;
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(170deg, #1e2027, #17181d);
}
.f-card .fc-tag {
  display: inline-block;
  background: #fcc71d;
  color: #201a05;
  font-size: 12px;
  font-weight: 800;
  border-radius: 6px;
  padding: 3px 9px;
  margin-bottom: 10px;
}
.f-card .fc-title { font-size: 19px; font-weight: 800; color: #fff; line-height: 1.5; }
.f-card .fc-body { font-size: 14.5px; line-height: 1.85; color: #c4c8d0; margin-top: 10px; }
.f-card .fc-motto {
  margin-top: 14px;
  background: rgba(252,199,29,.1);
  border-left: 3px solid #fcc71d;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #f5d569;
}
.f-sheet .fs-src { font-size: 11px; color: #565a63; margin-top: 12px; text-align: center; }
.f-sheet .fs-next {
  width: 100%;
  margin-top: 16px;
  background: #fcc71d;
  color: #201a05;
  font-size: 16.5px;
  font-weight: 800;
  border-radius: 14px;
  padding: 15px;
}

/* 蒐證模式提示帶 */
#evi-banner {
  position: absolute;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20,20,24,.92);
  color: #fcc71d;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 18px;
  display: none;
  z-index: 45;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  pointer-events: none;
}
#evi-banner.show { display: block; }

/* Toast */
#toast {
  position: absolute;
  bottom: 92px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30,30,34,.95);
  color: #fff;
  font-size: 14px;
  border-radius: 12px;
  padding: 11px 20px;
  z-index: 70;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
  white-space: nowrap;
}
#toast.show { opacity: 1; }

/* 敘事插頁 */
#narrative .n-box { max-width: 330px; }
#narrative .n-text { font-size: 16.5px; line-height: 2; color: #d8d8d8; white-space: pre-wrap; text-align: left; margin-bottom: 30px; }

/* ===== 結局 ===== */
#s-ending { justify-content: flex-start; padding-top: 60px; }
#s-ending .e-story {
  max-width: 340px;
  text-align: left;
  font-size: 15.5px;
  line-height: 2.05;
  color: #cfcfcf;
  white-space: pre-wrap;
  margin-bottom: 34px;
}
#s-report {
  justify-content: flex-start;
  padding-top: 40px;
  background: radial-gradient(120% 60% at 50% -5%, #23242e 0%, #0a0a0c 55%);
}
.rp-head { text-align: center; }
.rp-head .r-label { font-size: 13px; color: #8a8f98; letter-spacing: 4px; }
.rp-head .r-title { font-size: 30px; font-weight: 900; color: #fcc71d; margin: 6px 0 4px; }
.rp-head .r-desc { font-size: 14px; color: #b9bec7; }
.ev-visual { position: relative; margin-top: 18px; display: flex; justify-content: center; width: 100%; }
.ev-phone {
  width: 216px;
  border-radius: 22px;
  transform: rotate(-5deg);
  box-shadow: 0 24px 60px rgba(0,0,0,.7), 0 0 0 5px #1c1c22;
  display: block;
}
.ev-sticker {
  position: absolute;
  right: calc(50% - 168px);
  top: 14px;
  background: #e5484d;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  padding: 8px 12px;
  border-radius: 8px;
  transform: rotate(8deg);
  box-shadow: 0 6px 18px rgba(229,72,77,.4);
}
.ev-sticker small { display: block; font-size: 10px; font-weight: 600; opacity: .9; }
.ev-badge {
  position: absolute;
  left: calc(50% - 172px);
  bottom: -8px;
  background: #17181d;
  border: 1.5px solid #3f9e63;
  color: #6fcf97;
  font-size: 12.5px;
  font-weight: 800;
  border-radius: 999px;
  padding: 8px 14px;
  transform: rotate(-4deg);
}
.r-stats { display: flex; justify-content: center; gap: 32px; margin-top: 26px; }
.r-stat { text-align: center; }
.r-stat .v { font-size: 25px; font-weight: 900; color: #fff; line-height: 1.3; }
.r-stat .k { font-size: 11.5px; color: #8a8f98; margin-top: 2px; }
.r-punch { font-size: 13.5px; color: #c4c8d0; margin-top: 12px; text-align: center; }
.reward-card {
  width: 100%;
  max-width: 350px;
  margin-top: 14px;
  background: rgba(252,199,29,.08);
  border: 1px solid rgba(252,199,29,.4);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
}
.reward-card .rw-logo { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.reward-card .rw-title { font-size: 15.5px; font-weight: 800; color: #fcc71d; }
.reward-card .rw-body { font-size: 13px; color: #c4c8d0; line-height: 1.7; margin-top: 4px; }
.reward-card .rw-body b { color: #f5d569; }
.reward-card .rw-link { display: inline-block; margin-top: 6px; color: #84af4d; font-size: 13.5px; font-weight: 800; text-decoration: none; }
.e-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 350px; }
.e-actions .btn-primary { width: 100%; padding: 15px; }
.btn-secondary {
  width: 100%;
  border: 1.5px solid #4a4e58;
  color: #d5d8de;
  font-size: 15.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 14px;
}
.e-165 {
  margin-top: 20px;
  font-size: 12.5px;
  color: #7c828c;
  line-height: 1.8;
  max-width: 330px;
}
.e-165 b { color: #e8b64c; }
.e-credit { margin-top: 16px; font-size: 12px; color: #565a63; padding-bottom: 30px; }
.e-credit a { color: #84af4d; text-decoration: none; font-weight: 700; }

/* ===== 行事曆 ===== */
#scr-cal .app-body { background: #fff; }
.cal-head { padding: 6px 16px 2px; }
.cal-head .cy { font-size: 13px; color: #ff3b30; font-weight: 700; }
.cal-head .cm { font-size: 30px; font-weight: 800; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); padding: 6px 10px 4px; text-align: center; row-gap: 6px; }
.cal-grid .wd { font-size: 11px; color: #98989e; font-weight: 600; }
.cal-grid .d { font-size: 15px; padding: 6px 0; color: #1c1c1e; position: relative; }
.cal-grid .d.dim { color: transparent; }
.cal-grid .d.today {
  color: #fff;
}
.cal-grid .d.today::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 32px; height: 32px; border-radius: 50%; background: #ff3b30; z-index: -1;
}
.cal-grid .d.dot::after {
  content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: #c8c8cc;
}
.cal-events { border-top: .5px solid #e2e2e4; margin-top: 8px; }
.cal-ev { display: flex; gap: 12px; padding: 12px 16px; border-bottom: .5px solid #efeff1; }
.cal-ev .ce-day { width: 58px; flex: none; }
.cal-ev .ce-day .d1 { font-size: 13px; font-weight: 700; }
.cal-ev .ce-day .d2 { font-size: 11px; color: #98989e; }
.cal-ev .ce-bar { width: 4px; border-radius: 2px; background: #c8c8cc; flex: none; }
.cal-ev .ce-bar.red { background: #ff3b30; }
.cal-ev .ce-bar.blue { background: #007aff; }
.cal-ev .ce-bar.green { background: #34c759; }
.cal-ev .ce-info .t { font-size: 15px; font-weight: 600; }
.cal-ev .ce-info .s { font-size: 12.5px; color: #98989e; margin-top: 2px; }

/* ===== 天氣 ===== */
#scr-weather { background: linear-gradient(180deg, #2a3f63 0%, #17233c 60%, #0e1526 100%); }
#scr-weather .app-body { color: #fff; text-align: center; }
.wx-city { font-size: 30px; font-weight: 400; margin-top: 66px; }
.wx-temp { font-size: 84px; font-weight: 200; line-height: 1.1; margin-left: 18px; }
.wx-cond { font-size: 17px; color: #bcc8de; }
.wx-hl { font-size: 15px; color: #dfe6f2; margin-top: 4px; }
.wx-card {
  margin: 18px 14px 0;
  background: rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
}
.wx-card .wc-title { font-size: 11.5px; color: #9fb0cc; letter-spacing: .5px; margin-bottom: 8px; border-bottom: .5px solid rgba(255,255,255,.12); padding-bottom: 8px; }
.wx-hours { display: flex; justify-content: space-between; }
.wx-h { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; }
.wx-h .ic { font-size: 18px; }
.wx-h .tp { font-weight: 700; font-size: 15px; }
.wx-row { display: flex; align-items: center; padding: 9px 0; border-bottom: .5px solid rgba(255,255,255,.08); font-size: 15px; }
.wx-row:last-child { border-bottom: none; }
.wx-row .wr-d { width: 58px; }
.wx-row .wr-i { width: 40px; text-align: center; }
.wx-row .wr-lo { color: #8fa2c2; width: 40px; text-align: right; }
.wx-row .wr-hi { width: 40px; text-align: right; font-weight: 600; }
.wx-row .wr-bar { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.15); margin: 0 10px; position: relative; overflow: hidden; }
.wx-row .wr-bar i { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: linear-gradient(90deg,#4dd0a7,#f5c445); }

/* ===== 時鐘 ===== */
#scr-clock { background: #000; }
#scr-clock .app-body { color: #fff; }
#scr-clock .navhead { background: rgba(10,10,10,.92); border-bottom-color: #222; }
#scr-clock .nav-title { color: #fff; }
.ck-sec { font-size: 20px; font-weight: 800; padding: 14px 18px 4px; }
.ck-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: .5px solid #1e1e20; }
.ck-row .ck-city { font-size: 17px; }
.ck-row .ck-sub { font-size: 12px; color: #8e8e93; margin-top: 2px; }
.ck-row .ck-time { font-size: 34px; font-weight: 200; }
.ck-row .ck-al { font-size: 26px; font-weight: 300; }
.ck-row .ck-al small { font-size: 13px; color: #8e8e93; font-weight: 400; }
.ck-toggle { width: 46px; height: 28px; border-radius: 15px; background: #34c759; position: relative; flex: none; }
.ck-toggle::after { content: ''; position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; }
.ck-toggle.off { background: #3a3a3c; }
.ck-toggle.off::after { right: auto; left: 2px; }
