
:root {
  --bg: #fff6dc;
  --panel: #ffffff;
  --ink: #1f2433;
  --sub: #6b6f7d;
  --accent: #ff5a4e;
  --accent-ink: #ffffff;
  --accent2: #ffc933;
  --teal: #2ec4b6;
  --line: #1f2433;
  --stage: #2b2622;
  --cream: #fff6dc;
  --font: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
  --en: "Barlow Condensed", "Noto Sans JP", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; overscroll-behavior: none; }
body {
  margin: 0; color: var(--ink); font-family: var(--font); font-weight: 700;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(31,36,51,.07) 1.2px, transparent 1.4px);
  background-size: 10px 10px;
}
.app {
  max-width: 480px; margin: 0 auto;
  padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 2px 8px; }
.title {
  margin: 0; font-size: 19px; letter-spacing: .02em; padding: 3px 12px 4px;
  background: var(--accent2); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transform: skewX(-8deg);
}
.title > span { display: inline-block; transform: skewX(8deg); }
.site { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--sub); font-size: 13px; text-decoration: none; }
.pp-logo { width: 24px; height: 24px; flex: none; }
/* ロゴはアンバサダーのふにゃもらけの顔（画像はここに1回だけ埋め込む。形を変えない。公開の道具も同じ名前で探す） */
.pp-funya { display: inline-block; background: url(data:image/webp;base64,UklGRkYOAABXRUJQVlA4WAoAAAAQAAAAXwAAXwAAQUxQSCkEAAABoLVtmyFJntEbEd/ats2xZ87Wtm3btm3bxpFte2xrNayO+L73oHt7qjK/iJgAtDgkAYCFN9zpnIc/GDzjv/mNxvzZM0Z9/tyV+2+1GABIQp2D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yMpG7aZWSN8ftm8O2U+BfkHk9JuYjl+sdXaHGw/94hQFHg/+0GVSXDX6ZbUnnzfajGa8WVN7d+nrSoiqHn4FmtmZMUjiKBgq4Ar98mnhpfMP4eMYKGG7Cof/y74uGmPC19vS/jkW6Orrm6PQ+DgvWJ28iFs+4EXroxYr2kBJA8GzFFRpYl02rLYTwet4y8W5vjSzeNQSNPMVy5XmroV/7jexzZRrGVyD2bbNVlQPCc3OKuUQcVNrOhACsu+DmYWTGrIIcO1p19admBgxq+I16PmBkbG9ZNAgw/2ZDd8s6tnv5zG9LwV/JT/nxQvTgN8t/JnSENIc0cXAnuOi1HuTxyUgAgkDmPqu9lJQ4lj1xpp5lf5W/pEAnjvtwNDaB/aLdD+zCDzF42Dx6vwAAAA=) center/contain no-repeat; }

/* ---- 舞台（3D と HUD を重ねる） ---- */
.stage {
  position: relative; overflow: hidden; background: var(--stage);
  border: 3px solid var(--ink); border-radius: 6px; box-shadow: 4px 4px 0 var(--ink);
  user-select: none; -webkit-user-select: none; touch-action: none;
}
#gl, #cv { display: block; width: 100%; aspect-ratio: 2 / 3; }
#cv { position: absolute; left: 0; top: 0; pointer-events: none; }
.layer { position: absolute; inset: 0; pointer-events: none; }
.layer button, .layer .hit { pointer-events: auto; }

