/* 恐竜ずかん（rakko-games.com/zukan/）の 見た目。フォント・色は トップページ（apps/top/index.html）と 同じ */
:root { --fb: "BIZ UDPGothic", system-ui, sans-serif; --fd: "M PLUS Rounded 1c", "BIZ UDPGothic", system-ui, sans-serif; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; color: #3a4a44;
  background: linear-gradient(160deg, #d9f5ea 0%, #eefaf0 45%, #fff8e6 100%);
  font-family: var(--fb);
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
}
main { max-width: 760px; margin: 0 auto; }
a { color: #3f7a68; }
#brand { display: block; margin: 4px 0 18px; text-align: center; font-family: var(--fd); font-size: 1.6rem; font-weight: 800; color: #3f7a68; letter-spacing: .06em; text-decoration: none; }
.box { background: #fffdf6; border-radius: 24px; padding: 20px 20px 24px; margin-bottom: 20px; box-shadow: 0 4px 16px rgba(40, 90, 70, .12); line-height: 2.2; }  /* ふりがなが 上の 行と かさならない 高さ（OFF は 下で 1.8） */
h1, h2 { font-family: var(--fd); font-weight: 800; color: #6b4a22; }
h1 { margin: 0; text-align: center; font-size: 1.7rem; line-height: 1.9; }
h2 { margin: 24px 0 8px; font-size: 1.2rem; line-height: 1.9; }
.box > h2:first-child { margin-top: 0; }
.en { margin: 2px 0 12px; text-align: center; color: #6a5a44; font-style: italic; }
.lead { margin: 0 0 8px; }
.pic { display: block; width: 100%; max-width: 360px; height: auto; aspect-ratio: 1; margin: 0 auto 12px; }
.not-dino { margin: 0 0 12px; padding: 8px 12px; border-radius: 12px; background: #eef6ff; color: #3a5a7a; }
table { width: 100%; border-collapse: collapse; margin: 0 0 8px; }
th, td { padding: 8px 10px; border-bottom: 1px solid #ecdcc0; text-align: left; vertical-align: top; }
th { width: 9em; color: #6a5a44; font-weight: 700; white-space: nowrap; }
.comment { margin: 0; }
/* この恐竜に会えるゲーム：まるごと リンク（大きく おせるように）。同じ タブで ひらく */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.game { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: #fff; border: 3px solid #e6d6b8; color: inherit; text-decoration: none; line-height: 1.4; }
.game img { width: 56px; height: 56px; flex: none; border-radius: 14px; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.game b { font-family: var(--fd); font-size: 1.15rem; font-weight: 800; color: #4a3520; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: 0 0 20px; }
.pager a { line-height: 2; padding: 4px 14px; border-radius: 999px; background: #fffdf6; box-shadow: 0 2px 8px rgba(40, 90, 70, .12); text-decoration: none; font-weight: 700; }
.pager .up { margin: 0 auto; }
/* 一覧：時代ごとの 枠に イラスト＋名前の カード */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 10px; border-radius: 16px; background: #fff; border: 2px solid #e6d6b8; color: inherit; text-decoration: none; text-align: center; font-size: .85rem; line-height: 1.3; overflow-wrap: anywhere; }
.card img { width: 80px; height: 80px; }
.count { margin: 0 0 8px; color: #6a5a44; font-size: .9rem; }
footer { text-align: center; font-size: .8rem; color: #7a8a84; }
/* ふりがな（ビルドで 本文に <ruby> を 書きこむ）。rt は 本文の 半分の 大きさで 少し うすく（ほりほりダイノと 同じ）。
   行の 高さを 広げて、上の 行の 字と かさならないように する。読みが 長くても 漢字の 間を あけない */
ruby { ruby-position: over; ruby-align: center; }
rt { font-size: .5em; font-weight: 400; opacity: .7; line-height: 1; }
html.nofuri rt { display: none; }
html.nofuri .box { line-height: 1.8; }
/* ふりがなの ON/OFF（JS が ある ときだけ 出す。zukan.js） */
.furi-sw { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin: -8px 0 12px; font-size: .9rem; font-weight: 700; color: #6a5a44; }
.furi-sw[hidden] { display: none; }
.furi-sw button { font: inherit; min-width: 3.2em; padding: 6px 10px; border-radius: 999px; border: 2px solid #e6d6b8; background: #fffdf6; color: #6a5a44; cursor: pointer; }
.furi-sw button[aria-pressed="true"] { background: #3f7a68; border-color: #3f7a68; color: #fff; }
footer a { color: inherit; }
