/* Shared retro cooking-game UI. Keep character art and app content independent. */
.header-spacer{width:37px;flex-shrink:0}.controls.choice-controls{display:grid;gap:8px;padding:10px 2px 12px}.choice-controls>.secondary{min-height:44px;font-size:15px}.topic-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.topic-grid button{min-height:48px;font-size:14px}
.conversation.unified-dialogue{margin-top:10px;padding:9px 14px 11px;min-height:104px}
.dialogue-meta{display:flex;align-items:center;gap:8px;margin-bottom:4px;min-height:28px;color:var(--muted);font-size:13px;line-height:1.3}
.dialogue-meta #chapter{flex:1;min-width:0}.dialogue-meta #quantity{font-variant-numeric:tabular-nums;white-space:nowrap}.dialogue-meta #quantity:empty{display:none}
.dialogue-meta button{flex:0 0 28px;width:28px;height:28px;background:transparent;border:1px solid var(--line);border-radius:50%;font-size:14px;color:var(--muted)}
.unified-dialogue #save-status{margin:6px 0 0;padding:0;background:none;text-align:left;font-size:13px}
@font-face{font-family:AtelierJua;src:url('assets/Jua-Regular.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
:root{--paper:#fff4e3;--ink:#624157;--muted:#92647a;--accent:#e4a1b6;--accent-dark:#86546f;--line:#cba1b4;--blush:#f8d9e4;--lavender:#e9dcf2;font-family:AtelierJua,'Malgun Gothic',sans-serif;background:#e5d4ed;color:var(--ink)}
body{background-color:#e5d4ed;background-image:radial-gradient(ellipse at 10% 10%,#ffe6dc 0,transparent 50%),radial-gradient(ellipse at 90% 90%,#f6d5e2 0,transparent 50%),radial-gradient(#fff6ec 1px,transparent 1px);background-size:auto,auto,22px 22px}
#app{padding-left:10px;padding-right:10px;background:linear-gradient(165deg,#ffeadf,#f2dded 62%,#eaddf2);box-shadow:0 0 0 2px #b58ba4,0 14px 60px #7d5a7a30}
.app-header{height:61px;background:transparent;padding:7px 3px 9px;gap:10px}.brand{font-family:AtelierJua,'Malgun Gothic',sans-serif;font-size:23px;letter-spacing:.5px;color:#75445f;text-shadow:0 2px #fff6e7;line-height:1.12}.brand small{font-family:AtelierJua,sans-serif;letter-spacing:2px;font-size:9px;color:#ab7487;text-shadow:none;margin-top:3px}
.icon-button{width:37px;height:36px;flex-shrink:0;background:linear-gradient(#fff9ea,#f9dfdd);color:#87516e;border:2px solid #b5839c;border-radius:12px;box-shadow:0 2px 0 #c79aaf,inset 0 1px #fff;font-size:23px;line-height:1}
.scene{border:3px solid #98677e;border-radius:15px 15px 12px 12px;box-shadow:0 2px 0 #fff8e9,inset 0 0 0 2px #fff6e8;background:#e9c6b1}
.scene-art{border-radius:10px}.chapter{left:9px;right:9px;top:10px;gap:8px}.chapter span{background:#fff2dcee;border:1.5px solid #b58c80;border-radius:5px 5px 9px 5px;padding:5px 9px;color:#8b5869;font-size:13px;box-shadow:0 2px #cba69550}.chapter span:first-child{transform:rotate(-2deg)}.chapter span:last-child{transform:rotate(1deg)}
.landing-title{padding:42px 17px 18px;background:linear-gradient(transparent,#624761d9);color:#fff3df}.landing-title>span{font-family:AtelierJua,sans-serif;color:#ffdda9;letter-spacing:2px;font-size:12px;text-shadow:0 1px #684860}.landing-title h1{font-family:AtelierJua,sans-serif;font-size:31px;font-weight:400;line-height:1.28;letter-spacing:.3px;color:#fff6e0;text-shadow:2px 2px 0 #76536b,-1px -1px 0 #76536b}.landing-title p{font-size:13px;color:#ffe3c8;letter-spacing:.1px}
.conversation{background:#fff7e9;border:2px solid #a77a91;border-radius:13px;margin:15px 0 0;padding:20px 14px 9px;min-height:99px;box-shadow:inset 0 0 0 3px #fffdf3,0 3px 0 #d4afc4;position:relative}
.speaker{position:absolute;left:11px;right:10px;top:-13px;display:flex;align-items:center;justify-content:space-between;margin:0;letter-spacing:.2px;font-size:13px;color:#784961;line-height:1.2}.speaker-name{display:inline-block;background:linear-gradient(#ffebea,#f2c5d4);border:2px solid #b4839a;padding:4px 12px;border-radius:7px;box-shadow:inset 0 1px #fff6ef}.speaker button{width:28px;height:28px;border:2px solid #b4839a;color:#875774;background:#fff3dc;box-shadow:0 1px #c7a0b4;font:16px AtelierJua,sans-serif}
.conversation h2{font-family:AtelierJua,sans-serif;font-weight:400;line-height:1.38;letter-spacing:0;font-size:19px;color:#6d465e;margin:0}.conversation p{font-family:AtelierJua,sans-serif;font-size:13px;line-height:1.45;letter-spacing:0;color:#9a7182;margin:5px 0 0}.progress-track{background:#ead8df;height:5px;margin-top:8px;border-radius:4px}.progress-track>div{background:linear-gradient(90deg,#db94ad,#b99bd2);border-radius:4px}
.controls{padding:10px 2px 10px;min-height:70px}.primary{position:relative;min-height:47px;background:linear-gradient(180deg,#ffdfdf 0%,#f3bfd0 35%,#e6a0ba 100%);border:2px solid #95617e;border-radius:13px;color:#704261;box-shadow:0 4px 0 #986a86,inset 0 2px 0 #fff4e8;font-family:AtelierJua,sans-serif;font-size:17px;font-weight:400;letter-spacing:.2px;line-height:1.3;padding:11px 31px;text-shadow:0 1px 0 #ffe8e8;transition:transform .1s,box-shadow .1s}
.primary::before{content:'✦';position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#fff5d5;font-size:17px;text-shadow:1px 1px #bb8497}.primary::after{content:'›';position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:23px;color:#9a6681}.primary:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #986a86,inset 0 1px 0 #ffe4e7;background:linear-gradient(#f4c2d1,#e4a2bb)}
.secondary{border:2px solid #b890a6;background:linear-gradient(#fff5e9,#eadff0);color:#7c5675;border-radius:11px;box-shadow:0 2px 0 #c6a4bd;font-size:14px}.quiet,.back-link{font-family:AtelierJua,sans-serif;color:#95718c;font-size:13px}.control-row select{border:2px solid #b88ca3;background:#fff5e7;color:#805676;border-radius:11px;font:17px AtelierJua,sans-serif;box-shadow:0 3px #d1acbf}
.bottom-nav{height:44px;gap:8px;border:0;background:transparent;padding:3px 4px 6px}.bottom-nav button{font-family:AtelierJua,sans-serif;font-size:13px;color:#a17d97;background:#efddec;border-radius:9px;border:1.5px solid #d3afc8;line-height:1;font-weight:400}.bottom-nav button.active{color:#794b68;font-weight:400;border-color:#b2849c;background:linear-gradient(#fff5e4,#f7d9df);box-shadow:0 2px #c49db4}.bottom-nav button.active:before{display:none}
.gesture-guide{font-family:AtelierJua,sans-serif;font-size:13px;color:#96617b;border:1px solid #d6acb4;border-radius:6px;background:#fff4dded;box-shadow:2px 3px 0 #ac768e38}.gesture-guide::after{border-bottom-color:#ac7a87}.food-piece{border:2px solid #b8909b;background:linear-gradient(#fff5e5e8,#f9dfd5eb);box-shadow:0 3px 0 #b78e9e88;border-radius:11px}.food-piece span{font-family:AtelierJua,sans-serif;color:#8c627a;font-size:13px}.scene-toast{font-family:AtelierJua,sans-serif;font-size:15px;color:#84546f;border:2px solid #c19aa6;background:#fff2dfee;box-shadow:0 3px 0 #b88b9b66}
dialog{border:3px solid #a37a95;border-bottom:0;border-radius:21px 21px 0 0;background:linear-gradient(#fff4e7,#f5e5ee);padding:0 18px max(22px,env(safe-area-inset-bottom));box-shadow:0 -4px 0 #fff2df,0 -15px 55px #65476445}dialog::backdrop{background:#634d6c70;backdrop-filter:blur(3px)}.sheet-header{background:#fff3e7;border-bottom:1px solid #e5c9d4;padding:12px 0 10px;margin-bottom:12px}.sheet-header h2{font-family:AtelierJua,sans-serif;font-weight:400;font-size:24px;color:#81546e;letter-spacing:.2px}.sheet-header .icon-button{width:34px;height:34px;font-size:23px}#sheet-body{font-family:AtelierJua,'Malgun Gothic',sans-serif;font-size:14px;color:#805970;line-height:1.65}#sheet-body h3{font-weight:400;font-size:18px;color:#82536e}#sheet-body .muted{color:#a07a8b;font-size:13px}#sheet-body a{color:#94688e}
.flavor,.food-card{border:2px solid #d0a5b8;background:linear-gradient(#fffaf0,#fce7e4);box-shadow:0 3px #dfc1d1;border-radius:12px}.flavor{min-height:98px;padding:11px}.flavor strong{font-family:AtelierJua,sans-serif;font-size:17px;font-weight:400;color:#88536e}.flavor small{font-family:AtelierJua,sans-serif;font-size:13px;color:#a2788b}.flavor[aria-pressed=true]{border-color:#aa7291;background:linear-gradient(#ffe6e5,#f2c3d9);box-shadow:0 3px #bc8da8}.food-card span{font-size:14px;color:#8a5874}.filter-bar button{font-family:AtelierJua,sans-serif;border:1.5px solid #c9a3bc;border-radius:10px;background:linear-gradient(#f7ebf7,#e8d5ed);color:#92708c;font-size:13px;box-shadow:0 2px #d4b6ce}.filter-bar button.selected{border-color:#b27f9b;background:linear-gradient(#ffdedf,#eeb6ce);color:#79506a}.time-tag{color:#b16c8a;font-family:AtelierJua,sans-serif;font-size:16px}.food-hero strong{font-size:21px;font-weight:400}.taste-row>div{background:#f5e0e8;border:1px solid #dbb8ca;font-size:14px}.taste-row small{color:#a37a90;font-size:13px}.notice{background:#f9e5db;border-color:#c796ac;border-left-width:3px;border-radius:7px;font-size:13px;color:#936677}details{border-color:#dec2d0}summary{font-size:13px;color:#a27190}details p,details li{font-size:13px}.recipe-grid{font-size:15px;color:#885971}.menu-list button{font-family:AtelierJua,sans-serif;font-size:16px;background:linear-gradient(#fff7e9,#f7e2e9);border:2px solid #d0a8bd;box-shadow:0 2px #dfc0d3;border-radius:12px}.form-field{font-family:AtelierJua,sans-serif;font-size:14px}.form-field input,.form-field textarea{border:2px solid #d0acbd;background:#fff9ef;font-family:AtelierJua,sans-serif;color:#885971}.saved{color:#95688f;background:#ede0f2;border:1px solid #cfb1d4}
@media(max-height:690px){.app-header{height:51px}.brand{font-size:21px}.scene{border-radius:11px}.conversation{margin-top:13px;padding:17px 12px 8px;min-height:88px}.conversation h2{font-size:17px}.conversation p{font-size:13px}.controls{min-height:64px;padding:9px 0 10px}.primary{min-height:44px;font-size:15px;padding-top:10px;padding-bottom:10px}.bottom-nav{height:39px;gap:6px}.landing-title h1{font-size:24px}.landing-title p{font-size:13px}.chapter span{font-size:12px;padding:4px 6px}}

.action-status{min-height:48px;display:grid;place-items:center;color:#885570;font-size:14px;font-weight:600;}

/* Preserve the illustrated scene ratio instead of blurred side extensions. */
.scene{align-self:center;width:100%}.scene-backdrop{display:none}.bottom-nav{display:none!important}
/* Tall, narrow screens must not stretch the scene beyond its 2:3 artwork. */
#app{height:min(100dvh,calc((min(100vw,480px) - 26px)*1.5 + 250px))}
.scene{max-height:calc((min(100vw,480px) - 26px)*1.5 + 6px)}

/* Viewport-bound mobile screens: artwork yields space before controls do. */
html,body{height:100%;overflow:hidden;overscroll-behavior:none}
#app{min-height:0;max-height:100dvh;height:100dvh}
.scene{min-height:0;height:auto;flex:1 1 0;max-height:calc((min(100vw,480px) - 26px)*1.5 + 6px)}
.conversation.unified-dialogue{min-height:0;margin-top:8px;padding:7px 12px 9px}
.controls{min-height:0;flex:0 0 auto;padding:8px 2px 12px}
.controls.choice-controls{padding:8px 2px 12px;gap:6px}
.conversation h2{font-size:clamp(16px,4.4vw,19px);line-height:1.3}
.conversation p{line-height:1.4}
.dialogue-meta{min-height:25px;margin-bottom:3px}
dialog[open]{display:flex;flex-direction:column;inset:0;margin:auto;width:min(480px,100%);height:100dvh;max-height:100dvh;border:2px solid #a37a95;border-radius:16px;padding:env(safe-area-inset-top) 12px max(10px,env(safe-area-inset-bottom));overflow:hidden}
.sheet-header{position:relative;flex:0 0 auto;min-height:54px;margin:0;padding:8px 0;gap:8px}
.sheet-header h2{font-size:21px;line-height:1.2}
#sheet-body{flex:1;min-height:0;display:flex;flex-direction:column;font-size:14px;line-height:1.45;overflow:hidden}
.sheet-content{flex:1;min-height:0;position:relative;overflow:hidden;padding-top:8px}
.sheet-page{height:100%;display:flex;flex-direction:column;gap:7px;overflow:hidden}
.sheet-page>*{flex-shrink:0}
.sheet-footer{flex:0 0 auto;padding-top:6px;display:grid;gap:8px}
.sheet-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}
.sheet-pager output{font-size:13px;font-variant-numeric:tabular-nums}
.sheet-pager button{min-height:44px;min-width:84px;padding:7px 12px}
#sheet-body .sheet-page p{margin:0;line-height:1.45}
#sheet-body .sheet-page h3{margin:2px 0 0;font-size:17px;line-height:1.3}
#sheet-body .culture-art{width:100%;height:clamp(95px,24dvh,200px);object-fit:contain;margin:0;border-radius:10px}
#sheet-body .muted{font-size:13px;line-height:1.4}
#sheet-body .notice{padding:9px 10px;margin:0;font-size:13px;line-height:1.45}
#sheet-body ul,#sheet-body ol{margin:0;padding-left:20px}
#sheet-body li{margin:0;line-height:1.5}
.filter-bar{gap:5px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
.compare-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
.filter-bar button{min-height:44px;padding:5px 2px;font-size:13px;line-height:1.2}
.compact-answers{gap:6px;grid-template-columns:1fr 1fr}.compact-answers button{min-height:56px;padding:8px;font-size:14px;line-height:1.3}
.inline-field{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;font-size:13px}
.inline-field select{width:auto;max-width:55%;margin:0;min-height:44px;padding:6px 10px}
.flavors{margin:0;gap:7px}.flavor{padding:10px;min-height:90px}.flavor strong{font-size:16px}.flavor small{font-size:13px;line-height:1.4}
.food-grid{margin:0;gap:7px}.food-card{min-height:100px;padding:5px 3px}.food-card .fruit-sprite{width:52px;height:52px}.food-card span{font-size:13px}.food-card small{margin-top:1px}
.recommend{margin:0;padding:9px 11px;gap:2px}.recommend b{font-size:14px}.recommend span{font-size:13px}
.recipe-grid{margin:0;gap:7px;font-size:14px}
@media(max-height:620px){
 .app-header{height:46px;padding:4px}.brand{font-size:20px}.brand small{font-size:8px}
 .landing-title{padding:18px 14px 10px}.landing-title h1{font-size:22px;margin:3px 0}.landing-title p{display:none}
 .conversation.unified-dialogue{padding:5px 10px 7px;margin-top:6px}
 .dialogue-meta{min-height:24px;margin-bottom:1px}.conversation h2{font-size:16px}.conversation p{font-size:13px;margin-top:3px}
 .controls.choice-controls>.secondary,.controls .primary,.topic-grid button{min-height:44px;padding-top:8px;padding-bottom:8px}
 .sheet-header{min-height:46px}.sheet-header h2{font-size:19px}
 .sheet-page{gap:6px}#sheet-body .culture-art{height:clamp(80px,22dvh,135px)}
 .flavor{min-height:82px;padding:8px}.food-card{min-height:91px}.food-card .fruit-sprite{width:47px;height:47px}
}
@media(max-height:420px){
 .app-header{height:38px}.brand small,.landing-title,.dialogue-meta{display:none}
 .conversation.unified-dialogue{padding:6px 10px}.controls.choice-controls{grid-template-columns:repeat(3,1fr)}
 .sheet-header{min-height:40px}.sheet-header h2{font-size:18px}#sheet-body .culture-art{height:85px}
}

/* A single contour per surface; highlights must never become extra borders. */
:root{--surface-edge:#c7a8b7;--surface-shadow:0 2px 7px #69415a0d}
#app{box-shadow:none}
.scene{border:1px solid #a87c92;border-radius:14px;box-shadow:none;background-clip:padding-box}
.scene-art,.art-frame,#effects{border:0;border-radius:0;box-shadow:none}
#effects{display:block}
.conversation{border:1px solid var(--surface-edge);border-radius:14px;box-shadow:var(--surface-shadow);background-clip:padding-box}
.icon-button,.speaker button,.secondary,.filter-bar button,.flavor,.food-card,.menu-list button,.control-row select,.form-field input,.form-field textarea,.recommend{
 border:1px solid var(--surface-edge);box-shadow:var(--surface-shadow);background-clip:padding-box;
}
.primary{border:1px solid #b7849e;box-shadow:0 3px 9px #81516d16;text-shadow:none;border-radius:12px}
.primary:active:not(:disabled){transform:translateY(1px);box-shadow:0 1px 3px #81516d12}
.primary::before,.primary::after{text-shadow:none}
.flavor[aria-pressed=true]{box-shadow:none;border-color:#9e657f}
.filter-bar button.selected{box-shadow:none;border-color:#a46d88}
.brand,.landing-title h1,.landing-title>span{text-shadow:none}
dialog,dialog[open]{border:0;border-radius:0;box-shadow:none;background-clip:padding-box}
.sheet-header{background:transparent;border-bottom:1px solid #dec9d2;padding:6px 0;min-height:56px;align-items:center}
.sheet-header .icon-button{width:44px;height:44px;border-radius:12px;box-shadow:none;line-height:1;display:grid;place-items:center}
.sheet-header h2{margin:0;line-height:1.25}
.sheet-footer{border-top:1px solid #e5d4dd;padding-top:9px}
.sheet-pager button{box-shadow:none}
#sheet-body .culture-art{border-radius:0;background:transparent;box-shadow:none}
.sheet-page{padding-bottom:4px}
@media(min-width:520px){dialog[open]{height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);border:1px solid var(--surface-edge);border-radius:16px;box-shadow:0 12px 36px #56394724}}
/* 2026-11-11 초보자 개선 */.sheet-more{display:block;width:100%;text-align:left;background:transparent;border:0;color:#94688e;font:15px AtelierJua,sans-serif;padding:8px 0;text-decoration:underline;text-underline-offset:4px}.link-button{background:none;border:0;padding:0 2px;color:#94688e;font:inherit;text-decoration:underline;text-underline-offset:3px}.resume-button{display:block;min-height:34px;margin:2px auto 0;padding:4px 18px;background:transparent;border:0;font:14px AtelierJua,sans-serif;color:#8b657e;text-decoration:underline;text-underline-offset:4px}.recipe-grid.glossary{grid-template-columns:auto 1fr;gap:8px 12px;font-size:15px}.recipe-grid.glossary dt{font-weight:700;color:#7c4f68;white-space:nowrap}
.dialogue-meta [data-action=detail]{flex:0 0 auto;width:auto;min-width:28px;padding:0 10px;border-radius:14px;font-size:14px;white-space:nowrap}
.landing-title span{white-space:nowrap;letter-spacing:1px}
