/* ================================================================
   椰夢謎境 — UI 設計系統 (v6.0 · 雙核心玩法)
   設計語言：輕奢療癒 · 玫瑰金 + 夜色 · 單一 CTA 極簡外殼
   設計階梯：font-size / spacing / radius / z-index（沿用 v5 tokens）
   ================================================================ */

:root {
  /* === 顏色 === */
  --bg: #16121E;
  --bg2: #1E1828;
  --bg3: #0B0912;
  --panel: #271F38;
  --panel2: #342B4A;
  --panel3: #3F3458;
  --gold: #E6C18B;
  --gold2: #F0D2A3;
  --rose: #E8A6B8;
  --pink: #F4C2D0;
  --blush: #F6DCE6;
  --mint: #8FD3C4;
  --lav: #B9A6E3;
  --text: #F5EEE3;
  --muted: #9C92B0;
  --dim: #6B6280;
  --line: rgba(230, 193, 139, 0.18);
  --line2: rgba(244, 194, 208, 0.22);
  --lux: linear-gradient(135deg, #F0D2A3, #E8A6B8 55%, #B9A6E3);
  --lux-soft: linear-gradient(135deg, rgba(240, 210, 163, 0.18), rgba(232, 166, 184, 0.12) 55%, rgba(185, 166, 227, 0.10));
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.6);

  /* 主色：由皮膚動態改寫 (--accent) */
  --accent: #caa37a;

  /* === 字體 === */
  --font-zh: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Hiragino Sans GB", system-ui, sans-serif;
  --font-en: Georgia, "Libre Bodoni", "Times New Roman", serif;
  --font-mono: "SF Mono", Menlo, Consolas, monospace;

  /* === 字號階梯 === */
  --fz-xs: 11px;
  --fz-sm: 12.5px;
  --fz-md: 14px;
  --fz-lg: 17px;
  --fz-xl: 22px;
  --fz-2xl: 30px;
  --fz-3xl: 38px;

  /* === 行高 === */
  --lh-tight: 1.25;
  --lh-snug: 1.45;
  --lh-base: 1.65;
  --lh-loose: 1.8;

  /* === 間距階梯 === */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;

  /* === 圓角 === */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* === z-index 階梯 === */
  --z-nav: 20;
  --z-bar: 30;
  --z-sheet: 40;
  --z-modal: 50;
  --z-toast: 60;
  --z-tip: 70;

  /* === 觸控目標 === */
  --tap: 44px;
  --tap-lg: 48px;
}

/* ========== Reset ========== */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg3); color: var(--text);
  font-family: var(--font-zh); font-size: var(--fz-md); line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }
