@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@500;700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,600;0,9..40,700;1,9..40,400&display=swap");

:root {
  --bg: #0c0a08;
  --bg-2: #14110e;
  --panel: #1a1612;
  --panel-2: #221e18;
  --line: #342e26;
  --text: #f0e6d8;
  --muted: #9a8f7f;
  --accent: #c4a574;
  --accent-2: #e8c99a;
  --ink: #1a1410;
  --s: #e85d4c; --a: #e09a3e; --b: #d4b84a; --c: #6a9e6d; --d: #6b6570;
  --carry: #e8c99a;
  --cn: #c4a574;
  --global: #7a9eb5;
  --font-display: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 4px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 14px/1.55 var(--font-body);
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(196,165,116,.12), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(122,158,181,.08), transparent 50%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 40%, #090807 100%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px 72px; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 顶栏 ---------- */
header.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(12,10,8,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .inner {
  max-width: var(--max); margin: 0 auto; padding: 10px 20px 8px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  letter-spacing: .04em; line-height: 1; white-space: nowrap;
}
.logo span { color: var(--accent); }
.logo small {
  display: block; font-family: var(--font-body); font-size: 10px;
  font-weight: 500; color: var(--muted); letter-spacing: .16em;
  text-transform: uppercase; margin-top: 3px;
}
.region-switch {
  display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; flex: none;
}
.region-switch a {
  padding: 6px 12px; font-size: 12px; letter-spacing: .06em;
  color: var(--muted); background: var(--panel);
}
.region-switch a.on { color: var(--ink); background: var(--accent); font-weight: 600; }
.region-switch a.global.on { background: var(--global); }
.nav { display: flex; gap: 1px; flex-wrap: wrap; }
.nav a {
  padding: 6px 10px; color: var(--muted); font-size: 13px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--accent-2); border-bottom-color: var(--accent); }
.navextra { display: flex; gap: 8px; align-items: center; }
.spacer { flex: 1; min-width: 8px; }

select, input[type=text], button, textarea {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 7px 10px; font: inherit; outline: none;
}
select:focus, input:focus, textarea:focus { border-color: var(--accent); }
button { cursor: pointer; }
button:hover { border-color: var(--accent); }

.source {
  font-size: 11px; color: var(--muted);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  letter-spacing: .02em;
}
.source .dot { opacity: .4; }
.source .pill.scope-cn { border-color: var(--accent); color: var(--accent-2); }
.source .pill.scope-global { border-color: var(--global); color: var(--global); }

.searchbox { position: relative; }
.searchbox input { width: 220px; font-size: 13px; }
.sresults {
  display: none; position: absolute; top: 38px; right: 0; width: 340px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 6px; z-index: 50; max-height: 420px; overflow: auto;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.sresults.on { display: block; }
.sitem { display: flex; align-items: center; gap: 8px; padding: 6px 8px;
  border-radius: 4px; font-size: 13px; }
.sitem:hover { background: var(--panel-2); }
.sitem img, .sitem .ph { width: 26px; height: 26px; border-radius: 4px; }
.sitem .ph { background: var(--panel-2); }
.sitem small { color: var(--muted); margin-left: auto; }

/* ---------- 页头 ---------- */
.pagehead {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin: 28px 0 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.pagehead h1 {
  margin: 0; font-family: var(--font-display); font-size: 28px;
  font-weight: 700; letter-spacing: .02em; line-height: 1.15;
}
.pagehead .note { color: var(--muted); font-size: 13px; }
.pagehead .lede {
  width: 100%; margin: 4px 0 0; color: var(--muted); font-size: 13px;
  max-width: 42em;
}
.pagehead .kw { width: 150px; }

/* ---------- 筛选 ---------- */
.filters {
  background: transparent; border: none; border-radius: 0;
  padding: 0 0 8px; margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
}
.frow { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.frow:last-child { margin-bottom: 0; }
.flabel {
  width: 36px; flex: none; color: var(--muted); font-size: 11px;
  padding-top: 7px; letter-spacing: .12em; text-transform: uppercase;
}
.chips { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 4px 9px 4px 4px; font-size: 12px;
  user-select: none; color: var(--muted); transition: border-color .15s, color .15s;
}
.chip img { width: 16px; height: 16px; border-radius: 3px; }
.chip.on { border-color: var(--accent); color: var(--accent-2); background: #2a241c; }
.chip:hover { border-color: var(--accent); color: var(--text); }

/* ---------- 阵容行（海报风列表） ---------- */
.comp {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 220px;
  gap: 16px; align-items: center;
  background: linear-gradient(90deg, rgba(26,22,18,.95), rgba(22,18,14,.7));
  border: 1px solid var(--line); border-left: 3px solid var(--line);
  border-radius: 0; padding: 14px 16px; margin-bottom: 8px;
  transition: border-color .18s, transform .18s, background .18s;
}
.comp:hover {
  border-color: #4a4034; border-left-color: var(--accent);
  transform: translateX(2px);
  background: linear-gradient(90deg, #221c16, #1a1612);
}
.comp.tier-S { border-left-color: var(--s); }
.comp.tier-A { border-left-color: var(--a); }
.comp.tier-B { border-left-color: var(--b); }
.tier {
  width: 40px; height: 40px; border-radius: 2px; display: grid;
  place-items: center; font-family: var(--font-display); font-weight: 700;
  font-size: 20px; color: var(--ink); position: relative;
}
.tier.S { background: var(--s); } .tier.A { background: var(--a); }
.tier.B { background: var(--b); } .tier.C { background: var(--c); }
.tier.D { background: var(--d); color: #dfe3ea; }
.tier .ed {
  position: absolute; right: -4px; top: -5px; font-size: 10px;
  background: var(--accent); color: var(--ink); border-radius: 2px; padding: 0 3px;
  font-style: normal;
}
.cname {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  margin-bottom: 6px; letter-spacing: .02em;
}
.traits { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.trait {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px;
  background: transparent; border: 1px solid var(--line);
  border-radius: 2px; padding: 1px 6px 1px 2px; color: var(--muted);
}
.trait img { width: 14px; height: 14px; }
.trait.job { border-color: #3d4a3a; }
.units { display: flex; flex-wrap: wrap; gap: 4px; }
.unit { position: relative; }
.unit img {
  width: 40px; height: 40px; border-radius: 2px; display: block;
  border: 1px solid var(--line); background: var(--panel-2);
}
.unit.p1 img { border-color: #6b7285; } .unit.p2 img { border-color: #6a9e6d; }
.unit.p3 img { border-color: #7a9eb5; } .unit.p4 img { border-color: #a67bb8; }
.unit.p5 img { border-color: var(--accent); }
.unit.carry::after {
  content: "C"; position: absolute; right: -2px; top: -3px;
  background: var(--carry); color: var(--ink); font-size: 9px; font-weight: 700;
  border-radius: 2px; padding: 0 3px;
}
.unit img.broken, .card img.broken {
  background: repeating-linear-gradient(-45deg, #2a241c, #2a241c 4px, #1a1612 4px, #1a1612 8px);
  object-fit: none;
}
.metrics {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px;
  border-left: 1px solid var(--line); padding-left: 14px;
}
.metric { text-align: left; background: transparent; border-radius: 0; padding: 0; }
.metric b {
  display: block; font-size: 15px; font-variant-numeric: tabular-nums;
  font-weight: 600; letter-spacing: -.01em;
}
.metric span {
  font-size: 10px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- 详情 / 面板 ---------- */
.detail-head { display: flex; align-items: center; gap: 14px; margin: 22px 0 16px; flex-wrap: wrap; }
.detail-head h1 {
  margin: 0; font-family: var(--font-display); font-size: 26px; font-weight: 700;
}
.detail-head .metrics {
  margin-left: auto; grid-template-columns: repeat(5, minmax(58px, 1fr));
  gap: 0 16px;
}
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 2px; padding: 16px 18px; margin-bottom: 12px;
}
.panel h2 {
  margin: 0 0 12px; font-size: 11px; color: var(--muted); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
}
.cols { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; align-items: start; }

/* 棋盘：装备叠在头像底部（跟游戏里一样），名字紧贴自己头像下方，
   行距只需容纳名字——否则名字离下一行比离自己还近，看不出归属 */
.board { display: flex; flex-direction: column; gap: 26px; padding-bottom: 18px; }
.brow { display: flex; gap: 6px; }
.brow.odd { margin-left: 27px; }
.cell {
  width: 48px; height: 48px; border-radius: 2px; background: #12100e;
  border: 1px dashed #2c261f;
}
.cell.filled { border: none; background: none; position: relative; }
.cell.filled img.face {
  width: 48px; height: 48px; border-radius: 2px; display: block;
  border: 1px solid var(--line);
}
.cell.carry img.face { border-color: var(--carry); }
.cell .items {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 2px;
  display: flex; gap: 1px;
}
.cell .items img { width: 13px; height: 13px; border-radius: 2px; border: 1px solid #0e0c0a; }
.cell .nm {
  position: absolute; left: 50%; transform: translateX(-50%); top: 51px;
  font-size: 10px; color: var(--muted); white-space: nowrap;
  max-width: 56px; overflow: hidden; text-overflow: ellipsis;
}
.cell.carry .nm { color: var(--carry); }
.cell.summon img.face { border-style: dashed; opacity: .88; }
.cell.summon .nm { color: #7f8d94; }
.board-legend { color: var(--muted); font-size: 12px; margin-top: 4px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 8px; border-bottom: 1px solid var(--line); text-align: right; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted); font-weight: 500; font-size: 11px; letter-spacing: .06em; }
tr:last-child td { border-bottom: none; }
.pos { color: #6a9e6d; } .neg { color: #e85d4c; }

.pill {
  display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 2px;
  background: var(--panel-2); color: var(--muted); border: 1px solid var(--line);
}
.hexrow { display: flex; align-items: center; gap: 8px; padding: 6px 0;
  border-bottom: 1px solid var(--line); }
.hexrow:last-child { border-bottom: none; }
.hexrow img { width: 30px; height: 30px; border-radius: 4px; }
.hexrow .hx { flex: 1; min-width: 0; }
.hexrow .hx b { font-weight: 600; }
.hexrow .hx small { color: var(--muted); display: block; font-size: 11px; }
.hexrow .rank { width: 20px; color: var(--muted); font-size: 12px; text-align: right; }
.hexrow .nums { text-align: right; min-width: 76px; }
.hexrow .nums small { color: var(--muted); display: block; font-size: 11px; }
.hexrow.thin { opacity: .62; }

.hexbar { display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 10px; }
.hexbar .tabbar { margin-bottom: 0; flex: 1; }
.hexbar select { flex: none; }
.hexbar .lv1.on { border-color: #9aa3ad; color: #c3cad2; background: #22262a; }
.hexbar .lv2.on { border-color: var(--accent); color: var(--accent-2); }
.hexbar .lv3.on { border-color: #7eb8c9; color: #a8d4e2; background: #1d272c; }
.hexbar .t small { color: var(--muted); margin-left: 4px; font-size: 11px; }
.hexhead {
  display: flex; justify-content: space-between; font-size: 11px;
  color: var(--muted); padding-bottom: 5px; border-bottom: 1px solid var(--line);
  letter-spacing: 0.04em;
}
.hexlist { max-height: 520px; overflow-y: auto; padding-right: 4px; }
.hexlist::-webkit-scrollbar { width: 8px; }
.hexlist::-webkit-scrollbar-track { background: var(--panel-2); border-radius: 4px; }
.hexlist::-webkit-scrollbar-thumb { background: #3b3429; border-radius: 4px; }
.hexlist::-webkit-scrollbar-thumb:hover { background: #4d4436; }

/* 口径可疑的指标名加虚线下划线，hover 出解释 */
.q { border-bottom: 1px dotted #5f5548; cursor: help; }
/* 分母直接印在标签上——光靠"使用率/上场率"这种名字分不清谁除谁 */
.metric span i, th small {
  display: block; font-style: normal; font-size: 10px; font-weight: 400;
  color: #7d7160; letter-spacing: .02em; text-transform: none; margin-top: 2px;
}
.spec {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 20px; font-size: 12px; color: var(--muted); line-height: 1.6;
}
.spec b { color: var(--text); font-weight: 600; }
.spec .num { font-variant-numeric: tabular-nums; color: var(--accent-2); }

.tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.tab {
  padding: 5px 10px; border-radius: 2px; background: var(--panel-2);
  border: 1px solid var(--line); cursor: pointer; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
}
.tab img { width: 22px; height: 22px; border-radius: 3px; }
.tab.on { border-color: var(--accent); color: var(--accent-2); }

.empty, .loading { color: var(--muted); text-align: center; padding: 48px 0; }
.empty a { color: var(--accent-2); border-bottom: 1px solid var(--accent); }

.tabbar { display: flex; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.tabbar a, .tabbar .t {
  padding: 7px 14px; border-radius: 2px; background: transparent;
  border: 1px solid var(--line); font-size: 13px; cursor: pointer; color: var(--muted);
}
.tabbar a.on, .tabbar .t.on {
  border-color: var(--accent); color: var(--accent-2); background: #2a241c;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 2px;
  padding: 12px; cursor: pointer; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-1px); }
.card img { width: 52px; height: 52px; border-radius: 4px; display: block; margin-bottom: 8px; }
.card b { display: block; font-size: 13px; font-family: var(--font-display); }
.card small {
  color: var(--muted); font-size: 11px; display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 60;
  display: none; align-items: flex-start; justify-content: center; padding: 60px 16px;
}
.mask.on { display: flex; }
.modal {
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 22px; width: min(760px, 100%); max-height: 80vh; overflow: auto;
}
.modal h3 { margin: 0 0 4px; font-family: var(--font-display); }
.close { float: right; cursor: pointer; color: var(--muted); }

.rank {
  display: grid; grid-template-columns: 34px 46px 1fr auto; gap: 12px;
  align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line);
}
.rank:last-child { border-bottom: none; }
.rank .no { color: var(--muted); text-align: center; font-size: 15px; }
.rank .up { color: #6a9e6d; } .rank .down { color: #e85d4c; }

label.f { display: block; margin-bottom: 10px; }
label.f span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
label.f input, label.f textarea, label.f select { width: 100%; }
textarea { min-height: 80px; }
.btn { background: var(--accent); border-color: var(--accent); color: var(--ink);
  padding: 8px 16px; font-weight: 600; }
.btn.ghost { background: var(--panel-2); color: var(--text); border-color: var(--line); font-weight: 500; }
.btn.danger { background: #a33a3a; border-color: #a33a3a; color: #fff; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 30px;
  background: var(--panel); border: 1px solid var(--accent); border-radius: 4px;
  padding: 10px 18px; z-index: 90; display: none;
}
.toast.on { display: block; }

.editboard .cell { cursor: pointer; }
.editboard .cell:hover { border-color: var(--accent); }
.picker { display: flex; flex-wrap: wrap; gap: 6px; max-height: 260px; overflow: auto;
  padding: 4px; background: var(--panel-2); border-radius: 4px; }
.picker .p { cursor: pointer; text-align: center; width: 54px; }
.picker .p img { width: 44px; height: 44px; border-radius: 4px; }
.picker .p small { display: block; font-size: 10px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker .p:hover img { outline: 1px solid var(--accent); }

body.region-global .logo span { color: var(--global); }
body.region-global .nav a.on { color: #b8d0de; border-bottom-color: var(--global); }
body.region-global .comp:hover { border-left-color: var(--global); }

/* ---------- 移动端 ---------- */
.nav-toggle {
  display: none; margin-left: auto; width: 40px; height: 36px; padding: 8px 9px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius);
  flex-direction: column; justify-content: space-between; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--text); border-radius: 1px;
  transition: transform .2s, opacity .2s;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .wrap { padding: 0 14px 56px; }
  .top .inner { padding: 10px 14px 8px; gap: 10px; }
  .comp { grid-template-columns: 40px 1fr; }
  .metrics { grid-column: 1 / -1; border-left: none; padding-left: 0; padding-top: 10px;
    border-top: 1px solid var(--line); grid-template-columns: repeat(4, 1fr); }
  .metric { text-align: center; }
  .cols { grid-template-columns: 1fr; }
  .searchbox input { width: 160px; }
  .pagehead { margin: 18px 0 14px; }
  .pagehead h1 { font-size: 22px; }
  .logo small { display: none; }
  .detail-head .metrics {
    width: 100%; margin-left: 0; border-left: none; padding-left: 0;
    padding-top: 10px; border-top: 1px solid var(--line);
    grid-template-columns: repeat(3, 1fr); gap: 10px 8px;
  }
  .detail-head .metric { text-align: center; }
  .hexbar { flex-direction: column; gap: 8px; }
  .hexbar select { width: 100%; }
  .spec { grid-template-columns: 1fr; }
  .panel:has(table) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 480px; }
  .rank { grid-template-columns: 28px 40px 1fr; gap: 8px; }
  .rank > :last-child { grid-column: 2 / -1; justify-self: start; }
  .mask { padding: 24px 12px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .top .inner { flex-wrap: wrap; align-items: center; }
  .nav {
    display: none; width: 100%; order: 20; flex-direction: column; gap: 0;
    border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px;
  }
  body.nav-open .nav { display: flex; }
  .nav a {
    padding: 11px 8px; border-bottom: 1px solid var(--line);
    font-size: 14px;
  }
  .nav a.on { border-bottom-color: var(--line); background: #2a241c; }
  .navextra { order: 5; flex: 1 1 auto; min-width: 0; }
  .navextra select {
    max-width: 46vw; font-size: 12px; padding: 6px 8px;
  }
  .spacer { display: none; }
  .searchbox {
    order: 30; width: 100%;
    display: none;
  }
  body.nav-open .searchbox { display: block; }
  .searchbox input { width: 100%; font-size: 16px; /* 防 iOS 聚焦放大 */ }
  .sresults {
    left: 0; right: 0; width: auto; top: 42px;
  }
  #srcTop { order: 40; width: 100%; display: none; }
  body.nav-open #srcTop { display: block; }
  .source { font-size: 10px; }
  .pagehead { flex-direction: column; align-items: stretch; gap: 8px; }
  .pagehead select, .pagehead input[type=text], .pagehead .kw, .pagehead button {
    width: 100%;
  }
  .pagehead .note { align-self: flex-start; }
  .filters .frow { flex-direction: column; gap: 6px; }
  .flabel { width: auto; padding-top: 0; }
  .comp { padding: 12px; gap: 10px; }
  .cname { font-size: 15px; }
  .unit img { width: 34px; height: 34px; }
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .detail-head { gap: 10px; margin: 14px 0 12px; }
  .detail-head h1 { font-size: 20px; flex: 1; min-width: 0; }
  .detail-head .metrics { grid-template-columns: repeat(2, 1fr); }
  .panel { padding: 12px 12px; }
  .tabs { gap: 4px; }
  .tab { padding: 6px 8px; font-size: 12px; }
  .tab img { width: 20px; height: 20px; }
  .hexlist { max-height: 420px; }
  .hexrow .hx small { display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden; }
}

/* 棋盘：窄屏缩小格距，保证 7 列 + 奇数行偏移不撑破 */
@media (max-width: 480px) {
  .wrap { padding: 0 10px 48px; }
  .top .inner { padding: 8px 10px; }
  .region-switch a { padding: 6px 9px; }
  .logo { font-size: 17px; }
  .board {
    --cell: 38px; --gap: 3px; --odd: 20px; --name-gap: 20px;
    gap: var(--name-gap); padding-bottom: 14px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .brow { gap: var(--gap); }
  .brow.odd { margin-left: var(--odd); }
  .cell { width: var(--cell); height: var(--cell); flex: none; }
  .cell.filled img.face { width: var(--cell); height: var(--cell); }
  .cell .items img { width: 11px; height: 11px; }
  .cell .nm {
    top: calc(var(--cell) + 2px); max-width: calc(var(--cell) + 6px);
    font-size: 9px;
  }
  .chip { padding: 4px 7px 4px 3px; font-size: 11px; }
  .chip img { width: 14px; height: 14px; }
  .metric b { font-size: 14px; }
  .metric span { font-size: 9px; letter-spacing: .04em; }
  .tier { width: 36px; height: 36px; font-size: 17px; }
  .unit img { width: 30px; height: 30px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .card img { width: 44px; height: 44px; }
  table { min-width: 420px; font-size: 12px; }
  th, td { padding: 7px 6px; }
  .picker .p { width: 48px; }
  .picker .p img { width: 40px; height: 40px; }
}
