* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
            background: linear-gradient(135deg, #8b4513 0%, #654321 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .game-container {
            background: white;
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            max-width: 1000px;
            width: 100%;
        }

        .game-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .game-title {
            font-size: 2.5em;
            font-weight: 700;
            color: #2d3436;
            margin-bottom: 10px;
        }

        .game-subtitle {
            color: #636e72;
            font-size: 1.1em;
        }

        .game-canvas {
            border: 4px solid #2d3436;
            border-radius: 10px;
            display: block;
            margin: 0 auto;
            background: #deb887;
            cursor: crosshair;
        }

        .game-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin: 20px 0;
            font-weight: bold;
            color: #2d3436;
            font-size: 1.1em;
        }

        .info-item {
            text-align: center;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 10px;
        }

        .score-display {
            color: #e74c3c;
        }

        .frame-display {
            color: #3498db;
        }

        .throw-display {
            color: #27ae60;
        }

        .controls {
            text-align: center;
            margin-top: 20px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 10px;
        }

        .controls h3 {
            color: #2d3436;
            margin-bottom: 15px;
        }

        .control-item {
            display: inline-block;
            margin: 5px 15px;
            padding: 8px 16px;
            background: #8b4513;
            color: white;
            border-radius: 20px;
            font-size: 0.9em;
        }

        .message {
            text-align: center;
            padding: 15px;
            border-radius: 10px;
            margin: 10px 0;
            font-weight: bold;
            display: none;
        }

        .message.show {
            display: block;
        }

        .message.strike {
            background: #f1c40f;
            color: #2d3436;
        }

        .message.spare {
            background: #55efc4;
            color: #2d3436;
        }

        .message.game-over {
            background: #fd79a8;
            color: white;
        }

        .start-button {
            display: block;
            margin: 20px auto;
            padding: 12px 30px;
            background: #8b4513;
            color: white;
            border: none;
            border-radius: 25px;
            font-size: 1.1em;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .start-button:hover {
            background: #654321;
            transform: translateY(-2px);
        }

        .power-indicator {
            text-align: center;
            margin: 15px 0;
        }

        .power-bar {
            width: 300px;
            height: 20px;
            background: #ddd;
            border-radius: 10px;
            margin: 10px auto;
            overflow: hidden;
            border: 2px solid #2d3436;
        }

        .power-fill {
            height: 100%;
            background: linear-gradient(90deg, #00b894, #fdcb6e, #e17055);
            width: 0%;
            transition: width 0.1s ease;
        }

        .accuracy-indicator {
            text-align: center;
            margin: 10px 0;
        }

        .accuracy-bar {
            width: 300px;
            height: 15px;
            background: #ddd;
            border-radius: 10px;
            margin: 10px auto;
            position: relative;
            border: 2px solid #2d3436;
        }

        .accuracy-target {
            position: absolute;
            width: 60px;
            height: 100%;
            background: rgba(39, 174, 96, 0.3);
            border-radius: 10px;
            left: 50%;
            transform: translateX(-50%);
        }

        .accuracy-marker {
            position: absolute;
            width: 4px;
            height: 100%;
            background: #e74c3c;
            border-radius: 2px;
            left: 0%;
            transition: left 0.05s ease;
        }

        .scoreboard {
            background: #2d3436;
            color: white;
            padding: 15px;
            border-radius: 10px;
            margin: 20px 0;
            font-family: monospace;
        }

        .frame-scores {
            display: grid;
            grid-template-columns: repeat(10, 1fr);
            gap: 5px;
            margin-bottom: 10px;
        }

        .frame-box {
            border: 1px solid white;
            padding: 5px;
            text-align: center;
            min-height: 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            font-size: 0.9em;
        }

        .frame-box.current {
            background: rgba(231, 76, 60, 0.3);
        }

        .total-score {
            text-align: center;
            font-size: 1.5em;
            font-weight: bold;
            padding: 10px;
            border-top: 2px solid white;
        }

        @media (max-width: 768px) {
            .game-container {
                padding: 20px;
                margin: 10px;
            }
            
            .game-canvas {
                width: 100%;
                height: auto;
            }

            .game-info {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .power-bar, .accuracy-bar {
                width: 250px;
            }

            .control-item {
                display: block;
                margin: 5px 0;
            }

            .frame-scores {
                grid-template-columns: repeat(5, 1fr);
                gap: 3px;
            }
        }