/* ベーカリー・ラッシュ — 朝のパン屋。小麦色×チョコ×ミント、水彩の光 */
:root {
  --wheat: #e9c98f;
  --paper: #f7ead0;
  --paper-2: #efdcb7;
  --crust: #c98a3f;
  --choco: #4a2c1d;
  --choco-2: #6b4330;
  --choco-mute: #75553f;   /* 紙の上の控えめな文字（5:1以上） */
  --mint: #9ad8bf;
  --mint-2: #cdeee0;
  --mint-deep: #24664e;
  --berry: #b8432f;
  --cream: #fffaf0;
  --gold: #f2b84b;

  --f-head: 'Kiwi Maru', 'M PLUS Rounded 1c', serif;
  --f-body: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Yu Gothic', sans-serif;
  --f-num: 'Fredoka', 'M PLUS Rounded 1c', sans-serif;

  --r-s: 12px;
  --r-m: 18px;
  --r-l: 26px;
  --sh: 0 3px 0 rgba(74, 44, 29, .18), 0 8px 18px rgba(74, 44, 29, .14);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--paper); }
body {
  font-family: var(--f-body); color: var(--choco); font-size: 15px; line-height: 1.6; font-weight: 500;
  line-break: strict; overflow: hidden; overscroll-behavior: none; -webkit-font-smoothing: antialiased;
}
@media (min-width: 600px) {
  body { background: radial-gradient(60% 50% at 30% 10%, rgba(255, 236, 190, .9), transparent 70%), radial-gradient(50% 50% at 80% 90%, rgba(154, 216, 191, .45), transparent 70%), var(--paper-2); }
}
button, a { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
a { text-decoration: none; }
svg { width: 1em; height: 1em; flex: none; }
img { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-feature-settings: "palt"; word-break: keep-all; font-weight: 500; }
.num { font-family: var(--f-num); font-weight: 600; font-variant-numeric: tabular-nums; }

.app { position: fixed; inset: 0; margin: 0 auto; max-width: 430px; background: var(--paper); overflow: hidden; overflow: clip; }
@media (min-width: 600px) { .app { box-shadow: 0 0 0 1px rgba(74, 44, 29, .12), 0 30px 80px rgba(74, 44, 29, .3); } }
.screen { position: absolute; inset: 0; display: none; flex-direction: column; background: var(--paper); }
.screen.is-on { display: flex; }
.screen.is-in { animation: scr-in .3s var(--ease); }
@keyframes scr-in { from { opacity: 0; transform: translateY(14px); } }
.scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* ---------- ボタン ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 20px; border-radius: 999px; font-weight: 800; font-size: 16px; letter-spacing: .03em;
  word-break: keep-all; user-select: none; -webkit-user-select: none; transition: transform .12s var(--spring), box-shadow .12s;
}
.btn svg { font-size: 22px; }
.btn:active { transform: scale(.96); }
.btn--xl { width: 100%; min-height: 64px; font-size: 19px; }
.btn--l { width: 100%; min-height: 56px; }
.btn--mint { background: var(--mint-deep); color: var(--cream); box-shadow: 0 5px 0 #1d5544, 0 10px 22px rgba(36, 102, 78, .3); }
.btn--mint:active { box-shadow: 0 2px 0 #1d5544; transform: translateY(3px); }
.btn--paper { background: var(--cream); color: var(--choco); box-shadow: 0 4px 0 var(--paper-2), inset 0 0 0 2px var(--paper-2); }
.btn--berry { background: var(--berry); color: var(--cream); box-shadow: 0 5px 0 #7a2a1d; }
.btn--sq { width: 50px; padding: 0; flex: none; border-radius: 50%; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none; background: var(--cream); color: var(--choco); font-size: 22px; box-shadow: var(--sh); transition: transform .12s var(--spring); }
.icon-btn:active { transform: scale(.9); }
.icon-btn--light { background: var(--cream); }

/* ---------- タイトル ---------- */
.screen--title { background: #f3d9c0 url(/app-development/apps/a029/img/title.webp) center bottom / cover no-repeat; padding: calc(var(--safe-t) + 10px) 18px calc(var(--safe-b) + 18px); }
.title__top { display: flex; align-items: center; justify-content: space-between; }
.title__brand { padding: 5px 14px; border-radius: 99px; background: var(--cream); font-weight: 800; font-size: 14px; color: var(--mint-deep); }
.title__logo { margin-top: 4vh; text-align: center; }
.logo { display: flex; flex-direction: column; align-items: center; font-family: var(--f-head); line-height: 1.05; }
.logo__sm { font-size: clamp(30px, 9.5vw, 40px); color: var(--choco); letter-spacing: .12em; text-shadow: 0 2px 0 var(--cream), 0 0 18px rgba(255, 250, 240, .9); }
.logo__lg { margin-top: 4px; font-size: clamp(58px, 19vw, 80px); color: var(--choco); letter-spacing: .04em; text-shadow: 0 4px 0 var(--cream), 0 0 26px rgba(255, 250, 240, .95); }
.logo__sub { display: inline-block; margin-top: 12px; padding: 4px 16px; border-radius: 99px; background: var(--mint-deep); color: var(--cream); font-weight: 800; font-size: 15px; }
.title__bottom { margin-top: auto; display: grid; gap: 12px; }
.camp { padding: 12px 14px 14px; border-radius: var(--r-m); background: var(--cream); box-shadow: var(--sh); }
.camp__k { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 800; color: var(--choco-mute); }
.camp__stars { display: inline-flex; align-items: center; gap: 3px; color: var(--choco); font-family: var(--f-num); font-size: 15px; }
.camp__stars svg { color: var(--gold); font-size: 18px; }
.camp__days { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.cday { display: grid; justify-items: center; gap: 3px; padding: 7px 0 6px; border-radius: 14px; background: var(--paper); }
.cday__n { font-family: var(--f-num); font-weight: 700; font-size: 17px; line-height: 1; }
.cday__k { font-size: 11px; font-weight: 800; color: var(--choco-mute); }
.cday__s { display: flex; gap: 1px; font-size: 11px; color: #c9b597; }
.cday__s .on { color: var(--gold); }
.cday.is-now { background: var(--mint-deep); color: var(--cream); box-shadow: 0 0 0 3px var(--mint); }
.cday.is-now .cday__k { color: var(--cream); }
.cday.is-done { background: var(--mint-2); }
.title__sub { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }
.title__sub .btn { padding: 0 10px; font-size: 15px; }

/* ---------- 営業 ---------- */
.screen--play { background: var(--paper); }
.hud { position: relative; z-index: 5; padding: calc(var(--safe-t) + 8px) 12px 8px; background: var(--choco); color: var(--cream); border-radius: 0 0 22px 22px; box-shadow: 0 6px 16px rgba(74, 44, 29, .25); }
.hud__row { display: flex; align-items: center; gap: 10px; }
.hud__day { display: grid; justify-items: center; line-height: 1; padding: 6px 10px; border-radius: 14px; background: var(--cream); color: var(--choco); }
.hud__dk { font-family: var(--f-num); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.hud__day .num { font-size: 24px; font-weight: 700; }
.hud__clock { flex: 1; min-width: 0; }
.sunbar { position: relative; height: 10px; border-radius: 99px; background: var(--choco-2); margin: 6px 6px 0; }
.sunbar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--gold)); }
.sunbar__sun { position: absolute; top: 50%; left: 0; width: 22px; height: 22px; color: var(--gold); transform: translate(-50%, -50%); filter: drop-shadow(0 0 6px rgba(242, 184, 75, .8)); }
.hud__time { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.hud__time .num { font-size: 18px; color: var(--cream); }
.hud__time.is-late .num { color: #ffb8a8; }
.goal { margin-top: 8px; }
.goal__txt { display: flex; align-items: baseline; gap: 4px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.goal__txt > .num { font-size: 22px; color: var(--cream); }
.goal__of { margin-left: auto; color: #e8d6c0; }
.goal__of .num { font-size: 15px; color: #e8d6c0; }
.goal__bar { position: relative; height: 12px; margin-top: 4px; border-radius: 99px; background: var(--choco-2); overflow: hidden; }
.goal__bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--mint); transition: width .4s var(--ease); }
.goal__bar.is-met i { background: linear-gradient(90deg, var(--mint), var(--gold)); }
.goal__tick { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--cream); opacity: .9; }
.goal__tick--2 { opacity: .5; }
.goal__txt.is-bump > .num { animation: bump .35s var(--spring); }
@keyframes bump { 40% { transform: scale(1.2); color: var(--gold); } }
.goal__txt > .num { display: inline-block; }

.floor { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; background-color: #e8cfa7; margin-top: -22px; padding-top: 30px; }
.floor::before { content: ""; position: absolute; inset: 0; background: url(/app-development/apps/a029/img/shop.webp) center 30% / cover no-repeat; opacity: .95; }
.floor::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(180deg, #a26b42, #7d4f30); box-shadow: inset 0 3px 0 #c8915f; }
.counter { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 6px; padding: 4px 8px 6px; }
.spot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 150px; }
.cust { display: flex; flex-direction: column; align-items: center; gap: 6px; animation: c-in .55s var(--spring) both; }
@keyframes c-in { from { transform: translateY(-30px) scale(.7); opacity: 0; } }
.cust.is-leave-happy, .cust.is-leave-angry { position: absolute; bottom: 0; left: 50%; margin-left: -56px; width: 112px; pointer-events: none; }
.cust.is-leave-happy { animation: c-happy .7s var(--ease) forwards; }
.cust.is-leave-angry { animation: c-angry .7s var(--ease) forwards; }
@keyframes c-happy { 30% { transform: translateY(-14px); } 100% { transform: translateY(-40px) scale(.8); opacity: 0; } }
@keyframes c-angry { 15%, 45% { transform: translateX(-6px); } 30%, 60% { transform: translateX(6px); } 100% { transform: translateX(30px) scale(.85); opacity: 0; } }
.bubble {
  position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 112px; padding: 6px;
  border-radius: 16px; background: var(--cream); box-shadow: 0 3px 0 rgba(74, 44, 29, .2);
}
.bubble::after { content: ""; position: absolute; bottom: -7px; left: 50%; width: 14px; height: 14px; background: var(--cream); transform: translateX(-50%) rotate(45deg); border-radius: 0 0 4px 0; }
.want { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--paper); transition: transform .2s var(--spring); }
.want img { width: 100%; height: 100%; object-fit: cover; }
.want.is-done img { filter: grayscale(.2) brightness(.75); }
.want.is-done::after { content: ""; position: absolute; inset: 0; background: rgba(44, 122, 96, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%23fffaf0' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat; }
.want.is-pop { animation: want-pop .35s var(--spring); }
@keyframes want-pop { 50% { transform: scale(1.35); } }
.face { position: relative; width: 82px; height: 82px; padding: 4px; border-radius: 50%; background: conic-gradient(var(--ring, var(--mint-deep)) calc(var(--p, 1) * 360deg), rgba(255, 250, 240, .75) 0); box-shadow: 0 4px 10px rgba(74, 44, 29, .25); }
.face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--cream); }
.face.is-hurry { animation: hurry .5s ease-in-out infinite; }
@keyframes hurry { 50% { transform: rotate(-4deg) translateY(-1px); } }
.face__drop { position: absolute; right: -2px; top: 2px; width: 18px; height: 18px; color: #6fb6e8; display: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .2)); }
.face.is-hurry .face__drop { display: block; }
.cust__name { padding: 1px 10px; border-radius: 99px; background: var(--cream); font-size: 12px; font-weight: 800; white-space: nowrap; }
.hearts { position: absolute; left: 50%; bottom: 60px; pointer-events: none; }
.hearts svg { position: absolute; width: 20px; height: 20px; color: #e86a7a; animation: heart 1s var(--ease) forwards; }
@keyframes heart { from { transform: translate(0, 0) scale(.4); opacity: 1; } to { transform: translate(var(--dx), -60px) scale(1.1); opacity: 0; } }
.pay { position: absolute; left: 50%; bottom: 100px; z-index: 6; padding: 4px 10px; border-radius: 12px; background: var(--mint-deep); color: var(--cream); font-family: var(--f-num); font-weight: 700; font-size: 20px; white-space: nowrap; transform: translateX(-50%); animation: pay 1.3s var(--ease) forwards; pointer-events: none; }
.pay small { font-family: var(--f-body); font-size: 12px; font-weight: 800; margin-left: 4px; }
.pay--angry { background: var(--berry); font-family: var(--f-body); font-size: 14px; font-weight: 800; }
@keyframes pay { 0% { transform: translate(-50%, 10px) scale(.6); opacity: 0; } 20% { transform: translate(-50%, 0) scale(1.08); opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(-50%, -40px); opacity: 0; } }

.shelf { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 12px; }
.shelf__k { flex: none; padding: 2px 10px; border-radius: 99px; background: var(--cream); color: var(--choco); font-size: 12px; font-weight: 800; }
.shelf__slots { flex: 1; display: flex; gap: 6px; }
.slot { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 2px dashed rgba(255, 250, 240, .55); }
.slot--bread { border: 0; padding: 0; overflow: hidden; background: var(--cream); box-shadow: 0 3px 0 rgba(0, 0, 0, .25); transition: transform .12s var(--spring); animation: drop-in .35s var(--spring); }
.slot--bread img { width: 100%; height: 100%; object-fit: cover; }
.slot--bread:active { transform: scale(.9); }
.slot--bread.is-wanted { box-shadow: 0 0 0 3px var(--gold), 0 3px 0 rgba(0, 0, 0, .25); }
@keyframes drop-in { from { transform: translateY(-16px) scale(.6); } }

.kitchen { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 6px; padding: 10px 10px calc(var(--safe-b) + 10px); background-color: var(--paper); }
.kitchen::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .5) 0 1.5px, transparent 2px) 0 0 / 22px 22px, radial-gradient(circle at 70% 60%, rgba(201, 138, 63, .18) 0 1.5px, transparent 2px) 0 0 / 30px 30px; }
.kitchen > * { position: relative; z-index: 1; }
.ovens { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.oven {
  position: relative; height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 6px; border-radius: 60px 60px 14px 14px;
  background: repeating-linear-gradient(0deg, transparent 0 13px, rgba(74, 44, 29, .35) 13px 15px), linear-gradient(180deg, #c27046, #9a5333);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2), 0 4px 0 #6d3a23; transition: transform .12s var(--spring);
}
.oven:active { transform: scale(.96); }
.oven__mouth { position: absolute; left: 14%; right: 14%; top: 16px; bottom: 36px; border-radius: 40px 40px 8px 8px; background: #2a1810; overflow: hidden; box-shadow: inset 0 0 0 3px #5a2f1b; }
.oven__mouth::before { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: radial-gradient(60% 100% at 50% 100%, rgba(255, 140, 50, .0), transparent); transition: background .3s; }
.oven.is-bake .oven__mouth::before, .oven.is-ready .oven__mouth::before, .oven.is-smoke .oven__mouth::before { background: radial-gradient(60% 100% at 50% 100%, rgba(255, 150, 60, .85), transparent); animation: fire .5s ease-in-out infinite alternate; }
@keyframes fire { to { opacity: .6; transform: scaleY(.85); } }
.oven__bread { position: absolute; left: 50%; bottom: 4px; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; transform: translateX(-50%) scale(var(--k, .75)); transition: transform .3s, filter .3s; filter: brightness(.85) saturate(.7); }
.oven__bread img { width: 100%; height: 100%; object-fit: cover; }
.oven.is-ready .oven__bread, .oven.is-smoke .oven__bread { filter: none; }
.oven.is-ready { animation: ready-glow .8s ease-in-out infinite; }
@keyframes ready-glow { 50% { box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2), 0 4px 0 #6d3a23, 0 0 0 4px var(--gold), 0 0 22px rgba(242, 184, 75, .8); } }
.oven.is-ready .oven__bread { animation: hop .6s var(--spring) infinite; }
@keyframes hop { 50% { transform: translateX(-50%) translateY(-5px) scale(1.04); } }
.oven.is-smoke { animation: smoke-shake .25s linear infinite; }
@keyframes smoke-shake { 50% { transform: translateX(1.5px); } }
.oven.is-burnt .oven__bread { filter: brightness(.22) saturate(.3) contrast(1.4); }
.oven__puffs { position: absolute; top: -6px; left: 50%; width: 1px; height: 1px; display: none; }
.oven.is-smoke .oven__puffs, .oven.is-burnt .oven__puffs { display: block; }
.oven__puffs svg { position: absolute; width: 26px; height: 26px; color: rgba(90, 80, 75, .75); animation: puff 1.4s ease-out infinite; }
.oven__puffs svg:nth-child(2) { animation-delay: .45s; left: -18px; }
.oven__puffs svg:nth-child(3) { animation-delay: .9s; left: 6px; }
@keyframes puff { from { transform: translate(-50%, 10px) scale(.4); opacity: .9; } to { transform: translate(-50%, -30px) scale(1.3); opacity: 0; } }
.oven__bar { position: absolute; left: 18%; right: 18%; bottom: 30px; height: 5px; border-radius: 9px; background: rgba(0, 0, 0, .45); overflow: hidden; }
.oven__bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--mint); }
.oven.is-smoke .oven__bar i { background: var(--berry); }
.oven__label { position: relative; z-index: 2; padding: 1px 10px; border-radius: 99px; background: var(--cream); color: var(--choco); font-size: 12px; font-weight: 800; white-space: nowrap; }
.oven.is-ready .oven__label { background: var(--gold); color: var(--choco); }
.oven.is-smoke .oven__label, .oven.is-burnt .oven__label { background: var(--berry); color: var(--cream); }
.kitchen__hint { text-align: center; font-size: 13px; font-weight: 700; color: var(--choco-mute); }
.kitchen__hint.is-warn { color: var(--berry); }
.dough { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dbtn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 76px; padding: 5px 4px 4px; border-radius: 18px;
  background: var(--cream); box-shadow: 0 3px 0 var(--paper-2), inset 0 0 0 2px var(--paper-2); text-align: left; transition: transform .12s var(--spring);
}
.dbtn:active { transform: scale(.94); }
.dbtn img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.dbtn__t { display: grid; line-height: 1.2; min-width: 0; }
.dbtn__n { font-size: 13px; font-weight: 800; white-space: nowrap; line-height: 1.25; }
.dbtn__p { font-size: 11px; font-weight: 700; color: var(--choco-mute); white-space: nowrap; line-height: 1.2; }
.nowrap { white-space: nowrap; }
.dbtn__p .num { font-size: 12px; }
.dbtn.is-wanted { box-shadow: 0 3px 0 var(--paper-2), inset 0 0 0 2.5px var(--mint-deep); }
.dbtn.is-new::after { content: "NEW"; position: absolute; right: 6px; top: -6px; padding: 0 6px; border-radius: 99px; background: var(--berry); color: var(--cream); font-family: var(--f-num); font-size: 11px; font-weight: 700; }
.dbtn { position: relative; }
.dbtn.is-deny { animation: deny .3s linear; }
@keyframes deny { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.fly { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.flyer { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; box-shadow: 0 6px 12px rgba(74, 44, 29, .35); }
.flyer img { width: 100%; height: 100%; object-fit: cover; }
.tapfx { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; border: 3px solid var(--mint-deep); animation: tapfx .45s ease-out forwards; }
@keyframes tapfx { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

.intro, .pause { position: absolute; inset: 0; z-index: 30; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(74, 44, 29, .55); }
.intro.is-on, .pause.is-on { display: flex; }
.intro__card, .pause__card { width: 100%; display: grid; gap: 10px; justify-items: center; padding: 22px 18px 18px; border-radius: var(--r-l); background: var(--cream); text-align: center; box-shadow: 0 20px 50px rgba(74, 44, 29, .35); animation: card-in .45s var(--spring); }
@keyframes card-in { from { transform: scale(.85); opacity: 0; } }
.intro__day { display: flex; align-items: baseline; gap: 6px; padding: 2px 14px; border-radius: 99px; background: var(--mint-deep); color: var(--cream); font-family: var(--f-num); font-weight: 700; }
.intro__day .num { font-size: 22px; }
.intro__title { font-family: var(--f-head); font-size: 28px; line-height: 1.25; }
.intro__goal { display: flex; align-items: baseline; gap: 6px; font-weight: 800; white-space: nowrap; }
.intro__goal .num { font-size: 32px; color: var(--mint-deep); }
.intro__new { width: 100%; padding: 10px 12px; border-radius: 16px; background: var(--paper); }
.intro__new:empty { display: none; }
.intro__newk { font-size: 12px; font-weight: 800; color: var(--choco-mute); }
.intro__new ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; justify-content: center; gap: 18px; }
.intro__new li { display: grid; justify-items: center; gap: 2px; font-weight: 800; font-size: 14px; }
.intro__new li small { font-size: 12px; color: var(--choco-mute); }
.intro__new img { width: 56px; height: 56px; border-radius: 50%; }
.intro__tip { font-size: 14px; color: var(--choco-mute); word-break: normal; text-align: left; }
.pause__title { font-family: var(--f-head); font-size: 26px; }
.pause__text { color: var(--choco-mute); }

.demo { position: absolute; z-index: 25; left: 10px; right: 10px; bottom: calc(var(--safe-b) + 10px); display: none; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; background: var(--cream); border-radius: 99px; box-shadow: 0 8px 24px rgba(74, 44, 29, .3); }
.demo .btn { width: auto; flex: 1; min-height: 50px; }
.demo__tag { flex: none; width: 6.2em; line-height: 1.35; word-break: keep-all; }
.demo.is-on { display: flex; }
.screen--play:has(.demo.is-on) .kitchen { padding-bottom: calc(var(--safe-b) + 78px); }
.demo__tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: var(--mint-deep); }
.demo__tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--berry); animation: blink 1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: .2; } }

.closing { position: absolute; inset: 0; z-index: 28; display: none; align-items: center; justify-content: center; background: rgba(74, 44, 29, .6); }
.closing.is-on { display: flex; }
.closing span { padding: 12px 34px; border-radius: 16px; background: var(--cream); font-family: var(--f-head); font-size: 34px; color: var(--choco); animation: card-in .5s var(--spring); box-shadow: 0 10px 0 var(--paper-2); }

/* ---------- 1日の結果 ---------- */
.screen--day { background: var(--paper); }
.day__scroll { padding-bottom: 16px; }
.day__hero { position: relative; height: 210px; background: #e9b98e url(/app-development/apps/a029/img/result.webp) center 60% / cover no-repeat; display: flex; align-items: flex-start; justify-content: space-between; padding: calc(var(--safe-t) + 10px) 14px 0; }
.day__k { padding: 4px 14px; border-radius: 99px; background: var(--cream); font-family: var(--f-num); font-weight: 700; font-size: 15px; }
.day__card { position: relative; margin: -46px 14px 0; display: grid; justify-items: center; gap: 8px; padding: 20px 16px 18px; border-radius: var(--r-l); background: var(--cream); box-shadow: var(--sh); text-align: center; }
.day__title { font-family: var(--f-head); font-size: 28px; line-height: 1.25; }
.stamp { position: absolute; right: 10px; top: -26px; width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; border: 3px solid var(--mint-deep); color: var(--mint-deep); font-family: var(--f-head); font-size: 18px; transform: rotate(-14deg); background: var(--cream); }
.stamp.is-fail { border-color: var(--berry); color: var(--berry); }
.stamp.is-in { animation: stamp .5s .3s var(--spring) both; }
@keyframes stamp { from { transform: rotate(-14deg) scale(2.4); opacity: 0; } }
.day__stars { display: flex; gap: 6px; font-size: 38px; color: #dcc9a8; }
.day__stars svg.on { color: var(--gold); filter: drop-shadow(0 2px 0 #b47c1c); }
.day__stars svg.is-in { animation: star-in .5s var(--spring) both; }
@keyframes star-in { from { transform: scale(0) rotate(-90deg); } }
.day__total { display: flex; align-items: baseline; gap: 4px; font-weight: 800; white-space: nowrap; }
.day__total .num { font-size: 50px; line-height: 1; color: var(--choco); }
.day__goal { font-weight: 700; color: var(--choco-mute); }
.dstats { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 0 0; }
.dstats div { padding: 8px 12px; border-radius: 14px; background: var(--paper); text-align: left; }
.dstats dt { font-size: 12px; font-weight: 800; color: var(--choco-mute); }
.dstats dd { margin: 0; font-weight: 800; white-space: nowrap; font-size: 13px; }
.dstats .num { font-size: 22px; margin-right: 2px; }
.day__coins { display: flex; align-items: center; gap: 6px; width: 100%; padding: 10px 14px; border-radius: 14px; background: var(--mint-2); font-weight: 800; font-size: 14px; white-space: nowrap; }
.day__coins svg { color: var(--crust); font-size: 22px; }
.day__coins .num { margin-left: auto; font-size: 22px; }
.day__note { font-size: 14px; color: var(--choco-mute); word-break: normal; text-align: left; }
.day__actions { display: grid; gap: 10px; padding: 12px 14px calc(var(--safe-b) + 14px); background: var(--paper); box-shadow: 0 -8px 20px rgba(74, 44, 29, .1); }

/* ---------- 強化 ---------- */
.uphead { position: relative; background: var(--choco); }
.uphead__img { height: 140px; background: #6b4330 url(/app-development/apps/a029/img/bakery.webp) center 55% / cover no-repeat; }
.uphead__bar { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-t) + 10px) 12px 0; }
.uphead__title { flex: 1; font-family: var(--f-head); font-size: 22px; }
.uphead__title, .wallet { padding: 4px 14px; border-radius: 99px; background: var(--cream); }
.uphead__title { flex: none; margin-right: auto; }
.wallet { display: flex; align-items: center; gap: 4px; font-weight: 800; white-space: nowrap; }
.wallet svg { color: var(--crust); font-size: 20px; }
.wallet .num { font-size: 20px; }
.wallet.is-bump .num { animation: bump .35s var(--spring); display: inline-block; }
.up__scroll { padding: 14px 14px calc(var(--safe-b) + 20px); }
.up__note { font-size: 14px; color: var(--choco-mute); word-break: normal; }
.ups { list-style: none; margin: 12px 0 16px; padding: 0; display: grid; gap: 10px; }
.up { display: grid; grid-template-columns: 52px 1fr; gap: 6px 12px; padding: 14px; border-radius: var(--r-m); background: var(--cream); box-shadow: var(--sh); }
.up__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--mint-2); color: var(--mint-deep); font-size: 28px; }
.up__name { font-weight: 800; font-size: 16px; }
.up__desc { font-size: 13px; color: var(--choco-mute); word-break: normal; line-height: 1.5; }
.up__pips { display: flex; gap: 4px; margin-top: 4px; }
.up__pips i { width: 22px; height: 6px; border-radius: 9px; background: var(--paper-2); }
.up__pips i.on { background: var(--mint-deep); }
.up__buy { grid-column: 1 / -1; min-height: 48px; }
.up__buy.is-off { background: var(--paper-2); color: var(--choco); box-shadow: none; }
.up__max { grid-column: 1 / -1; text-align: center; padding: 10px; border-radius: 99px; background: var(--mint-2); font-weight: 800; color: var(--mint-deep); }
.up.is-bought { animation: bought .5s var(--spring); }
@keyframes bought { 40% { transform: scale(1.03); box-shadow: 0 0 0 4px var(--gold), var(--sh); } }

/* ---------- 設定 ---------- */
.bar { display: flex; align-items: center; gap: 8px; padding: calc(var(--safe-t) + 8px) 12px 10px; background: var(--paper); }
.bar__title { flex: 1; text-align: center; font-family: var(--f-head); font-size: 20px; }
.bar__sp { width: 44px; }
.set__scroll { padding: 4px 14px calc(var(--safe-b) + 24px); }
.sec-h { margin: 22px 2px 10px; font-family: var(--f-head); font-size: 18px; color: var(--mint-deep); }
.howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.howto li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: var(--r-m); background: var(--cream); box-shadow: var(--sh); }
.howto img { width: 64px; height: 64px; border-radius: 50%; }
.howto h3 { font-size: 16px; font-weight: 800; line-height: 1.4; }
.howto p { margin-top: 4px; font-size: 14px; color: var(--choco-mute); word-break: normal; }
.group { border-radius: var(--r-m); background: var(--cream); box-shadow: var(--sh); overflow: hidden; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 10px 14px; border-bottom: 1px solid var(--paper-2); }
.row:last-child { border-bottom: 0; }
.row__label { font-weight: 800; }
.row__label small { display: block; font-size: 12px; color: var(--choco-mute); font-weight: 500; }
.row--btn { width: 100%; justify-content: flex-start; color: var(--berry); font-weight: 800; }
.row--btn svg { font-size: 22px; }
.switch { position: relative; flex: none; width: 56px; height: 34px; border-radius: 99px; background: var(--paper-2); transition: background .2s; }
.switch i { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .25s var(--spring); }
.switch[aria-checked="true"] { background: var(--mint-deep); }
.switch[aria-checked="true"] i { transform: translateX(22px); }
.about { padding: 16px; display: grid; gap: 12px; }
.about__head { display: flex; align-items: center; gap: 14px; }
.about__head img { width: 64px; height: 64px; border-radius: 15px; }
.about__name { font-family: var(--f-head); font-size: 18px; }
.about__ver { font-size: 13px; color: var(--choco-mute); }
.about__note { font-size: 14px; word-break: normal; }
.about__k { font-size: 13px; font-weight: 800; color: var(--mint-deep); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 4px 10px; border-radius: 99px; background: var(--paper); font-size: 13px; font-weight: 700; white-space: nowrap; }

/* ---------- シート等 ---------- */
.scrim { position: absolute; inset: 0; z-index: 40; background: rgba(74, 44, 29, .5); opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.is-on { opacity: 1; pointer-events: auto; }
.sheet { position: absolute; z-index: 41; left: 0; right: 0; bottom: 0; display: grid; gap: 10px; padding: 10px 18px calc(var(--safe-b) + 20px); border-radius: 26px 26px 0 0; background: var(--cream); transform: translateY(110%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; }
.sheet.is-on { transform: none; visibility: visible; transition: transform .35s var(--spring); }
.sheet__grab { justify-self: center; width: 40px; height: 5px; border-radius: 9px; background: var(--paper-2); }
.sheet h2 { font-family: var(--f-head); font-size: 22px; line-height: 1.35; }
.sheet p { font-size: 15px; color: var(--choco-mute); word-break: normal; }
.toast { position: absolute; z-index: 60; left: 50%; bottom: calc(var(--safe-b) + 24px); width: max-content; max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 99px; background: var(--choco); color: var(--cream); font-weight: 800; transform: translate(-50%, calc(100% + 60px)); visibility: hidden; transition: transform .3s var(--spring), visibility 0s .3s; pointer-events: none; word-break: keep-all; }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .35s var(--spring); }
.splash { position: absolute; inset: 0; z-index: 90; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--paper); }
.splash.is-on { display: flex; }
.splash.is-out { opacity: 0; transition: opacity .3s; }
.splash img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 10px 30px rgba(74, 44, 29, .25); }
.splash p { font-family: var(--f-head); font-size: 20px; }
.noscript { position: absolute; inset: auto 16px 40% 16px; padding: 16px; border-radius: 16px; background: var(--cream); font-weight: 800; text-align: center; }

@media (max-height: 720px) {
  .spot { min-height: 128px; }
  .oven { height: 96px; }
  .oven__mouth { top: 12px; bottom: 32px; }
  .oven__bread { width: 38px; height: 38px; }
  .dbtn { min-height: 64px; }
  .dbtn img { width: 32px; height: 32px; }
  .face { width: 70px; height: 70px; }
  .kitchen__hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
