/* 심야식당: 코지한 나무·크림 톤. 모바일 375px 기준, 버튼 44px 이상. */
:root {
  --dn-cream: #f4ead8;
  --dn-wood: #d9a05b;
  --dn-wood-d: #7a4a22;
  --dn-ink: #3a2c22;
  --dn-orange: #e2793f;
  --dn-night: #10141f;
}
html, body { margin: 0; height: 100%; }
body.diner-body { font-family: 'Pretendard Variable', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif; background: var(--dn-night); color: var(--dn-ink); overflow: hidden; }
[hidden] { display: none !important; }

/* ---------- 랜딩 ---------- */
.dn-landing { position: fixed; inset: 0; overflow-y: auto; background: radial-gradient(62% 46% at 50% 108%, rgba(255, 154, 61, .26) 0%, rgba(255, 154, 61, 0) 70%), radial-gradient(130% 100% at 50% 0%, #2a2030 0%, #171420 55%, #0e0c14 100%); color: var(--dn-cream); display: flex; flex-direction: column; }
.dn-landing::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(38% 30% at 50% 42%, rgba(255, 177, 92, .14) 0%, rgba(255, 177, 92, 0) 70%); animation: dn-lantern 3.2s ease-in-out infinite; }
@keyframes dn-lantern { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.dn-hero { width: min(420px, 100%); margin: auto; padding: 24px 20px; text-align: center; position: relative; }
.dn-title { margin: 0 0 10px; font-size: clamp(40px, 12vw, 56px); font-weight: 800; letter-spacing: -.04em; color: #ffe9c4; text-shadow: 0 0 34px rgba(255, 177, 92, .35); animation: dn-rise .6s ease both; }
.dn-lead { margin: 0; font-size: 14px; line-height: 1.65; color: #cbb99c; animation: dn-rise .6s .12s ease both; }
@keyframes dn-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dn-enter { display: flex; flex-direction: column; gap: 10px; margin: 26px auto 16px; width: min(300px, 100%); }
.dn-field { display: flex; flex-direction: column; gap: 6px; text-align: left; font-size: 12px; color: #b9a98f; }
.dn-field input { height: 48px; border-radius: 12px; border: 1px solid rgba(255, 233, 196, .25); background: rgba(255, 255, 255, .06); color: #ffe9c4; padding: 0 14px; font-size: 16px; outline: none; }
.dn-field input:focus { border-color: #ffb15c; }
.dn-btn { height: 52px; border: 0; border-radius: 14px; background: linear-gradient(180deg, #ff9a4d, #e2793f); color: #fff7ea; font-size: 17px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 22px rgba(226, 121, 63, .4); }
.dn-btn:disabled { opacity: .6; }
.dn-live { font-size: 12px; color: #9c8c74; margin: 0; }

/* ---------- 게임 ---------- */
.dn-game { position: fixed; inset: 0; background: var(--dn-night); }
#dnStage { position: absolute; inset: 0; }
#dnStage canvas { display: block; touch-action: none; }
.dn-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(8, 6, 12, .5) 100%); }
#dnTags { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.dn-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: calc(8px + env(safe-area-inset-top)) 10px 8px; pointer-events: none; }
.dn-top > * { pointer-events: auto; }
.dn-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.dn-chip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; border-radius: 999px; background: rgba(20, 16, 26, .72); border: 1px solid rgba(255, 233, 196, .18); color: #ffe9c4; font-size: 12px; font-weight: 700; backdrop-filter: blur(6px); white-space: nowrap; }
.dn-chip b { color: #ffd9a0; }
button.dn-chip { cursor: pointer; min-width: 36px; justify-content: center; font-size: 15px; }

/* 이름표·주문 말풍선 */
.dn-tag { position: absolute; left: 0; top: 0; display: flex; gap: 4px; align-items: center; background: rgba(20, 16, 26, .7); border-radius: 999px; padding: 3px 9px; font-size: 11px; color: #ffe9c4; white-space: nowrap; will-change: transform; }
.dn-tag-lv { color: #ffb15c; font-size: 10px; font-weight: 700; }
.dn-bubble { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 4px; background: rgba(255, 248, 236, .95); border-radius: 999px; padding: 3px 8px 3px 4px; font-size: 11px; font-weight: 700; color: #5a3c24; white-space: nowrap; box-shadow: 0 3px 10px rgba(0,0,0,.3); will-change: transform; }
.dn-bubble::after { content: ''; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); border: 5px solid transparent; border-top-color: rgba(255, 248, 236, .95); border-bottom: 0; }
.dn-ring { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.dn-ring i { width: 11px; height: 11px; border-radius: 50%; background: #fff8ec; }
.dn-order { display: inline-flex; align-items: center; gap: 3px; }
.dn-order-plus { opacity: .5; font-weight: 800; }
.dn-bubble.is-eat { background: rgba(255, 240, 214, .95); }
.dn-eat-ico { flex: none; }
.dn-eatbar { width: 44px; height: 6px; border-radius: 999px; background: rgba(90, 60, 36, .18); overflow: hidden; }
.dn-eatbar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #ffb15c, #7a9b6e); }
.dn-bubble.is-match { background: linear-gradient(180deg, #fff3d0, #ffd98f); border: 1.5px solid #ffb15c; color: #7a4a16; animation: dn-match-glow 1s ease-in-out infinite alternate; }
.dn-bubble.is-match::after { border-top-color: #ffd98f; }
@keyframes dn-match-glow { from { box-shadow: 0 3px 10px rgba(0,0,0,.3), 0 0 6px rgba(255, 177, 92, .5); } to { box-shadow: 0 3px 10px rgba(0,0,0,.3), 0 0 18px rgba(255, 177, 92, .95); } }
@media (max-width: 767px) {
  .dn-bubble { gap: 4px; padding: 2px 7px 2px 4px; font-size: 10px; }
  .dn-ring { width: 14px; height: 14px; }
  .dn-ring i { width: 9px; height: 9px; }
}
.dn-line { position: absolute; left: 50%; top: -26px; transform: translateX(-50%); background: rgba(255,255,255,.95); color: #5a3c24; border-radius: 10px; padding: 3px 8px; font-size: 11px; white-space: nowrap; }
.dn-line:empty { display: none; }
.dn-chef-line { top: -24px; }
.dn-angry { position: absolute; right: -10px; top: -14px; font-size: 16px; pointer-events: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); animation: dn-angry-pop .35s ease-out, dn-angry-shake .5s ease-in-out .35s 2; }
.dn-bubble.is-angry { background: rgba(255, 226, 219, .95); border: 1.5px solid #e0574a; }
.dn-bubble.is-angry::after { border-top-color: rgba(255, 226, 219, .95); }
@keyframes dn-angry-pop { from { transform: scale(0); } 60% { transform: scale(1.35); } to { transform: scale(1); } }
@keyframes dn-angry-shake { 0%, 100% { transform: translateX(0) rotate(0deg); } 25% { transform: translateX(-2px) rotate(-8deg); } 75% { transform: translateX(2px) rotate(8deg); } }
.dn-float { position: absolute; transform: translate(-50%, -100%); color: #ffd9a0; font-weight: 800; font-size: 15px; text-shadow: 0 2px 8px rgba(0,0,0,.6); animation: dn-float 1.4s ease-out forwards; pointer-events: none; }
@keyframes dn-float { from { opacity: 0; margin-top: 8px; } 15% { opacity: 1; } to { opacity: 0; margin-top: -34px; } }

/* 조이스틱·행동 버튼 */
.dn-joystick { position: absolute; left: 18px; bottom: calc(24px + env(safe-area-inset-bottom)); width: 118px; height: 118px; border-radius: 50%; background: rgba(255, 248, 236, .1); border: 2px solid rgba(255, 248, 236, .22); touch-action: none; }
.dn-knob { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(255, 233, 196, .85); box-shadow: 0 3px 10px rgba(0,0,0,.35); }
.dn-actions { position: absolute; right: 16px; bottom: calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.dn-act { min-width: 112px; height: 64px; padding: 0 20px; border: 0; border-radius: 20px; background: linear-gradient(180deg, #ff9a4d, #e2793f); color: #fff7ea; font-size: 17px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 20px rgba(226, 121, 63, .45); }
.dn-act:disabled { background: rgba(120, 110, 100, .6); box-shadow: none; color: #d8d0c4; }
.dn-act.is-tap { animation: dn-pulse .8s ease-in-out infinite; height: 74px; min-width: 128px; font-size: 20px; }
.dn-act.is-serve { background: linear-gradient(180deg, #ffc46a, #e2793f); animation: dn-pulse 1.2s ease-in-out infinite; }
.dn-act.is-fire { background: linear-gradient(180deg, #ff6a3d, #c8372a); box-shadow: 0 6px 20px rgba(200, 55, 42, .55); animation: dn-pulse .5s ease-in-out infinite; }
.dn-act.is-fridge { background: linear-gradient(180deg, #7ab8e8, #4a8ab8); box-shadow: 0 6px 20px rgba(74, 138, 184, .5); }
@keyframes dn-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.dn-place { height: 44px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(255,233,196,.3); background: rgba(20, 16, 26, .72); color: #ffe9c4; font-size: 13px; font-weight: 700; cursor: pointer; }
.dn-chat-btn { height: 44px; width: 44px; border-radius: 14px; border: 1px solid rgba(255,233,196,.3); background: rgba(20, 16, 26, .72); color: #ffe9c4; font-size: 18px; cursor: pointer; }

/* 처음 요리 가이드: 상단 중앙 정보 패널(입력 차단 없음) + 월드 마커 */
.dn-tut { position: absolute; left: 50%; top: calc(96px + env(safe-area-inset-top)); transform: translateX(-50%); width: min(420px, 92vw); background: rgba(20, 16, 26, .88); border: 1px solid rgba(255, 177, 92, .45); border-radius: 16px; padding: 10px 14px 12px; backdrop-filter: blur(6px); pointer-events: none; z-index: 30; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
@media (max-width: 767px) { .dn-tut { top: calc(132px + env(safe-area-inset-top)); } }
.dn-tut-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.dn-tut-badge { flex: none; background: linear-gradient(180deg, #ff9a4d, #e2793f); color: #fff7ea; border-radius: 999px; padding: 2px 8px; font-size: 10px; font-weight: 800; }
.dn-tut-name { color: #ffe9c4; font-size: 14px; font-weight: 800; }
.dn-tut-count { margin-left: auto; color: #ffb15c; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dn-tut-bar { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; margin-bottom: 7px; }
.dn-tut-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffb15c, #ff9a3d); border-radius: 999px; transition: width .3s ease; }
.dn-tut-now { color: #ffd9a0; font-size: 14px; font-weight: 800; line-height: 1.4; }
.dn-tut-next { margin-top: 3px; color: #cbb99c; font-size: 11px; font-weight: 600; }
.dn-tut-next:empty { display: none; }
.dn-tut-tag { position: absolute; left: 0; top: 0; display: none; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; will-change: transform; }
.dn-tut-label { background: linear-gradient(180deg, #fff3d0, #ffd98f); border: 1.5px solid #ffb15c; color: #7a4a16; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 800; white-space: nowrap; box-shadow: 0 3px 10px rgba(0, 0, 0, .35); }
.dn-tut-arrow { color: #ffb15c; font-size: 14px; line-height: 1; text-shadow: 0 2px 6px rgba(0, 0, 0, .5); animation: dn-tut-bob 1s ease-in-out infinite; }
@keyframes dn-tut-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* 타이밍 게이지 */
.dn-gauge { position: absolute; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(320px, 84vw); background: rgba(20, 16, 26, .85); border: 1px solid rgba(255, 233, 196, .25); border-radius: 16px; padding: 12px 16px; backdrop-filter: blur(6px); }
.dn-gauge-head { display: flex; justify-content: space-between; color: #ffd9a0; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.dn-gauge-bar { position: relative; height: 18px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.dn-gauge-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #e8a24d, #ffca7a); border-radius: 999px; }
.dn-gauge-fill.is-over { background: linear-gradient(90deg, #e2543f, #ff7a5a); }
.dn-gauge-good { position: absolute; left: 38%; width: 24%; top: 0; bottom: 0; background: rgba(122, 155, 110, .55); }
.dn-gauge-perfect { position: absolute; left: 45%; width: 10%; top: 0; bottom: 0; background: rgba(140, 200, 110, .9); }
.dn-needle { position: absolute; top: -2px; bottom: -2px; width: 4px; margin-left: -2px; border-radius: 2px; background: #ffe9c4; box-shadow: 0 0 8px rgba(255, 233, 196, .8); }

/* 빠른 대화 */
.dn-chat-panel { position: absolute; right: 16px; bottom: calc(210px + env(safe-area-inset-bottom)); width: min(240px, 70vw); background: rgba(20, 16, 26, .9); border: 1px solid rgba(255,233,196,.25); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.dn-quick { display: flex; flex-direction: column; gap: 6px; }
.dn-quick button { height: 40px; border-radius: 10px; border: 1px solid rgba(255,233,196,.2); background: rgba(255,255,255,.06); color: #ffe9c4; font-size: 13px; cursor: pointer; text-align: left; padding: 0 12px; }
.dn-emotes { display: flex; gap: 6px; }
.dn-emotes button { flex: 1; height: 44px; border-radius: 10px; border: 1px solid rgba(255,233,196,.2); background: rgba(255,255,255,.06); font-size: 18px; cursor: pointer; }

/* 냉장고 음료 선반: 게이지 위에 겹쳐 쌓인다(조리 중에도 음료 주문 확인) */
.dn-fridge { position: absolute; left: 50%; bottom: calc(224px + env(safe-area-inset-bottom)); transform: translateX(-50%); box-sizing: border-box; width: min(384px, 94vw); background: rgba(14, 20, 31, .9); border: 1px solid rgba(168, 216, 232, .38); border-radius: 18px; padding: 9px 11px 11px; backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(6, 14, 24, .5); animation: dn-fridge-in .22s ease both; }
@keyframes dn-fridge-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.dn-fridge-head { display: flex; align-items: center; gap: 6px; color: #a8d8e8; font-size: 12px; font-weight: 800; letter-spacing: .02em; margin: 0 2px 8px; }
.dn-top-order { margin-left: auto; color: #cfe6f2; font-size: 11px; font-weight: 700; white-space: nowrap; }
.dn-fridge-chips { display: flex; gap: 7px; }
.dn-drink { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 7px; border-radius: 13px; border: 1px solid rgba(168, 216, 232, .22); background: rgba(122, 184, 232, .08); color: #eaf4fb; cursor: pointer; transition: transform .12s ease, background .12s ease, border-color .12s ease; }
.dn-drink:active { transform: scale(.94); }
.dn-drink-ico { font-size: 22px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.dn-drink-ico svg { width: 1em; height: 1em; display: block; }
.dn-drink-name { font-size: 12px; font-weight: 700; white-space: nowrap; }
.dn-drink-badge { position: absolute; top: -6px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: linear-gradient(180deg, #ff9a4d, #e2793f); color: #fff7ea; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 2px 6px rgba(226, 121, 63, .5); }
.dn-drink.is-need { background: rgba(226, 121, 63, .16); border-color: rgba(255, 177, 92, .55); }
.dn-drink.is-suggest { background: rgba(122, 184, 232, .22); border-color: #a8d8e8; box-shadow: 0 0 0 1px rgba(168, 216, 232, .5), 0 0 16px rgba(122, 184, 232, .45); animation: dn-fridge-glow 1.4s ease-in-out infinite; }
/* 토핑 선반은 칩 8개라 4개씩 두 줄로 접는다(냉장고 5칩은 한 줄 유지) */
#dnTop .dn-fridge-chips { flex-wrap: wrap; }
#dnTop .dn-drink { flex: 1 1 calc(25% - 6px); }
#dnTop .dn-fridge-head { flex-wrap: wrap; }
#dnTop .dn-top-order { white-space: normal; text-align: right; line-height: 1.4; }
.dn-drink.is-extra { background: rgba(246, 196, 69, .14); border-color: rgba(246, 196, 69, .55); }
@keyframes dn-fridge-glow { 0%, 100% { box-shadow: 0 0 0 1px rgba(168, 216, 232, .5), 0 0 12px rgba(122, 184, 232, .35); } 50% { box-shadow: 0 0 0 1px rgba(168, 216, 232, .7), 0 0 20px rgba(122, 184, 232, .6); } }

/* 모달 */
.dn-modal { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 6, 12, .66); backdrop-filter: blur(3px); }
.dn-modal-card { width: min(380px, 100%); max-height: 82vh; overflow-y: auto; background: var(--dn-cream); border-radius: 20px; padding: 20px; box-shadow: 0 18px 60px rgba(0,0,0,.5); }
.dn-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dn-modal-head h2 { margin: 0; font-size: 19px; color: var(--dn-wood-d); }
.dn-modal-x { width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(122, 74, 34, .12); color: var(--dn-wood-d); font-size: 16px; cursor: pointer; }
.dn-book-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dn-recipe { background: #fff8ec; border: 1px solid rgba(122, 74, 34, .15); border-radius: 14px; padding: 12px 14px; }
.dn-recipe-head { display: flex; justify-content: space-between; font-size: 15px; color: var(--dn-ink); }
.dn-recipe-head span { color: var(--dn-orange); font-weight: 800; }
.dn-recipe-crate { font-size: 12px; color: #8a7458; margin: 4px 0 8px; }
.dn-recipe-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.dn-step { background: rgba(122, 155, 110, .18); color: #4f6a44; border-radius: 8px; padding: 4px 8px; font-size: 12px; font-weight: 700; }
.dn-arrow { color: #b9a98f; font-style: normal; font-size: 11px; }
.dn-recipe-tops { margin-top: 8px; font-size: 12px; font-weight: 700; color: #7a5a2a; background: rgba(226, 162, 77, .16); border-radius: 8px; padding: 4px 8px; }
.dn-book-hint { background: rgba(122, 155, 110, .16); border: 1px dashed rgba(122, 155, 110, .5); color: #4f6a44; border-radius: 12px; padding: 10px 12px; font-size: 12px; font-weight: 600; line-height: 1.5; }

/* 설정 */
.dn-set-sec { margin: 14px 0 6px; font-size: 12px; font-weight: 800; color: #8a7458; }
.dn-modal-head + .dn-set-sec { margin-top: 0; }
.dn-set-select { width: 100%; height: 44px; border-radius: 12px; border: 1px solid rgba(122, 74, 34, .25); background: #fff8ec; color: var(--dn-ink); font-size: 14px; font-weight: 600; padding: 0 10px; }
.dn-set-about p { margin: 0 0 6px; }
.dn-set-about p:last-child { margin-bottom: 0; }
#dnSetHome { margin-top: 14px; }

/* 정산 */
.dn-settle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.dn-settle-cell { background: #fff8ec; border-radius: 12px; padding: 12px; text-align: center; }
.dn-settle-cell b { display: block; font-size: 20px; color: var(--dn-wood-d); margin-bottom: 2px; }
.dn-settle-cell span { font-size: 11px; color: #8a7458; }
.dn-settle-big { text-align: center; margin-bottom: 12px; }
.dn-settle-big b { font-size: 34px; color: var(--dn-orange); }
.dn-settle-big span { display: block; font-size: 12px; color: #8a7458; }
.dn-next { width: 100%; height: 52px; border: 0; border-radius: 14px; background: linear-gradient(180deg, #ff9a4d, #e2793f); color: #fff7ea; font-size: 16px; font-weight: 800; cursor: pointer; }
.dn-settle-leave { width: 100%; height: 46px; margin-top: 8px; border: 1px solid #d8c4a0; border-radius: 14px; background: transparent; color: #8a7458; font-size: 14px; font-weight: 700; cursor: pointer; }

/* 토스트·연결 */
.dn-toast { position: absolute; left: 50%; top: calc(56px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 50; background: rgba(20, 16, 26, .9); border: 1px solid rgba(255,233,196,.3); color: #ffe9c4; border-radius: 999px; padding: 9px 18px; font-size: 13px; font-weight: 600; max-width: 86vw; text-align: center; pointer-events: none; }
@media (max-width: 767px) { .dn-toast { top: calc(92px + env(safe-area-inset-top)); } }
.dn-conn { position: absolute; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(8, 6, 12, .78); }
.dn-conn-card { width: min(320px, 100%); background: var(--dn-cream); border-radius: 20px; padding: 24px; text-align: center; }
.dn-conn-card h2 { margin: 0 0 8px; font-size: 19px; color: var(--dn-wood-d); }
.dn-conn-card p { margin: 0 0 16px; font-size: 13px; color: #8a7458; line-height: 1.6; }
.dn-conn-card button { width: 100%; height: 48px; border-radius: 12px; border: 0; font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 8px; }
#dnConnRetry { background: var(--dn-orange); color: #fff7ea; }
#dnConnHome { background: rgba(122, 74, 34, .12); color: var(--dn-wood-d); }

@media (min-width: 768px) {
  .dn-joystick { display: none; }
  .dn-act { height: 56px; }
}

/* 랜딩 로딩바: 랜덤 이름 → 로딩 완료 시 주방으로 페이드 입장 */
#dnLanding { transition: opacity .45s ease; }
#dnLanding.is-done { opacity: 0; pointer-events: none; }
.dn-landing::-webkit-scrollbar { width: 8px; }
.dn-landing::-webkit-scrollbar-track { background: rgba(255, 255, 255, .04); }
.dn-landing::-webkit-scrollbar-thumb { background: rgba(255, 177, 92, .35); border-radius: 8px; }
.dn-landing::-webkit-scrollbar-thumb:hover { background: rgba(255, 177, 92, .55); }
.dn-load { width: min(280px, 78%); margin: 28px auto 0; animation: dn-rise .45s .1s ease both; }
.dn-load-track { position: relative; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 233, 196, .18); overflow: hidden; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35); }
.dn-load-track i { position: relative; display: block; height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, #ffb15c, #ff9a3d 45%, #ff7a2e); box-shadow: 0 0 14px rgba(255, 154, 61, .55); transition: width .35s ease; overflow: hidden; }
.dn-load-track i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 247, 234, .5) 50%, transparent 70%); transform: translateX(-100%); animation: dn-load-sheen 1.5s ease-in-out infinite; }
@keyframes dn-load-sheen { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  #dnLanding { transition: none; }
  .dn-load-track i { transition: none; }
  .dn-load-track i::after, .dn-landing::before, .dn-title, .dn-lead, .dn-load { animation: none; }
  .dn-bubble.is-match, .dn-act.is-serve { animation: none; }
  .dn-angry { animation: none; }
  .dn-fridge, .dn-drink.is-suggest { animation: none; }
  .dn-tut-arrow { animation: none; }
  .dn-tut-bar i { transition: none; }
}