/* ==========================================================================
   minigame-page.css — ミニゲームの紹介ページ(minigame.html)だけが読み込む(2026-11-20)
   「会員・ミニゲーム」(loyalty.html)の「ミニゲームを詳しく見る」から来るページ。
   見た目の土台は v2.css(色の変数・見出し・ボタン)。クラスは全部 mgp- で始める
   (漫画の manga.css は mg-、レジのゲームは mg- / ykg- / kc- / pzg- なので重ねない)。
   ========================================================================== */

/* ---- 3本の一覧(ページの上のカード) ---- */
.mgp-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 36px 0 0; padding: 0; list-style: none; }
.mgp-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(11, 31, 51, 0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.mgp-card:hover { transform: translateY(-3px); border-color: var(--cyan-line); box-shadow: 0 14px 30px rgba(11, 31, 51, 0.12); }
.mgp-card:focus-visible { outline: 3px solid var(--cyan-ink); outline-offset: 3px; }
.mgp-card-shot { position: relative; display: block; aspect-ratio: 1600 / 1112; background: #1b1411; overflow: hidden; }
.mgp-card-shot img { width: 100%; height: 100%; object-fit: cover; }
.mgp-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.mgp-card-kind { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--orange-ink); letter-spacing: 0.04em; }
.mgp-card-kind .mgp-emoji { font-size: 22px; line-height: 1; }
.mgp-card b { font-size: 19px; font-weight: 900; color: var(--navy); line-height: 1.35; }
.mgp-card-tx { font-size: 14.5px; line-height: 1.7; color: #3d4b58; }
.mgp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 6px 0 0; list-style: none; }
.mgp-tags li { font-size: 12.5px; font-weight: 800; color: var(--navy); background: var(--soft); border-radius: 999px; padding: 4px 11px; line-height: 1.4; }
.mgp-card-more { margin-top: 6px; font-size: 14px; font-weight: 800; color: var(--cyan-ink); }
.mgp-card-more::after { content: " ↓"; }

/* 新作・準備中の札(お肉カットリズム。卓に出たら HTML から札を外す) */
.mgp-badge { position: absolute; top: 10px; left: 10px; font-size: 12.5px; font-weight: 900; color: #fff; background: var(--orange); border-radius: 999px; padding: 4px 11px; line-height: 1.4; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
.mgp-badge.is-inline { position: static; margin-left: 4px; box-shadow: none; }
.mgp-proto { margin-top: 16px; max-width: 46em; font-size: 14.5px; line-height: 1.75; color: #5a3a12; background: var(--orange-soft); border-left: 4px solid var(--orange); border-radius: 0 10px 10px 0; padding: 10px 16px; }

/* ---- 1本ずつの紹介 ---- */
.v2 [id].mgp-game { scroll-margin-top: 150px; }
.mgp-game-head { margin-bottom: 30px; }
.mgp-game-head .v2-lead { max-width: 46em; }
.mgp-kind { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; font-weight: 800; color: var(--orange-ink); background: var(--orange-soft); border-radius: 999px; padding: 5px 14px; }
.mgp-kind .mgp-emoji { font-size: 20px; line-height: 1; }
.mgp-row { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 44px; align-items: start; }
.mgp-row .v2-screen { background: #1b1411; }

.mgp-h3 { font-size: 19px; font-weight: 900; color: var(--navy); line-height: 1.4; margin: 0 0 14px; }
.mgp-h3 + .mgp-steps { margin-top: 0; }
.mgp-steps { margin: 0; padding: 0; list-style: none; counter-reset: mgpstep; display: grid; gap: 10px; }
.mgp-steps li {
  counter-increment: mgpstep;
  position: relative;
  padding: 12px 14px 12px 54px;
  background: var(--soft);
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--navy);
}
.v2-topic.is-alt .mgp-steps li { background: #fff; }
.mgp-steps li::before {
  content: counter(mgpstep);
  position: absolute;
  left: 14px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}
.mgp-steps li small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.6; margin-top: 2px; }
.mgp-notes { margin-top: 22px; }
.mgp-notes .v2-list li { font-size: 14.5px; }

/* 難易度の3枚(ゲームの難易度のカードと同じ色: 初級 緑・中級 茶・上級 赤) */
.mgp-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 40px 0 0; padding: 0; list-style: none; }
.mgp-level { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 5px solid #4f8a68; border-radius: 14px; padding: 18px 18px 16px; }
/* 下の数字の表(制限時間など)は、3枚で同じ高さにそろえる */
.mgp-level > ul:last-child { margin-top: auto; }
.mgp-level > p, .mgp-level > .mgp-cuts { margin-bottom: 10px; }
.v2-topic.is-alt .mgp-level { border-color: #e2e8ee; border-top-color: #4f8a68; }
.mgp-level.is-normal, .v2-topic.is-alt .mgp-level.is-normal { border-top-color: #a8743f; }
.mgp-level.is-hard, .v2-topic.is-alt .mgp-level.is-hard { border-top-color: #b4473f; }
.mgp-level-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.mgp-level-head b { font-size: 19px; font-weight: 900; color: var(--navy); }
.mgp-stars { color: #e3a60f; font-size: 15px; letter-spacing: 0.08em; }
.mgp-level p { font-size: 14.5px; line-height: 1.7; color: #2b3a47; }
.mgp-level ul { margin: 10px 0 0; padding: 0; list-style: none; border-top: 1px dashed var(--line); padding-top: 10px; }
.mgp-level li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.mgp-level li + li { margin-top: 3px; }
.mgp-level li span:last-child { font-weight: 800; color: var(--navy); text-align: right; }
.mgp-levels-cap { margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* 上級のホルモン(パズル)の部位名 */
.mgp-cuts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.mgp-cuts li { font-size: 12.5px; font-weight: 700; color: var(--navy); background: var(--cream); border-radius: 6px; padding: 2px 8px; }

/* ---- ポイントのしくみ ---- */
.mgp-points-row { margin-top: 44px; }
.mgp-fine { margin-top: 14px; font-size: 13px; line-height: 1.7; color: var(--muted); }

@media (max-width: 1100px) {
  .mgp-index { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 960px) {
  .mgp-row { grid-template-columns: 1fr; gap: 28px; }
  .mgp-levels { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 640px) {
  .mgp-index { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 560px) {
  .mgp-steps li { font-size: 15px; }
  .mgp-game-head .v2-h2 br { display: none; }
}
