/* game */
.mt-root{--mt-ink:#513d30;color:var(--mt-ink);font-family:"Trebuchet MS","Segoe UI",sans-serif;background:transparent;box-sizing:border-box;gap:12px;min-width:0}
html.mt-fullscreen-active{overflow:hidden!important;scrollbar-gutter:auto!important}body.mt-fullscreen-active{overflow:hidden!important}
.mt-root *{box-sizing:border-box}.mt-arena[hidden]{display:none!important}.mt-arena{position:relative;min-height:0;min-width:0;overflow:hidden;border:1px solid #b79871;border-radius:12px;background:radial-gradient(ellipse at center,#f2d9b3,#e8c9a4);scroll-margin-top:12px}.mt-arena-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:56px;padding:6px 10px;background:#513d30;color:#fff4e2}.mt-arena-toolbar button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:7px 10px;border:1px solid #a5896a;border-radius:8px;background:var(--tea-accent);color:#fff4e2;font-size:13px;touch-action:manipulation}.mt-arena-toolbar [data-mt-fullscreen-icon]{font-size:21px;line-height:1}.mt-counter-stage{display:grid;place-items:center;min-width:0;min-height:0}.mt-counter-screen{position:relative;width:100%;aspect-ratio:5/9;box-shadow:0 0 70px #6a422d38}.mt-counter-screen canvas{display:block;width:100%;height:100%;touch-action:none;user-select:none;outline:none}.mt-counter-screen canvas:focus-visible{outline:3px solid #ee9350;outline-offset:-3px}.mt-accessible-status{position:absolute;left:0;top:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.mt-arena.is-fullscreen{position:fixed!important;inset:0!important;z-index:1000;width:100%;height:100dvh;margin:0!important;border:0!important;border-radius:0!important;display:flex;flex-direction:column;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.mt-arena.is-fullscreen .mt-arena-toolbar{flex:0 0 56px}.mt-arena.is-fullscreen .mt-counter-stage{flex:1;overflow:hidden}.mt-arena.is-fullscreen .mt-counter-screen{width:min(100%,calc((100dvh - 56px - env(safe-area-inset-top) - env(safe-area-inset-bottom))*5/9));max-height:100%}.mt-arena::backdrop{background:#513d30}
.mt-hub{overflow:hidden;padding:0!important;border:1px solid #303944;border-radius:10px;background:#090c10;color:#dce4ee;scroll-margin-top:12px}.mt-hub-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;border-bottom:1px solid #303944;background:linear-gradient(#1a2028,#11161d)}.mt-hub-toolbar>div{display:flex;align-items:center;gap:10px}.mt-hub-toolbar a,.mt-hub-toolbar button{display:grid;place-items:center;width:44px;height:44px;border:1px solid #35404c;border-radius:8px;background:#111923;color:#75c9ff;font-size:23px;text-decoration:none}.mt-hub-welcome{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding:24px 20px;background:radial-gradient(circle at 10% 15%,#d8915630,transparent 45%),linear-gradient(125deg,#1c2024,#0d131a)}.mt-hub-cup{display:grid;place-items:center;width:70px;height:82px;border:1px solid #7b6248;border-radius:18px;background:#241f18;font-size:44px}.mt-hub-welcome small{color:#e3b77e;font-size:10px;letter-spacing:1px}.mt-hub-welcome h1{margin:5px 0 6px;color:#fff2dc;font-size:27px;line-height:1.2}.mt-hub-welcome p{margin:0;color:#a7b2c0;font-size:13px;line-height:1.6}.mt-root .mt-play-button{display:flex;align-items:center;justify-content:center;gap:16px;min-height:46px;padding:10px 18px;border:1px solid #ebbb6d;border-radius:9px;background:linear-gradient(#f5d294,#e7af60);color:#3c2b1b;font-weight:800;font-size:15px;white-space:nowrap}.mt-play-button:hover{filter:brightness(1.08)}.mt-hub-ranking{margin:14px;border:1px solid #303944;border-radius:9px;overflow:hidden;background:#0d1218}.mt-hub-ranking>header{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px;border-bottom:1px solid #303944;background:linear-gradient(120deg,#262016,#121922);color:#f4d39a;font-size:14px}.mt-hub-ranking>header small{color:#9da9b8;font-size:11px}.mt-hub-mine{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:12px;padding:12px;border:1px solid #39516a;border-radius:8px;background:#122130;font-size:13px;color:#c2e1fa}.mt-hub-mine span{font-size:12px;color:#8ecaff}.mt-hub-tabs{display:flex;gap:8px;margin:12px}.mt-hub-tabs button{min-height:44px;flex:1;padding:8px;border:1px solid #35414d;border-radius:7px;background:#141b24;color:#9facbc;font-size:13px}.mt-hub-tabs button.is-active{border-color:#389dcc;background:#12334a;color:#8fd8ff;font-weight:800}.mt-hub-note{margin:10px 13px;color:#93a1b1;font-size:12px;line-height:1.6}.mt-hub-ranks>p{padding:18px;color:#a4b0bf;text-align:center;font-size:13px}.mt-hub-rank{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;min-height:77px;padding:12px;border-top:1px solid #26323e}.mt-hub-rank.is-me{background:#172d3b;border-left:3px solid #63c7f8;padding-left:9px}.mt-hub-rank>span{display:grid;place-items:center;min-height:35px;border-radius:9px;background:#18222c;color:#9baebf;font-size:14px;font-weight:800}.mt-hub-rank[data-rank="1"]>span{color:#ffd36f;background:#49371b}.mt-hub-rank[data-rank="2"]>span{color:#d5e2ef;background:#2c3947}.mt-hub-rank[data-rank="3"]>span{color:#e8b18c;background:#402c20}.mt-hub-rank>div{min-width:0;display:grid;gap:5px}.mt-hub-rank strong{color:#e7edf4;overflow-wrap:anywhere;font-size:14px}.mt-hub-rank small{color:#8e9dad;font-size:11px;line-height:1.5;overflow-wrap:anywhere}.mt-hub-rank>b{white-space:nowrap;border:1px solid #4c6454;border-radius:8px;background:#16251c;color:#a5deb2;padding:6px 8px;font-size:12px}.mt-hub-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border-top:1px solid #303944;background:#111821;color:#a6b5c6;font-size:13px}.mt-hub button,.mt-hub a{touch-action:manipulation}.mt-root button:focus-visible,.mt-hub a:focus-visible{outline:3px solid #73c6ff;outline-offset:2px}
@media(max-width:520px){.mt-hub-welcome{grid-template-columns:auto minmax(0,1fr);gap:12px;padding:20px 14px}.mt-hub-welcome .mt-play-button{grid-column:1/-1}.mt-hub-welcome h1{font-size:24px}.mt-hub-cup{width:58px;height:70px;font-size:37px}.mt-hub-ranking{margin:10px}.mt-hub-rank{grid-template-columns:34px minmax(0,1fr) auto;gap:8px;padding:10px}.mt-hub-rank strong{font-size:13px}.mt-hub-footer{flex-wrap:wrap}.mt-arena-toolbar{padding:6px}.mt-arena-toolbar button{padding:7px;font-size:12px}}
.mt-toast{position:fixed;z-index:1100;bottom:max(40px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:min(440px,85vw);padding:15px 23px;border:2px solid #674b37;border-radius:24px;background:#513d30f2;color:#fff5e7;font-weight:800;text-align:center;font-size:15px;line-height:1.5;box-shadow:0 7px 0 #382a2222;pointer-events:none}.mt-toast[data-tone="error"]{background:#9b5347}.mt-toast[data-tone="success"]{background:#537c52}
.mt-modal{position:fixed;inset:0;z-index:1050;display:grid;place-items:center;padding:18px}.mt-modal[hidden],.mt-toast[hidden]{display:none}.mt-modal-backdrop{position:absolute;inset:0;background:#3c2b2088;backdrop-filter:blur(3px)}.mt-modal-box{position:relative;width:min(540px,100%);max-height:85dvh;display:flex;flex-direction:column;overflow:hidden;border:3px solid #80604a;border-radius:24px;background:#fff4e2;box-shadow:0 12px 0 #4e342a33}.mt-modal-box>header{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border-bottom:2px solid #ead4b4}.mt-modal-box>header small{font-size:10px;letter-spacing:1px;color:#a07759;font-weight:800}.mt-modal-box h2{font-size:21px;margin:3px 0}.mt-root button,.mt-root input{font:inherit}.mt-root button{cursor:pointer}.mt-root button:disabled{opacity:.5;cursor:default}.mt-modal-box>header button{border:2px solid #bf9773;border-radius:12px;width:38px;height:38px;background:#f4dbb7;color:#71533f;font-size:24px}.mt-modal-body{overflow:auto;padding:18px 20px 24px}.mt-modal-body p{font-size:13px;line-height:1.6}.mt-modal-body h3{font-size:15px;margin:20px 0 8px}.mt-upgrade-list,.mt-rank-list,.mt-friend-list{display:grid;gap:8px}.mt-shop-item,.mt-rank-item,.mt-friend-item{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid #dec8a7;border-radius:13px;background:var(--tea-surface)}.mt-shop-item>span,.mt-friend-item>span{font-size:24px}.mt-shop-item>div,.mt-rank-item>div,.mt-friend-item>div{flex:1;min-width:0}.mt-shop-item strong,.mt-rank-item strong,.mt-friend-item strong{display:block;font-size:13px}.mt-shop-item small,.mt-rank-item small,.mt-friend-item small{display:block;color:#99775c;font-size:11px}.mt-shop-item button,.mt-friend-item button,.mt-modal-action,.mt-name-form button,.mt-tabs button{border:1px solid #7e9f68;border-radius:9px;background:#dfeac8;color:#48673d;padding:8px 10px;font-size:12px;font-weight:800}.mt-rank-item>span{font-size:18px;color:#ba823b}.mt-rank-item>b{font-size:12px;color:#5b803e}.mt-tabs{display:flex;gap:8px;margin-bottom:12px}.mt-tabs .is-active{background:#748f57;color:#fff}.mt-name-form{display:flex;gap:8px}.mt-name-form input{flex:1;min-width:0;padding:8px;border:1px solid #bb9c7b;border-radius:9px;background:var(--tea-surface);color:#513d30}.mt-help-list{padding-left:20px;font-size:14px;line-height:1.7}.mt-help-list li{margin-bottom:10px}.mt-modal-empty{padding:25px;text-align:center;color:#99775c}.mt-my-rank,.mt-friend-shop{background:#e8edcc;padding:14px;border-radius:12px;margin-bottom:12px}.mt-my-rank{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:12px}.mt-visit-scene{display:none}
@media(max-width:500px){.mt-toast{font-size:12px;padding:11px 16px;bottom:55px}.mt-modal{padding:12px}}
.mt-root button,.mt-root input,.mt-root select,.mt-stat-row>summary{touch-action:manipulation}.mt-modal-body{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.mt-accessible-status{pointer-events:none}
.mt-venue-list{display:grid;gap:10px}.mt-venue-card{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:14px;border:2px solid #ddc4a1;border-radius:14px;background:var(--tea-surface)}.mt-venue-card strong{font-size:17px}.mt-venue-card small{font-size:12px;line-height:1.6;color:#947254}.mt-venue-card.is-current{border-color:#9aaf75;background:#ebf0d8}.mt-venue-card b{font-size:13px;color:#72844e}.mt-service-actions{display:flex;flex-wrap:wrap;gap:10px}.mt-staff-list{margin-top:16px;padding:8px 14px;background:#efe5cd;border-radius:12px}
.mt-discovery-note{padding:12px;border:1px dashed #b99973;border-radius:12px;background:#f4ead7;color:#795d46}.mt-rescue{display:flex;gap:12px;margin:16px 0;padding:14px;border:2px solid #d2a762;border-radius:16px;background:#fff4cf}.mt-rescue>span{font-size:32px}.mt-rescue>div{min-width:0;flex:1}.mt-rescue h3{margin:0 0 5px}.mt-rescue p{margin:4px 0 10px}.mt-rescue-actions{display:grid;gap:8px}.mt-restart-button{width:100%;border-color:#aa675c!important;background:#f3d3cb!important;color:#7c3c34!important}.mt-restart-warning{text-align:center}.mt-restart-warning>span{display:block;font-size:44px}.mt-restart-warning .mt-modal-action{width:100%;min-height:46px;margin-top:8px}.mt-scenario-card{text-align:center}.mt-scenario-card>span{display:block;font-size:58px;filter:drop-shadow(0 5px 0 #8b603522)}.mt-scenario-card>p{font-size:17px;line-height:1.6;margin:12px auto 18px;max-width:420px}.mt-scenario-card>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mt-scenario-card .mt-modal-action{min-height:54px;font-size:14px}.mt-scenario-card>small{display:block;margin-top:16px;color:#8d6c50;line-height:1.6}.mt-scenario-result{display:grid;gap:10px}.mt-scenario-result>p{padding:14px;border-radius:13px;background:#fff9ec;font-size:15px}.mt-scenario-result>div{display:flex;justify-content:space-between;padding:11px 13px;border-radius:10px;background:#e8efd7}.mt-scenario-result>div.is-loss{background:#f3d8cf;color:#8a3e36}.mt-bill-scenario{margin:12px 0;padding:13px;border:1px dashed #b38861;border-radius:12px;background:#fff3d9}.mt-bill-scenario p{margin:5px 0}.mt-bill-scenario small{color:#60794b;font-weight:800}
@media(pointer:coarse),(max-width:500px){.mt-root .mt-modal button{min-height:44px;font-size:14px}.mt-root .mt-modal-box>header button{min-width:44px;font-size:26px;flex-shrink:0}.mt-root .mt-modal input:not([type="range"]),.mt-root .mt-modal select{min-height:44px;font-size:16px}.mt-root .mt-price-control input{min-height:44px}.mt-root .mt-stat-row>summary{min-height:48px}.mt-modal-body{padding:16px}.mt-modal-box>header{padding:14px 16px}.mt-name-form{flex-wrap:wrap}.mt-name-form input{flex-basis:180px}.mt-warehouse-tabs{gap:8px}.mt-stock-card strong{font-size:14px}.mt-stock-card small{font-size:12px}}
.mt-name-count{display:block;margin:7px 0 17px;color:var(--tea-muted);font-size:12px}.mt-day-report{display:grid;gap:8px;margin:14px 0;padding:14px;border:1px solid #dcc5a2;border-radius:14px;background:var(--tea-surface)}.mt-day-report>div{display:flex;justify-content:space-between;gap:16px;font-size:13px}.mt-report-profit{border-top:1px solid #dfc9a6;padding-top:10px;color:#5b7d45}.mt-price-control{display:flex;align-items:center;gap:12px;margin:15px 0}.mt-price-control input{width:100%;accent-color:#8da46c}.mt-price-control output{font-size:20px;font-weight:800;min-width:60px;color:#71523c}.mt-price-list{display:grid;gap:7px}.mt-price-list>div{display:grid;grid-template-columns:1fr auto;gap:3px 10px;padding:9px 12px;background:var(--tea-surface);border:1px solid #e4ccaa;border-radius:10px;font-size:13px}.mt-price-list small{grid-column:1/-1;color:var(--tea-muted);font-size:11px}
.mt-rating-overview{display:grid;gap:8px;text-align:center;padding:19px;border:1px solid #d8bd88;border-radius:16px;background:#fff8e9}.mt-rating-overview>span{font-size:31px;letter-spacing:3px;color:#ba8730}.mt-rating-overview>strong{font-size:27px}.mt-rating-overview>b{font-size:14px;color:#887149}.mt-rating-overview>small{font-size:11px;line-height:1.6;color:#97775b}.mt-review-list{display:grid;gap:7px}.mt-review-list>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border:1px solid var(--tea-border);border-radius:11px;background:var(--tea-surface)}.mt-review-list b{color:#ba8730;font-size:17px;letter-spacing:1px;white-space:nowrap}.mt-review-list span{text-align:right;font-size:12px}.mt-review-list small{display:block;font-size:10px;color:#97775b;margin-top:4px}
.mt-level-overview{display:grid;gap:10px;text-align:center;padding:18px;border:1px solid #b7bf8e;border-radius:16px;background:#eef0dc}.mt-level-overview>small{color:#7e795b;font-size:11px;line-height:1.6}.mt-level-overview>strong{font-size:46px;color:#6c7945}.mt-level-overview>b{font-size:14px}.mt-exp-track{height:10px;border-radius:8px;background:#d9dac3;overflow:hidden}.mt-exp-track>span{display:block;height:100%;background:#8f9e62;border-radius:8px}.mt-level-table{width:100%;border-collapse:collapse;font-size:12px;margin-top:12px}.mt-level-table th,.mt-level-table td{padding:10px;border-bottom:1px solid #e6d3b5;text-align:right}.mt-level-table th:first-child,.mt-level-table td:first-child{text-align:left}.mt-level-table th{color:#917658;background:#f4e8d1}.mt-modal-body .mt-level-note{font-size:11px;line-height:1.6;color:#997b5e}.mt-rank-item.is-me{background:#edf0d8;border-color:#9eb27c}.mt-rank-item .mt-rank-level{font-size:13px;white-space:nowrap;background:#ece2c9;color:#846b3e;border-radius:9px;padding:8px}.mt-my-rank>span{display:block}
.mt-starter-pack{display:grid;gap:9px;padding:14px;background:#e7edcf;border:1px solid #a6b887;border-radius:14px;margin-bottom:16px}.mt-starter-pack small{line-height:1.5;color:#687553}.mt-starter-pack button{justify-self:start}.mt-warehouse-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}.mt-warehouse-tabs button{font-size:11px;padding:7px 9px;border:1px solid #d0b08b;border-radius:8px;background:var(--tea-surface);color:#795a43}.mt-warehouse-tabs .is-active{background:#917959;color:#fff}.mt-warehouse-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.mt-stock-card{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:11px;background:var(--tea-surface);border:1px solid #ddc4a1;border-radius:13px}.mt-stock-card>span{font-size:28px}.mt-stock-card strong{font-size:12px}.mt-stock-card small{font-size:11px;line-height:1.6;color:var(--tea-muted)}.mt-stock-card button{margin-top:auto;width:100%;font-size:11px}
.mt-stat-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.mt-stat-tabs button{padding:11px 8px;border:1px solid var(--tea-border);border-radius:11px;background:var(--tea-surface);color:#806044;font-size:13px;font-weight:800}.mt-stat-tabs .is-active{background:#94785b;color:#fff;border-color:#94785b}.mt-stat-filter{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0;color:var(--tea-muted);font-size:12px}.mt-stat-filter select{min-width:0;max-width:65%;padding:8px;border:1px solid #d5b994;border-radius:9px;background:var(--tea-surface);color:var(--tea-text);font:inherit}.mt-modal-body .mt-stat-heading{margin:17px 0 10px;font-size:15px}.mt-stat-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:18px}.mt-stat-cards>div{padding:12px;background:var(--tea-surface);border:1px solid var(--tea-border);border-radius:13px;min-width:0}.mt-stat-cards small{display:block;font-size:10px;color:var(--tea-muted);margin-bottom:5px}.mt-stat-cards strong{display:block;font-size:22px;overflow-wrap:anywhere}.mt-stat-cards em{font-size:11px;font-style:normal;font-weight:500}.mt-stat-cards .is-profit{background:#e9efd9;border-color:#a9bd89}.mt-stat-cards .is-loss{background:#f6e2d8;border-color:#d6a28c}.mt-stat-list{display:grid;gap:8px}.mt-stat-row{border:1px solid var(--tea-border);border-radius:12px;background:var(--tea-surface);overflow:hidden}.mt-stat-row>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;padding:12px}.mt-stat-row>summary::-webkit-details-marker{display:none}.mt-stat-row>summary>span:first-child{flex:1;min-width:0}.mt-stat-row summary b{display:block;font-size:12px}.mt-stat-row summary small{display:block;font-size:10px;color:var(--tea-muted);margin-top:4px}.mt-stat-amount{text-align:right;flex-shrink:0}.mt-stat-arrow{color:#a48763}.mt-stat-row[open] .mt-stat-arrow{transform:rotate(180deg)}.mt-stat-detail{border-top:1px solid var(--tea-border);padding:12px;display:grid;gap:9px;font-size:12px}.mt-stat-detail>div{display:flex;justify-content:space-between;gap:10px}.mt-stat-detail p{font-size:10px;color:var(--tea-muted);margin:1px 0}.mt-stat-cards .is-loss,.mt-stat-list .is-loss,.mt-stat-detail .is-loss{color:#ad5c49}.mt-stat-cards .is-profit,.mt-stat-list .is-profit,.mt-stat-detail .is-profit{color:#607e41}.mt-stat-more{margin-top:12px;width:100%}.mt-modal-body .mt-stat-note{font-size:11px;color:var(--tea-muted);line-height:1.6;margin-top:17px}

/* Receipts belong to opening days in the game. */
.mt-root .mt-stat-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
.mt-root .mt-stat-tabs button{min-height:46px;font-size:13px;padding:10px 8px}
.mt-root .mt-stat-cards small{font-size:12px;line-height:1.5}
.mt-root .mt-stat-row summary b{font-size:14px}
.mt-root .mt-stat-row summary small{font-size:12px}
.mt-bill-day-nav{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;margin:20px 0 14px}
.mt-bill-day-nav button,.mt-bill-day-nav select{min-height:46px;border:1px solid var(--tea-border);border-radius:12px;background:var(--tea-surface);color:var(--tea-text)}
.mt-bill-day-nav button{font-size:26px}
.mt-bill-day-nav button:disabled{opacity:.4;cursor:default}
.mt-bill-day-nav select{width:100%;min-width:0;padding:8px;font-size:14px;font-weight:700;text-align:center}
.mt-bill-day-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.mt-bill-day-heading h3{margin:0;font-size:19px}
.mt-bill-day-heading small{font-size:12px;color:var(--tea-muted)}
.mt-bill-list-heading{display:flex;align-items:center;justify-content:space-between;margin:22px 0 12px;font-size:16px}
.mt-bill-list-heading span{font-size:12px;color:var(--tea-muted);font-weight:400}
.mt-bill-list{display:grid;gap:12px;margin:12px 0}
.mt-bill-card{width:100%;text-align:left;border:1px solid var(--tea-border);background:var(--tea-surface);color:#493c31;padding:16px;box-shadow:0 3px 8px #73543209;border-radius:14px;display:grid;gap:10px}
.mt-bill-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.mt-bill-card-top b{font-size:12px;color:var(--tea-muted);font-variant-numeric:tabular-nums}
.mt-bill-card-top small{font-size:11px;border-radius:6px;padding:5px 7px;line-height:1.4}
.mt-bill-card-top .is-paid{color:#536c40;background:#eaf0df}
.mt-bill-card-top .is-unpaid{color:#9a4e3d;background:#f6e4dd}
.mt-bill-card>strong{font-size:16px;line-height:1.5}
.mt-bill-card>strong>span{font-size:13px;font-weight:400;color:var(--tea-muted)}
.mt-bill-service{font-size:12px;color:var(--tea-muted)}
.mt-bill-card-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;font-size:12px;border-top:1px dashed var(--tea-border);padding-top:12px}
.mt-bill-card-values b{display:block;font-size:14px;margin-top:5px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.mt-bill-open{color:#735a3f;font-size:12px;text-align:right;margin-top:3px}
.mt-bill-expenses{border:1px solid #dcc5a2;border-radius:12px;padding:12px;margin:20px 0}
.mt-bill-expenses summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:14px;font-weight:700}
.mt-bill-expenses>div,.mt-bill-accounting>div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;font-size:13px}
.mt-bill-expenses>div span{flex:1}
.mt-root .mt-bill-expenses p,.mt-root .mt-bill-accounting p{color:var(--tea-muted);font-size:12px;line-height:1.7}
.mt-root .mt-receipt{--font-vietnamese:'Segoe UI',Arial,system-ui,sans-serif;--font-teen:'Segoe UI',Arial,system-ui,sans-serif;font-family:var(--font-vietnamese)!important;margin:22px auto 26px;max-width:410px;padding:26px 22px 24px;background:#fffefb;color:#343a30;border:1px solid #e2dfd4;border-radius:3px;box-shadow:0 8px 24px #5a3f2914;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;line-height:1.6;position:relative}
.mt-receipt:after{content:'';position:absolute;left:0;right:0;bottom:-7px;height:8px;background:linear-gradient(135deg,#fffefb 25%,transparent 25%) -5px 0/10px 10px,linear-gradient(225deg,#fffefb 25%,transparent 25%) -5px 0/10px 10px}
.mt-receipt header{text-align:center}
.mt-receipt-brand{display:inline-block;color:#62734f;font-size:11px;font-weight:700;letter-spacing:2px;padding:5px 10px;border-bottom:2px solid #b6c49d}
.mt-root .mt-receipt header h3{--font-vietnamese:'Segoe UI',Arial,system-ui,sans-serif;font-size:26px;font-weight:700;margin:15px 0 5px;line-height:1.35;color:#35452d}
.mt-receipt header>b{font-size:12px;letter-spacing:1px;color:#767868}
.mt-receipt-identity{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px;font-size:12px;color:#74786b}
.mt-receipt-identity>span:last-child{background:#eef2e7;color:#50663f;border-radius:5px;padding:3px 8px;font-weight:700}
.mt-receipt-meta{display:grid;gap:7px;padding:14px 0;border-top:1px dashed #cfd2c5;border-bottom:1px dashed #cfd2c5;margin:12px 0 18px;font-size:13px}
.mt-receipt-meta>span{display:flex;justify-content:space-between;gap:12px}
.mt-receipt-items-heading{display:flex;justify-content:space-between;gap:12px;font-size:11px;font-weight:700;text-transform:uppercase;color:#7b806f;margin-bottom:7px}
.mt-receipt-lines>div,.mt-receipt-charges>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:6px 0;font-size:14px;line-height:1.5}
.mt-receipt-lines b,.mt-receipt-charges b{white-space:nowrap;font-weight:600}
.mt-receipt-recipe{font-size:12px;line-height:1.7;padding:10px 0 15px;color:#7b806f}
.mt-receipt-recipe:empty{display:none}
.mt-receipt-charges{padding:12px 0;border-top:1px dashed #cfd2c5}
.mt-receipt-charges>div{font-size:13px;color:#626958}
.mt-root .mt-receipt-total{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:2px solid #aab697;padding:14px 0;font-size:14px;font-weight:700;color:#35452d}
.mt-receipt-total>b{font-size:28px;line-height:1.3}
.mt-receipt-total small{font-size:14px;font-weight:500}
.mt-receipt-stamp{background:#edf3e5;color:#536e3d;border:1px solid #dae5cb;border-radius:8px;padding:9px;text-align:center;font-size:13px;font-weight:600;margin:0 0 19px}
.mt-receipt-stamp.is-rejected{color:#9e513d;background:#f9ece6;border-color:#efd6ca}
.mt-receipt footer{text-align:center}
.mt-receipt-stars{color:#b78b32;font-size:21px;letter-spacing:2px;line-height:1.5}
.mt-root .mt-receipt-review{font-size:13px;line-height:1.7;margin:7px 0;color:#626958}
.mt-receipt-exp{display:inline-block;font-size:11px;font-weight:600;padding:3px 9px;background:#f1f2eb;color:#6b7958;border-radius:20px;margin:5px 0 15px}
.mt-receipt footer>small{display:block;font-size:12px;color:#858a7a}
.mt-bill-accounting{padding:16px;background:#ecefde;border:1px solid #d8dfc5;border-radius:13px}
.mt-bill-accounting h3{margin:0 0 8px;font-size:16px}
.mt-bill-accounting>div:last-of-type{border-top:1px solid #d3dcbc;font-size:16px;font-weight:700;margin-top:4px;padding-top:13px}
.mt-root .is-profit{color:#607e41}.mt-root .is-loss{color:#ad5c49}
@media(max-width:360px){.mt-root .mt-receipt{padding:22px 16px}.mt-root .mt-receipt header h3{font-size:24px}.mt-bill-card{padding:13px}.mt-bill-card-top{flex-wrap:wrap}.mt-bill-card-values b{font-size:13px}}

.mt-menu-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 16px}.mt-menu-poster{border:2px solid #c6a47c;outline:1px solid #dbc5a8;outline-offset:-8px;padding:25px 20px;background:#fff8e9;color:var(--tea-text);overflow:hidden}.mt-menu-poster header{text-align:center}.mt-menu-poster header>small{font-size:9px;letter-spacing:2px;color:#9b7b59}.mt-menu-poster header h3{font-size:30px;line-height:1.3;margin:16px 0 27px;overflow-wrap:anywhere}.mt-menu-poster header>b{display:block;color:#8b7451;font-size:12px;margin:20px 0 28px}.mt-menu-hero{display:flex;align-items:flex-end;justify-content:center;gap:21px;height:88px}.mt-menu-cup{display:inline-block;position:relative;width:30px;height:44px;border:2px solid #634a39;border-radius:3px 3px 9px 9px;background:linear-gradient(105deg,#ffffff65,var(--drink));transform:rotate(-4deg);flex-shrink:0}.mt-menu-cup:before{content:'';position:absolute;left:-4px;right:-4px;top:-5px;height:6px;background:#f2dfbe;border:1px solid #634a39;border-radius:3px}.mt-menu-cup i{position:absolute;width:4px;height:19px;background:#c87577;top:-21px;left:18px;transform:rotate(13deg);border-radius:2px}.mt-menu-cup b{position:absolute;bottom:4px;left:2px;right:2px;font-size:7px;color:#6a4c38;text-align:center;white-space:nowrap}.mt-menu-hero .mt-menu-cup{width:43px;height:65px}.mt-menu-hero .mt-menu-cup b{font-size:10px}.mt-menu-hero .mt-menu-cup:nth-child(2){width:52px;height:78px;transform:rotate(3deg)}.mt-menu-section-title{display:grid;grid-template-columns:minmax(0,1fr) 40px 40px;gap:8px;align-items:center;background:#e8edda;margin:0 -10px;padding:12px 10px;border-radius:2px;color:#526849}.mt-menu-section-title h4{margin:0;font-size:13px}.mt-menu-section-title>span{font-size:13px;font-weight:800;text-align:right}.mt-menu-drinks>div{display:grid;grid-template-columns:minmax(0,1fr) 40px 40px;gap:8px;align-items:center;padding:15px 0;border-bottom:1px solid #e8dcc7}.mt-menu-drinks>div>span{display:flex;gap:12px;align-items:center;min-width:0}.mt-menu-drinks>div>span>b{font-size:15px;line-height:1.4}.mt-menu-drinks .mt-menu-cup{width:20px;height:30px;border-width:1px;margin-top:5px}.mt-menu-drinks .mt-menu-cup i{height:12px;width:3px;top:-13px;left:11px}.mt-menu-drinks .mt-menu-cup b{font-size:4px;left:1px;right:1px}.mt-menu-drinks strong{text-align:right;font-size:17px}.mt-menu-poster .mt-menu-included{font-size:10px;text-align:center;line-height:1.6;margin:14px 0 24px;color:#94795b}.mt-menu-addons h4{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;background:#ecd7c7;padding:12px;margin:22px -10px 10px;color:#735442}.mt-menu-addons h4 small{font-size:9px;font-weight:400;color:#95775b}.mt-menu-addons>div{display:flex;justify-content:space-between;gap:15px;padding:7px 0;font-size:12px;line-height:1.5}.mt-menu-addons>div b{white-space:nowrap;color:#735442}.mt-menu-poster footer{text-align:center;color:#94795b;font-size:10px;line-height:1.8;border-top:1px dashed #cdb998;padding-top:20px;margin-top:20px}.mt-menu-poster footer strong{display:block;margin-top:12px;color:#60794b;font-size:16px}.mt-menu-edit-teas label,.mt-menu-edit-heading{display:grid;grid-template-columns:minmax(0,1fr) 70px 70px;gap:8px;align-items:center;padding:10px 0}.mt-menu-edit-teas label{border-bottom:1px solid #ead9bf}.mt-menu-edit-heading{font-size:12px;color:#947254}.mt-menu-edit-teas label span{font-size:13px}.mt-menu-edit-teas input,.mt-menu-edit-extras input{width:100%;min-width:0;padding:8px;border:1px solid var(--tea-border);border-radius:8px;background:var(--tea-surface);color:var(--tea-text);min-height:44px}.mt-menu-edit-extras{display:grid;gap:8px}.mt-menu-edit-extras label{display:grid;grid-template-columns:minmax(0,1fr) 80px;gap:15px;align-items:center;font-size:13px}.mt-menu-draft{padding:10px;background:#ecd7c7;border-radius:8px}
@media(max-width:360px){.mt-menu-poster{padding:23px 16px}.mt-menu-poster header h3{font-size:25px}.mt-menu-section-title,.mt-menu-drinks>div{grid-template-columns:minmax(0,1fr) 30px 30px;gap:5px}.mt-menu-drinks>div>span{gap:8px}.mt-menu-drinks>div>span>b{font-size:13px}.mt-menu-edit-teas label,.mt-menu-edit-heading{grid-template-columns:minmax(0,1fr) 58px 58px}.mt-bill-card{padding:12px}.mt-bill-card-top{flex-wrap:wrap}.mt-receipt{padding:22px 14px}.mt-receipt-total{font-size:15px}}
/* Keep the counter's type and light form controls inside the site's theme. */
.mt-dish-editor{min-width:0;margin:16px 0;padding:14px;border:1px solid var(--tea-border);border-radius:14px;background:var(--tea-surface)}
.mt-dish-editor legend{padding:0 7px;color:#847052;font-size:12px;font-weight:700}
.mt-dish-name-row{display:grid;grid-template-columns:minmax(0,1fr) 50px;gap:10px;align-items:end;margin-bottom:14px}
.mt-dish-editor label{display:grid;gap:7px;min-width:0;font-size:12px;color:#806044}
.mt-dish-editor label small{font-size:10px;color:var(--tea-muted)}
.mt-dish-name-row label{grid-template-columns:1fr auto}.mt-dish-name-row input{grid-column:1/-1}
.mt-dish-editor input,.mt-dish-editor select{box-sizing:border-box;width:100%;min-width:0;min-height:46px;padding:9px;border:1px solid #d1b892;border-radius:8px;color:var(--tea-text);background:#fffef9;font-size:14px}
.mt-dish-name-row button{min-height:46px;border:1px solid #d4a899;border-radius:8px;background:#f7e6dd;color:#a45e48;font-size:12px}
.mt-dish-recipe-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mt-dish-price-preview{display:block;font-size:12px;line-height:1.6;margin-top:14px;padding:9px;background:#e9efdd;color:#607944;border-radius:8px}
.mt-dish-add{margin:8px 0 22px}
.mt-root .mt-menu-name-hint{padding:12px;border:1px dashed var(--tea-border);border-radius:10px;font-size:13px;color:#806044}
.mt-root .mt-menu-signatures>div{grid-template-columns:minmax(0,1fr) 44px 44px}
.mt-menu-signatures>div>span>span{display:block;min-width:0;overflow-wrap:anywhere}
.mt-menu-signatures>div>span>span>b{display:block;font-size:15px;line-height:1.5}
.mt-menu-signatures small{display:block;margin-top:5px;font-size:11px;color:#92775c;line-height:1.6}
.mt-root .mt-menu-signatures strong{font-size:16px}
.mt-receipt-item-name{font-size:17px;line-height:1.5;font-weight:800;color:#35452d;margin:0 0 14px;overflow-wrap:anywhere}
@media(max-width:360px){.mt-dish-editor{padding:10px}.mt-dish-recipe-fields{gap:10px}.mt-dish-editor select{font-size:12px;padding:7px}.mt-root .mt-menu-signatures>div{grid-template-columns:minmax(0,1fr) 32px 32px;gap:6px}.mt-menu-signatures>div>span{gap:8px}.mt-menu-signatures>div>span>span>b{font-size:14px}.mt-root .mt-menu-signatures strong{font-size:14px}}
.mt-root{--font-vietnamese:'Trebuchet MS','Segoe UI',sans-serif;--font-teen:'Trebuchet MS','Segoe UI',sans-serif;color-scheme:light}

.mt-review-list>div{align-items:flex-start}.mt-review-list b{flex-shrink:0;font-size:15px}.mt-review-list .mt-review-copy{flex:1;text-align:left;font-size:13px;line-height:1.65;color:#725943}.mt-review-list .mt-review-copy small{font-size:11px;margin-top:6px}.mt-receipt .mt-receipt-review{font-size:12px;line-height:1.65;margin:12px 0;color:#7d705b}
.mt-review-promo{margin:14px 0;padding:15px;border:1px solid #e5bba7;border-radius:16px;background:linear-gradient(135deg,#fff2e3,#fce7e5)}.mt-review-promo-heading{display:flex;align-items:flex-start;gap:11px}.mt-review-promo-heading>span{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:11px;background:#fff9ef;font-size:21px}.mt-review-promo h3{margin:0 0 4px;font-size:15px}.mt-review-promo p{margin:0;color:#755b4c}.mt-review-promo-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 8px}.mt-review-promo-actions button{min-height:40px;padding:8px 6px;background:#f7d8cb;border-color:#bf8a72;color:#693d36}.mt-review-promo>small{display:block;color:#8d6855;font-size:11px}.mt-review-copy em{display:block;width:max-content;max-width:100%;margin-bottom:3px;padding:1px 7px;border-radius:20px;background:#f6e2d5;color:#9c584c;font-size:10px;font-style:normal;font-weight:800}@media(max-width:440px){.mt-review-promo-actions{grid-template-columns:1fr}}

.mt-root .mt-invite-button{display:block;min-height:44px;margin:12px;padding:10px 14px;border:1px solid #9b7851;border-radius:9px;background:#eec889;color:#513d30;font-size:13px;font-weight:800;touch-action:manipulation}.mt-modal-body>.mt-invite-button{margin:0 0 14px}.mt-account-note,.mt-account-shops{padding:18px;border:1px solid #39536b;border-radius:10px;background:#111e2a;color:#d6e6f6}.mt-account-note[hidden],.mt-account-shops[hidden]{display:none!important}.mt-account-note p{color:#a9bfd3;font-size:13px;line-height:1.7}.mt-account-note>div,.mt-auth-actions{display:flex;flex-wrap:wrap;gap:10px}.mt-account-note a,.mt-auth-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 16px;border:1px solid #72b4df;border-radius:8px;background:#143953;color:#a7ddff;text-decoration:none;font-weight:800;font-size:14px}.mt-account-shops label{display:grid;gap:10px;font-size:14px;font-weight:800}.mt-account-shops select{width:100%;min-height:46px;padding:8px;border:1px solid #486886;border-radius:8px;background:#14273a;color:#d4e8fc;font:inherit}.mt-account-shops small{display:block;margin-top:8px;line-height:1.6;color:#9cb4c9}.mt-guest-reminder{padding:10px;border-radius:9px;background:#eddfc7}.mt-auth-actions{margin:10px 0}.mt-invite-card{text-align:center}.mt-invite-card>span{font-size:38px}.mt-invite-card h3{font-size:20px}.mt-invite-card label{display:grid;gap:8px;text-align:left;font-size:13px;font-weight:800;margin:20px 0 12px}.mt-invite-card input{width:100%;min-height:48px;padding:10px;border:1px solid #b8946f;border-radius:8px;background:var(--tea-surface);color:var(--tea-text);font-size:13px;user-select:text}.mt-invite-card>div{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.mt-invite-card>small{display:block;line-height:1.7;font-size:12px;color:#896b53}

/* The counter fills the site frame; viewport sizing is only for fullscreen. */
.mt-toolbar-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.mt-root .mt-invite-icon{display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;margin:0;flex-shrink:0}
.mt-invite-icon svg{display:block;pointer-events:none}
.mt-hub[hidden]{display:none!important}
.mt-play-entry .mt-account-note,.mt-play-entry .mt-account-shops{display:none!important}
@media(max-width:420px){.mt-arena-toolbar .mt-toolbar-actions{gap:6px}}

/* The game toolbar uses icons with names available to assistive technology. */
.mt-root .mt-arena-toolbar button{position:relative;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;flex-shrink:0}
.mt-arena-toolbar svg{display:block;pointer-events:none}
.mt-help-icon{display:grid;place-items:center;width:21px;height:21px;border:1.8px solid currentColor;border-radius:50%;font-size:14px;font-weight:700;line-height:1}
.mt-menu-editor-actions{position:sticky;top:-18px;z-index:2;display:flex;gap:10px;margin:-18px -20px 18px;padding:12px 20px;background:#fff4e2;border-bottom:1px solid #ead4b4}
.mt-menu-editor-actions button{min-height:44px}
@media(max-width:500px){.mt-menu-editor-actions{top:-16px;margin:-16px -16px 16px;padding:12px 16px}}
.mt-name-count + .mt-guest-reminder + .mt-auth-actions{justify-content:center}

/* First-shop tutorial follows the live canvas controls without covering their hit areas. */
.mt-tutorial-target{position:absolute;z-index:4;pointer-events:none;border:3px solid #ffcf4d;border-radius:12px;background:#ffd84c22;box-shadow:0 0 0 3px #fff9e8,0 0 22px #f8a626;animation:mt-tutorial-glow 1.5s ease-in-out infinite}
.mt-tutorial-target[hidden],.mt-tutorial-coach[hidden]{display:none!important}
.mt-tutorial-coach{position:absolute;z-index:5;width:min(290px,90%);padding:12px 14px;border:2px solid #c08936;border-radius:14px;background:#fff9e8;color:var(--tea-text);box-shadow:0 6px 22px #59433835;pointer-events:none;text-align:left}
.mt-tutorial-coach small{display:block;margin:0 0 4px;font-size:9px;font-weight:800;letter-spacing:.6px;color:#9e6e28}
.mt-tutorial-coach strong,.mt-tutorial-modal strong{display:block;font-size:14px;line-height:1.35}
.mt-tutorial-coach p,.mt-tutorial-modal p{margin:5px 0;font-size:12px;line-height:1.5}
.mt-root [data-mt-tutorial-skip]{pointer-events:auto;min-height:32px;margin:0;padding:5px 0;border:0;background:none;color:#927657;font-size:11px;text-decoration:underline}
.mt-tutorial-modal{position:sticky;top:-18px;z-index:3;padding:12px 14px;margin:-18px -20px 16px;background:#fff3ca;border-bottom:2px solid #e5b456;color:var(--tea-text)}
.mt-tutorial-focus{outline:3px solid #efb52d!important;outline-offset:3px;box-shadow:0 0 18px #f1b53366;animation:mt-tutorial-glow 1.5s ease-in-out infinite}
@keyframes mt-tutorial-glow{50%{box-shadow:0 0 0 3px #fff9e8,0 0 28px #f8a62699}}
@media(max-width:500px){.mt-tutorial-modal{top:-16px;margin:-16px -16px 16px}}
@media(prefers-reduced-motion:reduce){.mt-tutorial-target,.mt-tutorial-focus{animation:none}}

/* Visitors stand in front of the cart and browse the owner's public menu. */
.mt-visiting [data-mt-canvas]{visibility:hidden}
.mt-friend-exterior{position:absolute;inset:0;overflow:hidden;background:#fdf4e5}
.mt-friend-exterior[hidden]{display:none!important}
.mt-friend-scene{height:100%;display:flex;flex-direction:column;min-height:0;color:var(--tea-text);font-family:'Trebuchet MS','Segoe UI',sans-serif;background:#fdf4e5}
.mt-friend-scene-heading{flex-shrink:0;text-align:center;padding:18px 12px 8px;background:#fdf6e8}
.mt-friend-scene-heading>small{display:block;color:#a77b56;font-size:10px;font-weight:800;letter-spacing:1.3px}
.mt-friend-scene-heading h2{margin:5px 0 6px;font-size:clamp(19px,4vw,28px);line-height:1.25;overflow-wrap:anywhere}
.mt-friend-scene-heading p{margin:0;color:#8a705a;font-size:12px;line-height:1.8}
.mt-friend-open{display:inline-block;margin-left:7px;padding:2px 9px;border:1px solid #c8ab93;border-radius:20px;background:#f1e2d2;color:#936d56;font-size:11px;font-weight:800;white-space:nowrap}
.mt-friend-open.is-open{border-color:#a7b584;background:#e7edd3;color:#5b7249}
.mt-friend-art{flex:1;min-height:0;overflow:hidden;background:#fdf6e8}
.mt-friend-art svg{display:block;width:100%;height:100%;font-family:'Trebuchet MS','Segoe UI',sans-serif}
.mt-friend-scene-footer{flex-shrink:0;text-align:center;padding:12px 14px 9px;border-top:1px solid #debf99;background:#fbecd6}
.mt-friend-public-stats{display:flex;justify-content:center;flex-wrap:wrap;gap:6px 15px;color:#947252;font-size:11px}
.mt-friend-scene-footer>p{font-size:12px;color:#856b55;margin:8px 0 11px}
.mt-friend-visit-actions{display:flex;gap:9px}
.mt-root .mt-friend-visit-actions button{flex:1;min-width:0;min-height:44px;padding:9px 10px;border:1px solid #b59971;border-radius:10px;background:var(--tea-surface);color:#725638;font-size:14px;font-weight:800}
.mt-root .mt-friend-visit-actions [data-mt-friend-purchase]{border-color:#8b9e6f;background:#dce7c1;color:#4e6841}
.mt-root .mt-friend-visit-actions button:disabled{background:#eddfce;color:#a38d75;border-color:#d2bda5;opacity:1}
.mt-root .mt-friend-return{min-height:34px;margin-top:4px;padding:5px 8px;border:0;background:none;color:#9a7859;font-size:11px}
.mt-friend-menu-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px;font-size:13px}
.mt-friend-menu-banner strong{min-width:0;overflow-wrap:anywhere}
.mt-friend-menu-banner button{flex-shrink:0;min-height:44px}
.mt-friend-purchase-notice{text-align:center;padding:10px 0 6px}
.mt-friend-purchase-notice>span{display:block;font-size:44px}
.mt-modal-body .mt-friend-purchase-notice h3{margin:15px 0 10px;font-size:18px;line-height:1.5}
.mt-friend-purchase-notice>p{color:#8e745e}
.mt-friend-purchase-notice button{min-height:44px;margin:8px 3px 0}
@media(max-width:360px){.mt-friend-scene-heading{padding-top:10px}.mt-friend-scene-footer{padding:9px 10px 5px}.mt-friend-public-stats{gap:5px 9px;font-size:10px}.mt-friend-scene-footer>p{font-size:11px;margin:6px 0 8px}.mt-root .mt-friend-visit-actions button{font-size:12px}.mt-friend-return{font-size:10px}}
.mt-root .mt-arena-toolbar .mt-shop-title{display:flex;align-items:center;justify-content:flex-start;gap:4px;flex:1 1 auto;min-width:0;width:auto;height:44px;padding:5px 10px;border-color:transparent;background:transparent;font-size:15px;font-weight:800;text-align:left;overflow:hidden}
.mt-shop-title [data-mt-shop-title]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mt-root .mt-arena-toolbar .mt-shop-title:hover,.mt-root .mt-arena-toolbar .mt-shop-title:focus-visible{border-color:#a5896a;background:#795b45}
@media(max-width:520px){.mt-root .mt-arena-toolbar .mt-shop-title{font-size:12px;padding:4px;gap:2px}}
.mt-root .mt-arena-toolbar .mt-shop-title{font-size:17px}
.mt-root .mt-arena-toolbar button:not(.mt-shop-title){font-size:14px}
@media(max-width:520px){.mt-root .mt-arena-toolbar .mt-shop-title{font-size:14px}}

/* Hold gestures belong to the counter; form fields remain editable. */
.mt-counter-stage,.mt-counter-stage *,.mt-arena-toolbar,.mt-arena-toolbar *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}

/* Keep navigation readable independently of the canvas scale. */
.mt-counter-screen{aspect-ratio:18/31}
.mt-bottom-navigation{display:flex;flex:none;gap:5px;width:100%;padding:7px;background:#fff1d8;border-top:2px solid #b79871;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.mt-root .mt-bottom-navigation button{display:flex;flex:1 1 0;min-width:0;min-height:76px;align-items:center;justify-content:center;flex-direction:column;gap:6px;padding:8px 3px;margin:0;border:1px solid #cdae83;border-radius:10px;background:#fff8e9;color:var(--tea-text);font:700 16px/1.15 "Segoe UI",sans-serif;touch-action:manipulation;cursor:pointer}
.mt-bottom-navigation button:hover{background:#f8dfb4}.mt-bottom-navigation button:active{background:#edc78e}.mt-bottom-navigation button:focus-visible{outline:3px solid #ba6134;outline-offset:-3px}
.mt-bottom-icon{position:relative;display:block;width:27px;height:27px}.mt-bottom-icon svg{width:100%;height:100%}.mt-bottom-icon b{position:absolute;top:-5px;right:-10px;min-width:19px;height:19px;padding:2px;border-radius:12px;background:#b84665;color:white;font:700 12px/15px sans-serif}
.mt-arena.is-fullscreen{height:100dvh!important;max-height:none!important}
.mt-arena.is-fullscreen .mt-arena-toolbar{flex:0 0 auto;min-height:52px}
.mt-arena.is-fullscreen .mt-counter-stage{display:flex;align-items:stretch;justify-content:center;flex:1 1 0;min-height:0;overflow:hidden;container-type:size}
.mt-arena.is-fullscreen .mt-counter-screen{height:100%;max-height:none;aspect-ratio:auto;width:min(100%,calc((100dvh - 148px)*18/31))}
@supports(width:1cqh){.mt-arena.is-fullscreen .mt-counter-screen{width:min(100%,calc(100cqh*18/31))}}
.mt-arena.is-fullscreen .mt-bottom-navigation{margin-top:0}
@media(max-width:420px){.mt-bottom-navigation{gap:3px;padding:5px}.mt-root .mt-bottom-navigation button{font-size:14px;min-height:76px;padding:7px 2px}.mt-bottom-icon{width:26px;height:26px}}
@media(max-height:500px) and (orientation:landscape){.mt-arena.is-fullscreen .mt-bottom-navigation button{min-height:54px;flex-direction:row;font-size:14px}.mt-arena.is-fullscreen .mt-bottom-navigation{padding:4px}}

/* Compact bottom controls at approximately half the previous height. */
.mt-bottom-navigation{padding:4px;gap:4px}
.mt-root .mt-bottom-navigation button{min-height:40px;height:40px;gap:2px;padding:2px;border-radius:7px;font-size:13px;line-height:15px;white-space:nowrap}
.mt-bottom-icon{width:18px;height:18px;flex:none}
.mt-arena.is-fullscreen .mt-counter-screen{width:min(100%,calc((100dvh - 106px)*18/31))}
@supports(width:1cqh){.mt-arena.is-fullscreen .mt-counter-screen{width:min(100%,calc(100cqh*18/31))}}
@media(max-width:420px){.mt-root .mt-bottom-navigation button{font-size:12px}.mt-bottom-navigation{gap:3px;padding:4px}}
@media(max-height:500px) and (orientation:landscape){.mt-arena.is-fullscreen .mt-bottom-navigation button{min-height:40px;height:40px;font-size:13px}}

/* Canvas controls provide their own feedback; never highlight the entire game on tap. */
.mt-root .mt-counter-screen canvas{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}

.mt-visit-navigation{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px;justify-content:center}.mt-visit-navigation>div{display:flex;gap:8px;width:100%;justify-content:center}.mt-visit-navigation button{border:1px solid #cfb497;border-radius:10px;background:#fff8e9;color:#624838;padding:10px 12px;min-height:42px;font:inherit;font-weight:700;cursor:pointer}.mt-visit-navigation button:disabled{opacity:.4;cursor:default}.mt-root.mt-visiting .mt-friend-exterior{overflow-y:auto}

.mt-root .mt-shop-title{display:flex;align-items:center;gap:9px;min-width:0;overflow:hidden}.mt-header-owner{display:flex;align-items:center;gap:7px;min-width:0;max-width:52%;flex-shrink:1}.mt-header-avatar{position:relative;display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border-radius:50%;overflow:hidden;background:#f5d9b4;color:#654937;border:1px solid #e5c39c}.mt-header-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.mt-header-nickname{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#ffe8c8}.mt-root [data-mt-shop-title]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mt-header-owner+[data-mt-shop-title]{border-left:1px solid #ba9879;padding-left:9px}@media(max-width:420px){.mt-header-owner{max-width:48%;gap:4px}.mt-header-avatar{width:26px;height:26px;flex-basis:26px}.mt-root .mt-shop-title{gap:5px}.mt-header-nickname{font-size:11px}.mt-header-owner+[data-mt-shop-title]{padding-left:5px}}

.mt-rank-owner{display:block;margin:5px 0;font-size:12px;color:#96775c}.mt-hub-rank .mt-rank-owner{color:#9bd7f4}.mt-rank-owner.is-guest{opacity:.75}.mt-hub-visit{flex-shrink:0;padding:10px 12px;border:1px solid #547b8d;border-radius:9px;color:#bdeaff;background:#173748;font-size:12px;font-weight:700;text-decoration:none}.mt-hub-rank a:focus-visible{outline:2px solid #84d4ff;outline-offset:3px}@media(max-width:420px){.mt-hub-visit{padding:9px 7px;font-size:11px}.mt-hub-rank .mt-rank-owner{font-size:11px}}

.mt-root .mt-rank-owner{display:flex;align-items:center;gap:10px;text-decoration:none;margin:8px 0;min-width:0}.mt-root .mt-rank-avatar{width:36px;height:36px;flex:0 0 36px;font-size:16px}.mt-root .mt-rank-nick{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.7}.mt-root .mt-rank-nick .user-nick,.mt-root .mt-rank-nick .user-nick-text{white-space:normal;max-width:100%;overflow:visible;text-overflow:clip}.mt-root .mt-rank-nick .user-nick{display:inline;line-height:1.7}.mt-root .mt-rank-nick .role-name{display:inline;font-size:13px}.mt-root .mt-hub-rank>div>small,.mt-root .mt-rank-item>div>small{display:flex;gap:13px;font-size:12px}.mt-root .mt-hub-visit{font-size:20px;min-width:42px;text-align:center}.mt-root .mt-rank-visit{flex:0 0 auto}.mt-root .mt-rank-owner.is-guest{font-size:11px}.mt-root .mt-hub-rank{gap:12px}.mt-root .mt-hub-rank>div{min-width:0;flex:1}

.mt-rank-avatar-fallback{display:grid;place-items:center;position:relative;border:2px solid;border-radius:50%;background:#203c49}.mt-rank-avatar-fallback>img{width:100%;height:100%;border-radius:50%;object-fit:cover}.mt-rank-avatar-fallback .mt-rank-frame-art{position:absolute;inset:-15%;width:130%;height:130%;max-width:none;object-fit:contain;border-radius:0}

.mt-rank-nick .gender-name-icon{width:14px;height:16px;object-fit:contain;vertical-align:middle}.mt-rank-nick .name-icon,.mt-rank-nick img.user-badge-after{width:auto;max-width:44px;height:16px;object-fit:contain;vertical-align:middle}.mt-rank-nick .user-badge-label{color:var(--badge-color);background:var(--badge-bg);border-radius:4px;font-size:10px;padding:1px 4px}.mt-rank-nick .has-custom-name-style .user-nick-text{color:var(--nick-color);text-shadow:0 0 5px var(--nick-text-glow)}.mt-rank-nick .has-nick-background{background:linear-gradient(110deg,var(--nick-bg-a),var(--nick-bg-b));border-radius:5px;padding:2px 4px}

.mt-root .mt-hub-visit{font-size:12px;white-space:nowrap}

/* Shop directory: shared geometry, separate lobby and in-game palettes. */
.mt-root .mt-shop-rank{--rank-line:#ead9c4;--rank-muted:#94785f;--rank-ink:#574333;display:grid;grid-template-columns:112px minmax(0,1fr);gap:6px 16px;align-items:start;padding:16px;border:0;border-bottom:1px solid var(--rank-line);border-radius:0;background:transparent;min-height:142px}
.mt-root .mt-hub-rank.mt-shop-rank{--rank-line:#28333d;--rank-muted:#95a8b8;--rank-ink:#f1e8da}
.mt-root .mt-shop-rank:last-child{border-bottom:0}
.mt-root .mt-shop-rank.is-me{background:#96ac7130;border-left:0;padding-left:16px}
.mt-root .mt-hub-rank.mt-shop-rank.is-me{background:#203b463b}
.mt-root .mt-shop-rank .mt-rank-picture{position:relative;grid-row:1/3;margin:0;width:112px;height:110px;overflow:hidden;border-radius:12px;background:#eee2ce;box-shadow:inset 0 0 0 1px #72594020}
.mt-root .mt-rank-picture svg.mt-decor-scene{display:block;width:100%;height:100%;max-width:none;overflow:hidden;object-fit:cover}
.mt-root .mt-rank-picture .mt-rank-position{position:absolute;left:6px;top:6px;padding:3px 7px;min-width:30px;border-radius:6px;background:#fff6e8;color:#79644f;border:1px solid #80624633;line-height:20px;font-size:12px;font-weight:800;box-shadow:0 2px 4px #38251d12}
.mt-root .mt-shop-rank[data-rank="1"] .mt-rank-position{background:#f9d783;color:#70501e;border-color:#e4b64e}
.mt-root .mt-shop-rank[data-rank="2"] .mt-rank-position{background:#e4eaf0;color:#526174;border-color:#b9c6d1}
.mt-root .mt-shop-rank[data-rank="3"] .mt-rank-position{background:#efd0b6;color:#845532;border-color:#d7aa84}
.mt-root .mt-shop-rank .mt-rank-details{display:block;min-width:0;padding-top:2px}
.mt-root .mt-shop-rank .mt-rank-shop-name{display:block;font-size:16px;line-height:1.4;font-weight:750;color:var(--rank-ink);overflow-wrap:anywhere}
.mt-root .mt-rank-you{display:inline-block;vertical-align:middle;margin-left:7px;font-size:10px;line-height:17px;border-radius:4px;padding:0 5px;color:var(--rank-muted);border:1px solid var(--rank-line);font-weight:500}
.mt-root .mt-shop-rank .mt-rank-owner{margin:5px 0 0;font-size:12px;line-height:1.6;min-height:20px;color:var(--rank-muted);gap:0}
.mt-root .mt-shop-rank .mt-rank-owner.is-guest{opacity:1;font-size:11px}
.mt-root .mt-shop-rank .mt-rank-owner:hover .mt-rank-nick{text-decoration:underline;text-underline-offset:3px}
.mt-root .mt-shop-rank .mt-rank-bottom{grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding-top:6px}
.mt-root .mt-rank-numbers{display:flex;align-items:center;flex-wrap:wrap;gap:4px 14px;color:var(--rank-muted);font-size:12px;font-variant-numeric:tabular-nums}
.mt-root .mt-rank-numbers>span{white-space:nowrap}
.mt-root .mt-shop-rank .mt-rank-link{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:38px;min-width:78px;padding:7px 12px;border-radius:8px;font-size:12px;font-weight:650;line-height:1.4;white-space:nowrap;text-decoration:none;box-sizing:border-box;transition:background-color .15s}
.mt-root .mt-hub-rank .mt-rank-link{background:#223641;border:1px solid #425e6b;color:#d7e9ee}
.mt-root .mt-hub-rank .mt-rank-link:hover{background:#304e5c}
.mt-root .mt-rank-item .mt-rank-link{background:#edf0df;border:1px solid #b4c297;color:#526740}
.mt-root .mt-rank-item .mt-rank-link:hover{background:#dfe7cd}
.mt-root .mt-rank-list{gap:0;border:1px solid #ead9c4;border-radius:14px;overflow:hidden;background:#fffaf1}
@media(max-width:520px){
 .mt-root .mt-shop-rank{grid-template-columns:80px minmax(0,1fr);gap:10px 12px;padding:14px;min-height:0}
 .mt-root .mt-shop-rank.is-me{padding-left:14px}
 .mt-root .mt-shop-rank .mt-rank-picture{grid-row:1;width:80px;height:82px;border-radius:10px}
 .mt-root .mt-shop-rank .mt-rank-shop-name{font-size:14px}
 .mt-root .mt-shop-rank .mt-rank-bottom{grid-column:1/-1;padding-top:0}
 .mt-root .mt-shop-rank .mt-rank-link{min-height:40px;min-width:82px}
 .mt-root .mt-shop-rank .mt-rank-owner{margin-top:5px}
 .mt-root .mt-rank-numbers{gap:14px}
}

.mt-root:not(.mt-visiting) [data-mt-home-tool]{display:none}
.mt-root .mt-visit-shortcuts{flex-shrink:0;justify-content:space-between;margin:0;padding:10px 12px;background:#fdf6e8;border-bottom:1px solid #e8d6bb}
.mt-root .mt-visit-shortcuts button{font-size:13px;min-height:42px;padding:9px 12px}
.mt-root .mt-visit-shortcuts [data-mt-visit-return]{background:#ead7b9;border-color:#c3a27a;color:#59402b}
@media(max-width:360px){.mt-root .mt-visit-shortcuts{gap:6px;padding:8px}.mt-root .mt-visit-shortcuts button{font-size:12px;padding:9px 8px}}

.mt-root .mt-rank-stat{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;vertical-align:middle}
.mt-root .mt-rank-level-icon{color:#82b8d2;flex-shrink:0;vertical-align:middle}
.mt-root .mt-rank-item .mt-rank-level-icon,.mt-root .mt-my-rank .mt-rank-level-icon{color:#638897}
.mt-root .mt-hub-mine>span,.mt-root .mt-my-rank>span{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.mt-root .mt-rank-numbers{gap:5px 10px}
@media(max-width:360px){.mt-root .mt-rank-numbers{gap:5px 8px;font-size:11px}}

.mt-root .mt-discovery-tip{display:flex;align-items:center;gap:8px;flex:0 0 auto;height:34px;padding:5px 12px;background:#fff0cf;border-bottom:1px solid #dfc49a;color:#795735;font-size:12px;line-height:17px;box-sizing:border-box}
.mt-root .mt-discovery-tip>svg{flex:0 0 16px;color:#b77d27}
.mt-root .mt-discovery-tip>span{min-width:0;overflow-wrap:anywhere}
.mt-root.mt-visiting .mt-discovery-tip{display:none}
@media(max-width:520px){.mt-root .mt-discovery-tip{height:46px;padding:5px 10px;font-size:11.5px}}
.mt-expiry-list{display:grid;gap:9px;margin:14px 0}.mt-expiry-list article{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px 12px;border:1px solid #e5c9ae;border-radius:12px;background:#fffaf1;color:#694a39}.mt-expiry-list article.is-soon{border-color:#d76460;background:#fff1e9}.mt-expiry-list article>span{font-size:25px}.mt-expiry-list article strong{display:block;font-size:13px}.mt-expiry-list article small{display:block;font-size:10px;font-weight:500;color:#90715e}.mt-expiry-list article>b{text-align:right;font-size:11px;color:#ba5554}.mt-expiry-list article>b small{margin-top:4px}@media(max-width:450px){.mt-expiry-list article{grid-template-columns:30px minmax(0,1fr);padding:8px}.mt-expiry-list article>b{grid-column:2;text-align:left}}

/* menus */
/* Milk-tea menus share cream paper, rose actions and the shop's cup illustration.
   Radius scale: dialog 22px, sections 14px, inputs/buttons 10px. */
.mt-root .mt-modal{padding:16px}
.mt-root .mt-modal-backdrop{background:#38251e99;backdrop-filter:blur(4px)}
.mt-root .mt-modal-box{isolation:isolate;width:min(600px,100%);max-height:calc(100dvh - 32px);border:1px solid #a88066;border-radius:22px;background:#fff8ed;box-shadow:0 20px 70px #4a302c3d,0 0 0 4px #fff3e333;color:var(--tea-text)}
.mt-root .mt-modal-box:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('https://data.ghepdoi.us/game/trasua/assets/images/cf4e189f7c682348-modal-cups.webp') center/150px auto repeat;opacity:.035}
.mt-root .mt-modal-box>header{position:relative;flex-shrink:0;min-height:112px;align-items:center;padding:20px 22px;border-bottom:1px solid #e7cdb8;background:linear-gradient(110deg,#f4e0d6,#fff2de);overflow:hidden}
.mt-root .mt-modal-box>header:after{content:'';position:absolute;right:60px;bottom:-4px;width:128px;height:110px;background:url('https://data.ghepdoi.us/game/trasua/assets/images/cf4e189f7c682348-modal-cups.webp') center bottom/contain no-repeat;pointer-events:none}
.mt-root .mt-modal-box>header>div{position:relative;z-index:1;width:calc(100% - 164px);min-width:0}
.mt-root .mt-modal-box>header small{display:block;font-size:11px;line-height:1.5;color:#825a46;letter-spacing:.5px;font-weight:700;overflow-wrap:anywhere}
.mt-root .mt-modal-box h2{margin:6px 0 0;font-size:23px;line-height:1.3;overflow-wrap:anywhere;color:var(--tea-text)}
.mt-root .mt-modal-box>header [data-mt-close]{position:absolute;z-index:2;right:14px;top:14px;width:44px;height:44px;min-height:44px;min-width:44px;border:1px solid #c5a28c;border-radius:10px;background:#fff8edcc;color:#73513d;font-size:24px;display:grid;place-items:center;padding:0}
.mt-root .mt-modal-box>header [data-mt-close][hidden]{display:none}
.mt-root .mt-modal-body{position:relative;min-height:0;padding:20px 22px 22px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c6a58c #f4e6d5}
.mt-root .mt-modal-body p{font-size:14px;line-height:1.65;margin:0 0 16px}
.mt-root .mt-modal-body h3{font-size:16px;line-height:1.4;margin:22px 0 12px}
.mt-root .mt-modal-body p:last-child{margin-bottom:0}
.mt-root .mt-modal button,.mt-root .mt-modal a{touch-action:manipulation}
.mt-root .mt-modal-action,.mt-root .mt-name-form button,.mt-root .mt-shop-item button,.mt-root .mt-friend-item button{min-height:44px;padding:10px 14px;border:1px solid #955b57;border-radius:10px;background:#f2d4ce;color:#754541;font-size:13px;line-height:1.4;font-weight:800;transition:background .15s,transform .15s}
.mt-root .mt-modal button:not(:disabled):hover{filter:brightness(.96)}
.mt-root .mt-modal button:not(:disabled):active{transform:translateY(1px)}
.mt-root .mt-modal button:disabled{opacity:1;border-color:#d9c8b6;background:#eee6da;color:#95816f;cursor:default}
.mt-root .mt-modal button:focus-visible,.mt-root .mt-modal a:focus-visible,.mt-root .mt-modal input:focus-visible,.mt-root .mt-modal select:focus-visible,.mt-root .mt-modal summary:focus-visible{outline:3px solid #985954;outline-offset:2px}
.mt-root .mt-modal input:not([type='range']),.mt-root .mt-modal select{border:1px solid #c4a78f;border-radius:10px;background:var(--tea-surface);color:var(--tea-text);min-height:44px;font-size:14px;line-height:1.5}
.mt-root .mt-modal input::placeholder{color:#846b5e;opacity:1}
.mt-root .mt-modal-body .mt-form-footnote{font-size:12px;line-height:1.6;color:#816655;margin:16px 0 0}
.mt-root .mt-opening-intro>p{margin:0 0 15px}
.mt-opening-fund{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;border:1px solid #ddc4a5;border-radius:14px;background:#f6ead6;margin-bottom:20px}
.mt-opening-fund>span{font-size:13px;color:#795b45}
.mt-opening-fund strong{font-size:26px;line-height:1.3;color:#6a4c38;font-variant-numeric:tabular-nums}
.mt-opening-fund strong small{font-size:13px;font-weight:600}
.mt-root .mt-name-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.mt-wallet-balances{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}
.mt-wallet-balances>div{padding:13px 15px;border:1px solid #dec7b0;border-radius:14px;background:#f6ead6;min-width:0}
.mt-wallet-balances span{display:block;font-size:12px;color:#795b45}
.mt-wallet-balances strong{display:block;margin-top:4px;font-size:26px;line-height:1.3;font-variant-numeric:tabular-nums}
.mt-wallet-balances strong small{margin-left:5px;font-size:12px;font-weight:600}
.mt-root .mt-wallet-note{color:#795b45;font-size:13px}
.mt-topup-packs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mt-topup-pack{display:flex;flex-direction:column;gap:10px;padding:16px;border:1px solid #d8baa5;border-radius:15px;background:#fffaf1;min-width:0}
.mt-topup-cost{font-size:22px;font-weight:800;font-variant-numeric:tabular-nums}
.mt-topup-cost small,.mt-topup-pack strong small{font-size:12px;font-weight:600}
.mt-topup-pack strong{font-size:18px;color:#496445}
.mt-topup-pack>small{font-size:12px;color:#795b45}
.mt-topup-pack button{margin-top:auto;width:100%}
.mt-topup-pack.is-used{background:#eee8de;border-color:#cfc3b3}
.mt-root .mt-wallet-error{margin:16px 0 10px;color:#a64440;font-size:13px}
@media(max-width:500px){.mt-topup-packs{grid-template-columns:1fr}.mt-topup-pack{gap:8px;padding:13px}.mt-wallet-balances>div{padding:11px}.mt-wallet-balances strong{font-size:23px}}
.mt-name-label{grid-column:1/-1;font-size:13px;font-weight:800}
.mt-root .mt-name-form input{width:100%;padding:10px 12px}
.mt-root .mt-name-form button{white-space:nowrap}
.mt-root .mt-name-count{font-size:12px;color:#816655;margin:8px 0 16px}
.mt-root .mt-guest-reminder{padding:12px 14px;border:1px solid #e4d3bf;border-radius:14px;background:#f4ecdf;font-size:13px;line-height:1.6;margin-bottom:14px}
.mt-root .mt-modal .mt-auth-actions{justify-content:center;margin:12px 0 0;gap:8px}
.mt-root .mt-modal .mt-auth-actions a{background:#fff9ef;border:1px solid #b98275;border-radius:10px;color:#754541;min-height:44px;font-size:13px;padding:10px 18px}
.mt-root .mt-business-summary h3{font-size:20px;margin:0 0 4px;overflow-wrap:anywhere}
.mt-root .mt-business-summary>p{color:#816655;font-size:13px;margin:0 0 16px}
.mt-business-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px 16px;border-radius:14px;border:1px solid #dec6aa;background:#f8eddc}
.mt-business-facts>div+div{border-left:1px solid #dfc7b0;padding-left:14px}
.mt-business-facts span{display:block;font-size:12px;line-height:1.4;color:#816655;margin-bottom:6px}
.mt-business-facts strong{font-size:24px;line-height:1.3;font-variant-numeric:tabular-nums}
.mt-business-facts strong small{font-size:12px;font-weight:500}
.mt-business-cost{display:block;color:#816655;font-size:12px;line-height:1.6;margin-top:10px}
.mt-business-stock{display:grid;gap:5px;padding:13px 14px;margin:18px 0;border-left:3px solid #c89262;background:#f6e8d5;border-radius:0 10px 10px 0}
.mt-business-stock strong{font-size:14px}
.mt-business-stock span{color:#816655;font-size:12px;line-height:1.5}
.mt-business-stock.is-ready{border-color:#8b9d71;background:#eef0dd}
.mt-business-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.mt-root .mt-business-actions .mt-modal-action{min-width:0;background:#fff9ee;border-color:#c6a18a;color:#795743}
.mt-root .mt-business-actions .mt-business-close-day{grid-column:1/-1;background:#87524c;color:#fff8ef;border-color:#87524c}
.mt-root .mt-business-actions .mt-business-close-day:hover{background:#754540}
.mt-root .mt-modal .mt-rescue{border:1px solid #d8bb8e;border-radius:14px;background:#faf0d7;margin:18px 0 0}
.mt-root .mt-modal .mt-rescue>span{font-size:24px}
.mt-root .mt-modal .mt-rescue h3{margin:0 0 6px;font-size:15px}
.mt-root .mt-modal .mt-rescue p{font-size:13px;margin:0 0 12px}
.mt-root .mt-starter-pack{grid-template-columns:minmax(0,1fr) auto;gap:7px 16px;border:1px solid #c1c8a1;background:#f0f2df;padding:15px;border-radius:14px;margin-bottom:16px}
.mt-root .mt-starter-pack strong{font-size:15px;line-height:1.4}
.mt-root .mt-starter-pack small{grid-column:1;font-size:12px;line-height:1.55;color:#616b49}
.mt-root .mt-starter-pack button{grid-column:2;grid-row:1/3;align-self:center;white-space:nowrap}
.mt-root .mt-warehouse-tabs{flex-wrap:nowrap;gap:6px;overflow-x:auto;padding-bottom:7px;margin-bottom:12px;scrollbar-width:thin;scrollbar-color:#c6a58c transparent}
.mt-root .mt-warehouse-tabs button{flex-shrink:0;border:1px solid #dec7b0;border-radius:10px;background:#fff9ee;color:#755442;min-height:44px;font-size:12px;padding:8px 11px;white-space:nowrap}
.mt-root .mt-warehouse-tabs button.is-active{color:#fff8ef;background:#87524c;border-color:#87524c}
.mt-root .mt-warehouse-grid{gap:10px}
.mt-root .mt-stock-card{position:relative;gap:8px;padding:13px;border:1px solid #dec7b0;border-radius:14px;background:#fffaf1;min-width:0}
.mt-root .mt-stock-card>span{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#f5e4d2;font-size:25px}
.mt-root .mt-stock-card strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.mt-root .mt-stock-card small{font-size:12px;color:#816655;line-height:1.6}
.mt-root .mt-stock-card button{font-size:12px;padding:9px 6px;min-height:44px}
.mt-root .mt-venue-card{border:1px solid #ddc4aa;border-radius:14px;padding:15px;background:#fffaf1}
.mt-root .mt-venue-card.is-current{border-color:#b7c095;background:#f0f2df}
.mt-root .mt-venue-card small,.mt-root .mt-shop-item small,.mt-root .mt-friend-item small,.mt-root .mt-rank-item small{color:#816655;font-size:12px;line-height:1.5}
.mt-root .mt-shop-item,.mt-root .mt-friend-item,.mt-root .mt-rank-item{padding:12px;border:1px solid #dfc8b1;border-radius:14px;background:#fffaf1;gap:10px}
.mt-root .mt-shop-item strong,.mt-root .mt-friend-item strong,.mt-root .mt-rank-item strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.mt-root .mt-shop-item>span,.mt-root .mt-friend-item>span{display:grid;place-items:center;flex-shrink:0;width:36px;height:40px;font-size:24px}
.mt-root .mt-friend-shop,.mt-root .mt-my-rank{border:1px solid #c7cbab;border-radius:14px;background:#f0f2df}
.mt-root .mt-menu-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.mt-root .mt-menu-toolbar button{font-size:13px}
.mt-root .mt-menu-editor-actions{background:#fff8ed;border-bottom:1px solid #e1cbb5}
.mt-root .mt-dish-editor{border-color:#d3b8a0;border-radius:14px;background:#fffaf1}
.mt-root .mt-menu-edit-heading{color:#816655}
.mt-root .mt-menu-edit-teas input,.mt-root .mt-menu-edit-extras input{padding:9px}
.mt-root .mt-help-intro{color:#795b49}
.mt-root .mt-help-list{counter-reset:mt-step;list-style:none;margin:0;padding:0;display:grid;gap:15px}
.mt-root .mt-help-list li{position:relative;margin:0;padding-left:42px;font-size:13px;line-height:1.6}
.mt-root .mt-help-list li:before{counter-increment:mt-step;content:counter(mt-step);position:absolute;left:0;top:1px;width:28px;height:28px;display:grid;place-items:center;border-radius:10px;background:#f1d7cb;border:1px solid #d7b2a1;color:#85554b;font-weight:800}
.mt-root .mt-help-list li>b{display:block;font-size:14px;line-height:1.4;margin-bottom:4px}
.mt-root .mt-help-list li>span{display:block;color:#816655}
.mt-root .mt-help-recipe{padding:13px 14px;border-radius:14px;background:#f0f2df;border:1px solid #c7cbab;margin:20px 0 15px;font-size:12px;line-height:1.7}
.mt-help-details{border-top:1px solid #e1cbb5}
.mt-help-details summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;font-size:13px;font-weight:800;cursor:pointer;list-style:none}
.mt-help-details summary::-webkit-details-marker{display:none}
.mt-help-details summary:after{content:'+';font-size:20px;font-weight:500;color:#85554b}
.mt-help-details[open] summary:after{content:'−'}
.mt-root .mt-help-details p{font-size:13px;color:#816655;margin:0 0 14px}
.mt-root .mt-invite-link{border-radius:10px;border-color:#c4a78f}
@media(max-width:500px){
  .mt-root .mt-modal{padding:10px}
  .mt-root .mt-modal-box{max-height:calc(100dvh - 20px);border-radius:20px}
  .mt-root .mt-modal-box>header{padding:17px 16px;min-height:106px}
  .mt-root .mt-modal-box>header>div{width:calc(100% - 106px)}
  .mt-root .mt-modal-box>header:after{right:45px;width:85px;height:81px;bottom:0}
  .mt-root .mt-modal-box h2{font-size:20px;line-height:1.3}
  .mt-root .mt-modal-box>header small{font-size:10px}
  .mt-root .mt-modal-body{padding:18px 16px 20px}
  .mt-root .mt-modal input:not([type='range']),.mt-root .mt-modal select{font-size:16px}
  .mt-root .mt-starter-pack{grid-template-columns:1fr}
  .mt-root .mt-starter-pack button{grid-column:1;grid-row:auto;justify-self:stretch;margin-top:4px}
  .mt-root .mt-menu-toolbar{grid-template-columns:1fr}
  .mt-root .mt-business-facts{padding:13px 12px;gap:8px}
  .mt-root .mt-business-facts>div+div{padding-left:10px}
  .mt-root .mt-business-facts strong{font-size:22px}
  .mt-root .mt-modal .mt-rescue{padding:12px;gap:8px}
  .mt-root .mt-modal .mt-rescue>span{display:none}
  .mt-root .mt-stock-card{padding:11px}
  .mt-root .mt-business-actions button{font-size:12px;padding:10px 6px}
}
@media(prefers-reduced-motion:reduce){.mt-root .mt-modal button{transition:none}.mt-root .mt-modal button:not(:disabled):active{transform:none}}

.mt-root .mt-modal .mt-rescue>span{display:none}
.mt-root .mt-menu-poster header h3{font-size:28px;margin:14px 0 24px}
.mt-shop-detail-hero{padding:18px;border:1px solid #ddbda0;border-radius:16px;background:linear-gradient(125deg,#f7e1d5,#fff4df);color:#654636}
.mt-shop-detail-hero small{display:block;color:#a06c5c;font-size:10px;font-weight:800;letter-spacing:.12em}
.mt-shop-detail-hero h3{margin:7px 0!important;font-size:24px!important}
.mt-shop-detail-name{display:flex;align-items:center;gap:8px;min-width:0}
.mt-shop-detail-name h3{overflow-wrap:anywhere}
.mt-root .mt-shop-name-edit{display:grid;place-items:center;flex:none;width:34px;height:34px;padding:7px;border:1px solid #d4aa91;border-radius:10px;background:#fff9ec;color:#7b5344;cursor:pointer;transition:background-color .15s,border-color .15s}
.mt-root .mt-shop-name-edit:hover,.mt-root .mt-shop-name-edit:focus-visible{background:#f9dfcd;border-color:#ba8468}
.mt-root .mt-shop-name-edit svg{width:18px;height:18px}
.mt-root .mt-rename-back{margin-top:12px}
.mt-shop-detail-hero span{font-size:13px;color:#8b6b55}
.mt-shop-detail-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
.mt-shop-detail-facts>div{display:grid;gap:4px;padding:11px;border:1px solid #e1cbb4;border-radius:10px;background:#fffaf1}
.mt-shop-detail-facts span{font-size:11px;color:#90715a}
.mt-shop-detail-facts b{font-size:16px;color:#60453a}
.mt-shop-detail-changes,.mt-shop-detail-invite{padding:14px;margin-top:12px;border:1px solid #e2cbb2;border-radius:13px;background:#fffaf1}
.mt-shop-detail-changes h3,.mt-shop-detail-invite h3{margin:0 0 8px!important;font-size:15px!important}
.mt-shop-detail-changes p{margin:0 0 12px;line-height:1.65;font-size:12px}
.mt-shop-detail-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mt-shop-detail-invite input{width:100%;margin:2px 0 8px}
.mt-root .mt-bankruptcy-button{width:100%;margin-top:14px;border-color:#ad7169;background:#f3dfd7;color:#94524e}
@media(max-width:500px){.mt-shop-detail-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.mt-shop-detail-actions button{font-size:12px}}

/* Keep the shop controls readable while the illustrated counter scales to fit. */
.mt-root .mt-modal-body p{font-size:16px;line-height:1.7}
.mt-root .mt-modal-body h3{font-size:18px}
.mt-root .mt-modal .mt-modal-action,.mt-root .mt-modal .mt-tabs button{font-size:15px}
.mt-root .mt-warehouse-tabs button{font-size:14px}
.mt-root .mt-stock-card strong{font-size:16px}
.mt-root .mt-stock-card small,.mt-root .mt-starter-pack small{font-size:14px}
.mt-root .mt-stock-card button{font-size:14px}
.mt-root .mt-help-list li{font-size:15px}
.mt-root .mt-help-list li>b{font-size:16px}
.mt-root .mt-review-list .mt-review-copy{font-size:15px}
.mt-root .mt-review-list .mt-review-copy small,.mt-root .mt-rating-overview>small{font-size:13px}
.mt-root .mt-shop-detail-changes p{font-size:14px}

/* Local invitation QR: preserve a white four-module quiet zone. */
.mt-root .mt-invite-qr{margin:16px auto;text-align:center}
.mt-root .mt-invite-qr img{display:block;width:248px;max-width:100%;height:auto;margin:0 auto;background:#fff;border:1px solid #e5cfb9;border-radius:12px;image-rendering:pixelated}
.mt-root .mt-invite-qr p{font-size:14px;line-height:1.5;margin:10px auto;max-width:320px}
.mt-root .mt-invite-qr-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:10px}

.mt-root .mt-wallet-summary{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #e5cfb9;font-size:16px}
.mt-root .mt-wallet-history{margin:16px 0}
.mt-root .mt-wallet-history-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.mt-root .mt-wallet-history-heading h3{margin:0;font-size:17px}
.mt-root .mt-wallet-history-heading .mt-modal-action{padding:7px 10px;font-size:13px;min-height:36px}
.mt-root .mt-wallet-history>small{display:block;margin:3px 0 8px;color:#8d7055}
.mt-root .mt-wallet-history-row{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;text-align:left;background:#fffaf1;color:#624b3c;border:1px solid #e5cfb9;border-radius:10px;padding:9px 12px;margin:5px 0;font:inherit;cursor:pointer}
.mt-root .mt-wallet-history-row>span{min-width:0}.mt-root .mt-wallet-history-row b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}
.mt-root .mt-wallet-history-row small{display:block;font-size:12px;margin-top:3px;color:#8d7055}.mt-root .mt-wallet-history-row>strong{white-space:nowrap;font-size:15px}.mt-root .mt-wallet-history-row>strong small{display:inline}
.mt-root .mt-wallet-topup{border:1px solid #dfc4a7;border-radius:12px;padding:12px;margin-top:16px}.mt-root .mt-wallet-topup>summary{font-weight:800;cursor:pointer;font-size:16px}
.mt-root .mt-bill-card{padding:10px 12px;margin-bottom:6px}.mt-root .mt-bill-card>strong{font-size:15px;margin:5px 0}.mt-root .mt-bill-service,.mt-root .mt-bill-open{display:none}.mt-root .mt-bill-card-values{gap:8px;margin-top:6px;font-size:13px}

.mt-root .mt-wallet-balance-title{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}
.mt-root .mt-wallet-add{background:#f5d7a4;color:#59381d;border:1px solid #b58b56;border-radius:8px;font:800 14px "Segoe UI",sans-serif;padding:7px 11px;min-height:36px;cursor:pointer}
.mt-root .mt-wallet-add:hover{background:#f0c981}

.mt-root .mt-furniture-shop{color:#614735}
.mt-root .mt-furniture-shop svg:not([role="img"]){width:20px;height:20px;flex-shrink:0;vertical-align:middle}
.mt-root .mt-furniture-capacity{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;font-size:15px}
.mt-root .mt-furniture-capacity>span:first-child{display:flex;align-items:center;gap:7px}
.mt-root .mt-furniture-slots{display:flex;gap:5px;flex-wrap:wrap;max-width:120px}
.mt-root .mt-furniture-slots i{width:12px;height:12px;background:#efe1ca;border:1px solid #c9ad88;border-radius:4px}.mt-root .mt-furniture-slots .is-owned{background:#829367;border-color:#64764b}
.mt-root .mt-furniture-product{display:grid;grid-template-columns:minmax(140px,.9fr) minmax(0,1fr);align-items:center;gap:18px;padding:16px;border:1px solid #dcc3a6;border-radius:16px;background:#fff9ee}
.mt-root .mt-furniture-art{border-radius:12px;background:#f4e7d3}.mt-root .mt-furniture-art svg{display:block;width:100%;height:auto}
.mt-root .mt-furniture-copy>small:first-child{font-size:10px;font-weight:800;letter-spacing:1px;color:#8a654a}
.mt-root .mt-furniture-copy h3{margin:5px 0 7px;font-size:22px;line-height:1.2;color:#614735}
.mt-root .mt-furniture-copy p{margin:0 0 10px;font-size:14px;line-height:1.5}
.mt-root .mt-furniture-price{display:flex;align-items:center;gap:5px;font-size:24px;color:#835924;margin:10px 0}.mt-root .mt-furniture-price span{font-size:13px;font-weight:600}
.mt-root .mt-furniture-shop .mt-furniture-buy{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;margin:0;background:#697c4e;color:var(--tea-surface);border-color:#56663e;font-size:15px;font-weight:800;white-space:nowrap}
.mt-root .mt-furniture-shop .mt-furniture-buy:disabled{background:#e7dece;color:#796b59;border-color:#cec0aa;opacity:1;cursor:not-allowed}
.mt-root .mt-furniture-availability{display:block;font-size:12px;line-height:1.4;margin-top:8px;color:#826149}
.mt-root .mt-furniture-footer{display:flex;align-items:center;gap:16px;margin-top:14px}.mt-root .mt-furniture-footer p{display:flex;gap:8px;align-items:center;flex:1;margin:0;font-size:13px;line-height:1.5}
.mt-root .mt-furniture-shop .mt-furniture-view{display:flex;align-items:center;gap:8px;white-space:nowrap;min-height:44px;margin:0;font-size:14px}
.mt-root .mt-furniture-staff{border-top:1px solid #dfc7ac;padding-top:14px;margin-top:16px}.mt-root .mt-furniture-staff summary{font-size:15px;font-weight:800;cursor:pointer}
.mt-root .mt-furniture-shop button:focus-visible{outline:3px solid #8a6647;outline-offset:3px}
@media(max-width:480px){.mt-root .mt-furniture-product{grid-template-columns:minmax(100px,.8fr) minmax(0,1fr);gap:12px;padding:12px}.mt-root .mt-furniture-copy h3{font-size:20px}.mt-root .mt-furniture-copy p{font-size:13px}.mt-root .mt-furniture-footer{flex-wrap:wrap;gap:10px}.mt-root .mt-furniture-footer p{flex-basis:100%}.mt-root .mt-furniture-view{width:100%;justify-content:center}.mt-root .mt-furniture-capacity{font-size:13px}.mt-root .mt-furniture-slots{max-width:70px}}

/* Loading is a real connection state, not a simulated percentage. */
.mt-root{position:relative}.mt-root.is-booting{min-height:440px}.mt-root.is-booting>[data-mt-hub],.mt-root.is-booting>[data-mt-arena]{visibility:hidden;max-height:440px;overflow:hidden}
.mt-boot-screen{box-sizing:border-box;min-height:420px;padding:54px 24px 38px;text-align:center;background:radial-gradient(ellipse at 50% 20%,var(--tea-surface),#f7e8d3);color:var(--tea-text);border:1px solid #d8b99a;border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;box-shadow:0 12px 35px #00000014}
.is-booting>.mt-boot-screen{position:absolute;inset:0 0 auto;z-index:30;width:100%}.mt-boot-screen[hidden]{display:none!important}.mt-boot-art{position:relative;padding:14px;margin-bottom:8px}.mt-boot-art img{display:block;border-radius:25px;box-shadow:0 8px 20px #9c694d26}.mt-boot-orbit{position:absolute;inset:0;border:2px solid #e4c9ad;border-top-color:#b65c77;border-right-color:#b65c77;border-radius:50%;animation:mt-boot-spin 1.8s linear infinite}.mt-boot-screen small{font:700 11px/1.5 'Segoe UI',sans-serif;letter-spacing:1.7px;color:#976d54}.mt-boot-screen h2{margin:0;font:800 25px/1.3 'Segoe UI',sans-serif}.mt-boot-screen p{margin:0;max-width:300px;font:400 15px/1.6 'Segoe UI',sans-serif;color:#81664f}.mt-boot-track{width:min(220px,80%);height:5px;background:#e7d5bd;border-radius:8px;overflow:hidden;margin:10px 0}.mt-boot-track span{display:block;width:40%;height:100%;background:#b86b82;border-radius:8px;animation:mt-boot-slide 1.5s ease-in-out infinite}.mt-boot-retry{font:600 13px/1.5 'Segoe UI',sans-serif;color:#775840!important;text-underline-offset:4px;padding:8px}.mt-boot-screen.is-error .mt-boot-orbit,.mt-boot-screen.is-error .mt-boot-track span{animation:none}.mt-boot-screen.is-error .mt-boot-track{display:none}.mt-boot-screen.is-error .mt-boot-retry{padding:11px 22px;background:#6c8057;border-radius:10px;color:white!important;text-decoration:none}
@keyframes mt-boot-spin{to{transform:rotate(360deg)}}@keyframes mt-boot-slide{0%{transform:translateX(-110%)}100%{transform:translateX(350%)}}@media(prefers-reduced-motion:reduce){.mt-boot-orbit,.mt-boot-track span{animation:none!important}}@media(max-width:420px){.mt-boot-screen{padding:40px 18px;min-height:380px}.mt-boot-screen h2{font-size:22px}}

.mt-root .mt-rank-item .mt-rank-visit{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;gap:7px}.mt-root .mt-rank-visit button{white-space:nowrap;padding:8px 11px;font-size:13px;min-height:36px}
/* Realtime shop chat remains available while the counter is paused or visited. */
.mt-chat{position:fixed;right:max(12px,calc((100vw - 720px)/2 + 12px));bottom:max(16px,env(safe-area-inset-bottom));width:0;height:0;z-index:1001;color:var(--tea-text);font:15px/1.45 "Segoe UI",sans-serif}
.mt-chat [hidden]{display:none!important}
.mt-chat button,.mt-chat input{font:inherit}
.mt-chat-launch{display:flex;gap:8px;align-items:center;margin-left:auto;min-height:44px;padding:8px 16px;border:1px solid #875d45;border-radius:24px;background:#fff2d8;color:var(--tea-text);font-weight:700!important;box-shadow:0 4px 18px #0003;cursor:pointer}
.mt-chat-launch span{background:#b84665;color:#fff;border-radius:20px;min-width:22px;padding:0 4px}
.mt-chat-panel{position:absolute;bottom:0;right:0;width:min(360px,calc(100vw - 24px));height:min(480px,calc(100dvh - 110px));display:flex;flex-direction:column;border:1px solid #c59e7a;border-radius:18px;background:#fff9ef;box-shadow:0 12px 45px #0004;overflow:hidden}
.mt-chat-panel header{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;padding:14px;background:#f5e0d2;border-bottom:1px solid #ddbea2}
.mt-chat-panel header strong{font-size:17px}.mt-chat-panel small{display:block;font-size:12px;margin-top:4px}
.mt-chat-panel header button{background:transparent;border:0;font-size:26px;color:var(--tea-text);cursor:pointer;width:32px;height:32px}
.mt-chat-messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px}
.mt-chat-messages article{margin-bottom:12px}.mt-chat-messages article>button{color:#9b3955;border:0;background:transparent;padding:0;font-weight:700;text-align:left;cursor:pointer;max-width:75%;overflow-wrap:anywhere}
.mt-chat-messages time{float:right;color:#866e60;font-size:11px;padding-top:4px}
.mt-chat-messages p{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.mt-chat-empty{color:#866e60;text-align:center;padding:24px 10px}
.mt-chat-form{display:flex;gap:8px;padding:10px;border-top:1px solid #e6cfb7}.mt-chat-form input{min-width:0;flex:1;padding:10px;border:1px solid #c9ab8c;border-radius:10px;background:#fff;color:#443329}
.mt-chat-form button,.mt-chat-retry{padding:8px 12px;border:1px solid #648147;border-radius:10px;background:#6f8953;color:#fff;cursor:pointer}.mt-chat-form button:disabled{opacity:.55}.mt-chat-retry{margin:0 10px 10px}
.mt-chat :focus-visible{outline:3px solid #d79c41;outline-offset:2px}
.is-fullscreen .mt-chat{right:12px}

/* Level celebration uses finite bursts and honors reduced motion. */
.mt-levelup{position:relative;text-align:center;isolation:isolate;padding:8px 0 4px}.mt-levelup h2{font-size:40px;line-height:1.15;margin:12px 0;color:#778947}.mt-levelup h3{font-size:19px;margin:24px 0 12px}.mt-levelup p{font-size:16px;line-height:1.6}.mt-levelup-medal{display:grid;place-items:center;margin:auto;width:78px;height:78px;border-radius:50%;background:#ffe5a4;border:4px solid #e6b85c;color:#af742c;font-size:45px;box-shadow:0 6px 0 #edcf96}.mt-levelup-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;text-align:left}.mt-levelup-items article{display:flex;align-items:center;gap:10px;padding:12px;background:#fffaf1;border:1px solid #dec8a8;border-radius:14px}.mt-levelup-items article span{font-size:32px;flex:none}.mt-levelup-items strong{font-size:15px;line-height:1.4}.mt-levelup-note{color:#79604c}.mt-levelup>button{min-width:180px;margin-top:10px}.mt-levelup-fireworks{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:-1}.mt-levelup-fireworks i{position:absolute;left:var(--left);top:var(--top);width:7px;height:7px;border-radius:50%;background:var(--color);opacity:0;animation:mt-levelup-burst 1.6s var(--delay) 2 ease-out}@keyframes mt-levelup-burst{0%{opacity:1;transform:translate(0,0) scale(.5)}65%{opacity:1}100%{opacity:0;transform:translate(var(--x),var(--y)) scale(.2)}}@media(prefers-reduced-motion:reduce){.mt-levelup-fireworks i{animation:none}}@media(max-width:380px){.mt-levelup-items{grid-template-columns:1fr}}

@media(max-width:520px){.mt-arena-toolbar{flex-wrap:wrap}.mt-arena-toolbar .mt-toolbar-actions{flex-basis:100%;justify-content:flex-end}.mt-arena.is-fullscreen .mt-arena-toolbar{flex-basis:auto}}

.mt-root:not(.mt-play-entry) [data-mt-arena],.mt-root.mt-play-entry [data-mt-hub]{display:none!important}

.mt-sale-effect{position:fixed;z-index:1050;left:50%;bottom:100px;transform:translateX(-50%);width:min(330px,calc(100vw - 32px));padding:18px 22px;text-align:center;border:2px solid #e2bd70;border-radius:20px;background:linear-gradient(145deg,#fff9e9,#ffebbc);box-shadow:0 12px 40px #36231740;color:#65462d;pointer-events:none;font:600 14px/1.5 "Segoe UI",sans-serif;animation:mt-sale-card 4.2s both}.mt-sale-effect small{font-size:12px;letter-spacing:1.1px}.mt-sale-money{display:block;font-size:29px;line-height:1.3;margin:5px 0;color:#658148}.mt-sale-stars{display:flex;justify-content:center;gap:5px;margin:7px 0;font-size:29px;line-height:1.2;color:#d4cabc}.mt-sale-stars .is-earned{color:#d6992c;animation:mt-sale-star .4s var(--delay) both}.mt-sale-profit{margin-top:7px}.mt-sale-effect.is-rejected{background:#fff0e6;border-color:#dbaa91}.mt-sale-effect.is-rejected .mt-sale-money{font-size:23px;color:#ac604c}.mt-sale-sparkles i{position:absolute;font-style:normal;color:#d6a137;top:10%;left:5%;animation:mt-sale-spark 1.1s .1s both}.mt-sale-sparkles i:nth-child(2){left:90%;top:20%}.mt-sale-sparkles i:nth-child(3){left:10%;top:75%}.mt-sale-sparkles i:nth-child(4){left:86%;top:80%}@keyframes mt-sale-card{0%{opacity:0;transform:translate(-50%,24px) scale(.88)}10%,85%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-18px)}}@keyframes mt-sale-star{from{opacity:0;transform:scale(.3) rotate(-20deg)}to{opacity:1;transform:scale(1)}}@keyframes mt-sale-spark{0%{opacity:0;transform:scale(.1)}40%{opacity:1;transform:scale(1.6)}100%{opacity:0;transform:translateY(-26px) scale(.4)}}@media(prefers-reduced-motion:reduce){.mt-sale-effect,.mt-sale-stars .is-earned,.mt-sale-sparkles i{animation:none}.mt-sale-sparkles{display:none}}

.mt-arena-toolbar{position:relative;z-index:5}.mt-arena-toolbar .mt-compact-actions{flex-basis:auto;gap:6px}.mt-tools-dropdown{position:relative}.mt-tools-dropdown summary{display:grid;place-items:center;width:36px;height:44px;cursor:pointer;list-style:none;border:1px solid #a5896a;border-radius:8px;background:var(--tea-accent);color:#fff4e2;touch-action:manipulation}.mt-tools-dropdown summary::-webkit-details-marker{display:none}.mt-tools-dropdown[open] summary svg{transform:rotate(180deg)}.mt-tools-dropdown summary:focus-visible{outline:2px solid #ffe1a3;outline-offset:2px}.mt-tools-panel{position:absolute;right:0;top:52px;width:220px;padding:6px;border:1px solid #b69978;border-radius:12px;background:#fff7e8;box-shadow:0 10px 30px #36231845;display:grid;gap:3px}.mt-root .mt-arena-toolbar .mt-tools-panel button{display:flex;justify-content:flex-start;gap:12px;width:100%;height:44px;padding:8px 12px;background:transparent;color:var(--tea-text);border:0;font-size:15px}.mt-root .mt-arena-toolbar .mt-tools-panel button:hover,.mt-root .mt-arena-toolbar .mt-tools-panel button:focus-visible{background:#f0dec3}.mt-tools-panel button>svg,.mt-tools-panel .mt-help-icon{flex:none}.mt-root .mt-arena-toolbar .mt-tools-panel button[hidden]{display:none!important}@media(max-width:520px){.mt-arena-toolbar{flex-wrap:nowrap}.mt-arena-toolbar .mt-compact-actions{flex-basis:auto}}

.mt-tools-dropdown:not([open]) .mt-tools-panel{display:none}

body.auth-member [data-mt-intro]{display:none!important}

/* The closing-day card keeps the cream and rose palette of the counter. */
.mt-root .mt-modal-box[data-mt-panel="day-end"]{width:min(500px,100%);border:1px solid #e8d4ba;border-radius:28px;background:#fffbf2;box-shadow:0 18px 65px #49332240}
.mt-root .mt-modal-box[data-mt-panel="day-end"]:before{display:none}
.mt-root .mt-modal-box[data-mt-panel="day-end"]>header{position:absolute;inset:0 0 auto;height:0;min-height:0;padding:0;border:0;overflow:visible;background:transparent}
.mt-root .mt-modal-box[data-mt-panel="day-end"]>header>div,.mt-root .mt-modal-box[data-mt-panel="day-end"]>header:after{display:none}
.mt-root .mt-modal-box[data-mt-panel="day-end"]>header [data-mt-close]{top:12px;right:12px;width:36px;height:36px;min-width:36px;min-height:36px;font-size:22px;background:#faf1e3;border-color:#ead4bb;color:#836853}
.mt-root .mt-modal-box[data-mt-panel="day-end"] .mt-modal-body{padding:25px 26px 22px}
.mt-day-end{text-align:center;color:#422d23}
.mt-day-end-moon{position:relative;display:grid;place-items:center;width:116px;height:92px;margin:0 auto 4px}
.mt-day-end-moon>span{font:76px/1 "Segoe UI Emoji","Apple Color Emoji",sans-serif;transform:rotate(-12deg)}
.mt-day-end-moon>i{position:absolute;right:17px;top:16px;color:#a69cbc;font:29px/1 "Segoe UI",sans-serif;font-style:normal}
.mt-root .mt-day-end h2{font-size:34px;line-height:1.25;font-weight:800;color:#422d23;margin:4px 0 22px}
.mt-day-end-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:22px}
.mt-day-end-metrics>div{display:grid;justify-items:center;align-content:center;gap:3px;min-width:0;min-height:105px;padding:11px 5px;border-radius:16px;background:#faf1e1}
.mt-day-end-metrics strong{font-size:29px;line-height:1.1;max-width:100%;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.mt-day-end-metrics span{font-size:26px;line-height:1.2}.mt-day-end-metrics small{font-size:11px;font-weight:600;color:#82674f;line-height:1.4}
.mt-day-end-ledger{margin:0 0 24px;text-align:left}
.mt-day-end-ledger>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:baseline;padding:10px 0;border-bottom:1px dashed #dfcfb7}
.mt-day-end-ledger dt{display:flex;align-items:center;gap:9px;font-size:20px;line-height:1.4;min-width:0}
.mt-day-end-ledger dt>span{font-size:24px;flex:none;width:27px;text-align:center}
.mt-day-end-ledger dd{margin:0;text-align:right;font-size:23px;line-height:1.35;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;max-width:220px}
.mt-day-end-ledger dd small{font-size:12px;font-weight:600}
.mt-day-end-ledger .is-revenue{color:#2e6b91}.mt-day-end-ledger .is-expense{color:#b24d51}.mt-day-end-ledger .is-profit{color:#33785c}
.mt-day-end-ledger .mt-day-end-profit,.mt-day-end-ledger .mt-day-end-cash{border:0;font-weight:800}
.mt-day-end-ledger .mt-day-end-profit dd{font-size:28px}
.mt-day-end-actions{display:grid;gap:12px}
.mt-root .mt-modal .mt-day-end-actions button{width:100%;font-size:18px;min-height:50px;border-radius:14px;font-weight:800}
.mt-root .mt-modal .mt-day-end-summary{border:2px solid #e4cdb1;background:#faf0df;color:var(--tea-text)}
.mt-day-end-summary span{margin-right:6px}
.mt-root .mt-modal .mt-day-end-actions .mt-day-end-next{display:flex;align-items:center;justify-content:center;gap:12px;min-height:65px;background:#c34b70;border:1px solid #b63d63;color:#fff;font-size:25px;box-shadow:0 5px 0 #a83b5c;transition:transform .15s,box-shadow .15s,background .15s}
.mt-root .mt-modal .mt-day-end-next:not(:disabled):hover{background:#b63d63}
.mt-root .mt-modal .mt-day-end-next:not(:disabled):active{transform:translateY(3px);box-shadow:0 2px 0 #b94768}
.mt-root .mt-modal .mt-day-end-next:disabled{box-shadow:none}
.mt-root .mt-day-end .mt-day-end-note{font-size:12px;line-height:1.5;color:#866a55;margin:16px 0 0}
.mt-day-end-prepare{display:flex;justify-content:center;gap:8px;margin-top:12px}
.mt-root .mt-modal .mt-day-end-back{margin-bottom:12px}
.mt-day-end-actions button:focus-visible,.mt-day-end-prepare button:focus-visible{outline:3px solid #8a573f;outline-offset:4px}
@media(max-width:380px){.mt-root .mt-modal-box[data-mt-panel="day-end"] .mt-modal-body{padding:22px 17px 18px}.mt-root .mt-day-end h2{font-size:30px;margin-bottom:18px}.mt-day-end-metrics{gap:6px;margin-bottom:16px}.mt-day-end-metrics>div{min-height:92px}.mt-day-end-ledger dt{font-size:17px;gap:6px}.mt-day-end-ledger dd{font-size:20px;max-width:170px}.mt-day-end-ledger .mt-day-end-profit dd{font-size:25px}}
@media(max-height:680px){.mt-day-end-moon{height:65px}.mt-day-end-moon>span{font-size:54px}.mt-day-end-moon>i{font-size:22px;right:28px;top:10px}.mt-root .mt-day-end h2{font-size:29px;margin-bottom:15px}.mt-day-end-metrics>div{min-height:85px}.mt-day-end-metrics{margin-bottom:12px}.mt-day-end-ledger>div{padding:7px 0}.mt-day-end-ledger{margin-bottom:16px}}
@media(prefers-reduced-motion:reduce){.mt-root .mt-modal .mt-day-end-actions .mt-day-end-next{transition:none}}

/* Keep navigation menus steady while async content and tabs change. */
.mt-root .mt-modal-box:not([data-mt-panel="day-end"]):not([data-mt-panel="scenario"]):not([data-mt-panel="levelup"]):not([data-mt-panel="name"]){height:min(720px,calc(100dvh - 32px))}
.mt-root .mt-modal-body{flex:1 1 auto;scrollbar-gutter:stable;overflow-anchor:none}
.mt-root .mt-modal button{-webkit-tap-highlight-color:transparent}
@media(max-width:600px){.mt-root .mt-modal-box:not([data-mt-panel="day-end"]):not([data-mt-panel="scenario"]):not([data-mt-panel="levelup"]):not([data-mt-panel="name"]){height:calc(100dvh - 32px)}}

/* menu-themes */
.mt-root .mt-menu-theme-chalk{--menu-board:#2d493a;--menu-frame:#865d3e;--menu-sign:#fff3df;--menu-ink:#fff8eb;--menu-muted:#d3e2cf;--menu-accent:#e9b957}
.mt-root .mt-menu-theme-rose{--menu-board:#fff2eb;--menu-frame:#bd6984;--menu-sign:#fff9f0;--menu-ink:#64394e;--menu-muted:#8e6475;--menu-accent:#bd5a7c}
.mt-root .mt-menu-theme-wood{--menu-board:#f5e2bb;--menu-frame:#714930;--menu-sign:#fff3d5;--menu-ink:#513821;--menu-muted:#866b48;--menu-accent:#a6532e}
.mt-root .mt-menu-theme-night{--menu-board:#292b48;--menu-frame:#b59463;--menu-sign:#f6e9d5;--menu-ink:#fdf3e7;--menu-muted:#c9c4dc;--menu-accent:#f1b8d2}
.mt-root .mt-menu-theme-picker{margin:18px 0 28px;color:#594338}
.mt-root .mt-menu-theme-picker h3{margin:0 0 10px;font-size:16px}
.mt-root .mt-menu-theme-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.mt-root .mt-menu-theme-option{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;min-height:102px;padding:8px 5px;border:2px solid #dac5af;border-radius:12px;background:#fffaf0;color:#594338;cursor:pointer;font:inherit;text-align:center}
.mt-root .mt-menu-theme-option[aria-pressed="true"]{border-color:#b75c79;box-shadow:0 0 0 2px #f4c6d5}
.mt-root .mt-menu-theme-option:focus-visible{outline:3px solid #b75c79;outline-offset:2px}
.mt-root .mt-menu-theme-option>strong{font-size:12px;line-height:1.25}
.mt-root .mt-menu-theme-option>small{font-size:10px;font-weight:700;color:#9e4668}
.mt-root .mt-menu-theme-swatch{position:relative;display:grid;place-items:center;width:100%;max-width:78px;height:46px;border:5px solid var(--menu-frame);border-radius:5px;background:var(--menu-board);color:var(--menu-ink);font-size:10px}
.mt-root .mt-menu-theme-swatch:before{content:"";position:absolute;top:-8px;width:56%;height:12px;background:var(--menu-sign);border:2px solid var(--menu-frame);border-radius:5px}
.mt-root .mt-menu-theme-swatch i{position:absolute;bottom:8px;width:65%;border-bottom:1px dashed var(--menu-muted);opacity:.8}
.mt-root .mt-menu-board{position:relative;box-sizing:border-box;max-width:620px;margin:26px auto 0;padding:27px 8px 8px;border:8px solid var(--menu-frame);border-radius:18px;background:var(--menu-board);color:var(--menu-ink);box-shadow:0 8px 0 #65513c25,0 14px 24px #49321f24;overflow:visible}
.mt-root .mt-menu-board-sign{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:10px;width:min(76%,470px);min-height:60px;margin:-64px auto 6px;padding:7px 13px;box-sizing:border-box;border:5px solid var(--menu-frame);border-radius:19px;background:var(--menu-sign);color:#813951;text-align:center;box-shadow:0 4px 0 #49321f18}
.mt-root .mt-menu-board-sign strong{min-width:0;font:800 clamp(17px,4vw,28px)/1.15 "Segoe UI",sans-serif;overflow-wrap:anywhere}
.mt-root .mt-menu-board-sign span{color:var(--menu-accent);font-size:20px;flex-shrink:0}
.mt-root .mt-menu-board-face{padding:25px clamp(12px,4vw,27px) 20px;min-height:280px;border:2px solid color-mix(in srgb,var(--menu-frame) 65%,transparent);border-radius:4px;background:var(--menu-board);color:var(--menu-ink)}
.mt-root .mt-menu-board-face h3{margin:5px 0 24px!important;color:var(--menu-ink)!important;text-align:center;font:800 clamp(22px,5vw,32px)/1.3 "Segoe UI",sans-serif!important}
.mt-root .mt-menu-board-section{margin:0 0 21px}
.mt-root .mt-menu-board-section h4{margin:0 0 7px;color:var(--menu-accent);font:800 16px/1.4 "Segoe UI",sans-serif}
.mt-root .mt-menu-board-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px}
.mt-root .mt-menu-board-item{display:flex;align-items:baseline;justify-content:space-between;gap:5px;min-width:0;padding:8px 0 7px;border-bottom:1px dashed color-mix(in srgb,var(--menu-muted) 45%,transparent);font:500 14px/1.3 "Segoe UI",sans-serif}
.mt-root .mt-menu-board-item>span{min-width:0;overflow-wrap:anywhere}
.mt-root .mt-menu-board-item small{display:block;margin-top:3px;color:var(--menu-muted);font-size:10px;line-height:1.35}
.mt-root .mt-menu-board-item b{flex-shrink:0;font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--menu-ink)}
.mt-root .mt-menu-board-face footer{padding-top:14px;border-top:1px dashed var(--menu-muted);text-align:center;color:var(--menu-muted);font:500 11px/1.65 "Segoe UI",sans-serif}
@media(max-width:480px){.mt-root .mt-menu-theme-options{gap:5px}.mt-root .mt-menu-theme-option{padding:6px 2px;min-height:93px}.mt-root .mt-menu-theme-option>strong{font-size:11px}.mt-root .mt-menu-theme-swatch{height:39px}.mt-root .mt-menu-board{border-width:6px;margin-top:28px;padding:22px 5px 5px}.mt-root .mt-menu-board-sign{min-height:55px;margin-top:-59px;padding:5px 8px;border-width:4px}.mt-root .mt-menu-board-sign span{font-size:13px}.mt-root .mt-menu-board-face{padding:22px 10px 16px}.mt-root .mt-menu-board-grid{column-gap:11px}.mt-root .mt-menu-board-item{font-size:12px;gap:4px}.mt-root .mt-menu-board-item b{font-size:12px}.mt-root .mt-menu-board-section h4{font-size:14px}}
@media(max-width:360px){.mt-root .mt-menu-board-grid{column-gap:8px}.mt-root .mt-menu-board-item{font-size:11px}.mt-root .mt-menu-board-item b{font-size:11px}.mt-root .mt-menu-board-item small{font-size:9px}}
.mt-root .mt-market-board{position:relative;margin:37px 0 16px;padding:38px 14px 18px;border:8px solid var(--menu-frame);border-radius:18px;background:var(--menu-board);color:var(--menu-ink);box-shadow:0 7px 0 #65513c25}
.mt-root .mt-market-board-sign{position:absolute;left:13%;right:13%;top:-34px;min-height:55px;display:grid;place-items:center;padding:5px 12px;box-sizing:border-box;border:5px solid var(--menu-frame);border-radius:16px;background:var(--menu-sign);color:#813951;text-align:center;overflow-wrap:anywhere;font-size:22px;font-weight:800}
.mt-root .mt-market-board h3{margin:8px 0 18px!important;color:var(--menu-ink)!important;text-align:center;font-size:24px!important}
.mt-root .mt-market-board .mt-market-menu{gap:0}
.mt-root .mt-market-board .mt-market-dish{display:flex;min-height:78px;padding:11px 7px;border:0;border-bottom:1px dashed var(--menu-muted);border-radius:0;background:transparent;color:var(--menu-ink)}
.mt-root .mt-market-board .mt-market-dish:hover,.mt-root .mt-market-board .mt-market-dish:focus-visible{background:color-mix(in srgb,var(--menu-ink) 10%,transparent)}
.mt-root .mt-market-board .mt-market-dish strong{color:var(--menu-ink);font-size:16px}
.mt-root .mt-market-board .mt-market-dish small{color:var(--menu-muted);margin:3px 0 5px}
.mt-root .mt-market-board .mt-market-dish b{color:var(--menu-accent);font-size:15px}
.mt-root .mt-market-board .mt-market-dish>span:last-child{color:var(--menu-accent);font-size:22px}
.mt-root .mt-modal .mt-market-board .mt-market-dish:disabled{background:transparent;color:var(--menu-ink);border-bottom-color:var(--menu-muted);opacity:1;cursor:default}
.mt-root .mt-market-board .mt-market-menu>p{margin:15px 0;color:var(--menu-ink)}
@media(max-width:480px){.mt-root .mt-market-board{border-width:6px;padding:37px 9px 13px}.mt-root .mt-market-board-sign{left:7%;right:7%;font-size:19px}.mt-root .mt-market-board .mt-market-dish{gap:10px}.mt-root .mt-market-board .mt-market-drink{transform:scale(.75);margin:0 -4px 0 -5px}}
.mt-root .mt-preopen-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 12px}
.mt-root .mt-preopen-summary>div{display:grid;gap:4px;padding:10px;border:1px solid #ddc4a3;border-radius:12px;background:#fffaf0;min-width:0}
.mt-root .mt-preopen-summary span{color:#82664f;font-size:11px;line-height:1.3}
.mt-root .mt-preopen-summary strong{color:#523a2f;font-size:15px;line-height:1.3;overflow-wrap:anywhere}
.mt-root .mt-preopen-hint{margin:10px 0 34px;color:#6e5845}
.mt-root .mt-preopen-status{margin:16px 0 10px;padding:12px 14px;border-radius:12px;font-weight:700;line-height:1.5}
.mt-root .mt-preopen-status.is-ready{background:#e5efd5;color:#3f6136}
.mt-root .mt-preopen-status.is-short{background:#fff0d3;color:#7d5438}
.mt-root .mt-preopen-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}
.mt-root .mt-preopen-actions .mt-modal-action{min-height:44px;font-size:13px}
.mt-root .mt-preopen-actions .mt-preopen-confirm{grid-column:1/-1;min-height:54px;border-color:#ba5d7b;background:#eb6b96;color:white;font-size:16px;box-shadow:0 4px 0 #9c4262}
.mt-root .mt-preopen-actions .mt-preopen-confirm:disabled{box-shadow:none}
@media(max-width:390px){.mt-root .mt-preopen-summary{gap:5px}.mt-root .mt-preopen-summary>div{padding:8px}.mt-root .mt-preopen-summary strong{font-size:13px}}

/* toolbar-shortcuts */
.mt-root .mt-arena-toolbar .mt-rank-shortcut{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;width:44px;height:44px;min-width:44px;min-height:44px;padding:2px;border-color:#e5bf80;background:#9d6435;color:#fff7e8;touch-action:manipulation}
.mt-root .mt-arena-toolbar .mt-rank-shortcut:hover{background:#af7540}
.mt-root .mt-arena-toolbar .mt-rank-shortcut:active{background:#82502d}
.mt-root .mt-arena-toolbar .mt-rank-shortcut:focus-visible{outline:3px solid #ffd073;outline-offset:2px}
.mt-root .mt-arena-toolbar .mt-rank-shortcut svg{width:21px;height:21px;flex:none}
.mt-root .mt-arena-toolbar .mt-rank-shortcut-label{font:800 10px/1 "Segoe UI",sans-serif;letter-spacing:.03em}
@media(max-width:390px){.mt-root .mt-arena-toolbar{gap:5px}.mt-root .mt-arena-toolbar .mt-toolbar-actions{gap:4px}.mt-root .mt-arena-toolbar .mt-shop-title{padding-inline:3px}}

/* bank */
.mt-root .mt-bank-link{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0;padding:16px;border:2px solid #d2b68d;border-radius:16px;background:#fff3da;color:var(--tea-text)}
.mt-root .mt-bank-link.is-warning{border-color:#ce775c;background:#fff0e8}
.mt-root .mt-bank-link>div{display:grid;gap:5px;min-width:0}
.mt-root .mt-bank-link strong{font-size:18px}
.mt-root .mt-bank-link small{font-size:14px;line-height:1.4}
.mt-root .mt-bank-link .mt-modal-action{flex:0 0 auto}
.mt-root .mt-bank-panel{display:grid;gap:14px;color:var(--tea-text)}
.mt-root .mt-bank-panel p{margin:0;line-height:1.55}
.mt-root .mt-bank-balance{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-radius:13px;background:#f7e6ca}
.mt-root .mt-bank-balance strong{font-size:22px;white-space:nowrap;color:#6c4f38}
.mt-root .mt-bank-timeline{display:grid;gap:7px;padding:14px 16px;border:2px solid #b5c595;border-radius:13px;background:#f3f8e8;line-height:1.4}
.mt-root .mt-bank-timeline.is-warning,.mt-root .mt-bank-day-warning{border-color:#cc785d;background:#fff0e8;color:#8e4434}
.mt-root .mt-bank-panel form{display:grid;gap:9px;padding:16px;border:2px solid #d9c09c;border-radius:14px;background:#fff9ec}
.mt-root .mt-bank-panel form label{font-weight:800}
.mt-root .mt-bank-panel form input{box-sizing:border-box;width:100%;min-height:48px;padding:10px 13px;border:2px solid #b99b77;border-radius:10px;background:white;color:var(--tea-text);font:700 20px "Segoe UI",sans-serif}
.mt-root .mt-bank-panel form button{justify-self:start}
.mt-root .mt-bank-rules{padding:12px 14px;border-radius:10px;background:#f3e9d9;font-size:14px}
.mt-root .mt-bank-default{padding:14px;border-radius:12px;background:#fff0e8;color:#8e4434;font-weight:700}
.mt-root .mt-bank-rescue{display:grid;gap:10px;padding:16px;border:2px solid #d59668;border-radius:14px;background:#fff1db}
.mt-root .mt-bank-rescue>b{font-size:19px;color:#8a5638}
.mt-root .mt-bank-rescue .mt-modal-action{justify-self:start}
.mt-root .mt-bank-day-warning{margin:14px 0;padding:13px;border:2px solid;border-radius:12px;line-height:1.5}
.mt-root .mt-discovery-tip.is-bank-warning{height:auto;min-height:40px;background:#fff0e8;color:#8e4434;font-weight:800;cursor:pointer}
@media(max-width:520px){.mt-root .mt-bank-link{flex-wrap:wrap}.mt-root .mt-bank-link .mt-modal-action{width:100%}.mt-root .mt-bank-balance strong{font-size:19px}}

/* decor */
.mt-root .mt-decor-entry{display:flex;align-items:center;gap:14px;width:100%;margin:14px 0;padding:14px 18px;border:1px solid #d6bba0;border-radius:16px;background:#f3ead9;color:#594738;text-align:left}
.mt-decor-entry-art{display:flex;align-items:flex-end;justify-content:center;flex-shrink:0;width:86px;height:68px;background:#e7dcc8;border-radius:12px;border-bottom:5px solid var(--decor-accent)}
.mt-decor-entry-art svg{width:38px;height:57px}.mt-decor-entry-art svg+svg{width:45px;height:57px}.mt-decor-entry>span:nth-child(2){flex:1}.mt-decor-entry small{display:block;color:#947359;font-size:10px;letter-spacing:1px}.mt-decor-entry strong{display:block;font-size:20px;margin:5px 0}.mt-decor-entry em{font-style:normal;font-size:12px;color:#8a7157}.mt-decor-entry>svg{width:26px;height:26px;color:#9c7358;flex-shrink:0}
.mt-root .mt-modal-box[data-mt-panel="decoration"]{width:min(1030px,calc(100vw - 24px));max-width:none}.mt-modal-box[data-mt-panel="decoration"]>.mt-modal-body{padding:0;background:#fbf6ec}.mt-modal-box[data-mt-panel="decoration"]>header{min-height:84px}.mt-modal-box[data-mt-panel="decoration"]>header:after{display:none}
.mt-decorator{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(310px,1fr);color:#594738;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.5}.mt-decorator button,.mt-decorator select{font-family:inherit}.mt-decorator svg{display:block}.mt-decor-studio{padding:20px;border-right:1px solid #e8dac7}.mt-decor-preview-label,.mt-decor-shop-heading,.mt-decor-style-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.mt-decor-preview-label{font-size:12px;color:#8f755b}.mt-decor-preview-label>span{display:flex;align-items:center;gap:6px}.mt-decor-preview-label svg,.mt-decor-visitor-note svg{width:18px;height:18px;flex-shrink:0}.mt-decor-preview-label b{font-size:11px;font-weight:500}.mt-decor-preview{border:1px solid #dfcdb7;border-radius:12px;overflow:hidden;background:#f3e7d4;user-select:none;-webkit-user-select:none;touch-action:none}.mt-decor-scene{display:block;width:100%;height:auto;aspect-ratio:45/32}.mt-decor-placement[data-decor-object]{cursor:grab;outline:none}.mt-decor-placement.is-selected>.mt-decor-object-hit,.mt-decor-placement:focus>.mt-decor-object-hit{stroke:#c17643;stroke-width:2.5;stroke-dasharray:6 4;fill:#fff9e51a}.mt-decor-placement[data-decor-object]:active{cursor:grabbing}
.mt-decor-tools{min-height:92px;margin-top:10px;padding:10px 12px;background:#f1e7d7;border-radius:10px;font-size:12px}.mt-decor-tools>strong{display:block;font-size:13px}.mt-decor-tools label{display:flex;align-items:center;gap:10px;margin:5px 0}.mt-decor-tools input{flex:1;min-width:50px;accent-color:#947a60;height:24px}.mt-decor-tools>div{display:flex;gap:7px}.mt-root .mt-decor-tools button{display:flex;align-items:center;gap:5px;padding:6px 10px;min-height:32px;border:1px solid #d2bca3;border-radius:7px;background:#fbf5e9;color:#745c47;font-size:11px}.mt-decor-tools svg{width:15px;height:15px}.mt-decor-tools>small{display:block;font-size:11px;color:#887259;margin-top:5px}.mt-decor-style-heading{margin:20px 0 10px}.mt-decor-style-heading strong{font-size:14px}.mt-decor-style-heading small{font-size:11px;color:#93785e}.mt-decor-styles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.mt-root .mt-decor-styles button{padding:6px;border:1px solid #ddcdb8;border-radius:9px;color:#77614b;background:#fdf9f0;font-size:11px;font-weight:600;min-width:0}.mt-decor-styles button>span{display:block;height:28px;width:100%;border-radius:5px 5px 2px 2px;border-bottom:10px solid;margin-bottom:5px}.mt-root .mt-decor-styles .is-active{border-color:#9b7655;box-shadow:0 0 0 1px #9b7655;background:#eee1ca;color:#604931}.mt-decor-colors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:13px}.mt-decor-colors label{display:grid;gap:5px;font-size:11px;color:#91765a}.mt-root .mt-decor-colors select{width:100%;min-width:0;font-size:12px;min-height:36px;padding:5px;border:1px solid #d9c5ac;border-radius:7px;background:#fffaf1;color:#594738}.mt-decorator .mt-decor-visitor-note{display:flex;align-items:center;gap:7px;font-size:11px;line-height:1.5;color:#8e755a;margin:16px 0 0}
.mt-decor-shop{padding:20px}.mt-decor-shop-heading{font-size:15px;margin-bottom:15px}.mt-decor-shop-heading b{font-size:12px;color:#9b7950;background:#f0e3cc;border-radius:20px;padding:5px 10px;white-space:nowrap}.mt-decor-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}.mt-root .mt-decor-tabs button{min-height:30px;padding:5px 9px;border:1px solid #dfceb8;border-radius:7px;background:#fffaf1;color:#8e755a;font-size:11px}.mt-root .mt-decor-tabs button.is-active{background:#866c53;border-color:#866c53;color:#fff8ec}.mt-decor-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}.mt-decor-product{display:flex;flex-direction:column;align-items:stretch;min-width:0;background:#fffaf1;border:1px solid #e6d7c2;border-radius:12px;padding:9px}.mt-decor-product.is-placed{border-color:#a1b28b;background:#f7f8ed}.mt-decor-product-art{display:flex;align-items:center;justify-content:center;height:108px;background:#f0e8d9;border-radius:8px;margin-bottom:9px}.mt-decor-product-art svg{max-width:95%;max-height:95%;width:auto;height:94px}.mt-decor-product strong{font-size:12px;line-height:1.4;font-weight:650}.mt-decor-product>span{font-size:10px;color:#998064;margin-top:5px;margin-bottom:9px}.mt-root .mt-decor-product button{min-height:33px;margin-top:auto;border:1px solid #c8b18e;border-radius:7px;padding:6px 5px;background:#e6d5b4;color:#664c35;font-size:11px;font-weight:650}.mt-root .mt-decor-product.is-owned button{background:#e6ecd9;color:#596e47;border-color:#bac7a5}.mt-decor-product small{font-size:10px;text-align:center;color:#a27c69;margin-top:4px}.mt-decorator .mt-decor-purchase-note{font-size:11px;line-height:1.6;margin-top:15px;color:#9a8168}.mt-decorator .mt-decor-empty{grid-column:1/-1;font-size:13px;padding:25px 8px;color:#93775c;text-align:center}
.mt-decor-footer{grid-column:1/-1;position:sticky;bottom:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 20px;background:#faf3e7;border-top:1px solid #dbc5ab;box-shadow:0 -5px 20px #7a624414}.mt-decor-footer>span{font-size:12px;color:#8c7053;max-width:45%}.mt-decor-footer>div{display:flex;gap:8px}.mt-root .mt-decor-footer button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:9px 13px;border:1px solid #d0b99c;border-radius:8px;background:#f7ecdc;color:#846747;font-size:12px;font-weight:700;white-space:nowrap}.mt-decor-footer svg{width:17px;height:17px}.mt-root .mt-decor-footer .mt-decor-save{background:#7f9367;border-color:#71835b;color:#fff9ed}.mt-decorator button:disabled{opacity:.5}.mt-decorator button:focus-visible,.mt-decorator select:focus-visible{outline:2px solid #a47850;outline-offset:3px}
.mt-friend-art .mt-decor-scene{max-height:none}.mt-friend-decoration-style{font-size:12px;color:#957558;margin:0 0 10px;text-align:center}.mt-own-decor-preview .mt-decor-scene{border-radius:12px;border:1px solid #dcc6aa}.mt-own-decor-preview>p{color:#947757;font-size:12px}
@media(min-width:801px){.mt-decor-studio{align-self:start;position:sticky;top:0}.mt-decor-products{max-height:440px;overflow:auto;padding-right:3px;overscroll-behavior:contain}}
@media(max-width:800px){.mt-root .mt-modal-box[data-mt-panel="decoration"]{width:calc(100vw - 16px);max-height:94dvh}.mt-decorator{grid-template-columns:minmax(0,1fr)}.mt-decor-studio{border-right:0;border-bottom:1px solid #e8dac7;padding:15px}.mt-decor-shop{padding:15px}.mt-decor-preview{max-width:600px;margin:auto}.mt-decor-tools{min-height:58px}.mt-decor-style-heading{margin-top:14px}.mt-decor-shop-heading{font-size:16px}.mt-root .mt-decor-tabs button{font-size:12px;min-height:36px}.mt-decor-product-art{height:110px}.mt-decor-product strong{font-size:14px}.mt-decor-product>span{font-size:12px}.mt-root .mt-decor-product button{font-size:13px;min-height:40px}.mt-root .mt-decor-styles button{font-size:12px;min-height:60px}.mt-root .mt-decor-colors select{font-size:13px;min-height:40px}.mt-decor-footer{padding:10px 12px;flex-wrap:wrap;gap:6px}.mt-decor-footer>span{max-width:none;width:100%;font-size:11px}.mt-decor-footer>div{width:100%;justify-content:flex-end}.mt-root .mt-decor-footer button{min-height:42px;font-size:13px}.mt-decor-footer .mt-decor-save{flex:1}.mt-decor-colors label{font-size:12px}}
@media(prefers-reduced-motion:reduce){.mt-decorator *{transition:none!important}}
.mt-root .mt-decorator .mt-decor-visitor-note,.mt-root .mt-decorator .mt-decor-purchase-note{font-size:12px;line-height:1.6;margin:15px 0 0}.mt-root .mt-decorator .mt-decor-product strong{font-size:13px}.mt-root .mt-decorator .mt-decor-product>span{font-size:11px}.mt-root .mt-decorator .mt-decor-tabs button{font-size:12px}.mt-root .mt-decorator .mt-decor-product button{font-size:12px}.mt-root .mt-decorator .mt-decor-empty{font-size:13px}
@media(max-width:800px){.mt-root .mt-decorator .mt-decor-product strong{font-size:14px}.mt-root .mt-decorator .mt-decor-product>span{font-size:12px}.mt-root .mt-decorator .mt-decor-product button{font-size:13px}}
.mt-root .mt-decor-zones{display:flex;gap:7px;margin:0 0 10px;overflow-x:auto}
.mt-root .mt-decor-zones button{flex:1;min-width:max-content;padding:9px 11px;min-height:42px;border:1px solid #d4bea1;border-radius:9px;background:#fff9ed;color:#755d42;font-size:12px;font-weight:750}
.mt-root .mt-decor-zones button.is-active{background:#805e43;color:#fff8ec;border-color:#805e43}
.mt-root .mt-decor-preview{overflow-x:auto;overflow-y:hidden;touch-action:pan-x}
.mt-root .mt-decor-preview .mt-decor-scene{max-width:none;flex:none}
.mt-root .mt-decor-placement[data-decor-object]{touch-action:none}
.mt-root .mt-own-decor-preview,.mt-root .mt-friend-art{overflow-x:auto;overflow-y:hidden}

/* story */
.mt-root .mt-modal-box:is([data-mt-panel="story"],[data-mt-panel="story-result"]){height:auto!important;min-height:0;max-height:calc(100dvh - 32px);width:min(560px,calc(100vw - 24px))}
.mt-tools-panel [data-mt-story-journal][hidden]{display:none!important}
.mt-story-card,.mt-story-journal{color:var(--tea-text);font-family:"Segoe UI",sans-serif;text-align:left}
.mt-story-person{display:flex;align-items:center;gap:12px;margin-bottom:17px}
.mt-story-person>span{display:grid;place-items:center;flex:none;width:56px;height:56px;border:2px solid #ead5b7;border-radius:18px;background:#fff2da;font-size:30px}
.mt-story-person small{display:block;color:#9b754e;font-size:12px;line-height:1.5}
.mt-story-person strong{display:block;color:#68452f;font-size:20px;line-height:1.4}
.mt-story-card>p{margin:0 0 18px;padding:15px;border:1px solid #e9d8bf;border-radius:13px;background:var(--tea-surface);color:#57402f;font-size:17px;line-height:1.75}
.mt-story-choices{display:grid;gap:10px}
.mt-story-choices>button{box-sizing:border-box;min-height:54px;width:100%;padding:13px 15px;border:2px solid #c1cda9;border-radius:13px;background:#eff5e3;color:#455b30;text-align:left;font-family:inherit;cursor:pointer}
.mt-story-choices>button:nth-child(2){background:#fff7e8;border-color:#ddc8a6;color:#755735}
.mt-story-choices strong{font-size:16px;line-height:1.5}
.mt-story-effects{display:block;margin-top:7px;color:#786449;font-size:13px;line-height:1.65}
.mt-story-choices>button:disabled{opacity:.6;cursor:wait}
.mt-story-foot{display:block;margin-top:16px;color:#927b5c;font-size:12px;line-height:1.65}
.mt-story-secondary{display:block;width:100%;min-height:44px;margin-top:9px;border:1px solid #ddc8a6;border-radius:10px;background:#fff9ee;color:#755735;font:600 14px "Segoe UI",sans-serif;cursor:pointer}
.mt-root .mt-modal .mt-story-open{width:100%;min-height:48px;margin-top:18px;border-color:#a85170;background:#bc6784;color:#fff;font-size:16px;font-weight:700}
.mt-story-progress{display:flex;flex-direction:column;gap:7px;margin-bottom:14px}
.mt-story-progress>b{font-size:18px;color:#705036}.mt-story-progress>span{font-size:13px;color:#927b5c}
.mt-story-progress progress{width:100%;height:10px;accent-color:#8fa96c}
.mt-story-badges{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px}
.mt-story-badges>span{padding:6px 9px;border:1px solid #dcc9ad;border-radius:9px;background:#fff6e5;color:#8b7352;font-size:12px;line-height:1.5}
.mt-story-badges>.is-earned{border-color:#adc48e;background:#edf4de;color:#58733e}
.mt-story-next,.mt-story-empty{padding:12px;border-radius:10px;background:#fff2d7;color:#82633b;font-size:14px;line-height:1.7}
.mt-story-entry{margin-top:11px;border:1px solid #ddc9ac;border-radius:12px;background:var(--tea-surface);overflow:hidden}
.mt-story-entry>summary{display:flex;align-items:center;gap:11px;min-height:60px;padding:12px;cursor:pointer;list-style:none}
.mt-story-entry>summary::-webkit-details-marker{display:none}
.mt-story-entry>summary:after{content:'⌄';margin-left:auto;color:#8a7353;font-size:22px}
.mt-story-entry[open]>summary:after{content:'⌃'}.mt-story-entry>summary>span{font-size:27px;flex:none}
.mt-story-entry>summary strong{display:block;font-size:15px;line-height:1.6;color:#62432f}
.mt-story-entry>summary small{display:block;font-size:12px;line-height:1.6;color:#947b5d}
.mt-story-entry>div{padding:0 14px 14px;font-size:14px;line-height:1.75}
.mt-story-entry>div p{margin:9px 0}.mt-story-accounting{border-top:1px dashed #ddc9ac;padding-top:10px;color:#617347}
.mt-story-preopen{display:flex;align-items:center;gap:10px;margin:14px 0;padding:12px;border:1px solid #d8c29f;border-radius:12px;background:#fff8e7;color:#705134}
.mt-story-preopen>span{font-size:27px;flex:none}.mt-story-preopen strong{display:block;font-size:14px;line-height:1.5}.mt-story-preopen small{display:block;margin-top:4px;font-size:12px;line-height:1.6;color:#927b5c}
.mt-story-chapter-end{margin-top:17px;padding:14px;border:1px solid #b6c99e;border-radius:13px;background:#eff5e5;color:#5b703e;text-align:center}.mt-story-chapter-end>b{font-size:16px}.mt-story-chapter-end>p{margin:7px 0 12px;font-size:13px;line-height:1.65}
.mt-story-choices button:focus-visible,.mt-story-secondary:focus-visible,.mt-story-entry summary:focus-visible{outline:3px solid #8ca865;outline-offset:2px}
@media(max-width:420px){.mt-story-card>p{font-size:16px;padding:12px}.mt-story-person{gap:10px}.mt-story-person>span{width:48px;height:48px;font-size:26px}.mt-story-choices>button{padding:12px}.mt-story-choices strong{font-size:15px}}

/* barista */
[data-mt-root] .mt-barista-status{display:flex;gap:12px;align-items:center;padding:12px 16px;background:#eef4df;color:#38533b;border-bottom:2px solid #b6c796;font-family:inherit}
[data-mt-root] .mt-barista-status[hidden]{display:none}
.mt-barista-icon{font-size:30px;flex-shrink:0}
.mt-barista-status>div{flex:1;min-width:0}
.mt-barista-status strong,.mt-barista-status small{display:block;color:inherit;line-height:1.45}
.mt-barista-status strong{font-size:16px}
.mt-barista-status small{font-size:13px;margin-top:2px}
.mt-barista-status progress{display:block;width:100%;height:7px;margin-top:7px;accent-color:#67834c}
.mt-barista-status progress[hidden]{display:none}
.mt-employees{padding:4px 0}
.mt-employees p,.mt-employees small,.mt-employees li{color:#66503f}
.mt-employee-note{background:#f4ead8;border-radius:12px;padding:12px;line-height:1.55;margin:0 0 14px}
.mt-employee-card{background:#fffbf2;border:2px solid #d9c6a6;border-radius:16px;padding:16px;margin:12px 0}
.mt-employee-card header,.mt-barista-report header{display:flex;gap:12px;align-items:center}
.mt-employee-card header>span,.mt-barista-report header>span{font-size:30px}
.mt-employee-card h3,.mt-barista-report h3{color:#4d3a2e;margin:0;font-size:20px;line-height:1.3}
.mt-employee-card header small{display:block;font-size:14px;line-height:1.5;margin-top:3px}
.mt-employee-card p,.mt-employee-tips{font-size:15px;line-height:1.55}
.mt-employee-actions{display:flex;flex-wrap:wrap;gap:8px}
.mt-employee-actions .mt-modal-action{flex:1;min-width:125px;min-height:44px;margin:0;font-size:14px;padding:10px 12px;white-space:normal}
.mt-employee-actions .mt-employee-fire{background:#f6e4dc;color:#864b3c;border-color:#d4afa0}
.mt-employee-actions button:disabled{opacity:.58;cursor:not-allowed}
.mt-employee-unlock{padding:12px;border-radius:12px;background:#eeeddc;color:#5c6144;font-size:14px;line-height:1.55}
.mt-employee-jobs{list-style:none;padding:0;margin:12px 0;font-size:14px}
.mt-employee-jobs li,.mt-employee-payroll,.mt-tip-accounting>div{display:flex;justify-content:space-between;gap:10px;padding:7px 0}
.mt-employee-jobs b{font-weight:600;text-align:right}
.mt-employee-payroll{padding:12px 0;border-top:1px dashed #cdbb9a;color:#4d3a2e;font-size:16px}
.mt-employee-payroll b,.mt-tip-accounting b{white-space:nowrap}
.mt-tip-accounting{padding:12px 16px;margin:16px 0;border:1px solid #c2cfac;border-radius:14px;background:#f0f5e5;color:#455737;font-size:15px}
.mt-tip-accounting small{display:block;margin-top:6px;color:#596649;font-size:13px;line-height:1.5}
.mt-barista-report{background:var(--tea-surface);border:2px solid #dcc39c;border-radius:16px;padding:16px;margin:16px 0;text-align:left;color:#5b4635}
.mt-barista-results{display:flex;flex-wrap:wrap;gap:8px 20px;margin:14px 0;font-size:14px}
.mt-barista-results b{display:block;font-size:18px}
.mt-barista-report blockquote{margin:10px 0 0;padding:12px 14px;border-left:4px solid #c48e72;border-radius:0 10px 10px 0;background:#f4e6d5;font-size:15px;line-height:1.6;color:#6c4432}
.mt-barista-report blockquote small{display:block;text-transform:uppercase;letter-spacing:.07em;font-size:11px;font-weight:700;color:#92654c;margin-bottom:5px}
.mt-barista-report p{font-size:14px;line-height:1.5;margin-bottom:0;color:#75624d}
@media(max-width:460px){.mt-employee-card{padding:12px}.mt-employee-actions{flex-direction:column}.mt-employee-actions .mt-modal-action{width:100%}.mt-employee-payroll{font-size:14px}.mt-barista-status{padding:10px 12px}}

/* Keep the worker progress inside the game scene instead of extending the canvas. */
[data-mt-root] .mt-arena .mt-barista-status{position:absolute;z-index:12;left:50%;bottom:56px;transform:translateX(-50%);width:min(420px,calc(100% - 20px));padding:7px 11px;border:1px solid #92aa7b;border-radius:12px;background:#eef4dff2;box-shadow:0 5px 16px #453b2d40;pointer-events:none}
[data-mt-root] .mt-arena .mt-barista-icon{font-size:23px}
[data-mt-root] .mt-arena .mt-barista-status strong{font-size:13px;line-height:1.2}
[data-mt-root] .mt-arena .mt-barista-status small{font-size:11px;line-height:1.25}
[data-mt-root] .mt-arena .mt-barista-status progress{height:5px;margin-top:4px}
@media(max-width:460px){[data-mt-root] .mt-arena .mt-barista-status{bottom:51px;gap:7px;padding:6px 8px}}

/* missions */
.mt-root .mt-missions-entry{display:flex;align-items:center;gap:12px;width:calc(100% - 32px);margin:0 16px 18px;padding:14px 16px;border:1px solid #ddba81;border-radius:16px;background:#fff1d7;color:#513a2e;text-align:left;cursor:pointer}
.mt-missions-entry>span:first-child{font-size:28px}.mt-missions-entry>span:nth-child(2){flex:1}.mt-missions-entry strong,.mt-missions-entry small{display:block}.mt-missions-entry strong{font-size:17px}.mt-missions-entry small{margin-top:4px;font-size:13px;color:#705343}
.mt-root [data-mt-missions-badge]{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 5px;border-radius:12px;background:#a94668;color:#fff;font:700 12px/1 system-ui}
.mt-root [data-mt-missions-badge][hidden]{display:none}
.mt-root .mt-modal-box[data-mt-panel="missions"]{width:min(780px,calc(100vw - 24px));font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#513a2e}
.mt-mission-overview{display:flex;align-items:center;gap:14px;padding:16px;border:1px solid #dec193;border-radius:16px;background:#fff0d6}.mt-mission-overview>span{font-size:32px}.mt-mission-overview strong{font-size:17px;color:#563729}.mt-mission-overview p{margin:5px 0 0;font-size:13px;color:#755644;line-height:1.6}
.mt-root .mt-mission-tabs{display:flex;gap:8px;overflow-x:auto;margin:18px 0 14px;padding-bottom:5px;scrollbar-width:thin}.mt-root .mt-mission-tabs button{flex:none;display:flex;align-items:center;gap:5px;min-height:44px;border:1px solid #d8c0a2;border-radius:12px;padding:10px 13px;background:var(--tea-surface);color:#5d4638;font:600 14px/1.2 system-ui;cursor:pointer}.mt-root .mt-mission-tabs button[aria-pressed="true"]{border-color:#825b40;background:#825b40;color:#fff}.mt-mission-tabs b{padding:2px 6px;border-radius:10px;background:#fff1d9;color:#853652;font-size:12px}
.mt-mission-group>h3{display:flex;justify-content:space-between;gap:12px;margin:0;font-size:18px;color:#513a2e}.mt-mission-group>h3>span{color:#825b40}.mt-mission-group>p{font-size:13px;line-height:1.6;color:#755644;margin:8px 0 14px}
.mt-mission-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mt-mission-card{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;padding:16px;border:1px solid var(--tea-border);border-radius:16px;background:#fffbf3}.mt-mission-card.is-ready{border:2px solid #c98a2f;background:#fff5df}.mt-mission-card.is-claimed{border-color:#becbac;background:#f1f5e9}.mt-mission-symbol{font-size:25px;color:#4e713d;text-align:center}.mt-mission-content h3{margin:0 0 11px;font-size:15px;line-height:1.45;color:#503729}.mt-mission-progress{display:flex;align-items:center;gap:8px}.mt-mission-progress progress{flex:1;width:0;height:8px;accent-color:#8caa66}.mt-mission-progress span{flex:none;font-size:11px;color:#745745}.mt-mission-reward{display:block;margin-top:9px;color:#916017;font-size:16px}
.mt-root .mt-mission-claim{grid-column:2;justify-self:start;min-height:44px;padding:10px 18px;border:1px solid #a85270;border-radius:12px;background:#b45f7c;color:#fff;font:700 14px/1.3 system-ui;cursor:pointer}.mt-root .mt-mission-claim:disabled{border-color:#d4c4b0;background:#eee4d5;color:#786453;cursor:default}.mt-root .is-claimed .mt-mission-claim:disabled{background:#e1ebd4;color:#4b653c;border-color:#b8cda0}
.mt-mission-foot{font-size:12px;line-height:1.6;color:#755644;margin:18px 0 0}.mt-mission-feedback{border:1px solid #b8cda0;border-radius:10px;background:#edf5e6;color:#436330;padding:12px;font-size:14px;line-height:1.5}.mt-mission-feedback[hidden]{display:none}
.mt-buyer-gifts{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:16px;margin:14px 0;border:1px solid #d8b77e;border-radius:16px;background:#fff0d4;color:#533b2a}.mt-buyer-gifts strong{font-size:16px}.mt-buyer-gifts p{margin:6px 0 0;font-size:13px;line-height:1.5;color:#775842}.mt-root .mt-buyer-gifts button{flex:none;min-height:44px;border:1px solid #a85270;border-radius:12px;padding:10px 14px;background:#b45f7c;color:#fff;font:700 14px/1.2 system-ui;cursor:pointer}
@media(max-width:540px){.mt-mission-list{grid-template-columns:1fr}.mt-mission-card{grid-template-columns:30px minmax(0,1fr) auto;padding:14px 12px;gap:9px}.mt-root .mt-mission-claim{grid-column:3;grid-row:1;align-self:center;padding:10px 12px}.mt-mission-content h3{font-size:14px}.mt-mission-progress{flex-wrap:wrap;gap:5px}.mt-mission-progress progress{flex-basis:100%;width:100%}.mt-mission-reward{font-size:15px}.mt-buyer-gifts{align-items:flex-start;flex-direction:column}.mt-buyer-gifts button{width:100%}.mt-mission-overview{padding:14px 12px;gap:10px}.mt-mission-overview strong{font-size:16px}}

/* player-orders */
.mt-market-summary{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:12px}.mt-market-summary button,.mt-market-link{background:transparent;border:0;color:#815b48;font:inherit;font-weight:700;cursor:pointer;text-decoration:underline;text-underline-offset:3px;padding:8px 0}.mt-market-wallet{padding:12px 14px;background:#f2e8d3;border-radius:12px;font-size:13px}.mt-market-status{display:inline-block;border-radius:8px;background:#f1e6d5;color:#80664f;font-size:12px;font-weight:700;padding:6px 9px}.mt-market-status.is-open{background:#e3ebd4;color:#536c42}.mt-market-menu,.mt-market-order-list,.mt-market-review-list{display:grid;gap:10px}.mt-market-dish{display:flex;align-items:center;text-align:left;gap:18px;padding:17px 16px;border:1px solid #ddc7ab;border-radius:14px;background:#fffaf1;color:var(--tea-text);cursor:pointer;font:inherit}.mt-market-dish:disabled{opacity:.6;cursor:default}.mt-market-dish>span:nth-child(2){flex:1;min-width:0}.mt-market-dish strong,.mt-market-dish small,.mt-market-dish b{display:block}.mt-market-dish strong{font-size:17px}.mt-market-dish small{line-height:1.5;font-size:12px;color:#85674e;margin:3px 0 8px}.mt-market-dish b{font-size:14px;color:#717c4c}.mt-market-drink{position:relative;display:inline-block;flex:0 0 42px;width:42px;height:62px;background:linear-gradient(to top,var(--tea) 70%,#fff3df 70%);border:2px solid #957b65;border-radius:3px 3px 10px 10px;transform:perspective(80px) rotateX(-8deg);margin:12px 4px 4px}.mt-market-drink:before{content:"";position:absolute;top:-4px;left:-4px;width:46px;height:7px;border:2px solid #957b65;border-radius:50%;background:#f5d2d1}.mt-market-drink i{position:absolute;left:24px;top:-23px;width:4px;height:22px;transform:rotate(12deg);background:#c87f8c;border-radius:3px}.mt-market-drink b{position:absolute;bottom:7px;left:4px;color:#8c664b;font-size:10px;letter-spacing:1px}.mt-market-selected{display:flex;gap:22px;align-items:center;margin-bottom:18px}.mt-market-selected h3{margin:0}.mt-market-selected p{font-size:13px;line-height:1.6;margin:5px 0}.mt-market-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mt-market-fields label,.mt-market-comment{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700}.mt-market-fields select,.mt-market-comment textarea{border:1px solid #d1b795;border-radius:9px;padding:10px;background:#fffaf2;color:var(--tea-text);font:inherit;min-height:44px;width:100%;box-sizing:border-box}.mt-market-fields strong{padding:12px 0}.mt-market-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mt-market-options label{display:flex;gap:8px;align-items:center;padding:10px;border:1px solid #decdb5;border-radius:9px;background:var(--tea-surface);cursor:pointer;font-size:13px}.mt-market-options input{accent-color:#778d54;width:17px;height:17px;flex-shrink:0}.mt-market-options label:has(input:checked){border-color:#879661;background:#edf0da}.mt-market-options small{display:block;font-size:11px;color:#857254}.mt-market-checkout fieldset,[data-mt-market-checkout] fieldset{border:0;padding:0;margin:17px 0}.mt-market-options+small,.mt-market-note{font-size:12px;line-height:1.6;color:#82654d}.mt-market-total{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #dbc2a2;margin-top:20px;padding-top:15px}.mt-market-total strong{font-size:24px;color:#617447}.mt-market-buy{width:100%;min-height:48px!important;background:#7c905a!important;border-color:#6e824e!important;color:white!important;margin:8px 0}.mt-market-order{padding:16px;border:1px solid #dfc7ad;border-radius:14px;background:#fffaf1}.mt-market-order header{display:flex;justify-content:space-between;gap:12px;align-items:center}.mt-market-order h3{font-size:16px;margin:4px 0 9px}.mt-market-order small{font-size:11px;color:#8c6f57}.mt-market-refund{display:block;margin:6px 0}.mt-market-stars{border:0;padding:0;margin:16px 0 10px;display:flex;gap:6px}.mt-market-stars legend{font-size:13px;font-weight:700;margin-bottom:8px}.mt-market-stars label{flex:1;position:relative;cursor:pointer}.mt-market-stars input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}.mt-market-stars span{display:block;padding:9px 4px;background:#f1e8d3;border:1px solid #dcccab;border-radius:8px;text-align:center;font-weight:700;color:#8d733c}.mt-market-stars input:checked+span{background:#f5dd98;border-color:#b68e32;color:#665017}.mt-market-stars input:focus-visible+span{outline:2px solid #79624c;outline-offset:2px}.mt-market-comment{margin:12px 0}.mt-market-rating,.mt-market-review-copy>strong{color:#b18028;white-space:nowrap}.mt-market-review-copy p,.mt-market-order>p{font-size:14px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap;margin:10px 0}.mt-market-reply{padding:12px 14px;margin-top:12px;border-left:3px solid #9aa775;background:#edf0df;border-radius:0 9px 9px 0;font-size:13px;overflow-wrap:anywhere}.mt-market-reply p{margin:4px 0;white-space:pre-wrap;line-height:1.6}.mt-market-error{color:#a23d36;font-size:13px;line-height:1.5}.mt-market-dish:focus-visible,.mt-market-link:focus-visible{outline:2px solid #7c905a;outline-offset:3px}.mt-friend-art[data-mt-market-menu]{display:block;width:100%;padding:0;background:transparent;border:0;cursor:pointer}.mt-friend-art[data-mt-market-menu]:focus-visible{outline:3px solid #81945b;outline-offset:-6px}.mt-market-purchases{margin-bottom:12px}.mt-review-buyer{display:block;font-size:13px;margin-bottom:5px}
@media(max-width:420px){.mt-market-dish{gap:12px;padding:12px}.mt-market-order{padding:12px}.mt-market-summary{font-size:12px}.mt-market-summary button{font-size:12px}.mt-market-options{gap:6px}.mt-market-stars{gap:4px}.mt-market-stars span{padding:10px 2px;font-size:12px}}
.mt-modal-box[data-mt-panel^="market-"] [data-mt-modal-body]{font-family:system-ui,-apple-system,"Segoe UI",sans-serif}

.mt-buyer-title{padding:18px;border:1px solid #d4b47b;border-radius:16px;background:linear-gradient(135deg,#fff2cd,#f4e8dd);margin-bottom:18px;color:#684b35}.mt-buyer-title>small{display:block;font-size:11px;line-height:1.6}.mt-root .mt-buyer-title h3{font-size:22px;margin:7px 0}.mt-buyer-title>strong{font-size:14px}.mt-buyer-title progress{display:block;width:100%;height:12px;margin:13px 0 8px;accent-color:#8c9b56}.mt-buyer-title summary{cursor:pointer;font-weight:700;padding:8px 0}.mt-buyer-title ol{list-style:none;padding:0;margin:4px 0 12px}.mt-buyer-title li{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #dcc9a6;font-size:12px}.mt-buyer-title li.is-earned{color:#53783d}.mt-buyer-title li b{white-space:nowrap}
.mt-market-customer{display:flex;flex-direction:column;gap:7px;margin:14px 0 18px;font-size:14px;font-weight:700;color:var(--tea-text)}.mt-market-customer input{box-sizing:border-box;width:100%;min-height:48px;padding:11px 13px;border:1px solid #c9aa83;border-radius:10px;background:#fffaf2;color:#47352b;font:inherit;font-size:16px}.mt-market-customer input:focus-visible{outline:2px solid #7c905a;outline-offset:2px}

/* community */
.mt-community-tabs{display:flex;gap:8px;margin:0 0 14px}.mt-community-tabs button{flex:1;min-width:0;border:1px solid #dec6aa;border-radius:12px;background:#fffaf2;color:#715342;font-family:inherit;font-weight:700;font-size:13px;line-height:1.25;padding:12px 8px;cursor:pointer}.mt-community-tabs button.active{background:#854c61;color:#fff;border-color:#854c61;box-shadow:0 3px 0 #633647}.mt-community-subtabs button{font-size:12px;padding:9px 4px}.mt-community-warehouse-entry{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.mt-community-brief{display:flex;align-items:center;gap:7px;padding:10px 13px;margin-bottom:13px;border-radius:11px;background:#f7eddf;color:#665042}.mt-community-brief b{font-size:20px;color:#8a4c42}.mt-community-brief button{margin-left:auto;background:transparent;border:0;color:#9a524c;font-weight:700;text-decoration:underline;cursor:pointer}.mt-community-alert{background:#fff0d4;border:1px solid #e8c88b;color:#795631;padding:10px 12px;border-radius:10px;font-size:13px}.mt-community-list,.mt-community-rush-list{display:grid;gap:10px}.mt-community-listing,.mt-community-rush-card,.mt-community-own{border:1px solid #dfc8af;border-radius:15px;background:#fffaf2;padding:14px;color:#5d4337;box-shadow:0 2px 0 #ead8c3}.mt-community-listing-top{display:flex;align-items:center;gap:11px}.mt-community-listing-top>div{flex:1;min-width:0}.mt-community-listing-top strong{display:block;font-size:15px;line-height:1.3}.mt-community-listing-top small,.mt-community-own small{display:block;color:#8d7462;font-size:12px;margin-top:3px}.mt-community-item-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#f6e7cf;font-size:22px}.mt-community-discount{background:#d94d5d;color:#fff;border-radius:10px;padding:8px 9px;font-size:19px;white-space:nowrap;box-shadow:0 2px 0 #a73946}.mt-community-prices{display:flex;align-items:baseline;gap:10px;margin:12px 0}.mt-community-prices s{color:#a78b7a}.mt-community-prices strong{font-size:23px;color:#a9364a}.mt-community-prices span{font-size:12px;color:#478263}.mt-community-card-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}.mt-community-card-foot small{color:#806b59;font-size:11px}.mt-community-card-foot .mt-modal-action{white-space:nowrap}.mt-community-mine{font-size:12px;color:#92705a}.mt-community-empty{text-align:center;padding:26px 18px;border:1px dashed #d4b898;border-radius:13px;color:#856b58}.mt-community-field{display:grid;gap:6px;margin:12px 0}.mt-community-field label{font-weight:700;font-size:13px}.mt-community-field select,.mt-community-field input{width:100%;box-sizing:border-box;padding:12px;border:1px solid #d7bda2;border-radius:10px;background:#fffaf5;color:#4e382e;font:inherit}.mt-community-discount-choices{border:0;padding:0;margin:14px 0;display:flex;flex-wrap:wrap;gap:7px}.mt-community-discount-choices legend{font-size:13px;font-weight:700;margin-bottom:7px}.mt-community-discount-choices label{cursor:pointer}.mt-community-discount-choices input{position:absolute;opacity:0}.mt-community-discount-choices span{display:block;border:1px solid #d5b99d;border-radius:9px;padding:9px 10px;background:#fff8ef;color:#87543d;font-weight:800}.mt-community-discount-choices input:checked+span{background:#cc4e62;border-color:#ae394d;color:#fff}.mt-community-discount-choices input:focus-visible+span{outline:3px solid #5089ab}.mt-community-price-preview{display:grid;gap:5px;background:#f4e8d4;padding:15px;border-radius:12px;margin-bottom:12px}.mt-community-price-preview strong{font-size:25px;color:#a63f52}.mt-community-price-preview em{font-size:14px;font-style:normal;background:#bd4355;color:#fff;border-radius:6px;padding:4px 6px;vertical-align:middle}.mt-community-price-preview small,.mt-community-note{font-size:12px;color:#86705b}.mt-community-primary{width:100%;text-align:center;background:#ad3e5b!important;color:#fff!important;font-weight:800!important;padding:12px!important}.mt-community-own{display:flex;align-items:center;gap:10px}.mt-community-own>div{flex:1;min-width:0}.mt-community-own>span{font-size:22px}.mt-community-own button{border:1px solid #bc8d81;background:#fff4ed;border-radius:8px;padding:7px;color:#8a4c44;font-weight:700;cursor:pointer}.mt-community-rush-intro{border:1px solid #e4c8aa;border-radius:14px;background:linear-gradient(135deg,#fff4dc,#fbe4e5);padding:16px;margin-bottom:12px;color:#614638}.mt-community-rush-intro>strong{display:block;color:#af3f58;font-size:19px}.mt-community-rush-intro p{font-size:13px;line-height:1.55;margin:8px 0}.mt-community-rush-intro small{color:#8e705d}.mt-community-rush-card.is-active{border-color:#b75f70;box-shadow:0 0 0 2px #f2ccd3}.mt-community-rush-heading{display:flex;justify-content:space-between;align-items:center}.mt-community-rush-heading small{font-size:11px;color:#a36c62;font-weight:700}.mt-community-rush-heading h3{margin:4px 0 0;font-size:17px}.mt-community-rush-heading>b{font-size:22px;color:#9b4050}.mt-community-rush-heading>b small{font-size:12px}.mt-community-progress{height:10px;background:#eadbca;border-radius:20px;overflow:hidden;margin:13px 0 8px}.mt-community-progress i{display:block;height:100%;background:linear-gradient(90deg,#edb257,#c84b6f);border-radius:20px}.mt-community-milestones{display:flex;gap:5px}.mt-community-milestones span{flex:1;display:grid;text-align:center;border-radius:7px;background:#eee4d6;padding:6px 3px;font-size:10px;color:#8f7966}.mt-community-milestones span.reached{background:#f4d08a;color:#6e4734}.mt-community-milestones b{font-size:12px}.mt-community-rush-card>.mt-modal-action{margin-top:12px}.mt-community-claimed{font-weight:700;color:#508060}.mt-community-leaders{margin-top:12px;border-top:1px dashed #d9c4ae;padding-top:8px;font-size:12px}.mt-community-leaders summary{font-weight:700;cursor:pointer}.mt-community-leaders>div{display:flex;justify-content:space-between;padding:5px 0}.mt-community-extra-title{margin:18px 0 8px;font-size:14px;color:#6e4a3a}

.mt-community-expiry{padding:14px;margin:0 0 16px;border:1px solid #e8c391;border-radius:14px;background:#fff3dc;display:grid;gap:10px}
.mt-community-expiry>small{color:#8c674b;line-height:1.5}.mt-community-expiry>p{margin:0;font-size:13px}
.mt-community-expiry button{display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:left;padding:11px 12px;border:1px solid #e4c6a2;border-radius:10px;background:var(--tea-surface);color:#624630;cursor:pointer;min-height:48px}
.mt-community-expiry button small{display:block;margin-top:4px;font-size:12px;color:#8c674b}.mt-community-expiry button b{color:#a54e26;white-space:nowrap;font-size:13px}
.mt-community-lots{padding:12px;margin:0 0 16px;background:#faf0df;border-radius:10px;font-size:13px}.mt-community-lots>div{display:flex;justify-content:space-between;gap:12px;padding-top:9px}.mt-community-lots>small{display:block;margin-top:10px;line-height:1.5}.mt-community-lots .is-soon{color:#a54e26;font-weight:700}.mt-community-lots .is-blocked{color:#aa3f49}
