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

:root {
    --primary-color: #00ffcc;
    --secondary-color: #ff00ff;
    --accent-color: #ffcc00;
    --text-color: #e6edf3;
    --bg-light: #1f242c;
    --bg-dark: #0d1117;
    --success-color: #00ffcc;
    --danger-color: #ff3333;
    --combo-color: #ffcc00;
    --brown: #8B6F47;
    --grid-color: rgba(0, 255, 204, 0.1);
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Arial', 'Hiragino Sans', sans-serif;
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    overflow: hidden;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* 基本構造 */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    transition: opacity 0.3s ease;
    z-index: 100;
    animation: grid-move 20s linear infinite;
}

.screen.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

/* モバイル警告 */
.mobile-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.mobile-warning.hidden {
    display: none;
}

.mobile-warning-content {
    text-align: center;
    background: rgba(0,0,0,0.8);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.2);
}

.mobile-warning-content h1 {
    font-size: 32px;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--accent-color);
}

.mobile-warning-content p {
    font-size: 18px;
    color: var(--text-color);
}

/* チュートリアル画面 */
.tutorial-container {
    background: rgba(0,0,0,0.8);
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 40px rgba(0, 255, 204, 0.2);
    text-align: center;
}

.tutorial-container h1 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-shadow: 0 0 10px var(--primary-color);
}

.tutorial-content {
    margin-bottom: 30px;
}

.tutorial-section {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
}

.mole-demo {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: var(--brown);
    position: relative;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 255, 204, 0.3);
}

.mole-demo.red-mole {
    background: #3A1F08;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.4), 0 0 15px rgba(80, 40, 0, 0.5);
}

.mole-demo.red-mole::before,
.mole-demo.red-mole::after {
    display: none;
}

.mole-demo::before,
.mole-demo::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

.mole-demo::before {
    width: 20px;
    height: 25px;
    top: 20px;
    left: 15px;
}

.mole-demo::after {
    width: 20px;
    height: 25px;
    top: 20px;
    right: 15px;
}

.tutorial-section p {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.tutorial-warning {
    padding: 15px;
    background: rgba(255, 51, 51, 0.1);
    border: 2px solid var(--danger-color);
    border-radius: 5px;
    margin-bottom: 20px;
}

.tutorial-warning p {
    color: var(--danger-color);
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 0 5px var(--danger-color);
}

.tutorial-encouragement {
    padding: 20px;
    background: rgba(255, 204, 0, 0.1);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    margin-bottom: 30px;
}

.tutorial-encouragement p {
    font-size: 24px;
    color: var(--accent-color);
    font-weight: bold;
    text-shadow: 0 0 10px var(--accent-color);
}

.tutorial-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* 難易度選択画面 */
.difficulty-container {
    background: rgba(0,0,0,0.8);
    padding: 50px;
    border-radius: 20px;
    max-width: 700px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 40px rgba(0, 255, 204, 0.2);
    text-align: center;
}

.difficulty-container h1 {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--primary-color);
}

.difficulty-container .subtitle {
    font-size: 20px;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 40px;
}

.difficulty-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-difficulty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 35px;
    gap: 10px;
    font-size: 20px;
}

.difficulty-emoji {
    font-size: 48px;
}

.difficulty-name {
    font-weight: bold;
    color: white;
}

/* ボタン共通スタイル */
.btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    overflow: hidden;
    position: relative;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: scale(1.05);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.3), inset 0 0 15px rgba(0, 255, 204, 0.3);
    color: white;
}

.btn-primary:hover {
    background: rgba(0, 255, 204, 0.2);
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.6), inset 0 0 20px rgba(0, 255, 204, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    opacity: 0.6;
}

.btn-secondary:hover {
    opacity: 1;
    background: rgba(0, 255, 204, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
    color: #fff;
}

.btn-danger {
    background: rgba(255, 51, 51, 0.2);
    border-color: var(--danger-color);
    color: white;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.3);
}

.btn-danger:hover {
    background: rgba(255, 51, 51, 0.3);
    box-shadow: 0 0 25px rgba(255, 51, 51, 0.6);
}

.btn-difficulty {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    flex: 1;
    min-width: 150px;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.3), inset 0 0 15px rgba(0, 255, 204, 0.3);
}

.btn-difficulty:hover {
    background: rgba(0, 255, 204, 0.2);
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.6), inset 0 0 20px rgba(0, 255, 204, 0.6);
}

.btn-icon {
    padding: 8px 12px;
    font-size: 20px;
    background: transparent;
    border: none;
}

.btn-icon:hover {
    transform: scale(1.2);
}

