/* games/170out/style.css - STYLES ONLY FOR 170 OUT GAME SCREEN */

/* Overriding container width for the 170out GAME (1215px container) */
.container.wide-game {
    max-width: 1215px;
}

/* --- OGÓLNE STYLE GÓRNEGO BLOKU (Round/Title) --- */
.title-and-round-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding-bottom: 10px;
}

.game-title {
    color: #B0E3FF;
    font-size: 2.2em;
    font-weight: 700;
    text-align: left;
    margin: 0;
}

#round-display {
    font-size: 1.8em;
    color: #B0E3FF;
    margin: 0;
    font-weight: 700;
    text-align: right;
    border-bottom: none;
    padding-bottom: 0;
}

/* --- WYŚWIETLANIE WYNIKÓW (Total Score & User Streak) --- */
.score-display-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 10px;
}

.score-card, .darts-left-card {
    flex: 1;
    background-color: #1D2025;
    border-radius: 8px;
    padding: 25px 70px;
    text-align: center;
}

.current-score-label, .darts-left-label {
    font-size: 1em;
    color: #b0b0b0;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.score-value {
    font-size: 3.5em;
    color: #FFCA1A; /* Żółty kolor dla Total Score */
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.darts-left-value {
    font-size: 3em;
    color: #ffffff; /* Turkusowy kolor dla User Streak */
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

/* --- DART INPUT SECTION (3 columns) --- */
.darts-input-container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 0px;
    padding: 10px 0 20px 0;
}

/* ZMIANA TUTAJ: Zwiększony padding na dole (25px) */
.dart-column {
    flex: 1;
    min-width: 100px;
    background-color: #1D2025;
    padding: 12px 12px 12px 12px;
    border-radius: 8px;
    text-align: center;
}

.dart-column h3 {
    font-size: 1.5em;
    color: #ffffff;
    margin: 10px 0 10px 0;
    font-weight: 600;
    padding: 15px 15px;
}

.dart-column p {
    margin-top: 0;
    margin-bottom: 20px;
}

.dart-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dart-buttons button {
    width: 100%;
    height: 60px;
    padding: 15px 10px;
    margin: 0;
    font-size: 1.1em;
    border-radius: 6px;
    opacity: 1;
    transition: background-color 0.2s, transform 0.1s;
    border: none;
    font-weight: bold;
}

/* COLOR SCHEME FOR HIT/MISS */
.hit-btn {
    background-color: #24262B;
    color: white;
}
.hit-btn:hover {
    background-color: #022F07;
}
.hit-btn.active {
    background-color: #11671B;
}
.hit-btn.active:hover {
    background-color: #157D21;
}

/* --- KONTROLKI GRY: PRZYWRÓCONY UKŁAD Z UNDO JAKO LINK --- */
.game-controls {
    display: flex;
    flex-direction: column; /* Ustawienie główne na kolumnę */
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.main-control-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%; /* Rozszerzenie na całą szerokość */
    max-width: 600px; /* Maksymalna szerokość dla czytelności */
}

#register-round-btn, #end-streak-btn {
    flex: 1; /* Dzielenie miejsca równo między dwa przyciski */
    height: 80px;
    font-size: 1.1em;
    font-weight: bold;
    padding: 12px 10px;
    transition: background-color 0.2s;
    border-radius: 6px;
    border: none;
    margin: 0;
}

#register-round-btn {
    background-color: #F2BA01;
    color: #212121;
}

#register-round-btn:hover {
    background-color: #FFCA1A;
    transform: none;
    box-shadow: none;
}

/* STYL DLA NOWEGO PRZYCISKU END STREAK */
#end-streak-btn {
    background-color: #750909; /* Czerwony kolor */
    color: white;
}

#end-streak-btn:hover {
    background-color: #890E0E;
    transform: none;
    box-shadow: none;
}

/* STYL DLA PRZYCISKU UNDO - PRZYWRÓCONY JAKO LINK TEKSTOWY */
#undo-round-btn {
    /* Upewnienie się, że Undo jest pod dwoma głównymi przyciskami */
    width: auto;
    background-color: transparent;
    border: none;
    color: #40495D;
    height: auto;
    padding: 5px 10px;
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: underline; /* Podkreślenie jak link */
    display: block;
    transition: color 0.2s;
    margin-top: 5px; /* Mały margines od góry */
}

#undo-round-btn:hover {
    background-color: transparent;
    color: #76c7c0;
    transform: none;
    box-shadow: none;
}
/* ------------------------------------ */

.info-block {
    background-color: #1D2025;
    padding: 15px 25px;
    border-radius: 8px;
    text-align: left;
    margin-top: 50px;
}
.info-block h4 {
    color: #B0E3FF;
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.1em;
}
.info-block p {
    font-size: 0.9em;
    color: #ffffff;
}

/* --- ROUND FEEDBACK MODAL --- (Pozostałe bez zmian) */
.round-feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, background-color 0.3s ease-in-out;
    pointer-events: none;
    display: none;
}

.round-feedback-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background-color: rgba(15, 15, 15, 0.95);
}

.round-feedback-modal .feedback-content {
    text-align: center;
    padding: 0px;
    min-width: 300px;
    min-height: 100px;
}

.round-feedback-modal h2 {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    border-bottom: none !important;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
}

/* --- KLASY KOLORÓW DLA FEEDBACKU --- */
.round-feedback-modal h2.keep-throwing {
    color: #FFCA1A;
    background-color: transparent;
    padding: 0;
}

.round-feedback-modal h2.feedback-green {
    color: #40CE18;
    background-color: transparent;
    padding: 0;
}


/* --- Media Queries for Mobile --- */
@media (max-width: 800px) {
    .darts-input-container {
        flex-direction: column;
        gap: 50px;
    }
    .game-controls {
        flex-direction: column;
        gap: 10px;
    }

    .main-control-row {
        flex-direction: column;
        gap: 10px;
    }

    /* Na urządzeniach mobilnych oba główne przyciski muszą zajmować 100% szerokości */
    #register-round-btn, #end-streak-btn {
        width: 100% !important;
        max-width: none;
    }
}
