        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            /*align-items: center;*/
            min-height: 100vh;
            /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
        }

        .container-game {
            display: flex;
            position: relative;
            justify-content: center;
            width: 100%;
            /*max-width: 1000px;*/
            padding: 0 10px;
            /* ← marginesy na małych ekranach */
        }

        /* Select Box */
        .select-box,
        .play-board,
        .result-box {
            background: rgb(234, 234, 234);
            padding: 30px;
            border-radius: 15px;
            border: 3px solid #f8cb27;
            box-shadow: 0 0px 30px rgba(57, 168, 47, 0.451);
            text-align: center;
            /* max-width: 400px; */
            width: 100%;
            box-sizing: border-box;
        }

        .select-box,
        .result-box {
            max-width: 600px;
            position: absolute;
            margin-top: 10%;
            margin-left: auto;
            z-index: 950;
        }

        .select-box.hide {
            display: none;
        }

        .select-box h2 {
            font-size: 23px;
            color: #333;
        }

        .size-selection {
            margin: 10px 0;
        }

        .size-selection label {
            display: block;
            margin-bottom: 10px;
            font-size: 18px;
            color: #555;
        }
        .size-selection input {
            width: 70%;
        }
        .fieldCount{
            font-weight: 800;
        }

        .xxsmall{
            font-size: 0.65em;
        }

/*
        .size-selection input {
            width: 80px;
            padding: 8px;
            font-size: 16px;
            border: 2px solid #667eea;
            border-radius: 5px;
            text-align: center;
        }
*/
        .options {
            display: flex;
            gap: 15px;
            justify-content: center;
        }
/*
        .options button {
            padding: 10px 25px;
            font-size: 18px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: bold;
        }

        .options .playerX {
            background: #667eea;
            color: white;
        }

        .options .playerO {
            background: #764ba2;
            color: white;
        }

        .options button:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
*/
        /* Play Board */
        .play-board {
            /*display: none;*/
            background: white;
            padding: 10px;
            border-radius: 15px;
            box-shadow: 0 0 20px rgba(94, 255, 116, 0.3);
            max-width: 95vh;
            min-height: 70vh;
        }

        @media (max-width: 768px) {
            .play-board {
                padding: 10px;
            }

            .select-box {
                padding: 10px;
                max-width: 90vw;
            }
        }

        @media (max-width: 480px) {
            .play-board {
                padding: 10px;
            }

            .select-box {
                padding: 10px;
                max-width: 90vw;
            }

            .result-box {
                padding: 15px;
                max-width: 90vw;
            }
        }

        .play-board.show {
            display: block;
        }
/*
        .gamerFill {
            background-color: #d4fad4 !important;
            background: #b6f9b7;
        }
*/
        .slider {
            background-color: #3e5b3e !important;
        }

        .players {
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
            padding: 10px;
            background: #f0f0f0;
            border-radius: 8px;
        }

        .players div {
            font-size: 1.2rem;
            font-weight: bold;
            padding: 5px 10px;
            border-radius: 5px;
            transition: all 0.3s;
        }

        .players .active {
            background: #1ca83a;
            color: white;
        }

        .play-area {
            display: grid;
            gap: 5px;
            margin: 20px 0;
            max-width: 720px;
            width: 100%;
            margin-left: auto;
            margin-right: auto;
        }

        .play-area span {
            display: flex;
            justify-content: center;
            align-items: center;
            background: #f9f9f9;
            border: 2px solid #ddd;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            aspect-ratio: 1;
            min-width: 0;
        }


        .header-title {
            font-size: 2.2rem;
            color: rgb(18, 55, 21);
            text-align: center;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .play-area span:hover {
            background: #e8e8e8;
            transform: scale(1.05);
        }

        .play-area span i {
            font-size: 3em;
            pointer-events: none;
        }

        @media (max-width: 768px) {
            .play-area{
                gap: unset; 
            }
            .play-area span {
                border-radius: 0%;
                border: 1px solid #c5c5c5;
            }


            .play-area span i {
                font-size: 1.5em;
            }

            .radiodiffs {
                font-size: 0.9em;
            }

            .header-title {
                font-size: 1.2rem;
                margin-bottom: 0.5rem !important;
            }
        }

        @media (max-width: 480px) {
            .play-area span i {
                font-size: 1.2em;
            }

            .radiodiffs {
                font-size: 0.7em;
            }
        }

        .play-area span.fa-times {
            color: #667eea;
        }

        .play-area span.fa-circle {
            color: #764ba2;
        }

        /* Result Box */
        .result-box {
            display: none;
            background: white;
            padding: 20px;
            border-radius: 15px;
            border: 1px solid #555;
            box-shadow: 0 0px 30px rgba(57, 168, 47, 0.451);
            text-align: center;
        }

        .result-box.show {
            display: block;
        }

        .won-text {
            font-size: 24px;
            margin-bottom: 20px;
            color: #333;
            /*color:#237e17*/
        }

        .won-text p {
            display: inline;
            color: #667eea;
            font-weight: bold;
            font-size: 30px;
        }
/*
        .btn button {
            padding: 15px 40px;
            font-size: 18px;
            background: #667eea;
            color: #ffffff;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s;
        }

        .btn button:hover {
            background: #5568d3;
            transform: translateY(-2px);
        }
            */



            /* Stylowanie ścieżki (tracka) */
.custom-range::-webkit-slider-runnable-track {
    background: #757779; /* jasny szary */
    height: 8px;
    border-radius: 5px;
}

.custom-range::-moz-range-track {
    background: #757779;
    height: 8px;
    border-radius: 5px;
}

.custom-range::-ms-track {
    background: #757779;
    height: 8px;
    border-radius: 5px;
    border-color: transparent;
    color: transparent;
}

/* Stylowanie wypełnionej części (opcjonalnie) */
.custom-range::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #0d6efd;
    cursor: pointer;
    border-radius: 50%;
    margin-top: -6px; /* wycentrowanie */
}

.custom-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #0d6efd;
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

.custom-range::-ms-thumb {
    width: 20px;
    height: 20px;
    background: #0d6efd;
    cursor: pointer;
    border-radius: 50%;
}

.score-animation {
    animation: scorePulse 1s ease-in-out;
}

@keyframes scorePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.winning {
    /*box-shadow: inset 0 0 10px rgb(56, 241, 93);*/
    background-color: rgba(56, 241, 93, 0.1) !important;
    border-color: rgba(38, 117, 53, 0.2) !important;
}
.bot-winning{
    background-color: rgba(241, 219, 56, 0.2) !important;
    border-color: rgba(115, 118, 34, 0.2) !important;
}

.flashBot{
    animation: yellowflash-bg 2s;
}

@keyframes yellowflash-bg {
  from { background: rgb(42, 255, 234); }
  to   { background: transparent; }
}