:root {
  --bg-color: #0d1117;
  --text-color: #c9d1d9;
  --accent-color: #58a6ff;
  --error-color: #f85149;
  --border-color: #30363d;
  --input-bg: #010409;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Courier New', Courier, monospace;
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  box-sizing: border-box;
}

#app-container {
  max-width: 500px;
  width: 100%;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

header {
  font-size: 0.9em;
  letter-spacing: 0.15em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-color);
  text-transform: uppercase;
  opacity: 0.8;
}

#flavor-box {
  border: 1px solid var(--border-color);
  padding: 20px;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.02);
  white-space: pre-wrap;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

h1 {
  font-size: 1.2em;
  margin-top: 0;
  border-bottom: 1px dotted var(--border-color);
  padding-bottom: 10px;
  color: var(--text-color);
  text-transform: uppercase;
}

.question-block {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-color);
}

input[type="text"] {
  width: 100%;
  padding: 12px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-family: inherit;
  font-size: 1em;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 1px var(--accent-color);
}

button {
  background: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 12px 20px;
  font-family: inherit;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s;
  width: 100%;
  margin-top: 15px;
}

button:hover {
  background: var(--accent-color);
  color: var(--bg-color);
}

#error-message {
  color: var(--error-color);
  margin-top: 15px;
  text-align: center;
  display: none;
  font-size: 0.9em;
  letter-spacing: 0.05em;
}

.shake-anim {
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

#hint-box {
  margin-top: 20px;
  color: #d2a8ff;
  font-size: 0.9em;
  display: none;
  border-left: 2px solid #d2a8ff;
  padding-left: 10px;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background-color: var(--text-color);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
  opacity: 0.8;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