/* ゲーム画面 */
#gameScreen {
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    display: flex !important;
    flex-direction: column;
    z-index: 50;
    animation: grid-move 20s linear infinite;
}

.game-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid var(--grid-color);
    backdrop-filter: blur(5px);
}

.game-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.score-display,
.timer-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.label {
    opacity: 0.8;
}

.value {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.sound-button-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.game-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.game-field {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.hole {
    position: relative;
    background: radial-gradient(circle at 30% 30%, rgba(100, 50, 20, 0.5), var(--brown) 50%);
    border-radius: 50%;
    box-shadow: inset 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 255, 204, 0.2);
    cursor: pointer;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    border: 2px solid rgba(0, 255, 204, 0.3);
}

.hole:hover {
    box-shadow: inset 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 204, 0.4);
}

.mole {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 85%;
    background: var(--brown);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    cursor: pointer;
    pointer-events: none;
}

.mole.red-mole {
    background: #3A1F08;
    box-shadow: 0 0 15px rgba(80, 40, 0, 0.6);
}

.mole-glasses {
    position: absolute;
    top: 15%;
    left: -8%;
    width: 116%;
    height: 38%;
    z-index: 10;
}

.mole-glasses::before,
.mole-glasses::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 100%;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.9));
}

.mole-glasses::before {
    left: 0;
    background: 
        linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.9) 20%, rgba(255,255,255,0.9) 30%, transparent 30%, transparent 40%, rgba(255,255,255,0.9) 40%, rgba(255,255,255,0.9) 50%, transparent 50%),
        linear-gradient(180deg, #2a2a35 0%, #050505 100%);
    clip-path: polygon(0 0, 100% 50%, 40% 100%);
}

.mole-glasses::after {
    right: 0;
    background: linear-gradient(180deg, #2a2a35 0%, #050505 100%);
    clip-path: polygon(100% 0, 0 50%, 60% 100%);
}

.mole.red-mole::before,
.mole.red-mole::after {
    display: none;
}

.mole::before,
.mole::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

.mole::before {
    width: 15%;
    height: 20%;
    top: 25%;
    left: 20%;
    box-shadow: inset -2px -2px 2px rgba(0, 0, 0, 0.2);
}

.mole::after {
    width: 15%;
    height: 20%;
    top: 25%;
    right: 20%;
    box-shadow: inset -2px -2px 2px rgba(0, 0, 0, 0.2);
}

.mole-mouth {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
}

.mole.red-mole .mole-mouth {
    width: 24px;
    height: 10px;
    background: transparent;
    border-top: 3px solid #000;
    border-radius: 50% 50% 0 0;
    bottom: 15%;
}

.mole.appearing {
    animation: moleAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.mole.disappearing {
    animation: moleDisappear 0.3s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}

@keyframes moleAppear {
    from {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes moleDisappear {
    from {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(100%) scale(0.8);
        opacity: 0;
    }
}

/* 一時停止オーバーレイ */
.pause-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    backdrop-filter: blur(8px);
}

.pause-overlay.hidden {
    display: none;
}

.pause-content {
    background: rgba(0,0,0,0.8);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 40px rgba(0, 255, 204, 0.2);
}

.pause-content h1 {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-shadow: 0 0 10px var(--primary-color);
}

.pause-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* リザルト画面 */
.result-container {
    background: rgba(0,0,0,0.8);
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 40px rgba(255, 204, 0, 0.2);
}

.result-container h1 {
    font-size: 36px;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 10px var(--accent-color);
}

.result-scores {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    justify-content: center;
}

.current-score,
.high-score {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: rgba(0,0,0,0.6);
    border: 2px solid;
}

.current-score {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.2);
}

.high-score {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.2);
}

.current-score .label,
.high-score .label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.current-score .label {
    color: var(--accent-color);
}

.high-score .label {
    color: var(--primary-color);
}

.score-value {
    display: block;
    font-size: 40px;
    font-weight: bold;
}

.current-score .score-value {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

.high-score .score-value {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.badge {
    display: inline-block;
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-left: 10px;
    animation: badgeBounce 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
    font-weight: bold;
    text-shadow: 0 0 5px var(--secondary-color);
}

.badge.hidden {
    display: none;
}

@keyframes badgeBounce {
    0% { transform: scale(0) rotate(-45deg); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1) rotate(0deg); }
}

.result-stats {
    background: rgba(0,0,0,0.6);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid var(--grid-color);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 255, 204, 0.1);
    font-size: 14px;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-color);
    opacity: 0.7;
}

.stat-value {
    color: var(--primary-color);
    font-weight: bold;
    text-shadow: 0 0 5px var(--primary-color);
}

