@charset "utf-8";

/* =========================================================================
   高島宗一郎 公式ファンサイト — ゲーム（高島宗一郎に挑戦）

   超高島ブースターに上がった人が、ホームの高島アイコンから来る先。
   3 つのステージを置く予定で、いまは第1・第2が遊べる。

   見た目は、サイトの他の画面と同じ紺（#091a35）と金（#e9d07a）で揃えて
   ある。ゲームそれぞれの持ち味（第1の液晶、第2の豚）は色を残し、
   周りの器（地・カード・ボタン・文字）だけを共通にした。

   動きは transform と opacity だけで作る。filter の中で動かすと毎コマ
   ぼかしを計算し直してコマを落とす（NOTES §2.31 の教訓）。
   ========================================================================= */

:root {
  --gm-ink:      #091a35;
  --gm-ink-2:    #050f21;
  --gm-panel:    linear-gradient(180deg, #102547 0%, #0b1c38 100%);
  --gm-line:     rgba(217, 180, 94, .35);
  --gm-line-2:   rgba(255, 255, 255, .12);
  --gm-text:     #f1e9d2;
  --gm-muted:    #cfc4a3;
  --gm-faint:    #a99e80;
  --gm-gold:     #e9d07a;
  --gm-gold-2:   #f2e2ac;
  --gm-gold-3:   #c9ab45;
  --gm-onGold:   #24304a;
  --gm-flame:    #ff7a1a;
  --gm-flame-2:  #c9441f;
  --gm-blue:     #4f8ded;
  --gm-col:      520px;
}

html { -webkit-text-size-adjust: 100%; }

body.gm {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--gm-text);
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  font-feature-settings: 'palt';
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  background-color: var(--gm-ink);
  background-image:
    radial-gradient(120% 70% at 50% -10%, rgba(233, 208, 122, .10), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  overscroll-behavior-y: none;
}

/* ---------- 画面の器 ---------- */

.gm-app {
  position: relative;
  max-width: var(--gm-col);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
}
.gm-screen {
  display: none;
  flex-direction: column;
  gap: 14px;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px calc(env(safe-area-inset-bottom, 0px) + 18px);
}
.gm-screen.is-on { display: flex; }
/* 読む画面（タイトル・結果）は中身の丈でよい。画面いっぱいを取ると、
   短いときに下へ大きな空きができ、「ホームに戻る」が遠ざかる
   （発注者指摘 2026-08-30）。遊びの画面は全画面のままにする */
.gm-screen--scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; }

/* 遊びの画面は、指の動きをブラウザに渡さない。連打や早押しが
   「ダブルタップ拡大」や「ピンチ」に化けるのを、ここで断つ
   （発注者報告 2026-08-29）。動かす必要のない画面なので、
   スクロールを取り上げても困らない */
/* 中の要素まで一つひとつ止めておく。ブラウザは触った場所から上へ
   たどって決めるので親だけでも効くが、あとから中に別の指定が入ったとき、
   そこだけ拡大できてしまう。畑のマス目のように、指で直接さわるものが
   並ぶ画面では、明示しておくほうが安全（発注者報告 2026-08-29・第3） */
.gm-screen--play,
.gm-screen--play * { touch-action: none; }
/* 第2は画面のどこを叩いてもよい作りなので、遊んでいるあいだは
   ページ全体で受け取らない */
body.gm.is-playing { touch-action: none; }

/* ---------- 上のバー ---------- */

.gm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.gm-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 2px;
  color: var(--gm-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gm-back:active { color: var(--gm-gold-2); }
.gm-back img { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; }
.gm-chip {
  flex: none;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid var(--gm-line);
  color: var(--gm-gold);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  white-space: nowrap;
}

/* 効果音の切り替え（発注者指示 2026-08-29）。上のバーの、札の左に置く。
   戻りのリンクに flex:1 を持たせて、右へ寄せる */
.gm-back { flex: 1 1 auto; min-width: 0; }
.gm-snd {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.gm-snd:active { background: rgba(255, 255, 255, .12); }

/* ---------- 面 ---------- */

.gm-panel {
  box-sizing: border-box;
  border-radius: 20px;
  background: var(--gm-panel);
  border: 1px solid var(--gm-line);
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gm-panel--grow { flex: 1; }
.gm-panel--plain { border-color: var(--gm-line-2); }

.gm-kicker {
  margin: 0;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--gm-gold);
}
.gm-title {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: .01em;
  color: var(--gm-gold-2);
}
.gm-title small {
  display: block;
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--gm-faint);
}
.gm-h2 {
  margin: 0;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--gm-faint);
}
.gm-note { margin: 0; font-size: 10.5px; line-height: 1.7; color: var(--gm-faint); }
.gm-lead { margin: 0; font-size: 13px; line-height: 1.85; color: var(--gm-muted); }
.gm-lead strong { color: var(--gm-gold-2); }

/* ---------- ボタン ---------- */

