/* =====================================================================
 *  베니 베이커리 — 스타일
 *  레이아웃: 세로 1열(최대 480px), 위→아래 = HUD / 손님 / 카운터(베니+완료칸) / 스테이션 / 내비
 * ===================================================================== */
:root {
  /* 팔레트: 2027 표지 일러스트에서 추출 — 복숭아 줄무늬 벽, 토마토 레드 숫자, 회색 조리대, 민트 케이크대, 주황 체크 앞치마 */
  --bg: #FCE9CF;          /* 복숭아 크림 */
  --bg-2: #FADAAD;        /* 줄무늬 벽 */
  --paper: #FFFCF3;       /* 카드 */
  --ink: #4A3326;         /* 선화 브라운 */
  --ink-soft: #8A6A55;
  --accent: #C9564A;      /* 2027 토마토 레드 */
  --accent-deep: #A8433A;
  --accent-ink: #5B2A22;  /* 레드 글자 외곽선 */
  --mint: #9ADBCF;        /* 케이크대 민트 */
  --mint-deep: #2F8E7F;
  --butter: #FEDD81;
  --tangerine: #FE7D4C;   /* 앞치마 주황 */
  --sky: #BDE0FE;
  --counter: #D5D1C7;     /* 조리대 회색 */
  --danger: #D84A3C;
  --warn: #F2A445;
  --ok: #5DB37E;
  --line: #EBD2B0;
  --shadow: 0 6px 0 rgba(74, 51, 38, .12);
  --radius: 18px;
  --font-display: 'Jua', 'Gowun Dodum', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-body: 'Gowun Dodum', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  --font-serif: 'Abril Fatface', Georgia, 'Times New Roman', serif;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
@supports (height: 100dvh) { html, body { height: 100dvh; } }   /* 모바일 주소창 높이를 뺀 실제 보이는 높이 */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.4; overscroll-behavior: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
img { max-width: 100%; display: block; user-select: none; -webkit-user-drag: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; text-wrap: balance; letter-spacing: .01em; }
.num { font-variant-numeric: tabular-nums; }

#app {
  height: 100%; max-width: 480px; margin: 0 auto; position: relative; overflow: hidden;
  display: flex; flex-direction: column; background: var(--bg);
  padding-left: max(0px, env(safe-area-inset-left, 0px)); padding-right: max(0px, env(safe-area-inset-right, 0px));
}
.screen { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); padding-block: 12px;
  background-size: cover; background-position: center top; }
.screen[hidden] { display: none; }

/* ── 공용 ── */
.asset { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.asset img { width: 100%; height: 100%; object-fit: contain; }
.asset--fallback { font-size: 2em; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); border: 2px solid #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-display); font-size: 17px;
  padding: 12px 20px; border-radius: 999px; background: var(--paper); color: var(--ink); box-shadow: 0 4px 0 rgba(107,74,51,.18); transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(107,74,51,.18); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 4px 0 var(--accent-deep); }
.btn--primary:active { box-shadow: 0 1px 0 var(--accent-deep); }
.btn--mint { background: var(--mint); color: var(--ink); box-shadow: 0 4px 0 var(--mint-deep); }
.btn--mint:active { box-shadow: 0 1px 0 var(--mint-deep); }
.btn--ghost { background: rgba(255,255,255,.75); }
.btn--big { font-size: 22px; padding: 16px 32px; }
.btn--sm { font-size: 14px; padding: 8px 14px; }
/* 홈 버튼: 영업·랭킹 화면 모두 같은 작은 기본 버튼 */
.btn--home { flex: none; justify-self: start; width: auto; min-width: 56px; height: 32px; padding: 0 14px; font-size: 14px; border-radius: 999px; box-shadow: 0 3px 0 rgba(107,74,51,.18); }
.btn--home:active { box-shadow: 0 1px 0 rgba(107,74,51,.18); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.hud__sound, .home__sound { display: flex; gap: 6px; }

.home__privacy { font-size: 11px; color: var(--ink-soft); text-decoration: underline; }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.8); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 3px 0 rgba(107,74,51,.14); }
.iconbtn .asset { width: 24px; height: 24px; } .iconbtn .asset--fallback { font-size: 18px; }
.bubble { position: relative; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 8px 12px; font-size: 14px; box-shadow: 0 3px 0 rgba(107,74,51,.08); }
.bubble::after { content: ""; position: absolute; width: 12px; height: 12px; background: #fff; border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); transform: rotate(-45deg); }

/* ── 홈 ── */
.screen--home { align-items: center; text-align: center; gap: 12px; background: var(--counter); }
.title__name { display: block; font-family: var(--font-display); font-size: 42px; line-height: 1.05; color: var(--accent); letter-spacing: .01em;
  text-shadow: 2px 0 0 var(--accent-ink), -2px 0 0 var(--accent-ink), 0 2px 0 var(--accent-ink), 0 -2px 0 var(--accent-ink),
               2px 2px 0 var(--accent-ink), -2px 2px 0 var(--accent-ink), 2px -2px 0 var(--accent-ink), -2px -2px 0 var(--accent-ink), 0 6px 0 rgba(91, 42, 34, .22); }
.title__sub { display: block; font-family: var(--font-serif); font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-deep); margin-top: 8px; }
.best { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 14px; padding: 10px 18px; width: 100%; max-width: 320px; text-align: left; }
.best__label { font-size: 13px; color: var(--ink-soft); }
.best__value { font-family: var(--font-display); font-size: 30px; grid-row: 1 / span 2; align-self: center; color: var(--accent-deep); }
.best__rank { font-size: 13px; color: var(--ink-soft); }
.home__actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; }
.howto { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; font-size: 13px; color: var(--ink-soft); text-align: left; max-width: 320px; width: 100%; }
.howto li { display: flex; gap: 8px; align-items: center; } .howto__text { min-width: 0; } .howto .asset { width: 24px; height: 24px; flex: none; } .howto .asset--fallback { font-size: 18px; }
.home__footer { font-size: 11px; color: var(--ink-soft); opacity: .8; }

