/* 붕어빵CEO
   콘셉트: 눈 오는 겨울 저녁의 붕어빵 포장마차. 말랑한 점토 그림이 주인공이고,
   글자 판은 하얀 종이 쪽지처럼 조용하게. 눈에 띄는 색은 팥색 하나.
   게임 화면은 1600×1000 무대를 기기 크기에 맞춰 늘이고 줄인다. */
:root {
  --night: #1f2433;      /* 무대 바깥, 어두운 겨울밤 */
  --paper: #f7f9fb;      /* 쪽지·판 바탕 */
  --ink: #2f2724;        /* 글자 */
  --bean: #8c2f28;       /* 팥색: 버튼·강조 */
  --crust: #e2a23a;      /* 구운 붕어빵 금빛: 진행·보상 */
  --iron: #3b3735;       /* 무쇠 틀 */
  --mint: #2f8a6b;       /* 정답 */
  --line: #d9dee5;
  --display: "Jua", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --body: "Gowun Dodum", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--night); color: var(--ink); font-family: var(--body);
  overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
img { -webkit-user-drag: none; user-select: none; }
[hidden] { display: none !important; }

#stage-wrap { position: fixed; inset: 0; display: grid; place-items: center; }
#stage {
  position: absolute; left: 0; top: 0; width: 1600px; height: 1000px;
  transform-origin: 0 0; overflow: hidden; background: #cfd8e6;
}
.screen, .overlay { position: absolute; inset: 0; }

