/* 天下大勢：探索與走一趟的樣式（全部拆包第 67 批從 style.css 切出來，規則一個字不改；載入的先後在 index.html，同權重後蓋前）。 */

/* 找素材分支（第 32 項，計畫 2.1 甲）：「找素材」是展開鈕，底下一排分支——兩欄，名字一行、「體力 6・剛、慢」一行（小段不折在詞中間，nbHtml）；
   「自己說…」與它的輸入框佔一整列。左邊一條細線表示是「找素材」底下的 */
.act-explore .btn.gather-head { justify-content: space-between; }
.act-explore .btn.gather-head.on { border-color: var(--accent); }
.act-explore .gather-caret { flex: none; font-size: 12px; color: var(--ink-2); }
.gather-branches { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: -2px 0 2px 6px; padding-left: 10px; border-left: 2px solid var(--line); }
.gather-branches .btn.gather-branch { min-height: 44px; padding: 6px 10px; justify-content: flex-start; text-align: left; }
.gather-branches .gb-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; }
.gather-branches .gb-text b { font-weight: 600; }
.gather-branches .gb-text small { font-size: 12px; color: var(--ink-2); white-space: normal; }
.gather-branches .gather-branch.say, .gather-branches .gather-branch.wide, .gather-branches .gather-say { grid-column: 1 / -1; } /* .wide：單數條的最後一條（FB-461） */
.gather-branches .gather-say { margin: 0; }

/* 走一趟（outing.js；企劃者 2026-10-29～30）：蓋在畫面上的一層，上面一塊畫布（720×360，斗笠小童在野地四層上跑），
   底下沿路的幾行與一排鈕；停在要選的事上按「去看看」藏起來，選完接著走再打開。探索那一格點開的段數選單在行動列底下 */
.outing-pick .outing-segs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.outing-pick .outing-segs .btn { justify-content: center; text-align: center; }
.outing-pick .outing-segs .btn span { display: flex; flex-direction: column; align-items: center; }
.outing-pick .outing-segs small { font-size: 11px; color: var(--ink-2); font-weight: 500; }
.outing-pick .outing-note { margin: 8px 2px 0; }
.outing-wrap[hidden] { display: none; } /* 按「去看看」藏起來：不寫這一行，下面的 display: flex 會蓋過 hidden，整層還擋在江湖頁上 */
.outing-wrap { position: fixed; inset: 0; z-index: 58; display: flex; align-items: center; justify-content: center;
  padding: max(12px, var(--top)) 10px max(12px, var(--bottom)); background: rgba(20, 16, 12, .55); }
.outing-card { background: var(--card); color: var(--ink); border: 1px solid var(--gold); border-radius: 20px; width: 100%; max-width: 24rem;
  max-height: 100%; display: flex; flex-direction: column; padding: 12px 12px 14px; overflow: hidden; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); animation: asc-in .4s ease-out; }
