@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 100vh;
  background: #db3069;
}

h1 {
  font-size: 24px;
  margin-bottom: 20px;
  padding: 10px 50px;
  color: #1446a0;
  background-color: white;
  border-radius: 50px;
}

.container {
  text-align: center;
  padding: 25px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.container .heading {
  font-size: 20px;
  color: #1446a0;
  font-weight: 500;
}

.container input {
  font-size: 20px;
  padding: 0 20px;
  text-align: center;
  width: 100%;
  height: 50px;
  border: 3px solid #1446a0;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.2s;
}

.container input:focus {
  border-color: #db3069;
}

input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Remove number input arrows */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

.guess {
  color: #1446a0;
  font-size: 16px;
  font-weight: 500;
  min-height: 22px;
}

.checkBtn {
  font-size: 18px;
  padding: 10px 40px;
  color: white;
  background: #1446a0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.checkBtn:hover {
  background: #0d3480;
}

.checkBtn:active {
  transform: scale(0.96);
}

/* Chances row */
.chances-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chances {
  color: black;
  font-size: 14px;
  text-align: left;
}

/* Dots */
.dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ddd;
  transition: background 0.2s;
}

.dot.used {
  background: #E24B4A;
}

.dot.current {
  background: #1446a0;
}

/* History chips */
.history {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  min-height: 10px;
}

.chip {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 20px;
  border: 1.5px solid #ddd;
  color: #888;
  font-weight: 500;
}

.chip.high {
  border-color: #E24B4A;
  color: #E24B4A;
}

.chip.low {
  border-color: #1446a0;
  color: #1446a0;
}

.chip.win {
  border-color: #3B6D11;
  color: #3B6D11;
}

/* Reveal box */
.reveal-box {
  display: none;
  padding: 14px;
  border-radius: 10px;
  text-align: center;
}

.reveal-box.win {
  background: #EAF3DE;
  border: 1.5px solid #97C459;
}

.reveal-box.loss {
  background: #FCEBEB;
  border: 1.5px solid #F09595;
}

.reveal-label {
  font-size: 13px;
  font-weight: 400;
}

.reveal-box.win .reveal-label {
  color: #3B6D11;
}

.reveal-box.loss .reveal-label {
  color: #A32D2D;
}

.reveal-num {
  font-size: 32px;
  font-weight: 600;
}

.reveal-box.win .reveal-num {
  color: #3B6D11;
}

.reveal-box.loss .reveal-num {
  color: #A32D2D;
}