/* 平台頁的大標題和一句說明（/epic/ 這類頁面）。其他樣式都在 style.css */
.plat-head { display: grid; gap: var(--sp-2); margin: var(--sp-1) 0 var(--sp-4); }
.plat-head h1 { margin: 0; font-size: 26px; line-height: 1.3; }
.plat-head p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 600px) { .plat-head h1 { font-size: 22px; } }

/* 遊戲頁：Steam 商店卡片，放在資訊框下面、介紹文字上面（活動還在進行時才有） */
.steam-box { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); min-width: 0; }
.steam-label { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
/* Steam 卡片：外層寬度跟容器一樣，裡面的 iframe 固定 646×190，由 app.js 用 scale 等比例縮到容器寬（手機不左右溢出、不凸出卡片） */
.steam-fit { position: relative; width: 100%; min-width: 0; height: 190px; overflow: hidden; }
.steam-frame { display: block; width: 646px; height: 190px; transform-origin: top left; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.itch-frame { max-width: 552px; height: 167px; }
.steam-note { margin: 0; font-size: 12px; color: var(--muted); }

/* 每週整理：週頁的上一週／下一週、依平台分組的列表、總覽的週列表 */
.week-lede { margin: 0; color: var(--muted); font-size: 15px; }
.week-pager { display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; font-size: 14px; }
.week-pager a { color: var(--river); text-decoration: none; font-weight: 600; }
.week-pager a:hover { text-decoration: underline; }
.week-group { display: grid; gap: var(--sp-2); }
.week-group h2 { margin: 0; font-size: 17.5px; border-left: 4px solid var(--river); padding-left: var(--sp-2); line-height: 1.3; }
.week-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.week-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--sp-1) var(--sp-4); min-height: 56px; padding: var(--sp-3) var(--sp-4); }
.week-list li + li { border-top: 1px solid var(--line); }
.wr-name { min-width: 0; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.wr-name a { color: var(--ink); text-decoration: none; }
.wr-name a:hover { color: var(--river); text-decoration: underline; }
.wr-name small { margin-left: var(--sp-2); font-size: 12px; font-weight: 700; color: var(--river); }
.wr-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--sp-1) var(--sp-3); font-size: 13px; color: var(--muted); }
.wr-meta s { color: var(--muted); }
.wr-live { font-weight: 800; color: var(--ok); }
.wr-claim { font-weight: 700; color: var(--river); text-decoration: none; white-space: nowrap; }
.wr-claim:hover { text-decoration: underline; }
.week-index { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.week-index li + li { border-top: 1px solid var(--line); }
.week-index a { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); min-height: 52px; padding: var(--sp-3) var(--sp-4); color: var(--ink); text-decoration: none; font-weight: 700; }
.week-index a:hover { color: var(--river); }
.week-index small { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.week-index .now { margin-left: var(--sp-2); font-size: 12px; color: var(--ok); }
@media (max-width: 600px) {
  .week-list li { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); padding: var(--sp-3) var(--sp-3); }
  .wr-meta { justify-content: flex-start; }
}

