/* =========================================================
 *  限界バランス・タワー  スタイル（明るいPOP × 日本のアーケード）
 *  クリーム × こげ茶の太い輪郭線 × ベタ影 × パキッとした原色
 *  ※ #frame の font-size は JS が「論理16px」に合わせて設定。1em = 論理16px。
 * ========================================================= */
:root {
  --ink: #2a1a10;
  --cream: #fff8e6;
  --paper: #fff1cf;
  --red: #e8453c;
  --orange: #ff8a1f;
  --yellow: #ffd23f;
  --green: #3fb34f;
  --teal: #22b7a0;
  --blue: #2f7fe0;
  --sky: #8fd3ff;
  --font: 'BIZ UDPGothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #ffe7a8; overflow: hidden; }
body {
  font-family: var(--font); color: var(--ink);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
#app {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; gap: 28px;
  background:
    radial-gradient(circle, rgba(255,255,255,.55) 2px, transparent 2.5px) 0 0 / 22px 22px,
    #ffe7a8;
}
#frame {
  position: relative; overflow: hidden; touch-action: none;
  background: var(--sky);
  box-shadow: 0 0 0 5px var(--ink), 10px 10px 0 5px rgba(42,26,16,.35);
  font-weight: 900;
}
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
button { font-family: var(--font); font-weight: 900; cursor: pointer; color: var(--ink); }

