| 1 | body { |
| 2 | margin: 0; |
| 3 | padding: 0; |
| 4 | overflow: hidden; |
| 5 | background: #000; |
| 6 | width: 100vw; |
| 7 | height: 100vh; |
| 8 | font-family: Arial, sans-serif; |
| 9 | } |
| 10 | |
| 11 | #game-container { |
| 12 | position: fixed; |
| 13 | top: 0; |
| 14 | left: 0; |
| 15 | width: 100vw; |
| 16 | height: 100vh; |
| 17 | } |
| 18 | |
| 19 | canvas { |
| 20 | display: block; |
| 21 | width: 100% !important; |
| 22 | height: 100% !important; |
| 23 | } |
| 24 | |
| 25 | #info { |
| 26 | position: absolute; |
| 27 | top: 20px; |
| 28 | left: 20px; |
| 29 | color: white; |
| 30 | font-size: 16px; |
| 31 | text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); |
| 32 | pointer-events: none; |
| 33 | z-index: 10; |
| 34 | background: rgba(0, 0, 0, 0.3); |
| 35 | padding: 10px 15px; |
| 36 | border-radius: 8px; |
| 37 | } |
| 38 | |
| 39 | #phase-indicator { |
| 40 | position: absolute; |
| 41 | top: 20px; |
| 42 | right: 20px; |
| 43 | color: white; |
| 44 | font-size: 20px; |
| 45 | font-weight: bold; |
| 46 | text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); |
| 47 | pointer-events: none; |
| 48 | z-index: 10; |
| 49 | text-align: right; |
| 50 | background: rgba(0, 0, 0, 0.3); |
| 51 | padding: 10px 15px; |
| 52 | border-radius: 8px; |
| 53 | } |
| 54 | |
| 55 | #web-meter { |
| 56 | position: absolute; |
| 57 | bottom: 30px; |
| 58 | left: 50%; |
| 59 | transform: translateX(-50%); |
| 60 | width: 300px; |
| 61 | height: 40px; |
| 62 | background: rgba(0, 0, 0, 0.4); |
| 63 | border: 3px solid rgba(255, 255, 255, 0.6); |
| 64 | border-radius: 20px; |
| 65 | overflow: hidden; |
| 66 | box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); |
| 67 | } |
| 68 | |
| 69 | #web-meter-fill { |
| 70 | height: 100%; |
| 71 | background: linear-gradient(90deg, #87ceeb, #e0f6ff); |
| 72 | transition: width 0.3s ease; |
| 73 | box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.5); |
| 74 | } |
| 75 | |
| 76 | #web-meter-label { |
| 77 | position: absolute; |
| 78 | bottom: 75px; |
| 79 | left: 50%; |
| 80 | transform: translateX(-50%); |
| 81 | color: white; |
| 82 | font-size: 14px; |
| 83 | font-weight: bold; |
| 84 | text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); |
| 85 | } |
| 86 | |
| 87 | /* Make buttons touch-friendly */ |
| 88 | #upgrade-shop button, |
| 89 | #stats-panel button, |
| 90 | #game-over-screen button { |
| 91 | min-height: 44px; |
| 92 | min-width: 44px; |
| 93 | touch-action: manipulation; |
| 94 | -webkit-tap-highlight-color: transparent; |
| 95 | user-select: none; |
| 96 | cursor: pointer; |
| 97 | } |
| 98 | |
| 99 | /* Prevent scroll/zoom issues on mobile */ |
| 100 | #upgrade-shop, |
| 101 | #stats-panel { |
| 102 | touch-action: none; |
| 103 | -webkit-user-select: none; |
| 104 | user-select: none; |
| 105 | } |