/* 購入の窓（harry-pay.js が出す）。ゲームの画面の上にも重ねるので、色の変数は窓の中だけで決める（ゲーム側のCSSとぶつけない） */
.hp-veil, .hp-toast {
  --bg: #FFFFFF; --surface: #FAF7F2; --ink: #2B2118; --muted: #6B5D50; --line: #ECE5DC;
  --accent: #B84A12; --accent-ink: #FFFFFF; --accent-soft: #FFE7CC; --ng: #B23A26;
  --btn: #FFC93C; --btn-ink: #2B1D12; --ink: #2B1D12;
  --round: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --font: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}
html[data-site="study"] .hp-veil, html[data-site="study"] .hp-toast { --accent: #1F5FAE; --accent-soft: #DCEBFF; --btn: #1F5FAE; --btn-ink: #FFFFFF; --ink: #14243A; }
.hp-veil *, .hp-toast { box-sizing: border-box; }
.hp-btn { display: inline-block; font: inherit; font-weight: 800; font-size: 16px; padding: 12px 20px; border-radius: 99px; border: 2.5px solid var(--ink); background: var(--btn); color: var(--btn-ink); cursor: pointer; text-align: center; box-shadow: 0 4px 0 var(--ink); transition: transform .08s, box-shadow .08s; }
.hp-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.hp-btn:disabled { opacity: .5; cursor: default; }
.hp-sheet a { color: var(--accent); }
.hp-veil { position: fixed; inset: 0; z-index: 9999; background: rgba(30, 20, 12, .55); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.hp-sheet { position: relative; width: min(640px, 100%); background: var(--bg); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 20px; padding: 26px 22px 18px; box-shadow: 0 8px 0 var(--ink); font-family: var(--font); line-height: 1.7; text-align: left; font-family: var(--round); }
.hp-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: none; font-size: 24px; color: var(--muted); cursor: pointer; }
.hp-eyebrow { margin: 0; font-size: 12px; letter-spacing: .12em; color: var(--accent); font-weight: 700; }
.hp-sheet h2 { font-family: var(--round); font-size: 21px; margin: 4px 0 6px; padding-right: 28px; }
.hp-lead { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.hp-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .hp-plans { grid-template-columns: 1fr; } }
.hp-plan { border: 2px solid var(--ink); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.hp-plan-sub { background: var(--accent-soft); }
.hp-plan p { margin: 0; }
.hp-plan-k { font-size: 12px; color: var(--accent); font-weight: 700; }
.hp-plan-n { font-weight: 700; }
.hp-price { font-family: var(--round); font-size: 24px; font-weight: 800; }
.hp-price small { font-size: 12px; font-weight: 400; color: var(--muted); }
.hp-note { font-size: 13px; color: var(--muted); }
.hp-fine { font-size: 12px; color: var(--muted); margin-top: 4px !important; }
.hp-plan .hp-btn { margin-top: 10px; width: 100%; }
.hp-msg { min-height: 1.5em; margin: 10px 0 0; font-size: 14px; color: var(--ng); }
.hp-foot { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.hp-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9999; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