b, strong { font-weight: 700; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

body {
  min-height: 100dvh; display: flex; justify-content: center; align-items: flex-start;
  background:
    radial-gradient(80% 50% at 18% 0%, rgba(232, 166, 184, 0.16), transparent 60%),
    radial-gradient(70% 50% at 90% 10%, rgba(185, 166, 227, 0.14), transparent 60%),
    radial-gradient(90% 60% at 50% 100%, rgba(230, 193, 139, 0.10), transparent 60%),
    var(--bg3);
}

/* ========== App 容器 ========== */
.app {
  width: 100%;
  max-width: 460px;
  height: 100dvh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: linear-gradient(170deg, var(--bg), var(--bg2));
  box-shadow: var(--shadow);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

@media (min-width: 760px) {
  body { align-items: center; padding: 26px 0; }
  .app { min-height: 860px; height: 860px; border-radius: var(--sp-7); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.06); }
}
@media (min-width: 980px) {
  .app { max-width: 520px; min-height: 800px; height: 800px; border-radius: 32px; }
  body { padding: 32px 0; }
}

/* ========== Status Bar ========== */
.statusbar { height: 34px; display: flex; align-items: center; gap: var(--sp-2); padding: 0 var(--sp-4); font-size: var(--fz-xs); color: var(--muted); flex: 0 0 auto; letter-spacing: 0.04em; }
.statusbar > span:first-child { font-family: var(--font-en); letter-spacing: 0.18em; color: var(--gold); font-size: 12px; }
.hud { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.hud-chip { display: inline-flex; align-items: center; gap: 3px; font-size: var(--fz-xs); color: var(--text); background: rgba(255,255,255,0.05); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px 9px; min-height: 26px; }
.hud-chip b { font-weight: 700; color: var(--gold2); }
.hud-auth { cursor: pointer; transition: 0.15s; border-color: rgba(232,166,184,0.4); color: var(--rose); font-weight: 600; }
.hud-auth:hover { background: rgba(232,166,184,0.12); }
.hud-auth.logged { border-color: rgba(143,211,196,0.4); color: var(--mint); }
#clock { font-family: var(--font-en); color: var(--dim); min-width: 38px; text-align: right; }

/* ========== Screen / View ========== */
.screen { flex: 1; min-height: 0; overflow: hidden; position: relative; }
.view { display: none; flex-direction: column; height: 100%; overflow: hidden; animation: fade 0.3s ease; }
.view.active { display: flex; }
.view-head { flex: none; padding: var(--sp-3) var(--sp-4) 0; background: var(--bg2); border-bottom: 1px solid var(--line); }
.view-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none; padding: var(--sp-4) var(--sp-4) var(--sp-6); }
.view-body::-webkit-scrollbar { display: none; }
.view > .view-body:first-child { padding-top: var(--sp-2); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ========== Typography helpers ========== */
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: var(--lh-snug); }
.tag { color: var(--gold); letter-spacing: 0.24em; font-size: 10px; text-transform: uppercase; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.serif { font-family: var(--font-en); }

/* ========== Nav ========== */
.nav { flex: none; height: 64px; display: flex; background: rgba(11,9,18,0.92); backdrop-filter: blur(12px); border-top: 1px solid var(--line); z-index: var(--z-nav); }
.nav button { flex: 1; background: none; border: 0; color: var(--dim); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 11px; transition: 0.15s; position: relative; }
.nav .ni { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav button.on { color: var(--gold2); }
.nav button.on .ni { transform: translateY(-1px); }
.nav button.on::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 2px; border-radius: 2px; background: var(--lux); }

/* ========== Lobby — Hero ========== */
.hero { text-align: center; padding: var(--sp-7) var(--sp-3) var(--sp-5); }
.seal { display: inline-block; font-size: 10px; letter-spacing: 0.3em; color: var(--gold); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 14px; margin-bottom: var(--sp-4); }
.hero .tag { display: block; margin-bottom: var(--sp-2); }
.ttl { font-size: var(--fz-3xl); font-weight: 700; letter-spacing: 0.04em; background: var(--lux); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.1; }
.hero p { color: var(--muted); font-size: var(--fz-sm); margin: var(--sp-4) auto 0; max-width: 280px; line-height: var(--lh-snug); }

/* ========== CTA ========== */
.cta { width: 100%; min-height: 60px; border: 0; border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--lux); color: #1a0f14; font-weight: 700; box-shadow: 0 12px 30px rgba(232,166,184,0.28); transition: transform 0.12s ease, box-shadow 0.12s ease; margin-top: var(--sp-2); }
.cta:active { transform: scale(0.98); }
.cta-main { font-size: var(--fz-lg); letter-spacing: 0.04em; }
.cta-sub { font-size: var(--fz-xs); font-weight: 500; opacity: 0.78; }

/* ========== Mode switch ========== */
.mode-switch { display: flex; gap: var(--sp-2); margin: var(--sp-4) var(--sp-2) 0; background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px; }
.ms { flex: 1; min-height: var(--tap); border: 0; background: transparent; color: var(--muted); border-radius: var(--r-pill); font-size: var(--fz-md); font-weight: 600; transition: 0.15s; }
.ms.on { background: var(--lux-soft); color: var(--gold2); box-shadow: inset 0 0 0 1px rgba(230,193,139,0.4); }

/* ========== Daily strip ========== */
.daily-strip { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-4) var(--sp-2) 0; }
.ds { font-size: var(--fz-xs); color: var(--muted); background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 12px; display: inline-flex; align-items: center; gap: 5px; }
.ds b { color: var(--gold2); font-weight: 700; }
.ds.dim { color: var(--dim); margin-left: auto; background: transparent; border-color: transparent; }

/* ========== Cards ========== */
.card { background: linear-gradient(160deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-4); margin-top: var(--sp-4); box-shadow: var(--shadow-sm); }
.card h3 { font-size: var(--fz-md); color: var(--text); display: flex; align-items: center; gap: var(--sp-2); }
.card h3 .sub { font-size: var(--fz-xs); color: var(--muted); font-weight: 400; margin-left: auto; }
.note { font-size: var(--fz-xs); color: var(--muted); line-height: var(--lh-snug); margin: var(--sp-2) 0 0; }

/* ========== Coconut quote ========== */
.coco-quote { font-family: var(--font-en); font-size: var(--fz-lg); color: var(--gold2); line-height: var(--lh-snug); }
.coco-date { font-size: var(--fz-xs); color: var(--dim); margin-top: var(--sp-2); text-align: right; }

/* ========== Checkin week ========== */
.week { display: flex; gap: 6px; margin-top: var(--sp-3); }
.day { flex: 1; min-height: 56px; border-radius: var(--r-md); background: rgba(255,255,255,0.03); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; color: var(--muted); transition: 0.15s; padding: 4px 2px; }
.day .dnum { font-size: 9px; color: var(--dim); letter-spacing: 0.04em; }
.day .g { font-size: 15px; line-height: 1; }
.day.done { background: var(--lux-soft); color: var(--gold2); border-color: rgba(230,193,139,0.4); }
.day.today { border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 1px var(--accent); cursor: pointer; }
.day.today:active { transform: scale(0.95); }

/* ========== Play view ========== */
.pghead { display: flex; align-items: center; gap: var(--sp-2); padding: 0 0 var(--sp-3); }
.back { background: rgba(255,255,255,0.06); border: 1px solid var(--line); color: var(--text); font-size: var(--fz-sm); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 var(--sp-3); border-radius: var(--r-md); transition: 0.15s; }
.back:active { transform: scale(0.96); background: rgba(255,255,255,0.10); }
.back span { font-family: var(--font-en); font-size: 18px; line-height: 1; }
.pgtitle { font-size: var(--fz-lg); font-weight: 700; color: var(--text); }
.pgmeta { margin-left: auto; font-size: var(--fz-xs); color: var(--muted); text-align: right; max-width: 55%; }
#play-board { margin-top: var(--sp-2); }
#play-extra { margin-top: var(--sp-5); }

/* ========== Nonogram ========== */
.nono-grid { display: grid; gap: 2px; max-width: 100%; margin: 0 auto; }
.nono-sp { }
.nono-cc { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 2px; font-size: 10px; color: var(--muted); line-height: 1.1; }
.nono-rc { display: flex; align-items: center; justify-content: flex-end; gap: 2px; padding-right: 4px; font-size: 10px; color: var(--muted); line-height: 1.1; }
.nono-cell { aspect-ratio: 1 / 1; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; transition: background 0.1s, border-color 0.1s, transform 0.1s; position: relative; }
.nono-cell:active { transform: scale(0.93); }
.nono-cell.fill { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); }
.nono-cell.mark::after { content: "✕"; color: var(--dim); font-size: 14px; }
.nono-cell.reveal { background: var(--accent); border-color: var(--accent); animation: pop 0.4s ease; }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0.3; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.nono-hint { text-align: center; font-size: var(--fz-xs); color: var(--dim); margin-top: var(--sp-4); }

