.mobile-controls-trigger .mobile-controls-label{display:inline}@media(max-width:900px)and (orientation:portrait),(max-height:560px)and (orientation:landscape){.mobile-controls-trigger{position:relative;isolation:isolate;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;color:#d8c49ad1;border:0;border-radius:12px;background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}.mobile-controls-trigger:before{position:absolute;inset:3px;z-index:-1;content:"";border:1px solid rgba(201,151,63,.24);border-radius:12px;background:#140c06b8;box-shadow:inset 0 1px #eed5921a,0 5px 16px #00000052;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);pointer-events:none}.screen-game>.hud-top>.mobile-controls-trigger{border:0;background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}.mobile-controls-trigger svg{display:block;position:relative;z-index:1;width:18px;height:18px}.mobile-controls-trigger .mobile-controls-label{display:none}.mobile-game-menu-dialog{align-items:flex-end;padding:12px 10px max(10px,env(safe-area-inset-bottom))}.mobile-game-menu-dialog .dialog{width:min(100%,560px);max-width:560px;max-height:min(84vh,84dvh);padding:8px 14px max(16px,env(safe-area-inset-bottom));overflow-x:hidden;overflow-y:auto;border:1px solid rgba(201,151,63,.3);border-radius:22px 22px 0 0;background:#140c06f5;box-shadow:0 -18px 48px #00000075;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;touch-action:pan-y;scrollbar-color:rgba(201,151,63,.45) transparent;scrollbar-width:thin}.mobile-game-menu-dialog .dialog::-webkit-scrollbar{width:4px}.mobile-game-menu-dialog .dialog::-webkit-scrollbar-thumb{border-radius:999px;background:#c9973f73}.mobile-game-menu-dialog .dialog:before{display:block;width:38px;height:4px;margin:2px auto 8px;content:"";border-radius:2px;background:#d8c49a47}.mobile-game-menu-dialog .dialog-head{position:sticky;top:-8px;z-index:2;margin:0 0 4px;padding:8px 0 6px;background:linear-gradient(180deg,#140c06 72%,#140c0600)}.mobile-game-menu-dialog .dialog-head h2{font-size:1.05rem}.mobile-game-menu-dialog .menu-col{gap:0;margin-top:2px}.mobile-game-menu-dialog .mobile-game-menu-action{position:relative;width:100%;min-width:0;min-height:52px;justify-content:flex-start;padding:11px 10px;padding-inline-start:48px;color:var(--ink, #eadfca);font-family:var(--serif, Georgia, serif);font-size:.94rem;font-weight:400;line-height:1.2;text-align:start;letter-spacing:0;border:0;border-top:1px solid rgba(201,151,63,.1);border-radius:11px;background:transparent;box-shadow:none;text-shadow:none;transform:none}.mobile-game-menu-dialog .mobile-game-menu-action:first-child{border-top:0}.mobile-game-menu-dialog .mobile-game-menu-action:before{position:absolute;inset-inline-start:11px;width:26px;content:attr(data-menu-icon);color:#d8c49ad1;font-family:ui-sans-serif,system-ui,sans-serif;font-size:1.05rem;font-weight:400;text-align:center}.mobile-game-menu-dialog .mobile-game-menu-action:hover,.mobile-game-menu-dialog .mobile-game-menu-action:active{color:var(--ink, #eadfca);background:#eed59214;filter:none}.mobile-game-menu-dialog .mobile-game-menu-action.btn-primary{color:var(--ink, #eadfca);font-weight:600;border:1px solid rgba(127,216,207,.3);background:#7fd8cf1c;box-shadow:inset 0 1px #d2f8f30f}.mobile-game-menu-dialog .mobile-game-menu-action.btn-primary:before{color:#7fd8cfe0}.mobile-game-menu-dialog .mobile-game-menu-action.btn-danger{color:#d9a3a0}}@media(max-height:560px)and (orientation:landscape){.mobile-game-menu-dialog{align-items:stretch;justify-content:flex-end;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) 8px}html[dir=rtl] .mobile-game-menu-dialog{justify-content:flex-start;padding-right:8px;padding-left:max(8px,env(safe-area-inset-left))}.mobile-game-menu-dialog .dialog{width:min(350px,82vw);max-height:100%;border-radius:18px}}@media(max-width:900px)and (orientation:portrait){html.tw-tilt .mobile-game-menu-dialog{align-items:stretch;justify-content:flex-end;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) 8px}html.tw-tilt[dir=rtl] .mobile-game-menu-dialog{justify-content:flex-start;padding-right:8px;padding-left:max(8px,env(safe-area-inset-left))}html.tw-tilt .mobile-game-menu-dialog .dialog{width:min(350px,82%);max-height:100%;border-radius:18px}}@media(max-width:900px)and (orientation:portrait),(max-height:560px)and (orientation:landscape){html.tawla-page .mobile-game-menu-dialog{align-items:center;justify-content:center;padding:8px}html.tawla-page .mobile-game-menu-dialog .dialog{width:min(680px,calc(100% - 8px));max-width:680px;max-height:calc(100% - 8px);padding:7px 10px 10px;overflow:hidden;border-radius:18px;overscroll-behavior:none;touch-action:manipulation;scrollbar-width:none}html.tawla-page .mobile-game-menu-dialog .dialog::-webkit-scrollbar{display:none}html.tawla-page .mobile-game-menu-dialog .dialog:before{display:none}html.tawla-page .mobile-game-menu-dialog .dialog-head{position:static;min-height:44px;margin:0 0 3px;padding:1px 2px 3px;background:none}html.tawla-page .mobile-game-menu-dialog .dialog-head h2{font-size:.96rem}html.tawla-page .mobile-game-menu-dialog .dialog-x{min-width:44px;min-height:44px;padding:4px 10px}html.tawla-page .mobile-game-menu-dialog .mobile-controls-summary{min-height:48px;margin:0 0 5px;padding:6px 9px;gap:1px 10px}html.tawla-page .mobile-game-menu-dialog .mobile-controls-detail{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}html.tawla-page .mobile-game-menu-dialog .menu-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px;margin-top:0}html.tawla-page .mobile-game-menu-dialog .mobile-game-menu-action{min-height:44px;padding:7px 8px;padding-inline-start:40px;overflow:hidden;font-size:.86rem;white-space:nowrap;text-overflow:ellipsis;border:1px solid rgba(201,151,63,.12);border-radius:10px}html.tawla-page .mobile-game-menu-dialog .mobile-game-menu-action:first-child{border-top:1px solid rgba(201,151,63,.12)}html.tawla-page .mobile-game-menu-dialog .mobile-game-menu-action:before{inset-inline-start:8px;width:24px}}@media(max-width:900px)and (orientation:portrait),(max-height:560px)and (orientation:landscape){html.tawla-page .settings-dialog{padding:8px}html.tawla-page .settings-dialog .dialog{width:min(100%,820px);max-width:820px;max-height:calc(100% - 4px);padding:7px 10px 9px;overflow:hidden;overscroll-behavior:none;scrollbar-width:none}html.tawla-page .settings-dialog .dialog::-webkit-scrollbar{display:none}html.tawla-page .settings-dialog .dialog-head{min-height:44px;margin-bottom:2px}html.tawla-page .settings-dialog .dialog-head h2{font-size:1rem}html.tawla-page .settings-dialog .dialog-x{min-width:44px;min-height:44px;padding:4px 10px}html.tawla-page .settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:5px 12px}html.tawla-page .settings-group{min-width:0}html.tawla-page .settings-group:nth-child(3){display:grid;grid-column:1 / -1;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}html.tawla-page .settings-group:nth-child(3)>h3{grid-column:1 / -1}html.tawla-page .settings-dialog .dialog h3{margin:2px 0 1px;font-size:.68rem;line-height:1.25}html.tawla-page .settings-dialog .set-row{min-width:0;min-height:42px;gap:5px;padding:4px 0}html.tawla-page .settings-dialog .set-label{min-width:0}html.tawla-page .settings-dialog .set-label>span{overflow:hidden;font-size:.76rem;line-height:1.15;text-overflow:ellipsis}html.tawla-page .settings-dialog .set-label small{display:none}html.tawla-page .settings-dialog .seg{max-width:100%;gap:1px;padding:2px}html.tawla-page .settings-dialog .seg-btn{min-width:0;min-inline-size:24px;min-height:32px;padding:4px 6px;font-size:.68rem;line-height:1}html.tawla-page .settings-dialog .switch{width:44px;height:26px}html.tawla-page .settings-dialog .switch .knob{width:18px;height:18px}html.tawla-page .settings-dialog .switch.on .knob{transform:translate(18px)}}@media(max-width:900px)and (orientation:portrait){html.tw-tilt.tawla-page .settings-dialog{align-items:center;justify-content:center}html.tw-tilt.tawla-page .settings-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 12px}html.tw-tilt.tawla-page .settings-group:nth-child(3){display:block;grid-column:auto}}@media(max-height:560px)and (orientation:landscape){html.tawla-page .settings-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 12px}html.tawla-page .settings-group:nth-child(3){display:block;grid-column:auto}}html.tawla-page{--yk-physical-safe-top: env(safe-area-inset-top, 0px);--yk-physical-safe-right: env(safe-area-inset-right, 0px);--yk-physical-safe-bottom: env(safe-area-inset-bottom, 0px);--yk-physical-safe-left: env(safe-area-inset-left, 0px)}@media(max-width:900px)and (orientation:portrait){html.tw-tilt.tawla-page .screen-game>.hud-top>.mobile-controls-trigger{position:fixed;top:calc(50% - 22px);right:auto;bottom:auto;left:var(--tawla-menu-offset, 8px);margin:0;transform:none}html.tw-tilt.tawla-page :is(.mobile-game-menu-dialog,.settings-dialog){padding:calc(var(--yk-physical-safe-right) + 8px) calc(var(--yk-physical-safe-bottom) + 8px) calc(var(--yk-physical-safe-left) + 8px) calc(var(--yk-physical-safe-top) + 8px)}}
