/* 地球の24時間 — 説明ページ（遊び方・解説・運営者・問い合わせ・プライバシー）の共通の見た目 */
:root {
  color-scheme: light;
  --bg: #f5f4f0; --surface: #ffffff; --surface-2: #eeece6; --text: #151513; --text-2: #55534d; --muted: #8a877e;
  --line: #e1dfd7; --accent: #df5f2b; --accent-ink: #ffffff; --accent-soft: rgba(223, 95, 43, 0.12);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0e11; --surface: #16171b; --surface-2: #1f2126; --text: #f3f2ee; --text-2: #c2c0b8; --muted: #8a877f;
    --line: #2a2c32; --accent: #f0773f; --accent-ink: #141413; --accent-soft: rgba(240, 119, 63, 0.16);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0e11; --surface: #16171b; --surface-2: #1f2126; --text: #f3f2ee; --text-2: #c2c0b8; --muted: #8a877f;
  --line: #2a2c32; --accent: #f0773f; --accent-ink: #141413; --accent-soft: rgba(240, 119, 63, 0.16);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text); line-height: 1.8;
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
/* 言語ごとの本文：<div data-l="ja"> と <div data-l="en"> を、表示中の言語だけ見せる */
html[lang="ja"] [data-l="en"], html[lang="en"] [data-l="ja"] { display: none !important; }

.page {
  max-width: 720px; margin: 0 auto; padding-block: 0 56px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.top {
  position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; padding: 10px 0; margin-bottom: 18px;
}
.top .brand { font-weight: 900; font-size: 15px; color: var(--text); text-decoration: none; margin-right: auto; white-space: nowrap; }
.top .play { font-size: 13px; font-weight: 800; color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 6px 12px; text-decoration: none; white-space: nowrap; }
.langbtn { border: 1px solid var(--line); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.langbtn:hover { border-color: var(--accent); color: var(--accent); }

h1 { font-size: clamp(26px, 7vw, 36px); line-height: 1.3; margin: 0 0 8px; text-wrap: balance; }
h2 { scroll-margin-top: 64px; font-size: 20px; line-height: 1.4; margin: 34px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); text-wrap: balance; }
h3 { font-size: 16.5px; margin: 22px 0 6px; }
p, li { font-size: 15.5px; }
p { margin: 0 0 12px; }
.lead { color: var(--text-2); font-size: 16px; }
.muted, .small { color: var(--muted); font-size: 13px; }
a { color: var(--accent); }
ul, ol { padding-left: 1.4em; margin: 0 0 12px; }
li { margin: 3px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 0 0 14px; }
.steps { list-style: none; padding: 0; counter-reset: s; }
.steps > li { counter-increment: s; position: relative; padding-left: 40px; margin: 0 0 14px; }
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 900; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.steps b { display: block; font-size: 16px; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; padding: 0; list-style: none; }
.toc a { display: inline-block; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }
.toc a:hover { border-color: var(--accent); color: var(--accent); }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 14px; }
th, td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12.5px; color: var(--muted); font-weight: 800; }
td.t { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--accent); white-space: nowrap; }
td.y { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text-2); }
dl.faq dt { font-weight: 800; margin-top: 16px; }
dl.faq dd { margin: 4px 0 0; color: var(--text-2); }
.refs li { font-size: 14px; color: var(--text-2); margin-bottom: 8px; overflow-wrap: anywhere; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 999px;
  padding: 11px 20px; font-weight: 800; font-size: 15px; background: var(--accent); color: var(--accent-ink); border: none; cursor: pointer;
}
.btn.off { background: var(--surface-2); color: var(--muted); cursor: default; }
.foot { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.foot nav a { color: var(--text-2); }
.foot p { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

/* 化石の博物館 */
.mu-stat { color: var(--accent); font-weight: 800; font-size: 14px; margin: 0 0 10px; }
.mu-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.mu-seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 2px; }
.mu-seg button { border: none; background: none; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.mu-seg.small button { font-size: 12px; padding: 5px 10px; }
@media (max-width: 420px) { .mu-seg { max-width: 100%; } .mu-seg button { font-size: 12px; padding: 6px 9px; } .mu-seg.small button { font-size: 11.5px; padding: 5px 8px; } }
.mu-seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.mu-list { display: grid; gap: 14px; }
.mu-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px 12px; }
.mu-card.focus { border: 2px solid var(--accent); margin-bottom: 14px; }
.mu-scene { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; border-radius: 10px; image-rendering: crisp-edges; image-rendering: pixelated; background: var(--surface-2); }
.mu-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 8px 0 4px; }
.mu-head b { font-size: 15px; }
.mu-tag { font-size: 11px; font-weight: 900; color: #fff; border-radius: 6px; padding: 1px 7px; }
.mu-tag.dead { background: #8a7a66; }
.mu-tag.alive { background: #2f8a5a; }
.mu-tag.day { background: var(--accent); color: var(--accent-ink); }
.mu-story { font-size: 14px; line-height: 1.8; color: var(--text-2); margin: 0 0 8px; }
.mu-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.mu-heart { border: 1px solid var(--line); background: var(--surface); color: var(--text-2); border-radius: 999px; font: inherit; font-size: 13px; font-weight: 800; padding: 5px 12px; cursor: pointer; white-space: nowrap; }
.mu-heart:hover { border-color: var(--accent); color: var(--accent); }
.mu-heart.on { background: var(--accent-soft); color: var(--accent); border-color: transparent; cursor: default; }
.mu-note { color: var(--text-2); text-align: center; margin: 20px 0; }
.mu-more { text-align: center; margin: 16px 0 0; }
.btn.mu-btn { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.mu-cta { text-align: center; margin: 26px 0 0; }
