/* じゃあパン、よろしくね。— しげおのパン屋(ワンオペ)。見た目はデザイナーの画面イメージ(パンよろ/指示用画面スクショ)に合わせる。
   黄色の店 / 青緑の帯 / 茶色の床 / 赤いストップ・緑のスタート。太い黒フチ+押すとへこむボタン。絵は public/timer/img/ */
:root {
  --ink: #111111;
  --y: #FFBF0B;          /* お店の黄色(地) */
  --y-light: #FFD56C;    /* チェックの明るいほう */
  --y-btn: #FFDF1E;      /* 黄色のボタン */
  --scene: #FFE256;      /* 作業中の絵の地 */
  --teal: #1FB2B2;       /* 上の帯 */
  --red: #FF3308;        /* ストップのボタン・ハンコ・赤ペン */
  --red-text: #DE5B00;   /* 数字や強調の文字(ピッタリより〜秒・止めた秒数・1位など)。2026-10-24 ユーザー「濃いオレンジに」 */
  --green: #73CE38;      /* スタート */
  --orange: #F78E14;     /* お会計の札・OK */
  --pad: #FFD77E;        /* 電卓の地 */
  --floor: #685014;      /* 床 */
  --white: #FFFFFF;
  --muted: #6B5A3A;
  --pf: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;  /* 見出し・ボタン(デザインの文久見出しゴシックの代わり) */
  --num: "Dela Gothic One", var(--pf);                                    /* 数字だけ(漢字はつぶれるので使わない。「秒」「円」は大きく出すので可) */
  --slip: "Kaisei Decol", var(--pf);                                      /* 伝票・メモ・結果の字。ここ1か所で書体を差し替える(2026-10-24 デザイナーが Klee One から変更) */

  --ib-bg: var(--y);
  --ib-ink: var(--ink);
  --ib-paper: var(--white);
  --ib-light: var(--white);
  --ib-primary: var(--y-btn);
  --ib-primary-ink: var(--ink);
  --ib-text: var(--ink);
  --ib-muted: var(--muted);
  --ib-accent: var(--teal);
  --ib-btn-r: 999px;
}
.nw { white-space: nowrap; }
#screen-title, #screen-ready, #screen-run, #screen-result, #screen-final { font-family: var(--pf); font-weight: 700; color: var(--ink); background: var(--y); }
/* タイトル・結果は黄色のチェック(ギンガム) */
#screen-title, #screen-result, #screen-final {
  background-color: #FFE7A3;
  background-image: linear-gradient(90deg, rgba(255, 191, 11, .62) 50%, transparent 50%), linear-gradient(rgba(255, 191, 11, .62) 50%, transparent 50%);
  background-size: 46px 46px;
}