.result-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* オプション画面 */
.options-container {
    background: rgba(0,0,0,0.8);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 40px rgba(0, 255, 204, 0.2);
}

.options-container h1 {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 10px var(--primary-color);
}

.options-content {
    margin-bottom: 30px;
}

.option-item {
    padding: 20px;
    border: 1px solid var(--grid-color);
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.6);
}

.option-label {
    font-weight: bold;
    color: var(--text-color);
}

.toggle-switch {
    width: 50px;
    height: 26px;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--grid-color);
    border-radius: 13px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.toggle-switch:checked {
    background: rgba(0, 255, 204, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.toggle-switch::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--text-color);
    top: 1px;
    left: 1px;
    transition: left 0.3s;
}

.toggle-switch:checked::before {
    left: 25px;
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
}

.toggle-label {
    margin-left: 10px;
    font-size: 14px;
    color: #666;
}

.volume-slider {
    width: 200px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.volume-value {
    margin-left: 10px;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

.option-item button {
    width: 100%;
    text-align: center;
}

.options-container > .btn-primary {
    width: 100%;
    display: block;
}

/* スコアポップアップ */
.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 150;
}

.score-popup {
    position: absolute;
    font-weight: bold;
    font-size: 24px;
    pointer-events: none;
    z-index: 151;
}

.score-popup.positive {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
    animation: popupPositive 1.5s ease-out forwards;
}

.score-popup.negative {
    color: var(--danger-color);
    text-shadow: 0 0 10px var(--danger-color);
    animation: popupNegative 1s ease-out forwards;
}

@keyframes popupPositive {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(0.8);
    }
}

@keyframes popupNegative {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(60px) scale(0.8);
    }
}

/* コンボ表示 */
.combo-display {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    font-weight: 900;
    color: #fff;
    -webkit-text-stroke: 2px var(--secondary-color);
    text-shadow: 0 0 20px var(--secondary-color), 0 0 40px var(--secondary-color), 0 0 60px var(--secondary-color);
    z-index: 160;
    pointer-events: none;
    animation: comboPop 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes comboPop {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.1) rotate(-15deg);
    }
    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.4) rotate(10deg);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.8) translateY(-40px);
    }
}

/* 画面シェイク */
@keyframes screenShake {
    0% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(-10px, 10px) rotate(-1deg); }
    40% { transform: translate(10px, -10px) rotate(1deg); }
    60% { transform: translate(-10px, -10px) rotate(-1deg); }
    80% { transform: translate(10px, 10px) rotate(1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.combo-shake {
    animation: screenShake 0.4s ease-in-out;
}

/* フラッシュオーバーレイ */
.flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
}

.flash-active {
    animation: flashAnim 0.3s ease-out;
}

@keyframes flashAnim {
    0% { opacity: 0.8; }
    100% { opacity: 0; }
}

/* 爆発エフェクト */
.explosion {
    position: absolute;
    width: 0;
    height: 0;
    z-index: 155;
    pointer-events: none;
}

.explosion::before {
    content: '';
    position: absolute;
    top: -150px;
    left: -150px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ffffff 10%, #ff5500 40%, #ff0000 60%, transparent 80%);
    border-radius: 50%;
    mix-blend-mode: screen;
    animation: blastAnim 0.7s ease-out forwards;
}

@keyframes blastAnim {
    0% { transform: scale(0.1); opacity: 1; }
    40% { transform: scale(2); opacity: 0.9; }
    100% { transform: scale(4); opacity: 0; }
}

.particle {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: #ffcc00;
    border-radius: 50%;
    box-shadow: 0 0 20px #ff0000, 0 0 10px #ffffff;
    animation: particleAnim 1s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes particleAnim {
    0% {
        transform: translate(0, 0) scale(2);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* レスポンシブ対応 */
@media (max-width: 800px) {
    .difficulty-container {
        padding: 30px;
        margin: 20px;
    }

    .difficulty-buttons {
        flex-direction: column;
    }

    .btn-difficulty {
        min-width: auto;
    }

    .game-field {
        gap: 10px;
    }

    .result-scores {
        flex-direction: column;
        gap: 15px;
    }

    .options-container {
        padding: 30px;
        margin: 20px;
    }

    .option-item {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 500px) {
    .difficulty-container h1 {
        font-size: 32px;
    }

    .game-info {
        font-size: 14px;
        gap: 10px;
    }

    .value {
        font-size: 18px;
    }

    .result-container {
        padding: 20px;
        margin: 20px;
    }

    .score-value {
        font-size: 32px;
    }
}