/* ポップな部品 */
.skew { transform: skewX(-9deg); }
.skew > * { display: inline-block; transform: skewX(9deg); }
.pbtn {
  font: inherit; color: var(--ink); background: var(--accent2); border: 3px solid var(--ink); border-radius: 4px;
  box-shadow: 4px 4px 0 var(--ink); padding: 0 16px; min-height: 48px; font-size: 17px; cursor: pointer;
  transform: skewX(-9deg); touch-action: manipulation;
}
.pbtn > span { display: inline-block; transform: skewX(9deg); }
.pbtn:active { box-shadow: 0 0 0 var(--ink); translate: 4px 4px; }
.pbtn.red { background: var(--accent); color: #fff; }
.pbtn.teal { background: var(--teal); color: var(--ink); }
.pbtn.white { background: #fff; }
.pbtn:disabled { opacity: .45; }
.en { font-family: var(--en); font-style: italic; font-weight: 800; letter-spacing: .06em; }

/* 工程の札 */
.steps { position: absolute; left: 6px; right: 6px; top: 8px; display: flex; gap: 3px; }
.steps .st {
  font-size: 10.5px; padding: 2px 5px 3px; background: rgba(255,255,255,.88); color: var(--sub);
  border: 2px solid var(--ink); transform: skewX(-9deg);
}
.steps .st > b { display: inline-block; transform: skewX(9deg); font-weight: 700; }
.steps .st.on { background: var(--accent2); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.steps .st.done { background: var(--teal); color: var(--ink); }
.tbar { position: absolute; left: 42px; right: 10px; top: 46px; height: 10px; border: 2px solid var(--ink); background: repeating-linear-gradient(45deg, #fff 0 6px, #e9e4d8 6px 12px); transform: skewX(-9deg); }
.tbar > i { display: block; height: 100%; width: 0; background: var(--accent2); }
.tbar.low > i { background: var(--accent); }
/* 時間のゲージの左の時計（針が残り時間にあわせて回る。残りが少ないと赤くゆれる） */
.tclock { position: absolute; left: 10px; top: 37px; width: 27px; height: 27px; filter: drop-shadow(2px 2px 0 var(--ink)); }
.tclock svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tclock .face { fill: #fff; stroke: var(--ink); stroke-width: 2.6; }
.tclock .left { fill: var(--accent2); }
.tclock .hand { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; transform-origin: 14px 15px; }
.tclock .top { fill: var(--ink); }
.tclock.low .left { fill: var(--accent); }
.tclock.low svg { animation: tshake .5s ease-in-out infinite; }
@keyframes tshake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
.chip {
  position: absolute; background: #fff; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  padding: 3px 10px 4px; font-size: 13px; transform: skewX(-9deg); white-space: nowrap;
}
.chip > * { display: inline-block; transform: skewX(9deg); }
.chip .big { font-family: var(--en); font-style: italic; font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.temp { left: 10px; top: 58px; text-align: left; transition: opacity .2s; }
.temp .ok { color: #0f8a7e; }
.temp .ring { display: block; height: 6px; margin-top: 3px; border: 2px solid var(--ink); background: #eee; }
.temp .ring > i { display: block; height: 100%; width: 0; background: var(--teal); }
.left { left: 10px; top: 40px; }

/* 工程の指示（各工程のはじめに大きく出す。タップで飛ばせる。帯が左から入って右へぬける） */
.cue { position: absolute; inset: 0; z-index: 7; display: flex; align-items: center; justify-content: center; background: rgba(20, 16, 12, .38); cursor: pointer; }
.cue.out { pointer-events: none; }
.cue-band { position: relative; width: calc(100% + 24px); margin: 0 -12px; padding: 14px 26px 16px; background: var(--accent2); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); box-shadow: 0 7px 0 var(--ink); transform: skewY(-4deg); }
.cue.show { animation: cueFade .2s ease-out both; }
.cue.show .cue-band { animation: cueIn .38s cubic-bezier(.3, 1.4, .5, 1) both; }
.cue.out { animation: cueFade .26s ease-in reverse both; }
.cue.out .cue-band { animation: cueOut .26s ease-in both; }
@keyframes cueFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cueIn { from { transform: skewY(-4deg) translateX(-110%); } to { transform: skewY(-4deg) translateX(0); } }
@keyframes cueOut { from { transform: skewY(-4deg) translateX(0); } to { transform: skewY(-4deg) translateX(110%); } }
.cue-in { transform: skewY(4deg); text-align: center; }
.cue-step { display: inline-block; padding: 2px 10px; background: var(--ink); color: #fff; font-family: var(--en); font-style: italic; font-weight: 800; font-size: 15px; letter-spacing: .12em; transform: skewX(-10deg); }
.cue-step span { display: inline-block; transform: skewX(10deg); }
.cue-text { display: block; margin: 6px 0 4px; font-size: 40px; line-height: 1.15; color: var(--ink); white-space: nowrap; overflow: hidden; text-shadow: 3px 3px 0 #fff; }
.cue-sub { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.cue-skip { position: absolute; right: 10px; bottom: 10px; color: #fff; font-size: 12px; opacity: .85; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
@media (prefers-reduced-motion: reduce) { .cue.show, .cue.show .cue-band, .cue.out .cue-band { animation: none; } }

/* 工程の点数 */
.score {
  position: absolute; left: 50%; top: 24%; width: 270px; margin-left: -135px; text-align: center;
  background: var(--accent2); border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 8px 10px 10px;
  transform: rotate(-3deg) scale(.5); opacity: 0; transition: transform .3s cubic-bezier(.3,1.7,.5,1), opacity .2s;
}
.score.show { transform: rotate(-3deg) scale(1); opacity: 1; }
.score .lab { font-size: 15px; }
.score .num { font-family: var(--en); font-style: italic; font-weight: 800; font-size: 64px; line-height: .95; letter-spacing: .02em; }
.score .num small { font-family: var(--font); font-style: normal; font-size: 18px; margin-left: 4px; }
.score .cmt { font-size: 14px; background: #fff; border: 2px solid var(--ink); margin-top: 6px; padding: 4px 6px; line-height: 1.4; }

/* 操作ボタン（下に置きすぎない） */
.acts { position: absolute; right: 12px; top: 47%; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.acts.top { top: 56px; }
.acts.simmer { top: 0; bottom: 0; right: 12px; width: 0; }
.acts.simmer .pbtn { position: absolute; right: 0; white-space: nowrap; }
.acts.simmer [data-act=stop] { top: 8.6%; min-height: 44px; font-size: 16px; padding: 0 14px; }
.acts.simmer [data-act=taste] { top: 41.5%; min-height: 44px; font-size: 16px; padding: 0 20px; }
.acts.top .pbtn { min-height: 40px; font-size: 15px; padding: 0 14px; }
.hint {
  position: absolute; left: 50%; bottom: 108px; transform: translateX(-50%); white-space: nowrap;
  font-size: 13px; color: #fff; background: rgba(31,36,51,.78); padding: 4px 10px; border-radius: 3px;
}
.bubble {
  position: absolute; transform: translate(-50%, -100%); background: #fff; border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink); padding: 3px 9px 4px; font-size: 14px; white-space: nowrap; border-radius: 4px;
}
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -10px; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--ink); }
.bubble.love { background: var(--accent2); }
.bubble.bad { background: #dff4f1; }
.react { position: absolute; transform: translate(-50%, -50%); font-size: 18px; color: var(--ink); background: #fff; border: 3px solid var(--ink); padding: 1px 8px 3px; box-shadow: 3px 3px 0 var(--ink); white-space: nowrap; }

/* 献立えらび */
.menu { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 8px 8px; pointer-events: none; }
.menu > * { pointer-events: auto; }
.menu .head { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 10px; }
.menu .head .lab { align-self: flex-start; }
.menu .lab { font-size: 13px; color: #fff; background: var(--ink); padding: 3px 9px; transform: skewX(-9deg); }
.menu .lab > span { display: inline-block; transform: skewX(9deg); }
.menu .go { font-size: 21px; min-height: 58px; min-width: 230px; padding: 0 26px; background: var(--accent); color: #fff; box-shadow: 5px 5px 0 var(--ink); }
.panel { background: var(--cream); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); border-radius: 4px; padding: 8px 8px 10px; }
.tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-bottom: 8px; }
.tab {
  font: inherit; font-size: 14px; min-height: 36px; padding: 0; border: 2px solid var(--ink); background: #fff; color: var(--ink);
  transform: skewX(-9deg); border-radius: 3px; cursor: pointer;
}
.tab > span { display: inline-block; transform: skewX(9deg); }
.tab.on { background: var(--accent2); box-shadow: 2px 2px 0 var(--ink); }
.items { display: flex; flex-wrap: wrap; gap: 6px; min-height: 76px; align-content: flex-start; }
.items .sec { width: 100%; font-size: 11px; color: var(--sub); margin: 2px 0 -2px; }
.it {
  font: inherit; font-size: 13px; min-height: 34px; padding: 0 9px; background: #fff; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 3px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
}
.it.on { background: var(--teal); box-shadow: 2px 2px 0 var(--ink); }
.it.on2 { background: var(--accent); color: #fff; box-shadow: 2px 2px 0 var(--ink); }
.it .lv { font-size: 10px; letter-spacing: -1px; }

/* 結果（盤面に重ねる。下の段の右寄りはふにゃもらけの場所なので空ける） */
.res-ov { position: absolute; inset: 0; pointer-events: none; }
.res-ov > * { pointer-events: auto; }
.res-head {
  position: absolute; left: 12px; right: 104px; top: 12px; background: #fff; border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  padding: 6px 10px 8px; transform: rotate(-2deg);
}
.res-head .dish { font-size: 12px; color: var(--sub); }
.res-head .tier { font-size: 22px; line-height: 1.25; }
.res-head .pts { font-family: var(--en); font-style: italic; font-weight: 800; font-size: 40px; line-height: 1; color: var(--accent); }
.res-head .pts small { font-family: var(--font); font-style: normal; font-size: 14px; color: var(--ink); margin-left: 3px; }
.last { position: absolute; right: 10px; top: 14px; width: 88px; text-align: center; }
.last img { display: block; width: 88px; height: 88px; border-radius: 50%; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); background: #333; object-fit: cover; }
.last span { display: inline-block; margin-top: 4px; font-size: 11px; background: var(--ink); color: #fff; padding: 1px 6px; transform: skewX(-9deg); }
.res-stats { position: absolute; left: 12px; right: 12px; top: 128px; display: flex; gap: 6px; flex-wrap: wrap; }
.res-stats .s { background: var(--accent2); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 2px 8px 3px; font-size: 12px; transform: skewX(-9deg); }
.res-stats .s > span { display: inline-block; transform: skewX(9deg); }
.res-stats .s b { font-family: var(--en); font-style: italic; font-weight: 800; font-size: 20px; margin-left: 3px; }
.res-stats .s.bad { background: #fff; }
.res-btns { position: absolute; left: 12px; right: 12px; top: 186px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.res-btns .post { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; text-decoration: none; min-height: 52px; font-size: 18px; background: var(--ink); color: #fff; }
.res-btns .pbtn { font-size: 16px; }
.replay-ui { position: absolute; right: 10px; top: 40px; pointer-events: auto; }
.replay-tag { position: absolute; left: 10px; top: 40px; font-size: 12px; color: #fff; background: var(--accent); border: 2px solid var(--ink); padding: 2px 8px; transform: skewX(-9deg); }

.msg { min-height: 1.5em; margin: 8px 4px 0; color: var(--sub); font-size: 14px; }
.msg.err { color: #c23b22; }
.result { margin-top: 6px; }
.card { background: var(--panel); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); border-radius: 4px; padding: 10px; }
.card img { display: block; width: 100%; height: auto; border-radius: 3px; }
.share-text { margin: 10px 4px 2px; white-space: pre-wrap; word-break: break-all; font: inherit; font-size: 14px; line-height: 1.6; user-select: text; -webkit-user-select: text; }
.actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
.actions .pbtn { width: 100%; }
.foot { margin-top: 24px; text-align: center; font-size: 12px; }
.foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--sub); font-size: 14px; text-decoration: none; }
.foot .pp-logo { width: 28px; height: 28px; }
.loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; background: var(--stage); }

/* 棚（ドラッグして入れる） */
.bins { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; pointer-events: none;
  border: 3px solid transparent; border-radius: 6px; padding: 0; background: rgba(255,255,255,0); box-shadow: 0 0 0 rgba(31,36,51,0);
  transition: bottom .32s cubic-bezier(.3, 1.35, .5, 1), left .32s cubic-bezier(.3, 1.35, .5, 1), right .32s cubic-bezier(.3, 1.35, .5, 1), padding .25s, background-color .2s, border-color .2s, box-shadow .2s; }
/* 切る：野菜をえらぶときは、まん中にシュッと出す */
.bins.center { bottom: 22%; left: 22px; right: 22px; padding: 46px 10px 14px; gap: 8px; background: var(--panel); border-color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.bins .bttl { display: none; }
.bins.center .bttl { display: block; position: absolute; left: 0; right: 0; top: 8px; text-align: center; pointer-events: none; }
.bins .bttl b { display: inline-block; transform: skewX(-10deg); background: var(--accent2); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 1px 12px 2px; font-size: 16px; }
.bins .bttl b span { display: inline-block; transform: skewX(10deg); }
.bins .bttl i { font-style: normal; font-size: 11px; color: var(--sub); margin-left: 8px; }
.bins.center .bin { flex: 0 1 calc(33.3% - 6px); min-height: 64px; font-size: 15px; border-width: 3px; box-shadow: 3px 3px 0 var(--ink); }
.bins.center .bin i { font-size: 11px; }
.bin .vd { display: none; }
.bin.wide { flex: 1 1 100%; min-height: 52px; font-size: 17px; border-width: 3px; box-shadow: 3px 3px 0 var(--ink); transform: skewX(-8deg); }
.bin.wide > b { display: inline-block; transform: skewX(8deg); }
.bin.wide.go { background: var(--accent2); }
.bin.wide.next { flex-basis: 100%; min-height: 48px; margin-top: 4px; background: var(--accent); color: #fff; font-size: 16px; }
.bins:not(.center) .bin.wide { margin: 0 30px 0 0; flex: 1 1 0; }
.bins:not(.center) .bin.wide:only-child { margin: 0 30px; }
.bin.gather { flex: 0 0 auto; min-width: 74px; min-height: 52px; margin-left: 12px; border-width: 3px; box-shadow: 3px 3px 0 var(--ink); font-size: 15px; background: #fff; }
.bins.center .bin .vd { display: block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.7), transparent 45%), var(--c); margin-bottom: 3px; }
.bin {
  pointer-events: auto; font: inherit; font-size: 11.5px; color: var(--ink); min-height: 42px; min-width: 0; flex: 0 1 calc(20% - 4px); padding: 2px 3px; white-space: nowrap;
  background: #fff; border: 2px solid var(--ink); border-radius: 4px; box-shadow: 2px 2px 0 var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; touch-action: none; cursor: grab;
}
.bin i { font-style: normal; font-size: 10px; color: var(--sub); }
.bin.base { background: #ffe3d2; }
.bin.hid { background: #fff1bf; }
.bin.odd { background: #ecdcff; }
.bin.on { background: var(--accent2); }
.bin:disabled { opacity: .35; }
.bin.full { opacity: .4; box-shadow: none; }
.bin.tap { animation: binTap .22s ease-out; }
@keyframes binTap { 0% { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); } 100% { transform: none; } }
.ghost { position: absolute; transform: translate(-50%, -130%); pointer-events: none; background: var(--accent2); border: 3px solid var(--ink); padding: 2px 9px 3px; font-size: 13px; box-shadow: 3px 3px 0 var(--ink); white-space: nowrap; z-index: 6; }
.ghost.ok { background: var(--teal); }
.platebox { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 8px 8px; pointer-events: none; }
.platebox > * { pointer-events: auto; }
/* トレーにのせる：いま選ぶものだけを出す */
.pdots { position: absolute; left: 6px; right: 6px; top: 34px; display: flex; gap: 3px; pointer-events: none; }
.pdots .pd { flex: 1 1 0; min-width: 0; font-size: 10px; line-height: 1.15; text-align: center; padding: 3px 2px; background: rgba(255,255,255,.85); color: var(--sub); border: 2px solid var(--ink); transform: skewX(-9deg); white-space: nowrap; overflow: hidden; }
.pdots .pd em { display: block; font-style: normal; font-size: 9px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.pdots .pd.on { background: var(--accent2); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); font-weight: 700; }
.pdots .pd.done { background: var(--teal); color: var(--ink); }
.ppanel { padding: 8px 8px 8px; }
.phd { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 6px; }
.pttl { font-size: 15px; }
.pttl b { font-size: 19px; margin-right: 2px; }
.phd i { font-style: normal; font-family: var(--en); font-weight: 800; font-style: italic; font-size: 15px; color: var(--sub); }
.pgi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; max-height: 172px; overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain; padding: 0 3px 3px 0; }
.pgrid.c1 .pgi { grid-template-columns: 1fr; }
.pc {
  position: relative; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 4px; box-shadow: 2px 2px 0 var(--ink);
  min-height: 37px; padding: 2px 3px 10px; display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer; touch-action: manipulation;
}
.pgrid.c1 .pc { min-height: 42px; padding-bottom: 4px; }
.pc b { font-size: 11.5px; line-height: 1.15; font-weight: 700; word-break: keep-all; overflow-wrap: anywhere; }
.pgrid.c1 .pc b { font-size: 15px; }
.pc .era { position: absolute; right: 3px; bottom: 2px; font-style: normal; font-size: 9px; line-height: 1; padding: 1px 3px; border-radius: 2px; color: #fff; }
.pgrid.c1 .pc .era { bottom: 50%; transform: translateY(50%); right: 8px; font-size: 10px; }
.era.s { background: #8a5a3a; } .era.h { background: #3a7ac8; } .era.r { background: #d0406a; } .era.x { background: #7a3ac8; }
.pc.on { background: var(--accent2); box-shadow: 0 0 0 var(--ink); translate: 2px 2px; }
.pc.none b { color: var(--sub); }
.pc.lock { background: #e4e0d8; box-shadow: none; border-style: dashed; cursor: default; }
.pc.lock b { color: #9a948a; }
.era.k { background: none; font-size: 10px; }
.bin.lock { background: #ddd6e8; border-style: dashed; box-shadow: none; cursor: default; }
.bin.lock b { color: #8a8494; }
.toast { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 9; max-width: calc(100% - 32px); background: var(--ink); color: #fff; font-size: 13px; line-height: 1.45; padding: 7px 12px; border-radius: 4px; text-align: center; pointer-events: none; }
.toast.pop { animation: tpop .22s ease-out; }
.toast.big { top: 74%; white-space: pre-line; width: max-content; font-size: 18px; padding: 10px 16px; background: var(--accent); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
@keyframes tpop { from { transform: translate(-50%, -50%) scale(.85); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.mis-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 8px; font: inherit; font-size: 13px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 4px; box-shadow: 2px 2px 0 var(--ink); padding: 5px 10px; cursor: pointer; }
.mis-btn b { font-family: var(--en); font-style: italic; font-weight: 800; font-size: 15px; margin-left: auto; margin-right: 8px; }
.mis-ov { position: absolute; inset: 10px; z-index: 8; display: flex; }
.mis-ov .panel { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.mis-ov .mhd { display: flex; align-items: center; justify-content: space-between; font-size: 18px; margin: 2px 2px 8px; }
.mis-ov .mhd .pbtn { min-height: 36px; font-size: 14px; padding: 0 12px; }
.mis-ov ul { list-style: none; margin: 0; padding: 0 2px 0 0; overflow-y: auto; flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; }
.mis-ov li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.35; padding: 6px 4px; border-bottom: 1px dashed #c8bfae; }
.mis-ov li > b { flex: 0 0 auto; width: 20px; text-align: center; font-size: 15px; }
.mis-ov li span { display: block; font-size: 11px; color: var(--sub); }
.mis-ov li.ok { color: var(--sub); }
.mis-ov li.ok > b { color: #1d9a8e; }
.res-mis { position: absolute; left: 12px; right: 12px; top: 304px; max-height: 116px; overflow-y: auto; background: #fff; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 4px 9px 5px; font-size: 11.5px; line-height: 1.32; }
.res-mis.got { background: #fff6d0; }
.resume { background: #fff; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); border-radius: 4px; padding: 8px 10px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
.resume > span { font-size: 13px; }
.resume > div { display: flex; gap: 10px; }
.resume .pbtn { min-height: 42px; font-size: 16px; padding: 0 14px; }
.resume .pbtn.red { flex: 1; }
.bd { background: #fff; border: 3px solid var(--ink); border-radius: 6px; box-shadow: 4px 4px 0 var(--ink); padding: 10px 12px 12px; margin: 14px 0 16px; }
.bd h3 { margin: 0 0 6px; font-size: 15px; }
.bd .row { display: grid; grid-template-columns: 74px 1fr auto; gap: 2px 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed #d8d0bf; }
.bd .row b { font-size: 14px; }
.bd .row b i { display: block; font-style: normal; font-size: 10px; color: var(--sub); font-weight: 400; }
.bd .row span { font-size: 11.5px; color: var(--sub); line-height: 1.4; }
.bd .row em { font-style: italic; font-family: var(--en); font-weight: 800; font-size: 24px; line-height: 1; text-align: right; }
.bd .row em small { font-family: var(--font); font-style: normal; font-size: 11px; margin-left: 1px; }
.bd .row em.full { color: var(--accent); }
.bd .row span small.near { display: inline-block; margin-top: 2px; font-size: 11px; color: #c0561a; font-weight: 700; }
.bd .calc { margin-top: 8px; font-size: 12.5px; line-height: 1.7; }
.bd .calc div { display: flex; justify-content: space-between; gap: 8px; }
.bd .calc div span:last-child { font-variant-numeric: tabular-nums; }
.bd .calc .tot { border-top: 2px solid var(--ink); margin-top: 3px; padding-top: 3px; font-size: 15px; }
.bd .calc .tot span:last-child { color: var(--accent); }
.dbg { margin: 14px 0 0; padding: 8px 10px 10px; border: 2px dashed #8a8fa0; border-radius: 6px; background: #f4f1e6; }
.dbg-hd { font-size: 12px; color: var(--sub); margin-bottom: 6px; }
.dbg-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.dbg-row button { font: inherit; font-size: 12.5px; min-height: 40px; padding: 0 2px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 4px; box-shadow: 2px 2px 0 var(--ink); cursor: pointer; white-space: nowrap; }
.dbg-row button:active { transform: translate(2px, 2px); box-shadow: none; }
.dbg-row button.on { background: var(--accent2); }
.dbg-ft { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 11px; color: var(--sub); line-height: 1.4; }
.dbg-ft button { flex: none; font: inherit; font-size: 12px; min-height: 30px; padding: 0 10px; background: var(--ink); color: #fff; border: 0; border-radius: 4px; cursor: pointer; }
.unl-ov { position: absolute; left: 10px; right: 10px; top: 10px; bottom: 118px; z-index: 12; display: flex; }
.unl-card { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; min-height: 0; background: #fff3c4; border: 3px solid var(--ink); border-radius: 4px; box-shadow: 5px 5px 0 var(--ink); padding: 14px 12px 10px; overflow: hidden;
  background-image: radial-gradient(rgba(240,90,60,.13) 1.4px, transparent 1.6px); background-size: 12px 12px; }
.unl-card.pop { animation: upop .42s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes upop { from { transform: scale(.6) rotate(-3deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.unl-new { position: absolute; z-index: 2; right: -6px; top: -10px; transform: rotate(8deg); font-style: italic; font-family: var(--en); font-weight: 800; font-size: 16px; color: #fff; background: var(--accent); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); padding: 1px 9px; border-radius: 3px; }
.unl-hd { font-size: 26px; font-weight: 800; color: var(--accent); -webkit-text-stroke: 1px var(--ink); letter-spacing: .02em; margin-top: 2px; }
.unl-mis { font-size: 14px; font-weight: 700; margin-top: 2px; text-align: center; }
.unl-mid { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.unl-items { width: 100%; display: flex; justify-content: center; align-items: flex-start; gap: 12px; padding-top: 6px; }
.unl-items .ui { position: relative; flex: 0 1 210px; min-width: 0; display: flex; flex-direction: column; align-items: center; opacity: 0; animation: uin .4s cubic-bezier(.2, 1.5, .4, 1) forwards; }
.unl-items.two .ui { flex-basis: 50%; }
.unl-items.two .ui-img { aspect-ratio: 1; }
@keyframes uin { from { opacity: 0; transform: translateY(14px) scale(.8); } to { opacity: 1; transform: none; } }
.ui-img { position: relative; width: 100%; aspect-ratio: 1.3; border: 3px solid var(--ink); border-radius: 4px; background: #fff; overflow: hidden; box-shadow: 3px 3px 0 var(--ink); }
.ui-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ui-img .rays { position: absolute; left: 50%; top: 50%; width: 220%; aspect-ratio: 1; transform: translate(-50%, -50%); background: repeating-conic-gradient(#ffd84a 0 12deg, #fff7d0 12deg 24deg); animation: rays 9s linear infinite; }
@keyframes rays { to { transform: translate(-50%, -50%) rotate(360deg); } }
.ui-img .sb { position: absolute; left: 50%; top: 50%; width: 58%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid var(--ink); background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), transparent 32%), var(--c); box-shadow: 3px 3px 0 var(--ink); display: flex; align-items: center; justify-content: center; }
.ui-img .sb em { font-style: normal; font-weight: 800; font-size: 15px; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke; text-align: center; line-height: 1.1; padding: 0 4px; }
.unl-items .ui > b { font-size: 21px; font-weight: 800; margin-top: 7px; text-align: center; line-height: 1.15; }
.unl-items.two .ui > b { font-size: 17px; }
.unl-items .ui > span { font-size: 11px; color: var(--sub); margin-top: 1px; }
.unl-sub { font-size: 15px; font-weight: 700; margin-top: 12px; }
.unl-ft { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.unl-ft .unl-pg { font-family: var(--en); font-style: italic; font-weight: 800; font-size: 15px; color: var(--sub); min-width: 40px; }
.unl-ft .pbtn { min-height: 44px; min-width: 140px; font-size: 17px; }
.res-mis .mt { display: block; font-size: 14px; color: var(--accent); margin-bottom: 1px; }
.res-mis .mi + .mi { margin-top: 2px; }
.res-mis .mt small { font-size: 11px; color: var(--sub); font-weight: 400; margin-left: 4px; }
.res-mis .mi span { color: var(--sub); font-size: 11px; }
.res-mis .mi em { font-style: normal; font-weight: 700; color: var(--ink); }
.res-mis .nx { color: var(--ink); }
.pnav { display: flex; gap: 8px; margin-top: 8px; }
.pnav .pbtn { min-height: 42px; font-size: 16px; }
.pnav .pbtn.white { flex: 0 0 auto; padding: 0 12px; }
.pnav .pbtn.red { flex: 1 1 auto; }
.intro { font-size: 13px; line-height: 1.6; }
.intro b { display: block; font-size: 14px; margin-bottom: 2px; }
.intro p { margin: 0; color: var(--sub); }
[hidden] { display: none !important; }
/* ---- 焼きそばで足したもの ---- */
.stage { background: #140c1e; }
.meter { left: 10px; top: 70px; }
.meter .ring { display: block; width: 104px; height: 8px; margin-top: 3px; border: 2px solid var(--ink); background: #eee; }
.meter .ring > i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .15s; }
.meter .ring.warn > i { background: var(--accent); }
.bins:not(.center) .bin.tool { flex: 0 1 calc(33% - 6px); min-height: 54px; font-size: 15px; border-width: 3px; box-shadow: 3px 3px 0 var(--ink); }
.bins:not(.center) .bin.tool i { font-size: 11px; }
.bin.top.on { background: var(--teal); box-shadow: 0 0 0 var(--ink); translate: 2px 2px; }
.res-stats .s.good { background: var(--teal); }
.meter.m2 { top: 112px; }
.bins.yaku .bin.tool { flex: 0 1 calc(20% - 5px); min-height: 48px; font-size: 12px; padding-left: 0; padding-right: 0; }
.bins.yaku .bin .vd { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ink); background: var(--c); margin-right: 3px; vertical-align: -1px; }
.bins.yaku .bin.tool b { white-space: nowrap; }
.bins.tops .bin.tool { flex: 0 1 calc(20% - 5px); min-height: 52px; font-size: 13px; padding-left: 0; padding-right: 0; }
.bins.tops .bin.tool b { white-space: nowrap; letter-spacing: -.04em; }
.hint.low { bottom: 12px; }
.hint.hi { bottom: 128px; }
.bins.center .bin:not(.wide) { flex: 0 1 calc(25% - 6px); min-height: 56px; font-size: 13px; padding-left: 0; padding-right: 0; }
.bins.center .bin .vd { width: 14px; height: 14px; }


/* ぽかぽかゲームで足した見た目（tools/build.mjs） */
/* 太さが1つしかない書体（Dela Gothic One など）に、ブラウザが太字を作ると字がつぶれる。作らせない */
:root{font-synthesis:none}
/* 「ぽかぽかゲーム」へのリンク */
.site{display:inline-flex;align-items:center;gap:8px;font-size:16px;font-weight:900;color:var(--ink,#1F2433);text-decoration:none;min-height:40px}
.site .pp-logo{width:32px;height:32px;flex:none}
/* 見出しの右の小さいリンク（Web 版の見た目） */
.bar .site{gap:6px;min-height:0;font-size:13px;font-weight:700;color:var(--sub)}
.bar .site .pp-logo{width:24px;height:24px}
/* 結果画面のふにゃもらけの位置（盤面の右下。結果の重ね表示より手前） */
.stage > .funya-react{right:10px;bottom:10px;z-index:4}
/* 結果のボタン（tools/build.mjs）: 大きい「画像シェア」（画像つき）と小さい「Xでポスト」（文だけ）。その下に もう一度・リプレイ、画像を保存・他のゲームで遊ぶ */
.res-btns .res-row1{grid-column:1 / -1;display:grid;grid-template-columns:1.6fr 1fr;gap:10px}
.res-btns .res-row1 .pbtn{min-height:52px}
.res-btns .res-row1 #btnShare{font-size:19px;background:var(--ink);color:#fff}
.res-btns .xpost{display:flex;align-items:center;justify-content:center;text-decoration:none;background:#fff;color:var(--ink);font-size:14px;padding:0 2px;white-space:nowrap;line-height:1.15}
.res-btns .xpost>span{display:inline-flex;flex-direction:column;align-items:center}
.res-btns .xpost small{font-size:9px;color:var(--sub)}
/* Android のアプリの中（X など）: 画像は付かないので、「Xでポスト」（文だけ）を大きく1つだけ */
.res-btns.text-only .res-row1{grid-template-columns:1fr}
.res-btns.text-only #btnShare,.res-btns.text-only .xpost small{display:none}
.res-btns.text-only .xpost{font-size:18px;background:var(--ink);color:#fff}
.res-btns .pbtn.res-small{min-height:38px;font-size:13px;padding:0 6px;white-space:nowrap;display:flex;align-items:center;justify-content:center;text-decoration:none}

.app{width:min(100%,70svh);box-sizing:border-box;margin:0 auto;padding:4px}.app>.bar,.app>.foot,#btnCdReport{display:none!important}.stage{box-shadow:none}html{overflow-x:hidden}button{overflow-wrap:break-word} .res-btns button{line-height:1.12}