/* 新的獨立頁（Epic 下週免費、Epic 神秘遊戲、領取教學）、平台頁底下的常見問題、遊戲頁的「這週的每週整理」 */
.side-title a { color: inherit; text-decoration: none; }
.side-title a:hover { text-decoration: underline; }
.next-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.next-list li { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: var(--sp-3); padding: var(--sp-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.next-list img { width: 120px; height: 68px; object-fit: cover; border-radius: var(--r-sm); background: var(--line); }
.next-list strong { display: block; line-height: 1.45; overflow-wrap: anywhere; }
.next-list strong a { color: var(--ink); text-decoration: none; }
.next-list strong a:hover { color: var(--river); text-decoration: underline; }
.next-list span { display: block; margin-top: var(--sp-1); font-size: 13px; color: var(--muted); }
.text-list li { grid-template-columns: minmax(0, 1fr); }
.static-links { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); }
.static-cta { display: inline-flex; align-items: center; min-height: 40px; font-weight: 700; color: var(--river); text-decoration: none; }
.static-cta:hover { text-decoration: underline; }
.next-list .static-cta { min-height: 36px; margin-top: var(--sp-1); font-size: 14px; }
.guide-steps { display: grid; gap: var(--sp-2); padding-left: var(--sp-5); }
.week-link { margin: var(--sp-4) 0 0; font-size: 14px; color: var(--muted); }
.week-link a { color: var(--river); font-weight: 700; }
.faq { max-width: 760px; margin: 28px 0 0; display: grid; gap: var(--sp-3); }
.faq h2 { margin: 0 0 var(--sp-1); font-size: 20px; line-height: 1.3; }
.faq-item { display: grid; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.faq-item h3 { margin: 0; font-size: 15px; line-height: 1.4; }
.faq-item p { margin: 0; font-size: 15px; line-height: 1.6; }
.faq-item .static-cta { min-height: 36px; font-size: 14px; }
@media (max-width: 600px) {
  .next-list li { grid-template-columns: 96px minmax(0, 1fr); gap: var(--sp-3); }
  .next-list img { width: 96px; height: 54px; }
}

/* 內容短的獨立頁（Epic 下週免費、神秘遊戲、領取教學、關於）：不要撐到一個螢幕高，側欄才會接在內容下面 */
.main.main-static { min-height: 0; }


/* ---------- DLC：角標、本體步驟框、本體免費連結、手機遊戲頁底部細列、回到頂端 ---------- */
/* DLC 角標：沿用 .badge 的位置和形狀，顏色用紫色；跟「24 小時內截止」同時出現時排在它下面 */
.badge-dlc { background: var(--dlc-bg); color: var(--c-white); }
.badge + .badge-dlc { top: 38px; }
/* 側欄「即將截止」、手機橫向卡片裡的 DLC 小字 */
.ending-list .end-text .end-dlc { color: var(--dlc-text); font-weight: 700; }
.ms-dlc { font-size: 12px; font-weight: 700; color: var(--dlc-text); line-height: 1.3; }
/* 首頁卡片：分類那一行（Steam 那行字），DLC 本體免費的連結放在右邊；連結的可點高度 40px，但用負邊距，不讓這一行變高 */
.cat-line { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--sp-2); }
.base-free { display: inline-flex; align-items: center; min-height: 40px; margin: -10px 0; font-size: 13px; font-weight: 700; color: var(--dlc-text); text-decoration: none; white-space: nowrap; }
.base-free:hover { text-decoration: underline; }
/* 遊戲頁：要先領本體的步驟框（放在領取按鈕上面） */
.dlc-box { display: grid; gap: var(--sp-2); margin: var(--sp-3) 0 0; padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-size: 15px; line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; }
.dlc-box p { margin: 0; }
.dlc-box .nw { white-space: nowrap; }
.dlc-steps { list-style: none; counter-reset: dlc-step; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
/* 步驟的文字和按鈕：手機寬度時按鈕在文字下一行，電腦寬時按鈕在右邊；編號用計數器（flex 會讓 li 的數字消失） */
.dlc-steps li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); }
.dlc-steps .dlc-text { flex: 1 1 auto; min-width: 0; }
.dlc-steps li::before { counter-increment: dlc-step; content: counter(dlc-step) "."; flex: none; font-weight: 700; margin-right: -6px; }
.dlc-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 40px; padding: 0 var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.dlc-btn:hover { border-color: var(--ink); }
.dlc-box > .dlc-btn { justify-self: start; }
/* 手機遊戲頁：大按鈕捲出畫面時，底部的細列（高約 56px，含安全區域）；電腦版不顯示 */
.game-bar { display: none; }
@media (max-width: 600px) {
  .game-bar:not([hidden]) { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; box-sizing: border-box; display: flex; align-items: center; gap: var(--sp-3); height: calc(56px + env(safe-area-inset-bottom)); padding: 0 var(--sp-3) env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow-bar); }
  body.bar-on { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}
.game-bar-name { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-bar-claim { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--sp-4); border-radius: var(--r-md); background: var(--claim); color: var(--claim-ink); font-weight: 800; font-size: 15px; text-decoration: none; }
/* 回到頂端：直徑 44px 的圓形按鈕，右下角；手機遊戲頁有底部細列時，放在細列上面 */
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 25; display: grid; place-items: center; box-sizing: border-box; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font: 700 20px/1 var(--font-num); cursor: pointer; }
.to-top[hidden] { display: none; }
.to-top:hover { border-color: var(--muted); }
@media (max-width: 600px) { body.bar-on .to-top { bottom: calc(56px + env(safe-area-inset-bottom) + 12px); } }

