/* 90歳まで生き残れ：ゲーム固有のスタイル（色は common.css の変数のみ） */
.rs-hero { padding: 12px 0 4px; }
.rs-hero h1 em { font-style: normal; color: var(--accent); }
.rs-hero-faces { font-size: 26px; letter-spacing: .04em; margin: 4px 0 10px; }
.rs-start { margin: 12px 0 16px; }
.rs-list { margin: 6px 0 0; padding-left: 1.2em; }
.rs-list li + li { margin-top: 4px; }
.rs-friend { border-color: var(--accent); background: var(--accent-soft); }
.rs-daily .btn { white-space: normal; }
.rs-disclaimer { font-size: 11px; color: var(--text-sub); background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 10px; margin: 16px 0 0; line-height: 1.6; }

/* ガチャ */
.rs-baby { font-size: 64px; text-align: center; line-height: 1.2; margin: 4px 0 8px; }
.rs-slots { padding: 8px 12px; }
.rs-slot { display: grid; grid-template-columns: 5.5em 1fr auto; align-items: center; gap: 8px; padding: 10px 4px; border-bottom: 1px dashed var(--line); min-height: 52px; }
.rs-slot:last-child { border-bottom: 0; }
.rs-slot-label { font-size: 12px; color: var(--text-sub); font-weight: 700; }
.rs-slot-val { font-weight: 800; font-size: 16px; line-height: 1.35; min-width: 0; }
.rs-slot.is-spinning .rs-slot-val { color: var(--text-sub); filter: blur(.4px); }
.rs-slot.is-rare-ssr { background: var(--accent-soft); border-radius: var(--radius-sm); }
.rs-slot.is-rare-sr { background: var(--info-soft); border-radius: var(--radius-sm); }
.rare-n { background: var(--surface-2); color: var(--text-sub); }
.rare-r { background: var(--good-soft); color: var(--good); }
.rare-sr { background: var(--info-soft); color: var(--info); }
.rare-ssr { background: var(--accent); color: var(--accent-ink); }

/* プレイ */
.rs-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rs-face { font-size: 46px; width: 64px; height: 64px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; flex: none; }
.rs-age { font-size: 24px; font-weight: 900; line-height: 1.2; }
.rs-meter { margin-top: 12px; position: sticky; top: 54px; z-index: 5; transition: border-color .3s, background .3s; }
.rs-amount { font-size: clamp(26px, 8vw, 34px); font-weight: 900; line-height: 1.2; font-variant-numeric: tabular-nums; }
.rs-delta { font-weight: 800; font-size: 15px; white-space: nowrap; }
.rs-delta.is-good { color: var(--good); }
.rs-delta.is-bad { color: var(--bad); }
.rs-meter-bar { margin: 8px 0 6px; }
.rs-meter.is-down { border-color: var(--bad); }
.rs-meter.is-down .rs-meter-bar > span { background: var(--warn); }
.rs-meter.is-neg { background: var(--bad-soft); border-color: var(--bad); }
.rs-meter.is-neg .rs-amount { color: var(--bad); }
.rs-meter.is-neg .rs-meter-bar > span { background: var(--bad); }
.rs-events { margin-top: 4px; }
.rs-evlist { list-style: none; margin: 6px 0 0; padding: 0; }
.rs-ev { display: grid; grid-template-columns: 3.2em 1.6em 1fr; gap: 2px 6px; font-size: 14px; line-height: 1.5; padding: 6px 0; border-bottom: 1px solid var(--line); }
.rs-ev:last-child { border-bottom: 0; }
.rs-ev-age { color: var(--text-sub); font-size: 12px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.rs-ev-v { grid-column: 3; font-size: 12px; font-weight: 700; color: var(--text-sub); }
.rs-ev-good .rs-ev-v { color: var(--good); }
.rs-ev-bad .rs-ev-t { color: var(--bad); }
.rs-ev-bad .rs-ev-v { color: var(--bad); }
.rs-ev-choice .rs-ev-t { font-weight: 700; }
.rs-ev-choice .rs-ev-t::before { content: '選択：'; color: var(--accent); }
.rs-qcard { border: 2px solid var(--accent); }
.rs-q { font-size: 20px; margin: 4px 0 12px; }
.rs-end-emoji { font-size: 56px; line-height: 1.2; }
.rs-choice .card .btn { margin-top: 12px; }

/* 結果 */
.rs-result-card { padding-top: 24px; }
.rs-result-card.is-broke { border-color: var(--bad); }
.rs-result-card.is-survived { border-color: var(--good); }
.rs-result-face { font-size: 60px; line-height: 1.1; }
.rs-result-big { color: var(--accent); }
.rs-result-card.is-survived .rs-result-big { color: var(--good); }
.rs-result-sub { font-weight: 800; font-size: 18px; }
.rs-title-badge { display: flex; align-items: center; gap: 10px; text-align: left; margin: 14px auto 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-2); max-width: 360px; }
.rs-title-badge b { font-size: 18px; line-height: 1.3; }
.rs-title-badge > div { flex: 1; min-width: 0; }
.rs-title-emoji { font-size: 34px; }
.rs-again { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 8px; }
.rs-again .btn { padding: 10px 12px; font-size: 14px; white-space: normal; line-height: 1.35; }
.rs-nisa-btn { border-color: var(--good); color: var(--good); }
.rs-compare { margin-top: 16px; }
.rs-timeline summary, .rs-sources summary { font-weight: 700; }
.rs-sources ul { padding-left: 1.2em; margin: 8px 0; }
.rs-sources li + li { margin-top: 6px; }

