:root{--ink:#423b36;--muted:#877f79;--cream:#fffaf4;--peach:#fcebe2;--shell:#f5f1eb;--leaf:#6f9a80;--leaf2:#dbe9d7;--accent:#d98280;--outline:#ece2d7;--gold:#dfb16e;--shadow:0 16px 48px #6c4a3921;font-family:system-ui,-apple-system,"Malgun Gothic","Apple SD Gothic Neo",sans-serif;color:var(--ink);font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#f5eee8}body{overflow-x:hidden}button{font:inherit;cursor:pointer;border:0}button:disabled{opacity:.42;cursor:not-allowed}button:focus-visible{outline:3px solid #719a86;outline-offset:3px}#app{min-height:100vh;background:radial-gradient(circle at 8% 15%,#fff8ec,#f7efe8 55%,#f0e9e0)}.hidden{display:none!important}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(16px,3vw,46px);gap:16px;border-bottom:1px solid #dfd4c89c;background:#fffaf6d9;position:relative;z-index:10}.brand{display:flex;align-items:center;gap:11px;flex-shrink:0}.mark{width:43px;height:43px;border-radius:16px;background:#f0d7c7;display:grid;place-items:center;font-size:24px;transform:rotate(-6deg)}.brand strong{font-family:Georgia,"Malgun Gothic",serif;display:block;font-size:21px;letter-spacing:-.065em;white-space:nowrap}.brand span{display:block;font-size:9px;letter-spacing:2.3px;font-weight:700;color:#a08e80;padding-top:2px}.topstats{display:flex;gap:9px;align-items:center}.stat{border:1px solid #eadfd2;background:#fff;border-radius:14px;padding:9px 13px;font-size:12px;white-space:nowrap;display:flex;align-items:center;gap:6px}.stat b{font-size:15px}.stat small{color:var(--muted)}.top-actions{display:flex;gap:7px}.top-actions button{background:#f7eae0;color:#776255;border-radius:13px;width:38px;height:38px;font-size:20px;font-weight:700}.shell{min-height:calc(100vh - 76px);max-width:1600px;margin:auto;display:grid;grid-template-columns:minmax(0,1.17fr) minmax(415px,.83fr);align-items:stretch}.viewport-area{padding:22px 16px 22px clamp(16px,2.6vw,42px);min-width:0;display:flex;flex-direction:column;gap:12px}.canvas-frame{position:sticky;top:18px;height:min(calc(100vh - 134px),800px);min-height:560px;background:#c9d9ce;overflow:hidden;border-radius:32px;box-shadow:var(--shadow);isolation:isolate}.canvas-frame:after{pointer-events:none;content:"";position:absolute;inset:0;border-radius:32px;box-shadow:inset 0 0 0 1px #fff8e9aa}#world{display:block;width:100%;height:100%;touch-action:manipulation}.world-caption{position:absolute;top:17px;left:17px;right:17px;display:flex;gap:8px;justify-content:space-between;flex-wrap:wrap;pointer-events:none}.capsule{background:#fffaf0ed;backdrop-filter:blur(6px);border:1px solid #ffffffad;padding:9px 13px;border-radius:22px;font-weight:750;font-size:12px;color:#766e61;box-shadow:0 5px 18px #4a57311c}.floating-note{position:absolute;bottom:89px;left:50%;transform:translateX(-50%);background:#fffdf9f0;color:#776f64;padding:12px 21px;border-radius:23px;font-size:14px;box-shadow:0 7px 30px #65544319;white-space:nowrap;max-width:90%;overflow:hidden;text-overflow:ellipsis}.scene-footer{position:absolute;bottom:19px;left:18px;right:18px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#5a6c5a;font-size:12px;font-weight:700}.scene-footer span{background:#fffaf4bd;border-radius:14px;padding:10px 12px}.scene-footer button{color:#5f6b5a;background:#fffaf4e6;border-radius:11px;padding:9px 14px;font-size:12px}.scene-caption{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;color:#9c8e7e;font-size:11px}.scene-caption span{padding:6px}.panel{padding:27px clamp(20px,2.3vw,34px) 36px;background:#fffcf8fa;box-shadow:-8px 0 37px #54402c09;min-width:0}.eyebrow{font-size:10px;letter-spacing:2.6px;color:#ba9982;font-weight:850}.dashboard-top{padding:2px 0 20px}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.panel-heading h1{font-size:clamp(22px,2.15vw,29px);line-height:1.26;letter-spacing:-1.3px;word-break:keep-all;margin:9px 0 7px}.phase-pill{background:#e2efdd;color:#4f8067;border-radius:99px;font-size:11px;font-weight:800;white-space:nowrap;padding:7px 10px;margin-top:11px}.dashboard-top p{font-size:13px;color:#96867d;line-height:1.65;margin:0}.section-h{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:23px 0 11px}.section-h h2{margin:0;font-size:16px;letter-spacing:-.55px}.section-h h2 small,.section-h .tiny{font-size:11px;color:#aa9b90;font-weight:500}.section-h>span{color:#9e8c7f;font-size:12px;font-weight:800}.event-card{background:linear-gradient(125deg,#fce8e1,#f7f1dd);border:1px solid #f3e0ce;border-radius:19px;padding:16px;margin-top:4px}.event-top{display:flex;gap:9px;align-items:center}.event-top b{font-size:15px}.event-card p{font-size:12px;color:#8d796e;line-height:1.65;margin:8px 0 11px}.event-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px}.event-choices button{background:#ffffffc2;border:1px solid #eddbcf;border-radius:12px;padding:10px;text-align:left;font-size:12px;color:#7c6d60}.event-choices button.selected{background:#e8f3e1;border-color:#93bc9e;color:#46775d}.event-choices strong{display:block;color:inherit;font-size:12px;margin-bottom:3px}.event-choices small{font-size:10px;display:block;line-height:1.4;color:#a29185}.event-choices button.selected small{color:#62846c}.menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.menu-card{background:#fff;border:1px solid #eee3dc;border-radius:15px;padding:12px 7px;min-height:99px;position:relative;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:4px}.menu-card.selected{background:#f0f7ed;border:1.5px solid #80a78a}.menu-card.locked{opacity:.7;background:#faf7f2}.menu-card .emoji{font-size:25px}.menu-card strong{font-size:11px}.menu-card small{color:#9b8d80;font-size:10px}.menu-card .check{position:absolute;top:4px;right:6px;background:#82a991;color:#fff;font-size:9px;width:18px;height:18px;display:grid;place-items:center;border-radius:50%}.price-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.price-card{border:1px solid #eadfd5;background:#fff;border-radius:13px;padding:11px 4px;text-align:center}.price-card.selected{background:#f0f6ed;border-color:#8fbb99}.price-card b{display:block;font-size:12px}.price-card small{display:block;font-size:10px;margin-top:5px;color:#94867f}.stock-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.stock-item{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid #eee3dd;border-radius:13px;padding:10px 11px;gap:8px}.stock-item .stock-copy{display:flex;flex-direction:column;gap:4px;font-size:12px}.stock-item small{color:#9a8b7f;font-size:10px}.stock-actions{display:flex;gap:3px}.stock-actions button{min-width:30px;padding:7px 5px;border-radius:9px;background:#e9f1e5;color:#56705a;font-size:11px;font-weight:800}.stock-actions button:disabled{background:#f0efec;color:#b4b0ab}.prep-bottom{margin-top:20px}.prep-bottom p{font-size:11px;text-align:center;color:#9c897e;min-height:15px}.bigbtn{width:100%;background:#597e69;border-radius:15px;padding:16px 17px;color:#fff;font-size:14px;font-weight:820;display:flex;align-items:center;justify-content:center;gap:10px;box-shadow:0 8px 24px #6c987a29}.bigbtn span{font-size:19px}.bigbtn:hover{background:#476e58}.smallbtn{background:#f2ebe5;border-radius:10px;padding:9px 11px;color:#77665b;font-size:12px;font-weight:700}.smallbtn.outline{background:#fff;border:1px solid #eee3da}.smallbtn.wide{width:100%;margin-top:13px}.timer-wrap{background:#f9f2eb;border:1px solid #eee2d6;border-radius:15px;padding:14px}.clock-label{display:flex;align-items:center;justify-content:space-between;gap:7px}.clock-label strong{font-size:17px}.clock-label span{color:#9d8779;font-size:10px}.track{height:9px;border-radius:8px;background:#e9ded4;margin:11px 0}.track div{height:100%;width:100%;border-radius:8px;background:linear-gradient(90deg,#83b49a,#f0bd87);transition:width .22s}.speed-actions{display:flex;gap:7px;justify-content:flex-end}.service-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:13px}.service-stats div{background:#fff;border:1px solid #eee7dd;border-radius:13px;padding:12px;text-align:center}.service-stats small{display:block;color:#a4948c;font-size:10px}.service-stats strong{display:block;margin-top:5px;font-size:21px;font-variant-numeric:tabular-nums}.order-grid{display:flex;flex-direction:column;gap:7px;max-height:345px;overflow:auto}.order-card{background:#fff;border:1px solid #eee3d8;border-radius:15px;padding:11px 12px;display:flex;align-items:center;gap:10px;text-align:left;width:100%}.order-card.selected{border:2px solid #8aaa96;background:#f8fcf5}.order-card .customer-face{width:42px;height:42px;display:grid;place-items:center;border-radius:15px;background:#faede3;font-size:22px;flex-shrink:0}.order-card .order-copy{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}.order-copy b{font-size:12px}.order-copy small{font-size:10px;color:#9a8b7d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-timer{width:100%;height:5px;border-radius:4px;background:#f2e7db}.order-timer i{display:block;height:100%;background:#83b39b;border-radius:4px}.order-side{white-space:nowrap;font-size:12px;font-weight:850;color:#866951}.order-action{border-radius:15px;margin-top:12px;padding:13px;background:#f2f7ef;border:1px solid #dce9db}.order-action h3{margin:0 0 7px;font-size:13px}.order-action p{margin:0 0 10px;font-size:11px;line-height:1.6;color:#78907b}.action-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.action-buttons button{border-radius:11px;border:1px solid #dce6d9;background:#fff;padding:10px 5px;font-weight:800;font-size:11px}.action-buttons button span{display:block;font-size:10px;font-weight:500;color:#9c8a7b;margin-top:4px}.craft-game{margin-top:13px;border:2px solid #91baa0;background:#f7fcf6;border-radius:16px;padding:14px}.craft-head{display:flex;justify-content:space-between;align-items:center}.craft-head strong{font-size:14px}.craft-head small{color:#8da28f;font-size:11px}.craft-game p{font-size:11px;color:#8c8177}.timing-track{position:relative;background:linear-gradient(90deg,#f0dbc9,#f5e5d8);height:29px;border-radius:12px;overflow:hidden;margin:20px 0 12px}.timing-track #targetZone{position:absolute;left:43%;width:18%;height:100%;background:#92bda0aa;border:2px solid #70a880;border-radius:8px}.timing-track #timingMarker{position:absolute;top:0;left:5%;height:100%;width:5px;background:#614d4b;border-radius:4px;box-shadow:0 0 0 2px #ffffff70}.craft-foot span{display:block;text-align:center;color:#8f8072;font-size:11px;margin-bottom:9px}.service-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:12px;gap:10px;color:#988879;font-size:11px;flex-wrap:wrap}.summary-hero{text-align:center;margin:12px auto 20px}.summary-star{display:grid;place-items:center;margin:auto;width:65px;height:65px;background:#f6ebce;border-radius:50%;font-size:29px;color:#bd986a}.summary-hero h2{margin:10px 0 3px}.summary-hero p{margin:0;font-size:12px;color:#98877c}.summary-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.summary-grid>div{background:#fff;border:1px solid #eee1d6;border-radius:14px;padding:15px}.summary-grid small{font-size:11px;color:#998b7f;display:block}.summary-grid b{font-size:23px;display:block;margin-top:7px}.summary-grid .positive{color:#618c6d}.summary-grid .negative{color:#bf776b}.story-result{background:#f8efea;border-radius:14px;color:#816d62;font-size:12px;line-height:1.7;padding:15px;margin:16px 0 18px}.tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;background:#f5f1eb;border:1px solid #eee4d9;padding:6px;border-radius:16px;margin:21px 0 0}.tab{background:transparent;color:#99897e;border-radius:10px;padding:11px 2px;font-size:11px;font-weight:800}.tab.active{background:#fff;box-shadow:0 2px 8px #7b6e5917;color:#50755e}.tab span{display:inline}.extra-view{padding-top:14px}.extra-title{font-size:17px;font-weight:850;margin:0 0 5px}.extra-sub{font-size:12px;color:#98887c;margin:0 0 15px;line-height:1.6}.growth-item,.friend-item,.book-item{border:1px solid #eee2d7;background:#fff;border-radius:14px;padding:13px;display:flex;gap:12px;align-items:center;margin-bottom:9px}.growth-item .item-icon,.friend-item .item-icon,.book-item .item-icon{flex-shrink:0;width:45px;height:45px;border-radius:14px;background:#f7efdf;display:grid;place-items:center;font-size:23px}.item-main{flex:1;min-width:0}.item-main strong{display:block;font-size:13px}.item-main p{margin:4px 0 0;color:#96877e;font-size:11px;line-height:1.5}.item-main small{color:#9a8678;font-size:10px}.growth-item button,.friend-item button{background:#e9f3e8;padding:10px 12px;border-radius:11px;color:#5c8569;font-size:11px;font-weight:800;white-space:nowrap}.growth-item button:disabled{background:#f1efeb}.milestone{background:#fff7e9;padding:12px;border-radius:12px;font-size:12px;color:#846e5f;margin:11px 0}.notice{margin:4px 0 12px;background:#f3e8d5;border-radius:11px;padding:11px;font-size:12px;color:#795f48}.modal-overlay{position:fixed;inset:0;background:#4e3a35aa;backdrop-filter:blur(7px);z-index:100;display:flex;align-items:center;justify-content:center;padding:20px}.welcome-modal,.help-modal{width:min(430px,100%);max-height:min(90vh,850px);overflow:auto;text-align:center;background:#fffaf5;border:1px solid #fff;border-radius:28px;padding:35px 30px;box-shadow:0 20px 80px #30251f4d}.welcome-icon{font-size:39px;background:#f5e6d7;border-radius:50%;width:85px;height:85px;display:grid;place-items:center;margin:0 auto 18px}.welcome-modal h2{font-size:38px;letter-spacing:-2px;margin:10px 0;font-family:Georgia,"Malgun Gothic",serif}.welcome-modal p{font-size:14px;color:#89786e;line-height:1.85;margin:0 0 17px}.welcome-points{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:19px 0 24px}.welcome-points span{background:#f7ede4;padding:12px 7px;border-radius:12px;font-size:12px;font-weight:750}.welcome-modal .text-link{display:block;margin:17px auto 9px;background:none;color:#ae8b75;text-decoration:underline;font-size:12px}.welcome-modal>small{display:block;color:#b2a49a;font-size:10px}.help-modal{text-align:left}.help-modal h2{font-size:21px}.help-modal p{font-size:13px;color:#786c62;line-height:1.7}.help-modal .bigbtn{margin-top:18px}.toast{position:fixed;left:50%;bottom:23px;transform:translateX(-50%);z-index:150;background:#454b41ee;color:white;border-radius:16px;padding:12px 21px;box-shadow:0 8px 20px #28291c33;font-size:13px;text-align:center;max-width:90vw;white-space:normal;pointer-events:none}.stat-card{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.stat-card div{border-radius:12px;background:#f8f3ec;text-align:center;padding:11px 8px}.stat-card small{font-size:10px;color:#9b8e81}.stat-card b{display:block;margin-top:5px;font-size:16px}.empty{background:#f9f5ef;border:1px dashed #e1d4c6;border-radius:15px;text-align:center;color:#aa9c8e;padding:26px 13px;font-size:12px}.badge{display:inline-block;padding:4px 7px;border-radius:8px;background:#e7f1e2;color:#5c8865;font-size:10px;font-weight:800}.badge.warn{background:#fbebe0;color:#bf745f}.bottom-note{font-size:11px;color:#ac9e92;line-height:1.6;margin-top:13px}.reputation-track{width:100%;height:7px;background:#eee5dc;border-radius:7px;margin-top:8px;overflow:hidden}.reputation-track i{display:block;height:100%;background:#83b49b;border-radius:7px}.story-mini{margin-top:7px;border-left:3px solid #e3b7b1;padding:7px 11px;background:#fbf2ed;color:#836f67;font-size:11px;line-height:1.5}.inventory-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.inventory-chips span{border:1px solid #e9ddd0;background:#fff;border-radius:9px;padding:8px 10px;font-size:11px}.inventory-chips button{background:none;margin-left:5px;color:#6a9977;font-weight:850;font-size:11px}.recipe-info{background:#f8f5ed;padding:12px;border-radius:11px;font-size:11px;color:#9e8a7b;line-height:1.6;margin-top:8px}
@media(max-width:1060px){.shell{grid-template-columns:minmax(0,1fr) minmax(390px,1fr)}.viewport-area{padding:15px}.panel{padding:22px 19px}.canvas-frame{height:calc(100vh - 112px);min-height:550px}.menu-card{padding:9px 4px}.topbar{height:68px}.shell{min-height:calc(100vh - 68px)}}
@media(max-width:790px){.topbar{height:60px;padding:0 11px}.brand{gap:7px}.mark{width:34px;height:34px;font-size:18px;border-radius:11px}.brand strong{font-size:16px}.brand span{font-size:7px;letter-spacing:1.1px}.stat{font-size:11px;padding:6px 7px;gap:2px}.stat b{font-size:12px}.topstats{gap:4px}.top-actions{gap:3px}.top-actions button{width:28px;height:30px;font-size:15px}.shell{display:flex;flex-direction:column}.viewport-area{padding:10px 10px 0}.canvas-frame{position:relative;top:0;min-height:0;height:clamp(290px,48vh,500px);border-radius:23px}.canvas-frame:after{border-radius:23px}.world-caption{top:10px;left:10px;right:10px}.capsule{font-size:10px;padding:7px 9px}.scene-footer{bottom:9px;left:8px;right:8px;font-size:10px}.scene-footer span{padding:7px 9px}.scene-footer button{padding:7px 8px;font-size:10px}.floating-note{bottom:53px;font-size:11px;padding:8px 12px}.scene-caption{font-size:10px;gap:0;padding:3px}.scene-caption span{padding:4px}.panel{padding:17px 16px 35px;box-shadow:none;border-radius:25px 25px 0 0}.dashboard-top{padding-bottom:15px}.panel-heading h1{font-size:23px}.section-h{margin-top:18px}.event-card{padding:12px}.menu-grid{grid-template-columns:repeat(3,1fr)}.menu-card{min-height:87px}.menu-card .emoji{font-size:21px}.topstats .stat:last-child{display:flex}.order-grid{max-height:290px}.modal-overlay{padding:12px}.welcome-modal,.help-modal{padding:30px 24px}}
@media(max-width:370px){.stat{padding:5px 4px}.brand span{display:none}.brand strong{font-size:14px}.stock-grid{grid-template-columns:1fr}.event-choices{gap:5px}.event-choices button{padding:8px}.menu-grid{gap:5px}.menu-card{min-height:80px}.tab{font-size:10px}.action-buttons{gap:4px}.action-buttons button{font-size:10px}}

.surprise-choices{display:flex;flex-direction:column;gap:10px;margin-top:17px}.surprise-choices button{background:#f5eee8;border:1px solid #eadbd0;border-radius:15px;padding:14px;text-align:left;color:#655749}.surprise-choices button strong{display:block;font-size:13px}.surprise-choices button small{display:block;color:#97877b;font-size:11px;margin-top:5px}.surprise-choices button:hover{background:#e8f0e2}.surprise-choices button:disabled{opacity:.4}

/* v1.1: ingredient economy, choice and friendship reward clarity */
.economics-card{background:#f6f7f0;border:1px solid #dce7da;border-radius:14px;padding:13px;margin:10px 0 15px;line-height:1.5}
.economics-card>strong{font-size:12px;color:#52745a}.economics-card>p{font-size:10px;color:#8a887e;margin:5px 0 8px}
.economy-row{padding:8px 0;border-top:1px solid #e0e8dc;display:flex;flex-wrap:wrap;gap:3px 8px;align-items:baseline}
.economy-row>span{font-size:11px;font-weight:750;min-width:115px;flex:1}.economy-row>span small{font-size:9px;color:#a37e79}
.economy-row>b{font-size:10px;color:#5a7660}.economy-row>small{font-size:10px;color:#719180;width:100%}
.economy-row .low-stock{color:#b56c5f;font-weight:800}.inventory-help{margin:9px 2px;font-size:11px;color:#8b7c70;line-height:1.7}
.garnish-choice{display:block;width:100%;border-radius:11px;padding:10px 11px;text-align:left;background:#fff9ee;border:1px solid #ead8b6;color:#80664f;margin:9px 0}
.garnish-choice b{display:block;font-size:11px}.garnish-choice small{display:block;font-size:10px;line-height:1.55;color:#9a8070;margin-top:3px}.garnish-choice.selected{background:#eaf5e9;border:2px solid #79a788;color:#52735b}
.reward-steps{display:grid;gap:4px;margin:9px 0}.reward-steps span{display:block;font-size:10px;line-height:1.5;color:#aa998b;background:#f7f3ed;padding:7px 9px;border-radius:8px}.reward-steps span.earned{background:#e8f3e4;color:#527760;font-weight:700}
@media(max-width:790px){.economy-row>span{min-width:0;flex-basis:100%}.economy-row>b{font-size:10px}}

/* v1.2: Chrome Android long-press search/text selection suppression for game UI. */
html,body,#app,#app button,#app p,#app span,#app small,#app strong,#app h1,#app h2,#app label,#app div,#app nav,#app canvas{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
button,.tab,.menu-card,.order-card,.price-card,.garnish-choice{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
input,textarea{user-select:text!important;-webkit-user-select:text!important;-webkit-touch-callout:default!important;touch-action:auto}
.account-btn{min-width:75px;padding:9px 11px!important;width:auto!important;border-radius:12px;background:#eaf2e9!important;color:#52775d!important;font-size:11px!important;font-weight:750;white-space:nowrap}
.account-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.account-header h2{margin:0}.account-close{font-size:19px;background:#f4ede7;width:37px;height:37px;border-radius:11px;color:#79665f}
.account-modes{display:flex;gap:6px;margin:18px 0 13px;padding:5px;border-radius:12px;background:#f5efe9}.account-modes button{flex:1;background:none;color:#87766a;border-radius:9px;padding:11px;font-size:12px;font-weight:800}.account-modes button.active{background:#fff;color:#557d62;box-shadow:0 2px 8px #0000000a}
.account-modal{max-height:86vh;overflow-y:auto}.account-modal label{display:block;font-size:12px;font-weight:800;margin:12px 0 6px}.account-modal label small{font-size:10px;color:#a39586;font-weight:500;margin-left:5px}
.account-modal input{width:100%;background:#fff;border:1px solid #decfc3;border-radius:12px;padding:12px;font:inherit;font-size:14px;outline-offset:2px}
.account-modal .bigbtn{width:100%;margin:12px 0 0}.account-hint{color:#9a887d;font-size:11px!important;line-height:1.6}.account-error{color:#b75e5e!important;font-size:12px!important;margin:7px 0!important;min-height:14px}.account-modal .wide{width:100%;margin:7px 0;padding:13px}.account-danger{display:block;background:transparent;color:#af7471;text-decoration:underline;margin:14px auto 6px;font-size:11px}
@media(max-width:790px){.account-btn{min-width:54px;padding:7px 8px!important;font-size:10px!important;max-width:98px;overflow:hidden;text-overflow:ellipsis}.top-actions{gap:4px}.brand span{display:none}}

.account-start{display:block;margin:9px auto 0;width:100%;padding:12px;border-radius:12px;background:#e9f2e7;color:#52775d;font-weight:800}.account-modal .account-header{text-align:left}

/* v1.3 account recovery key display */
.recovery-secret{font:700 13px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.15px;word-break:break-all;background:#f5efe6;padding:14px;border-radius:12px;color:#374f42;border:1px dashed #b6c6b4;user-select:text!important;-webkit-user-select:text!important;-webkit-touch-callout:default!important}
#recoveryCodeModal .help-modal{max-width:430px}
#accountRecoverOpen{font-size:12px;text-decoration:underline;cursor:pointer}
#accountRecoveryPanel{margin-top:12px}

/* 달콩 카페 v1.4 — 평판을 직접 이해하고 변화를 놓치지 않도록 표시 */
.rep-button{cursor:pointer;color:var(--ink);transition:background .15s,border-color .15s;font-family:inherit}
.rep-button:hover,.rep-button:focus-visible{background:#fff7df;border-color:#d8b672}
.rep-button b{color:#8e6a37}
.rep-alerts{position:fixed;z-index:175;right:18px;top:86px;width:min(345px,calc(100vw - 30px));display:flex;flex-direction:column;gap:8px;pointer-events:none}
.rep-alert{background:#fffdf9;border:1px solid #dfcfaf;box-shadow:0 12px 35px #4d42312d;padding:11px 14px;border-radius:14px;animation:rep-in .22s ease-out}
.rep-alert strong{display:block;font-size:14px;letter-spacing:-.2px}
.rep-alert small{display:block;font-size:12px;margin-top:5px;color:#776c62;line-height:1.4}
.rep-positive{border-left:5px solid #74a987}.rep-positive strong{color:#49785e}
.rep-negative{border-left:5px solid #d39185}.rep-negative strong{color:#b66960}.rep-tier-notice{border-left:5px solid #d8b168}.rep-tier-notice strong{color:#906c3e}
.rep-out{opacity:0;transform:translateY(-8px);transition:.27s ease}
@keyframes rep-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
.rep-modal{width:min(570px,100%);text-align:left;padding:27px;max-height:90vh;overflow-y:auto}
.rep-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.rep-head h2{margin:0}.rep-head button{border-radius:9px;background:#f3e8df;color:#75665d;padding:8px 12px}
.rep-score{background:#fff7eb;border:1px solid #ead8bf;padding:16px 15px;border-radius:16px;margin:16px 0 13px}
.rep-score strong{font-size:23px;color:#876744}.rep-score .reputation-track.big{height:12px;margin:12px 0 8px}.rep-score .reputation-track.big i{background:linear-gradient(90deg,#97c3a5,#edc281)}
.rep-score p{font-size:12px;color:#866e5a;margin:0}.rep-intro{font-size:12px!important;color:#857b70!important}
.rep-modal h3{margin:21px 0 9px;font-size:14px;color:#5f6759}
.rep-tier{padding:11px 13px;border:1px solid #eadfd4;border-radius:11px;margin:8px 0;background:#f9f6f2}
.rep-tier.achieved{background:#f1f8ee;border-color:#c8dfc8}
.rep-tier b,.rep-tier small,.rep-tier em{display:block}.rep-tier b{font-size:12px;color:#685748}.rep-tier small{font-size:11px;color:#746e66;line-height:1.5;margin-top:4px}.rep-tier em{font-size:10px;font-style:normal;color:#9c8472;margin-top:5px}
.rep-rules{border:1px solid #ece2d7;border-radius:13px;overflow:hidden}
.rep-rules>div{display:grid;grid-template-columns:106px 1fr;gap:10px;padding:10px 11px;border-bottom:1px solid #f0e9e2;background:#fffefb;font-size:11px;line-height:1.5}
.rep-rules>div:last-child{border:0}.rep-rules b{color:#6c846b}.rep-rules span{color:#786f66}
.rep-log{display:flex;justify-content:space-between;gap:9px;align-items:center;padding:9px 6px;border-bottom:1px solid #f1e9e1;font-size:11px}.rep-log span{line-height:1.5;color:#796e65;flex:1}.rep-log b{white-space:nowrap}.rep-log small{font-size:10px;color:#9c8c7d}
.rep-log .positive,.summary-rep-log .positive{color:#558569}.rep-log .negative,.summary-rep-log .negative{color:#be756c}
.rep-open-inline{background:transparent;color:#66876b;text-decoration:underline;font-size:10px;font-weight:700;margin-top:5px}
.summary-rep-log{max-height:145px;overflow:auto;margin:8px 0 15px}.summary-rep-log>div{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid #e6dacf}.summary-rep-log strong{white-space:nowrap}
@media(max-width:790px){
 .topbar{height:auto;min-height:65px;flex-wrap:wrap;row-gap:5px;padding:9px 10px}
 .brand{flex:1}.top-actions{margin-left:auto}
 .topstats{order:3;width:100%;display:flex;gap:6px;margin-top:4px}
 .topstats .stat{flex:1;justify-content:center;padding:7px 5px;font-size:11px}
 .topstats .stat:last-child{display:flex}
 .rep-alerts{top:114px;right:9px;width:min(330px,calc(100vw - 18px))}
 .rep-modal{padding:20px 16px}.rep-rules>div{grid-template-columns:88px 1fr;gap:7px}
 .rep-label{display:inline}
}

/* 평판 안내창은 실시간 알림이나 토스트보다 앞에 표시 */
#repModal{z-index:220}

/* v2: busy cafe, three distinct preparation games, owner-designed decor and branch management */
.difficulty-box {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.difficulty-choice {text-align:left;background:#fff8ef;border:1px solid #eadccf;border-radius:13px;padding:11px 9px;min-height:63px}
.difficulty-choice b{display:block;font-size:11px;color:#675f59}
.difficulty-choice small{display:block;margin-top:5px;color:#9f8e80;font-size:10px;line-height:1.35}
.difficulty-choice.selected{background:#e6f1e7;border:2px solid #7fa98c}
.branch-strip{display:flex;gap:7px;overflow-x:auto;padding:9px 0 7px;scrollbar-width:thin}
.branch-chip{position:relative;min-width:125px;text-align:left;background:#fff;border:1px solid #dfd6d0;border-radius:12px;padding:10px 11px;color:#716963;flex:1}
.branch-chip b,.branch-chip small{display:block}.branch-chip b{font-size:12px}.branch-chip small{font-size:10px;margin-top:4px;color:#9b8477}
.branch-chip.selected{background:#e8f3e7;border-color:#7da789;box-shadow:inset 0 0 0 1px #a9d2b7}
.branch-alert{position:absolute;top:2px;right:4px;color:#fff;background:#d87d6f;border-radius:50%;width:17px;height:17px;line-height:17px;text-align:center;font-size:11px}
.rush-notice{background:linear-gradient(90deg,#fff0db,#ffe0d9);border:1px solid #e5bc9c;color:#a75e51;font-size:12px;font-weight:850;padding:9px 12px;border-radius:10px;margin:8px 0;animation:rush-pulse 1.5s ease-in-out infinite}
@keyframes rush-pulse{50%{filter:saturate(1.25);box-shadow:0 0 0 2px #f1b19444}}
/* Clear quality gradient: small safe band, high quality at its middle */
.timing-track{overflow:hidden;background:linear-gradient(90deg,#d58c8c 0%,#e8b37a 16%,#f0d58a 32%,#bed9a0 45%,#7cbb9a 50%,#bed9a0 55%,#f0d58a 68%,#e8b37a 84%,#d58c8c 100%);border:1px solid #c9bba6;border-radius:14px;position:relative;height:29px}
.timing-track #targetZone{background:linear-gradient(90deg,#c8df8b,#4da885 50%,#c8df8b);box-shadow:0 0 0 1px #2f8357,0 0 11px #d5efbb88;border-radius:4px;opacity:.92}
.timing-track #timingMarker{z-index:2;background:#52443a!important;box-shadow:0 0 0 2px #fffdf7!important;width:4px!important}
.sequence-panel,.mix-panel{background:#fffaf0;border:1px solid #eee0cc;border-radius:14px;padding:13px;margin:8px 0}
.sequence-panel p{font-size:14px;text-align:center;font-weight:800;min-height:42px;margin:3px 0 9px;color:#6a7e5f;letter-spacing:1px}
.sequence-buttons{display:flex;justify-content:center;gap:9px}
.sequence-buttons button{min-width:67px;padding:13px 16px;font-size:26px;background:#eaf3e6;border:1px solid #a6c7a9;border-radius:12px;box-shadow:0 4px 0 #b4ceb7}
.sequence-buttons button:active{transform:translateY(3px);box-shadow:none}
.tabs{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}
.tabs .tab{min-width:0;padding-left:2px;padding-right:2px;font-size:11px}
.roam-controls{position:absolute;left:16px;bottom:86px;z-index:3;display:flex;flex-direction:column;align-items:center;gap:2px;opacity:.88}
.roam-controls>div{display:flex;gap:2px}
.roam-controls button{width:40px;height:37px;background:#fffaf1e0;border:1px solid #c6c8b9;color:#54745f;border-radius:11px;font-weight:900;font-size:15px;touch-action:none!important;user-select:none;-webkit-user-select:none;box-shadow:0 2px 7px #0000001a}
.roam-controls button:active{background:#bee0c4}
.design-pills,.branch-dashboard{display:flex;flex-wrap:wrap;gap:7px;margin:9px 0}
.design-pills span,.branch-dashboard span{border:1px solid #e7dccb;border-radius:99px;background:#fff9ef;color:#826e5a;font-size:11px;padding:8px 11px}
.design-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;padding:12px;background:#f2e9dc;border:1px solid #e0d0c3;border-radius:18px}
.design-cell{min-height:66px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:#fffdf9;border:1px dashed #d7cdbf;border-radius:10px;color:#b5b2a8}
.design-cell span{font-size:23px}.design-cell small{font-size:9px;color:#a89681}.design-cell.occupied{border:2px solid #83b59a;background:#ecf6eb}
.design-owned{display:flex;flex-wrap:wrap;gap:7px}.owned-item{background:#fff;border:1px solid #e9d7ca;border-radius:10px;padding:9px;font-size:12px}.owned-item small{display:block;margin-top:3px;color:#7e9284}.owned-item.selected{background:#e5f1e7;border-color:#79a38c}
.decor-shop{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.decor-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;background:#fff;border:1px solid #eadfd6;border-radius:14px;padding:12px;min-height:133px}
.decor-card>span{font-size:25px}.decor-card strong{font-size:12px}.decor-card small{font-size:10px;color:#8d8176;line-height:1.4;flex:1}
.decor-card button,.branch-tools button,.staff-assign button{background:#e6efe3;color:#52775a;border-radius:9px;padding:8px 11px;font-size:11px;font-weight:800}
.decor-card button{width:100%;margin-top:6px}.branch-card{display:flex;justify-content:space-between;gap:13px;background:#fff8f4;border:1px solid #ebddd6;border-radius:15px;padding:13px;margin:10px 0}
.branch-card.opened{background:#f1f8ef;border-color:#d3e4d0}.branch-card strong{font-size:13px}.branch-card p{font-size:11px;color:#85786e;margin:8px 0}.branch-card small{font-size:10px;color:#9b7e72}.branch-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.branch-tools button{white-space:nowrap}
.staff-hiring{margin:12px 0}.staff-assign{border:1px solid #e9e3d9;padding:12px;margin:8px 0;border-radius:11px;background:#fff}.staff-assign b{font-size:12px}.staff-assign>span{float:right;font-size:11px;color:#78937e}.staff-assign>div{display:flex;gap:5px;flex-wrap:wrap;margin-top:9px}
@media(max-width:790px){.tabs .tab{padding:10px 2px}.tabs .tab span{font-size:9px}.difficulty-box{gap:4px}.difficulty-choice{padding:10px 5px}.difficulty-choice b{font-size:10px}.difficulty-choice small{font-size:9px}.decor-shop{gap:7px}.roam-controls{left:10px;bottom:76px;opacity:.86}.roam-controls button{width:34px;height:32px}.design-cell{min-height:56px}.branch-strip{margin-top:6px}.branch-chip{min-width:105px}}

.summary-branches{display:grid;gap:7px;margin:8px 0 18px}.summary-branches>div{background:#f0f7ed;border:1px solid #d8e9d6;padding:9px 10px;border-radius:10px;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.summary-branches strong{font-size:11px;color:#54765d}.summary-branches small{font-size:10px;color:#6e816e}

/* v2.1 — menu pairing strategy */
.combo-panel{background:linear-gradient(145deg,#fff9e9,#f5fff9);border:1px solid #ebdcca;border-radius:17px;padding:15px;margin:14px 0;box-shadow:0 6px 16px #85654d0d}
.combo-head{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;color:#6b544a}.combo-head strong{font-size:1.05rem}.combo-head small{color:#907970}.combo-explain{font-size:.84rem;line-height:1.65;color:#806d64;margin:10px 0 12px}.combo-live{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e8d9bc;background:#fffdf7;border-radius:12px;padding:11px;margin-top:8px}.combo-live>div{display:flex;flex-direction:column;gap:4px}.combo-live b{color:#655447}.combo-live small{color:#837165;line-height:1.45}.combo-live .low-stock{color:#c56756}.combo-on{border-radius:20px;background:#d5ecda;color:#466f54;font-weight:700;font-size:.75rem;padding:5px 10px;white-space:nowrap}.combo-traffic{margin:11px 0 5px;border-radius:10px;background:#edf7ee;padding:10px;font-size:.83rem;color:#52715b}.combo-empty{font-size:.86rem;color:#867366;padding:12px;border:1px dashed #d9c6ab;border-radius:10px}.combo-suggestions{margin-top:12px;display:flex;flex-direction:column;gap:7px}.combo-suggestions>b{font-size:.85rem;color:#705c50}.combo-suggestions button{display:flex;align-items:center;flex-wrap:wrap;gap:5px;text-align:left;border:1px solid #e9dcdb;background:white;border-radius:10px;padding:10px;color:#72594f;font-weight:700}.combo-suggestions button small{font-size:.75rem;color:#907e73;font-weight:400;flex:1 1 60%}.combo-suggestions button span{font-size:.75rem;color:#4c927a}.order-card.set-order{border-color:#c8b9e0;background:linear-gradient(120deg,#fff9f8,#f5f0ff)}.set-warning{background:#f9f4e7;border-left:3px solid #c89b56;padding:8px 10px;border-radius:4px;color:#765b3e;line-height:1.5;font-size:.85rem}
@media(max-width:600px){.combo-head{align-items:flex-start;flex-direction:column;gap:4px}.combo-panel{padding:12px}.combo-suggestions button span{width:100%}}

/* v2.2 reputation pressure, staff fatigue and per-account guide */
.pressure-forecast{margin:10px 0 14px;border:1px solid #e3cfbc;border-radius:12px;background:#fff9ea;color:#765b42;padding:10px 12px;font-size:12px;line-height:1.5;font-weight:650}
.service-pressure{margin-top:8px;background:#f4f5e8;border-color:#d3e3cf;color:#52684f}
.staff-person{margin:10px 0;background:#fffefa;border:1px solid #e7dfd3;border-radius:15px;padding:13px;box-shadow:0 3px 8px #50412608}
.staff-person.tired{border-color:#e6b4a6;background:#fff7f2}
.staff-person-top{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center}
.staff-person-top strong{font-size:14px;color:#596e5a}.staff-person-top span{font-size:11px;color:#958579}
.staff-energy{height:9px;overflow:hidden;background:#eee3d8;border-radius:99px;margin:10px 0 7px}
.staff-energy i{display:block;height:100%;border-radius:inherit;transition:width .3s ease}
.staff-person small{color:#8a766a;display:block;line-height:1.5;font-size:11px}
.staff-person-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.staff-person-actions button{border-radius:9px;background:#e5f0e5;color:#45694e;padding:8px;font-size:11px;font-weight:700}
.staff-person-actions button:disabled{opacity:.42}
.staff-daily{margin:8px 0 16px;background:#fff8ef;padding:12px;border-radius:10px;color:#7c6055}
.staff-daily p,.staff-daily small{font-size:11px;line-height:1.55}
.tutorial-modal{max-width:475px!important;text-align:left}
.tutorial-icon{font-size:42px;line-height:1.2;margin:6px 0}
.tutorial-modal h2{margin-top:8px}.tutorial-modal>p{line-height:1.8}
.tutorial-footnote{font-size:11px;color:#8d8172;background:#f7f1e7;padding:10px;border-radius:10px}
.tutorial-actions{display:flex;gap:8px;margin-top:18px}.tutorial-actions button{flex:1}
.guide-entry{padding:9px 11px;margin:7px 0;background:#fff9f1;border:1px solid #eadfce;border-radius:10px}
.guide-entry summary{cursor:pointer;font-weight:800;color:#5a705b;display:flex;justify-content:space-between;gap:5px}
.guide-entry summary small{color:#a58d7e;font-size:10px}
.guide-entry p{font-size:12px;line-height:1.75;color:#6c675f;margin:10px 0 4px}
@media(max-width:550px){.tutorial-actions{flex-direction:column}.pressure-forecast{font-size:10px;padding:9px}}

/* v2.3 — tactile manufacturing: five visibly different cooking actions. */
.timing-track{height:38px;border:2px solid #d9cfc2;border-radius:17px;box-shadow:inset 0 2px 5px #745b4829;overflow:visible;position:relative}
.timing-track #targetZone{height:44px;top:-5px;border:2px solid #4b9b75;background:#60ac87aa;border-radius:8px;box-shadow:0 0 0 2px #ffffffe8}
.timing-track #timingMarker{height:49px;top:-7px;width:5px;background:#51423d;box-shadow:0 0 0 3px #ffffffb5,0 2px 7px #35241c66;z-index:2}
.food-station{border:1px solid #e4d2c3;border-radius:16px;background:#fff9f0;padding:14px 15px;margin:14px 0 10px;text-align:center}
.station-title{font-size:14px;font-weight:850;color:#8c6f5a;margin:1px 0 13px}
.station-bar{position:relative;height:31px;border-radius:12px;overflow:visible;background:linear-gradient(90deg,#f5d6c5 0%,#eedca9 46%,#aad3b4 70%,#e7a9a4 100%);border:1px solid #e3c9bb}
.station-bar i{display:block;position:absolute;top:0;left:0;height:100%;width:0%;border-radius:12px;background:linear-gradient(90deg,#e9bdb4bb,#8ebd9fbd);border-right:3px solid #578a71;transition:width .12s ease-out}
.station-bar b{position:absolute;top:-8px;width:4px;height:47px;border:2px solid #4e8f6a;background:#f6fff8;box-shadow:0 0 0 2px white;border-radius:4px}
.station-bar.oven{background:linear-gradient(90deg,#f4ead9 0%,#dfc7a3 40%,#d8995c 68%,#76534b 100%)}
.station-bar.oven i{background:linear-gradient(90deg,#f5d1a4bb,#cb8860c9);border-right:3px solid #a65c46}
.food-station small{display:block;margin:11px 0;color:#77665b;font-size:12px}
.station-finish{display:inline-block;width:100%;padding:12px;background:#f3dfd2;border:1px solid #d6bbaa;border-radius:12px;color:#895b50;font-size:13px;font-weight:800}
.scene-decor-layer{position:absolute;inset:0;z-index:4;pointer-events:none;touch-action:none;user-select:none}
.scene-decor-layer.editing{pointer-events:auto;cursor:crosshair;background:radial-gradient(ellipse at 50% 72%,#fbefdc0b,transparent 70%)}
.scene-furniture{position:absolute;transform:translate(-50%,-73%);width:47px;height:47px;display:grid;place-items:center;border-radius:15px;border:2px solid #fffef8;background:#f5efe6e8;box-shadow:0 5px 13px #423f3969;cursor:grab;z-index:2;font-size:25px;touch-action:none;user-select:none}
.scene-furniture.dragging{border-color:#5fa981;background:#ddf4e2;transform:translate(-50%,-73%) scale(1.15);cursor:grabbing;z-index:5}
.scene-furniture.invalid{border-color:#cf6a61;background:#fce5df}
.decor-place-label{position:absolute;top:78px;left:50%;transform:translateX(-50%);border-radius:30px;background:#fffaedeb;border:1px solid #fff3d4;box-shadow:0 5px 20px #655a4433;padding:9px 13px;white-space:nowrap;pointer-events:none;font-weight:800;font-size:12px;color:#6d7c64;max-width:90%;overflow:hidden;text-overflow:ellipsis}
.design-tip{padding:14px;background:linear-gradient(125deg,#e9f1e4,#fff2e4);border:1px solid #d6e4d3;border-radius:15px;color:#566b57;font-size:12px;line-height:1.85;margin:13px 0}
.decor-editor-note{color:#7b7367;background:#faf5eb;border:1px dashed #d6cabc;padding:11px;border-radius:13px;font-size:12px;line-height:1.55}
.owned-item.selected{border:2px solid #6c9c77;background:#e4f2e2}
.scene-footer,.world-caption,.roam-controls{z-index:6}
.canvas-frame{background:#d3dfd0}
.canvas-frame:after{box-shadow:inset 0 0 0 1px #fff8e9c2, inset 0 -35px 70px #eac7a41c}
@media(max-width:780px){.scene-furniture{width:41px;height:41px;font-size:22px}.decor-place-label{top:67px;font-size:10px}.food-station{padding:11px}}

.scene-decor-layer,.scene-decor-layer *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}

/* v2.4 — 직접 움직여 그리는 라테아트 / 빠른 오븐 / 빠른 기억 시작 */
.art-panel{display:flex;flex-direction:column;gap:8px;align-items:stretch;background:linear-gradient(145deg,#fff9ef,#f6ebe0);border:1px solid #e6d5c4;border-radius:16px;padding:12px;margin:8px 0}
#artCanvas{display:block;width:min(100%,355px);max-height:225px;aspect-ratio:300/190;align-self:center;border-radius:17px;background:linear-gradient(140deg,#e9d4b5,#fff0d9);border:2px solid #ead9bf;touch-action:none!important;user-select:none;-webkit-user-select:none;cursor:crosshair}
.art-panel small{font-size:12px;text-align:center;color:#8b6d56;font-weight:700;line-height:1.5}
.art-panel .station-finish{align-self:center;margin-top:2px;background:#eee9e1;color:#7b766d;border:1px solid #dfd2c3}
.memory-ready{display:block;margin:7px auto 12px;background:#e6f0e0!important;color:#42654a!important;border-color:#a5c2a8!important}
.oven-boost{display:block;margin:11px auto 0;background:#fce2c4!important;color:#935838!important;border:1px solid #eac3a2!important;max-width:100%;font-weight:800}
.oven-boost:active,.memory-ready:active{transform:scale(.97)}


/* v2.5 — Less reading, more room, and furniture integrated with the scene */
.scene-caption,.scene-motto{display:none!important}
.dashboard-top{padding-bottom:6px!important}
#panelSub{font-size:12px;line-height:1.45;margin-top:3px;margin-bottom:9px;color:#8a796e}
#craftHint{line-height:1.45;font-weight:650;margin:5px 0 8px}
#comboPanel{padding:10px 12px;margin:8px 0;background:#fcf8f0}
.combo-head{margin-bottom:0!important;display:flex;align-items:center;justify-content:space-between;gap:6px}
.combo-head strong{font-size:13px}
.combo-head small{font-size:11px;white-space:nowrap}
.combo-more,.economics-more{margin-top:7px;border-top:1px solid #ebddcd;padding-top:5px}
.combo-more summary,.economics-more summary{cursor:pointer;padding:7px 4px;font-weight:750;font-size:12px;color:#7b6a5e;list-style:none}
.combo-more summary::-webkit-details-marker,.economics-more summary::-webkit-details-marker{display:none}
#menuEconomics{padding:4px 11px;margin:5px 0;background:#fcf9f2}
#menuEconomics .economy-row{font-size:12px;gap:5px}
#menuEconomics .economy-row small{font-size:10px}
#pressureForecast,.service-pressure{padding:7px 11px;font-size:11px;line-height:1.4}
#eventCard p{line-height:1.45;margin:5px 0 8px;font-size:12px}
#eventCard .event-top{margin-bottom:4px}
.prep-bottom p{font-size:12px}
#prepView .section-h{margin-top:13px}

/* No boxed emoji hovering over 3D models. Only show a subtle halo on drag. */
.scene-furniture,.scene-furniture:hover,.scene-furniture:focus-visible{
 width:48px;height:55px;border:0!important;border-radius:0!important;background:transparent!important;
 box-shadow:none!important;padding:0!important;display:grid;place-items:center;
 transform:translate(-50%,-70%);font-size:27px;filter:drop-shadow(0 3px 2px #463a2a40);
 transition:filter .10s ease;outline:none;touch-action:none;cursor:grab;
}
.scene-furniture:focus-visible{outline:2px dashed #7aaf8e!important;outline-offset:2px}
.scene-furniture.dragging{background:transparent!important;border:0!important;box-shadow:none!important;transform:translate(-50%,-75%) scale(1.15);filter:drop-shadow(0 0 6px #6aa888);cursor:grabbing}
.scene-furniture.invalid{background:transparent!important;border:0!important;filter:drop-shadow(0 0 5px #d87265)}
.decor-place-label{top:57px;border-radius:22px;padding:7px 12px;font-size:11px}
.design-tip{margin:8px 0;padding:10px 12px;line-height:1.4;font-size:12px}
.design-pills{gap:5px!important;margin:8px 0}
.design-pills span{font-size:11px!important}
.inline-guide{display:inline-grid;place-items:center;width:25px;height:25px;min-width:25px;margin-left:4px;border-radius:50%;background:#e5f0e8;color:#567864;font-weight:bold}
.decor-shop{gap:8px}
.decor-card{min-height:109px;padding:9px 10px;gap:3px}
.decor-card strong{font-size:12px}
.decor-card small{font-size:10px;line-height:1.3}
.decor-card button{padding:7px 10px;margin-top:3px}

/* Real illustrated help, no paragraphs of instructions. */
.help-directory{width:min(535px,95vw);max-height:88vh;padding:22px 20px;text-align:left}
.help-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.help-title-row h2{font-size:19px;margin:4px 0 8px;color:#514b43}
.help-title-row .account-close{position:static;flex-shrink:0}
.guide-intro{margin:0 0 14px!important;font-size:12px!important;color:#8a7d70!important}
.guide-entry{padding:0;overflow:hidden;border-radius:14px;margin:7px 0;background:#fffcf7;border:1px solid #ebe0d3}
.guide-entry summary{padding:12px 13px;font-size:13px;display:flex;align-items:center;gap:8px;justify-content:space-between;color:#5a6557}
.guide-entry summary small{margin-left:auto;font-size:10px;font-weight:600;color:#8d9c8a}
.guide-entry[open]{background:#fffdf9;border-color:#b9d0bc;box-shadow:0 4px 18px #877a6b13}
.guide-entry .guide-visual{margin:0 12px 6px}
.guide-entry p{margin:3px 14px 4px!important;font-size:12px!important;line-height:1.45!important}
.guide-hint{display:block;color:#7b8572;font-size:11px;font-weight:700;line-height:1.4;margin:6px 13px 12px}
.guide-visual{max-width:100%;margin:8px auto 10px;overflow:hidden;border-radius:16px;background:#fdf8f0}
.guide-visual svg{width:100%;height:auto;max-height:163px;display:block}
.tutorial-modal{width:min(440px,95vw);padding:23px 20px}
.tutorial-modal .eyebrow{font-size:9px;letter-spacing:2px}
.tutorial-icon{font-size:28px;line-height:1}
.tutorial-modal h2{font-size:21px;margin:5px 0 9px}
.tutorial-modal>p{font-size:13px!important;line-height:1.5!important;margin:8px 0!important}
.tutorial-modal .guide-hint{font-size:12px;color:#718878;background:#eff5ec;padding:9px 12px;border-radius:12px;margin:8px 0 9px}
.tutorial-actions{margin-top:11px}
.tutorial-actions button{padding:10px 9px;font-size:12px}
@media(max-width:780px){
 .scene-furniture{width:40px;height:47px;font-size:24px}
 .help-directory{padding:18px 14px;max-height:90vh}
 .guide-entry summary{padding:11px 12px}
 .guide-visual svg{max-height:140px}
 #eventCard p{font-size:11px}
 #comboPanel{padding:7px 10px}
 .scene-footer{padding-top:4px}
}

/* Subtle grab handle only in design mode; never a box over purchased furniture. */
.scene-furniture{font-size:0!important;filter:none!important}
.scene-furniture:after{content:'⋮';display:grid;place-items:center;position:absolute;right:1px;top:3px;font-size:16px;line-height:1;color:#55826c;text-shadow:0 1px 2px white,0 -1px 2px white;opacity:.85}
.scene-furniture.dragging:after{content:'✥';color:#2f885a;opacity:1;font-size:20px}
.scene-furniture.invalid:after{color:#b95750}
#sceneMood{display:none!important}
.scene-footer{justify-content:flex-end!important}
#floatingNote{font-size:12px;padding:7px 12px}

/* v2.6: The v2.5 three-dot ::after was a grab handle; remove it entirely. */
.scene-furniture::after,.scene-furniture.dragging::after,.scene-furniture.invalid::after{content:none!important;display:none!important}
.scene-furniture{font-size:0!important;color:transparent!important;text-shadow:none!important;filter:none!important;background:transparent!important;box-shadow:none!important}
.scene-furniture.dragging{filter:drop-shadow(0 0 5px #6baf92)!important}
.scene-customer-layer{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden}
.scene-guest{position:absolute;transform:translate(-50%,-98%);pointer-events:auto;min-width:73px;max-width:116px;background:#fffdf8eb;border:1.5px solid #f5e5cb;border-radius:15px;padding:4px 6px 5px;display:flex;align-items:center;justify-content:center;gap:2px;flex-direction:column;color:#665a52;box-shadow:0 4px 14px #57443d39;touch-action:manipulation;transition:border-color .18s,background .18s;z-index:2}
.scene-guest.first{border-color:#75a98c;background:#f5fff4ed;z-index:3}
.scene-guest.worried{border-color:#e6b46f;background:#fff7e7f0}
.scene-guest.angry{border-color:#d58c83;background:#fff0eaf2;animation:guestPulse 1.2s ease-in-out infinite}
.guest-order{position:absolute;top:-10px;left:-7px;border-radius:13px;padding:2px 5px;background:#699780;color:#fff;font-size:9px;font-weight:850;box-shadow:0 2px 6px #2a4f3c38}
.scene-guest.worried .guest-order{background:#d69a52}.scene-guest.angry .guest-order{background:#c46c63}
.guest-face{font-size:23px;line-height:1.1}
.guest-dish{font-size:9px;font-weight:800;max-width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.guest-wait{display:block;height:4px;width:100%;background:#ebdfd6;border-radius:8px;overflow:hidden;margin-top:2px}
.guest-wait i{display:block;height:100%;border-radius:8px;background:#7faf96;transition:width .2s}
.scene-guest.worried .guest-wait i{background:#e9ae68}.scene-guest.angry .guest-wait i{background:#d77871}
@keyframes guestPulse{50%{box-shadow:0 2px 15px #d27567a6}}
.customer-tip{font-size:11px;color:#7e9a83;margin:2px 0 10px}
.order-list-details{border:1px solid #e8e0d5;background:#fffaf4;border-radius:14px;padding:11px}
.order-list-details>summary{cursor:pointer;color:#86746b;font-size:12px;font-weight:750;list-style-position:inside;user-select:none}
.order-list-details[open] #orderGrid{margin-top:10px}
.order-list-details .order-card{padding:8px}
.order-list-details .customer-face{background:#f5f2e8;font-size:15px;min-width:47px}
.order-list-details .order-action{margin-top:10px}
.craft-modal{z-index:85;background:#43332fb9;backdrop-filter:blur(6px);overflow-y:auto;align-items:center}
.craft-dialog{width:min(530px,96vw);max-height:94vh;overflow-y:auto;background:#fffaf3;border:1px solid #faeddf;border-radius:24px;padding:15px;box-shadow:0 20px 80px #35231d58}
.craft-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 8px}
.craft-dialog-head small{display:block;font-size:10px;color:#9b8b7c;font-weight:750}
.craft-dialog-head b{display:block;font-size:17px;margin-top:3px}
.craft-dialog-head button{font-size:12px;font-weight:750;color:#776357;background:#f2e8df;padding:9px 11px;border-radius:12px}
.craft-dialog #craftGame{margin:0;padding:13px;box-shadow:none}
.craft-dialog-foot{display:block;text-align:center;margin-top:12px;color:#aa8f82;font-size:11px}
@media(max-width:790px){
 .scene-guest{min-width:56px;max-width:75px;padding:3px 3px 4px;border-radius:11px}
 .guest-face{font-size:19px}.guest-dish{font-size:8px}.guest-order{font-size:8px}
 .craft-dialog{width:100%;padding:11px;border-radius:18px}
 .craft-dialog #craftGame{padding:10px}
 .customer-tip{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.scene-guest.angry{animation:none}}

.craft-dialog .craft-head{flex-direction:column;align-items:flex-start;gap:4px}
.craft-dialog .craft-head strong{font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.craft-dialog .craft-head small{font-size:11px;white-space:normal;line-height:1.45}

.guest-dish{display:flex;align-items:center;gap:3px;justify-content:center}
.guest-dish-icon{font-size:11px}.guest-dish-text{display:block;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:790px){
 .scene-guest{min-width:44px;width:44px;max-width:44px;min-height:42px;padding:3px 3px 2px;gap:0;border-radius:12px}
 .guest-face{font-size:19px;line-height:1}.guest-dish-icon{font-size:11px;line-height:1.1}.guest-dish-text{display:none}
 .guest-order{font-size:8px;top:-8px;left:-6px}.guest-wait{height:3px;margin-top:1px}
}

.guest-face:empty{display:none}
.scene-guest.happy .guest-dish{padding-top:3px}

/* ===== 달콩 카페 v2.7: real seating, uncluttered cafe view, furniture storage ===== */
.closed-sign{position:absolute;top:64px;right:16px;z-index:2;border:1px solid #f7ebd8;background:#fff9e6dd;backdrop-filter:blur(5px);padding:9px 14px;color:#8b7464;font-weight:850;border-radius:14px;font-size:12px;pointer-events:none;box-shadow:0 4px 12px #84654d1c}
.service-layout .closed-sign{display:none}
.market-today{border:1px solid #d9e6d7;background:linear-gradient(120deg,#f0f7e9,#fff8e9);border-radius:12px;padding:9px 11px;color:#668065;font-size:12px;line-height:1.65;margin-bottom:7px}
.closing-cost-note{padding:12px;border-radius:12px;border:1px solid #eddac4;background:#fff4e8;color:#866951;font-size:12px;line-height:1.7}
.placement-panel{margin:13px 0;border-radius:16px;padding:13px 15px;border:1px solid #d8e6d6;background:linear-gradient(125deg,#f2f8ed,#fffaf1)}
.placement-panel>strong,.placement-panel>small{display:block}.placement-panel>strong{font-size:13px}.placement-panel>small{font-size:11px;color:#8c8174;line-height:1.5;margin-top:5px}
.place-choices{margin-top:11px;display:flex;gap:6px;flex-wrap:wrap;align-items:center}.place-choices>b{font-size:12px;min-width:100%;color:#607b65}
.place-choices button{font-size:11px;font-weight:750;padding:9px 12px;border-radius:9px;background:white;color:#66836c;border:1px solid #bcd5bf}
.place-choices button:disabled{background:#f5f3ef;color:#a29c91}
.placed-list{display:grid;gap:8px;margin:10px 0 15px}.placed-row{display:flex;align-items:center;justify-content:space-between;gap:9px;background:#fff;border:1px solid #ebded1;border-radius:12px;padding:11px 12px}
.placed-row>span{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:17px}.placed-row b{font-size:12px}.placed-row small{font-size:10px;color:#9b8d81;white-space:nowrap}
.placed-actions button{border:1px solid #d2e3d3;background:#e9f4e8;color:#507d5a;border-radius:10px;padding:9px 11px;font-size:11px;font-weight:850;white-space:nowrap}
.decor-store-more{background:#fff8f0;border:1px solid #e9dacb;border-radius:13px;padding:11px 12px;margin-top:15px}.decor-store-more>summary{color:#826b5a;cursor:pointer;font-size:13px;font-weight:750;padding:6px}.decor-store-more .decor-shop{margin-top:12px}
.scene-diner{position:absolute;z-index:1;transform:translate(-50%,-125%);border:1px solid #e4d4bd;background:#fff7e8ed;color:#8c7156;border-radius:14px;padding:4px 7px;font-size:9px;box-shadow:0 3px 10px #573c291a;pointer-events:none;white-space:nowrap}
.scene-furniture.mounted-wall,.scene-furniture.mounted-table{cursor:default}
.service-layout .shell{max-width:1920px;grid-template-columns:minmax(0,1fr) minmax(280px,338px);align-items:start;gap:0}
.service-layout .viewport-area{padding:10px;position:relative}
.service-layout .canvas-frame{height:calc(100dvh - 100px);min-height:430px;max-height:1000px;border-radius:25px;top:10px;box-shadow:0 14px 36px #5c735327}
.service-layout .panel{padding:14px 15px 22px;box-shadow:-2px 0 20px #594c3110;max-height:calc(100dvh - 76px);overflow-y:auto}
.service-layout .dashboard-top{padding:0 0 9px}.service-layout .panel-heading h1{font-size:15px;margin:4px 0}.service-layout .dashboard-top>p{display:none}
.service-layout .service-pressure{font-size:10px;padding:7px 8px}
.service-layout .service-stats{gap:4px;margin-top:8px}.service-layout .service-stats div{padding:8px 4px}.service-layout .service-stats strong{font-size:17px}
.service-layout .section-h{margin:11px 0 6px}.service-layout .customer-tip{font-size:10px;margin:3px 0 7px}
.service-layout .scene-caption{display:none}.service-layout .scene-footer span{display:none}
.service-layout .floating-note{bottom:70px;opacity:.88;font-size:11px}
.service-layout .roam-controls{opacity:.44}.service-layout .roam-controls:hover{opacity:1}
.service-layout .timer-wrap{padding:10px}.service-layout .clock-label strong{font-size:15px}.service-layout .clock-label span{display:none}.service-layout .speed-actions .smallbtn{padding:6px 7px;font-size:10px}
.service-layout .tabs{margin-top:13px}.service-layout .branch-strip{padding-top:6px}
@media(max-width:790px){
 .closed-sign{top:57px;right:8px;padding:6px 9px;font-size:10px}
 .scene-diner{font-size:8px;padding:3px 5px}
 .service-layout .shell{display:flex;flex-direction:column}
 .service-layout .viewport-area{padding:6px 6px 0;width:100%}
 .service-layout .canvas-frame{position:relative;top:0;height:clamp(320px,62dvh,690px);min-height:320px;border-radius:17px}
 .service-layout .panel{max-height:none;overflow:visible;padding:10px 12px 22px}
 .service-layout .roam-controls{display:none}
 .service-layout .floating-note{bottom:45px;font-size:10px;padding:6px 10px}
 .service-layout .world-caption .capsule{padding:6px 8px;font-size:9px}
 .service-layout .scene-footer{bottom:5px;right:8px}
 .service-layout .dashboard-top{display:none}
 .service-layout .service-stats div{padding:6px 4px}.service-layout .service-stats strong{font-size:16px}
 .service-layout .service-stats small{font-size:9px}
 .service-layout #rushNotice{margin:4px 0;padding:6px 9px}
 .service-layout .service-pressure{font-size:10px;margin:6px 0}
 .service-layout .section-h{margin:8px 0 5px}
 .placed-row{align-items:flex-start}.placed-row>span{max-width:57%}
}
@media(min-width:791px) and (orientation:landscape) and (max-height:650px){.service-layout .canvas-frame{min-height:350px;height:calc(100dvh - 80px)}.service-layout .panel{max-height:calc(100dvh - 60px)}}

/* A single immersive café while trading. Management drawer is one tap away. */
.focus-toggle{position:absolute;right:15px;bottom:58px;z-index:8;border-radius:13px;padding:10px 15px;border:1px solid #d7e4d3;background:#fafff3ef;color:#55765d;font-size:12px;font-weight:850;box-shadow:0 6px 18px #3f694726}
.focus-mode .shell{display:block!important;max-width:1960px!important}
.focus-mode .viewport-area{width:100%!important;padding:6px 12px!important}
.focus-mode .panel{display:none!important}
.focus-mode .canvas-frame{width:100%;height:calc(100dvh - 90px);min-height:320px;max-height:none;position:relative;top:0;border-radius:24px}
.focus-mode .scene-caption{display:none}
.focus-mode .roam-controls{display:none}
.focus-mode .scene-footer span{display:none}
.focus-mode .floating-note{bottom:65px}
@media(max-width:790px){.focus-toggle{right:10px;bottom:47px;padding:8px 10px;font-size:11px}.focus-mode .viewport-area{padding:4px!important}.focus-mode .canvas-frame{height:calc(100dvh - 105px);border-radius:14px}.focus-mode .floating-note{bottom:15px;left:14px;right:114px;transform:none;max-width:none;text-align:center}.focus-mode .scene-footer{bottom:6px}}

/* v2.8 — landscape-first café, in-scene ordering and compact management */
#rotateOverlay{display:none}
@media (orientation:portrait) and (max-width:1100px){
 #rotateOverlay{position:fixed;inset:0;z-index:500;display:grid;place-items:center;padding:24px;background:linear-gradient(155deg,#f9e5d9,#e6efdf);color:#67554a;text-align:center}
 .rotate-card{max-width:360px;background:#fffaf1;padding:30px 22px;border-radius:26px;box-shadow:0 15px 50px #5c4c392a}
 .rotate-icon{font-size:49px}.rotate-icon span{color:#83ad8b}
 .rotate-card h2{font-size:20px;margin:14px 0}.rotate-card p{font-size:13px;line-height:1.9;color:#8a7565}
}
.shell,.service-layout .shell{grid-template-columns:minmax(0,1fr) minmax(315px,30vw);gap:0}
.viewport-area{min-width:0}
.canvas-frame,.service-layout .canvas-frame{height:calc(100dvh - 102px);min-height:330px}
.panel{max-height:calc(100dvh - 69px);overflow-y:auto;align-self:start;scrollbar-width:thin}
.panel .tabs{position:sticky;top:0;z-index:22;background:#f5f1ebfa;margin:0 0 10px;grid-template-columns:repeat(3,minmax(0,1fr))}
.scene-service-hud{position:absolute;z-index:18;top:57px;right:10px;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:5px;max-width:min(92%,670px);pointer-events:auto}
.scene-service-hud.hidden{display:none}
.scene-service-hud>span,.scene-service-hud>button{padding:6px 9px;background:#fffdf6ee;border:1px solid #e1e3d5;border-radius:10px;color:#57745f;box-shadow:0 3px 14px #3548311e;font-size:11px;font-weight:750;white-space:nowrap}
.scene-service-hud>button{background:#e9f3e6f2;color:#476c50}
.scene-service-hud>button:disabled{opacity:.5}
.scene-order-action{z-index:24;position:absolute;right:15px;bottom:63px;width:min(460px,calc(100% - 30px));padding:10px 12px;border:1px solid #e0c9a5;border-radius:17px;background:#fffcf2f6;box-shadow:0 12px 36px #4c3b2a55;display:flex;align-items:center;gap:10px;justify-content:space-between}
.scene-order-action.hidden{display:none}
.scene-action-info{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px;color:#715744}
.scene-action-info span{font-size:10px}.scene-action-info strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.scene-action-info small{font-size:10px;color:#977e6b}
.scene-action-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:5px;justify-content:flex-end}
.scene-action-buttons button{padding:10px 11px;border-radius:11px;background:#e3f1e3;border:1px solid #c5dbcb;color:#4b7353;font-size:11px;font-weight:850}
.scene-action-buttons button:first-child{background:#f8e3e7;color:#a4687f;border-color:#f2c9d4}
.scene-action-buttons button:last-child{padding:8px;background:#f6efe6;color:#a28d7a}
.scene-action-buttons button:disabled{opacity:.42}
.menu-ingredient-summary{margin:8px 0 10px;padding:12px 13px;background:#f0f7e9;border:1px solid #cfdfc6;border-radius:12px;font-size:11px;line-height:1.75;color:#617659}
.menu-ingredient-summary strong{font-size:13px}.menu-ingredient-summary p{margin:6px 0}.menu-ingredient-summary small{font-size:10px;color:#6e806b}
.menu-card small{line-height:1.5}
.action-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}
.scene-furniture.mounted-wall,.scene-furniture.mounted-table{cursor:grab}
.service-layout .order-list-details{display:none} /* 카페 화면의 손님 선택이 기본 응대 방식 */
.focus-mode .scene-order-action{bottom:61px}
.focus-mode .focus-toggle{right:12px;bottom:10px}
@media(max-width:1060px){
 .shell,.service-layout .shell{grid-template-columns:minmax(0,1fr) minmax(300px,35vw)}
 .canvas-frame,.service-layout .canvas-frame{min-height:285px;height:calc(100dvh - 89px)}
 .panel{padding:12px 13px;max-height:calc(100dvh - 63px)}
}
@media(max-width:960px) and (orientation:landscape){
 .topbar{height:50px;padding:0 9px}
 .brand strong{font-size:14px}.brand span{display:none}.mark{width:30px;height:30px}
 .shell,.service-layout .shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,35vw);min-height:calc(100dvh - 50px)}
 .viewport-area,.service-layout .viewport-area{width:auto;padding:4px;min-width:0}
 .canvas-frame,.service-layout .canvas-frame{top:0;position:relative;min-height:235px;height:calc(100dvh - 58px);border-radius:13px}
 .panel,.service-layout .panel{max-height:calc(100dvh - 50px);height:calc(100dvh - 50px);overflow-y:auto;padding:8px 10px 15px;border-radius:12px}
 .panel .tabs{display:flex;overflow-x:auto;gap:3px;padding:4px;border-radius:9px;overscroll-behavior-x:contain}
 .panel .tabs .tab{flex:0 0 auto;padding:7px 9px;font-size:10px}
 .panel .tabs .tab span{font-size:10px}
 .panel-heading h1{font-size:16px}.section-h{margin:10px 0 6px}
 .scene-caption{display:none}.roam-controls{display:none}
 .world-caption{top:4px;left:6px;right:auto}
 .world-caption .capsule{font-size:9px;padding:4px 5px}
 .service-layout .world-caption .capsule{font-size:9px;padding:4px 5px}
 .scene-service-hud{top:33px;right:5px;gap:3px;max-width:95%}
 .scene-service-hud>span,.scene-service-hud>button{font-size:9px;padding:5px 6px;border-radius:7px}
 .scene-order-action{right:7px;bottom:40px;width:min(430px,calc(100% - 14px));padding:7px;gap:5px;flex-direction:row}
 .scene-action-info strong{font-size:11px}.scene-action-info small{font-size:9px}
 .scene-action-buttons{max-width:200px;gap:3px}
 .scene-action-buttons button{font-size:10px;padding:7px}
 .focus-mode .shell{display:block!important}
 .focus-mode .viewport-area{padding:2px!important}
 .focus-mode .canvas-frame{min-height:235px;height:calc(100dvh - 55px);border-radius:11px}
 .focus-toggle,.focus-mode .focus-toggle{bottom:6px;right:8px;padding:6px 9px;font-size:10px}
 .scene-footer{bottom:3px;right:5px}
 .floating-note,.focus-mode .floating-note{bottom:13px;left:10px;right:113px;transform:none;text-align:center;font-size:9px;padding:5px;max-width:none}
 .craft-dialog{max-height:calc(100dvh - 18px);overflow-y:auto}
 .craft-modal{padding:7px}
 .welcome-modal,.help-modal{max-height:calc(100dvh - 14px);padding:15px 21px}
}
@media(max-height:390px) and (orientation:landscape){
 /* Keep top numbers consistent before/after fullscreen; the shorter-height breakpoint formerly shrank them. */
 .scene-service-hud{top:32px}
 .scene-service-hud>span,.scene-service-hud>button{font-size:9px;padding:3px 5px}
 .scene-order-action{bottom:34px}
 .scene-guest{transform:translate(-50%,-50%) scale(.79)}
}

.scene-furniture.mounted-ceiling{cursor:grab}

/* v2.9 — immersive display. On devices that disallow orientation locking,
   rotate the game surface instead of blocking the user with a message.
   The content is sideways only while the actual device remains portrait. */
#rotateOverlay{display:none!important}
body{overscroll-behavior:none}
html{overscroll-behavior:none}
#fullscreenBtn{font-size:22px}
@media (orientation:landscape) and (max-width:1100px){
 body{padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
}
@media (orientation:portrait) and (max-width:1100px){
 html,body{width:100vw;height:100dvh;overflow:hidden!important;overscroll-behavior:none}
 #app{position:fixed;z-index:1;left:100vw;top:0;width:100dvh;height:100vw;min-height:0;max-height:100vw;overflow:hidden;transform:rotate(90deg);transform-origin:top left}
 /* Reapply the landscape mobile layout since media queries refer to the physical, not rotated, viewport. */

 .topbar{height:50px;padding:0 9px}
 .brand strong{font-size:14px}.brand span{display:none}.mark{width:30px;height:30px}
 .shell,.service-layout .shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,35vw);min-height:calc(100vw - 50px)}
 .viewport-area,.service-layout .viewport-area{width:auto;padding:4px;min-width:0}
 .canvas-frame,.service-layout .canvas-frame{top:0;position:relative;min-height:235px;height:calc(100vw - 58px);border-radius:13px}
 .panel,.service-layout .panel{max-height:calc(100vw - 50px);height:calc(100vw - 50px);overflow-y:auto;padding:8px 10px 15px;border-radius:12px}
 .panel .tabs{display:flex;overflow-x:auto;gap:3px;padding:4px;border-radius:9px;overscroll-behavior-x:contain}
 .panel .tabs .tab{flex:0 0 auto;padding:7px 9px;font-size:10px}
 .panel .tabs .tab span{font-size:10px}
 .panel-heading h1{font-size:16px}.section-h{margin:10px 0 6px}
 .scene-caption{display:none}.roam-controls{display:none}
 .world-caption{top:4px;left:6px;right:auto}
 .world-caption .capsule{font-size:9px;padding:4px 5px}
 .service-layout .world-caption .capsule{font-size:9px;padding:4px 5px}
 .scene-service-hud{top:33px;right:5px;gap:3px;max-width:95%}
 .scene-service-hud>span,.scene-service-hud>button{font-size:9px;padding:5px 6px;border-radius:7px}
 .scene-order-action{right:7px;bottom:40px;width:min(430px,calc(100% - 14px));padding:7px;gap:5px;flex-direction:row}
 .scene-action-info strong{font-size:11px}.scene-action-info small{font-size:9px}
 .scene-action-buttons{max-width:200px;gap:3px}
 .scene-action-buttons button{font-size:10px;padding:7px}
 .focus-mode .shell{display:block!important}
 .focus-mode .viewport-area{padding:2px!important}
 .focus-mode .canvas-frame{min-height:235px;height:calc(100vw - 55px);border-radius:11px}
 .focus-toggle,.focus-mode .focus-toggle{bottom:6px;right:8px;padding:6px 9px;font-size:10px}
 .scene-footer{bottom:3px;right:5px}
 .floating-note,.focus-mode .floating-note{bottom:13px;left:10px;right:113px;transform:none;text-align:center;font-size:9px;padding:5px;max-width:none}
 .craft-dialog{max-height:calc(100vw - 18px);overflow-y:auto}
 .craft-modal{padding:7px}
 .welcome-modal,.help-modal{max-height:calc(100vw - 14px);padding:15px 21px}

 .shell,.service-layout .shell{max-width:none;max-height:calc(100vw - 50px)}
 .canvas-frame,.service-layout .canvas-frame{min-height:0;height:calc(100vw - 58px)}
 .focus-mode .canvas-frame{min-height:0;height:calc(100vw - 55px)}
 .modal-overlay{position:absolute;width:100%;height:100%;min-height:0;inset:0}
 .craft-modal{padding:7px}
 .welcome-modal,.help-modal{max-height:calc(100vw - 12px);overflow-y:auto}
 .panel,.service-layout .panel{min-height:0}
 .scene-service-hud{top:33px}
 .scene-guest{touch-action:manipulation}
}


/* v3.0 — direct-manipulation furniture editor */
.design-owned{gap:8px}
.decor-draggable{touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;position:relative;min-height:54px;text-align:left}
.decor-draggable:active{cursor:grabbing}
.decor-draggable small{font-size:10px;line-height:1.4}
.decor-drag-ghost{position:fixed;z-index:100000;transform:translate(-50%,-65%);width:50px;height:50px;display:grid;place-items:center;font-size:32px;border:2px solid #8abb9c;background:#fff9eced;border-radius:15px;box-shadow:0 10px 25px #3335;pointer-events:none;touch-action:none}
.decor-drag-ghost.invalid{border-color:#ce8b81;opacity:.6}
.decor-selected-row{outline:2px solid #7ead8e;background:#f0f7eb;border-radius:12px}
.decor-shortcuts{margin-top:9px;background:#fffdfa;border:1px solid #eee0d0;padding:7px 10px;border-radius:10px}
.decor-shortcuts summary{font-size:12px;font-weight:750;cursor:pointer;color:#698b71;padding:4px 0}
.decor-shortcuts .place-choices{margin-top:7px}
.decor-shortcuts .place-choices .current{background:#ddf3e4;border-color:#78a48a}
.decor-inline-actions{display:flex;justify-content:flex-end;margin-top:7px}
.decor-inline-actions button{padding:6px 10px;font-size:11px;color:#7b736d;background:#f6eee7;border-radius:9px}
.decor-target{position:absolute;transform:translate(-50%,-50%);width:42px;height:42px;border:2px dashed #5f9d79;background:#f2ffedc9;border-radius:50%;display:grid;place-items:center;font-size:22px;font-weight:800;color:#518e6e;z-index:1;touch-action:none;cursor:pointer;box-shadow:0 0 0 3px #fff9}
.decor-target.blocked{display:none!important}
.decor-target:active{transform:translate(-50%,-50%) scale(.9)}
.decor-wall-target{position:absolute;transform:translate(-50%,-50%);width:28px;height:28px;border:1px dashed #67a47f;background:#e9f6e5b7;border-radius:9px;color:#59916f;display:grid;place-items:center;font-size:15px;pointer-events:none}
.scene-furniture.furniture-selected{outline:2px dashed #529b79;outline-offset:3px;border-radius:9px}
.scene-furniture.mounted-wall,.scene-furniture.mounted-table,.scene-furniture.floor-item{cursor:grab}
.scene-furniture.dragging{cursor:grabbing!important}
@media(max-width:850px){.decor-target{width:35px;height:35px;font-size:19px}.decor-wall-target{width:22px;height:22px;font-size:12px}}

/* v3.1 — stable HUD metrics across status-bar/fullscreen viewport changes */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.topstats,.topstats .stat,.topstats .stat b{font-synthesis:none}
.topstats .stat b{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
#fullscreenBtn[hidden]{display:none!important}
@media(max-width:960px) and (orientation:landscape){
  .topbar{height:50px;min-height:50px;flex-wrap:nowrap;row-gap:0;padding:0 max(9px,env(safe-area-inset-left,0px)) 0 max(9px,env(safe-area-inset-right,0px))}
  .topstats{order:initial;width:auto;flex:0 1 auto;min-width:0;gap:4px;margin-top:0}
  .topstats .stat{flex:0 0 auto;justify-content:center;padding:5px 6px;font-size:11px;line-height:1.25}
  .topstats .stat b{font-size:12px;line-height:1.25;font-weight:750}
  .top-actions{margin-left:0}
  .brand{flex:0 1 auto;min-width:0}
  .topbar .mark{flex-shrink:0}
  .panel{padding-bottom:max(12px,env(safe-area-inset-bottom,0px))}
}
@media(orientation:portrait) and (max-width:1100px){
  .topbar{height:50px;min-height:50px;flex-wrap:nowrap;row-gap:0;padding:0 9px}
  .topstats{order:initial;width:auto;flex:0 1 auto;min-width:0;gap:4px;margin-top:0}
  .topstats .stat{flex:0 0 auto;justify-content:center;padding:5px 6px;font-size:11px;line-height:1.25}
  .topstats .stat b{font-size:12px;line-height:1.25;font-weight:750}
  .top-actions{margin-left:0}
  .brand{flex:0 1 auto;min-width:0}
}

/* v3.2: decoration pointer hit areas should match the visible marker,
   not cover neighboring empty tiles on compact Galaxy landscape screens. */
.scene-furniture{width:40px;height:40px;border-radius:12px;font-size:24px}
@media(max-width:850px){.scene-furniture{width:36px;height:36px;font-size:22px;border-radius:11px}}

/* v3.4: 단체 손님 입구 대기 / 여러 테이블로 안내 */
.waiting-area{border:1px solid #dfca9e;border-radius:15px;background:#fff7e6;padding:12px;margin:12px 0;display:flex;flex-direction:column;gap:9px;color:#6f5742}
.waiting-area>b{font-size:13px}.waiting-area>small{font-size:10px;color:#927b60;line-height:1.4}
.waiting-party{border-top:1px dashed #dfd0b9;padding-top:9px;display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.waiting-party strong{font-size:12px;display:block}.waiting-party small{display:block;font-size:10px;line-height:1.5;color:#9b8067}
.waiting-actions{display:flex;gap:5px;flex-wrap:wrap}.waiting-actions button{font-size:10px;padding:9px 8px;color:#52755c;background:#e7f2e4;border-radius:9px;font-weight:800}.waiting-actions button:last-child{background:#f1eee5;color:#78654e}
.scene-waiting-badge{position:absolute;z-index:13;top:78px;left:12px;max-width:46%;background:#fff5dccf;color:#6c5037;padding:9px 12px;border-radius:12px;border:1px solid #eed1a6;box-shadow:0 4px 15px #44332224;font-size:11px;font-weight:800;line-height:1.45;text-align:left}
.scene-footer button#tableShortcutBtn{background:#e9f2e2;color:#52775d;font-weight:800}
@media(max-width:920px){.scene-waiting-badge{top:54px;left:6px;max-width:40%;padding:5px 7px;font-size:9px}.waiting-party{align-items:flex-start;flex-direction:column}.waiting-actions button{font-size:11px}}

/* v3.5: seating choices are real table reservations, not aesthetic buttons. */
.waiting-head{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:space-between}
.waiting-head b{font-size:13px}.waiting-head>small{flex-basis:100%;line-height:1.45}
.waiting-party.active{background:#f4f8f0;margin:0 -5px;padding:10px 5px;border-radius:10px}
.waiting-party-main{flex:1;min-width:140px}
.waiting-actions{align-items:center}
.waiting-actions button[data-seat-recommend]{background:#e1eee3;color:#386e50}
.seating-picker{display:flex;flex-direction:column;gap:7px;padding:10px;background:#fffdfa;border:1px solid #e2e9dc;border-radius:13px;margin-top:-2px}
.seating-picker>b{font-size:11px}.seat-table-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.seat-table-choice{background:#f0eae1;border:1px solid #dfcfb9;color:#685744;border-radius:8px;padding:7px 3px;font-size:10px;min-width:0}
.seat-table-choice.selected{border-color:#468869;background:#cee9d7;color:#235b40;font-weight:900}
.seat-table-choice.busy{background:#eee;color:#999}
.seating-assessment{font-size:10px;color:#836b54;line-height:1.45}.seating-assessment.valid{color:#3f7a53}.seating-assessment.invalid{color:#b16b60}
.confirm-seat,.seat-auto-btn{padding:9px 12px;border-radius:9px;background:#5e916e;color:white;font-size:11px;font-weight:800}
.seat-auto-btn{background:#e9f0dd;color:#5a7256}
.scene-seat-targets{position:absolute;inset:0;pointer-events:none;z-index:10}
.seat-map-target{pointer-events:auto;position:absolute;transform:translate(-50%,-50%);z-index:12;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:33px;min-height:33px;padding:4px;border-radius:9px;background:#fffaf4ef;border:2px solid #8eb39b;color:#47735a;box-shadow:0 3px 9px #544b4150;font-size:12px;font-weight:900}
.seat-map-target small{font-size:8px}.seat-map-target.selected{background:#67a47e;color:white;border-color:#fff}
.seat-map-target:disabled{opacity:.30;filter:grayscale(1);pointer-events:none}
@media(max-width:920px){.seat-table-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.seat-table-choice{padding:6px 2px;font-size:9px}.seat-map-target{min-width:27px;min-height:27px;padding:3px;font-size:10px}.seat-map-target small{font-size:7px}.waiting-area{gap:6px;padding:8px}.seating-picker{padding:8px}}

.seat-overview{background:#f7f5ed;border:1px solid #e9dfcd;border-radius:12px;padding:8px 10px;margin:8px 0;color:#72634e}
.seat-overview summary{cursor:pointer;font-size:11px;font-weight:800}.seat-overview summary small{color:#998a79;font-size:9px}
.seat-overview-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:8px 0}
.seat-overview-grid span{font-size:9px;padding:7px 4px;border-radius:7px;text-align:center}
.seat-overview-grid .busy{background:#ece5dc;color:#978c83}.seat-overview-grid .free{background:#dcebdd;color:#3e7350}
.seat-overview>small{font-size:10px;color:#867c70}

/* v3.6: stable tab placement in every phase. The nav is FIRST in the panel. */
.panel{min-width:0}
.panel>.tabs{position:sticky!important;top:0!important;z-index:36!important;margin:0 0 10px!important;background:#f5f1ebfa!important;box-shadow:0 2px 7px #58473716;scrollbar-width:none}
.panel>.tabs::-webkit-scrollbar{display:none}
.panel>.tabs .tab.active{background:#e0eee2;color:#356d4b}
.staff-skill-details{margin:9px 0 10px;border:1px solid #dce6d9;background:#f7fbf5;border-radius:12px;padding:9px 10px}
.staff-skill-details>summary{font-size:12px;font-weight:850;color:#456b51;cursor:pointer;line-height:1.5}
.staff-skill-details.no-staff>summary{color:#918377}
.staff-skill-list{padding-top:8px;display:flex;flex-direction:column;gap:7px}
.staff-skill-list>p{font-size:11px;color:#847c70;margin:0;line-height:1.6}
.staff-quick-row{display:flex;align-items:center;gap:7px;background:white;border:1px solid #e8e6db;border-radius:9px;padding:8px}
.staff-quick-row>div:first-child{min-width:0;flex:1}
.staff-quick-row b{font-size:11px}
.staff-quick-row small{display:block;font-size:10px;color:#8b8379;margin-top:3px;line-height:1.4}
.staff-quick-stats{display:flex;align-items:center;flex-wrap:wrap;gap:5px}
.staff-quick-stats span{font-size:10px;color:#6b806e;background:#eff6ed;border-radius:7px;padding:5px}
.staff-quick-row>button{background:#edf2e9;color:#54785a;font-weight:800;border-radius:7px;padding:7px 9px;font-size:10px;flex-shrink:0}
.staff-skill-metrics{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 8px}
.staff-skill-metrics span{border:1px solid #e5e8dc;background:#f5f9f1;border-radius:8px;padding:6px 9px;font-size:11px;color:#677969}
.staff-skill-metrics b{color:#3b6d4d}
.staff-xp{display:flex;align-items:center;gap:9px;margin-top:6px}
.staff-xp>small{font-size:10px;color:#8d8175;min-width:125px}
.staff-xp-track{height:7px;border-radius:20px;background:#ece8e0;overflow:hidden;min-width:80px;flex:1}
.staff-xp-track i{height:100%;display:block;background:#8db69c;border-radius:20px}
.worker-choice{display:block;font-size:10px;color:#617c69;font-weight:800;margin:6px 0}
.worker-choice select{font-size:11px;font-weight:650;display:block;width:100%;max-width:100%;margin-top:4px;border:1px solid #bad1b7;background:#fffdf7;color:#425448;border-radius:8px;padding:7px;overflow:hidden;text-overflow:ellipsis}
.scene-order-action .worker-choice{flex:0 0 100%;margin:0}
.scene-order-action .worker-choice select{max-width:100%;padding:5px;font-size:10px}
@media(max-width:900px){.staff-quick-row{flex-wrap:wrap}.staff-quick-stats{flex:1;justify-content:flex-start}.staff-quick-row>button{margin-left:auto}.staff-skill-metrics span{font-size:10px;padding:5px}.panel>.tabs{margin-bottom:8px!important}}

/* v3.6 focus-mode employee skill overlay */
.staff-hud-popup{position:absolute;top:78px;right:9px;z-index:19;width:min(350px,calc(100% - 18px));max-height:65%;overflow:auto;padding:11px;background:#fffdf6f5;border:1px solid #c9dfcd;border-radius:15px;box-shadow:0 12px 36px #342b2d54;backdrop-filter:blur(8px)}
.staff-hud-title{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:6px;border-bottom:1px solid #e6e7da}
.staff-hud-title strong{font-size:13px;color:#42694a}
.staff-hud-title button{font-size:19px;font-weight:bold;background:#edf1e9;border-radius:8px;width:27px;height:27px;color:#677d6d}
.staff-hud-line{display:flex;align-items:center;gap:6px;justify-content:space-between;padding:8px 0;border-bottom:1px dashed #e9e5d9}
.staff-hud-line>div{min-width:0}
.staff-hud-line b{font-size:12px}
.staff-hud-line small{display:block;font-size:10px;line-height:1.4;color:#897f70;margin-top:2px}
.staff-hud-line button{background:#e4eee0;border-radius:8px;padding:7px;font-size:10px;color:#54755b;flex-shrink:0}
.staff-hud-empty{font-size:11px;color:#978878;padding:13px 5px}
.staff-hud-popup>small{display:block;font-size:9px;line-height:1.5;color:#9a8e7e;margin-top:7px}
@media(max-width:900px){.staff-hud-popup{top:63px;right:6px;width:min(310px,60%);max-height:68%;padding:8px;border-radius:11px}.staff-hud-line{padding:5px 0}.staff-hud-line b{font-size:11px}.staff-hud-line small{font-size:9px}}
/* Keep the worker picker on its own row: no squeezed vertical text in landscape. */
.scene-order-action{flex-wrap:wrap;max-height:60%;overflow-y:auto}
.scene-order-action .scene-action-info{min-width:130px;flex:1 1 150px}
.scene-order-action .scene-action-buttons{flex:0 0 auto}
.scene-order-action .worker-choice{order:3;flex:1 1 100%;width:100%;min-width:0;margin:3px 0 0}
.scene-order-action .worker-choice select{width:100%;min-width:0}
@media(max-width:900px){.scene-order-action .scene-action-info{min-width:125px;flex-basis:130px}.scene-order-action .scene-action-buttons{flex:0 1 200px}}

/* v4.1: cafe table ownership and snapping editor */
.table-purchase-bar{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 5px}
.table-purchase-bar button{background:linear-gradient(135deg,#e2efdf,#fff9ea);border:1px solid #b3cbb5;border-radius:12px;padding:10px 13px;color:#486958;font-weight:800;cursor:pointer;flex:1 1 185px;min-width:0;font-size:12px}
.table-purchase-bar button:disabled,.table-slot-grid button:disabled{opacity:.45;cursor:not-allowed}
.table-purchase-hint{display:block;font-size:11px;color:#8f8176;line-height:1.45;margin:6px 0 12px}
.table-slot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:12px 0}
.table-slot-grid button{padding:9px 6px;border-radius:10px;background:#fff;border:1px solid #c4d5c4;color:#647767;font-size:11px;line-height:1.2;white-space:normal}
.table-slot-grid button.current{border-color:#5ea47c;background:#dff3e3;color:#256745;font-weight:900}
.table-selected-row{border:2px solid #8fc2a5;box-shadow:0 2px 10px #accbad29}
.scene-table-handle{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;width:38px;height:38px;padding:2px;border:2px solid #e5d6a5;border-radius:50%;background:#fffbeadd;color:#825f3b;box-shadow:0 3px 12px #55463365;z-index:3;cursor:grab;touch-action:none;user-select:none;font-size:15px;line-height:1}
.scene-table-handle small{display:block;font-size:9px;font-weight:850;line-height:1.2}
.scene-table-handle.selected{border-color:#60a982;background:#dbefdf}
.scene-table-handle.dragging{border-color:#428e71;background:#b2dfb9;cursor:grabbing}
.scene-table-handle.invalid{border-color:#d07d76;background:#f6d9d4}
@media(max-width:850px){.scene-table-handle{width:32px;height:32px;font-size:12px}.scene-table-handle small{font-size:8px}.table-purchase-bar button{font-size:11px;padding:9px 7px}.table-slot-grid button{font-size:10px}}

/* v4.2 — Mobile-first, high-contrast occupied / available tables. Purely visual. */
.scene-table-status-layer{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden}
.scene-table-status{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:60px;max-width:92px;padding:4px 7px 5px;border-radius:10px;font-size:12px;font-weight:900;line-height:1.12;white-space:nowrap;box-shadow:0 2px 9px #43372a51,0 0 0 1px #ffffff95;text-shadow:none;user-select:none;pointer-events:none}
.scene-table-status .status-main{display:block;white-space:nowrap}
.scene-table-status small{display:block;font-size:9px;font-weight:800;line-height:1.12;opacity:.91}
.scene-table-status.free{color:#13593a;background:#e8fff1f5;border:2px solid #369468}
.scene-table-status.free .status-dot{color:#198858}
.scene-table-status.busy{color:#8c2d35;background:#fff0f0f7;border:2px solid #dc737e}
.scene-table-status.busy .status-dot{color:#d04457}
.scene-table-status .status-dot{font-size:8px;vertical-align:middle}
/* Keep very small phone landscape labels readable without covering adjacent chairs. */
@media(max-width:920px){.scene-table-status{min-width:49px;max-width:74px;padding:3px 4px;font-size:10px;border-width:2px;border-radius:8px}.scene-table-status small{font-size:8px}}
@media(max-height:405px) and (orientation:landscape){.scene-table-status{min-width:47px;max-width:69px;padding:3px;font-size:10px}.scene-table-status small{font-size:8px}}

/* Dense arrangements: one line per tabletop so 2/4/8 nearby tables do not overlap. */
@media(max-width:920px), (max-height:440px){.scene-table-status{min-width:0;max-width:none;padding:2px 4px;font-size:9px;line-height:1.12;border-radius:6px;box-shadow:0 1px 4px #43372a50}.scene-table-status small{display:none}.scene-table-status .status-dot{font-size:7px}}

/* With 4+ separate tabletops, keep each live occupancy label one line. */
.scene-table-status.compact{min-width:0;max-width:none;padding:2px 5px;font-size:11px;line-height:1.1}
.scene-table-status.compact small{display:none}
@media(max-width:920px), (max-height:440px){.scene-table-status.compact{padding:1px 4px;font-size:9px;line-height:1;border-width:1px;border-radius:5px}}


/* v4.3 — free, account-persistent owner character appearance. */
.scene-footer #avatarShortcutBtn{background:#fff0e2e8;border:1px solid #eac8ae;color:#866248;font-weight:850}
.avatar-editor{scroll-margin-top:95px;border:1px solid #e1d4c9;background:linear-gradient(125deg,#fdf4ec,#f0f6ed);border-radius:17px;margin:12px 0;padding:0 13px;overflow:hidden}
.avatar-editor>summary{list-style:none;cursor:pointer;padding:13px 4px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;color:#664f41}
.avatar-editor>summary::-webkit-details-marker{display:none}
.avatar-editor>summary span{font-size:14px;font-weight:900}
.avatar-editor>summary small{font-size:10px;color:#9c8271;line-height:1.4}
.avatar-editor[open]>summary{border-bottom:1px solid #e7d8cc}
.avatar-editor-body{padding:10px 0 14px}
.avatar-preview{display:flex;align-items:center;gap:14px;background:#fffdf8e3;border:1px solid #e9e1d9;border-radius:13px;padding:9px;margin-bottom:12px}
.avatar-preview-art{width:124px;min-width:124px;border-radius:12px;background:radial-gradient(circle at 40% 30%,#f8e9e2,#dceadc);padding:3px;display:grid;place-items:center}
.avatar-portrait-svg{display:block;width:100%;height:auto;max-height:166px;object-fit:contain}
.avatar-preview b{display:block;font-size:13px;color:#4d5a4a}
.avatar-preview p{margin:5px 0;color:#817368;font-size:11px;line-height:1.5}
.avatar-preview small{display:block;font-size:10px;color:#76977b;line-height:1.5}
.avatar-choice-section{margin-top:11px}
.avatar-choice-section>strong{display:block;font-size:11px;color:#78695e;margin-bottom:6px}
.avatar-choice-row{display:flex;flex-wrap:wrap;gap:5px}
.avatar-choice{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;flex:1 1 72px;border:1.5px solid #e3d8cf;background:#fffdf8;padding:8px 6px;border-radius:9px;color:#75665c;font-size:11px;font-weight:750;white-space:normal;line-height:1.3}
.avatar-choice.selected{border-color:#65a486;background:#e4f2e7;color:#356e52;box-shadow:inset 0 0 0 1px #90bda0}
.avatar-choice .avatar-color-dot{display:inline-block;flex:0 0 15px;width:15px;height:15px;border:1px solid #5555;border-radius:100%}
.avatar-help{font-size:10px;line-height:1.6;color:#958778;margin:12px 0 0}
@media(max-width:920px){.scene-footer #avatarShortcutBtn{padding:7px 8px;font-size:10px}.avatar-editor{padding:0 9px}.avatar-editor>summary span{font-size:12px}.avatar-choice{padding:7px 5px;font-size:10px;flex-basis:69px}.avatar-preview{gap:9px}.avatar-preview-art{width:98px;min-width:98px}.avatar-portrait-svg{max-height:137px}}
@media(max-width:550px){.scene-footer #avatarShortcutBtn{font-size:9px;padding:6px}.avatar-preview-art{width:87px;min-width:87px}}

/* v4.4 full-body owner: the face, apron and feet stay visible together in editor. */
.avatar-preview-art{overflow:visible;box-shadow:inset 0 1px 0 #ffffffaa}

/* v4.6: 영업 중에는 장식용 이동 방향키를 숨기고 업무 UI를 확보해요. */
.service-layout .roam-controls{display:none!important}
/* 좁은 벽면 슬롯 8개가 모바일 가로 화면에서도 두 줄로 깔끔하게 표시됩니다. */
.table-slot-grid{grid-template-columns:repeat(4,minmax(0,1fr))}

/* v4.7 — 공간을 가리지 않는 알림. 알림 메시지는 삭제하지 않고 순서대로 표시 */
.rep-alerts{
 width:min(244px,calc(100vw - 20px));max-width:244px;
 right:10px;top:62px;gap:4px;z-index:70;align-items:flex-end;
}
.rep-alert{
 display:flex;flex-direction:column;align-items:flex-start;
 width:fit-content;max-width:100%;min-width:0;
 padding:7px 9px 7px 10px;border-radius:10px;
 border-left-width:3px;box-shadow:0 5px 16px #4d423124;
 overflow-wrap:anywhere;
}
.rep-alert strong{font-size:11.5px;line-height:1.25;letter-spacing:-.15px}
.rep-alert small{font-size:10px;line-height:1.35;margin-top:3px}
.toast{width:fit-content;max-width:min(310px,calc(100vw - 24px));padding:7px 11px;border-radius:11px;font-size:11px;line-height:1.35;z-index:110}
/* 실수로 미니게임이 떠 있는 동안 기존 알림이 그 위에 오지 않도록 추가 안전장치 */
#app:has(#craftModal:not(.hidden)) .rep-alerts{visibility:hidden!important}
.craft-inline-notice{
 margin:0 0 7px;padding:6px 10px;border-radius:9px;
 font-size:11px;line-height:1.4;color:#75512c;
 background:#fff1d8;border:1px solid #efd8ad;
}
@media (orientation:landscape) and (max-height:530px){
 .rep-alerts{top:44px;right:6px;width:min(202px,34vw)}
 .rep-alert{padding:5px 8px;border-radius:9px}
 .rep-alert strong{font-size:10.5px}
 .rep-alert small{font-size:9.5px;line-height:1.25;margin-top:2px}
 .toast{padding:5px 9px;font-size:10px}
}
@media (orientation:portrait) and (max-width:1100px){
 /* 화면을 90도 돌려 쓰는 PWA: 회전 전의 가로폭 대신 실제 게임 너비(vh) 기준 */
 .rep-alerts{top:44px;right:6px;width:min(202px,34dvh)}
 .rep-alert{padding:5px 8px;border-radius:9px}
 .rep-alert strong{font-size:10.5px}
 .rep-alert small{font-size:9.5px;line-height:1.25;margin-top:2px}
 .toast{max-width:min(310px,75dvh)}
}

#app:has(#craftModal:not(.hidden)) > .toast{display:none!important}


/* v4.8 — fatigue and manual employee selection */
.staff-energy-track{width:100%;height:6px;min-height:6px;border-radius:8px;background:#eee9dd;overflow:hidden;margin:4px 0 2px}
.staff-energy-track i{display:block;height:100%;border-radius:8px;transition:width .2s}
.worker-choice{background:#f4f8f1;border:1px solid #b8d3ba;padding:7px 9px;border-radius:10px}
.worker-choice strong{display:block;font-size:11px;color:#406f53;margin-bottom:3px}
.worker-choice small{display:block;margin-top:4px;font-weight:500;color:#647666;font-size:10px;line-height:1.35}
.worker-choice select{background:#fff!important;border:1px solid #b0cbb2!important;min-height:32px}
.worker-choice-note{font-size:11px;padding:7px;border-radius:8px;background:#fbf2e8;color:#a36b48}
.scene-order-action .worker-choice{padding:5px 8px}
.scene-order-action .worker-choice select{height:30px;min-height:30px}
.scene-order-action .worker-choice strong{font-size:10px}
.scene-order-action .worker-choice small{font-size:9px}
@media(max-width:900px){.scene-order-action .worker-choice{order:0;flex:1 1 100%;}.scene-order-action .scene-action-info{flex-basis:155px}.staff-hud-popup{width:min(320px,72%)}}

/* v4.9 compact order choice and persistent nonmodal quality result */
.scene-quality-score{position:absolute;z-index:19;left:9px;bottom:66px;max-width:min(295px,45vw);padding:6px 9px;border:1px solid #b8d6be;border-radius:10px;background:rgba(250,255,247,.93);color:#446d50;box-shadow:0 2px 8px #2e50351a;font-weight:800;font-size:10px;line-height:1.38;pointer-events:none}
.service-quality-score{margin:6px 0;padding:7px 10px;border-radius:9px;background:#eef7ee;color:#4c7052;font-size:11px;font-weight:800}
.scene-action-info{flex:1 1 150px}.action-choice-stack{display:flex;flex-direction:column;gap:4px;min-width:0;max-width:min(51vw,340px)}
.scene-action-buttons{flex-wrap:nowrap;justify-content:flex-end;max-width:none}
.scene-action-buttons button{white-space:nowrap}
.scene-action-buttons .staff-mode-on{background:#d2e8dd;color:#356b4f}
.order-staff-expand{display:flex;flex-direction:column;gap:5px;border-radius:10px;background:#f1f8ee;padding:5px 7px}
.order-staff-expand .compact-worker-choice{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin:0;padding:0;background:transparent}
.compact-worker-choice span{font-weight:750;font-size:10px}
.compact-worker-choice select{flex:1;max-width:210px;min-width:115px;padding:5px 7px;font-size:11px}
.compact-worker-choice small{flex-basis:100%;line-height:1.25;font-size:10px}
.order-staff-expand button,.staff-order-submit{background:#a9d6b3!important;color:#335f3c!important;padding:6px 9px!important;border-radius:8px;font-size:11px;font-weight:800}
@media(max-width:900px){.scene-quality-score{font-size:9px;max-width:34vw;bottom:52px}.action-choice-stack{max-width:52vw}.scene-action-buttons button{padding:6px 5px;font-size:10px}.compact-worker-choice select{max-width:165px}.order-staff-expand{max-height:95px;overflow:auto}}
/* v4.9: override earlier employee-picker flex rule that stretched the order window to 200px. */
.scene-order-action{width:min(415px,calc(100% - 16px));padding:7px 8px;align-items:flex-start;justify-content:flex-start;gap:5px;max-height:54%;overflow-y:auto}
.scene-order-action .scene-action-info{min-width:120px;flex:1 1 120px}
.scene-order-action .action-choice-stack{flex:1 1 244px;max-width:270px;min-width:225px;gap:4px}
.scene-order-action .order-staff-expand{padding:5px 6px;gap:3px;max-height:none;overflow:visible}
.scene-order-action .order-staff-expand .worker-choice{flex:0 0 auto!important;order:0!important;width:100%!important;min-width:0!important;max-height:none!important;padding:0!important;margin:0!important}
.scene-order-action .order-staff-expand .worker-choice select{height:27px;min-height:27px;max-width:100%;margin:2px 0 0;font-size:10px}
.scene-order-action .order-staff-expand .worker-choice small{margin:1px 0 0;font-size:9px}
.scene-order-action .scene-action-buttons{flex:0 0 auto;max-width:100%;gap:3px}
@media(max-width:900px){.scene-order-action .scene-action-info{min-width:118px;flex:1 1 118px}.scene-order-action .action-choice-stack{min-width:225px;max-width:min(260px,57vw)}}

/* v4.9.3: compact visible combo sale toggles in prep, usable in landscape */
.combo-pick-help{font-size:10px;color:#806d64;line-height:1.5;margin:7px 0 8px}
.combo-picks{display:flex;flex-direction:column;gap:6px;margin:8px 0}
.combo-pick{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;text-align:left;background:#fffdf7;border:1px solid #dfd9c7;border-radius:11px;padding:9px 10px;color:#6a574c;min-width:0}
.combo-pick.on{background:#eaf5ea;border-color:#9fc4a5}
.combo-pick.off{background:#f7f5f1;color:#91877c}
.combo-pick-copy{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.combo-pick-copy b{font-size:12px}.combo-pick-copy small{font-size:10px;line-height:1.4;white-space:normal}
.combo-pick-state{flex-shrink:0;font-size:10px;font-weight:800;background:#e4e0d9;border-radius:18px;padding:5px 7px;min-width:65px;text-align:center}
.combo-pick.on .combo-pick-state{background:#bce0c5;color:#386b4b}
@media(max-width:790px){.combo-pick{padding:8px}.combo-pick-copy b{font-size:11px}.combo-pick-copy small{font-size:9px}.combo-pick-state{min-width:63px;font-size:9px}}

/* v4.9.4: keep owner portrait and species selection compact in landscape. */
.avatar-editor .avatar-preview-art{overflow:hidden}
.avatar-editor .avatar-choice-section:first-of-type .avatar-choice{flex:1 1 62px}
@media(max-width:850px){.avatar-editor .avatar-choice-row{gap:4px}.avatar-editor .avatar-choice{flex-basis:62px;font-size:9px}}

/* v4.9.6 — six-stage loyalty journey: compact and readable on a landscape phone */
.friend-progress{display:block;margin:7px 0;color:#6d9179;font-size:11px;font-weight:750}
.friend-favor{display:grid;gap:4px;background:#fff8ec;border:1px solid #f0ddbf;padding:10px;border-radius:11px;margin:9px 0;font-size:11px;line-height:1.5}
.friend-favor b{color:#8d694a;font-size:12px}
.friend-favor span{color:#766e62}
.friend-favor small{color:#ab8d72;font-size:10px}
.friend-favor.done{background:#ebf6ec;border-color:#c4e1c9}
.friend-favor.done b{color:#4a8a64}
.friend-item .reward-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.friend-item .reward-steps span{padding:7px 9px;min-width:0}
.friend-item .reward-steps b{display:block;font-size:10px;line-height:1.45}
.friend-item .reward-steps small{display:block;margin-top:3px;font-size:9px;line-height:1.5;font-weight:500}
@media(max-width:600px){.friend-item .reward-steps{grid-template-columns:1fr}}

/* v4.9.8: blocked wall mounting points are clearly unavailable. */
.decor-wall-target.blocked{opacity:.35;border-color:#b9a09a;color:#ab7b73;background:#f3e9e4b3}

/* Current toggle state is always shown separately from the action on tap. */
.scene-service-hud>button.auto-toggle-on,.service-bottom button.auto-toggle-on,.seat-auto-btn.auto-toggle-on{background:#d8eddf!important;border:1px solid #80b394!important;color:#23573c!important;box-shadow:inset 0 0 0 1px #b7dac2!important;}
.scene-service-hud>button.auto-toggle-off,.service-bottom button.auto-toggle-off,.seat-auto-btn.auto-toggle-off{background:#f5f1ec!important;border:1px solid #d3c9c1!important;color:#736d69!important;box-shadow:none!important;}
.scene-service-hud>button:is(.auto-toggle-on,.auto-toggle-off),.service-bottom button:is(.auto-toggle-on,.auto-toggle-off),.seat-auto-btn:is(.auto-toggle-on,.auto-toggle-off){font-weight:850;}

/* Staff assignment: one immediately visible, tappable row per available worker. */
.worker-choice.compact-worker-choice{display:block;min-width:0;width:100%;margin:0;padding:5px;border:1px solid #cbdcc9;border-radius:10px;background:#f3f8f0}
.staff-choice-heading{font-weight:800;font-size:10px;color:#4f6f56;margin:0 0 4px 2px}
.staff-choice-list{display:flex;flex-direction:column;gap:3px;max-height:min(226px,47vh);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.staff-choice-row,.order-staff-expand .staff-choice-row{display:flex;align-items:center;gap:6px;width:100%;min-width:0;min-height:36px;text-align:left;padding:5px 7px!important;border:1px solid #dae6d6!important;border-radius:8px!important;background:#fffdf9!important;color:#4f6354!important;font-weight:600!important;font-size:11px!important;cursor:pointer}
.staff-choice-row:hover,.order-staff-expand .staff-choice-row:hover{background:#f5fbf2!important}
.staff-choice-row.selected,.order-staff-expand .staff-choice-row.selected{border-color:#69a780!important;background:#d9eee0!important;color:#24593d!important}
.staff-choice-row:focus-visible{outline:2px solid #438b61;outline-offset:1px}
.staff-choice-indicator{flex:0 0 14px;font-size:14px;line-height:1;color:#92aaa0}
.staff-choice-row.selected .staff-choice-indicator{color:#39895c}
.staff-choice-person{flex:1 1 45%;min-width:0;display:flex;flex-direction:column;gap:1px}
.staff-choice-person strong{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:11px;color:inherit;overflow:hidden;text-overflow:ellipsis}
.staff-choice-person strong small{font-size:9px;color:#78917b;font-weight:650}
.staff-choice-person>small{font-size:9px;color:#788779;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.staff-choice-stats{flex:0 0 auto;min-width:76px;display:flex;flex-direction:column;align-items:flex-end;gap:1px}
.staff-choice-stats b{font-size:10px;color:#486b52;white-space:nowrap}
.staff-choice-stats small{font-size:9px;color:#728677;white-space:nowrap}
/* The rows remain visible without opening another selector; only 4+ staff require list scrolling. */
.scene-order-action:has(.staff-choice-list){max-height:min(79%,calc(100% - 65px));overflow-y:auto}
.scene-order-action .worker-choice.compact-worker-choice{padding:4px!important}
.scene-order-action .staff-choice-list{max-height:min(226px,47vh)}
.scene-order-action .staff-choice-row{min-height:36px}
@media(max-width:900px){
 .order-staff-expand{max-height:none;overflow:visible}
 .scene-order-action:has(.staff-choice-list){max-height:min(79%,calc(100% - 64px))}
 .scene-order-action .staff-choice-row{padding:4px 5px!important}
 .staff-choice-row{min-height:34px}
 .staff-choice-list{max-height:min(205px,47vh)}
}

/* v4.9.14 — wall art free-position rail (no fixed + buttons). */
.decor-wall-free-guide{position:absolute;transform-origin:left center;height:0;border-top:3px dashed #5c9c76;pointer-events:none;z-index:1;filter:drop-shadow(0 0 3px #fff);opacity:.88;}
.decor-wall-free-guide::before,.decor-wall-free-guide::after{content:"";position:absolute;top:-7px;height:11px;width:3px;border-radius:2px;background:#579f73;}
.decor-wall-free-guide::before{left:0}.decor-wall-free-guide::after{right:0}

/* v4.9.17: prominent, deliberate cup-by-cup and full-order quality results. */
.craft-review-modal{z-index:120;background:#34251ed6;align-items:center;justify-content:center;padding:12px;overflow-y:auto}
.craft-review-card{width:min(450px,96vw);max-height:92vh;overflow-y:auto;border:1px solid #e8d5af;border-radius:22px;background:#fffaf0;box-shadow:0 20px 70px #231a166b;text-align:center;padding:22px 20px;display:flex;flex-direction:column;align-items:center;gap:10px;color:#534232}
.craft-review-kicker{font-size:13px;font-weight:800;color:#a17a50}
.craft-review-card h2{font-size:18px;margin:0}
.craft-review-score{font-size:clamp(32px,5.5vw,48px);font-weight:950;letter-spacing:-2px;color:#5b9873;line-height:1.2}
.craft-review-detail{width:100%;font-size:12px;color:#715b4b;line-height:1.7;padding:11px 12px;border-radius:12px;background:#f7eddf;max-height:170px;overflow-y:auto;text-align:left}
.craft-review-detail>div+div{border-top:1px dashed #e8d9c7;padding-top:5px;margin-top:5px}
.craft-review-card .bigbtn{width:100%;min-height:44px}
.craft-review-card small{font-size:10px;color:#9a8878}
@media(orientation:landscape) and (max-height:530px){.craft-review-card{max-height:96vh;padding:10px 16px;gap:5px}.craft-review-detail{max-height:100px;padding:7px 10px}.craft-review-score{font-size:32px}}

/* v4.9.19 — 종류별 가구 목록 / 드릴다운 / 배치면 안내 */
.design-type-list{display:grid;gap:8px;margin:10px 0 15px}
.design-type-row{display:flex;align-items:center;width:100%;text-align:left;gap:11px;min-height:62px;padding:10px 13px;border:1px solid #ebded1;border-radius:12px;background:#fff;color:var(--ink);font-family:inherit;transition:background .15s ease,border-color .15s ease}
.design-type-row:hover{background:#f9f7f0;border-color:#cdddcf}
.design-type-emoji{font-size:24px;line-height:1.1;width:29px;flex-shrink:0;text-align:center}
.design-type-content{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.design-type-content strong{font-size:13px;font-weight:800;display:block}
.design-type-content strong small{font-size:11px;font-weight:700;color:#8f8275}
.design-type-content>small{font-size:11px;color:#93857b;line-height:1.4}
.design-type-arrow{color:#7b9a82;font-size:25px;font-weight:700;line-height:1}
.design-drill-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:9px;margin:11px 0 7px;padding:0 1px}
.design-drill-head strong{font-size:13px;color:#68574c}
.design-back{border:1px solid #d8e5d5;background:#eaf2e9;color:#527457;border-radius:9px;padding:8px 11px;font-size:11px;font-weight:800}
.design-detail-row{align-items:flex-start;flex-wrap:wrap}
.design-detail-row>span{min-width:0;flex:1 1 150px}
.design-detail-row>span small{white-space:normal;overflow-wrap:anywhere}
.design-detail-row .placed-actions{flex:0 1 auto}
.design-owned .owned-item{display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-width:140px;gap:3px}
.decor-item-head,.decor-card-head{display:flex;align-items:center;gap:8px;min-height:28px;width:100%}
.decor-item-icon{font-size:24px;line-height:1.1}
.decor-surface-tag,.owned-item .decor-surface-tag,.decor-card .decor-surface-tag{display:inline-block;white-space:nowrap;font-size:10px;line-height:1.2;font-weight:700;color:#738f7b;background:#edf5ec;border:1px solid #d6e5d7;border-radius:7px;padding:3px 5px;margin:0}
.decor-owned-title{font-size:12px}
.staff-hiring .staff-hiring-note{font-family:inherit;font-size:11px;font-weight:400;line-height:1.55;letter-spacing:normal;color:#958579}
@media(max-width:790px){.design-detail-row>span{max-width:none}.design-detail-row .placed-actions{flex-wrap:wrap}}

/* v4.9.22: One consistent, clearly labeled pair for staff automation. */
.service-automation-bar{
 position:sticky;top:0;z-index:15;display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
 margin:9px 0;padding:9px;border:1px solid #dbe7d7;
 border-radius:13px;background:#fffdf7f5;box-shadow:0 4px 12px #5b6c4d19;
 backdrop-filter:blur(7px);
}
.service-automation-bar button{
 min-width:0;min-height:43px;padding:10px 6px;
 font-size:11px;font-weight:800;line-height:1.4;
 white-space:normal;overflow-wrap:break-word;
}
.service-automation-bar button.auto-toggle-on,
.scene-service-hud .scene-auto-pair button.auto-toggle-on{
 background:#d8eddf!important;border:1px solid #80b394!important;
 color:#23573c!important;box-shadow:inset 0 0 0 1px #b7dac2!important;
}
.service-automation-bar button.auto-toggle-off,
.scene-service-hud .scene-auto-pair button.auto-toggle-off{
 background:#f5f1ec!important;border:1px solid #d3c9c1!important;
 color:#736d69!important;box-shadow:none!important;
}
.service-automation-bar button:disabled,
.scene-auto-pair button:disabled{opacity:.48!important;cursor:not-allowed;}
.scene-service-hud .scene-auto-pair{display:flex;flex-wrap:nowrap;align-items:stretch;gap:5px;max-width:100%;}
.scene-service-hud .scene-auto-pair>button{
 background:#e9f3e6f2;color:#476c50;border:1px solid #e1e3d5;
 border-radius:10px;padding:6px 8px;font-size:11px;font-weight:800;
 line-height:1.25;white-space:nowrap;cursor:pointer;
 box-shadow:0 3px 14px #3548311e;
}
@media(max-width:900px){
 .scene-service-hud .scene-auto-pair{gap:3px;}
 .scene-service-hud .scene-auto-pair>button{font-size:9px;padding:5px 5px;border-radius:7px;}
 .service-automation-bar{gap:6px;padding:7px;}
 .service-automation-bar button{font-size:10px;min-height:41px;}
}

/* v4.9.24: select independently which unlocked locations trade today. */
.today-branches-panel{margin:16px 0 18px;padding:13px;background:#f9f7ef;border:1px solid #e9dfcf;border-radius:16px}
.today-branches-panel .section-h{margin:0 0 9px}
.today-branch-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:9px}
.today-branch{display:block;width:100%;text-align:left;background:#fff;border:1px solid #d9d5ca;border-radius:12px;padding:12px 11px;color:#685e52;transition:background .13s,border-color .13s}
.today-branch-head{display:flex;justify-content:space-between;gap:6px;align-items:center;font-size:12px}
.today-branch-head strong{font-size:11px;white-space:nowrap}
.today-branch small{display:block;font-size:10px;line-height:1.45;color:#938679;margin-top:5px}
.today-branch.open{background:#e7f3e7;border:2px solid #84af8e;padding:11px 10px}
.today-branch.open .today-branch-head strong{color:#3a8363}
.today-branch.closed{background:#f1f0ec;color:#a39b93}
.today-branch.closed .today-branch-head strong{color:#9b8b7d}
.today-branch-summary{font-size:11px;line-height:1.5;color:#937f6c;margin:9px 1px 0}
.branch-chip.branch-day-closed{background:#f1f0ee;color:#98908b;border-style:dashed}
@media(max-width:480px){.today-branch-choices{grid-template-columns:1fr 1fr}.today-branch-head{flex-wrap:wrap}}
/* v4.9.25: Each branch receives its own daily settlement card. */
.summary-branches>div{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:6px;padding:12px 13px}
.summary-branches>div>strong{font-size:13px}
.summary-branches>div>small{display:block;font-size:11px;line-height:1.65}

/* v4.9.27: choose today's trading status independently of a branch's sales plan */
.today-branch-item{display:flex;flex-direction:column;gap:5px;min-width:0;border:1px solid #eadbd1;background:#fffaf6;border-radius:13px;padding:6px}
.today-branch-item.planning{border:2px solid #a6bfa4;background:#f1f7ee;padding:5px}
.today-branch-item .today-branch{width:100%;flex:1;min-width:0}
.today-branch-edit{width:100%;min-height:34px;border:1px solid #d7c5b9;border-radius:9px;background:#fff9f4;color:#756151;font-size:11px;font-weight:750;cursor:pointer}
.today-branch-edit.selected{background:#dcebdc;border-color:#9eb79a;color:#315c40}
.today-branch-choices{align-items:stretch}
@media(max-width:680px){.today-branch-item{padding:4px}.today-branch-item.planning{padding:3px}.today-branch-edit{font-size:10px;line-height:1.25;padding:6px 2px}}

/* v4.9.30: choose the daily story once, before preparing ingredients. */
#dailyStoryChoiceModal{z-index:225}
.daily-story-dialog{width:min(510px,100%);max-height:min(91dvh,880px);overflow:auto;background:#fffcf7;border:1px solid #fff6ec;border-radius:25px;padding:23px;box-shadow:0 25px 65px #362b2359;color:#65554a}
.daily-story-header h2{font-size:20px;margin:5px 0 6px;color:#5a5145;line-height:1.35}
.daily-story-header p{font-size:12px;line-height:1.65;color:#837468;margin:0 0 13px}
.daily-story-context{background:#f7f3ed;border-radius:15px;padding:12px 13px;margin:12px 0 14px;border:1px solid #f0e7db}
.daily-story-context-title{font-weight:850;font-size:12px;margin-bottom:7px;color:#675849}
.daily-story-coins{font-weight:850;color:#577b61;font-size:15px}
.daily-story-context-label{font-size:11px;font-weight:780;color:#88786b;margin:9px 0 4px}
.daily-story-pills{display:flex;flex-wrap:wrap;gap:5px}
.daily-story-pills span{font-size:11px;border:1px solid #e7dfd6;background:#fff;padding:6px 8px;border-radius:9px}
.daily-story-trends{display:grid;grid-template-columns:1fr}
.daily-story-choice-title{font-size:12px;font-weight:850;margin:12px 0 7px}
.daily-story-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.daily-story-option{background:#fff;border:1.5px solid #e9e0d8;border-radius:12px;padding:11px;text-align:left;color:#736459;min-height:75px}
.daily-story-option.selected{border-color:#74a685;background:#edf7ee}
.daily-story-option b{display:block;font-size:12px;line-height:1.45}
.daily-story-option small{display:block;font-size:11px;line-height:1.5;margin-top:4px;color:#917f73}
.daily-story-lock-notice{font-size:10px;color:#99897a;text-align:center;line-height:1.5;margin:9px 0 0}
.event-confirmed{background:#ffffffb7;border:1px solid #d7e5ce;border-radius:11px;padding:10px;font-size:12px;color:#5f846c}
.event-confirmed strong{font-weight:850}.event-confirmed small{display:block;color:#85796d;font-size:10px;margin-top:3px}
.event-unselected{color:#985e42!important;font-weight:800}
@media(max-width:550px){.daily-story-dialog{padding:16px;border-radius:18px;max-height:93dvh}.daily-story-choices{grid-template-columns:1fr}.daily-story-option{min-height:0;padding:9px}.daily-story-option small{margin-top:2px}}

/* v4.9.31 — iOS Safari: daily-story dialog must fit the ROTATED game viewport.
   In portrait the #app is rotated 90deg and its local height is 100vw,
   NOT 100dvh.  The old 91dvh limit was larger than #app's clipped height;
   iPhone could not scroll to the choice and confirm controls. */
#dailyStoryChoiceModal .daily-story-dialog{
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  touch-action:auto;
}
@media (orientation:portrait) and (max-width:1100px){
  #dailyStoryChoiceModal{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    padding:8px;
    overflow:hidden;
    align-items:center;
    justify-content:center;
  }
  #dailyStoryChoiceModal .daily-story-dialog{
    box-sizing:border-box;
    width:min(510px,100%);
    max-height:calc(100vw - 18px);
    max-height:calc(100% - 2px);
    padding:13px 15px;
    border-radius:17px;
  }
  #dailyStoryChoiceModal .daily-story-context{margin:8px 0 10px;padding:9px 10px}
  #dailyStoryChoiceModal .daily-story-header p{margin-bottom:7px}
  #dailyStoryChoiceModal .daily-story-lock-notice{padding-bottom:2px}
}
@media (orientation:landscape) and (max-height:550px) and (max-width:1100px){
  #dailyStoryChoiceModal{padding:7px}
  #dailyStoryChoiceModal .daily-story-dialog{
    max-height:calc(100dvh - 14px);
    padding:12px 15px;
  }
}

/* v4.9.34 — compact, non-repeating global furniture effect note */
.design-perk-note{font-family:inherit;font-size:11px;font-weight:400;line-height:1.5;color:#8b7d72;margin:4px 0 9px;padding:0 2px;letter-spacing:normal}

/* v4.9.35 — clear mint sofa preview in furniture list, shop and drag controls */
.mint-sofa-icon{display:inline-block;width:1.13em;height:1.13em;vertical-align:-.17em;flex-shrink:0;overflow:visible}
.design-type-emoji .mint-sofa-icon,.decor-item-icon .mint-sofa-icon{width:29px;height:29px;vertical-align:middle}
.decor-drag-ghost .mint-sofa-icon{width:36px;height:36px}
/* The 3D furniture itself is mint; do not overlay a second sofa icon on top of it. */
.scene-furniture .mint-sofa-icon{display:none}

/* v4.9.36: sound control uses a fixed SVG size instead of a font glyph. */
.top-actions #soundBtn{display:inline-flex;align-items:center;justify-content:center}
.top-actions #soundBtn svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
@media(max-width:790px){.top-actions #soundBtn svg{width:17px;height:17px}}


/* v4.9.39 — compact endgame medal collection, touch friendly on rotated iOS screens. */
#medalModal{z-index:215}
#medalBtn{font-size:18px}
#medalModal .medal-modal{width:min(680px,100%);max-height:calc(100dvh - 20px);text-align:left;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:auto;padding:22px 25px}
.medal-intro{font-size:12px!important;color:#8d8074!important;margin:5px 0 14px!important}
.medal-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:12px 0 17px}
.medal-item{min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px;padding:11px 6px;border:2px solid #eae0d5;background:#fffdf8;border-radius:17px;color:#7b6c5c;text-align:center;transition:background .12s,border-color .12s}
.medal-item.selected{border-color:#8fae90;background:#f0f7ed;box-shadow:0 0 0 2px #8fae9023}
.medal-item .medal-picture{display:block;width:min(72px,95%);aspect-ratio:92/106}
.medal-item svg{display:block;width:100%;height:100%}
.medal-ribbon-left{fill:#a9b9ad}.medal-ribbon-right{fill:#758f83}
.medal-outer{fill:#e5ece6;stroke:#9faea4;stroke-width:3}
.medal-inner{fill:#c9d6ce;stroke:#8fa699;stroke-width:2}
.medal-star{fill:#f5fbf5;stroke:#91a89a;stroke-width:1}
.medal-tier-0 .medal-picture{opacity:.30;filter:grayscale(1)}
.medal-tier-1 .medal-ribbon-left{fill:#bc9a83}.medal-tier-1 .medal-ribbon-right{fill:#976e54}
.medal-tier-1 .medal-outer{fill:#ba7d52;stroke:#86563d}.medal-tier-1 .medal-inner{fill:#dca679;stroke:#a66b42}.medal-tier-1 .medal-star{fill:#ffe0b1;stroke:#ab754a}
.medal-tier-2 .medal-ribbon-left{fill:#c6d8e3}.medal-tier-2 .medal-ribbon-right{fill:#91afbe}
.medal-tier-2 .medal-outer{fill:#b5c5d5;stroke:#8199aa}.medal-tier-2 .medal-inner{fill:#ebf2f8;stroke:#b1c2d1}.medal-tier-2 .medal-star{fill:#fff;stroke:#afbbca}
.medal-tier-3 .medal-ribbon-left{fill:#f5ce80}.medal-tier-3 .medal-ribbon-right{fill:#cfa153}
.medal-tier-3 .medal-outer{fill:#e6af43;stroke:#b8842d}.medal-tier-3 .medal-inner{fill:#ffe19b;stroke:#cf9d35}.medal-tier-3 .medal-star{fill:#fff5d0;stroke:#d5a53c}
.medal-game{font-size:11px;font-weight:850;word-break:keep-all;line-height:1.35}
.medal-item strong{font-size:10px;color:#947d6e}
.medal-item small{font-size:11px;font-variant-numeric:tabular-nums;font-weight:800;color:#635f50}
.medal-detail{border:1px solid #e8dfd1;border-radius:18px;background:#fdf8ed;padding:15px 17px;color:#68584d}
.medal-detail-top{display:flex;align-items:center;gap:11px}
.medal-detail-top>span{width:42px;height:42px;border-radius:13px;background:#f6e9da;display:grid;place-items:center;font-size:24px}
.medal-detail h3{font-size:16px;margin:0 0 3px;color:#5e5145}.medal-detail b{font-size:12px}
.medal-detail p{font-size:12px;line-height:1.6;margin:12px 0 9px}
.medal-progress-track{height:9px;border-radius:15px;background:#e8dfd2;overflow:hidden}
.medal-progress-track i{display:block;height:100%;border-radius:15px;background:linear-gradient(90deg,#8eaf99,#d5b66e)}
.medal-count{font-size:12px;font-weight:850;text-align:right;margin:5px 0}
.medal-detail .medal-next-note{font-size:10px;margin:7px 0 0;color:#998674}
#medalModal .medal-footer-note{font-size:10px;line-height:1.6;color:#9e8b7c;margin:10px 0 0}
@media(max-width:790px){#medalBtn{font-size:15px}}
@media(orientation:portrait) and (max-width:1100px){
 #medalModal{position:absolute;inset:0;width:100%;height:100%;padding:8px;overflow:hidden}
 #medalModal .medal-modal{max-height:calc(100% - 2px);padding:12px 15px;border-radius:17px}
 .medal-grid{gap:6px;margin:7px 0 9px}
 .medal-item{padding:6px 3px;border-radius:11px;gap:1px}
 .medal-item .medal-picture{width:min(46px,90%)}
 .medal-game{font-size:10px}.medal-item strong{font-size:9px}.medal-item small{font-size:10px}
 .medal-detail{padding:10px 12px}.medal-intro{margin:2px 0 8px!important}
}
@media(orientation:landscape) and (max-height:530px) and (max-width:1100px){
 #medalModal{padding:7px}
 #medalModal .medal-modal{max-height:calc(100dvh - 14px);padding:12px 15px}
 .medal-grid{gap:6px;margin:7px 0 9px}
 .medal-item{padding:6px 3px}.medal-item .medal-picture{width:min(46px,90%)}
 .medal-game{font-size:10px}.medal-detail{padding:10px 12px}
}
@media(max-width:480px){.medal-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* v4.9.42 — ten medal challenges, grouped into two rows */
.medal-grid{display:flex;flex-direction:column;gap:12px}
.medal-section h3{font-size:13px;color:#705f50;margin:0 0 6px}
.medal-section h3 small{font-size:10px;font-weight:600;color:#a18b78;margin-left:4px}
.medal-section-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.medal-section-grid .medal-item strong{font-size:10px;line-height:1.4;min-height:28px;word-break:keep-all}
@media (max-width:480px){.medal-section-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}.medal-section-grid .medal-item{padding:5px 2px}.medal-section-grid .medal-item strong{font-size:9px}}

/* v4.9.50: 단골별 해금 이야기 수첩 */
.friend-story-collection{margin-top:9px;border:1px solid #e6d8c9;background:#fffaf4;border-radius:12px;overflow:hidden}
.friend-story-collection summary{cursor:pointer;list-style:none;padding:11px 12px;color:#806a59;font-size:12px;font-weight:800;user-select:none}
.friend-story-collection summary::-webkit-details-marker{display:none}
.friend-story-collection summary::after{content:'⌄';float:right}
.friend-story-collection[open] summary::after{content:'⌃'}
.friend-story-collection summary small{font-size:10px;color:#a08b7c;margin-left:4px}
.friend-story-chapters{display:grid;gap:7px;padding:0 10px 11px}
.friend-story-chapter{border:1px solid #eee2d8;border-radius:10px;padding:9px 11px;background:#fff}
.friend-story-chapter strong{font-size:11px;color:#836a61}
.friend-story-chapter p{margin:5px 0 0!important;font-size:11px;line-height:1.55;color:#7b7068}
.friend-story-chapter.locked{background:#f6f2ed;opacity:.8}
.friend-story-chapter.locked p{color:#9b928a}

/* v4.9.54 — one continuous medal grid, without empty slots between categories. */
#medalModal .medal-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;align-items:stretch}
#medalModal .medal-section,#medalModal .medal-section-grid{display:contents}
#medalModal .medal-section>h3{display:none}
@media(max-width:480px){#medalModal .medal-grid{gap:3px}}

/* v4.9.103 — The first 3 five-medal groups (owner, hard, staff) all span the full row. */
/* v4.9.55 — Keep each category heading directly above its own medals, while filling leftover grid cells. */
#medalModal .medal-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px 7px;align-items:stretch}
#medalModal .medal-section{display:flex;flex-direction:column;min-width:0;grid-column:span 1}
#medalModal .medal-section:nth-child(-n+3){grid-column:1 / -1}
#medalModal .medal-section-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;flex:1}
#medalModal .medal-section:nth-child(-n+3) .medal-section-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
#medalModal .medal-section>h3{display:block;margin:0 0 6px;font-size:11px;line-height:1.3;min-height:31px;color:#705f50;word-break:keep-all}
#medalModal .medal-section:nth-child(-n+3)>h3{font-size:13px;min-height:auto}
#medalModal .medal-section>h3 small{display:block;font-size:9px;margin:2px 0 0;color:#a18b78}
#medalModal .medal-section:nth-child(-n+3)>h3 small{display:inline;margin-left:4px}
@media(max-width:480px){#medalModal .medal-grid{gap:9px 3px}#medalModal .medal-section>h3{font-size:9px;min-height:38px}#medalModal .medal-section>h3 small{font-size:8px}}

/* v4.9.56 — selected medal details sit immediately below its five-column row. */
#medalModal .medal-grid > .medal-detail{grid-column:1 / -1;min-width:0;margin:0}

/* v4.9.76 — 지점 빠른 전환과 작은 카페 상태 표시 */
.world-caption{z-index:21}
.world-caption .scene-branch-trigger{pointer-events:auto;cursor:pointer;font:inherit;font-size:12px;font-weight:800;color:#635c50;text-align:left;white-space:nowrap}
.world-caption .scene-branch-trigger:disabled{cursor:default;opacity:1}
.world-caption .scene-branch-trigger:not(:disabled):hover{background:#fff;border-color:#a7c8aa}
.scene-branch-menu{position:absolute;top:58px;left:17px;z-index:25;min-width:170px;max-width:min(90%,250px);padding:5px;border-radius:14px;background:#fffdf9fa;border:1px solid #eadfce;box-shadow:0 9px 24px #433e3540;display:flex;flex-direction:column;gap:3px}
.scene-branch-option{display:flex;align-items:center;justify-content:space-between;gap:7px;width:100%;padding:10px 11px;border-radius:10px;background:transparent;color:#5b5950;font-size:12px;font-weight:750;text-align:left}
.scene-branch-option.selected{background:#deeee2;color:#2b6448}
.scene-branch-option:not(.selected):hover{background:#f6f2e9}
.scene-branch-option small{font-size:9px;font-weight:700;color:#937f6f;white-space:nowrap}
/* 오른쪽 자동화 버튼은 입구 손님 바로 위에 두고 스크롤 중 상단에 고정하지 않아요. */
.service-automation-bar{position:relative;top:auto;z-index:2;margin:12px 0 8px}
/* 손님 동물이 보이도록 테이블 상태 배지를 한 줄로 압축. */
.scene-table-status,.scene-table-status.compact{min-width:0;max-width:none;padding:2px 5px;border-width:1px;border-radius:7px;gap:0;font-size:10px;line-height:1.1;box-shadow:0 1px 5px #43372a36}
.scene-table-status .status-dot{font-size:7px}
.scene-table-status small{display:none}
.scene-diner{font-size:10px;padding:2px 3px;border-radius:9px;box-shadow:0 1px 5px #573c2917;opacity:.82}
@media(max-width:920px), (max-height:440px){
 .world-caption .scene-branch-trigger{font-size:9px;padding:4px 6px}
 .scene-branch-menu{top:33px;left:6px;min-width:145px}
 .scene-branch-option{font-size:11px;padding:8px}
 .scene-table-status,.scene-table-status.compact{font-size:9px;padding:1px 4px;border-width:1px}
}

/* v4.9.83: level-based growth unlocks */
.level-unlock-guide{font-size:11px;color:#876d59;line-height:1.7;border:1px solid #eddfd0;background:#fff8ec;border-radius:12px;padding:10px 12px;margin:0 0 12px}.level-unlock-guide b{color:#61856e}.difficulty-choice:disabled,.price-card:disabled{opacity:.7;background:#f2eee9;color:#9c9189}.difficulty-choice:disabled b,.price-card:disabled b{color:#9f9187}.difficulty-choice:disabled small,.price-card:disabled small{color:#9b7569;font-weight:750}

/* v4.9.98 — daily goal highlight */
.daily-goal-card{background:#fff8e9;border:2px solid #e1b67a;border-radius:13px;padding:10px 12px;margin:7px 0 11px;box-shadow:0 3px 10px #a7793520;color:#5d4934}
.daily-goal-head{display:flex;justify-content:space-between;align-items:center;gap:7px;flex-wrap:wrap}
.daily-goal-head strong{font-size:12px;font-weight:900;color:#866034}
.daily-goal-reward{font-size:11px;font-weight:900;color:#79522f;background:#f4e0b9;border:1px solid #ead0a5;padding:3px 8px;border-radius:99px}
.daily-goal-description{font-size:14px;font-weight:850;line-height:1.45;color:#4d4439;margin-top:4px;word-break:keep-all}
.daily-goal-state{display:block;font-size:10px;color:#8e7451;margin-top:3px;font-weight:700}
.daily-goal-card.achieved{background:#f0f8ee;border-color:#7fac8b}
.daily-goal-card.achieved .daily-goal-reward{background:#e0eee0;color:#3e704d;border-color:#a8c8a8}
.daily-goal-card.failed{background:#fff7f2;border-color:#dcc4a8}
.service-layout #dailyGoalCard{display:none}
.service-goal-card{padding:8px 10px;margin:5px 0 8px}
.service-goal-card .daily-goal-description{font-size:12px}
.service-goal-card .daily-goal-head strong{font-size:11px}
@media(max-width:790px){.daily-goal-card{padding:8px 10px;margin:5px 0 8px}}

/* v4.9.114 — Password visibility only; no thematic restyling. */
.account-modal .password-reveal-field{position:relative;width:100%}
.account-modal .password-reveal-field input{padding-right:90px;min-width:0}
.account-modal .password-reveal-toggle{position:absolute;right:7px;top:50%;transform:translateY(-50%);min-width:72px;min-height:34px;padding:5px 9px;border:1px solid #d8bfa7;border-radius:9px;background:#f8efe4;color:#674c35;font-size:12px;font-weight:750;line-height:1.2;white-space:nowrap;cursor:pointer}
.account-modal .password-reveal-toggle:hover{background:#ead8c2}
.account-modal .password-reveal-toggle:focus-visible{outline:2px solid #657f64;outline-offset:2px}

/* v4.9.114 — Retain the original 106 UI, with the requested cafe overlay placement.
   Restore a wide unobscured cafe scene and keep normal navigation in the right panel. */
/* Branch name and preparation badge are immediately adjacent at top-left. */
.canvas-frame .world-caption{
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 flex-wrap:nowrap!important;gap:6px!important;top:17px!important;left:17px!important;right:auto!important;
 width:max-content!important;max-width:calc(100% - 190px)!important;
}
.canvas-frame .world-caption .capsule{
 flex:0 1 auto!important;white-space:nowrap!important;min-width:0!important;
 max-width:185px!important;overflow:hidden!important;text-overflow:ellipsis!important;
 padding:7px 9px!important;font-size:11px!important;
}
/* Move the compact "영업 전 · 포근한 카페" tag to the top-right. */
.canvas-frame>.closed-sign{
 position:absolute!important;top:17px!important;right:17px!important;left:auto!important;bottom:auto!important;
 z-index:20!important;transform:none!important;padding:7px 9px!important;max-width:175px!important;
 font-size:11px!important;line-height:1.2!important;white-space:nowrap!important;
 background:#fff9e6ec!important;border:1px solid #ddcbb2!important;border-radius:12px!important;
 color:#8b7464!important;box-shadow:0 3px 10px #84654d18!important;
}
/* Owner's shortcut at far left; table and view shortcuts at far right. */
.canvas-frame .scene-footer{justify-content:flex-end!important;gap:8px!important}
.canvas-frame .scene-footer #avatarShortcutBtn{margin-right:auto!important;order:-1!important}
.canvas-frame .scene-footer #tableShortcutBtn{order:1!important}
.canvas-frame .scene-footer #cameraBtn{order:2!important}
/* Small centered welcome note within the lower control row. */
#floatingNote{left:50%!important;right:auto!important;bottom:24px!important;top:auto!important;
 transform:translateX(-50%)!important;max-width:170px!important;font-size:10px!important;
 padding:4px 9px!important;line-height:1.2!important;white-space:nowrap!important;
 overflow:hidden!important;text-overflow:ellipsis!important;pointer-events:none!important;
 opacity:.94!important;box-shadow:0 2px 6px #58392224!important;
}
@media(max-width:1100px){
 .canvas-frame .world-caption{top:7px!important;left:8px!important;gap:4px!important;max-width:calc(100% - 120px)!important}
 .canvas-frame .world-caption .capsule{font-size:9px!important;padding:3px 5px!important;max-width:108px!important}
 .canvas-frame>.closed-sign{top:7px!important;right:8px!important;font-size:9px!important;padding:3px 5px!important;max-width:112px!important}
 .canvas-frame .scene-footer{left:8px!important;right:8px!important;bottom:7px!important;gap:4px!important}
 .canvas-frame .scene-footer button{padding:4px 6px!important;font-size:9px!important}
 #floatingNote{bottom:14px!important;padding:2px 6px!important;font-size:9px!important;max-width:120px!important}
}
@media (orientation:landscape) and (max-height:540px) and (min-width:701px){
 .canvas-frame .scene-footer{left:6px!important;right:6px!important;bottom:5px!important}
 .canvas-frame .scene-footer button{padding:3px 5px!important;font-size:9px!important}
 #floatingNote{bottom:12px!important;left:50%!important;transform:translateX(-50%)!important;
  max-width:110px!important;font-size:8px!important}
}
/* Preparation tagline disappears as usual as soon as the cafe opens. */
.service-layout .canvas-frame>.closed-sign{display:none!important}

/* v4.9.116 — restricted admin test dashboard */
.admin-tools-dialog{width:min(92vw,780px);max-height:87vh;overflow:auto;padding:20px;box-sizing:border-box}
.admin-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.admin-section{border:1px solid #e6ddd4;border-radius:12px;padding:12px;margin:12px 0;background:#fffcf8}
.admin-section h3{margin:0 0 10px;font-size:15px}
.admin-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:8px}
.admin-field{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#62554a}
.admin-field input,.admin-field select{width:100%;box-sizing:border-box;min-height:35px;padding:6px 8px;border:1px solid #cfc3b9;border-radius:7px;background:white;color:#352e2a;font:inherit}
.admin-field button,.admin-actions button{cursor:pointer}
.admin-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px}
.admin-note{font-size:12px;color:#7b6b61}
.admin-medal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:7px}
.admin-medal-option{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:12px}
.admin-medal-option select{min-width:90px;max-width:110px;padding:5px 2px}
.admin-ownership{display:flex;gap:10px;flex-wrap:wrap}
.admin-ownership label{display:inline-flex;align-items:center;gap:4px;font-size:12px}
.admin-tools-dialog .smallbtn{min-height:34px}
@media (max-width:650px){.admin-tools-dialog{width:98vw;max-height:92vh;padding:12px}.admin-section{padding:8px}}

/* v4.9.248 — map-based seating, replaces tiny numbered status bubbles in the 3D cafe. */
.scene-table-status-layer,.scene-seat-targets{display:none!important}
.seat-floorplan{position:relative;isolation:isolate;box-sizing:border-box;width:100%;height:258px;overflow:hidden;border:2px solid #d8c3a8;border-radius:13px;background:repeating-linear-gradient(0deg,#f7f0e3 0,#f7f0e3 23px,#f3e8d8 24px),#f7f0e3;box-shadow:inset 0 0 0 5px #fffaf1}
.seat-plan-windows{position:absolute;z-index:1;left:10%;right:7%;top:1%;display:flex;justify-content:space-between;color:#678fa0;font-size:10px;font-weight:800;pointer-events:none}
.seat-plan-windows span{border:1px solid #b7d6db;background:#deeff0;padding:2px 9px;border-radius:0 0 6px 6px}
.seat-plan-counter{position:absolute;z-index:1;left:13%;width:54%;top:13%;height:13%;box-sizing:border-box;border:2px solid #bb8d68;border-radius:5px;background:#dfc09d;color:#715039;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:900;pointer-events:none}
.seat-plan-side-label{position:absolute;left:1%;top:43%;writing-mode:vertical-rl;transform:rotate(180deg);font-size:9px;color:#a99179;font-weight:800;pointer-events:none}
.seat-plan-wall-label{position:absolute;right:.9%;top:42%;writing-mode:vertical-rl;font-size:9px;color:#907964;font-weight:800;pointer-events:none}
.seat-plan-entrance{position:absolute;bottom:1.5%;left:38%;right:38%;height:8%;box-sizing:border-box;text-align:center;background:#e0efdc;border:1px dashed #7eac8d;border-radius:8px;font-size:11px;font-weight:900;color:#41694c;pointer-events:none}
.seat-plan-table{position:absolute;z-index:2;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:46px;width:16%;max-width:70px;box-sizing:border-box;border:2px solid #73a788;border-radius:9px;color:#2e6347;background:#dcf2e1;box-shadow:0 1px 4px #45352726;font-family:inherit;line-height:1.05;padding:1px 3px;text-align:center}
button.seat-plan-table{cursor:pointer;touch-action:manipulation}
.seat-plan-table strong{font-size:14px;font-weight:900}
.seat-plan-table small{font-size:9px;font-weight:700;opacity:.85}
.seat-plan-table.wall{width:12%;min-width:39px;max-width:46px;border-radius:6px}
.seat-plan-table.long{border-radius:12px}
.seat-plan-table.busy{border-color:#b7a9a0;background:#e7e0d8;color:#958a80;box-shadow:none}
button.seat-plan-table:disabled{opacity:.65;cursor:not-allowed}
.seat-plan-table.selected{background:#4c9674;border-color:#286d4b;color:white;box-shadow:0 0 0 3px #fffbdf,0 2px 7px #376b4d65}
button.seat-plan-table:not(:disabled):focus-visible{outline:3px solid #c1784b;outline-offset:2px}
.seat-plan-legend{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 15px;padding:6px 0 3px;font-size:10px;font-weight:700;color:#6e6255}
.seat-plan-legend span{display:inline-flex;align-items:center;gap:5px}
.seat-legend-dot{width:10px;height:10px;display:inline-block;border-radius:3px;border:1px solid #ffffff88}
.seat-legend-dot.free{background:#76b38d}.seat-legend-dot.busy{background:#afa49a}.seat-legend-dot.selected{background:#337b58}
.seat-overview .seat-floorplan{margin:8px auto 2px}
@media(max-width:920px), (max-height:490px){.seat-floorplan{height:215px}.seat-plan-table{min-width:40px}.seat-plan-table strong{font-size:12px}.seat-plan-table small{font-size:9px}.seat-plan-counter{font-size:9px}.seat-plan-windows{font-size:9px}.seat-plan-entrance{font-size:9px}}

/* v4.9.279 component-theme marketplace and per-branch design */
.theme-decor-panel{padding:14px;margin:12px 0;border:1px solid #c9d5c7;border-radius:15px;background:#fbfcf8;color:#45584b}
.theme-decor-panel h3{margin:0 0 8px;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:16px}
.theme-decor-panel h3 small{font-weight:500;color:#6e8073;font-size:12px}
.theme-decor-panel p{font-size:12px;line-height:1.5;margin:4px 0 10px}
.theme-set-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:10px 0}
.theme-set-buttons button{padding:8px 4px;border-radius:10px;background:#e9f3e6;border:1px solid #c4d5bf;color:#4d6955;font-size:13px}
.theme-set-buttons button small{display:block;font-size:11px;opacity:.8;margin-top:3px}
.theme-set-buttons button:disabled{opacity:.45}
.theme-slot-details{border-top:1px solid #d6e2d4;padding-top:10px;margin-top:5px}
.theme-slot-details summary,.gacha-pieces-group summary{cursor:pointer;font-weight:650;padding:7px 0}
.theme-slot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.theme-slot-grid label{display:flex;flex-direction:column;min-width:0;gap:4px;font-size:12px}
.theme-slot-grid select{width:100%;min-width:0;padding:7px 4px;border:1px solid #cdd9cf;background:white;border-radius:8px;font-size:12px;color:#354b3b}
.theme-slot-footer{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:10px}
.theme-slot-footer small{color:#64756a;font-size:11px}
.gacha-bundle-card{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin:8px 0;padding:12px;border:1px solid #d7d9cd;border-radius:12px;background:#fdfcf6}
.gacha-bundle-card>div:first-child{display:flex;flex-direction:column;gap:5px}
.gacha-bundle-card small{font-size:12px;color:#6b736d}
.gacha-bundle-card b{font-size:13px;color:#4d7253}
.gacha-bundle-actions{display:flex;gap:5px;flex-wrap:wrap}
.gacha-bundle-actions button{padding:6px 9px;border-radius:9px}
.gacha-pieces-group{border:1px solid #d7ddce;padding:6px 10px;margin:8px 0;border-radius:10px;background:#f9fbf7}
@media(max-width:520px){.theme-slot-grid{grid-template-columns:1fr}}

/* v4.9.281: visible discount for only the still-missing bundle components. */
.gacha-bundle-discount{display:inline-flex;align-items:center;align-self:flex-start;width:max-content;padding:3px 9px;border-radius:999px;background:#e9f4e7;color:#427b47;font-size:12px;font-weight:800;}
