/* 一直逛的新功能：今日任務、我的足跡、二選一、人偶尋人、盒組頁的「下一站」。
 * 沿用深藍卡套風，不用黃黑配色、不放頂端大搜尋框和膠囊標籤列（避開 yellowbrickdb／cfelix）。 */
.xp-legal { margin-top: 40px; font-size: 12px; color: var(--faint); }
/* 外掛頁尾已經有商標聲明：頁面自己的那句收起來，不重複（驗證 D 問題 6 11/20；本機樣板沒有頁尾，照樣顯示） */
body:has(footer.tll-v2-footer) .xp-legal { display: none; }
.xp-mini { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; text-decoration: none; color: var(--ink); background: rgba(20,40,74,.6); border: 1px solid rgba(176,208,255,.14); transition: transform .15s, border-color .15s; min-width: 0; }
.xp-mini:hover { transform: translateY(-2px); border-color: rgba(111,214,196,.55); }
.xp-ph { flex: none; width: 76px; height: 76px; border-radius: 12px; background: radial-gradient(circle at 50% 45%, #f4f7fb, #d4dce8); position: relative; overflow: hidden; }
.xp-ph img { position: absolute; left: 6%; top: 6%; width: 88%; height: 88%; object-fit: contain; }   /* 絕對定位：直式產品照（哥吉拉）不會被裁掉頭尾（11/19 巡檢） */
.xp-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.xp-tx small { font-size: 12px; color: var(--muted); }
.xp-tx b { font-size: 14.5px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.xp-tx em { font-style: normal; font-size: 12px; color: var(--mint); font-weight: 700; }
.xp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--mint); color: #0b1a2a; font: 800 14.5px var(--font); cursor: pointer; text-decoration: none; }
.xp-btn.ghost { background: none; border: 1px solid rgba(111,214,196,.55); color: var(--mint); }
.xp-card { padding: 18px; border-radius: 18px; background: rgba(20,40,74,.72); border: 1px solid rgba(176,208,255,.16); }

/* ── 今日任務：任務單＋集章卡 ── */
.qs { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.qs-list { display: flex; flex-direction: column; gap: 12px; }
.qs-item { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(20,40,74,.72); border: 1px solid rgba(176,208,255,.16); }
.qs-item .qs-ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: rgba(143,182,255,.12); }
.qs-item h3 { margin: 0; font-size: 16px; text-wrap: balance; }   /* 最後一兩個字不要單獨一行 */
.qs-item p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.qs-bar { position: relative; height: 8px; margin-top: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.qs-bar i { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--mint), #8fb6ff); transition: width .4s; }
.qs-item.done { border-color: rgba(111,214,196,.55); background: linear-gradient(90deg, rgba(111,214,196,.12), rgba(20,40,74,.72) 60%); }
.qs-item.done .qs-ic { background: var(--mint); color: #0b1a2a; }
.qs-stamp { text-align: center; }
.qs-stamp h2 { margin: 0 0 4px !important; color: var(--ink) !important; }
.qs-stamp > p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.qs-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 420px; margin: 0 auto; }   /* 圈圈最大約 54px，摺疊機不會拉很長（11/19 巡檢） */
.qs-grid span { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: var(--faint); border: 1.5px dashed rgba(176,208,255,.22); }
.qs-grid span.got { border: 0; color: #3a1a12; font-weight: 800; background: radial-gradient(circle at 35% 30%, #ffd3c7, #ff8a76 60%, #c4513e); box-shadow: 0 2px 6px rgba(0,0,0,.35); transform: rotate(-8deg); }
.qs-grid span.today { border: 2px solid var(--mint); }   /* 今天：實線框，不往外長，和其他圈一樣大 */
.qs-grid span.got.today { box-shadow: 0 0 0 2px var(--mint), 0 2px 6px rgba(0,0,0,.35); }
.qs-streak { margin: 12px 0 0; font-size: 14px; } .qs-streak b { font-size: 22px; color: var(--coral); }
.qs-allset { margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: rgba(255,138,118,.12); border: 1px solid rgba(255,138,118,.4); font-weight: 700; }

/* ── 我的足跡：一條路 ── */
.tr-day h2 { margin: 22px 0 10px !important; }
.tr-path { position: relative; display: flex; flex-direction: column; gap: 10px; padding-left: 26px; }
.tr-path::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: repeating-linear-gradient(180deg, var(--mint) 0 8px, transparent 8px 14px); opacity: .6; }
.tr-step { position: relative; }
.tr-step::before { content: ""; position: absolute; left: -23px; top: 50%; width: 13px; height: 13px; margin-top: -7px; border-radius: 50%; background: var(--bg); border: 3px solid var(--mint); }
.tr-step .xp-mini { max-width: 560px; }
.tr-from { margin-left: 8px; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; background: rgba(143,182,255,.15); color: var(--sky); }
.tr-tools { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 0; }
.tr-empty { padding: 40px 10px; text-align: center; color: var(--muted); }

/* ── 二選一 ── */
.du-round { margin: 0 0 12px; color: var(--muted); font-weight: 700; }
.du-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
.du-vs { align-self: center; font-size: 22px; font-weight: 900; color: var(--coral); }
.du-pick { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 20px; border: 2px solid rgba(176,208,255,.18); background: rgba(20,40,74,.72); color: var(--ink); cursor: pointer; text-align: left; font: inherit; transition: transform .15s, border-color .15s; }
.du-pick:hover { transform: translateY(-3px); border-color: var(--mint); }
.du-pick .du-ph { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; background: radial-gradient(circle at 50% 45%, #f4f7fb, #d4dce8); overflow: hidden; }
.du-pick .du-ph img { position: absolute; left: 7%; top: 7%; width: 86%; height: 86%; object-fit: contain; }
.du-pick b { font-size: 17px; }
.du-pick dl { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 10px; margin: 0; font-size: 12.5px; }
.du-pick dt { color: var(--muted); } .du-pick dd { margin: 0; font-weight: 700; }
.du-report { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.du-axis { margin: 0 0 14px; }
.du-axis p { display: flex; justify-content: space-between; margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.du-axis p b { color: var(--ink); }
.du-axis i { display: block; position: relative; height: 12px; border-radius: 99px; background: linear-gradient(90deg, #8fb6ff, #6a4fb0 50%, #ff8a76); }
.du-axis i::after { content: ""; position: absolute; top: -4px; left: var(--p); width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.du-recs { display: flex; flex-direction: column; gap: 10px; }
.du-taste { font-size: 20px; font-weight: 800; margin: 0 0 14px; color: var(--mint); }

/* ── 人偶尋人 ── */
.wh { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; }
.wh-pic { position: relative; aspect-ratio: 1; border-radius: 24px; background: radial-gradient(circle at 50% 40%, #f4f7fb, #c9d3e2); display: grid; place-items: center; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.wh-pic img { position: absolute; left: 13%; top: 13%; width: 74%; height: 74%; object-fit: contain; opacity: 0; transition: opacity .4s; }   /* 絕對定位：高度才算得出來，腳不會被框切掉（11/19 巡檢） */
.wh-pic img.sil { opacity: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.wh-pic.show img { opacity: 1; animation: wh-reveal .6s ease; }
@keyframes wh-reveal { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.wh-pic .wh-q { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(8,16,30,.78); color: #e9eff9; font-size: 12.5px; font-weight: 700; }
.wh-score { display: flex; gap: 18px; margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.wh-score b { font-size: 24px; color: var(--ink); }
.wh-hint { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.wh-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wh-opts button { min-height: 58px; padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(176,208,255,.25); background: rgba(20,40,74,.72); color: var(--ink); font: 700 15px var(--font); cursor: pointer; text-align: left; }
.wh-opts button:hover:not(:disabled) { border-color: var(--mint); }
.wh-opts button.ok { background: rgba(111,214,196,.2); border-color: var(--mint); }
.wh-opts button.no { background: rgba(255,138,118,.15); border-color: var(--coral); }
.wh-result { margin: 14px 0 0; }
.wh-result .xp-mini { margin-top: 8px; }

/* ── 盒組頁「下一站」與足跡 ── */
.ns { max-width: 1192px; margin: 28px auto 10px; padding: 0 16px; }
.ns h2 { margin: 0 0 4px; font-size: 18px; }
.ns > p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.ns-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ns-grid .xp-mini { flex-direction: column; align-items: stretch; }
.ns-grid .xp-ph { width: 100%; height: auto; aspect-ratio: 4 / 3; }
/* 框的高是照寬高比算的，img 的 height:88% 在這裡不生效、高的圖會從下面被切掉（使用者 11/19：「下一站的圖有些都被切掉」）：改成絕對定位，整張放進框裡 */
.ns-grid .xp-ph { position: relative; }
.ns-grid .xp-ph img { position: absolute; left: 6%; top: 6%; width: 88%; height: 88%; object-fit: contain; }
.ns-why { font-size: 12px; font-weight: 800; color: var(--mint); letter-spacing: .04em; }
.ns-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.ns-trail a { padding: 3px 10px; border-radius: 99px; background: rgba(143,182,255,.12); color: var(--ink); text-decoration: none; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns-trail a:hover { background: rgba(111,214,196,.2); }
.ns-trail span.arr { color: var(--faint); }

@media (max-width: 860px) {
  .qs, .wh, .du-report { grid-template-columns: 1fr; }
  .du-pair { grid-template-columns: 1fr; } .du-vs { justify-self: center; }
  .du-pick { flex-direction: row; align-items: center; } .du-pick .du-ph { width: 120px; flex: none; aspect-ratio: 1; }
  .du-pick dl { grid-template-columns: 3.2em minmax(0, 1fr); }   /* 第一欄固定寬，上下兩張卡的數值才對齊（11/19 巡檢） */
  .ns-grid { grid-template-columns: 1fr 1fr; }
  .wh-pic { max-width: 320px; margin: 0 auto; width: 100%; }
}

/* 淺色 */
html.theme-light .xp-mini, html.theme-light .qs-item, html.theme-light .xp-card, html.theme-light .du-pick, html.theme-light .wh-opts button { background: #fff; border-color: #dfe6f0; }
html.theme-light .qs-item.done { background: linear-gradient(90deg, #e3f6f1, #fff 60%); }
html.theme-light .xp-btn { color: #0b1a2a; }
