/* 官方網站（v1.44）：2006 年代網頁遊戲官網風格——遊戲地圖背景的標頭、木紋選單、光澤按鈕、橘色標題框、跑馬燈
   v1.47：使用遊戲素材——頁面背景（登入場景）、各頁標頭（地圖背景圖）、飄落的楓葉、走動 / 站著的怪物、選單與標題的道具圖示、冒險地圖 */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: #4a2f12; font: 13px/1.75 "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", "Heiti TC", sans-serif;
  background: #6fae4a;
}
/* 頁面背景：遊戲登入場景（森林）固定在後方，再蓋一層暖色讓兩側不搶眼（手機也有效，不用 background-attachment: fixed） */
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before { background: #6fae4a url(/assets/uiw/scene_title.jpg) 50% 35% / cover no-repeat; }
body::after { background: linear-gradient(rgba(255, 246, 225, .28), rgba(255, 236, 200, .5)); }
a { color: #c2410c; text-decoration: none; }
a:hover { color: #ea580c; text-decoration: underline; }
img { max-width: 100%; }
b { color: #7a3b07; }
.dim { color: #9a7a55; }
[hidden] { display: none !important; }

/* ── 頂部細條 ── */
#topbar { background: #5b3412; color: #f8e6c2; font-size: 12px; border-bottom: 2px solid #3d2108; }
#topbar .in { max-width: 980px; margin: 0 auto; padding: 4px 12px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
#topbar b { color: #ffd36b; }
#topbar a { color: #f8e6c2; }
#topbar a.hot { color: #ffd36b; font-weight: bold; }

#wrap { max-width: 980px; margin: 0 auto 24px; background: #fffaf0; border: 3px solid #c47f33; border-top: 0; box-shadow: 0 0 0 1px #f3d6a5, 0 6px 22px rgba(90, 50, 10, .25); }

/* ── 標頭：遊戲地圖背景圖（每頁不同）、標誌、飄落的楓葉、地面上走動的怪物 ── */
#header { position: relative; height: 240px; overflow: hidden; background: #6fc0f0 url(/assets/mapbg/104000200.jpg) 50% 100% / cover no-repeat; }
body[data-page="guide"] #header { background-image: url(/assets/mapbg/1010004.jpg); }
body[data-page="potion"] #header { background-image: url(/assets/mapbg/100040000.jpg); }
body[data-page="skill"] #header { background-image: url(/assets/mapbg/101030000.jpg); }
body[data-page="skills"] #header { background-image: url(/assets/mapbg/200010200.jpg); }
body[data-page="drops"] #header { background-image: url(/assets/mapbg/220010600.jpg); }
/* 標誌底下的淡陰影（背景圖較花時文字仍清楚） */
#header::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 480px 170px at 230px 95px, rgba(30, 20, 5, .38), transparent 70%); }
.logo, .art { z-index: 2; }
.slogan { z-index: 4; }
.leaves { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.leaf { position: absolute; top: -30px; animation: leafFall 10s linear infinite; }
.leaf img { display: block; animation: leafSway 2s ease-in-out infinite alternate; }
@keyframes leafFall { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(var(--dx, -40px), 290px) rotate(var(--rot, 360deg)); } }
@keyframes leafSway { from { transform: translateX(-10px); } to { transform: translateX(10px); } }
.walkers { position: absolute; left: 0; right: 0; bottom: 6px; height: 0; z-index: 3; pointer-events: none; }
/* 怪物動畫（site.js）：.spr 的位置 = 腳底，內層依每一格的原點對齊；往右走時左右翻轉 */
.spr { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.spr i { position: absolute; background-repeat: no-repeat; image-rendering: pixelated; }
.mob-perch { position: absolute; width: 0; height: 0; z-index: 2; pointer-events: none; }
.logo { position: absolute; left: 28px; top: 42px; max-width: 600px; text-decoration: none !important; display: block; }
.logo-main {
  display: block; font: 900 54px/1.1 "Arial Rounded MT Bold", "Microsoft JhengHei", "PingFang TC", sans-serif; letter-spacing: 3px; word-break: break-all;
  background: linear-gradient(#fffbd0 8%, #ffd93b 48%, #ff9a1a 92%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #ffcf33;
  -webkit-text-stroke: 2px #7a3b07; filter: drop-shadow(0 3px 0 #7a3b07) drop-shadow(0 6px 5px rgba(0, 0, 0, .3));
}
.logo-sub { display: inline-block; margin-top: 6px; padding: 1px 10px; font: bold 11px/1.6 Verdana, Arial, sans-serif; letter-spacing: 3px; color: #fff; background: #e8862a; border: 2px solid #fff; border-radius: 10px; box-shadow: 0 2px 0 #9a4f0f; }
.slogan { position: absolute; left: 32px; bottom: 26px; margin: 0; font-weight: bold; font-size: 15px; color: #fff; text-shadow: 0 2px 0 #2f6b12, 0 0 6px #2f6b12; }
.slogan::before { content: "★ "; color: #ffe066; }
.art { position: absolute; right: 26px; top: 16px; width: 210px; height: 196px; padding: 6px; background: #fff; border: 2px solid #e2a65b; border-radius: 12px; transform: rotate(3deg); box-shadow: 0 6px 12px rgba(60, 40, 10, .3); }
.art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; border-radius: 8px; display: block; }

/* ── 選單（木紋） ── */
#nav { background: linear-gradient(#c07f3a, #8d5220 60%, #74400f); border-top: 2px solid #e0a866; border-bottom: 3px solid #4f2a07; padding: 6px 10px; text-align: center; }
#nav a {
  display: inline-block; margin: 3px 2px; padding: 6px 16px; border-radius: 16px; font-weight: bold; font-size: 14px; color: #6a3a0c; text-decoration: none;
  background: linear-gradient(#fffcec, #ffe1a0 55%, #ffd27a); border: 1px solid #a8691f; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #4f2a07; text-shadow: 0 1px 0 #fff;
}
#nav a:hover { background: linear-gradient(#fff, #fff0c4 55%, #ffe29e); }
#nav a.on { color: #fff; background: linear-gradient(#ffc46b, #f08a1c 55%, #e06f0c); border-color: #9a4a06; text-shadow: 0 1px 0 #9a4a06; }
#nav a.play { color: #fff; background: linear-gradient(#a6ec6c, #52b72a 55%, #3c9a1a); border-color: #2c6b10; text-shadow: 0 1px 0 #2c6b10; }
#nav a img { width: 22px; height: 22px; margin: -4px 4px -6px -4px; vertical-align: baseline; image-rendering: pixelated; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .6)); }

/* ── 跑馬燈 ── */
#ticker { display: flex; align-items: center; gap: 8px; padding: 4px 10px; background: #fff3d1; border-bottom: 1px dashed #e0b56e; font-size: 13px; overflow: hidden; }
#ticker b { flex: none; padding: 0 8px; color: #fff; background: #e23d28; border-radius: 3px; font: bold 11px/18px Verdana, Arial, sans-serif; }
#ticker .track { flex: 1; overflow: hidden; white-space: nowrap; }
#ticker .track span { display: inline-block; padding-left: 100%; animation: ticker 22s linear infinite; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ── 三區版面 ── */
#cols { display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "start main" "side main"; grid-template-rows: auto 1fr; gap: 12px; padding: 12px; align-items: start; }
#gstart { grid-area: start; text-align: center; }
#side { grid-area: side; }
#main { grid-area: main; min-width: 0; }
.btn-start {
  position: relative; display: block; margin-top: 52px; padding: 14px 6px 12px; border-radius: 16px; text-decoration: none !important;
  background: linear-gradient(#ff9a55, #f2581f 55%, #d33b12); border: 3px solid #fff; box-shadow: 0 0 0 2px #a9300f, 0 5px 0 #7b230a, 0 8px 12px rgba(0, 0, 0, .3);
}
.btn-start::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 48%; background: linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .08)); border-radius: 13px 13px 40% 40%; }
.btn-start b { position: relative; display: block; font: 900 24px/1.1 "Arial Black", Arial, sans-serif; letter-spacing: 1px; color: #fff; text-shadow: 0 2px 0 #8a2508, 0 0 4px #8a2508; }
.btn-start span { position: relative; display: block; margin-top: 4px; font-size: 15px; font-weight: bold; color: #fff6c9; text-shadow: 0 1px 0 #8a2508; }
.btn-start:hover { filter: brightness(1.08); transform: translateY(-1px); }
/* 站在按鈕上的怪物 */
.btn-start .mob-perch { right: 30px; top: -3px; }
.btn-start:active { transform: translateY(2px); box-shadow: 0 0 0 2px #a9300f, 0 2px 0 #7b230a; }
.start-note { margin: 8px 0 0; font-size: 12px; color: #8a6a44; }

/* ── 側欄框 ── */
.box { position: relative; margin-bottom: 12px; background: #fff; border: 2px solid #e0a14f; border-radius: 9px; box-shadow: 0 2px 0 #f1d3a2; }
/* 留空間給站在框上的怪物（最高約 50px） */
#side { padding-top: 40px; }
.box + .box { margin-top: 50px; }
.box h3 { position: relative; margin: 0; padding: 5px 10px; font-size: 13px; color: #fff; background: linear-gradient(#ffd27a, #f2992d 60%, #e5851a); text-shadow: 0 1px 0 #a5560e; border-bottom: 1px solid #c4701a; border-radius: 7px 7px 0 0; }
.box h3::before { content: "◆ "; color: #fff6c9; font-size: 11px; }
.box h3:has(.hi)::before { content: none; }
.box h3 .hi { width: 22px; height: 22px; margin: -4px 5px -6px -2px; image-rendering: pixelated; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .25)); }
.box h3 .mob-perch { right: 48px; top: -2px; }
.box .bd { padding: 8px 10px; }
.rates { width: 100%; border-collapse: collapse; }
.rates th { text-align: left; font-weight: normal; color: #8a6a44; padding: 2px 0; }
.rates td { text-align: right; font-weight: bold; color: #c2410c; }
.quick { margin: 0; padding: 0; list-style: none; }
.quick li { padding: 3px 0 3px 14px; border-bottom: 1px dotted #ead2a4; position: relative; }
.quick li::before { content: "▶"; position: absolute; left: 0; top: 5px; font-size: 9px; color: #f08a1c; }
.world { display: flex; align-items: center; gap: 6px; padding: 3px 0; border-bottom: 1px dotted #ead2a4; }
.world:last-child { border-bottom: 0; }
.world .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2); }
.world .dot.on { background: #4cc22a; } .world .dot.mt { background: #f2b51d; } .world .dot.off { background: #b9a68c; }
.world .nm { flex: 1; font-weight: bold; }
.world .st { font-size: 12px; color: #8a6a44; }
.sns { display: block; margin: 4px 0; padding: 6px 10px; border-radius: 6px; color: #fff !important; font-weight: bold; text-align: center; text-decoration: none !important; box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.sns.discord { background: linear-gradient(#7d8cf6, #5865f2); } .sns.line { background: linear-gradient(#3fd46b, #06c755); }

/* ── 內容框 ── */
.panel { margin-bottom: 14px; background: #fff; border: 2px solid #8fc4ea; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 0 #cfe5f6; }
.panel > h2 { margin: 0; padding: 7px 12px; font-size: 16px; color: #fff; background: linear-gradient(#8fd2ff, #3f97d6 60%, #2f86c8); text-shadow: 0 1px 0 #1d5e8f; border-bottom: 2px solid #2a74ad; }
.panel > h2::before { content: "★ "; color: #ffe066; }
.panel > h2:has(.hi)::before { content: none; }
.panel > h2 .hi { width: 28px; height: 28px; margin: -6px 6px -8px -2px; image-rendering: pixelated; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.panel > .bd { padding: 12px 14px; }
.panel h3 { margin: 0 0 4px; font-size: 15px; color: #c2410c; }
.lead { margin: 0 0 8px; font-size: 14px; }
.more { margin: 8px 0 0; text-align: right; font-weight: bold; }
.btn { display: inline-block; padding: 5px 14px; border-radius: 14px; font-weight: bold; color: #6a3a0c !important; text-decoration: none !important; cursor: pointer; font: inherit; font-weight: bold;
  background: linear-gradient(#fffcec, #ffe1a0 55%, #ffd27a); border: 1px solid #a8691f; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #8d5220; }
.btn:hover { filter: brightness(1.05); }
.btn.big { padding: 8px 22px; font-size: 15px; color: #fff !important; background: linear-gradient(#ff9a55, #f2581f 55%, #d33b12); border-color: #a9300f; box-shadow: inset 0 1px 0 #ffc29a, 0 3px 0 #7b230a; text-shadow: 0 1px 0 #8a2508; }

/* 首頁 */
.hero-bd { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: center; }
.feat { margin: 6px 0 10px; padding: 0; list-style: none; }
.feat li { padding: 3px 0 3px 22px; position: relative; }
.feat li::before { content: "✿"; position: absolute; left: 2px; color: #f08a1c; }
.hero-shot { display: block; position: relative; border: 4px solid #fff; outline: 2px solid #e0a14f; border-radius: 6px; box-shadow: 0 4px 10px rgba(60, 40, 10, .25); }
.hero-shot img { display: block; width: 100%; border-radius: 3px; }
.hero-shot span { position: absolute; right: 6px; bottom: 6px; padding: 0 8px; font-size: 12px; color: #fff; background: rgba(60, 30, 5, .7); border-radius: 8px; }
.news { margin: 0; padding: 0; list-style: none; }
.news li { display: flex; gap: 10px; padding: 6px 2px; border-bottom: 1px dotted #ead2a4; }
.news li:last-child { border-bottom: 0; }
.news .dt { flex: none; width: 82px; color: #8a6a44; font-family: Verdana, Arial, sans-serif; font-size: 12px; padding-top: 1px; }
.news .tx { flex: 1; white-space: pre-wrap; word-break: break-word; }
.tag-new { display: inline-block; margin-right: 4px; padding: 0 5px; font: bold 10px/16px Verdana, Arial, sans-serif; color: #fff; background: #e23d28; border-radius: 3px; animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { display: block; padding: 6px; border: 1px solid #ead2a4; border-radius: 8px; background: #fffaf0; color: #4a2f12 !important; text-decoration: none !important; }
.card:hover { border-color: #f08a1c; box-shadow: 0 0 0 2px #ffe1a0; }
.card img { display: block; width: 100%; height: 130px; object-fit: cover; object-position: 50% 0; border-radius: 5px; margin-bottom: 4px; }
.card b { display: block; font-size: 14px; color: #c2410c; }
.card span { display: block; font-size: 12px; color: #7a5a35; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.steps li { counter-increment: st; position: relative; padding: 34px 8px 8px; text-align: center; background: #fff6df; border: 1px solid #f0cf94; border-radius: 8px; }
.steps li::before { content: counter(st); position: absolute; left: 50%; top: 6px; margin-left: -12px; width: 24px; height: 24px; border-radius: 50%; color: #fff; background: #f08a1c; font: bold 13px/24px Verdana, Arial, sans-serif; box-shadow: 0 2px 0 #9a4f0f; }
.steps b { display: block; } .steps span { display: block; font-size: 12px; color: #7a5a35; }
.banners { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.banner { display: block; padding: 12px 8px; border-radius: 8px; text-align: center; color: #fff !important; text-decoration: none !important; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15), 0 3px 0 rgba(0, 0, 0, .2); }
.banner b { display: block; font-size: 16px; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.banner span { display: block; font-size: 12px; opacity: .95; }
.banner:hover { filter: brightness(1.08); }
.banner.b1 { background: linear-gradient(#ff8a8a, #e2453c); } .banner.b2 { background: linear-gradient(#8fd2ff, #2f86c8); }
.banner.b3 { background: linear-gradient(#c49bff, #7d4fd6); } .banner.b4 { background: linear-gradient(#a6ec6c, #3c9a1a); }

/* 教學頁 */
.toc { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.toc li::before { content: "▶ "; font-size: 9px; color: #f08a1c; }
.step-row { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px dashed #ead2a4; align-items: start; }
.step-row:last-child { border-bottom: 0; }
.step-row p { margin: 0 0 6px; }
.shot { margin: 0; }
.shot img, .callout-img img { display: block; width: 100%; border: 3px solid #fff; outline: 1px solid #c9a46a; border-radius: 4px; box-shadow: 0 3px 8px rgba(60, 40, 10, .22); cursor: zoom-in; }
.shot figcaption { margin-top: 5px; text-align: center; font-size: 12px; color: #7a5a35; }
.callout-img { position: relative; margin-bottom: 10px; }
.callout-img.narrow { max-width: 320px; }
.pin { position: absolute; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; color: #fff; background: #e8402a; border: 2px solid #fff; font: bold 12px/20px Verdana, Arial, sans-serif; font-style: normal; text-align: center; box-shadow: 0 2px 4px rgba(0, 0, 0, .4); pointer-events: none; }
.dots { margin: 0; padding: 0 0 0 4px; list-style: none; }
.dots li { padding: 3px 0 3px 16px; position: relative; }
.dots li::before { content: "●"; position: absolute; left: 0; top: 4px; font-size: 9px; color: #f08a1c; }
.tbl { width: 100%; border-collapse: collapse; margin: 4px 0 8px; background: #fff; }
.tbl th, .tbl td { padding: 5px 8px; border: 1px solid #ead2a4; vertical-align: top; }
.tbl thead th { background: linear-gradient(#fff6df, #ffe8b8); color: #7a3b07; white-space: nowrap; }
.tbl tbody tr:nth-child(even) td { background: #fffaf0; }
.tbl.legend th { width: 30px; text-align: center; }
.tbl.legend th { color: #fff; background: #e8402a; font-family: Verdana, Arial, sans-serif; }
.tbl td.num { text-align: right; font-family: Verdana, Arial, sans-serif; }
.tbl td.ic { width: 40px; text-align: center; }
.tbl td.ic img { width: 28px; height: 28px; image-rendering: pixelated; vertical-align: middle; }
.kind { display: inline-block; padding: 0 7px; border-radius: 9px; font-size: 12px; font-weight: bold; color: #fff; white-space: nowrap; }
.kind.A { background: #e2453c; } .kind.B { background: #2f86c8; } .kind.P { background: #3c9a1a; } .kind.H { background: #d14f9a; }

/* 技能介紹 */
.tabs { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.tabs button { cursor: pointer; padding: 5px 14px; border-radius: 14px; font: inherit; font-weight: bold; color: #6a3a0c; background: linear-gradient(#fffcec, #ffe1a0 55%, #ffd27a); border: 1px solid #a8691f; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #8d5220; }
.tabs button.on { color: #fff; background: linear-gradient(#ffc46b, #f08a1c 55%, #e06f0c); border-color: #9a4a06; text-shadow: 0 1px 0 #9a4a06; }
.tabs.sub button { font-size: 12px; padding: 3px 11px; background: linear-gradient(#f3fbff, #d4ecfb); border-color: #6aa6d4; color: #1d5e8f; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #3f7fb0; }
.tabs.sub button.on { color: #fff; background: linear-gradient(#8fd2ff, #2f86c8); border-color: #1d5e8f; text-shadow: 0 1px 0 #1d5e8f; }
.tabs.sub button small { font-weight: normal; opacity: .85; }
.jobhead { margin: 10px 0 6px; padding: 6px 10px; background: #fff6df; border-left: 5px solid #f08a1c; border-radius: 4px; }
.sk { margin: 0 0 10px; padding: 8px 10px; border: 1px solid #ead2a4; border-radius: 8px; background: #fffdf7; }
.sk-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sk-hd img { width: 32px; height: 32px; image-rendering: pixelated; background: #fff; border: 1px solid #ead2a4; border-radius: 4px; }
.sk-hd .nm { font-size: 15px; font-weight: bold; color: #7a3b07; }
.sk-hd .mx { font-size: 12px; color: #8a6a44; }
.sk-desc { margin: 4px 0; white-space: pre-wrap; }
.sk-req { font-size: 12px; color: #8a6a44; }
.sk .tbl { font-size: 12px; }
.sk .tbl td, .sk .tbl th { padding: 3px 6px; text-align: center; }
.sk .tbl td.hx { text-align: left; }
.sk .lvmore { margin-top: 2px; font-size: 12px; cursor: pointer; color: #c2410c; background: none; border: 0; padding: 0; font-weight: bold; }
.sk .scroll { overflow-x: auto; }

/* 掉落查詢 */
.filter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.filter input, .filter select { font: inherit; padding: 4px 8px; border: 1px solid #c9a46a; border-radius: 6px; background: #fff; color: #4a2f12; }
.filter input[type=search] { flex: 1; min-width: 180px; }
.filter .lv input { width: 92px; }
.mob { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 10px 4px; border-bottom: 1px dashed #ead2a4; }
.mob:last-child { border-bottom: 0; }
.mobimg { width: 88px; height: 88px; display: flex; align-items: center; justify-content: center; background: linear-gradient(#e9f6ff, #fff); border: 1px solid #cfe5f6; border-radius: 8px; overflow: hidden; }
.mobimg .fr { position: relative; overflow: hidden; }
.mobimg .fr i { position: absolute; left: 0; top: 0; background-repeat: no-repeat; transform-origin: 0 0; image-rendering: pixelated; }
.mob .nm { font-size: 15px; font-weight: bold; color: #7a3b07; }
.mob .lvt { display: inline-block; margin-left: 6px; padding: 0 6px; font: bold 11px/17px Verdana, Arial, sans-serif; color: #fff; background: #2f86c8; border-radius: 8px; }
.mob .boss { display: inline-block; margin-left: 4px; padding: 0 6px; font: bold 11px/17px Verdana, Arial, sans-serif; color: #fff; background: #e23d28; border-radius: 8px; }
.mob .closed { display: inline-block; margin-left: 4px; padding: 0 6px; font-size: 11px; line-height: 17px; color: #fff; background: #a08b70; border-radius: 8px; }
.mob .maps { font-size: 12px; color: #8a6a44; margin: 2px 0 4px; }
.filter .chk { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #7a5a35; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 3px; border-radius: 6px; border: 1px solid #ead2a4; background: #fff; font: inherit; font-size: 12px; color: #4a2f12; cursor: pointer; }
.chip img { width: 26px; height: 26px; image-rendering: pixelated; }
.chip:hover { border-color: #f08a1c; background: #fff6df; }
.chip.eqp { background: #eef6ff; border-color: #b9d8f2; } .chip.use { background: #effbe9; border-color: #bfe3ad; }
.chip.etc { background: #fff8e2; border-color: #f0d79a; } .chip.setup, .chip.cash { background: #f6efff; border-color: #d6c2f2; }
.chip.hit { outline: 2px solid #f08a1c; }
.itembox { margin: 8px 0; padding: 8px 10px; border: 2px solid #f0b55a; border-radius: 8px; background: #fffaf0; }
.itembox .hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.itembox .hd img { width: 32px; height: 32px; image-rendering: pixelated; }
.itembox .hd b { font-size: 15px; }
.itembox .x { margin-left: auto; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 10px; }
.pager button { min-width: 34px; cursor: pointer; padding: 3px 9px; font: inherit; border-radius: 6px; border: 1px solid #c9a46a; background: #fff; color: #6a3a0c; }
.pager button.on { color: #fff; background: #f08a1c; border-color: #b45f0e; font-weight: bold; }
.pager button:disabled { opacity: .4; cursor: default; }

/* 放大圖片 */
#zoom { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(30, 18, 5, .82); cursor: zoom-out; }
#zoom img { max-width: 100%; max-height: 100%; border: 4px solid #fff; border-radius: 6px; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }

/* 冒險地圖（首頁）：開放的狩獵地圖背景圖 */
.scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.scene { position: relative; display: block; aspect-ratio: 12 / 5; background: #8fd3ff 50% 100% / cover no-repeat; border: 3px solid #fff; outline: 1px solid #c9a46a; border-radius: 6px; overflow: hidden; color: #fff !important; text-decoration: none !important; box-shadow: 0 3px 6px rgba(60, 40, 10, .2); }
.scene:hover { outline: 2px solid #f08a1c; filter: brightness(1.06); }
.scene span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 4px; background: linear-gradient(transparent, rgba(20, 12, 2, .72)); font-size: 12px; line-height: 1.4; text-shadow: 0 1px 2px #000; }
.scene span b { display: block; font-size: 13px; color: #fff; }
.scene em { position: absolute; left: 6px; top: 6px; padding: 0 6px; font: bold 11px/17px Verdana, Arial, sans-serif; font-style: normal; color: #fff; background: #2f86c8; border-radius: 8px; }

/* 欄位多的表格：手機上可以左右捲動（不被框切掉） */
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tscroll .tbl { min-width: 560px; }

/* 技能介紹的職業系按鈕圖示 */
.tabs button img { width: 20px; height: 20px; margin: -4px 4px -5px -4px; image-rendering: pixelated; }

/* ── 頁尾上方的草地（遊戲地圖背景圖）與站著的怪物 ── */
#ground { position: relative; height: 64px; margin-top: 50px; background: #7cc04a url(/assets/mapbg/104000200.jpg) 50% 100% / 1200px 500px repeat-x; }
#ground .mob-perch { top: 9px; }

/* ── 頁尾 ── */
#footer { padding: 12px; text-align: center; font-size: 12px; color: #f8e6c2; background: linear-gradient(#6b3d16, #4f2a07); border-top: 3px solid #c47f33; }
#footer p { margin: 2px 0; }
#footer a { color: #ffd36b; }

/* 減少動態效果：不飄楓葉、怪物不走動（site.js 也會停止動畫） */
@media (prefers-reduced-motion: reduce) {
  .leaves { display: none; }
  #ticker .track span { animation-duration: 60s; }
}

/* ── 平板 / 手機 ── */
@media (max-width: 1000px) {
  #wrap { border-left: 0; border-right: 0; margin-bottom: 0; }
}
@media (max-width: 820px) {
  #cols { grid-template-columns: minmax(0, 1fr); grid-template-areas: "start" "main" "side"; padding: 10px; }
  #side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 10px; padding-top: 24px; }
  .box + .box { margin-top: 0; }
  .scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #side .box { margin: 0; }
  .btn-start { max-width: 360px; margin: 52px auto 0; }
  .hero-bd { grid-template-columns: minmax(0, 1fr); }
  .step-row { grid-template-columns: minmax(0, 1fr); }
  .callout-img.narrow { max-width: 360px; }
  .steps, .banners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #header { height: 190px; }
  .art { width: 150px; height: 140px; right: 14px; top: 20px; }
  .logo { left: 18px; top: 34px; max-width: calc(100% - 190px); }
  .logo-main { font-size: 40px; }
  .slogan { left: 20px; bottom: 18px; font-size: 13px; }
}
@media (max-width: 520px) {
  #header { height: 150px; }
  .art { width: 96px; height: 92px; padding: 4px; right: 10px; top: 14px; }
  .logo { left: 14px; top: 24px; max-width: calc(100% - 124px); }
  .logo-main { font-size: 30px; letter-spacing: 1px; -webkit-text-stroke-width: 1.5px; }
  .logo-sub { font-size: 9px; letter-spacing: 1px; }
  .slogan { font-size: 12px; bottom: 12px; left: 14px; }
  #nav { padding: 4px; }
  #nav a { padding: 4px 10px; font-size: 13px; }
  #side { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  #topbar .hello { display: none; }
  .mob { grid-template-columns: 70px minmax(0, 1fr); }
  .mobimg { width: 68px; height: 68px; }
  .panel > .bd { padding: 10px; }
}

/* ════ v1.48：整體 UI 加入更多遊戲素材 ════
   遊戲游標、標頭的雲、各頁不同的天氣、NPC 對話框（歡迎）、公告卷軸（最新消息）、遊戲畫面輪播、
   怪物圖鑑、寶物展示（遊戲風格的物品說明框）、像素數字、商城 NEW / HOT / EVENT 標籤、地區標誌、回到頂端的氣球 */

/* 遊戲滑鼠游標（Basic/Cursor：0 = 一般、12 = 可點擊） */
html { cursor: url(/assets/uiw/Basic/Cursor/0/0.png) 0 3, auto; }
a, button, select, label.chk, .chip { cursor: url(/assets/uiw/Basic/Cursor/12/0.png) 4 1, pointer; }
button:disabled { cursor: url(/assets/uiw/Basic/Cursor/0/0.png) 0 3, default; }
input[type=search], input[type=number], input[type=text] { cursor: text; }

/* 標頭的雲（weather/cloud，site.js 產生） */
.clouds { position: absolute; left: 0; right: 0; top: 0; height: 160px; z-index: 1; overflow: hidden; pointer-events: none; }
.cloud { position: absolute; left: -420px; opacity: .8; animation: cloudDrift 100s linear infinite; }
@keyframes cloudDrift { from { left: -420px; } to { left: 100%; } }

/* 選單 / 按鈕圖示：滑鼠移上去時跳動 */
#nav a:hover img, .tabs button:hover img, .banner:hover .bi { animation: hop .45s ease-in-out infinite alternate; }
@keyframes hop { to { transform: translateY(-3px); } }

/* 商城標籤（CashShop/CSEffect：new / hot / event，site.js 播放放大動畫）；每一格大小不同 → 固定外框、置中顯示 */
img.badge { display: inline-block; vertical-align: middle; object-fit: none; object-position: 50% 50%; image-rendering: pixelated; }
img.badge[data-anim="new"] { width: 63px; height: 21px; }
img.badge[data-anim="hot"] { width: 60px; height: 20px; }
img.badge[data-anim="event"] { width: 80px; height: 20px; }
.panel > h2 img.badge { margin: -4px 0 -3px 4px; }
.news img.badge { margin: -3px 2px -3px -6px; }

/* ── 歡迎：遊戲 NPC 對話框（UIWindow/UtilDlgEx：t 上 / c 中 / s 下，左邊 152px 是 NPC 頭像欄） ── */
.npc-dlg { margin-bottom: 14px; filter: drop-shadow(0 3px 4px rgba(60, 40, 10, .25)); }
.npc-dlg > .dt, .npc-dlg > .dc, .npc-dlg > .ds { border-style: solid; border-color: transparent; border-width: 0 22px 0 152px; }
.npc-dlg > .dt { height: 28px; border-image: url(/assets/uiw/UIWindow/UtilDlgEx/t.png) 0 22 0 152 fill stretch; }
.npc-dlg > .dc { position: relative; min-height: 150px; padding: 0 14px 2px; border-image: url(/assets/uiw/UIWindow/UtilDlgEx/c.png) 0 22 0 152 fill stretch; }
.npc-dlg > .ds { height: 58px; padding: 31px 6px 0 0; display: flex; justify-content: flex-end; gap: 6px; border-image: url(/assets/uiw/UIWindow/UtilDlgEx/s.png) 0 22 0 152 fill stretch; }
.npc { position: absolute; left: -139px; top: -16px; width: 138px; text-align: center; }
.npc-face { position: relative; height: 132px; }
.npc-face .mob-perch { left: 50%; top: 126px; }
/* 說話的怪物：放大 2 倍、面向右邊（對話文字） */
.mob-perch.big { transform: scale(-2, 2); }
.npc-name { display: inline-block; padding: 0 8px; font-size: 12px; line-height: 18px; color: #fff; background: rgba(34, 34, 34, .78); border-radius: 4px; }
.npc-say h2 { margin: 0 0 4px; font-size: 18px; color: #4a2f12; }
.npc-say h2 b { color: #c2410c; }
.npc-say .lead { margin-bottom: 4px; }
.npc-say .feat { margin-bottom: 4px; }
/* 對話框下方藍色列上的小按鈕 */
.dbtn { display: inline-block; height: 19px; padding: 0 10px; font-size: 12px; line-height: 17px; font-weight: bold; white-space: nowrap; color: #333 !important; text-decoration: none !important;
  background: linear-gradient(#fff, #e3eaf1 50%, #c6d3df); border: 1px solid #556677; border-radius: 4px; box-shadow: inset 0 1px 0 #fff; }
.dbtn:hover { background: linear-gradient(#fff, #f0f6fb 50%, #d8e4ef); }
.dbtn.go { color: #fff !important; background: linear-gradient(#ffb36b, #f07a1c 55%, #d85f0c); border-color: #8a3a06; text-shadow: 0 1px 0 #8a3a06; box-shadow: inset 0 1px 0 #ffd2a6; }
.dbtn.go:hover { filter: brightness(1.08); }

/* ── 遊戲畫面輪播 ── */
.slides { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 3px solid #fff; outline: 1px solid #c9a46a; border-radius: 6px; box-shadow: 0 3px 8px rgba(60, 40, 10, .22);
  background: #1d2a3a url(/assets/mapbg/200010200.jpg) 50% 100% / cover no-repeat; }
.slides::before { content: ""; position: absolute; inset: 0; background: rgba(15, 22, 35, .55); }
.slides figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s; }
.slides figure.on { opacity: 1; z-index: 1; }
.slides img { display: block; width: 100%; height: 100%; object-fit: contain; }
.slides figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 50px 26px; text-align: center; color: #fff; font-size: 13px; line-height: 1.5; text-shadow: 0 1px 2px #000; background: linear-gradient(transparent, rgba(20, 12, 2, .8)); }
.sl-prev, .sl-next { position: absolute; top: 50%; z-index: 2; width: 34px; height: 48px; margin-top: -24px; padding: 0; border: 2px solid rgba(255, 255, 255, .7); border-radius: 8px; font: bold 30px/40px Arial, sans-serif; color: #fff; background: rgba(40, 25, 5, .45); }
.sl-prev { left: 8px; } .sl-next { right: 8px; }
.sl-prev:hover, .sl-next:hover { background: rgba(240, 138, 28, .9); }
.sl-dots { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 2; display: flex; justify-content: center; gap: 7px; }
.sl-dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: rgba(255, 255, 255, .35); box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.sl-dots button.on { background: #f08a1c; }

/* ── 最新消息：遊戲公告卷軸（Login/Notice/backgrnd：左上角是菇菇寶貝、右下角是捲軸） ── */
.notice-scroll { position: relative; margin: 0 0 14px; padding: 30px 46px 50px 34px; border: 0 solid transparent;
  border-image: url(/assets/uiw/Login/Notice/backgrnd/0.png) 125 50 60 110 fill / 100px 40px 48px 88px stretch; filter: drop-shadow(0 3px 3px rgba(60, 40, 10, .2)); }
.notice-scroll h2 { margin: 0 0 0 66px; min-height: 56px; padding-top: 8px; font-size: 19px; color: #7a3b07; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.notice-scroll .news li { border-bottom-color: rgba(160, 100, 40, .4); }
.notice-scroll .news .dt { color: #8a5a25; }

/* ── 怪物圖鑑：怪物站在地圖背景上（滑鼠移上去會走動） ── */
.dex { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dexc { position: relative; display: block; padding-bottom: 6px; text-align: center; background: #fffaf0; border: 1px solid #ead2a4; border-radius: 8px; overflow: hidden; color: #4a2f12 !important; text-decoration: none !important; }
.dexc:hover { border-color: #f08a1c; box-shadow: 0 0 0 2px #ffe1a0; }
.dexc .stage { position: relative; display: block; height: 108px; overflow: hidden; background: #cdeeff url(/assets/mapbg/104000200.jpg) 50% 100% / 420px 175px no-repeat; border-bottom: 2px solid #c9a46a; }
.dexc:nth-child(6n+2) .stage { background-image: url(/assets/mapbg/1010004.jpg); }
.dexc:nth-child(6n+3) .stage { background-image: url(/assets/mapbg/100040000.jpg); }
.dexc:nth-child(6n+4) .stage { background-image: url(/assets/mapbg/101030000.jpg); }
.dexc:nth-child(6n+5) .stage { background-image: url(/assets/mapbg/200010200.jpg); }
.dexc:nth-child(6n+6) .stage { background-image: url(/assets/mapbg/220010600.jpg); }
.dexc .anchor { position: absolute; left: 50%; bottom: 10px; width: 0; height: 0; }
.dexc b { display: block; margin: 4px 4px 0; font-size: 13px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dexc .boss { position: absolute; left: 4px; top: 4px; z-index: 1; padding: 0 6px; font: bold 11px/17px Verdana, Arial, sans-serif; color: #fff; background: #e23d28; border-radius: 8px; }
/* 像素等級數字（Basic/LevelNo） */
.lvno { display: inline-flex; align-items: center; gap: 1px; vertical-align: middle; }
.lvno::before { content: "LV."; margin-right: 2px; font: bold 10px/13px Verdana, Arial, sans-serif; color: #c2410c; }
.lvno img { width: 11px; height: 13px; image-rendering: pixelated; }

/* ── 木頭置物架（每一層 72px：物品 54px ＋ 層板）：v1.48 寶物展示，v2.01 起首頁轉蛋展示的獎品 ── */
.shelf { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 12px; padding: 8px 10px 0; border: 3px solid #8d5220; border-radius: 6px;
  background: repeating-linear-gradient(transparent 0 62px, #d39a55 62px 66px, #a8682a 66px 69px, rgba(110, 60, 15, .25) 69px 72px), linear-gradient(#fdf0d6, #f4d9a8);
  box-shadow: inset 0 0 0 2px #e0a866, 0 2px 0 #f1d3a2; }
.shelf .it { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 52px; height: 54px; margin-bottom: 18px; text-decoration: none !important; }
.shelf .it img { width: 40px; height: 40px; margin-bottom: 1px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 2px 1px rgba(70, 35, 0, .4)); transition: transform .15s; }
.shelf .it:hover img, .shelf .it:focus img { transform: translateY(-5px) scale(1.12); }

/* ── 物品說明框（遊戲風格：深藍底、需求用遊戲的「裝備等級」圖字） ── */
#itip { position: fixed; z-index: 60; width: 240px; padding: 8px 10px; color: #fff; font-size: 12px; line-height: 1.6; background: rgba(17, 24, 38, .94); border: 1px solid #8a9ab2; border-radius: 6px; box-shadow: 0 0 0 1px #000, 0 6px 16px rgba(0, 0, 0, .45); pointer-events: none; }
#itip .nm { display: block; text-align: center; font-size: 14px; font-weight: bold; color: #fff; }
#itip .kd { display: block; text-align: center; font-size: 11px; color: #9fb4d0; }
#itip .row { display: flex; gap: 8px; margin-top: 6px; padding-top: 6px; border-top: 1px dashed #4d5d78; }
#itip .ico { flex: none; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 5px; box-shadow: inset 0 0 0 2px #b8c6d8; }
#itip .ico img { width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; }
#itip .req { display: flex; flex-direction: column; gap: 3px; padding-top: 2px; }
#itip .rq { display: flex; align-items: center; gap: 1px; height: 11px; }
#itip .rq img { display: block; image-rendering: pixelated; }
#itip .rq img:first-child { margin-right: 3px; }
#itip .jb { color: #ffd36b; }
#itip .st { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #4d5d78; }
#itip .dsc { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #4d5d78; color: #d8dfea; white-space: pre-wrap; word-break: break-word; }
#itip .dim { color: #9fb4d0; }
/* v2.01：首頁轉蛋展示的獎品——說明框最下面的轉蛋資訊（★ 大獎、機率、數量） */
#itip .gcx { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #4d5d78; }
#itip .gcx b { color: #ffd36b; }
#itip .gcx .big { color: #ffd36b; font-weight: bold; }

/* ── 攻略專區：大圖示＋標籤 ── */
.banner { position: relative; }
.banner .bi { display: block; width: 44px; height: 44px; margin: 0 auto 2px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .3)); }
.banner img.badge { position: absolute; right: -8px; top: -11px; z-index: 1; }

/* ── 新手 4 步驟：像素數字（Basic/LevelNo，放大 2 倍） ── */
.steps li { padding-top: 40px; }
.steps li::before { content: none; }
.pxno { position: absolute; left: 50%; top: 7px; width: 22px; height: 26px; margin-left: -11px; background: no-repeat 0 0 / 22px 26px; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(154, 79, 15, .6)); }
.pxno[data-n="1"] { background-image: url(/assets/uiw/Basic/LevelNo/1.png); }
.pxno[data-n="2"] { background-image: url(/assets/uiw/Basic/LevelNo/2.png); }
.pxno[data-n="3"] { background-image: url(/assets/uiw/Basic/LevelNo/3.png); }
.pxno[data-n="4"] { background-image: url(/assets/uiw/Basic/LevelNo/4.png); }

/* ── 冒險地圖：地區標誌（assets/mapmark） ── */
.scene .mk { position: absolute; right: 5px; top: 5px; width: 34px; height: 34px; image-rendering: pixelated; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55)); }

/* ── 回到頂端：飄浮的氣球（weather/balloon） ── */
#totop { position: fixed; right: 14px; bottom: 16px; z-index: 40; width: 44px; height: 84px; text-decoration: none !important; opacity: 0; transform: translateY(30px); transition: opacity .3s, transform .3s; pointer-events: none; }
#totop.on { opacity: 1; transform: none; pointer-events: auto; }
#totop i { position: absolute; inset: 0; display: block; animation: bob 2.4s ease-in-out infinite alternate; }
#totop img { display: block; }
#totop span { position: absolute; left: 0; top: 13px; width: 42px; text-align: center; font: bold 11px/1 Verdana, Arial, sans-serif; color: #fff; text-shadow: 0 1px 1px #1d5e8f, 0 0 3px #1d5e8f; }
#totop:hover i { filter: brightness(1.1); }
@keyframes bob { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-8px) rotate(4deg); } }

@media (prefers-reduced-motion: reduce) {
  .clouds { display: none; }
  #nav a:hover img, .tabs button:hover img, .banner:hover .bi, #totop i { animation: none; }
  .slides figure { transition: none; }
}
@media (max-width: 820px) {
  .dex { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .dex { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .npc-dlg > .dt, .npc-dlg > .dc, .npc-dlg > .ds { border-width: 0 12px 0 88px; }
  .npc-dlg > .dc { min-height: 112px; padding: 0 8px 2px; }
  .npc-dlg > .ds { padding-right: 0; gap: 4px; }
  .npc { left: -80px; top: -12px; width: 76px; }
  .npc-face { height: 82px; }
  .npc-face .mob-perch { top: 78px; }
  .mob-perch.big { transform: scaleX(-1); }
  .npc-name { padding: 0 4px; font-size: 11px; }
  .npc-say h2 { font-size: 16px; }
  .dbtn { padding: 0 6px; }
  .notice-scroll { padding: 22px 30px 38px 22px; border-image-width: 72px 30px 36px 64px; }
  .notice-scroll h2 { margin-left: 50px; min-height: 44px; padding-top: 4px; font-size: 16px; }
  .slides { aspect-ratio: 4 / 3; }
  .slides figcaption { padding: 18px 10px 24px; font-size: 12px; }
  .sl-prev, .sl-next { width: 28px; height: 40px; margin-top: -30px; font-size: 24px; line-height: 32px; }
  .scene .mk { width: 26px; height: 26px; }
  #itip { width: 220px; }
}

/* ════ v1.50：首頁等級排行榜 ════
   角色由 site.js 用遊戲素材畫在 canvas（110×100 原尺寸）：頒獎台放大 2 倍、第 4 ~ 10 名原尺寸；像素保持清晰 */
.rk-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin: -2px 0 6px; }
.rk-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.rk-tabs button { padding: 2px 10px; font: inherit; font-size: 12px; font-weight: bold; border-radius: 12px; color: #1d5e8f; background: linear-gradient(#f3fbff, #d4ecfb); border: 1px solid #6aa6d4; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #3f7fb0; }
.rk-tabs button.on { color: #fff; background: linear-gradient(#8fd2ff, #2f86c8); border-color: #1d5e8f; text-shadow: 0 1px 0 #1d5e8f; }
canvas.av { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
/* 頒獎台：地圖背景＋金 / 銀 / 銅台座，第 1 名在中間最高 */
.podium { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; padding: 16px 10px 0; overflow: hidden;
  border: 3px solid #fff; outline: 1px solid #c9a46a; border-radius: 8px; box-shadow: 0 3px 8px rgba(60, 40, 10, .22);
  background: #8fd3ff url(/assets/mapbg/100040000.jpg) 50% 100% / cover no-repeat; }
.podium::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255, 255, 255, .05), rgba(255, 248, 230, .35)); pointer-events: none; }
.pod { position: relative; min-width: 0; text-align: center; }
.pod.p1 { order: 2; } .pod.p2 { order: 1; } .pod.p3 { order: 3; }
.pod canvas.av { width: 220px; max-width: 100%; height: auto; margin: 0 auto -6px; position: relative; z-index: 1; filter: drop-shadow(0 3px 2px rgba(40, 25, 5, .35)); }
.pod .crown { position: absolute; left: 50%; top: 0; z-index: 2; width: 40px; height: 40px; margin-left: -20px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); animation: bob 1.6s ease-in-out infinite alternate; }
.pod .step { position: relative; margin: 0 2px; padding: 22px 6px 8px; border-radius: 8px 8px 0 0; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .4); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(0, 0, 0, .12); }
.pod.p1 .step { min-height: 118px; background: linear-gradient(#ffe88a, #f5b625 55%, #d6900b); }
.pod.p2 .step { min-height: 98px; background: linear-gradient(#f4f7fb, #bcc7d5 55%, #8e9bad); }
.pod.p3 .step { min-height: 84px; background: linear-gradient(#f8cfa9, #d98a4f 55%, #b3622a); }
/* 銀色台座：深色字（白字看不清楚） */
.pod.p2 .step { color: #33465c; text-shadow: 0 1px 0 rgba(255, 255, 255, .75); }
.pod.p2 .step b { color: #24364b; }
.pod.p2 .lvno::before { color: #33465c; }
.pod .medal { position: absolute; left: 50%; top: -20px; width: 40px; height: 40px; margin-left: -20px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .3)); }
.pod .step b { display: block; font-size: 15px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .step .job { display: block; font-size: 12px; opacity: .95; }
.pod .lvno::before { color: #fff; }
.rk-empty { position: relative; grid-column: 1 / -1; margin: 30px 0; text-align: center; font-weight: bold; color: #7a3b07; }
/* 第 4 ~ 10 名 */
.rk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.rk-grid:empty { display: none; }
.rkc { position: relative; padding-bottom: 6px; text-align: center; background: #fffaf0; border: 1px solid #ead2a4; border-radius: 8px; overflow: hidden; }
.rkc .stage { position: relative; display: block; height: 104px; background: linear-gradient(#dff2ff, #fbfdff 70%); border-bottom: 3px solid #8fc56a; box-shadow: inset 0 -6px 0 #b8e08f; }
.rkc canvas.av { position: absolute; left: 50%; bottom: 0; width: 110px; height: 100px; margin-left: -55px; }
.rkc .no { position: absolute; left: 4px; top: 4px; z-index: 1; min-width: 22px; padding: 0 6px; font: bold 12px/20px Verdana, Arial, sans-serif; color: #fff; background: #2f86c8; border-radius: 10px; box-shadow: 0 2px 0 #1d5e8f; }
.rkc b { display: block; margin: 4px 4px 0; font-size: 13px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rkc .job { display: block; font-size: 12px; color: #7a5a35; }
.rk-note { margin: 8px 0 0; font-size: 12px; }
@media (prefers-reduced-motion: reduce) {
  .pod .crown { animation: none; }
}
@media (max-width: 640px) {
  .rk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .podium { gap: 4px; padding: 20px 4px 0; }
  .pod .crown { top: -10px; width: 26px; height: 26px; margin-left: -13px; }
  .pod .step { padding: 20px 2px 6px; }
  .pod .step b { font-size: 13px; }
}

/* ── v1.89 髮型投票（/vote）── */
.vt-clock { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: #fff3d6; border: 1px solid #ead2a4; }
.vt-clock b { font: bold 20px/1 Verdana, Arial, sans-serif; color: #d9480f; letter-spacing: 1px; }
.vt-login { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vt-login input { flex: 1 1 140px; min-width: 0; padding: 6px 8px; font: inherit; border: 1px solid #c9a46a; border-radius: 6px; background: #fff; }
.vt-who { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.vt-msg { margin: 6px 0 0; min-height: 1.4em; color: #2f7d32; font-weight: bold; }
.vt-msg.bad { color: #c62828; }
.vt-h { margin: 10px 0 4px; font-size: 14px; color: #7a3b07; border-left: 4px solid #f08a1c; padding-left: 6px; }
.vt-row, .vt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.vt-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 8px; border-radius: 10px; background: #fff; border: 1px solid #ead2a4; text-align: center; min-width: 0; }
.vt-card.g1 { background: #fff7fa; border-color: #f3c6d6; }
.vt-card.mine { box-shadow: 0 0 0 3px #f08a1c; }
.vt-card b { display: block; max-width: 100%; font-size: 12px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-card .vt-code { font: 11px Verdana, Arial, sans-serif; color: #9a7a55; }
.vt-card .btn { margin-top: 2px; padding: 3px 12px; font-size: 12px; }
.vt-card .btn.done, .vt-card .btn:disabled { opacity: .75; cursor: default; filter: grayscale(.4); }
.vt-v { font-size: 12px; color: #9a7a55; }
.vt-v.on { color: #d9480f; font-weight: bold; }
/* 預覽：avatar.js 的畫布（110×100，腳底在 55,94）放大後只露出頭部 */
.vt-av { position: relative; width: 108px; height: 96px; overflow: hidden; border-radius: 8px; background: linear-gradient(#e9f6ff, #fff); }
.vt-av canvas { position: absolute; image-rendering: pixelated; }
.vt-av.hair canvas { width: 176px; height: 160px; left: -34px; top: -35px; }
.vt-av.face canvas { width: 286px; height: 260px; left: -96px; top: -88px; }
.vt-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.vt-tabs button { cursor: pointer; padding: 5px 14px; font: inherit; font-weight: bold; border-radius: 14px; border: 1px solid #c9a46a; background: #fff; color: #7a3b07; }
.vt-tabs button.on { color: #fff; background: linear-gradient(#ffc46b, #f08a1c 55%, #e06f0c); border-color: #9a4a06; }
.vt-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.vt-tools input, .vt-tools select { padding: 5px 8px; font: inherit; border: 1px solid #c9a46a; border-radius: 6px; background: #fff; }
.vt-tools input { flex: 1 1 160px; min-width: 0; }
#vt-toast { position: fixed; left: 50%; bottom: 18px; z-index: 50; max-width: calc(100% - 32px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 8px 16px; border-radius: 18px; background: rgba(40, 90, 30, .92); color: #fff; font-weight: bold; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); transition: opacity .2s, transform .2s; }
#vt-toast.bad { background: rgba(170, 30, 30, .92); }
#vt-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── v1.89 轉蛋機（/gacha）── */
.gc-star { color: #e0a000; }
.gc-ticket { margin: 0 0 6px; }
.gc-tbl tr.big td { background: #fff3cf !important; }
.gc-tbl td.num { white-space: nowrap; }

/* ── v1.90 轉蛋機（/gacha）：轉蛋機外觀（NPC 圖站在地圖上）、付款方式、一次轉幾次、轉蛋殼（site.js gcMachine） ── */
.gc-top { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 10px; }
/* 外觀：地圖背景（1200×500 縮成 768×320，地面在下方約 46px）→ NPC 的腳底踩在地面上，腳下是遊戲的 NPC 名牌 */
.gc-stage { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 230px; padding: 12px 6px 46px; overflow: hidden;
  border: 3px solid #fff; outline: 1px solid #c9a46a; border-radius: 8px; box-shadow: 0 3px 8px rgba(60, 40, 10, .22);
  background: #cfeaf9 url(/assets/mapbg/100000002.jpg) 50% 100% / 768px 320px no-repeat; }
.gc-stage::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255, 255, 255, .4), rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.gc-stage canvas, .gc-stage .gc-fb { position: relative; display: block; max-width: 100%; height: auto; image-rendering: crisp-edges; image-rendering: pixelated; filter: drop-shadow(0 2px 2px rgba(40, 25, 5, .35)); }
.gc-stage .gc-fb { width: 64px; animation: gcBob 1.6s ease-in-out infinite alternate; }
.gc-tag { position: absolute; left: 50%; bottom: 20px; z-index: 1; max-width: calc(100% - 16px); transform: translateX(-50%); padding: 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; line-height: 18px; color: #ffe066; background: rgba(34, 34, 34, .75); border-radius: 3px; }
.gc-info { min-width: 0; overflow-wrap: anywhere; }
.gc-m .gc-h { margin: 10px 0 4px; padding-left: 6px; font-size: 13px; line-height: 1.5; color: #7a3b07; border-left: 4px solid #f08a1c; }
.gc-m .gc-info > .gc-h:first-child { margin-top: 0; }
/* 付款方式：一列一種（轉蛋券 / 楓幣 / 點數）；楓幣 / 點數的階段價格是一個個小標籤 */
.gc-pr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 4px 0; border-bottom: 1px dotted #ead2a4; }
.gc-pr:last-child { border-bottom: 0; }
/* 階段價格換行時，標籤對齊第一行 */
.gc-pr:has(.gc-tiers) { align-items: flex-start; }
.gc-cur { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 70px; padding: 0 8px; border-radius: 11px; font-size: 12px; line-height: 22px; font-weight: bold; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.gc-cur img { width: 14px; height: 14px; object-fit: none; image-rendering: pixelated; }
.gc-cur.t { background: linear-gradient(#ffb36b, #f07a1c); }
.gc-cur.m { background: linear-gradient(#ffe68a, #f2b51d); color: #6a3a0c; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.gc-cur.p { background: linear-gradient(#cfb0ff, #8a5ae0); }
.gc-tiers { flex: 1 1 180px; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.gc-tier { padding: 0 8px; border-radius: 10px; font-size: 12px; line-height: 20px; white-space: nowrap; background: #fff6df; border: 1px solid #f0cf94; }
.gc-tier b { font-family: Verdana, Arial, sans-serif; color: #c2410c; }
.gc-tier.free b { color: #2f7d32; }
.gc-note { margin: 4px 0 0; font-size: 12px; line-height: 1.6; }
/* 一次轉幾次 */
.gc-cnts { display: flex; flex-wrap: wrap; gap: 6px; }
.gc-cnt { padding: 0 12px; border-radius: 12px; font-weight: bold; line-height: 22px; color: #c2410c; background: #fff; border: 2px solid #f08a1c; }
/* 轉蛋殼：楓葉水晶 / 黃金楓葉水晶（大獎）並排 */
.gc-shells { display: flex; flex-wrap: wrap; gap: 6px; }
.gc-shell { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 8px; background: #fff; border: 1px solid #ead2a4; }
.gc-shell img { width: 32px; height: 32px; object-fit: none; image-rendering: pixelated; animation: gcBob 1.4s ease-in-out infinite alternate; }
.gc-shell b { display: block; font-size: 13px; line-height: 1.3; }
.gc-shell small { display: block; font-size: 11px; line-height: 1.3; color: #9a7a55; }
.gc-shell.gold { background: linear-gradient(#fffbe6, #fff0b8); border-color: #f0c14b; }
.gc-shell.gold img { animation-delay: -.7s; filter: drop-shadow(0 0 3px rgba(255, 196, 40, .9)); }
.gc-shell.gold small { color: #c58a00; font-weight: bold; }
/* 獎品表只有 4 欄：手機也不必左右捲動 */
.gc-m .tscroll .tbl { min-width: 0; }
.gc-tbl td { overflow-wrap: anywhere; }
@keyframes gcBob { from { transform: translateY(0); } to { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .gc-stage .gc-fb, .gc-shell img { animation: none; }
}
@media (max-width: 600px) {
  .gc-top { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
/* 從首頁轉蛋展示點進來（/gacha#gc-編號）：捲到那台時上面留一點空間 */
.gc-m { scroll-margin-top: 10px; }

/* ── v2.01 首頁「轉蛋展示」（取代寶物展示）：左邊轉蛋機外觀（同 /gacha 頁的 NPC 圖＋名牌，點了到那台轉蛋機），
      右邊是木頭置物架上的獎品：★ 大獎有金色光暈與星星，數量 2 個以上時右下角顯示數量（同遊戲背包）；手機版轉蛋機在上面 ── */
.gs-tabs { margin: 0 0 8px; }
.gs-top { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.gs-stage { min-height: 214px; text-decoration: none !important; }
.gs-stage:hover, .gs-stage:focus { outline-color: #f08a1c; box-shadow: 0 0 0 2px #ffe1a0, 0 3px 8px rgba(60, 40, 10, .22); }
.gs-right { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.gs-desc { margin: 0; font-size: 13px; line-height: 1.5; color: #6b4a22; overflow-wrap: anywhere; }
/* 置物架填滿右邊的高度（多出來的是空的層板）；物品從最上層開始擺 */
.gs-shelf { flex: 1 1 auto; align-content: flex-start; }
.shelf .it.big::before { content: ""; position: absolute; left: 50%; bottom: -5px; width: 60px; height: 60px; margin-left: -30px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 222, 80, .95), rgba(255, 196, 40, .45) 55%, rgba(255, 196, 40, 0)); animation: gsGlow 1.5s ease-in-out infinite alternate; }
.shelf .it.big img { position: relative; filter: drop-shadow(0 0 2px rgba(255, 255, 255, .9)) drop-shadow(0 2px 1px rgba(70, 35, 0, .4)); }
.gs-star { position: absolute; left: 1px; top: 2px; z-index: 1; font-style: normal; font-size: 15px; line-height: 1; color: #ffd21f; text-shadow: 0 0 1px #8a5a00, 0 1px 0 #8a5a00, 1px 0 0 #8a5a00, -1px 0 0 #8a5a00; pointer-events: none; }
.gs-q { position: absolute; right: 2px; bottom: 1px; z-index: 1; font: bold 11px/1 Verdana, Arial, sans-serif; color: #fff; pointer-events: none;
  text-shadow: 1px 0 0 #3a2208, -1px 0 0 #3a2208, 0 1px 0 #3a2208, 0 -1px 0 #3a2208; }
.gs-more { margin-top: 6px; }
@keyframes gsGlow { from { opacity: .55; transform: scale(.88); } to { opacity: 1; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) {
  .shelf .it.big::before { animation: none; }
}
@media (max-width: 600px) {
  .gs-top { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .gs-stage { min-height: 168px; }
}

/* ════ v1.97：最新消息 ════
   分類標籤（遊戲道具圖示）、首頁卷軸的頭條（封面圖 = GM 選的地圖背景 / 官網圖片，沒選時用分類的地圖背景）、
   /news 卡片清單（分類分頁籤、搜尋、置頂緞帶）、卷軸視窗（Login/Notice/backgrnd＋UIWindow/BtUIClose 關閉鈕） */
body[data-page="news"] #header { background-image: url(/assets/mapbg/100010000.jpg); }
.nw-cat { display: inline-flex; align-items: center; gap: 2px; flex: none; height: 20px; padding: 0 8px 0 2px; border-radius: 10px; font-size: 12px; font-weight: bold; line-height: 18px; color: #fff; white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35); border: 1px solid rgba(0, 0, 0, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 0 rgba(255, 255, 255, .6); }
.nw-cat img { width: 26px; height: 26px; margin: -5px 0 -5px -7px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .8)); }
.nw-cat.c-notice { background: linear-gradient(#ffc46b, #f08a1c 60%, #e06f0c); }
.nw-cat.c-event { background: linear-gradient(#ffa3bf, #e2456b 60%, #c9305a); }
.nw-cat.c-update { background: linear-gradient(#a6ec6c, #48a823 60%, #3c9a1a); }
.nw-cat.c-maint { background: linear-gradient(#8fd2ff, #3f97d6 60%, #2f86c8); }
.nw-pin { display: inline-block; flex: none; padding: 0 6px; font-size: 12px; font-weight: bold; line-height: 18px; color: #fff; background: linear-gradient(#ff6b5a, #e23d28); border-radius: 3px; box-shadow: 0 1px 0 rgba(120, 20, 10, .4); }
.nw-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; }
.nw-meta time { font: 12px Verdana, Arial, sans-serif; color: #8a6a44; }
.nw-meta img.badge, .nw-ttl img.badge { flex: none; margin: -4px 0; }
mark { padding: 0 1px; color: inherit; background: #ffe066; border-radius: 2px; }

/* 首頁卷軸 */
.notice-scroll .news .nw-li { display: block; padding: 0; border-bottom: 1px dotted rgba(160, 100, 40, .45); }
.notice-scroll .news .nw-li:last-child { border-bottom: 0; }
.notice-scroll .news .nw-li.first { border-bottom: 0; }
.nw-row { display: flex; align-items: center; gap: 8px; padding: 7px 4px; border-radius: 6px; color: #4a2f12 !important; text-decoration: none !important; }
.nw-row:hover, .nw-row:focus-visible { background: rgba(255, 255, 255, .55); }
.nw-ttl { flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; }
.nw-ttl .nw-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: bold; }
.nw-row:hover .nw-t { color: #c2410c; text-decoration: underline; }
.nw-dt { flex: none; font: 12px Verdana, Arial, sans-serif; color: #8a5a25; }
.nw-head { position: relative; display: block; margin: 0 0 6px; border: 3px solid #fff; outline: 1px solid #c9a46a; border-radius: 6px; overflow: hidden; color: #fff !important; text-decoration: none !important; box-shadow: 0 3px 6px rgba(60, 40, 10, .25); }
.nw-hpic { display: block; aspect-ratio: 3 / 1; background: #8fd3ff 50% 70% / cover no-repeat; transition: transform .4s; }
.nw-head:hover .nw-hpic, .nw-head:focus-visible .nw-hpic { transform: scale(1.04); }
.nw-head:hover, .nw-head:focus-visible { outline: 2px solid #f08a1c; }
.nw-hcap { position: absolute; left: 0; right: 0; bottom: 0; display: block; padding: 30px 12px 8px; background: linear-gradient(transparent, rgba(20, 12, 2, .55) 35%, rgba(20, 12, 2, .85)); text-shadow: 0 1px 2px #000; }
.nw-hcap b { display: block; margin-top: 3px; font-size: 17px; line-height: 1.35; color: #fff; }
.nw-hcap .nw-ex { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1.5; color: #f8e6c2; }
.nw-hcap .nw-meta time { color: #ffe9b8; }
.nw-more { margin: 6px 0 0; text-align: right; font-weight: bold; }

/* /news：分類分頁籤＋搜尋、卡片清單 */
.nw-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.nw-bar .tabs { flex: 1 1 360px; gap: 4px; margin: 0; }
.nw-bar .tabs button { padding: 4px 10px; }
.nw-bar input[type=search] { flex: 0 1 200px; min-width: 160px; padding: 5px 12px 5px 30px; font: inherit; color: #4a2f12; border: 1px solid #c9a46a; border-radius: 15px;
  background: #fff url(/assets/icon/4031172.png) 6px 50% / 20px 20px no-repeat; box-shadow: inset 0 1px 2px rgba(90, 50, 10, .15); }
.nw-bar input[type=search]:focus { outline: 2px solid #ffd27a; border-color: #f08a1c; }
.nw-count { margin: 6px 0 8px; font-size: 12px; }
.nw-list { display: grid; gap: 10px; }
.nw-empty { margin: 10px 0; text-align: center; }
.nw-card { position: relative; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; background: #fffaf0; border: 1px solid #ead2a4; border-radius: 10px;
  color: #4a2f12 !important; text-decoration: none !important; box-shadow: 0 2px 0 #f1d3a2; transition: border-color .15s, box-shadow .15s, transform .15s; }
.nw-card:hover, .nw-card:focus-visible { border-color: #f08a1c; box-shadow: 0 0 0 2px #ffe1a0, 0 3px 0 #f1d3a2; transform: translateY(-1px); outline: 0; }
/* 置頂（class 用 pinned：.pin 是遊戲介紹頁截圖上的編號圓點） */
.nw-card.pinned { background: linear-gradient(90deg, #fff1d6, #fffaf0 60%); border-color: #f0b55a; }
.nw-thumb { position: relative; display: block; aspect-ratio: 12 / 5; overflow: hidden; background: #8fd3ff 50% 70% / cover no-repeat; border: 3px solid #fff; outline: 1px solid #c9a46a; border-radius: 6px; box-shadow: 0 2px 4px rgba(60, 40, 10, .2); }
.nw-ribbon { position: absolute; left: -28px; top: 9px; width: 96px; transform: rotate(-38deg); text-align: center; font-size: 11px; font-weight: bold; line-height: 18px; color: #fff; background: linear-gradient(#ff6b5a, #e23d28); box-shadow: 0 1px 3px rgba(0, 0, 0, .45); letter-spacing: 2px; }
.nw-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nw-title { font-size: 16px; line-height: 1.4; color: #7a3b07; word-break: break-word; }
.nw-card:hover .nw-title { color: #c2410c; text-decoration: underline; }
.nw-ex { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; line-height: 1.6; color: #7a5a35; word-break: break-word; }
.nw-up { padding: 0 5px; font-size: 11px; line-height: 16px; color: #2c6b10; background: #e3f5d6; border-radius: 3px; }
.pager .gap { align-self: center; padding: 0 2px; color: #9a7a55; }
.tabs button small { font-weight: normal; opacity: .85; }

/* 卷軸視窗（全文） */
html.nw-lock { overflow: hidden; }
.nw-bg { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(30, 18, 5, .72); animation: nwFade .15s ease-out; }
@keyframes nwFade { from { opacity: 0; } }
.nw-dlg { position: relative; display: flex; flex-direction: column; width: 680px; max-width: 100%; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
  padding: 30px 44px 46px 34px; border: 0 solid transparent;
  border-image: url(/assets/uiw/Login/Notice/backgrnd/0.png) 125 50 60 110 fill / 100px 40px 48px 88px stretch; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .5)); animation: nwPop .18s ease-out; }
@keyframes nwPop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.nw-dh { flex: none; min-height: 62px; margin: 0 56px 6px 66px; }
.nw-dh h3 { margin: 5px 0 1px; font-size: 20px; line-height: 1.35; color: #7a3b07; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); word-break: break-word; }
.nw-when { font: 12px Verdana, Arial, sans-serif; color: #8a5a25; }
.nw-db { flex: 1 1 auto; min-height: 60px; overflow-y: auto; margin: 4px 0; padding: 10px 12px; background: rgba(255, 252, 240, .72); border: 1px solid rgba(160, 100, 40, .35); border-radius: 6px; overscroll-behavior: contain; }
.nw-db:focus-visible { outline: 2px solid #f08a1c; }
.nw-pic { display: block; width: 100%; aspect-ratio: 12 / 5; margin-bottom: 10px; object-fit: cover; border: 3px solid #fff; outline: 1px solid #c9a46a; border-radius: 6px; }
.nw-pic:last-child { margin-bottom: 0; }
.nw-text { font-size: 14px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; }
.nw-text a { word-break: break-all; }
.nw-df { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.nw-df .nw-pos { margin-right: auto; font: 12px Verdana, Arial, sans-serif; color: #8a5a25; }
.nw-df .dbtn { height: 24px; padding: 0 12px; font-family: inherit; font-size: 12px; line-height: 22px; }
.nw-df .dbtn:disabled { opacity: .45; filter: none; cursor: url(/assets/uiw/Basic/Cursor/0/0.png) 0 3, default; }
.nw-x { position: absolute; right: 40px; top: 24px; width: 48px; height: 23px; padding: 0; border: 0; background: url(/assets/uiw/UIWindow/BtUIClose/normal/0.png) 0 0 / 48px 23px no-repeat; image-rendering: pixelated; }
.nw-x:hover, .nw-x:focus-visible { background-image: url(/assets/uiw/UIWindow/BtUIClose/mouseOver/0.png); outline: 0; }
.nw-x:active { background-image: url(/assets/uiw/UIWindow/BtUIClose/pressed/0.png); }

@media (prefers-reduced-motion: reduce) {
  .nw-bg, .nw-dlg { animation: none; }
  .nw-hpic, .nw-card { transition: none; }
}
@media (max-width: 640px) {
  .nw-card { grid-template-columns: 118px minmax(0, 1fr); gap: 9px; padding: 6px; align-items: start; }
  .nw-thumb { aspect-ratio: 4 / 3; }
  .nw-ribbon { left: -30px; top: 7px; font-size: 10px; line-height: 16px; }
  .nw-title { font-size: 14px; }
  .nw-ex { font-size: 12px; }
  .nw-bar input[type=search] { flex: 1 1 100%; }
}
@media (max-width: 520px) {
  .nw-hpic { aspect-ratio: 2 / 1; }
  .nw-hcap b { font-size: 15px; }
  .nw-row { flex-wrap: wrap; gap: 4px 6px; }
  .nw-ttl { flex: 1 1 100%; order: 3; }
  .nw-dt { margin-left: auto; }
  .nw-dlg { padding: 22px 26px 34px 20px; border-image-width: 72px 30px 36px 64px; }
  .nw-dh { min-height: 48px; margin: 0 50px 4px 50px; }
  .nw-dh h3 { font-size: 17px; }
  .nw-x { right: 26px; top: 14px; }
  .nw-df .dbtn { padding: 0 8px; }
}

/* ── v2.10 SEO：每頁的主標題 h1（內容的第一個 h2 由伺服器改成 h1，樣式和原本的 h2 相同）、麵包屑、標頭搜尋框、站內搜尋、
   每則消息的頁面、職業一覽、怪物掉落頁、網站地圖 ── */
.panel > h1 { margin: 0; padding: 7px 12px; font-size: 16px; line-height: inherit; color: #fff; background: linear-gradient(#8fd2ff, #3f97d6 60%, #2f86c8); text-shadow: 0 1px 0 #1d5e8f; border-bottom: 2px solid #2a74ad; }
.panel > h1::before { content: "★ "; color: #ffe066; }
.panel > h1:has(.hi)::before { content: none; }
.panel > h1 .hi { width: 28px; height: 28px; margin: -6px 6px -8px -2px; image-rendering: pixelated; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.panel > h1 img.badge { margin: -4px 0 -3px 4px; }
.npc-say h1 { margin: 0 0 4px; font-size: 18px; line-height: inherit; color: #4a2f12; }
.npc-say h1 b { color: #c2410c; }
.crumbs { margin: 0 0 8px; font-size: 12px; color: #8a6a44; }
.crumbs i { font-style: normal; margin: 0 6px; color: #c49a62; }
.crumbs span { color: #4a2f12; font-weight: bold; }
#topbar .tsearch { display: flex; gap: 4px; margin: 0; }
#topbar .tsearch input { width: 180px; min-width: 0; padding: 1px 9px; border: 1px solid #3d2108; border-radius: 10px; font: inherit; font-size: 12px; color: #4a2f12; background: #fff8ea; }
#topbar .tsearch button { padding: 0 10px; border: 1px solid #3d2108; border-radius: 10px; font: inherit; font-size: 12px; font-weight: bold; color: #5b3412; background: linear-gradient(#ffe7a8, #ffc85a); cursor: pointer; }
.sr-form { display: flex; gap: 6px; margin: 0 0 8px; }
.sr-form input { flex: 1; min-width: 0; padding: 6px 12px; border: 2px solid #8fc4ea; border-radius: 16px; font: inherit; font-size: 14px; }
.sr-hot { margin: 0 0 8px; font-size: 12px; }
.sr-hot a { display: inline-block; margin: 2px 4px 2px 0; padding: 1px 10px; background: #fff3d1; border: 1px solid #e0b56e; border-radius: 10px; }
.sr-count { margin: 6px 0; }
.panel h3.sr-h { margin: 16px 0 4px; padding-bottom: 3px; border-bottom: 1px dashed #e0b56e; }
.sr-h small { font-size: 12px; color: #9a7a55; font-weight: normal; }
.sr-list { margin: 0; padding: 0; list-style: none; }
.sr-list li { padding: 6px 0; border-bottom: 1px dotted #ead2a4; }
.sr-list li > a { font-weight: bold; font-size: 14px; }
.sr-list .sr-url { display: block; font-size: 11px; color: #3f8f3a; word-break: break-all; }
.sr-list p { margin: 2px 0 0; color: #6a4a26; }
.sr-list mark, .sr .chip mark { padding: 0 1px; color: inherit; background: #ffe58a; }
.sr-item .chip { margin-right: 2px; vertical-align: middle; }
.nw-article .nw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 12px; color: #8a6a44; }
.nw-article .nw-pic { display: block; max-width: 100%; margin: 0 0 12px; border: 2px solid #f1d3a2; border-radius: 8px; }
.nw-body { font-size: 14px; line-height: 1.9; word-break: break-word; }
.nw-body p { margin: 0 0 10px; }
.nw-pn { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 10px; border-top: 1px dashed #e0b56e; font-size: 13px; }
.nw-pn a { max-width: 40%; }
.nw-pn .all { max-width: none; font-weight: bold; white-space: nowrap; }
.sk-all { margin-top: 16px; padding: 10px 12px; background: #fffaf0; border: 1px dashed #e0b56e; border-radius: 8px; }
.sk-all h3 { margin: 0 0 6px; }
.sk-all p { margin: 3px 0; line-height: 1.9; }
.sk-all [aria-current] { font-weight: bold; color: #4a2f12; }
.sk.hit { box-shadow: 0 0 0 3px #ffd36b; }
.mob a.nm { text-decoration: none; }
.mob a.nm:hover { text-decoration: underline; }
.mobpage h3 { margin: 12px 0 6px; }
.mobpage a.chip { color: inherit; text-decoration: none; }
.mob-near small { color: #9a7a55; }
.mob-all { margin-top: 14px; }
.mob-all summary { cursor: pointer; font-weight: bold; color: #c2410c; }
.mob-all-list p, .smap-mobs p { margin: 4px 0; line-height: 1.9; }
.smap h3 { margin: 14px 0 6px; }
.smap-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.smap-list a { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; background: #fff3d1; border: 1px solid #e0b56e; border-radius: 12px; }
.smap-list img { width: 20px; height: 20px; image-rendering: pixelated; }
.smap-news { margin: 0; padding-left: 18px; }
.smap-news li { margin: 2px 0; }
.smap-inline { margin: 0; line-height: 2; }
@media (max-width: 520px) {
  .npc-say h1 { font-size: 16px; }
  #topbar .tsearch { flex: 1 1 100%; }
  #topbar .tsearch input { flex: 1; width: auto; }
  .nw-pn { flex-wrap: wrap; }
  .nw-pn a { max-width: 100%; }
}

/* v2.28 遊戲介紹：裝備品級表（品級的顏色 = 遊戲裡裝備周圍的顏色）、BOSS 一覽（怪物縮圖） */
.tier-tbl th, .tier-tbl td { text-align: center; white-space: nowrap; }
.tier-tbl tbody th { text-align: left; background: #fff; }
.tscroll .tier-tbl { min-width: 0; }
@media (max-width: 520px) {
  .tier-tbl th, .tier-tbl td { padding: 4px 4px; font-size: 12px; }
  .tier-tbl thead th { white-space: normal; }
  .tq { gap: 5px; }
}
.tq { display: inline-flex; align-items: center; gap: 7px; font-weight: bold; color: var(--tq, #4a2f12); }
.tq i { width: 12px; height: 12px; border-radius: 50%; background: var(--tq); box-shadow: 0 0 0 2px #fff, 0 0 6px 2px var(--tq); }
.tq.n { color: #4a2f12; }
.tq.n i { background: #fff; border: 1px solid #b9a27a; box-shadow: none; }
.boss-tbl td { vertical-align: middle; }
.boss-tbl td.bt-n { white-space: nowrap; }
.boss-tbl td.num { white-space: nowrap; }
.bthumb { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: 8px; vertical-align: middle; background: linear-gradient(#e9f6ff, #fff); border: 1px solid #cfe5f6; border-radius: 6px; overflow: hidden; }
.bthumb .fr { position: relative; overflow: hidden; }
.bthumb i { position: absolute; left: 0; top: 0; background-repeat: no-repeat; transform-origin: 0 0; image-rendering: pixelated; }

/* ════ v2.57：新手上路（/newbie）、物品庫（/items、/items/<物品>）════ */
body[data-page="newbie"] #header { background-image: url(/assets/mapbg/1010000.jpg); }
body[data-page="items"] #header { background-image: url(/assets/mapbg/104040000.jpg); }
/* 首頁攻略專區的新橫幅；5 個以上時排成 3 欄（電腦） */
.banner.b5 { background: linear-gradient(#ffd36b, #f08a1c); } .banner.b6 { background: linear-gradient(#7fe0d2, #1f9e8e); }
@media (min-width: 821px) { .banners:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 遊戲介紹 → 新手上路的提示 */
.nb-hint { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 7px 10px; background: #fff6df; border: 1px dashed #f0b55a; border-radius: 8px; font-weight: bold; }
.nb-hint img { width: 28px; height: 28px; image-rendering: pixelated; flex: none; }
/* 新手上路 */
.nb-steps { margin: 0; padding-left: 22px; }
.nb-steps li { margin: 4px 0; padding-left: 2px; }
.nb-steps li::marker { color: #e06f0c; font-weight: bold; }
.nb-route th { white-space: nowrap; width: 84px; }
.tscroll .nb-route, .tscroll .nb-ap { min-width: 0; }
.nb-maps { margin: 0; padding: 0; list-style: none; }
.nb-maps li { padding: 2px 0; border-bottom: 1px dotted #ead2a4; }
.nb-maps li:last-child { border-bottom: 0; }
.nb-maps small { color: #8a6a44; }
.nb-jobs th, .nb-jobs td { text-align: center; }
.nb-ap td, .nb-ap th { white-space: nowrap; }
.nb-ap td.num { font-family: inherit; font-size: 12px; }
.nb-tabs { margin: 4px 0 10px; }
.nb-class { margin: 0 0 18px; }
.panel .nb-class > h3 { display: flex; align-items: center; gap: 6px; margin: 8px 0 4px; padding: 5px 10px; font-size: 17px; background: linear-gradient(#fff6df, #ffe8b8); border: 1px solid #f0c27a; border-radius: 8px; }
.nb-class > h3 small { font-size: 12px; font-weight: normal; color: #8a6a44; }
.nb-ci { width: 30px; height: 30px; image-rendering: pixelated; object-fit: contain; }
.nb-branch { margin: 10px 0 14px; padding: 8px 10px; border: 1px solid #ead2a4; border-left: 5px solid #f08a1c; border-radius: 8px; background: #fffdf7; }
.nb-branch h4 { margin: 0 0 4px; font-size: 14px; color: #7a3b07; line-height: 1.6; }
.nb-branch .dots li { padding-top: 2px; padding-bottom: 2px; }
.nb-branch .dots .chips { display: inline-flex; vertical-align: middle; }
.nb-gear { margin-top: 6px; }
.nb-gear tbody th { width: 84px; white-space: nowrap; vertical-align: middle; }
.nb-gear td { vertical-align: middle; }
.nb-armor-box { border-left-color: #2f86c8; }
.nb-warn { color: #e06f0c; }
.nb-ap th a { font-weight: bold; }
.nb-gear td .chips, .nb-class .chips { gap: 3px; }
.chip small { color: #8a6a44; font-size: 11px; }
a.chip { text-decoration: none !important; color: #4a2f12; }
.nb-faq { margin: 0; }
.nb-faq dt { font-weight: bold; color: #c2410c; margin-top: 8px; }
.nb-faq dt::before { content: "Q. "; }
.nb-faq dd { margin: 2px 0 0 18px; }
/* 物品庫：篩選 */
.it-sub { display: flex; flex-direction: column; gap: 4px; margin: 2px 0; }
.it-sub .tabs { margin: 2px 0; }
.it-sub .filter { margin: 2px 0; }
.it-sub label.lbl { font-size: 12px; color: #7a5a35; font-weight: bold; }
#it-cats button .n { font-weight: normal; font-size: 11px; opacity: .85; margin-left: 2px; }
/* 物品庫：清單（卡片） */
.it-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.it-card { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 8px; border: 1px solid #ead2a4; border-radius: 8px; background: #fff; color: #4a2f12 !important; text-decoration: none !important; }
.it-card:hover, .it-card:focus-visible { border-color: #f08a1c; background: #fff6df; }
.it-card.on { border-color: #f08a1c; box-shadow: 0 0 0 2px #ffd36b; }
.it-ico { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: linear-gradient(#f3fbff, #e3f1fb); border: 1px solid #cfe5f6; border-radius: 7px; }
.it-ico img { max-width: 36px; max-height: 36px; image-rendering: pixelated; }
.it-tx { min-width: 0; display: flex; flex-direction: column; line-height: 1.45; }
.it-tx b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it-tx small { font-size: 12px; color: #8a6a44; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it-tag { display: inline-block; margin-right: 5px; padding: 0 6px; font-size: 11px; line-height: 17px; font-weight: bold; color: #fff; background: #2f86c8; border-radius: 8px; vertical-align: 1px; }
.it-tag.c-eqp { background: #2f86c8; } .it-tag.c-scroll { background: #8a5cd6; } .it-tag.c-use { background: #3c9a1a; } .it-tag.c-book { background: #d4892a; } .it-tag.c-etc { background: #a08b70; }
.it-tag.boss { background: #e23d28; } .it-tag.closed { background: #a08b70; font-weight: normal; }
.it-note { margin-top: 10px; }
/* v2.72 物品庫：現金道具、取得方式、樣式預覽（名牌戒指 / 聊天戒指 / 勳章：原版的圖組成，zoom 放大、像素不模糊） */
.it-tag.cash { background: #d6457c; }
.it-src { margin: 4px 0 6px; padding: 6px 10px; background: #f3fbff; border-left: 3px solid #2f86c8; border-radius: 4px; }
.it-pv { display: flex; align-items: center; min-height: 92px; margin: 4px 0 2px; padding: 18px 10px; overflow-x: auto; overflow-y: hidden; border: 1px solid #cfe5f6; border-radius: 8px; background: #9fd3f2 url(/assets/mapbg/100010000.jpg) center 64% / cover no-repeat; }
.it-pv-note { margin: 2px 0 8px; font-size: 12px; }
.pv-z { display: inline-block; flex: none; margin: 0 auto; zoom: 2; line-height: 0; } /* margin auto 置中：太寬時靠左、可以捲動（justify-content: center 會切掉左邊） */
.pv-z i, .pv-z b { image-rendering: -moz-crisp-edges; image-rendering: pixelated; }
.tgb { display: inline-flex; align-items: flex-start; }
.tgb > i { flex: none; display: block; background-repeat: no-repeat; }
.tgb > b { flex: none; display: block; box-sizing: border-box; background-repeat: repeat-x; font-weight: normal; font-size: 12px; line-height: 13px; white-space: nowrap; }
.tgb > b > span { position: relative; z-index: 1; display: block; padding: 0 1px; }
.cbb { position: relative; display: inline-block; }
.cbb > i { position: absolute; display: block; }
.cbb > b { position: absolute; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: normal; font-size: 12px; white-space: nowrap; }
.it-quick .n { font-weight: normal; font-size: 11px; opacity: .85; margin-left: 2px; }
@media (max-width: 520px) {
  .pv-z.pv-wide { zoom: 1; }
  .it-pv { min-height: 72px; padding: 12px 6px; }
}
/* 物品庫：詳細（清單上方 / 每件物品的頁面） */
.it-box { scroll-margin-top: 8px; }
.it-box .hd .it-ico, .it-head .it-ico { width: 56px; height: 56px; }
.it-box .hd .it-ico img, .it-head .it-ico img { max-width: 44px; max-height: 44px; width: auto; height: auto; }
.it-box .hd b { font-size: 17px; }
.it-head { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.it-nm { font-size: 18px; font-weight: bold; color: #7a3b07; }
.it-kd { font-size: 13px; color: #8a6a44; }
.it-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px; margin-top: 8px; }
.it-cols h4, .itpage h3 { margin: 6px 0 4px; font-size: 14px; color: #c2410c; }
.it-req { width: auto; min-width: 220px; }
.it-req th { width: 90px; text-align: left; background: #fff6df; white-space: nowrap; }
.it-st { margin: 4px 0; padding: 6px 10px; list-style: none; background: #172033; color: #fff; border-radius: 6px; font-size: 13px; line-height: 1.7; }
.it-st li::before { content: "・"; color: #ffd36b; }
.it-desc { margin: 6px 0; padding: 6px 10px; white-space: pre-wrap; word-break: break-word; background: #fffaf0; border-left: 3px solid #f0b55a; border-radius: 4px; }
.it-book { margin: 6px 0; }
.tscroll .it-drop { min-width: 0; }
.it-drop td { vertical-align: middle; }
.it-drop td.num { white-space: nowrap; }
@media (max-width: 820px) {
  .it-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .it-grid { grid-template-columns: minmax(0, 1fr); }
  .nb-route th { width: auto; padding: 4px; font-size: 12px; }
  .nb-route td { padding: 4px 6px; }
  .nb-ap th, .nb-ap td { white-space: normal; padding: 4px; font-size: 12px; }
  .nb-ap td.num { white-space: nowrap; }
  .nb-ap .l50 { display: none; } /* 手機：只列 Lv.30 / 70 */
  .nb-gear tbody th { width: 64px; padding: 4px; font-size: 12px; white-space: normal; }
  .nb-gear td { padding: 4px; }
  .nb-branch { padding: 6px 7px; }
  .panel .nb-class > h3 { font-size: 15px; }
  .it-req { width: 100%; min-width: 0; }
}

/* ════ v2.70：怪物圖鑑（/mobs）與掉落查詢怪物頁的「屬性與推薦職業」════ */
body[data-page="mobs"] #header { background-image: url(/assets/mapbg/105050000.jpg); }
.mb-cls { margin-bottom: 2px; }
.mb-fam .tabs.sub { margin: 4px 0; }
.mb-famnote { margin: 4px 0; padding: 6px 10px; font-size: 13px; background: #f3fbff; border: 1px solid #cfe5f6; border-radius: 8px; color: #1d4f75; }
.mb-famnote b { color: #1d5e8f; }
.mb-wonly { margin: 0 0 4px; }
.mb-filter .lv label { font-size: 12px; color: #7a5a35; }
.mb-filter .lv input { width: 84px; }
.mb-card.rec { background: linear-gradient(90deg, #f2fbe9, rgba(255, 255, 255, 0) 70%); }
.mb-hd { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.mob .ud, .mb-blk .ud { display: inline-block; margin-left: 4px; padding: 0 6px; font-size: 11px; line-height: 17px; font-weight: bold; color: #fff; background: #6b5a8a; border-radius: 8px; }
.mb-fs { display: inline-block; margin-left: 4px; padding: 0 6px; font-size: 11px; line-height: 17px; font-weight: bold; color: #fff; background: #3c9a1a; border-radius: 8px; }
.mb-st { margin: 3px 0; font-size: 13px; color: #5a3d1c; }
.mb-st b { color: #c2410c; }
.mb-st span { margin-left: 8px; color: #8a6a44; font-size: 12px; white-space: nowrap; }
.mb-st span::before { content: "・"; margin-right: 2px; color: #d9b98a; }
.mb-el { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin: 3px 0; font-size: 12px; }
.mb-g { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px; }
.mb-g small { color: #8a6a44; font-size: 11px; margin-left: 2px; }
.mb-lbl { font-size: 11px; color: #7a5a35; }
.mb-lbl.w { color: #2f7d12; } .mb-lbl.r { color: #8a6a44; } .mb-lbl.i { color: #777; }
.el { --ec: #8a6a44; display: inline-block; min-width: 20px; padding: 0 6px; text-align: center; font-size: 12px; line-height: 18px; font-weight: bold; border-radius: 9px; color: #fff; background: var(--ec); border: 1px solid var(--ec); }
.el.e-F { --ec: #e2462a; } .el.e-I { --ec: #2b8fd6; } .el.e-L { --ec: #7a5cd6; } .el.e-S { --ec: #4f9a2c; } .el.e-H { --ec: #d49a00; } .el.e-D { --ec: #5b4a6b; }
.el.r { color: var(--ec); background: #fff; }
.el.i { color: #8a8a8a; background: #f1f1f1; border: 1px dashed #b5b5b5; text-decoration: line-through; }
.mb-rec, .mb-bad { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; margin: 3px 0; font-size: 12px; }
.mb-h { flex: none; font-size: 11px; color: #fff; background: #3c9a1a; padding: 0 6px; line-height: 17px; border-radius: 8px; }
.mb-bad { color: #9a5a3a; }
.mb-bad .mb-h { background: #b0795a; }
.mb-any { color: #5a3d1c; }
.jb { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; padding: 1px 7px; border-radius: 6px; border: 1px solid #bfe3ad; background: #effbe9; color: #2d5a14; font-weight: bold; }
.jb small { font-weight: normal; color: #4d7a33; font-size: 11px; }
.jb.on { border-color: #f08a1c; background: #fff3dc; box-shadow: 0 0 0 1px #f08a1c; color: #7a3b07; }
.mb-note { margin: 3px 0; font-size: 12px; color: #b45309; }
.mb-rules li { font-size: 13px; }
.mb-ftbl th { white-space: normal; text-align: left; width: 38%; background: #fff6df; }
.mb-ftbl td { font-size: 12px; line-height: 1.9; }
.tscroll .mb-ftbl { min-width: 0; }
.mb-fams { margin-top: 10px; }
.mob-all-list .mb-wk { color: #8a6a44; font-size: 11px; }
.mb-blk { margin: 10px 0 4px; padding: 8px 10px; border: 1px solid #bfe3ad; border-left: 5px solid #3c9a1a; border-radius: 8px; background: #fbfff7; }
.mobpage .mb-blk h3 { margin: 0 0 4px; }
.mb-blk .mb-el { font-size: 13px; }
.mb-blk .more { margin: 4px 0 0; }
@media (max-width: 520px) {
  .mb-st span { margin-left: 4px; }
  .mb-filter .lv input { width: 70px; }
  .mb-filter select { flex: 1 1 40%; min-width: 0; }
  .mb-ftbl th { width: auto; font-size: 12px; padding: 4px; }
  .mb-ftbl td { padding: 4px; }
}
/* 首頁攻略專區：怪物圖鑑的橫幅；7 個橫幅時電腦版改 4 欄（4 + 3） */
.banner.b7 { background: linear-gradient(#ff9ecf, #d4508f); }
@media (min-width: 821px) { .banners:has(> :nth-child(7)) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ════ v2.70：嵌入模式（遊戲內的官網視窗，?embed=1 → <html data-embed>）════
   伺服器已經拿掉標頭大圖、選單、跑馬燈、側欄、開始遊戲、頁尾（<!--noembed-->）；這裡把版面縮成單欄、間距變小（視窗約 420px 寬），
   不顯示頁面背景大圖、所有動畫（停著時不佔主執行緒），開始遊戲的連結隱藏（玩家已經在遊戲裡） */
html[data-embed] body { background: #fffaf0; }
html[data-embed] body::before, html[data-embed] body::after { content: none; }
html[data-embed] #wrap { max-width: none; margin: 0; border: 0; box-shadow: none; background: #fffaf0; }
html[data-embed] #cols { display: block; padding: 6px; }
html[data-embed] .panel { margin-bottom: 8px; border-width: 1px; border-radius: 8px; box-shadow: none; }
html[data-embed] .panel > h1, html[data-embed] .panel > h2 { padding: 4px 10px; font-size: 15px; }
html[data-embed] .panel > h1 .hi, html[data-embed] .panel > h2 .hi { width: 24px; height: 24px; margin: -5px 5px -7px -2px; }
html[data-embed] .panel > .bd { padding: 8px; }
html[data-embed] .crumbs { margin: 0 0 4px 2px; }
html[data-embed] .lead { margin-bottom: 6px; font-size: 13px; }
html[data-embed] .mob { grid-template-columns: 70px minmax(0, 1fr); gap: 8px; padding: 8px 2px; }
html[data-embed] .mobimg { width: 68px; height: 68px; }
html[data-embed] a[href="/play"], html[data-embed] a[href^="/play?"], html[data-embed] a[href^="/play#"], html[data-embed] .btn-start, html[data-embed] #totop { display: none !important; }
html[data-embed] *, html[data-embed] *::before, html[data-embed] *::after { animation: none !important; transition: none !important; }
