/* 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:#594338}
.mt-root .mt-modal-box:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('/assets/games/milk-tea/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('/assets/games/milk-tea/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:#594338}
.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:#fffdf6;color:#594338;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:#fffaf0;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%,#fffaf0,#f7e8d3);color:#594338;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:#594338;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:#594338;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:#594338;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:#6c513e;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:#594338;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:#594338}
.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)}}