/* 首頁卡片底部（一般卡片和頭條共用）：資訊列（.meta）永遠自己佔一整行，按鈕（.actions）在下一行、靠右對齊；
   資訊列內容多就在這一行裡換行。卡片底部的 .item-foot 仍由 .item-body 的 margin-top:auto 貼底。 */
.item-foot > .meta { flex: 0 0 100%; min-width: 0; }
.item-foot > .actions { margin-left: auto; }
/* 領取後問一句「領到了嗎？」：白底或深色底的小列，按鈕約 40px 高，不擋其他按鈕 */
.claim-ask { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-top: var(--sp-2); padding: var(--sp-2) var(--sp-3); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); font: 600 var(--fs-sm)/1.5 var(--font-body); }
.claim-ask > span { margin-right: auto; min-width: 0; }
.claim-ask .ask-btns { display: flex; gap: var(--sp-2); margin-left: auto; }
.claim-ask button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 var(--sp-3); border-radius: var(--r-md); font: 700 var(--fs-sm)/1 var(--font-body); cursor: pointer; white-space: nowrap; }
.claim-ask .ask-yes { background: var(--claim); color: var(--claim-ink); border: 1px solid var(--claim); }
.claim-ask .ask-no { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.claim-ask .ask-no:hover { border-color: var(--ink); }
@media (max-width: 374px) { .claim-ask { padding: var(--sp-2); } .claim-ask .ask-btns { width: 100%; margin-left: 0; } .claim-ask button { flex: 1 1 0; padding: 0 var(--sp-2); } }
/* 按了「領到了」之後的一行小字：低調、次要色，8 秒後淡出；可以按 ✕ 關掉 */
.claim-thanks { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-3); margin-top: var(--sp-2); font: 500 var(--fs-sm)/1.5 var(--font-body); color: var(--muted); transition: opacity 0.4s; min-width: 0; }
.claim-thanks.is-out { opacity: 0; }
.claim-thanks .thanks-fb { min-width: 0; overflow-wrap: anywhere; }
.claim-thanks .thanks-fb a { color: var(--river); font-weight: 700; text-decoration: none; }
.claim-thanks .thanks-fb a:hover { text-decoration: underline; }
.claim-thanks .thanks-x { margin-left: auto; min-width: 40px; min-height: 40px; border: 0; background: none; color: var(--muted); font: 600 var(--fs-sm)/1 var(--font-body); cursor: pointer; }

/* 加到行事曆選單最上面的一句白話說明：可以換行，不跟著選項一起不換行 */
.pop-intro { max-width: 280px; margin: 0; padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 600; line-height: 1.6; color: var(--ink); white-space: normal; word-break: keep-all; }

/* 要先到其他網站領：怎麼領的步驟框（白底細框，手機也不擠） */
.claim-steps { display: grid; gap: var(--sp-2); }
/* 放在資訊框裡面時不再加一層框（資訊框本身就是白底細框） */
.infobox > .claim-steps { border: 0; padding: 0; background: none; }
.claim-steps h2 { margin: 0; font-size: var(--fs-lg); font-weight: 800; }
.claim-steps ol { margin: 0; padding-left: 1.4em; display: grid; gap: var(--sp-3); }
.claim-steps li { line-height: 1.6; }
.claim-steps .cs-line { margin: 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--muted); }
.claim-steps .cs-line strong { color: var(--ink); font-weight: 700; }

/* 追加內容的 Steam 雙卡片：上面原遊戲、下面追加內容，中間用小標分開；電腦和手機都顯示 */
.steam-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); scroll-margin-top: var(--sp-10); min-width: 0; }
/* 原遊戲有 Steam 卡片（電腦和手機都一樣）：主按鈕旁的步驟框收起來，改放一行小字指到下方卡片 */
.steam-hint { display: flex; align-items: center; min-height: 40px; margin: 0; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.dlc-box.steam-covered { display: none; }
/* iPhone 點進字小於 16px 的輸入框會自動放大畫面、離開後不一定縮回，看起來像跳成別的比例：手機上輸入框一律 16px */
@media (max-width: 768px) { input, select, textarea { font-size: 16px !important; } }

/* itch.io 獨立遊戲區的說明字（首頁最下面） */
.itch-note { margin: 0; font-size: 14px; color: var(--muted); }
