/* 公会 — navy banners and gold trim */
.gd { --gd-navy: #16224a; --gd-royal: #2a4a9a; --gd-steel: #8fa6d8; --gd-gold: #ffd35a; display: grid; gap: 10px; }
.gd img.px, .gd-modal img.px { image-rendering: pixelated; }
.gd .bad { color: var(--bad); }
.gd-card { background: linear-gradient(rgba(58, 90, 170, 0.10), rgba(58, 90, 170, 0) 60%), var(--plate); box-shadow: var(--px), inset 0 2px 0 0 rgba(143, 166, 216, 0.18); }
.gd-card h4 { margin: 0; }
.gd-ci img, .btn .gd-ci img { width: 13px; height: 13px; }
.gd-purse .gd-ci img { width: 16px; height: 16px; }
.gd-rw { font: 12px var(--font-cn); }

/* sub navigation */
.gd-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.gd-nav button { position: relative; display: grid; justify-items: center; gap: 1px; padding: 5px 0 4px; border: 0; color: var(--muted); font: 13px var(--font-cn);
  background: linear-gradient(#1f2a4e, #151a30); box-shadow: var(--px), inset 0 -3px 0 0 rgba(0, 0, 0, 0.35); }
.gd-nav button img { width: 26px; height: 24px; object-fit: contain; }
.gd-nav button.on { color: var(--gd-gold); background: linear-gradient(#2e4486, #1c2a5a); box-shadow: var(--px), inset 0 -3px 0 0 var(--gd-gold); transform: translateY(-1px); }

/* emblems */
.gd-emb { width: 32px; height: 36px; object-fit: contain; flex: none; }
.gd-emb.sm { width: 20px; height: 22px; }
.gd-emb.xl { width: 56px; height: 63px; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.45)); }
.gd-emb.xxl { width: 80px; height: 90px; filter: drop-shadow(0 0 10px rgba(255, 211, 90, 0.35)); }

/* join */
.gd-hero { display: grid; gap: 8px; padding: 10px; background: radial-gradient(circle at 80% 0%, rgba(255, 211, 90, 0.18), transparent 55%), linear-gradient(#24346c, #141b38);
  box-shadow: var(--px), inset 0 0 0 1px rgba(255, 211, 90, 0.4); }
.gd-hero-t { display: grid; gap: 2px; }
.gd-hero-t b { font: 22px var(--font-cn); font-weight: normal; color: var(--gd-gold); letter-spacing: 2px; }
.gd-hero-t span { font-size: 12px; color: #c8d4f2; }
.gd-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.gd-perks div { display: grid; justify-items: center; gap: 1px; padding: 5px 2px; background: rgba(10, 14, 30, 0.55); box-shadow: 0 0 0 1px rgba(143, 166, 216, 0.25); text-align: center; }
.gd-perks img { width: 28px; height: 26px; object-fit: contain; }
.gd-perks b { font: 13px var(--font-cn); font-weight: normal; color: #fff; }
.gd-perks small { font-size: 10px; color: var(--muted); }
.gd-warn { padding: 6px 10px; font-size: 13px; color: #ffd0a0; background: rgba(120, 50, 10, 0.4); box-shadow: var(--px); }
.gd-list { gap: 6px; }
.gd-g { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; background: #141a30; box-shadow: 0 0 0 1px rgba(143, 166, 216, 0.2); }
.gd-mm { display: grid; gap: 1px; min-width: 0; }
.gd-mm b { font: 15px var(--font-cn); font-weight: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-mm b small { font-size: 11px; color: var(--muted); }
.gd-mm span, .gd-mm small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-mm em { font-style: normal; color: var(--good); }

/* hall banner */
.gd-banner { --c1: #2a5ad0; --c2: #ffd35a; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px;
  background: linear-gradient(115deg, color-mix(in srgb, var(--c1) 55%, #0c0f20), #121831 70%); box-shadow: var(--px), inset 0 0 0 2px color-mix(in srgb, var(--c2) 70%, transparent), inset 0 -16px 24px rgba(0, 0, 0, 0.35); }
.gd-bn-mid { display: grid; gap: 3px; min-width: 0; }
.gd-name { font: 22px var(--font-cn); font-weight: normal; color: #fff; text-shadow: 0 2px 0 #0c0810; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-sub { font-size: 12px; color: #d8e2fa; }
.gd-xp { position: relative; height: 12px; background: #0c1024; box-shadow: 0 0 0 1px #05060e; }
.gd-xp i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #c88a1a, var(--gd-gold)); }
.gd-xp span { position: absolute; inset: 0; font: 600 9px/12px var(--font-px); text-align: center; color: #fff; text-shadow: 0 1px 0 #000; }
.gd-purse { display: grid; justify-items: center; gap: 1px; padding: 4px 6px; background: rgba(8, 10, 22, 0.55); box-shadow: 0 0 0 1px rgba(255, 211, 90, 0.4); }
.gd-purse .cost-i { font-size: 15px; }
.gd-purse .cost-i img { width: 16px; height: 16px; }
.gd-purse small { font-size: 10px; color: var(--muted); }
.gd-ann { display: flex; gap: 8px; align-items: baseline; padding: 6px 10px; font-size: 12px; background: #12172c; box-shadow: var(--px); }
.gd-ann b { flex: none; font: 13px var(--font-cn); font-weight: normal; color: var(--gd-gold); }
.gd-perkline { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--gd-steel); padding: 0 2px; }
.gd-check { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; background: linear-gradient(90deg, rgba(255, 211, 90, 0.16), transparent 70%); box-shadow: 0 0 0 1px rgba(255, 211, 90, 0.35); }
.gd-check img { width: 22px; height: 26px; object-fit: contain; }
.gd-check div { display: grid; }
.gd-check b { font: 15px var(--font-cn); font-weight: normal; }
.gd-check small { font-size: 11px; color: var(--muted); }
.gd-check.done { background: none; box-shadow: 0 0 0 1px var(--line); opacity: 0.75; }
.gd-dons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gd-don { display: grid; justify-items: center; gap: 2px; padding: 6px 3px; text-align: center; background: #141a30; box-shadow: 0 0 0 1px rgba(143, 166, 216, 0.22); }
.gd-don img { width: 22px; height: 22px; object-fit: contain; }
.gd-don b { font: 13px var(--font-cn); font-weight: normal; }
.gd-don small { font-size: 10px; color: var(--muted); }
.gd-don .btn { width: 100%; padding: 3px 4px; }
.gd-don.done { opacity: 0.55; }
.gd-mems { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.gd-mem { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 3px 6px 3px 3px; background: #131829; }
.gd-mem.me { background: linear-gradient(90deg, rgba(98, 230, 135, 0.14), #131829 70%); box-shadow: inset 2px 0 0 0 var(--good); }
.gd-face { width: 34px; height: 38px; object-fit: contain; object-position: 50% 0; background: radial-gradient(circle at 50% 70%, #2a355e, #11152a 70%); box-shadow: 0 0 0 1px #05060e; flex: none; }
.gd-role { font: 11px var(--font-cn); font-style: normal; padding: 0 4px; margin-right: 2px; background: var(--line); color: var(--text); }
.gd-role.r0 { background: #c88a1a; color: #2a1206; }
.gd-role.r1 { background: #3a6ad0; color: #fff; }
.gd-role.r2 { background: #6a3aa8; color: #f2e2ff; }
.gd-mr { display: grid; justify-items: end; }
.gd-mr small { font-size: 11px; }
.gd-on { color: var(--good); }
.gd-more { justify-self: center; }
.gd-chat ul { list-style: none; margin: 0; padding: 6px 8px; display: grid; gap: 3px; max-height: 168px; overflow: auto; background: #0e1222; box-shadow: inset 0 0 0 1px #05060e; font-size: 12px; }
.gd-chat li { display: flex; gap: 6px; }
.gd-chat li b { flex: none; font-weight: normal; color: var(--gd-steel); }
.gd-chat li.me b { color: var(--good); }
.gd-say { display: flex; gap: 6px; }
.gd-say .txt { flex: 1; width: auto; min-width: 0; font-size: 14px; }
.gd-foot { display: flex; justify-content: center; }
.gd-foot .link { margin: 0; }

/* boss */
.gd-boss { display: grid; justify-items: center; gap: 6px; padding: 10px; text-align: center;
  background: radial-gradient(ellipse at 50% 62%, rgba(255, 90, 60, 0.28), transparent 60%), linear-gradient(#1c0f24, #2c1630 70%, #3a2030); box-shadow: var(--px), inset 0 0 0 1px rgba(255, 120, 90, 0.35); }
.gd-boss-st { position: relative; display: grid; place-items: end center; width: 100%; height: 112px; background: linear-gradient(transparent 82%, rgba(0, 0, 0, 0.45) 82%); }
.gd-boss-img { height: 104px; width: auto; max-width: 70%; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.5)); animation: gdBob 1.6s steps(4) infinite; }
.gd-boss-lv { position: absolute; left: 4px; top: 4px; font: 700 14px var(--font-px); font-style: normal; color: #2a1206; background: var(--gd-gold); padding: 1px 6px; box-shadow: var(--px); }
.gd-boss-n { font: 20px var(--font-cn); font-weight: normal; color: #ffd0c0; letter-spacing: 2px; text-shadow: 0 2px 0 #0c0810; }
.gd-hp { position: relative; width: 100%; height: 16px; background: #1a0a12; box-shadow: 0 0 0 2px #05060e; }
.gd-hp i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#ff7a6a, #c8203a); box-shadow: inset 0 2px 0 0 rgba(255, 255, 255, 0.3); transition: width 0.4s steps(6); }
.gd-hp span { position: absolute; inset: 0; font: 600 11px/16px var(--font-px); color: #fff; text-shadow: 0 1px 0 #000; }
.gd-hp.sm { height: 12px; }
.gd-hp.sm span { font-size: 9px; line-height: 12px; }
.gd-boss-row { display: flex; justify-content: space-between; width: 100%; font-size: 12px; }
.gd-go { width: 100%; font-size: 18px; padding: 8px; }
.gd-boss p { margin: 0; }
.gd-track { position: relative; height: 6px; background: #0e1222; box-shadow: 0 0 0 1px #05060e; }
.gd-track i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #c8203a, var(--gd-gold)); }
.gd-tiers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.gd-tier { display: grid; justify-items: center; align-content: start; gap: 2px; padding: 4px 1px; text-align: center; background: #141a30; box-shadow: 0 0 0 1px rgba(143, 166, 216, 0.2); }
.gd-tier > b { font: 600 10px var(--font-px); color: var(--muted); }
.gd-tr { display: grid; justify-items: center; gap: 1px; }
.gd-tr .cost-i { font-size: 10px; }
.gd-tier small { font-size: 10px; }
.gd-tier .btn { padding: 1px 4px; font-size: 12px; min-height: 22px; }
.gd-tier.ok { box-shadow: 0 0 0 1px var(--gd-gold), 0 0 8px rgba(255, 211, 90, 0.3); }
.gd-tier.got { opacity: 0.5; }
.gd-kill { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; background: linear-gradient(90deg, rgba(255, 211, 90, 0.2), transparent); box-shadow: 0 0 0 1px var(--gd-gold); }
.gd-kill img { width: 24px; height: 20px; }
.gd-kill div { display: grid; }
.gd-kill b { font: 15px var(--font-cn); font-weight: normal; color: var(--gd-gold); }
.gd-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 13px; }
.gd-rank li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: 3px 6px; background: #131829; }
.gd-rank li i { font: 700 12px var(--font-px); font-style: normal; color: var(--muted); text-align: center; }
.gd-rank li:nth-child(1) i { color: #ffd35a; } .gd-rank li:nth-child(2) i { color: #d8e2fa; } .gd-rank li:nth-child(3) i { color: #e0a070; }
.gd-rank li b { font-weight: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-rank li span { font: 600 12px var(--font-px); }
.gd-rank li.me { background: linear-gradient(90deg, rgba(98, 230, 135, 0.16), #131829 70%); }
.gd-report { display: grid; justify-items: center; gap: 4px; text-align: center; }
.gd-report > img { height: 72px; width: auto; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.5)); }
.gd-dmg { font: 700 30px var(--font-px); color: var(--gd-gold); text-shadow: 0 3px 0 #0c0810; animation: pop 0.35s steps(5); }
.gd-killed { font: 17px var(--font-cn); color: #ff9a8a; animation: pop 0.4s steps(5); }
.gd-report .gd-hp { width: 100%; }

/* war */
.gd-warhead { gap: 4px; }
.gd-pipe { display: flex; align-items: center; justify-content: center; gap: 4px; }
.gd-pipe div { display: grid; justify-items: center; padding: 3px 10px; background: #131829; box-shadow: 0 0 0 1px var(--line); color: var(--muted); }
.gd-pipe div b { font: 15px var(--font-cn); font-weight: normal; }
.gd-pipe div small { font-size: 10px; }
.gd-pipe div.on { color: #2a1206; background: var(--gd-gold); box-shadow: var(--px); }
.gd-pipe div.on small { color: #5a3a08; }
.gd-pipe > i { font-style: normal; color: var(--muted); }
.gd-cd { margin: 0; text-align: center; font-size: 12px; color: var(--muted); }
.gd-cd b { color: var(--text); font-weight: normal; }
.gd-sign { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.gd-sign > div { display: grid; gap: 2px; }
.gd-sign > div b { font: 17px var(--font-cn); font-weight: normal; color: var(--gd-gold); }
.gd-sign > div span { font-size: 12px; color: var(--muted); }
.gd-sign > .btn, .gd-sign > .tag { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
.gd-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; align-items: center; }
.gd-side { --c1: #2a5ad0; display: grid; justify-items: center; gap: 2px; padding: 8px 4px; text-align: center;
  background: linear-gradient(color-mix(in srgb, var(--c1) 50%, #0c0f20), #11152a); box-shadow: var(--px); min-width: 0; }
.gd-side.us { box-shadow: var(--px), inset 0 -3px 0 0 var(--good); }
.gd-side.them { box-shadow: var(--px), inset 0 -3px 0 0 var(--bad); }
.gd-side b { font: 14px var(--font-cn); font-weight: normal; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-side em { font: 700 26px var(--font-px); font-style: normal; color: #fff; text-shadow: 0 2px 0 #0c0810; }
.gd-side em i { font-style: normal; font-size: 18px; color: var(--gd-gold); margin-left: 2px; }
.gd-vsx { font: 700 20px var(--font-px); font-style: normal; color: var(--gd-gold); text-shadow: 0 2px 0 #0c0810; }
.gd-bar { position: relative; height: 8px; background: var(--bad); box-shadow: 0 0 0 2px #05060e; }
.gd-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--good); box-shadow: 2px 0 0 0 #fff; }
.gd-atk { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 6px 8px; background: #131829; box-shadow: var(--px); font: 14px var(--font-cn); }
.gd-atk i { width: 12px; height: 12px; background: var(--line); box-shadow: 0 0 0 1px #05060e; transform: rotate(45deg); margin: 0 2px; }
.gd-atk i.on { background: var(--gd-gold); box-shadow: 0 0 0 1px #05060e, 0 0 6px var(--gd-gold); }
.gd-atk .small { width: 100%; }
.gd-result { display: grid; justify-items: center; gap: 4px; padding: 10px; text-align: center; background: #131829; box-shadow: var(--px); }
.gd-result b { font: 30px var(--font-cn); font-weight: normal; letter-spacing: 6px; text-shadow: 0 3px 0 #0c0810; }
.gd-result.win b { color: var(--gd-gold); } .gd-result.lose b { color: #b8aac8; } .gd-result.draw b { color: var(--gd-steel); }
.gd-result span { font-size: 12px; color: var(--muted); }
.gd-result .btn { gap: 6px; flex-wrap: wrap; }
.gd-foes { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.gd-foes li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 6px; align-items: center; padding: 3px 6px 3px 3px; background: linear-gradient(90deg, rgba(255, 93, 108, 0.08), #131829 60%); }
.gd-foes li.done { opacity: 0.55; }
.gd-odd { font: 11px var(--font-cn); font-style: normal; padding: 0 3px; }
.gd-odd.o0 { color: #0e2a14; background: var(--good); } .gd-odd.o1 { color: #2a1206; background: var(--gd-gold); }
.gd-odd.o2 { color: #2a1206; background: #ff9a5a; } .gd-odd.o3 { color: #fff; background: #c8203a; }
.gd-stars { display: inline-flex; gap: 0; font-size: 13px; line-height: 1; }
.gd-stars i { font-style: normal; color: #3a3450; text-shadow: 0 1px 0 #05060e; }
.gd-stars i.on { color: var(--gd-gold); }
.gd-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 12px; }
.gd-hist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 6px; align-items: center; padding: 3px 6px; background: #131829; }
.gd-hist li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-hist li b { font-weight: normal; }
.gd-hist li.win b { color: var(--gd-gold); } .gd-hist li.lose b { color: var(--muted); }

/* tech & shop */
.gd-techs { gap: 5px; }
.gd-tech { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; background: #141a30; box-shadow: 0 0 0 1px rgba(143, 166, 216, 0.2); }
.gd-tech > img { width: 24px; height: 24px; object-fit: contain; padding: 3px; background: #0c1024; box-shadow: 0 0 0 1px var(--gd-royal); }
.gd-pips { display: flex; gap: 2px; margin-top: 2px; }
.gd-pips i { width: 9px; height: 5px; background: #2a3150; }
.gd-pips i.on { background: var(--gd-gold); }
.gd-pips i.lk { background: #171a28; box-shadow: inset 0 0 0 1px #2a3150; }
.gd-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 6px; }
.gd-item { display: grid; justify-items: center; align-content: start; gap: 2px; padding: 7px 4px 5px; text-align: center; background: #141a30; box-shadow: 0 0 0 1px rgba(143, 166, 216, 0.22); }
.gd-item img { width: 30px; height: 30px; object-fit: contain; }
.gd-item b { font: 13px var(--font-cn); font-weight: normal; }
.gd-item small { font-size: 10px; color: var(--muted); min-height: 13px; }
.gd-item .btn { width: 100%; padding: 3px 4px; }
.gd-item.lim { background: linear-gradient(rgba(255, 140, 60, 0.22), #141a30 70%); box-shadow: 0 0 0 1px #ff9a5a; }
.gd-item.lim small { color: #ffb88a; }
.gd-item.skin { background: linear-gradient(rgba(90, 208, 200, 0.22), #141a30 70%); box-shadow: 0 0 0 1px #5ad0c8; }
.gd-item.skin img { width: 38px; height: 40px; }
.gd-item.out { opacity: 0.5; }

/* create */
.gd-modal .gd-create { display: grid; justify-items: center; gap: 8px; }
.gd-pick { display: grid; gap: 4px; justify-items: center; width: 100%; }
.gd-pick > span { font: 13px var(--font-cn); color: var(--muted); }
.gd-syms { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; width: 100%; }
.gd-sym { padding: 2px; border: 0; background: var(--plate); box-shadow: 0 0 0 1px var(--line); }
.gd-sym img { width: 100%; height: auto; aspect-ratio: 16 / 18; }
.gd-sym.on { box-shadow: 0 0 0 2px var(--gd-gold, #ffd35a); }
.gd-modal .modal-actions { width: 100%; }

@keyframes gdBob { 50% { transform: translateY(-2px); } }