/* ── 영업 ── */
.screen--play { padding-block: 8px; gap: 8px; overflow-y: auto; }
.hud { display: grid; gap: 6px; background: rgba(255,255,255,.82); border-radius: var(--radius); padding: 8px 12px; box-shadow: var(--shadow); border: 2px solid #fff; }
.hud__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hearts { display: flex; gap: 1px; } .hearts .asset { width: 24px; height: 24px; } .hearts .asset--fallback { font-size: 18px; }
.heart--break { animation: heartbreak .6s ease both; }
.combo { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 10px; white-space: nowrap; border-radius: 999px; background: var(--bg-2); font-family: var(--font-display); transition: transform .15s; }
.combo__x { font-size: 18px; color: var(--accent-deep); } .combo__n { font-size: 12px; color: var(--ink-soft); }
.combo[data-tier="1.25"] { background: var(--butter); } .combo[data-tier="1.5"] { background: var(--mint); } .combo[data-tier="2"] { background: var(--accent); color: #fff; }
.combo[data-tier="2"] .combo__x, .combo[data-tier="2"] .combo__n { color: #fff; }
.combo--pop { animation: pop .3s ease; }
.stat { display: inline-flex; align-items: center; gap: 6px; }
.stat__label { font-size: 12px; color: var(--ink-soft); }
.stat__value { font-family: var(--font-display); font-size: 22px; }
.perfect { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-soft); }
.perfect__dots { display: inline-flex; gap: 2px; }
.perfect__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(107,74,51,.14); display: block; }
.perfect__dots i.is-on { background: var(--accent); }
.perfect__n { font-family: var(--font-display); font-size: 13px; color: var(--ink); }
.perfect--pop { animation: pop .3s ease; }
.heart--gain { animation: pop .5s ease; }
.stat--status { font-size: 12px; color: var(--mint-deep); font-weight: 700; }

/* 손님 칸 최소 높이 = 손님이 찬 카드의 실제 높이 → 손님이 와도 칸 높이가 변하지 않음 (화면 흔들림 방지) */
.orders { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-height: 170px; max-height: 220px; flex: 1; align-content: stretch; }
/* 떠나는/서빙된 손님: 흐름에서 빼서(absolute) 새 손님이 바로 자리를 차지, 애니메이션은 맨 앞 레이어 */
.order--out { position: absolute !important; z-index: 20; pointer-events: none; margin: 0; }
.order { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 8px 8px; border-radius: var(--radius);
  background: rgba(255,255,255,.7); border: 2px dashed transparent; animation: slidein .35s ease both; cursor: pointer; }
.order--empty { border-color: var(--line); background: rgba(255,255,255,.35); justify-content: center; color: var(--ink-soft); font-size: 13px; animation: none; cursor: default; }
.order--hurry { background: rgba(250, 218, 173, .92); }
.order--hurry .order__customer { animation: wiggle .5s ease-in-out infinite; }
.order--leaving { animation: leave .5s ease forwards; }
.order--leaving::before { content: '💢'; position: absolute; top: 4px; right: 8px; font-size: 20px; }
.order--served { animation: served .55s ease forwards; }
.order__bubble { display: flex; align-items: center; gap: 4px; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 4px 10px; position: relative; }
.order__bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 10px; height: 10px; margin-left: -5px; background: #fff; border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); transform: rotate(45deg); }
.order__bubble .asset { width: 44px; height: 44px; } .order__bubble .asset--fallback { font-size: 30px; }
.order__customer .asset { width: 72px; height: 72px; } .order__customer .asset--fallback { font-size: 52px; }
.order__patience { width: 100%; height: 10px; border-radius: 999px; background: rgba(107,74,51,.12); overflow: hidden; }
.order__patience-fill { height: 100%; border-radius: 999px; background: var(--ok); transition: width .1s linear, background .3s; }
.order__patience-fill[data-level="mid"] { background: var(--warn); } .order__patience-fill[data-level="low"] { background: var(--danger); }
.order__shake { animation: shake .35s ease; }

.counter { display: grid; grid-template-columns: 120px 1fr; gap: 8px; align-items: end; }
.benny { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; }
.benny > .asset { width: 104px; height: 127px; } .benny > .asset--fallback { font-size: 80px; }
/* 작업대: 베니 앞에 서서 그릇이 상판에 닿게 (상판 = 그림 위에서 26.5%, 베니 그릇 = 베니 높이의 87%)
 *  margin-top = -(베니 높이 × 0.13 + 작업대 높이 × 0.265), 작업대 높이 = 칸 너비 ÷ 2.09 */
.benny__counter { position: relative; z-index: 1; width: 100%; aspect-ratio: 512 / 245; margin-top: -32px; pointer-events: none; }
.benny__counter .asset { width: 100%; height: 100%; display: block; } .benny__counter .asset--fallback { display: none; }
/* 표정은 그림만 교체 — 베니 위치·크기는 고정 (이동/회전 없음) */
.benny--happy > .asset, .benny--wow > .asset { filter: drop-shadow(0 0 6px rgba(255,217,125,.9)); }
.benny--sad > .asset { filter: saturate(.8); }
.bubble--benny { position: absolute; left: 6px; bottom: calc(100% - 6px); width: max-content; max-width: 150px; z-index: 40; font-size: 13px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.bubble--benny.is-on { opacity: 1; }
.bubble--benny::after { left: 22px; bottom: -8px; transform: rotate(-45deg); }
.tray { background: rgba(255,255,255,.82); border-radius: var(--radius); border: 2px solid #fff; box-shadow: var(--shadow); padding: 6px 8px 8px; }
.tray__label { font-size: 11px; color: var(--ink-soft); margin-bottom: 4px; display: flex; justify-content: space-between; }
.tray__items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tray__item .tray__name { max-width: 100%; font-size: 9px; color: var(--ink-soft); text-align: center; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray__item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 54px; padding: 3px 2px 2px; border-radius: 14px; background: var(--bg); border: 2px solid var(--line); transition: transform .1s; min-width: 0; }
.tray__item .asset { width: 30px; height: 30px; } .tray__item .asset--fallback { font-size: 22px; }
.tray__item:disabled { opacity: .35; }
.tray__item:not(:disabled) { border-color: var(--mint-deep); background: #fff; }
.tray__item:not(:disabled):active { transform: scale(.94); }
.tray__count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-family: var(--font-display); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.tray__item:disabled .tray__count { display: none; }
.tray__item--pop { animation: pop .3s ease; }

.stations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.station { display: grid; grid-template-columns: 60px 1fr; grid-template-areas: 'name name' 'img actions' 'bar bar' 'time time'; column-gap: 8px; row-gap: 4px; align-items: center; padding: 8px 8px 6px; border-radius: var(--radius); background: rgba(255,255,255,.82); border: 2px solid #fff; box-shadow: var(--shadow); position: relative; min-height: 128px; }
.station__name { grid-area: name; } .station__img { grid-area: img; } .station__bar { grid-area: bar; } .station__time { grid-area: time; } .station__actions { grid-area: actions; }
.station__name { font-size: 12px; color: var(--ink-soft); }
.station__img { position: relative; width: 60px; height: 60px; cursor: pointer; }
.station__img .asset { width: 100%; height: 100%; } .station__img .asset--fallback { font-size: 60px; }
.station[data-status="done"] .station__img { animation: bob 1s ease-in-out infinite; }
.station__item { position: absolute; right: -10px; bottom: -6px; width: 34px; height: 34px; background: #fff; border-radius: 50%; border: 2px solid var(--line); display: none; align-items: center; justify-content: center; }
.station__item .asset { width: 80%; height: 80%; } .station__item .asset--fallback { font-size: 22px; }
.station[data-status="cooking"] .station__item, .station[data-status="topping"] .station__item, .station[data-status="done"] .station__item { display: flex; }
.station__bar { width: 100%; height: 8px; border-radius: 999px; background: rgba(107,74,51,.12); overflow: hidden; }
.station__fill { height: 100%; width: 0; background: var(--sky); border-radius: 999px; }
.station[data-status="done"] .station__fill { background: var(--mint-deep); width: 100% !important; }
.station__time { font-size: 11px; color: var(--ink-soft); height: 14px; line-height: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
/* 버튼 영역 높이 고정 (--rows 는 JS 가 스테이션별로 설정) → 상태가 바뀌어도 카드 크기가 그대로 */
.station { --sbtn-h: 28px; --act-gap: 4px; }
.station__actions { display: flex; flex-direction: column; justify-content: center; gap: var(--act-gap); width: 100%; min-width: 0;
  height: calc(var(--rows, 2) * var(--sbtn-h) + (var(--rows, 2) - 1) * var(--act-gap)); overflow: hidden; }
.station__actions .sbtn { height: var(--sbtn-h); flex: none; padding-block: 0; }
.sbtn { display: flex; align-items: center; justify-content: center; gap: 3px; width: 100%; min-width: 0; padding: 6px 5px; border-radius: 12px; background: var(--bg-2); font-family: var(--font-display); font-size: 12px; box-shadow: 0 3px 0 rgba(107,74,51,.14); white-space: nowrap; }
.sbtn__label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.sbtn small { flex: none; font-size: 10px; color: var(--ink-soft); font-family: var(--font-body); }
.sbtn .asset { flex: none; }
.sbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(107,74,51,.14); }
.sbtn .asset { width: 18px; height: 18px; } .sbtn .asset--fallback { font-size: 14px; }
.sbtn--collect { background: var(--mint); animation: pulse 1s ease-in-out infinite; }
.sbtn--top { background: #fff; box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 rgba(107,74,51,.14); }
.sbtn--top.is-next { box-shadow: inset 0 0 0 2px var(--accent), 0 3px 0 rgba(107,74,51,.14); background: var(--bg-2); }
.sbtn--top.is-done { opacity: .5; }
.sbtn--locked { opacity: .5; filter: grayscale(.7); box-shadow: none; }
.sbtn--locked small { color: var(--accent); font-weight: 700; }
.station__status { font-size: 11.5px; color: var(--ink-soft); text-align: center; padding: 3px 0; }
.station--shake { animation: shake .35s ease; }

.playnav { display: flex; align-items: center; gap: 10px; padding-bottom: 4px; }
.playnav__hint { font-size: 12px; color: var(--ink-soft); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fx-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.fx-float { position: absolute; font-family: var(--font-display); font-size: 22px; color: var(--accent-deep); text-shadow: 0 2px 0 #fff; animation: floatup 1s ease-out forwards; white-space: nowrap; transform: translate(-50%, 0); }
.fx-float small { font-size: 13px; color: var(--ink-soft); display: block; text-align: center; }
.fx-float--bad { color: var(--danger); }
.fx-float--tier { font-size: 30px; color: var(--mint-deep); }
.fx-star { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--butter); animation: burst .7s ease-out forwards; }

/* ── 결과 ── */
.screen--result { align-items: center; text-align: center; gap: 10px; }
/* 작업대 뒤의 베니 (결과·영업 종료 화면) — --bw: 베니 너비, --cw: 작업대 너비 */
.benny-stand { display: flex; flex-direction: column; align-items: center; --bw: 120px; --cw: 150px; }
.benny-stand > .asset { width: var(--bw); height: calc(var(--bw) * 1.2222); } .benny-stand > .asset--fallback { font-size: 80px; }
.benny-stand > .benny__counter { width: var(--cw); margin-top: calc(-0.159 * var(--bw) - 0.1268 * var(--cw)); }
.result__benny { margin-top: 20px; }
.result__title { font-size: 32px; }
.result__score { display: flex; flex-direction: column; padding: 10px 28px; min-width: 220px; }
.result__score span { font-size: 12px; color: var(--ink-soft); } .result__score b { font-family: var(--font-display); font-weight: 400; font-size: 44px; color: var(--accent-deep); line-height: 1.1; }
.result__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; max-width: 360px; }
.result__cell { background: rgba(255,255,255,.8); border-radius: 14px; padding: 8px 4px; display: flex; flex-direction: column; gap: 2px; }
.result__cell span { font-size: 11px; color: var(--ink-soft); } .result__cell b { font-family: var(--font-display); font-weight: 400; font-size: 20px; }
.result__new { font-size: 13px; color: var(--mint-deep); font-weight: 700; min-height: 18px; }
.submit { width: 100%; max-width: 360px; padding: 12px 14px; display: grid; gap: 8px; text-align: left; }
.submit label { font-size: 12px; color: var(--ink-soft); }
.submit__row { display: flex; gap: 8px; min-width: 0; }
.submit__row .btn { flex: none; white-space: nowrap; padding-inline: 16px; }
.submit input { flex: 1 1 0; width: 0; min-width: 0; font: inherit; font-size: 16px; padding: 10px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); }
.submit__msg { margin: 0; font-size: 13px; min-height: 18px; color: var(--ink-soft); }
.submit__msg.is-ok { color: var(--mint-deep); } .submit__msg.is-err { color: var(--danger); }
.result__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; padding-bottom: 8px; }

/* ── 랭킹 ── */
.rank__head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.rank__head h2 { font-size: 26px; text-align: center; }
.rank__head .iconbtn { justify-self: end; }
.rank__footer { position: sticky; bottom: 0; margin-top: auto; padding-top: 8px; padding-bottom: 4px; background: linear-gradient(to top, var(--bg) 70%, transparent); display: grid; gap: 8px; }
.rank__actions { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.modal__box--image { max-width: 360px; gap: 8px; max-height: 100%; overflow-y: auto; overflow-x: hidden; grid-template-columns: minmax(0, 1fr); }
@media (max-height: 600px) { .modal:has(.modal__box--image) { padding-block: 10px; } .modal__box--image { padding: 14px 16px; gap: 6px; } .modal__box--image h3 { font-size: 18px; } }
.image-preview { border-radius: 14px; border: 2px solid var(--line); background: var(--bg-2); min-height: 120px; display: flex; align-items: center; justify-content: center; padding: 6px; }
.image-preview img { display: block; width: auto; height: auto; max-width: 100%; max-height: max(120px, min(38dvh, calc(100dvh - 420px)));   /* 작은 화면에서는 남는 높이만큼만 */ border-radius: 8px; box-shadow: 0 2px 8px rgba(74,51,38,.15); -webkit-touch-callout: default; user-select: auto; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-2); }
.seg button { font-family: var(--font-display); font-size: 14px; padding: 7px 0; border-radius: 999px; color: var(--ink-soft); }
.seg button.is-on { background: var(--paper); color: var(--accent); box-shadow: 0 2px 0 rgba(107,74,51,.18); }
.image-preview__loading { padding: 40px 10px; color: var(--ink-soft); font-size: 13px; }
.image-hint { margin: 0; font-size: 12px; color: var(--ink-soft); }
.image-hint.is-ok { color: var(--mint-deep); } .image-hint.is-err { color: var(--danger); }
.rank__me { padding: 10px 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.rank__me .asset { width: 34px; height: 34px; } .rank__me .asset--fallback { font-size: 26px; }
.rank__me-label { font-size: 12px; color: var(--ink-soft); display: block; }
.rank__me-name { font-family: var(--font-display); font-size: 18px; }
.rank__me-score { text-align: right; } .rank__me-score b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--accent-deep); }
.rank__source { font-size: 12px; color: var(--ink-soft); margin: 10px 2px 4px; display: flex; justify-content: space-between; }
.rank__list { list-style: none; margin: 0; padding: 0 0 6px; display: grid; gap: 6px; }
.rank__date { font-size: 10px; color: var(--ink-soft); display: block; }
.rank__row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 14px; background: rgba(255,255,255,.8); }
.rank__row.is-me { outline: 2px solid var(--accent); background: #fff; }
.rank__row.is-top { background: #fff; }
.rank__pos { font-family: var(--font-display); font-size: 18px; color: var(--ink-soft); text-align: center; }
.rank__row.is-top .rank__pos { color: var(--accent-deep); font-size: 20px; }
.rank__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank__score { font-family: var(--font-display); font-size: 18px; }
.rank__empty, .rank__loading { text-align: center; padding: 30px 10px; color: var(--ink-soft); }

/* ── 모달 / 토스트 ── */
.modal { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: rgba(107,74,51,.35); padding: 24px; }
.modal[hidden] { display: none; }
.modal__box { padding: 20px; width: 100%; max-width: 320px; text-align: center; display: grid; gap: 12px; }
.modal__box h3 { font-size: 22px; }
.modal__box--text { text-align: left; font-size: 13px; line-height: 1.55; } .modal__box--text p { margin: 0; } .modal__box--text h3 { text-align: center; }
.overlay { position: absolute; inset: 0; z-index: 25; display: flex; align-items: center; justify-content: center; background: rgba(252,233,207,.94); animation: slidein .3s ease; }
.overlay[hidden] { display: none; }
.overlay__box { text-align: center; display: grid; gap: 6px; justify-items: center; } .overlay__box h3 { font-size: 30px; } .overlay__box p { margin: 0; color: var(--ink-soft); font-size: 13px; }

.modal__actions { display: flex; gap: 8px; justify-content: center; }
.toast { pointer-events: none; position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 30; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 13px; max-width: 90%; text-align: center; }
.toast[hidden] { display: none; }

/* ── 애니메이션 ── */
@keyframes bob { 0%, 100% { filter: brightness(1) drop-shadow(0 0 0 rgba(255,200,80,0)); } 50% { filter: brightness(1.12) drop-shadow(0 0 6px rgba(255,190,60,.85)); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes slidein { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes leave { to { opacity: 0; transform: translateX(-40px) scale(.9); } }
@keyframes served { 40% { transform: scale(1.06); } to { opacity: 0; transform: translateY(-20px) scale(.9); } }
@keyframes floatup { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.8); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -60px) scale(1); } }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }
@keyframes heartbreak { 0% { transform: scale(1); } 30% { transform: scale(1.3) rotate(-10deg); } 60% { transform: scale(.9) rotate(8deg); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (max-height: 700px) {
  .order__customer .asset { width: 56px; height: 56px; } .station { min-height: 110px; } .station__img { width: 60px; height: 60px; } .benny > .asset { width: 92px; height: 112px; }
}
@media (min-width: 480px) { #app { box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(107,74,51,.15); } }

/* ── 레벨 ── */
.lv { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 64px; }
.lv__n { font-family: var(--font-display); font-size: 16px; color: var(--mint-deep); line-height: 1; }
.lv__bar { width: 64px; height: 6px; border-radius: 999px; background: rgba(107,74,51,.12); overflow: hidden; }
.lv__fill { display: block; height: 100%; width: 0; background: var(--mint-deep); border-radius: 999px; transition: width .25s; }
.lv--pop { animation: pop .45s ease; }

/* ── 주문 알바 패널 ── */
.staff { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.staff__slot { position: relative; display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; min-height: 56px;
  border-radius: 16px; background: rgba(255,255,255,.82); border: 2px solid #fff; box-shadow: 0 4px 0 rgba(107,74,51,.10); }
.staff__slot--locked { background: rgba(255,255,255,.4); border: 2px dashed var(--line); box-shadow: none; }
.staff__slot--locked .staff__avatar { filter: grayscale(1); opacity: .45; }
.staff__avatar { width: 44px; height: 44px; } .staff__avatar .asset { width: 100%; height: 100%; } .staff__avatar .asset--fallback { font-size: 30px; }
.staff__slot--working .staff__avatar { animation: bob .6s ease-in-out infinite; }
.staff__info { min-width: 0; display: grid; gap: 3px; }
.staff__name { font-family: var(--font-display); font-size: 13px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.staff__status { font-size: 11px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.staff__bar { height: 5px; border-radius: 999px; background: rgba(107,74,51,.12); overflow: hidden; }
.staff__fill { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; }
.staff__slot--new { animation: hired .9s ease; }
@keyframes hired { 0% { transform: scale(.6); opacity: 0; } 50% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@media (max-height: 760px) { .staff__slot { min-height: 48px; padding-block: 4px; } .staff__avatar { width: 38px; height: 38px; } .staff__slot { grid-template-columns: 38px 1fr; } }

/* ── 완료 칸 버리기 모드 ── */
.tray__label { align-items: center; }
.tray__discard { font-family: var(--font-display); font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink); }
.tray__discard.is-on { background: var(--danger); color: #fff; }
.tray--discard .tray__item:not(:disabled) { border-color: var(--danger); background: #FDEDE6; }
.tray--discard .tray__item:not(:disabled)::after { content: "✕"; position: absolute; left: -6px; top: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.tray__item--gone { animation: shake .35s ease; }
/* ── 스테이션 버리기 ── */
.sbtn--discard { position: absolute; top: 4px; right: 6px; width: auto; z-index: 2; background: transparent; box-shadow: none; color: var(--ink-soft); font-size: 11px; padding: 2px 6px; text-decoration: underline; text-underline-offset: 2px; }
.sbtn--discard.is-confirm { background: var(--danger); color: #fff; text-decoration: none; border-radius: 10px; }
/* ── 공유 링크 ── */
.share-link { display: grid; gap: 4px; text-align: left; }
.share-link label { font-size: 11px; color: var(--ink-soft); }
.share-link__row { display: flex; gap: 6px; min-width: 0; }
.share-link__row .btn { flex: none; white-space: nowrap; }
.share-link input { flex: 1 1 0; width: 0; min-width: 0; font: inherit; font-size: 12px; padding: 8px 12px; border-radius: 999px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); }
.modal__box--image .modal__actions { flex-wrap: wrap; }

/* ── 실행 표지 ── */
.screen--cover { padding: 0; background: var(--counter); cursor: pointer; align-items: stretch; overflow: hidden; }
.cover__art { width: 100%; aspect-ratio: 3 / 4; max-height: calc(100% - 210px); flex: none; overflow: hidden; position: relative; }
.cover__art .asset { width: 100%; height: 100%; display: block; } .cover__art img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.cover__art .asset--fallback { background: var(--bg-2); }
.cover__art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40px; background: linear-gradient(to bottom, rgba(213,209,199,0), var(--counter)); }
.cover__panel { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); padding-block: 4px 14px; }
.cover__panel .title__name { font-size: 44px; }
.cover__start { font-family: var(--font-display); font-size: 18px; color: var(--accent); background: var(--paper); padding: 11px 26px; border-radius: 999px;
  box-shadow: 0 4px 0 var(--accent-ink); border: 2px solid var(--accent-ink); animation: cover-pulse 1.4s ease-in-out infinite; }
.cover__start:disabled { animation: none; opacity: .7; }
.cover__progress { width: 160px; height: 6px; border-radius: 999px; background: rgba(74,51,38,.15); overflow: hidden; }
.cover__progress span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .2s; }
.cover__progress[hidden] { display: none; }
.cover__meta { margin: 0; font-size: 11px; color: var(--ink-soft); }
.screen--cover.is-leaving { animation: cover-leave .45s ease forwards; }
@keyframes cover-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes cover-leave { to { opacity: 0; transform: scale(1.04); } }
@media (max-height: 700px) { .cover__art { max-height: calc(100% - 180px); } .cover__panel .title__name { font-size: 36px; } }

/* ── 사용방법 ── */
.home__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn--funding { width: 100%; max-width: 320px; min-width: 0; gap: 6px; padding: 10px 14px; font-size: 15px; text-decoration: none; color: var(--accent-deep);
  background: linear-gradient(180deg, #FFF6DF, #FADAAD); border: 2px solid var(--accent-ink); box-shadow: 0 3px 0 var(--accent-ink); }
.btn--funding:active { box-shadow: 0 1px 0 var(--accent-ink); }
.btn--funding[hidden] { display: none; }
.btn--funding__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn--funding__arrow { flex: none; font-size: 20px; line-height: 1; }
.modal__box--image .btn--funding { max-width: none; padding: 8px 12px; font-size: 14px; }
.modal__box--image .btn--funding__label { white-space: normal; text-wrap: balance; word-break: keep-all; line-height: 1.25; }   /* 좁으면 잘리지 않고 두 줄로 */
.btn--howto { background: var(--paper); color: var(--accent); border: 2px solid var(--accent); box-shadow: 0 4px 0 var(--accent-ink); }
.btn--howto:active { box-shadow: 0 1px 0 var(--accent-ink); }
.modal__box--howto { max-width: 400px; max-height: 84%; display: flex; flex-direction: column; gap: 12px; text-align: left; padding: 18px 16px 16px; }
.modal__box--howto h3 { text-align: center; font-size: 26px; color: var(--accent); }
.howto-body { overflow-y: auto; min-height: 0; display: grid; gap: 16px; padding-right: 2px; }
.howto-sec h4 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 400; font-size: 17px; color: var(--accent-deep); }
.howto-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.howto-item { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; background: var(--bg); border-radius: 14px; padding: 8px 10px; }
.howto-item__icon { position: relative; width: 44px; height: 44px; } .howto-item__icon .asset { width: 100%; height: 100%; } .howto-item__icon .asset--fallback { font-size: 28px; }
.howto-item__num { position: absolute; left: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-display); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.howto-item__text { min-width: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.howto-item__text b { font-family: var(--font-display); font-weight: 400; color: var(--accent-deep); }
.howto-item__title { display: block; font-family: var(--font-display); font-size: 16px; color: var(--ink); margin-bottom: 1px; }

/* 홈: 규칙 목록 아래 사용방법 링크 (목록을 눌러도 열림) */
#howto { cursor: pointer; }
.home__howto-link { font-family: var(--font-display); font-size: 14px; color: var(--accent); padding: 4px 10px; text-decoration: underline; text-underline-offset: 3px; }

/* ── 배달 주문 ── */
.delivery { position: relative; z-index: 3; display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--radius);
  background: var(--paper); border: 2px solid var(--accent-ink); box-shadow: 0 4px 0 var(--accent-ink); animation: slidein .35s ease both; }
.delivery[hidden] { display: none; }
.delivery--urgent { animation: shake .5s ease infinite; }
.delivery__icon { width: 44px; height: 44px; } .delivery__icon .asset { width: 100%; height: 100%; } .delivery__icon .asset--fallback { font-size: 30px; }
.delivery__body { min-width: 0; display: grid; gap: 4px; }
.delivery__title { font-family: var(--font-display); font-size: 14px; color: var(--accent); display: flex; justify-content: space-between; gap: 6px; }
.delivery__time { font-size: 12px; color: var(--ink-soft); }
.delivery__items { display: flex; flex-wrap: wrap; gap: 4px; }
.delivery__item { display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px 1px 2px; border-radius: 999px; background: var(--bg); border: 1.5px solid var(--line); font-size: 12px; font-family: var(--font-display); }
.delivery__item .asset { width: 22px; height: 22px; } .delivery__item .asset--fallback { font-size: 15px; }
.delivery__item.is-ready { border-color: var(--mint-deep); background: #E8F7F2; }
.delivery__bar { height: 6px; border-radius: 999px; background: rgba(74,51,38,.12); overflow: hidden; }
.delivery__bar span { display: block; height: 100%; width: 100%; background: var(--tangerine); border-radius: 999px; }
.delivery__send { font-family: var(--font-display); font-size: 13px; line-height: 1.15; padding: 8px 10px; border-radius: 14px; background: var(--counter); color: var(--ink-soft); }
.delivery__send:not(:disabled) { background: var(--accent); color: #fff; box-shadow: 0 3px 0 var(--accent-ink); animation: pulse 1s ease-in-out infinite; }
.delivery__send:not(:disabled):active { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-ink); }
.delivery-scene { position: absolute; inset: 0; z-index: 45; pointer-events: none; display: flex; align-items: flex-start; justify-content: center; padding-top: 22vh; }
.delivery-scene[hidden] { display: none; }
.delivery-scene__card { width: min(250px, 66%); background: var(--paper); border: 3px solid var(--accent-ink); border-radius: 18px; padding: 6px; box-shadow: 0 6px 0 rgba(74,51,38,.25);
  animation: ride 2s cubic-bezier(.3,.6,.4,1) forwards; text-align: center; }  /* 길이는 JS 가 DELIVERY.sceneMs 로 맞춤 */
.delivery-scene__img { border-radius: 12px; overflow: hidden; aspect-ratio: 5 / 4; }
.delivery-scene__img .asset { width: 100%; height: 100%; } .delivery-scene__img img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 82%; }
.delivery-scene__cap { margin: 4px 0 0; font-family: var(--font-display); font-size: 15px; color: var(--accent); }
@keyframes ride { 0% { transform: translateX(110%) rotate(4deg); opacity: 0; } 12% { transform: translateX(0) rotate(-1deg); opacity: 1; } 82% { transform: translateX(0) rotate(0); opacity: 1; } 100% { transform: translateX(-120%) rotate(-4deg); opacity: 0; } }

/* 배달 주문이 떠 있을 때 화면 압축 (한 화면에 조리대까지 보이도록) */
.delivery { padding: 6px 8px; gap: 8px; grid-template-columns: 36px 1fr auto; }
.delivery__icon { width: 36px; height: 36px; }
.delivery__items { flex-wrap: nowrap; overflow: hidden; }
.delivery__send { padding: 6px 9px; font-size: 12.5px; }
.order { background: rgba(255,252,243,.86); }

/* ── 결과: 메뉴판 ── */
.menuboard { position: relative; width: 100%; max-width: 380px; background: var(--paper); border: 3px solid var(--accent-ink); border-radius: 18px;
  padding: 14px 14px 10px; box-shadow: 0 6px 0 rgba(74,51,38,.22); text-align: left; }
.menuboard::before { content: ""; position: absolute; inset: 5px; border: 1.5px dashed var(--line); border-radius: 13px; pointer-events: none; }
.menuboard__title { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 20px; color: var(--accent); justify-content: center; }
.menuboard__title::before, .menuboard__title::after { content: ""; flex: 0 1 46px; height: 2px; background: var(--accent); opacity: .5; border-radius: 2px; }
.menuboard__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.menuboard__col h4 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 400; font-size: 13px; color: var(--tangerine); letter-spacing: .04em; border-bottom: 2px solid var(--bg-2); padding-bottom: 2px; }
.menuboard__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.menuboard__col li { display: flex; align-items: baseline; gap: 3px; min-width: 0; }
.mb__name { flex: none; font-size: 14px; font-weight: 700; color: var(--ink); }
.mb__dots { flex: 1 1 auto; min-width: 8px; border-bottom: 2px dotted #CDB394; transform: translateY(-4px); }
.mb__val { flex: none; font-family: var(--font-display); font-weight: 400; font-size: 19px; color: var(--ink); line-height: 1; }
.mb__unit { flex: none; font-size: 11px; color: var(--ink-soft); }
.menuboard__foot { margin: 10px 0 0; padding-top: 8px; border-top: 2px dotted #CDB394; text-align: center; font-family: var(--font-display); font-size: 15px; color: var(--accent); min-height: 18px; }
.menuboard__foot:empty { display: none; }
.result__title { color: var(--accent); background: var(--paper); padding: 4px 18px; border-radius: 999px; border: 2px solid var(--accent-ink); box-shadow: 0 4px 0 rgba(74,51,38,.2); font-size: 26px; }
@media (max-width: 360px) { .mb__name { font-size: 13px; } .mb__val { font-size: 17px; } .menuboard__cols { gap: 6px 10px; } }

/* =====================================================================
 *  모바일 자동 맞춤
 *  ① 화면(홈·영업·결과)의 내용은 .stage 하나에 담겨 있고, app.js 의 fitScreen() 이
 *     보이는 높이에 맞춰 stage 를 늘리거나(여유 있을 때) 비율대로 축소(모자랄 때)합니다.
 *  ② 축소 전에 아래 높이 구간별 압축 레이아웃이 먼저 적용되어 글자가 최대한 선명하게 유지됩니다.
 * ===================================================================== */
.screen:has(> .stage):not([hidden]) { display: block; padding: 0; overflow-x: hidden; overflow-y: hidden; }
.stage { display: flex; flex-direction: column; min-height: 100%; width: 100%; transform-origin: 0 0;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); padding-block: 12px; }
.stage--home { align-items: center; text-align: center; gap: 0; padding: 0; }
/* 홈 = 2027 표지 일러스트 + 아래 버튼 패널 */
.home__art { width: 100%; flex: 1 1 0; min-height: 190px; max-height: 133.4vw; overflow: hidden; position: relative; }   /* 버튼 패널을 뺀 나머지를 그림이 모두 채움 */
.home__art .asset { width: 100%; height: 100%; display: block; } .home__art img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }   /* 짧은 화면에서도 2027 글자와 베니 얼굴이 함께 보이게 */
.home__art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40px; background: linear-gradient(to bottom, rgba(213,209,199,0), var(--counter)); }
.home__panel { flex: none; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; margin-top: -8px; position: relative;
  padding: 0 max(16px, env(safe-area-inset-left, 0px)) 8px max(16px, env(safe-area-inset-right, 0px)); }
.home__panel .title__name { font-size: 38px; } .home__panel .title__sub { margin-top: 4px; font-size: 13px; }
.home__meta { display: flex; align-items: center; justify-content: center; gap: 10px; }
.home__meta .iconbtn { width: 34px; height: 34px; }
/* 저작권 표기: 모든 화면 맨 아래 고정 */
.copyright { flex: none; text-align: center; font-size: 10.5px; letter-spacing: .04em; line-height: 1; color: var(--ink-soft);
  background: var(--counter); padding: 4px 0 max(4px, env(safe-area-inset-bottom, 0px)); position: relative; z-index: 5; user-select: none; }
.stage--play { gap: 8px; padding-block: 8px; }
.stage--result { align-items: center; text-align: center; gap: 10px; }

/* 1단계: 보이는 높이 760px 이하 (iPhone 13/14/15, 대부분의 안드로이드 + 주소창) */
@media (max-height: 760px) {
  .stage--play { gap: 6px; padding-block: 6px; }
  .hud { padding: 6px 10px; gap: 4px; } .hearts .asset { width: 22px; height: 22px; } .stat__value { font-size: 20px; }
  .iconbtn { width: 34px; height: 34px; } .iconbtn .asset { width: 20px; height: 20px; }
  .orders { min-height: 138px; } .order { padding: 4px 6px 6px; gap: 2px; }
  .order__customer .asset { width: 56px; height: 56px; } .order__bubble .asset { width: 36px; height: 36px; }
  .counter { grid-template-columns: 100px 1fr; } .benny > .asset { width: 88px; height: 108px; } .benny__counter { margin-top: -27px; }
  .tray { padding: 4px 6px 6px; } .tray__item { height: 46px; } .tray__item .asset { width: 26px; height: 26px; }
  .staff__slot { min-height: 44px; padding-block: 3px; grid-template-columns: 34px 1fr; } .staff__avatar { width: 34px; height: 34px; }
  .station { --sbtn-h: 25px; --act-gap: 3px; min-height: 106px; padding: 6px 6px 4px; row-gap: 3px; grid-template-columns: 54px 1fr; } .station__img { width: 54px; height: 54px; }
  .sbtn { padding: 4px; font-size: 11.5px; }
  .home__panel { gap: 8px; } .home__panel .title__name { font-size: 34px; } .btn--big { padding: 12px 28px; font-size: 20px; }
  .stage--result { gap: 8px; } .result__benny { margin-top: 4px; --bw: 84px; --cw: 106px; }
  .result__score { padding: 6px 24px; } .result__score b { font-size: 36px; }
}
/* 2단계: 680px 이하 (iPhone SE·작은 안드로이드 + 주소창) */
@media (max-height: 680px) {
  .orders { min-height: 122px; } .order__customer .asset { width: 46px; height: 46px; } .order__bubble .asset { width: 30px; height: 30px; }
  .counter { grid-template-columns: 84px 1fr; } .benny > .asset { width: 76px; height: 93px; } .benny__counter { margin-top: -23px; }
  .tray__item { height: 40px; } .tray__item .tray__name { display: none; } .tray__label { margin-bottom: 2px; }
  .staff__slot--locked { display: none; }                                    /* 고용 전 알바 칸은 숨김 */
  .staff:not(:has(.staff__slot:not(.staff__slot--locked))) { display: none; }
  .station { --sbtn-h: 23px; min-height: 94px; grid-template-columns: 46px 1fr; } .station__img { width: 46px; height: 46px; }
  .station__name { font-size: 11px; } .station__time { height: 12px; line-height: 12px; font-size: 10px; }
  .playnav__hint { font-size: 11px; }
  .home__panel { gap: 6px; } .home__panel .title__name { font-size: 30px; } .title__sub { margin-top: 4px; font-size: 13px; }
  .best { padding: 6px 14px; } .best__value { font-size: 26px; }
  .menuboard { padding: 10px 12px 8px; } .menuboard__title { margin-bottom: 6px; font-size: 18px; } .menuboard__col ul { gap: 3px; }
}

/* 배경이 그림이 되면서 카드가 비쳐 보이던 문제: 카드 불투명도를 높여 작은 화면에서도 또렷하게 */
.hud, .tray, .station, .staff__slot:not(.staff__slot--locked) { background: rgba(255, 252, 243, .94); }
.order { background: rgba(255, 252, 243, .9); }
.order--empty { background: rgba(255, 252, 243, .7); }
.staff__slot--locked { background: rgba(255, 252, 243, .72); }
.tray__item:disabled { opacity: .5; }
.home__privacy { background: rgba(255, 252, 243, .85); padding: 2px 10px; border-radius: 999px; }


/* =====================================================================
 *  v2.12 디자인: 시안 2-1 「하얀 베이커리 종이 + 베니 무대」
 *  · 카드: 반투명 흰 종이 + 안쪽 바느질 점선  · 이름표: 크라프트지 태그
 *  · 버튼: 메뉴는 버터색 알약, 보조(버리기·홈)는 흰 바탕 + 민트 테두리·점, 선택/꺼내기는 딸기 분홍
 *  · 베니: 시안보다 5% 작게, 단색 원형 조명 무대 + 「베니」 이름표
 * ===================================================================== */
:root { --paper-card: rgba(255, 255, 255, .86); --stitch: rgba(196, 156, 108, .55); --kraft: #EBD7B5; --kraft-ink: #6B4A33;
  --pick: #FBD8D4; --pick-line: #E59A92; --card-shadow: 0 4px 14px rgba(107, 74, 51, .11); }
.hud, .order, .tray, .station, .staff__slot:not(.staff__slot--locked), .delivery, .card:not(.menuboard) {
  background: var(--paper-card); border: 0; box-shadow: var(--card-shadow); outline: 1.5px dashed var(--stitch); outline-offset: -6px; }
.order--empty { background: rgba(255, 255, 255, .55); box-shadow: none; }
.staff__slot--locked { outline: 1.5px dashed var(--stitch); outline-offset: -6px; border: 0; }
.modal__box.card { outline-offset: -8px; }

/* 이름표 (조리대 이름) */
.station__name { justify-self: start; background: var(--kraft); color: var(--kraft-ink); font-family: var(--font-display); font-size: 12px; line-height: 1.5; padding: 1px 10px; border-radius: 999px; }
.station__name::before { content: '◦ '; color: #B08D64; } .station__name::after { content: ' ◦'; color: #B08D64; }

/* 메뉴 버튼 = 버터색 알약 */
.sbtn { background: #FFF3D6; color: var(--ink); box-shadow: inset 0 0 0 1px #EFDBAE, 0 2px 0 rgba(107, 74, 51, .12); }
.sbtn:active { box-shadow: inset 0 0 0 1px #EFDBAE; }
.sbtn--top { background: #fff; box-shadow: inset 0 0 0 1.5px var(--mint), 0 2px 0 rgba(107, 74, 51, .1); }
.sbtn--top.is-next { background: #EEF9F5; box-shadow: inset 0 0 0 2px var(--mint-deep), 0 2px 0 rgba(107, 74, 51, .1); }
.sbtn--collect { background: var(--pick); color: #8A2F28; box-shadow: inset 0 0 0 1.5px var(--pick-line), 0 2px 0 rgba(181, 74, 63, .18); }
.sbtn--locked { background: #F6F1E8; box-shadow: none; }

/* 보조 버튼 = 흰 바탕 + 민트 테두리 + 민트 점 (버리기 · 홈) */
.sbtn--discard, .tray__discard, .btn--home {
  background: radial-gradient(circle at 10px 50%, var(--mint-deep) 0 3px, transparent 3.5px), #fff;
  box-shadow: inset 0 0 0 1.5px var(--mint), 0 2px 0 rgba(107, 74, 51, .12); color: var(--ink); text-decoration: none; }
.sbtn--discard { padding: 2px 8px 2px 18px; border-radius: 999px; font-family: var(--font-display); }
.tray__discard { padding: 3px 9px 3px 19px; }
.btn--home { padding: 0 14px 0 24px; background-position: 4px 0, 0 0; }
.btn--home { background: radial-gradient(circle at 13px 50%, var(--mint-deep) 0 3.5px, transparent 4px), #fff; }
.sbtn--discard.is-confirm, .tray__discard.is-on { background: var(--danger); color: #fff; box-shadow: none; }

/* 완료 칸: 흰 칸, 상품이 있으면 딸기 분홍 */
.tray__item { background: rgba(255, 255, 255, .92); border: 1.5px solid #EBDDC6; }
.tray__item:not(:disabled) { background: var(--pick); border-color: var(--pick-line); }
.tray__item:disabled { opacity: 1; } .tray__item:disabled .asset { opacity: .5; }
.tray__label { color: var(--kraft-ink); }

/* 상단 바 */
.iconbtn { background: #fff; box-shadow: inset 0 0 0 1.5px #EBDDC6, 0 2px 0 rgba(107, 74, 51, .1); }
.combo:not([data-tier="1.25"]):not([data-tier="1.5"]):not([data-tier="2"]) { background: var(--pick); }

/* 일반 버튼 (홈·결과·랭킹) */
.btn--ghost { background: #fff; box-shadow: inset 0 0 0 1.5px var(--mint), 0 3px 0 rgba(107, 74, 51, .14); }
.btn--ghost:active { box-shadow: inset 0 0 0 1.5px var(--mint); }
.btn.btn--home { background: radial-gradient(circle at 13px 50%, var(--mint-deep) 0 3.5px, transparent 4px), #fff; padding: 0 14px 0 24px; }

/* ── 베니 무대: 시안 2-1 크기에서 5% 작게 (기존 대비 약 1.3배) ── */
.counter { grid-template-columns: 156px 1fr; align-items: center; }
.benny > .asset { width: 147px; height: 180px; }
/* 작업대 다리 아래쪽은 잘라 낮게 (상판·앞판만) → 베니를 키워도 줄 높이가 덜 늘어남 */
.benny__counter { aspect-ratio: 512 / 215; overflow: hidden; margin-top: -43px; }
.benny__counter .asset { height: calc(100% * 245 / 215); }
.benny::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 2px; width: var(--halo, 184px); height: var(--halo, 184px); transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, #FFF8EA 0 56%, rgba(255, 248, 234, .85) 63%, rgba(255, 248, 234, 0) 71%); pointer-events: none; }
.benny__tag { position: relative; z-index: 2; margin-top: -12px; background: var(--kraft); color: var(--kraft-ink); font-family: var(--font-display); font-size: 13px; line-height: 1.5; padding: 0 14px; border-radius: 999px; box-shadow: 0 2px 0 rgba(107, 74, 51, .15); }
.benny__tag::before { content: '◦ '; color: #B08D64; } .benny__tag::after { content: ' ◦'; color: #B08D64; }
.tray__items { gap: 5px; grid-template-columns: repeat(auto-fill, minmax(max(44px, calc((100% - 15px) / 4)), 1fr)); }   /* 최대 4칸, 좁으면 3칸 */ .tray { padding: 6px 7px 8px; }
.tray__item .tray__name { display: none; }                  /* 시안처럼 아이콘만 (칸이 좁아져서) */
.tray__item { height: 48px; } .tray__item .asset { width: 30px; height: 30px; }
@media (max-height: 760px) {
  .counter { grid-template-columns: 140px 1fr; } .benny > .asset { width: 129px; height: 158px; } .benny__counter { margin-top: -38px; } .benny { --halo: 162px; }
  .tray__item { height: 44px; } .tray__item .asset { width: 26px; height: 26px; }
}
@media (max-height: 680px) {
  .counter { grid-template-columns: 124px 1fr; } .benny > .asset { width: 113px; height: 138px; } .benny__counter { margin-top: -33px; } .benny { --halo: 142px; }
  .benny__tag { font-size: 12px; margin-top: -10px; } .tray__item { height: 40px; }
}

/* ── 버튼 체계 통일 (v2.12.1): 주요 = 딸기 빨강 · 보조 = 연민트 · 홈 = 작은 흰 버튼 · 안내 = 글자 링크 ── */
.btn { box-shadow: 0 3px 0 rgba(107, 74, 51, .16); }
.btn:not([class*="btn--"]) { background: #fff; box-shadow: inset 0 0 0 1.5px #E6D3B5, 0 3px 0 rgba(107, 74, 51, .14); }
.btn--primary { box-shadow: 0 3px 0 var(--accent-deep); }
.btn--primary:active { box-shadow: 0 1px 0 var(--accent-deep); }
.btn--mint { background: #E2F5EF; color: #2C5E52; box-shadow: inset 0 0 0 1.5px var(--mint-deep), 0 3px 0 rgba(47, 140, 115, .22); }
.btn--mint:active { box-shadow: inset 0 0 0 1.5px var(--mint-deep); }
.btn--link { background: none; box-shadow: none; padding: 4px 6px; font-family: var(--font-body); font-size: 13px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.btn--link:active { transform: none; box-shadow: none; }
.result__actions, .rank__actions { display: grid; grid-template-columns: 1.3fr 1fr auto; align-items: center; gap: 8px; width: 100%; max-width: 360px; margin-inline: auto; }
.result__actions .btn:not(.btn--home), .rank__actions .btn:not(.btn--link) { height: 46px; padding: 0 14px; font-size: 16px; }
.result__actions .btn--home { height: 40px; }
.rank__footer { background: none; }

/* =====================================================================
 *  v2.14 작은 폰 가독성
 *  1) 조리 시간은 진행 막대 왼쪽(그림 아래)으로 → 카드마다 한 줄 절약
 *  2) 작은 글자 키움 (최소 11~12px)
 *  3) .is-tight: 화면이 짧을 때 JS 가 붙이는 압축 레이아웃 (축소 대신 배치를 바꿔 글자 크기 유지)
 * ===================================================================== */
.station { grid-template-areas: 'name name' 'img actions' 'time bar'; }
.station__time { align-self: center; text-align: center; font-size: 12px; height: auto; line-height: 1.2; color: var(--kraft-ink); font-family: var(--font-display); }
.station__name { font-size: 13px; }
.sbtn { font-size: 13px; } .sbtn small { font-size: 11px; }
.sbtn--discard { font-size: 12px; }
.tray__label { font-size: 12.5px; } .tray__discard { font-size: 12px; }
.playnav__hint { font-size: 13px; }
.perfect { font-size: 12px; } .stat__label { font-size: 13px; }
.mb__unit { font-size: 12px; }
@media (max-height: 760px) { .sbtn { font-size: 12.5px; } .station__name { font-size: 12.5px; } .playnav__hint { font-size: 12.5px; } }
@media (max-height: 680px) { .station__time { font-size: 11.5px; height: auto; line-height: 1.2; } .station__name { font-size: 12px; } }

/* ── 압축 레이아웃 (영업 화면) ── */
.screen--play.is-tight .stage--play { gap: 6px; padding-block: 6px; }
.screen--play.is-tight .hud { padding: 6px 10px; gap: 3px; }
.screen--play.is-tight .orders { min-height: 86px; max-height: 104px; gap: 8px; }
.screen--play.is-tight .order { flex-direction: row; flex-wrap: wrap; justify-content: center; align-content: center; column-gap: 8px; row-gap: 6px; padding: 6px 8px 8px; }
.screen--play.is-tight .order__patience { flex: 0 0 100%; height: 8px; }
.screen--play.is-tight .order__bubble::after { left: auto; right: -8px; bottom: 50%; margin: 0 0 -5px; transform: rotate(-45deg); }
.screen--play.is-tight .order__customer .asset { width: 46px; height: 46px; } .screen--play.is-tight .order__bubble .asset { width: 32px; height: 32px; }
.screen--play.is-tight .order--empty { flex-direction: column; }
.screen--play.is-tighter .counter { grid-template-columns: 112px 1fr; }
.screen--play.is-tighter .benny > .asset { width: 98px; height: 120px; }
.screen--play.is-tighter .benny__counter { margin-top: -30px; }
.screen--play.is-tighter .benny { --halo: 122px; }
.screen--play.is-tighter .benny__tag { font-size: 12px; margin-top: -10px; }
.screen--play.is-tighter .tray__item { height: 40px; }
.screen--play.is-tighter .station { --sbtn-h: 24px; }
.screen--play.is-tighter .delivery { padding: 5px 8px; gap: 6px; grid-template-columns: 30px 1fr auto; }
.screen--play.is-tighter .delivery__icon { width: 30px; height: 30px; }
.screen--play.is-tighter .hud .hearts .asset { width: 21px; height: 21px; }
.screen--play.is-tight .station { --sbtn-h: 26px; min-height: 0; padding: 6px 7px 6px; row-gap: 4px; }
.screen--play.is-tight .playnav { padding-bottom: 0; }

/* ── 압축 레이아웃 (결과 화면): 베니를 작게, 간격을 줄여 글자 크기 유지 ── */
.screen--result.is-tight .stage--result { gap: 6px; padding-block: 8px; }
.screen--result.is-tight .result__benny { margin-top: 0; --bw: 64px; --cw: 82px; }
.screen--result.is-tight .result__score { padding: 4px 22px; }
.screen--result.is-tight .result__score b { font-size: 32px; }
.screen--result.is-tight .menuboard { padding: 8px 12px 6px; }
.screen--result.is-tight .submit { padding: 10px 12px; gap: 6px; }
/* 가장 작은 글자(버튼 속 조리 시간·알바 상태)도 한 단계 더 키움 */
.sbtn small { font-size: 12px; }
.staff__status { font-size: 12px; }
@media (max-height: 680px) { .station__time { font-size: 12px; } }
.station__status { font-size: 12.5px; }

/* =====================================================================
 *  v2.15 사용자 피드백 반영
 *  1) 완료 칸 아이콘 크게 · 「꺼내기」는 글자 길이만큼만  2) 손님 말풍선은 항상 옆으로
 *  3) 알바 크게·눈에 띄게  4) 조리대 그림 크게, 버튼은 짧은 이름만(초 표기 없음)
 * ===================================================================== */
/* 2) 주문 카드: [음식 말풍선] ▶ [손님] 가로 배치 + 아래 인내심 막대 (모든 화면) */
.order { flex-direction: row; flex-wrap: wrap; justify-content: center; align-content: center; column-gap: 10px; row-gap: 6px; padding: 6px 8px 8px; }
.order__patience { flex: 0 0 100%; }
.order__bubble::after { left: auto; right: -8px; bottom: 50%; margin: 0 0 -5px; transform: rotate(-45deg); }
.order--empty { flex-direction: column; }
.orders { min-height: 100px; max-height: 124px; }
.order__customer .asset { width: 64px; height: 64px; } .order__bubble .asset { width: 42px; height: 42px; }
@media (max-height: 760px) {
  .orders { min-height: 90px; } .order__customer .asset { width: 56px; height: 56px; } .order__bubble .asset { width: 36px; height: 36px; }
}
@media (max-height: 680px) {
  .orders { min-height: 82px; } .order__customer .asset { width: 48px; height: 48px; } .order__bubble .asset { width: 32px; height: 32px; }
}

/* 1) 완료 칸: 아이콘 크게, 빈 칸도 잘 보이게 */
.tray__item { height: 54px; } .tray__item .asset { width: 38px; height: 38px; }
.tray__item:disabled .asset { opacity: .62; }
@media (max-height: 760px) { .tray__item { height: 48px; } .tray__item .asset { width: 34px; height: 34px; } }
@media (max-height: 680px) { .tray__item { height: 44px; } .tray__item .asset { width: 30px; height: 30px; } }
.screen--play.is-tighter .tray__item { height: 42px; } .screen--play.is-tighter .tray__item .asset { width: 30px; height: 30px; }
/* 「꺼내기」: 칸 전체가 아니라 글자 길이만큼 */
.station__actions .sbtn--collect { width: auto; align-self: center; padding: 0 20px; justify-content: center; }
.station__actions .sbtn--collect .sbtn__label { text-align: center; flex: none; }

/* 4) 조리대 그림 크게 · 버튼 글자 가운데 */
.station { grid-template-columns: 76px 1fr; column-gap: 6px; }
.station__img { width: 76px; height: 76px; }
.station__actions .sbtn { justify-content: center; } .station__actions .sbtn__label { text-align: center; flex: 0 1 auto; }
.station__item { width: 32px; height: 32px; right: -6px; bottom: -4px; }
@media (max-height: 760px) { .station { grid-template-columns: 68px 1fr; } .station__img { width: 68px; height: 68px; } }
@media (max-height: 680px) { .station { grid-template-columns: 60px 1fr; } .station__img { width: 60px; height: 60px; } .station__item { width: 28px; height: 28px; } }
.screen--play.is-tighter .station { grid-template-columns: 58px 1fr; } .screen--play.is-tighter .station__img { width: 58px; height: 58px; }

/* 3) 알바: 크게, 고용되면 민트 카드로 눈에 띄게 */
.staff__slot { grid-template-columns: 56px 1fr; min-height: 66px; padding: 6px 10px 6px 8px; }
.staff__avatar { width: 56px; height: 56px; }
.staff__name { font-size: 14.5px; } .staff__status { font-size: 12.5px; }
.staff__slot:not(.staff__slot--locked) { background: rgba(232, 248, 242, .92); outline-color: rgba(47, 160, 128, .55); }
.staff__slot--working .staff__status { color: var(--mint-deep); font-weight: 700; }
@media (max-height: 760px) { .staff__slot { grid-template-columns: 48px 1fr; min-height: 58px; } .staff__avatar { width: 48px; height: 48px; } }
@media (max-height: 680px) { .staff__slot { grid-template-columns: 44px 1fr; min-height: 52px; } .staff__avatar { width: 44px; height: 44px; } }
.screen--play.is-tighter .staff__slot { grid-template-columns: 42px 1fr; min-height: 50px; padding-block: 3px; }
.screen--play.is-tighter .staff__avatar { width: 42px; height: 42px; }

/* ── 폭 360px 이하 폰(갤럭시 S 기본형 등): 조리대 버튼 이름과 알바 안내가 잘리지 않게 ── */
@media (max-width: 370px) {
  .station { grid-template-columns: 64px 1fr; column-gap: 6px; }
  .station__img { width: 64px !important; height: 64px !important; }
  .sbtn { padding-inline: 4px; gap: 2px; } .sbtn small { font-size: 10.5px; }
  .staff__slot { gap: 6px; padding-right: 6px; } .staff__status { font-size: 11px; white-space: normal; }
}

/* 공유 창: 버튼 하나 + 보낼 내용 */
.share-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.share-head h3 { margin: 0; }
.share-x { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); color: var(--ink); font-size: 15px; }
#image-modal .image-preview img { max-height: max(110px, min(30dvh, calc(100dvh - 470px))); }
.share-label { font-size: 12px; color: var(--ink-soft); text-align: left; }
.share-text { width: 100%; box-sizing: border-box; resize: none; height: 5.4em; font: inherit; font-size: 14px; line-height: 1.35; padding: 8px 10px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); overflow-y: auto; }
.share-go { width: 100%; white-space: nowrap; }
.share-go small { font-size: 12px; opacity: .85; margin-left: 4px; }
.share-go:disabled { opacity: .55; }
.share-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 6px; font-size: 13px; color: var(--ink-soft); }
.share-links button { background: none; border: 0; padding: 4px 2px; font: inherit; font-size: 13px; color: var(--ink); text-decoration: underline; white-space: nowrap; }

/* 인스타그램 · 카카오톡 전용 공유 버튼 (하트런과 같은 방식) */
.snsrow { display: flex; gap: 8px; width: 100%; }
#image-modal .btn.snsbtn { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 8px 6px; font-size: clamp(14px, 4vw, 16px); white-space: nowrap; border: 0; }
#image-modal .btn.snsig { background: linear-gradient(45deg, #f9a13a, #e1306c, #833ab4); color: #fff; box-shadow: 0 4px 0 #8a2a5c; }
#image-modal .btn.snskko { background: #fee500; color: #191919; box-shadow: 0 4px 0 #c9b400; }
#image-modal .btn.snsbtn:active { box-shadow: none; transform: translateY(3px); }
#image-modal .btn.snsbtn:disabled { opacity: .55; }


/* ── 고정 레이아웃: 배달 카드는 손님 줄 위에 겹쳐 띄우고, 누르기·강조 효과로 자리가 움직이지 않게 ── */
.orders-wrap { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.orders-wrap > .orders { flex: 1; }
.orders-wrap > .delivery { position: absolute; left: 0; right: 0; top: 0; z-index: 6; box-shadow: 0 4px 12px rgba(74,51,38,.22); }
.delivery--urgent { animation: urgent-glow .8s ease-in-out infinite; }
.delivery--urgent .delivery__bar span { animation: blink .5s steps(2) infinite; }
@keyframes urgent-glow { 0%,100% { box-shadow: 0 0 0 2px var(--tangerine), 0 4px 12px rgba(74,51,38,.22); } 50% { box-shadow: 0 0 0 5px var(--tangerine), 0 4px 12px rgba(74,51,38,.22); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes pulse { 0%,100% { filter: brightness(1); outline: 0 solid transparent; } 50% { filter: brightness(1.12); } }
@keyframes cover-pulse { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.1); } }
@keyframes shake { 0%,100% { filter: none; } 50% { filter: brightness(1.15) saturate(1.3); } }
.btn:active, .sbtn:active, .tray__item:not(:disabled):active, .delivery__send:not(:disabled):active,
.btn--primary:active, .btn--mint:active, .btn--home:active, .btn--funding:active, .btn--howto:active, .btn--ghost:active { transform: none !important; filter: brightness(.92); }

/* ── 손님 줄 3칸: 손님1 · 손님2 · 배달 (자리 고정) ── */
.orders-wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; align-items: stretch; }
.orders-wrap > .orders { order: 1; min-width: 0; max-height: none; }
.orders-wrap > .delivery { order: 2; position: relative; inset: auto; box-shadow: none; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px 5px; min-width: 0; text-align: center; }
.delivery[hidden] { display: flex; }
.orders-wrap > .delivery .delivery__icon { width: 34px; height: 34px; flex: none; }
.orders-wrap > .delivery .delivery__body { width: 100%; gap: 3px; }
.orders-wrap > .delivery .delivery__title { flex-direction: column; align-items: center; gap: 0; font-size: clamp(11px, 3.1vw, 13px); line-height: 1.2; }
.orders-wrap > .delivery .delivery__items { justify-content: center; flex-wrap: wrap; overflow: visible; }
.orders-wrap > .delivery .delivery__item { font-size: 11px; }
.orders-wrap > .delivery .delivery__item .asset { width: 20px; height: 20px; }
.orders-wrap > .delivery .delivery__send { width: 100%; padding: 5px 4px; font-size: clamp(11px, 3.1vw, 13px); }
.orders-wrap > .delivery .delivery__send br { display: none; }
.delivery.is-empty { opacity: .55; }
.delivery.is-empty .delivery__bar, .delivery.is-empty .delivery__send { visibility: hidden; }
.delivery__wait { font-size: 11px; color: var(--ink-soft); }
/* 조리대 작은 상품 동그라미 숨김 (이름은 「OO 완성!」으로 표시) */
.station .station__item { display: none !important; }
.orders-wrap > .delivery { contain: size; overflow: hidden; height: auto; }
.orders-wrap > .delivery:not(.is-empty) .delivery__icon { width: 26px; height: 26px; }
.orders-wrap > .delivery .delivery__items { gap: 2px; }
.orders-wrap > .delivery .delivery__item { padding: 0 4px 0 1px; }
.orders-wrap > .delivery:not(.is-empty) .delivery__icon { display: none; }
.orders-wrap > .delivery { justify-content: space-between; }
.orders-wrap > .delivery:not(.is-empty) .delivery__title { font-size: 0; }
.orders-wrap > .delivery:not(.is-empty) .delivery__time { font-size: clamp(11px, 3.1vw, 13px); color: var(--accent); }
.orders-wrap > .delivery:not(.is-empty) .delivery__items { flex-wrap: nowrap; gap: 2px; }
.orders-wrap > .delivery:not(.is-empty) .delivery__item { flex-direction: column; padding: 1px 2px; border-radius: 8px; font-size: 10px; line-height: 1; }
.orders-wrap > .delivery:not(.is-empty) .delivery__item .asset { width: 18px; height: 18px; }
