/* S1 タイトル */
.title-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 48px; }
.logo { display: flex; flex-direction: column; align-items: center; font-size: var(--fs-l); line-height: 1.2; text-align: center; }
.concept { display: flex; align-items: center; gap: 16px; }
.concept-balls { display: grid; grid-template-columns: repeat(5, 24px); grid-auto-rows: 24px; animation: conceptPuff 0.6s ease-out 0.8s 1 both; }
.concept-balls i { place-self: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ones); border: 2px solid var(--ones-line); }
.concept-arrow { width: 32px; height: 24px; fill: none; stroke: var(--ink); flex: none; }
.concept-rod { width: 16px; height: 40px; border-radius: 4px; background: var(--tens); border: 2px solid var(--tens-line); animation: conceptRod 0.6s ease-out 0.8s 1 both; }
@keyframes conceptPuff { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes conceptRod {
  0% { background: var(--ones); border-color: var(--ones-line); transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { background: var(--tens); border-color: var(--tens-line); transform: scale(1); }
}
.title-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-bottom: 24px; flex: none; }
.title-actions .btn { width: min(100%, 320px); }
.title-actions .btn.sub { margin-bottom: 4px; }

/* S2 ステージ */
#s-stages { overflow-y: auto; }
.stage-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding-bottom: 24px; }
.stage-card {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 72px; padding: 8px;
  background: var(--white); border: 2px solid var(--line); border-radius: 16px; text-align: left;
}
.stage-card:active:not([aria-disabled="true"]) { transform: scale(0.98); }
.stage-no { width: 32px; height: 32px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--white); font-size: var(--fs-xs); line-height: 1; }
.stage-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stage-name { font-size: var(--fs-s); line-height: 1.6; display: flex; flex-wrap: wrap; column-gap: 8px; }
.stage-sample { font-size: var(--fs-xs); line-height: 1.6; color: var(--ink-sub); display: flex; flex-wrap: wrap; column-gap: 8px; }
.stage-stars { display: flex; flex: none; }
.stage-stars svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2; }
.stage-stars svg.on { fill: var(--ink); }
.stage-card[aria-disabled="true"] { background: var(--line); color: var(--ink-sub); cursor: default; }
.stage-card[aria-disabled="true"] .stage-no { background: var(--ink-sub); }
.stage-lock { width: 24px; height: 24px; fill: var(--ink-sub); stroke: var(--ink-sub); flex: none; }
@media (max-width: 359px) { .stage-stars svg { width: 20px; height: 20px; } }

/* S4 けっか */
.result-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.stars { display: flex; gap: 16px; }
.stars svg { width: 48px; height: 48px; fill: none; stroke: var(--ink); stroke-width: 2; }
.stars svg.on { fill: var(--ink); animation: starPop 0.3s ease-out 1 both; }
@keyframes starPop { 0% { transform: scale(0.4); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
.res-list { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.res-level { display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(100%, 256px); }
.xp-wide { width: 100%; }

/* S5 きろく */
#s-record { overflow-y: auto; }
.rec-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.rec-list li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 16px; background: var(--white); border: 2px solid var(--line); border-radius: 16px; }
.rec-stages { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.rec-stage { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rec-stage .stage-stars svg { width: 24px; height: 24px; }
.rec-erase { margin-top: 24px; padding-bottom: 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.erase-btn { position: relative; overflow: hidden; width: min(100%, 320px); }
.erase-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--line); }
.erase-btn.holding .erase-fill { width: 100%; transition: width 2s linear; }
.erase-label { position: relative; }
.erase-confirm { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.erase-actions { display: flex; gap: 16px; }
