.two-player-title-screen{z-index:9999;box-sizing:border-box;-webkit-user-select:none;user-select:none;touch-action:manipulation;background:linear-gradient(#0f172a 0%,#1e1b4b 50%,#0f172a 100%);flex-direction:column;justify-content:center;align-items:center;width:100%;height:100dvh;padding:24px 16px;display:flex;position:fixed;inset:0}.title-container{flex-direction:column;align-items:center;gap:28px;width:100%;max-width:360px;display:flex}.title-logo-area{text-align:center}.title-game-title{color:#fbbf24;text-shadow:0 4px 12px #0009,0 0 20px #fbbf2466;letter-spacing:2px;margin:0 0 8px;font-size:36px;font-weight:900}.title-game-subtitle{color:#94a3b8;margin:0;font-size:14px;font-weight:700}.title-buttons-area{flex-direction:column;gap:16px;width:100%;display:flex}.title-mode-btn{color:#fff;cursor:pointer;touch-action:manipulation;border:none;border-radius:16px;outline:none;justify-content:center;align-items:center;gap:12px;width:100%;min-height:68px;font-size:20px;font-weight:800;transition:transform .1s,filter .1s;display:flex;box-shadow:0 6px 16px #0006}.title-mode-btn:active{filter:brightness(.9);transform:scale(.96)}.title-btn-1p{background:linear-gradient(135deg,#0284c7,#2563eb);border-bottom:4px solid #1d4ed8}.title-btn-2p{background:linear-gradient(135deg,#9333ea,#db2777);border-bottom:4px solid #a21caf}.title-btn-icon{font-size:28px}.title-btn-text{letter-spacing:1px}.two-player-mode-badge{color:#fff;-webkit-user-select:none;user-select:none;border-radius:9999px;justify-content:center;align-items:center;gap:6px;margin:6px 0;padding:4px 12px;font-size:14px;font-weight:800;display:inline-flex}.two-player-mode-badge.mode-1p{background:linear-gradient(135deg,#0284c7,#2563eb);box-shadow:0 2px 6px #2563eb66}.two-player-mode-badge.mode-2p{background:linear-gradient(135deg,#9333ea,#db2777);box-shadow:0 2px 6px #db277766}.two-player-back-mode-btn{color:#475569;cursor:pointer;touch-action:manipulation;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:12px;outline:none;justify-content:center;align-items:center;gap:4px;min-height:40px;padding:6px 14px;font-size:13px;font-weight:700;transition:transform .1s,background .1s;display:inline-flex}.two-player-back-mode-btn:active{background:#e2e8f0;transform:scale(.96)}.title-btn-back{background:linear-gradient(135deg,#64748b,#475569);border-bottom:4px solid #334155;min-height:50px;font-size:16px}*{box-sizing:border-box;-webkit-user-select:none;user-select:none;touch-action:none}body{color:#fff;background-color:#333;justify-content:center;align-items:center;width:100vw;height:100dvh;margin:0;padding:0;font-family:sans-serif;display:flex;overflow:hidden}#game-container{background:0 0;width:100%;max-width:600px;height:100%;position:relative;overflow:hidden}#phaser-app{width:100%;height:100%}#phaser-app canvas{object-fit:contain;width:100%!important;height:100%!important}.hidden{display:none!important}.screen{z-index:100;text-align:center;background:#000c;flex-direction:column;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}h1{color:#fbbf24;margin-bottom:30px;font-size:28px}h2{font-size:24px}.menu-btn{color:#fff;cursor:pointer;background:#3b82f6;border:none;border-radius:8px;margin:10px;padding:15px 30px;font-size:20px;font-weight:700}.menu-btn:active{background:#2563eb}#hud{z-index:50;pointer-events:none;padding:10px;position:absolute;top:0;left:0;right:0}#hud-top{pointer-events:auto;flex-wrap:wrap;justify-content:space-between;align-items:center;display:flex}#hud-timer,#hud-cost{text-shadow:1px 1px 2px #000;margin-right:10px;font-size:18px;font-weight:700}.hud-btn{color:#fff;cursor:pointer;background:#4b5563;border:none;border-radius:4px;padding:8px 12px;font-size:16px}#joystick-container{z-index:50;touch-action:none;width:120px;height:120px;position:absolute;bottom:20px;left:20px}.joystick-base{background:#fff3;border:2px solid #ffffff80;border-radius:50%;width:120px;height:120px;position:absolute;bottom:0;left:0}.joystick-stick{pointer-events:none;background:#fff9;border-radius:50%;width:50px;height:50px;margin-top:-25px;margin-left:-25px;position:absolute;top:50%;left:50%}#action-buttons{z-index:50;flex-direction:column;gap:10px;display:flex;position:absolute;bottom:20px;right:20px}.action-btn{color:#fff;touch-action:none;cursor:pointer;background:#ef4444b3;border:none;border-radius:50%;width:80px;height:80px;font-size:14px;font-weight:700}.action-btn.pressed{background:#dc2626e6;transform:scale(.95)}#btn-throw{z-index:50;background:#3b82f6b3;position:absolute;bottom:120px;right:20px}#notification{color:#ef4444;text-shadow:1px 1px 3px #000,-1px -1px 3px #000;z-index:80;pointer-events:none;font-size:24px;font-weight:700;transition:opacity .5s;position:absolute;top:30%;left:50%;transform:translate(-50%,-50%)}#game-container.mode-2p #game-controller-p2{z-index:50;pointer-events:none;justify-content:space-between;align-items:center;height:105px;padding:8px 16px;display:flex;position:absolute;top:0;left:0;right:0;transform:rotate(180deg)}#game-container.mode-2p #joystick-container-p2{pointer-events:auto;touch-action:none;width:90px;height:90px;position:relative}#game-container.mode-2p #joystick-container-p2 .joystick-base{width:90px;height:90px}#game-container.mode-2p #joystick-container-p2 .joystick-stick{width:44px;height:44px;margin-top:-22px;margin-left:-22px}#game-container.mode-2p #action-buttons-p2{pointer-events:auto;flex-direction:row-reverse;gap:12px;display:flex}#game-container.mode-2p .action-btn{border-radius:12px;width:90px;height:48px;min-height:48px;font-size:15px;font-weight:800;box-shadow:0 4px 8px #0006}#game-container.mode-2p #btn-grab-p2{background:#ec4899d9}#game-container.mode-2p #btn-grab-p2.pressed{background:#db2777}#game-container.mode-2p #btn-throw-p2{background:#a855f7d9}#game-container.mode-2p #hud-center-bar{z-index:60;box-sizing:border-box;background:#0f172ae6;border-top:1px solid #ffffff4d;border-bottom:1px solid #ffffff4d;justify-content:space-between;align-items:center;height:38px;padding:0 12px;display:flex;position:absolute;top:50%;left:0;right:0;transform:translateY(-50%)}.hud-center-item{color:#fbbf24;font-size:13px;font-weight:700}.hud-btn-title{color:#fff;cursor:pointer;background:#ef4444;border:none;border-radius:8px;min-height:32px;padding:6px 12px;font-size:13px;font-weight:800}#game-container.mode-2p #action-buttons{flex-direction:row;gap:12px;display:flex;position:absolute;bottom:8px;right:16px}#game-container.mode-2p #btn-throw{border-radius:12px;width:90px;height:48px;min-height:48px;display:inline-block;position:static}#game-container.mode-2p #joystick-container{width:90px;height:90px;bottom:8px;left:16px}#game-container.mode-2p #joystick-container .joystick-base{width:90px;height:90px}#game-container.mode-2p #joystick-container .joystick-stick{width:44px;height:44px;margin-top:-22px;margin-left:-22px}
