* {
  box-sizing: border-box;
}

body {
  font-family: 'Arial', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 20px;
  background: #0a0a23;
  color: #f0f0f0;
}

#app {
  max-width: 1200px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

#category-name {
  color: #ffcc00;
  margin: 0 0 10px 0;
  text-transform: uppercase;
}

#category-comment {
  font-style: italic;
  color: #cccccc;
  margin: 5px 0;
}

#category-meta {
  color: #888888;
  font-size: 0.9em;
}

.clue-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 15px;
  align-items: start;
  padding-bottom: 1.5em;
}



.clue-text {
  background: #1a1a3e;
  padding: 15px;
  border-radius: 5px;
  line-height: 1.5;
}

.clue-value {
  color: #ffcc00;
  font-weight: bold;
  margin-bottom: 8px;
}

.clue-question {
  color: #f0f0f0;
}

.clue-missing .clue-question {
  color: #666666;
  font-style: italic;
}

.show-btn {
  background: #3333aa;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  align-self: center;
}

.show-btn:hover:not(:disabled) {
  background: #4444cc;
}

.show-btn:disabled {
  background: #555555;
  cursor: default;
}

.clue-answer {
  background: #1a3e1a;
  padding: 15px;
  border-radius: 5px;
  color: #88ff88;
  font-weight: bold;
  min-height: 50px;
  display: flex;
  align-items: center;
  align-self: center;
}

.clue-answer.hidden {
  background: #1a1a3e;
  color: transparent;
}

footer {
  text-align: center;
  margin-top: 30px;
}

.footer-buttons {
  display: flex;
  align-items: baseline;
  justify-content: space-around;
}

.footer-stats {
  display: flex;
  align-items: baseline;
  justify-content: space-around;
  font-size: 0.75em;
  padding-top: 1.5em;
  color: gray;
  font-variant: small-caps;
  font-family: monospace;
}

#reveal-all-btn {
  background: #3366cc;
  color: #ffffff;
  border: none;
  padding: 15px 40px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
}

#reveal-all-btn:hover {
  background: #4488ee;
}

#next-btn {
  background: #cc9900;
  color: #0a0a23;
  border: none;
  padding: 15px 40px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
}

#next-btn:hover {
  background: #ffcc00;
}

#error {
  text-align: center;
  color: #ff6666;
  margin-top: 20px;
}

#retry-btn {
  background: #aa3333;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

@media (max-width: 768px) {
  #clues-grid {
    grid-template-columns: 1fr;
  }

  .clue-row {
    display: block;
    margin-bottom: 20px;
  }

  .show-btn {
    width: 100%;
    margin: 10px 0;
  }
}
