/* v2 第1段: ホールの一日。style.css の部品を使う */

/* ---------- v2 の見た目（2026-11-14。ポップでゲームらしく・明るい店内） ----------
   style.css は今の版（index.html）と共有なので、色・書体・部品の形はここで上書きする。
   ロゴは極太のゴシック（--pop）、本文は太めの丸ゴシック、数字はドット（データカウンター）。
   ボタンと札は、太いふちと下の厚みで「押せる部品」に見せる。
   色: タイトルは夜のホールの絵。中の画面は明るい店内（クリーム色の地・白い札・紺のふちと文字）。
   明るい地に乗る文字の色（--gold --pink --cyan --green --plus --minus）は、読める濃さにしてある。
   黄色い面（主役のボタン・選んだタブ・カウンターの数字）は --yellow。黄色を文字の色に使わない。 */
:root {
  color-scheme: light;
  --bg: #fff4d6;
  --bg2: #ffffff;
  --card: #ffffff;
  --card2: #fff9e6;
  --line: #dccb96;    /* 罫線・静かなふち */
  --ink: #23204a;     /* ふち・厚み・文字 */
  --text: #23204a;
  --muted: #68658a;
  --yellow: #ffd60a;  /* 黄色い面 */
  --gold: #c2410c;    /* 目立たせる文字と印（明るい地で読める橙） */
  --gold2: #ffa800;
  --pink: #e11d5a;
  --cyan: #0a6ebd;    /* リンク・補足の文字 */
  --green: #188a4a;
  --plus: #e11d48;    /* 勝ち（ホールの慣習で赤系） */
  --minus: #1d6fd8;   /* 負け */
  --night: #1a1446;   /* はじめの画面の夜の地 */
  --radius: 16px;
  --font: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', sans-serif;
  --pop: 'Dela Gothic One', 'M PLUS Rounded 1c', 'Hiragino Sans', sans-serif;
}
body { font-weight: 500; background: radial-gradient(rgba(240, 180, 40, .2) 1.5px, transparent 2px) 0 0 / 22px 22px fixed, var(--bg); }
body::before { background: var(--bg2); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* 押せる部品: 太いふち・下の厚み。押すと沈む */
.btn { border: 2px solid var(--ink); border-radius: 14px; background: var(--card); box-shadow: 0 4px 0 var(--ink); transition: transform .06s ease, box-shadow .06s ease, background .15s, border-color .15s; }
.btn:hover:not(:disabled) { background: #fff3c4; border-color: var(--ink); }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn:focus-visible, .d-tab:focus-visible, .d-link:focus-visible, .help-link:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.btn.primary { background: linear-gradient(#ffe866, #ffc400); border-color: var(--ink); color: var(--ink); }
.btn.primary:hover:not(:disabled) { background: linear-gradient(#fff07f, #ffcf1f); }
.btn.primary small, .btn.primary .btn-sub { opacity: 1; color: #4a3a00; }
.btn.ghost { background: transparent; border-color: #b9ab7c; box-shadow: none; }
.btn.ghost:active:not(:disabled) { box-shadow: none; transform: scale(.97); }
.btn.big { padding: 15px 20px; font-size: 18px; font-weight: 900; letter-spacing: .03em; }
.btn.small { box-shadow: 0 3px 0 var(--ink); }
a.btn { display: block; text-align: center; text-decoration: none; }

.bar { background: var(--bg2); border-bottom: 3px solid var(--ink); }
.bar h2 { font-weight: 900; font-size: 18px; }

/* ---------- はじめの画面（ロゴ） ----------
   放射の光の前に、1文字ずつ跳ねて出るロゴ。まわりにメダルと玉。主役のボタンはゆっくり脈を打つ */
.t-hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; flex-direction: column; align-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 0 16px; text-align: center; }
.t-sky { position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; overflow: hidden; pointer-events: none; background: var(--night); } /* 画面の幅いっぱい（PC でも列の端で光が切れない） */
.t-rays { position: absolute; left: 50%; top: 37%; width: 240vmax; aspect-ratio: 1; translate: -50% -50%; background: repeating-conic-gradient(rgba(255, 214, 10, .16) 0 9deg, rgba(255, 77, 141, .0) 9deg 18deg); -webkit-mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, .55) 12%, transparent 26%); mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, .55) 12%, transparent 26%); animation: t-spin 90s linear infinite; }
.t-coin, .t-ball { position: absolute; width: var(--s); aspect-ratio: 1; border-radius: 50%; animation: t-float 3.4s ease-in-out var(--d, 0s) infinite alternate; }
.t-coin { background: radial-gradient(circle at 34% 28%, #fffbd0 0 14%, #ffd60a 42%, #f59e0b 100%); box-shadow: inset 0 0 0 calc(var(--s) * .1) #f2a900, inset 0 0 0 calc(var(--s) * .16) #ffe98a, 0 calc(var(--s) * .1) 0 #a85a00; }
.t-ball { background: radial-gradient(circle at 34% 28%, #fff 0 12%, #dfe4f0 34%, #7c86a3 100%); box-shadow: 0 calc(var(--s) * .1) 0 rgba(10, 6, 40, .5); }
.c1 { --s: 38px; left: 4%; top: 13%; --d: -.4s; }
.c2 { --s: 22px; right: 8%; top: 7%; --d: -1.6s; }
.c3 { --s: 30px; right: 3%; top: 46%; --d: -2.3s; }
.c4 { --s: 18px; left: 4%; top: 50%; --d: -.9s; }
.c5 { --s: 24px; left: 12%; top: 68%; --d: -2.9s; }
.c6 { --s: 16px; right: 13%; top: 70%; --d: -1.2s; }
.t-stage { align-self: flex-start; margin: 0; font-size: 12px; color: #c0bbec; }
.t-logowrap { margin-top: auto; padding-top: 22px; rotate: -4deg; }
.t-logo { margin: 0; font-family: var(--pop); font-weight: 400; line-height: 1; filter: drop-shadow(0 .5px 0 var(--ink)) drop-shadow(0 7px 0 #ff2f76) drop-shadow(0 4px 0 var(--ink)); }
.t-logo span { display: block; white-space: nowrap; }
.t-l1 { font-size: min(17.5vw, 96px); letter-spacing: .02em; }
.t-l2 { font-size: min(32vw, 180px); margin-top: .02em; letter-spacing: .06em; }
/* 文字は3枚重ね: 紺の太いふち（b）・白い細いふち（::before）・黄色の面（::after） */
.t-logo b { position: relative; display: inline-block; font-weight: 400; color: var(--ink); -webkit-text-stroke: .2em var(--ink); animation: t-pop .55s cubic-bezier(.2, 1.7, .4, 1) calc(var(--i) * 80ms + .1s) backwards, t-bob 2.6s ease-in-out calc(var(--i) * 150ms + 1.2s) infinite; }
.t-logo b::before, .t-logo b::after { content: attr(data-c); position: absolute; left: 0; top: 0; }
.t-logo b::before { color: #fff; -webkit-text-stroke: .075em #fff; }
.t-logo b::after { -webkit-text-stroke: 0; color: transparent; background: linear-gradient(#fff9b8 8%, #ffe21f 46%, #ff9d00 88%); -webkit-background-clip: text; background-clip: text; }
.t-logo b:nth-child(odd) { rotate: -3deg; }
.t-logo b:nth-child(even) { rotate: 3deg; }
.t-l1 b:nth-child(1) { --i: 0; } .t-l1 b:nth-child(2) { --i: 1; } .t-l1 b:nth-child(3) { --i: 2; } .t-l1 b:nth-child(4) { --i: 3; }
.t-l2 b:nth-child(1) { --i: 4.5; } .t-l2 b:nth-child(2) { --i: 5.5; }
.t-ribbon { position: relative; display: inline-block; margin: 14px 0 0; padding: 7px 26px; font-size: 14px; font-weight: 900; letter-spacing: .04em; color: #fff; background: #ff2f76; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%, 12px 50%); animation: t-pop .5s cubic-bezier(.2, 1.5, .4, 1) .75s backwards; }
.t-lead { margin: 16px 0 0; font-size: 15px; font-weight: 700; line-height: 1.7; color: #e6e3ff; }
.t-hero > #resume { align-self: stretch; margin-top: 16px; text-align: left; }
.t-actions { align-self: stretch; display: grid; gap: 12px; margin-top: auto; padding-top: 20px; }
.t-actions .btn.primary { font-size: 20px; padding: 17px 20px; animation: t-pulse 1.5s ease-in-out 1.4s infinite; }
.t-foot { margin: 14px 0 0; font-size: 12px; color: #c0bbec; }
.t-actions .btn:not(.primary) { background: #241953; border-color: #a59ae9; color: #fff; }
.t-actions .btn:not(.primary):hover { background: #382875; border-color: #e2d8ff; }
@keyframes t-spin { to { rotate: 360deg; } }
@keyframes t-float { from { translate: 0 -5px; } to { translate: 0 6px; } }
@keyframes t-pop { from { scale: 0; opacity: 0; } }
@keyframes t-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -.045em; } }
@keyframes t-pulse { 0%, 100% { scale: 1; } 50% { scale: 1.035; } }
.t-h { margin: 0; padding-top: 28px; font-weight: 900; font-size: 20px; }
.t-h::before { content: ""; display: inline-block; width: 10px; height: 20px; margin-right: 8px; border-radius: 3px; background: var(--gold); vertical-align: -3px; }
.t-setup { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.t-setup > * { grid-column: 1 / -1; }
@media (min-width: 440px) { .t-setup > .half { grid-column: auto; } }
.t-setup label { font-size: 13px; font-weight: 700; color: var(--muted); }

.d-setup { display: grid; gap: 16px; padding-bottom: 32px; }
.d-setup label { display: grid; gap: 6px; font-weight: 700; }
.d-setup select, .d-setup input { font: inherit; font-size: 16px; font-weight: 500; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--ink); background: #fff; color: var(--text); min-height: 48px; }
.d-setup select, .d-promise-form select, .l-policy select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2323204a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px; }
.d-setup select:focus-visible, .d-setup input:focus-visible, .d-promise-form select:focus-visible { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(10, 110, 189, .25); }
.d-setup input { font-family: var(--digit); letter-spacing: .08em; }
.d-setup fieldset { border: 2px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 10px 12px; margin: 0; }
.d-setup legend { font-weight: 700; padding: 0 6px; }
.d-radios { display: grid; gap: 8px; }
.d-radio { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.d-radio input { margin-top: 6px; min-height: auto; }
.d-radio span { display: grid; }
.d-radio small { color: var(--muted); font-size: 12px; }
.d-note { color: var(--muted); font-size: 12px; }
.gold { color: var(--gold); }
.plus { color: var(--plus); }
.minus { color: var(--minus); }

.d-clock { margin-left: auto; font-family: var(--digit); color: var(--gold); font-size: 18px; }
.d-money { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); padding: 6px 0; }
.d-money b { color: var(--text); font-family: var(--digit); font-weight: 400; }
.d-money .minus b, .d-money b.minus { color: var(--minus); }
.d-money b.plus { color: var(--plus); }
.d-hallinfo { font-size: 13px; padding: 4px 0 10px; }

.d-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.d-tab { font: inherit; font-weight: 900; padding: 10px; border-radius: 12px; border: 2px solid var(--ink); background: var(--card); color: var(--muted); cursor: pointer; min-height: 46px; box-shadow: 0 3px 0 var(--ink); }
.d-tab.active { color: var(--ink); background: var(--yellow); }

.d-model { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 10px; }
.d-mname { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.d-tag { font-size: 11px; padding: 0 8px; border-radius: 999px; background: var(--card2); color: var(--muted); }
.d-link { margin-left: auto; font: inherit; font-size: 12px; font-weight: 700; background: var(--card); border: 2px solid var(--cyan); color: var(--cyan); border-radius: 999px; padding: 4px 10px; cursor: pointer; min-height: 32px; }
.d-units { width: 100%; border-collapse: collapse; font-size: 13px; font-family: var(--digit); }
.d-units th { font-family: var(--font); font-weight: 400; color: var(--muted); font-size: 11px; text-align: left; padding: 2px 4px; }
.d-units td { padding: 4px; border-top: 1px solid var(--line); }
.d-units td:last-child { text-align: right; }
.d-units tr.busy td { color: var(--muted); }
.d-units .btn.small { min-height: 36px; padding: 4px 12px; font-family: var(--font); white-space: nowrap; }
.d-units th { white-space: nowrap; }
.d-y { font-size: 11px; line-height: 1.3; color: var(--muted); }
.d-busy, .d-mine { font-family: var(--font); font-size: 12px; color: var(--muted); }
.d-mine { color: var(--gold); }
/* 島: 任せる（何も考えずに打ってみる）は機種の並びの上。機種は1行ずつで、台を自分で選べる人は押すと台の一覧が開く（v2-15） */
.d-quick { display: grid; gap: 8px; margin-bottom: 12px; }
.d-quick:empty { display: none; }
.d-feel { display: grid; gap: 8px; margin-bottom: 10px; }
.d-feel .d-cgroup { margin: 4px 0 -2px; }
.d-mrow .d-mname { margin-bottom: 8px; }
.d-mseat { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; }
.d-mseat .btn.small { min-height: 40px; padding: 6px 22px; }
.d-free { font-size: 12px; color: var(--muted); }
.d-again { background: var(--yellow); color: var(--ink); font-weight: 700; }
details.d-fold { padding: 0; }
details.d-fold > summary { list-style: none; cursor: pointer; margin: 0; padding: 12px 34px 12px 12px; min-height: 46px; position: relative; border-radius: calc(var(--radius) - 2px); }
details.d-fold > summary::-webkit-details-marker { display: none; }
details.d-fold > summary::after { content: ''; position: absolute; right: 14px; top: 50%; width: 9px; height: 9px; margin-top: -8px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); transition: transform .15s; }
details.d-fold[open] > summary::after { transform: rotate(225deg); margin-top: -2px; }
details.d-fold > summary:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
details.d-fold > summary .d-free { margin-left: auto; }
details.d-fold[open] > summary { border-bottom: 2px solid var(--line); border-radius: 0; }
details.d-fold > .d-units { margin: 6px 12px 0; width: calc(100% - 24px); }
.d-mfoot { display: flex; justify-content: flex-end; padding: 8px 12px 10px; }
@media (prefers-reduced-motion: reduce) { details.d-fold > summary::after { transition: none; } }

.d-back { position: sticky; bottom: 0; padding: 10px 0 16px; background: linear-gradient(transparent, var(--bg) 30%); text-align: center; }

.d-machine { background: var(--card); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); border-radius: var(--radius); padding: 10px 12px; }
.d-mhead { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.d-counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; text-align: center; }
.d-counters div { background: #07051c; border: 2px solid var(--ink); border-radius: 10px; padding: 6px 2px; }
.d-counters small { display: block; font-size: 10px; color: #b9b6d6; }
.d-counters b { font-family: var(--digit); font-weight: 400; font-size: 21px; line-height: 1.3; color: var(--yellow); text-shadow: 0 0 8px rgba(255, 214, 10, .45); }
.d-ff { text-align: center; color: var(--cyan); font-size: 13px; margin-top: 8px; animation: pulse 1s infinite; }
.d-stop { margin: 12px 0 4px; font-size: 17px; }
.d-stop p { margin: 0 0 4px; }
.d-time { font-family: var(--digit); color: var(--gold); margin-right: 4px; }
.d-g { font-family: var(--digit); color: var(--cyan); margin-right: 6px; white-space: nowrap; }
.d-hit { color: var(--pink); font-family: var(--pop); font-weight: 400; font-size: 22px; text-shadow: 0 2px 0 var(--yellow); }
.d-evidence ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.d-evidence b { color: var(--text); }
/* 選択肢は折り返す横並び。半分の幅のボタンは、隣に並ぶ相手がいない行では幅いっぱいに伸びる（左に1個だけ残さない） */
.d-choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.d-choices > * { flex: 1 1 100%; min-width: 0; }
.d-choices > .btn.half { flex-basis: calc(50% - 4px); }
.d-choices > .btn.third { flex-basis: calc(33.333% - 6px); padding-inline: 6px; text-align: center; }
.d-cgroup { grid-column: 1 / -1; margin: 6px 0 -2px; font-size: 12px; color: var(--muted); }
.d-cgroup:empty { margin: 0; }
.d-choices .btn { text-align: left; border-radius: 12px; }
.btn.warn { border-color: #8c86b8; background: #f3f1fa; }
.d-log { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.d-log ol { padding-left: 18px; font-family: var(--digit); }

.d-sum { text-align: center; padding: 12px 0; }
.d-big { font-family: var(--digit); font-size: 44px; line-height: 1.3; margin: 0; }
#result h3, #end h3 { margin: 26px 0 8px; font-weight: 900; font-size: 17px; }
#result h3::before, #end h3::before { content: ""; display: inline-block; width: 8px; height: 17px; margin-right: 8px; border-radius: 3px; background: var(--gold); vertical-align: -2px; }
.d-decs { padding-left: 0; list-style: none; display: grid; gap: 8px; }
.d-dec { background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 14px; }
.d-dec.good { border-left: 4px solid var(--green); }
.d-dec.bad { border-left: 4px solid #d98a3a; }
.d-dec p { margin: 2px 0; }
.d-dec ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; }
.d-ev { font-size: 12px; color: var(--muted); }
.d-verdict { font-size: 11px; padding: 0 8px; border-radius: 999px; background: var(--card2); white-space: nowrap; }
.d-verdict.good { color: var(--green); }
.d-verdict.bad { color: #b45309; }
.d-split { font-size: 14px; }
.d-split small { color: var(--muted); font-size: 12px; }
.d-more { margin: 10px 0; }
.d-more summary { cursor: pointer; color: var(--cyan); font-size: 14px; min-height: 32px; }
.d-rows { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; font-size: 13px; }
.d-row { padding: 4px 8px; border-left: 3px solid var(--line); }
.d-row.good { border-left-color: var(--green); }
.d-row.bad { border-left-color: #d98a3a; }
.d-alt { display: block; color: var(--muted); font-size: 12px; font-family: var(--digit); }
.d-played { padding-left: 18px; font-size: 14px; }
.d-truth { display: flex; flex-wrap: wrap; gap: 4px; font-family: var(--digit); font-size: 13px; }
.d-s { padding: 0 6px; border-radius: 6px; background: var(--card2); }
.d-s.s4, .d-s.s5 { color: var(--gold); }
.d-s.s6 { color: var(--pink); }
.d-actions { display: grid; gap: 10px; margin: 24px 0 40px; }

.d-modal { max-width: min(520px, calc(100vw - 32px)); background: var(--bg2); color: var(--text); border: 3px solid var(--ink); border-radius: var(--radius); padding: 16px; }
.d-modal::backdrop { background: rgba(0, 0, 0, .6); }
.d-modal h3 { margin-top: 0; }
.d-spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.d-spec th, .d-spec td { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.d-spec td { font-family: var(--digit); }
.d-profile p { margin: 0 0 8px; font-weight: 400; }
.d-prow { display: flex; flex-wrap: wrap; gap: 8px; }
.d-prow .d-link, .d-profile .d-link { margin-left: 0; }
.d-know { list-style: none; padding: 0; display: grid; gap: 8px; }
.d-know li { display: grid; gap: 2px; padding: 6px 10px; border-left: 3px solid var(--gold); }
.d-know li.d-unknown { border-left-color: var(--line); color: var(--muted); }
.d-know small { color: var(--muted); font-size: 12px; }
.d-learned { list-style: none; padding: 10px 12px; margin: 6px 0; background: var(--card2); border: 1px solid var(--gold); border-radius: 12px; font-size: 14px; display: grid; gap: 8px; }
.d-learned small { color: var(--muted); }
/* レベルアップの札（覚えたこと・選べるようになったこと。GAME_DESIGN.md v2-16）。
   上の段がきっかけ（何が起きたか）、下の段が覚えたことと、これから変わること。年表・その日の結果・研究のあとで同じ札を使う */
.d-ups { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 10px; }
.d-up { overflow: hidden; background: var(--card); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink); font-size: 13px; line-height: 1.6; color: var(--text); animation: up-pop .5s cubic-bezier(.2, 1.5, .4, 1) calc(var(--i, 0) * 140ms) backwards; }
.d-up p { margin: 0; padding: 0 12px; }
.d-up .d-up-why { padding: 7px 12px; background: var(--card2); border-bottom: 2px dashed var(--line); }
.d-up-tag { display: inline-block; margin-right: 6px; font-size: 11px; font-weight: 900; color: var(--cyan); }
.d-up-when { margin-right: 6px; font-weight: 700; }
.d-up .d-up-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-top: 8px; font-size: 16px; font-weight: 900; }
.d-up-badge { padding: 1px 9px; font-size: 11px; font-weight: 900; letter-spacing: .04em; white-space: nowrap; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; }
.d-up .d-up-see { padding-bottom: 9px; font-size: 12px; color: var(--muted); }
.d-up .d-up-name:last-child { padding-bottom: 9px; }
@keyframes up-pop { from { scale: .88; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .d-up { animation: none; } }
.d-hallnote p { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--card2); border-left: 3px solid var(--gold); }
.d-start { display: grid; gap: 8px; margin: 6px 0 32px; }

.d-promise { margin: 8px 0 0; font-size: 12px; color: var(--gold); min-height: 1em; }
.d-promise-form { grid-column: 1 / -1; display: grid; gap: 10px; }
.d-promise-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.d-promise-form select { font: inherit; font-weight: 400; padding: 10px 34px 10px 12px; border-radius: 12px; border: 2px solid var(--ink); background-color: #fff; color: var(--text); min-height: 46px; }

/* 収支の波（スランプグラフ）と、早送りのあいだの当たりの流れ */
.d-wave { margin-top: 8px; min-height: 0; }
.d-wave svg { width: 100%; height: auto; display: block; }
.d-wave.result { margin: 10px 0 0; }
.d-wave figcaption { font-size: 12px; color: var(--muted); margin-bottom: 2px; text-align: left; }
.w-line { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.w-dot { fill: var(--gold); }
.w-zero { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.w-tick { stroke: var(--line); stroke-width: 1; }
.w-axis { fill: var(--muted); font-size: 8px; font-family: var(--font); }
.w-mark { stroke: var(--cyan); stroke-width: 1; stroke-dasharray: 2 2; }
.w-mlabel { fill: var(--cyan); font-size: 10px; font-family: var(--font); }
.d-feed { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; font-family: var(--digit); color: var(--muted); display: grid; gap: 2px; }
.d-feed:empty { margin: 0; }
.d-feed li { animation: fade .25s ease; }
.d-feed b { color: var(--text); font-weight: 400; }
.d-feedhead { font-family: var(--font); font-size: 12px; color: var(--cyan); }
.d-feedmore { font-family: var(--font); font-size: 12px; }
.d-machine.hitflash { animation: hitflash .35s ease; }
@keyframes hitflash { 0% { box-shadow: 0 0 0 0 rgba(255, 204, 51, .0); border-color: var(--gold); } 40% { box-shadow: 0 0 18px 2px rgba(255, 204, 51, .45); border-color: var(--gold); } 100% { box-shadow: 0 0 0 0 rgba(255, 204, 51, 0); } }
@media (prefers-reduced-motion: reduce) { .d-machine.hitflash, .d-feed li { animation: none; } }
.d-num { color: var(--cyan); margin-right: 4px; }
/* はじめの画面: 長い選択肢（仕事と年収）で横にはみ出さない */
.d-setup label { min-width: 0; }
.d-setup select, .d-setup input { width: 100%; min-width: 0; max-width: 100%; text-overflow: ellipsis; }

/* 約束の区切りで、前に破って増やして帰った日のことがよぎる1行（v2-14） */
.d-memo { margin-top: 6px; padding: 6px 10px; border-left: 3px solid var(--line); color: var(--muted); font-style: normal; }
/* 座れる種類が片方だけのときは、タブを1つだけ幅いっぱいに */
.d-tabs .d-tab:only-child, .d-tabs .d-tab.hidden + .d-tab, .d-tabs .d-tab:has(+ .d-tab.hidden) { grid-column: 1 / -1; }

/* 初当たりまでの目安（v2-21）: 機種を開いたところの下に、数字だけ */
.d-mfoot { flex-wrap: wrap; gap: 4px 12px; }
.d-mfoot .d-need { flex: 1 1 100%; font-size: 12px; color: var(--muted); }

/* 新台の札（v2-22）: 店に貼ってある札。良いかどうかは書かない */
.d-tag.d-new { background: var(--yellow); color: var(--ink); border-color: var(--ink); font-weight: 900; }
