/* =========================================================
   攻略図鑑 記事の部品「読まなくても分かる」改修  ミナ 2026-11-08
   読み込み順：site.css → この components.css → theme.css（theme-ab.css）
     ・build.py が site.css の後ろに連結する（theme-ab.css は「必ず最後・1枚だけ」のまま）
     ・色はすべて site.css / theme-ab.css の変数だけを使う（新しい色は作らない）
     ・タイプ色は .t-{type} の --tb / --tbg / --tfg（コントラスト検証済み）だけ
   部品の一覧
     0. 共通ラベル（.box-lbl）・タイプ色の帯（.tband）・時期の札（.when）
     1. パーティカード（.party-tabs / .party / .pslot）  ※タブは components.js、JSなしでは3つとも縦に並ぶ
     2. 1匹カード（.mon-list / .mon-card / details.more）・どちらか1匹（.either）・入れかえ候補（.mon-card.is-alt）
     3. 折りたたみの並び（.fold-list ＋ 既存 details.fold）
     4. 要点の枠（.points：3つまで）
     5. 注意の枠（.callout-warn：1画面1つまで）
     6. 表のスマホ表示（table.data.stack：4列以上を自動でカードに）
     7. このページについて（.page-about）・計算の印（.calc-mark）
     8. 1行リード（.lead-1）・ジャンプリンク（.jump）
     9. 作品えらび（.game-finder / .gtile）  ※/pokemon/ と切り替えシートで同じ部品。設計は 作品えらび.md
   ========================================================= */

