/* アズバランス — 小さく、静かに、洗練。紙色＋インク＋AZURE系アクセント1色。
   ゲーム画面はアプリらしく固定（スクロール／バウンスなし）。 */
:root {
  --paper: #f7f5f0;
  --card: #fffdf9;
  --ink: #23211d;
  --sub: #8a857b;
  --line: #e5e0d5;
  --accent: #2f7fc1;
  --danger: #d95f43;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  background: var(--paper); color: var(--ink); line-height: 1.75; font-size: 15px;
}
/* --- Webアプリ固定（ゲームページのみ） --- */
body.game {
  position: fixed; inset: 0; width: 100%; height: 100%;
  overscroll-behavior: none;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}
body.game *, body.game *::before, body.game *::after { -webkit-touch-callout: none; }
body.game .wrap {
  height: 100%;
  max-width: 480px; margin: 0 auto;
  padding: calc(10px + env(safe-area-inset-top)) 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
}
.wrap { max-width: 480px; margin: 0 auto; padding: 20px 18px 28px; min-height: 100svh; display: flex; flex-direction: column; }
.screen { display: none; }
.screen.active { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; animation: fadein .45s cubic-bezier(.22,.8,.3,1); }
/* ↑ overflow-y:auto（2026-10-29 バグ修正）: タイトル画面は小型端末（667px級）では
   内容が縦にあふれるが、従来はスクロールできずフッターの規約/プライバシーリンクや
   遊び方下部に届かなかった。プレイ画面は stage が flex で縮むため内容が
   あふれず、スクロールは発生しない（従来どおり固定）。 */
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .screen.active { animation: none; }
  .gauge.danger .gauge-track { animation: none; }
  .ctl.push.chance { animation: none; }
  #btn-next, #btn-again { animation: none; }
  .streak-num.pop { animation: none; }
}

.brand { font-size: 11px; letter-spacing: .32em; color: var(--sub); text-align: center; margin-top: 10px; }
.game-title { font-size: 30px; font-weight: 800; text-align: center; letter-spacing: .06em; }
.tagline { text-align: center; color: #55524b; margin-top: 9px; font-size: 14px; }
.note { font-size: 12.5px; color: var(--sub); text-align: center; min-height: 1em; margin-top: 10px; }
.fineprint { text-align: center; color: var(--sub); font-size: 12px; margin-top: 10px; }
.fineprint.small { margin-top: 6px; font-size: 11px; }
.howto-link { text-align: center; margin-top: 13px; font-size: 13px; }
.howto-link a, .foot a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--line); }

