/* 琴律互動遊戲 樣式
   版面：固定 1920×1080 舞台，等比縮放置中
   風格：精品奢華・女性向・中間亮度
   色調：霧玫瑰灰底、毛玻璃面板、香檳金細線、象牙白文字
   形狀：拱門（紙娃娃）＋柔圓角（面板）＋膠囊（按鈕） */

:root {
  /* 色票：#f6ecec #ecd9d9 #e0c0c0 #d3a6a7 #c08081 #9a6667 #734d4d #4d3334 #261a1a */
  --base-hi: #d3a6a7;      /* 底色亮部 */
  --base: #c08081;         /* 主色：乾燥玫瑰 */
  --base-lo: #9a6667;      /* 底色暗部 */
  --glass: rgba(77, 51, 52, .50);        /* 毛玻璃面板 */
  --glass-strong: rgba(77, 51, 52, .82); /* 對話框等需要清楚的面板 */
  --glass-soft: rgba(246, 236, 236, .12);
  --line: rgba(240, 214, 176, .60);      /* 香檳金細線 */
  --line-soft: rgba(246, 236, 236, .28);
  --ivory: #f6ecec;        /* 主要文字 */
  --muted: #ecd9d9;        /* 次要文字 */
  --gold: #f0d6a6;         /* 香檳金 */
  --gold-2: #cfa86e;
  --champagne: linear-gradient(135deg, #f8e8c8 0%, #e6c58f 55%, #d6ae74 100%);
  --plum: #4d3334;         /* 金色、淺色底上的字 */
  --rose: #e0c0c0;
  --alert: #f08f97;        /* 曝光率、紅點 */
  --r-lg: 36px;
  --r-md: 24px;
  --pill: 999px;
  --shadow: 0 24px 60px rgba(38, 26, 26, .35);
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%;
  background: #261a1a;
  color: var(--ivory);
  font-family: var(--sans);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
[hidden] { display: none !important; }

/* ---------- 舞台 ---------- */
#stage {
  position: absolute;
  width: 1920px; height: 1080px;
  left: 50%; top: 50%;
  transform-origin: center;
  transform: translate(-50%, -50%) scale(var(--scale, .5));
  overflow: hidden;
  background: var(--base);
}
.screen { position: absolute; inset: 0; display: none; }
.screen.active { display: block; animation: fadeIn .5s ease; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

/* 共用：毛玻璃面板 */
.glass {
  background: var(--glass);
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(246, 236, 236, .18);
}

/* ---------- 佔位素材 ---------- */
.bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ph-bg {
  background:
    radial-gradient(ellipse at 72% 18%, rgba(246, 236, 236, .40), transparent 50%),
    radial-gradient(ellipse at 15% 85%, rgba(236, 211, 164, .22), transparent 55%),
    linear-gradient(160deg, var(--base-hi) 0%, var(--base) 55%, var(--base-lo) 100%);
}
.ph-bg::after {
  content: attr(data-label);
  position: absolute; right: 50px; top: 130px;
  font-size: 22px; letter-spacing: 2px;
  color: rgba(246, 236, 236, .45);
}
.ph-char, .ph-doll {
  position: absolute; inset: 0;
  border: 2px dashed rgba(246, 236, 236, .45);
  border-radius: 999px 999px 0 0;     /* 拱門 */
  background: linear-gradient(180deg, rgba(246, 236, 236, .16), rgba(246, 236, 236, .03));
}
.ph-char::after, .ph-doll::after {
  content: attr(data-label);
  position: absolute; left: 0; right: 0; top: 46%;
  text-align: center; font-size: 28px; letter-spacing: 4px;
  color: rgba(246, 236, 236, .7);
}

/* ---------- 按鈕 ---------- */
.go-btn {
  padding: 18px 64px;
  background: var(--champagne); color: var(--plum);
  border: 0; border-radius: var(--pill);
  font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: 10px;
  box-shadow: 0 10px 26px rgba(120, 80, 50, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .2s, box-shadow .2s;
}
.go-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(120, 80, 50, .45), inset 0 1px 0 rgba(255, 255, 255, .6); }
.line-btn {
  flex: 1; padding: 18px 0;
  background: var(--glass-soft); border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: 24px; letter-spacing: 4px; color: var(--ivory);
  transition: background .2s;
}
.line-btn:hover { background: rgba(236, 211, 164, .22); }
.back-btn {
  position: absolute; left: 50px; top: 40px; z-index: 3;
  padding: 12px 34px;
  background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--pill); backdrop-filter: blur(10px);
  font-size: 24px; letter-spacing: 3px; color: var(--ivory);
}
.back-btn:hover { background: var(--champagne); color: var(--plum); }

/* ---------- 標題 ---------- */
.title-veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(115, 77, 77, .75) 0%, rgba(115, 77, 77, .35) 45%, transparent 75%);
}
.title-block { position: absolute; left: 180px; top: 240px; }
.title-eyebrow { margin: 0; font-size: 22px; letter-spacing: 10px; color: var(--gold); }
.title-main {
  margin: 18px 0 6px;
  font-family: var(--serif); font-weight: 700;
  font-size: 200px; line-height: 1; letter-spacing: 30px;
  background: linear-gradient(180deg, #fffaf3 25%, #e9c88f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 20px rgba(38, 26, 26, .35));
}
.title-sub { margin: 0 0 70px; font-size: 26px; color: var(--muted); letter-spacing: 4px; }
.title-menu { display: flex; flex-direction: column; gap: 20px; width: 420px; }
.t-btn {
  padding: 20px 0;
  background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--pill); backdrop-filter: blur(10px);
  font-family: var(--serif); font-size: 30px; letter-spacing: 12px;
  transition: background .2s, color .2s;
}
.t-btn:hover { background: rgba(236, 211, 164, .25); }
.t-btn:first-child { background: var(--champagne); color: var(--plum); border-color: transparent; box-shadow: 0 10px 26px rgba(120, 80, 50, .35); }
.title-foot { position: absolute; left: 180px; bottom: 50px; margin: 0; font-size: 20px; color: var(--muted); letter-spacing: 2px; }

/* ---------- 主頁 ---------- */
.home-status {
  position: absolute; left: 60px; top: 50px;
  display: flex; align-items: center; gap: 40px;
  padding: 26px 44px;
  border-radius: var(--r-lg);
}
.home-status, .sched, .dock, .sheet, .wr-panel, .map-card, .modal-box, .dlg { /* 毛玻璃共用 */
  background: var(--glass);
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(246, 236, 236, .18);
}
.h-date { display: flex; flex-direction: column; font-family: var(--serif); line-height: 1; }
.h-year { font-size: 22px; color: var(--muted); letter-spacing: 4px; }
.h-month { font-size: 76px; color: var(--gold); }
.h-month small { font-size: 30px; margin-left: 6px; }
.h-stats { display: flex; gap: 40px; padding-left: 40px; border-left: 1px solid var(--line-soft); }
.stat { display: flex; flex-direction: column; gap: 6px; min-width: 200px; }
.stat-name { font-size: 20px; color: var(--muted); letter-spacing: 4px; }
.stat-val { font-family: var(--serif); font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-rank { font-size: 20px; color: var(--gold); }
.meter { height: 10px; margin: 18px 0 10px; background: rgba(246, 236, 236, .18); border-radius: var(--pill); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: var(--pill); background: linear-gradient(90deg, var(--gold), var(--alert)); transition: width .6s; }

.char-slot { position: absolute; background: none; border: 0; padding: 0; }

/* 右側區：玩家紙娃娃／功能面板 */
.side { position: absolute; right: 80px; top: 0; bottom: 0; width: 820px; }
.doll { position: absolute; }
.home-doll { right: 30px; bottom: 0; width: 760px; height: 950px; transition: opacity .3s; }
.side.has-panel .home-doll { opacity: 0; pointer-events: none; }
.panel { position: absolute; animation: panelIn .35s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }

.sched {
  position: absolute; left: 60px; bottom: 230px; width: 640px;
  padding: 38px 46px;
  border-radius: var(--r-lg);
}
.sched-tag { margin: 0; font-size: 20px; letter-spacing: 6px; color: var(--gold); }
.sched-title { margin: 12px 0 14px; font-family: var(--serif); font-size: 52px; font-weight: 600; letter-spacing: 4px; }
.sched-desc { margin: 0 0 30px; font-size: 24px; line-height: 1.7; color: var(--muted); }

.dock {
  position: absolute; left: 60px; bottom: 50px;
  display: flex; gap: 6px;
  padding: 14px 22px;
  border-radius: var(--pill);
}
.dock-btn {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 98px; padding: 4px 0;
  background: none; border: 0;
  font-size: 19px; letter-spacing: 2px; color: var(--muted);
  transition: color .2s;
}
.d-ico {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--glass-soft);
  border: 1px solid var(--line);
  font-family: var(--serif); font-size: 28px; color: var(--gold);
  transition: background .2s, color .2s, transform .2s;
}
.dock-btn:hover { color: var(--ivory); }
.dock-btn:hover .d-ico { transform: translateY(-3px); }
.dock-btn.on { color: var(--gold); }
.dock-btn.on .d-ico { background: var(--champagne); color: var(--plum); border-color: transparent; }
.badge {
  position: absolute; top: 0; right: 14px;
  min-width: 28px; height: 28px; padding: 0 8px;
  border-radius: var(--pill); background: var(--alert); color: #fff;
  font-style: normal; font-size: 17px; line-height: 28px;
  box-shadow: 0 0 0 3px rgba(246, 236, 236, .6);
}