/* ========== Crossword ========== */
.cw-grid { display: grid; gap: 3px; max-width: 100%; margin: 0 auto; }
.cw-blank { background: transparent; }
.cw-cell { aspect-ratio: 1 / 1; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; position: relative; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.1s, outline-color 0.1s; }
.cw-cell:active { transform: scale(0.95); }
.cw-num { position: absolute; top: 2px; left: 3px; font-size: 9px; color: var(--dim); line-height: 1; }
.cw-val { font-size: 18px; font-weight: 600; color: var(--text); }
.cw-cell.active { outline: 2px solid var(--accent); outline-offset: -1px; }
.cw-cell.cur { background: rgba(230, 193, 139, 0.12); }
.cw-cell.reveal { background: var(--accent); }
.cw-cell.reveal .cw-val { color: #1a0f14; }
.cw-extra { }
.cw-clues { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.clue-col { flex: 1; min-width: 150px; }
.clue-h { font-size: var(--fz-xs); color: var(--gold); letter-spacing: 0.1em; margin-bottom: var(--sp-2); }
.clue { font-size: var(--fz-sm); color: var(--muted); padding: 6px 8px; border-radius: var(--r-sm); cursor: pointer; transition: 0.12s; border: 1px solid transparent; line-height: var(--lh-snug); }
.clue b { color: var(--dim); font-weight: 700; margin-right: 4px; }
.clue:hover { background: rgba(255,255,255,0.04); }
.clue.cur { background: rgba(230, 193, 139, 0.12); color: var(--gold2); border-color: rgba(230,193,139,0.3); }
.clue.cur b { color: var(--gold); }
.cw-tray { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); justify-content: center; }
.cw-tile { min-width: 44px; height: 44px; padding: 0 10px; border-radius: var(--r-md); background: linear-gradient(160deg, var(--panel2), var(--panel)); border: 1px solid var(--line); color: var(--text); font-size: var(--fz-lg); font-weight: 600; transition: 0.12s; }
.cw-tile:active { transform: scale(0.94); }
.cw-tile.used { opacity: 0.28; pointer-events: none; }

/* ========== Reveal / Result ========== */
#play-result { margin-top: var(--sp-5); }
.reveal { text-align: center; background: linear-gradient(160deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--sp-6) var(--sp-4); box-shadow: var(--shadow); animation: fade 0.4s ease; }
.reveal-emoji { font-size: 56px; line-height: 1; animation: pop 0.5s ease; }
.reveal-name { font-size: var(--fz-lg); font-weight: 700; margin-top: var(--sp-2); color: var(--text); }
.reveal-stars { font-size: var(--fz-xl); color: var(--gold2); letter-spacing: 4px; margin-top: var(--sp-1); }
.reveal-reward { font-size: var(--fz-md); color: var(--mint); margin-top: var(--sp-2); font-weight: 600; }
.reveal-tag { display: inline-block; margin-top: var(--sp-2); font-size: var(--fz-xs); color: var(--gold2); border: 1px solid rgba(230,193,139,0.4); border-radius: var(--r-pill); padding: 3px 12px; }
.reveal-clue { font-size: var(--fz-sm); color: var(--blush); margin-top: var(--sp-3); line-height: var(--lh-snug); background: rgba(232,166,184,0.08); border-radius: var(--r-md); padding: var(--sp-3); }
.reveal .row { margin-top: var(--sp-4); }

/* ========== Buttons ========== */
.row { display: flex; gap: var(--sp-2); }
.btn { flex: 1; min-height: var(--tap); border: 1px solid var(--line); border-radius: var(--r-md); background: linear-gradient(160deg, var(--panel2), var(--panel)); color: var(--text); font-size: var(--fz-md); font-weight: 600; padding: 0 var(--sp-4); transition: 0.12s; }
.btn:hover { border-color: var(--gold); }
.btn:active { transform: scale(0.97); }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; border-color: var(--line2); color: var(--muted); }
.btn.ghost:hover { color: var(--gold2); border-color: var(--gold); }
.btn.sm { min-height: 38px; font-size: var(--fz-sm); padding: 0 var(--sp-3); }
.btn.xs { min-height: 30px; font-size: var(--fz-xs); padding: 0 var(--sp-3); }

