/* 地図の地図 — サービスごとの見た目
 * 元のサービスの地図・画面の色や印に寄せる（ロゴや画像は写さない）。
 * --th-* は一覧とカードの欄に使う色。path や印は地図の上の描き方。
 * フォーカス（カードや一覧でサービスに当てたとき）の塗り・名前もここ。 */

.th-buildmap { --th-bg: #151826; --th-fg: #e8eaf6; --th-sub: #a3a9c6; --th-accent: #7b86ff; --th-border: #2b3150; --th-font: ui-monospace, "Cascadia Mono", Consolas, "BIZ UDGothic", monospace; }
.th-kenkyou { --th-bg: #22262e; --th-fg: #e6ebf2; --th-sub: #aab4c3; --th-accent: #5ea8ff; --th-border: #353c49; }
.th-timescale { --th-bg: #0b1a2b; --th-fg: #e6eef8; --th-sub: #9fb3c8; --th-accent: #ff9d2e; --th-border: #1d3550; --th-font: ui-monospace, "Cascadia Mono", Consolas, "BIZ UDGothic", monospace; }
.th-edo { --th-bg: #f5efdd; --th-fg: #1d2b45; --th-sub: #5f584a; --th-accent: #1d3557; --th-border: #d9cfb4; --th-font: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif; }
.th-grid { --th-bg: #08080a; --th-fg: #ffffff; --th-sub: #a3a3ad; --th-accent: #ff5a5a; --th-border: #26262c; }
.th-lasttrain { --th-bg: #000000; --th-fg: #ffffff; --th-sub: #a8a8a8; --th-accent: #ff1f6b; --th-border: #33121d; }
.th-kokkai { --th-bg: #fbf7ee; --th-fg: #3b2f2a; --th-sub: #6e6056; --th-accent: #e0533d; --th-border: #3b2f2a; --th-font: "Hiragino Maru Gothic ProN", "BIZ UDPGothic", "Yu Gothic UI", sans-serif; }
.th-tane { --th-bg: #ffffff; --th-fg: #2b2b2b; --th-sub: #5b5b5b; --th-accent: #e892a2; --th-border: #dddddd; }
.th-manabi { --th-bg: #fff8ef; --th-fg: #222222; --th-sub: #6a5a4a; --th-accent: #ff7a3d; --th-border: #222222; --th-font: "Hiragino Maru Gothic ProN", "BIZ UDPGothic", "Yu Gothic UI", sans-serif; }
.th-flagmap { --th-bg: #ffffff; --th-fg: #4a4f57; --th-sub: #666a70; --th-accent: #e8382f; --th-border: #e4e4e4; }
.th-worldmonitor { --th-bg: #050505; --th-fg: #e6e6e6; --th-sub: #8b9a8f; --th-accent: #4ade80; --th-border: #1d3a28; --th-font: ui-monospace, "Cascadia Mono", Consolas, "BIZ UDGothic", monospace; }
.th-starmapper { --th-bg: #0f1420; --th-fg: #e6edf3; --th-sub: #8b98a9; --th-accent: #5b9bff; --th-border: #263042; }
.th-whoisusingai { --th-bg: #0b1722; --th-fg: #e6f6fb; --th-sub: #8fd9e6; --th-accent: #22d3ee; --th-border: #164e63; }
.th-tamatabi { --th-bg: #0a0e14; --th-fg: #eef4f5; --th-sub: #8aa0a8; --th-accent: #4ade80; --th-border: #1f2a33; --th-font: ui-monospace, "Cascadia Mono", Consolas, "BIZ UDGothic", monospace; }
.th-deepstate { --th-bg: #2a2c31; --th-fg: #ffffff; --th-sub: #c9ccd1; --th-accent: #c7402f; --th-border: #3a3d44; --th-font: "PT Sans", "Segoe UI", system-ui, sans-serif; }

/* ===== カードの欄・一覧の項目 ===== */
.svc[data-theme], .item[data-theme] {
  background: var(--th-bg);
  color: var(--th-fg);
  border: 1px solid var(--th-border);
  font-family: var(--th-font, var(--font));
}
.svc[data-theme] { margin: 4px 2px; }
.svc[data-theme]:hover, .svc[data-theme]:focus-visible { background: var(--th-bg); box-shadow: 0 0 0 2px var(--th-accent), 0 6px 18px rgba(0, 0, 0, 0.35); }
.svc[data-theme] .svc-name { color: var(--th-fg); }
.svc[data-theme]:hover .svc-name { color: var(--th-fg); text-shadow: none; }
.svc[data-theme] .svc-host, .svc[data-theme] .svc-desc { color: var(--th-sub); }
.item[data-theme] { margin: 6px 0; }
.item[data-theme]:hover, .item[data-theme]:focus-within, .item[data-theme].is-hot { background: var(--th-bg); border-color: var(--th-accent); box-shadow: 0 0 0 1px var(--th-accent); }
.item[data-theme] .item-desc, .item[data-theme] .item-host, .item[data-theme] .item-link .ext { color: var(--th-sub); }
.item[data-theme] .tag { background: color-mix(in srgb, var(--th-fg) 9%, transparent); color: var(--th-sub); }
.item[data-theme] .tag.lang { background: transparent; border-color: var(--th-border); }
.item[data-theme] .btn-mini { color: var(--th-sub); border-color: var(--th-border); }
.item[data-theme] .btn-mini:hover { color: var(--th-fg); border-color: var(--th-accent); }
.item[data-theme] .chip { color: var(--th-fg); background: color-mix(in srgb, var(--rc) 14%, var(--th-bg)); border-color: color-mix(in srgb, var(--rc) 55%, var(--th-bg)); }
.item[data-theme] .chip .n { color: var(--th-sub); }

/* 名前の飾り（元のサービスの題字の雰囲気） */
.th-buildmap .svc-name, .th-buildmap .item-link { background: linear-gradient(90deg, #ff4d8d, #7b86ff); -webkit-background-clip: text; background-clip: text; color: transparent !important; letter-spacing: 0.04em; }
.th-kenkyou .svc-name::before, .th-kenkyou .item-link::before { content: "🗾 "; }
.th-kenkyou .svc-name, .th-kenkyou .item-link { color: #6fb2ff !important; }
.th-timescale .svc-name, .th-timescale .item-link { color: #ff9d2e !important; }
.th-timescale.svc, .th-timescale.item { background-image: linear-gradient(90deg, #f77f00 0 3px, #0072bc 3px 6px, #009944 6px 9px, transparent 9px); }
.th-edo .svc-name, .th-edo .item-link { font-weight: 800; letter-spacing: 0.06em; }
.th-grid .svc-name, .th-grid .item-link { letter-spacing: 0.08em; text-shadow: 0 0 6px rgba(255, 255, 255, 0.8), 0 0 14px rgba(255, 255, 255, 0.4); }
.th-grid.svc, .th-grid.item {
  background-image: radial-gradient(circle, #ff5a5a 1.3px, transparent 1.7px), radial-gradient(circle, #2fd4a0 1.3px, transparent 1.7px), radial-gradient(circle, #ffcc33 1.3px, transparent 1.7px);
  background-size: 12px 6px;
  background-position: 0 100%, 4px 100%, 8px 100%;
  background-repeat: repeat-x;
}
.th-lasttrain .svc-name, .th-lasttrain .item-link { letter-spacing: 0.18em; }
.th-lasttrain .svc-name::before, .th-lasttrain .item-link::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; border: 2px solid #ff1f6b; box-shadow: 0 0 6px #ff1f6b; vertical-align: 1px; }
.th-kokkai.svc, .th-kokkai.item { border-width: 1.5px; border-radius: 14px; }
.th-kokkai .svc-name::before, .th-kokkai .item-link::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 50%; background: #e0533d; vertical-align: -1px; }
.th-tane .svc-name::before, .th-tane .item-link::before { content: "🧭 "; }
.th-manabi.svc, .th-manabi.item { border-width: 2px; border-radius: 14px; box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25); }
.th-manabi .svc-name::before, .th-manabi .item-link::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 7px; background: #ff7a3d; border: 1.5px solid #222; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); vertical-align: 0; }
.th-flagmap .svc-name::before, .th-flagmap .item-link::before { content: "🚩 "; }
.th-worldmonitor .svc-name, .th-worldmonitor .item-link { color: #4ade80 !important; text-transform: uppercase; letter-spacing: 0.06em; }
.th-starmapper .svc-name::before, .th-starmapper .item-link::before { content: "★ "; color: #ffd33d; }
.th-whoisusingai .svc-name, .th-whoisusingai .item-link { background: linear-gradient(90deg, #22d3ee, #facc15 55%, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.th-tamatabi .svc-name, .th-tamatabi .item-link { letter-spacing: 0.1em; font-weight: 800; }
.th-tamatabi .svc-name::before, .th-tamatabi .item-link::before { content: "● "; color: #4ade80; text-shadow: 0 0 6px #4ade80; }
.th-tamatabi.svc, .th-tamatabi.item {
  background-image: radial-gradient(circle, rgba(74, 222, 128, 0.18) 1px, transparent 1.4px);
  background-size: 7px 7px;
}
.svc-deep { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; color: #0a0e14; background: var(--th-accent, var(--accent)); }
.th-deepstate.svc, .th-deepstate.item { border-left: 4px solid #c7402f; }
.th-deepstate .svc-name, .th-deepstate .item-link { text-transform: uppercase; letter-spacing: 0.04em; }

/* ===== 地図の上：ふだんの描き方 ===== */
path.rg--area.th-kokkai { fill-opacity: 0.06; stroke-width: 1.8px; filter: url(#sketch) drop-shadow(0 0 4px var(--rc)); animation: none; }
path.rg--area.th-buildmap.rg--local { stroke-dasharray: 7 5; fill-opacity: 0.05; }
path.rg--area.th-tane { stroke-width: 2.4px; }
path.rg--area.th-deepstate { fill: #6b7b3a; fill-opacity: 0.3; stroke-width: 1.6px; animation: none; }
path.rg--area.th-grid {
  fill-opacity: 0;
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-dasharray: 0 7;
  animation: grid-march 1.4s linear infinite;
  filter: drop-shadow(0 0 3px var(--rc));
}
@keyframes grid-march { to { stroke-dashoffset: -14; } }
path.rg--area.th-grid.is-hot, path.rg--area.th-grid.is-warm { fill-opacity: 0.06; stroke-width: 3.6px; animation: grid-march 0.9s linear infinite; }
path.rg--line.th-kenkyou { stroke-width: 1.8px; animation: none; stroke-opacity: 0.95; filter: drop-shadow(0 0 2px var(--rc)); }
path.rg--line.th-edo { stroke-width: 1.7px; filter: drop-shadow(0 0 3px rgba(239, 226, 192, 0.7)); }
path.rg--line.th-timescale { stroke-width: 3px; animation: none; stroke-opacity: 1; filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 5px var(--rc)); }
path.rg--line.th-lasttrain { stroke-width: 1.6px; animation: none; stroke-opacity: 0.9; filter: drop-shadow(0 0 4px var(--rc)); }
path.deco { fill: none; stroke: var(--rc); stroke-width: 1px; stroke-dasharray: 2 5; stroke-opacity: 0.35; }

/* 点（カメラ・ひし形） */
.pt { pointer-events: none; }
.pt i { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: block; }
.pt--cam i { width: 9px; height: 9px; border-radius: 50%; background: #ff3b3b; border: 2px solid #1a0000; box-shadow: 0 0 6px #ff3b3b, 0 0 14px rgba(255, 59, 59, 0.7); animation: cam-rec 1.6s ease-in-out infinite; }
@keyframes cam-rec { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.pt--diamond i { width: 9px; height: 9px; border: 2px solid #4ade80; background: rgba(74, 222, 128, 0.15); transform: translate(-50%, -50%) rotate(45deg); box-shadow: 0 0 6px #4ade80; }
.pt.is-hot i { transform: translate(-50%, -50%) scale(1.5); }
.pt--diamond.is-hot i { transform: translate(-50%, -50%) rotate(45deg) scale(1.5); }

/* たま旅ライブの点は分類ごとに色が違うので、光は白っぽく控えめにする */
.pts-pane.th-tamatabi { animation: none; opacity: 0.9; }
.pts-pane.th-tamatabi canvas { filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.35)); }
.pts-pane.th-tamatabi.is-hot canvas, .pts-pane.th-tamatabi.is-focus canvas { filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6)); }
.pts-pane.th-tamatabi.is-focus { opacity: 1; }

/* サービスの印 */
.emb { pointer-events: none; }
.emb > * { position: absolute; left: 0; top: 0; }
.emb--center .c-ring { width: 20px; height: 20px; border-radius: 50%; border: 3px solid #6f7dff; transform: translate(-50%, -50%); box-shadow: 0 0 8px #6f7dff; background: rgba(111, 125, 255, 0.15); }
.emb--center .c-dot { width: 6px; height: 6px; border-radius: 50%; background: #6f7dff; transform: translate(-50%, -50%); }
.emb--bubble .bub {
  transform: translate(-50%, calc(-100% - 8px));
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px 2px 5px;
  white-space: nowrap;
  background: #fbf7ee;
  color: #3b2f2a;
  border: 2px solid #3b2f2a;
  border-radius: 999px;
  font: 800 11px/1.4 "Hiragino Maru Gothic ProN", "BIZ UDPGothic", "Yu Gothic UI", sans-serif;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}
.emb--bubble .bub::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 8px; height: 8px; background: #fbf7ee; border-right: 2px solid #3b2f2a; border-bottom: 2px solid #3b2f2a; transform: translateX(-50%) rotate(45deg); }
.emb--bubble .bub-pin { width: 12px; height: 12px; border-radius: 50%; background: #e0533d; }
.emb--emoji .emo { transform: translate(-50%, -50%); padding: 2px 5px; white-space: nowrap; background: #ffffff; border-radius: 8px; font-size: 12px; line-height: 1.3; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45); letter-spacing: 1px; }
.emb--pin .pin {
  width: 26px;
  height: 26px;
  transform: translate(-50%, -110%) rotate(-45deg);
  background: #ff7a3d;
  border: 2.5px solid #222;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 0 10px rgba(255, 122, 61, 0.9);
  display: grid;
  place-items: center;
}
.emb--pin .pin b { transform: rotate(45deg); font: 900 12px/1 "Hiragino Maru Gothic ProN", "BIZ UDPGothic", sans-serif; color: #222; background: #fff; border: 1.5px solid #222; border-radius: 3px; padding: 1px 2px; }
.emb--flag .flag { transform: translate(-2px, -100%); width: 18px; height: 22px; }
.emb--flag .pole { position: absolute; left: 0; top: 0; width: 2.5px; height: 22px; background: #e9ecef; border-radius: 1px; box-shadow: 0 0 3px rgba(0, 0, 0, 0.6); }
.emb--flag .cloth { position: absolute; left: 2px; top: 1px; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 15px solid #e8382f; filter: drop-shadow(0 0 4px #e8382f); }
.emb--rings .r-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff1f6b; transform: translate(-50%, -50%); box-shadow: 0 0 8px #ff1f6b, 0 0 18px #ff1f6b; }
.emb.is-hot > * { filter: drop-shadow(0 0 6px var(--rc)); }
.emb.is-dim { opacity: 0.25; }

/* ===== フォーカス（カードや一覧でサービスに当てたとき） ===== */
.is-off { opacity: 0.08 !important; animation: none !important; }
.pts-pane.is-off { opacity: 0.06 !important; }
.win, .win-grid, .win-star, .lbl, .focus-only { display: none; }
.win.is-shown, .win-grid.is-shown, .win-star.is-shown, .focus-only.is-shown { display: inline; }
.lbl.is-shown { display: block; }
.lbl.is-shown.is-crowded { display: none; }
path.win { stroke-width: 1px; }
path.win.th-edo { fill: #f5efdd; fill-opacity: 0.97; stroke: #cdbf9c; }
path.win.th-kokkai { fill: #fbf3dc; fill-opacity: 0.97; stroke: #3b2f2a; stroke-width: 3px; filter: url(#sketch); }
path.win.th-manabi { fill: #f5f0e8; fill-opacity: 0.97; stroke: #ff7a3d; stroke-width: 4px; stroke-dasharray: 0 9; stroke-linecap: round; }
path.win.th-kenkyou { fill: #f4f6f9; fill-opacity: 0.96; stroke: #b9c6d8; }
path.win.th-buildmap { fill: #e9eaee; fill-opacity: 0.95; stroke: #c4c8d4; }
path.win.th-tane { fill: #f2efe9; fill-opacity: 0.96; stroke: #e892a2; stroke-width: 2.5px; }
path.win.th-flagmap { fill: #f7f7f5; fill-opacity: 0.98; stroke: #e8382f; stroke-width: 2px; }
path.win.th-deepstate { fill: #55663a; fill-opacity: 0.93; stroke: #e6e1c8; stroke-width: 1.5px; }
path.win.th-grid { fill: #050507; fill-opacity: 0.95; stroke: none; }
path.win.th-lasttrain { fill: #000000; fill-opacity: 0.93; stroke: #ff1f6b; stroke-opacity: 0.5; }
path.win.th-worldmonitor { fill: #0a0d0b; fill-opacity: 0.88; stroke: #2b6b47; stroke-width: 0.8px; }
path.win-grid.th-worldmonitor { fill: none; stroke: #4ade80; stroke-opacity: 0.22; stroke-width: 1px; }
path.win.th-starmapper { fill: #0f1420; fill-opacity: 0.88; stroke: #2a3550; }
path.win-star.th-starmapper { fill: #ffd33d; stroke: none; filter: drop-shadow(0 0 3px #ffd33d); }
path.win.th-tamatabi { fill: url(#dotgrid); fill-opacity: 1; stroke: none; }
path.win.th-whoisusingai { fill: #2d4a34; fill-opacity: 0.8; stroke: #6b8f5e; stroke-width: 0.6px; }
path.focus-only.range { fill: none; stroke: #6f7dff; stroke-width: 2px; stroke-dasharray: 6 4; }

/* フォーカス中の線・面（元の地図の色に） */
path.rg--line.th-edo.is-focus { stroke: #4a5d7e; stroke-width: 2.8px; stroke-opacity: 1; filter: none; animation: none; }
path.rg--line.th-kenkyou.is-focus { stroke: #4f8fe6; stroke-width: 2.4px; filter: none; }
path.rg--line.th-timescale.is-focus { stroke-width: 4.5px; filter: drop-shadow(0 0 1px #000); }
path.rg--line.th-lasttrain.is-focus { stroke-width: 2.6px; filter: drop-shadow(0 0 6px var(--rc)) drop-shadow(0 0 12px var(--rc)); }
path.rg--area.th-grid.is-focus { stroke-width: 4px; filter: drop-shadow(0 0 4px var(--rc)) drop-shadow(0 0 10px var(--rc)); }
path.rg--area.th-buildmap.is-focus { fill-opacity: 0; stroke: #6f7dff; filter: none; animation: none; }
path.rg--area.th-tane.is-focus, path.rg--area.th-flagmap.is-focus, path.rg--area.th-deepstate.is-focus, path.rg--area.th-kokkai.is-focus { fill-opacity: 0; filter: none; animation: none; }
path.deco.is-focus { stroke-opacity: 0.7; stroke-dasharray: none; }
.pts-pane.th-whoisusingai.is-focus { opacity: 1; animation: none; }
.pts-pane.th-whoisusingai.is-focus canvas { filter: drop-shadow(0 0 2px #facc15) drop-shadow(0 0 6px #f472b6); }

/* フォーカス中の名前 */
.lbl { pointer-events: none; white-space: nowrap; }
.lbl > * { position: absolute; }
.lbl-text { left: 8px; top: -9px; font-size: 11px; line-height: 1.5; }
.lbl-text small { margin-left: 4px; font-size: 9.5px; opacity: 0.75; }
.lbl--city .lbl-dot { left: -6px; top: -6px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2.5px solid #1d3557; }
.lbl--city .lbl-text { left: 9px; top: -10px; color: #1d2b45; font: 800 11.5px/1.4 "Yu Mincho", "Hiragino Mincho ProN", serif; text-shadow: 0 0 3px #f5efdd, 0 0 3px #f5efdd, 0 0 3px #f5efdd; }
.lbl--end .lbl-sq, .lbl--term .lbl-sq { left: -5px; top: -5px; width: 9px; height: 9px; background: var(--rc); border: 1.5px solid #fff; border-radius: 2px; }
.lbl--end .lbl-text { color: #ffb347; font: 700 11px/1.4 ui-monospace, Consolas, "BIZ UDGothic", monospace; text-shadow: 0 0 3px #0b1a2b, 0 0 3px #0b1a2b; }
.lbl--term .lbl-text { color: #fff; font-size: 11px; font-weight: 700; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.lbl--term-from .lbl-text { left: -14px; top: -26px; color: #ff1f6b; font: 800 13px/1.4 var(--font); letter-spacing: 0.2em; text-shadow: 0 0 8px #ff1f6b; }
.lbl--pt .lbl-text { left: 10px; top: -8px; color: #4ade80; font: 600 10.5px/1.4 ui-monospace, Consolas, "BIZ UDGothic", monospace; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.lbl--pt .lbl-text::before { content: "▸ "; }
.lbl--area .lbl-text { transform: translate(-50%, -50%); left: 0; top: 0; color: #fff; font: 800 12px/1.4 var(--font); letter-spacing: 0.06em; text-shadow: 0 0 6px var(--rc), 0 0 12px var(--rc), 0 0 2px #000; }
.lbl--area.th-buildmap .lbl-text { color: #333a5c; text-shadow: 0 0 3px #fff, 0 0 3px #fff; font-family: ui-monospace, Consolas, monospace; }
.lbl--center .lbl-text { left: 14px; top: -10px; color: #333a5c; font: 700 11px/1.4 ui-monospace, Consolas, monospace; background: rgba(255, 255, 255, 0.85); padding: 0 5px; border-radius: 4px; }

/* たま旅ライブの札（分類・国・都市名・数） */
.lbl--tag .t-dot { left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.6), 0 0 8px var(--rc); }
.lbl--tag .lbl-text {
  left: 8px;
  top: -34px;
  display: flex;
  align-items: stretch;
  background: rgba(10, 14, 20, 0.94);
  border: 1px solid #1f2a33;
  border-left: 3px solid var(--rc);
  font-family: ui-monospace, "Cascadia Mono", Consolas, "BIZ UDGothic", monospace;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.lbl--tag .t-body { display: flex; flex-direction: column; padding: 1px 6px 2px; }
.lbl--tag .t-meta { font-size: 9px; color: #7d8b93; letter-spacing: 0.08em; }
.lbl--tag .t-meta b { color: var(--rc); font-weight: 700; }
.lbl--tag .t-name { font-size: 11.5px; font-weight: 800; }
.lbl--tag .t-name small { margin-left: 5px; font-size: 9px; font-weight: 500; color: #7d8b93; }
.lbl--tag .t-num { display: grid; place-items: center; min-width: 24px; padding: 0 5px; background: var(--rc); color: #0a0e14; font-size: 11px; font-weight: 900; }

/* フォーカス中を知らせる札（地図の上） */
.focus-pill {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1150;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  background: var(--th-bg, var(--panel));
  color: var(--th-fg, var(--text));
  border: 1.5px solid var(--th-accent, var(--line));
  font-family: var(--th-font, var(--font));
  font-size: 12.5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.focus-pill[hidden] { display: none; }
.focus-pill .fp-name { font-weight: 800; }
.focus-pill .fp-hint { color: var(--th-sub, var(--muted)); }
.focus-pill .fp-close { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--th-border, var(--line)); background: transparent; color: inherit; cursor: pointer; line-height: 1; }

@media (max-width: 760px) {
  .focus-pill { top: 56px; max-width: calc(100% - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  path.rg--area.th-grid, .pt--cam i { animation: none !important; }
}
