/* 심야 포장마차 */
:root {
  --bg: #120c24; --panel: #1d1433; --line: rgba(251, 146, 60, .28);
  --text: #fff4e6; --mute: #c4b5a5; --gold: #fbbf24; --orange: #fb923c; --red: #f87171; --green: #4ade80; --cyan: #7dd3fc;
  --wood: #6b3f22; --wood2: #8a5530;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: linear-gradient(#0b0820, #1c1236 55%, #2a1838); color: var(--text); overflow: hidden; user-select: none; -webkit-user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Pretendard", "Noto Sans KR", sans-serif;
  touch-action: manipulation;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:disabled { cursor: default; }
b { font-weight: 800; }
[hidden] { display: none !important; }

/* 밤하늘·날씨 */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff8, transparent), radial-gradient(1px 1px at 38% 8%, #fff6, transparent), radial-gradient(1.5px 1.5px at 66% 14%, #fff9, transparent), radial-gradient(1px 1px at 84% 26%, #fff5, transparent), radial-gradient(1px 1px at 52% 30%, #fff4, transparent); }
.moon { position: absolute; right: 9%; top: 9%; width: 46px; height: 46px; border-radius: 50%; background: #fdf6d8; box-shadow: 0 0 40px 10px rgba(253, 246, 216, .18); }
.weather { position: absolute; inset: 0; }
.weather.rain { background-image: repeating-linear-gradient(105deg, transparent 0 22px, rgba(170, 200, 255, .22) 22px 23px, transparent 23px 47px); background-size: 120px 120px; animation: rain .35s linear infinite; }
.weather.snow { background-image: radial-gradient(2.5px 2.5px at 10% 20%, #fff, transparent), radial-gradient(2px 2px at 30% 60%, #fffd, transparent), radial-gradient(3px 3px at 55% 35%, #fff, transparent), radial-gradient(2px 2px at 75% 75%, #fffc, transparent), radial-gradient(2.5px 2.5px at 90% 10%, #fff, transparent);
  background-size: 220px 220px; animation: snow 6s linear infinite; opacity: .8; }
@keyframes rain { to { background-position: -40px 120px; } }
@keyframes snow { to { background-position: 30px 220px; } }

/* 상단 바 */
.topbar { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 10px 6px; z-index: 10; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.back-btn { color: #fff; text-decoration: none; font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 9px; background: rgba(20, 10, 40, .6); border: 1px solid rgba(255, 255, 255, .25); white-space: nowrap; backdrop-filter: blur(4px); }
.back-btn:hover { background: rgba(20, 10, 40, .85); }
.money { margin: 0 auto; font-size: .92rem; background: rgba(20, 10, 40, .6); border: 1px solid rgba(251, 191, 36, .4); padding: 5px 12px; border-radius: 99px; white-space: nowrap; }
.money b { color: var(--gold); }
body.playing .money { visibility: hidden; }
.tools { display: flex; gap: 5px; margin-left: auto; }
.mini { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 9px; background: rgba(20, 10, 40, .6); border: 1px solid rgba(255, 255, 255, .25); font-size: .9rem; }

.btn { padding: 11px 16px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-weight: 700; transition: transform .12s, background .2s; }
.btn:hover:not(:disabled) { background: rgba(255, 255, 255, .15); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .5; }
.btn small { font-weight: 500; font-size: .72rem; opacity: .75; margin-left: 4px; }
.btn.primary { background: linear-gradient(135deg, #f97316, #e11d48); border-color: transparent; color: #fff; box-shadow: 0 4px 18px rgba(225, 29, 72, .4); }

/* 메인 메뉴 */
.screen { position: fixed; inset: 0; z-index: 2; overflow-y: auto; padding: calc(56px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.screen > * { width: min(560px, 100%); }
.logo { text-align: center; }
.lantern { font-size: 3rem; filter: drop-shadow(0 0 18px rgba(251, 146, 60, .7)); animation: sway 3s ease-in-out infinite; transform-origin: 50% 0; display: inline-block; }
@keyframes sway { 50% { transform: rotate(6deg); } }
.logo h1 { font-size: 1.9rem; font-weight: 900; letter-spacing: .02em; background: linear-gradient(135deg, #fed7aa, #fb923c 50%, #f43f5e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { color: var(--mute); font-size: .88rem; margin-top: 2px; }
.m-stats { color: #a89a8c; font-size: .74rem; margin-top: 6px; }
.nights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.night { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 4px; border-radius: 12px; background: linear-gradient(160deg, rgba(251, 146, 60, .16), rgba(244, 63, 94, .08)); border: 1px solid var(--line); transition: transform .12s; }
.night:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--orange); }
.night.locked { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .08); color: #6b6177; }
.night.perfect { border-color: var(--gold); box-shadow: inset 0 0 14px rgba(251, 191, 36, .18); }
.n-num { font-size: .7rem; color: var(--mute); font-weight: 700; }
.n-title { font-weight: 800; font-size: .9rem; white-space: nowrap; }
.n-stars { color: var(--gold); font-size: .8rem; letter-spacing: 1px; min-height: 1em; }
.m-row { display: flex; gap: 8px; }
.m-row .btn { flex: 1; }
.btn.endless { background: linear-gradient(135deg, rgba(99, 102, 241, .3), rgba(168, 85, 247, .25)); border-color: rgba(167, 139, 250, .5); display: flex; flex-direction: column; align-items: center; }
.btn.endless small { margin: 2px 0 0; }

/* 영업 화면 */
#play { position: fixed; inset: 0; z-index: 3; display: flex; flex-direction: column; padding-top: calc(46px + env(safe-area-inset-top)); }
#play.hit { animation: hit .35s; }
@keyframes hit { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-2px); } }
.hud { display: grid; grid-template-columns: 1fr auto auto auto; grid-template-rows: auto auto; align-items: center; gap: 2px 8px; padding: 2px 12px 6px; width: min(640px, 100%); margin: 0 auto; }
.h-night { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.h-night b { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-night span { font-variant-numeric: tabular-nums; color: var(--orange); font-weight: 800; }
.h-clockbar { grid-column: 1 / -1; grid-row: 2; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.h-clockbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #fb923c, #a855f7); }
.h-money { font-weight: 800; white-space: nowrap; position: relative; }
.h-money b { color: var(--gold); font-variant-numeric: tabular-nums; }
.h-money::after { content: attr(data-stars); display: block; font-size: .62rem; color: var(--gold); text-align: right; letter-spacing: 1px; line-height: 1; }
.h-hearts i { font-style: normal; color: #4b3a55; font-size: .95rem; }
.h-hearts i.on { color: #f43f5e; text-shadow: 0 0 6px rgba(244, 63, 94, .6); }

/* 포장마차 천막·자리 */
.stall { position: relative; width: min(640px, 100%); margin: 0 auto; padding-top: 34px; flex: 0 0 auto; }
.tarp { position: absolute; left: 0; right: 0; top: 0; height: 30px; background: linear-gradient(#f97316, #ea580c); border-radius: 6px 6px 0 0; box-shadow: 0 6px 24px rgba(249, 115, 22, .35); }
.tarp::after { content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 12px; background: radial-gradient(circle at 12px 0, #ea580c 11px, transparent 12px) 0 0 / 24px 12px repeat-x; }
.lights { position: absolute; left: 4%; right: 4%; top: 8px; height: 10px; background: radial-gradient(circle, #fde68a 3px, transparent 4px) 0 0 / 28px 10px repeat-x; filter: drop-shadow(0 0 4px #fde68a); animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .65; } }
.seats { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 4px; padding: 14px 8px 0; min-height: 150px; align-items: end;
  background: radial-gradient(ellipse at 50% 0, rgba(251, 146, 60, .22), transparent 70%); }
.seat { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 136px; cursor: pointer; }
.bubble { display: grid; grid-template-columns: repeat(2, auto); gap: 1px 2px; padding: 4px 6px; border-radius: 12px; background: #fff7ed; color: #111; font-size: 1.15rem; line-height: 1.1; position: relative; margin-bottom: 6px; min-height: 0; box-shadow: 0 3px 10px rgba(0, 0, 0, .35); transition: opacity .2s; }
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #fff7ed; border-bottom: 0; }
.bubble:empty { visibility: hidden; }
.oi { display: inline-block; text-align: center; transition: opacity .2s, transform .2s; }
.oi.got { opacity: .28; transform: scale(.8); filter: grayscale(1); }
.seat.eat .bubble, .seat.pay .bubble { opacity: 0; }
.seat.empty .bubble, .seat.empty .patbar { visibility: hidden; }
.cust { position: relative; font-size: 2.3rem; line-height: 1; height: 2.6rem; animation: bob 2.6s ease-in-out infinite; }
.seat:nth-child(2n) .cust { animation-delay: -1.1s; }
.seat.empty .cust { animation: none; }
.seat.wait .cust { animation: arrive .35s ease-out, bob 2.6s .35s ease-in-out infinite; }
.seat.hurry .cust { animation: fidget .4s ease-in-out infinite; }
.seat.eat .cust { animation: eat .5s ease-in-out infinite; }
.seat.pay .cust { opacity: 0; transition: opacity .4s; }
.ctag { position: absolute; right: -10px; top: -6px; font-size: .9rem; }
.seat.reg .cust { filter: drop-shadow(0 0 8px rgba(251, 191, 36, .75)); }
@keyframes bob { 50% { transform: translateY(-2px); } }
@keyframes arrive { from { transform: translateY(14px); opacity: 0; } }
@keyframes fidget { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes eat { 50% { transform: translateY(3px) scale(1.04); } }
.patbar { width: 78%; height: 5px; border-radius: 3px; background: rgba(0, 0, 0, .45); margin-top: 4px; overflow: hidden; }
.patbar i { display: block; height: 100%; width: 100%; background: var(--green); transition: background .3s; }
.seat:not(.wait) .patbar { visibility: hidden; }
.stool { width: 60%; height: 9px; margin-top: 3px; border-radius: 4px 4px 0 0; background: #b45309; opacity: .7; }
.pay { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; padding: 6px 7px; border-radius: 12px; background: linear-gradient(#fde68a, #f59e0b); color: #422006; font-size: 1.2rem; line-height: 1; box-shadow: 0 0 0 3px rgba(251, 191, 36, .35), 0 4px 14px rgba(0, 0, 0, .4); animation: payIn .3s ease-out, pulse 1.1s .3s ease-in-out infinite; }
.pay b { font-size: .68rem; margin-top: 2px; white-space: nowrap; }
.seat.pay .pay { display: flex; }
@keyframes payIn { from { transform: translate(-50%, 10px) scale(.6); opacity: 0; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(251, 191, 36, .2), 0 4px 14px rgba(0, 0, 0, .4); } }
.counter { height: 18px; background: linear-gradient(var(--wood2), var(--wood)); border-top: 2px solid #a86b3c; box-shadow: 0 6px 12px rgba(0, 0, 0, .4); }

.hint { width: min(640px, 100%); margin: 6px auto 0; padding: 6px 12px; text-align: center; font-size: .8rem; font-weight: 700; color: #fde68a; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .25); border-radius: 10px; }

/* 조리대 */
.kitchen { flex: 1; overflow-y: auto; width: min(640px, 100%); margin: 0 auto; padding: 8px 8px calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: row dense; gap: 7px; align-content: start;
  background: linear-gradient(rgba(60, 40, 30, .55), rgba(30, 20, 20, .7)); }
.st { background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 6px; transition: border-color .2s; }
.st.wide { grid-column: span 2; }
.st.wanted { border-color: rgba(251, 146, 60, .5); }
.st-head { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; font-weight: 800; color: var(--mute); margin-bottom: 5px; padding: 0 2px; }
.need { font-style: normal; color: #111; background: var(--orange); border-radius: 99px; padding: 0 6px; font-size: .68rem; }
.need:empty { display: none; }
.slots { display: flex; gap: 6px; justify-content: center; }
.slot { position: relative; flex: 1; max-width: 86px; height: clamp(50px, 8.2vh, 72px); min-width: 0; border-radius: 12px; background: radial-gradient(circle at 50% 45%, #3b2a2a, #1f1515); border: 2px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding-bottom: 5px; transition: transform .08s, border-color .2s, box-shadow .2s; touch-action: manipulation; }
.slot.big { max-width: none; }
.slot:active, .slot.tap { transform: scale(.94); }
.slot .food { font-size: 1.7rem; line-height: 1; position: relative; z-index: 1; transition: opacity .2s, filter .2s, transform .2s; }
.slot .lbl { font-size: .64rem; font-weight: 800; color: var(--mute); position: relative; z-index: 1; white-space: nowrap; }
.slot .pips { font-size: .62rem; color: var(--orange); letter-spacing: 1px; }
.ring { position: absolute; left: 10%; right: 10%; bottom: 5px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--rc, #fb923c) calc(var(--p, 0) * 100%), rgba(255, 255, 255, .1) 0); opacity: 0; transition: opacity .2s; }
.slot.ph-empty .food { opacity: .25; filter: grayscale(1); }
.slot.ph-cook .ring, .slot.ph-cook2 .ring, .slot.ph-flip .ring, .slot.ph-ready .ring { opacity: 1; }
.slot.ph-cook .food, .slot.ph-cook2 .food { animation: sizzle .25s steps(2) infinite; }
.slot.ph-cook2 .food { transform: scaleX(-1); }
@keyframes sizzle { 50% { transform: translateY(-1px) rotate(-3deg); } }
.slot.ph-flip { --rc: #facc15; border-color: #facc15; animation: blink .45s ease-in-out infinite; }
.slot.ph-flip .lbl { color: #fde047; }
@keyframes blink { 50% { box-shadow: 0 0 16px rgba(250, 204, 21, .7); } }
.slot.ph-ready { --rc: #4ade80; border-color: #4ade80; box-shadow: 0 0 14px rgba(74, 222, 128, .45); background: radial-gradient(circle at 50% 45%, #1f4a2c, #13261a); }
.slot.ph-ready .lbl { color: #86efac; }
.slot.ph-ready.idle { box-shadow: none; border-color: rgba(74, 222, 128, .45); }
.slot.ph-burnt { background: radial-gradient(circle at 50% 45%, #222, #0a0a0a); border-color: #57534e; }
.slot.ph-burnt .food { filter: brightness(.15) grayscale(1); }
.slot.ph-burnt::after { content: '💨'; position: absolute; top: 2px; right: 4px; font-size: .9rem; animation: smoke 1.2s ease-out infinite; }
@keyframes smoke { from { transform: translateY(4px); opacity: 1; } to { transform: translateY(-8px); opacity: 0; } }
.slot.go { border-color: rgba(251, 146, 60, .8); box-shadow: 0 0 12px rgba(251, 146, 60, .35); }
.slot.dim .food { opacity: .3; }

/* 단골 이야기 말풍선 */
.story-pop { position: fixed; left: 50%; top: calc(50px + env(safe-area-inset-top)); transform: translateX(-50%); width: min(520px, calc(100% - 20px)); z-index: 8; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px;
  background: rgba(40, 24, 18, .95); border: 1px solid rgba(251, 191, 36, .55); box-shadow: 0 8px 24px rgba(0, 0, 0, .5); animation: storyIn .35s ease-out; pointer-events: none; }
.story-pop.out { opacity: 0; transition: opacity .4s; }
.story-pop b, .res-story b { color: var(--gold); font-size: .82rem; }
.story-pop p { font-size: .86rem; line-height: 1.45; margin-top: 2px; }
.sp-face { font-size: 1.9rem; line-height: 1; }
@keyframes storyIn { from { transform: translate(-50%, -12px); opacity: 0; } }

.floaters { position: fixed; inset: 0; pointer-events: none; z-index: 7; overflow: hidden; }
.fl { position: absolute; transform: translate(-50%, -50%); font-weight: 900; font-size: .95rem; text-shadow: 0 2px 6px rgba(0, 0, 0, .8); animation: floatUp 1.1s ease-out forwards; white-space: nowrap; }
.fl.gold { color: var(--gold); } .fl.red { color: var(--red); } .fl.cyan { color: var(--cyan); } .fl.big { font-size: 1.15rem; } .fl.pop { font-size: 1.5rem; } .fl.mute { color: #d6d3d1; font-size: .75rem; }
@keyframes floatUp { 0% { opacity: 0; margin-top: 10px; } 15% { opacity: 1; } 100% { opacity: 0; margin-top: -46px; } }

/* 모달 */
.modal { position: fixed; inset: 0; z-index: 20; background: rgba(8, 4, 18, .72); display: flex; align-items: center; justify-content: center; padding: 14px; backdrop-filter: blur(3px); }
.panel { width: min(560px, 100%); max-height: calc(100dvh - 28px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; animation: panelIn .2s ease-out; }
@keyframes panelIn { from { transform: translateY(10px); opacity: 0; } }
.panel h2 { text-align: center; font-size: 1.25rem; margin-bottom: 8px; }
.panel .sub { text-align: center; color: var(--mute); font-size: .82rem; margin: 6px 0; }
.panel .row { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.panel .row .btn { flex: 1; max-width: 240px; }
.panel .row.col { flex-direction: column; align-items: stretch; }
.panel .row.col .btn { max-width: none; }
.panel p, .panel li { font-size: .88rem; line-height: 1.55; color: #f1e4d4; }
.panel ul { padding-left: 18px; margin: 6px 0; }
.panel ul li { margin-bottom: 4px; }
.panel h3 { font-size: .9rem; margin: 12px 0 5px; color: var(--orange); }
.panel.err h2 { color: var(--red); }
.panel.err pre { white-space: pre-wrap; font-size: .75rem; color: var(--mute); background: rgba(0, 0, 0, .3); padding: 8px; border-radius: 8px; margin-top: 8px; }
.intro { text-align: center; font-style: italic; color: #fed7aa !important; padding: 4px 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { font-size: .8rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); }
.chip.new { border-color: var(--green); color: #bbf7d0; }
.chip.new::after { content: ' NEW'; font-size: .6rem; color: var(--green); }
.chip.reg { border-color: rgba(251, 191, 36, .45); }
.targets { display: flex; gap: 6px; justify-content: space-between; font-size: .8rem; font-weight: 800; color: var(--gold); flex-wrap: wrap; }
.targets span { flex: 1; text-align: center; background: rgba(251, 191, 36, .08); border-radius: 8px; padding: 5px 4px; white-space: nowrap; }
.gold, .rec { color: var(--gold); }

.big-stars { text-align: center; font-size: 2.6rem; letter-spacing: 6px; color: #3f3249; margin: 4px 0 8px; }
.big-stars span { display: inline-block; }
.big-stars span.on { color: var(--gold); text-shadow: 0 0 16px rgba(251, 191, 36, .6); animation: starIn .45s both; }
@keyframes starIn { from { transform: scale(2.2) rotate(-30deg); opacity: 0; } }
.res-sum { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; font-size: .86rem; padding: 9px 11px; border-radius: 10px; background: rgba(0, 0, 0, .28); }
.res-sum .tot { font-size: 1.1rem; font-weight: 900; color: var(--gold); }
.res-sum span:nth-child(even) { text-align: right; }
.res-story { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: rgba(251, 191, 36, .07); border: 1px solid rgba(251, 191, 36, .2); margin-bottom: 5px; }
.res-story p { font-size: .84rem; margin-top: 2px; }
.tagnew { font-size: .62rem; font-weight: 900; color: #052e16; background: var(--green); border-radius: 5px; padding: 1px 5px; margin-left: 6px; }
.ending { text-align: center; padding: 12px; margin: 10px 0 0; border-radius: 12px; background: linear-gradient(135deg, rgba(249, 115, 22, .22), rgba(225, 29, 72, .2)); border: 1px solid rgba(251, 191, 36, .5); font-weight: 700; font-size: .88rem; line-height: 1.6; }
.ending small { color: var(--mute); font-weight: 600; }

/* 장사 준비 */
.ups { display: grid; grid-template-columns: 1fr; gap: 6px; }
.up { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); text-align: left; width: 100%; }
.up:hover:not(:disabled) { background: rgba(255, 255, 255, .1); }
.up.bought { animation: bought .4s; }
@keyframes bought { 40% { background: rgba(74, 222, 128, .25); } }
.up .ic { font-size: 1.5rem; width: 34px; text-align: center; }
.up .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.up .nm { font-weight: 800; font-size: .9rem; }
.up .lv { font-size: .7rem; color: var(--mute); margin-left: 5px; font-weight: 600; }
.up .ds { font-size: .74rem; color: var(--mute); }
.up .ds .nx { color: var(--green); }
.up .pr { font-weight: 800; color: var(--gold); white-space: nowrap; font-size: .86rem; }
.up.cant .pr { color: #78716c; }
.up.max .pr { color: var(--green); }
.lvbar { display: flex; gap: 2px; margin-top: 4px; }
.lvbar i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .12); }
.lvbar i.on { background: var(--orange); }

/* 단골 수첩 */
.reg-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.reg-card { padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(251, 191, 36, .25); }
.reg-card.unmet { border-color: rgba(255, 255, 255, .08); opacity: .75; }
.rc-head { display: flex; gap: 10px; align-items: center; }
.rc-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rc-head small { color: var(--mute); font-size: .74rem; line-height: 1.35; }
.rc-head em { font-style: normal; font-weight: 800; color: var(--gold); font-size: .85rem; }
.rc-order { font-size: .76rem; color: var(--mute); margin: 5px 0 0; }
.reg-card ol { padding-left: 20px; margin-top: 6px; }
.reg-card li { font-size: .8rem !important; margin-bottom: 3px; }
.reg-card li.lock { color: #7c6f86 !important; }
.reg-card li.lock small { font-size: .7rem; }

.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; background: rgba(30, 18, 40, .94); border: 1px solid var(--line); padding: 8px 14px; border-radius: 10px; font-size: .84rem; font-weight: 700; opacity: 0; transition: opacity .25s; pointer-events: none; white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.toast.on { opacity: 1; }
.noscript { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }

@media (max-width: 420px) {
  .back-txt { display: none; }
  .cust { font-size: 2rem; height: 2.3rem; }
  .bubble { font-size: 1rem; padding: 3px 4px; }
  .slot .food { font-size: 1.5rem; }
}
@media (max-height: 700px) {
  .seats { min-height: 118px; padding-top: 8px; }
  .seat { min-height: 110px; }
  .stall { padding-top: 28px; }
  .st-head { margin-bottom: 3px; }
}
body.playing .moon { display: none; }
@media (min-width: 700px) and (min-height: 760px) {
  .cust { font-size: 3rem; height: 3.3rem; }
  .bubble { font-size: 1.45rem; }
  .seats { min-height: 200px; }
  .seat { min-height: 180px; }
  .slot { height: 84px; }
  .slot .food { font-size: 2.1rem; }
  .kitchen { flex: 0 1 auto; border-radius: 0 0 16px 16px; }
  .hint { font-size: .88rem; }
}
@media (min-width: 700px) {
  .ups, .reg-grid { grid-template-columns: 1fr 1fr; }
  .kitchen { grid-template-columns: repeat(3, 1fr); }
  .st.wide { grid-column: span 1; }
}
