*{box-sizing:border-box} :root{font-family:'Microsoft YaHei','PingFang SC',sans-serif;color:#25473c;background:#f5f1e7;font-synthesis:none}body{margin:0;background:radial-gradient(ellipse at 0 0,#e3eadf,transparent 60%),#f5f1e7}button{font:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid #d77935;outline-offset:3px}button:disabled{cursor:default;opacity:.6}.app{max-width:1260px;margin:auto;padding:24px max(22px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left))}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.brand{display:flex;gap:12px;align-items:center}.brandmark{font-size:46px;color:#eaa052;transform:rotate(-30deg)}small{font-size:11px;letter-spacing:1.3px;color:#738074}h1{font-size:26px;letter-spacing:4px;margin:3px 0 0}h2{font-size:17px;margin:0}.header-right{display:flex;gap:9px;align-items:center}.header-right>span{font-size:11px;color:#7a8575;margin-right:14px}.icon{border:1px solid #d6ddcf;background:#fffcf4;border-radius:50%;width:44px;height:44px;color:#335747;font-weight:700}.scoreboard{display:grid;grid-template-columns:1fr 2fr 1.15fr 1.2fr;background:#fffdf7;border:1px solid #e4e5d7;border-radius:18px;padding:18px 22px;gap:25px;margin-bottom:20px;box-shadow:0 5px 0 #e9e8dc}.scoreboard strong{display:block;font-size:28px;margin-top:6px;font-variant-numeric:tabular-nums}.scoreboard em{font-size:14px;font-style:normal;color:#a5ad99}.scoreboard small{letter-spacing:0}.earnings small{display:flex;justify-content:space-between}.track{height:5px;background:#eae9da;border-radius:8px;margin-top:7px;overflow:hidden}.track i{display:block;background:#df9952;height:100%;width:0;transition:width .2s}.scoreboard .hearts{font-size:22px;color:#dc835e;letter-spacing:2px}.layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:22px}.restaurant{overflow:hidden;border:8px solid #fffdf7;border-radius:20px;box-shadow:0 8px 25px #29412d12;background:#d6e2ca}.shopfront{height:108px;background:#c9d6bd;display:flex;align-items:center;justify-content:space-around;position:relative;background-image:linear-gradient(90deg,transparent 98%,#b9c8ad 98%);background-size:54px 100%}.window{width:105px;height:78px;border:6px solid #faf4dc;border-radius:50px 50px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:4px;background:#faf4dc;overflow:hidden}.window i{background:linear-gradient(135deg,#93bdb4,#c6dcd2)}.sign{border:1px solid #718d72;outline:5px solid #c0ceb4;text-align:center;padding:13px 20px;background:#e9e6cf;transform:rotate(-1deg)}.sign small{font-size:9px;letter-spacing:2px}.sign b{display:block;font-size:17px;margin-top:7px;letter-spacing:3px}.plant{width:50px;height:68px;position:relative}.plant span{position:absolute;bottom:0;left:5px;width:40px;height:30px;background:#b66b47;border-radius:4px 4px 14px 14px}.plant i{position:absolute;width:22px;height:42px;border-radius:100% 0;background:#567d4b;bottom:25px;left:14px;transform:rotate(-32deg)}.plant i:nth-child(2){transform:rotate(32deg);left:24px}.plant i:nth-child(3){transform:rotate(-60deg);left:0}.awning{height:23px;background:repeating-linear-gradient(90deg,#f7ecd0 0 32px,#cf7552 32px 64px);border-radius:0 0 12px 12px;box-shadow:0 5px 0 #00000009;position:relative;z-index:1}.floor{padding:17px 24px 0;background-color:#eee2c8;background-image:linear-gradient(45deg,#e2d6bc 25%,transparent 25%,transparent 75%,#e2d6bc 75%),linear-gradient(45deg,#e2d6bc 25%,transparent 25%,transparent 75%,#e2d6bc 75%);background-size:64px 64px;background-position:0 0,32px 32px}.room-label{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px;color:#958b70;margin-bottom:12px}.tables{display:grid;grid-template-columns:1fr 1fr;gap:15px 24px;padding:0 12px 12px}.table{min-height:150px;border:0;background:transparent;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;color:#365747;padding:4px 0;isolation:isolate}.table:before,.table:after{content:'';position:absolute;top:57px;width:25px;height:48px;background:#8d9d73;border:4px solid #728764;border-radius:9px;z-index:-1}.table:before{left:8%}.table:after{right:8%}.table-top{width:73%;height:83px;background:#c18d57;border:4px solid #e1b57c;border-radius:35%;box-shadow:0 7px 0 #8e674a,0 12px 12px #70532f24;display:flex;justify-content:center;align-items:center;position:relative;margin-bottom:12px}.table-top:before{content:'';position:absolute;inset:9px;border:1px dashed #e2b882;border-radius:35%}.plate{height:48px;width:48px;border-radius:50%;background:#f8f0da;border:5px solid #e1dbc4;box-shadow:0 2px 1px #6c4a4130;display:grid;place-items:center;font-size:25px;z-index:1}.table-number{position:absolute;left:14%;top:36px;background:#fff6d9;border-radius:50%;width:24px;height:24px;display:grid;place-items:center;font-size:11px;z-index:2}.person{position:absolute;top:0;left:calc(50% - 18px);height:39px;width:36px;z-index:2}.person:before{content:'';display:block;width:27px;height:27px;background:#edb28b;border:5px solid var(--hair,#694c38);border-bottom:0;border-radius:50% 50% 45% 45%;margin:auto}.person:after{content:'';display:block;width:36px;height:15px;background:var(--shirt,#72918d);border-radius:14px 14px 0 0}.label{background:#fff9e9;padding:6px 15px;border-radius:15px;font-size:12px;box-shadow:0 2px 0 #d3c8a8;font-weight:600;min-width:100px}.table[data-stage=ready] .label,.table[data-stage=pay] .label{background:#2e6653;color:white}.table[data-stage=order] .label{background:#f4bc74}.table[data-stage=dirty] .label{background:#dfd6c2;color:#756348}.table[data-stage=ready] .plate{animation:bob 1.1s infinite alternate}.patience{position:absolute;top:31px;right:15%;height:4px;width:30px;background:#e2d3b7;border-radius:5px;overflow:hidden}.patience i{display:block;height:100%;background:#df8251}.counter{height:62px;background:#6d8b70;border:5px solid #dec59b;border-bottom:0;border-radius:12px 12px 0 0;display:flex;align-items:center;justify-content:space-around;color:#f2e8ca;box-shadow:0 -5px 0 #c7a776;font-size:11px;letter-spacing:2px;margin:10px 15px 0}.counter b{font-size:9px;font-weight:400;letter-spacing:1px}.coffee{font-size:28px}.pots{font-size:26px}.pots span{font-size:10px;vertical-align:middle;letter-spacing:1px;margin-left:6px}aside{display:flex;flex-direction:column;gap:18px}.waiting{background:#fffcf4;border-radius:18px;padding:20px;border:1px solid #e3e5d6;flex:1}.section-title{display:flex;justify-content:space-between;align-items:center}.section-title>span{font-size:11px;color:#8b977f}.waiting>p{font-size:11px;color:#8e967f;margin:8px 0 16px}#queue{display:flex;flex-direction:column;gap:9px;min-height:174px}.guest{display:flex;align-items:center;gap:12px;border:1px solid #e0e3d1;border-radius:12px;background:#f2f2e6;padding:10px 12px;text-align:left;min-height:54px;color:#3e5b46}.guest.active{border-color:#c98b4e;background:#fff0d8}.avatar{width:35px;height:34px;position:relative}.avatar .person{top:0}.guest-info{flex:1}.guest-info b{font-size:12px}.guest-info .track{height:4px;margin-top:5px}.empty-queue{display:flex;flex:1;align-items:center;justify-content:center;flex-direction:column;border:1px dashed #d7ddc9;border-radius:12px;color:#a0a78d;font-size:12px;gap:10px}.empty-queue span{font-size:28px}.tip{border-top:1px solid #e7e9dc;margin-top:15px;padding-top:14px;font-size:11px;color:#839079}.tip>span{color:#b48247}.tip p{line-height:1.8;margin-bottom:0}.notebook{padding:18px 20px;background:#e6e9d9;border-radius:5px 16px 16px 5px;border-left:4px solid #ccd4bb}.notebook small{color:#6d7e5d}.notebook>div{display:flex;justify-content:space-between;margin-top:12px;font-size:12px}.notebook p{font-size:10px;line-height:1.8;color:#879077;margin-bottom:0}footer{display:flex;justify-content:space-between;margin-top:16px;font-size:11px;color:#6b7b61;gap:15px}.footer-tag{font-size:9px;letter-spacing:1px;color:#a7ad96}dialog{border:1px solid #e3ddc9;border-radius:24px;background:#fffbef;color:#315440;width:min(460px,calc(100% - 28px));padding:28px;box-shadow:0 20px 100px #142d4840;max-height:90dvh;overflow:auto}dialog::backdrop{background:#233c3299;backdrop-filter:blur(5px)}dialog h2{font-size:30px;margin:9px 0 14px;letter-spacing:2px}dialog p{font-size:13px;line-height:1.9;color:#7b846c}dialog .eyebrow{font-size:10px;letter-spacing:3px;color:#bc8249}.primary,.secondary,.upgrade{width:100%;padding:14px;border-radius:12px;border:0;font-weight:bold;margin-top:10px;min-height:46px}.primary{background:#315e49;color:#fff9e8}.secondary{background:#eae9db;color:#526547}.modal-emblem{text-align:center;font-size:53px;color:#df9450;margin:5px 0 12px}.rules{padding:14px;background:#f0efdf;border-radius:12px;font-size:13px;line-height:2}.result-grid{display:flex;justify-content:space-around;padding:15px 0}.result-grid b{display:block;font-size:28px}.result-grid small{font-size:10px}.upgrade{text-align:left;background:#eee9d7;color:#516441;font-size:12px}.upgrade span{float:right}.text-btn{display:block;background:none;border:none;color:#89937b;text-decoration:underline;margin:18px auto 0;font-size:12px;min-height:36px}@keyframes bob{to{transform:translateY(-4px)}}
@media(min-width:1500px){.app{padding-top:40px}.table{min-height:180px}.table-top{height:100px}.table:before,.table:after{top:73px}.table-number{top:50px}.person{top:12px}.patience{top:44px}.shopfront{height:130px}}
@media(max-width:760px){.app{padding:14px max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}header{margin-bottom:14px}h1{font-size:21px}.brand small{font-size:8px}.brandmark{font-size:36px}.header-right>span{display:none}.scoreboard{padding:13px 12px;gap:12px;grid-template-columns:.7fr 1.4fr 1fr;margin-bottom:14px}.scoreboard>div:last-child{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #efeddf;padding-top:8px}.scoreboard strong{font-size:22px}.scoreboard .hearts{font-size:17px;margin:0}.layout{grid-template-columns:1fr;gap:12px}.restaurant{border-width:5px}.shopfront{height:84px}.window{width:67px;height:62px}.sign{padding:9px 10px}.sign b{font-size:13px;letter-spacing:1px}.sign small{font-size:7px;letter-spacing:1px}.plant{transform:scale(.8)}.awning{height:18px}.floor{padding:12px 7px 0}.tables{gap:10px 5px;padding:0 0 9px}.table{min-height:140px}.table-top{width:76%;height:76px}.table:before{left:5%}.table:after{right:5%}.room-label{font-size:7px}.counter{height:51px;margin:10px 12px 0}aside{gap:10px}.waiting{padding:14px}.waiting>p{margin:5px 0 10px}#queue{flex-direction:row;min-height:65px}.guest{flex:1;min-width:0;padding:7px;gap:5px;flex-direction:column}.guest-info{width:100%;text-align:center}.guest-info b{font-size:10px}.avatar{height:31px}.avatar .person{transform:scale(.8)}.empty-queue{min-height:65px;flex-direction:row}.tip{display:none}.notebook{display:flex;align-items:center;gap:12px;padding:11px 13px}.notebook>div{margin:0;flex:1;flex-direction:column;gap:4px;font-size:10px}.notebook small{font-size:9px;letter-spacing:0}.notebook p{display:none}.footer-tag{display:none}footer{font-size:10px;margin-top:11px}}
@media(orientation:landscape) and (max-height:560px){.app{padding-top:8px;padding-bottom:8px}header{margin-bottom:8px}.brandmark{font-size:30px}h1{font-size:18px}.brand small{font-size:7px}.icon{height:36px;width:36px}.scoreboard{padding:8px 14px;gap:14px;grid-template-columns:.7fr 1.4fr 1fr 1fr;margin-bottom:10px}.scoreboard>div:last-child{grid-column:auto;display:block;border:0;padding:0}.scoreboard strong{font-size:18px;margin-top:3px}.scoreboard .hearts{font-size:15px;margin-top:6px}.scoreboard small{font-size:9px}.layout{grid-template-columns:minmax(0,1fr) 195px;gap:12px}.shopfront{height:43px}.window{height:34px;width:60px;border-width:3px}.sign{padding:4px 12px;outline-width:2px}.sign small{display:none}.sign b{font-size:11px;margin:0}.plant{transform:scale(.55);height:50px}.awning{height:10px}.floor{padding:7px 10px 0}.room-label{font-size:7px;margin-bottom:4px}.tables{gap:4px 18px;padding:0}.table{min-height:104px}.table-top{height:52px;max-width:140px;margin-bottom:7px}.table:before,.table:after{top:36px;height:30px}.table-number{top:20px;width:19px;height:19px;font-size:9px}.person{transform:scale(.7);transform-origin:top;top:0}.patience{top:17px}.plate{height:32px;width:32px;border-width:3px;font-size:18px}.label{font-size:10px;padding:5px 10px;min-width:95px}.counter{height:29px;margin:8px 8px 0;border-width:3px}.counter b,.pots span{display:none}.coffee,.pots{font-size:20px}.counter>span{font-size:8px}.waiting{padding:11px}.waiting h2{font-size:13px}.waiting>p{font-size:9px;margin:5px 0 8px}#queue{flex-direction:column;min-height:122px;gap:5px}.guest{padding:5px;min-height:37px;flex-direction:row;gap:8px;flex:0}.guest-info{text-align:left}.guest-info b{font-size:10px}.avatar{width:29px;height:26px}.avatar .person{transform:scale(.65)}.empty-queue{min-height:122px}.tip{display:none}.notebook{padding:9px 10px;display:flex;gap:9px}.notebook small,.notebook p,.notebook>div:last-of-type{display:none}.notebook>div{font-size:10px;flex:1;display:flex;flex-direction:column;gap:3px;margin:0}aside{gap:9px}footer{margin-top:8px;font-size:9px}.footer-tag{display:none}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media(orientation:portrait) and (max-width:760px) and (max-height:950px){
.app{padding-top:9px}header{margin-bottom:9px}.scoreboard{padding:9px 12px;gap:6px;margin-bottom:10px}.scoreboard strong{font-size:20px}.scoreboard>div:last-child{padding-top:5px}.shopfront{height:55px}.window{height:43px;width:56px;border-width:4px}.plant{transform:scale(.6)}.sign{padding:6px 8px}.sign small{display:none}.sign b{margin:0;font-size:12px}.awning{height:14px}.table{min-height:112px}.table-top{height:58px;margin-bottom:8px}.table:before,.table:after{top:39px;height:34px}.table-number{top:26px}.person{transform:scale(.8);transform-origin:top}.patience{top:23px}.plate{width:39px;height:39px;border-width:4px;font-size:21px}.label{padding:5px 11px}.tables{gap:6px 5px;padding-bottom:5px}.counter{height:32px;margin-top:5px}.counter b,.pots span{display:none}.coffee,.pots{font-size:22px}.floor{padding-top:8px}.room-label{margin-bottom:6px}.waiting{padding:10px 12px}.waiting h2{font-size:14px}.waiting>p{margin:4px 0 7px}.guest{flex-direction:row;gap:5px;min-height:50px}.avatar{width:25px}.avatar .person{transform:scale(.65)}.guest-info b{font-size:9px}.empty-queue,#queue{min-height:50px}.notebook{padding:8px 12px}footer{margin-top:7px}
}
@media(orientation:landscape) and (max-height:560px){
.app{display:grid;grid-template-columns:175px 1fr;gap:8px 14px}header{margin:0}.header-right>span,.brand small{display:none}.brand{gap:5px}.brandmark{font-size:25px}h1{font-size:16px;letter-spacing:1px}.header-right{gap:4px}.icon{width:32px;height:36px}.scoreboard{margin:0;padding:6px 12px;gap:12px}.scoreboard strong{font-size:16px}.scoreboard .hearts{font-size:13px;letter-spacing:0}.layout{grid-column:1/-1}.table{min-height:90px}.table-top{height:46px}.table:before,.table:after{top:27px}.counter{display:none}.floor{padding-bottom:8px}.shopfront{height:35px}.window{height:29px}.restaurant{border-width:5px}.room-label{margin-bottom:2px}.notebook{padding:6px 9px}footer{grid-column:1/-1;margin:0}.label{font-size:11px;padding:5px 10px}.waiting>p{font-size:10px}.guest-info b{font-size:11px}
}
.scoreboard strong{white-space:nowrap}
@media(orientation:portrait) and (max-width:360px){.notebook{display:none}.scoreboard{gap:5px;grid-template-columns:.85fr 1.6fr 1.2fr}.scoreboard strong{font-size:18px}.scoreboard em{font-size:11px}.scoreboard small{font-size:9px}.table{min-height:105px}.counter{height:28px}}
@media(orientation:landscape) and (max-height:350px){.shopfront{display:none}.table{min-height:83px}.room-label{display:none}.floor{padding-top:4px;padding-bottom:5px}.table-top{height:40px}.label{padding:5px 10px}.table-number{top:12px}.awning{height:8px}footer{display:none}.notebook{display:none}.waiting{padding:9px}#queue{min-height:110px}}
.track{display:block}.guest{min-height:44px}.person:before{background:radial-gradient(circle at 5px 11px,#5d4938 1px,transparent 1.5px),radial-gradient(circle at 13px 11px,#5d4938 1px,transparent 1.5px),#edb28b}
/* Content-stage accessibility: compact layout for short portrait devices. */
@media(orientation:portrait) and (max-width:400px) and (max-height:620px){.app{padding-top:max(5px,env(safe-area-inset-top));padding-bottom:max(3px,env(safe-area-inset-bottom))}header{margin-bottom:6px}.brandmark{font-size:28px}h1{font-size:18px}.brand small{font-size:7px}.icon{height:38px;width:38px}.scoreboard{padding:7px 10px;margin-bottom:8px}.scoreboard strong{font-size:18px}.shopfront,.counter{display:none}.awning{height:8px}.floor{padding:6px 5px}.room-label{margin-bottom:4px}.table{min-height:88px}.table-top{height:44px;margin-bottom:7px}.table:before,.table:after{top:28px;height:27px}.table-number{top:14px;width:20px;height:20px}.person{transform:scale(.65)}.patience{top:16px}.plate{height:31px;width:31px;font-size:18px}.label{font-size:10px;padding:4px 7px}.tables{gap:5px}.waiting{padding:9px}.waiting>p{margin:4px 0 6px}.waiting h2{font-size:13px}#queue{min-height:44px}.guest{min-height:44px;padding:5px;gap:3px}.guest-info b{font-size:9px}.notebook{display:none}.layout{gap:8px}footer{margin-top:5px;font-size:9px}}
