.mobile-game-controls{z-index:85;isolation:isolate;pointer-events:none;touch-action:none;color:#eaf4ff;--mobile-button-size:clamp(52px,7vmin,64px);font-family:Inter,system-ui,sans-serif;position:absolute;inset:0;overflow:hidden}.mobile-look-zone{z-index:0;pointer-events:auto;touch-action:none;position:absolute;inset:14% 0 9% 36%}.mobile-control-toolbar{left:50%;top:max(6px,env(safe-area-inset-top,0px));z-index:5;pointer-events:auto;align-items:center;gap:6px;display:flex;position:absolute;transform:translate(-50%)}.mobile-control-editor{color:#f1d4a1;letter-spacing:.05em;touch-action:manipulation;background:#06101dd9;border:1px solid #ecc88f94;border-radius:5px;min-width:52px;min-height:42px;padding:6px 10px;font-size:10px;font-weight:750}.mobile-control-editor:focus-visible,.mobile-touch-action:focus-visible{outline-offset:2px;outline:2px solid #fff}.mobile-control-instructions{z-index:4;left:50%;top:max(9px,env(safe-area-inset-top,0px));color:#fff;text-shadow:0 2px 4px #000;pointer-events:none;max-width:50%;padding:8px;font-size:11px;position:absolute;transform:translate(-30%)}.mobile-move-stick{left:clamp(calc(60px + env(safe-area-inset-left,0px)),var(--touch-x),calc(100% - 60px - env(safe-area-inset-right,0px)));top:clamp(calc(60px + env(safe-area-inset-top,0px)),var(--touch-y),calc(100% - 60px - env(safe-area-inset-bottom,0px)));z-index:3;pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;background:radial-gradient(circle,#3366922e,#06111fad);border:2px solid #b3d3ed94;border-radius:50%;width:clamp(106px,15vmin,142px);height:clamp(106px,15vmin,142px);position:absolute;transform:translate(-50%,-50%);box-shadow:0 0 0 5px #07101d29,inset 0 0 21px #0c243e80}.mobile-move-stick:before{content:"MOVE";letter-spacing:.1em;text-align:center;color:#ebf5ffcc;pointer-events:none;font-size:10px;font-weight:800;position:absolute;top:13px;left:0;right:0}.mobile-move-stick-thumb{pointer-events:none;background:radial-gradient(circle at 30% 30%,#83baebf2,#1f4269de);border:1px solid #d9e8f8cc;border-radius:50%;width:48px;height:48px;margin:-24px 0 0 -24px;position:absolute;top:50%;left:50%;box-shadow:0 2px 14px #00050dbf}.mobile-touch-action{left:clamp(calc(30px + env(safe-area-inset-left,0px)),var(--touch-x),calc(100% - 30px - env(safe-area-inset-right,0px)));top:clamp(calc(30px + env(safe-area-inset-top,0px)),var(--touch-y),calc(100% - 30px - env(safe-area-inset-bottom,0px)));z-index:3;min-width:var(--mobile-button-size);min-height:var(--mobile-button-size);width:var(--mobile-button-size);height:var(--mobile-button-size);text-align:center;color:#f2f6ff;letter-spacing:.025em;-webkit-user-select:none;user-select:none;pointer-events:auto;touch-action:none;-webkit-tap-highlight-color:transparent;background:linear-gradient(150deg,#1f3952d4,#051120e3);border:1px solid #b0cde8a8;border-radius:50%;place-items:center;padding:3px;font-size:clamp(9px,1.35vmin,12px);font-weight:800;line-height:1;display:grid;position:absolute;transform:translate(-50%,-50%);box-shadow:0 2px 9px #00000080,inset 0 1px #edf6ff21}.mobile-touch-action[data-special=true]{width:calc(var(--mobile-button-size) + 7px);height:calc(var(--mobile-button-size) + 7px);color:#fff5de;background:linear-gradient(145deg,#9f6929e8,#2a1913f2);border-color:#ffd087e6}.mobile-touch-action:active{background:#4f8dbef2;transform:translate(-50%,-50%)scale(.94)}.mobile-game-controls[data-editing=true] .mobile-look-zone{pointer-events:none}.mobile-game-controls[data-editing=true] .mobile-touch-action,.mobile-game-controls[data-editing=true] .mobile-move-stick{outline-offset:3px;cursor:grab;outline:1px dashed #f8d39d}@media (orientation:portrait){.mobile-game-controls{--mobile-button-size:50px}.mobile-move-stick{width:112px;height:112px}.mobile-look-zone{top:17%;bottom:12%;left:39%}.mobile-control-instructions{max-width:75%;top:55px;left:8px;transform:none}}@media (orientation:landscape) and (height<=470px){.mobile-game-controls{--mobile-button-size:50px}.mobile-move-stick{width:105px;height:105px}.mobile-move-stick-thumb{width:42px;height:42px;margin:-21px 0 0 -21px}.mobile-control-editor{min-height:30px;padding:3px 7px;font-size:9px}}@media (prefers-reduced-motion:reduce){.mobile-touch-action,.mobile-move-stick-thumb{transition:none}}.mobile-game-controls .mobile-touch-action[data-action=light],.mobile-game-controls .mobile-touch-action[data-action=attack]{width:clamp(76px,10vmin,90px);min-width:76px;height:clamp(76px,10vmin,90px);min-height:76px;left:clamp(calc(46px + env(safe-area-inset-left,0px)),var(--touch-x),calc(100% - 46px - env(safe-area-inset-right,0px)));top:clamp(calc(46px + env(safe-area-inset-top,0px)),var(--touch-y),calc(100% - 46px - env(safe-area-inset-bottom,0px)));background:radial-gradient(circle at 35% 30%,#b84b31e6,#3c1516ed);border:2px solid #ffad69f0;font-size:12px;box-shadow:0 0 0 4px #bf432a2e,0 3px 15px #000000ab}.mobile-game-controls .mobile-touch-action[data-action^=ability]{background:radial-gradient(circle at 35% 24%,#2a4c68f2,#061423f5);border:2px solid #e7b87bd9;font-size:17px}.mobile-game-controls .mobile-touch-action[data-special=true]{width:clamp(62px,8vmin,74px);min-width:62px;height:clamp(62px,8vmin,74px);min-height:62px;left:clamp(calc(38px + env(safe-area-inset-left,0px)),var(--touch-x),calc(100% - 38px - env(safe-area-inset-right,0px)));top:clamp(calc(38px + env(safe-area-inset-top,0px)),var(--touch-y),calc(100% - 38px - env(safe-area-inset-bottom,0px)));border-width:2px}.mobile-game-controls .mobile-touch-action[data-action=lock]{background:#06192ced;border:2px solid #8dc3e9cc;font-size:10px}.mobile-game-controls .mobile-touch-action[data-active=true]{background:radial-gradient(circle at 40% 28%,#4aaedef2,#0c2c57f0);box-shadow:0 0 0 4px #5fbcef3b,0 1px 14px #2ebeea80}.mobile-game-controls .mobile-touch-action[data-unready=true]{filter:grayscale(.45);opacity:.57}.mobile-game-controls .mobile-touch-action:disabled{cursor:not-allowed}.mobile-action-label{max-width:100%;line-height:1.1;display:block}.mobile-action-charge{color:#ffe7b0;font-size:10px;line-height:1.1;display:block}.mobile-gamepad-connected{color:#b4e9c6;white-space:nowrap;letter-spacing:.04em;background:#041d1bd9;border:1px solid #8ed9b494;border-radius:4px;padding:5px 7px;font-size:9px;font-weight:750}.mobile-orientation-prompt{z-index:15;pointer-events:auto;touch-action:manipulation;text-align:center;color:#f3f7fb;background:#030a14eb;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:20px 14px;display:flex;position:absolute;inset:0}.mobile-orientation-symbol{color:#edc583;font-size:38px;font-weight:900;line-height:1}.mobile-orientation-prompt strong{letter-spacing:.1em;font-size:16px}.mobile-orientation-prompt p{color:#bdd1e3;max-width:350px;margin:0;font-size:12px;line-height:1.4}.mobile-orientation-prompt small{color:#d6c29c;max-width:340px;font-size:11px}.mobile-orientation-choices{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}.mobile-orientation-choices button{color:#fff;background:#16334c;border:1px solid #edc784d9;border-radius:5px;min-width:140px;min-height:48px;padding:10px 16px;font-size:12px;font-weight:800}.mobile-orientation-choices button:first-child{color:#121a27;background:#bd8753}@media (orientation:landscape) and (height<=470px){.mobile-game-controls .mobile-touch-action[data-action=light],.mobile-game-controls .mobile-touch-action[data-action=attack]{width:76px;height:76px}.mobile-game-controls .mobile-touch-action[data-special=true]{width:62px;height:62px}.mobile-control-toolbar{top:max(2px,env(safe-area-inset-top,0px))}.mobile-control-editor{min-height:36px;padding:5px 8px;font-size:9px}}@media (orientation:portrait){.mobile-game-controls .mobile-touch-action[data-action=light],.mobile-game-controls .mobile-touch-action[data-action=attack]{width:70px;min-width:70px;height:70px;min-height:70px}.mobile-look-zone{top:14%;bottom:9%;left:37%}}@media (orientation:landscape){.mobile-game-controls[data-game=duelist] .mobile-move-stick{width:clamp(112px,16vmin,146px);height:clamp(112px,16vmin,146px)}.mobile-game-controls[data-game=duelist] .mobile-touch-action[data-action=light]{width:clamp(92px,13vmin,112px);height:clamp(92px,13vmin,112px)}.mobile-game-controls[data-game=duelist] .mobile-control-toolbar{left:auto;right:max(8px,env(safe-area-inset-right,0px));transform:none}}.mobile-game-controls[data-game=duelist] .mobile-touch-action[data-action^=ability],.mobile-game-controls[data-game=duelist] .mobile-touch-action[data-action=special]{isolation:isolate;touch-action:none;padding:0;display:block;position:absolute;overflow:visible}.mobile-game-controls[data-game=duelist] .mobile-touch-action[data-action^=ability]{width:clamp(60px,9vmin,70px);min-width:60px;height:clamp(60px,9vmin,70px);min-height:60px}.mobile-game-controls[data-game=duelist] .mobile-touch-action[data-action=special]{background:radial-gradient(circle at 45% 28%,#906627f2,#1f1615fa);width:clamp(72px,10vmin,82px);min-width:72px;height:clamp(72px,10vmin,82px);min-height:72px}.mobile-duelist-ability-name{color:#f8f6ed;letter-spacing:-.025em;text-shadow:0 1px 3px #000,0 0 6px #000;text-wrap:balance;pointer-events:none;justify-content:center;align-items:center;min-height:16px;font-size:9px;font-weight:850;line-height:1.02;display:flex;position:absolute;top:3px;left:6px;right:6px}.mobile-game-controls[data-game=duelist] .mobile-touch-action[data-action=special] .mobile-duelist-ability-name{font-size:9px;top:4px}.mobile-duelist-ability-art{pointer-events:none;color:#e9d1ad;filter:drop-shadow(0 1px 3px #010811);width:22px;height:22px;position:absolute;top:59%;left:50%;transform:translate(-50%,-50%)}.mobile-game-controls[data-game=duelist] .mobile-touch-action[data-action=special] .mobile-duelist-ability-art{color:#ffdc94;width:23px;height:23px;top:58%}.mobile-duelist-ability-number{color:#fff2d8;pointer-events:none;background:#091a2c;border:1px solid #f0c485bf;border-radius:6px;place-items:center;min-width:16px;height:17px;padding:1px 3px;font-size:9px;font-weight:850;display:grid;position:absolute;top:-8px;left:-5px}.mobile-duelist-ability-charge{color:#fff2cf;pointer-events:none;text-shadow:0 1px 3px #000;font-size:10px;font-weight:850;line-height:1;position:absolute;bottom:3px;left:0;right:0}.mobile-duelist-ability-type{color:#d9efff;white-space:nowrap;letter-spacing:.01em;text-shadow:0 1px 2px #000;pointer-events:none;background:#05111dd6;border:1px solid #64a9d873;border-radius:6px;max-width:110px;padding:2px 5px;font-size:9px;font-weight:800;line-height:1.1;position:absolute;top:calc(100% + 4px);left:50%;transform:translate(-50%)}.mobile-game-controls[data-game=duelist] .mobile-touch-action[data-action=special] .mobile-duelist-ability-type{color:#fce4b5;border-color:#f5c37094}.mobile-duelist-ability-cooldown{z-index:2;color:#fff;text-shadow:0 1px 4px #000;pointer-events:none;background:#050c16d1;border-radius:20px;place-items:center;font-size:12px;display:grid;position:absolute;inset:19px 2px 9px}.mobile-game-controls[data-game=duelist] .mobile-touch-action[data-low-will=true]{border-color:#b382c5bd}.mobile-game-controls[data-game=duelist] .mobile-touch-action[data-cooling=true] .mobile-duelist-ability-art{opacity:.42}@media (orientation:landscape) and (height<=390px){.mobile-game-controls[data-game=duelist] .mobile-touch-action[data-action^=ability]{width:58px;min-width:58px;height:58px;min-height:58px}.mobile-duelist-ability-name{font-size:8px}.mobile-duelist-ability-type{padding:1px 4px;font-size:8px}}.mobile-game-controls[data-landscape-required=true]{z-index:2147483000;touch-action:none;background:#030a14;width:100vw;height:100dvh;position:fixed;inset:0;overflow:hidden}.mobile-game-controls[data-landscape-required=true]>:not(.mobile-orientation-prompt){visibility:hidden;pointer-events:none}.mobile-game-controls[data-landscape-required=true] .mobile-orientation-prompt{visibility:visible;z-index:20;pointer-events:auto;padding:max(20px,env(safe-area-inset-top,0px)) max(18px,env(safe-area-inset-right,0px)) max(20px,env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px));display:flex;position:absolute;inset:0}
