* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  background: #111827;
  color: #e5e7eb;
  display: flex;
  justify-content: center;
  padding: 16px;
}

.app {
  width: 100%;
  max-width: 480px;
}

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

h1 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.subtitle {
  font-size: 0.9rem;
  color: #9ca3af;
}

main {
  background: #1f2937;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

#error-global,
.error-global {
  color: #f97373;
  margin-bottom: 8px;
}

#puzzle-section {
  text-align: center;
}

#date-display {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 8px;
}

#emoji-display {
  font-size: 3rem;
  margin: 12px 0 16px;
}

#status-message {
  min-height: 24px;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

#status-message.ok {
  color: #4ade80;
}

#status-message.error {
  color: #f97373;
}

#status-message.info {
  color: #e5e7eb;
}

#guess-form {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

#guess-input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #4b5563;
  background: #111827;
  color: #e5e7eb;
}

#guess-input:focus {
  outline: none;
  border-color: #6366f1;
}

button {
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  background: #4f46e5;
  color: #e5e7eb;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}

button:hover {
  background: #4338ca;
}

button:disabled {
  background: #374151;
  cursor: default;
}

#attempts-info {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 8px;
}

.hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

#hints-display {
  min-height: 32px;
  font-size: 0.85rem;
  color: #d1d5db;
}

#result-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #374151;
}

#result-section h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

#result-details {
  font-size: 0.9rem;
  color: #d1d5db;
  margin-bottom: 4px;
}

#result-summary {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

#result-note {
  font-size: 0.85rem;
  color: #a5b4fc;
  margin-bottom: 10px;
}

footer {
  text-align: center;
  margin-top: 8px;
  font-size: 0.75rem;
  color: #6b7280;
}

@media (max-width: 480px) {
  #guess-form {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