/* ---------- サイドパネル（横長画面のみ） ---------- */
#side { display: none; width: 270px; color: var(--ink); font-size: 13px; }
@media (min-aspect-ratio: 4/3) and (min-width: 900px) { #side { display: block; } }
.side-card { background: var(--cream); border: 4px solid var(--ink); border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; box-shadow: 6px 6px 0 var(--ink); }
.side-card h3 { margin: -12px -14px 10px; padding: 8px 14px; font-size: 15px; color: #fff; background: var(--blue); border-bottom: 4px solid var(--ink); border-radius: 10px 10px 0 0; }
.side-card dl { margin: 0; }
.side-card dt { font-weight: 900; margin-top: 9px; line-height: 1.35; color: var(--red); }
.side-card dd { margin: 2px 0 0; font-weight: 400; line-height: 1.35; }
.side-card p { margin: 0; line-height: 1.6; font-weight: 400; }

/* ---------- HUD ---------- */
#hud { position: absolute; inset: 0; pointer-events: none; }
.hb {
  position: absolute; top: .6em; background: var(--cream); border: .22em solid var(--ink);
  border-radius: .8em; box-shadow: .26em .26em 0 var(--ink); padding: .25em .6em .35em; line-height: 1.05;
}
.hb .lbl { font-size: .74em; letter-spacing: .04em; color: var(--ink); }
.hb .big { font-size: 2.1em; font-variant-numeric: tabular-nums; }
.hb .big small { font-size: .5em; margin-left: .1em; }
.hb-height { left: .6em; min-width: 8.4em; }
.hb-height .big { color: var(--blue); -webkit-text-stroke: .05em var(--ink); paint-order: stroke fill; }
.hb-height .best { font-size: .74em; color: var(--red); }
.hb-score { left: 50%; transform: translateX(-50%); text-align: center; min-width: 8.6em; }
.hb-score .lbl { color: var(--red); }
.hb-score .big { font-size: 1.8em; }
.hb-score .mult { font-size: .8em; color: var(--ink); background: var(--yellow); border: .12em solid var(--ink); border-radius: .5em; display: inline-block; padding: 0 .5em; margin-top: .15em; }
.hb-score.pop .big { animation: pop .25s ease-out; }
.hb-next { right: .6em; width: 7.4em; text-align: center; padding: 0 0 .3em; overflow: hidden; }
.hb-next .lbl { background: var(--blue); color: #fff; padding: .3em 0 .25em; border-bottom: .16em solid var(--ink); font-size: .74em; }
.hb-next canvas { width: 6.4em; height: 4.2em; display: block; margin: .15em auto 0; }
.next-name { font-size: .74em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 .3em; }
.hud-row { position: absolute; left: .6em; top: 6.5em; display: flex; align-items: center; gap: .5em; }
#lives { display: flex; gap: .25em; }
.life { width: 1.55em; height: 1.55em; border: .17em solid var(--ink); border-radius: 50%; background: var(--yellow); position: relative; box-shadow: .12em .12em 0 var(--ink); }
.life::before, .life::after { content: ''; position: absolute; top: .38em; width: .2em; height: .2em; border-radius: 50%; background: var(--ink); }
.life::before { left: .36em; } .life::after { right: .36em; }
.life i { position: absolute; left: .4em; right: .4em; bottom: .3em; height: .3em; border-bottom: .14em solid var(--ink); border-radius: 0 0 .4em .4em; }
.life.lost { background: #c9c2b4; transform: scale(.85); }
.life.lost i { border-bottom: none; border-top: .14em solid var(--ink); border-radius: .4em .4em 0 0; bottom: .15em; }
.life.just-lost { animation: shake .4s; }
.combo { font-size: 1.15em; color: var(--orange); -webkit-text-stroke: .16em var(--ink); paint-order: stroke fill; white-space: nowrap; }
.combo.bump { animation: pop .25s ease-out; }
.fever { position: absolute; left: .6em; top: 8.6em; width: 11em; height: 1.2em; background: #fff; border: .17em solid var(--ink); border-radius: .7em; overflow: hidden; box-shadow: .14em .14em 0 var(--ink); }
#fever-fill { position: absolute; inset: 0; width: 0; background: repeating-linear-gradient(-45deg, var(--yellow) 0 .5em, #ffb21a .5em 1em); transition: width .25s; }
.fever span { position: absolute; inset: 0; font-size: .7em; line-height: 1.6em; text-align: center; color: var(--ink); letter-spacing: .2em; }
.fever.on #fever-fill { background: repeating-linear-gradient(-45deg, var(--red) 0 .5em, var(--orange) .5em 1em); background-size: 1.42em 1.42em; animation: stripe .4s linear infinite; }
.fever.on span { color: #fff; -webkit-text-stroke: .2em var(--ink); paint-order: stroke fill; }
.fever.full { animation: pulse .5s infinite; }
#missions { position: absolute; left: .86em; top: 14.6em; margin: 0; padding: 0; list-style: none; font-size: .7em; }
#missions li { background: var(--cream); color: var(--ink); border-radius: .6em; padding: .2em .6em; margin-bottom: .35em; display: flex; gap: .5em; align-items: center; border: .17em solid var(--ink); }
#missions li b { color: var(--red); font-variant-numeric: tabular-nums; }
#missions li.done { background: var(--green); color: #fff; }
#missions li.done b { color: var(--yellow); }
.hud-btns { position: absolute; right: .6em; top: 8.7em; display: flex; gap: .4em; pointer-events: auto; }
.ibtn { width: 2.8em; height: 2.8em; border-radius: 50%; border: .2em solid var(--ink); background: var(--cream); box-shadow: .16em .16em 0 var(--ink); padding: .45em; }
.ibtn svg { width: 100%; height: 100%; fill: var(--ink); stroke: var(--ink); }
.ibtn:active { transform: translate(.14em, .14em); box-shadow: none; }
#btn-mute .x { display: none; } #btn-mute.muted .x { display: block; } #btn-mute.muted .wave { display: none; }
#btn-rotate {
  position: absolute; right: .8em; bottom: 3.8em; width: 5.2em; height: 5.2em; border-radius: 50%;
  background: var(--yellow); border: .24em solid var(--ink); box-shadow: .26em .26em 0 var(--ink);
  pointer-events: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 1em; padding: 0;
}
#btn-rotate svg { width: 2.3em; height: 2.3em; fill: var(--ink); stroke: var(--ink); }
#btn-rotate span { font-size: .75em; margin-top: -.1em; }
#btn-rotate:active { transform: translate(.2em, .2em); box-shadow: none; }
/* 高さゲージ（右端） */
.hgauge { position: absolute; right: .9em; top: 12.4em; bottom: 10.6em; width: 1.15em; background: #fff; border: .18em solid var(--ink); border-radius: .7em; box-shadow: .14em .14em 0 var(--ink); overflow: visible; }
.hgauge-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-radius: .5em; background: linear-gradient(0deg, var(--green), var(--yellow) 55%, var(--orange) 80%, var(--red)); transition: height .3s; }
.hgauge-best { position: absolute; left: -.55em; right: -.55em; height: .22em; background: var(--red); border: .08em solid var(--ink); bottom: 0; }
.hgauge-best::after { content: 'BEST'; position: absolute; right: 1.9em; top: -.6em; font-size: .55em; color: #fff; background: var(--red); border: .14em solid var(--ink); border-radius: .4em; padding: 0 .3em; }
.hint {
  position: absolute; left: 50%; bottom: 4.6em; transform: translateX(-50%); text-align: center; color: var(--ink);
  font-size: 1em; white-space: nowrap; transition: opacity .4s; background: var(--cream); border: .17em solid var(--ink); border-radius: 1em; padding: .25em .8em; box-shadow: .14em .14em 0 var(--ink);
}
.hint:empty { display: none; }
.hint .hand { display: inline-block; width: 1.2em; height: 1.2em; border: .17em solid var(--ink); background: var(--yellow); border-radius: 50%; margin-right: .4em; vertical-align: -.25em; animation: swipe 1.6s ease-in-out infinite; }
.tip {
  position: absolute; left: 50%; top: 19em; transform: translateX(-50%) scale(.9); width: 20em; opacity: 0; transition: opacity .25s, transform .25s;
  background: var(--cream); border: .2em solid var(--ink); border-radius: .8em; box-shadow: .24em .24em 0 var(--ink); padding: .45em .7em; font-size: .82em; line-height: 1.4;
}
.tip.show { opacity: 1; transform: translateX(-50%) scale(1); }
.tip .new { background: var(--red); color: #fff; border: .12em solid var(--ink); border-radius: .3em; padding: 0 .4em; margin-right: .4em; font-size: .85em; }
.tip p { margin: .2em 0 0; font-weight: 400; }

/* ---------- 演出 ---------- */
.banner { position: absolute; left: 0; right: 0; top: 27%; text-align: center; pointer-events: none; opacity: 0; }
.banner.show { animation: banner 2.1s ease-out forwards; }
.banner .ribbon {
  display: inline-block; background: var(--red); color: #fff; padding: .35em 1.2em .45em; transform: skewX(-8deg);
  border: .22em solid var(--ink); box-shadow: .3em .3em 0 var(--ink);
}
.banner .ribbon > * { transform: skewX(8deg); }
.banner .t { font-size: 1.7em; display: flex; align-items: center; gap: .4em; justify-content: center; -webkit-text-stroke: .12em var(--ink); paint-order: stroke fill; }
.banner .s { font-size: .9em; color: var(--yellow); margin-top: .15em; -webkit-text-stroke: .18em var(--ink); paint-order: stroke fill; }
.banner .warn { width: 1.2em; height: 1.2em; border-radius: 50%; background: var(--yellow); color: var(--ink); border: .1em solid var(--ink); font-size: .8em; line-height: 1.1em; -webkit-text-stroke: 0; }
.banner .arrow { font-size: 1.1em; color: var(--yellow); letter-spacing: -.2em; animation: blink .25s steps(2) infinite; }
.banner.record .ribbon { background: var(--yellow); color: var(--red); }
.banner.record .s { color: #fff; }

/* カットイン：ギザギザの爆発フキダシ */
.cutin { position: absolute; left: 0; right: 0; top: 37%; height: 12em; pointer-events: none; display: flex; justify-content: center; }
.burst { position: relative; width: 21em; height: 11em; animation: burst 1.15s cubic-bezier(.2,1.5,.4,1) forwards; }
.burst::before, .burst::after {
  content: ''; position: absolute; inset: 0;
  clip-path: polygon(50% 0%, 56% 14%, 66% 3%, 68% 18%, 81% 9%, 78% 25%, 94% 20%, 86% 35%, 100% 38%, 88% 49%, 99% 60%, 85% 64%, 93% 79%, 77% 75%, 76% 92%, 64% 81%, 56% 100%, 49% 85%, 38% 98%, 34% 82%, 20% 92%, 22% 75%, 5% 79%, 14% 64%, 0% 56%, 12% 48%, 2% 34%, 17% 33%, 10% 17%, 26% 22%, 26% 5%, 39% 16%);
}
.burst::before { background: var(--ink); transform: translate(.35em, .35em); }
.burst::after { background: var(--yellow); inset: .3em; }
.burst .in { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.burst .txt {
  font-size: 2.9em; color: var(--red); letter-spacing: -.03em; line-height: 1; transform: rotate(-6deg);
  -webkit-text-stroke: .14em #fff; paint-order: stroke fill; text-shadow: .07em .07em 0 var(--ink), -.03em -.03em 0 var(--ink);
}
.burst .sub { font-size: 1.05em; color: #fff; margin-top: .3em; background: var(--ink); border-radius: 1em; padding: .1em .7em; }
.burst.big .txt { font-size: 3.2em; }
.burst.fever::after { background: var(--orange); }
.burst.fever .txt { color: var(--yellow); -webkit-text-stroke: .14em var(--ink); }
.burst.recover::after { background: #7ee081; }
.burst.recover .txt { color: var(--blue); }

.stamp { position: absolute; left: 0; right: 0; top: 38%; text-align: center; pointer-events: none; opacity: 0; }
.stamp.show { animation: stamp 1.9s ease-out forwards; }
.stamp span {
  display: inline-block; font-size: 3.4em; color: var(--red); -webkit-text-stroke: .12em #fff; paint-order: stroke fill;
  text-shadow: .07em .07em 0 var(--ink); transform: rotate(-6deg);
}
.stamp small { display: inline-block; font-size: 1.05em; color: #fff; background: var(--ink); border-radius: 1em; padding: .2em .8em; margin-top: .5em; }

#toasts { position: absolute; left: .6em; right: .6em; bottom: 9.8em; display: flex; flex-direction: column; align-items: flex-start; gap: .35em; pointer-events: none; }
.toast {
  background: var(--cream); border: .18em solid var(--ink); border-radius: .7em; box-shadow: .18em .18em 0 var(--ink);
  padding: .3em .7em; font-size: .88em; animation: toast 2.8s ease-out forwards;
}
.toast b { color: #fff; background: var(--red); border-radius: .3em; padding: 0 .35em; margin-right: .35em; }
.toast.fall { background: #ffe0d9; }
.toast.mission { background: #d9f5d3; }
.toast.mission b { background: var(--green); }
.toast.title { background: #fff2b0; }
.toast.title b { background: var(--orange); }

/* ---------- 画面 ---------- */
.screen { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(255,240,200,.6); pointer-events: auto; overflow-y: auto; }
.screen.show { display: flex; }
#scr-title { background: linear-gradient(180deg, rgba(255,250,235,.15), rgba(255,250,235,0) 40%, rgba(255,240,200,.45)); }
#scr-result { background: rgba(143,211,255,.78); align-items: flex-start; }
.title-wrap { text-align: center; width: 100%; padding: 0 1.2em; }
.logo { position: relative; margin: 0 auto .8em; }
.logo-sub { display: inline-block; background: var(--ink); color: var(--yellow); font-size: .85em; padding: .3em .9em; border-radius: .4em; transform: rotate(-2deg); }
.logo h1 { margin: .2em 0 0; font-size: 3.4em; line-height: 1.02; display: flex; flex-direction: column; align-items: center; }
.logo h1 > span { display: block; white-space: nowrap; }
.logo h1 i {
  font-style: normal; display: inline-block;
  -webkit-text-stroke: .12em var(--ink); paint-order: stroke fill; text-shadow: .06em .07em 0 var(--ink);
}
.logo h1 > span:nth-child(1) { transform: rotate(-5deg) translateX(-.6em); font-size: .92em; }
.logo h1 > span:nth-child(2) { transform: rotate(2deg); }
.logo h1 > span:nth-child(3) { transform: rotate(-3deg) translateX(.5em); font-size: 1.08em; }
.c-red { color: var(--red); } .c-orange { color: var(--orange); } .c-yellow { color: var(--yellow); }
.c-green { color: var(--green); } .c-blue { color: var(--blue); } .c-teal { color: var(--teal); }
.logo .sticker {
  position: absolute; left: -.2em; top: 2.3em; width: 5.6em; height: 3.4em; transform: rotate(-14deg); display: flex; align-items: center; justify-content: center;
  font-size: .9em; color: var(--red);
}
.logo .sticker::before, .logo .sticker::after {
  content: ''; position: absolute; inset: 0;
  clip-path: polygon(50% 0%, 60% 18%, 78% 6%, 76% 28%, 98% 26%, 84% 46%, 100% 62%, 78% 66%, 82% 92%, 62% 78%, 50% 100%, 40% 78%, 18% 92%, 22% 66%, 0% 62%, 16% 46%, 2% 26%, 24% 28%, 22% 6%, 40% 18%);
}
.logo .sticker::before { background: var(--ink); transform: translate(.2em, .2em); }
.logo .sticker::after { background: var(--yellow); inset: .2em; }
.logo .sticker b { position: relative; z-index: 1; -webkit-text-stroke: .1em #fff; paint-order: stroke fill; }
.catch { color: var(--ink); font-size: 1.05em; line-height: 1.5; margin: .3em auto .9em; background: var(--cream); border: .18em solid var(--ink); border-radius: .8em; padding: .3em .9em; display: table; box-shadow: .18em .18em 0 var(--ink); }
.btn {
  display: inline-block; background: var(--cream); border: .2em solid var(--ink); border-radius: .8em; box-shadow: .22em .22em 0 var(--ink);
  padding: .55em 1em; font-size: 1em; margin: .3em; min-height: 2.9em;
}
.btn:active { transform: translate(.16em, .16em); box-shadow: none; }
.btn-primary { background: var(--orange); color: #fff; -webkit-text-stroke: .14em var(--ink); paint-order: stroke fill; }
.btn.big { font-size: 1.55em; padding: .4em 1.4em .45em; min-width: 8em; border-radius: 1.2em; }
.btn.big small { font-size: .45em; margin-left: .4em; -webkit-text-stroke: 0; color: var(--ink); opacity: .75; }
.btn.small { font-size: .85em; min-height: 2.4em; padding: .35em .8em; }
.btn.ghost { background: #fff; }
.coin { display: inline-block; width: 1em; height: 1em; border-radius: 50%; background: var(--yellow); border: .12em solid var(--ink); vertical-align: -.12em; margin-right: .3em; box-shadow: inset -.12em -.12em 0 #e0a820; position: relative; }
.coin::after { content: ''; position: absolute; left: .36em; top: .2em; width: .12em; height: .45em; background: #e0a820; border-radius: .1em; }
#btn-start { animation: pulse 1.4s ease-in-out infinite; }
.howto { list-style: none; padding: 0; margin: 1em auto .6em; display: flex; justify-content: center; gap: .5em; color: var(--ink); font-size: .8em; }
.howto li { background: var(--cream); border: .18em solid var(--ink); border-radius: .7em; padding: .4em .5em; width: 7.2em; line-height: 1.35; box-shadow: .16em .16em 0 var(--ink); }
.howto b { display: block; color: #fff; background: var(--blue); width: 1.6em; height: 1.6em; line-height: 1.5em; border-radius: 50%; margin: 0 auto .2em; border: .12em solid var(--ink); }
.row { display: flex; flex-wrap: wrap; justify-content: center; }
.title-best { color: var(--ink); font-size: .85em; margin-top: .5em; }

.panel {
  background: var(--paper); border: .24em solid var(--ink); border-radius: 1em; box-shadow: .32em .32em 0 var(--ink);
  padding: 1em 1.2em; width: 86%; max-height: 92%; overflow-y: auto; text-align: center;
}
.panel.wide { width: 94%; }
.panel h2 { margin: -.6em -.7em .7em; padding: .35em; font-size: 1.4em; color: #fff; background: var(--blue); border: .17em solid var(--ink); border-radius: .6em; -webkit-text-stroke: .12em var(--ink); paint-order: stroke fill; }
.vol { margin: .8em 0; display: flex; flex-direction: column; gap: .4em; align-items: center; }
.vol label { display: flex; align-items: center; gap: .6em; font-size: .9em; }
.vol input { width: 10em; accent-color: var(--orange); }
.plist { list-style: none; padding: 0; margin: .5em 0; font-size: .85em; text-align: left; }
.plist li { padding: .3em .5em; border-bottom: .1em dashed rgba(42,26,16,.3); font-weight: 400; }
.plist li.done { color: var(--green); font-weight: 900; }

.result-wrap { width: 100%; padding: .6em .6em 1em; text-align: center; }
#card { width: 100%; height: auto; border-radius: .7em; border: .24em solid var(--ink); box-shadow: .3em .3em 0 var(--ink); animation: rise .45s cubic-bezier(.2,1.3,.4,1); }
.news { color: var(--ink); font-size: .85em; margin: .5em 0 .1em; min-height: 1.2em; }
.news b { color: var(--red); }
#btn-retry { margin-top: .3em; animation: pulse 1.4s ease-in-out infinite; }

.catalog { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; text-align: left; margin-bottom: .6em; }
.cat-item { background: #fff; border: .17em solid var(--ink); border-radius: .8em; padding: .5em; font-size: .72em; box-shadow: .16em .16em 0 var(--ink); }
.cat-item canvas { width: 100%; height: 6.5em; display: block; background: #fff6dc; border-radius: .5em; }
.cat-item h4 { margin: .3em 0 .2em; font-size: 1.15em; }
.cat-item .stars { color: var(--orange); letter-spacing: .1em; }
.cat-item p { margin: .2em 0; font-weight: 400; line-height: 1.4; }
.cat-item p b { font-weight: 900; color: #fff; background: var(--red); border-radius: .3em; padding: 0 .3em; }
.cat-item .cnt { color: #7a5a3a; font-size: .9em; letter-spacing: 0; }
.rec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4em; margin-bottom: .8em; }
.rec-grid div { background: #fff; border: .16em solid var(--ink); border-radius: .6em; padding: .3em; font-size: .8em; }
.rec-grid b { display: block; font-size: 1.5em; color: var(--blue); }
.titles { list-style: none; padding: 0; margin: 0 0 .8em; text-align: left; font-size: .8em; }
.titles li { padding: .35em .5em; border-bottom: .1em dashed rgba(42,26,16,.3); display: flex; justify-content: space-between; gap: .5em; }
.titles li.lock { color: #9a8a74; font-weight: 400; }
.titles li span:last-child { font-weight: 400; font-size: .85em; text-align: right; }
.rec-h { font-size: 1em; margin: .6em 0 .3em; text-align: left; }

/* ---------- アニメーション ---------- */
@keyframes pop { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-.2em); } 75% { transform: translateX(.2em); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes stripe { to { background-position: 1.42em 0; } }
@keyframes blink { to { opacity: .2; } }
@keyframes swipe { 0%,100% { transform: translateX(-.6em); } 50% { transform: translateX(.6em); } }
@keyframes banner { 0% { opacity: 0; transform: scale(1.4); } 10% { opacity: 1; transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-1em); } }
@keyframes burst {
  0% { transform: scale(.2) rotate(-20deg); opacity: 0; }
  16% { transform: scale(1.08) rotate(3deg); opacity: 1; }
  24% { transform: scale(1) rotate(0); }
  80% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.15); opacity: 0; }
}
@keyframes stamp { 0% { opacity: 0; transform: scale(2.6); } 14% { opacity: 1; transform: scale(.95); } 20% { transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes toast { 0% { opacity: 0; transform: translateX(-1em); } 10% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rise { from { transform: translateY(1.5em) scale(.96); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  /* 常時動く飾りだけ止める（カットイン等の情報は残す） */
  #btn-start, #btn-retry, .fever.full, .hint .hand, .banner .arrow, .fever.on #fever-fill { animation: none !important; }
}
