        #menuLink {
            position: absolute;
            top: max(20px, env(safe-area-inset-top));
            left: max(20px, env(safe-area-inset-left));
            color: #3498db;
            text-decoration: none;
            font-size: 16px;
            padding: 8px;
            touch-action: manipulation;
        }
        #menuLink:hover {
            text-decoration: underline;
        }
        * { box-sizing: border-box; }
        body {
            font-family: Arial, sans-serif;
            text-align: center;
            margin: 0;
            padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
            min-height: 100vh;
            min-height: 100dvh;
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
            -webkit-tap-highlight-color: transparent;
        }
        h1 { font-size: clamp(22px, 6vw, 32px); margin: 40px 0 12px; }
        #gameContainer {
            width: min(600px, 92vw);
            height: clamp(200px, 42vh, 300px);
            margin: 0 auto;
            position: relative;
            border: 2px solid #333;
            overflow: hidden;
            background-color: #f0f0f0;
        }
        #movingObject {
            width: 40px;
            height: 40px;
            background-color: #3498db;
            border-radius: 50%;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            left: 0;
            transition: background-color 0.3s;
        }
        #targetZone {
            width: 80px;
            height: 100px;
            background-color: rgba(46, 204, 113, 0.5);
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            right: 16%;
            border: 2px dashed #2ecc71;
        }
        #scoreDisplay {
            font-size: 24px;
            margin: 20px;
        }
        #speedDisplay {
            font-size: 18px;
            margin: 10px;
            color: #7f8c8d;
        }
        #controls {
            margin: 20px;
        }
        button {
            padding: 12px 24px;
            min-height: 48px;
            font-size: 18px;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            touch-action: manipulation;
            margin: 0 10px;
        }
        #stopBar {
            margin: 20px auto 0;
            display: flex;
            justify-content: center;
        }
        #stopButton {
            background-color: #e74c3c;
            width: min(600px, 92vw);
            height: 72px;
            font-size: 26px;
            font-weight: bold;
            letter-spacing: 0.06em;
            border-radius: 14px;
            margin: 0;
            box-shadow: 0 6px 0 #b03a2e;
            transition: transform 0.06s, box-shadow 0.06s;
        }
        #stopButton:hover {
            background-color: #c0392b;
        }
        #stopButton:active {
            transform: translateY(4px);
            box-shadow: 0 2px 0 #b03a2e;
        }
        #resetButton {
            background-color: #3498db;
        }
        #resetButton:hover {
            background-color: #2980b9;
        }
        #message {
            height: 20px;
            color: #e74c3c;
            margin: 10px;
            font-weight: bold;
        }
        .max-speed {
            background-color: #e74c3c !important;
            animation: pulse 0.5s infinite alternate;
        }
        @keyframes pulse {
            from { transform: scale(1); }
            to { transform: scale(1.05); }
        }
        @media (max-height: 620px) {
            #stopButton {
                height: 56px;
                font-size: 20px;
            }
        }