/* ---------- 0. 共通 ---------- */
.box-lbl {
  display: inline-block; font-family: "Zen Maru Gothic", "BIZ UDPGothic", sans-serif; font-weight: 700;
  font-size: 13px; line-height: 1.6; padding: 0 10px; border-radius: 6px;
  background: var(--ink); color: var(--surface); white-space: nowrap;
}
html[data-theme="dark"] .box-lbl { color: #14121F; }

/* タイプ色の帯：カード上辺 6px。2タイプなら左右に半分ずつ（文字は載せない） */
.tband { position: absolute; left: 0; right: 0; top: 0; height: 6px; display: flex; pointer-events: none; }
.tband i { flex: 1; background: var(--tb); }

/* 時期の札「⓪ バッジ0個〜」。色は補助、情報は丸数字と文字で伝える */
.when {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 700; line-height: 1.5; padding: 1px 8px; white-space: nowrap;
  border: 1.5px solid var(--ink); border-radius: 8px; background: var(--main-soft); color: var(--text);
}
.when b { font-size: 15px; font-weight: 700; }
.when[data-stage="start"] { background: var(--pop); color: #1C1A2E; }          /* 最初から（御三家） */
.when[data-stage="early"] { background: var(--main-soft); }                     /* ⓪〜② */
.when[data-stage="mid"]   { background: var(--note-bg); color: var(--note-text); } /* ③〜⑤ */
.when[data-stage="late"]  { background: var(--surface); border-style: dashed; }  /* ⑥〜⑧ */
html[data-theme="dark"] .when[data-stage="start"] { color: #14121F; }

/* ---------- 1. パーティカード ---------- */
.party-tabs { margin: 16px 0 8px; }
.party-tablist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.party-tablist[hidden] { display: none; }
.party-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 52px; padding: 6px 4px; font: inherit; font-weight: 700; font-size: 15px; line-height: 1.3;
  color: var(--text); background: var(--surface); cursor: pointer;
  border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--lift-sm);
}
.party-tab::before {             /* 御三家のタイプ色のひし形（.t-fire などを button に付ける） */
  content: ""; width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); background: var(--tb);
  border: 1.5px solid var(--ink);
}
.party-tab small { font-size: 11px; font-weight: 400; color: var(--muted); }
.party-tab[aria-selected="true"] {
  background: var(--main); color: #FFFFFF; transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink);
}
.party-tab[aria-selected="true"] small { color: #FFFFFF; }
html[data-theme="dark"] .party-tab[aria-selected="true"],
html[data-theme="dark"] .party-tab[aria-selected="true"] small { color: #14121F; }

.party {
  background: var(--surface); border: var(--bw) solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--lift); padding: 12px;
}
.party + .party { margin-top: 16px; }            /* JSなし：3つ縦に並ぶ */
.party[hidden] { display: none !important; }     /* JSあり：選んだ1つだけ */
.party-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.party-head h3 { margin: 0; font-size: 17px; }
.party-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 600px) { .party-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pslot {
  position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0;
  padding: 13px 10px 10px; background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; overflow: hidden;
}
.pslot-name { font-family: "Zen Maru Gothic", "BIZ UDPGothic", sans-serif; font-weight: 700; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.pslot-name a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--main) 55%, transparent); }
.pslot .types { gap: 4px; }
.pslot .type { font-size: 12px; padding: 1px 8px 1px 7px; gap: 5px; }
.pslot-sub { font-size: 12px; line-height: 1.5; color: var(--muted); }
.pslot .either-row { display: flex; align-items: center; gap: 6px; }   /* FR/LGで変わる枠 */
.party-note { margin: 10px 2px 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ---------- 2. 1匹カード ---------- */
.mon-list { display: grid; gap: 14px; margin: 12px 0 20px; }
.mon-card {
  position: relative; overflow: hidden; background: var(--surface);
  border: var(--bw) solid var(--ink); border-radius: var(--radius); box-shadow: var(--lift);
  padding: 16px 14px 0;
}
.mon-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 10px; }
.mon-name { flex: 1 1 100%; margin: 0; font-size: 19px; line-height: 1.35; }
.mon-name a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--main) 55%, transparent); }
.mon-name small { font-family: "BIZ UDPGothic", sans-serif; font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.mon-name small a { color: var(--muted); }
.mon-rows { margin: 0; display: grid; gap: 6px; }
.mon-rows .row { display: grid; grid-template-columns: 4.6em 1fr; gap: 10px; align-items: baseline; }
.mon-rows dt {
  font-size: 12px; font-weight: 700; line-height: 1.6; text-align: center; color: var(--muted);
  border: 1.5px solid var(--line); border-radius: 6px; padding: 0 2px;
}
.mon-rows dd { margin: 0; font-size: 15px; line-height: 1.65; min-width: 0; }
.mon-rows .is-move dd { font-weight: 700; }
.mon-rows .is-pick dt { background: var(--main-soft); color: var(--main); border-color: color-mix(in srgb, var(--main) 45%, transparent); }  /* 当サイトの評価 */
.mon-rows .is-cond dt { color: var(--text); border-color: var(--ink); }   /* 結論を変える条件（なみのりが要る など） */
.mon-rows .is-warn dt { background: var(--note-bg); color: var(--note-text); border-color: color-mix(in srgb, var(--note-text) 40%, transparent); }

/* 「くわしく」：カードの下辺いっぱいの開閉 */
details.more { margin: 12px -14px 0; border-top: 2px dashed var(--line); }
details.more > summary {
  list-style: none; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 6px 14px; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--main);
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after {
  content: "＋"; display: inline-grid; place-items: center; width: 20px; height: 20px;
  border: 2px solid currentColor; border-radius: 6px; font-size: 13px; line-height: 1;
}
details.more[open] > summary::after { content: "－"; }
details.more > summary small { font-weight: 400; color: var(--muted); font-size: 12px; }
.more-body { padding: 0 14px 14px; font-size: 14px; line-height: 1.75; }
.more-body > :last-child { margin-bottom: 0; }
.more-body ul { padding-left: 1.2em; margin: 0 0 .6em; }
.more-body .table-scroll { margin: 6px 0 0; box-shadow: none; }

/* どちらか1匹（FRだけ／LGだけ）：2枚を1つの枠で囲む */
.either { position: relative; border: 2px dashed var(--ink); border-radius: calc(var(--radius) + 4px); padding: 18px 10px 10px; }
.either > .box-lbl { position: absolute; left: 12px; top: -12px; }
.either .mon-list { margin: 0; }
@media (min-width: 600px) { .either .mon-list { grid-template-columns: 1fr 1fr; } }

/* 入れかえ候補（6匹に入っていない）：影なし・点線で「控え」に見せる */
.mon-card.is-alt { box-shadow: none; border-style: dashed; }
.mon-card.is-alt .alt-lbl { order: -1; }

/* ---------- 3. 折りたたみの並び ---------- */
.article details.fold { margin: 10px 0; }
.article details.fold > summary { gap: 10px; line-height: 1.5; }
/* 「＋ ひらく」は折り返さない（見出しが長いときは見出しの側が折り返す） 2026-11-08 撮影確認で修正 */
.article details.fold > summary::after { flex: 0 0 auto; white-space: nowrap; }
.article details.fold > summary > .fold-sum,
.article details.fold > summary > span:first-child { flex: 1 1 auto; min-width: 0; }
.fold-list { display: grid; gap: 10px; margin: 12px 0 20px; }
.fold-list details.fold { margin: 0; }
.fold-sum { display: flex; flex-direction: column; min-width: 0; }
.fold-sum small { font-family: "BIZ UDPGothic", sans-serif; font-weight: 400; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- 4. 要点の枠（3つまで） ---------- */
.points {
  position: relative; margin: 24px 0 20px; padding: 20px 16px 14px; background: var(--surface);
  border: var(--bw) solid var(--ink); border-radius: var(--radius); box-shadow: var(--lift);
}
.points > .box-lbl { position: absolute; left: 12px; top: -12px; }
.points ol { list-style: none; margin: 0; padding: 0; counter-reset: pt; display: grid; gap: 10px; }
.points li { counter-increment: pt; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; margin: 0; font-size: 16px; line-height: 1.65; }
.points li::before {
  content: counter(pt); display: grid; place-items: center; width: 26px; height: 26px; margin-top: 1px;
  border: 2px solid var(--ink); border-radius: 8px; background: var(--pop); color: #1C1A2E; font-weight: 700; font-size: 14px;
}
html[data-theme="dark"] .points li::before { color: #14121F; }
.points strong { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--pop) 60%, transparent) 62%); }
html[data-theme="dark"] .points strong { background: linear-gradient(transparent 70%, color-mix(in srgb, var(--main) 35%, transparent) 70%); }

