/* リコリス・リコイル 前兆ステージ サブ液晶の判定（[lycoris_pt]・js/lycoris-pt.js）
   2026-09-25 オーナー指示。「初期配置マス→」のように1つずつ聞く形。
   機種ページの本文（.entry-content）に出るので、テーマの表・ボタンの全体指定に負けないよう .hp-lpt の中だけで完結させる */
.hp-lpt {
  --lpt-blue: #2b7de0;
  --lpt-green: #1f9d57;
  --lpt-red: #e04343;
  margin: 14px 0 22px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line-gold, rgba(245, 184, 0, 0.3));
  border-radius: 12px;
  background: var(--bg-card, #fff);
  color: var(--text-main, #1a1a1a);
  line-height: 1.6;
}
.hp-lpt__title {
  margin: 0 0 6px;
  color: var(--text-gold, #8a5e00);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ①初期配置 ②マスの色 の見出し */
.hp-lpt__sec {
  margin: 12px 0 0;
  padding: 0 0 4px;
  border-bottom: 1px solid var(--line-gold-hi, rgba(245, 184, 0, 0.5));
  color: var(--text-light, #666);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.hp-lpt__title + .hp-lpt__sec { margin-top: 2px; }

/* 質問の行: 「青マス →」 [−] 0個 [＋] */
.hp-lpt__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-gold, rgba(245, 184, 0, 0.3));
}
.hp-lpt__q-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.98rem;
  font-weight: 800;
  white-space: nowrap;
}
.hp-lpt__q-label small {
  margin-left: 2px;
  color: var(--text-light, #666);
  font-size: 0.72rem;
  font-weight: 700;
}
.hp-lpt__dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}
.hp-lpt__q--blue .hp-lpt__dot { background: var(--lpt-blue); }
.hp-lpt__q--green .hp-lpt__dot { background: var(--lpt-green); }
.hp-lpt__q--red .hp-lpt__dot { background: var(--lpt-red); }

/* 9マス / 10マス */
.hp-lpt__seg { display: inline-flex; gap: 6px; }
.hp-lpt .hp-lpt__seg-btn {
  min-width: 72px;
  min-height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 1.5px solid var(--line-gold-hi, rgba(245, 184, 0, 0.5));
  border-radius: 8px;
  background: transparent;
  color: var(--text-main, #1a1a1a);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}
.hp-lpt .hp-lpt__seg-btn.is-on {
  border-color: var(--gold, #f5b800);
  background: var(--gold, #f5b800);
  color: #131419;
}

/* − 0個 ＋ */
.hp-lpt__step { display: inline-flex; align-items: center; gap: 6px; }
.hp-lpt .hp-lpt__step-btn {
  width: 44px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--line-gold-hi, rgba(245, 184, 0, 0.5));
  border-radius: 8px;
  background: transparent;
  color: var(--text-main, #1a1a1a);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation; /* 連打で拡大しないように */
  user-select: none;
}
.hp-lpt__q--blue .hp-lpt__step-btn[data-d="1"] { border-color: var(--lpt-blue); background: var(--lpt-blue); color: #fff; }
.hp-lpt__q--green .hp-lpt__step-btn[data-d="1"] { border-color: var(--lpt-green); background: var(--lpt-green); color: #fff; }
.hp-lpt__q--red .hp-lpt__step-btn[data-d="1"] { border-color: var(--lpt-red); background: var(--lpt-red); color: #fff; }
.hp-lpt .hp-lpt__step-btn:disabled { opacity: 0.35; cursor: default; }
.hp-lpt .hp-lpt__step-btn:active:not(:disabled) { transform: scale(0.95); }
.hp-lpt .hp-lpt__step-btn:focus-visible,
.hp-lpt .hp-lpt__seg-btn:focus-visible { outline: 3px solid var(--text-main, #1a1a1a); outline-offset: 2px; }
.hp-lpt__step-val {
  min-width: 1.6em;
  font-size: 1.35rem;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.hp-lpt__step-unit { margin-left: -3px; color: var(--text-light, #666); font-size: 0.78rem; font-weight: 700; }

/* 合計と期待度 */
.hp-lpt__result {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 0;
}
.hp-lpt__total { display: flex; align-items: baseline; gap: 3px; }
.hp-lpt__total-label { margin-right: 4px; color: var(--text-light, #666); font-size: 0.78rem; font-weight: 700; }
.hp-lpt__num {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hp-lpt__unit { font-size: 1rem; font-weight: 700; color: var(--text-light, #666); }
.hp-lpt__rate { text-align: right; }
.hp-lpt__rate-label { display: block; font-size: 0.72rem; color: var(--text-light, #666); }
.hp-lpt__rate-val {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.hp-lpt.is-hot .hp-lpt__rate-val { color: var(--lpt-red); }

/* 期待度のバー */
.hp-lpt__meter {
  height: 8px;
  margin: 10px 0 0;
  border-radius: 999px;
  background: var(--bg-card-hi, rgba(0, 0, 0, 0.06));
  overflow: hidden;
}
.hp-lpt__meter > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--gold, #f5b800);
  transition: width 0.2s ease;
}
.hp-lpt.is-hot .hp-lpt__meter > span { background: var(--lpt-red); }

/* 判定（10マス・青4個以上 など。強いものは赤い線） */
.hp-lpt .hp-lpt__msgs {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.hp-lpt__msgs[hidden] { display: none; }
.hp-lpt .hp-lpt__msgs li {
  margin: 6px 0 0;
  padding: 7px 10px;
  border-left: 3px solid var(--gold, #f5b800);
  border-radius: 6px;
  background: rgba(245, 184, 0, 0.12);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
}
.hp-lpt .hp-lpt__msgs li::before { content: none; }
.hp-lpt .hp-lpt__msgs li strong { color: var(--text-gold, #8a5e00); }
.hp-lpt .hp-lpt__msgs li.is-strong { border-left-color: var(--lpt-red); background: rgba(224, 67, 67, 0.1); }
.hp-lpt .hp-lpt__msgs li.is-strong strong { color: var(--lpt-red); }
.hp-lpt__hint { margin: 8px 0 0; color: var(--text-light, #666); font-size: 0.78rem; }
.hp-lpt__hint[hidden] { display: none; }

/* リセット */
.hp-lpt__ops { display: flex; justify-content: flex-end; margin: 10px 0 0; }
.hp-lpt .hp-lpt__op {
  min-height: 36px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--line-gold-hi, rgba(245, 184, 0, 0.5));
  border-radius: 8px;
  background: transparent;
  color: var(--text-main, #1a1a1a);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.hp-lpt .hp-lpt__op:disabled { opacity: 0.4; cursor: default; }

/* 期待度の表（開閉） */
.hp-lpt__table { margin: 10px 0 0; font-size: 0.85rem; }
.hp-lpt__table > summary {
  cursor: pointer;
  color: var(--text-gold, #8a5e00);
  font-weight: 700;
}
.hp-lpt .hp-lpt__table table {
  width: 100%;
  margin: 8px 0 0;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.hp-lpt .hp-lpt__table th,
.hp-lpt .hp-lpt__table td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--line-gold, rgba(245, 184, 0, 0.3));
  text-align: left;
}
.hp-lpt .hp-lpt__table tr.is-now td {
  background: rgba(245, 184, 0, 0.16);
  font-weight: 800;
}
.hp-lpt__note { margin: 6px 0 0; color: var(--text-light, #666); font-size: 0.75rem; line-height: 1.7; }

@media (max-width: 360px) {
  .hp-lpt .hp-lpt__seg-btn { min-width: 60px; padding: 0 8px; }
  .hp-lpt .hp-lpt__step-btn { width: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-lpt__meter > span { transition: none; }
}
