/* games/501do/style.css - STYLES ONLY FOR 501 DO GAME SCREEN (MATCH MODE) */

/* Overriding container width */
.container.wide-game {
    max-width: 1215px;
}

/* Common Header Styles */
.title-and-round-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding-bottom: 10px;
}

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

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


/* --- SCORE DISPLAY (TWO PLAYERS) --- */
.score-display-container {
    display: flex;
    justify-content: space-between; /* Zmieniono na space-between dla 2 graczy */
    gap: 30px;
    margin-bottom: 30px;
}

.player-score-card {
  flex: 1;
  background-color: #1D2025;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s;
  /* Dodano domyślny cień, aby wyróżnić aktywny */
}

.player-score-card.active {
    /* Aktywny gracz ma jaśniejszy kolor tła/ramkę/cień */
    border: 3px solid #C9FF00;
}

.player-name {
  font-size: 1.2em;
  color: #fff;
  margin-top: 1px;
  margin-bottom: 5px;
  font-weight: 700;
}

.score-value {
    font-size: 3.5em;
    color: #fff;
    margin: 0;
    line-height: 1;
    font-weight: 700;
}

/* Wyróżnienie wyniku aktywnego gracza */
.player-score-card.active .score-value {
    color: #C9FF00;
}

/* NOWE STYLE DLA STATYSTYK */
.player-score-card .score-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #333;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.player-score-card .score-stats .stat-item {
    font-size: 0.95em;
    color: #a0a0a0;
    text-align: center;
    line-height: 1.2;
}

.player-score-card .score-stats .stat-item strong {
    font-size: 1.2em;
    color: #ffffff; /* Domyślny biały */
}

.player-score-card .score-stats .stat-label {
    display: block;
    font-weight: 400;
    font-size: 0.7em;
    color: #777;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.player-score-card.active .score-stats .stat-item strong {
    color: #C9FF00; /* Użyj tego samego koloru co aktywny wynik */
}
/* KONIEC NOWYCH STYLI DLA STATYSTYK */


/* --- INPUT AND KEYPAD LAYOUT (Ten sam co w 301 Challenge) --- */
.input-and-keypad-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.score-input-block {
  flex: 1;
  background-color: #1D2025;
  padding: 20px;
  border-radius: 8px;
}

.score-input-block h3 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
}

#score-input {
    width: 100%;
    padding: 15px;
    font-size: 1.8em;
    text-align: center;
    border: 2px solid #333;
    border-radius: 6px;
    background-color: #12151C;
    color: #ffffff;
    margin-bottom: 20px;
}

.game-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* STYL Z WZORU 301 CHALLENGE */
#register-score-btn {
    width: 100%;
    height: 80px;
    font-size: 1.1em;
    background-color: #C9FF00;
    color: #040709;
    font-weight: bold;
    padding: 12px 30px;
}
#register-score-btn:hover {
    background-color: #D4FF33;
}

#undo-score-btn {
    background-color: transparent;
    border: none;
    color: #40495D;
    padding: 5px 0;
    font-size: 0.9em;
    font-weight: 400;
    text-decoration: none;
    width: 100%;
    margin-top: 5px;
}
#undo-score-btn:hover {
    color: #76c7c0;
}

/* --- KEYPAD STYLES (Ten sam co w 301 Challenge) --- */
.number-keypad-block {
  flex: 1;
  background-color: #1D2025;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.number-keypad-block h3 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.number-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.number-pad button {
  width: 100%;
  height: 60px;
  padding: 0;
  font-size: 1.5em;
  font-weight: bold;
  background-color: #222429;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  transition: background-color 0.1s;
  margin: 0;
}

.number-pad button:hover {
    background-color: #313a45;
}

/* STYL DLA PRZYCISKÓW SPECJALNYCH (DEL) */
.number-pad .special-key {
    background-color: #40495D;
    font-size: 1.8em;
}

.number-pad .special-key:hover {
    background-color: #55627a;
}

/* STYL DLA PRZYCISKU CLEAR (CZERWONY) */
.number-pad .clear-key {
    background-color: #C0392B;
    color: #ffffff;
    font-size: 1.8em;
}

.number-pad .clear-key:hover {
    background-color: #E74C3C;
}
/* --- END OF KEYPAD STYLES --- */


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

/* --- ROUND FEEDBACK MODAL (Dostosowany do Match Mode) --- */
.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: 40px;
    font-weight: bold;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    border-bottom: none !important;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    transition: color 0.3s;
}

/* --- KLASY KOLORÓW DLA DYNAMICZNEGO FEEDBACKU W MATCH MODE --- */
/* NOWA KLASA: GAME SHOT */
.round-feedback-modal h2.feedback-game-shot {
    color: #00FF95; /* Zielony kolor dla GAME SHOT! */
    font-size: 20px;
}

/* POZOSTAŁE KLASY (dla BUST, Zwykły rzut) */
.round-feedback-modal h2.feedback-yellow {
    color: #FFCA1A; /* BUST / MISS */
    font-size: 20px;
}
.round-feedback-modal h2.feedback-blue {
    color: #C9FF00; /* Zwykły rzut */
    font-size: 20px;
}

/* NOWE STYLE DLA MODALA CHECKOUTU GRACZA */
#checkout-prompt-modal .modal-content {
    text-align: center;
}
#checkout-prompt-modal .modal-content h2 {
    position: static;
    transform: none;
    color: #fff;
    margin-bottom: 10px;
}
#checkout-prompt-modal .modal-content p {
    font-size: 1.1em;
    margin-bottom: 20px;
}
.dart-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}
.dart-btn {
    padding: 15px 25px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    background-color: #C9FF00;
    color: #040709;
}
.dart-btn:hover {
    background-color: #D4FF33;
}
.small-info {
    font-size: 0.8em;
    color: #a0a0a0;
}
/* KONIEC STYLI DLA MODALA CHECKOUTU */


/* Media Queries for Mobile */
@media (max-width: 800px) {
    .score-display-container {
        flex-direction: column;
    }
    .input-and-keypad-container {
        flex-direction: column;
    }
    .score-input-block, .number-keypad-block {
        flex: 1;
        width: 100%;
    }
    .score-input-block {
        margin-bottom: 20px;
    }
    .round-feedback-modal h2 {
        font-size: 32px;
    }
    .player-score-card .score-stats {
        flex-direction: column;
        gap: 5px;
    }
    .dart-options {
        flex-wrap: wrap;
    }
}