/* ---------- 5. 注意の枠（1画面1つまで） ---------- */
.callout-warn {
  position: relative; margin: 24px 0 20px; padding: 20px 16px 14px; background: var(--note-bg); color: var(--text);
  border: var(--bw) solid var(--ink); border-radius: var(--radius); box-shadow: var(--lift-sm);
}
.callout-warn > .box-lbl { position: absolute; left: 12px; top: -12px; background: var(--accent); color: var(--on-accent); }
.callout-warn > .box-lbl::before { content: "！"; margin-right: 2px; }
.callout-warn .warn-title { margin: 0 0 6px; font-weight: 700; font-size: 16px; line-height: 1.55; }
.callout-warn p { font-size: 15px; line-height: 1.7; }
.callout-warn > :last-child { margin-bottom: 0; }
.callout-warn a { color: inherit; font-weight: 700; }
.callout-warn .table-scroll { margin: 8px 0 0; box-shadow: none; }

/* ---------- 6. 表のスマホ表示：4列以上は1行＝1枚のカード ----------
   build.py が 4列以上の表に class="data stack"、各 td に data-label="（列の見出し）" を付ける。
   1列目＝カードの見出し。2列目以降は「見出し｜中身」の2段。 */
@media (max-width: 599px) {
  .article .table-scroll.is-stack { overflow: visible; border: none; box-shadow: none; background: transparent; border-radius: 0; }
  table.data.stack, table.data.stack tbody, table.data.stack tr, table.data.stack td { display: block; width: 100%; }
  table.data.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.data.stack tr {
    background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--lift-sm);
    padding: 10px 12px; margin: 0 0 12px;
  }
  .article table.data.stack td {
    min-width: 0; border: none; padding: 3px 0; display: grid; grid-template-columns: 6.5em 1fr; gap: 8px; font-size: 14px;
  }
  table.data.stack td::before { content: attr(data-label); font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.8; }
  .article table.data.stack td:first-child {
    display: block; padding: 0 0 6px; margin: 0 0 6px; border-bottom: 2px dashed var(--line);
    font-family: "Zen Maru Gothic", "BIZ UDPGothic", sans-serif; font-weight: 700; font-size: 17px;
  }
  table.data.stack td:first-child::before { content: none; }
  table.data.stack td:empty, table.data.stack td.is-dash { display: none; }   /* 「—」だけのマスは出さない */
}

/* 数字を横に比べる表（種族値など）はカードにしない：build.py が class="data num-table" を付け、stack にしない。
   スマホでは横スクロールのまま、1列目（名前）を左に固定し、数字は右そろえ */
table.data.num-table td:not(:first-child), table.data.num-table th:not(:first-child) { text-align: right; white-space: nowrap; }
.article table.data.num-table td:not(:first-child), .article table.data.num-table th:not(:first-child) { min-width: 3.5em; }
table.data.num-table td:first-child, table.data.num-table th:first-child {
  position: sticky; left: 0; z-index: 1; background: var(--surface); white-space: nowrap;
  box-shadow: 2px 0 0 var(--line);
}
table.data.num-table thead th:first-child { background: var(--main-soft); }