.outing-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 4px 6px; font-family: var(--serif); }
.outing-head b { color: var(--gold); font-size: 18px; }
.outing-step { font: 500 12px var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.outing-scene { flex: none; position: relative; border-radius: 12px; overflow: hidden; background: #efe6d2; cursor: pointer; } /* 點一下就接著走（outingHurry） */
.outing-cv { display: block; width: 100%; aspect-ratio: 2 / 1; max-width: 100%; }
.outing-stele { position: absolute; top: 6px; right: 6px; max-width: 42%; display: grid; gap: 0; text-align: left; cursor: pointer;
  padding: 3px 8px 4px; border: 1px solid #3e2a17; border-radius: 4px 4px 6px 6px; background: linear-gradient(#7a5532, #5e4024); color: #f6ead2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3); font: 500 11.5px/1.4 var(--serif); opacity: .94; }
.outing-stele small { font-size: 9.5px; letter-spacing: .2em; color: #e6c98c; }
.outing-stele b { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.outing-stele i { font-style: normal; font-size: 10px; color: #e9d9b8; justify-self: end; }
.outing-stele[hidden], .outing-stele-all[hidden] { display: none; } /* display:grid 會蓋過 hidden：這一處沒人留過時不畫空的碑 */
.outing-stele-all { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 12px; background: var(--card); color: var(--ink); font-size: 13px; line-height: 1.6; }
.outing-stele-all p { margin: 0 0 6px; }
.outing-stele.inked { border-color: #e2b65a; background: linear-gradient(#9a2f25, #6e1f18); color: #fff3d6; opacity: 1; padding-right: 22px;
  box-shadow: 0 0 0 1px rgba(226, 182, 90, .55), 0 0 12px rgba(226, 182, 90, .55), 0 2px 6px rgba(0, 0, 0, .35); animation: outing-ink-glow 2.4s ease-in-out infinite; }
.outing-stele.inked small { color: #f4d58a; }
.outing-stele.inked b { font-weight: 700; font-size: 12.5px; }
.outing-stele .ink-seal { position: absolute; top: -6px; right: -6px; }
@keyframes outing-ink-glow { 50% { box-shadow: 0 0 0 1px rgba(226, 182, 90, .8), 0 0 18px rgba(226, 182, 90, .8), 0 2px 6px rgba(0, 0, 0, .35); } }
@media (prefers-reduced-motion: reduce) { .outing-stele.inked { animation: none; } }
.ink-seal { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; background: var(--accent); color: #fff;
  font: 700 12px/1 var(--serif); font-style: normal; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transform: rotate(-6deg); }
.outing-stele-all p.ink { display: flex; gap: 8px; align-items: flex-start; padding: 6px 8px; border: 1px solid var(--gold); border-radius: 8px;
  background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 14px; }
.outing-stele-all p.ink .ink-seal { flex: none; margin-top: 1px; }
.outing-stele-all small { color: var(--ink-2); margin-left: 4px; }
.outing-stele-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--serif); }
.outing-stele-head button { border: 0; background: none; font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink-2); }
.outing-card.done .outing-foot { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.outing-card.done .outing-log { flex: 0 0 auto; min-height: 0; max-height: 72px; }
.outing-feat { margin: 4px 0; font: 600 13px var(--serif); color: var(--gold); }
.outing-foot { flex: none; padding: 10px 0 8px; }
.outing-log { flex: 1 1 auto; min-height: 120px; max-height: 170px; overflow-y: auto; padding: 8px 4px 0; border-top: 1px solid var(--line); }
.outing-log:empty::before { content: "上路了……"; color: var(--ink-2); font: 500 13px var(--serif); }
.outing-line { display: flex; gap: 8px; margin: 0 0 6px; font-size: 13.5px; line-height: 1.6; animation: asc-in .3s ease-out; }
.outing-line .k { flex: none; font: 600 11px/1.5 var(--serif); color: var(--gold); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; margin-top: 2px; }
.outing-line small { display: block; font-size: 12px; }
.outing-line small.up { color: var(--ok); }
.outing-line small.down { color: var(--bad); }
.outing-line.rare .k { background: var(--gold); color: var(--card); border-color: var(--gold); }
.outing-line.bad .k { color: var(--bad); }
.outing-ctl { display: flex; gap: 8px; }
.outing-ctl .btn { flex: 1; justify-content: center; }
.outing-card.choosing .outing-foot { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.outing-card.choosing .outing-log { min-height: 56px; max-height: 96px; }
.outing-choice > p { margin: 0 0 8px; font-size: 13.5px; }
.outing-ev { font-size: 13.5px; line-height: 1.7; margin: 0 2px 8px; }
.outing-ev p { margin: 0 0 6px; }
.outing-ev img { display: none; }
.outing-choice .options { display: grid; gap: 6px; }
.outing-choice .options > .btn { width: 100%; justify-content: flex-start; text-align: left; }
.outing-choice .free { display: flex; gap: 6px; }
.outing-choice .free .input { flex: 1 1 auto; min-width: 0; }
.outing-choice .free .btn { flex: none; }
.outing-line.after .k { color: var(--ink-2); }
/* 選完了停著的那幾秒：選項換成「果」這一則，「接著走」從左填到右＝還停多久（outingNowHtml） */
.outing-now { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--gold); border-radius: 12px; background: var(--card); animation: asc-in .3s ease-out; }
.outing-now-head { margin: 0; }
.outing-now-head .k { font: 700 14px/1.4 var(--serif); color: var(--card); background: var(--gold); border-radius: 4px; padding: 1px 8px; }
.outing-now-text { margin: 0; font: 600 16px/1.65 var(--serif); }
.outing-now small { font-size: 13px; }
.outing-now-go { position: relative; overflow: hidden; width: 100%; justify-content: center; }
.outing-now-go span { position: relative; }
.outing-now-bar { position: absolute; inset: 0 auto 0 0; width: 100%; background: color-mix(in srgb, var(--gold) 30%, transparent); transform-origin: left; animation: outing-fill linear forwards; }
@keyframes outing-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.outing-title { margin: 0 0 4px; font-family: var(--serif); }
.outing-title b { color: var(--gold); }
.outing-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.outing-chips .oc { font-size: 12.5px; line-height: 1.6; padding: 1px 8px; border-radius: 10px; background: var(--card-2); color: var(--ok); }
.outing-chips .oc.rare { background: var(--gold); color: var(--card); font-weight: 700; }
.outing-chips .oc.down { color: var(--bad); }
.outing-line.trace { color: var(--rn-xia); }
.outing-line.trace .k { color: var(--rn-xia); border-color: currentColor; }
.outing-erase { margin-left: auto; flex: none; border: 0; background: none; color: var(--bad); font-size: 16px; line-height: 1; cursor: pointer; padding: 0 4px; }
.outing-say { margin: 6px 0; }
.outing-say summary { cursor: pointer; font: 600 13.5px var(--serif); color: var(--gold); }
.outing-chips .oc.say { border: 1px solid var(--line); color: var(--ink); background: var(--card-2); cursor: pointer; font: inherit; font-size: 12.5px; }
.outing-own { display: flex; gap: 6px; margin: 4px 0; }
.outing-own input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 13.5px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
.outing-said { margin: 4px 0; font-size: 13px; color: var(--ink-2); }
.outing-diary { margin: 6px 0 2px; font: 400 13.5px/1.75 var(--serif); color: var(--ink); }
.outing-diary.fresh { animation: asc-in .6s ease-out; }
.outing-here { margin: 4px 0 8px; font-size: 13px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
@media (prefers-reduced-motion: reduce) { .outing-card, .outing-line, .outing-now { animation: none; } }
