/* にじGTA 追体験アーカイブ — デザイン刷新（ライト固定）
   docs/にじGTA 追体験アーカイブ デザイン刷新モック.html のライトテーマのトークンを元にしている。
   テーマ切替は持たない。地図の上に浮くバーと新聞の紙面だけが別の面になる。 */
:root {
  --page: #fdfbf3;      /* 本文の面 */
  --head: #f1ebdb;      /* ヘッダーの面 */
  --panel: #f6f1e3;     /* カード・ペイン */
  --panel-2: #ede4cd;   /* 見出し帯・選択行 */
  --ink: #232733;
  --dim: #5c6272;
  --faint: #8a8f9c;
  --line: #ddd2b8;
  --accent: #f0c850;    /* HUD イエロー（面・線に使う） */
  --accent-ink: #8a6200;/* 文字に使う黄（白地で読める濃さ） */
  --link: #1d6391;
  --navy: #2a4b71;
  --alert: #b8382b;
  --ems: #d94a64;
  --shop: #e07a2e;
  --gang: #9b4fc0;
  --police: #3b8fc4;
  --spectrum: linear-gradient(90deg, #e80132, #fa7820, #f5e943, #009b52, #1ec4ee, #0068af, #613d89);
  --paper: #f7f3ea;
  --paper-ink: #23202a;
  --font-disp: "Anton", "Zen Kaku Gothic New", sans-serif;
  --font-head: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-serif: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--page); }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--font-body); font-size: 15px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--panel-2); }