/* ---------- 7. このページについて（ページ末の小さい箱） ---------- */
.page-about {
  margin: 48px 0 0; padding: 14px 16px; background: var(--bg); color: var(--muted);
  border: 2px solid var(--line); border-radius: var(--radius); font-size: 13px; line-height: 1.75;
}
.page-about-h { margin: 0 0 8px; font-size: 15px; color: var(--text); }
.page-about dl { margin: 0; display: grid; gap: 6px; }
.page-about .row { display: grid; grid-template-columns: 8em 1fr; gap: 10px; padding: 2px 4px; border-radius: 6px; scroll-margin-top: 80px; }
.page-about .row:target { background: var(--note-bg); color: var(--note-text); }
.page-about dt { font-weight: 700; color: var(--text); }
.page-about .row:target dt { color: var(--note-text); }
.page-about dd { margin: 0; }
.page-about details { margin-top: 10px; border-top: 1px dashed var(--line); }
.page-about summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; color: var(--text); }
.src-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.src-list li { margin: 0; }
.src-list .src-meta { display: block; font-size: 12px; }
@media (max-width: 420px) { .page-about .row { grid-template-columns: 1fr; gap: 0; } }

/* 計算の印：「データから計算・実機では未確認」を本文では短く。押すと上の箱の説明へ */
.calc-mark {
  display: inline-block; margin-left: 4px; padding: 0 6px; vertical-align: 1px; white-space: nowrap;
  font-size: 11px; font-weight: 700; line-height: 1.6; text-decoration: none;
  color: var(--muted); border: 1.5px solid var(--muted); border-radius: 999px;
}
.calc-mark:hover { color: var(--main); border-color: var(--main); }

/* ---------- 8. 1行リード・ジャンプリンク ---------- */
.lead-1 { font-size: 15px; line-height: 1.7; margin: 4px 0 8px; }
.jump { font-size: 13px; font-weight: 700; white-space: nowrap; }
.jump::after { content: " ↓"; }

/* ---------- 9. 作品えらび（/pokemon/ の「作品をえらぶ」と、作品チップの切り替えシートで共通） ----------
   画像・ロゴ・パッケージ風の飾りは使わない。作品ごとの色も付けない（公式の色と見まちがえないため）。
   見分けは「名前・機種・発売年・相性表の種類・公開中／準備中」の文字だけ。色は公開状態にだけ使う。 */
.game-finder { margin: 12px 0 24px; }

/* 公開中の作品（いちばん上に大きく） */
.gf-live { display: grid; gap: 10px; margin: 0 0 18px; }
@media (min-width: 600px) { .gf-live { grid-template-columns: 1fr 1fr; } }

