/* 「遊び方と設定」をアイコン中心の短い説明に（app.mjs の遊び方と設定の HTML が .help2 を使う）。見た目だけ。
   上の「遊び方｜設定」はタブ（ラジオボタン＋ラベル、スクリプトなし）。設定の部品（.sound-settings）は今までの見た目・動きのまま。
   特殊ピースのアイコンは、画面下の案内と同じ .power ＋ .special-art（今のテーマの絵）を使う */
#modal:has(.help2) { padding: 14px 16px 16px; max-height: 92svh; }
#modal:has(.help2) h2 { font-size: 21px; margin: 0 0 8px; }
/* 版の表記（例：Halloween Version）。タイトルのすぐ下に小さく。表記は help-content.mjs の HELP.edition（空なら出ない） */
#modal:has(.help2-edition) h2 { margin-bottom: 0; }
#modal .help2-edition {
  margin: 1px 0 6px; font-family: 'Fredoka', 'Arial Rounded MT Bold', ui-rounded, system-ui, sans-serif;
  font-size: 13px; font-weight: 600; line-height: 1.2; letter-spacing: .08em; color: #c0672f;
}
#modal .help2-edition::before, #modal .help2-edition::after { content: '✦'; margin: 0 6px; font-size: 9px; vertical-align: 2px; color: #d9a35b; }
#modal:has(.help2) .primary { margin-top: 12px; padding: 12px 20px; }

/* タブ */
.help2-radio { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.help2-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 10px;
  border-radius: 14px; background: #eadbe6; margin-bottom: 8px;
}
.help2-tabs label {
  display: grid; place-items: center; min-height: 38px; border-radius: 11px; cursor: pointer;
  font-size: 15px; font-weight: 800; color: #7a5f80;
}
#helpTabHow:checked ~ .help2-tabs label[for=helpTabHow],
#helpTabSet:checked ~ .help2-tabs label[for=helpTabSet] {
  color: #5a2c14; background: linear-gradient(#fffaf0, #f6e4c4); box-shadow: 0 2px 0 #c9a77c;
}
#helpTabHow:focus-visible ~ .help2-tabs label[for=helpTabHow],
#helpTabSet:focus-visible ~ .help2-tabs label[for=helpTabSet] { outline: 3px solid #b27fc0; outline-offset: 1px; }
.help2-panel { display: none; text-align: left; }
#helpTabHow:checked ~ .help2-how, #helpTabSet:checked ~ .help2-set { display: block; }

/* 基本ルール */
.help2-rule { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 14px; background: #fff8ec; border: 1px solid #ead7c3; }
.help2-rule .help2-tap { font-size: 32px; line-height: 1; }
.help2-rule b { display: block; font-size: 16px; color: #704975; }
.help2-rule span { font-size: 13px; color: #6d5867; }
#modal .help2-goal { margin: 5px 2px 0; font-size: 12.5px; line-height: 1.4; color: #8a6a5a; text-align: center; }

.help2 h3 { margin: 9px 0 5px; font-size: 14px; color: #704975; text-align: center; }

/* 特殊ピース：2×2 のカード（アイコン・個数・名前・効果） */
.help2-specials { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; padding: 0; list-style: none; }
.help2-specials li {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 8px; align-items: center;
  padding: 6px 8px; border-radius: 13px; background: #fff8ec; border: 1px solid #ead7c3;
}
.help2-specials .power { grid-column: 1; grid-row: 1 / 3; width: 36px; height: 40px; border-radius: 11px; }
.help2 .special-art { filter: none; }
.help2-specials .power .special-art { width: 34px; height: 38px; }
.help2-combos .power .special-art { width: 21px; height: 24px; }
.help2-specials em { grid-column: 2; grid-row: 1; font-style: normal; font-size: 13px; font-weight: 900; color: #c0602e; line-height: 1.2; }
.help2-specials b { grid-column: 2; grid-row: 2; white-space: nowrap; font-size: 15px; color: #5a3a5e; line-height: 1.2; }
.help2-specials b small { margin-left: 4px; font-size: 11px; font-weight: 700; color: #8f7a8c; }
.help2-specials span { grid-column: 1 / -1; grid-row: 3; margin-top: 4px; font-size: 12.5px; font-weight: 700; color: #6d4b2f; line-height: 1.3; }

/* コンボ：アイコン2つ＋短い効果（2列） */
.help2-combos { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 0; padding: 0; list-style: none; }
.help2-combos li { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 11px; background: #f6ecf3; }
.help2-combos i { display: flex; gap: 2px; flex: none; }
.help2-combos .power { width: 22px; height: 25px; border-radius: 7px; }
.help2-combos span { font-size: 12.5px; font-weight: 700; color: #5a3a5e; line-height: 1.25; }
/* レインボー＋レインボー：全部消す＋プレゼント（ラン・クウ・リン・レインボー）を横長の1行で */
.help2-combos li.help2-wide { grid-column: 1 / -1; justify-content: center; gap: 5px; }
.help2-gift { display: flex; align-items: center; gap: 2px; padding: 2px 5px 2px 3px; border-radius: 9px; background: #fff3d9; font-style: normal; }
.help2-gift b { font-size: 17px; line-height: 1; margin-right: 1px; }
#modal .help2-note { margin: 6px 2px 0; font-size: 11.5px; line-height: 1.4; color: #8a6a7c; text-align: center; }

/* 設定 */
.help2-set .sound-settings { margin-top: 2px; }

@media (max-width: 350px) {
  .help2-specials b small { display: block; margin-left: 0; }
  .help2-combos { grid-template-columns: 1fr; }
}
