/* 12/01 內頁套玩法頁（explore.html）排版：白色膠囊導覽 header.nav＋.pagehead 頁首＋段落大標。
   只給舊內頁用（body.v2s），不載整份 v2.css，避免它的全域重設打亂舊頁內容。導覽列規則從 v2.css 複製，改 v2.css 導覽列時這裡也要跟著改。 */
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600&family=Geist+Mono:wght@400;500&display=swap");
body.v2s { --v2-ink: #05060a; --v2-ink2: #2a2d3a; --v2-mute: #8a8fa3; --v2-line: #e6e8ef; --v2-card: #fff;
  --v2-sans: "Geist", "PingFang TC", "Noto Sans TC", system-ui, sans-serif; }
body.v2s .nav, body.v2s .pagehead { --ink: var(--v2-ink); --ink2: var(--v2-ink2); --mute: var(--v2-mute); --line: var(--v2-line); --card: var(--v2-card); font-family: var(--v2-sans); line-height: 1.6; }
body.v2s .nav *, body.v2s .pagehead * { box-sizing: border-box; }
body.v2s .nav a, body.v2s .pagehead a { color: inherit; text-decoration: none; }
body.v2s .nav img { display: block; max-width: 100%; }
.nav { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(1040px, calc(100% - 32px));
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(5,6,10,.06); box-shadow: 0 1px 2px rgba(5,6,10,.04), 0 10px 30px -14px rgba(5,6,10,.18); color: var(--ink); }
.nav .logo { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 16px; letter-spacing: -.2px; margin-right: auto; }
.nav .logo i { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(160deg,#20243a,#07080d); border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; }
.nav .logo i img { width: 16px; height: 16px; }
.nav .logo small { font-size: 11px; letter-spacing: 3px; color: var(--mute); }
.nav .links { display: flex; gap: 2px; }
.nav .links a { font-size: 14px; color: rgba(5,6,10,.72); padding: 8px 14px; border-radius: 999px; transition: .2s; }
.nav .links a:hover { color: var(--ink); background: rgba(5,6,10,.05); }
.nav .cta { background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; padding: 9px 18px; border-radius: 999px; transition: .2s; }
.nav .cta:hover { background: #23252f; box-shadow: 0 6px 16px -8px rgba(5,6,10,.6); }
.nav .burger { display: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(5,6,10,.05); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav .burger { position: relative; }
.nav .burger span { position: absolute; left: 12px; top: 50%; width: 16px; height: 1.5px; margin-top: -.75px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
.nav .burger span:first-child { transform: translateY(-3.5px) rotate(0); } .nav .burger span:last-child { transform: translateY(3.5px) rotate(0); }
.nav.open .burger span:first-child { transform: translateY(0) rotate(45deg); }
.nav.open .burger span:last-child { transform: translateY(0) rotate(-45deg); }
.nav .sheet { position: absolute; left: 0; right: 0; top: calc(100% + 8px); border-radius: 22px; padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(5,6,10,.06); box-shadow: 0 16px 40px -18px rgba(5,6,10,.25); }
.nav .sheet a { padding: 14px 16px; border-radius: 14px; font-size: 15px; color: rgba(5,6,10,.8); }
.nav .sheet a:hover { background: rgba(5,6,10,.05); }
.nav .sheet[hidden] { display: none; }
@media (max-width: 980px) { .nav .burger { display: flex; } }
@media (min-width: 981px) { .nav .sheet { display: none !important; } }
/* 登入鈕、語言切換放進白色膠囊導覽列（12/01） */
.nav .sa-btn { margin-right: 0; height: 36px; padding: 0 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; }
.nav .sw-lang > button { height: 36px; border-color: var(--line); }
.nav .sheet .sw-lang-row { grid-column: 1 / -1; }
@media (max-width: 860px) { .nav.open .sheet .sw-lang-row { display: flex; gap: 6px; margin-top: 6px; padding: 10px 8px 4px; border-top: 1px solid var(--line); }
  .nav .sheet .sw-lang-row a { flex: 1; justify-content: center; padding: 9px 0; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; background: #fff; }
  .nav .sheet .sw-lang-row a[aria-current=true] { background: var(--ink); border-color: var(--ink); color: #fff; } }
@media (max-width: 420px) { .nav .sa-btn { padding: 0 10px; } .nav .cta { padding: 9px 14px; } }
.nav .sa-btn { order: 0 !important; margin: 0 !important; flex: none; }
@media (max-width: 400px) { .nav { gap: 6px; } .nav .logo { font-size: 15px; gap: 8px; } .nav .burger { width: 36px; height: 36px; } .nav .burger span { left: 10px; } }
/* 12/01 選單往下捲時縮小（.nav.small，v2.js 加） */
.nav { transition: width .45s cubic-bezier(.2,.7,.2,1), top .45s cubic-bezier(.2,.7,.2,1), padding .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s, background .45s; }
.nav.small { top: 10px; width: min(820px, calc(100% - 32px)); padding: 5px 5px 5px 12px; background: rgba(255,255,255,.9); box-shadow: 0 1px 2px rgba(5,6,10,.05), 0 14px 34px -16px rgba(5,6,10,.28); }
.nav .logo i, .nav .logo small, .nav .cta, .nav .links a { transition: all .45s cubic-bezier(.2,.7,.2,1); }
.nav.small .logo i { width: 24px; height: 24px; border-radius: 7px; }
.nav .logo small { display: inline-block; white-space: nowrap; overflow: hidden; max-width: 120px; vertical-align: middle; }
.nav.small .logo small { opacity: 0; max-width: 0; margin-left: -10px; }
.nav.small .cta { padding: 7px 15px; }
.nav.small .links a { padding: 7px 11px; font-size: 13.5px; }
@media (max-width: 980px) { .nav.small { width: calc(100% - 24px); } }
/* 12/01 GM：導覽列（沒縮小時）跟首圖等寬 */
.nav:not(.small) { width: min(1208px, calc(100% - 32px)); }
@media (min-width:1500px) { .nav:not(.small) { width: min(1148px, calc(100% - 32px)); } }
@media (max-width: 980px) { .nav .links { display: none; } }
@media (max-width: 560px) { .nav .logo small { display: none; } .nav { padding-left: 10px; } }
.nav .logo, .nav .links a, .nav .cta { font-family: var(--v2-sans); }
.nav .cta { color: #fff !important; }

/* 頁首（同 explore .pagehead） */
body.v2s .pagehead { padding: 150px 0 48px; text-align: left; }
body.v2s .pagehead .back { display: flex; width: fit-content; align-items: center; gap: 6px; margin: 0 0 18px -10px; padding: 6px 14px 6px 10px; border-radius: 999px; font-size: 14px; color: var(--mute); transition: .2s; }
body.v2s .pagehead .back svg { width: 16px; height: 16px; transition: transform .2s; }
body.v2s .pagehead .back:hover { color: var(--ink); background: var(--card); }
body.v2s .pagehead .back:hover svg { transform: translateX(-2px); }
body.v2s .mono { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
body.v2s .brk { position: relative; display: inline-block; padding: 6px 12px; color: var(--v2-ink2); }
body.v2s .brk:before, body.v2s .brk:after { content: ""; position: absolute; width: 8px; height: 8px; border: 1px solid currentColor; opacity: .55; }
body.v2s .brk:before { left: 0; top: 0; border-right: 0; border-bottom: 0; }
body.v2s .brk:after { right: 0; bottom: 0; border-left: 0; border-top: 0; }
body.v2s .pagehead .h { font-family: var(--v2-sans); font-size: clamp(44px, 6vw, 84px); font-weight: 300; letter-spacing: .02em; line-height: 1.18; margin: 20px 0 14px; color: var(--ink); }
body.v2s .pagehead .h .g { color: #a7abba; }
body.v2s .pagehead .mute { color: var(--mute); font-size: 17px; max-width: 34em; }
body.v2s .pagehead .toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
body.v2s .pagehead .toc a { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid #e1e4ec; font-size: 14px; color: #3a3f52; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
body.v2s .pagehead .toc a:hover, body.v2s .pagehead .toc a:focus-visible { background: #05060a; border-color: #05060a; color: #fff; transform: translateY(-1px); }
@media (max-width: 560px) { body.v2s .pagehead { padding: 112px 0 28px; } body.v2s .pagehead .mute { font-size: 15px; } }

/* 段落大標（同 explore .head：左邊灰黑小眉標＋大標，右邊說明） */
body.v2s .v2head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; text-align: left; }
body.v2s .v2head .k { display: block; font-size: 13px; color: var(--v2-mute); margin-bottom: 12px; }
body.v2s .v2head h2 { font-family: var(--v2-sans); font-size: clamp(32px, 4.2vw, 56px); font-weight: 300; letter-spacing: .02em; line-height: 1.18; margin: 0; color: var(--v2-ink); text-align: left; }
body.v2s .v2head h2 .g { color: #a7abba; }
body.v2s .v2head > p { max-width: 26em; color: var(--v2-ink2); font-size: 15px; margin: 0; text-align: left; }

/* 舊頁自己有 .cta 大區塊、.rv 淡入，別讓它們套到導覽列的開始遊戲鈕 */
body.v2s .nav .cta { margin: 0; display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 999px; position: static; overflow: visible; text-align: center; flex-wrap: nowrap; gap: 0; min-height: 0; box-shadow: none; background: var(--v2-ink); line-height: 1.6; }
body.v2s .nav.small .cta { padding: 7px 15px; }
body.v2s .nav .cta.rv, body.v2s .nav .rv { opacity: 1 !important; transform: none !important; }
@media (max-width: 420px) { body.v2s .nav .cta { padding: 9px 14px; } }

/* 沒有 .pagehead 的內頁（body.v2pad）：導覽列固定在上面，內容往下讓出位置；items／mobs 的回首頁 */
body.v2pad { padding-top: 92px; }
@media (max-width: 560px) { body.v2pad { padding-top: 84px; } }
body.v2s .v2back { padding: 6px 0 0; }
body.v2s .v2back .back { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 10px; margin-left: -10px; border-radius: 999px; font-size: 14px; color: var(--v2-mute); text-decoration: none; font-family: var(--v2-sans); transition: .2s; }
body.v2s .v2back .back svg { width: 16px; height: 16px; }
body.v2s .v2back .back:hover { color: var(--v2-ink); background: #fff; }

.nav .cta, .nav .sa-btn { white-space: nowrap; }

/* 12/01 GM：內頁內容寬度全部一致 → 跟玩法頁／首頁各段的 .wrap 同寬 */
body.v2s main.wrap, body.v2s footer > .wrap, body.v2s .ft-big > .wrap, body.v2s .v2back {
  width: min(1080px, calc(100% - 48px)) !important; max-width: none !important; margin-left: auto !important; margin-right: auto !important; padding-left: 0 !important; padding-right: 0 !important; box-sizing: border-box; }
@media (min-width: 1500px) { body.v2s main.wrap, body.v2s footer > .wrap, body.v2s .ft-big > .wrap, body.v2s .v2back { width: min(1040px, calc(100% - 96px)) !important; } }
@media (max-width: 560px) { body.v2s main.wrap, body.v2s footer > .wrap, body.v2s .ft-big > .wrap, body.v2s .v2back { width: calc(100% - 32px) !important; } }

/* 12/01 新手教學五步驟重新設計：一步一張大白卡，左邊 STEP 小標＋大標題＋說明，右邊截圖，左右交錯 */
body.v2s .gsteps { display: flex; flex-direction: column; gap: 16px; }
body.v2s .gsteps .step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 44px; align-items: center; padding: 40px; border-radius: 28px; background: #fff; border: 1px solid var(--v2-line); box-shadow: none; margin: 0; }
body.v2s .gsteps .step.solo { grid-template-columns: minmax(0, 1fr); }
body.v2s .gsteps .step:nth-child(even):not(.solo) .gt { order: 2; }
body.v2s .gsteps .num { position: static; display: inline-block; width: auto; height: auto; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--v2-mute); font: 500 12px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
body.v2s .gsteps .step h3 { font-family: var(--v2-sans); font-size: clamp(26px, 2.6vw, 36px); font-weight: 300; letter-spacing: .02em; line-height: 1.2; margin: 14px 0 16px; color: var(--v2-ink); }
body.v2s .gsteps .gt p, body.v2s .gsteps .gt li { font-size: 15px; line-height: 1.8; color: var(--v2-ink2); }
body.v2s .gsteps .gt ul { margin: 12px 0 0; padding-left: 1.2em; }
body.v2s .gsteps .gt li + li { margin-top: 6px; }
body.v2s .gsteps .shot { margin: 0; }
body.v2s .gsteps .shot img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--v2-line); }
body.v2s .gsteps .shot figcaption { margin-top: 10px; font-size: 13px; color: var(--v2-mute); text-align: left; }
body.v2s .gsteps .solo .gt { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 760px; }
body.v2s .gsteps .mock { border-radius: 16px; background: #f6f7fa; border: 1px solid var(--v2-line); }
body.v2s .gsteps .note { border-radius: 16px; }
@media (max-width: 860px) {
  body.v2s .gsteps .step { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 26px 22px; border-radius: 22px; }
  body.v2s .gsteps .step:nth-child(even):not(.solo) .gt { order: 0; }
}
body.v2s .gsteps .step .shot { max-width: none; border: 0; border-radius: 0; overflow: visible; background: none; margin: 0; }
body.v2s .gsteps .step .shot figcaption { padding: 0; background: none; border: 0; }
body.v2s .gsteps .note { background: #f3f5fb; border: 1px solid var(--v2-line); color: var(--v2-ink2); padding: 14px 18px; font-size: 14px; line-height: 1.75; margin-top: 16px; }

/* 12/01 分頁按鈕（新手入門的 電腦／手機、iPhone／Android…）：冷灰軌道＋黑色選中，跟導覽列同一套 */
body.v2s .seg { background: #eceef4 !important; box-shadow: inset 0 0 0 1px #e1e4ec; padding: 4px; gap: 2px; }
body.v2s .seg button { color: #5b6075; background: transparent; border-radius: 999px; font-weight: 500; }
body.v2s .seg button[aria-selected="true"] { background: var(--v2-ink, #05060a) !important; color: #fff !important; box-shadow: 0 6px 16px -8px rgba(5,6,10,.55) !important; }
@media (hover: hover) { body.v2s .seg button:not([aria-selected="true"]):hover { background: #fff !important; color: var(--v2-ink, #05060a); } }
body.v2s .seg button:focus-visible { outline: 2px solid #8ea3d6; outline-offset: 2px; }

/* 12/01 內頁 footer 搬到 main 外面後：大字區、舊 footer 內容都跟內文同寬；STARWHISPER 滿版 */
body.v2s footer > .ft-big { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }
@media (min-width: 1500px) { body.v2s footer > .ft-big { width: min(1040px, calc(100% - 96px)); } }
@media (max-width: 560px) { body.v2s footer > .ft-big { width: calc(100% - 32px); } }
body.v2s .ft-word { width: 100%; }
body.v2s .ft-big .ft-est { margin-bottom: 22px; color: #8a8fa3; font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
body.v2s .ft-word span i { display: inline-block; font-style: normal; background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(70%); opacity: 0; transition: transform 1.1s cubic-bezier(.2,.8,.2,1), opacity .9s ease; transition-delay: calc(var(--i) * 55ms); }
body.v2s .ft-word.in span i { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { body.v2s .ft-word span i { transform: none; opacity: 1; transition: none; } }
/* 12/01 市集頁尾連結擠成一團（GM「市集下面 常見問題… 跑版」）：首頁那套頁尾列樣式搬過來 */
body.v2s footer > .wrap:not(.ft-old) { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 30px 0 50px !important; font-size: 13px; color: #8a8fa3; font-family: var(--v2-sans); }
body.v2s footer > .wrap:not(.ft-old) nav { display: flex; gap: 18px; flex-wrap: wrap; }
body.v2s footer > .wrap:not(.ft-old) a { color: #8a8fa3; text-decoration: none; }
body.v2s footer > .wrap:not(.ft-old) a:hover { color: #05060a; }
