/* 首頁（2026-11-06 使用者選「甲款黑金王座第二版」；示意稿在 _示意/官網改版/a2.html） */
.hm { --gold: #d8b46a; --gold2: #f3dfa6; --gold3: #8a6a33; --line: #2e2416; --ok: #5fbf6a; }
.hm .nw { white-space: nowrap; }
.hm-btn { height: 52px; padding: 0 30px; font-size: 17px; }

/* ---------- 主視覺：說話之島碼頭 ---------- */
.dock-hero { position: relative; height: clamp(560px, 64vw, 720px); overflow: hidden; border-bottom: 1px solid #4a3a22; background: #0d3a5c; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.dock-cv { position: absolute; inset: 0; display: block; cursor: pointer; }
.dock-hero .shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(6, 4, 2, .88) 0%, rgba(6, 4, 2, .55) 26%, transparent 46%), linear-gradient(0deg, rgba(6, 4, 2, .75) 0%, transparent 22%), linear-gradient(180deg, rgba(6, 4, 2, .45) 0%, transparent 16%); }
.dock-hero .copy { position: absolute; left: max(16px, calc((100% - 1200px) / 2 + 16px)); top: 50%; transform: translateY(-58%); width: min(470px, calc(100% - 32px)); pointer-events: none; }
.dock-hero .copy a { pointer-events: auto; }
.dock-hero .ver { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--gold); letter-spacing: .2em; white-space: nowrap; }
.dock-hero .ver::before, .dock-hero .ver::after { content: ""; width: 28px; height: 1px; background: var(--gold3); }
.dock-hero h1 { margin: 12px 0 6px; font-size: clamp(44px, 6.6vw, 88px); line-height: 1.04; white-space: nowrap; filter: drop-shadow(0 3px 0 #000) drop-shadow(0 0 20px rgba(0, 0, 0, .9)); text-wrap: nowrap; }
.dock-hero h1 span { display: block; }
.dock-hero .sub { font: 700 clamp(15px, 1.7vw, 20px) var(--serif); color: #efe3c6; letter-spacing: .24em; white-space: nowrap; text-shadow: 0 2px 6px #000; }
.dock-hero .cta { margin-top: 26px; flex-wrap: nowrap; }
.dock-hero .tip { margin-top: 20px; font-size: 13px; color: #d8cba8; text-shadow: 0 1px 3px #000; white-space: nowrap; }
.dock-ui { position: absolute; top: 14px; right: max(16px, calc((100% - 1200px) / 2 + 16px)); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.dock-cls { display: flex; gap: 4px; padding: 5px; background: rgba(8, 6, 3, .72); border: 1px solid #5a4628; }
.dock-cls button { all: unset; cursor: pointer; padding: 3px 9px; font-size: 13px; color: #cdbf9f; white-space: nowrap; border: 1px solid transparent; }
.dock-cls button:hover { color: var(--gold2); }
.dock-cls button[aria-pressed=true] { color: #2b1a05; background: linear-gradient(#f0d58f, #b88b3c); border-color: #f7e3a8; }
.dock-cap { font-size: 12px; color: #cdbf9f; text-shadow: 0 1px 2px #000; white-space: nowrap; }
.dock-chat { position: absolute; left: max(16px, calc((100% - 1200px) / 2 + 16px)); bottom: 16px; width: min(420px, calc(100% - 32px)); padding: 8px 12px; background: rgba(0, 0, 0, .55); border: 1px solid rgba(138, 106, 51, .6); font-size: 13px; line-height: 1.65; pointer-events: none; min-height: 116px; }
.dock-chat div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e8e0c8; text-shadow: 0 1px 1px #000; }
.dock-chat b { color: #9fe0a0; font-weight: 500; }
.dock-bar { position: absolute; right: max(16px, calc((100% - 1200px) / 2 + 16px)); bottom: 16px; display: flex; align-items: center; gap: 8px; }
.dock-hp { width: 150px; height: 14px; background: #1a0505; border: 1px solid #6a2a20; position: relative; }
.dock-hp i { position: absolute; inset: 0 auto 0 0; width: 100%; background: linear-gradient(#ff5a4a, #a5150e); transition: width .3s; }
.dock-hp span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 10px/1 Arial, sans-serif; color: #fff; letter-spacing: 0; text-shadow: 0 1px 1px #000; }
.dock-bar button { all: unset; cursor: pointer; padding: 4px 10px; font-size: 12px; color: #cdbf9f; background: rgba(8, 6, 3, .72); border: 1px solid #5a4628; white-space: nowrap; }
.dock-bar button[aria-pressed=true] { color: var(--gold2); border-color: var(--gold3); }

/* ---------- 伺服器資訊條 ---------- */
.hm .strip { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(6, 1fr); padding: 0; background: linear-gradient(#1a150f, #100c08); border: 1px solid #4d3c22; border-top: 0; }
.hm .strip > div { padding: 14px 16px; border-right: 1px solid var(--line); min-width: 0; }
.hm .strip > div:last-child { border: 0; }
.hm .strip small { display: block; font-size: 12px; color: var(--mu); white-space: nowrap; }
.hm .strip b { display: block; font: 900 19px var(--serif); color: var(--gold2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hm .strip .ok b { color: var(--ok); }
.hm .strip .off b { color: var(--red); }
.hm .strip .hot b { color: #ff9b6a; }

/* ---------- 金框 ---------- */
.hm .frame { position: relative; background: linear-gradient(#1a150f, #100c08); border: 1px solid #4d3c22; box-shadow: inset 0 0 0 1px #000, inset 0 0 0 4px #15100a, inset 0 0 0 5px #3a2d19, 0 10px 30px rgba(0, 0, 0, .5); min-width: 0; }
.hm .frame::before, .hm .frame::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--gold); pointer-events: none; z-index: 2; }
.hm .frame::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.hm .frame::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.hm .fh { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 18px 9px; border-bottom: 1px solid var(--line); }
.hm .fh h3 { margin: 0; font-size: 19px; white-space: nowrap; }
.hm .fh a { font-size: 12px; color: var(--mu); white-space: nowrap; }
.hm .fh a:hover { color: var(--gold2); }
.hm .posts { list-style: none; margin: 0; padding: 4px 18px 12px; }
.hm .posts li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #241c12; min-width: 0; }
.hm .posts li:last-child { border-bottom: 0; }
.hm .posts a { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.hm .posts a:hover { color: var(--gold2); }
.hm .posts .pin { color: var(--gold2); font-weight: 700; }
.hm .posts time { flex: none; font-size: 12px; color: var(--mu); font-variant-numeric: tabular-nums; }
.hm .posts .none { color: var(--mu); font-size: 13px; }

/* ---------- 區塊標題 ---------- */
.hm .sec { margin-top: 64px; }
.hm .st { text-align: center; margin-bottom: 26px; }
.hm .st small { display: block; font: 500 12px var(--serif); letter-spacing: .5em; color: var(--gold3); }
.hm .st h2 { display: inline-flex; align-items: center; gap: 18px; margin: 0; font-size: clamp(26px, 4vw, 38px); white-space: nowrap; }
.hm .st h2::before, .hm .st h2::after { content: ""; width: clamp(26px, 8vw, 90px); height: 12px; background: linear-gradient(90deg, transparent, var(--gold3)) center / 100% 1px no-repeat, radial-gradient(circle, var(--gold) 2px, transparent 3px) right center / 12px 12px no-repeat; }
.hm .st h2::after { transform: scaleX(-1); }
.hm .st p { margin: 8px 0 0; color: var(--mu); font-size: 14px; }

.hm .g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hm .dlbox { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.hm .dlbox .btn { height: 42px; font-size: 15px; padding: 0 12px; }
.hm .dlbox small { font-size: 12px; color: var(--mu); }

/* ---------- 金庸特色系統 ---------- */
.hm .feat { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; }
.hm .feat > * { min-width: 0; }
.hm .card { position: relative; overflow: hidden; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; border: 1px solid #4d3c22; background: #120e09 center / cover; }
.hm .card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 6, 3, .96) 10%, rgba(8, 6, 3, .55) 55%, rgba(8, 6, 3, .2)); transition: .3s; }
.hm .card:hover { color: inherit; border-color: var(--gold3); }
.hm .card:hover::before { background: linear-gradient(0deg, rgba(8, 6, 3, .95) 10%, rgba(8, 6, 3, .35) 60%, transparent); }
.hm .card > * { position: relative; }
.hm .card.big { grid-row: span 2; min-height: 436px; }
.hm .card .k { position: absolute; right: 14px; top: 10px; font: 900 68px/1 FZ, var(--serif); color: rgba(216, 180, 106, .16); }
.hm .card h3 { margin: 0; font-size: 25px; white-space: nowrap; }
.hm .card.big h3 { font-size: 34px; }
.hm .card p { margin: 4px 0 0; color: #c9bca2; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 只要能開網頁就能玩 ---------- */
.hm .any { position: relative; margin-top: 64px; padding: 60px 0; background: radial-gradient(ellipse at 50% 0, #2a1f10, transparent 70%), #0d0a07; border-block: 1px solid #4d3c22; overflow: hidden; }
.hm .any h2 { margin: 0; font-size: clamp(30px, 5vw, 54px); text-align: center; white-space: nowrap; line-height: 1.15; }
.hm .any .alead { text-align: center; margin-top: 10px; font: 700 clamp(15px, 2vw, 20px) var(--serif); color: #efe3c6; letter-spacing: .12em; white-space: nowrap; }
.hm .dev { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.hm .dev > div { position: relative; padding: 24px 22px 22px; text-align: center; background: linear-gradient(#1a150f, #0f0b07); border: 1px solid #4d3c22; min-width: 0; }
.hm .dev svg { width: 84px; height: 84px; margin: 0 auto 10px; display: block; }
.hm .dev h3 { margin: 0; font-size: 24px; white-space: nowrap; }
.hm .dev p { font-size: 14px; color: #c9bca2; margin: 6px 0 0; }
.hm .dev .when { display: inline-block; margin-top: 12px; font-size: 13px; color: #2b1a05; background: var(--gold); padding: 1px 12px; white-space: nowrap; }
.hm .feats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 22px; }
.hm .feats div { padding: 14px 12px; border: 1px solid #3a2d19; background: rgba(20, 16, 10, .8); text-align: center; min-width: 0; }
.hm .feats b { display: block; font: 900 17px var(--serif); color: var(--gold2); white-space: nowrap; }
.hm .feats small { display: block; font-size: 12px; color: var(--mu); margin-top: 2px; }
.hm .feats .star { border-color: var(--gold3); background: linear-gradient(#2a2010, #15100a); }
.hm .feats .star b { color: #ffe08a; }

/* ---------- 公平宣言 ---------- */
.hm .oath { position: relative; margin: 64px auto 0; max-width: 980px; padding: 44px 40px 36px; text-align: center; background: linear-gradient(#2a0d0b, #160605); border: 1px solid #7a5a2a; box-shadow: inset 0 0 0 6px #120403, inset 0 0 0 7px #8a6a33, 0 20px 40px rgba(0, 0, 0, .6); }
.hm .oath::before { content: "告示"; position: absolute; left: 50%; top: -18px; transform: translateX(-50%); padding: 4px 26px; font: 900 18px FZ, var(--serif); letter-spacing: .4em; color: #2b1a05; background: linear-gradient(#fbe8ae, #c99a48); border: 1px solid #fff0bf; white-space: nowrap; }
.hm .oath h2 { margin: 0; font-size: clamp(26px, 4.4vw, 44px); white-space: nowrap; line-height: 1.2; }
.hm .oath .rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.hm .oath .rules div { padding: 18px 10px; border: 1px solid rgba(216, 180, 106, .35); background: rgba(0, 0, 0, .25); min-width: 0; }
.hm .oath .rules i { display: block; font: 900 30px/1 FZ, var(--serif); font-style: normal; color: #ff7a5a; }
.hm .oath .rules b { display: block; margin-top: 8px; font: 900 19px var(--serif); color: #f3dfa6; white-space: nowrap; }
.hm .oath .rules small { display: block; font-size: 13px; color: #c9b39a; margin-top: 2px; }
.hm .oath p { margin: 22px 0 0; font: 700 clamp(15px, 2vw, 19px) var(--serif); color: #efe3c6; letter-spacing: .1em; }
.hm .oath p em { font-style: normal; color: #ffe08a; }

/* ---------- 江湖熱榜 ---------- */
.hm .hotg { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.hm .champ { display: flex; align-items: center; gap: 16px; padding: 18px; }
.hm .champ i { flex: none; width: 70px; height: 70px; display: grid; place-items: center; font: 900 34px FZ, var(--serif); font-style: normal; color: #2b1a05; background: radial-gradient(#ffe7a0, #b88b3c); border: 2px solid #fff0bf; box-shadow: 0 0 18px rgba(255, 200, 80, .35); transform: rotate(45deg); margin: 6px; }
.hm .champ i span { transform: rotate(-45deg); }
.hm .champ div { min-width: 0; }
.hm .champ small { display: block; font-size: 12px; color: var(--mu); white-space: nowrap; }
.hm .champ b { display: block; font: 900 30px/1.2 var(--serif); color: #ffd86b; white-space: nowrap; }
.hm .champ em { font-style: normal; font-size: 13px; color: #cdbf9f; white-space: nowrap; }
.hm .duel { display: flex; justify-content: space-between; align-items: center; padding: 0 18px 16px; gap: 10px; }
.hm .duel small { font-size: 12px; color: var(--mu); white-space: nowrap; }
.hm .duel b { font: 900 22px var(--serif); color: #ff9b6a; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hm .hfac { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 16px 16px; text-align: center; }
.hm .hfac > div { min-width: 0; }
.hm .hfac h4 { margin: 0; font: 900 14px var(--serif); padding: 3px 0; white-space: nowrap; }
.hm .hfac .z h4 { background: #1f4a3c; color: #bfe8d4; }
.hm .hfac .m h4 { background: #4a3a14; color: #f0d58f; }
.hm .hfac .x h4 { background: #5a1412; color: #ffb3a0; }
.hm .hfac ol { list-style: none; margin: 0; font-size: 13px; padding: 6px 0 0; }
.hm .hfac li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.9; }
.hm .hrank { list-style: none; margin: 0; padding: 6px 18px 12px; counter-reset: r; }
.hm .hrank li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #241c12; font-size: 14px; white-space: nowrap; }
.hm .hrank li:last-child { border: 0; }
.hm .hrank li::before { counter-increment: r; content: counter(r); flex: none; width: 22px; height: 22px; display: grid; place-items: center; font: 900 12px sans-serif; background: #2a1f12; color: var(--mu); }
.hm .hrank li:first-child::before { background: #b3282d; color: #fff; }
.hm .hrank span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hm .hrank small { color: #ff8a6a; font-weight: 700; }
.hm .hrank .none::before { display: none; }
.hm .harena { margin: 0; padding: 6px 18px 14px; font-size: 14px; }
.hm .harena div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #2e2416; white-space: nowrap; }
.hm .harena div:last-child { border: 0; }
.hm .harena dt { color: var(--mu); }
.hm .harena dd { margin: 0; color: var(--gold2); font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.hm .pad { padding: 14px 18px; }

/* ---------- 交易所 ---------- */
.hm .mkt { position: relative; margin-top: 16px; border: 1px solid #4d3c22; overflow: hidden; }
.hm .mkt .bgm { position: absolute; inset: 0; background: center 40% / cover; filter: saturate(.9); }
.hm .mkt .bgm::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 6, 3, .96) 0%, rgba(8, 6, 3, .86) 52%, rgba(8, 6, 3, .55) 100%); }
.hm .mkt .in { position: relative; display: grid; grid-template-columns: 1fr 320px; gap: 28px; padding: 26px 26px 22px; }
.hm .mkt .in > * { min-width: 0; }
.hm .mkt h3 { margin: 0; font-size: 28px; white-space: nowrap; }
.hm .mkt .note { font-size: 13px; color: #cdbf9f; margin: 4px 0 14px; }
.hm .mkt .note b { color: #ffe08a; }
.hm .mtab { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.hm .mtab th { font-weight: 500; font-size: 12px; color: var(--mu); text-align: left; padding: 6px 8px; border-bottom: 1px solid #4d3c22; white-space: nowrap; }
.hm .mtab td { padding: 8px; border-bottom: 1px solid #241c12; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm .mtab .n { display: flex; align-items: center; gap: 8px; }
.hm .mtab .n img, .hm .mtab .n i { flex: none; width: 28px; height: 28px; image-rendering: pixelated; background: #000; border: 1px solid #3a2d19; }
.hm .mtab .n span { overflow: hidden; text-overflow: ellipsis; }
.hm .mtab .p { text-align: right; color: var(--gold2); font-weight: 700; font-variant-numeric: tabular-nums; }
.hm .mtab .cur { font-size: 12px; padding: 0 6px; border: 1px solid; white-space: nowrap; }
.hm .mtab .cur.g { color: #f0d58f; border-color: #6d5427; }
.hm .mtab .cur.y { color: #ffb3a0; border-color: #7a2a24; }
.hm .mside { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 18px; background: rgba(0, 0, 0, .45); border: 1px solid #4d3c22; }
.hm .mside b { font: 900 20px var(--serif); color: var(--gold2); white-space: nowrap; }
.hm .mside p { margin: 0; font-size: 13px; color: #cdbf9f; }
.hm .mside ul { list-style: none; margin: 0; padding: 0; font-size: 13px; color: #e8dcc0; }
.hm .mside li { padding: 3px 0; }
.hm .mside li::before { content: "◆"; color: var(--gold3); margin-right: 6px; font-size: 9px; vertical-align: 2px; }
.hm .mside .btn { height: 46px; }

/* ---------- 遊戲資料介紹 ---------- */
.hm .g7 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hm .dc .ban { position: relative; display: block; height: 112px; background: #120e09 center / cover; border-bottom: 1px solid #4d3c22; overflow: hidden; }
.hm .dc .ban::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 6, 3, .92) 0%, rgba(8, 6, 3, .35) 60%, rgba(8, 6, 3, .15)); transition: .3s; }
.hm .dc .ban:hover::before { background: linear-gradient(0deg, rgba(8, 6, 3, .85) 0%, rgba(8, 6, 3, .15) 60%, transparent); }
.hm .dc .ban h3 { position: absolute; left: 16px; bottom: 10px; margin: 0; font-size: 21px; white-space: nowrap; filter: drop-shadow(0 2px 2px #000); }
.hm .dc .mo { position: absolute; right: 10px; top: 8px; font-size: 12px; color: #e8dcc0; background: rgba(0, 0, 0, .55); padding: 0 8px; line-height: 20px; white-space: nowrap; }
.hm .dc .slots { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 4px; }
.hm .dc .slots i { width: 40px; height: 40px; background: #0b0907 center / 32px no-repeat; image-rendering: pixelated; border: 1px solid #6d5427; box-shadow: inset 0 0 0 1px #000, inset 0 0 10px rgba(0, 0, 0, .8); }
.hm .dc .ban:hover .slots i { border-color: var(--gold); }

@media (max-width: 1080px) {
  .hm .strip { grid-template-columns: repeat(3, 1fr); }
  .hm .strip > div:nth-child(3) { border-right: 0; }
  .hm .strip > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .hm .g4, .hm .g7 { grid-template-columns: 1fr 1fr; }
  .hm .hotg { grid-template-columns: 1fr 1fr; }
  .hm .hotg .c1 { grid-column: 1 / -1; }
  .hm .feats { grid-template-columns: repeat(3, 1fr); }
  .hm .mkt .in { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hm .feat { grid-template-columns: 1fr 1fr; }
  .hm .card.big { grid-column: 1 / -1; grid-row: auto; min-height: 280px; }
  .hm .dev { grid-template-columns: 1fr; }
  .hm .dev > div { display: grid; grid-template-columns: 72px 1fr; text-align: left; gap: 0 16px; align-items: center; padding: 18px; }
  .hm .dev svg { width: 64px; height: 64px; margin: 0; grid-row: span 3; }
  .hm .dev .when { justify-self: start; margin-top: 8px; }
  .hm .oath .rules { grid-template-columns: 1fr; }
  .hm .oath { padding: 40px 18px 28px; margin-inline: 16px; }
}
@media (max-width: 620px) {
  .dock-hero { height: 660px; }
  .dock-hero .shade { background: linear-gradient(180deg, rgba(6, 4, 2, .88) 0%, rgba(6, 4, 2, .55) 30%, transparent 48%), linear-gradient(0deg, rgba(6, 4, 2, .8) 0%, transparent 26%); }
  .dock-hero .copy { top: 14px; transform: none; }
  .dock-hero .ver { font-size: 11px; }
  .dock-hero h1 { font-size: 44px; margin: 6px 0 2px; }
  .dock-hero .sub { font-size: 14px; }
  .dock-hero .cta { margin-top: 14px; }
  .dock-hero .cta .btn { flex: 1; height: 44px; padding: 0 10px; font-size: 15px; letter-spacing: .08em; }
  .dock-hero .tip { display: none; }
  .dock-ui { top: auto; bottom: 100px; right: 0; left: 0; align-items: stretch; }
  .dock-cls { overflow-x: auto; scrollbar-width: none; border-inline: 0; }
  .dock-cls::-webkit-scrollbar { display: none; }
  .dock-cap { display: none; }
  .dock-chat { bottom: 42px; min-height: 0; font-size: 12px; padding: 4px 10px; line-height: 1.6; }
  .dock-chat div:nth-last-child(n+3) { display: none; }
  .dock-bar { left: 16px; right: 16px; bottom: 12px; justify-content: space-between; }
  .dock-hp { flex: 1; width: auto; }
  .hm .strip { grid-template-columns: 1fr 1fr; }
  .hm .strip > div { border-right: 1px solid var(--line) !important; border-top: 1px solid var(--line); padding: 12px; }
  .hm .strip > div:nth-child(-n+2) { border-top: 0; }
  .hm .strip > div:nth-child(2n) { border-right: 0 !important; }
  .hm .strip b { font-size: 16px; }
  .hm .g4, .hm .g7, .hm .hotg, .hm .feat { grid-template-columns: 1fr; }
  .hm .hotg .c1 { grid-column: auto; }
  .hm .feats { grid-template-columns: 1fr 1fr; }
  .hm .feats .star { grid-column: 1 / -1; }
  .hm .posts time { display: none; }
  .hm .mkt .in { padding: 20px 14px; }
  .hm .mtab .hide { display: none; }
  .hm .sec { margin-top: 50px; }
  .home .cs-float { display: none; } /* 手機首頁：右下角客服鈕會蓋到主視覺的音樂鈕，選單裡就有客服 */
}

/* ===== 手機版主視覺（2026-11-07 使用者選乙）：點遊戲畫面標題就收起，▼顯示介紹 叫回來；下方職業／對話欄／血條照原本（對話欄 3 行） ===== */
.dock-intro { display: none; }
@media (max-width: 620px) {
  .dock-hero .dock-chat div:nth-last-child(n+3) { display: block; }
  .dock-hero .dock-chat div:nth-last-child(n+4) { display: none; } /* 對話欄留 3 行 */
  .dock-hero .dock-ui { bottom: 118px; }
  .dock-hero .shade { background: linear-gradient(180deg, rgba(6, 4, 2, .85) 0%, rgba(6, 4, 2, .5) 30%, transparent 45%), linear-gradient(0deg, rgba(6, 4, 2, .8) 0%, transparent 26%); transition: opacity .4s; }
  .dock-hero .copy { transition: opacity .4s, transform .4s; }
  .dock-hero.playing .copy { opacity: 0; transform: translateY(-30px); visibility: hidden; transition: opacity .4s, transform .4s, visibility 0s .4s; }
  .dock-hero.playing .shade { background: linear-gradient(0deg, rgba(6, 4, 2, .8) 0%, transparent 26%); }
  .dock-hero.playing .dock-intro { all: unset; display: block; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); padding: 4px 12px; font-size: 12px; color: var(--gold2); background: rgba(8, 6, 3, .7); border: 1px solid var(--gold3); border-radius: 12px; cursor: pointer; white-space: nowrap; }
  /* 2026-11-07 使用者：手機一進來遊戲滿版，往下捲才滑出選單列（body.top-on 由 dock.js 依捲動切換） */
  body.home .util { display: none; }
  body.home .top { position: fixed; left: 0; right: 0; top: 0; transform: translateY(-110%); transition: transform .25s; }
  body.home.top-on .top { transform: none; }
  .dock-hero { height: 100vh; height: 100svh; }
  .dock-hero .copy { top: calc(env(safe-area-inset-top, 0px) + 18px); }
  .dock-hero.playing .dock-intro { top: calc(env(safe-area-inset-top, 0px) + 10px); }
}

/* ===== 左邊角色卡（2026-11-09 使用者選戊款）：電腦 1100 以上固定在左邊；手機改底部快捷列 ===== */
.hs, .hs-bar { display: none; }
.hs a { color: inherit; text-decoration: none; }
@media (min-width: 1100px) {
  body.has-hs { padding-left: 290px; }
  body.has-hs .top .logo { display: none; } /* LOGO 搬到左欄，上面不重複 */
  .hs { display: block; position: fixed; z-index: 60; left: 0; top: 0; bottom: 0; width: 290px; overflow-y: auto; scrollbar-width: none;
    background: linear-gradient(180deg, #17120c, #0b0907 60%); border-right: 1px solid #5a4626; box-shadow: 6px 0 24px rgba(0, 0, 0, .6); color: #e8dcc0; }
  .hs::-webkit-scrollbar { display: none; }
  .hs-logo { display: block; padding: 16px 16px 6px; }
  .hs-logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 2px 6px #000); }
  .hs-card { position: relative; height: 230px; margin: 10px 14px 0; border: 2px solid #8a6a32; background: #0b0907 center / cover no-repeat; box-shadow: inset 0 0 0 1px #000, 0 4px 14px rgba(0, 0, 0, .6); overflow: hidden; }
  .hs-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .92)); pointer-events: none; }
  .hs-cv { position: absolute; z-index: 1; left: 50%; bottom: 58px; width: 132px; height: 150px; transform: translateX(-50%); image-rendering: auto; }
  .hs-who { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 10px; }
  .hs-who b { display: block; font: 900 20px/1.25 var(--f-display, "Noto Serif TC", serif); color: #fff3cf; text-shadow: 0 2px 4px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hs-who small { display: block; margin-top: 2px; color: #c9bb98; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hs-pill { position: absolute; right: 0; top: -2px; padding: 1px 8px; border-radius: 10px; font: 700 11.5px/1.6 sans-serif; font-style: normal; color: #0d1a0f; background: #7ddc8a; }
  .hs-pill.game { background: #ffb36b; } .hs-pill.rest { background: #6e6352; color: #f0e6cc; }
  .hs-nav { position: absolute; z-index: 3; top: 78px; width: 26px; height: 44px; border: 0; background: rgba(0, 0, 0, .5); color: #f0d48a; font-size: 22px; line-height: 1; cursor: pointer; }
  .hs-nav.prev { left: 0; } .hs-nav.next { right: 0; }
  .hs-nav:hover { background: rgba(110, 90, 52, .6); }
  .hs-acts { margin: 10px 14px 0; }
  .hs-btn { display: block; margin: 8px 0 0; padding: 11px; text-align: center; font: 900 17px/1.2 var(--f-display, "Noto Serif TC", serif); letter-spacing: .15em; border: 1px solid #8a6a32; }
  .hs-btn.gold { margin: 14px 14px 18px; background: linear-gradient(#f3dd9c, #c49a4c 55%, #9c7430); color: #2a1a06 !important; border-color: #ffe9b0; box-shadow: inset 0 1px 0 #fff6d6, 0 4px 14px rgba(0, 0, 0, .5); }
  .hs-btn.dark { background: #120e09; color: #f0d48a !important; }
  .hs-btn.line { background: #06c755; color: #fff !important; border-color: #29e07a; }
  .hs-btn:hover { filter: brightness(1.08); }
  .hs-sub { display: block; margin-top: 7px; text-align: center; font-size: 13px; color: #b9ab8c !important; text-decoration: underline !important; }
  .hs-acc { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: #9c8455; }
  .hs-acc b { color: #f0d48a; font-size: 14px; }
  .hs-swbtn { border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px; padding: 0; }
  .hs-sw { margin-top: 6px; display: grid; gap: 4px; }
  .hs-sw[hidden] { display: none; } /* 先縮起來，按「切換帳號」才展開（2026-11-09 使用者） */
  .hs-sw button { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border: 1px solid #4a3c24; background: #120e09; color: #f0d48a; font: 700 14px/1.2 sans-serif; cursor: pointer; }
  .hs-sw button:hover:not(:disabled) { border-color: #c9a24d; }
  .hs-sw button.on { opacity: .7; cursor: default; }
  .hs-sw i { font-style: normal; font-size: 11px; color: #1a1408; background: #e6c47c; border-radius: 8px; padding: 0 6px; }
  .hs-h { margin: 18px 18px 8px; font: 700 12px/1 sans-serif; letter-spacing: .3em; color: #9c8455; }
  .hs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 14px; }
  .hs-grid a { padding: 10px 6px; text-align: center; border: 1px solid #4a3c24; background: #120e09; font-size: 13px; color: #d8cba8; }
  .hs-grid a:hover { border-color: #8a6a32; color: #fff3cf; }
  .hs-grid img { display: block; width: 30px; height: 30px; margin: 0 auto 4px; object-fit: contain; }
  .hs-st { margin: 0 14px; border: 1px solid #4a3c24; background: rgba(0, 0, 0, .35); }
  .hs-st div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 12px; border-top: 1px solid rgba(201, 162, 77, .15); font-size: 13px; color: #b9ab8c; white-space: nowrap; }
  .hs-st div:first-child { border-top: 0; }
  .hs-st b { color: #f0d48a; font-size: 14.5px; } .hs-st .on { color: #7ddc8a; } .hs-st .off { color: #ff8a76; }
  .hs-st .cd b { color: #ff9a76; }
}
/* 手機、平板：底部快捷列（左欄藏起來；右下客服鈕收進快捷列） */
@media (max-width: 1099px) {
  .hs-bar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(#1a140d, #0b0907); border-top: 1px solid #8a6a32; box-shadow: 0 -4px 14px rgba(0, 0, 0, .6); }
  .hs-bar a { display: grid; justify-items: center; gap: 2px; font: 700 11px/1.3 sans-serif; color: #d8cba8; text-decoration: none; }
  .hs-bar img { width: 26px; height: 26px; object-fit: contain; }
  .hs-bar a.hs-go { margin: -14px 4px 0; padding-top: 6px; border-radius: 8px; color: #1a1208; background: linear-gradient(#f3dd9c, #c49a4c); box-shadow: 0 0 0 2px #ffe9b0; }
  body.has-hs { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  body.has-hs .cs-float { display: none; }
}
@media (max-width: 620px) {
  body.has-hs .dock-hero { height: calc(100svh - 62px - env(safe-area-inset-bottom, 0px)); } /* 遊戲畫面讓出快捷列的高度，血條、音樂鈕不被蓋住 */
}
