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

body {
    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    background:
        linear-gradient(
            135deg,
            #eef6ff,
            #f8fbff
        );

    color: #172033;

    min-height: 100vh;

    padding: 30px 20px;
}


.page {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}


/* =========================
   SOZLAMALAR
========================= */

.setup-card,
.questions-card,
.game-section {

    background: #ffffff;

    border-radius: 24px;

    padding: 28px;

    margin-bottom: 25px;

    box-shadow:
        0 12px 35px
        rgba(31, 55, 80, 0.10);
}


.setup-card h1 {

    font-size: 32px;

    margin-bottom: 8px;
}

.subtitle {

    color: #64748b;

    margin-bottom: 25px;
}


.form-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr 220px;

    gap: 18px;
}


.field label {

    display: block;

    font-weight: 700;

    margin-bottom: 8px;
}


.field input,
.field select {

    width: 100%;

    height: 48px;

    border:
        1px solid #d9e2ec;

    border-radius: 12px;

    padding:
        0 14px;

    font-size: 15px;

    outline: none;

    background: #fff;
}


.field input:focus,
.field select:focus {

    border-color: #2196f3;

    box-shadow:
        0 0 0 3px
        rgba(33,150,243,.10);
}


/* =========================
   JAMOALAR
========================= */

.teams-preview {

    margin-top: 25px;
}

.teams-preview h2 {

    margin-bottom: 12px;
}

.teams-list {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(180px, 1fr)
        );

    gap: 10px;
}


.team-preview {

    background: #f1f5f9;

    padding: 13px 16px;

    border-radius: 12px;

    font-weight: 700;
}


/* =========================
   SAVOLLAR
========================= */

.section-header {

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    margin-bottom: 20px;
}


.section-header h2 {

    display: inline-block;
}


.count {

    display: inline-block;

    margin-left: 8px;

    background: #e0efff;

    color: #1677c8;

    border-radius: 20px;

    padding:
        4px 10px;

    font-size: 13px;

    font-weight: 700;
}


.question-card {

    border:
        1px solid #dbe5ef;

    border-radius: 18px;

    padding: 18px;

    margin-bottom: 15px;

    background: #fbfdff;
}


.question-title {

    background:
        #dbeafe;

    color: #1677c8;

    padding: 10px 14px;

    border-radius: 12px;

    font-weight: 800;

    margin-bottom: 12px;
}


.question-text {

    width: 100%;

    min-height: 100px;

    resize: vertical;

    border:
        1px solid #dbe5ef;

    border-radius: 12px;

    padding: 12px;

    font-family: inherit;

    font-size: 15px;

    margin-bottom: 12px;
}


.question-bottom {

    display: flex;

    align-items: center;

    gap: 10px;
}


.question-bottom label {

    font-weight: 700;
}


.question-points {

    width: 90px;

    height: 40px;

    border:
        1px solid #dbe5ef;

    border-radius: 10px;

    padding: 0 10px;

    font-size: 15px;
}


.delete-question {

    margin-left: auto;

    border: none;

    background: #fee2e2;

    color: #dc2626;

    padding:
        10px 15px;

    border-radius: 10px;

    cursor: pointer;

    font-weight: 700;
}


.add-question-btn {

    width: 100%;

    height: 50px;

    border: 2px dashed #7db9ea;

    background: #f0f8ff;

    color: #147bc1;

    border-radius: 14px;

    font-size: 16px;

    font-weight: 800;

    cursor: pointer;

    margin-top: 5px;
}


.start-game-btn {

    width: 100%;

    height: 54px;

    margin-top: 15px;

    border: none;

    border-radius: 14px;

    background: #1689d8;

    color: white;

    font-size: 17px;

    font-weight: 800;

    cursor: pointer;
}


.start-game-btn:hover {

    background: #0876c1;
}


/* =========================
   O'YIN
========================= */

.hidden {
    display: none !important;
}


.game-header {

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    margin-bottom: 20px;
}


.game-header h1 {

    font-size: 28px;
}


.game-header p {

    color: #64748b;

    margin-top: 3px;
}


.turn-box {

    background: #e0f2fe;

    color: #0369a1;

    padding:
        12px 18px;

    border-radius: 12px;

    font-size: 15px;
}


/* =========================
   BALLAR
========================= */

.score-board {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(150px, 1fr)
        );

    gap: 12px;

    margin-bottom: 25px;
}


.team-score {

    padding: 15px;

    border-radius: 14px;

    background: #f8fafc;

    border:
        2px solid
        transparent;

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    font-weight: 800;
}


.team-score.active {

    border-color: #2196f3;

    background: #e0f2fe;
}


.team-score strong {

    font-size: 24px;

    color: #1689d8;
}


/* =========================
   BARABAN
========================= */