/* タイトル画：丸キャラ2体 */
.title-art { display: flex; justify-content: center; align-items: flex-end; gap: 4px; padding: 16px 0 2px; }
.mini-fighter {
  width: 56px; height: 56px; border-radius: 50%;
  border: 3px solid var(--ink); display: block; position: relative;
}
.mini-fighter::after {
  content: ""; position: absolute; left: 50%; top: 55%; width: 30px; height: 34px;
  transform: translateX(-50%); border-radius: 50%; background: rgba(255,255,255,.88);
}
.mini-fighter.blue {
  background: radial-gradient(circle at 32% 28%, #6aa9d8 0%, var(--accent) 55%, #256ea8 100%);
  transform: rotate(9deg); box-shadow: 0 10px 18px rgba(35,33,29,.18), inset 0 -8px 12px rgba(35,33,29,.14);
}
.mini-fighter.red {
  background: radial-gradient(circle at 32% 28%, #ec8a70 0%, var(--danger) 55%, #bd4a32 100%);
  transform: rotate(-9deg); box-shadow: 0 10px 18px rgba(35,33,29,.18), inset 0 -8px 12px rgba(35,33,29,.14);
}
.mini-bump {
  width: 11px; height: 11px; margin-bottom: 40px; flex: none;
  background: linear-gradient(135deg, #f2cd6b, #dfa81c);
  transform: rotate(45deg); border-radius: 2px;
  box-shadow: 0 0 10px rgba(224,168,28,.45);
}

.title-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; margin-top: 16px; }
.btn {
  appearance: none; border: 1px solid var(--ink); background: var(--card); color: var(--ink);
  font: inherit; font-size: 15px; padding: 11px 26px; border-radius: 999px; cursor: pointer;
  transition: transform .25s cubic-bezier(.22,.8,.3,1), background .25s;
}
.btn.primary { background: var(--ink); color: #fff; }
.btn.big { font-size: 17px; padding: 12px 44px; }
.btn:active { transform: scale(.97); }

.howto-box {
  margin-top: 16px; background: linear-gradient(180deg, #fffefa, var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 15px; font-size: 12.8px; line-height: 1.62; color: #3c392f;
  box-shadow: 0 8px 20px rgba(35,33,29,.06), inset 0 1px 0 rgba(255,255,255,.8);
}
.howto-box p + p { margin-top: 6px; }

/* --- プレイ画面 --- */
/* CENTERチップ（固定・右上 約36px）が相手名に被らないよう上部に帯を確保。
   ステージは幅基準で描画スケールが決まるため、高さの再編ではキャラは縮まない。 */
#screen-play { gap: 8px; padding-top: 34px; }
.hud { display: flex; align-items: flex-end; gap: 14px; }
.hud-streak { display: flex; align-items: baseline; gap: 5px; }
.streak-num { font-size: 46px; font-weight: 800; line-height: 0.95; letter-spacing: .02em; }
.streak-label { font-size: 12px; color: var(--sub); }
.hud-right { margin-left: auto; text-align: right; }
.opp-name { font-size: 13.5px; font-weight: 700; }
.pips { font-size: 11.5px; color: var(--sub); letter-spacing: .08em; }

.gauge-block { display: flex; flex-direction: column; gap: 6px; }
.gauge { position: relative; }
/* 傾きの勢いを示す小さな三角（CSS図形・読み合いの材料） */
.lean-arrow {
  position: absolute; top: 9px; width: 0; height: 0; opacity: 0; transition: opacity .18s;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent; pointer-events: none;
}
.lean-arrow.l { left: -11px; border-right: 7px solid #a8790a; }
.lean-arrow.r { right: -11px; border-left: 7px solid #a8790a; }
.gauge.mini .lean-arrow { top: 5px; border-top-width: 4px; border-bottom-width: 4px; }
.gauge-track {
  position: relative; height: 17px; border-radius: 999px; border: 1px solid var(--line);
  background: linear-gradient(90deg, #e8a294 0%, #eed9a4 26%, #b9d3a8 50%, #eed9a4 74%, #e8a294 100%);
  box-shadow: inset 0 2px 4px rgba(35,33,29,.16), inset 0 -1px 0 rgba(255,255,255,.55), 0 1px 2px rgba(35,33,29,.06);
  overflow: hidden;
}
.gauge.mini .gauge-track { height: 9px; background: linear-gradient(90deg, #d8d2c4 0%, #efe9db 50%, #d8d2c4 100%); }
.gauge .needle {
  position: absolute; top: 0; bottom: 0; width: 5px; margin-left: -2.5px;
  background: var(--ink); border-radius: 3px;
  transition: left .05s linear;
}
.gauge .needle.cpu { background: #6e685c; width: 4px; margin-left: -2px; }
.gauge.danger .gauge-track { animation: pulse .5s ease-in-out infinite alternate; }
@keyframes pulse { from { box-shadow: 0 0 0 0 rgba(217,95,67,0); } to { box-shadow: 0 0 0 3px rgba(217,95,67,.45); } }
.gauge-label { font-size: 10.5px; color: var(--sub); margin-top: 3px; }

.stage {
  position: relative; flex: 1; min-height: 0;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: #cdeefb;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), inset 0 -18px 30px rgba(35,80,120,.10), 0 10px 24px rgba(35,33,29,.08);
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.stage-banner {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800; letter-spacing: .08em; color: #fff;
  text-shadow: 0 2px 14px rgba(35,33,29,.45), 0 0 2px rgba(35,33,29,.5), 0 0 26px rgba(232,185,60,.35);
  opacity: 0; transform: scale(.93); transition: opacity .22s, transform .38s cubic-bezier(.22,.8,.3,1); pointer-events: none; text-align: center; padding: 0 12px;
}
.stage-banner.show { opacity: 1; transform: scale(1); }
.stage-panel {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: linear-gradient(180deg, rgba(255,254,250,.98), rgba(255,253,249,.97));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; text-align: center; font-size: 13.5px;
  box-shadow: 0 12px 28px rgba(35,33,29,.18), inset 0 1px 0 rgba(255,255,255,.9);
  animation: fadein .4s cubic-bezier(.22,.8,.3,1);
}
.stage-panel .btn { margin-top: 10px; }

.controls { display: grid; grid-template-columns: 1fr 1.35fr; gap: 12px; }
.ctl {
  appearance: none; font: inherit; font-weight: 700; height: 64px;
  border-radius: 999px; cursor: pointer; touch-action: none;
  transition: transform .15s cubic-bezier(.22,.8,.3,1), opacity .2s, background .2s;
}
.ctl:active { transform: scale(.97); }
.ctl.push {
  background: linear-gradient(180deg, #38352f, var(--ink) 60%, #171512); color: #fff;
  border: 1px solid var(--ink); font-size: 21px; letter-spacing: .06em;
  box-shadow: 0 5px 0 #100e0c, 0 10px 18px rgba(35,33,29,.22), inset 0 1px 0 rgba(255,255,255,.18);
}
.ctl.brace {
  background: linear-gradient(180deg, #fffefa, var(--card)); color: var(--ink);
  border: 1.5px solid var(--ink); font-size: 17px;
  box-shadow: 0 4px 0 rgba(35,33,29,.75), 0 8px 16px rgba(35,33,29,.12), inset 0 1px 0 rgba(255,255,255,.9);
}
.ctl.push.chance { animation: chancebtn 1s ease-in-out infinite alternate; }
.ctl.push { position: relative; overflow: hidden; }
.ctl.push.chance::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,226,150,.34) 50%, transparent 62%);
  transform: translateX(-110%);
  animation: chancesheen 1.6s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes chancesheen { 0% { transform: translateX(-110%); } 55%, 100% { transform: translateX(110%); } }
@media (prefers-reduced-motion: reduce) { .ctl.push.chance::after { animation: none; } }
@keyframes chancebtn { from { box-shadow: 0 5px 0 #100e0c, 0 10px 18px rgba(35,33,29,.22), 0 0 0 0 rgba(224,168,28,0); } to { box-shadow: 0 5px 0 #100e0c, 0 10px 18px rgba(35,33,29,.22), 0 0 0 5px rgba(224,168,28,.38); } }
.ctl.notready { opacity: .42; }
.ctl.bracing { background: #dcebf7; }

/* --- 結果画面 --- */
.over-title { font-size: 15px; letter-spacing: .28em; color: var(--sub); text-align: center; margin-top: 34px; }
.over-streak { text-align: center; margin-top: 6px; }
.over-streak #over-streak { font-size: 84px; font-weight: 800; line-height: 1; }
.over-unit { font-size: 18px; font-weight: 700; margin-left: 6px; }

.foot {
  margin-top: auto; padding-top: 14px; display: flex; gap: 12px; align-items: baseline;
  font-size: 11.5px; color: var(--sub); flex-wrap: wrap;
}
.foot span { margin-right: auto; }

/* --- 音トグル --- */
.sound-row { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.sound-toggle {
  appearance: none; font: inherit; font-size: 12px; color: var(--sub);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; cursor: pointer; transition: color .2s, border-color .2s, transform .15s;
}
.sound-toggle[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); font-weight: 700; }
.sound-toggle:active { transform: scale(.95); }

/* --- ゲージの見せ方 --- */
.gauge-track::after {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: rgba(35,33,29,.28);
}
.gauge .needle { box-shadow: 0 0 0 1.5px rgba(255,253,249,.85), 0 1px 4px rgba(35,33,29,.35); z-index: 1; }
.gauge.chance .gauge-track { animation: chancepulse .55s ease-in-out infinite alternate; }
@keyframes chancepulse { from { box-shadow: 0 0 0 0 rgba(224,168,28,0); } to { box-shadow: 0 0 0 3px rgba(224,168,28,.55); } }
.gauge.chance .gauge-label { color: #a8790a; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .gauge.chance .gauge-track { animation: none; } }

/* --- ボタンの押下フィードバック --- */
.ctl.pressed { transform: scale(.93); filter: brightness(1.12); }
.ctl.push.pressed { box-shadow: 0 0 0 4px rgba(35,33,29,.18); }
.ctl.brace.pressed { box-shadow: 0 0 0 4px rgba(47,127,193,.20); }

/* --- 結果の山 --- */
.over-rank { text-align: center; font-size: 19px; font-weight: 800; letter-spacing: .1em; margin-top: 14px; }
.over-comment { text-align: center; font-size: 13.5px; color: #55524b; margin-top: 8px; padding: 0 10px; }
.over-best-badge {
  text-align: center; font-size: 12.5px; font-weight: 700; color: #a8790a;
  margin: 12px auto 0; width: fit-content; padding: 4px 14px;
  border: 1px solid #e0a81c; border-radius: 999px; background: rgba(224,168,28,.10);
  animation: fadein .5s cubic-bezier(.22,.8,.3,1);
}
.panel-comment { font-size: 12.5px; color: var(--sub); margin-top: 6px; }

/* --- 離さなさ演出（静かな呼吸・小さな弾み・次目標） --- */
#btn-next, #btn-again { animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(35,33,29,.14); } 50% { box-shadow: 0 0 0 5px rgba(35,33,29,.07); } }
.streak-num.pop { animation: streakpop .45s cubic-bezier(.22,.8,.3,1); display: inline-block; }
@keyframes streakpop { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
.over-next-goal { text-align: center; font-size: 12.5px; font-weight: 700; color: #a8790a; margin-top: 10px; min-height: 1em; }

/* --- ショップ導線（タイトル） --- */
.btn.small { padding: 5px 16px; font-size: 13px; }
.menu-row {
  appearance: none; width: 100%; margin-top: 14px; display: flex; justify-content: space-between; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: 14.5px; font-weight: 700; color: var(--ink); padding: 13px 16px; cursor: pointer;
  transition: transform .16s cubic-bezier(.22,1,.36,1);
}
.menu-row:active { transform: scale(.985); }
.menu-row .mr-sub { font-size: 11.5px; color: var(--sub); font-weight: 400; }
/* --- ショップ画面（アズコイン販売中） --- */
#screen-shop { padding-top: 34px; }
.shop-head { display: flex; align-items: center; gap: 10px; }
.shop-title { font-size: 19px; letter-spacing: .05em; flex: 1; }
.shop-note { font-size: 12px; color: var(--sub); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; line-height: 1.65; margin-top: 14px; }
.shop-cat-head { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--sub); margin: 18px 2px 2px; }
.shop-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.shop-item .s-main { flex: 1; min-width: 0; }
.shop-item .s-main b { font-size: 14.5px; }
.shop-item .s-effect { flex: 0 0 100%; color: var(--sub); font-size: 12px; line-height: 1.65; }
.shop-item .s-price { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.shop-item .s-tax { font-size: 10px; color: var(--sub); font-weight: 700; margin-left: 3px; }
.shop-ic-wrap { width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.shop-ic { width: 23px; height: 23px; display: block; }
.shop-badge-design { display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; color: #256ea8; background: rgba(47,127,193,.14); border-radius: 99px; padding: 2px 7px; margin-left: 7px; vertical-align: 2px; }
.btn-disabled { font-size: 12px; font-weight: 700; color: var(--sub); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; white-space: nowrap; font: inherit; }
.catalog-btn:disabled { opacity: .85; cursor: default; }
@keyframes riseIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
#screen-shop.active .catalog-row, #screen-shop.active .ref-item { animation: riseIn .34s cubic-bezier(.22,1,.36,1) both; }
@media (prefers-reduced-motion: reduce) {
  #screen-shop.active .catalog-row, #screen-shop.active .ref-item { animation: none; }
}

/* ガイド/規約 共通 */
.guide h1, .terms h1 { font-size: 22px; margin-top: 18px; line-height: 1.5; }
.guide h2, .terms h2 { font-size: 16px; margin: 26px 0 8px; }
.guide p, .guide li, .terms p, .terms li { font-size: 14px; color: #3c392f; }
.guide ul, .guide ol, .terms ol { padding-left: 1.4em; margin-top: 6px; }
.guide .back { display: inline-block; margin-top: 30px; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--line); }
.terms .small { font-size: 12px; color: var(--sub); margin-top: 30px; }
.terms .cta { display: block; text-align: center; margin-top: 22px; color: var(--accent); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 11px; background: var(--card); }

/* === アイテムショップ大型化（ITEM-SHOP-SPEC・フラッグシップ選択欄の文法） === */
.azs-balance { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.azs-balance-label { font-size: 11px; letter-spacing: .08em; color: var(--sub); font-weight: 700; }
.azs-balance-num { font-size: 20px; font-variant-numeric: tabular-nums; }
.azs-balance-link { margin-left: auto; font-size: 12px; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--line); }
.azs-guest { margin-top: 18px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; }
.azs-guest p { font-size: 13.5px; line-height: 1.7; margin-bottom: 14px; }
.azs-stage { display: flex; align-items: center; gap: 4px; margin-top: 18px; }
.azs-arrow { appearance: none; border: none; background: none; font-size: 30px; line-height: 1; color: var(--sub); cursor: pointer; padding: 10px 6px; flex: none; transition: transform .25s cubic-bezier(.22,.8,.3,1), color .25s; -webkit-tap-highlight-color: transparent; }
.azs-arrow:active { transform: scale(.9); color: var(--ink); }
.azs-focus { flex: 1; height: 218px; border-radius: 20px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; transition: background .45s cubic-bezier(.22,.8,.3,1); }
.azs-focus .shop-ic { width: 132px; height: 132px; animation: azsIn .5s cubic-bezier(.22,.8,.3,1) both; }
@keyframes azsIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.azs-info { text-align: center; margin-top: 16px; }
.azs-kind { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--sub); }
.azs-name { font-size: 22px; letter-spacing: .03em; margin-top: 4px; }
.azs-effect { font-size: 13px; color: #55524b; line-height: 1.7; margin-top: 8px; min-height: 2.6em; }
.azs-price { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 6px; }
.azs-price-unit { font-size: 13px; font-weight: 700; color: var(--sub); }
.azs-owned { font-size: 12.5px; color: var(--accent); font-weight: 700; min-height: 1.4em; margin-top: 4px; }
.azs-action { width: 100%; margin-top: 10px; padding: 14px 26px; font-size: 16px; }
.azs-action:disabled { opacity: .45; cursor: default; }
.azs-note { font-size: 11.5px; color: var(--sub); margin-top: 10px; }
.azs-note a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--line); }
.azs-dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.azs-dot { width: 6px; height: 6px; border-radius: 99px; background: var(--line); transition: background .3s, width .3s cubic-bezier(.22,.8,.3,1); }
.azs-dot.on { background: var(--ink); width: 18px; }
.azs-strip { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.azs-thumb { position: relative; appearance: none; width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .25s cubic-bezier(.22,.8,.3,1), border-color .25s; -webkit-tap-highlight-color: transparent; }
.azs-thumb .shop-ic { width: 30px; height: 30px; }
.azs-thumb.on { border-color: var(--ink); transform: translateY(-2px); }
.azs-thumb-owned { position: absolute; right: 3px; bottom: 3px; font-size: 9px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 99px; padding: 1px 5px; }
.azs-sheet-wrap { position: fixed; inset: 0; z-index: 60; }
.azs-sheet-backdrop { position: absolute; inset: 0; background: rgba(28,26,22,.42); animation: azsFade .25s ease both; }
.azs-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--card); border-radius: 20px 20px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); max-width: 480px; margin: 0 auto; animation: azsSheet .38s cubic-bezier(.22,.8,.3,1) both; }
@keyframes azsFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes azsSheet { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }
.azs-sheet-kind { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--sub); }
.azs-sheet-name { font-size: 19px; margin-top: 3px; }
.azs-sheet-rows { margin-top: 14px; border-top: 1px solid var(--line); }
.azs-sheet-rows > div { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.azs-sheet-rows b { font-size: 16px; font-variant-numeric: tabular-nums; }
.azs-sheet-note { font-size: 11.5px; color: var(--sub); margin-top: 12px; }
.azs-sheet-note a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--line); }
.azs-sheet-error { font-size: 13px; color: #b03a30; margin-top: 10px; }
.azs-sheet-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.azs-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); background: var(--ink); color: #fff; font-size: 13.5px; padding: 11px 18px; border-radius: 99px; opacity: 0; pointer-events: none; transition: opacity .35s cubic-bezier(.22,.8,.3,1), transform .35s cubic-bezier(.22,.8,.3,1); z-index: 70; max-width: 88vw; text-align: center; }
.azs-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* === 使い切りアイテム（プレイ画面） === */
.play-items { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.item-btn { border-color: var(--line); }
.item-qty { font-weight: 700; color: var(--accent); }
.item-qty.light { color: #f2d98c; }
/* 応援幕: 対戦開始時にステージ上部から下りる幕（演出のみ） */
.cheer-banner { position: absolute; top: 0; left: 8%; right: 8%; z-index: 5; background: linear-gradient(180deg, #fffdf9, #fdf6e3); border: 1.5px solid var(--ink); border-top: none; border-radius: 0 0 14px 14px; color: var(--danger); font-size: 19px; font-weight: 800; letter-spacing: .22em; text-align: center; padding: 9px 6px 11px; box-shadow: 0 10px 22px rgba(35,33,29,.20); pointer-events: none; }
.cheer-banner.drop { animation: cheerDrop 2.1s cubic-bezier(.22,.8,.3,1) both; }
@keyframes cheerDrop { 0% { transform: translateY(-105%); } 14% { transform: translateY(0); } 82% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }
/* 紙吹雪（DOM・演出のみ） */
.dom-confetti { position: absolute; top: 12%; width: 7px; height: 11px; border-radius: 2px; z-index: 5; pointer-events: none; opacity: 0; animation: confettiFall 1.6s cubic-bezier(.22,.8,.3,1) forwards; }
@keyframes confettiFall { 0% { opacity: 0; transform: translate(0, -8px) rotate(0deg); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx, 0px), 190px) rotate(var(--rot, 180deg)); } }
@media (prefers-reduced-motion: reduce) { .cheer-banner.drop, .dom-confetti, .azs-focus .shop-ic { animation: none; } .dom-confetti { display: none; } }

/* === テーマ（画面まわりの色合い・装備連動） === */
body.theme-sunset { --paper: #f8eee1; --card: #fff9f1; --line: #ead8c2; }
body.theme-dohyo { --paper: #f3eee1; --card: #fbf7ec; --line: #ddd2ba; }
body.theme-sunset .stage { background: #f7c489; }
body.theme-dohyo .stage { background: #ded5bf; }

.azs-banner{display:block;margin:30px 0 2px;width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);border-radius:0;overflow:hidden;line-height:0;aspect-ratio:4/1;background:#16222e;transition:transform .12s ease}
.azs-banner img{display:block;width:100%;height:100%;object-fit:cover}
.azs-banner:active{transform:scale(.99)}

/* === ノースクロール是正 (2026-11-01 FIX1): タイトル画面を 375×812 に収める ===
   構造のみの是正（文言・導線・世界観は不変）。タイトル画と説明ボックスを
   詰め、余白のリズムを圧縮する。 */
.wrap { padding-top: 12px; padding-bottom: 14px; }
#screen-title .brand { margin-top: 2px; line-height: 1.4; }
#screen-title .title-art { padding: 8px 0 0; }
#screen-title .title-art svg { width: 92px; height: auto; }
#screen-title .game-title { font-size: 26px; line-height: 1.25; }
#screen-title .tagline { margin-top: 5px; font-size: 13.5px; line-height: 1.5; }
#screen-title .title-records { margin-top: 6px; }
#screen-title .title-actions { margin-top: 8px; gap: 6px; }
#screen-title .title-actions .btn { padding: 8px 26px; line-height: 1.35; }
#screen-title .sound-row { margin-top: 6px; }
#screen-title .sound-btn { padding: 4px 12px; }
#screen-title .howto-box { margin-top: 10px; padding: 8px 11px; font-size: 11.5px; line-height: 1.48; }
#screen-title .howto-box p + p { margin-top: 3px; }
#screen-title .menu-row { margin-top: 6px; padding: 9px 16px; }
#screen-title .howto-link { margin-top: 6px; line-height: 1.5; }
#screen-title .fineprint { font-size: 11px; line-height: 1.48; margin-top: 6px; }
#screen-title .azs-banner { margin-top: 8px; height: 38px; aspect-ratio: auto; }
#screen-title .azs-banner img { object-position: center 42%; }
#screen-title .foot { padding-top: 6px; line-height: 1.45; }
.azi-strip { padding-top: 10px !important; padding-bottom: 10px !important; }
.azi-strip-title { line-height: 1.35 !important; }
.azi-strip-sub { line-height: 1.4 !important; }

/* === ノースクロール是正 第2段 (2026-11-01 FIX1): 安全マージン === */
#screen-title .title-art { padding-top: 6px; }
#screen-title .mini-fighter { width: 44px; height: 44px; }
#screen-title .howto-box { line-height: 1.45; }

/* === ホーム追加カード被り是正 (2026-11-02 バグ総点検) ===
   .azip-card がプレイ画面下段の「押す！／踏ん張る」等の操作ボタンを覆って
   押せなくなっていた（アズさがし 2026-11-01 と同じ病気・同じ作法で是正）。
   プレイ中とゲームオーバー画面ではカードを出さない。タイトル等では従来どおり。 */
body.play-active .azip-card, body.end-active .azip-card { display: none !important; }