::-webkit-scrollbar-thumb { background: #c9b98f; border-radius: 5px; border: 2px solid var(--panel-2); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--head); border-bottom: 1px solid var(--line); }
.spectrum { height: 4px; background: var(--spectrum); }
.head-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-top: 10px; padding-bottom: 6px; }
.wordmark { line-height: 1.15; }
.wordmark .wm-en { font-family: var(--font-disp); font-size: 12px; letter-spacing: 0.22em; color: var(--accent-ink); }
.wordmark .wm-ja { font-family: var(--font-head); font-weight: 900; font-size: 20px; letter-spacing: 0.03em; margin: 0; }
.wordmark .wm-ja small { font-size: 12px; color: var(--dim); font-weight: 500; letter-spacing: 0.02em; margin-left: 4px; }
.unofficial-chip {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--dim);
  border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.dayctl { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.navbtn, .iconbtn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--page);
  color: var(--ink); cursor: pointer; font-size: 13px; display: grid; place-items: center;
}
.navbtn:hover:not(:disabled), .iconbtn:hover { border-color: var(--accent); }
.navbtn:disabled { opacity: 0.35; cursor: default; }
.daynow { position: relative; text-align: center; min-width: 112px; padding: 0 4px; border-radius: 10px; }
.daynow:hover { background: rgba(240, 200, 80, 0.16); }
.daynow:focus-within { outline: 3px solid var(--accent); outline-offset: 1px; }
.daynow .d { font-family: var(--font-disp); font-size: 28px; line-height: 1.05; color: var(--ink); white-space: nowrap; }
.daynow .d em { font-style: normal; color: #d9a514; }
.daynow .d .caret { font-family: var(--font-body); font-size: 11px; color: var(--dim); margin-left: 3px; vertical-align: middle; }
.daynow .dt { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.daynow select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--page); }
.seg button {
  border: 0; background: transparent; color: var(--dim); font-family: var(--font-body); font-weight: 700;
  font-size: 12.5px; padding: 7px 14px; cursor: pointer; white-space: nowrap;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.day-progress { height: 4px; background: var(--panel-2); border-radius: 2px; overflow: hidden; }
.day-progress i { display: block; height: 100%; background: var(--spectrum); transition: width .25s ease; }
.tabs { display: flex; gap: 2px; padding-top: 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  border: 1px solid transparent; border-bottom: 0; background: transparent; color: var(--dim);
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px; padding: 9px 18px; min-height: 42px;
  border-radius: 10px 10px 0 0; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center;
}
.tabs button:hover { color: var(--ink); }
.tabs button svg { width: 16px; height: 16px; }
.tabs button[aria-selected="true"] { background: var(--page); color: var(--ink); border-color: var(--line); box-shadow: inset 0 -3px 0 var(--accent); }

/* ===== Main / shared ===== */
.main-in { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 22px 20px 30px; }
.view-title { font-family: var(--font-head); font-weight: 900; font-size: 20px; margin: 0 0 2px; line-height: 1.4; }
.view-title .sep { color: var(--faint); font-weight: 500; margin: 0 4px; }
.view-sub { color: var(--dim); font-size: 13px; margin: 0 0 14px; }
.card { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; line-height: 1.5;
  border-radius: 999px; padding: 1px 9px; border: 1px solid var(--line); color: var(--dim); background: var(--page); white-space: nowrap;
}
.chip-day { font-family: var(--font-mono); color: var(--accent-ink); border-color: rgba(217, 165, 20, 0.5); background: rgba(240, 200, 80, 0.14); }
.chip-btn { cursor: pointer; color: var(--link); }
.chip-btn:hover { border-color: var(--link); }
.play {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: var(--link); background: var(--page);
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; min-height: 28px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.play:hover { border-color: var(--link); background: #eef5fa; }
.sec-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--dim); }
.empty-state { border: 1px dashed var(--line); border-radius: 12px; padding: 24px 18px; text-align: center; color: var(--dim); font-size: 13.5px; }
.prov-note { font-size: 11.5px; color: var(--dim); border-top: 1px dashed var(--line); margin-top: 18px; padding-top: 10px; }

/* category shapes (形＋色の二重符号化) */
.shape { width: 10px; height: 10px; display: inline-block; flex: none; }
.shape-shield { background: var(--police); clip-path: polygon(50% 0, 100% 22%, 100% 62%, 50% 100%, 0 62%, 0 22%); }
.shape-cross { background: var(--ems); clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%); }
.shape-diamond { background: var(--gang); transform: rotate(45deg) scale(0.82); }
.shape-diamond.crime { background: var(--alert); }
.shape-circle { background: var(--shop); border-radius: 50%; }
.shape-square { background: #4c8a5a; border-radius: 2px; transform: scale(0.85); }
.shape-tri { background: #d9a514; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.shape-bolt { background: var(--alert); clip-path: polygon(55% 0, 10% 58%, 45% 58%, 35% 100%, 90% 40%, 55% 40%); }

/* facet badges (複数所属) */
.facet { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 2px 8px; border: 1px solid; line-height: 1.5; }
.facet-primary_job { color: #1d5f8a; background: #e3f0f8; border-color: #b4d5ea; }
.facet-sub_job { color: #17695f; background: #e0f3ef; border-color: #a9dcd2; }
.facet-underground { color: #a3283a; background: #fbe7ea; border-color: #f0b9c2; }
.facet-unit_community { color: #2e6b2a; background: #e6f3e2; border-color: #b7dbae; }

/* ===== Day banner (map & timeline only) ===== */
.day-banner { margin-bottom: 18px; }
.hero {
  position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffd166 0%, #ff8c42 26%, #ff5d73 46%, #7a4b9e 66%, #2a4b71 84%, #0d1220 100%);
  min-height: 196px; display: flex; align-items: flex-end;
}
.hero svg.skyline { position: absolute; inset: auto 0 0 0; width: 100%; height: 62%; display: block; }
.hero .hero-in { position: relative; padding: 16px 22px; width: 100%; background: linear-gradient(180deg, transparent, rgba(7, 10, 18, 0.55) 42%); }
.hero .big-day { font-family: var(--font-disp); font-size: clamp(42px, 7vw, 68px); line-height: 0.95; color: #fff; text-shadow: 0 2px 18px rgba(7,10,18,.45); }
.hero .big-day em { font-style: normal; color: var(--accent); }
.hero .big-day small { font-size: 0.42em; letter-spacing: 0.05em; }
.hero p { margin: 6px 0 0; color: #f4f1ea; max-width: 52em; font-size: 14px; line-height: 1.65; text-shadow: 0 1px 8px rgba(7,10,18,.6); }
.headline-band {
  margin-top: 10px; border: 1px solid var(--line); border-left: 4px solid var(--accent);
  background: var(--panel); border-radius: 10px; padding: 9px 16px; display: flex; gap: 6px 14px; align-items: baseline; flex-wrap: wrap;
}
.headline-band .tag { font-family: var(--font-mono); font-size: 11px; color: #23202a; background: var(--accent); border-radius: 4px; padding: 1px 8px; font-weight: 600; white-space: nowrap; }
.headline-band .hl { font-weight: 700; font-size: 15px; }
.headline-band .hrs { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--dim); white-space: nowrap; }

/* ===== Map ===== */
.map-layout { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.map-col { container-type: inline-size; min-width: 0; }
/* 縦幅は画面の高さから少し余白を残し、横4:縦3 より縦長にはしない */
.map-stage { position: relative; height: min(75cqw, max(420px, calc(100vh - 210px))); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #cfe3ee; display: flex; flex-direction: column; }
.map-stage .map-viewport { flex: 1 1 auto; width: 100%; height: 100%; min-height: 0; }
.glass {
  background: rgba(253, 251, 243, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(92, 98, 114, 0.28); border-radius: 12px; box-shadow: 0 4px 14px rgba(60, 50, 20, 0.12);
}
.map-title { font-family: var(--font-head); font-weight: 900; font-size: 12.5px; color: var(--ink); }
.map-title + div { font-family: var(--font-mono); font-size: 10.5px; color: var(--dim); }
.map-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px;
  font-size: 12px; font-weight: 700; padding: 4px 10px; cursor: pointer; white-space: nowrap;
}
.map-btn:hover { border-color: var(--accent); }
.map-btn.region { color: var(--navy); }
.map-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 5px; }
.map-btn.zoom { width: 30px; padding: 3px 0; font-size: 15px; line-height: 1.2; }
.zoom-readout { font-family: var(--font-mono); font-size: 12px; font-weight: 600; min-width: 3.6em; text-align: center; color: var(--ink); }
.ctl-sep { width: 1px; height: 20px; background: var(--line); margin: 0 3px; }
.map-layers { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; max-width: 280px; }
.map-layers .layer-chip { font-size: 11px; padding: 1px 8px; gap: 5px; }
.map-layers .layer-chip .cnt { font-size: 10px; }
.map-layers .shape { width: 8px; height: 8px; }
.layer-chip {
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.92); color: var(--faint); border-radius: 999px;
  font-size: 12px; font-weight: 700; padding: 3px 11px; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; white-space: nowrap;
}
.layer-chip .cnt { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.layer-chip[aria-pressed="true"] { color: var(--ink); border-color: #d9a514; box-shadow: inset 0 0 0 1px rgba(217,165,20,.35); }
.layer-chip[aria-pressed="true"] .cnt { color: var(--accent-ink); }
.layer-chip[aria-pressed="false"] .shape { opacity: 0.35; }
.postal-guide { font-size: 11px; color: var(--dim); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 5px 12px; }
.postal-guide b { color: var(--ink); font-family: var(--font-mono); font-weight: 600; }
.inspector { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 18px; display: flex; flex-direction: column; gap: 12px; max-height: max(420px, calc(100vh - 210px)); overflow-y: auto; }
.inspector > * { flex-shrink: 0; }
.inspector .ins-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--dim); border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.inspector h3 { font-family: var(--font-head); font-weight: 900; font-size: 19px; margin: 0; line-height: 1.4; }
.inspector p { color: var(--dim); font-size: 13.5px; margin: 0; line-height: 1.7; }
.inspector .postal { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent-ink); }
.ins-sec { border-top: 1px dashed var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.ins-sec-t { font-size: 12px; font-weight: 700; color: var(--ink); }
.ins-item {
  width: 100%; text-align: left; padding: 9px 11px; border-radius: 10px; background: var(--page); border: 1px solid var(--line);
  font-size: 12.5px; cursor: pointer; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.ins-item:hover { border-color: var(--accent); }
.ins-item .t { font-weight: 700; }
.ins-item .s { color: var(--dim); font-size: 11.5px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ins-item .ts { font-family: var(--font-mono); font-weight: 600; color: var(--link); flex: none; }
.ins-photo { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); }
.ins-photo img { display: block; width: 100%; }
.ins-cap { font-size: 11px; color: var(--dim); margin-top: 4px; line-height: 1.5; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%;
  background: rgba(253, 251, 243, 0.92); border: 1px solid var(--line); color: var(--ink); font-weight: 700; cursor: pointer;
  opacity: 0; transition: opacity .15s; z-index: 2;
}
.location-photo-box:hover .carousel-btn { opacity: 1; }

/* ===== Timeline ===== */
.tl-list { list-style: none; margin: 0; padding: 0; }
.tl-item { display: grid; grid-template-columns: 84px 22px minmax(0, 1fr); gap: 0 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); align-items: start; }
.tl-item:last-child { border-bottom: 0; }
.tl-time { font-family: var(--font-mono); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; padding-top: 1px; line-height: 1.5; }
.tl-time.approx { color: var(--dim); font-weight: 400; }
.tl-time .tl-day { display: block; font-size: 11px; color: var(--accent-ink); font-weight: 600; }
.tl-dot { width: 13px; height: 13px; border-radius: 50%; margin-top: 6px; justify-self: center; box-shadow: 0 0 0 3px var(--page), 0 0 0 4px var(--line); }
.tl-main h3 { font-family: var(--font-head); font-weight: 900; font-size: 16px; margin: 0; line-height: 1.5; }
.tl-main .desc { color: var(--ink); font-size: 14px; margin: 4px 0 0; line-height: 1.75; }
.tl-meta { display: flex; gap: 6px 8px; flex-wrap: wrap; margin-top: 6px; align-items: center; font-size: 12px; color: var(--dim); }
.tl-ev summary { list-style: none; cursor: pointer; user-select: none; }
.tl-ev summary::-webkit-details-marker { display: none; }
.tl-ev summary:hover h3 { color: #2f86c8; }
.tl-ev .tl-chev { display: inline-block; margin-left: 8px; font-size: 11px; color: #2f86c8; transition: transform .15s; vertical-align: 2px; }
.tl-ev[open] .tl-chev { transform: rotate(180deg); }
.tl-ev[open] summary { margin-bottom: 2px; }
.tl-archive { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 10px 12px; }
.tl-archive .sub-t { font-size: 11.5px; font-weight: 700; color: var(--dim); margin-bottom: 6px; }
.tl-people { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; align-items: center; font-size: 12px; }
.tl-people .lbl { color: var(--dim); font-weight: 700; margin-right: 2px; }
.person-chip { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 1px 9px; font-size: 12px; color: var(--ink); }
.person-chip small { color: var(--dim); font-size: 11px; margin-left: 3px; }
.tl-fold { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; }
.tl-fold summary { list-style: none; cursor: pointer; padding: 7px 12px; font-size: 12.5px; font-weight: 700; color: var(--link); display: flex; align-items: center; justify-content: space-between; gap: 8px; user-select: none; }
.tl-fold summary::-webkit-details-marker { display: none; }
.tl-fold summary .n { font-weight: 400; color: var(--dim); font-size: 11.5px; margin-left: 6px; }
.tl-fold summary .chev { color: var(--dim); transition: transform .15s; }
.tl-fold[open] summary .chev { transform: rotate(180deg); }
.tl-fold .body { border-top: 1px solid var(--line); padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; background: var(--page); }
.tl-fold .sub-t { font-size: 11.5px; font-weight: 700; color: var(--dim); margin-bottom: 6px; }
.seek-row { display: flex; flex-wrap: wrap; gap: 6px; }
.seek-btn {
  border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 4px 10px; font-size: 12px; cursor: pointer;
  display: inline-flex; gap: 6px; align-items: center; color: var(--ink);
}
.seek-btn:hover { border-color: var(--link); }
.seek-btn .r { color: var(--dim); font-size: 11px; }
.seek-btn .ts { font-family: var(--font-mono); font-weight: 600; color: var(--link); }
.clip-btn {
  width: 100%; text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 6px 10px;
  display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 12px; cursor: pointer; color: var(--ink);
}
.clip-btn:hover { border-color: var(--link); }
.clip-btn .t { font-weight: 700; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.clip-btn .s { color: var(--dim); font-size: 11px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.clip-btn .ts { font-family: var(--font-mono); font-weight: 600; color: var(--link); flex: none; }

/* ===== People: master–detail ===== */
.md-wrap { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; height: calc(100vh - 248px); min-height: 560px; }
.md-list { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.md-list-head { flex: none; padding: 10px 12px 11px; background: var(--panel-2); border-bottom: 1px solid var(--line); box-shadow: 0 6px 10px -8px rgba(60, 50, 20, 0.35); position: relative; z-index: 2; }
.md-list-title { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-head); font-weight: 900; font-size: 14px; }
.md-list-title .cnt { margin-left: auto; font-family: var(--font-mono); font-weight: 400; font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.search-box { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--page); border-radius: 10px; padding: 0 10px; margin-top: 8px; }
.search-box:focus-within { border-color: #d9a514; }
.search-box input { border: 0; background: transparent; color: var(--ink); font-family: inherit; font-size: 13.5px; width: 100%; min-height: 36px; }
.search-box input:focus { outline: none; }
.search-box input::placeholder { color: var(--faint); }
.md-list-tools { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.md-list-tools .seg button { padding: 5px 11px; font-size: 12px; }
.fav-filter-btn {
  margin-left: auto; border: 1px solid var(--line); background: var(--page); color: var(--dim); border-radius: 999px;
  padding: 5px 11px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.fav-filter-btn[aria-pressed="true"] { color: var(--accent-ink); border-color: #d9a514; background: rgba(240, 200, 80, 0.18); }
.md-list-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d9a514 var(--panel-2); }
.prow {
  display: flex; gap: 10px; align-items: center; padding: 8px 8px 8px 11px; cursor: pointer;
  border-bottom: 1px solid var(--line); border-left: 3px solid transparent;
}
.prow.hidden { display: none; }
.prow:hover { background: var(--page); }
.prow.selected { background: var(--panel-2); border-left-color: var(--accent); box-shadow: inset 0 0 0 1px rgba(217, 165, 20, 0.55); }
.yt-ava { position: relative; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 900; border: 1px solid var(--line); }
.yt-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prow .yt-ava { width: 38px; height: 38px; font-size: 14px; }
.prow .pmain { flex: 1 1 auto; min-width: 0; }
.prow .nm-row { display: flex; align-items: baseline; gap: 6px; }
.prow .nm { display: block; font-weight: 900; font-family: var(--font-head); font-size: 14.5px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .login { flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; min-width: 3.6em; }
.prow .login b { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent-ink); }
.prow .login small { font-size: 10px; color: var(--dim); white-space: nowrap; }
.prow .login.none small { color: var(--faint); }
.prow .sub { display: block; font-size: 11.5px; color: var(--dim); line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .fav-toggle { width: 32px; height: 32px; flex: none; border-radius: 8px; border: 0; background: transparent; color: #b9b3a2; cursor: pointer; font-size: 17px; line-height: 1; }
.prow .fav-toggle:hover { color: var(--dim); }
.prow .fav-toggle[aria-pressed="true"] { color: #d9a514; }
.md-empty { padding: 28px 16px; text-align: center; color: var(--dim); font-size: 13px; }
.md-empty.hidden { display: none; }
.md-detail { min-width: 0; min-height: 0; border: 1px solid #e3c35e; border-radius: 14px; background: var(--panel); padding: 18px 20px; overflow-y: auto; overscroll-behavior: contain; }
.pd-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pd-head .yt-ava { width: 56px; height: 56px; font-size: 13px; border-width: 2px; }
.pd-swap { color: var(--faint); font-weight: 700; }
.ava-stack { position: relative; flex: none; width: 56px; height: 56px; }
.ava-stack.multi { cursor: pointer; }
.ava-stack .back { position: absolute; inset: 0; border-radius: 14px; border: 2px solid var(--line); background: var(--panel-2); transition: transform .15s; pointer-events: none; }
.ava-stack .back.b1 { transform: translate(4px, -4px); border-color: #d6c79d; }
.ava-stack .back.b2 { transform: translate(8px, -8px); }
.ava-stack.multi:hover .back.b1 { transform: translate(6px, -6px); }
.ava-stack.multi:hover .back.b2 { transform: translate(10px, -10px); }
.ava-stack .front { position: relative; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; border: 2px solid var(--line); background: var(--panel-2); display: grid; place-items: center; }
.ava-stack.multi .front { border-color: #d9a514; box-shadow: 0 4px 10px rgba(60, 50, 20, 0.25); }
.ava-stack .front img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ava-stack .front .ph { color: var(--faint); letter-spacing: 0.2em; font-weight: 700; }
.ingame-box { flex: 1 1 240px; min-width: 0; border: 1px solid var(--line); background: var(--page); border-radius: 12px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ingame-box .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--dim); display: block; }
.ingame-box .v { font-weight: 700; font-size: 13.5px; line-height: 1.5; }
.outfit-nav { display: flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 2px 4px; flex: none; }
.outfit-nav button { border: 0; background: transparent; color: var(--dim); cursor: pointer; font-size: 11px; padding: 2px 5px; }
.outfit-nav button:hover { color: var(--ink); }
.outfit-nav span { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: var(--accent-ink); }
.pd-name { font-family: var(--font-head); font-weight: 900; font-size: 21px; margin: 12px 0 0; line-height: 1.4; }
.pd-name small { font-size: 13px; color: var(--dim); font-weight: 500; margin-left: 6px; }
.name-hist { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 6px; font-size: 11.5px; color: var(--dim); }
.name-hist .nh { font-family: var(--font-mono); font-size: 11px; border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; background: var(--page); }
.name-hist .nh.cur { color: var(--accent-ink); border-color: #d9a514; font-weight: 600; }
.pd-bio { font-size: 14px; color: var(--ink); margin: 8px 0 0; }
.pd-facets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pd-divider { border: 0; border-top: 1px dashed var(--line); margin: 16px 0 12px; }
.log-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 8px; }
.log-head h3 { font-family: var(--font-head); font-weight: 900; font-size: 15px; margin: 0; }
.log-head .mode { margin-left: auto; font-size: 11.5px; color: var(--dim); }
.log-day { border: 1px solid var(--line); border-radius: 12px; background: var(--page); padding: 10px 14px 6px; margin-bottom: 12px; }
.log-day .ld-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.log-day .ld-day { font-family: var(--font-disp); font-size: 18px; letter-spacing: 0.04em; }
.log-day .ld-day em { font-style: normal; color: #c8960f; }
.log-day .ld-meta { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.log-day .overview { font-size: 13.5px; margin: 6px 0 4px; line-height: 1.8; }
.log-entries { list-style: none; margin: 4px 0 0; padding: 0; }
.log-entries li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 7px 0; border-top: 1px dashed var(--line); font-size: 13px; line-height: 1.6; }
.log-entries .lt { font-family: var(--font-mono); font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums; flex: none; min-width: 3.2em; }
.log-entries .la { flex: 1 1 220px; min-width: 0; }
.log-entries .play { flex: none; }
.notice-box { border: 1px solid var(--line); border-radius: 14px; background: var(--page); padding: 22px; text-align: center; margin-top: 16px; }
.notice-box .big { font-family: var(--font-head); font-weight: 900; font-size: 18px; color: var(--accent-ink); margin: 0; }
.notice-box p { margin: 4px 0 0; font-size: 13.5px; color: var(--dim); }

/* ===== Groups ===== */
.group-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; align-items: stretch; }
.g-members summary { list-style: none; cursor: pointer; user-select: none; display: flex; align-items: baseline; gap: 8px; flex-wrap: nowrap; }
.g-members summary .g-k { flex: none; }
.g-members summary::-webkit-details-marker { display: none; }
.g-members .g-preview { font-size: 12.5px; color: var(--ink); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-members .g-chev { flex: none; font-size: 11px; color: #2f86c8; transition: transform .15s; }
.g-members summary:hover .g-preview { color: #2f86c8; }
.g-members[open] .g-chev { transform: rotate(180deg); }
.g-member-list { margin-top: 8px; }
.g-status-text, .g-latest-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grp-card:has(.g-more[open]) .g-status-text, .grp-card:has(.g-more[open]) .g-latest-text { display: block; overflow: visible; }
.g-latest { border-top: 1px dashed var(--line); padding-top: 8px; }
.g-latest-text { font-size: 12.5px; line-height: 1.65; margin: 0; }
.g-latest-text b, .g-hist b { font-family: var(--font-mono); color: var(--accent-ink); margin-right: 6px; font-weight: 600; }
.g-more { margin-top: auto; }
.g-more summary { list-style: none; cursor: pointer; user-select: none; font-size: 12.5px; font-weight: 700; color: #2f86c8; display: inline-flex; gap: 6px; align-items: baseline; }
.g-more summary::-webkit-details-marker { display: none; }
.g-more summary:hover { text-decoration: underline; }
.g-more[open] .g-chev { transform: rotate(180deg); }
.g-more .g-chev { font-size: 11px; transition: transform .15s; }
.g-sec { margin-top: 10px; }
.grp-card { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.grp-card .g-head { display: flex; align-items: center; gap: 10px; }
.grp-card .g-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--page); border: 1px solid var(--line); }
.grp-card .g-ico .shape { width: 14px; height: 14px; }
.grp-card h3 { font-family: var(--font-head); font-weight: 900; font-size: 17px; margin: 0; line-height: 1.4; }
.grp-card .g-meta { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.grp-card .g-status { font-size: 12.5px; color: var(--ink); background: var(--page); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; margin: 0; }
.grp-card .g-k { font-size: 11.5px; font-weight: 700; color: var(--dim); margin-bottom: 5px; }
.member { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--page); border-radius: 8px; padding: 2px 8px; font-size: 12px; margin: 0 4px 4px 0; }
.member b { font-weight: 700; }
.member .r { color: var(--dim); }
.member .facet { font-size: 10px; padding: 0 5px; white-space: nowrap; }
.member { max-width: 100%; }
.rel { display: inline-block; font-size: 12px; color: var(--ink); background: var(--panel-2); border-radius: 6px; padding: 1px 8px; margin: 0 4px 4px 0; }
.g-hist { padding-top: 0; }
.g-hist div { font-size: 12.5px; color: var(--ink); line-height: 1.65; }
.g-hist b { font-family: var(--font-mono); color: var(--accent-ink); margin-right: 6px; font-weight: 600; }

/* ===== Newspaper (the one "paper" surface) ===== */
.paper {
  background: var(--paper); color: var(--paper-ink); border-radius: 6px; padding: 28px 30px 20px;
  box-shadow: 0 10px 30px rgba(60, 50, 20, 0.2); border: 1px solid #e2dccb;
  background-image: radial-gradient(rgba(35,32,42,.05) 1px, transparent 1px); background-size: 5px 5px;
}
.paper .masthead { text-align: center; border-bottom: 3px double var(--paper-ink); padding-bottom: 10px; }
.paper .masthead .mt { font-family: var(--font-serif); font-weight: 800; font-size: clamp(28px, 5vw, 42px); letter-spacing: 0.12em; line-height: 1.25; }
.paper .masthead .ms { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: #5a5468; margin-top: 2px; }
.paper .dateline { display: flex; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; font-size: 12px; border-bottom: 1px solid var(--paper-ink); padding: 7px 0; font-family: var(--font-mono); }
.paper .cols { columns: 2; column-gap: 30px; column-rule: 1px solid rgba(35,32,42,.18); margin-top: 18px; }
.paper article { break-inside: avoid; border-bottom: 1px solid rgba(35,32,42,.3); padding-bottom: 14px; margin-bottom: 16px; }
.paper .a-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.paper .a-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; border: 1px solid var(--paper-ink); display: inline-block; padding: 0 8px; border-radius: 3px; }
.paper .a-cat.hot { background: var(--paper-ink); color: var(--paper); }
.paper .a-time { font-family: var(--font-mono); font-size: 11px; color: #5a5468; }
.paper h3 { font-family: var(--font-serif); font-weight: 800; font-size: 19px; line-height: 1.5; margin: 8px 0 6px; }
.paper blockquote { font-family: var(--font-serif); font-size: 13.5px; margin: 0 0 8px; padding: 2px 0 2px 12px; border-left: 3px solid var(--paper-ink); color: #37333f; }
.paper article p { font-size: 13.5px; line-height: 1.85; margin: 0 0 6px; color: #37333f; }
.paper .a-meta { font-size: 11.5px; color: #5a5468; }
.paper .a-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.paper .vlink {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: var(--paper-ink); background: rgba(255,255,255,.4);
  border: 1.5px solid var(--paper-ink); border-radius: 6px; padding: 4px 10px; cursor: pointer;
}
.paper .vlink:hover { background: var(--paper-ink); color: var(--paper); }
.paper .empty { text-align: center; padding: 26px 10px; font-family: var(--font-serif); }

/* ===== Settings dialog / footer ===== */
.settings-dialog { width: min(92vw, 440px); border-radius: 14px; border: 1px solid var(--line); background: var(--page); color: var(--ink); padding: 0; box-shadow: 0 24px 60px rgba(60, 50, 20, 0.3); }
.settings-dialog::backdrop { background: rgba(35, 39, 51, 0.35); }
.settings-dialog .dh { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--head); }
.settings-dialog h2 { font-family: var(--font-head); font-size: 15px; font-weight: 900; margin: 0; }
.settings-dialog .row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 20px; }
.settings-dialog .row + .row { border-top: 1px solid var(--line); }
.settings-dialog .row b { display: block; font-size: 14px; }
.settings-dialog .row span span { display: block; font-size: 12px; color: var(--dim); margin-top: 2px; }
.danger-btn { flex: none; border: 1px solid #e3a49c; color: var(--alert); background: #fff; border-radius: 8px; padding: 5px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.danger-btn:hover { background: #fbe7e4; }
.site-foot { border-top: 1px solid var(--line); background: var(--head); padding: 18px 20px 22px; text-align: center; font-size: 12px; color: var(--dim); }
.site-foot .unofficial { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--accent-ink); font-weight: 600; }
.site-foot p { margin: 4px 0 0; }
.site-foot .foot-links { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; align-items: center; }
.site-foot .foot-links a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.site-foot .foot-links a:hover { opacity: 0.78; }
.site-foot .foot-note { margin-top: 6px; font-size: 11px; opacity: 0.85; }

/* ===== Responsive ===== */
@media (max-width: 1023px) {
  .map-layout { grid-template-columns: 1fr; }
  .inspector { max-height: none; }
  .md-wrap { grid-template-columns: 1fr; height: auto; }
  .md-list-scroll { max-height: 360px; }
  .md-detail { overflow: visible; }
  .group-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .paper { padding: 20px 16px; }
  .paper .cols { columns: 1; }
  .dayctl { margin-left: 0; width: 100%; }
  .tabs button { padding: 9px 12px; font-size: 13.5px; }
  .tl-item { grid-template-columns: 62px 16px minmax(0, 1fr); gap: 0 7px; }
  .wordmark .wm-ja small { display: none; }
  .site-head { position: static; }
  .head-in { gap: 8px 12px; }
  .unofficial-chip { display: none; }
  .dayctl { gap: 6px; flex-wrap: nowrap; }
  .navbtn, .iconbtn { width: 34px; height: 34px; }
  .daynow { min-width: 92px; }
  .daynow .d { font-size: 24px; }
  .seg button { padding: 6px 10px; }
  .map-btn { padding: 3px 8px; font-size: 11.5px; }
  .layer-chip { padding: 2px 8px; font-size: 11px; }
  .hero p { font-size: 13px; }
}