/* ========== Album ========== */
.album-sec { margin-top: var(--sp-5); }
.album-h { display: flex; align-items: baseline; gap: var(--sp-2); font-size: var(--fz-md); color: var(--text); margin-bottom: var(--sp-3); }
.album-h b { font-weight: 700; }
.album-h span { font-size: var(--fz-xs); color: var(--muted); margin-left: auto; }
.album-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-2); }
.it { aspect-ratio: 1 / 1; border-radius: var(--r-md); background: linear-gradient(160deg, var(--panel2), var(--panel)); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.it.lock { color: var(--dim); background: rgba(255,255,255,0.02); filter: grayscale(1); opacity: 0.6; }
.album-narr { margin-top: var(--sp-3); font-family: var(--font-en); font-size: var(--fz-sm); color: var(--gold2); line-height: var(--lh-snug); background: var(--lux-soft); border-radius: var(--r-md); padding: var(--sp-3); }
.album-narr small { display: block; margin-top: var(--sp-1); color: var(--dim); font-family: var(--font-zh); font-size: var(--fz-xs); }

/* ========== Profile ========== */
.prof { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.avatar { width: 56px; height: 56px; border-radius: var(--r-lg); background: var(--lux-soft); display: flex; align-items: center; justify-content: center; font-size: 30px; flex: 0 0 auto; }
.pn { font-size: var(--fz-lg); font-weight: 700; }
.pr { font-size: var(--fz-xs); color: var(--muted); margin-top: 2px; }
.feat { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.feat:last-child { border-bottom: 0; }
.fi { font-size: 22px; flex: 0 0 auto; }
.ft { font-size: var(--fz-sm); font-weight: 600; color: var(--text); }
.fd { font-size: var(--fz-xs); color: var(--muted); margin-top: 1px; }

/* ========== Skins ========== */
.skins-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-1); }
.skin-chip { min-height: 34px; padding: 0 var(--sp-3); border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,0.15); color: #1a0f14; font-size: var(--fz-xs); font-weight: 700; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1); }
.skin-chip.on { outline: 2px solid var(--text); outline-offset: 1px; }

/* ========== Invite code ========== */
.invite-code-box { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--bg2); border: 1px dashed var(--gold); color: var(--gold2); font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.1em; font-size: var(--fz-sm); }

/* ========== Overlays / Modals ========== */
.overlay { position: fixed; inset: 0; background: rgba(8,6,12,0.72); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; z-index: var(--z-modal); padding: var(--sp-4); }
.overlay.show { display: flex; animation: fade 0.2s ease; }

/* 頂部用戶名快捷資料卡 */
.profile-menu { position: fixed; top: 42px; right: var(--sp-4); z-index: var(--z-sheet); width: min(260px, calc(100% - var(--sp-8))); background: linear-gradient(160deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--sp-5); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.profile-menu.show { opacity: 1; transform: none; pointer-events: auto; }
.profile-menu .pm-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.profile-menu .pm-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--lux-soft); display: grid; place-items: center; font-size: 24px; }
.profile-menu .pm-name { font-size: var(--fz-md); font-weight: 700; }
.profile-menu .pm-meta { font-size: var(--fz-xs); color: var(--muted); margin-top: 2px; }
.profile-menu .pm-stats { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.profile-menu .pm-stat { flex: 1; background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-3); text-align: center; }
.profile-menu .pm-stat b { display: block; font-size: var(--fz-lg); color: var(--gold2); }
.profile-menu .pm-stat span { font-size: 10px; color: var(--muted); }
.profile-menu .btn { width: 100%; }
.profile-menu .pm-close { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--dim); font-size: 20px; cursor: pointer; }
.modal { width: 100%; max-width: 360px; background: linear-gradient(160deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--sp-6) var(--sp-5); box-shadow: var(--shadow-lg); position: relative; }
.modal h2 { font-size: var(--fz-xl); color: var(--text); text-align: center; }
.modal .sub { font-size: var(--fz-xs); color: var(--muted); text-align: center; margin-top: var(--sp-2); }
.modal-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--dim); font-size: 22px; line-height: 1; display: grid; place-items: center; cursor: pointer; transition: 0.15s; }
.modal-close:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.auth-skip { margin-top: var(--sp-3); }
.modal input { width: 100%; min-height: var(--tap); margin-top: var(--sp-4); background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--text); padding: 0 var(--sp-3); font-size: var(--fz-md); }
.modal input:focus { outline: none; border-color: var(--gold); }
.err { color: #f0a0a0; font-size: var(--fz-xs); text-align: center; margin-top: var(--sp-3); min-height: 14px; }
.switch { text-align: center; font-size: var(--fz-xs); color: var(--muted); margin-top: var(--sp-4); cursor: pointer; }
.switch b { color: var(--gold2); }
.share-modal canvas { width: 100%; height: auto; border-radius: var(--r-md); margin: var(--sp-3) 0; background: var(--bg3); }
.share-modal #share-note { text-align: center; font-size: var(--fz-xs); color: var(--muted); }

/* ========== Install tip ========== */
.install-tip { position: fixed; left: 50%; transform: translateX(-50%); bottom: 72px; z-index: var(--z-tip); display: flex; align-items: center; gap: var(--sp-2); background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 8px 6px 16px; font-size: var(--fz-xs); color: var(--text); box-shadow: var(--shadow); max-width: 92%; }
.install-tip #install-go { background: var(--lux); color: #1a0f14; border: 0; border-radius: var(--r-pill); padding: 6px 14px; font-weight: 700; font-size: var(--fz-xs); }
.install-tip #install-close { background: none; border: 0; color: var(--muted); font-size: 18px; line-height: 1; padding: 0 6px; }

/* ========== Toast ========== */
.toast { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.9); background: rgba(11,9,18,0.96); border: 1px solid var(--gold); color: var(--gold2); font-size: var(--fz-sm); padding: var(--sp-3) var(--sp-5); border-radius: var(--r-pill); box-shadow: var(--shadow); z-index: var(--z-toast); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ========== AI 陪聊 ========== */
.chat-card { display: flex; align-items: center; gap: var(--sp-3); cursor: pointer; }
.chat-card:active { transform: scale(0.99); }
.chat-card-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; font-size: 22px; background: linear-gradient(135deg, #a88bd6, #6c5aa8); border-radius: var(--r-md); }
.chat-card-txt { flex: 1; min-width: 0; }
.chat-card-txt h3 { margin: 0 0 2px; font-size: var(--fz-sm); }
.chat-card-txt .sub { margin: 0; font-size: var(--fz-xs); color: var(--muted); }
.chat-card-go { color: var(--gold2); font-size: 22px; flex: none; }

.chat-gate { text-align: center; padding: var(--sp-6) var(--sp-4); }
.chat-gate .cg-ic { font-size: 40px; margin-bottom: var(--sp-3); }
.chat-gate h3 { margin: 0 0 var(--sp-3); }
.chat-gate .btn { margin-top: var(--sp-4); max-width: 220px; }

.chat-container { display: flex; flex-direction: column; height: 100%; }
.chat-current { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); flex: none; }
.chat-current .p-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--lux-soft); display: grid; place-items: center; font-size: 18px; }
.chat-current .p-name { font-size: var(--fz-md); font-weight: 700; color: var(--text); }
.chat-current .p-desc { font-size: var(--fz-xs); color: var(--muted); }