/* ===== ボタン(白・黄色。太いフチ+下に影、押すとへこむ) ===== */
.pb-white, .pb-yellow { font-family: var(--pf); font-size: 19px; font-weight: 900; border-width: 3.5px; box-shadow: 4px 5px 0 var(--ink); }
.pb-white { background: var(--white); color: var(--ink); }
.pb-yellow { background: var(--y-btn); color: var(--ink); }
.pb-white:active:not(:disabled), .pb-yellow:active:not(:disabled) { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.ib-btn-small.pb-white { font-size: 14px; box-shadow: 3px 4px 0 var(--ink); }

/* 丸い大きいボタン(スタート=緑・ストップ=赤)。内側に白い輪 */
.round-btn { align-self: center; flex-shrink: 0; width: clamp(112px, 19dvh, 150px); aspect-ratio: 1; border-radius: 50%; border: 4px solid var(--ink); box-shadow: 5px 6px 0 var(--ink), inset 0 0 0 5px var(--white), inset 0 0 0 9px var(--ink); color: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; transition: transform .06s, box-shadow .06s; }
.round-btn b { font-size: clamp(17px, 3.4dvh, 23px); font-weight: 900; letter-spacing: .02em; }
.round-btn span { font-family: var(--pf); font-size: clamp(22px, 4.6dvh, 32px); font-weight: 900; letter-spacing: .01em; }
.round-btn.go { background: var(--green); }
.round-btn.stop { background: var(--red); }
.round-btn:active:not(:disabled) { transform: translate(4px, 5px); box-shadow: 1px 1px 0 var(--ink), inset 0 0 0 5px var(--white), inset 0 0 0 9px var(--ink); }
.round-btn:disabled { cursor: default; }
/* お会計が残っている間: レジ対応中で押せない */
.round-btn.stop.busy { background: #9A8F80; }
.round-btn.stop.busy b { font-size: clamp(15px, 2.8dvh, 19px); line-height: 1.2; }

/* ===== タイトル ===== */
#screen-title { align-items: center; padding-left: 16px; padding-right: 16px; }
.back { align-self: flex-start; margin: 10px 0 0 -6px; padding: 6px; color: var(--ink); font-size: 13px; text-decoration: none; }
.t-logo { width: clamp(84px, 13dvh, 120px); height: auto; margin-top: -4px; }
.t-art { flex: 1 1 auto; min-height: 0; margin: 8px 0 0; display: flex; justify-content: center; }
.t-art img { display: block; height: 100%; max-height: 62dvh; width: auto; max-width: 100%; object-fit: contain; }
.title-bottom { width: 100%; max-width: 330px; display: flex; flex-direction: column; gap: 12px; padding: 14px 0 16px; }
.title-bottom .ib-link { color: var(--ink); padding: 2px 8px; }
.title-meta { text-align: center; font-size: 12px; color: var(--muted); margin-top: -8px; }

/* ===== 上の段(番・一時停止)と青緑の帯 ===== */
.bar { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 8px; }
.bar-q { min-width: 84px; padding: 4px 12px; border: 3px solid var(--white); border-radius: 10px; color: var(--white); font-size: 14px; font-weight: 900; text-align: center; }
.bar-q b { font-family: var(--num); font-weight: 400; font-size: 16px; margin: 0 2px; }
.bar-pause { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--white); background: none; display: flex; align-items: center; justify-content: center; gap: 5px; }
.bar-pause i { width: 5px; height: 15px; border-radius: 2px; background: var(--white); }
.band { flex-shrink: 0; text-align: center; font-size: clamp(16px, 2.8dvh, 20px); font-weight: 900; letter-spacing: .04em; padding: clamp(8px, 1.7dvh, 14px) 12px; background: var(--teal); color: var(--white); }
.band b { font-weight: 900; }

.play { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 12px 16px 14px; gap: 12px; }
.part { display: flex; flex-direction: column; gap: 12px; }
.part[hidden] { display: none; }
.notice { font-size: 12px; text-align: center; background: var(--white); border: 2px solid var(--ink); border-radius: 8px; padding: 4px 8px; }
.lead { text-align: center; font-size: 15px; line-height: 1.6; color: var(--white); font-weight: 900; }
.lead em { font-style: normal; color: var(--red); }
.lead small { font-size: 12px; font-weight: 700; }
.lead b { font-weight: 900; }

/* パンの丸(お会計の札でも使う) */
.od-pan { flex-shrink: 0; width: clamp(56px, 10dvh, 80px); aspect-ratio: 1; border-radius: 50%; background: var(--y); display: flex; align-items: center; justify-content: center; }
.od-pan img { width: 112%; height: auto; max-height: 100%; object-fit: contain; }

/* ===== お題 = 店長のオーダー伝票(上はミシン目でちぎった跡、緑の印刷+罫線、店長の手書き) ===== */
.odai { --hand: var(--slip); --print: #2E8B57; position: relative; flex-shrink: 0; transform: rotate(-1.2deg); background-color: #FFFDF4; background-image: repeating-linear-gradient(to bottom, transparent 0 25px, rgba(46, 139, 87, .22) 25px 26px); padding: 10px 14px clamp(8px, 1.4dvh, 12px);
  -webkit-mask: radial-gradient(circle 4px at 50% 0, #0000 96%, #000) 0 0 / 12px 100%; mask: radial-gradient(circle 4px at 50% 0, #0000 96%, #000) 0 0 / 12px 100%; }
.od-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 3px; border-bottom: 2px solid var(--print); color: var(--print); font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.od-no { letter-spacing: .04em; }
.od-no b { font-family: var(--hand); font-size: 15px; color: var(--ink); margin-left: 4px; letter-spacing: .06em; }
.od-body { display: flex; align-items: center; gap: 10px; padding-top: clamp(4px, 1dvh, 8px); }
.odai .od-pan { background: none; }
.od-txt { flex: 1; min-width: 0; text-align: center; font-family: var(--hand); font-weight: 600; }
.od-name { font-size: clamp(20px, 3.4dvh, 25px); line-height: 1.3; }
.od-ga { font-size: clamp(14px, 2.3dvh, 17px); margin-left: 4px; }
.od-sec { font-size: clamp(15px, 2.4dvh, 18px); }
/* 秒数は赤ペンで書いて、ぐるっと丸で囲む */
.od-sec b { display: inline-block; font-weight: 600; font-size: clamp(32px, 6dvh, 44px); color: var(--red); line-height: 1.05; margin-left: 8px; padding: 0 10px; border: 2.5px solid var(--red); border-radius: 52% 46% 55% 44% / 58% 50% 46% 52%; transform: rotate(-3deg); }
/* 店長のハンコ(見出しの線にまたがって押してある) */
.od-sign { flex-shrink: 0; margin: -12px 14px -14px auto; letter-spacing: 0; width: 34px; height: 34px; border: 2px solid var(--red); border-radius: 50%; color: var(--red); font-size: 11px; font-weight: 900; line-height: 30px; text-align: center; transform: rotate(12deg); opacity: .85; }
/* 計測中は1行に縮める(オーブン・電卓の場所を空ける)。見出しとハンコは消して、手書きの紙だけ */
.run .odai { margin: 10px 16px 0; padding: 8px 12px 5px; transform: rotate(-.6deg); }
.run .od-head, .run .od-sign { display: none; }
.run .od-body { padding-top: 0; }
.run .od-pan { width: clamp(40px, 6.5dvh, 54px); }
.run .od-txt { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0 6px; }
.run .od-name { font-size: clamp(18px, 3dvh, 22px); }
.run .od-sec b { font-size: clamp(24px, 4.2dvh, 32px); padding: 0 8px; }

/* ===== 作業中の絵(スタート前) ===== */
.work { flex: 1 1 auto; min-height: 90px; background: var(--scene); border-radius: 24px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.work img { display: block; width: auto; height: 100%; max-width: 100%; max-height: 34dvh; object-fit: contain; object-position: bottom; }

/* ===== 計測中: オーブン(上は黄色、下は床の茶色) ===== */
.play.run { padding: 0; gap: 0; }
.slot { flex: 1 1 auto; min-height: 0; position: relative; z-index: 0; container-type: size; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 10px 0 0; }
.oven { position: relative; container-type: inline-size; width: min(86cqw, 100cqh * 800 / 762, 380px); }
.oven img { display: block; width: 100%; height: auto; }
/* 床の茶色を、オーブンの操作パネルの高さから下に敷く */
.oven::before { content: ""; position: absolute; z-index: -1; left: -100vw; right: -100vw; bottom: 0; height: 30%; background: var(--floor); }
/* 液晶(オーブンの上の黒い四角)。最初の3秒が過ぎた止める人には ?:??:?? */
.lcd { position: absolute; left: 19%; top: 3%; width: 59%; height: 22%; display: flex; align-items: center; justify-content: center; font-family: "DotGothic16", monospace; font-size: 11.5cqw; color: var(--white); letter-spacing: .06em; line-height: 1; }
.lcd.over { color: #FF8A6B; }
.lcd.hidden { color: #9A9A9A; }

/* オーブンの上に重ねる: 声の妨害・お会計のようす */
.over { position: absolute; z-index: 2; top: 8px; left: 14px; right: 14px; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.over > * { pointer-events: auto; }
.voice, .calcview { background: var(--white); border: 3px solid var(--ink); border-radius: 14px; padding: 8px 12px; box-shadow: 3px 4px 0 var(--ink); animation: pop .25s ease-out; }
.voice[hidden], .calcview[hidden] { display: none; }
.voice .lb { display: block; font-size: 12px; font-weight: 700; }
.voice .lb small { font-size: 11px; }
.voice b { display: block; font-size: 18px; font-weight: 900; line-height: 1.35; margin-top: 2px; }
.voice .note { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
/* 自分が出した声の妨害: 大きく出して、声でやる */
.voice.mine { background: var(--y-btn); }
.voice.mine b { font-size: 21px; }
.voice .done { margin-top: 8px; width: 100%; min-height: 42px; border: 3px solid var(--ink); border-radius: 999px; background: var(--white); font-size: 15px; font-weight: 900; box-shadow: 2px 3px 0 var(--ink); }
.voice .done:active { transform: translate(2px, 3px); box-shadow: none; }
.calcview { font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.cv-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.cv-row .cv-from { font-size: 11px; color: var(--muted); }
.cv-row .cv-q { font-family: var(--num); font-weight: 400; font-size: 17px; }
.cv-row .cv-typing { color: var(--teal); }
.cv-row .cv-st { font-size: 12px; }
.cv-row .cv-st s { color: var(--red-text); margin-right: 4px; }
.cv-row.ok .cv-st { color: var(--teal); font-weight: 900; }
.cv-more { font-size: 11px; color: var(--muted); }

/* ===== 止める人: お会計(電卓)。オーブンの代わりに出す ===== */
.calc { width: calc(100% - 28px); display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 1.5dvh, 14px); margin-bottom: 10px; }
.calc[hidden] { display: none; }
.calc-card { position: relative; width: 100%; background: var(--white); border: 5px solid var(--orange); border-radius: 16px; padding: 18px 10px 10px; }
.calc-tag { position: absolute; left: -8px; top: -20px; background: var(--orange); color: var(--white); font-size: 17px; font-weight: 900; padding: 3px 14px 5px; border-radius: 6px; transform: rotate(-3deg); }
.calc-card.shake { animation: shake .35s; }
.cc-items { display: flex; align-items: center; justify-content: center; gap: 4px; }
.cc-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cc-item .od-pan { width: clamp(46px, 8dvh, 70px); }
.cc-item b { font-family: var(--pf); font-size: clamp(15px, 2.6dvh, 19px); font-weight: 900; }
.cc-plus { font-size: 22px; font-weight: 900; }
.cc-change { display: flex; align-items: flex-end; justify-content: center; gap: 4px; flex-wrap: nowrap; }
.cc-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cc-cell i { font-style: normal; font-size: 11px; font-weight: 900; color: var(--orange); border: 2px solid var(--orange); padding: 0 5px; white-space: nowrap; }
.cc-cell i.t { color: var(--teal); border-color: var(--teal); }
.cc-num { font-family: var(--pf); font-size: clamp(21px, 3.8dvh, 28px); font-weight: 900; white-space: nowrap; line-height: 1.1; }
.cc-num small { font-size: .6em; }
.cc-op { font-size: clamp(20px, 3.6dvh, 26px); font-weight: 900; padding-bottom: 2px; }
.cc-ans { display: inline-block; min-width: 2.4em; border-bottom: 3px solid var(--teal); color: var(--teal); text-align: center; }
.cc-sum { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 6px; font-size: 14px; font-weight: 900; }
.calc-keys { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(5px, 1dvh, 9px); background: var(--pad); border: 4px solid var(--ink); border-radius: 16px; padding: clamp(7px, 1.3dvh, 12px) clamp(12px, 3vw, 18px); }
.calc-keys button { width: clamp(38px, 7.2dvh, 62px); aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--ink); background: var(--white); font-family: var(--num); font-size: clamp(18px, 3.4dvh, 26px); font-weight: 400; display: flex; align-items: center; justify-content: center; padding: 0; }
.calc-keys button:active { transform: scale(.92); }
.calc-keys .k-del { background: var(--teal); }
.calc-keys .k-del svg { width: 56%; }
.calc-keys .k-ok { background: var(--orange); color: var(--white); font-family: var(--pf); font-weight: 900; }
.calc-left { font-size: 12px; text-align: center; }
/* お会計の間はオーブンを隠し、声の妨害は重ねずに電卓の上に並べる(重ねると問題が隠れる) */
#screen-run.calcing.is-me .oven { display: none; }
/* 中身が多いときに上が切れないよう、center ではなく margin: auto で真ん中に寄せる */
#screen-run.calcing.is-me .slot { justify-content: flex-start; gap: clamp(8px, 1.6dvh, 14px); }
#screen-run.calcing.is-me .over { position: static; align-self: stretch; margin: auto 14px 0; }
#screen-run.calcing.is-me .calc { margin-bottom: auto; }
#screen-run.calcing.is-me .voice { padding: 5px 10px; box-shadow: none; }
#screen-run.calcing.is-me .voice b { font-size: 15px; }
#screen-run.calcing.is-me .voice .lb { font-size: 11px; }
/* お題の伝票は1行に */
#screen-run.calcing.is-me .odai { padding: 6px 12px 3px; }
#screen-run.calcing.is-me .od-pan { width: 34px; }
#screen-run.calcing.is-me .od-txt { flex-wrap: nowrap; }
#screen-run.calcing.is-me .od-name { font-size: 16px; white-space: nowrap; }
#screen-run.calcing.is-me .od-ga { display: none; }
#screen-run.calcing.is-me .od-sec { white-space: nowrap; margin: 0; }
#screen-run.calcing.is-me .od-sec b { font-size: 22px; border-width: 2px; }

/* ===== 床(茶色): ストップ・妨害 ===== */
.floor { flex-shrink: 0; background: var(--floor); padding: 10px 16px 14px; display: flex; flex-direction: column; }
.me-lb { text-align: center; color: var(--white); font-size: 13px; font-weight: 900; min-height: 1.4em; margin-bottom: -2px; }
.me-lb b { font-family: var(--num); font-weight: 400; color: var(--y-btn); font-size: 16px; margin: 0 2px; }
#screen-run.calcing.is-me .me-lb { display: none; }
#screen-run.calcing.is-me .round-btn.stop { width: clamp(84px, 13dvh, 110px); }

/* 妨害ポイントのゲージ(時間で回復する。いま溜まっている途中の1マスは下から埋まる) */
.gauge { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; color: var(--y); }
.g-lb { grid-column: 1 / -1; text-align: center; font-size: 15px; font-weight: 900; }
.g-lb small { font-size: 11px; color: var(--pad); margin-left: 8px; font-weight: 700; }
.g-bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; height: clamp(22px, 4dvh, 34px); }
.g-bar i { position: relative; overflow: hidden; background: #4A390C; }
.g-bar i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--f, 0%); background: var(--y); }
.g-bar i.on::after { height: 100%; }
.g-bar i.fill::after { opacity: .5; }
.g-n { font-family: var(--num); font-weight: 400; font-size: 17px; min-width: 2.6em; }
.jams { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2dvh, 18px) 14px; margin-top: clamp(10px, 2dvh, 18px); }
.jcard { position: relative; min-height: clamp(52px, 9dvh, 74px); background: var(--white); border: 4px solid var(--ink); border-radius: 16px; box-shadow: 4px 5px 0 var(--ink); font-size: clamp(17px, 3dvh, 22px); font-weight: 900; padding: 6px 4px; transition: transform .06s, box-shadow .06s; }
.jcard b { font-weight: 900; white-space: nowrap; }
.jcard i { position: absolute; top: -12px; right: 8px; background: var(--ink); color: var(--white); font-style: normal; font-family: var(--pf); font-weight: 900; font-size: 13px; padding: 1px 9px 2px; border-radius: 6px 6px 0 0; }
.jcard:active:not(:disabled) { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.jcard:disabled { background: #BDB3A0; color: #6B6355; cursor: default; }
.sub { min-height: 1.3em; margin-top: 8px; text-align: center; color: var(--pad); font-size: 12px; }

/* ===== 結果 ===== */
.rs-body { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; padding: 6px 16px 0; }
.rs-body > :first-child { margin-top: auto; }
.rs-body > :last-child { margin-bottom: auto; }
.rs-band { position: relative; width: min(100%, 44dvh); flex-shrink: 0; }
.rs-band img { display: block; width: 100%; height: auto; }
.rs-word { position: absolute; left: 8%; right: 6%; top: 34%; bottom: 20%; display: flex; align-items: center; justify-content: center; font-size: clamp(24px, 5dvh, 38px); font-weight: 900; letter-spacing: .04em; white-space: nowrap; }
.rs-word[hidden] { display: none; }
.rs-stage { position: relative; z-index: 0; width: min(80%, 33dvh, 340px); margin-top: 4px; flex-shrink: 0; container-type: inline-size; }
.rs-stage .oven { width: 100%; }
.rs-stage .oven::before { height: 32%; }
/* しげお+お皿のパン(番号はそろえる)。オーブンの前に出てくる */
.rs-shigeo { position: absolute; left: 50%; bottom: -24%; width: 104%; transform: translateX(-50%); }
.rs-shigeo[hidden] { display: none; }
.rs-shigeo > img { display: block; width: 100%; height: auto; }
.rs-shigeo .rs-pan { position: absolute; left: 50%; top: 78%; width: 44%; transform: translate(-50%, -50%); }
.rs-shigeo .rs-pan img { display: block; width: 100%; height: auto; }
.rs-shigeo.pop { animation: rise .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.rs-diff { margin-top: 25%; font-family: var(--num); font-weight: 400; font-size: clamp(30px, 6dvh, 46px); color: var(--red-text); letter-spacing: .02em; line-height: 1.1; text-shadow: 3px 3px 0 #FFE7A3; }
.rs-diff[hidden] { visibility: hidden; display: block; }
.rs-sub { font-size: 12px; text-align: center; line-height: 1.6; margin-top: 2px; }
.rs-bottom { flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 16px; }
.rs-bottom .wait { text-align: center; font-size: 13px; font-weight: 700; padding: 8px 0; }
.rs-bottom .wait[hidden], #rs-next[hidden] { display: none; }
.rs-bottom .ib-btn { max-width: 330px; align-self: center; }
.ib-final-row { width: 100%; max-width: 330px; align-self: center; }
.promo { text-align: center; font-size: 11px; color: var(--muted); }

/* ===== 最終結果 ===== */
.fn-title { font-size: clamp(28px, 5dvh, 36px); font-weight: 900; letter-spacing: .06em; background: var(--teal); color: var(--white); border: 4px solid var(--ink); border-radius: 12px; padding: 2px 22px 4px; box-shadow: 4px 5px 0 var(--ink); }
.fn-top { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.fn-badge { flex-shrink: 0; width: 76px; height: 76px; border-radius: 50%; background: var(--red); color: var(--white); border: 4px solid var(--ink); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 14px; font-weight: 900; line-height: 1.2; transform: rotate(-8deg); }
.fn-names { font-size: 22px; font-weight: 900; }
.fn-list { width: 100%; max-width: 380px; list-style: none; margin: 14px 0 0; padding: 0; background: var(--white); border: 4px solid var(--ink); border-radius: 16px; overflow: hidden; }
.fn-list li { display: grid; grid-template-columns: 44px 48px 1fr auto; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-top: 2px solid var(--ink); }
.fn-list li:first-child { border-top: 0; }
.fn-list li.me { background: #FFF3C4; }
.fn-list .rk { font-family: var(--num); font-weight: 400; font-size: 22px; text-align: center; }
.fn-list .rk small { font-family: var(--pf); font-size: 11px; }
.fn-list li.first .rk { color: var(--red-text); }
.fn-list .pan { width: 48px; height: 40px; object-fit: contain; }
.fn-list .nm { min-width: 0; font-size: 15px; font-weight: 900; line-height: 1.25; }
.fn-list .nm small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); }
.fn-list .pt { font-family: var(--num); font-weight: 400; font-size: 17px; white-space: nowrap; }

/* ===== 店長のカットイン(秒数の発表。ほかより長く出す) ===== */
.ib-cutin[data-kind="tencho"] .ib-cutin-band { background: var(--white); color: var(--ink); }
.ib-cutin[data-kind="tencho"] .ib-cutin-title { font-family: var(--pf); font-size: clamp(17px, 4.8vw, 21px); line-height: 1.45; }
.ib-cutin[data-kind="tencho"] .ib-cutin-title b { color: var(--red); font-family: var(--num); font-weight: 400; font-size: 1.3em; }
.ib-cutin[data-kind="tencho"] .ib-cutin-title small { display: block; font-size: 13px; color: var(--muted); }
.ib-cutin[data-kind="tencho"] .ib-cutin-sub { font-family: var(--pf); color: var(--teal); margin-top: 10px; }
.ib-cutin[data-kind="tencho"].is-open::before, .ib-cutin[data-kind="tencho"].is-open .ib-cutin-band, .ib-cutin[data-kind="tencho"].is-open .ib-cutin-title { animation-duration: 3.2s; }
.ib-cutin[data-kind="jam"] .ib-cutin-title { font-family: var(--pf); }

/* ===== 遊び方の絵 ===== */
.rule-img { display: block; width: 220px; max-width: 100%; height: auto; margin: 0 auto; }
.rule-img.round { background: var(--scene); border-radius: 18px; }
.rule-stop { pointer-events: none; width: 104px; }
.rule-jams { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; width: 230px; margin: 10px auto 0; }
.rule-jams .jcard { min-height: 46px; font-size: 15px; box-shadow: 3px 4px 0 var(--ink); }

@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes rise { from { transform: translate(-50%, 30%); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) { .rs-shigeo.pop, .voice, .calcview, .calc-card.shake { animation: none; } }

/* 背の低い画面(iPhone SE など) */
@media (max-height: 620px) {
  .bar { padding: 6px 14px 4px; }
  .bar-pause { width: 34px; height: 34px; }
  .play { gap: 8px; padding: 8px 14px 10px; }
  .lead { font-size: 13px; line-height: 1.5; }
  .floor { padding: 8px 14px 10px; }
  .g-lb { font-size: 13px; }
  .jams { gap: 12px 12px; }
  #screen-run.calcing.is-me .band { display: none; }
  #screen-run.calcing.is-me .round-btn.stop { width: 66px; box-shadow: 3px 4px 0 var(--ink), inset 0 0 0 4px var(--white), inset 0 0 0 7px var(--ink); }
  #screen-run.calcing.is-me .round-btn.stop b { font-size: 12px; }
  #screen-run.calcing.is-me .slot { gap: 6px; padding-top: 6px; }
  #screen-run.calcing.is-me .floor { padding: 6px 14px 8px; }
  .calc-card { padding: 14px 8px 6px; }
  .cc-item .od-pan { width: 40px; }
  .cc-sum { margin-top: 2px; }
  .calc-keys { gap: 5px; padding: 6px 12px; }
  .calc-keys button { width: 36px; font-size: 17px; border-width: 2.5px; }
  .rs-bottom { padding: 8px 16px 10px; }
}

/* ======================================================================
   全員バイトの個人戦(2026-10-23 作り直し)。仕事の絵はまだ無いので、色と図形で仮置き
   レジ=オレンジ / 電話の注文=青緑 / 品出し=緑 / トレー洗い=白
   ====================================================================== */
#screen-ready .round-btn[hidden], #screen-ready .lead[hidden], #screen-run [hidden] { display: none !important; }
#screen-ready .work { max-height: 30dvh; }
.od-no { font-size: 11px; }

.run .odai { margin: 8px 14px 0; }
.bar-q b { font-family: var(--num); font-weight: 400; font-size: 18px; margin: 0 3px; }

/* みんなの仕事の点 */
.scores { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; padding: 8px 14px 0; }
.scores span { font-size: 12px; font-weight: 900; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.scores span.me { background: var(--y-btn); }
.scores b { font-family: var(--num); font-weight: 400; margin-left: 5px; }
/* いちばん新しいできごと */
.log { min-height: 1.5em; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink); padding: 4px 14px 0; }
.log b { font-weight: 900; }
.log i { font-style: normal; font-family: var(--num); color: var(--red-text); }

.main { flex: 1 1 auto; min-height: 0; position: relative; display: flex; flex-direction: column; padding: 6px 14px 10px; }

/* 伝票の下のバー: お客さんが帰るまでの残り */
.job-life { position: absolute; left: 10px; right: 10px; bottom: 6px; height: 5px; background: rgba(0, 0, 0, .2); border-radius: 3px; overflow: hidden; }
.job-life i { display: block; height: 100%; width: 100%; background: var(--ink); }

/* 取った仕事 */
.task { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.task-head { display: flex; align-items: center; gap: 10px; }
.task-head b { flex-shrink: 0; font-size: 15px; font-weight: 900; background: var(--ink); color: var(--white); padding: 2px 10px; border-radius: 6px; }
.task.t-reg .task-head b { background: var(--orange); }
.task.t-phone .task-head b { background: var(--teal); }
.task.t-shelf .task-head b { background: #3E8A1E; }
.task-time { flex: 1; height: 8px; background: rgba(0, 0, 0, .18); border-radius: 4px; overflow: hidden; }
.task-time i { display: block; height: 100%; background: var(--red); }
.task-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(6px, 1.2dvh, 12px); }
.task-body .calc-card { padding: 12px 8px 8px; border-width: 4px; }
.task-body .lb { font-size: 14px; font-weight: 900; text-align: center; }
.task-body .lb em { font-style: normal; font-family: var(--num); color: var(--red-text); margin-left: 8px; font-size: 18px; }

/* 電話の注文のメモ */
.memo { width: 100%; background: #FFFDF4; border: 3px solid var(--ink); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; font-family: var(--slip); }
.memo .lb { font-family: var(--pf); }
.ord { display: flex; align-items: center; gap: 10px; }
.ord .od-pan { width: 48px; }
.ord b { flex: 1; font-size: 20px; font-weight: 600; }
.ord .n { font-size: 30px; font-weight: 600; color: var(--red-text); }
.ord .n small { font-size: 15px; }
/* パンを選ぶボタン(3+2) */
.pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; width: 100%; }
.pick .pb { grid-column: span 2; position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; background: var(--white); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 2px 3px 0 var(--ink); padding: 4px 2px 3px; }
.pick .pb:nth-child(4) { grid-column: 2 / span 2; }
.pick .pb .od-pan { width: clamp(38px, 7dvh, 54px); }
.pick .pb small { font-size: 10px; font-weight: 900; white-space: nowrap; }
.pick .pb:active { transform: translate(2px, 3px); box-shadow: none; }
.pick .cnt { position: absolute; top: -8px; right: -6px; min-width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: var(--white); font-style: normal; font-family: var(--num); font-size: 16px; line-height: 26px; text-align: center; }
.pick .cnt:empty { display: none; }
.pick .pk-clear, .pick .pk-ok { grid-column: span 3; min-height: 44px; border: 3px solid var(--ink); border-radius: 999px; font-size: 16px; font-weight: 900; box-shadow: 2px 3px 0 var(--ink); }
.pick .pk-clear { background: var(--white); }
.pick .pk-ok { background: var(--orange); color: var(--white); }
/* 品出しのフラッシュ */
.flash { width: 100%; min-height: clamp(90px, 18dvh, 150px); display: flex; align-items: center; justify-content: center; gap: 8px; background: #FFFDF4; border: 3px solid var(--ink); border-radius: 12px; }
.flash .od-pan { width: clamp(80px, 15dvh, 130px); background: none; }
.flash em { font-style: normal; font-family: var(--num); font-size: 28px; color: var(--red-text); }
.dots { display: flex; gap: 8px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); }
.dots i.on { background: var(--green); }
/* トレー洗い: 茶色いしみをこする */
.tray { position: relative; width: 100%; max-width: 320px; aspect-ratio: 16 / 10; background: #E7E2D6; border: 5px solid #8A8170; border-radius: 14px; touch-action: none; }
.tray i { position: absolute; width: 22%; aspect-ratio: 1.3; transform: translate(-50%, -50%); background: #8B5A1E; border-radius: 47% 53% 42% 58% / 55% 45% 55% 45%; pointer-events: none; }

/* スタン: 仕事の上に重ねる(ストップは床にあるので押せる) */
.stun { position: absolute; inset: 6px 14px 10px; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgba(17, 17, 17, .78); border-radius: 16px; color: var(--white); text-align: center; }
.stun img { width: clamp(80px, 16dvh, 130px); height: auto; }
.stun b { font-size: clamp(30px, 6dvh, 44px); font-weight: 900; color: var(--y-btn); letter-spacing: .08em; }
.stun span { font-size: 13px; font-weight: 700; }

/* 床: 左にオーブンの時計、右にストップ */
#screen-run .floor { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px 14px; }
.oven-mini { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; color: var(--white); }
.oven-mini .lb { font-size: 11px; font-weight: 900; color: var(--pad); }
.mini-lcd { font-family: "DotGothic16", monospace; font-size: clamp(26px, 5dvh, 34px); background: #3A3A3A; border: 3px solid var(--ink); border-radius: 8px; padding: 0 10px; color: var(--white); letter-spacing: .04em; }
.mini-lcd.hidden { color: #9A9A9A; }
#screen-run .me-lb { text-align: left; margin: 2px 0 0; }
#screen-run .round-btn.stop { width: clamp(96px, 16dvh, 124px); }
#screen-run .round-btn.stop.done { background: #9A8F80; }
#screen-run.tasking .round-btn.stop { width: clamp(84px, 13dvh, 108px); }

/* 結果: 自分の焼き上がり */
.fn-mine { display: flex; align-items: center; gap: 10px; margin-top: 12px; width: 100%; max-width: 380px; }
.fm-art { position: relative; flex-shrink: 0; width: clamp(110px, 20dvh, 150px); }
.fm-art > img { display: block; width: 100%; height: auto; }
.fm-art .rs-pan { position: absolute; left: 50%; top: 78%; width: 46%; transform: translate(-50%, -50%); }
.fm-art .rs-pan img { display: block; width: 100%; height: auto; }
.fm-txt { display: flex; flex-direction: column; gap: 2px; }
.fm-word { font-size: clamp(20px, 3.8dvh, 26px); font-weight: 900; }
.fm-diff { font-family: var(--num); font-size: clamp(26px, 5dvh, 36px); color: var(--red-text); line-height: 1.1; }
.fm-sum { font-size: 13px; font-weight: 900; }
.fm-sum b { font-family: var(--num); font-weight: 400; font-size: 16px; margin: 0 2px; }
.fm-sum b.t { color: var(--red-text); font-size: 20px; }
.fn-note { font-size: 11px; text-align: center; margin-top: 8px; color: var(--muted); }

@media (max-height: 620px) {
  .scores { padding-top: 5px; }
  .board { gap: 10px; }
  .job { min-height: 54px; }
  #screen-run .floor { padding: 6px 16px 8px; }
  .task-body .calc-card { padding: 8px 6px 6px; }
  .task-body .cc-item .od-pan { width: 38px; }
  .task-body .calc-keys button { width: 34px; }
}
#screen-run .round-btn.stop b, #screen-run .round-btn.stop span { white-space: nowrap; }
#screen-run.tasking .round-btn.stop b { font-size: clamp(14px, 2.6dvh, 18px); }
#screen-run.tasking .round-btn.stop span { font-size: clamp(18px, 3.6dvh, 25px); }

/* ストップの字が丸のふちにかからないように(iPhone 16 で発生) */
#screen-run .round-btn.stop b { font-size: clamp(15px, 2.7dvh, 19px); }
#screen-run .round-btn.stop span { font-size: clamp(20px, 4dvh, 27px); }

/* ===== 結果発表の演出: 最下位から1行ずつ → 最後に1位へ「優勝」のハンコ ===== */
.fn-list li { position: relative; }
#fn-body.anim .fn-mine { animation: rise-in .45s ease-out 1.5s both; }
#fn-body.anim .fn-list li { animation: row-in .35s cubic-bezier(.2, 1.4, .4, 1) var(--d) both; }
#fn-body.anim .win { animation: hanko .4s cubic-bezier(.2, 1.6, .4, 1) var(--d) both; }
@keyframes rise-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes row-in { from { opacity: 0; translate: -30px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes hanko { from { opacity: 0; scale: 2.4; } to { opacity: 1; scale: 1; } }
.win { position: absolute; right: 64px; top: 50%; translate: 0 -50%; rotate: -12deg; padding: 2px 8px; border: 3px solid var(--red); border-radius: 6px; color: var(--red); background: #FFFDF4; font-size: 15px; font-weight: 900; letter-spacing: .1em; }
/* 賞(パン名人・働き者) */
.aw { display: inline-block; margin-left: 6px; padding: 0 5px; border: 2px solid; border-radius: 4px; font-style: normal; font-size: 10px; font-weight: 900; vertical-align: 2px; white-space: nowrap; }
.aw.b { color: var(--red-text); }
.aw.j { color: #0E8686; }
/* 惜しさ */
.fm-near { font-size: 13px; font-weight: 900; }
.fm-near b { font-family: var(--num); font-weight: 400; color: var(--red-text); font-size: 17px; margin: 0 2px; }
@media (prefers-reduced-motion: reduce) { #fn-body.anim .fn-mine, #fn-body.anim .fn-list li, #fn-body.anim .win { animation: none; } }
/* 「優勝」はパンの絵の上に押す(名前・賞・点の字にかぶらないように) */
.win { right: auto; left: 52px; font-size: 13px; padding: 1px 6px; }

/* ======================================================================
   オーダーレール(2026-10-23 ユーザーが試作 B を選んだ。前のフロアマップはやめた)
   仕事は来た順に、レールへ手書きの伝票で挟まる。下はデザイナーのオーブンの絵
   2026-10-24 発表会の感想で、もぐらたたき+中継をやめて、1人ずつ自分のレールに戻した(取り合わない)
   ====================================================================== */
.board.rail-board { display: flex; flex-direction: column; gap: 8px; max-height: none; margin: 0; flex: 1 1 auto; min-height: 0; }
.rail { position: relative; flex-shrink: 0; display: flex; align-items: flex-start; gap: 6px; height: clamp(120px, 24dvh, 172px); padding: 0 2px; }
.rail::before { content: ""; position: absolute; left: -8px; right: -8px; top: 8px; height: 13px; background: #9AA1A6; border: 3px solid var(--ink); border-radius: 4px; }
.job.slip { position: relative; flex: 0 0 calc(25% - 5px); min-height: calc(100% - 12px); margin-top: 12px; padding: 16px 4px 12px; border: 2.5px solid var(--ink); border-radius: 2px; background: #FFFDF4; color: var(--ink); box-shadow: 3px 4px 0 var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; font-family: var(--slip); font-weight: 600; rotate: var(--r, 0deg); transform-origin: 50% 0; animation: slip-in .35s cubic-bezier(.2, 1.5, .4, 1); }
/* 挟んでいるクリップ */
.job.slip::before { content: ""; position: absolute; top: -6px; left: 50%; width: 22px; height: 14px; translate: -50% 0; background: #6B6B6B; border: 2.5px solid var(--ink); border-radius: 3px; }
.job.slip b { font-size: clamp(15px, 2.6dvh, 18px); font-weight: 600; line-height: 1.15; padding-bottom: 2px; border-bottom: 2px solid; width: 100%; }
.job.slip q { flex: 1; font-size: 11px; line-height: 1.3; color: #444; quotes: "「" "」"; }
.job.slip i { font-style: normal; font-family: var(--slip); font-size: clamp(17px, 3dvh, 22px); color: var(--red-text); }
.job.slip .job-life { left: 6px; right: 6px; bottom: 5px; height: 4px; }
.job.slip.t-reg b { color: #C76A00; }
.job.slip.t-phone b { color: #0E8686; }
.job.slip.t-shelf b { color: #3E8A1E; }
.job.slip.t-tray b { color: #6B5A3A; }
.job.slip:active:not(:disabled) { transform: none; translate: 2px 3px; box-shadow: 1px 1px 0 var(--ink); }
.job.slip:disabled { filter: none; }
/* 取られた・帰っちゃった伝票: ハンコを押して少し残す */
.job.slip.taken { opacity: .9; background: #EDE6D3; }
.slip-gap { flex: 0 0 calc(25% - 5px); }
.slip-stamp { position: absolute; left: 50%; top: 46%; translate: -50% -50%; rotate: -14deg; padding: 1px 5px; border: 2.5px solid var(--red); background: #FFFDF4; color: var(--red); font-family: var(--pf); font-size: 12px; font-weight: 900; line-height: 1.15; text-align: center; white-space: nowrap; animation: hanko .3s cubic-bezier(.2, 1.6, .4, 1) both; }
.slip-stamp small { display: block; font-size: 10px; }
.slip-stamp.late { background: var(--red); color: var(--white); }
.slip-stamp.gone { border-color: var(--muted); color: var(--muted); }
@keyframes slip-in { from { translate: 40px -30px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
/* 下のお店の絵 */
.rail-board .work-bg { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: flex-end; justify-content: center; background: var(--scene); border-radius: 20px; overflow: hidden; }
.rail-board .work-bg img { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: bottom; }
/* 最初の3秒だけの大きい時計 */
.big-lcd { position: absolute; left: 50%; top: 10px; translate: -50% 0; font-family: "DotGothic16", monospace; font-size: clamp(34px, 7dvh, 52px); line-height: 1.1; color: var(--white); background: #3A3A3A; border: 4px solid var(--ink); border-radius: 10px; padding: 2px 14px; letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { .job.slip, .slip-stamp { animation: none; } }
.big-lcd { white-space: nowrap; font-size: clamp(30px, 6dvh, 44px); }
.job.slip q { quotes: none; }

/* 遊び方(ゲーム内・紹介ページ)の絵も、レールの伝票の形で */
.rule-jobs { position: relative; display: flex; gap: 6px; width: 250px; height: 112px; margin: 6px auto 0; }
.rule-jobs::before { content: ""; position: absolute; left: -6px; right: -6px; top: 6px; height: 11px; background: #9AA1A6; border: 3px solid var(--ink); border-radius: 4px; }
.rule-jobs .job.slip { min-height: 0; height: 96px; margin-top: 10px; padding: 14px 2px 6px; animation: none; box-shadow: 2px 3px 0 var(--ink); }
.rule-jobs .job.slip b { font-size: 12px; }
.rule-jobs .job.slip i { font-size: 15px; margin-top: auto; }

/* 取った仕事の見出しも伝票の形(どの伝票を取ったかわかるように)。右は制限時間 */
.task-head b { position: relative; background: #FFFDF4; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 2px; padding: 6px 12px 3px; font-family: var(--slip); font-weight: 600; font-size: 16px; rotate: -2deg; box-shadow: 2px 3px 0 var(--ink); }
.task-head b::before { content: ""; position: absolute; top: -7px; left: 50%; width: 18px; height: 10px; translate: -50% 0; background: #6B6B6B; border: 2px solid var(--ink); border-radius: 2px; }
.task.t-reg .task-head b { background: #FFFDF4; color: #C76A00; }
.task.t-phone .task-head b { background: #FFFDF4; color: #0E8686; }
.task.t-shelf .task-head b { background: #FFFDF4; color: #3E8A1E; }
.task.t-tray .task-head b { color: #6B5A3A; }
.task-head { padding-top: 6px; }
.rule-jobs { height: 96px; }
.rule-jobs .job.slip { height: 80px; }
.rule-jobs .job.slip b { font-size: 11px; text-align: center; white-space: nowrap; letter-spacing: -.03em; }
/* 仕事の中身がはみ出したときに見出しが隠れないよう、center ではなく margin: auto で真ん中に寄せる */
.task-body { justify-content: flex-start; }
.task-body > :first-child { margin-top: auto; }
.task-body > :last-child { margin-bottom: auto; }
.task-body .calc-keys button { width: clamp(34px, 6.2dvh, 54px); }
.task-body .cc-item .od-pan { width: clamp(38px, 7dvh, 60px); }
/* 仕事中は「〇〇が△△を取った」の行を隠して、電卓などの場所を空ける(iPhone SE で床にはみ出したため) */
#screen-run.tasking .log { display: none; }
.task-head { padding-top: 4px; }
.task-head b { padding: 4px 10px 2px; font-size: 15px; }

/* 止めた時間(2026-10-24): 止めたあとのボタン・横の文、結果の「止めた/目標」、一覧の各行 */
#screen-run .round-btn.stop span.tm { font-family: var(--num); font-weight: 400; font-size: clamp(18px, 3.4dvh, 24px); }
#screen-run .round-btn.stop span.tm small { font-family: var(--pf); font-size: .55em; margin-left: 1px; }
.fm-time { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: baseline; column-gap: 8px; margin: 2px 0; }
.fm-time .k { font-size: 12px; font-weight: 900; }
.fm-time .v { font-family: var(--num); font-size: clamp(24px, 4.4dvh, 32px); line-height: 1.1; color: var(--red-text); }
/* 止めた秒数は白い下じきで目立たせる(ギンガムの上だと読みにくいため) */
.fm-time .v:not(.goal) { justify-self: start; background: #fff; padding: 0 8.5px 3.5px 7.5px; border-radius: 6px; } /* Dela Gothic は字が下に寄るので、下を少し多めにして上下を同じに見せる */
.fm-time .v.goal { font-size: clamp(16px, 2.8dvh, 20px); color: var(--ink); }
.fm-time .v small { font-family: var(--pf); font-size: 15px; color: var(--ink); }
.fn-list .nm .tm { display: block; font-family: var(--num); font-weight: 400; font-size: 15px; line-height: 1.2; }
.fn-list .nm .tm i { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 5px; }
/* 「終了!」のカットイン: 赤い帯に大きい字 */
.ib-cutin[data-kind="end"] .ib-cutin-band { background: var(--red); color: var(--white); }
.ib-cutin[data-kind="end"] .ib-cutin-title { font-size: clamp(44px, 14vw, 64px); letter-spacing: .12em; }

/* 仕事の画面: 待っている伝票の数 */
.task { position: relative; }
.task-wait { flex-shrink: 0; font-size: 12px; font-weight: 700; white-space: nowrap; }
.task-wait b { font-size: 16px; margin: 0 1px; color: var(--red-text); }
/* 正解!/ミス…/時間切れ… のハンコ */
.tk-stamp-wrap { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.tk-stamp { rotate: -10deg; padding: 4px 18px 6px; border: 4px solid var(--red); border-radius: 8px; background: #FFFDF4; color: var(--red); font-size: clamp(24px, 4.6dvh, 34px); font-weight: 900; line-height: 1.1; text-align: center; white-space: nowrap; max-width: calc(100% - 24px); box-shadow: 4px 5px 0 var(--ink); animation: hanko .3s cubic-bezier(.2, 1.6, .4, 1) both; }
.tk-stamp small { display: block; font-size: 14px; }
.tk-stamp.miss { background: var(--red); color: var(--white); border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .tk-stamp { animation: none; } }
/* 仕事中は、お題の伝票を1行に縮め、みんなの点の列を隠す(仕事の画面が床にはみ出さないように。iPhone SE で発生) */
#screen-run.tasking .scores { display: none; }
#screen-run.tasking .odai { padding: 6px 12px 3px; }
#screen-run.tasking .od-head { display: none; }
#screen-run.tasking .od-body { gap: 8px; }
#screen-run.tasking .odai .od-pan { width: 34px; }
#screen-run.tasking .od-txt { flex-wrap: nowrap; }
#screen-run.tasking .od-name { font-size: 16px; white-space: nowrap; }
#screen-run.tasking .od-ga { display: none; }
#screen-run.tasking .od-sec { white-space: nowrap; margin: 0; }
#screen-run.tasking .od-sec b { font-size: 22px; border-width: 2px; }
@media (max-height: 700px) {
  #screen-run.tasking .oven-mini .lb, #screen-run.tasking .me-lb { display: none; }
  #screen-run.tasking .floor { padding-top: 6px; padding-bottom: 8px; }
  #screen-run.tasking .mini-lcd { font-size: 24px; }
}

/* ======================================================================
   デザイナーの修正(2026-10-24)
   ====================================================================== */
/* ①② ギンガムチェックの目を大きく。待合室にも */
#screen-title, #screen-result, #screen-final, #screen-waiting {
  background-color: #FFE7A3;
  background-image: linear-gradient(90deg, rgba(255, 191, 11, .62) 50%, transparent 50%), linear-gradient(rgba(255, 191, 11, .62) 50%, transparent 50%);
  background-size: 64px 64px;
}
/* ③ 待合室のパン5種類 */
.wait-breads { align-self: center; display: flex; align-items: flex-end; justify-content: center; gap: 2px; margin: 8px 0 -2px; }
.wait-breads span { display: block; width: clamp(50px, 14vw, 64px); rotate: calc((var(--i) - 2) * 7deg); translate: 0 calc(((var(--i) - 2) * (var(--i) - 2)) * -2px); animation: bread-hop 2.4s ease-in-out calc(var(--i) * .18s) infinite; }
.wait-breads img { display: block; width: 100%; height: auto; }
@keyframes bread-hop { 0%, 70%, 100% { translate: 0 calc(((var(--i) - 2) * (var(--i) - 2)) * -2px); } 80% { translate: 0 calc(((var(--i) - 2) * (var(--i) - 2)) * -2px - 9px); } }
@media (prefers-reduced-motion: reduce) { .wait-breads span { animation: none; } }
@media (max-height: 620px) { .wait-breads { margin-top: 4px; } .wait-breads span { width: 44px; } }
/* ④ 結果の上は RESULT の吹き出し(デザイナーの画像)。中に自分の焼き加減の言葉 */
.fn-band { position: relative; width: min(100%, 380px); flex-shrink: 0; }
.fn-band img { display: block; width: 100%; height: auto; }
.fn-word { position: absolute; left: 8%; right: 6%; top: 34%; bottom: 20%; display: flex; align-items: center; justify-content: center; font-size: clamp(24px, 4.6dvh, 34px); font-weight: 900; letter-spacing: .04em; white-space: nowrap; }
/* ⑤ 開店前のカットイン: オーダー伝票がバンと出る(帯の色はなし。後ろの黒い帯だけ) */
.ib-cutin[data-kind="slip"] .ib-cutin-band { background: none; border: 0; padding: 0; color: var(--ink); }
.ib-cutin[data-kind="slip"] .ib-cutin-title { font-size: 16px; letter-spacing: 0; padding: 0; text-wrap: wrap; }
.ib-cutin[data-kind="slip"] .ib-cutin-sub { display: inline-block; margin-top: 12px; padding: 2px 14px 4px; background: var(--ink); color: var(--white); font-family: var(--pf); font-size: 17px; }
.ib-cutin[data-kind="slip"].is-open::before, .ib-cutin[data-kind="slip"].is-open .ib-cutin-band, .ib-cutin[data-kind="slip"].is-open .ib-cutin-title { animation-duration: 3.2s; }
.cut-odai { width: min(84vw, 360px); margin: 0 auto; rotate: 7deg; box-shadow: 5px 6px 0 var(--ink); text-align: left; }
/* ⑥ 「焼き上がりでストップボタンを押そう!」(2026-10-24 デザイナー: 背景はいらない) */
.lead em { color: inherit; }
/* ⑦ ストップボタンの字が丸からはみ出ないように */
#screen-run .round-btn.stop b { font-size: clamp(13px, 2.3dvh, 16px); }
#screen-run .round-btn.stop span { font-size: clamp(17px, 3.3dvh, 22px); }
#screen-run.tasking .round-btn.stop b { font-size: clamp(12px, 2dvh, 14px); }
#screen-run.tasking .round-btn.stop span { font-size: clamp(15px, 2.8dvh, 19px); }
/* ⑧ 営業中はオーブンの絵。時計はオーブンの液晶部分に重ねる */
.rail-board .work-bg.oven-bg { background: none; border-radius: 0; align-items: center; }
.oven-pic { position: relative; height: 100%; max-width: 100%; aspect-ratio: 800 / 762; container-type: inline-size; }
.oven-pic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.oven-pic .big-lcd { position: absolute; left: 49%; top: 13.5%; translate: -50% -50%; background: none; border: 0; padding: 0; font-size: 12cqw; color: var(--white); }
.oven-pic .big-lcd.hidden { color: #9A9A9A; }
/* ⑨ 開店前の絵は、黄色い箱を足さず、絵の形のまま大きく */
#screen-ready .work { flex: 0 1 auto; max-height: none; min-height: 0; background: none; border-radius: 0; overflow: visible; }
#screen-ready .work img { width: 100%; height: auto; max-width: 420px; max-height: 36dvh; object-fit: contain; }
/* ⑤ の動き: 横に流れる帯ではなく、画面を少し暗くして、伝票が真ん中にバンと置かれる → 少しして消える */
.ib-cutin[data-kind="slip"] { background: rgba(17, 17, 17, .35); }
.ib-cutin[data-kind="slip"].is-open { animation: slip-dim 3.2s ease both; }
.ib-cutin[data-kind="slip"]::before { display: none; }
.ib-cutin[data-kind="slip"] .ib-cutin-band { width: auto; transform: none; }
.ib-cutin[data-kind="slip"].is-open .ib-cutin-band { animation: slip-slap 3.2s cubic-bezier(.2, 1.4, .4, 1) both; }
.ib-cutin[data-kind="slip"].is-open .ib-cutin-title { animation: none; }
.cut-odai { rotate: -3deg; }
@keyframes slip-slap { 0% { opacity: 0; scale: 1.7; rotate: -14deg; } 12% { opacity: 1; scale: 1; rotate: 0deg; } 88% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: .96; } }
@keyframes slip-dim { 0%, 100% { background: rgba(17, 17, 17, 0); } 10%, 88% { background: rgba(17, 17, 17, .35); } }
@media (prefers-reduced-motion: reduce) { .ib-cutin[data-kind="slip"].is-open .ib-cutin-band { animation: ib-cut-fade 3.2s both; } }

/* 結果画面の字も伝票と同じ書体に(数字は Dela Gothic One のまま)。2026-10-24 デザイナー */
.fn-word, .fm-txt, .fn-list .nm, .fn-note { font-family: var(--slip); }

/* 遊び方の絵: 正解のハンコ */
.rule-relay { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 0 14px; }
.rule-relay .tk-stamp { font-size: 26px; animation: none; box-shadow: 3px 4px 0 var(--ink); }
/* 遊び方「いちばん大きいのはパン」: 結果画面と同じく、しげおのお皿にパンをのせる */
.fm-art.rule-plate { width: 170px; margin: 0 auto; }
/* お皿のパン: 少し大きく、少し右に(2026-10-24 ユーザー「位置ずれてる・もう少し大きく」。デザイナーの結果画面ではしげおの幅の半分強・皿の中心のやや右) */
.fm-art .rs-pan { left: 53%; top: 77%; width: 56%; }
/* パンの形(横長のクロワッサン・縦長のピザなど)がちがっても、お皿の大きさの枠に収める */
.fm-art .rs-pan { aspect-ratio: 1.5; display: flex; align-items: center; justify-content: center; }
.fm-art .rs-pan img { width: 100%; height: 100%; object-fit: contain; }

/* 開店前: 伝票のカットインの間は画面の伝票を隠し、終わるころに置かれるように出す */
#rd-odai.odai-wait { visibility: hidden; }
#rd-odai.odai-land { animation: odai-land .35s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes odai-land { from { opacity: 0; scale: 1.15; } to { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: reduce) { #rd-odai.odai-land { animation: none; } }
/* レールの伝票の見出しは、決めた場所(<wbr>)でだけ折り返す */
.rail .job.slip b { word-break: keep-all; overflow-wrap: normal; }

/* ======================================================================
   手ごたえと山場(2026-10-25 ユーザー「全部入れたい」)
   音のオン/オフ・伝票を引き抜く/済/伝票刺し・ミスでくしゃっ・常連さん(金色)・ランチラッシュ・じゅわぁ〜・ピッタリ賞・店長のひとこと
   ====================================================================== */
/* 音のオン/オフ(一時停止の左) */
.bar-snd { flex-shrink: 0; width: 40px; height: 40px; margin: 0 8px 0 auto; border-radius: 50%; border: 3px solid var(--white); background: none; display: flex; align-items: center; justify-content: center; padding: 0; }
.bar-snd svg { width: 22px; height: 22px; }
.bar-snd.off { opacity: .6; }

/* 伝票刺し(左上の点数の横)。片づけた伝票が刺さって束になる */
.spike-q { position: relative; display: inline-flex; align-items: center; gap: 6px; padding-left: 8px; }
.spike { position: relative; flex-shrink: 0; width: 22px; height: 26px; }
.spike-nail { position: absolute; left: 50%; bottom: 0; width: 3px; height: 24px; translate: -50% 0; background: var(--white); border-radius: 2px 2px 0 0; }
.spike-nail::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 18px; height: 4px; translate: -50% 0; background: var(--white); border-radius: 2px; }
.spike-stack i { position: absolute; left: 50%; bottom: calc(3px + var(--k) * 2.6px); width: 18px; height: 9px; translate: -50% 0; rotate: var(--r); background: #FFFDF4; border: 1.5px solid var(--ink); border-radius: 1px; }
.spike-q.bump { animation: spike-bump .35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes spike-bump { 40% { scale: 1.14; } 100% { scale: 1; } }
.pts-pop { position: absolute; left: 100%; top: -2px; margin-left: 4px; padding: 0 6px; border: 2.5px solid var(--ink); border-radius: 6px; background: var(--white); color: var(--red-text); font-family: var(--num); font-size: 15px; white-space: nowrap; pointer-events: none; animation: pts-pop .9s ease-out both; }
.pts-pop.vip { background: #FFE58A; }
@keyframes pts-pop { 0% { opacity: 0; translate: 0 6px; } 15% { opacity: 1; translate: 0 0; } 70% { opacity: 1; } 100% { opacity: 0; translate: 0 -12px; } }

/* 正解した伝票が飛んでいく */
.fly-slip { position: fixed; z-index: 60; width: 60px; height: 38px; translate: -50% -50%; background: #FFFDF4; border: 2.5px solid var(--ink); border-radius: 2px; box-shadow: 2px 3px 0 var(--ink); pointer-events: none; animation: fly-slip .55s cubic-bezier(.5, 0, .7, .4) both; }
.fly-slip::after { content: "済"; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; translate: -50% -50%; rotate: -12deg; border: 2.5px solid var(--red); border-radius: 50%; color: var(--red); font-size: 14px; font-weight: 900; line-height: 21px; text-align: center; }
.fly-slip.vip { background: #FFE58A; }
@keyframes fly-slip { 0% { rotate: -4deg; scale: 1; } 100% { translate: calc(-50% + var(--dx)) calc(-50% + var(--dy)); rotate: 30deg; scale: .3; } }

/* 仕事の画面: 伝票を引き抜いて広げる */
.task.enter .task-head > b { animation: pull-slip .32s cubic-bezier(.2, 1.4, .4, 1) both; }
.task.enter .task-body { animation: task-in .28s ease-out .06s both; }
@keyframes pull-slip { from { opacity: 0; translate: 0 -34px; scale: .7; rotate: -12deg; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes task-in { from { opacity: 0; scale: .96; } to { opacity: 1; scale: 1; } }
/* 正解: 見出しの伝票に「済」のハンコ */
.task.done .task-head > b::after { content: "済"; position: absolute; right: -14px; top: -10px; width: 28px; height: 28px; rotate: -12deg; border: 2.5px solid var(--red); border-radius: 50%; background: #FFFDF4; color: var(--red); font-family: var(--pf); font-size: 15px; font-weight: 900; line-height: 23px; text-align: center; animation: hanko .25s cubic-bezier(.2, 1.6, .4, 1) both; }
/* ミス: 伝票がくしゃっと落ちて、画面が小さくゆれる */
.task.missed .task-head > b { animation: crumple .7s cubic-bezier(.5, 0, .8, .5) .15s both; }
.task.missed .task-body { animation: shake .3s linear; }
@keyframes crumple { to { opacity: 0; translate: 10px 60px; rotate: 35deg; scale: .6 .4; } }
@keyframes shake { 20% { translate: -6px 0; } 40% { translate: 5px 0; } 60% { translate: -4px 0; } 80% { translate: 2px 0; } }

/* 常連さんの伝票(金色・点2倍・すぐ帰る) */
.job.slip.vip { background: #FFE58A; }
.vip-tag { position: absolute; z-index: 1; top: -12px; right: -8px; padding: 1px 5px; rotate: 10deg; background: var(--red); color: var(--white); border: 2px solid var(--ink); border-radius: 3px; font-family: var(--pf); font-style: normal; font-size: 10px; font-weight: 900; white-space: nowrap; }
.job.slip.vip .job-life i { background: var(--red); }
.task.vip .task-head > b { background: #FFE58A; }

/* ランチラッシュ: 地が黄色とオレンジのしまに・赤い帯 */
#screen-run.rush { background: repeating-linear-gradient(-45deg, var(--y) 0 22px, #FFA412 22px 44px); }
/* 上のバーの「仕事◯点」と音のボタンの間に出す(下のものを押し下げないように) */
.rush-band { flex: 1 1 auto; min-width: 0; max-width: 150px; display: flex; flex-direction: column; align-items: stretch; gap: 3px; margin: 0 0 0 10px; padding: 3px 8px 5px; rotate: -2deg; background: var(--red); color: var(--white); border: 3px solid var(--ink); border-radius: 4px; box-shadow: 2px 3px 0 var(--ink); }
.rush-band b { font-size: 14px; font-weight: 900; line-height: 1.1; letter-spacing: .04em; text-align: center; white-space: nowrap; }
.rush-band .rush-time { flex: 0 0 auto; height: 6px; }
.rush-time { flex: 1; height: 8px; background: rgba(255, 255, 255, .35); border-radius: 4px; overflow: hidden; }
.rush-time i { display: block; height: 100%; background: var(--white); }
.ib-cutin[data-kind="rush"] .ib-cutin-band { background: var(--red); color: var(--white); }
.ib-cutin[data-kind="rush"].is-open::before, .ib-cutin[data-kind="rush"].is-open .ib-cutin-band, .ib-cutin[data-kind="rush"].is-open .ib-cutin-title { animation-duration: 1.4s; }

/* 仕事中も、小さいオーブンを床に(パンが焼けているのを忘れないように) */
.mini-oven { display: none; flex-shrink: 0; width: clamp(40px, 7dvh, 56px); }
.mini-oven img { display: block; width: 100%; height: auto; }
#screen-run.tasking .mini-oven { display: block; }

/* ストップを押した瞬間の「じゅわぁ〜」(止めた人の画面だけ) */
#screen-run .floor { position: relative; }
.sizzle-pop { position: absolute; right: 26px; bottom: 100%; z-index: 5; padding: 2px 12px 4px; rotate: 8deg; background: var(--white); border: 3px solid var(--ink); border-radius: 10px; box-shadow: 3px 4px 0 var(--ink); font-size: 26px; font-weight: 900; color: var(--ink); pointer-events: none; animation: sizzle-pop 1s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes sizzle-pop { 0% { opacity: 0; scale: .4; translate: 0 20px; } 20% { opacity: 1; scale: 1; translate: 0 0; } 75% { opacity: 1; } 100% { opacity: 0; translate: 0 -10px; } }

/* 結果: ピッタリ賞(0.5秒以内)・店長のひとこと */
.pit-stamp { position: absolute; left: -6px; top: 2px; padding: 1px 6px; rotate: -14deg; background: #FFE58A; border: 3px solid var(--red); border-radius: 6px; color: var(--red); font-size: 13px; font-weight: 900; white-space: nowrap; box-shadow: 2px 3px 0 var(--ink); }
#fn-body.anim .pit-stamp { animation: hanko .4s cubic-bezier(.2, 1.6, .4, 1) 1.6s both; }
.aw.p { color: var(--white); background: var(--red); border-color: var(--red); }
.fn-boss { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 380px; margin-top: 10px; }
.boss-sign { flex-shrink: 0; width: 40px; height: 40px; border: 2.5px solid var(--red); border-radius: 50%; color: var(--red); background: #FFFDF4; font-size: 12px; font-weight: 900; line-height: 35px; text-align: center; rotate: 12deg; }
.fn-boss p { position: relative; flex: 1; margin: 0; padding: 6px 12px; background: #FFFDF4; border: 2.5px solid var(--ink); border-radius: 12px; box-shadow: 2px 3px 0 var(--ink); font-family: var(--slip); font-size: 15px; font-weight: 600; line-height: 1.4; }
#fn-body.anim .fn-boss { animation: rise-in .4s ease-out var(--d) both; }

@media (prefers-reduced-motion: reduce) {
  .task.enter .task-head > b, .task.enter .task-body, .task.done .task-head > b::after, .task.missed .task-head > b, .task.missed .task-body,
  .spike-q.bump, .pts-pop, .sizzle-pop, #fn-body.anim .pit-stamp, #fn-body.anim .fn-boss { animation: none; }
}

/* ランチラッシュをもっと目立たせる(2026-10-25 ユーザー): 長め(2.2秒)・大きい字・帯の上下に黄と黒の注意テープ・画面が赤く2回光る・字がふるえる */
.ib-cutin[data-kind="rush"] .ib-cutin-band { padding: 22px 0 24px; border-top: 0; border-bottom: 0;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 14px, var(--y-btn) 14px 28px) top / 100% 12px no-repeat,
              repeating-linear-gradient(-45deg, var(--ink) 0 14px, var(--y-btn) 14px 28px) bottom / 100% 12px no-repeat, var(--red); }
.ib-cutin[data-kind="rush"] .ib-cutin-title { font-size: clamp(46px, 14vw, 66px); letter-spacing: .06em; line-height: 1.05; text-shadow: 4px 4px 0 var(--ink); }
.ib-cutin[data-kind="rush"] .ib-cutin-sub { font-size: 18px; margin-top: 6px; }
.ib-cutin[data-kind="rush"] .ib-cutin-sub b { color: var(--y-btn); font-size: 1.3em; margin-left: 2px; }
.ib-cutin[data-kind="rush"].is-open::before, .ib-cutin[data-kind="rush"].is-open .ib-cutin-band { animation-duration: 2.2s; }
.ib-cutin[data-kind="rush"].is-open .ib-cutin-title { animation: ib-cut-text 2.2s ease both, rush-shake .12s linear .35s 6; }
.ib-cutin[data-kind="rush"].is-open { animation: rush-flash 2.2s ease both; }
@keyframes rush-flash { 0%, 100% { background: rgba(255, 51, 8, 0); } 8% { background: rgba(255, 51, 8, .45); } 18% { background: rgba(255, 51, 8, .1); } 26% { background: rgba(255, 51, 8, .4); } 40%, 85% { background: rgba(17, 17, 17, .25); } }
@keyframes rush-shake { 25% { translate: -3px 1px; } 50% { translate: 3px -1px; } 75% { translate: -2px -1px; } }
/* ラッシュ中に来た伝票の「2倍」 */
.vip-tag.rush-tag { background: var(--ink); color: var(--y-btn); }
@media (prefers-reduced-motion: reduce) { .ib-cutin[data-kind="rush"].is-open, .ib-cutin[data-kind="rush"].is-open .ib-cutin-title { animation: none; } }

/* お皿のパンの位置: パンの種類ごと(2026-10-25 ユーザー「別々がいい」)。
   数字は design/pan-plate-tuner.html で決めて、そこの「コピー」の中身をこの下に貼りかえる。
   x=左右の真ん中(しげおの絵の幅に対する%)・y=上下の真ん中・w=大きさ(幅の%)・r=傾き。
   焼き加減(s-1 まだ生 〜 s-4 こげ)だけちがう数字は、.rs-pan.b-<パン>.s-<段階> の行で上書きする(2026-10-26 ユーザー「こげとまだ生でサイズ違う」) */
.fm-art .rs-pan { left: var(--pan-x, 53%); top: var(--pan-y, 77%); width: var(--pan-w, 56%); rotate: var(--pan-r, 0deg); }
/* 2026-10-26 ユーザーが位置合わせページで決めた数字 */
.rs-pan.b-croissant { --pan-x: 53.5%; --pan-y: 77%; --pan-w: 59.5%; --pan-r: 2deg; }
.rs-pan.b-croissant.s-1 { --pan-x: 51.5%; --pan-y: 79%; --pan-w: 62%; --pan-r: 5deg; }
.rs-pan.b-croissant.s-2 { --pan-x: 53%; --pan-y: 78.5%; --pan-w: 57.5%; --pan-r: 1deg; }
.rs-pan.b-croissant.s-3 { --pan-x: 53.5%; --pan-y: 77.5%; --pan-w: 55.5%; --pan-r: 2deg; }
.rs-pan.b-croissant.s-4 { --pan-x: 46.5%; --pan-y: 71%; --pan-w: 66%; --pan-r: -2deg; }
.rs-pan.b-france { --pan-x: 51.5%; --pan-y: 80%; --pan-w: 63.5%; --pan-r: 3deg; }
.rs-pan.b-france.s-2 { --pan-x: 51.5%; --pan-y: 80%; --pan-w: 68%; --pan-r: 3deg; }
.rs-pan.b-france.s-3 { --pan-x: 52%; --pan-y: 79%; --pan-w: 70%; --pan-r: 3deg; }
.rs-pan.b-pizza { --pan-x: 50.5%; --pan-y: 79%; --pan-w: 68.5%; --pan-r: 5deg; }
.rs-pan.b-cream { --pan-x: 52.5%; --pan-y: 77%; --pan-w: 57.5%; --pan-r: 4deg; }
.rs-pan.b-cream.s-1 { --pan-x: 51.5%; --pan-y: 78%; --pan-w: 51.5%; --pan-r: 4deg; }
.rs-pan.b-cream.s-2 { --pan-x: 51%; --pan-y: 78%; --pan-w: 63%; --pan-r: 4deg; }
.rs-pan.b-cream.s-3 { --pan-x: 50.5%; --pan-y: 78%; --pan-w: 63%; --pan-r: 4deg; }
.rs-pan.b-cream.s-4 { --pan-x: 46%; --pan-y: 77.5%; --pan-w: 60.5%; --pan-r: 7deg; }
.rs-pan.b-melon { --pan-x: 53%; --pan-y: 77%; --pan-w: 56%; --pan-r: 0deg; }
.rs-pan.b-melon.s-1 { --pan-x: 51%; --pan-y: 77%; --pan-w: 46.5%; --pan-r: 0deg; }
.rs-pan.b-melon.s-2 { --pan-x: 53%; --pan-y: 77%; --pan-w: 52.5%; --pan-r: 0deg; }
.rs-pan.b-melon.s-3 { --pan-x: 53%; --pan-y: 77%; --pan-w: 51%; --pan-r: 0deg; }
.rs-pan.b-melon.s-4 { --pan-x: 58%; --pan-y: 72%; --pan-w: 68%; --pan-r: 0deg; }

/* ======================================================================
   1人モード「ひとりでシフト」(2026-10-27)
   タイトル: 「ひとりで遊ぶ」を大きく、ルームの2つは横に並べて小さく
   結果: 順位の表の代わりに、合計と内訳の伝票
   ====================================================================== */
.title-pair { display: flex; gap: 10px; }
.title-pair .ib-btn { flex: 1; min-width: 0; }
#screen-title .ib-consent { margin-top: -6px; }
body:not(.ib-solo) .solo-only, .ib-solo .party-only { display: none; }
.ib-solo #rn-scores { display: none; }

.sb { width: 100%; max-width: 380px; margin-top: 12px; background: #FFFDF4; border: 3px solid var(--ink); border-radius: 2px; box-shadow: 3px 4px 0 var(--ink); padding: 8px 14px 10px; font-family: var(--slip); font-weight: 600; rotate: -.6deg; }
.sb-total { position: relative; display: flex; align-items: baseline; gap: 6px; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 2px solid var(--ink); }
.sb-total span { font-size: 15px; }
.sb-total b { font-family: var(--num); font-weight: 400; font-size: clamp(32px, 6dvh, 42px); color: var(--red-text); line-height: 1; margin-left: auto; }
.sb-total small { font-size: 14px; }
.sb-best { position: absolute; left: 62px; top: 50%; translate: 0 -50%; rotate: -10deg; padding: 2px 6px; border: 2.5px solid var(--red); border-radius: 6px; color: var(--red); font-family: var(--pf); font-size: 11px; font-weight: 900; line-height: 1.2; text-align: center; }
.sb-row { display: grid; grid-template-columns: 1fr auto 52px; align-items: baseline; gap: 8px; padding: 2px 0; }
.sb-row b { font-family: var(--num); font-weight: 400; text-align: right; }
.sb-row small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.sb-main { font-size: 16px; border-top: 1px dashed rgba(17, 17, 17, .35); padding-top: 4px; }
.sb-main:first-of-type { border-top: 0; }
.sb-main b { font-size: 18px; }
.sb-sub { font-size: 13px; padding-left: 14px; }
.sb-sub b { font-size: 14px; }
.sb-sub.zero { opacity: .45; }
.sb-note { margin: 4px 0 0; font-size: 12px; color: var(--muted); word-break: keep-all; overflow-wrap: anywhere; }
.sb-note.red { color: var(--red-text); }
.sb-note b { font-family: var(--num); font-weight: 400; margin: 0 2px; }
#fn-body.anim.solo .sb { animation: rise-in .45s ease-out 1.9s both; }
#fn-body.anim.solo .sb-best { animation: hanko .4s cubic-bezier(.2, 1.6, .4, 1) 2.3s both; }
#fn-body.anim.solo .fn-boss { animation-delay: 2.6s; }
@media (prefers-reduced-motion: reduce) { #fn-body.anim.solo .sb, #fn-body.anim.solo .sb-best { animation: none; } }

/* ─── 週間ランキング(1人モードの結果・タイトルから開く窓。2026-10-28) ─── */
.title-links { display: flex; justify-content: center; gap: 4px 14px; flex-wrap: wrap; }
.rk-box { width: 100%; max-width: 380px; margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rk-box:empty { display: none; }
.rk-pre { margin: 0; font-family: var(--slip); font-weight: 600; font-size: 16px; text-align: center; }
.rk-pre b, .rk-done b { font-family: var(--num); font-weight: 400; font-size: 24px; color: var(--red-text); margin: 0 2px; }
.rk-pre small { display: block; font-size: 12px; color: var(--muted); }
/* 入力欄の上・ボタンの下(横に並べると、狭い画面で入力欄がつぶれた) */
.rk-form { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.rk-form .rk-name { width: 100%; font-size: 16px; padding: 9px 12px; text-align: center; }
.rk-form .ib-btn { white-space: nowrap; }
.rk-err { margin: 0; font-size: 13px; font-weight: 700; color: var(--red); text-align: center; }
.rk-warn, .rk-why { margin: 0; font-size: 11px; color: var(--muted); text-align: center; }
.rk-done { margin: 0; font-family: var(--slip); font-weight: 600; font-size: 17px; text-align: center; }
.rk-open { font-size: 13px; color: var(--ink); }
.rk-modal { max-width: 380px; }
.rk-sub { margin: -6px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.rk-list { list-style: none; margin: 0; padding: 0; max-height: min(56dvh, 460px); overflow-y: auto; border-top: 2px solid var(--ink); font-family: var(--slip); font-weight: 600; }
.rk-list li { display: grid; grid-template-columns: 44px 30px 1fr auto; align-items: center; gap: 6px; padding: 5px 4px; border-bottom: 1px dashed rgba(17, 17, 17, .35); }
.rk-list li.me { background: var(--y-light); }
.rk-list .rk { font-family: var(--num); font-weight: 400; font-size: 17px; text-align: right; }
.rk-list .rk small, .rk-list .pt small { font-family: var(--slip); font-size: 11px; }
.rk-list li.top1 .rk { color: var(--red-text); font-size: 21px; }
.rk-list .pan { width: 30px; height: 26px; object-fit: contain; }
.rk-list .nm { min-width: 0; overflow-wrap: anywhere; font-size: 15px; line-height: 1.25; }
.rk-list .nm i { font-style: normal; margin-left: 6px; padding: 0 4px; border: 1.5px solid var(--red); border-radius: 3px; color: var(--red); font-family: var(--pf); font-size: 10px; font-weight: 900; vertical-align: 2px; }
.rk-list .nm small { display: block; font-size: 11px; color: var(--muted); }
.rk-list .pt { font-family: var(--num); font-weight: 400; font-size: 18px; white-space: nowrap; }
.rk-list .rk-empty, .rk-list .rk-gap { display: block; text-align: center; color: var(--muted); font-size: 14px; padding: 14px 4px; }
.rk-list .rk-gap { padding: 0; border-bottom: 0; }

/* ─── エンディング(閉店後の1枚。結果発表のあと最初の1回だけ・タップで閉じる) ─── */
.ending { position: fixed; inset: 0; z-index: 52; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; background: rgba(17, 17, 17, .78); cursor: pointer; animation: ending-in .6s ease-out both; }
.ending[hidden] { display: none; }
.ending img { width: min(100%, 520px, 78dvh); aspect-ratio: 1; border: 3px solid var(--ink); border-radius: 6px; background: var(--white); box-shadow: 0 0 0 3px var(--white); animation: rise-in .6s ease-out .15s both; }
.ending-tap { margin: 0; color: var(--white); font-size: 13px; font-weight: 700; animation: rise-in .4s ease-out 1.2s both; }
@keyframes ending-in { from { opacity: 0; } to { opacity: 1; } }
.ending-again { align-self: center; background: none; border: 0; padding: 4px 8px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ending-again[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .ending, .ending img, .ending-tap { animation: none; } }