/* 探す道具（JSがあるときだけ出す：JSなしは全作品が並ぶだけ） */
.gf-tools[hidden] { display: none; }
.gf-tools { display: grid; gap: 10px; margin: 0 0 14px; }
.gf-search { position: relative; }
.gf-search input {
  width: 100%; min-height: 48px; padding: 8px 12px; font: inherit; font-size: 16px;   /* 16px未満だとiPhoneで拡大される */
  color: var(--text); background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--lift-sm);
}
.gf-search input::placeholder { color: var(--muted); }
.gf-plat-lbl { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.gf-plat { display: flex; flex-wrap: wrap; gap: 6px; }
.gf-plat button {
  min-height: 44px; padding: 4px 12px; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.3;
  color: var(--text); background: var(--surface); border: 2px solid var(--ink); border-radius: 999px; box-shadow: var(--lift-sm); cursor: pointer;
}
.gf-plat button[aria-pressed="true"] { background: var(--main); color: #FFFFFF; transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.gf-plat button[aria-pressed="true"]::before { content: "✓ "; }
html[data-theme="dark"] .gf-plat button[aria-pressed="true"] { color: #14121F; }
.gf-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.gf-count { margin: 0; font-size: 13px; color: var(--muted); }
.gf-count b { color: var(--text); }
.gf-sort, .gf-reset {
  min-height: 44px; padding: 4px 10px; font: inherit; font-size: 13px; font-weight: 700; color: var(--main);
  background: transparent; border: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* 世代のかたまり（世代は通称。見出しの注記は1ページ1回） */
.gf-gen { margin: 16px 0 0; }
.gf-gen[hidden] { display: none; }
.gf-gen-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; }
.gf-gen-h .gen-no {
  display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px;
  border: 2px solid var(--ink); border-radius: 9px; background: var(--surface); box-shadow: 2px 2px 0 var(--ink); font-size: 15px;
}
.gf-gen-h small { font-family: "BIZ UDPGothic", sans-serif; font-weight: 400; font-size: 12px; color: var(--muted); }
.gf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gf-list > li { margin: 0; }
.gf-list > li[hidden] { display: none; }
.gf-note { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.gf-empty { padding: 14px; border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 14px; }
.gf-empty[hidden] { display: none; }

/* 作品の札（1作＝1枚。リンクかボタン） */
.gtile {
  /* 2026-11-08 撮影確認で変更：名前に横幅を全部わたす（右の列に札3つを縦に積むと、名前が2〜3文字ずつ折り返したため）
     1段目＝名前｜公開状態、2段目＝機種と年、3段目＝リメイク元、4段目＝相性表｜行き先 */
  grid-template-areas: "name st" "meta meta" "remake remake" "chart go";
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center;
  width: 100%; min-height: 64px; padding: 10px 12px 10px 16px; text-align: left; text-decoration: none;
  font: inherit; color: var(--text); background: var(--surface); cursor: pointer;
  border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--lift-sm);
}
.gtile::before {               /* 左の縦帯：公開中＝メイン色、準備中＝点線（色だけに頼らず文字の札も付ける） */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; border-radius: 10px 0 0 10px; background: var(--main);
}
.gtile.is-soon::before { background: repeating-linear-gradient(180deg, var(--muted) 0 4px, transparent 4px 8px); opacity: .6; }
.gtile:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.gtile-name {
  grid-area: name; font-family: "Zen Maru Gothic", "BIZ UDPGothic", sans-serif; font-weight: 700; font-size: 16px; line-height: 1.4;
  font-feature-settings: "palt"; letter-spacing: 0;   /* 「・」や長い作品名の字間を詰める */
}
.gtile-meta { grid-area: meta; font-size: 12px; line-height: 1.6; color: var(--muted); }
.gtile-remake { grid-area: remake; font-size: 12px; line-height: 1.5; color: var(--muted); }
.gtile-remake::before { content: "◇ "; }
.gtile-side { display: contents; }   /* 中の3つをそれぞれ札の決まった位置に置く */
.gtile-side .st { grid-area: st; align-self: start; margin-top: 2px; }
.gtile-side .chart-pill { grid-area: chart; justify-self: start; margin-top: 4px; }
.gtile-side .gtile-go { grid-area: go; justify-self: end; margin-top: 4px; }
.st {
  display: inline-block; padding: 0 8px; font-size: 12px; font-weight: 700; line-height: 1.7; white-space: nowrap; border-radius: 999px;
}
.st-live { background: var(--main); color: #FFFFFF; border: 1.5px solid var(--ink); }
html[data-theme="dark"] .st-live { color: #14121F; }
.st-soon { background: transparent; color: var(--muted); border: 1.5px dashed var(--muted); }
.chart-pill { font-size: 11px; font-weight: 700; line-height: 1.6; padding: 0 6px; border: 1.5px solid var(--line); border-radius: 6px; color: var(--muted); white-space: nowrap; }
.gtile-go { font-size: 12px; font-weight: 700; color: var(--main); white-space: nowrap; }
.gtile.is-soon .gtile-go { color: var(--muted); font-weight: 400; }

/* 公開中の大きい札 */
.gf-live .gtile { min-height: 84px; padding: 14px 14px 14px 18px; box-shadow: var(--lift); }
.gf-live .gtile-name { font-size: 18px; }

/* 選んでいる作品（シート）・前回の作品 */
.gtile[aria-current="true"] { background: var(--main-soft); }
.gtile[aria-current="true"] .gtile-name::after { content: "（いま選んでいる作品）"; font-family: "BIZ UDPGothic", sans-serif; font-weight: 400; font-size: 12px; color: var(--main); margin-left: 4px; }
.gtile.is-last { outline: 3px solid var(--pop); outline-offset: 2px; }

/* 準備中を選んだときの案内（シートの中・/pokemon/ の札の下） */
.soon-guide {
  margin: 8px 0 0; padding: 10px 12px; font-size: 14px; line-height: 1.7;
  background: var(--note-bg); color: var(--note-text); border: 2px solid var(--ink); border-radius: 12px;
}
.soon-guide[hidden] { display: none; }
.soon-guide p { margin: 0 0 6px; }
.soon-guide .btn { min-height: 44px; padding: 6px 14px; font-size: 14px; }

/* 切り替えシートでは探す道具を上に固定し、札を少し小さく */
dialog.sheet .gf-tools { position: sticky; top: 57px; z-index: 1; background: var(--surface); padding: 8px 0; margin: 0; }
dialog.sheet .gtile { min-height: 56px; box-shadow: none; }
dialog.sheet .gf-gen { margin-top: 12px; }
/* シートでは「前回の作品」の黄色い枠を出さない（いま選んでいる作品の印と2つ重なり、選び直すと古い方に残るため）。
   前回の作品の印は /pokemon/ の札だけで使う */
dialog.sheet .gtile.is-last { outline: none; }
