.oeh-root, .oeh-root * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
.oeh-root{
            /* ベースカラー（70%） */
            --base: #FFFFFF;
            --base-light: #FAFAFA;
            --base-dark: #F5F5F5;
            
            /* メインカラー（25%） - ネイビーブルー */
            --main: #1e3a5f;
            --main-light: #2d5a8f;
            --main-dark: #0f1e3a;
            
            /* アクセントカラー（5%） - ゴールド */
            --accent: #d4af37;
            --accent-light: #f4cf5f;
            --accent-dark: #b8941f;
            
            /* テキストカラー */
            --text: #2C3E50;
            --text-light: #7F8C8D;
            
            /* ボーダー */
            --border: #E8E8E8;
            
            /* シャドウ */
            --shadow: 0 4px 20px rgba(30, 58, 95, 0.1);
            --shadow-hover: 0 8px 30px rgba(30, 58, 95, 0.15);
        }
.oeh-root{
            font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
            background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 50%, #F0F2F5 100%);
            color: var(--text);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 16px;
        }

        .game-container {
            width: 100%;
            max-width: 1200px;
            background: var(--base);
            border-radius: 24px;
            box-shadow: var(--shadow);
            padding: 24px;
            border-top: 3px solid var(--accent);
            border-bottom: 3px solid var(--accent);
            position: relative;
        }

        .app-title {
            font-size: 2rem;
            margin-bottom: 20px;
            text-align: center;
            color: var(--main);
            font-weight: 900;
            text-shadow: 0 2px 4px rgba(30, 58, 95, 0.1);
        }



        /* ===== 設定画面 ===== */
        .target-selection {
            background: var(--base);
            padding: 24px;
            border-radius: 20px;
            border: 2px solid var(--border);
            box-shadow: var(--shadow);
            position: relative;
        }

        .target-selection::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
            border-radius: 20px 20px 0 0;
        }



        .setting-group {
            margin-bottom: 16px;
        }



        .target-buttons {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            max-width: 500px;
            margin: 0 auto 12px;
        }

        .target-btn {
            padding: 14px 20px;
            font-size: 1.1rem;
            border: 2px solid var(--border);
            border-radius: 16px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 900;
            background: var(--base);
            color: var(--text);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            position: relative;
            box-shadow: 0 2px 8px rgba(30, 58, 95, 0.1);
        }

        .target-btn:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-hover);
            border-color: var(--accent);
            background: #fffcf5;
        }

        .target-btn.selected {
            border-color: var(--main);
            background: var(--main);
            color: var(--accent);
            box-shadow: 0 8px 20px rgba(30, 58, 95, 0.35);
            transform: scale(1.05);
        }

        .target-btn.selected::before {
            content: '✓';
            position: absolute;
            top: 8px;
            right: 12px;
            font-size: 1.5rem;
            font-weight: bold;
        }

        .target-icon {
            font-size: 1.5rem;
        }

        .difficulty-buttons {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            gap: 10px;
            max-width: 600px;
            margin: 0 auto 12px;
        }

        .difficulty-btn {
            padding: 12px 16px;
            font-size: 1rem;
            border: 2px solid var(--border);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 900;
            background: var(--base);
            color: var(--text);
            position: relative;
        }

        .difficulty-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(30, 58, 95, 0.2);
            border-color: var(--accent);
        }

        .difficulty-btn.selected {
            background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
            color: var(--main-dark);
            border-color: var(--accent);
            box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
        }

        .difficulty-btn.selected::before {
            content: '✓';
            position: absolute;
            top: 4px;
            right: 8px;
            font-size: 1.2rem;
        }

        .difficulty-info {
            font-size: 0.9rem;
            color: var(--text-light);
            text-align: center;
            padding: 12px;
            background: var(--base-dark);
            border-radius: 12px;
            border: 1px solid var(--border);
            line-height: 1.4;
        }

        .start-game-section {
            text-align: center;
            margin-top: 20px;
            padding-top: 16px;
            border-top: 2px solid #bbdefb;
        }

        .start-game-btn {
            padding: 16px 40px;
            font-size: 1.3rem;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 900;
            background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
            color: var(--main-dark);
            margin-bottom: 8px;
            box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
        }

        .start-game-btn:hover:not(:disabled) {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
            background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
        }

        .start-game-btn:disabled {
            background: #cfd8dc;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
            color: #90a4ae;
        }

        .setup-hint {
            font-size: 1rem;
            color: var(--text-light);
            margin: 0;
        }

        /* ===== ゲーム画面 ===== */
        .game-section {
            display: none;
        }

        .game-section.active {
            display: block;
        }

        .game-info-and-controls {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 12px;
            margin-bottom: 16px;
            align-items: stretch;
        }

        .game-info {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
        }

        .controls-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-template-rows: 1fr 1fr;
            gap: 8px;
            min-width: 200px;
        }

        .info-card {
            background: var(--base);
            padding: 12px 16px;
            border-radius: 12px;
            text-align: center;
            border: 2px solid var(--border);
            box-shadow: var(--shadow);
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .info-label {
            font-size: 0.85rem;
            color: var(--text-light);
            font-weight: 600;
            margin-bottom: 2px;
        }

        .info-value {
            font-size: 1.4rem;
            font-weight: 900;
            color: var(--main);
        }

        .info-card.combo {
            background: var(--base);
            border-color: var(--accent);
        }

        .info-card.combo .info-label {
            color: var(--accent-dark);
        }

        .info-card.combo .info-value {
            color: var(--accent-dark);
        }

        .info-card.danger {
            background: #ffebee;
            border-color: #ef5350;
        }

        .info-card.danger .info-label {
            color: #e53935;
        }

        .info-card.danger .info-value {
            color: #c62828;
        }

        /* ボタンを情報カードと同じ高さに */
        .control-btn {
            background: var(--base);
            padding: 8px 12px;
            border-radius: 12px;
            text-align: center;
            border: 2px solid var(--border);
            box-shadow: var(--shadow);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.95rem;
            font-weight: 900;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .control-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: var(--shadow-hover);
        }

        .control-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .control-btn.start-btn {
            background: linear-gradient(135deg, var(--main-light) 0%, var(--main) 100%);
            color: #ffffff;
            border-color: var(--main);
        }

        .control-btn.start-btn:hover:not(:disabled) {
            background: linear-gradient(135deg, var(--main) 0%, var(--main-dark) 100%);
            box-shadow: 0 8px 20px rgba(30, 58, 95, 0.4);
        }

        .control-btn.pause-btn {
            background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
            color: white;
            border-color: #fb8c00;
        }

        .control-btn.help-btn {
            background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
            color: var(--main-dark);
            border-color: var(--accent);
        }

        .control-btn.help-btn:hover:not(:disabled) {
            background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
        }

        .control-btn.reset-btn {
            background: var(--base);
            color: var(--main);
            border-color: var(--main);
        }

        .control-btn.reset-btn:hover:not(:disabled) {
            background: var(--main);
            color: var(--accent);
            box-shadow: 0 8px 20px rgba(30, 58, 95, 0.3);
        }

        /* ===== ゲームエリアレイアウト ===== */
        .game-layout {
            display: grid;
            grid-template-columns: 120px 1fr 120px;
            gap: 0;
            margin-bottom: 16px;
            height: 500px;
        }

        .collection-side {
            background: var(--base-light);
            border-radius: 16px;
            border: 2px solid var(--border);
            position: relative;
            overflow: hidden;
        }

        .collection-side.left {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
            border-right: none;
        }

        .collection-side.right {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
            border-left: none;
        }

        .game-area {
            width: 100%;
            height: 100%;
            background: linear-gradient(180deg, var(--base) 0%, var(--base-light) 100%);
            position: relative;
            overflow: hidden;
            border-top: 3px solid var(--main-light);
            border-bottom: 3px solid var(--main-light);
            box-shadow: 0 4px 16px rgba(30, 58, 95, 0.15);
            touch-action: manipulation;
        }

        .game-area.paused .number {
            animation-play-state: paused;
        }

        .game-area.input-locked {
            pointer-events: none;
        }

        .number {
            position: absolute;
            width: 70px;
            height: 70px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            font-weight: 900;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            animation: fall linear;
            background: var(--base);
            color: var(--main);
            box-shadow: 0 4px 16px rgba(30, 58, 95, 0.2);
            border: 4px solid var(--main-light);
        }

        .number:hover {
            transform: scale(1.15);
            box-shadow: 0 6px 24px rgba(30, 58, 95, 0.3);
            border-color: var(--accent);
        }

        .number:active {
            transform: scale(0.95);
        }

        .collected-ball {
            position: absolute;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 900;
            background: linear-gradient(135deg, var(--base) 0%, #f5f5f5 100%);
            color: var(--main);
            box-shadow: 0 2px 12px rgba(30, 58, 95, 0.2);
            border: 3px solid var(--accent-light);
            pointer-events: none;
            opacity: 0.65;
        }

        @keyframes fall {
            from {
                transform: translateY(-80px);
            }
            to {
                transform: translateY(530px);
            }
        }

        .controls {
            display: flex;
            gap: 8px;
            justify-content: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .help-btn {
            background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
            color: var(--main-dark);
            font-weight: 900;
        }

        .help-btn:hover:not(:disabled) {
            background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
        }
.oeh-root button{
            padding: 10px 18px;
            font-size: 1rem;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 900;
            box-shadow: 0 4px 12px rgba(30, 58, 95, 0.15);
        }

        .start-btn {
            background: linear-gradient(135deg, var(--main-light) 0%, var(--main) 100%);
            color: #ffffff;
        }

        .start-btn:hover:not(:disabled) {
            background: linear-gradient(135deg, var(--main) 0%, var(--main-dark) 100%);
            box-shadow: 0 8px 20px rgba(30, 58, 95, 0.4);
        }

        .pause-btn {
            background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
            color: white;
        }

        .reset-btn {
            background: var(--base);
            color: var(--main);
            border: 2px solid var(--main) !important;
        }

        .reset-btn:hover:not(:disabled) {
            background: var(--main);
            color: var(--accent);
            box-shadow: 0 8px 20px rgba(30, 58, 95, 0.3);
        }

        button:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
        }

        button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .rules {
            background: linear-gradient(135deg, #f5f9ff 0%, #e8f4ff 100%);
            padding: 24px;
            border-radius: 16px;
            text-align: left;
            margin-top: 24px;
            border: 2px solid #bbdefb;
        }

        /* ===== ヘルプポップアップ ===== */
        .help-popup {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(30, 58, 95, 0.9);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            backdrop-filter: blur(8px);
        }

        .help-content {
            background: var(--base);
            padding: 32px;
            border-radius: 20px;
            max-width: 600px;
            width: 90%;
            box-shadow: 0 20px 60px rgba(30, 58, 95, 0.3);
            border-top: 4px solid var(--accent);
        }

        .help-title {
            font-size: 1.5rem;
            margin-bottom: 20px;
            color: var(--main);
            font-weight: 900;
            text-align: center;
        }

        .help-content ul {
            list-style-type: none;
            padding-left: 0;
        }

        .help-content li {
            margin: 12px 0;
            padding-left: 32px;
            position: relative;
            line-height: 1.6;
            color: var(--text);
        }

        .help-content li:before {
            content: "🎯";
            position: absolute;
            left: 0;
            font-size: 1.2rem;
        }

        .close-help-btn {
            width: 100%;
            padding: 14px;
            margin-top: 20px;
            background: linear-gradient(135deg, var(--main-light) 0%, var(--main) 100%);
            color: #ffffff;
            border: none;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 900;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .close-help-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4);
            background: linear-gradient(135deg, var(--main) 0%, var(--main-dark) 100%);
        }

        /* ===== ゲームオーバー画面 ===== */
        .game-over {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 30, 58, 0.9);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            backdrop-filter: blur(8px);
        }

        .game-over-content {
            background: var(--base);
            padding: 48px;
            border-radius: 24px;
            text-align: center;
            max-width: 550px;
            width: 90%;
            box-shadow: 0 20px 60px rgba(30, 58, 95, 0.3);
            border-top: 4px solid var(--accent);
            border-bottom: 4px solid var(--accent);
            position: relative;
        }

        .close-gameover-btn {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 40px;
            height: 40px;
            border: none;
            background: var(--base-light);
            color: var(--text);
            font-size: 1.5rem;
            font-weight: 900;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            border: 2px solid var(--border);
        }

        .close-gameover-btn:hover {
            background: var(--main);
            color: var(--base);
            transform: rotate(90deg);
            box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
        }

        .game-over-title {
            font-size: 2rem;
            margin-bottom: 24px;
            font-weight: 900;
            color: var(--main);
        }

        .score-display {
            font-size: 3rem;
            margin: 24px 0;
            font-weight: 900;
            background: linear-gradient(135deg, var(--main) 0%, var(--main-light) 50%, var(--accent) 100%);
            color: #000000;
            -webkit-text-fill-color: #000000;
            -webkit-background-clip: border-box;
            background-clip: border-box;
            padding: 14px 18px;
            border-radius: 16px;
            box-shadow: 0 10px 25px rgba(30, 58, 95, 0.18);
            text-align: center;
        }
.game-stats {
            background: var(--base-light);
            padding: 24px;
            border-radius: 16px;
            margin: 24px 0;
            border: 2px solid var(--border);
        }

        .stat-row {
            display: flex;
            justify-content: space-between;
            margin: 12px 0;
            font-size: 1.1rem;
            color: var(--text);
        }

        .stat-label {
            font-weight: 600;
            color: var(--text-light);
        }

        .stat-value {
            font-weight: 900;
            color: var(--main);
        }

        .game-over-buttons {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 32px;
        }

        .game-over-buttons button {
            padding: 16px 32px;
            font-size: 1.2rem;
            border-radius: 50px;
        }

        .retry-btn {
            background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
            color: var(--main-dark);
            font-weight: 900;
        }

        .retry-btn:hover {
            background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
        }

        .settings-btn {
            background: linear-gradient(135deg, var(--main-light) 0%, var(--main) 100%);
            color: #ffffff;
            font-weight: 900;
        }

        .settings-btn:hover {
            background: linear-gradient(135deg, var(--main) 0%, var(--main-dark) 100%);
        }

        /* ===== スコアエフェクト ===== */
        @keyframes scoreFloat {
            0% {
                transform: translateY(0);
                opacity: 1;
            }
            100% {
                transform: translateY(-60px);
                opacity: 0;
            }
        }

        .score-effect {
            position: absolute;
            font-size: 1.8rem;
            font-weight: bold;
            pointer-events: none;
            z-index: 1000;
            animation: scoreFloat 1s ease-out forwards;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        /* ===== レスポンシブ対応 ===== */
        @media (max-width: 768px) {
            .game-container {
                padding: 20px;
            }

            .app-title {
                font-size: 1.8rem;
            }

            .target-buttons {
                grid-template-columns: 1fr;
            }

            .game-info-and-controls {
                grid-template-columns: 1fr;
            }

            .game-info {
                grid-template-columns: repeat(2, 1fr);
            }

            .controls-grid {
                grid-template-columns: repeat(2, 1fr);
                min-width: auto;
            }

            .game-layout {
                grid-template-columns: 80px 1fr 80px;
                height: 400px;
            }

            .number {
                width: 60px;
                height: 60px;
                font-size: 1.5rem;
            }
        }

        @media (max-width: 480px) {

            .difficulty-buttons {
                grid-template-columns: 1fr 1fr;
            }

            .control-btn {
                font-size: 0.85rem;
                padding: 8px 10px;
            }
        }

        @media (max-width: 480px) {
            .difficulty-buttons {
                grid-template-columns: 1fr 1fr;
            }

            .controls {
                flex-direction: column;
            }

            .controls button {
                width: 100%;
            }
        }