.chat-msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-2); background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: var(--sp-3); }
.msg-row { display: flex; }
.msg-row.user { justify-content: flex-end; }
.msg-row.assistant { justify-content: flex-start; }
.msg-bubble { max-width: 82%; padding: var(--sp-3) var(--sp-3); border-radius: var(--r-lg); font-size: var(--fz-md); line-height: var(--lh-snug); white-space: pre-wrap; word-break: break-word; }
.msg-row.user .msg-bubble { background: var(--accent); color: #1a0f14; border-bottom-right-radius: 4px; }
.msg-row.assistant .msg-bubble { background: linear-gradient(160deg, var(--panel2), var(--panel)); border: 1px solid var(--line); color: var(--text); border-bottom-left-radius: 4px; }
.msg-time { font-size: 10px; color: var(--dim); margin-top: 3px; text-align: right; }
.chat-loading { align-self: flex-start; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: var(--fz-xs); padding: var(--sp-3); }
.dot { width: 6px; height: 6px; background: var(--muted); border-radius: 50%; animation: blink 1.2s infinite; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%,80%,100% { opacity: 0.3; } 40% { opacity: 1; } }

.chat-input-area { display: flex; gap: var(--sp-2); align-items: flex-end; }
.chat-input-area textarea { flex: 1; min-height: 44px; max-height: 120px; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--text); padding: 11px 12px; font-size: var(--fz-md); font-family: inherit; resize: none; }
.chat-input-area textarea:focus { outline: none; border-color: var(--gold); }
.chat-input-area button { min-height: 44px; padding: 0 18px; border-radius: var(--r-md); background: var(--lux); color: #1a0f14; border: 0; font-weight: 700; font-size: var(--fz-md); }
.chat-input-area button:disabled { opacity: 0.5; }

.persona-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); margin-top: var(--sp-2); }
.persona-card { background: linear-gradient(160deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-4); text-align: center; cursor: pointer; transition: 0.15s; }
.persona-card:hover { border-color: var(--gold); }
.persona-card.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.persona-card .p-emoji { font-size: 32px; line-height: 1; margin-bottom: var(--sp-2); }
.persona-card .p-title { font-size: var(--fz-md); font-weight: 700; color: var(--text); }
.persona-card .p-sub { font-size: var(--fz-xs); color: var(--muted); margin-top: 2px; line-height: var(--lh-snug); }
.persona-add { border-style: dashed; color: var(--muted); }
.persona-add .p-emoji { font-size: 28px; }

.chat-label { display: block; font-size: var(--fz-xs); color: var(--muted); margin: var(--sp-4) 0 var(--sp-2); }
#persona-overlay textarea { width: 100%; box-sizing: border-box; background: var(--bg3); border: 1px solid var(--line); color: var(--text); border-radius: var(--r-md); padding: 11px 12px; font-size: var(--fz-sm); font-family: inherit; resize: vertical; }
#persona-overlay textarea:focus { outline: none; border-color: var(--gold); }
.chat-hint { font-size: var(--fz-xs); color: var(--dim); text-align: center; margin-top: var(--sp-4); line-height: var(--lh-snug); }

