:root {
  --bg: #fff3f6;
  --bg-2: #ffe4ee;
  --bg-3: #ffd0e0;
  --card: #fffafb;
  --card-tint: #fff0f5;
  --accent: #e85d8a;
  --accent-hover: #d44876;
  --accent-2: #c45c7a;
  --accent-soft: #ffb3c6;
  --petal: #ffc1d4;
  --text: #5a3040;
  --text-strong: #3d1f2b;
  --muted: #b07a8c;
  --ok: #4f9a6a;
  --warn: #e39a3c;
  --danger: #d63d6a;
  --r18: #c42a5a;
  --line: rgba(232, 93, 138, 0.16);
  --line-strong: rgba(232, 93, 138, 0.34);
  --shadow: 0 10px 28px rgba(232, 93, 138, 0.14);
  --shadow-sm: 0 4px 12px rgba(232, 93, 138, 0.10);
  --ring: 0 0 0 3px rgba(232, 93, 138, 0.22);
}

* { box-sizing: border-box; }

::selection {
  background: var(--accent-soft);
  color: var(--text-strong);
}

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 8% 6%, rgba(255, 179, 198, .55) 0 16px, transparent 17px),
    radial-gradient(circle at 92% 10%, rgba(255, 143, 171, .42) 0 12px, transparent 13px),
    radial-gradient(circle at 18% 92%, rgba(255, 193, 212, .5) 0 18px, transparent 19px),
    radial-gradient(circle at 78% 88%, rgba(232, 93, 138, .18) 0 10px, transparent 11px),
    radial-gradient(ellipse at top, #ffeaf1 0%, transparent 55%),
    linear-gradient(180deg, #fff7fa 0%, #ffe6ef 100%);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 86% 4%, rgba(255, 179, 198, .45) 0 28px, transparent 30px),
    radial-gradient(circle at 12% 18%, rgba(255, 193, 212, .35) 0 18px, transparent 20px),
    linear-gradient(180deg, rgba(255, 250, 252, .92) 0%, rgba(255, 232, 240, .96) 100%);
  box-shadow: var(--shadow);
  position: relative;
}

.app-shell::before {
  content: "🌸";
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 18px;
  opacity: .55;
  pointer-events: none;
  z-index: 11;
}

.top-bar {
  padding: 14px 16px;
  background: linear-gradient(90deg, #fff5f8, #ffe4ee);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--accent);
  text-shadow: 0 1px 0 #fff;
}
.brand::after {
  content: " 🌸";
  font-size: 14px;
  letter-spacing: 0;
}

.content { flex: 1; padding: 16px; word-break: break-word; }

.foot-bar {
  padding: 10px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 252, .7);
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform .12s ease, filter .15s, box-shadow .15s;
}
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: translateY(1px); filter: brightness(.94); }
.btn-primary {
  background: linear-gradient(180deg, #ff7aa3 0%, var(--accent) 100%);
  color: #fff;
  width: 100%;
  box-shadow: 0 6px 16px rgba(232, 93, 138, .28);
}
.btn-primary:hover { box-shadow: 0 8px 20px rgba(232, 93, 138, .36); }
.btn-ghost {
  background: rgba(255, 255, 255, .7);
  color: var(--accent-2);
  border: 1px solid var(--line-strong);
  width: 100%;
}

/* 年龄门禁 */
.age-gate { display: flex; align-items: center; justify-content: center; }
.age-box {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.age-box h1 { color: var(--accent); font-size: 20px; }
.age-box p { color: var(--muted); font-size: 14px; margin: 10px 0; }
.age-box .btn { margin-top: 14px; }
.error { color: var(--danger); }

/* 表单卡片 */
.form-card {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  font-size: 15px;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}

.link-row { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; }
.link-row a { color: var(--accent); text-decoration: none; }
.link-row a:hover { text-decoration: underline; }

.home-menu p { color: var(--muted); text-align: center; margin: 20px 0; }

/* ===== 游戏界面 ===== */
.panel {
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.panel.center { text-align: center; }
.panel h2, .panel h3, .panel h4 { color: var(--text-strong); }

.muted { color: var(--muted); }

.tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 6px;
  vertical-align: middle;
  background: var(--bg-2);
  color: var(--accent-2);
  border: 1px solid var(--line);
}
.tag.r18 { background: var(--r18); color: #fff; border-color: transparent; }
.tag.warn { background: #ffe7c2; color: #9a5b10; border-color: rgba(227, 154, 60, .35); }
.tag.ok { background: rgba(79, 154, 106, .14); color: var(--ok); border: 1px solid rgba(79, 154, 106, .35); }
.tag.quest { background: #f3d4ff; color: #8a3dad; border-color: rgba(196, 92, 173, .25); }

.npc-avatar {
  width: 46px; height: 46px; flex: 0 0 auto;
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #ff8fb3, #e85d8a);
  box-shadow: 0 4px 10px rgba(232, 93, 138, .28);
}
.npc-quote {
  padding: 10px 12px; border-left: 3px solid var(--accent);
  background: var(--card-tint); border-radius: 0 10px 10px 0;
}

.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.menu-item {
  display: block;
  padding: 16px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.menu-item.ghost { background: transparent; color: var(--muted); box-shadow: none; }
.menu-item:active { filter: brightness(.96); }
.menu-item:hover { border-color: var(--accent-soft); color: var(--accent); }

/* 状态条 / 血蓝经验条 / 属性行 */
.status-bar {
  background: linear-gradient(180deg, #fff7fa, #ffe9f1);
  border-color: var(--line-strong);
}
.status-bar-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.status-bar-meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.bar {
  position: relative; height: 18px; border-radius: 9px; overflow: hidden;
  background: #fff; margin-top: 10px; border: 1px solid var(--line);
}
.bar i { position: absolute; inset: 0 auto 0 0; display: block; border-radius: 9px; }
.bar span { position: relative; display: block; text-align: center; font-size: 11px; line-height: 18px; color: #fff; text-shadow: 0 1px 1px rgba(90, 48, 64, .35); }
.bar.hp i { background: linear-gradient(90deg, #ff5d7e, #ff9bb3); }
.bar.mp i { background: linear-gradient(90deg, #c97bb8, #e8b4dc); }
.bar.exp i { background: linear-gradient(90deg, #f0b35a, #ffe0a3); }
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.stat-row span { color: var(--muted); }
.stat-row b { color: var(--text-strong); font-weight: 600; }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.btn-row .btn { margin-top: 0; }

.toast {
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 13px;
}
.toast.ok { background: rgba(79, 154, 106, .12); color: var(--ok); border: 1px solid rgba(79, 154, 106, .28); }
.toast.err { background: rgba(214, 61, 106, .10); color: var(--danger); border: 1px solid rgba(214, 61, 106, .28); }

.exit-grid { display: flex; flex-direction: column; gap: 8px; }
.exit {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, #fff, var(--card-tint));
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}
.exit:hover { border-color: var(--accent); color: var(--accent); }
.exit.locked { color: var(--muted); opacity: .7; background: var(--bg-2); }

/* 战斗 */
.hp-bar {
  height: 10px;
  background: #ffe4ee;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid var(--line);
}
.hp-fill { height: 100%; background: linear-gradient(90deg, #ff6b8a, #ff9bb3); border-radius: 20px; transition: width .3s; }

.battle-log {
  background: var(--card-tint);
  font-size: 13px;
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--line);
}
.skill-btn { width: 100%; }
.lvlup { color: var(--warn); font-weight: 700; }

/* ===== 物品/装备/商城/宠物/聊天 ===== */
.item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.item-card:last-child { border-bottom: none; }
.item-info { flex: 1; min-width: 0; }
.item-actions { display: flex; gap: 6px; flex-shrink: 0; }
.buy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.btn.sm { padding: 6px 12px; font-size: 12px; width: auto; border-radius: 999px; }

.rarity { font-weight: 600; }
.rarity.r2 { color: var(--ok); }
.rarity.r3 { color: #7a8fd4; }
.rarity.r4 { color: #b45cc4; }
.rarity.r5 { color: #d4a017; }
.rarity.r18 { color: var(--danger); }

.slot {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-2);
  font-size: 11px;
  color: var(--accent-2);
  margin-right: 6px;
  border: 1px solid var(--line);
}

.chat-channels { display: flex; gap: 8px; margin-top: 10px; }
.chip {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  background: #fff;
}
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }

.chat-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 14px;
  max-height: 50vh;
  overflow-y: auto;
}
.chat-msg { padding: 8px 0; border-bottom: 1px solid var(--line); }
.chat-msg:last-child { border-bottom: none; }
.chat-head { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.chat-head .me { color: var(--accent); font-weight: 600; }
.chat-body { font-size: 14px; word-break: break-word; }
.chat-input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
}
.chat-input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.link-btn {
  background: none; border: none; color: var(--muted);
  font-size: 11px; cursor: pointer; padding: 0 4px; text-decoration: underline;
}

.pet-active { border-color: #9ad4ae; background: linear-gradient(180deg, #fff, #f3fff6); }
.pet-active h3 { color: var(--ok); }

/* ===== 情缘 / 亲密场景 ===== */
.scene-wrap { max-width: 560px; margin: 0 auto; }
.scene-verse p {
  line-height: 1.9;
  font-size: 15px;
  color: var(--text);
  margin: 0 0 14px;
  text-align: justify;
  text-indent: 2em;
}
.scene-card { border: 1px solid rgba(232, 93, 138, .35); background: linear-gradient(180deg, #fff7fa, #ffe9f1); }
.scene-placeholder {
  text-align: center; padding: 24px; border: 1px dashed var(--line-strong);
  border-radius: 12px; background: var(--card-tint);
}
.cg-slot { margin-bottom: 14px; text-align: center; }
.btn.center { margin: 0 auto; }

/* ===== 管理后台 ===== */
.admin-body {
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 179, 198, .4), transparent 40%),
    linear-gradient(180deg, #fff4f7, #ffe6ef);
}
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
  width: 220px;
  background: linear-gradient(180deg, #fff7fa, #ffdce8);
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
}
.admin-brand { font-weight: 700; color: var(--accent); font-size: 15px; margin-bottom: 16px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-link {
  display: block; padding: 9px 12px; border-radius: 10px; color: var(--muted);
  text-decoration: none; font-size: 14px;
}
.nav-link:hover { background: rgba(232, 93, 138, .10); color: var(--accent); }
.nav-link.ghost { color: var(--muted); }
.nav-sep { height: 1px; background: var(--line); margin: 10px 4px; }
.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px; border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 252, .8);
}
.admin-title { font-size: 15px; font-weight: 600; color: var(--text-strong); }
.admin-content { padding: 20px 22px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px; margin-bottom: 18px; }
.stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 14px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat-icon { font-size: 22px; }
.stat-val { font-size: 22px; font-weight: 700; color: var(--accent); margin: 6px 0 2px; }
.stat-label { font-size: 12px; color: var(--muted); }

.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td {
  text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.admin-table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.admin-table tr:hover td { background: var(--card-tint); }

.field { display: block; margin-bottom: 14px; }
.field-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.field input[type=text], .field input[type=password], .field input[type=number], .field select,
textarea[rows], textarea {
  width: 100%; padding: 10px 12px; box-sizing: border-box;
  background: #fff; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 10px; font-size: 14px;
}
textarea { width: 100%; padding: 12px; box-sizing: border-box; background: #fff; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 10px; font-family: inherit; line-height: 1.6; }
.field input:focus, .field select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: var(--ring);
}
.inline-form { display: inline; }
.auth-card { max-width: 380px; margin: 60px auto; }
.ok-text { color: var(--ok); font-weight: 600; }

/* ===== 公告正文 ===== */
.ad-body { margin-top: 8px; color: var(--text); font-size: 14px; line-height: 1.8; }
.ad-body p { margin: 0 0 10px; }

/* ===== 大地图（指南针网络） ===== */
.map-canvas {
  position: relative; height: 340px; margin: 12px 0;
  background:
    radial-gradient(ellipse at center, rgba(255, 179, 198, .35), transparent 65%),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .7), transparent 40%),
    var(--bg-2);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.map-node { position: absolute; transform: translate(-50%,-50%); }
.map-node-center { top: 50%; left: 50%; z-index: 2; }
.map-node-up { top: 6%; left: 50%; }
.map-node-down { top: 94%; left: 50%; }
.map-node-left { top: 50%; left: 7%; }
.map-node-right { top: 50%; left: 93%; }
.map-node-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 96px; min-height: 48px; padding: 6px 10px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line-strong);
  color: var(--text); font-size: 13px; text-align: center; text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.map-node-box:hover { border-color: var(--accent); filter: brightness(1.03); }
.map-node-box.you {
  border-color: var(--accent);
  background: linear-gradient(135deg, #ff8fb3, var(--accent));
  color: #fff; font-weight: 700;
  box-shadow: 0 0 18px rgba(232, 93, 138, .45);
}
.map-node-box.locked { border-color: var(--line); color: var(--muted); opacity: .7; }
.map-node-box.locked .muted, .map-node-box .muted { color: inherit; opacity: .75; font-weight: 400; }
.map-node-box.none { border-color: transparent; background: transparent; box-shadow: none; color: var(--muted); opacity: .5; }

/* ===== 世界总览 ===== */
.world-list { display: grid; gap: 8px; }
.world-region {
  border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: rgba(255, 255, 255, .55);
}
.world-region.cur { border-color: var(--accent); background: rgba(255, 179, 198, .22); }
.world-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.world-links { margin: 6px 0 0; font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.world-links a { color: var(--accent-2); text-decoration: none; }
.world-links a:hover { text-decoration: underline; color: var(--accent); }

.row-item {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.row-item.lg { padding: 9px 0; }
.row-item:last-child { border-bottom: none; }

/* ===== 梦幻方位小地图 ===== */
.compass {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 4px 4px;
}
.compass-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.compass-pad { visibility: hidden; }
.compass-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 6px 4px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.3;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}
.compass-cell strong { font-size: 13px; font-weight: 700; }
.compass-dir {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 2px;
}
.compass-cell.here {
  background: linear-gradient(180deg, #ff8fb3, var(--accent));
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 14px rgba(232, 93, 138, .3);
}
.compass-cell.here .compass-dir { color: rgba(255,255,255,.85); }
.compass-cell.go:hover { border-color: var(--accent); color: var(--accent); }
.compass-cell.locked { background: var(--bg-2); color: var(--muted); }
.compass-cell.empty { background: transparent; border-style: dashed; color: var(--muted); min-height: 48px; }

.entry-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.entry {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--card-tint);
  color: var(--accent-2);
  text-decoration: none;
  font-size: 12px;
}
.entry:hover { border-color: var(--accent); color: var(--accent); }
.entry.locked { color: var(--muted); background: var(--bg-2); }

/* ===== 三界舆图 ===== */
.world-board {
  position: relative;
  height: 900px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 12%, rgba(255, 200, 214, .45), transparent 40%),
    radial-gradient(ellipse at 80% 40%, rgba(255, 230, 200, .35), transparent 35%),
    radial-gradient(ellipse at 50% 75%, rgba(232, 93, 138, .12), transparent 40%),
    linear-gradient(180deg, #fff7fa, #ffe4ee);
  border: 1px solid var(--line);
}
.world-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.world-lines line {
  stroke: rgba(232, 93, 138, .35);
  stroke-width: 0.45;
}
.world-continent {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(176, 122, 140, .45);
  pointer-events: none;
  font-weight: 700;
}
.world-node {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 3px 7px;
  border-radius: 8px;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}
.world-node.kind-hub { padding: 5px 9px; font-weight: 700; font-size: 11px; border-color: var(--accent); }
.world-node.kind-sect { background: #fff0f5; }
.world-node.kind-start { background: #fff8e8; }
.world-node.kind-dungeon, .world-node.kind-sky, .world-node.kind-private {
  border-style: dashed; font-size: 9px; opacity: .9;
}
.world-node.near { border-color: var(--accent); color: var(--accent); z-index: 2; }
.world-node.you {
  background: linear-gradient(135deg, #ff8fb3, var(--accent));
  color: #fff; border-color: var(--accent); font-weight: 700; z-index: 3;
  box-shadow: 0 0 14px rgba(232, 93, 138, .45);
}
.world-node.locked { opacity: .45; }
.world-node.near:hover { filter: brightness(1.05); }
.world-legend { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; font-size: 11px; align-items: center; }
.world-legend .leg {
  display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px;
  border: 1px solid var(--line-strong); background: #fff; vertical-align: -1px;
}
.world-legend .leg.hub { border-color: var(--accent); }
.world-legend .leg.sect { background: #fff0f5; }
.world-legend .leg.you { background: var(--accent); border-color: var(--accent); }
.world-legend .leg.near { border-color: var(--accent); }