.wheel-area {

    width: min(
        600px,
        90vw
    );

    aspect-ratio: 1;

    margin:
        10px auto 25px;

    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;
}


.pointer {

    position: absolute;

    top: -7px;

    left: 50%;

    transform:
        translateX(-50%);

    z-index: 20;

    color: #ef3030;

    font-size: 36px;

    line-height: 1;

    filter:
        drop-shadow(
            0 2px 3px
            rgba(0,0,0,.2)
        );
}


.drum {

    width: 100%;

    height: 100%;

    border-radius: 50%;

    position: relative;

    border:
        10px solid #26384f;

    box-shadow:
        0 15px 35px
        rgba(0,0,0,.20);

    overflow: hidden;

    transition:
        transform
        4.8s
        cubic-bezier(
            .12,
            .75,
            .12,
            1
        );
}


.drum::after {

    content: "";

    position: absolute;

    inset: 14px;

    border:
        2px solid
        rgba(255,255,255,.55);

    border-radius: 50%;

    pointer-events: none;
}


.drum-label {

    position: absolute;

    left: 50%;

    top: 50%;

    width: 115px;

    transform-origin:
        center center;

    text-align: center;

    font-size: 14px;

    font-weight: 900;

    color: #172033;

    line-height: 1.1;

    white-space: nowrap;

    text-shadow:
        0 1px 2px
        rgba(255,255,255,.85);

    z-index: 5;

    pointer-events: none;
}


.drum-center {

    position: absolute;

    left: 50%;

    top: 50%;

    width: 115px;

    height: 115px;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background: white;

    border:
        8px solid #26384f;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 42px;

    z-index: 10;

    box-shadow:
        0 5px 15px
        rgba(0,0,0,.18);
}


.spin-btn {

    display: block;

    margin: auto;

    min-width: 300px;

    height: 55px;

    border: none;

    border-radius: 14px;

    background: #1689d8;

    color: white;

    font-size: 16px;

    font-weight: 900;

    cursor: pointer;

    padding:
        0 25px;
}


.spin-btn:disabled {

    opacity: .5;

    cursor: not-allowed;
}


/* =========================
   SAVOL
========================= */

.question-area {

    margin-top: 30px;
}


.selected-question {

    background: #f8fafc;

    border:
        2px solid #dce6ef;

    border-radius: 18px;

    padding: 25px;

    text-align: center;
}


.question-badge {

    display: flex;

    justify-content: center;

    gap: 10px;

    margin-bottom: 20px;
}


.question-badge span {

    padding:
        9px 15px;

    border-radius: 20px;

    font-weight: 800;
}


#selectedQuestionNumber {

    background: #dbeafe;

    color: #1677c8;
}


#selectedQuestionPoints {

    background: #fef3c7;

    color: #a16207;
}


#selectedQuestionText {

    font-size: 24px;

    line-height: 1.45;

    margin-bottom: 25px;
}


.answer-controls {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;
}


.correct-btn,
.wrong-btn {

    height: 55px;

    border: none;

    border-radius: 12px;

    color: white;

    font-weight: 900;

    font-size: 15px;

    cursor: pointer;
}


.correct-btn {

    background: #16a34a;
}


.correct-btn:hover {

    background: #15803d;
}


.wrong-btn {

    background: #dc2626;
}


.wrong-btn:hover {

    background: #b91c1c;
}


/* =========================
   G'OLIB
========================= */

.winner-area {

    margin-top: 30px;

    text-align: center;

    padding: 35px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #fff7d6,
            #fff
        );
}


.winner-icon {

    font-size: 65px;

    margin-bottom: 10px;
}


.winner-area h2 {

    font-size: 30px;

    margin-bottom: 15px;
}


.winner-text {

    font-size: 22px;

    font-weight: 900;

    color: #1677c8;

    margin-bottom: 20px;
}


.final-scores {

    max-width: 500px;

    margin: auto;
}


.final-score {

    display: flex;

    justify-content:
        space-between;

    padding: 13px 16px;

    background: white;

    border-radius: 10px;

    margin-bottom: 8px;

    font-weight: 800;
}


/* =========================
   RESPONSIVE
========================= */

@media(max-width: 800px) {

    body {
        padding: 15px 10px;
    }

    .setup-card,
    .questions-card,
    .game-section {
        padding: 18px;
        border-radius: 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .game-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .turn-box {
        text-align: center;
    }

    .wheel-area {
        width: min(
            500px,
            88vw
        );
    }

    .drum-center {
        width: 80px;
        height: 80px;
        font-size: 30px;
        border-width: 5px;
    }

    .drum-label {
        font-size: 11px;
        width: 80px;
    }

    .answer-controls {
        grid-template-columns: 1fr;
    }

    .spin-btn {
        min-width: 0;
        width: 100%;
    }
}