/* ============================================================
   WORLD CUP 2026 — Game Effects & Excitement CSS
   ============================================================ */

/* ── サッカーフィールドグラデ背景 ── */
body {
  background-color: #0d1117;
  background-image:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(0,214,164,.18), transparent),
    radial-gradient(ellipse 60% 30% at 90% 110%, rgba(45,58,140,.22), transparent),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(255,200,61,.06), transparent);
  background-attachment: fixed;
}

/* ── Hero ヒーローバナー ── */
.hero-banner {
  position: relative;
  background: var(--grad-header);
  overflow: hidden;
  padding: 0;
}
.hero-inner {
  position: relative; z-index: 2;
  padding: 28px 20px 22px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 10px;
}
/* フィールドライン装飾 */
.hero-banner::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background:
    /* センターサークル */
    radial-gradient(circle 120px at 50% 50%, transparent 105px, rgba(255,255,255,.06) 106px, rgba(255,255,255,.06) 110px, transparent 111px),
    /* センターライン */
    linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,.05) 50%, transparent 50.2%),
    /* ペナルティエリア左 */
    linear-gradient(transparent 20%, rgba(255,255,255,.03) 20%, rgba(255,255,255,.03) 80%, transparent 80%) 5% 50% / 14% 60% no-repeat,
    /* ペナルティエリア右 */
    linear-gradient(transparent 20%, rgba(255,255,255,.03) 20%, rgba(255,255,255,.03) 80%, transparent 80%) 81% 50% / 14% 60% no-repeat;
}
/* 流れ星パーティクル */
.hero-banner::after {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 80% 15%, rgba(255,200,61,.8), transparent),
    radial-gradient(1.5px 1.5px at 60% 70%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 35% 80%, rgba(0,214,164,.7), transparent),
    radial-gradient(1.5px 1.5px at 90% 50%, rgba(255,255,255,.5), transparent);
  animation: twinkle 3s ease-in-out infinite alternate;
}
@keyframes twinkle {
  0%   { opacity: .4; transform: scale(1); }
  100% { opacity: 1;  transform: scale(1.1); }
}

.hero-event-label {
  font-size: .72rem; font-weight: 800; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); opacity: .9;
}
.hero-title {
  font-size: clamp(1.5rem, 5vw, 2.6rem);
  font-weight: 900; color: #fff; line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.hero-title span { color: var(--gold); }
.hero-subtitle {
  font-size: .88rem; color: rgba(255,255,255,.75); font-weight: 500;
}
.hero-stats-row {
  display: flex; gap: 20px; justify-content: center;
  margin-top: 6px; flex-wrap: wrap;
}
.hero-stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.hero-stat-num {
  font-size: 1.4rem; font-weight: 900; color: var(--gold);
  text-shadow: 0 0 20px rgba(255,200,61,.6);
  font-variant-numeric: tabular-nums;
}
.hero-stat-label { font-size: .62rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 1px; }
.hero-divider { width: 1px; background: rgba(255,255,255,.15); align-self: stretch; margin: 4px 0; }

/* ─── ボールがバウンスするローディング ─── */
.ball-loader {
  display: flex; justify-content: center; align-items: flex-end;
  gap: 6px; height: 40px; margin: 30px 0;
}
.ball-loader span {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold);
  animation: ball-bounce 0.8s ease-in-out infinite alternate;
}
.ball-loader span:nth-child(2) { animation-delay: .15s; background: var(--accent); }
.ball-loader span:nth-child(3) { animation-delay: .3s;  background: var(--red); }
@keyframes ball-bounce {
  from { transform: translateY(0); }
  to   { transform: translateY(-22px); }
}

/* ─── マッチカード ゲーム強化 ─── */
.match-card {
  transition: transform .2s, box-shadow .2s;
}
.match-card:hover {
  transform: translateY(-3px) scale(1.005);
}
/* Live カード – 炎のボーダー */
.match-card.is-live {
  border-left-color: var(--red);
  box-shadow: 0 0 0 2px rgba(240,80,110,.15), var(--shadow);
  animation: live-glow 2s ease-in-out infinite alternate;
}
@keyframes live-glow {
  from { box-shadow: 0 0 0 2px rgba(240,80,110,.1), var(--shadow); }
  to   { box-shadow: 0 0 20px rgba(240,80,110,.25), 0 4px 18px rgba(26,31,75,.07); }
}