.gm-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 999px;
  padding: 15px 16px;
  background: linear-gradient(180deg, var(--gm-gold), var(--gm-gold-3));
  color: var(--gm-onGold);
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .06em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
  transition: transform .06s;
}
.gm-btn:active { transform: translateY(2px); }
.gm-btn:focus-visible { outline: 3px solid var(--gm-gold-2); outline-offset: 3px; }
.gm-btn--quiet {
  background: rgba(255, 255, 255, .08);
  color: var(--gm-muted);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset;
  font-size: 14px;
}
.gm-btn--line { background: linear-gradient(180deg, #2fd06b, #06b34f); color: #06301a; }
.gm-btn--stop {
  border-radius: 22px;
  padding: 24px 16px;
  background: linear-gradient(180deg, #ff8a3a, #e2551a);
  color: #fff;
  font-size: 34px;
  letter-spacing: .16em;
  line-height: 1.1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset;
}
.gm-btn--stop small {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  opacity: .95;
}
.gm-btn--stop:active { transform: translateY(3px); }
/* 止めたあと。押したボタンが、そのまま計った時間になる
   （発注者指示 2026-08-30：結果が見えないのは違和感がある）。
   もう押すものではないので、橙のままにせず落ち着いた色へ */
.gm-btn--stop.is-done {
  background: linear-gradient(180deg, #16386a, #0c2a51);
  color: var(--gm-gold-2);
  letter-spacing: .06em;
  box-shadow: 0 0 0 1px var(--gm-line) inset;
}
.gm-btn--stop.is-done small { color: var(--gm-text); opacity: .9; letter-spacing: .06em; }
.gm-btn--stop.is-done:active { transform: none; }
.gm-cta { margin-top: auto; display: grid; gap: 10px; }
.gm-cta2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* 並ぶ 2 つには <a> と <button> が混ざる。字の位置がずれないよう、
   どちらも中央に置く。幅は半分しかないので、左右の余白は丸みぶんだけに
   詰める（320px の細い画面で「他ゲーム挑戦」が 2 行に折れていた） */
.gm-cta2 .gm-btn { display: grid; place-items: center; padding-left: 8px; padding-right: 8px; }
.gm-cta2 .gm-wide { grid-column: 1 / -1; }

/* どの画面のいちばん下にも置く「閉じる」（発注者指示 2026-08-29） */
.gm-closerow { display: flex; justify-content: center; padding: 14px 0 2px; }
.gm-btn--small { width: auto; min-width: 132px; padding: 12px 28px; font-size: 13.5px; }
body.gm.is-playing .gm-closerow { pointer-events: none; opacity: .5; }

.gm-link {
  display: block;
  padding: 8px;
  color: var(--gm-faint);
  font-size: 12px;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gm-linkish {
  border: 0;
  background: none;
  padding: 5px;
  color: var(--gm-muted);
  font: inherit;
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.gm-alt { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 12.5px; color: var(--gm-faint); }
.gm-alt a { color: var(--gm-muted); text-decoration: underline; text-underline-offset: 3px; padding: 5px; }

/* ---------- 知らせ ---------- */

.gm-toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  z-index: 40;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
  padding: 10px 18px;
  border-radius: 999px;
  background: #0b1c38;
  border: 1px solid var(--gm-line);
  color: var(--gm-text);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  transition: opacity .2s, transform .2s;
}
.gm-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

.gm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =========================================================================
   入口（/game）
   ========================================================================= */

.gm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gm-item {
  display: grid;
  grid-template-columns: 46px 1fr 54px;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  padding: 14px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--gm-line-2);
  color: inherit;
  text-decoration: none;
}
.gm-item:active { background: rgba(255, 255, 255, .1); }
.gm-item__no {
  display: grid;
  place-items: center;
  align-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--gm-gold), var(--gm-gold-3));
  color: var(--gm-onGold);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}
.gm-item__no small { display: block; font-size: 8px; font-weight: 800; letter-spacing: .12em; opacity: .72; }
.gm-item__ttl { display: block; font-size: 15.5px; font-weight: 900; color: var(--gm-gold-2); }
.gm-item__desc { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.6; color: var(--gm-muted); }
.gm-item__best { display: block; margin-top: 5px; font-size: 11px; font-weight: 800; color: var(--gm-gold); font-variant-numeric: tabular-nums; }
.gm-item__best:empty { display: none; }
/* 何をする遊びなのかが、文字を読む前に伝わるように（発注者指示 2026-08-29）。
   絵の資材は増やさず、その場で組み立てる SVG で描く */
.gm-item__ic { display: block; line-height: 0; }
.gm-ic { display: block; width: 54px; height: 54px; }

/* 高島さんの実績を超えたステージの印（発注者指示 2026-08-29）。
   札の右肩に、緑の「✓ クリア」を少しはみ出して載せる */
.gm-item { position: relative; }
.gm-item__clear {
  position: absolute;
  top: -9px;
  right: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2fbf6b, #159a4c);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.gm-item--soon { opacity: .55; }
.gm-item--soon .gm-item__no { background: rgba(255, 255, 255, .12); color: var(--gm-muted); }
.gm-item--soon .gm-item__ttl { color: var(--gm-muted); }

/* ランキングの並び（各ゲームの中の窓で使う。入口のタブは 2026-08-30 に
   ランキングごと各ゲームへ移したので、.gm-tabs / .gm-tab は廃した） */
.gm-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
/* 列の幅は行によらず同じにする（発注者指示 2026-08-30：秒数と金額が
   ずれる。縦線を入れて整える）。中身の長さはステージで違うので、
   幅は文字の大きさに追いつく em で持ち、ステージごとに上書きする */
:root, body { --gm-det-w: 5.4em; --gm-val-w: 7.8em; }
body[data-game="stage2"] { --gm-det-w: 5.8em; --gm-val-w: 7.8em; }
body[data-game="stage3"] { --gm-det-w: 4.4em; --gm-val-w: 6.8em; }

.gm-rank li {
  display: grid;
  /* 順位・表示名・（秒数/タップ数/組数）・（金額/人数）の四列
     （発注者指示 2026-08-30：表形式で、最初に見出しを示す） */
  grid-template-columns: 36px minmax(0, 1fr) var(--gm-det-w) var(--gm-val-w);
  align-items: center;
  gap: 0;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  font-size: 13px;
}
.gm-rank .who { padding-right: 8px; }
/* 数の列は縦線で仕切り、右端をそろえる */
.gm-rank .det,
.gm-rank .val {
  border-left: 1px solid rgba(255, 255, 255, .14);
  padding: 0 0 0 8px;
  text-align: right;
}
.gm-rank .det {
  font-size: 12px;
  color: var(--gm-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 見出しの行。地は敷かず、小さく淡く。
   ただし列幅は em で持っているので、この行だけ font-size を変えると
   見出しと中身で縦線がずれる。字の小ささは中の span 側で作り、
   行そのものの字の大きさと左右の余白は下の行と同じに保つ */
.gm-rank li.gm-rank__head {
  background: none;
  padding-top: 2px;
  padding-bottom: 4px;
  font-weight: 800;
  color: var(--gm-faint);
  letter-spacing: .04em;
}
.gm-rank li.gm-rank__head .who,
.gm-rank li.gm-rank__head .det,
.gm-rank li.gm-rank__head .val {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--gm-faint);
  border-left-color: transparent;   /* 見出しの区切り線は出さない */
}
.gm-rank .pos { font-size: 11.5px; font-weight: 900; color: var(--gm-faint); font-variant-numeric: tabular-nums; }
.gm-rank .who { font-weight: 700; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-rank .val {
  font-weight: 900;
  color: var(--gm-gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 小さい画面では、字を少し詰めて四列を保つ */
@media (max-width: 359px) {
  .gm-rank li { font-size: 12px; padding: 6px 8px; }
  .gm-rank .det { font-size: 11px; }
}
.gm-rank li.is-taka { background: rgba(79, 141, 237, .16); }
.gm-rank li.is-taka .val { color: #9dc0ff; }
.gm-rank li.is-me { background: rgba(233, 208, 122, .18); }
.gm-rank__empty, .gm-rank li.gm-rank__empty { display: block; margin: 0; padding: 10px 4px; background: none; font-size: 12px; color: var(--gm-faint); text-align: center; }

/* =========================================================================
   第1ステージ：10秒当てゲーム
   ========================================================================= */

.gm-lcd {
  position: relative;
  border-radius: 14px;
  padding: 14px 16px 16px;
  background: #cfe0c6;
  border: 3px solid var(--gm-ink-2);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .3), inset 0 -1px 0 rgba(255, 255, 255, .5);
}
.gm-lcd svg { display: block; width: 100%; height: auto; }
.gm-lcd .unit {
  position: absolute;
  right: 12px;
  bottom: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  color: rgba(27, 42, 34, .55);
}
.gm-lcd .seg { fill: #1b2a22; opacity: .08; }
.gm-lcd .seg.on { opacity: var(--on, 1); }
.gm-lcd--small { max-width: 236px; margin: 0 auto; padding: 10px 12px 12px; }
.gm-lcd--small .unit { font-size: 8px; bottom: 3px; right: 9px; }

.gm-rules { margin: 0; padding-left: 1.4em; display: grid; gap: 7px; font-size: 13px; line-height: 1.7; color: var(--gm-muted); }
.gm-rules li::marker { font-weight: 900; color: var(--gm-gold); }
.gm-rules b { color: var(--gm-gold-2); }

.gm-payout {
  margin: 0;
  display: grid;
  gap: 7px;
  padding: 12px 0;
  font-size: 12.5px;
  border-top: 1px solid var(--gm-line-2);
  border-bottom: 1px solid var(--gm-line-2);
}
.gm-payout div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gm-payout dt { margin: 0; color: var(--gm-faint); }
.gm-payout dd { margin: 0; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.gm-payout .hi dd { color: #ff9f6b; }

.gm-target { margin: 0; text-align: center; font-size: 12px; letter-spacing: .1em; color: var(--gm-faint); }
.gm-target b { margin: 0 3px; font-size: 17px; color: var(--gm-gold-2); font-variant-numeric: tabular-nums; }
.gm-hint { margin: 0; min-height: 1.6em; text-align: center; font-size: 14.5px; font-weight: 700; color: var(--gm-text); }
.gm-spacer { flex: 1; }

/* 第1ステージは 3 回連続（発注者指示 2026-08-30）。いま何回目か、
   ここまでのズレの合計はいくらかを、計るあいだも見せておく */
.gm-round {
  margin: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .06em;
  color: var(--gm-gold-2);
}
.gm-round span { font-size: 12px; font-weight: 700; color: var(--gm-faint); }
.gm-sofar {
  margin: 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--gm-faint);
  font-variant-numeric: tabular-nums;
}
.gm-sofar b { color: var(--gm-gold-2); font-size: 14.5px; }
.gm-sofar[hidden] { display: none; }

/* 結果に出す 3 回ぶんの内訳。3 行きりなので畳まずにそのまま出す */
.gm-rounds {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.gm-rounds li {
  display: grid;
  grid-template-columns: 4.5em 1fr 5.4em;
  align-items: center;
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .04);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.gm-rounds .no { color: var(--gm-faint); font-weight: 800; }
.gm-rounds .tm { color: var(--gm-text); font-weight: 700; text-align: right; padding-right: 10px; }
.gm-rounds .df {
  text-align: right;
  font-weight: 900;
  color: var(--gm-gold);
  border-left: 1px solid rgba(255, 255, 255, .14);
  padding-left: 8px;
}

.gm-label { margin: 0; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--gm-faint); }
.gm-diff { margin: -4px 0 0; text-align: center; font-size: 12.5px; color: var(--gm-faint); font-variant-numeric: tabular-nums; }
.gm-diff b { margin-left: 5px; font-size: 16px; color: var(--gm-text); }
.gm-income {
  margin: 0;
  text-align: center;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--gm-gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}
.gm-grade { margin: 0; text-align: center; font-size: 14px; font-weight: 800; line-height: 1.7; }
.gm-grade .g {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gm-gold), var(--gm-gold-3));
  color: var(--gm-onGold);
  font-size: 12.5px;
  letter-spacing: .1em;
}
.gm-grade small { display: block; font-size: 11.5px; font-weight: 600; color: var(--gm-faint); }

.gm-compare { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--gm-line-2); }
.gm-bar-row { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 8px; font-size: 11.5px; }
.gm-bar-row .who { font-weight: 800; color: var(--gm-muted); }
.gm-bar { display: block; height: 14px; border-radius: 7px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.gm-bar i { display: block; height: 100%; width: 0; border-radius: 7px; transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.gm-bar-row.you .gm-bar i { background: linear-gradient(90deg, var(--gm-gold-3), var(--gm-gold)); }
.gm-bar-row.taka .gm-bar i { background: linear-gradient(90deg, #2c5aa8, var(--gm-blue)); }
.gm-bar-row .amt { font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--gm-text); }
/* 判定の一文は、高島さん本人が言っているように見せる
   （発注者指示 2026-08-29）。左に顔写真、右に吹き出し */
.gm-says { display: flex; align-items: center; gap: 10px; }
.gm-says__face {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid rgba(233, 208, 122, .55);
}
.gm-verdict {
  position: relative;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
  color: var(--gm-text);
}
/* 吹き出しのしっぽ。顔のほうを向かせる。
   通常は面と同じ半透明の白なので、下地に重ねると同じ色に見える。
   勝ちのときは金の面の、ちょうど真ん中あたりの色を置く */
.gm-verdict::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  margin-top: -7px;
  border: 7px solid transparent;
  border-right-color: rgba(255, 255, 255, .06);
}
.gm-verdict.is-win { background: linear-gradient(180deg, var(--gm-gold), var(--gm-gold-3)); color: var(--gm-onGold); }
.gm-verdict.is-win::before { border-right-color: #dcc063; }
.gm-best { margin: 0; min-height: 1.2em; text-align: center; font-size: 11.5px; color: var(--gm-faint); }
.gm-sent { margin: 0; min-height: 1.2em; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--gm-gold); }

/* =========================================================================
   第2ステージ：借金を減らせ！5秒画面連打
   ========================================================================= */

.gm-pig { display: block; width: 100%; height: auto; overflow: visible; }
.gm-pig .body, .gm-pig .ear { fill: #ff9db8; stroke: #c94f76; stroke-width: 4; }
.gm-pig .ear-in { fill: #ff7fa3; }
.gm-pig .foot { fill: #e9709a; stroke: #c94f76; stroke-width: 4; }
.gm-pig .shine { fill: #fff; opacity: .35; }
.gm-pig .slot { fill: #6b2440; }
.gm-pig .cheek { fill: #ff6f9c; opacity: .55; }
.gm-pig .eye-n circle { fill: #23244b; }
.gm-pig .eye-n .glint { fill: #fff; }
.gm-pig .eye-h path { fill: none; stroke: #23244b; stroke-width: 6; stroke-linecap: round; }
.gm-pig .snout { fill: #ffb7cb; stroke: #c94f76; stroke-width: 4; }
.gm-pig .nostril { fill: #c84c77; }
.gm-pig .m-closed { fill: none; stroke: #c94f76; stroke-width: 5; stroke-linecap: round; }
.gm-pig .m-open, .gm-pig .eye-h, .gm-pig .crown { opacity: 0; }
.gm-pig .crown { transition: opacity .3s; }
.gm-pig.is-chomp .m-open { opacity: 1; }
.gm-pig.is-chomp .m-closed, .gm-pig.is-chomp .eye-n { opacity: 0; }
.gm-pig.is-chomp .eye-h { opacity: 1; }
/* 高島超えでゴールドの豚になる */
.gm-pig.is-gold .body, .gm-pig.is-gold .ear { fill: url(#gmGold); stroke: #a3781a; }
.gm-pig.is-gold .ear-in { fill: #f5b400; }
.gm-pig.is-gold .foot { fill: #e0a800; stroke: #a3781a; }
.gm-pig.is-gold .snout { fill: #ffe38a; stroke: #a3781a; }
.gm-pig.is-gold .nostril { fill: #c8901a; }
.gm-pig.is-gold .m-closed { stroke: #a3781a; }
.gm-pig.is-gold .cheek { fill: #ff8c42; }
.gm-pig.is-gold .eye-n { opacity: 0; }
.gm-pig.is-gold .eye-h, .gm-pig.is-gold .crown { opacity: 1; }

.gm-hero { position: relative; flex: 1; min-height: 150px; display: flex; align-items: center; justify-content: center; padding-top: 34px; }
.gm-pigbox { position: relative; }
.gm-pig-idle { width: min(42vw, 172px); }
.gm-pig-idle .gm-pig { animation: gm-bob 2.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes gm-bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }

.gm-steps { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 700; line-height: 1.5; }
.gm-steps li { display: flex; align-items: center; gap: 10px; color: var(--gm-muted); }
.gm-steps .n {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gm-gold), var(--gm-gold-3));
  color: var(--gm-onGold);
  font-size: 12px;
  font-weight: 900;
}
.gm-steps b { color: var(--gm-gold-2); }

/* 遊んでいるあいだは、上のバーを押せなくする（連打で誤って外へ出ないように） */
body.gm.is-playing .gm-top { pointer-events: none; opacity: .5; }

.gm-hud { position: relative; z-index: 2; display: grid; gap: 8px; }
.gm-trow { display: flex; align-items: center; gap: 10px; }
.gm-tbar { display: block; flex: 1; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.gm-tbar i { display: block; height: 100%; width: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gm-gold-3), var(--gm-gold)); }
.gm-tbar.is-hot i { background: linear-gradient(90deg, #e2551a, #ff8a3a); }
.gm-tnum { display: block; min-width: 84px; text-align: right; font-size: 12.5px; font-weight: 800; color: var(--gm-muted); white-space: nowrap; }
.gm-tnum b { font-size: 19px; color: var(--gm-text); font-variant-numeric: tabular-nums; }
.gm-tnum.is-hot b { color: #ff9f6b; }
.gm-amt {
  margin: 2px 0 0;
  text-align: center;
  font-size: clamp(38px, 12vw, 54px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--gm-gold-2);
  font-variant-numeric: tabular-nums;
  transform-origin: 50% 60%;
}
.gm-amt small { font-size: .42em; margin-left: 2px; }
.gm-sub { margin: 0; text-align: center; font-size: 13px; font-weight: 700; color: var(--gm-faint); }
.gm-sub b { font-size: 19px; color: var(--gm-gold); font-variant-numeric: tabular-nums; }
.gm-gbar { display: block; position: relative; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.gm-gbar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #2c5aa8, var(--gm-blue)); transition: width .12s; }
.gm-gbar.is-over i { background: linear-gradient(90deg, var(--gm-gold-3), var(--gm-flame)); }
.gm-glabel { margin: 4px 0 0; text-align: center; font-size: 11px; font-weight: 700; color: var(--gm-faint); }
.gm-glabel.is-over { color: var(--gm-gold); }

.gm-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.gm-pigwrap { position: relative; width: min(42vw, 180px); transition: transform .12s ease-out; will-change: transform; }
.gm-pigwrap::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 233, 170, .55) 0%, rgba(233, 208, 122, .28) 42%, transparent 68%);
  opacity: 0;
  transition: opacity .4s;
}
.gm-pigwrap.is-gold::before { opacity: 1; animation: gm-glow 1.2s ease-in-out infinite alternate; }
@keyframes gm-glow { from { transform: scale(.95) } to { transform: scale(1.08) } }
.gm-pigin { transform-origin: 50% 100%; }

.gm-bubble {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 3;
  transform: translate(-50%, 0);
  opacity: 0;
  padding: 6px 14px;
  border-radius: 14px;
  background: #0b1c38;
  border: 2px solid var(--gm-gold);
  color: var(--gm-gold-2);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  pointer-events: none;
}
.gm-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 12px;
  height: 12px;
  background: #0b1c38;
  border-right: 2px solid var(--gm-gold);
  border-bottom: 2px solid var(--gm-gold);
  transform: translateX(-50%) rotate(45deg);
}
.gm-bubble.is-idle { top: -44px; opacity: 1; animation: gm-bubbleIdle 2.2s ease-in-out infinite; }
@keyframes gm-bubbleIdle { 0%, 100% { transform: translate(-50%, 0) } 50% { transform: translate(-50%, -6px) } }

.gm-tap { margin: 0; text-align: center; font-size: 18px; font-weight: 900; color: var(--gm-gold-2); animation: gm-pulse .5s infinite alternate; }
.gm-tap.is-dim { animation: none; opacity: .6; font-size: 14px; font-weight: 700; color: var(--gm-faint); }
@keyframes gm-pulse { from { transform: scale(1) } to { transform: scale(1.09) } }

.gm-big {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  font-size: clamp(84px, 32vw, 160px);
  font-weight: 900;
  line-height: 1;
  color: var(--gm-gold-2);
  text-shadow: 0 0 26px rgba(9, 26, 53, .9);
}
.gm-big.is-go { color: var(--gm-flame); }
.gm-big.is-mid { font-size: clamp(36px, 12vw, 60px); text-align: center; line-height: 1.15; }
.gm-big.is-win { color: var(--gm-gold); }

.gm-fx { position: fixed; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.gm-bill {
  position: fixed;
  width: 50px;
  height: 29px;
  margin: -15px 0 0 -25px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: #f6efd6;
  border: 2px solid #2f7d55;
  box-shadow: inset 0 0 0 2px #fff;
  color: #2f7d55;
  font-size: 11px;
  font-weight: 900;
}
.gm-bill.is-gold { background: #ffe47a; border-color: #a3781a; color: #7a5a10; }
.gm-pop {
  position: fixed;
  transform: translate(-50%, -50%);
  color: var(--gm-gold-2);
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(9, 26, 53, .95);
}
.gm-spark { position: fixed; transform: translate(-50%, -50%); font-size: 17px; color: var(--gm-gold-2); }
.gm-conf { position: fixed; top: -20px; width: 9px; height: 13px; }
.gm-flash { position: fixed; inset: 0; z-index: 35; pointer-events: none; background: #fff; }

.gm-rhead { display: flex; align-items: center; gap: 12px; }
.gm-pig-mini { flex: none; width: 84px; }
.gm-ramt { margin: 0; font-size: clamp(32px, 10vw, 44px); font-weight: 900; line-height: 1.1; color: var(--gm-gold); font-variant-numeric: tabular-nums; }
.gm-ramt small { font-size: .44em; }
.gm-rsub { margin: 2px 0 0; font-size: 12px; font-weight: 700; color: var(--gm-faint); }
.gm-rsub b { font-size: 15px; color: var(--gm-gold-2); font-variant-numeric: tabular-nums; }
.gm-tier { text-align: center; }
.gm-stars { font-size: 20px; letter-spacing: .12em; line-height: 1; color: var(--gm-gold); }
.gm-tname { margin: 4px 0 0; font-size: 19px; font-weight: 900; color: var(--gm-gold-2); }
.gm-tpct { margin: 3px 0 0; font-size: 11.5px; font-weight: 700; color: var(--gm-faint); }
.gm-just { margin: 0; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--gm-faint); }
.gm-just.is-hit { color: var(--gm-gold); }

/* ---------- 狭い画面 ---------- */

@media (max-width: 359px) {
  .gm-says { gap: 8px; }
  .gm-says__face { width: 40px; height: 40px; }
  .gm-verdict { font-size: 13.5px; padding: 10px; }
  .gm-title { font-size: 26px; }
  .gm-btn--stop { font-size: 29px; padding: 20px 14px; }
  .gm-income { font-size: 31px; }
  .gm-item { grid-template-columns: 40px 1fr 44px; gap: 9px; }
  .gm-item__no { width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }
  .gm-ic { width: 44px; height: 44px; }
}

/* ---------- 動きを減らす設定 ---------- */

@media (prefers-reduced-motion: reduce) {
  .gm-pig-idle .gm-pig,
  .gm-bubble.is-idle,
  .gm-tap,
  .gm-pigwrap.is-gold::before { animation: none; }
  .gm-bar i, .gm-gbar i, .gm-btn, .gm-toast { transition: none; }
}

/* =========================================================================
   第3ステージ：人口を増やせ！30秒もぐらたたき

   3×3 の畑から人が出てくる。畑の緑と土の色、そして人物の絵は、
   このゲームの持ち味なのでそのまま残す。周りの器（地・カード・ボタン・
   文字）だけをサイトのものにしてある。
   ========================================================================= */

.gm-hero3 {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  margin: 4px 0 2px;
  line-height: 0;
}
.gm-hero3 span { display: block; animation: gm-hop 1.6s ease-in-out infinite; }
.gm-hero3 svg { height: clamp(44px, 13vw, 60px); width: auto; }
.gm-hero3 span:nth-child(2) { animation-delay: .2s }
.gm-hero3 span:nth-child(3) { animation-delay: .4s }
.gm-hero3 span:nth-child(4) { animation-delay: .6s }
.gm-hero3 span:nth-child(5) { animation-delay: .8s }
@keyframes gm-hop { 0%, 60%, 100% { transform: translateY(0) } 30% { transform: translateY(-10px) } }

/* 出てくる人たちの一覧 */
.gm-legend { width: 100%; border-collapse: collapse; font-size: 12px; font-weight: 700; }
.gm-legend th {
  padding: 0 4px 5px;
  border-bottom: 2px solid var(--gm-line-2);
  font-size: 10.5px;
  font-weight: 700;
  text-align: left;
  color: var(--gm-faint);
}
.gm-legend td { padding: 5px 4px; border-bottom: 1px solid rgba(255, 255, 255, .07); vertical-align: middle; color: var(--gm-muted); }
.gm-legend tr:last-child td { border-bottom: 0; }
.gm-legend .f { width: 66px; line-height: 0; }
.gm-legend .f svg { height: 30px; width: auto; max-width: 62px; display: block; }
.gm-legend .v { text-align: right; white-space: nowrap; font-weight: 900; font-variant-numeric: tabular-nums; }
.gm-legend .v.plus { color: #7fe0a0 }
.gm-legend .v.minus { color: #ff9f6b }
.gm-legend .r { white-space: nowrap; font-size: 10.5px; }
.gm-legend .r small { display: block; opacity: .7; font-weight: 500; }
.gm-legend tr.bad td { background: rgba(255, 122, 26, .1); }
.gm-legend tr.gold td { background: rgba(233, 208, 122, .14); }

/* 畑（3×3） */
.gm-field {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  max-height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 9px;
}
.gm-cell {
  position: relative;
  border-radius: 16px;
  background: #8edb63;
  border: 3px solid var(--gm-ink-2);
  box-shadow: 0 4px 0 #3f7f2e;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gm-cell::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 7%;
  height: 24%;
  border-radius: 50%;
  background: #3b2a1e;
  box-shadow: inset 0 5px 0 rgba(0, 0, 0, .35), 0 0 0 3px #6b4a33;
}
.gm-cell .mask { position: absolute; left: 0; right: 0; top: -6%; bottom: 19%; overflow: hidden; }
.gm-cell .chara {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(112%);
  transition: transform .15s cubic-bezier(.3, 1.4, .6, 1);
  pointer-events: none;
}
.gm-cell .chara.is-up { transform: translateY(0); }
.gm-cell .chara.is-down { transform: translateY(112%); transition: transform .16s ease-in; }
.gm-cell .face { display: flex; align-items: flex-end; justify-content: center; width: 100%; padding: 0 5px; line-height: 0; }
/* マス目は (画面幅 − 86px) ÷ 3 で決まり、絵が入れるのはその 0.81 倍まで
   （下 19％ は土の穴）。ふだと余白の 24px を引いた分が、絵に使える高さ */
.gm-cell .face svg { height: clamp(34px, calc(26vw - 48px), 64px); width: auto; max-width: 100%; display: block; }
.gm-cell .tag {
  margin-bottom: 3px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--gm-ink-2);
  color: #1c7c42;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.gm-cell .chara.is-bad .tag { color: #c2361a; border-color: #c2361a; }
.gm-cell .chara.is-gold .tag { background: var(--gm-gold); border-color: var(--gm-gold-3); color: var(--gm-onGold); }
.gm-cell .chara.is-gold .face { animation: gm-shine .5s ease-in-out infinite alternate; }
@keyframes gm-shine {
  from { filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px var(--gm-gold)) }
  to   { filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 18px var(--gm-gold)) }
}

/* 大ラッシュ（最後の 5 秒） */
.gm-tap.is-hot { animation: gm-pulse .3s infinite alternate; opacity: 1; font-size: 19px; color: #ffb083; }
#gmPlay.is-frenzy::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border: 5px solid var(--gm-flame);
  border-radius: 18px;
  animation: gm-frenzy .35s infinite alternate;
}
@keyframes gm-frenzy { from { opacity: .12 } to { opacity: .7 } }

/* 転入人口の大きな数字。第2 の飛ぶ数字（.gm-pop）とは別物なので、
   名前を分けてある（同じ名前だと position:fixed を拾ってしまう） */
.gm-headcount {
  margin: 4px 0 0;
  text-align: center;
  font-size: clamp(34px, 11vw, 50px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--gm-gold-2);
  font-variant-numeric: tabular-nums;
  transform-origin: 50% 60%;
}
.gm-headcount small { font-size: .42em; margin-left: 2px; }
.gm-headcount.is-neg { color: #ff9f6b; }
.gm-headcount .lab {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gm-faint);
}

/* 飛ぶ数字 */
.gm-float {
  position: fixed;
  transform: translate(-50%, -50%);
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
  color: #7fe0a0;
  text-shadow: 0 2px 8px rgba(9, 26, 53, .95);
  font-variant-numeric: tabular-nums;
}
.gm-float.is-minus { color: #ff9f6b; }
.gm-float.is-big { font-size: 27px; color: var(--gm-gold-2); }

/* 転入の内訳 */
.gm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gm-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--gm-line-2);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gm-muted);
}
.gm-chip .ic { line-height: 0; }
.gm-chip .ic svg { height: 22px; width: auto; max-width: 52px; display: block; }
.gm-chip .num { font-weight: 900; font-variant-numeric: tabular-nums; color: var(--gm-gold); }
.gm-chip.is-bad { border-color: rgba(255, 122, 26, .5); }
.gm-chip.is-bad .num { color: #ff9f6b; }
.gm-chip.is-gold { background: rgba(233, 208, 122, .18); border-color: var(--gm-line); }

@media (prefers-reduced-motion: reduce) {
  .gm-hero3 span,
  .gm-cell .chara.is-gold .face,
  #gmPlay.is-frenzy::after { animation: none; }
}

/* =========================================================================
   ランキングの窓（発注者指示 2026-08-30）
   タイトルの「あなたのランキング／全国ランキング」から開く。
   ========================================================================= */

/* ランキングの二つ（発注者指示 2026-08-30：タイトルにも結果にも）。
   「あなたのランキング」は 9 文字あり、並べると折れる。この二つだけ
   字を少し詰めて、どの幅でも一行に収める */
.gm-cta2--rank { margin-top: 10px; }
/* スマホでは指定の位置で折り返す（発注者指示 2026-08-30）：
   「あなたの／ランキング」「全国／ランキング」。広い画面では一行に */
.gm-cta2--rank .gm-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  line-height: 1.25;
  padding-left: 8px;
  padding-right: 8px;
  white-space: nowrap;
}
@media (min-width: 560px) {
  .gm-cta2--rank .gm-btn { flex-direction: row; gap: 0; }
}

/* hidden 属性は、下の display 指定より弱い（author の display が勝つ）。
   窓と粒と名前欄と内訳は、hidden のときこそ確実に消す */
.gm-rsheet[hidden],
.gm-rtabs[hidden],
.gm-rname[hidden],
.gm-chips[hidden] { display: none; }

.gm-rsheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(4, 9, 18, .62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
/* 見出し・期間の粒・名前の欄は動かさず、一覧だけを巻く。
   「閉じる」は窓のいちばん下に置く（発注者指示 2026-08-30）。
   Top100 まで並んでも、いちばん下までたどらずに閉じられるように、
   下端に貼り付けておく */
.gm-rsheet__box {
  width: min(100%, 520px);
  max-height: 82vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #102547 0%, #0b1c38 100%);
  border: 1px solid rgba(217, 180, 94, .35);
  border-bottom: 0;
  padding: 16px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}
/* 巻くのはここだけ。左右へ広げてから同じぶん詰め直し、
   行の地色が枠いっぱいに出るようにする */
.gm-rsheet__scroll {
  min-height: 0;
  margin: 0 -16px;
  padding: 0 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.gm-rsheet__head { display: flex; align-items: center; }
.gm-rsheet__head .gm-h2 { margin: 0; }
.gm-rclose { display: flex; justify-content: center; padding-top: 12px; }
body.gm-noscroll { overflow: hidden; }

/* 期間の粒 */
.gm-rtabs { display: flex; gap: 6px; margin: 12px 0 10px; flex-wrap: wrap; }
.gm-rtab {
  flex: 1 1 auto;
  min-width: 56px;
  padding: 8px 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: transparent;
  color: #cfd9ea;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}
.gm-rtab.is-on {
  background: linear-gradient(180deg, var(--gm-gold, #e9d07a), var(--gm-gold-3, #c9a94f));
  border-color: transparent;
  color: #1c1608;
}

/* 名前の設定 */
.gm-rname { display: flex; gap: 8px; margin: 0 0 10px; }
.gm-rname input {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .06);
  color: #f1e9d2;
  font: inherit;
  font-size: 14px;
}
.gm-rname input::placeholder { color: rgba(241, 233, 210, .45); }
.gm-rname .gm-btn { width: auto; flex: none; padding: 10px 16px; }

/* 転入の内訳のアコーディオン（発注者指示 2026-08-30） */
.gm-acc {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .05);
  color: #e9d07a;
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}
.gm-acc__ar { transition: transform .2s ease; }
.gm-acc.is-open .gm-acc__ar { transform: rotate(180deg); }
.gm-chips:not([hidden]) { margin-top: 10px; }
