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

body {
  background-color: #202025;
  color: rgba(255, 255, 255, 0.87);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-x: hidden;
}

button {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  background: #303035;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
button:hover {
  background: #404045;
  color: rgba(255, 255, 255, 0.9);
}
button.active {
  background: #10b981;
  color: white;
}

main {
  display: grid;
  gap: 20px;
  position: relative;
  width: min(600px, 100%);
}
main .header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
}
main .header h1 {
  font-size: 20px;
  font-weight: bold;
  width: -moz-max-content;
  width: max-content;
}
main .header .level-display {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
}
main .level {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  overflow: hidden;
}
main .level .levels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}
main .level .level-stats {
  padding: 10px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
main .level .level-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
main .level .level-stats .stat .numbers {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  font-size: 14px;
}
main .level .level-stats .stat .progress {
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  overflow: hidden;
}
main .level .level-stats .stat .progress .fill {
  height: 100%;
  background: #10b981;
  width: 0%;
  transition: width 0.6s;
}
main .level .level-stats .stat-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
main .level .level-stats .stat-boxes .stat-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 10px 5px;
  text-align: center;
  display: grid;
  place-items: center;
  gap: 2px;
}
main .level .level-stats .stat-boxes .stat-box .number {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}
main .level .level-stats .stat-boxes .stat-box .label {
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}
main .canvas-wrapper {
  position: relative;
}
main .canvas-wrapper canvas {
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: 8px;
  background-color: #000;
  display: block;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
main .canvas-wrapper .canvas-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}
main .canvas-wrapper .canvas-overlay p {
  font-size: 24px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
main .canvas-wrapper .canvas-overlay p.stats {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
main .canvas-wrapper .canvas-overlay button {
  padding: 20px 40px;
  font-size: 24px;
  border: none;
  border-radius: 8px;
  background: #10b981;
  color: white;
  cursor: pointer;
  transition: background 0.15s;
}
main .canvas-wrapper .canvas-overlay button:hover {
  background: #059669;
}
main .make-guess {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
main .make-guess input {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: #303035;
  color: white;
  transition: border-color 0.15s;
}
main .make-guess input:focus {
  outline: none;
  border-color: #10b981;
}
main .make-guess input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
main .make-guess button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  background: #10b981;
  color: white;
  cursor: pointer;
  transition: background 0.15s;
}
main .make-guess button:hover:not(:disabled) {
  background: #059669;
}
main .make-guess button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #555;
}
main .make-guess.inactive {
  opacity: 0.4;
}
main .guesses {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
main .guesses .guess {
  display: grid;
  grid-template-columns: 40px 1fr 100px;
  gap: 10px;
  align-items: center;
}
main .guesses .guess .image img {
  width: 40px;
  height: auto;
  border-radius: 4px;
}
main .guesses .guess .percentage {
  font-weight: bold;
  color: #10b981;
  text-align: right;
}
main .results {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
main .results .result-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 5px;
}
main .results .result-row img {
  width: 40px;
  height: auto;
  border-radius: 4px;
}
main .results .result-row span {
  font-weight: bold;
  color: #10b981;
}
main .results .result-row span .pts {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  margin-left: 5px;
}
main .results .result-row.failed {
  background: rgba(220, 38, 38, 0.15);
}
main .results .result-row.failed span {
  color: #f87171;
}
main .suggestions {
  position: absolute;
  background: #303035;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}
main .suggestions.visible {
  display: block;
}
main .suggestions .suggestion {
  padding: 10px 15px;
  cursor: pointer;
}
main .suggestions .suggestion:hover, main .suggestions .suggestion.highlighted {
  background: #10b981;
}

.hidden {
  display: none !important;
}

@media (max-width: 480px) {
  main .level .levels {
    grid-template-columns: repeat(2, 1fr);
  }
  main .level .level-stats .stat-boxes {
    grid-template-columns: repeat(2, 1fr);
  }
  main .guesses .guess {
    grid-template-columns: 40px 1fr 60px;
  }
  main .guesses .guess .percentage {
    font-size: 14px;
  }
}
@media (max-width: 360px) {
  button {
    padding: 6px 10px;
    font-size: 13px;
  }
  main .make-guess {
    grid-template-columns: 1fr;
  }
  main .make-guess button {
    padding: 10px;
  }
  main .guesses .guess {
    grid-template-columns: 30px 1fr 50px;
    gap: 6px;
  }
  main .guesses .guess .image img {
    width: 30px;
  }
  main .guesses .guess .name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  main .guesses .guess .percentage {
    font-size: 12px;
  }
  main .results .result-row {
    gap: 10px;
    padding: 8px;
  }
  main .results .result-row img {
    width: 30px;
  }
  main .results .result-row span {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}/*# sourceMappingURL=style.css.map */