/* PLAC 公會中心：選語言／登入＝深色（像遊戲的登入畫面），大廳和報名表＝淺色＋深色導覽列。報名表樣子照示意圖 v2。 */
* { box-sizing: border-box }
:root { --bg: #e9eaee; --card: #fff; --ink: #222; --sub: #666; --line: #e3e5ea; --head: #1f2430; --bar: #3a4152; --red: #d63a3a; --green: #1c7c3c;
  --night: #121722; --night2: #1b2130; --nline: #2e3649; --gold: #e2b450 }
body { margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Segoe UI", "Microsoft JhengHei", "PingFang TC", "PingFang SC", "Noto Sans CJK TC", "Leelawadee UI", "Noto Sans Thai", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif }
html:lang(zh-Hans) body { font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif }
html:lang(ko) body { font-family: "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif }
html:lang(th) body { font-family: "Segoe UI", "Leelawadee UI", "Noto Sans Thai", "Thonburi", sans-serif }
a { color: inherit }
button { font-family: inherit }

/* ---------- 選語言、登入（深色） ---------- */
.gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 16px;
  background: radial-gradient(ellipse at 50% -10%, #34405a 0%, #1a2030 45%, var(--night) 100%); color: #eef1f6 }
.gcard { width: 100%; max-width: 420px; background: rgba(27, 33, 48, .92); border: 1px solid var(--nline); border-radius: 16px; padding: 26px 24px 22px;
  box-shadow: 0 18px 50px #0007; text-align: center }
.logo { display: flex; flex-direction: column; align-items: center; margin-bottom: 14px }
.logo b { font-size: 34px; letter-spacing: 6px; color: var(--gold); text-shadow: 0 2px 12px #e2b45040 }
.logo span { font-size: 11px; letter-spacing: 3px; color: #8d97ab; margin-top: 2px }
.gcard h1 { font-size: 21px; margin: 6px 0 4px } .gcard .sub { color: #a9b2c4; font-size: 14px; line-height: 1.5; min-height: 21px; margin-bottom: 14px }
.gcard h1.multi { font-size: 17px; font-weight: 600 } .gcard .sub.multi { margin-bottom: 16px }
.langs { display: grid; gap: 9px }
.lng { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; width: 100%; padding: 14px 16px; border-radius: 11px; cursor: pointer;
  background: #232a3b; border: 1px solid #343d52; color: #fff; font-size: 18px; text-align: left; transition: border-color .15s, background .15s }
.lng b { font-weight: 600 } .lng small { color: #8d97ab; font-size: 12.5px }
.lng:hover, .lng:focus-visible { border-color: var(--gold); background: #2a3245; outline: none } .lng.sel { border-color: var(--gold) }
.lbl { display: block; text-align: left; font-size: 13.5px; color: #a9b2c4; margin: 12px 0 6px }
input.big { width: 100%; font-size: 19px; padding: 12px 14px; border-radius: 10px; border: 1px solid #3a4459; background: var(--night); color: #fff; outline: none }
input.big:focus { border-color: var(--gold) }
.hint { font-size: 12.5px; color: #8d97ab; margin: 8px 2px 4px; text-align: left; line-height: 1.5 }
.btn.wide { width: 100%; font-size: 17px; padding: 12px; border-radius: 10px; margin-top: 14px; background: #1f9a50 }
.btn.wide:hover { background: #22a957 }
.link { background: none; border: 0; color: #9fb4d6; font-size: 14px; margin-top: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px }
.whoami { display: inline-block; background: #232a3b; border: 1px solid #343d52; border-radius: 20px; padding: 3px 12px; font-size: 13.5px; color: var(--gold); margin-bottom: 4px }
.steps { display: flex; justify-content: center; gap: 6px; margin: -4px 0 14px } .steps i { width: 28px; height: 4px; border-radius: 2px; background: #343d52 } .steps i.on { background: var(--gold) }
.pinbox { position: relative; display: flex; justify-content: center; gap: 8px; margin: 6px auto 4px; cursor: text }
.cell { width: 46px; height: 56px; border-radius: 10px; border: 1px solid #3a4459; background: var(--night); display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff; transition: border-color .12s }
.cell.cur { border-color: var(--gold); box-shadow: 0 0 0 3px #e2b45033 }
.pinput { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; border: 0; background: transparent; color: transparent; caret-color: transparent }
.gl { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid #343d52; color: #a9b2c4; border-radius: 20px; padding: 6px 13px; font-size: 13.5px; cursor: pointer }
.gl:hover { color: #fff; border-color: #56627c }

/* ---------- 導覽列（大廳、報名表） ---------- */
.nav { position: sticky; top: 0; z-index: 5; background: #161b26; color: #fff; display: flex; align-items: center; gap: 12px; padding: 8px 16px; box-shadow: 0 1px 6px #0004 }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none } .brand b { color: var(--gold); letter-spacing: 3px; font-size: 20px } .brand span { color: #c9ced8; font-size: 14px }
.navr { margin-left: auto; display: flex; align-items: center; gap: 8px }
.nb { display: inline-flex; align-items: center; gap: 5px; background: #262d3d; color: #d6dbe5; border: 0; border-radius: 8px; padding: 6px 10px; font-size: 13.5px; cursor: pointer }
.nb:hover { background: #313a4e; color: #fff }
.who { font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px }
.badge { font-style: normal; background: var(--gold); color: #3a2a00; font-size: 11.5px; font-weight: 700; border-radius: 5px; padding: 1px 6px; vertical-align: middle }

/* ---------- 大廳 ---------- */
.lobby { max-width: 960px; margin: 0 auto; padding: 18px 16px 40px }
.hello { background: var(--card); border-radius: 12px; padding: 16px 18px; box-shadow: 0 1px 3px #0002 }
.hello h1 { margin: 0 0 8px; font-size: 22px }
.roles { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px }
.rl { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; padding: 2px 8px; font-size: 13.5px }
.rl i { width: 8px; height: 8px; border-radius: 4px }
.warnbox { background: #fff4e5; border-left: 4px solid #e08a2c; border-radius: 6px; padding: 8px 11px; font-size: 14px; color: #6b4300 }
.sect { margin: 20px 2px 10px; font-size: 13px; letter-spacing: 1px; color: var(--sub); font-weight: 600 }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px }
.tile { position: relative; display: flex; gap: 14px; align-items: flex-start; background: var(--card); border-radius: 12px; padding: 16px 16px 40px; text-decoration: none;
  color: var(--ink); box-shadow: 0 1px 3px #0002; border: 2px solid transparent; transition: border-color .15s, transform .15s }
a.tile:hover { border-color: #1f9a50; transform: translateY(-1px) } a.tile.admin:hover { border-color: var(--gold) }
.ti { flex: none; width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #eef0f4; color: #7a8394 }
.ti.red { background: #fde3e3; color: var(--red) } .ti.gold { background: #fff1cf; color: #a8770b }
.tb { min-width: 0 } .tb h2 { margin: 2px 0 4px; font-size: 18px; display: flex; align-items: center; gap: 8px } .tb p { margin: 0 0 8px; color: var(--sub); font-size: 13.5px; line-height: 1.45 }
.tmeta { font-size: 13.5px; margin-top: 4px; line-height: 1.45 } .tmeta.good { color: var(--green); font-weight: 600 } .tmeta.warn { color: #b25e00; font-weight: 600 }
.go { position: absolute; right: 14px; bottom: 11px; font-size: 14px; font-weight: 600; color: #1f9a50 } .tile.admin .go { color: #a8770b }
.tile.soon { border: 2px dashed #c9ced8; background: transparent; box-shadow: none; padding-bottom: 16px }
.tile.soon h2 { color: var(--sub) }

/* ---------- MASS 報名表 ---------- */
.wrap { max-width: 1760px; margin: 0 auto; padding: 12px 14px }
.crumb { display: inline-flex; align-items: center; gap: 2px; color: var(--sub); text-decoration: none; font-size: 14px; margin: 0 0 8px } .crumb:hover { color: var(--ink) }
.top { background: var(--head); color: #fff; border-radius: 10px; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px }
.top h1 { margin: 0; font-size: 24px } .top .sub { color: #c9ced8; font-size: 14px }
.top .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap }
.pill { background: #394055; padding: 4px 10px; border-radius: 20px; font-size: 12.5px; color: #fff; white-space: nowrap }
.pill.on { background: var(--green) } .pill.off { background: #8a2b2b }
.bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 }
.chip { background: var(--card); border-radius: 8px; padding: 7px 11px; font-size: 14px; box-shadow: 0 1px 2px #0002 }
.chip i { display: inline-block; width: 9px; height: 9px; border-radius: 5px; margin-right: 6px } .chip b { font-size: 17px }
.ban { background: var(--red); color: #fff; font-size: 20px; font-weight: bold; text-align: center; border-radius: 8px; padding: 9px; margin: 8px 0 }
.rules { background: var(--card); border-radius: 8px; padding: 9px 13px; font-size: 14px; line-height: 1.7; margin-bottom: 10px }
.me { background: var(--card); border-radius: 8px; padding: 10px 13px; margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 15px; box-shadow: 0 1px 2px #0002 }
.me input { font-size: 16px; padding: 6px 8px; border: 1px solid #c8ccd6; border-radius: 6px; width: 170px }
.me .roles { display: inline-flex } .me .warn { color: #b25e00; font-weight: 600; font-size: 14px }
.me .adm { margin-left: auto; display: inline-flex; gap: 6px; align-items: center }
.btn { background: var(--green); color: #fff; border: 0; border-radius: 6px; padding: 7px 13px; font-size: 15px; cursor: pointer; text-decoration: none; display: inline-block }
.btn.gray { background: #6b7280 } .btn.red { background: var(--red) } .btn.small { padding: 3px 9px; font-size: 13px }
.btn:disabled { opacity: .6; cursor: default }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.pt { background: var(--card); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px #0002 }
.pth { background: var(--bar); color: #fff; padding: 7px 12px; font-size: 16px; display: flex; gap: 10px; align-items: center }
.pth .que { background: var(--red); border-radius: 4px; padding: 1px 8px; font-size: 12.5px } .pth .cnt { margin-left: auto; color: #cfd6e4 }
table { border-collapse: collapse; width: 100% } th { background: #eef0f4; font-weight: 600; padding: 5px; border-bottom: 1px solid #ccd; font-size: 12.5px; text-align: left }
td { border-bottom: 1px solid var(--line); padding: 2px 5px; height: 38px; font-size: 13.5px; white-space: nowrap }
td.n { width: 22px; text-align: center; color: #888 } td.role { width: 64px } td.role small.subr { display: block; font-size: 11px; line-height: 1.15; color: #4a5263; margin-left: 13px; white-space: nowrap } td.role i, .bh i { display: inline-block; width: 8px; height: 8px; border-radius: 4px; margin-right: 5px }
td.wpn { width: 170px } td.wpn img { width: 28px; height: 28px; vertical-align: middle; margin-right: 4px }
td.wpn span { display: inline-block; vertical-align: middle; line-height: 1.1 } td.wpn small { display: block; color: #888; font-size: 10.5px }
td.wpn.pri { background: #f6c4c4; box-shadow: inset 4px 0 var(--red) }
td.gear img { width: 20px; height: 20px; margin-right: 1px; vertical-align: middle } td.gear { width: 112px; white-space: nowrap }
td.call { width: 150px } .tag { color: #fff; border-radius: 4px; padding: 2px 6px; font-size: 11.5px }
td.id { font-weight: bold; white-space: normal } td.id small { display: block; font-weight: normal; color: #666; font-size: 11.5px; line-height: 1.2 }
tr.lock td.id { color: #555 } tr.mine td { background: #e6f5e9 } tr.mine td.wpn.pri { background: #f6c4c4 }
tr.no td { opacity: .45 } tr.no td.id, tr.no td.note { opacity: .7 }
.bench { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 12px } .bc { background: var(--card); border-radius: 8px; overflow: hidden }
.bh { padding: 6px 8px; font-weight: bold; font-size: 13.5px } .bi { padding: 5px 8px; font-size: 13px; border-top: 1px solid #eee } .bi em { display: block; font-size: 11.5px; color: #b05a00; font-style: normal }
h2 { font-size: 17px; margin: 14px 0 8px }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #222; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 15px; display: none; z-index: 9; max-width: 92vw; text-align: center }
.toast.err { background: var(--red) } .toast.ok { background: var(--green) }
.empty { background: var(--card); border-radius: 8px; padding: 30px; text-align: center; color: var(--sub); font-size: 16px }
.dim { color: #9aa1ad }
/* 手機：四隊排成一欄，裝備圖示收起來 */
@media (max-width: 1100px) { .grid { grid-template-columns: 1fr } .bench { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 640px) {
  .wrap { padding: 8px } .top h1 { font-size: 19px } .ban { font-size: 16px }
  td.gear, th.gear { display: none } td.call { width: auto; white-space: normal } td.wpn { width: auto }
  td { font-size: 13px; height: 40px } td.wpn small { display: none }
  .me input { width: 140px } .me .adm { margin-left: 0 }
  .nav { padding: 8px 10px; gap: 8px } .brand span, .hide-s { display: none } .nb { padding: 6px 8px }
  .cell { width: 42px; height: 52px } .pinbox { gap: 6px }
}

/* ---------- 我的武器（/weapons）：上面切「選主玩／選副玩」，點一下就是那一把（各一把）；戰坐在同一份清單最下面 ---------- */
.wpage { max-width: 1000px; margin: 0 auto; padding: 14px 16px 60px }
.wpage h1 { margin: 4px 0 8px; font-size: 22px }
.whelp { color: var(--sub); font-size: 14px; line-height: 1.6; margin: 8px 0 12px }
.wsum { position: sticky; top: 50px; z-index: 4; display: flex; gap: 10px; align-items: stretch; background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 2px 8px #0002 }
.segs { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.seg { min-width: 0; border: 2px solid #d9dde5; background: #f7f8fa; border-radius: 10px; padding: 6px 9px; cursor: pointer; display: flex; flex-direction: column; gap: 3px }
.seg small { font-size: 12px; font-weight: 700; color: #666 }
.seg.main.on { border-color: var(--gold); background: #fff8e6 } .seg.main.on small { color: #8a6100 }
.seg.sub.on { border-color: #3d7fc1; background: #eef5fc } .seg.sub.on small { color: #2f659c }
.segv { display: flex; align-items: center; gap: 6px; font-size: 14px; min-height: 32px; min-width: 0 }
.segv img { width: 32px; height: 32px; flex: none } .segv .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600 }
.segv .x { flex: none; border: 0; background: none; color: #999; font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px }
.wsum .btn { flex: none; padding: 10px 18px; font-size: 16px }
.wtools { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 6px }
.wsearch { font-size: 16px; padding: 9px 12px; border: 1px solid #c8ccd6; border-radius: 9px; width: 100%; max-width: 420px }
.wlines { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin }
.lc { flex: none; border: 1px solid #c8ccd6; background: #fff; border-radius: 16px; padding: 4px 11px; font-size: 13px; cursor: pointer; white-space: nowrap }
.lc.on { background: #1f2430; color: #fff; border-color: #1f2430 }
.wgrid h3 { margin: 18px 2px 8px; font-size: 15px; color: #333; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap }
.wgrid h3 small { font-weight: normal; color: var(--sub); font-size: 12.5px }
.wrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px }
.wt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; background: #fff; border: 2px solid transparent; border-radius: 10px;
  padding: 8px 4px 6px; cursor: pointer; font-size: 12px; line-height: 1.25; color: #222; box-shadow: 0 1px 2px #0002 }
.wt img { width: 54px; height: 54px }
.wt span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: center; min-height: 30px }
.wt .wb { position: absolute; top: 3px; right: 3px; font-style: normal; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 0 5px }
.wt.main { border-color: var(--gold); background: #fff8e6 } .wt.main .wb { background: var(--gold); color: #3a2a00 }
.wt.sub { border-color: #3d7fc1; background: #eef5fc } .wt.sub .wb { background: #3d7fc1; color: #fff }
.wc { display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; padding: 2px 7px 2px 2px; font-size: 13px; background: #eef0f4; color: #222 }
.wc img { width: 26px; height: 26px }
.wc.main { background: #fff1cf } .wc.sub { background: #e3eef9 }
/* 大廳／報名表上的「我的武器」 */
.wchips { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13.5px }
.wchips .wcr { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap } .wchips .wcr b { color: #666; font-weight: 600; margin-right: 2px }
.wchips .wc { cursor: default; padding: 2px } .wchips.big .wc { padding: 2px 8px 2px 2px }
.bi .bw { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: #555; margin-left: 4px } .bi .bw img { width: 20px; height: 20px }
@media (max-width: 640px) {
  .wrow { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px } .wt img { width: 44px; height: 44px } .wt { font-size: 11.5px }
  .wsum { top: 46px; flex-direction: column; padding: 8px 10px } .wsum .btn { width: 100%; padding: 9px }
  .segv img { width: 28px; height: 28px } .segv { font-size: 13px } .wc img { width: 24px; height: 24px }
}

/* ---------- 配裝九宮格（跟遊戲裝備欄一樣：背包 頭 披風／主手 甲 副手／藥水 鞋 食物／坐騎）＋每件最低要穿／公會補到 ---------- */
.build { background: linear-gradient(#232833, #1b1f27); color: #e8eaef; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; box-shadow: 0 2px 8px #0003 }
.bhead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px }
.bhead b { color: var(--gold); font-size: 16px } .bhead span { color: #c9ced8; font-size: 14px }
.bbody { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start }
.bgrid { display: grid; grid-template-columns: repeat(3, 76px); gap: 6px; flex: none }
.bcell { position: relative; width: 76px; height: 76px; border-radius: 8px; background: radial-gradient(#3a4050, #262a33); border: 1px solid #4a5162;
  display: flex; align-items: center; justify-content: center }
.bcell img { width: 68px; height: 68px }
.bcell .lab { font-size: 11px; color: #6f7787; text-align: center }
.bcell.two img { opacity: .28 } .bcell.two .lab { position: absolute; bottom: 3px; font-size: 10px; color: #9aa1ad }
.bcell .tb { position: absolute; right: 2px; bottom: 2px; font-style: normal; font-size: 11px; font-weight: 800; padding: 0 4px; border-radius: 4px; background: var(--gold); color: #3a2a00 }
.bcell .tb.no { background: var(--red); color: #fff } .bcell .tb.unk { background: #5a6170; color: #e0e0e0 }
.bcell.mountc { grid-column: 2 } .bcell.empty { opacity: .35 }
.binfo { flex: 1; min-width: 240px }
.bhint { font-size: 12.5px; color: #aeb5c2; margin-bottom: 6px }
.blist { width: 100%; border-collapse: collapse }
.blist th { background: none; color: #8d95a5; font-weight: 600; font-size: 12px; border-bottom: 1px solid #3a4150; padding: 4px; text-align: left }
.blist td { border-bottom: 1px solid #2f3540; color: #e8eaef; font-size: 13px; height: auto; padding: 4px; white-space: normal }
.blist td img { width: 24px; height: 24px; vertical-align: middle; margin-right: 4px }
.blist td.bp { color: #aeb5c2; white-space: nowrap } .blist td.bmin, .blist td.bre { font-weight: 700; white-space: nowrap }
.blist td.bre { color: var(--gold) } .blist td.bre.no { color: #ff7b7b } .blist td.unk { color: #8d95a5; font-weight: normal }
.bstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: #1b1f27; color: #e8eaef; border-radius: 10px; padding: 8px 10px; margin-bottom: 12px; cursor: pointer }
.bstrip b { color: var(--gold); margin-right: 4px; font-size: 14px }
.bstrip .bzoom { margin-left: auto; color: #8d95a5; font-size: 12px; white-space: nowrap }
.bstrip .bcell { width: 52px; height: 52px } .bstrip .bcell img { width: 46px; height: 46px } .bstrip .bcell .tb { font-size: 10px }
.modal { position: fixed; inset: 0; background: #000a; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 14px }
.mwrap { width: 100%; max-width: 640px; max-height: 92vh; overflow: auto } .mwrap .build { margin-bottom: 10px }
.mwrap > .btn.wide { position: sticky; bottom: 0; box-shadow: 0 -6px 12px #0006 }  /* 手機上配裝比畫面高：「知道了」黏在底下 */
@media (max-width: 640px) {
  .bgrid { grid-template-columns: repeat(3, 66px) } .bcell { width: 66px; height: 66px } .bcell img { width: 58px; height: 58px }
  .bbody { justify-content: center } .binfo { min-width: 100% }
  .bstrip .bcell { width: 44px; height: 44px } .bstrip .bcell img { width: 38px; height: 38px }
}