/* ===== 人格類型明示 ===== */
.ps-head { margin-bottom: var(--sp-3); }
.ps-head b { font-size: var(--fz-md); }
.p-type-badge { display: inline-block; font-family: var(--font-en); font-weight: 800; font-size: var(--fz-xs); letter-spacing: 0.5px; color: #1a0f14; background: linear-gradient(135deg, #e9c46a, #d98c5f); padding: 3px 9px; border-radius: 999px; margin-bottom: var(--sp-2); }
.p-type-label { font-size: var(--fz-xs); color: var(--gold); margin-top: 2px; font-weight: 700; }
.p-meta { flex: 1; min-width: 0; }
.p-type { display: flex; align-items: center; gap: 6px; margin: 1px 0 2px; }
.p-type .mbti { font-family: var(--font-en); font-weight: 800; font-size: var(--fz-xs); color: #1a0f14; background: linear-gradient(135deg, #e9c46a, #d98c5f); padding: 2px 8px; border-radius: 999px; }
.p-type .tl { font-size: var(--fz-xs); color: var(--gold); font-weight: 700; }
.mem-btn { flex: none; align-self: flex-start; font-size: var(--fz-xs); color: var(--gold); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.mem-btn:active { transform: scale(0.97); }

/* ===== 成長記憶面板 ===== */
.chat-memory { margin-bottom: var(--sp-3); }
.mem-card { background: linear-gradient(160deg, rgba(233,196,106,0.10), rgba(255,255,255,0.02)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-3) var(--sp-4); }
.mem-head { font-size: var(--fz-sm); font-weight: 700; color: var(--gold); margin-bottom: var(--sp-2); }
.mem-empty { font-size: var(--fz-xs); color: var(--muted); line-height: var(--lh-snug); }
.mem-row { display: flex; gap: var(--sp-2); padding: 3px 0; font-size: var(--fz-sm); line-height: var(--lh-snug); }
.mem-k { flex: none; width: 42px; color: var(--muted); }
.mem-v { flex: 1; color: var(--text); }
.mem-foot { margin-top: var(--sp-2); font-size: 10px; color: var(--dim); text-align: right; }

/* ===== 圖片輸入與訊息圖片 ===== */
.img-btn { flex: none; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--bg3); border: 1px solid var(--line); color: var(--gold); font-size: 20px; cursor: pointer; }
.img-btn:active { transform: scale(0.96); }
.composer { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.img-thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.thumb { position: relative; width: 48px; height: 48px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: #1a0f14; color: #fff; border: 1px solid var(--line); font-size: 11px; line-height: 1; cursor: pointer; padding: 0; }
.msg-imgs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.msg-img { max-width: 180px; max-height: 180px; border-radius: 8px; display: block; }

/* ===== 無限模式結算 ===== */
.reveal.endless .reveal-clue { color: var(--gold); }

/* ===== 陪聊頁固定佈局：頂部神秘人入口 + 角色卡固定，只有對話框滾動 ===== */
#v-chat.chat-view .pghead { padding-bottom: var(--sp-2); }
#v-chat.chat-view .secret-entry { margin: 0 0 var(--sp-3); }
#v-chat.chat-view #chat-body { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: var(--sp-3) var(--sp-4); }
#v-chat.chat-view #chat-body::-webkit-scrollbar { display: none; }

/* 神秘人頁：設定畫面可捲動、聊天室滿版 */
#v-secret > .view-body { overflow: hidden; padding: var(--sp-3) var(--sp-4) var(--sp-3); }
.secret-setup { height: 100%; overflow-y: auto; scrollbar-width: none; }
.secret-setup::-webkit-scrollbar { display: none; }

/* ===== 頂部用戶名 → 簡要資料卡 ===== */
.me-card { text-align: left; }
.me-top { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.me-av { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--lux); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.me-id { min-width: 0; }
.me-name { font-size: var(--fz-lg); font-weight: 700; color: var(--text); word-break: break-all; }
.me-sub { font-size: var(--fz-xs); color: var(--dim); margin-top: 2px; }
.me-stats { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.me-stat { flex: 1; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-2); text-align: center; }
.me-stat b { display: block; font-family: var(--font-en); font-size: var(--fz-lg); color: var(--gold); line-height: 1.1; }
.me-stat span { font-size: 10px; color: var(--muted); }
#v-chat.chat-view .chat-container { height: 100%; }
/* 角色選擇器場景：自然高度，交由 #chat-body 滾動（避免 height:100% 裁切網格） */
.ps-container { display: block; }
#v-chat.chat-view .ps-container .persona-grid { margin-bottom: var(--sp-4); }
#v-chat.chat-view .chat-msgs { flex: 1; min-height: 0; overflow-y: auto; }
#v-chat.chat-view .chat-input-area { flex: none; }
#v-chat.chat-view .chat-gate { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* ===== 神秘人入口 / 設定 / 聊天室 ===== */
.secret-entry { display: flex; align-items: center; gap: var(--sp-3); cursor: pointer; transition: transform 0.12s, border-color 0.15s; }
.secret-entry:hover { border-color: rgba(233,196,106,0.45); }
.secret-entry:active { transform: scale(0.99); }
.secret-entry .chat-card-ic { font-size: 26px; }
.secret-entry .sub { color: var(--dim); }

.secret-setup { text-align: center; padding: var(--sp-5) var(--sp-3); }
.sec-hero { font-size: 46px; margin-bottom: var(--sp-2); }
.secret-setup h3 { font-family: var(--font-serif); font-size: var(--fz-lg); margin-bottom: var(--sp-2); }
.secret-setup .note { font-size: var(--fz-sm); color: var(--dim); line-height: var(--lh-snug); margin-bottom: var(--sp-4); }
.secret-setup .btn { margin-bottom: var(--sp-3); }
.sec-div { color: var(--muted); font-size: var(--fz-xs); margin: var(--sp-2) 0; }
.secret-setup input { width: 100%; box-sizing: border-box; text-align: center; letter-spacing: 3px; font-family: var(--font-en); font-size: 18px; background: var(--bg3); border: 1px solid var(--line); color: var(--text); border-radius: var(--r-md); padding: 12px; margin-bottom: var(--sp-3); }
.sec-code { font-family: var(--font-en); font-size: 30px; font-weight: 800; letter-spacing: 6px; color: var(--gold); background: var(--bg3); border: 1px dashed rgba(233,196,106,0.5); border-radius: var(--r-lg); padding: var(--sp-4); margin: var(--sp-3) 0; user-select: all; }
.sec-count { font-size: var(--fz-xs); color: var(--muted); margin-bottom: var(--sp-3); }
.sec-safe { margin-top: var(--sp-4); font-size: 10px; color: var(--muted); line-height: var(--lh-snug); }

.secret-room { display: flex; flex-direction: column; height: 100%; }
.sec-peer { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) 0 var(--sp-3); border-bottom: 1px solid var(--line); }
.sec-dot { width: 10px; height: 10px; border-radius: 50%; background: #5fd28a; box-shadow: 0 0 8px #5fd28a; flex: none; }
.sec-peer-info { min-width: 0; }
.sec-peer-name { font-weight: 700; font-size: var(--fz-md); }
.sec-peer-meta { font-size: var(--fz-xs); color: var(--dim); }
.sec-ended { text-align: center; color: var(--muted); padding: var(--sp-5) var(--sp-3); font-size: var(--fz-sm); }

.sec-msgs { flex: 1; overflow-y: auto; padding: var(--sp-3) 2px; display: flex; flex-direction: column; gap: var(--sp-3); min-height: 200px; }
.sec-row { display: flex; }
.sec-row.me { justify-content: flex-end; }
.sec-row.peer { justify-content: flex-start; }
.sec-bubble { max-width: 76%; padding: 9px 12px; border-radius: 16px; font-size: var(--fz-sm); line-height: var(--lh-snug); word-break: break-word; }
.sec-row.me .sec-bubble { background: linear-gradient(135deg, #e9c46a, #d98c5f); color: #1a0f14; border-bottom-right-radius: 4px; }
.sec-row.peer .sec-bubble { background: var(--bg3); border: 1px solid var(--line); color: var(--text); border-bottom-left-radius: 4px; }
.sec-ts { font-size: 9px; opacity: 0.6; margin-top: 3px; text-align: right; }
.sec-img-msg { max-width: 100%; border-radius: 8px; display: block; }

.sec-input { display: flex; align-items: flex-end; gap: 8px; padding-top: var(--sp-2); border-top: 1px solid var(--line); }
.sec-ic { flex: none; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--bg3); border: 1px solid var(--line); color: var(--gold); font-size: 18px; cursor: pointer; }
.sec-ic:active { transform: scale(0.95); }
.sec-input textarea { flex: 1; min-width: 0; resize: none; background: var(--bg3); border: 1px solid var(--line); color: var(--text); border-radius: var(--r-md); padding: 10px 12px; font-size: var(--fz-sm); font-family: inherit; max-height: 110px; }
.sec-input textarea:focus { outline: none; border-color: var(--gold); }
#sec-send { flex: none; align-self: stretch; padding: 0 16px; border: 0; border-radius: var(--r-md); background: linear-gradient(135deg, #e9c46a, #d98c5f); color: #1a0f14; font-weight: 700; cursor: pointer; }
.sec-foot { display: flex; gap: var(--sp-2); padding-top: var(--sp-2); }
.sec-foot .btn { flex: 1; }

.sec-incoming { position: fixed; left: 50%; top: 30%; transform: translateX(-50%); z-index: 60; background: var(--bg2); border: 1px solid var(--gold); border-radius: var(--r-lg); padding: var(--sp-4); text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.sec-incoming .row { display: flex; gap: var(--sp-2); justify-content: center; }

.sec-video-wrap { position: relative; margin-bottom: var(--sp-3); border-radius: var(--r-lg); overflow: hidden; background: #000; aspect-ratio: 4/3; }
.sec-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sec-video.small { position: absolute; right: 8px; bottom: 8px; width: 28%; height: 28%; border-radius: 10px; border: 1px solid rgba(255,255,255,0.4); }
.sec-hang { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: #d9534f; color: #fff; border: 0; border-radius: 999px; padding: 8px 18px; font-weight: 700; cursor: pointer; z-index: 2; }
.sec-video-wrap.voice { aspect-ratio: auto; background: var(--bg3); border: 1px solid var(--line); padding: var(--sp-5) var(--sp-3) 56px; }
.sec-voice-panel { text-align: center; }
.sec-voice-av { width: 68px; height: 68px; margin: 0 auto var(--sp-3); border-radius: 50%; background: var(--lux); display: flex; align-items: center; justify-content: center; font-size: 30px; animation: pulseRing 1.8s ease-in-out infinite; }
.sec-voice-name { font-weight: 700; font-size: var(--fz-md); color: var(--text); }
.sec-voice-tip { font-size: var(--fz-xs); color: var(--dim); margin-top: 4px; }
@keyframes pulseRing { 0%,100% { box-shadow: 0 0 0 0 rgba(233,196,106,0.45); } 50% { box-shadow: 0 0 0 12px rgba(233,196,106,0); } }

/* ========== 留白 ========== */
.bl-loading { text-align: center; color: var(--dim); padding: var(--sp-8) 0; font-size: var(--fz-sm); }

.bl-steps { display: flex; align-items: center; gap: var(--sp-2); margin: var(--sp-4) var(--sp-2) var(--sp-5); }
.bl-step { font-size: var(--fz-xs); color: var(--dim); font-weight: 700; letter-spacing: 0.08em; padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid transparent; }
.bl-step.on { color: #1a0f14; background: var(--lux); border-color: var(--lux); }
.bl-step.past { color: var(--gold2); }
.bl-step-line { flex: 1; height: 1px; background: var(--line); }

.bl-stage { display: flex; flex-direction: column; gap: var(--sp-4); }
.bl-ask { font-size: var(--fz-xl); color: var(--text); font-weight: 700; line-height: var(--lh-snug); }
.bl-ask-sub { font-size: var(--fz-xs); color: var(--muted); margin-top: -8px; }
.bl-words { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); margin-top: var(--sp-2); }
.bl-word { aspect-ratio: 1 / 1; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255,255,255,0.03); color: var(--gold2); font-size: var(--fz-xl); font-weight: 700; cursor: pointer; transition: 0.15s; font-family: var(--font-zh); }
.bl-word:active { transform: scale(0.94); border-color: var(--accent); background: var(--lux-soft); }

.bl-hold { text-align: center; padding: var(--sp-6) var(--sp-4); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); }
.bl-hold-w { font-size: var(--fz-2xl); color: var(--gold2); font-weight: 800; margin-bottom: var(--sp-3); font-family: var(--font-zh); }
.bl-hold-t { font-size: var(--fz-lg); color: var(--text); line-height: var(--lh-loose); }
.bl-hold-by { margin-top: var(--sp-4); font-size: var(--fz-xs); color: var(--dim); }

.bl-task-k { font-size: var(--fz-xs); color: var(--muted); letter-spacing: 0.06em; }
.bl-task { padding: var(--sp-5) var(--sp-4); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); }
.bl-task-t { font-size: var(--fz-xl); color: var(--text); font-weight: 700; line-height: var(--lh-snug); }
.bl-task-h { margin-top: var(--sp-2); font-size: var(--fz-md); color: var(--muted); line-height: var(--lh-base); }
.bl-task-m { margin-top: var(--sp-3); font-size: var(--fz-xs); color: var(--dim); }
.bl-row { display: flex; gap: var(--sp-2); }
.bl-row .btn { flex: 1; }

.bl-mark { align-items: center; text-align: center; }
.pb-rings, .bl-rings { display: block; width: 132px; height: 132px; margin: 0 auto; }
.bl-rings .bl-core { fill: var(--gold2); }
.bl-rings .bl-ring { fill: none; stroke: rgba(240,210,163,0.34); stroke-width: 1.4; }
.bl-count { margin-top: var(--sp-4); font-size: var(--fz-md); color: var(--text); }
.bl-count b { color: var(--gold2); font-size: var(--fz-xl); font-family: var(--font-en); }
.bl-count-sub { margin-top: var(--sp-1); font-size: var(--fz-xs); color: var(--muted); }
.bl-recs { display: flex; flex-direction: column; gap: 6px; margin-top: var(--sp-4); width: 100%; }
.bl-rec { display: flex; gap: var(--sp-2); align-items: center; font-size: var(--fz-xs); color: var(--muted); padding: 8px 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: var(--r-md); }
.bl-rec-d { color: var(--dim); font-family: var(--font-en); flex: none; }
.bl-rec-w { color: var(--gold2); font-weight: 700; flex: none; }
.bl-rec-t { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bl-lamp { margin-top: var(--sp-4); font-size: var(--fz-sm); color: var(--muted); display: flex; align-items: center; justify-content: center; gap: var(--sp-2); }
.bl-lamp-ic { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.bl-lamp-ic.on { background: var(--gold2); box-shadow: 0 0 8px var(--gold2); }

.bl-link { background: none; border: none; color: var(--dim); font-size: var(--fz-xs); text-decoration: underline; cursor: pointer; padding: var(--sp-2); margin: 0 auto; }
.bl-foot { margin-top: var(--sp-6); font-size: 10px; color: var(--dim); text-align: center; line-height: 1.6; }

/* 我的 — 留白年輪卡 */
#profile-blank { text-align: center; }
#profile-blank h3 { justify-content: center; }
#profile-blank .sub { font-size: var(--fz-xs); color: var(--muted); font-weight: 400; margin-left: auto; }
.pb-count { margin-top: var(--sp-2); font-size: var(--fz-md); color: var(--text); }
.pb-count b { color: var(--gold2); font-family: var(--font-en); font-size: var(--fz-lg); }