/* ---------- 버튼 ---------- */
.btn {
  font-family: var(--display); font-size: 30px; border: 0; border-radius: 18px;
  padding: 14px 30px; cursor: pointer; transition: transform .12s ease, filter .12s ease;
}
.btn:active { transform: scale(.96); }
.btn:focus-visible { outline: 4px solid var(--crust); outline-offset: 3px; }
.btn-main { background: var(--bean); color: #fff; box-shadow: 0 6px 0 #5e1d18; }
.btn-sub { background: var(--paper); color: var(--bean); box-shadow: 0 6px 0 #b9c1cc; }
.btn-small { font-size: 22px; padding: 8px 18px; border-radius: 14px; }
.btn[disabled] { filter: grayscale(1) opacity(.5); cursor: default; }

/* ---------- 처음 화면 ---------- */
.home-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-title {
  position: absolute; left: 60px; top: 46px; width: 760px; color: #fff;
  text-shadow: 0 4px 0 rgba(60, 20, 16, .55), 0 0 24px rgba(0, 0, 0, .35);
}
.home-title h1 { font-family: var(--display); font-weight: 400; font-size: 132px; line-height: 1; margin: 0; letter-spacing: -2px; }
.home-title p { font-size: 30px; margin: 14px 0 0; line-height: 1.4; }
.picker {
  position: absolute; right: 40px; top: 40px; bottom: 40px; width: 640px;
  background: color-mix(in srgb, var(--paper) 94%, transparent); border-radius: 28px;
  padding: 28px 30px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 18px 40px rgba(20, 24, 40, .35);
}
.picker-row { display: flex; align-items: center; gap: 16px; }
.picker-label { font-family: var(--display); font-size: 28px; color: var(--bean); width: 64px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  font-family: var(--display); font-size: 28px; min-width: 68px; padding: 8px 16px; border-radius: 14px;
  border: 3px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
}
.tab[aria-pressed="true"] { border-color: var(--bean); background: var(--bean); color: #fff; }
.unit-list { flex: none; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; touch-action: pan-y; }
.unit {
  text-align: left; font-family: var(--body); font-size: 28px; font-weight: 700; color: var(--ink);
  background: #fff; border: 3px solid var(--line); border-radius: 16px; padding: 14px 20px; cursor: pointer;
}
.unit[aria-pressed="true"] { border-color: var(--bean); box-shadow: inset 0 0 0 2px var(--bean); }
.picker-foot { display: flex; gap: 14px; }
.picker-foot .btn-main { flex: 1; }
.home-record { margin: 0; font-size: 22px; color: #5d5753; min-height: 1.4em; }

/* ---------- 가게 ---------- */
.street { position: absolute; left: 0; top: 0; width: 1600px; height: 1000px; object-fit: cover; }
.counter { position: absolute; left: 0; top: 0; width: 1600px; height: 1000px; pointer-events: none; }
#customers { position: absolute; inset: 0; }

.cust {
  position: absolute; bottom: 318px; width: 330px; height: 330px;
  transition: transform .5s cubic-bezier(.3, 1.4, .5, 1), opacity .4s ease;
}
.cust img.face { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.cust.enter { transform: translateY(80px); opacity: 0; }
.cust.leave { transform: translateY(80px); opacity: 0; }

.bubble {
  position: absolute; width: 330px; background: #fff; border-radius: 24px; padding: 14px 16px 16px;
  box-shadow: 0 8px 22px rgba(30, 30, 50, .25); display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s ease;
}
.bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -18px; margin-left: -14px;
  border: 14px solid transparent; border-top-color: #fff; border-bottom: 0;
}
.bubble.special { border: 5px solid var(--crust); width: 440px; }
.bubble.top { bottom: auto !important; top: 12px; }
.order-items { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.order-item {
  display: flex; align-items: center; gap: 4px; font-family: var(--display); font-size: 30px;
  background: #f3f5f8; border-radius: 14px; padding: 4px 10px 4px 4px;
}
.order-item img { width: 56px; height: 56px; object-fit: contain; }
.order-item.have { background: #e3f3ec; }
.patience { height: 10px; border-radius: 6px; background: #e6e9ee; overflow: hidden; }
.patience > i { display: block; height: 100%; width: 100%; background: var(--mint); transform-origin: left; }
.patience.low > i { background: #d9533f; }
.bubble .btn { font-size: 26px; padding: 8px 14px; }
.sp-q { font-size: 24px; line-height: 1.4; font-weight: 700; }
.sp-flavor { font-family: var(--display); font-size: 24px; color: var(--bean); display: flex; align-items: center; gap: 6px; }
.sp-flavor img { width: 44px; height: 44px; object-fit: contain; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 10px; }
.stepper button { font-family: var(--display); font-size: 34px; width: 56px; height: 56px; border-radius: 50%; border: 0; background: #eef1f5; color: var(--ink); cursor: pointer; }
.stepper output { font-family: var(--display); font-size: 40px; min-width: 70px; text-align: center; }
.notes { display: flex; gap: 8px; justify-content: center; }
.note {
  font-family: var(--display); font-size: 28px; min-width: 88px; padding: 10px 8px; border: 0; cursor: pointer;
  background: #fffbea; border-radius: 6px; box-shadow: 0 4px 0 #e3d9b4; transform: rotate(-2deg);
}
.note:nth-child(2) { transform: rotate(2deg); }
.say { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); width: 300px; text-align: center;
  background: #fff; border-radius: 20px; padding: 14px; font-family: var(--display); font-size: 30px;
  box-shadow: 0 8px 22px rgba(30, 30, 50, .25); }
.say.good { color: var(--mint); }
.say.bad { color: var(--bean); }
.coin-pop { position: absolute; font-family: var(--display); font-size: 40px; color: var(--crust);
  text-shadow: 0 3px 0 #6b4510; animation: rise 1.2s ease-out forwards; pointer-events: none; }
@keyframes rise { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-120px); opacity: 0; } }

/* 장부 / 문제 판 */
.ledger {
  position: absolute; right: 30px; top: 24px; width: 400px; height: 572px; background: var(--paper);
  border-radius: 26px; padding: 22px 24px; box-shadow: 0 12px 28px rgba(20, 24, 40, .3);
  display: flex; flex-direction: column;
}
.ledger.asking { height: auto; min-height: 572px; max-height: 606px; overflow-y: auto; }
#ledger-info { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.ledger-day { font-family: var(--display); font-size: 40px; margin: 0; color: var(--bean); }
.ledger-line { font-size: 28px; margin: 0; }
.ledger-line b { font-family: var(--display); font-weight: 400; font-size: 34px; }
.ledger-help { font-size: 23px; line-height: 1.45; color: #5d5753; margin: 8px 0 0; flex: 1; }
#btn-pause { align-self: flex-start; }
#quiz { display: flex; flex-direction: column; gap: 10px; }
#quiz > * { flex-shrink: 0; }
.quiz-title { font-family: var(--display); font-size: 32px; color: var(--bean); margin: 0; display: flex; align-items: center; gap: 10px; }
.quiz-title img { width: 54px; height: 54px; object-fit: contain; }
.quiz-q { font-size: 27px; font-weight: 700; line-height: 1.4; flex-shrink: 0; word-break: keep-all; }
.quiz-input { display: flex; flex-direction: column; gap: 10px; }
.answer-box { font-family: var(--display); font-size: 40px; background: #fff; border: 3px solid var(--line); border-radius: 14px; height: 66px; display: flex; align-items: center; justify-content: flex-end; padding: 0 18px; }
.pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pad button { font-family: var(--display); font-size: 32px; height: 54px; border: 0; border-radius: 12px; background: #e9edf2; color: var(--ink); cursor: pointer; }
.pad button.del { font-size: 24px; }
.pad button.ok { background: var(--bean); color: #fff; }
.pad button:active, .choice:active { transform: scale(.95); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { font-family: var(--display); font-size: 32px; min-height: 80px; border: 3px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.choice.right { border-color: var(--mint); background: #e3f3ec; }
.choice.wrong { border-color: var(--bean); background: #f8e4e1; }
.quiz-feedback { font-family: var(--display); font-size: 30px; min-height: 40px; }
.quiz-feedback.calm { font-family: var(--body); font-size: 21px; color: #5d5753; }
.quiz-feedback.good { color: var(--mint); }
.quiz-feedback.bad { color: var(--bean); }

/* 분수 */
.frac { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; margin: 0 4px; }
.frac .fr { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; font-size: .82em; }
.frac .fr span:first-child { border-bottom: 3px solid currentColor; padding: 0 4px 3px; }
.frac .fr span:last-child { padding: 3px 4px 0; }

/* 붕어빵 틀 */
.mold { position: absolute; left: 36px; top: 636px; width: 720px; height: 360px; }
.mold > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.cell { position: absolute; width: 172px; height: 120px; display: grid; place-items: center; cursor: pointer; border-radius: 40%; }
.cell.target { box-shadow: 0 0 0 5px var(--crust); }
.cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.cell img.blob { inset: 26%; width: 48%; height: 48%; }
.cell .tag {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font-family: var(--display); font-size: 24px; background: var(--bean); color: #fff; border-radius: 12px; padding: 2px 12px;
}
.cell .tag.gold { background: var(--crust); color: #3d2608; }
.cell .bar { position: absolute; left: 20%; right: 20%; bottom: -6px; height: 9px; border-radius: 5px; background: rgba(0, 0, 0, .35); overflow: hidden; pointer-events: none; }
.cell .bar i { display: block; height: 100%; background: var(--crust); width: 0; }
.cell.wobble { animation: wobble .5s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
.cell.flip { animation: flip .35s ease; }
@keyframes flip { 50% { transform: scaleY(0.1); } }

/* 재료 그릇 */
.bowls { position: absolute; left: 786px; top: 640px; width: 790px; height: 170px; display: flex; gap: 6px; }
.bowl { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; cursor: grab; border-radius: 20px; padding-top: 2px; }
.bowl img { width: 140px; height: 104px; object-fit: contain; pointer-events: none; }
.bowl.selected { background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 4px var(--crust); }
.bowl.empty img { filter: grayscale(.9) brightness(1.1); }
.bowl.shake { animation: shake .4s ease; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.bowl-name { font-family: var(--display); font-size: 22px; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .45); }
.gauge { width: 120px; height: 14px; border-radius: 8px; background: rgba(0, 0, 0, .35); overflow: hidden; margin-top: 2px; }
.gauge i { display: block; height: 100%; background: var(--crust); }
.bowl.empty .gauge i { background: #d9533f; }
.refill-tag { position: absolute; top: -6px; right: 6px; font-family: var(--display); font-size: 20px; background: #d9533f; color: #fff; border-radius: 10px; padding: 1px 8px; pointer-events: none; }

/* 진열대 */
.tray { position: absolute; left: 790px; top: 826px; width: 780px; height: 160px; display: flex; gap: 10px; padding: 10px 14px;
  background: rgba(70, 40, 20, .35); border-radius: 24px; }
.slot { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.slot .pile { position: relative; width: 150px; height: 90px; }
.slot .pile img { position: absolute; width: 120px; height: 76px; object-fit: contain; }
.slot .pile img.blob { width: 40px; height: 40px; right: 0; bottom: 0; left: auto; top: auto; }
.slot b { font-family: var(--display); font-weight: 400; font-size: 26px; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
.slot.zero .pile { opacity: .25; }

.ghost { position: absolute; width: 112px; height: 112px; pointer-events: none; z-index: 50; transform: translate(-50%, -50%); }
.ghost.wide { width: 150px; height: 104px; }
.ghost .scoop-inner { width: 100%; height: 100%; will-change: transform; }
.ghost img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 10px rgba(40, 20, 10, .35)); }
.cell.hover { box-shadow: 0 0 0 6px #fff, 0 0 24px 8px var(--crust); transform: scale(1.06); transition: transform .12s ease; }

/* ---------- 덮개 판 ---------- */
.overlay { background: rgba(20, 24, 40, .55); display: grid; place-items: center; z-index: 80; }
.card { width: 860px; max-height: 860px; overflow-y: auto; background: var(--paper); border-radius: 30px; padding: 40px 48px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.card h2 { font-family: var(--display); font-weight: 400; font-size: 52px; margin: 0; color: var(--bean); }
.card h3 { font-family: var(--display); font-weight: 400; font-size: 32px; margin: 10px 0 0; }
.card p { font-size: 30px; line-height: 1.6; margin: 0; }
.card p.small, .small { font-size: 23px; line-height: 1.55; color: #5d5753; }
.card-foot { display: flex; gap: 14px; margin-top: 10px; }
.row-check { font-size: 30px; display: flex; align-items: center; gap: 12px; }
.row-check input { width: 30px; height: 30px; accent-color: var(--bean); }

/* ---------- 가로로 돌리기 안내 ---------- */
#rotate { position: fixed; inset: 0; z-index: 100; background: var(--night); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; }
#rotate p { font-family: var(--display); font-size: 26px; margin: 0; }
#rotate p.small { font-family: var(--body); font-size: 16px; color: #c5cbd6; }
#rotate .btn { font-size: 20px; padding: 10px 22px; margin-top: 10px; }
.rotate-phone { width: 60px; height: 100px; border: 5px solid #fff; border-radius: 12px; animation: turn 2s ease-in-out infinite; }
@keyframes turn { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 겹치는 순서: 거리 < 손님 < 계산대·천막 < 말풍선·틀·그릇·장부 */
.counter { z-index: 1; }
.bubble, .say, .coin-pop, .mold, .bowls, .tray, .ledger { z-index: 2; }

/* ---------- 앱 안 브라우저 안내 ---------- */
#inapp { position: fixed; inset: 0; z-index: 110; background: var(--night); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; }
#inapp .inapp-title { font-family: var(--display); font-size: 28px; margin: 0; }
#inapp .small { font-size: 17px; line-height: 1.6; color: #d5dae3; margin: 0; max-width: 420px; }
#inapp .inapp-url { font-size: 15px; color: var(--crust); word-break: break-all; margin: 0; user-select: text; -webkit-user-select: text; }
#inapp .inapp-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
#inapp .btn { font-size: 20px; padding: 10px 20px; }
#inapp .inapp-stay { background: none; border: 0; color: #9aa3b2; font-family: var(--body); font-size: 15px; text-decoration: underline; cursor: pointer; margin-top: 6px; }

/* ---------- 홈 화면에 설치 ---------- */
.install-row { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.install-row:has(#btn-install[hidden]) { display: none; }
.install-how { margin: 0; font-size: 22px; line-height: 1.5; color: #4d4642; background: #fff; border-radius: 14px; padding: 10px 14px; border: 2px dashed var(--line); }

/* ---------- 로딩 (처음 켤 때 배경만 보이고 붕어빵이 구워지는 막대) ---------- */
.loading { position: absolute; left: 50%; bottom: 90px; width: 760px; margin-left: -380px; display: flex; flex-direction: column; align-items: center; gap: 18px; transition: opacity .35s ease; }
.loading-text { margin: 0; font-family: var(--display); font-size: 52px; color: #fff; text-shadow: 0 4px 0 rgba(60, 20, 16, .55), 0 0 24px rgba(0, 0, 0, .4); }
.loading-bar { position: relative; width: 100%; height: 34px; border-radius: 20px; background: rgba(31, 36, 51, .55); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .85); }
.loading-bar i { position: absolute; left: 6px; top: 6px; bottom: 6px; width: 0; border-radius: 14px; background: var(--crust); transition: width .15s linear; }
.loading-bar img { position: absolute; top: 50%; left: 0; width: 120px; transform: translate(-50%, -54%); filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .35)); transition: left .15s linear; animation: fishbob .5s ease-in-out infinite alternate; }
@keyframes fishbob { to { transform: translate(-50%, -64%) rotate(-6deg); } }
#home.is-loading .home-title, #home.is-loading .picker { opacity: 0; pointer-events: none; }
#home .home-title, #home .picker { transition: opacity .45s ease, transform .45s cubic-bezier(.3, 1.3, .5, 1); }
#home.is-loading .picker { transform: translateY(30px); }
#home:not(.is-loading) .loading { opacity: 0; pointer-events: none; }

/* ---------- 처음 화면: 단원 창은 내용만큼, 아래에 상점 칸 ---------- */
.picker { bottom: auto; }
.home-shop {
  position: absolute; right: 40px; bottom: 30px; width: 640px;
  display: flex; flex-direction: column; gap: 8px; padding: 16px 26px 18px;
}
.home-shop-row { display: flex; align-items: center; gap: 12px; }
.home-shop-row .wallet { flex: 1; }
.home-shop-row .btn { font-size: 26px; padding: 10px 22px; }
.wallet { margin: 0; font-size: 26px; white-space: nowrap; }
.wallet b { font-family: var(--display); font-weight: 400; font-size: 38px; color: var(--bean); }
.install-row { display: none; }
#home.is-loading .home-shop { opacity: 0; pointer-events: none; transform: translateY(30px); }
#home .home-shop { transition: opacity .45s ease .08s, transform .45s cubic-bezier(.3, 1.3, .5, 1) .08s; }

/* ---------- 상점 ---------- */
.store-card { width: 1180px; max-height: 900px; gap: 16px; }
.store-head { display: flex; align-items: center; gap: 24px; }
.store-head h2 { flex: none; }
.store-head .wallet { flex: 1; }
.store-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; overflow-y: auto; padding: 4px; touch-action: pan-y; }
.item { display: grid; grid-template-columns: 110px 1fr; grid-template-rows: auto 1fr auto; column-gap: 16px; row-gap: 4px;
  background: #fff; border: 3px solid var(--line); border-radius: 20px; padding: 14px 16px; }
.item img { grid-row: 1 / span 3; width: 110px; height: 110px; object-fit: contain; align-self: center; }
.item h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30px; }
.item p { margin: 0; font-size: 21px; line-height: 1.45; color: #5d5753; }
.item .btn { justify-self: start; font-size: 24px; padding: 8px 18px; border-radius: 14px; }
.item.owned { border-color: var(--mint); }
.item .tag-owned { font-family: var(--display); font-size: 24px; color: var(--mint); }
.store-note { grid-column: 1 / -1; margin: 0; font-size: 22px; color: #5d5753; }

/* 천막 색 (계산대 그림의 천막 부분만 색을 돌린다) */
.awning { clip-path: inset(0 0 84% 0); z-index: 1; }
/* 꾸미기 장식 */
#decos, #decos-back { position: absolute; inset: 0; pointer-events: none; }
#decos { z-index: 1; }
.deco { position: absolute; }
.deco img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .25)); }
.deco span { position: absolute; left: 0; right: 0; top: 52%; text-align: center; font-family: var(--display); font-size: 28px; color: #6f3818; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
/* 맛이 많아지면 그릇·진열대를 알맞게 줄인다 */
.bowl img { width: min(140px, calc(790px / var(--n, 5) - 16px)); height: min(104px, calc((790px / var(--n, 5) - 16px) * .8)); }
.bowls .gauge { width: min(120px, calc(790px / var(--n, 5) - 22px)); }
.slot .pile { zoom: var(--pz, 1); }

/* ---------- 하루 끝 별 ---------- */
.stars { display: flex; gap: 14px; }
.stars span { font-family: var(--display); font-size: 84px; line-height: 1; color: #d6dbe2; }
.stars span.on { color: var(--crust); text-shadow: 0 4px 0 #a86f12; animation: starpop .45s cubic-bezier(.3, 1.6, .5, 1) backwards; }
@keyframes starpop { from { transform: scale(0) rotate(-40deg); } }

.bowls.few { justify-content: center; }
.bowls.few .bowl { flex: 0 0 190px; }
.item img.awning-pic { object-fit: cover; object-position: top; height: 60px; border-radius: 10px; }

/* ---------- 붕어빵 가게 상자: 나무 테두리 + 빨강·크림 줄무늬 천막 ----------
   계산대 그림의 천막·나무와 같은 색을 써서 글자 판도 포장마차의 한 부분처럼 보이게 한다. */
.picker, .home-shop, .ledger, .card {
  --aw: 26px;   /* 천막 띠 높이 */
  --sc: 22px;   /* 천막 물결 반지름 */
  --wood: #c27238; --wood-dark: #6f3818;
  background: var(--paper);
  border: 10px solid var(--wood); border-radius: 30px;
  box-shadow: 0 0 0 3px var(--wood-dark), inset 0 0 0 3px rgba(111, 56, 24, .35), 0 18px 40px rgba(20, 24, 40, .45);
  padding-top: calc(var(--aw) + var(--sc) + 16px);
}
.card { position: relative; }
.picker::before, .home-shop::before, .ledger::before, .card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--aw) + var(--sc));
  border-radius: 18px 18px 0 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, #d8453a 0 calc(var(--sc) * 2), #f5e0bb calc(var(--sc) * 2) calc(var(--sc) * 4)) calc(50% + var(--sc)) 0 / calc(var(--sc) * 4) 100%;
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% var(--aw) no-repeat,
    radial-gradient(circle at 50% 0, #000 calc(var(--sc) - 1px), transparent var(--sc)) 50% var(--aw) / calc(var(--sc) * 2) var(--sc) repeat-x;
          mask:
    linear-gradient(#000 0 0) top / 100% var(--aw) no-repeat,
    radial-gradient(circle at 50% 0, #000 calc(var(--sc) - 1px), transparent var(--sc)) 50% var(--aw) / calc(var(--sc) * 2) var(--sc) repeat-x;
}
.home-shop { --aw: 14px; --sc: 16px; padding-top: calc(var(--aw) + var(--sc) + 10px); }
.ledger { --aw: 14px; --sc: 16px; padding-top: calc(var(--aw) + var(--sc) + 12px); }
.picker { padding-top: calc(var(--aw) + var(--sc) + 14px); top: 24px; }
.unit { padding: 11px 20px; }
