/* games/101dido/style.css - STYLES ONLY FOR 101 DIDO GAME SCREEN */

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

/* Common Header Styles (Copied from 170out for consistency) */
.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;
}


/* --- SCORE DISPLAY --- */
.score-display-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 30px;
}

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

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

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

/* Darts Left Value jest domyślnie Biały (teraz używany dla CZASU) */
.darts-left-value {
    font-size: 3.5em;
    color: #ffffff;
    margin: 0;
    line-height: 1;
    font-weight: 700;
}

/* --- INPUT AND KEYPAD LAYOUT --- */
.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: #B0E3FF;
    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;
}

#register-score-btn {
    width: 100%;
    height: 80px;
    font-size: 1.1em;
    background-color: #EDAD09;
    color: #040709;
    font-weight: bold;
    padding: 12px 30px;
}
#register-score-btn:hover {
    background-color: #FEC017;
}

#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 --- */
.number-keypad-block {
  flex: 1;
  background-color: #1D2025;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.number-keypad-block h3 {
    color: #B0E3FF;
    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;
  /* Resetowanie globalnych stylów przycisku */
  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; /* Zwiększony rozmiar dla ikon */
}

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

/* NOWY STYL: Czerwony dla CLEAR */
.number-pad .clear-key {
    background-color: #C0392B; /* Czerwony (ciemniejszy) */
    color: #ffffff; /* Biała ikona */
    font-size: 1.8em;
}

.number-pad .clear-key:hover {
    background-color: #E74C3C; /* Jaśniejszy czerwony na hover */
}
/* --- 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: #B0E3FF;
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.1em;
}
.info-block p {
    font-size: 0.9em;
    color: #ffffff;
}

/* --- ROUND FEEDBACK MODAL (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;
    /* STANDARDOWE TŁO DLA ŻÓŁTEGO/ZIELONEGO/NIEBIESKIEGO */
    background-color: rgba(15, 15, 15, 0.95);
}

/* NOWA KLASA: Tryb Master (Jasne tło dla modala) */
.round-feedback-modal.master-mode.show {
    background-image: url("https://i.imgur.com/nfEObgB.png");
    background-size: cover;
    opacity: 1;
}

.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 --- */

/* 1. KEEP PRACTICING! / NOT BAD! - ŻÓŁTY */
.round-feedback-modal h2.feedback-yellow {
    color: #FFCA1A;
    font-size: 20px;
}

/* 2. VERY GOOD! - ZIELONY */
.round-feedback-modal h2.feedback-green {
    color: #00FF95;
    font-size: 20px;
}

/* 3. AMAZING! - NIEBIESKI */
.round-feedback-modal h2.feedback-blue {
    color: #B0E3FF;
    font-size: 20px;
}

/* 4. YOU ARE MASTER! - CZARNY TEKST */
.round-feedback-modal h2.feedback-master {
    color: #212121;
    font-size: 20px;
}


/* 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;
    }
}