/* ─── スコア入力モーダル強化 ─── */
.modal {
  background: linear-gradient(160deg, #1a1f4b 0%, #0f1328 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,.1);
}
.modal-close { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }
.modal-close:hover { background: rgba(255,255,255,.2); color: #fff; }
.modal-title { color: #fff; }
.modal-match { color: rgba(255,255,255,.6); }
.modal-stage-info { text-align:center; font-size:.72rem; color:var(--gold); letter-spacing:1px; text-transform:uppercase; margin-bottom:10px; }

/* 入力フィールド – サッカースコアボード風 */
.score-side input {
  background: rgba(255,255,255,.07);
  border: 2px solid rgba(255,255,255,.15);
  color: #fff;
  border-radius: 14px;
  width: 80px; height: 80px;
  font-size: 2.2rem;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.3), 0 0 0 0 var(--gold);
  transition: border-color .2s, box-shadow .2s;
}
.score-side input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(255,200,61,.2);
}
.score-team { color: rgba(255,255,255,.85); font-size:.9rem; }
.score-dash { color: rgba(255,255,255,.4); font-size:2rem; }

/* +/- ボタン */
.score-ctrl {
  display: flex; align-items: center; gap: 6px;
  flex-direction: column;
}
.score-ctrl-row {
  display: flex; gap: 6px;
}
.btn-score {
  width: 34px; height: 34px; border: none; border-radius: 50%;
  font-size: 1.1rem; font-weight: 900; cursor: pointer;
  transition: transform .1s, background .15s;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
}
.btn-score:active { transform: scale(.88); }
.btn-score-plus  { background: rgba(0,214,164,.25); color: var(--accent); }
.btn-score-minus { background: rgba(240,80,110,.2); color: #ff8a9e; }
.btn-score-plus:hover  { background: rgba(0,214,164,.4); }
.btn-score-minus:hover { background: rgba(240,80,110,.35); }

/* プリセットチップ */
.preset-row {
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 14px;
}
.preset-chip {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.75); border-radius: 8px;
  padding: 5px 11px; font-size: .78rem; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: .15s;
}
.preset-chip:hover { background: rgba(255,200,61,.2); border-color: var(--gold); color: var(--gold); }
.preset-chip.active { background: var(--gold); color: #1a1f4b; border-color: var(--gold); }
.preset-label { font-size: .68rem; color: rgba(255,255,255,.4); text-align:center; margin-bottom:6px; width:100%; }

/* 送信ボタン – 巨大・パルス */
.btn-submit-game {
  width: 100%; padding: 15px; font-size: 1rem; font-weight: 900;
  background: linear-gradient(120deg, var(--gold), #ffaa00);
  color: #1a1f4b; border: none; border-radius: 14px;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(255,200,61,.4);
  text-transform: uppercase; letter-spacing: 1px;
}
.btn-submit-game:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,200,61,.6);
}
.btn-submit-game:active { transform: scale(.97); }

/* ─── 結果フラッシュ オーバーレイ ─── */
.result-flash-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  pointer-events: none; opacity: 0;
}
.result-flash-overlay.show { animation: flash-in-out 2.8s ease forwards; }
@keyframes flash-in-out {
  0%   { opacity: 0; transform: scale(.5); }
  15%  { opacity: 1; transform: scale(1.08); }
  60%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.9); }
}
.result-flash-bg {
  position: absolute; inset: 0;
  background: rgba(10,14,35,.82);
  backdrop-filter: blur(4px);
}
.result-flash-content {
  position: relative; z-index: 1;
  text-align: center; padding: 40px;
}
.result-flash-icon { font-size: 5rem; display: block; margin-bottom: 10px; animation: bounce-icon .5s .2s ease both; }
@keyframes bounce-icon {
  0%   { transform: scale(0) rotate(-15deg); }
  60%  { transform: scale(1.2) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}
.result-flash-pts {
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 900; color: var(--gold);
  text-shadow: 0 0 40px rgba(255,200,61,.8);
  line-height: 1;
  animation: pts-pop .4s .35s ease both;
}
@keyframes pts-pop {
  0%   { transform: scale(0); opacity: 0; }
  70%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}
.result-flash-label {
  font-size: 1.1rem; color: rgba(255,255,255,.8); margin-top: 8px; font-weight: 700;
}
.result-flash-sublabel {
  font-size: .85rem; color: rgba(255,255,255,.5); margin-top: 4px;
}

/* ─── コンフェッティ（紙吹雪） ─── */
.confetti-container {
  position: fixed; inset: 0; pointer-events: none; z-index: 299; overflow: hidden;
}
.confetti-piece {
  position: absolute; width: 10px; height: 14px; top: -20px;
  animation: confetti-fall linear forwards;
  border-radius: 2px;
}
@keyframes confetti-fall {
  0%   { transform: translateY(0) rotate(0deg) translateX(0); opacity: 1; }
  100% { transform: translateY(105vh) rotate(720deg) translateX(var(--drift)); opacity: 0; }
}

/* ─── カウントダウン タイマー ─── */
.countdown-block {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,200,61,.12); border: 1px solid rgba(255,200,61,.3);
  border-radius: 10px; padding: 5px 10px;
  font-size: .76rem; font-weight: 700; color: var(--gold);
}
.countdown-block i { font-size: .7rem; }
.countdown-block.urgent {
  background: rgba(240,80,110,.12); border-color: rgba(240,80,110,.35);
  color: var(--red); animation: pulse-urgent 1s infinite;
}
@keyframes pulse-urgent { 50% { opacity: .6; } }

