/* styles.css - Minimal HN aesthetic */

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

body {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10pt;
  background: #f6f6f6;
  color: #333;
  line-height: 1.5;
  padding-top: 40px; /* For banner */
}

#app {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: white;
  border: 1px solid #ddd;
}

/* Screen management */
.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* Typography */
h1 {
  font-size: 18pt;
  font-weight: normal;
  text-align: center;
  margin-bottom: 10px;
  color: #333;
}

h2 {
  font-size: 14pt;
  font-weight: normal;
  margin-bottom: 15px;
}

h3 {
  font-size: 12pt;
  font-weight: normal;
  margin-bottom: 10px;
}

p {
  margin-bottom: 10px;
}

a {
  color: #9BC4BC;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Start screen */
#start-screen {
  text-align: center;
  padding: 60px 20px;
}

#start-screen h1 {
  margin-bottom: 20px;
}

#start-screen p {
  margin-bottom: 30px;
  font-size: 11pt;
}

/* Loading screen */
#loading-screen {
  text-align: center;
  padding: 100px 20px;
}

/* Game screen */
.header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
  font-size: 10pt;
}

.header span {
  margin: 0 15px;
}

.story-container {
  text-align: center;
  padding: 40px 20px;
  margin: 20px 0;
  border: 1px solid #ddd;
  background: #fafafa;
}

#story-title {
  font-size: 13pt;
  font-weight: normal;
  line-height: 1.4;
  max-width: 600px;
  margin: 0 auto;
}

.guess-container {
  text-align: center;
  padding: 30px 20px;
}

.guess-container p {
  margin-bottom: 15px;
  font-size: 10pt;
}

input[type="number"] {
  width: 150px;
  padding: 6px 10px;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10pt;
  border: 1px solid #ddd;
  background: white;
  text-align: center;
  margin-bottom: 15px;
}

input[type="number"]:focus {
  outline: none;
  border-color: #9BC4BC;
}

.slider-container {
  margin: 20px auto;
  max-width: 500px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9pt;
  color: #666;
  margin-top: 5px;
}

input[type="range"] {
  width: 100%;
  height: 4px;
  background: #ddd;
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #9BC4BC;
  cursor: pointer;
  border-radius: 50%;
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #9BC4BC;
  cursor: pointer;
  border-radius: 50%;
  border: none;
}

/* Buttons */
button {
  background: white;
  color: #333;
  border: 1px solid #9BC4BC;
  padding: 8px 24px;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10pt;
  cursor: pointer;
  margin: 5px;
}

button:hover {
  background: #D4E8E5;
}

button:active {
  background: #9BC4BC;
  color: white;
}

/* Result screen */
#result-screen {
  text-align: center;
  padding: 10px 20px 20px 20px;
}

#result-title-link {
  font-size: 12pt;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

#result-details {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

.result-line {
  margin: 10px 0;
  font-size: 10pt;
}

.result-line strong {
  font-weight: bold;
}

#result-details + button {
  margin-top: 30px;
}

/* Final screen */
#final-screen {
  text-align: center;
  padding: 10px 20px 20px 20px;
}

#final-score {
  margin: 0 0 20px 0;
}

#final-score h2 {
  font-size: 20pt;
  font-weight: normal;
  color: #9BC4BC;
}

.score-breakdown {
  max-width: 400px;
  margin: 30px auto;
  padding: 20px;
  border: 1px solid #ddd;
  background: #fafafa;
  text-align: left;
}

.round-summary {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 10pt;
  line-height: 1.6;
}

.round-summary:last-child {
  border-bottom: none;
}

.button-group {
  margin-top: 30px;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #333;
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 10pt;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 600px) {
  #app {
    margin: 20px 10px;
    padding: 15px;
  }
  
  .story-container {
    padding: 20px 10px;
  }
  
  input[type="number"] {
    width: 120px;
  }
  
  .slider-container {
    max-width: 100%;
  }
}