.notice {
  position: absolute; right: 60px; top: 50px; width: 560px; z-index: 4;
  display: flex; gap: 20px; align-items: flex-start;
  padding: 22px 28px;
  border-radius: var(--r-md);
  background: rgba(246, 236, 236, .94); color: var(--plum);
  box-shadow: var(--shadow);
  animation: slideIn .5s ease;
  cursor: pointer;
}
@keyframes slideIn { from { transform: translateX(120%); } to { transform: none; } }
.n-avatar {
  flex: none; display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--champagne); color: var(--plum);
  font-family: var(--serif); font-size: 30px;
}
.n-body b { font-size: 24px; }
.n-body p { margin: 6px 0 0; font-size: 24px; line-height: 1.6; color: #734d4d; }

/* 手機 */
.phone { right: 180px; top: 70px; width: 470px; height: 940px; }
.ph-frame {
  position: absolute; inset: 0;
  border: 10px solid #ecd9d9; border-radius: 60px;
  background: linear-gradient(180deg, #f6ecec, #ecd9d9);
  color: var(--plum);
  box-shadow: 0 0 0 2px var(--gold-2), var(--shadow);
  overflow: hidden; display: flex; flex-direction: column;
}
.ph-bar { display: flex; justify-content: space-between; padding: 22px 34px 10px; font-size: 18px; color: #9a6667; }
.ph-view { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ph-head { margin: 10px 30px 18px; font-family: var(--serif); font-size: 40px; }
.ph-chat {
  position: relative; display: flex; gap: 18px; align-items: center;
  margin: 0 16px; padding: 16px 16px;
  background: none; border: 0; border-radius: var(--r-md);
  text-align: left; color: var(--plum);
}
.ph-chat:hover { background: rgba(207, 168, 110, .14); }
.ph-ava {
  flex: none; display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--champagne); color: var(--plum); font-family: var(--serif); font-size: 28px;
}
.ph-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ph-meta b { font-size: 24px; }
.ph-meta small { font-size: 19px; color: #9a6667; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 290px; }
.ph-dot { position: absolute; right: 20px; width: 14px; height: 14px; border-radius: 50%; background: var(--alert); }
.ph-roomhead { display: flex; align-items: center; gap: 14px; padding: 6px 20px 16px; border-bottom: 1px solid rgba(77, 51, 52, .1); }
.ph-roomhead b { font-size: 26px; }
.ph-back { background: none; border: 0; font-size: 44px; line-height: 1; color: var(--gold-2); padding: 0 10px; }
.ph-msgs { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 78%; padding: 14px 20px; font-size: 22px; line-height: 1.55; border-radius: 24px; }
.msg.in { align-self: flex-start; background: #fff; border-bottom-left-radius: 8px; box-shadow: 0 2px 8px rgba(77, 51, 52, .08); }
.msg.out { align-self: flex-end; background: var(--champagne); border-bottom-right-radius: 8px; }
.msg-time { align-self: center; font-size: 16px; color: #9a6667; }

/* 面板（相簿／設定） */
.sheet {
  right: 0; top: 70px; width: 820px; max-height: 940px;
  padding: 42px 48px;
  border-radius: var(--r-lg);
  overflow-y: auto;
}
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 30px; }
.sheet-head b { font-family: var(--serif); font-size: 42px; color: var(--gold); letter-spacing: 8px; }
.sheet-sub { font-size: 22px; color: var(--muted); }
.album-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.album-item {
  position: relative; aspect-ratio: 16 / 9; padding: 0;
  border-radius: var(--r-md);
  background: linear-gradient(140deg, #d3a6a7, #9a6667);
  border: 1px solid var(--line);
  overflow: hidden;
}
.album-item span { position: absolute; left: 18px; bottom: 12px; font-size: 20px; color: var(--ivory); }
.album-item.locked { background: rgba(246, 236, 236, .06); border: 1px dashed rgba(246, 236, 236, .3); cursor: default; }
.album-item.locked span { color: rgba(246, 236, 236, .45); }
.album-item.locked::before { content: "未解鎖"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; color: rgba(246, 236, 236, .4); letter-spacing: 4px; }
.album-item:not(.locked):hover { box-shadow: 0 0 0 3px var(--gold); }

.set-row { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line-soft); font-size: 26px; }
.seg { display: flex; padding: 4px; gap: 4px; border-radius: var(--pill); background: rgba(246, 236, 236, .1); border: 1px solid var(--line-soft); }
.seg button { padding: 8px 26px; background: none; border: 0; border-radius: var(--pill); font-size: 22px; color: var(--muted); }
.seg button.on { background: var(--champagne); color: var(--plum); }
.set-actions { display: flex; gap: 20px; margin-top: 40px; }

.viewer { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(38, 26, 26, .85); backdrop-filter: blur(6px); cursor: pointer; }
.viewer div { width: 1600px; aspect-ratio: 16 / 9; border-radius: var(--r-lg); background: linear-gradient(140deg, #d3a6a7, #9a6667); border: 1px solid var(--line); display: grid; place-items: center; font-size: 34px; color: var(--ivory); }

/* ---------- 劇情 ---------- */
.story-char { left: 50%; bottom: 0; width: 620px; height: 960px; transform: translateX(-10%); transition: opacity .4s; }

.story-top {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 34px 50px;
}
.s-date {
  padding: 10px 30px; border-radius: var(--pill);
  background: var(--glass); border: 1px solid var(--line-soft); backdrop-filter: blur(10px);
  font-family: var(--serif); font-size: 24px; letter-spacing: 6px; color: var(--gold);
}
.s-tools { display: flex; gap: 6px; padding: 6px; border-radius: var(--pill); background: var(--glass); border: 1px solid var(--line-soft); backdrop-filter: blur(10px); }
.s-tool {
  padding: 8px 24px;
  background: none; border: 0; border-radius: var(--pill);
  font-size: 20px; letter-spacing: 2px; color: var(--muted);
}
.s-tool:hover { color: var(--ivory); background: rgba(246, 236, 236, .12); }
.s-tool.on { background: var(--champagne); color: var(--plum); }

.dlg {
  position: absolute; left: 120px; right: 120px; bottom: 46px;
  min-height: 250px;
  padding: 58px 74px 42px;
  border-radius: var(--r-lg);
  background: var(--glass-strong);
  cursor: pointer;
}
.dlg::before { /* 內圈細金線 */
  content: ""; position: absolute; inset: 10px;
  border: 1px solid var(--line-soft); border-radius: 28px; pointer-events: none;
}
.dlg-name {
  position: absolute; left: 70px; top: -30px;
  padding: 10px 46px;
  border-radius: var(--pill);
  background: var(--champagne); color: var(--plum);
  font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: 8px;
  box-shadow: 0 8px 20px rgba(80, 50, 40, .3);
}
.dlg-text {
  position: relative; margin: 0; max-width: 1500px;
  font-family: var(--serif); font-size: 34px; line-height: 1.8; letter-spacing: 1px;
}
.dlg-text.narr { color: var(--muted); }
.dlg-next {
  position: absolute; right: 56px; bottom: 34px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px var(--gold);
  animation: bob 1.2s ease-in-out infinite;
  opacity: 0;
}
.dlg-next.show { opacity: 1; }
@keyframes bob { 50% { transform: translateY(6px); opacity: .5; } }

.choices {
  position: absolute; left: 0; right: 0; top: 190px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  z-index: 5;
}
.choices::before { content: ""; position: fixed; inset: 0; background: rgba(38, 26, 26, .3); z-index: -1; }
.choice {
  width: 900px; padding: 24px 40px;
  border-radius: var(--pill);
  background: var(--glass-strong);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  font-family: var(--serif); font-size: 32px; letter-spacing: 3px;
  box-shadow: var(--shadow);
  transition: background .2s, color .2s, transform .2s;
  animation: fadeIn .35s ease both;
}
.choice:nth-child(2) { animation-delay: .06s; }
.choice:nth-child(3) { animation-delay: .12s; }
.choice:nth-child(4) { animation-delay: .18s; }
.choice:hover, .choice:focus-visible { background: var(--champagne); color: var(--plum); outline: none; transform: scale(1.02); }

.log {
  position: absolute; inset: 40px 120px; z-index: 10;
  display: flex; flex-direction: column;
  padding: 50px 70px;
  border-radius: var(--r-lg);
  background: rgba(77, 51, 52, .94);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}
.log-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.log-head b { font-family: var(--serif); font-size: 40px; color: var(--gold); letter-spacing: 10px; }
.log-head .s-tool { border: 1px solid var(--line); }
.log-list { overflow-y: auto; flex: 1; padding-right: 20px; }
.log-item { padding: 18px 0; border-bottom: 1px solid var(--line-soft); font-size: 26px; line-height: 1.7; }
.log-item b { color: var(--gold); margin-right: 16px; }
.log-item.pick { color: var(--gold); }

/* ---------- 衣櫃 ---------- */
.wr-doll { right: 140px; bottom: 0; width: 760px; height: 950px; }
.wr-panel {
  position: absolute; left: 80px; top: 120px; bottom: 80px; width: 860px;
  display: flex; flex-direction: column; gap: 26px;
  padding: 40px 46px;
  border-radius: var(--r-lg);
}
.wr-tabs { display: flex; gap: 4px; padding: 6px; border-radius: var(--pill); background: rgba(246, 236, 236, .1); border: 1px solid var(--line-soft); }
.wr-tabs button {
  flex: 1; padding: 12px 0;
  background: none; border: 0; border-radius: var(--pill);
  font-size: 24px; letter-spacing: 3px; color: var(--muted);
}
.wr-tabs button.on { background: var(--champagne); color: var(--plum); }
.wr-colors { display: flex; align-items: center; gap: 14px; font-size: 22px; color: var(--muted); }
.wr-colors span { margin-right: 10px; }
.wr-colors button { width: 46px; height: 46px; border-radius: 50%; background: var(--c); border: 3px solid rgba(246, 236, 236, .6); }
.wr-colors button.on { box-shadow: 0 0 0 4px var(--gold); }
.wr-grid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-content: start; overflow-y: auto; }
.wr-item {
  aspect-ratio: 4 / 5;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px;
  border-radius: 120px 120px var(--r-md) var(--r-md);   /* 小拱門 */
  background: linear-gradient(180deg, rgba(246, 236, 236, .2), rgba(246, 236, 236, .06));
  border: 1px solid var(--line-soft);
  font-size: 20px; color: var(--ivory);
}
.wr-item.on { border-color: transparent; box-shadow: 0 0 0 3px var(--gold); color: var(--gold); }
.wr-item.locked { opacity: .45; cursor: default; }
.wr-done { align-self: flex-end; }

/* ---------- 外出地圖 ---------- */
.map-bg {
  background:
    radial-gradient(circle at 30% 40%, rgba(246, 236, 236, .30), transparent 40%),
    radial-gradient(circle at 75% 65%, rgba(236, 211, 164, .25), transparent 40%),
    repeating-linear-gradient(0deg, rgba(246, 236, 236, .06) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(90deg, rgba(246, 236, 236, .06) 0 1px, transparent 1px 80px),
    linear-gradient(160deg, var(--base-hi), var(--base) 60%, var(--base-lo));
}
.map-title { position: absolute; left: 50%; top: 44px; transform: translateX(-50%); text-align: center; }
.map-title b { display: block; font-family: var(--serif); font-size: 50px; color: var(--gold); letter-spacing: 14px; }
.map-title span { font-size: 22px; color: var(--muted); }
.map-area { position: absolute; inset: 0; }
.map-node {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: none; border: 0;
}
.map-node i {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--champagne);
  box-shadow: 0 0 0 10px rgba(236, 211, 164, .28), 0 0 40px rgba(255, 230, 190, .8);
}
.map-node b { font-family: var(--serif); font-size: 28px; letter-spacing: 3px; text-shadow: 0 2px 10px rgba(38, 26, 26, .5); }
.map-node small { font-size: 18px; color: var(--muted); }
.map-node.off { cursor: default; }
.map-node.off i { background: rgba(246, 236, 236, .3); box-shadow: none; }
.map-node.off b, .map-node.off small { color: rgba(246, 236, 236, .4); }
.map-node.done i { background: var(--muted); box-shadow: none; }
.map-city {
  position: absolute; transform: translate(-50%, -50%);
  font-family: var(--serif); font-size: 80px; letter-spacing: 20px;
  color: rgba(246, 236, 236, .14); pointer-events: none;
}
.map-card {
  position: absolute; right: 80px; bottom: 80px; width: 560px;
  padding: 34px 42px;
  border-radius: var(--r-lg);
  animation: panelIn .3s ease;
}
.map-card h3 { margin: 10px 0; font-family: var(--serif); font-size: 42px; }
.map-card p:not(.sched-tag) { margin: 0 0 26px; font-size: 22px; line-height: 1.7; color: var(--muted); }

/* ---------- 存檔彈窗 ---------- */
.modal { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(38, 26, 26, .45); }
.modal-box { width: 1000px; padding: 44px 50px; border-radius: var(--r-lg); background: rgba(77, 51, 52, .88); }
.modal-box .s-tool { border: 1px solid var(--line); }
.slots { display: flex; flex-direction: column; gap: 16px; }
.slot {
  display: flex; align-items: center; gap: 30px;
  padding: 24px 36px;
  border-radius: var(--r-md);
  background: rgba(246, 236, 236, .08); border: 1px solid var(--line-soft);
  text-align: left;
}
.slot:hover { background: rgba(236, 211, 164, .2); border-color: var(--line); }
.slot-no {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--champagne); color: var(--plum);
  font-family: var(--serif); font-size: 32px;
}
.slot.empty .slot-no { background: rgba(246, 236, 236, .12); color: var(--muted); }
.slot-info { display: flex; flex-direction: column; gap: 6px; }
.slot-info b { font-size: 28px; }
.slot-info small { font-size: 20px; color: var(--muted); }
.slot.empty .slot-info b { color: var(--muted); }

/* ---------- 共用 ---------- */
.toast {
  position: absolute; left: 50%; top: 80px; transform: translateX(-50%);
  padding: 14px 40px;
  border-radius: var(--pill);
  background: rgba(246, 236, 236, .95); color: var(--plum);
  font-size: 24px; letter-spacing: 2px; z-index: 50;
  box-shadow: var(--shadow);
  animation: fadeIn .25s ease;
}

/* ---------- 轉橫提示 ---------- */
#rotate-tip { display: none; }
/* 手機直拿時不再顯示「請轉橫」，改由 main.js 把舞台轉 90 度當橫版顯示 */
#stage.rot { transform: translate(-50%, -50%) rotate(90deg) scale(var(--scale, .5)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 標題：小按鈕列 ---------- */
.t-row { display: flex; gap: 12px; }
.t-btn.small { flex: 1; padding: 14px 0; font-size: 24px; letter-spacing: 6px; }

/* ---------- 開場設定 ---------- */
.setup-step {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 820px; padding: 60px 70px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  text-align: center;
  border-radius: var(--r-lg);
  background: var(--glass); border: 1px solid var(--line-soft);
  backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
.setup-step.wide { width: 1560px; }
.setup-q { margin: 0; font-family: var(--serif); font-size: 52px; font-weight: 600; letter-spacing: 6px; }
.name-input {
  width: 560px; padding: 20px 30px;
  border-radius: var(--pill); border: 1px solid var(--line);
  background: rgba(246, 236, 236, .12); color: var(--ivory);
  font-family: var(--serif); font-size: 36px; text-align: center; letter-spacing: 6px;
  outline: none;
}
.name-input::placeholder { color: rgba(246, 236, 236, .45); }
.name-input:focus { box-shadow: 0 0 0 3px rgba(240, 214, 166, .5); }
.setup-hint { margin: 0; font-size: 20px; color: var(--muted); }
.room-list { display: flex; gap: 26px; margin: 10px 0 6px; }
.room-card {
  width: 330px; padding: 16px 16px 24px;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  border-radius: 180px 180px var(--r-md) var(--r-md);
  background: rgba(246, 236, 236, .08); border: 1px solid var(--line-soft);
  transition: transform .2s, box-shadow .2s;
}
.room-card:hover { transform: translateY(-4px); }
.room-card.on { box-shadow: 0 0 0 3px var(--gold); background: rgba(240, 214, 166, .14); }
.room-img {
  width: 100%; aspect-ratio: 4 / 5;
  display: grid; place-items: center;
  border-radius: 170px 170px 14px 14px;
  background: linear-gradient(180deg, rgba(246, 236, 236, .22), rgba(246, 236, 236, .05)) center / cover;
  font-size: 20px; color: rgba(246, 236, 236, .55);
}
.room-card b { font-family: var(--serif); font-size: 32px; letter-spacing: 4px; }
.room-card small { font-size: 19px; line-height: 1.6; color: var(--muted); }
.setup-actions { display: flex; gap: 20px; width: 640px; }
.setup-actions .go-btn { flex: 1; }

/* ---------- 手機：照片、回覆 ---------- */
.msg.pop { animation: pop .3s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.msg.photo { padding: 8px; background: #fff; cursor: pointer; }
.msg-pic {
  display: grid; place-items: center; text-align: center;
  width: 300px; aspect-ratio: 16 / 9; padding: 10px;
  border-radius: 16px;
  background: linear-gradient(140deg, #e0c0c0, #c08081);
  font-size: 17px; line-height: 1.4; color: #fff;
}
.ph-replies {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 18px 24px;
  border-top: 1px solid rgba(77, 51, 52, .1);
  background: rgba(255, 255, 255, .5);
}
.ph-reply {
  padding: 14px 20px;
  border-radius: var(--pill);
  background: #fff; border: 1px solid #e0c0c0;
  font-size: 21px; color: var(--plum); text-align: left;
  animation: pop .3s ease both;
}
.ph-reply:hover { background: var(--champagne); border-color: transparent; }

/* ---------- 衣櫃：NEW 標記 ---------- */
.wr-item { position: relative; }
.wr-item .new, .wr-tabs button.has-new::after {
  position: absolute; top: 14px; right: 50%; transform: translateX(50%);
  padding: 2px 12px; border-radius: var(--pill);
  background: var(--alert); color: #fff; font-style: normal; font-size: 15px; letter-spacing: 1px;
}
.wr-tabs button { position: relative; }
.wr-tabs button.has-new::after { content: ""; top: 8px; right: 14px; transform: none; width: 12px; height: 12px; padding: 0; }

/* ---------- 標題頁借用的面板彈窗 ---------- */
.sheet-holder { position: relative; }
.sheet-holder .panel { position: relative; right: auto; top: auto; animation: fadeIn .3s ease; }
.modal-x { position: absolute; right: 60px; top: 50px; background: var(--glass); border: 1px solid var(--line); }
.author { display: flex; flex-direction: column; gap: 14px; font-size: 26px; color: var(--muted); }
.author p { margin: 0; }
.author .au-name { font-family: var(--serif); font-size: 56px; color: var(--ivory); letter-spacing: 10px; }
.author .au-ver { margin-top: 20px; font-size: 20px; }
.h-month b { font-weight: 400; }

/* =========================================================
   精緻化：圖示、裝飾線、質感、標題資料卡
   ========================================================= */

/* 緞面質感：極淡的雜訊底紋，讓毛玻璃不會太「平」 */
.home-status, .sched, .dock, .sheet, .wr-panel, .map-card, .modal-box, .dlg, .setup-step, .profile {
  background-image:
    linear-gradient(160deg, rgba(246, 236, 236, .10), rgba(246, 236, 236, 0) 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 面板四角的金色小角花 */
.sched, .sheet, .wr-panel, .setup-step, .profile, .modal-box { position: absolute; }
.sheet-holder .sheet { position: relative; }
.sched::after, .wr-panel::after, .setup-step::after, .profile::after, .modal-box::after, .sheet::after {
  content: ""; position: absolute; inset: 14px; pointer-events: none;
  border-radius: calc(var(--r-lg) - 10px);
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 26px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top left / 1px 26px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 26px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 1px 26px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 26px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 1px 26px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 26px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 1px 26px no-repeat;
  opacity: .55;
}
.modal-box { position: relative; }

/* 分隔裝飾：線—菱形—線 */
.ornament { display: flex; align-items: center; gap: 14px; width: 360px; margin: 6px 0 18px; }
.ornament i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament i:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament b { width: 10px; height: 10px; transform: rotate(45deg); border: 1px solid var(--gold); background: rgba(240, 214, 166, .25); }
.ornament.left { width: 240px; margin: -4px 0 18px; }
.ornament.left i:first-child { display: none; }

/* 按鈕光澤 */
.go-btn, .t-btn:first-child, .dlg-name { position: relative; overflow: hidden; }
.go-btn::after, .t-btn:first-child::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  transition: left .7s ease;
}
.go-btn:hover::after, .t-btn:first-child:hover::after { left: 120%; }

/* 線條圖示 */
.ico, .d-ico svg {
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.d-ico svg { width: 32px; height: 32px; }
.d-ico { font-size: 0; }
.t-btn.small { display: flex; align-items: center; justify-content: center; gap: 10px; }
.t-btn.small .ico { width: 26px; height: 26px; color: var(--gold); }

/* 主頁行程卡標頭 */
.sched-head { display: flex; align-items: center; justify-content: space-between; }
.sched-chip {
  padding: 4px 16px; border-radius: var(--pill);
  border: 1px solid var(--line); font-size: 18px; color: var(--gold); letter-spacing: 2px;
}

/* 標題：版本標籤 */
.ver-tag {
  position: absolute; right: 60px; top: 46px;
  padding: 6px 18px; border-radius: var(--pill);
  background: var(--glass); border: 1px solid var(--line-soft);
  font-size: 18px; letter-spacing: 2px; color: var(--muted);
}
.title-block { top: 200px; }
.title-sub { margin-bottom: 56px; }

/* 標題：角色資料卡 */
.profile {
  right: 120px; top: 110px; width: 640px;
  display: flex; flex-direction: column; gap: 18px;
  padding: 40px 44px 36px;
  border-radius: var(--r-lg);
  background-color: var(--glass);
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(16px); box-shadow: var(--shadow);
}
.pf-head { display: flex; gap: 26px; align-items: center; }
.pf-ava {
  flex: none; display: grid; place-items: center;
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--champagne) center / cover;
  box-shadow: 0 0 0 4px rgba(246, 236, 236, .35), 0 0 0 6px var(--gold-2);
  font-family: var(--serif); font-size: 56px; color: var(--plum);
}
.pf-id b { font-family: var(--serif); font-size: 46px; letter-spacing: 8px; }
.pf-en { margin-left: 14px; font-size: 18px; letter-spacing: 3px; color: var(--gold); }
.pf-id p { margin: 6px 0 0; font-size: 21px; color: var(--muted); }
.pf-id p i { font-style: normal; margin: 0 4px; color: var(--gold); }
.pf-id .pf-role { color: var(--ivory); }
.pf-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-tags span {
  padding: 5px 16px; border-radius: var(--pill);
  background: rgba(246, 236, 236, .1); border: 1px solid var(--line-soft);
  font-size: 18px; color: var(--ivory);
}
.pf-rows { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; margin: 0; font-size: 21px; }
.pf-rows dt { color: var(--gold); letter-spacing: 3px; }
.pf-rows dd { margin: 0; color: var(--ivory); }
.pf-quote {
  margin: 4px 0; padding: 14px 20px;
  border-left: 2px solid var(--gold);
  background: rgba(246, 236, 236, .06);
  border-radius: 0 14px 14px 0;
  font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--muted);
}
.pf-sec { margin-top: 4px; font-size: 18px; letter-spacing: 6px; color: var(--gold); }
.pf-chapters, .pf-ends { display: flex; gap: 8px; margin-top: -8px; }
.pf-chapters span {
  flex: 1; padding: 8px 0; text-align: center;
  border-radius: var(--pill);
  background: rgba(240, 214, 166, .18); border: 1px solid var(--line);
  font-size: 18px; color: var(--ivory);
}
.pf-chapters span.off { background: none; border-style: dashed; border-color: var(--line-soft); color: rgba(246, 236, 236, .45); }
.pf-ends span {
  flex: 1; padding: 8px 0; text-align: center;
  border-radius: 12px; border: 1px solid var(--line-soft);
  font-size: 18px; color: rgba(246, 236, 236, .45);
  font-variant-numeric: tabular-nums;
}
.pf-ends span.on { background: var(--champagne); color: var(--plum); border-color: transparent; }
.pf-stats { display: flex; gap: 10px; margin-top: 4px; }
.pf-stats span {
  flex: 1; padding: 10px 0; text-align: center;
  border-radius: 14px; background: rgba(38, 26, 26, .25);
  font-size: 17px; color: var(--muted);
}
.pf-stats b { margin-right: 6px; font-family: var(--serif); font-size: 26px; color: var(--ivory); }
.t-row .t-btn:first-child { background: var(--glass); color: var(--ivory); border-color: var(--line); box-shadow: none; }
.t-row .t-btn:first-child::after { display: none; }
.t-row .t-btn:first-child:hover { background: rgba(240, 214, 166, .25); }

/* 首頁：左欄標題＋前言＋按鈕，右側留給琴律照片 */
.title-veil { background: linear-gradient(90deg, rgba(38, 26, 26, .78) 0%, rgba(38, 26, 26, .45) 38%, transparent 62%); }
.title-block { left: 150px; top: 120px; width: 640px; }
.title-main { font-size: 168px; letter-spacing: 26px; margin-top: 12px; }
.title-block .ornament { margin: 4px 0 26px; }
.preface { display: flex; flex-direction: column; gap: 6px; margin-bottom: 44px; }
.preface p {
  margin: 0;
  font-family: var(--serif); font-size: 27px; line-height: 1.75; letter-spacing: 3px;
  color: var(--ivory);
  text-shadow: 0 2px 12px rgba(38, 26, 26, .55);
  opacity: 0; animation: lineIn 1.1s ease forwards;
}
.preface p:nth-last-child(2) { color: var(--gold); }   /* 「你們正式交往了。」 */
@keyframes lineIn { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.title-menu { width: 520px; gap: 16px; }
.title-menu > .t-btn { padding: 18px 0; font-size: 28px; }
.t-row .t-btn.small { font-size: 21px; letter-spacing: 3px; gap: 6px; padding: 12px 0; }
.t-row .t-btn.small .ico { width: 22px; height: 22px; }
.title-foot { left: 150px; }
.sheet-holder .profile { position: relative; right: auto; top: auto; }
@media (prefers-reduced-motion: reduce) { .preface p { opacity: 1; } }
.modal-x { top: 110px; padding: 10px 30px; font-size: 22px; }
.preface { gap: 0; }
.preface p { font-size: 25px; line-height: 1.7; }
.preface p:nth-last-child(2) { color: var(--ivory); }
.preface p.gap { height: 18px; opacity: 1; animation: none; }
.preface p.hl { color: var(--gold); font-size: 30px; font-weight: 600; letter-spacing: 4px; }
.title-block { top: 90px; }
.title-main { font-size: 150px; }
.preface { margin-bottom: 36px; }
.title-block { top: 70px; }
.title-eyebrow { font-size: 20px; }
.title-main { font-size: 136px; margin-top: 6px; }
.preface p { font-size: 24px; line-height: 1.65; }
.preface p.hl { font-size: 28px; }
.preface p.gap { height: 14px; }
.preface { margin-bottom: 30px; }
.title-menu { gap: 14px; }
.title-menu > .t-btn { padding: 15px 0; font-size: 26px; }
.title-foot { bottom: 34px; font-size: 18px; }

/* =========================================================
   尺寸精緻化（電腦）
   ========================================================= */
.go-btn { padding: 13px 46px; font-size: 23px; letter-spacing: 8px; }
.line-btn { padding: 13px 0; font-size: 20px; }
.back-btn { padding: 9px 26px; font-size: 19px; }
.title-menu { width: 420px; gap: 12px; }
.title-menu > .t-btn { padding: 12px 0; font-size: 22px; letter-spacing: 10px; }
.t-row { gap: 8px; }
.t-row .t-btn.small { padding: 9px 0; font-size: 17px; letter-spacing: 2px; }
.t-row .t-btn.small .ico { width: 18px; height: 18px; }

.home-status { padding: 20px 34px; gap: 30px; }
.h-month { font-size: 62px; }
.h-stats { gap: 30px; padding-left: 30px; }
.stat { min-width: 170px; }
.stat-name, .stat-rank { font-size: 17px; }
.stat-val { font-size: 38px; }

.sched { width: 560px; padding: 30px 38px; bottom: 190px; }
.sched-tag { font-size: 17px; }
.sched-chip { font-size: 15px; }
.sched-title { font-size: 42px; margin: 8px 0 10px; }
.sched-desc { font-size: 20px; margin-bottom: 24px; }

.dock { padding: 10px 18px; gap: 2px; bottom: 44px; }
.dock-btn { width: 80px; font-size: 15px; gap: 5px; }
.d-ico { width: 50px; height: 50px; }
.d-ico svg { width: 24px; height: 24px; }
.badge { min-width: 24px; height: 24px; line-height: 24px; font-size: 14px; right: 10px; }

.notice { width: 480px; padding: 18px 22px; }
.n-avatar { width: 52px; height: 52px; font-size: 24px; }
.n-body b, .n-body p { font-size: 20px; }

.s-date { font-size: 20px; padding: 8px 24px; }
.s-tool { font-size: 17px; padding: 7px 20px; }
.dlg { left: 160px; right: 160px; min-height: 220px; padding: 50px 64px 36px; }
.dlg-name { font-size: 25px; padding: 8px 38px; top: -26px; }
.dlg-text { font-size: 30px; }
.choice { width: 780px; padding: 18px 36px; font-size: 27px; }
.choices { gap: 16px; }

.sheet-head b { font-size: 34px; }
.set-row { font-size: 22px; padding: 20px 0; }
.seg button { font-size: 18px; padding: 7px 22px; }
.slot-info b { font-size: 24px; }
.slot-no { width: 54px; height: 54px; font-size: 26px; }

.wr-tabs button { font-size: 20px; padding: 10px 0; }
.wr-item { font-size: 17px; }
.setup-q { font-size: 44px; }
.name-input { font-size: 30px; padding: 16px 26px; width: 500px; }
.room-card b { font-size: 27px; }
.room-card small { font-size: 17px; }

/* =========================================================
   手機橫拿（畫布 1600×900，介面相對放大）
   ========================================================= */
.is-phone .title-block { left: 90px; top: 50px; }
.is-phone .title-foot { left: 90px; bottom: 24px; }
.is-phone .home-status { left: 40px; top: 30px; }
.is-phone .sched { left: 40px; bottom: 150px; width: 520px; }
.is-phone .dock { left: 40px; bottom: 26px; }
.is-phone .side { right: 30px; width: 700px; }
.is-phone .home-doll { width: 600px; height: 750px; right: 20px; }
.is-phone .phone { top: 30px; height: 820px; width: 420px; right: 140px; }
.is-phone .sheet { top: 30px; width: 700px; max-height: 820px; }
.is-phone .notice { right: 30px; top: 30px; }
.is-phone .dlg { left: 70px; right: 70px; bottom: 30px; }
.is-phone .choices { top: 130px; }
.is-phone .wr-doll { right: 50px; width: 600px; height: 750px; }
.is-phone .wr-panel { left: 40px; top: 90px; bottom: 40px; width: 780px; }
.is-phone .setup-step.wide { width: 1480px; }
.is-phone .room-card { width: 300px; }
.is-phone .map-area { width: 1920px; height: 1080px; transform: scale(.8333); transform-origin: 0 0; }
.is-phone .map-card { right: 40px; bottom: 40px; }
.is-phone .profile { width: 600px; }
.is-phone .log { inset: 30px 60px; }

/* 修正：名字牌維持在對話框左上角 */
.dlg-name { position: absolute; }

/* 地圖：固定 1920×1080 的地圖區，依畫布縮放置中 */
.map-area { inset: auto; left: 50%; top: 50%; width: 1920px; height: 1080px; transform: translate(-50%, -50%) scale(var(--mapk, 1)); }
.is-phone .map-area { transform: translate(-50%, -50%) scale(var(--mapk, 1)); }

/* =========================================================
   手機橫拿（基準 1280×720）
   ========================================================= */
.is-phone .title-block { left: 70px; top: 26px; width: 560px; }
.is-phone .title-eyebrow { font-size: 15px; letter-spacing: 6px; }
.is-phone .title-main { font-size: 92px; letter-spacing: 18px; margin-top: 4px; }
.is-phone .title-block .ornament { margin: 2px 0 12px; width: 260px; }
.is-phone .preface p { font-size: 19px; line-height: 1.5; letter-spacing: 2px; }
.is-phone .preface p.hl { font-size: 22px; }
.is-phone .preface p.gap { height: 8px; }
.is-phone .preface { margin-bottom: 18px; }
.is-phone .title-menu { width: 380px; gap: 10px; }
.is-phone .title-menu > .t-btn { padding: 11px 0; font-size: 20px; }
.is-phone .t-row .t-btn.small { padding: 8px 0; font-size: 15px; }
.is-phone .title-foot { left: 70px; bottom: 14px; font-size: 14px; }
.is-phone .ver-tag { right: 30px; top: 20px; font-size: 14px; }

.is-phone .home-status { left: 30px; top: 22px; padding: 14px 26px; }
.is-phone .h-month { font-size: 50px; }
.is-phone .stat { min-width: 140px; }
.is-phone .stat-val { font-size: 32px; }
.is-phone .sched { left: 30px; bottom: 110px; width: 460px; padding: 22px 30px; }
.is-phone .sched-title { font-size: 34px; }
.is-phone .sched-desc { font-size: 17px; margin-bottom: 16px; }
.is-phone .go-btn { padding: 11px 36px; font-size: 20px; }
.is-phone .dock { left: 30px; bottom: 18px; padding: 8px 14px; }
.is-phone .dock-btn { width: 70px; font-size: 14px; }
.is-phone .d-ico { width: 44px; height: 44px; }

.is-phone .side { right: 20px; width: 600px; }
.is-phone .home-doll { width: 480px; height: 600px; right: 30px; }
.is-phone .phone { top: 20px; right: 120px; width: 350px; height: 680px; }
.is-phone .ph-frame { border-width: 8px; border-radius: 44px; }
.is-phone .sheet { top: 20px; width: 600px; max-height: 680px; padding: 28px 32px; }
.is-phone .notice { right: 24px; top: 20px; width: 420px; }

.is-phone .story-top { padding: 18px 30px; }
.is-phone .dlg { left: 50px; right: 50px; bottom: 18px; min-height: 170px; padding: 40px 48px 26px; }
.is-phone .dlg-text { font-size: 25px; line-height: 1.7; }
.is-phone .dlg-name { left: 44px; font-size: 21px; padding: 6px 30px; top: -22px; }
.is-phone .choices { top: 80px; gap: 12px; }
.is-phone .choice { width: 640px; padding: 14px 30px; font-size: 22px; }
.is-phone .log { inset: 20px 50px; padding: 30px 40px; }

.is-phone .back-btn { left: 30px; top: 20px; }
.is-phone .wr-doll { right: 40px; width: 480px; height: 600px; }
.is-phone .wr-panel { left: 30px; top: 70px; bottom: 24px; width: 680px; padding: 26px 30px; gap: 16px; }
.is-phone .setup-step { padding: 36px 44px; gap: 14px; }
.is-phone .setup-step.wide { width: 1180px; }
.is-phone .setup-q { font-size: 34px; }
.is-phone .room-list { gap: 16px; }
.is-phone .room-card { width: 250px; padding: 12px 12px 16px; }
.is-phone .room-card b { font-size: 22px; }
.is-phone .room-card small { font-size: 14px; }
.is-phone .map-card { right: 30px; bottom: 24px; width: 460px; padding: 24px 30px; }
.is-phone .map-title { top: 20px; }
.is-phone .map-title b { font-size: 36px; }
.is-phone .modal-box { width: 820px; padding: 30px 36px; }
.is-phone .profile { width: 560px; padding: 28px 32px; gap: 12px; }
.is-phone .pf-ava { width: 96px; height: 96px; font-size: 42px; }
.is-phone .modal-x { right: 30px; top: 70px; }

/* 選項靠下、貼在對話框上方，上方留給收藏解鎖等通知 */
.choices { top: auto; bottom: 310px; }
.is-phone .choices { top: auto; bottom: 222px; }

/* ---------- 房間：開場選擇（3×2 橫式縮圖） ---------- */
.room-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 6px 0; }
.room-card { width: 400px; padding: 10px 10px 16px; gap: 6px; border-radius: var(--r-md); }
.room-img { aspect-ratio: 3 / 2; border-radius: 16px; background-size: cover; background-position: center; }
.room-card b { font-size: 24px; }
.room-card small { font-size: 16px; }
.setup-step.wide { width: 1360px; padding: 40px 50px; gap: 16px; }
.is-phone .setup-step.wide { width: 1100px; padding: 24px 36px; gap: 10px; }
.is-phone .room-list { gap: 12px; }
.is-phone .room-card { width: 330px; padding: 8px 8px 10px; }
.is-phone .room-card small { display: none; }
.is-phone .room-card b { font-size: 19px; }
.is-phone .setup-q { font-size: 28px; }

/* ---------- 房間：設定裡切換 ---------- */
.set-block { padding: 6px 0 22px; border-bottom: 1px solid var(--line-soft); }
.set-label { display: block; margin-bottom: 14px; font-size: 22px; }
.room-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rm { display: flex; flex-direction: column; gap: 6px; padding: 6px; background: rgba(246, 236, 236, .06); border: 1px solid var(--line-soft); border-radius: 16px; }
.rm span { aspect-ratio: 3 / 2; border-radius: 10px; background: rgba(246, 236, 236, .15) center / cover; }
.rm small { font-size: 16px; color: var(--muted); }
.rm.on { box-shadow: 0 0 0 3px var(--gold); border-color: transparent; }
.rm.on small { color: var(--gold); }

/* 系統提示文字 */
.dlg-text.sys { color: var(--gold); font-family: var(--sans); font-size: 26px; letter-spacing: 2px; }
.is-phone .dlg-text.sys { font-size: 21px; }

/* 新手引導 */
.guide {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 25;
  width: 640px; padding: 40px 48px 34px;
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
  border-radius: var(--r-lg);
  background: rgba(77, 51, 52, .9); border: 1px solid var(--line);
  backdrop-filter: blur(14px); box-shadow: var(--shadow);
  animation: fadeIn .3s ease;
}
.guide p { margin: 0; font-family: var(--serif); font-size: 28px; line-height: 1.7; }
.guide-step { font-size: 17px; letter-spacing: 4px; color: var(--gold); }
.is-phone .guide { width: 540px; padding: 28px 34px; }
.is-phone .guide p { font-size: 22px; }

/* 信任、事業心（小型數值） */
.stat.small { min-width: 120px; gap: 4px; }
.stat-num { font-family: var(--serif); font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat.small .meter { margin: 6px 0 0; height: 6px; }
.meter.trust i { background: linear-gradient(90deg, #e0c0c0, #f08f97); }
.meter.career i { background: linear-gradient(90deg, #f8e8c8, #d6ae74); }
.is-phone .stat.small { min-width: 96px; }
.is-phone .stat-num { font-size: 24px; }
.is-phone .h-stats { gap: 22px; padding-left: 22px; }

/* 數值變化提示 */
.stat-pop {
  position: absolute; left: 50%; top: 150px; transform: translateX(-50%); z-index: 45;
  padding: 10px 30px; border-radius: var(--pill);
  background: var(--champagne); color: var(--plum);
  font-size: 22px; font-weight: 600; letter-spacing: 3px;
  box-shadow: var(--shadow);
}
.stat-pop.show { animation: popUp 1.8s ease forwards; }
@keyframes popUp {
  0% { opacity: 0; transform: translate(-50%, 10px); }
  15%, 75% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -14px); }
}
.is-phone .stat-pop { top: 110px; font-size: 18px; }

/* =========================================================
   手機（精品版）：香檳金機身、動態島、毛玻璃介面
   ========================================================= */
.ph-frame {
  position: absolute; inset: 0;
  padding: 9px; border: 0; border-radius: 64px;
  background: linear-gradient(145deg, #f7e7cc 0%, #c9a26c 28%, #f4dfbd 52%, #b48a55 78%, #ecd3a8 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 40px 80px rgba(38, 26, 26, .45), 0 8px 20px rgba(38, 26, 26, .25);
  display: block; overflow: visible;
}
.ph-screen {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  border-radius: 56px; overflow: hidden;
  background:
    radial-gradient(120% 60% at 20% 0%, rgba(255, 236, 228, .95), transparent 60%),
    radial-gradient(90% 60% at 100% 100%, rgba(214, 166, 167, .9), transparent 65%),
    linear-gradient(170deg, #f3e1de 0%, #e3c3c4 55%, #cfa2a6 100%);
  color: var(--plum);
}
/* 螢幕的深色細邊：畫在最上層，才不會被叫車地圖、面板蓋住 */
.ph-screen::after {
  content: ''; position: absolute; inset: 0; z-index: 60;
  border-radius: inherit; box-shadow: 0 0 0 2px #2b1d1e inset;
  pointer-events: none;
}
.ph-bar { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 22px 36px 8px; font-size: 17px; font-weight: 600; color: var(--plum); }
.ph-island { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); width: 120px; height: 34px; border-radius: 20px; background: #1a1112; }
.ph-sig { font-size: 14px; letter-spacing: 1px; }
.ph-home { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); width: 140px; height: 5px; border-radius: 3px; background: rgba(77, 51, 52, .55); z-index: 3; }

/* 列表 */
.ph-head { display: flex; align-items: baseline; justify-content: space-between; margin: 14px 26px 16px; }
.ph-head b { font-family: var(--serif); font-size: 40px; font-weight: 700; letter-spacing: 4px; }
.ph-head small { font-size: 16px; color: #9a6667; }
.ph-chats { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.ph-chat {
  margin: 0; padding: 14px 16px; gap: 14px;
  background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 24px; backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(115, 77, 77, .1);
}
.ph-chat:hover { background: rgba(255, 255, 255, .72); }
.ph-ava {
  width: 58px; height: 58px; font-size: 26px;
  background: linear-gradient(145deg, #4d3334, #734d4d); color: var(--gold);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #d6ae74;
}
.ph-ava.sm { width: 44px; height: 44px; font-size: 20px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #d6ae74; }
.ph-meta b { font-family: var(--serif); font-size: 22px; }
.ph-meta small { font-size: 17px; color: #8a6466; max-width: 240px; }
.ph-dot {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: auto; height: auto; padding: 3px 10px; border-radius: var(--pill);
  background: var(--alert); color: #fff; font-style: normal; font-size: 13px; letter-spacing: 1px;
}

/* 對話頁 */
.ph-roomhead {
  display: flex; align-items: center; gap: 12px;
  margin: 4px 14px 0; padding: 10px 14px;
  border: 0; border-radius: 22px;
  background: rgba(255, 255, 255, .45); backdrop-filter: blur(10px);
}
.ph-back { font-size: 40px; color: #9a6667; padding: 0 6px 0 0; }
.ph-who { display: flex; flex-direction: column; line-height: 1.2; }
.ph-who b { font-family: var(--serif); font-size: 21px; }
.ph-who small { font-size: 13px; color: #7aa37f; }
.ph-who small::before { content: "● "; font-size: 10px; }
.ph-msgs { padding: 20px 20px 36px; gap: 12px; }
.msg { font-size: 20px; line-height: 1.55; padding: 12px 18px; border-radius: 22px; max-width: 80%; }
.msg.in { background: rgba(255, 255, 255, .82); border-bottom-left-radius: 6px; box-shadow: 0 3px 10px rgba(115, 77, 77, .12); backdrop-filter: blur(6px); }
.msg.out { background: var(--champagne); border-bottom-right-radius: 6px; box-shadow: 0 3px 10px rgba(156, 110, 60, .25); }
.msg-time { padding: 3px 12px; border-radius: var(--pill); background: rgba(255, 255, 255, .4); font-size: 13px; color: #8a6466; }
.msg.photo { padding: 6px; background: rgba(255, 255, 255, .9); }
.msg-pic {
  position: relative; width: 260px; padding: 0; overflow: hidden; border-radius: 16px;
  background: linear-gradient(140deg, #d3a6a7, #734d4d);
}
.msg-pic i { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; font-style: normal; font-size: 14px; line-height: 1.4; text-align: left; background: linear-gradient(transparent, rgba(38, 26, 26, .6)); }

/* 輸入中 */
.msg.typing { display: flex; gap: 6px; padding: 14px 18px; }
.msg.typing i { width: 8px; height: 8px; border-radius: 50%; background: #c08081; animation: dot 1s infinite ease-in-out; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* 回覆面板 */
.ph-replies {
  margin: 0 10px 26px; padding: 14px 14px 18px; gap: 8px;
  border: 0; border-radius: 28px;
  background: rgba(255, 255, 255, .55); backdrop-filter: blur(14px);
  box-shadow: 0 -6px 20px rgba(115, 77, 77, .12);
}
.ph-replies::before { content: "選擇回覆"; font-size: 13px; letter-spacing: 3px; color: #9a6667; padding: 0 6px 4px; }
.ph-reply { padding: 12px 18px; border-radius: 18px; border: 1px solid rgba(214, 174, 116, .5); background: rgba(255, 255, 255, .9); font-size: 19px; }
.ph-reply:hover { background: var(--champagne); }

/* 劇情中的手機 */
.story-phone { position: absolute; inset: 0; z-index: 6; cursor: pointer; background: linear-gradient(90deg, transparent 40%, rgba(38, 26, 26, .25)); }
.phone.sp { right: 260px; top: 70px; width: 440px; height: 900px; animation: phoneUp .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes phoneUp { from { transform: translateY(120%); } to { transform: none; } }
.sp .ph-msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.sp-hint { margin: 0 0 30px; text-align: center; font-size: 14px; letter-spacing: 3px; color: #9a6667; }
.is-phone .phone.sp { right: 140px; top: 30px; width: 340px; height: 680px; }

/* 手機版尺寸 */
.is-phone .ph-frame { padding: 7px; border-radius: 50px; }
.is-phone .ph-screen { border-radius: 44px; }
.is-phone .ph-island { width: 96px; height: 28px; top: 12px; }
.is-phone .ph-head b { font-size: 32px; }
.is-phone .msg { font-size: 17px; }
.is-phone .ph-reply { font-size: 16px; }
.phone.sp { position: absolute; }
.story-top { position: absolute; z-index: 7; }

/* 劇情手機：對話框保留，手機蓋在上面 */
.story-phone { background: none; pointer-events: none; z-index: 6; }
.story-phone .phone.sp { pointer-events: auto; }
.phone.sp { top: auto; bottom: 120px; right: 220px; height: 820px; }                 /* side：右側，壓住對話框右邊 */
.story-phone.center .phone.sp { right: auto; left: 50%; margin-left: -220px; }       /* center：畫面中間 */
.story-phone.center::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, rgba(38, 26, 26, .05), rgba(38, 26, 26, .4)); }
.is-phone .phone.sp { bottom: 70px; right: 120px; height: 600px; width: 300px; }
.is-phone .story-phone.center .phone.sp { margin-left: -150px; }
.sp-hint { display: none; }
/* center：手機在對話框上方，只壓到對話框上緣，文字不被擋 */
.story-phone.center .phone.sp { bottom: 236px; height: 780px; }
.is-phone .story-phone.center .phone.sp { bottom: 168px; height: 540px; width: 270px; margin-left: -135px; }
/* side：對話文字在手機前換行 */
.dlg.with-side-phone .dlg-text { max-width: calc(100% - 560px); }
.is-phone .dlg.with-side-phone .dlg-text { max-width: calc(100% - 400px); }

/* 劇情手機（放大版）：下半截超出畫面，對話框疊在手機上面 */
.dlg { z-index: 8; }
.story-phone { z-index: 6; }
.phone.sp { right: 160px; bottom: -220px; width: 520px; height: 1140px; }                    /* side */
.story-phone.center .phone.sp { right: auto; left: 50%; margin-left: -290px; bottom: -260px; width: 580px; height: 1270px; }   /* center */
.sp .ph-frame { border-radius: 72px; padding: 11px; }
.sp .ph-screen { border-radius: 62px; }
.sp .ph-bar { padding: 26px 42px 10px; font-size: 20px; }
.sp .ph-island { width: 136px; height: 38px; top: 18px; }
.sp .ph-roomhead { margin: 6px 18px 0; padding: 12px 16px; }
.sp .ph-who b { font-size: 24px; }
.sp .ph-msgs { padding: 24px 26px; gap: 14px; }
.sp .msg { font-size: 25px; padding: 14px 22px; }
.sp .ph-home { display: none; }
.dlg.with-side-phone .dlg-text { max-width: 1500px; }

.is-phone .phone.sp { right: 90px; bottom: -150px; width: 340px; height: 760px; }
.is-phone .story-phone.center .phone.sp { margin-left: -190px; bottom: -170px; width: 380px; height: 850px; }
.is-phone .sp .ph-frame { border-radius: 52px; padding: 8px; }
.is-phone .sp .ph-screen { border-radius: 45px; }
.is-phone .sp .ph-bar { padding: 18px 30px 6px; font-size: 15px; }
.is-phone .sp .ph-island { width: 96px; height: 28px; top: 13px; }
.is-phone .sp .msg { font-size: 19px; }
.is-phone .sp .ph-who b { font-size: 19px; }
/* 手機疊在對話框上面 */
.story-phone { z-index: 9; }
.dlg { z-index: 5; }
.dlg.with-side-phone .dlg-text { max-width: none; }

/* =========================================================
   手機首頁與 App
   ========================================================= */
.ph-view { overflow: hidden; }
.hs-clock { display: flex; flex-direction: column; align-items: center; margin: 40px 0 46px; }
.hs-clock b { font-family: var(--serif); font-size: 92px; font-weight: 400; line-height: 1; color: #fff; text-shadow: 0 4px 20px rgba(115, 77, 77, .35); }
.hs-clock small { margin-top: 10px; font-size: 18px; letter-spacing: 4px; color: rgba(255, 255, 255, .9); text-shadow: 0 2px 8px rgba(115, 77, 77, .35); }
.hs-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 10px; padding: 0 30px; }
.app { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; font-size: 16px; color: var(--plum); font-weight: 500; }
.app-ico {
  display: grid; place-items: center; width: 82px; height: 82px; border-radius: 24px;
  box-shadow: 0 8px 18px rgba(115, 77, 77, .25), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .2s;
}
.app:hover .app-ico { transform: translateY(-3px); }
.app-ico svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.a1 { background: linear-gradient(145deg, #e8b4b8, #c08081); }
.a2 { background: linear-gradient(145deg, #a8c6a6, #6f9a74); }
.a3 { background: linear-gradient(145deg, #5f4a4c, #2e2223); }
.a4 { background: linear-gradient(145deg, #f6d9a8, #d6a56a); }
.a5 { background: linear-gradient(145deg, #f1a7a9, #b67fb4 60%, #8b6fb8); }
.a6 { background: linear-gradient(145deg, #fff, #e8d8d8); }
.a6 svg { stroke: #c08081; }
.app-badge {
  position: absolute; top: -6px; right: 14px; min-width: 26px; height: 26px; padding: 0 7px;
  border-radius: var(--pill); background: var(--alert); color: #fff; font-style: normal; font-size: 14px; line-height: 26px;
  box-shadow: 0 0 0 2px #fff;
}

.app-head { display: flex; align-items: center; gap: 10px; margin: 8px 18px 12px; }
.app-head b { font-family: var(--serif); font-size: 32px; font-weight: 700; letter-spacing: 3px; }
.app-head small { margin-left: auto; font-size: 15px; color: #9a6667; }
.app-body { flex: 1; overflow-y: auto; padding: 0 16px 40px; display: flex; flex-direction: column; gap: 10px; }
.app-empty { margin: 60px 0; text-align: center; font-size: 17px; color: #9a6667; }
.ph-view:not([hidden]) { display: flex; flex-direction: column; min-height: 0; flex: 1; }

/* 新聞 */
.news-card { text-align: left; padding: 16px 18px; border-radius: 20px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .8); color: var(--plum); }
.news-card.new { box-shadow: 0 0 0 2px rgba(240, 143, 151, .6); }
.news-media { display: inline-block; padding: 2px 10px; margin-bottom: 6px; border-radius: var(--pill); background: #4d3334; color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.news-card b { display: block; font-family: var(--serif); font-size: 20px; line-height: 1.45; }
.news-card p { display: none; margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: #734d4d; }
.news-card.open p { display: block; }

/* 粉絲團 */
.fans-cover { padding: 22px 20px; border-radius: 22px; background: linear-gradient(135deg, #f6d9a8, #d6a56a); color: var(--plum); }
.fans-cover b { display: block; font-family: var(--serif); font-size: 24px; }
.fans-cover small { font-size: 14px; }
.fan-post { display: flex; gap: 12px; padding: 14px 16px; border-radius: 20px; background: rgba(255, 255, 255, .6); }
.fan-post.new { box-shadow: 0 0 0 2px rgba(214, 165, 106, .6); }
.fan-ava { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #e0c0c0; color: #fff; font-size: 18px; }
.fan-post b { font-size: 16px; }
.fan-post p { margin: 4px 0; font-size: 17px; line-height: 1.5; }
.fan-post small { font-size: 13px; color: #c08081; }

/* IG */
.ig-top { display: flex; align-items: center; gap: 20px; padding: 6px 4px; }
.ig-ava { flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; font-family: var(--serif); font-size: 34px; color: #fff;
  background: linear-gradient(145deg, #c08081, #734d4d); box-shadow: 0 0 0 3px #fff, 0 0 0 6px #e8b4b8; }
.ig-ava.sm { width: 36px; height: 36px; font-size: 16px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e8b4b8; }
.ig-stats { display: flex; flex: 1; justify-content: space-around; }
.ig-stats span { display: flex; flex-direction: column; align-items: center; font-size: 13px; color: #8a6466; }
.ig-stats b { font-size: 20px; color: var(--plum); }
.ig-name { margin: 4px 4px 6px; font-size: 18px; font-weight: 700; }
.ig-name small { display: block; font-size: 14px; font-weight: 400; color: #8a6466; }
.ig-compose { padding: 14px; border-radius: 22px; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 2px rgba(182, 127, 180, .4); display: flex; flex-direction: column; gap: 8px; }
.ig-compose-t { margin: 0; font-size: 14px; letter-spacing: 2px; color: #8b6fb8; }
.ig-pic, .ig-big, .ig-cell { position: relative; display: block; border-radius: 14px; overflow: hidden; background: linear-gradient(140deg, #e8b4b8, #9a6667); }
.ig-pic.big { aspect-ratio: 4 / 3; }
.ig-pic i, .ig-big i, .ig-cell i { position: absolute; inset: auto 0 0; padding: 8px 10px; font-style: normal; font-size: 13px; line-height: 1.4; color: #fff; background: linear-gradient(transparent, rgba(38, 26, 26, .55)); }
.ig-opt { padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid #ecd9d9; text-align: left; font-size: 17px; color: var(--plum); }
.ig-opt:hover { background: var(--champagne); }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 6px; }
.ig-cell { aspect-ratio: 1; border: 0; padding: 0; border-radius: 6px; }
.ig-cell i { font-size: 11px; padding: 4px 6px; }
.ig-backrow { align-self: flex-start; background: none; border: 0; font-size: 16px; color: #9a6667; }
.ig-head { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.ig-big { aspect-ratio: 1; }
.ig-acts { display: flex; gap: 18px; font-size: 16px; color: var(--plum); }
.ig-like { color: #e0606e; }
.ig-capline { margin: 0; font-size: 16px; line-height: 1.5; }
.ig-comments { display: flex; flex-direction: column; gap: 6px; }
.ig-c { margin: 0; font-size: 15px; line-height: 1.5; }

/* 相簿 */
.photo-count { margin: 0 4px; font-size: 14px; color: #9a6667; }
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.photo-cell { position: relative; aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: linear-gradient(140deg, #d3a6a7, #734d4d); }
.photo-cell i { position: absolute; inset: auto 0 0; padding: 8px 10px; font-style: normal; font-size: 13px; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(38, 26, 26, .55)); }
.photo-cell.locked { background: rgba(255, 255, 255, .35); border: 1px dashed rgba(154, 102, 103, .5); cursor: default; }
.photo-cell.locked i { inset: 0; display: grid; place-items: center; background: none; font-size: 26px; color: rgba(154, 102, 103, .6); }

/* 電話 */
.call-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .6); }
.call-row div { flex: 1; display: flex; flex-direction: column; }
.call-row b { font-size: 18px; }
.call-row small { font-size: 13px; color: #8a6466; }
.call-row.ring { box-shadow: 0 0 0 2px rgba(111, 154, 116, .6); animation: ring 1.2s ease-in-out infinite; }
@keyframes ring { 50% { box-shadow: 0 0 0 6px rgba(111, 154, 116, .25); } }
.call-pick { padding: 8px 18px; border: 0; border-radius: var(--pill); background: #6f9a74; color: #fff; font-size: 15px; }
.call-screen { background: linear-gradient(180deg, rgba(77, 51, 52, .92), rgba(38, 26, 26, .95)); color: #fff; }
.call-top { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 40px 0 20px; }
.call-ava { display: grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; font-family: var(--serif); font-size: 46px; color: var(--plum); background: var(--champagne); box-shadow: 0 0 0 6px rgba(255, 255, 255, .15); }
.call-top b { font-family: var(--serif); font-size: 30px; }
.call-top small { font-size: 15px; color: rgba(255, 255, 255, .7); letter-spacing: 2px; }
.call-lines { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 10px 24px; }
.call-line { margin: 0; font-size: 19px; line-height: 1.55; }
.call-line.in { color: #fff; }
.call-line.out { color: var(--gold); text-align: right; }
.call-screen .ph-replies { background: rgba(255, 255, 255, .12); }
.call-screen .ph-replies::before { color: rgba(255, 255, 255, .7); }
.call-end { align-self: center; margin: 10px 0 40px; width: 72px; height: 72px; border-radius: 50%; border: 0; background: #e0606e; display: grid; place-items: center; }
.call-end svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 1.8; transform: rotate(135deg); }

.is-phone .hs-clock b { font-size: 64px; }
.is-phone .hs-clock { margin: 20px 0 28px; }
.is-phone .app-ico { width: 62px; height: 62px; border-radius: 18px; }
.is-phone .app-ico svg { width: 30px; height: 30px; }
.is-phone .hs-apps { gap: 20px 6px; padding: 0 18px; }
.is-phone .app { font-size: 13px; }

/* 聊天室輸入列（沒有可傳的訊息時顯示） */
.ph-inputbar {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 14px 30px; padding: 12px 20px;
  border-radius: var(--pill); background: rgba(255, 255, 255, .55);
  font-size: 16px; color: #9a6667;
}
.ph-inputbar i { font-style: normal; font-size: 13px; opacity: .7; }
.ph-replies:not([hidden]) + .ph-inputbar { display: none; }

/* 繼續遊戲（有自動存檔時出現） */
.title-menu > .t-btn.continue {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--champagne); color: var(--plum); border-color: transparent;
  box-shadow: 0 10px 26px rgba(120, 80, 50, .35);
}
.title-menu > .t-btn.continue small { font-family: var(--sans); font-size: 14px; letter-spacing: 2px; opacity: .75; }
.title-menu > .t-btn.continue:not([hidden]) + .t-btn { background: var(--glass); color: var(--ivory); border-color: var(--line); box-shadow: none; }
.title-menu > .t-btn.continue:not([hidden]) + .t-btn::after { display: none; }
.slot.auto .slot-no { font-size: 22px; }

/* 通知：畫面正上方的手機橫幅 */
.notice {
  left: 50%; right: auto; top: 22px; width: 640px; z-index: 40;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 18px;
  padding: 16px 22px 16px 18px;
  border-radius: 34px;
  background: rgba(252, 246, 244, .9);
  backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 18px 50px rgba(38, 26, 26, .35);
  animation: dropIn .55s cubic-bezier(.2, .9, .25, 1.15);
}
@keyframes dropIn { from { transform: translate(-50%, -150%); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.notice:hover { background: rgba(255, 255, 255, .96); }
.n-avatar { width: 62px; height: 62px; font-size: 28px; background: linear-gradient(145deg, #4d3334, #734d4d); color: var(--gold); box-shadow: 0 0 0 2px #fff, 0 0 0 3px #d6ae74; }
.n-body { flex: 1; min-width: 0; }
.n-top { display: flex; justify-content: space-between; font-size: 14px; letter-spacing: 2px; color: #9a6667; }
.n-top small { letter-spacing: 0; }
.n-body b { display: block; margin-top: 2px; font-size: 21px; color: var(--plum); }
.n-body p { margin: 2px 0 0; font-size: 19px; line-height: 1.45; color: #734d4d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n-answer { flex: none; padding: 10px 22px; border-radius: var(--pill); background: #6f9a74; color: #fff; font-size: 17px; letter-spacing: 2px; box-shadow: 0 6px 14px rgba(111, 154, 116, .4); }
.notice.calling { animation: dropIn .55s cubic-bezier(.2, .9, .25, 1.15), buzz 1.6s ease-in-out .6s infinite; }
@keyframes buzz { 0%, 70%, 100% { transform: translate(-50%, 0); } 74% { transform: translate(calc(-50% - 4px), 0); } 78% { transform: translate(calc(-50% + 4px), 0); } 82% { transform: translate(calc(-50% - 3px), 0); } 86% { transform: translate(calc(-50% + 3px), 0); } }
.is-phone .notice { width: 520px; top: 14px; padding: 12px 16px 12px 14px; }
.is-phone .n-avatar { width: 48px; height: 48px; font-size: 22px; }
.is-phone .n-body b { font-size: 18px; }
.is-phone .n-body p { font-size: 16px; }

/* =========================================================
   手機首頁小組件
   ========================================================= */
#pv-home { padding: 0 16px; gap: 12px; }
#pv-home .hs-clock { margin: 10px 0 4px; }
#pv-home .hs-clock b { font-size: 64px; }
#pv-home .hs-clock small { margin-top: 4px; font-size: 15px; }
.wg-him {
  display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center;
  padding: 16px; border-radius: 28px;
  background: linear-gradient(140deg, rgba(77, 51, 52, .88), rgba(115, 77, 77, .82));
  color: var(--ivory); box-shadow: 0 10px 24px rgba(77, 51, 52, .3);
}
.wg-ava { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 30px; color: var(--plum); background: var(--champagne) center / cover; box-shadow: 0 0 0 2px rgba(255,255,255,.7), 0 0 0 4px #d6ae74; }
.wg-info { min-width: 0; }
.wg-name { display: flex; align-items: center; gap: 8px; }
.wg-name b { font-family: var(--serif); font-size: 22px; }
.wg-name i { font-style: normal; padding: 2px 10px; border-radius: var(--pill); background: rgba(255,255,255,.15); font-size: 12px; }
.wg-name i.new { background: var(--alert); }
.wg-last { margin: 4px 0 2px; padding: 8px 12px; border-radius: 14px; background: rgba(255,255,255,.12); font-size: 15px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-where { font-size: 13px; color: var(--muted); }
.wg-btns { grid-column: 1 / -1; display: flex; gap: 8px; }
.wg-btns button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 0; border: 0; border-radius: var(--pill); font-size: 16px; letter-spacing: 2px; }
.wg-video { background: var(--champagne); color: var(--plum); box-shadow: 0 6px 14px rgba(156, 110, 60, .35); }
.wg-video svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.wg-video.used { filter: saturate(.6); }
.wg-msg { background: rgba(255,255,255,.16); color: var(--ivory); }
.wg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wg-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 22px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.7); text-align: left; color: var(--plum); min-height: 112px; }
.wg-card small { font-size: 12px; letter-spacing: 2px; color: #9a6667; }
.wg-card b { font-family: var(--serif); font-size: 18px; line-height: 1.35; }
.wg-card i { margin-top: auto; font-style: normal; font-size: 12px; color: #c08081; }
.wg-news b { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#pv-home .hs-apps { grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 4px 0 0; }
#pv-home .app-ico { width: 66px; height: 66px; border-radius: 20px; }
#pv-home .app-ico svg { width: 32px; height: 32px; }
.hs-dock {
  margin: auto 0 26px; padding: 10px 12px;
  display: grid; grid-template-columns: repeat(4, 1fr); justify-items: center;
  border-radius: 30px; background: rgba(255,255,255,.35); backdrop-filter: blur(10px);
}
.hs-dock .app-ico { width: 62px; height: 62px; border-radius: 19px; }
.hs-dock .app-ico svg { width: 30px; height: 30px; }
.hs-dock .app-badge { right: -2px; }

.is-phone #pv-home { gap: 8px; padding: 0 12px; }
.is-phone #pv-home .hs-clock b { font-size: 44px; }
.is-phone .wg-ava { width: 52px; height: 52px; font-size: 22px; }
.is-phone .wg-him { padding: 12px; border-radius: 22px; gap: 8px 10px; }
.is-phone .wg-name b { font-size: 18px; }
.is-phone .wg-last { font-size: 13px; padding: 6px 10px; }
.is-phone .wg-btns button { padding: 7px 0; font-size: 13px; }
.is-phone .wg-card { min-height: 84px; padding: 10px; }
.is-phone .wg-card b { font-size: 14px; }
.is-phone #pv-home .app-ico, .is-phone .hs-dock .app-ico { width: 46px; height: 46px; border-radius: 14px; }
.is-phone #pv-home .app-ico svg, .is-phone .hs-dock .app-ico svg { width: 24px; height: 24px; }
.is-phone .hs-dock { margin-bottom: 18px; padding: 6px 8px; }

/* =========================================================
   視訊電話（全螢幕）
   ========================================================= */
.videocall { position: absolute; inset: 0; z-index: 60; background: #1a1112; animation: fadeIn .4s ease; }
.vc-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.vc-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 22%, transparent 62%, rgba(0,0,0,.6)); }
.vc-top { position: absolute; left: 50%; top: 34px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 26px; border-radius: var(--pill); background: rgba(0,0,0,.35); backdrop-filter: blur(10px); color: #fff; z-index: 2; }
.vc-top b { font-family: var(--serif); font-size: 24px; letter-spacing: 4px; }
.vc-top small { font-size: 18px; font-variant-numeric: tabular-nums; opacity: .85; }
.vc-dot { width: 10px; height: 10px; border-radius: 50%; background: #7fd18a; box-shadow: 0 0 10px #7fd18a; }
.vc-self { position: absolute; right: 50px; top: 40px; z-index: 2; width: 220px; aspect-ratio: 3 / 4; border-radius: 26px; display: grid; place-items: center; color: rgba(255,255,255,.7); font-size: 18px; letter-spacing: 3px; background: linear-gradient(160deg, #d3a6a7, #734d4d); box-shadow: 0 0 0 3px rgba(255,255,255,.6), 0 12px 30px rgba(0,0,0,.4); }
.vc-tap { position: absolute; inset: 0; z-index: 1; background: none; border: 0; cursor: pointer; }
.vc-hint { position: absolute; left: 50%; top: 46%; transform: translateX(-50%); z-index: 2; margin: 0; padding: 10px 26px; border-radius: var(--pill); background: rgba(0,0,0,.35); color: #fff; font-size: 20px; letter-spacing: 4px; pointer-events: none; animation: bob 1.6s ease-in-out infinite; }
.vc-sub { position: absolute; left: 50%; bottom: 190px; transform: translateX(-50%); z-index: 2; max-width: 1100px; padding: 14px 34px; border-radius: 22px; background: rgba(0,0,0,.42); backdrop-filter: blur(6px); color: #fff; font-family: var(--serif); font-size: 32px; line-height: 1.6; text-align: center; pointer-events: none; }
.vc-sub:empty { display: none; }
.vc-sub.pop { animation: pop .35s ease; }
.vc-end { position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%); z-index: 2; width: 92px; height: 92px; border-radius: 50%; border: 0; background: #e0606e; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(224, 96, 110, .5); }
.vc-end svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 1.8; transform: rotate(135deg); }
.is-phone .vc-self { width: 150px; right: 30px; top: 24px; }
.is-phone .vc-sub { font-size: 24px; bottom: 140px; max-width: 900px; }
.is-phone .vc-end { width: 72px; height: 72px; bottom: 36px; }

/* 手機桌布與聊天背景 */
.ph-screen { background-image: var(--wall, none), radial-gradient(120% 60% at 20% 0%, rgba(255, 236, 228, .95), transparent 60%), radial-gradient(90% 60% at 100% 100%, rgba(214, 166, 167, .9), transparent 65%), linear-gradient(170deg, #f3e1de 0%, #e3c3c4 55%, #cfa2a6 100%); background-size: cover; background-position: center; }
#ph-room { position: relative; isolation: isolate; }
#ph-room::before { /* 預設：模糊版桌布 */
  content: ""; position: absolute; inset: -40px; z-index: -1;
  background: var(--wall, linear-gradient(170deg, #f3e1de, #cfa2a6)) center / cover;
  filter: blur(22px) saturate(1.1); opacity: .9;
}
#ph-room::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 246, 244, .35); }
#ph-room.own-bg::before { background: var(--chatbg) center top / cover; filter: none; opacity: 1; inset: 0; }
#ph-room.own-bg::after { background: linear-gradient(180deg, transparent 35%, rgba(38, 26, 26, .35)); }

/* ===== 新 App：論壇／行事曆／音樂 ===== */
.a7 { background: linear-gradient(145deg, #c9a0c0, #7d5a86); }
.a8 { background: linear-gradient(145deg, #fff, #f3e6e4); }
.a9 { background: linear-gradient(145deg, #f3b28c, #d9707a); }
.cal-ico { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.cal-ico small { font-size: 12px; font-weight: 700; color: #c0565f; letter-spacing: 1px; }
.cal-ico b { font-family: var(--serif); font-size: 30px; color: var(--plum); margin-top: 2px; }
.is-phone .cal-ico small { font-size: 9px; } .is-phone .cal-ico b { font-size: 20px; }
#pv-home .hs-apps { row-gap: 18px; }

/* 論壇 */
.fo-meter { padding: 14px 18px; border-radius: 20px; background: rgba(77, 51, 52, .78); color: var(--ivory, #fff6f4); }
.fo-meter small { font-size: 13px; letter-spacing: 3px; color: var(--gold); }
.fo-meter b { display: block; margin: 4px 0 10px; font-family: var(--serif); font-size: 21px; }
.fo-meter i { display: block; height: 6px; border-radius: 9px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.fo-meter span { display: block; height: 100%; background: linear-gradient(90deg, #f0d6a6, #f08f97); }
.fo-tabs { display: flex; gap: 6px; }
.fo-tabs button { flex: 1; padding: 7px 0; border: 0; border-radius: 99px; font-size: 15px; background: rgba(255, 255, 255, .45); color: #734d4d; }
.fo-tabs button.on { background: #734d4d; color: #fff; }
.fo-row { text-align: left; padding: 14px 16px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .6); color: var(--plum); }
.fo-row.new { box-shadow: 0 0 0 2px rgba(201, 160, 192, .8); }
.fo-row b { display: block; margin: 6px 0 4px; font-size: 18px; line-height: 1.45; }
.fo-row small { font-size: 13px; color: #9a6667; }
.fo-row em { font-style: normal; color: #c0565f; }
.fo-board { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: 12px; color: #fff; background: #9a6667; }
.fo-board.b-八卦 { background: #c0565f; } .fo-board.b-新人 { background: #cfa86e; } .fo-board.b-劇組 { background: #7d5a86; }
.fo-op { padding: 16px 18px; border-radius: 20px; background: rgba(255, 255, 255, .72); color: var(--plum); }
.fo-op h4 { margin: 8px 0 4px; font-family: var(--serif); font-size: 21px; line-height: 1.4; }
.fo-op small { font-size: 13px; color: #9a6667; }
.fo-op p { margin: 10px 0 0; font-size: 17px; line-height: 1.65; }
.fo-floors { display: flex; flex-direction: column; gap: 6px; }
.fo-floor { padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .5); color: var(--plum); }
.fo-floor small { font-size: 12px; color: #9a6667; }
.fo-floor p { margin: 3px 0 0; font-size: 16px; line-height: 1.5; }
.fo-floor.me { background: rgba(240, 214, 166, .55); }
.fo-reply { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.fo-reply > small { font-size: 13px; color: #734d4d; }

/* 行事曆 */
.cal-goal { padding: 14px 18px; border-radius: 20px; background: linear-gradient(135deg, #4d3334, #734d4d); color: #fff6f4; }
.cal-goal small { font-size: 13px; letter-spacing: 3px; color: var(--gold); }
.cal-goal b { display: block; font-family: var(--serif); font-size: 22px; margin: 2px 0; }
.cal-goal i { font-style: normal; font-size: 14px; opacity: .8; }
.cal-row { display: flex; align-items: center; gap: 14px; text-align: left; padding: 10px 16px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .6); color: var(--plum); }
.cal-row > div { flex: 1; min-width: 0; }
.cal-row small { font-size: 12px; color: #9a6667; }
.cal-row div b { display: block; font-size: 17px; }
.cal-row em { font-style: normal; font-size: 12px; padding: 2px 9px; border-radius: 99px; background: rgba(154, 102, 103, .15); color: #734d4d; white-space: nowrap; }
.cal-m { width: 46px; text-align: center; font-size: 12px; color: #9a6667; }
.cal-m b { display: block; font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--plum); }
.cal-row.now { box-shadow: 0 0 0 2px #c08081; background: rgba(255, 255, 255, .85); }
.cal-row.now em { background: #c08081; color: #fff; }
.cal-row.done { opacity: .6; }
.cal-row.lock { background: rgba(255, 255, 255, .3); border-style: dashed; }
.cal-card { padding: 16px 18px; border-radius: 20px; background: rgba(255, 255, 255, .75); color: var(--plum); }
.cal-card small { font-size: 13px; color: #9a6667; }
.cal-card b { display: block; font-family: var(--serif); font-size: 22px; margin: 4px 0; }
.cal-card p { margin: 0; font-size: 15px; line-height: 1.6; color: #734d4d; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 12px; border-radius: 20px; background: rgba(255, 255, 255, .5); }
.cal-grid i { font-style: normal; aspect-ratio: 1; display: grid; place-items: center; font-size: 14px; color: var(--plum); border-radius: 50%; }
.cal-grid .cal-w { aspect-ratio: auto; font-size: 12px; color: #9a6667; }
.cal-d.ev-work { background: #734d4d; color: #fff; }
.cal-d.ev-love { background: #f08f97; color: #fff; }
.cal-d.ev-day { background: #f0d6a6; }
.cal-list p { display: flex; gap: 12px; align-items: center; margin: 0 0 6px; padding: 8px 14px; border-radius: 14px; background: rgba(255, 255, 255, .55); font-size: 15px; color: var(--plum); border-left: 4px solid #f0d6a6; }
.cal-list p.ev-work { border-color: #734d4d; } .cal-list p.ev-love { border-color: #f08f97; }
.cal-list p.none { border: 0; color: #9a6667; }

/* 音樂 */
.mu-now { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; border-radius: 24px; background: rgba(77, 51, 52, .8); color: #fff6f4; text-align: center; }
.mu-disc { width: 150px; height: 150px; margin-bottom: 10px; border-radius: 50%; display: grid; place-items: center;
  background: repeating-radial-gradient(circle, #2e2223 0 2px, #3c2c2d 2px 4px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.mu-disc i { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #f0d6a6, #c08081); border: 6px solid #2e2223; }
.mu-now.playing .mu-disc { animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mu-now b { font-family: var(--serif); font-size: 22px; }
.mu-now small { font-size: 14px; opacity: .75; }
.mu-now em { font-style: normal; font-size: 13px; color: var(--gold); }
.mu-play { margin-top: 10px; padding: 8px 22px; border: 1px solid rgba(240, 214, 166, .6); border-radius: 99px; background: none; color: var(--gold); font-size: 15px; }
.mu-sub { margin: 6px 4px 0; font-size: 13px; letter-spacing: 2px; color: #734d4d; }
.mu-row { display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 16px; border-radius: 16px; border: 0; background: rgba(255, 255, 255, .55); color: var(--plum); }
.mu-row > span { font-family: var(--serif); color: #9a6667; }
.mu-row div { flex: 1; } .mu-row b { display: block; font-size: 17px; } .mu-row small { font-size: 13px; color: #9a6667; }
.mu-row i { font-style: normal; color: #c0565f; font-size: 20px; }
.mu-row.on { background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 2px #d3a6a7; }

/* 相簿當桌布 */
.photo-cell { background-size: cover; background-position: center; }
.photo-cell.is-wall::after { content: "桌布"; position: absolute; top: 6px; right: 6px; padding: 1px 8px; border-radius: 99px; font-size: 11px; background: rgba(38, 26, 26, .6); color: #fff; }
.wall-reset { align-self: center; margin-top: 6px; padding: 7px 18px; border-radius: 99px; border: 1px solid #c08081; background: rgba(255, 255, 255, .5); color: #734d4d; font-size: 14px; }
.viewer { flex-direction: column; gap: 24px; }
.viewer .vw-pic { background-size: cover; background-position: center; position: relative; }
.viewer .vw-pic span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 28px; font-size: 24px; text-align: left; background: linear-gradient(transparent, rgba(38, 26, 26, .6)); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.vw-wall { padding: 12px 34px; border-radius: 99px; border: 1px solid var(--gold); background: rgba(38, 26, 26, .5); color: var(--gold); font-size: 20px; }
.vw-wall.on { background: var(--gold); color: var(--plum); }
.is-phone .viewer .vw-pic { width: 1100px; }

/* 出發前待辦 */
.todo-chip { display: flex; align-items: center; gap: 10px; width: 100%; margin: -10px 0 16px; padding: 10px 16px; border-radius: 16px; border: 1px dashed rgba(240, 214, 166, .7); background: rgba(240, 214, 166, .12); color: var(--gold); font-size: 18px; text-align: left; animation: todoPulse 2.4s ease-in-out infinite; }
.todo-chip i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #f08f97; color: #fff; font-style: normal; font-size: 15px; font-weight: 700; }
.todo-chip span { margin-left: auto; letter-spacing: 2px; }
@keyframes todoPulse { 50% { background: rgba(240, 214, 166, .24); } }
.is-phone .todo-chip { font-size: 14px; padding: 7px 12px; margin: -6px 0 10px; }
.todo-pop { position: absolute; inset: 0; z-index: 45; display: grid; place-items: center; background: rgba(38, 26, 26, .55); backdrop-filter: blur(4px); }
.todo-box { width: 640px; padding: 36px 40px; border-radius: var(--r-lg, 28px); background: linear-gradient(160deg, rgba(77, 51, 52, .96), rgba(38, 26, 26, .96)); border: 1px solid rgba(240, 214, 166, .4); color: #fff6f4; }
.todo-box h3 { margin: 6px 0 18px; font-family: var(--serif); font-size: 34px; }
.todo-list { display: flex; flex-direction: column; gap: 10px; }
.todo-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; border: 1px solid rgba(240, 214, 166, .25); background: rgba(255, 255, 255, .06); color: #fff6f4; text-align: left; }
.todo-item > span { font-size: 26px; width: 34px; text-align: center; }
.todo-item div { flex: 1; } .todo-item b { display: block; font-size: 20px; } .todo-item small { font-size: 15px; opacity: .75; }
.todo-item em { font-style: normal; color: var(--gold); font-size: 16px; }
.todo-item:hover { background: rgba(240, 214, 166, .12); }
.todo-note { margin: 16px 0 22px; font-size: 15px; color: rgba(255, 246, 244, .6); }
.todo-btns { display: flex; justify-content: flex-end; gap: 12px; }
.todo-btns button { padding: 12px 30px; font-size: 18px; }
.todo-btns .btn-ghost { border-radius: 99px; border: 1px solid rgba(240, 214, 166, .5); background: none; color: var(--gold); }
.is-phone .todo-box { width: 560px; padding: 24px 28px; }
.is-phone .todo-box h3 { font-size: 26px; margin-bottom: 12px; }

/* 衣櫃：未解鎖顯示名字＋鎖頭 */
.wr-item { display: flex; align-items: center; justify-content: center; gap: 6px; }
.wr-item.locked { opacity: .55; }
.wr-item .wr-lock { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

/* 二選一 */
.pick-box { width: 820px; }
.pick-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pick-card { display: flex; flex-direction: column; gap: 10px; text-align: left; padding: 24px; border-radius: 20px; border: 1px solid rgba(240, 214, 166, .35); background: rgba(255, 255, 255, .06); color: #fff6f4; transition: .2s; }
.pick-card:hover { background: rgba(240, 214, 166, .14); transform: translateY(-3px); }
.pick-card b { font-family: var(--serif); font-size: 26px; color: var(--gold); }
.pick-card p { margin: 0; font-size: 17px; line-height: 1.6; opacity: .85; flex: 1; }
.pick-card em { font-style: normal; color: var(--gold); font-size: 16px; }
.is-phone .pick-box { width: 680px; }
.is-phone .pick-card { padding: 16px; } .is-phone .pick-card b { font-size: 20px; } .is-phone .pick-card p { font-size: 14px; }

/* 劇情背景：夜晚版（用玩家房間調暗） */
#story-bg.night::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 16, 40, .55), rgba(38, 26, 26, .62)); }
#story-bg[data-label=""]::after { display: none; }

/* 地圖有圖時：字加陰影、四周壓暗，地點才看得清楚 */
.map-node b, .map-node small, .map-city { text-shadow: 0 2px 10px rgba(20, 12, 14, .95), 0 0 3px rgba(20, 12, 14, .9); }
#map-area::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 45%, rgba(20, 12, 14, .45) 100%); }

/* 外出：四個城市分頁 */
.map-tabs { position: absolute; left: 50%; top: 150px; transform: translateX(-50%); z-index: 5; display: flex; gap: 10px; padding: 6px; border-radius: 99px; background: rgba(38, 26, 26, .55); backdrop-filter: blur(10px); border: 1px solid rgba(240, 214, 166, .25); }
.map-tabs button { display: flex; align-items: center; gap: 8px; padding: 10px 26px; border: 0; border-radius: 99px; background: none; color: var(--ivory, #fff6f4); font-family: var(--serif); font-size: 22px; letter-spacing: 4px; }
.map-tabs button i { font-style: normal; font-family: var(--sans, inherit); font-size: 13px; letter-spacing: 0; min-width: 20px; height: 20px; line-height: 20px; border-radius: 10px; background: rgba(240, 214, 166, .25); color: var(--gold); }
.map-tabs button.on { background: linear-gradient(135deg, #f0d6a6, #cfa86e); color: var(--plum); }
.map-tabs button.on i { background: rgba(77, 51, 52, .2); color: var(--plum); }
.map-title, .map-tabs, .map-hint { z-index: 5; }
.map-title span { text-shadow: 0 2px 8px rgba(20, 12, 14, .9); }
.map-title b { text-shadow: 0 2px 12px rgba(20, 12, 14, .9); }
.map-hint { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); margin: 0; padding: 10px 26px; border-radius: 99px; background: rgba(38, 26, 26, .6); color: var(--gold); font-size: 18px; letter-spacing: 2px; white-space: nowrap; }
#map-bg { filter: blur(18px) brightness(.6); transform: scale(1.1); }
.map-node.done i { background: rgba(246, 236, 236, .5); }
.is-phone .map-tabs { top: 110px; } .is-phone .map-tabs button { font-size: 18px; padding: 8px 18px; }

/* ===== 叫車 App ===== */
.a10 { background: linear-gradient(145deg, #3a3a3e, #121214); }
#pv-ride { position: relative; }
.ride-map { position: absolute; inset: 0; overflow: hidden; }
.ride-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ride-top { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 46px 12px 0; }
.ride-top .ph-back { flex: none; width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); color: #4d3334; }
.ride-chips { flex: 1; display: flex; gap: 6px; padding: 5px; border-radius: 99px; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.ride-chips button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 7px 0; border: 0; border-radius: 99px; background: none; color: #4d3334; font-size: 15px; font-weight: 600; }
.ride-chips button i { font-style: normal; font-size: 11px; min-width: 16px; height: 16px; line-height: 16px; border-radius: 8px; background: #f0e6e0; color: #9a6667; }
.ride-chips button.on { background: #2b2b2e; color: #fff; }
.ride-chips button.on i { background: #f0d6a6; color: #2b2b2e; }
.ride-pin { position: absolute; z-index: 2; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; padding: 0; }
.ride-pin i { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #e0505e; border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); }
.ride-pin b { padding: 2px 8px; border-radius: 8px; background: rgba(255, 255, 255, .95); font-size: 13px; color: #2b2b2e; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); order: -1; }
.ride-pin.sel i { background: #2b2b2e; transform: rotate(-45deg) scale(1.25); }
.ride-pin.done i { background: #b9a9a9; }
.ride-pin.off { opacity: .45; pointer-events: none; }
.ride-pin.off i { background: #9a9a9a; }
.ride-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; max-height: 52%; overflow-y: auto; padding: 18px 18px 34px; border-radius: 26px 26px 0 0; background: #fff; box-shadow: 0 -6px 24px rgba(0, 0, 0, .15); color: #2b2b2e; display: flex; flex-direction: column; gap: 6px; }
.ride-sheet > small { font-size: 13px; color: #9a6667; }
.ride-sheet > b { font-family: var(--serif); font-size: 24px; }
.ride-sheet > p { margin: 0; font-size: 15px; line-height: 1.55; color: #5a4a4a; }
.ride-sheet .ride-state { color: #c0565f; font-size: 14px; }
.ride-row { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border: 0; border-bottom: 1px solid #f0e8e4; background: none; text-align: left; color: #2b2b2e; }
.ride-row > i { font-style: normal; font-size: 20px; }
.ride-row div { flex: 1; } .ride-row b { display: block; font-size: 17px; } .ride-row small { font-size: 13px; color: #8a7a7a; }
.ride-row em { font-style: normal; color: #bbb; font-size: 22px; }
.ride-x { align-self: flex-start; border: 0; background: none; color: #9a6667; font-size: 14px; padding: 0; }
.ride-info { display: flex; justify-content: space-between; margin: 6px 0; padding: 10px 14px; border-radius: 14px; background: #f6f1ee; font-size: 14px; }
.ride-go { margin-top: 6px; background: #2b2b2e !important; color: #fff !important; }
.ride-go[disabled] { opacity: .45; }
.ride-wait { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 0; text-align: center; }
.ride-wait b { font-size: 18px; } .ride-wait small { color: #8a7a7a; }
.ride-spin { width: 36px; height: 36px; border-radius: 50%; border: 4px solid #eee; border-top-color: #2b2b2e; animation: spin 1s linear infinite; }
.is-phone .ride-top { padding-top: 34px; } .is-phone .ride-chips button { font-size: 12px; }
.is-phone .ride-sheet > b { font-size: 19px; } .is-phone .ride-row b { font-size: 14px; }


/* ===== 結局畫面 ===== */
#ending-pop {
  position: absolute; inset: 0; z-index: 500;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at center, rgba(77, 51, 52, .78) 0%, rgba(38, 26, 26, .96) 70%);
  animation: endFade 1.6s ease both;
}
#ending-pop[hidden] { display: none; }
@keyframes endFade { from { opacity: 0; } to { opacity: 1; } }
.end-box { text-align: center; max-width: 1100px; padding: 0 80px; }
.end-kind { margin: 0 0 28px; font-size: 26px; letter-spacing: 12px; color: var(--gold); }
.end-name {
  margin: 0; font-family: var(--serif); font-weight: 600; font-size: 84px; letter-spacing: 10px;
  background: var(--champagne); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: endRise 2s .4s ease both;
}
@keyframes endRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.end-line { margin: 40px 0 0; font-family: var(--serif); font-size: 34px; line-height: 1.8; color: var(--ivory); animation: endRise 2s 1.2s ease both; }
.end-count { margin: 56px 0 36px; font-size: 22px; letter-spacing: 4px; color: var(--muted); }
.end-btn { min-width: 360px; animation: endRise 1.6s 2s ease both; }
.end-btn { background: var(--champagne); color: var(--plum); border-color: transparent; }

/* =========================================================
   手機首頁 v2：琴律橫幅＋行程＋論壇熱門
   ========================================================= */
#pv-home { padding: 12px 16px 0; gap: 12px; }
.wg-banner {
  position: relative; height: 250px; border-radius: 28px; overflow: hidden; flex-shrink: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(150deg, #734d4d, #4d3334) center / cover no-repeat;
  box-shadow: 0 12px 28px rgba(38, 26, 26, .35);
  color: #fff;
}
.wg-banner::before {   /* 上下壓暗，讓字看得清楚 */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(38,26,26,.45) 0%, rgba(38,26,26,0) 34%, rgba(38,26,26,0) 46%, rgba(38,26,26,.82) 100%);
}
.wb-clock, .wb-foot { position: relative; z-index: 1; }
.wb-clock { padding: 16px 20px 0; display: flex; flex-direction: column; }
.wb-clock b { font-family: var(--serif); font-weight: 400; font-size: 54px; line-height: 1; letter-spacing: 2px; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.wb-clock small { margin-top: 6px; font-size: 13px; letter-spacing: 3px; opacity: .9; }
.wb-foot { display: flex; align-items: flex-end; gap: 12px; padding: 0 16px 14px 20px; }
.wb-info { flex: 1; min-width: 0; }
.wb-info b { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: 3px; }
.wb-info p { margin: 4px 0 3px; font-size: 15px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255,255,255,.92); }
.wb-info small { display: block; font-size: 12px; letter-spacing: 1px; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-btns { display: flex; gap: 8px; }
.wb-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45);
  display: grid; place-items: center; padding: 0;
  background: rgba(255,255,255,.18); backdrop-filter: blur(8px); color: #fff; cursor: pointer;
}
.wb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#wg-video { background: var(--champagne); color: var(--plum); border-color: transparent; }
#wg-video.used { filter: saturate(.55); }
.wb-dot { position: absolute; top: 2px; right: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--alert); box-shadow: 0 0 0 2px rgba(255,255,255,.85); }

#pv-home .wg-row { gap: 10px; }
#pv-home .wg-card { min-height: 0; padding: 12px 14px; gap: 6px; cursor: pointer; }
#pv-home .wg-card:hover { background: rgba(255,255,255,.7); }
.wg-list { display: flex; flex-direction: column; gap: 5px; }
.wg-list p { margin: 0; display: flex; align-items: center; gap: 7px; font-size: 14px; line-height: 1.3; color: var(--plum); min-width: 0; }
.wg-list p span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-list p em { flex-shrink: 0; font-style: normal; font-size: 11px; padding: 2px 7px; border-radius: var(--pill); background: rgba(192,128,129,.16); color: #9a6667; }
.wg-sched .wg-list p.now span { font-weight: 700; }
.wg-sched .wg-list p.now em { background: var(--champagne); color: var(--plum); }
.wg-sched .wg-list p.lock span { color: #b08f90; }
.wg-hot .wg-list p { cursor: pointer; }
.wg-hot .wg-list p:hover span { text-decoration: underline; }
.wg-hot .wg-list p em { min-width: 20px; text-align: center; padding: 2px 0; background: rgba(240,143,151,.18); color: #c0606a; }
.wg-hot .wg-list p:first-child em { background: var(--alert); color: #fff; }
.wg-list p.none { color: #b08f90; font-size: 13px; }
#pv-home .wg-card i { font-size: 11px; }
#pv-home .hs-apps { grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 2px 0 0; }
#pv-home .hs-apps .app { font-size: 12px; gap: 5px; }
#pv-home .app-ico { width: 56px; height: 56px; border-radius: 17px; }
#pv-home .app-ico svg { width: 27px; height: 27px; }

.is-phone #pv-home { padding: 8px 12px 0; gap: 8px; }
.is-phone .wg-banner { height: 168px; border-radius: 22px; }
.is-phone .wb-clock { padding: 10px 14px 0; }
.is-phone .wb-clock b { font-size: 36px; }
.is-phone .wb-clock small { font-size: 10px; margin-top: 3px; }
.is-phone .wb-foot { padding: 0 10px 10px 14px; gap: 8px; }
.is-phone .wb-info b { font-size: 16px; }
.is-phone .wb-info p { font-size: 12px; margin: 2px 0; }
.is-phone .wb-info small { font-size: 10px; }
.is-phone .wb-btn { width: 34px; height: 34px; }
.is-phone .wb-btn svg { width: 17px; height: 17px; }
.is-phone #pv-home .wg-card { padding: 8px 10px; gap: 4px; }
.is-phone .wg-list { gap: 3px; }
.is-phone .wg-list p { font-size: 11px; gap: 5px; }
.is-phone .wg-list p em { font-size: 9px; padding: 1px 5px; }
.is-phone #pv-home .hs-apps .app { font-size: 10px; }
.is-phone #pv-home .app-ico { width: 40px; height: 40px; border-radius: 12px; }
.is-phone #pv-home .app-ico svg { width: 20px; height: 20px; }

/* 訊息列表：時間、標籤，排更密 */
.ph-chats { gap: 8px; padding-bottom: 20px; overflow-y: auto; }
.ph-chat { padding: 11px 14px; }
.ph-chat .ph-ava { width: 50px; height: 50px; font-size: 22px; flex-shrink: 0; }
.ph-meta b { display: flex; align-items: center; gap: 6px; font-size: 20px; }
.ph-meta small { font-size: 15px; }
.ph-tag { font-style: normal; font-family: var(--sans); font-size: 11px; font-weight: 500; padding: 1px 8px; border-radius: var(--pill); background: rgba(192,128,129,.16); color: #9a6667; letter-spacing: 1px; }
.ph-time { position: absolute; right: 16px; top: 14px; font-style: normal; font-size: 12px; color: #9a6667; }
.is-phone .ph-chat .ph-ava { width: 38px; height: 38px; font-size: 16px; }
.is-phone .ph-meta b { font-size: 15px; }
.is-phone .ph-meta small { font-size: 12px; }
.is-phone .ph-time { font-size: 10px; top: 10px; right: 12px; }
.ph-chats { flex: 1; min-height: 0; }
#pv-home .wg-row { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
#pv-home .wg-card { min-width: 0; overflow: hidden; }
#pv-home .hs-apps .app { color: #fff; text-shadow: 0 1px 4px rgba(38, 26, 26, .7); }
.wg-banner { height: 300px; }
.is-phone .wg-banner { height: 196px; }

/* ===== AI 聊天導流按鈕 ===== */
.t-chat {
  display: flex; align-items: center; gap: 16px; width: 100%;
  margin-top: 6px; padding: 16px 26px; border-radius: var(--pill);
  border: 1px solid var(--line); background: linear-gradient(120deg, rgba(240,143,151,.28), rgba(207,168,110,.22));
  color: var(--ivory); text-align: left; cursor: pointer; text-decoration: none;
  box-shadow: 0 10px 26px rgba(120, 60, 60, .28);
  animation: chatGlow 2.8s ease-in-out infinite;
}
.t-chat:hover { background: linear-gradient(120deg, rgba(240,143,151,.42), rgba(207,168,110,.34)); }
.t-chat .ico { width: 30px; height: 30px; flex-shrink: 0; color: #ffb3bb; fill: none; stroke: currentColor; stroke-width: 1.8; }
.t-chat span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.t-chat b { font-family: var(--serif); font-size: 26px; letter-spacing: 6px; font-weight: 600; }
.t-chat small { font-size: 16px; letter-spacing: 2px; color: var(--muted); }
.t-chat i { font-style: normal; font-size: 24px; color: var(--gold); }
@keyframes chatGlow { 0%, 100% { box-shadow: 0 10px 26px rgba(120,60,60,.28); } 50% { box-shadow: 0 10px 34px rgba(240,143,151,.45); } }
.au-chat { margin-top: 24px; }
.end-btns { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.end-chat { width: auto; min-width: 460px; animation: endRise 1.6s 2.4s ease both, chatGlow 2.8s 4s ease-in-out infinite; }

/* 結局畫面的背景圖 */
#ending-pop.has-img { background: radial-gradient(ellipse at center, rgba(77,51,52,.55) 0%, rgba(38,26,26,.92) 75%), var(--endimg) center / cover no-repeat; }

/* ===== 收藏：分頁、縮圖、結局、成就 ===== */
.col-tabs { display: flex; gap: 10px; margin: -12px 0 24px; }
.col-tabs button { flex: 1; padding: 12px 0; border-radius: var(--pill); border: 1px solid var(--line-soft); background: rgba(246,236,236,.06); color: var(--muted); font-size: 20px; letter-spacing: 4px; cursor: pointer; }
.col-tabs button.on { background: var(--champagne); color: var(--plum); border-color: transparent; }
.album-item.has-img { background-size: cover; background-position: center; }
.album-item.has-img::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(38,26,26,0) 50%, rgba(38,26,26,.8)); }
.album-item span, .album-item em { z-index: 1; }
.end-item em { position: absolute; left: 18px; top: 12px; font-style: normal; font-size: 15px; letter-spacing: 2px; color: var(--gold); }
.end-item.locked::before { content: "未達成"; }
.ach-list { grid-template-columns: 1fr; gap: 12px; }
.ach-row { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 22px; background: rgba(246,236,236,.06); border: 1px dashed rgba(246,236,236,.22); }
.ach-row.on { background: rgba(240,214,166,.12); border: 1px solid var(--line); }
.ach-ico { font-style: normal; font-size: 30px; color: rgba(246,236,236,.3); }
.ach-row.on .ach-ico { color: var(--gold); }
.ach-row b { display: block; font-family: var(--serif); font-size: 22px; color: var(--ivory); }
.ach-row:not(.on) b { color: rgba(246,236,236,.55); }
.ach-row small { font-size: 16px; color: var(--muted); }

/* ===== 抖內連結（小字） ===== */
.t-corner { position: absolute; top: 56px; right: 70px; z-index: 5; display: flex; align-items: center; gap: 12px; }
.t-corner .ver-tag { position: static; }
.t-donate {
  padding: 8px 18px; border-radius: var(--pill); border: 1px solid var(--line-soft);
  background: rgba(38, 26, 26, .35); backdrop-filter: blur(6px);
  font-size: 18px; letter-spacing: 2px; color: var(--muted); text-decoration: none;
}
.t-donate:hover { color: var(--gold); border-color: var(--line); }
.au-donate { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; padding: 14px 24px; border-radius: 22px; border: 1px dashed var(--line-soft); font-size: 22px; letter-spacing: 3px; color: var(--gold); text-decoration: none; }
.au-donate small { font-size: 16px; letter-spacing: 1px; color: var(--muted); }
.au-donate:hover { background: rgba(240, 214, 166, .08); }
.end-donate { display: inline-block; margin-top: 30px; font-size: 18px; letter-spacing: 2px; color: rgba(236, 217, 217, .6); text-decoration: none; animation: endRise 1.6s 3s ease both; }
.end-donate:hover { color: var(--gold); }
.t-corner { top: 46px; right: 60px; }
.is-phone .t-corner { top: 20px; right: 30px; gap: 8px; }
.is-phone .t-donate { font-size: 14px; padding: 5px 12px; }
/* 珍奶圖示 */
.ico-boba { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico-boba .dot, #i-boba .dot { fill: currentColor; stroke: none; }
.t-donate { display: inline-flex; align-items: center; gap: 8px; }
.au-donate { flex-direction: row; align-items: center; gap: 16px; }
.au-donate .ico-boba { width: 34px; height: 34px; }
.au-donate span { display: flex; flex-direction: column; gap: 4px; }
.au-donate b { font-weight: 500; }
.end-donate { display: inline-flex; align-items: center; gap: 8px; }
.end-donate .ico-boba { width: 20px; height: 20px; }
.is-phone .t-donate .ico-boba { width: 16px; height: 16px; }

/* ===== 標題頁 v2：前言分段、按鈕三層（主要／文字連結／附註） ===== */
.title-block { left: 150px; top: 64px; width: 700px; }
.title-eyebrow { font-size: 20px; letter-spacing: 12px; }
.title-main { font-size: 124px; letter-spacing: 24px; margin-top: 4px; }
.title-block .ornament { margin: 8px 0 44px; }
.preface { gap: 0; margin-bottom: 0; }
.preface p { font-size: 22px; line-height: 1.85; letter-spacing: 3px; color: rgba(246, 236, 236, .78); }
.preface p.gap { height: 26px; }
.preface p.hl { font-size: 26px; line-height: 1.8; margin: 4px 0; color: var(--gold); letter-spacing: 5px; }
.title-menu { display: flex; flex-direction: column; align-items: flex-start; gap: 0; width: auto; margin-top: 60px; }
.t-continue {
  margin: 0 0 14px; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--serif); font-size: 20px; letter-spacing: 4px; color: var(--gold);
  display: inline-flex; align-items: baseline; gap: 10px;
}
.t-continue small { font-family: var(--sans); font-size: 15px; letter-spacing: 1px; color: var(--muted); }
.t-continue small::before { content: '· '; }
.t-continue:hover { color: var(--ivory); }
.t-continue[hidden] { display: none; }
.t-start {
  padding: 11px 46px; border-radius: var(--pill); cursor: pointer;
  border: 1px solid rgba(240, 214, 166, .75); background: rgba(38, 26, 26, .25);
  font-family: var(--serif); font-size: 22px; letter-spacing: 10px; color: var(--gold);
  transition: background .25s, color .25s;
}
.t-start:hover { background: var(--champagne); color: var(--plum); }
.t-links { display: flex; align-items: center; gap: 4px; margin-top: 26px; }
.t-links button {
  padding: 4px 10px; border: 0; background: none; cursor: pointer;
  font-size: 18px; letter-spacing: 3px; color: rgba(246, 236, 236, .72); transition: color .2s;
}
.t-links button:first-child { padding-left: 0; }
.t-links button:hover { color: var(--gold); }
.t-links i { font-style: normal; color: rgba(240, 214, 166, .45); font-size: 16px; }
.t-note {
  margin-top: 18px; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: 16px; letter-spacing: 2px; color: rgba(240, 214, 166, .62);
  display: inline-flex; align-items: center; gap: 8px;
}
.t-note span { transition: transform .25s; }
.t-note:hover { color: var(--gold); }
.t-note:hover span { transform: translateX(4px); }
.t-note[hidden] { display: none; }
.title-foot { left: 150px; bottom: 34px; font-size: 15px; letter-spacing: 2px; color: rgba(236, 217, 217, .45); }

/* 右上角：只有珍奶圖示 */
.t-corner { top: 48px; right: 64px; }
.t-donate {
  width: 46px; height: 46px; padding: 0; border-radius: 50%; justify-content: center;
  border: 1px solid rgba(246, 236, 236, .22); background: rgba(38, 26, 26, .25);
  color: rgba(246, 236, 236, .7); cursor: pointer;
}
.t-donate .ico-boba { width: 24px; height: 24px; }
.t-donate:hover { color: var(--gold); border-color: var(--line); }
.au-donate {
  display: inline-flex; width: 52px; height: 52px; padding: 0; margin-top: 18px; border-radius: 50%;
  align-items: center; justify-content: center; border: 1px dashed var(--line-soft); background: none; color: var(--gold); cursor: pointer;
}
.au-donate .ico-boba { width: 28px; height: 28px; }
.end-donate {
  display: inline-flex; width: 40px; height: 40px; padding: 0; margin-top: 26px; border-radius: 50%;
  align-items: center; justify-content: center; border: 1px solid rgba(246, 236, 236, .2); background: none;
  color: rgba(236, 217, 217, .6); cursor: pointer;
}
.end-donate:hover, .au-donate:hover { color: var(--gold); background: rgba(240, 214, 166, .08); }

/* 抖內確認框 */
.donate-pop { position: absolute; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: rgba(20, 13, 13, .72); }
.donate-pop[hidden] { display: none; }
.dp-card { width: 520px; padding: 40px 44px 34px; border-radius: 28px; text-align: center; background: rgba(52, 36, 36, .94); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.dp-ico { width: 52px; height: 52px; color: var(--gold); }
.dp-card b { display: block; margin-top: 14px; font-family: var(--serif); font-size: 28px; letter-spacing: 4px; color: var(--ivory); font-weight: 500; }
.dp-card p { margin: 12px 0 28px; font-size: 17px; line-height: 1.7; letter-spacing: 1px; color: var(--muted); }
.dp-btns { display: flex; gap: 12px; justify-content: center; }
.dp-btns button { padding: 10px 30px; border-radius: var(--pill); font-size: 18px; letter-spacing: 3px; cursor: pointer; }
.dp-no { border: 1px solid var(--line-soft); background: none; color: var(--muted); }
.dp-yes { border: 0; background: var(--champagne); color: var(--plum); }

/* 手機 */
.is-phone .title-block { left: 70px; top: 30px; width: 600px; }
.is-phone .title-eyebrow { font-size: 14px; letter-spacing: 8px; }
.is-phone .title-main { font-size: 84px; letter-spacing: 16px; }
.is-phone .title-block .ornament { margin: 4px 0 24px; }
.is-phone .preface p { font-size: 17px; line-height: 1.7; letter-spacing: 2px; }
.is-phone .preface p.hl { font-size: 19px; }
.is-phone .preface p.gap { height: 14px; }
.is-phone .title-menu { margin-top: 30px; }
.is-phone .t-start { padding: 8px 34px; font-size: 18px; letter-spacing: 8px; }
.is-phone .t-links { margin-top: 16px; }
.is-phone .t-links button { font-size: 15px; letter-spacing: 2px; padding: 4px 7px; }
.is-phone .t-note { margin-top: 12px; font-size: 13px; }
.is-phone .title-foot { left: 70px; bottom: 14px; font-size: 12px; }
.is-phone .t-corner { top: 22px; right: 30px; }
.is-phone .t-donate { width: 36px; height: 36px; padding: 0; }
.is-phone .t-donate .ico-boba { width: 19px; height: 19px; }
.is-phone .dp-card { width: 440px; padding: 30px 32px 26px; }

/* 標題頁 v2.1：文字往右、拿掉標題下的分隔線 */
.title-block .preface { margin-left: 64px; }   /* 只有前言往右 */
.title-block .ornament { display: none; }
.title-main { margin-bottom: 0; }
.title-block .preface { margin-top: 56px; }
.is-phone .title-block .preface { margin-left: 40px; }
.is-phone .title-block .preface { margin-top: 30px; }

/* 抖內位置：標題頁放右下角（和底部小字同一高度）；遊戲主頁放右上角 */
.t-corner { top: auto; bottom: 26px; }
.is-phone .t-corner { top: auto; bottom: 10px; }
.home-donate {
  position: absolute; top: 56px; right: 60px; z-index: 5;
  width: 52px; height: 52px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(92, 66, 66, .45); color: rgba(255, 246, 240, .85); cursor: pointer;
  box-shadow: 0 8px 20px rgba(60, 40, 40, .18);
}
.home-donate[hidden] { display: none; }
.home-donate .ico-boba { width: 26px; height: 26px; }
.home-donate:hover { color: var(--gold); }
.is-phone .home-donate { top: 26px; right: 30px; width: 40px; height: 40px; }
.is-phone .home-donate .ico-boba { width: 20px; height: 20px; }

/* 標題頁珍奶：放在左邊文字連結那一行最後 */
.t-links .t-donate {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-left: 14px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(240, 214, 166, .35); background: none; color: rgba(240, 214, 166, .75);
}
.t-links .t-donate[hidden] { display: none; }
.t-links .t-donate .ico-boba { width: 19px; height: 19px; }
.t-links .t-donate:hover { color: var(--gold); border-color: var(--gold); }
.is-phone .t-links .t-donate { width: 28px; height: 28px; margin-left: 10px; padding: 0; }
.is-phone .t-links .t-donate .ico-boba { width: 16px; height: 16px; }


/* ===== 劇情小圖：畫面左邊跳出的小圖（頒獎時的琴律等） ===== */
.s-inset {
  position: absolute; left: 150px; top: 150px; width: 540px; height: 360px; z-index: 4;   /* 橫式 3:2，像貼在畫面上的照片 */
  border-radius: 6px; border: 12px solid #f7efe9; box-sizing: border-box; transform: rotate(-2.5deg);
  background: rgba(38, 26, 26, .55) center / cover no-repeat;
  box-shadow: 0 20px 46px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.s-inset[hidden] { display: none; }
.s-inset.in { animation: insetIn .55s cubic-bezier(.2, .8, .2, 1) both; }
.s-inset:not([data-label=""])::after {
  content: attr(data-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px;
  text-align: center; font-size: 18px; color: var(--muted); letter-spacing: 2px;
}
@keyframes insetIn { from { opacity: 0; transform: translateX(-40px) rotate(-6deg) scale(.96); } to { opacity: 1; transform: rotate(-2.5deg); } }
.is-phone .s-inset { left: 80px; top: 120px; width: 400px; height: 267px; border-width: 8px; }

/* 點擊冒愛心 */
.click-heart { position: fixed; z-index: 99999; pointer-events: none; user-select: none; line-height: 1; transform: translate(-50%, -50%); text-shadow: 0 0 8px rgba(240, 214, 166, .55); animation: heartUp 1s ease-out forwards; will-change: transform, opacity; }
@keyframes heartUp {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(0deg); }
  15%  { opacity: 1; transform: translate(-50%, -80%) scale(1.15) rotate(var(--rot)); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), -300%) scale(.8) rotate(var(--rot)); }
}
@media (prefers-reduced-motion: reduce) { .click-heart { display: none; } }

/* =====================================================================
   手機 App v3：乾淨的紙白底（不透出桌布）＋清單式排版
   只有「聊天室」保留背景，而且是淡淡的
   ===================================================================== */
:root {
  --pp: #fbf7f4;        /* App 底色（暖紙白） */
  --pp2: #f5ece8;       /* 次一層底色 */
  --pl: #ecdfda;        /* 分隔線 */
  --pi: #3a2a2b;        /* 主要文字 */
  --pm: #9b8587;        /* 次要文字 */
  --pr: #b8777a;        /* 玫瑰重點色 */
}

/* 狀態列那一塊也要跟著變白，不然會露出粉色漸層 */
.ph-screen:has(:is(#ph-list, #pv-call, #pv-news, #pv-fans, #pv-ig, #pv-photos, #pv-forum, #pv-cal, #pv-music, #ph-room):not([hidden])) {
  background: var(--pp); background-image: none;
}
.ph-view:is(#ph-list, #pv-call, #pv-news, #pv-fans, #pv-ig, #pv-photos, #pv-forum, #pv-cal, #pv-music) { background: var(--pp); color: var(--pi); }

/* 標題列 */
.app-head { margin: 0; padding: 2px 20px 12px 10px; gap: 4px; border-bottom: 1px solid var(--pl); background: var(--pp); }
.app-head .ph-back { font-size: 38px; color: var(--pr); padding: 0 8px 4px 4px; }
.app-head b { font-size: 27px; letter-spacing: 3px; color: var(--pi); }
.app-head small { color: var(--pm); font-size: 14px; }
.app-body { padding: 0 0 48px; gap: 0; background: var(--pp); }
.app-empty { color: var(--pm); }
.ig-backrow { padding: 12px 20px 6px; font-size: 15px; color: var(--pr); }

/* ---- 訊息列表 ---- */
.ph-chats { gap: 0; padding: 0 0 20px; }
.ph-chat { margin: 0; padding: 14px 20px; border: 0; border-bottom: 1px solid var(--pl); border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; }
.ph-chat:hover { background: #fff; }
.ph-meta b { color: var(--pi); }
.ph-meta small { color: var(--pm); }
.ph-time { color: var(--pm); }

/* ---- 電話列表 ---- */
.call-row { border-radius: 0; background: none; border-bottom: 1px solid var(--pl); padding: 14px 20px; }
.call-row small { color: var(--pm); }

/* ---- 新聞 ---- */
.news-card { position: relative; display: block; width: 100%; padding: 17px 44px 16px 20px; border: 0; border-bottom: 1px solid var(--pl); border-radius: 0; background: none; color: var(--pi); text-align: left; }
.news-card::after { content: '＋'; position: absolute; right: 18px; top: 18px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--pp2); color: var(--pr); font-size: 14px; }
.news-card.open::after { content: '－'; background: var(--pr); color: #fff; }
.news-card:hover { background: #fff; }
.news-card.new { box-shadow: none; }
.news-media { display: inline-flex; align-items: center; gap: 7px; padding: 0; margin-bottom: 7px; background: none; color: var(--pr); font-size: 12.5px; font-weight: 700; letter-spacing: 2px; }
.news-media::before { content: ''; width: 6px; height: 6px; border-radius: 1px; background: var(--pr); transform: rotate(45deg); }
.news-card.new .news-media::after { content: 'NEW'; margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: #e0606e; color: #fff; font-size: 10px; letter-spacing: 1px; font-weight: 700; }
.news-card b { font-size: 19px; line-height: 1.5; color: var(--pi); }
.news-card p { margin: 10px 0 0; padding: 2px 0 2px 12px; border-left: 3px solid #e6c796; font-size: 15.5px; line-height: 1.7; color: #6c5456; }
/* 第一則＝頭條 */
.news-card:first-child { margin: 14px 16px 6px; width: auto; padding: 20px 50px 18px 20px; border: 0; border-radius: 22px; background: linear-gradient(140deg, #4a3435, #6e4a4c); color: #fff6f4; box-shadow: 0 10px 26px rgba(74, 52, 53, .22); }
.news-card:first-child:hover { background: linear-gradient(140deg, #523a3b, #775052); }
.news-card:first-child b { color: #fff6f4; font-size: 21px; }
.news-card:first-child .news-media { color: #f0d6a6; }
.news-card:first-child .news-media::before { background: #f0d6a6; }
.news-card:first-child::after { right: 16px; top: 18px; background: rgba(255, 255, 255, .16); color: #f0d6a6; }
.news-card:first-child.open::after { background: #f0d6a6; color: #4a3435; }
.news-card:first-child p { color: rgba(255, 246, 244, .85); border-color: #f0d6a6; }

/* ---- 粉絲團 ---- */
.fans-cover { margin: 0; padding: 26px 22px 22px; border-radius: 0 0 26px 26px; background: linear-gradient(135deg, #f3d9ae, #d9a96e); }
.fans-cover b { font-size: 25px; }
.fans-cover small { display: block; margin-top: 4px; opacity: .8; }
.fan-post { gap: 13px; padding: 16px 20px; border-radius: 0; border-bottom: 1px solid var(--pl); background: none; }
.fan-post.new { box-shadow: none; background: linear-gradient(90deg, #fff4e0, transparent 70%); }
.fan-ava { width: 42px; height: 42px; background: linear-gradient(145deg, #dcb0b2, #b8777a); }
.fan-post b { color: var(--pi); }
.fan-post p { color: #4c3a3b; }
.fan-post small { color: var(--pr); }

/* ---- IG ---- */
#ig-body { padding: 0 0 48px; }
.ig-top { padding: 18px 20px 6px; }
.ig-name { margin: 6px 20px 12px; }
.ig-name small, .ig-stats span { color: var(--pm); }
.ig-compose { margin: 4px 16px 14px; border-radius: 20px; background: #fff; box-shadow: 0 6px 20px rgba(120, 80, 80, .1); border: 1px solid var(--pl); }
.ig-opt { background: var(--pp); border: 1px solid var(--pl); }
.ig-grid { margin: 8px 0 0; gap: 2px; }
.ig-cell { border-radius: 0; }
.ig-head { padding: 4px 20px 10px; }
.ig-big { border-radius: 0; }
.ig-acts, .ig-capline, .ig-c { padding-left: 20px; padding-right: 20px; }
.ig-acts { padding-top: 12px; padding-bottom: 4px; }
.ig-comments { padding-top: 10px; }

/* ---- 相簿 ---- */
.photo-count { margin: 0; padding: 14px 20px 8px; color: var(--pm); }
.photo-grid { padding: 0 16px; gap: 8px; }
.photo-cell.locked { background: var(--pp2); border: 1px dashed var(--pl); }
.photo-cell.locked i { color: #cbb7b4; }
.wall-reset { margin: 14px 16px 0; }

/* ---- 論壇 ---- */
.fo-meter { margin: 14px 16px 8px; padding: 14px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--pl); box-shadow: 0 6px 18px rgba(120, 80, 80, .07); color: var(--pi); }
.fo-meter small { color: var(--pr); }
.fo-meter b { color: var(--pi); font-size: 20px; }
.fo-meter i { background: var(--pl); }
.fo-tabs { gap: 0; margin: 4px 16px 0; border-bottom: 1px solid var(--pl); }
.fo-tabs button { padding: 10px 0; border-radius: 0; background: none; color: var(--pm); font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.fo-tabs button.on { background: none; color: var(--pi); font-weight: 700; border-bottom-color: var(--pr); }
.fo-row { display: block; width: 100%; padding: 15px 20px; border: 0; border-bottom: 1px solid var(--pl); border-radius: 0; background: none; color: var(--pi); }
.fo-row:hover { background: #fff; }
.fo-row.new { box-shadow: none; background: linear-gradient(90deg, #f7ecf6, transparent 75%); }
.fo-row b { margin: 7px 0 5px; font-size: 17.5px; font-weight: 700; }
.fo-row small { color: var(--pm); }
.fo-row em { color: #e0606e; font-weight: 700; }
.fo-board { padding: 1px 9px; font-size: 11.5px; letter-spacing: 1px; }
.fo-op { margin: 0; padding: 18px 20px 20px; border-radius: 0; background: #fff; border-bottom: 1px solid var(--pl); color: var(--pi); }
.fo-op small { color: var(--pm); }
.fo-floors { gap: 0; }
.fo-floor { padding: 13px 20px; border-radius: 0; background: none; border-bottom: 1px dashed var(--pl); color: var(--pi); }
.fo-floor small { color: var(--pm); }
.fo-floor.me { background: #fff6e3; border-left: 4px solid #e6c796; padding-left: 16px; }
.fo-reply { padding: 14px 20px 0; }
.fo-reply > small { color: var(--pm); }

/* ---- 行事曆 ---- */
.cal-goal { margin: 14px 16px 6px; }
.cal-row { margin: 0; padding: 12px 20px; border: 0; border-bottom: 1px solid var(--pl); border-radius: 0; background: none; color: var(--pi); }
.cal-row:hover { background: #fff; }
.cal-row small, .cal-m { color: var(--pm); }
.cal-m b { color: var(--pi); }
.cal-row.now { box-shadow: none; background: linear-gradient(90deg, #fbe8e8, transparent 80%); border-left: 4px solid var(--pr); padding-left: 16px; }
.cal-row.lock { background: none; }
.cal-card { margin: 0 16px 12px; background: #fff; border: 1px solid var(--pl); }
.cal-card small { color: var(--pm); }
.cal-grid { margin: 0 16px 12px; background: #fff; border: 1px solid var(--pl); }
.cal-grid .cal-w { color: var(--pm); }
.cal-list { padding: 0 16px; }
.cal-list p { background: #fff; border-top: 1px solid var(--pl); border-right: 1px solid var(--pl); border-bottom: 1px solid var(--pl); color: var(--pi); }

/* ---- 音樂 ---- */
.mu-now { margin: 14px 16px 8px; background: linear-gradient(145deg, #4a3435, #6e4a4c); }
.mu-sub { margin: 10px 20px 4px; color: var(--pm); }
.mu-row { padding: 13px 20px; border-radius: 0; background: none; border-bottom: 1px solid var(--pl); color: var(--pi); }
.mu-row:hover { background: #fff; }
.mu-row > span, .mu-row small { color: var(--pm); }
.mu-row.on { background: linear-gradient(90deg, #fbe8e8, transparent 85%); box-shadow: none; }

/* ---- 聊天室：背景淡化，字泡清楚 ---- */
#ph-room { background: var(--pp); }
#ph-room::before { opacity: .45; filter: blur(24px) saturate(1); }
#ph-room::after { background: rgba(251, 247, 244, .5); }
#ph-room.own-bg::before { opacity: .5; filter: none; }
#ph-room.own-bg::after { background: linear-gradient(180deg, rgba(251, 247, 244, .62), rgba(251, 247, 244, .38) 55%, rgba(251, 247, 244, .55)); }
#ph-room .ph-roomhead { margin: 0; padding: 8px 18px 12px; border-radius: 0; background: rgba(255, 255, 255, .88); border: 0; border-bottom: 1px solid var(--pl); box-shadow: none; backdrop-filter: none; }
#ph-room .msg.in { background: #fff; box-shadow: 0 1px 0 var(--pl), 0 3px 10px rgba(115, 77, 77, .06); backdrop-filter: none; }
#ph-room .msg-time { background: none; padding: 0; color: var(--pm); }
#ph-room .ph-inputbar { background: rgba(255, 255, 255, .9); }

/* 手機直拿版：字小一點 */
.is-phone .app-head b { font-size: 21px; }
.is-phone .news-card b { font-size: 15px; } .is-phone .news-card:first-child b { font-size: 16px; }
.is-phone .news-card p { font-size: 13px; }
.is-phone .fo-row b { font-size: 14.5px; } .is-phone .fo-meter b { font-size: 16px; }

/* =====================================================================
   v4：手機首頁更滿（音樂 widget、4 個 App）／章節／相簿分類／
   手機以外的框改小圓角
   ===================================================================== */

/* ---- 手機以外的 UI 框：小圓角（手機本體不動） ---- */
:root { --r-lg: 14px; --r-md: 10px; }
.notice, .todo-box, .dp-card, .au-donate, .ach-row, .pick-card, .vc-sub, .map-hint { border-radius: 12px; }
.todo-chip, .todo-item { border-radius: 8px; }
.dlg::before { border-radius: 14px; }
.pf-quote, .pf-stats span { border-radius: 8px; }
.room-card { border-radius: 12px; }
.room-img { border-radius: 8px; }

/* ---- 手機首頁：排滿 ---- */
#pv-home { padding: 8px 16px 0; gap: 10px; }
#pv-home .wg-banner { flex: 1 1 230px; height: auto; min-height: 210px; }
#pv-home .hs-apps { grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 4px 0 2px; }
#pv-home .hs-apps .app { font-size: 13px; gap: 6px; }
#pv-home .app-ico { width: 64px; height: 64px; border-radius: 19px; }
#pv-home .app-ico svg { width: 30px; height: 30px; }
#pv-home .hs-dock { margin: 0 0 18px; }
#pv-home .wg-card { min-height: 116px; }

/* ---- 首頁音樂 widget ---- */
.wg-music { flex-shrink: 0; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 12px; border-radius: 22px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .7); color: var(--plum); }
.wm-disc { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: repeating-radial-gradient(circle, #2e2223 0 2px, #3c2c2d 2px 4px); box-shadow: 0 4px 12px rgba(38, 26, 26, .3); }
.wm-disc i { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, #f0d6a6, #c08081); border: 3px solid #2e2223; box-sizing: content-box; }
.wg-music.playing .wm-disc { animation: spin 6s linear infinite; }
.wm-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wm-info b { font-family: var(--serif); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm-info small { font-size: 12px; color: #9a6667; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm-btns { display: flex; align-items: center; gap: 6px; }
.wm-btns button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .6); color: var(--plum); cursor: pointer; }
.wm-btns button:hover { background: #fff; }
.wm-btns svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.wm-btns .wm-main { width: 44px; height: 44px; background: var(--champagne); box-shadow: 0 4px 10px rgba(156, 110, 60, .35); }
.wm-btns .wm-main svg { width: 20px; height: 20px; }
.wm-main .ic-pause { display: none; fill: none; }
.wg-music.on .wm-main .ic-play { display: none; }
.wg-music.on .wm-main .ic-pause { display: block; }
.is-phone .wg-music { padding: 7px 10px; gap: 8px; border-radius: 16px; }
.is-phone .wm-disc { width: 34px; height: 34px; } .is-phone .wm-disc i { width: 10px; height: 10px; border-width: 2px; }
.is-phone .wm-info b { font-size: 13px; } .is-phone .wm-info small { font-size: 10px; }
.is-phone .wm-btns button { width: 28px; height: 28px; } .is-phone .wm-btns .wm-main { width: 34px; height: 34px; }
.is-phone #pv-home .wg-banner { min-height: 150px; }
.is-phone #pv-home .app-ico { width: 44px; height: 44px; border-radius: 13px; }

/* ---- 章節（原行事曆）：點一列展開說明 ---- */
.cal-row { align-items: flex-start; }
.cal-row em { margin-top: 3px; }
.cal-desc { display: none; margin: 6px 0 2px; font-size: 14px; line-height: 1.65; color: #6c5456; font-weight: 400; }
.cal-row.open .cal-desc { display: block; }
.cal-row.open { background: #fff; }

/* ---- 相簿分類 ---- */
.ph-tabs { display: flex; margin: 4px 16px 0; border-bottom: 1px solid var(--pl); }
.ph-tabs button { flex: 1; padding: 11px 0; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--pm); font-size: 15px; letter-spacing: 1px; }
.ph-tabs button.on { color: var(--pi); font-weight: 700; border-bottom-color: var(--pr); }

/* ---- App 圖示：SVG 貼紙風（assets/icons） ---- */
.app-ico.has-img { background: none !important; box-shadow: none !important; border: 0; }
.app-ico.has-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(80, 40, 50, .28)); pointer-events: none; }
.hs-dock .app-ico.has-img { padding: 3px; }

/* ---- 外出：約會標籤、粉絲團漲幅 ---- */
.ride-info .ride-date { background: #fde4e8; color: #c0565f; border-radius: 8px; padding: 2px 8px; font-weight: 700; }
.ride-row > i { color: #d9707c; }
.fans-up { font-style: normal; margin-left: 8px; padding: 1px 8px; border-radius: 8px; background: rgba(255, 255, 255, .85); color: #c0565f; font-weight: 700; }

/* IG 貼文圖：有圖就蓋掉文字說明 */
.ig-pic.has-img, .ig-big.has-img, .ig-cell.has-img { background-size: cover; background-position: center; }
.ig-pic.has-img i, .ig-big.has-img i, .ig-cell.has-img i { display: none; }

/* ---------- 紙娃娃（canvas 圖層合成）與衣櫃縮圖 ---------- */
.doll-cv { display: block; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 14px 26px rgba(40, 20, 24, .35)); }
.wr-item.has-th { position: relative; display: block; padding: 0; overflow: hidden; border-radius: var(--r-md); }
.wr-item .wr-th { position: absolute; inset: 0; background-repeat: no-repeat; }
.wr-item .wr-none { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-bottom: 28px; font-size: 44px; color: var(--muted); }
.wr-item .wr-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 6px 9px;
  background: linear-gradient(180deg, rgba(50, 28, 32, 0), rgba(50, 28, 32, .78));
  font-size: 17px; line-height: 1.2; text-align: center; color: var(--ivory);
}
.wr-item.on .wr-name { color: var(--gold); }
.wr-item.locked .wr-th { filter: grayscale(1) brightness(.55); }
.wr-item.locked .wr-lock { position: absolute; top: 12px; right: 12px; z-index: 1; width: 24px; height: 24px; }
.wr-item .new { z-index: 2; }
.wr-colors { flex-wrap: wrap; }
.wr-grid { align-items: start; }
.wr-item.has-th { width: 100%; }

.wr-grid { grid-auto-rows: max-content; }
.wr-item.txt { aspect-ratio: auto; padding: 18px 6px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.wr-item.txt .wr-name { position: static; padding: 0; background: none; font-size: 22px; }
.wr-item.txt .wr-lock { position: static; width: 18px; height: 18px; }
.wr-item.txt .new { top: 4px; }
.wr-colors button.eye-orig { background: linear-gradient(135deg, #b9bcc6, #6f7077); }
.wr-colors[hidden] { display: none; }

/* 自選顏色拉桿 */
.wr-hsl { display: flex; flex-direction: column; gap: 10px; margin-top: -8px; }
.wr-hsl[hidden] { display: none; }
.wr-hsl label { display: flex; align-items: center; gap: 16px; font-size: 20px; color: var(--muted); }
.wr-hsl label span { width: 48px; letter-spacing: 2px; }
.wr-hsl input[type=range] {
  -webkit-appearance: none; appearance: none; flex: 1; height: 14px; border-radius: 99px; margin: 0;
  background: var(--track, rgba(246, 236, 236, .3)); border: 1px solid var(--line-soft); outline: none;
}
.wr-hsl input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--champagne); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(40, 20, 24, .45); cursor: pointer;
}
.wr-hsl input[type=range]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; background: #e6c58f; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(40, 20, 24, .45); cursor: pointer;
}

/* 衣服縮圖：只拍脖子以下，橫向格子 */
.wr-item.has-th { aspect-ratio: 10 / 9; border-radius: var(--r-md); }

/* 行程卡說明：每句換行，每行內再平均分配，避免孤字 */
.sched-desc { white-space: pre-line; text-wrap: balance; }

.slots-sub { margin: 6px 0 -4px; font-size: 18px; letter-spacing: 4px; color: var(--gold); }
.slot:disabled { cursor: default; opacity: .8; }

/* 訊息照片＝直式；只有劇情照片是橫式 */
.msg-pic { width: 220px; aspect-ratio: 2 / 3; background-size: cover; background-position: center; }
.photo-grid.portrait { grid-template-columns: repeat(3, 1fr); }
.photo-grid.portrait .photo-cell { aspect-ratio: 2 / 3; }
.viewer .vw-pic.portrait { width: auto; height: 880px; aspect-ratio: 2 / 3; }
.is-phone .viewer .vw-pic.portrait { width: auto; height: 640px; }
.vw-dl { padding: 12px 34px; border-radius: 99px; border: 1px solid var(--gold); background: rgba(38, 26, 26, .5); color: var(--gold); font-size: 20px; text-decoration: none; }
.vw-dl:hover { background: var(--gold); color: var(--plum); }

/* 音樂循環：預設全部循環；單曲循環時圖示上多一個 1 */
.wm-btns .wm-loop { position: relative; width: 30px; height: 30px; opacity: .6; }
.wm-btns .wm-loop svg { width: 16px; height: 16px; fill: none; }
.wm-btns .wm-loop i { display: none; position: absolute; right: 3px; bottom: 2px; font-style: normal; font-size: 10px; font-weight: 700; line-height: 1; }
.wm-btns .wm-loop.one { opacity: 1; background: var(--champagne); }
.wm-btns .wm-loop.one i { display: block; }
.mu-loop { margin-top: 6px; padding: 6px 18px; border: 1px solid rgba(240, 214, 166, .4); border-radius: 99px; background: none; color: #fff6f4; font-size: 14px; }

.wr-tabs button { white-space: nowrap; }

/* ===== 音樂 widget：歌名完整顯示（可換行）＋音量 ===== */
.wg-music { flex-wrap: wrap; row-gap: 8px; }
.wm-info b { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.25; }
.wm-info small:empty { display: none; }
.wm-vol { flex: 1 0 100%; display: flex; align-items: center; gap: 10px; color: var(--plum); }
.wm-vol svg { flex: none; width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.vol-range { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 6px; border-radius: 99px; background: rgba(77, 51, 52, .25); outline: none; cursor: pointer; }
.vol-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--champagne); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(77, 51, 52, .4); }
.vol-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #e9cd96; border: 2px solid #fff; }
.is-phone .wm-info b { font-size: 12px; }
.is-phone .wm-vol { gap: 6px; } .is-phone .wm-vol svg { width: 14px; height: 14px; }
.is-phone .vol-range { height: 5px; } .is-phone .vol-range::-webkit-slider-thumb { width: 14px; height: 14px; }
.mu-vol { display: flex; align-items: center; gap: 8px; width: 80%; margin-top: 10px; color: #fff6f4; font-size: 14px; }
.mu-vol .vol-range { background: rgba(255, 246, 244, .3); }

/* ===== 設定面板：電腦版一頁放得下（手機才需要捲動） ===== */
#pn-setting .sheet-head { margin-bottom: 16px; }
#pn-setting .set-row { padding: 14px 0; }
#pn-setting .set-actions { margin-top: 22px; }
#pn-setting .set-actions .line-btn { flex: 0 0 auto; min-width: 320px; margin: 0 auto; }
#stage:not(.is-phone) #pn-setting { max-height: none; }

/* 首頁的手機：從畫面下方滑上來（像把手機拿起來） */
.side .panel.phone:not([hidden]) { animation: phoneUp .5s cubic-bezier(.2, .85, .25, 1) both; }


/* ===== 隱藏介面（截圖用） ===== */
.ui-eye {
  position: absolute; top: 56px; right: 126px; z-index: 5;
  width: 52px; height: 52px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(92, 66, 66, .45); color: rgba(255, 246, 240, .85); cursor: pointer;
  box-shadow: 0 8px 20px rgba(60, 40, 40, .18);
}
.ui-eye .ico-eye { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ui-eye:hover { color: var(--gold); }
#scr-wardrobe .ui-eye { right: 50px; top: 40px; }
.is-phone .ui-eye { top: 26px; right: 80px; width: 40px; height: 40px; }
.is-phone #scr-wardrobe .ui-eye { right: 30px; top: 20px; }
.is-phone .ui-eye .ico-eye { width: 20px; height: 20px; }

#stage.ui-off .home-status, #stage.ui-off .home-donate, #stage.ui-off .ui-eye, #stage.ui-off .sched, #stage.ui-off .dock,
#stage.ui-off .side .panel, #stage.ui-off .todo-pop, #stage.ui-off .guide, #stage.ui-off .notice,
#stage.ui-off .story-top, #stage.ui-off .choices, #stage.ui-off .dlg, #stage.ui-off .story-phone, #stage.ui-off .log,
#stage.ui-off .back-btn, #stage.ui-off .wr-panel, #stage.ui-off #stat-pop {
  visibility: hidden !important; pointer-events: none !important;
}
#stage.ui-off .side.has-panel .home-doll { opacity: 1 !important; }

/* 珍奶（贊助）移到下方選單最後；隱藏介面按鈕移到原本珍奶的位置 */
.dock-btn[hidden] { display: none; }
.ui-eye { right: 60px; }
.is-phone .ui-eye { right: 30px; }

/* ===== 手機版易讀性（只在 .is-phone 生效，電腦版不變） =====
   手機橫拿時整個畫面約縮到 0.54 倍。左邊的數值、行程、選單原本就夠大（約 9～11px），
   只有右邊「遊戲內手機」裡的字太小（5～8px），所以只把手機畫面裡的字放大到約 9～11px。 */
#stage.is-phone .ph-bar span, #stage.is-phone .ph-sig { font-size: 17px; }
#stage.is-phone .msg { font-size: 20px; }
#stage.is-phone .sp .msg { font-size: 21px; }
#stage.is-phone .ph-reply { font-size: 19px; }
#stage.is-phone .ph-chat b { font-size: 18px; }
#stage.is-phone .ph-chat small { font-size: 16px; }
#stage.is-phone .ph-time { font-size: 15px; }
#stage.is-phone .ph-tag { font-size: 14px; }
#stage.is-phone .ph-dot { font-size: 14px; }
#stage.is-phone #ph-unread, #stage.is-phone .ph-who small { font-size: 16px; }
#stage.is-phone .app { font-size: 16px; }
#stage.is-phone #pv-home .hs-apps .app { font-size: 15px; }
#stage.is-phone .app-badge { font-size: 15px; }
#stage.is-phone #hs-day, #stage.is-phone #wg-where, #stage.is-phone #wg-count { font-size: 15px; }
#stage.is-phone #wg-last { font-size: 17px; }
#stage.is-phone #wm-name { font-size: 16px; }
#stage.is-phone .wg-list span, #stage.is-phone .wg-list em { font-size: 16px; }
/* 手機版：左下角「本月行程」卡片和下方選單原本幾乎貼在一起，往上挪一點 */
#stage.is-phone .sched { bottom: 132px; }
#stage.is-phone .ph-chat { padding-right: 62px; }   /* 右邊的「新」標籤不要壓到預覽文字 */


/* ===== 手機版：UI 往中間收（避開瀏海、圓角黑邊）；--sl／--sr 由 main.js 依安全區域算出 ===== */
#stage { --sl: 0px; --sr: 0px; }
#stage.is-phone .home-status, #stage.is-phone .sched, #stage.is-phone .dock, #stage.is-phone .back-btn,
#stage.is-phone .wr-panel, #stage.is-phone .title-foot, #stage.is-phone .s-inset { translate: var(--sl) 0; }
/* 標題區塊裡有 fixed 的按鈕，不能用 translate（會變成以它為基準），改用 left */
#stage.is-phone .title-block { left: calc(70px + var(--sl)); }
#stage.is-phone .side, #stage.is-phone .notice, #stage.is-phone .ui-eye, #stage.is-phone .map-card,
#stage.is-phone .t-corner, #stage.is-phone .ver-tag, #stage.is-phone .wr-doll, #stage.is-phone .vc-self,
#stage.is-phone .story-phone:not(.center) .phone.sp { translate: calc(-1 * var(--sr)) 0; }
#stage.is-phone .dlg { margin-left: var(--sl); margin-right: var(--sr); }
#stage.is-phone .story-top { padding-left: calc(30px + var(--sl)); padding-right: calc(30px + var(--sr)); }

/* ===== 手機版標題頁：下面那排圖示按鈕改成靠右直排（電腦版不變） ===== */
#stage.is-phone .t-links {
  position: fixed; right: calc(34px + var(--sr)); top: 50%; translate: 0 -50%; z-index: 4;
  flex-direction: column; align-items: stretch; gap: 10px; margin: 0; width: auto;
}
#stage.is-phone .t-links button, #stage.is-phone .t-links button:first-child {
  width: 78px; height: 70px; padding: 0; flex: none; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(46, 30, 30, .55); border: 1px solid rgba(240, 214, 166, .35); backdrop-filter: blur(6px);
}
#stage.is-phone .t-links button::before { font-size: 34px; }
#stage.is-phone .t-links .t-donate { flex: none; width: 78px; height: 70px; margin: 0; padding: 0; }
#stage.is-phone .t-links .t-donate::before { font-size: 34px; }

/* ===== 手機版：玩家人物放大一點、往左一點（主頁、衣櫃） ===== */
#stage.is-phone .home-doll { width: 620px; height: 775px; right: 85px; }
#stage.is-phone .wr-doll { width: 560px; height: 700px; right: 95px; }