/* ─── ランキング ゲーム強化 ─── */
.rank-row-1 { background: linear-gradient(90deg, rgba(255,200,61,.12), transparent) !important; }
.rank-row-2 { background: linear-gradient(90deg, rgba(180,190,200,.08), transparent) !important; }
.rank-row-3 { background: linear-gradient(90deg, rgba(205,127,50,.08), transparent) !important; }

/* レベルバッジ */
.level-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .65rem; font-weight: 800;
  padding: 2px 7px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: .5px;
}
.level-legend  { background: linear-gradient(120deg,#ffd700,#ffaa00); color:#1a1f4b; }
.level-expert  { background: linear-gradient(120deg,#a78bfa,#7c3aed); color:#fff; }
.level-pro     { background: linear-gradient(120deg,#3b82f6,#1d4ed8); color:#fff; }
.level-regular { background: rgba(26,31,75,.1); color: var(--primary); }
.level-rookie  { background: rgba(0,0,0,.06); color: var(--muted); }

/* 自分行 ハイライト */
.me-row td { font-weight: 700; }
.me-avatar {
  display: inline-flex; align-items: center; gap: 6px;
}
.me-avatar::before {
  content: "👤";
  font-size: .9rem;
}

/* ストリーク（連続命中）バッジ */
.streak-badge {
  font-size: .68rem; font-weight: 800;
  background: linear-gradient(120deg, #f97316, #ef4444);
  color: #fff; padding: 1px 6px; border-radius: 6px;
}

/* ─── 試合カード内のスコア強調 ─── */
.score-display {
  font-size: 1.7rem; font-weight: 900;
  background: linear-gradient(120deg, var(--gold), #ffaa00);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.score-display.is-live {
  background: linear-gradient(120deg, var(--red), #ff6b6b);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── スタジアム雰囲気 スタッツバー ─── */
.stats-row { position: relative; }
.stat-card {
  background: linear-gradient(145deg, #1e2460, #252c6e);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 4px 20px rgba(10,14,35,.3);
}
.stat-num { font-size: 2rem !important; color: var(--gold) !important;
  -webkit-text-fill-color: initial !important; }
.stat-label { color: rgba(255,255,255,.55) !important; }

/* ─── ナビゲーション ─── */
.main-nav { gap: 2px; }
.nav-link { border-radius: 8px; }
.nav-link.active {
  background: rgba(255,255,255,.15) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}

/* ─── マッチカードの背景 ─── */
.match-card {
  background: linear-gradient(145deg, #ffffff, #f8faff);
  border-top: 1px solid rgba(255,255,255,.9);
}
.match-card.is-live {
  background: linear-gradient(145deg, #fff8f9, #fff);
}

/* ─── フィルター/タブ ─── */
.match-tabs {
  background: linear-gradient(145deg, #1e2460, #252c6e);
  border: 1px solid rgba(255,255,255,.08);
}
.match-tab { color: rgba(255,255,255,.5); }
.match-tab:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); }
.match-tab.active { color: var(--gold); border-bottom-color: var(--gold); background: rgba(255,200,61,.06); }
.mt-badge { background: rgba(255,255,255,.15); }
.mt-badge.zero { background: rgba(255,255,255,.05); color: rgba(255,255,255,.3); }
.match-tab.has-live.active { color: var(--red); border-bottom-color: var(--red); }

/* ─── Tab ヒントバー ─── */
.tab-hint { background: rgba(0,214,164,.08); border-color: rgba(0,214,164,.2); }
.stage-filter-bar .filter-chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.6); }
.stage-filter-bar .filter-chip:hover { border-color: var(--gold); color: var(--gold); background: rgba(255,200,61,.08); }
.stage-filter-bar .filter-chip.active { background: var(--gold); border-color: var(--gold); color: #1a1f4b; }

/* ─── ルールカード ─── */
.rules-card { background: linear-gradient(145deg,#1e2460,#252c6e); border:1px solid rgba(255,255,255,.08); color:#fff; }
.rules-list i { color: var(--gold); }

/* ─── グループ積分表 ─── */
.group-card { background: linear-gradient(145deg,#1e2460,#252c6e); border:1px solid rgba(255,255,255,.08); }
.group-card-title { background: rgba(255,200,61,.15); color: var(--gold); font-size:1rem; }
.group-table th { background: rgba(0,0,0,.2); color:rgba(255,255,255,.5); border-bottom-color: rgba(255,255,255,.08); }
.group-table td { color:#fff; border-bottom-color: rgba(255,255,255,.06); }
.qualify-row { background: rgba(0,214,164,.08) !important; }

/* ─── ブラケット ─── */
.bracket-match { background: linear-gradient(145deg,#1e2460,#252c6e); border-color: rgba(255,255,255,.08); }
.bm-team + .bm-team { border-top-color: rgba(255,255,255,.06); }
.bm-name { color: rgba(255,255,255,.85); }
.bm-score { color: rgba(255,255,255,.4); }
.bm-win .bm-name { color: var(--gold); }
.bm-win .bm-score { color: var(--gold); }

/* ─── フッター ─── */
.site-footer { background: #0d1117; color:rgba(255,255,255,.3); border-top-color: rgba(255,255,255,.06); }
.site-footer i { color: var(--gold); }

/* ─── ランキングラップ ─── */
.ranking-wrap { background: linear-gradient(145deg,#1e2460,#252c6e); border:1px solid rgba(255,255,255,.08); }
.ranking-table th { background: rgba(0,0,0,.2); color:rgba(255,255,255,.5); }
.ranking-table tbody tr { border-top-color: rgba(255,255,255,.05); }
.ranking-table td { color:#fff; }
.ranking-table td.points { color: var(--gold) !important; }
.ranking-table tbody tr.me-row { background: rgba(255,200,61,.06) !important; }

/* ─── My Stats ─── */
.ms-card { background: linear-gradient(145deg,#1e2460,#252c6e); border:1px solid rgba(255,255,255,.08); }
.ms-label { color:rgba(255,255,255,.5) !important; }
.ms-history-title { color:#fff; }

/* ─── ユーザーバー ─── */
.user-bar { background: #13183d; border-bottom-color: rgba(255,255,255,.07); }
.user-field input { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); color:#fff; }
.user-field input::placeholder { color:rgba(255,255,255,.35); }
.user-field i { color: var(--gold); }
.name-callout-text strong { color: #fff; }
.name-callout-text span { color: rgba(255,255,255,.65); }
.user-greeting { color: #fff; }
.user-greeting-text strong { color: var(--gold); }
.btn-ghost { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.2); }
.btn-ghost:hover { color:#fff; border-color: var(--gold); }
.user-bar.needs-name #save-name-btn { background: var(--gold); color:#241a00; }

/* ─── 予想済みPill ─── */
.mypred-pill { background: rgba(0,214,164,.12); color: var(--accent); border: 1px solid rgba(0,214,164,.2); }
.mypred-pill i { color: var(--accent); }

/* ─── タイムブロック ─── */
.time-block { background: rgba(255,255,255,.04); border-left-color: rgba(255,200,61,.5); }
.time-block.same-tz { background: rgba(0,214,164,.05); border-left-color: var(--accent); }
.time-val { color: rgba(255,255,255,.9) !important; }
.local-row .time-val { color: var(--gold) !important; }
.jst-row   .time-val { color: var(--accent) !important; }
.time-label { color: rgba(255,255,255,.4) !important; }
.tz-badge { background: rgba(255,255,255,.1); color: rgba(255,255,255,.6); }

/* ─── View タイトル ─── */
.view-title { color: #fff; }
.view-title i { color: var(--gold); }

/* ─── マッチカード内文字 ─── */
.match-group-label { color: rgba(255,255,255,.4); }
.team-name { color: var(--text); }
.match-top { color: rgba(100,120,160,.9); }
.status-scheduled { background: rgba(255,255,255,.08); color: rgba(255,255,255,.5); }
.status-live { background: rgba(240,80,110,.15); }
.venue-text { color: rgba(100,120,160,.7); }

/* ─── ロックタグ ─── */
.locked-tag { color: rgba(255,255,255,.35); }
.no-pred-tag { color: rgba(255,255,255,.35); }

/* ─── 投票モーダルキャンセル ─── */
.btn-ghost { background: rgba(255,255,255,.08) !important; color: rgba(255,255,255,.6) !important; }
.btn-ghost:hover { background: rgba(255,255,255,.14) !important; color: #fff !important; }

/* ─── 通知スナックバー（Toast） ─── */
.toast { background: linear-gradient(120deg,#1e2460,#252c6e); border:1px solid rgba(255,200,61,.3); color:#fff; }

/* ─── マッチグループラベル大文字 ─── */
.match-group-label {
  font-size: .72rem; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,200,61,.6);
  margin: 18px 0 6px 2px;
  display: flex; align-items: center; gap: 8px;
}
.match-group-label::before {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,200,61,.2));
}
.match-group-label::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(270deg, transparent, rgba(255,200,61,.2));
}

/* ─── スコアボード風スコア ─── */
.scoreboard-live {
  background: linear-gradient(145deg,#1a0a0a,#2a1010);
  border-radius: 10px; padding: 4px 12px;
  border: 1px solid rgba(240,80,110,.3);
  box-shadow: 0 0 12px rgba(240,80,110,.2);
}

/* ─── 状態バッジ ─── */
.status-finished { background: rgba(0,214,164,.12); color: var(--accent); }

/* ─── モバイル ─── */
@media (max-width: 540px) {
  .hero-title { font-size: 1.5rem; }
  .hero-stats-row { gap: 12px; }
  .result-flash-pts { font-size: 4rem; }
}

/* ═══════════════════════════════════════════════
   スマートフォン モーダル全面最適化
   対象: 予想入力モーダル
═══════════════════════════════════════════════ */

/* ── モーダル全体: 下からシートとして開く ── */
.modal {
  /* ドラッグハンドル風の装飾 */
  padding-top: 28px;
}
.modal::before {
  content: "";
  display: block;
  width: 40px; height: 4px;
  background: rgba(255,255,255,.2);
  border-radius: 2px;
  margin: -14px auto 16px;
}

/* ── タイトル・マッチ名 ── */
.modal-title {
  font-size: 1rem;
  margin-bottom: 2px;
}
.modal-match {
  font-size: .8rem;
  margin-bottom: 8px;
}
.modal-stage-info {
  margin-bottom: 8px;
}

/* ── カウントダウン ── */
#modal-countdown {
  margin-bottom: 12px;
  text-align: center;
}

/* ── スコア入力ゾーン ── */
@media (max-width: 480px) {
  .score-input-row {
    gap: 8px;
    margin-bottom: 14px;
  }

  /* +/- ボタン: 指で押しやすいサイズに拡大 */
  .btn-score {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    border-radius: 50%;
  }

  /* スコア数字フィールド */
  .score-side input,
  .score-ctrl input {
    width: 64px !important;
    height: 64px !important;
    font-size: 2rem !important;
    border-radius: 14px;
  }

  /* チーム名 */
  .score-team {
    font-size: .78rem;
    min-height: 1.6em;
  }

  /* コロン */
  .score-dash { font-size: 1.4rem; }
}

/* ── プリセットチップ: 行をコンパクトに ── */
@media (max-width: 480px) {
  .preset-label {
    font-size: .65rem;
    margin-bottom: 4px;
  }
  .preset-row {
    gap: 5px;
    margin-bottom: 12px;
  }
  .preset-chip {
    padding: 6px 10px;
    font-size: .76rem;
    border-radius: 8px;
    /* タッチターゲット確保 */
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ── アクションボタン行 ── */
@media (max-width: 480px) {
  .modal-actions {
    display: grid;
    grid-template-columns: 72px 1fr;  /* キャンセル固定幅 | 送信が残り全部 */
    gap: 8px;
    margin-top: 4px;
  }

  /* キャンセルボタン: 必ず1行で収まるサイズを固定 */
  #modal-cancel {
    min-width: 72px !important;
    max-width: 72px !important;
    padding: 0 !important;
    height: 52px;
    font-size: .82rem !important;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    flex-shrink: 0;
  }

  /* 送信ボタン: 十分な高さで押しやすく */
  .btn-submit-game {
    height: 52px;
    font-size: .95rem;
    padding: 0 16px;
    border-radius: 14px;
    letter-spacing: .5px;
  }
}

/* ── フォームの上部余白を詰める ── */
@media (max-width: 480px) {
  .modal-title { font-size: .95rem; }
  #modal-countdown .countdown-block { font-size: .72rem; padding: 4px 8px; }
}