/* グラフ */
.rs-chart { width: 100%; height: auto; display: block; margin: 10px 0 4px; }
.rs-axis { stroke: var(--text-sub); stroke-width: 1; }
.rs-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; }
.rs-tick { fill: var(--text-sub); font-size: 9px; }
.rs-line { stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.rs-line-main { stroke: var(--accent); }
.rs-line-alt { stroke: var(--good); stroke-dasharray: 5 3; }
.rs-key { display: inline-block; width: 18px; height: 4px; border-radius: 2px; margin-right: 4px; }
.rs-key-main { background: var(--accent); }
.rs-key-alt { background: var(--good); }

/* 分布 */
.rs-dist { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; align-items: end; height: 110px; margin-top: 12px; }
.rs-dist-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.rs-dist-bar { width: 100%; background: var(--surface-2); border-radius: 4px 4px 0 0; min-height: 2px; }
.rs-dist-col.is-me .rs-dist-bar { background: var(--accent); }
.rs-dist-col span { font-size: 9px; color: var(--text-sub); white-space: nowrap; margin-top: 2px; }
.rs-dist-col.is-me span { color: var(--accent); font-weight: 700; }

/* NISA比較 */
.rs-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rs-cmp-col { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px; min-width: 0; }
.rs-cmp-big { font-size: 28px; font-weight: 900; line-height: 1.2; color: var(--accent); }

/* 図鑑 */
.rs-zukan { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.rs-zukan-item { background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 6px; text-align: center; font-size: 12px; line-height: 1.35; display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: .6; }
.rs-zukan-item.on { opacity: 1; background: var(--surface); border: 1px solid var(--line); }
.rs-zukan-emoji { font-size: 28px; }

/* 静的解説 */
.rs-about h2 { font-size: 18px; margin-top: 8px; }
.rs-about h3 { font-size: 15px; margin-top: 16px; }
.rs-about p, .rs-about li { font-size: 14px; }
.rs-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rs-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.rs-table th, .rs-table td { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; vertical-align: top; }
.rs-table th { color: var(--text-sub); font-weight: 700; white-space: nowrap; }
.rs-table a { word-break: break-all; }
.rs-fixed-note { max-width: 640px; margin: 0 auto; padding: 0 16px; }
