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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #000000 0%, #0f0f0f 100%);
  min-height: 100vh;
  padding: 60px 20px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
}

h1 {
  color: #1a202c;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.subtitle {
  color: #718096;
  text-align: center;
  margin-bottom: 32px;
  font-size: 14px;
}

.section {
  margin-bottom: 24px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #718096;
  margin-bottom: 12px;
}

.input-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 8px;
}

input:not([type]),
input[type='text']:not(#incorrect-letters) {
  width: 56px;
  height: 56px;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s ease;
  background: white;
  color: #1a202c;
}

input:not([type]):focus,
input[type='text']:not(#incorrect-letters):focus {
  outline: none;
  border-color: #667eea;
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input::placeholder {
  color: #cbd5e0;
  opacity: 1;
}

.green {
  background: linear-gradient(135deg, #48bb78, #38a169) !important;
  border-color: #38a169 !important;
  color: white !important;
}

.green::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.yellow {
  background: linear-gradient(135deg, #f6d55c, #ed8936) !important;
  border-color: #ed8936 !important;
  color: white !important;
}

.yellow::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#incorrect-letters {
  width: 100%;
  padding: 12px 16px;
  font-size: 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s ease;
  background: white;
}

#incorrect-letters:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.results-section {
  background: #f7fafc;
  border-radius: 16px;
  padding: 20px;
  margin-top: 32px;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.results-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a202c;
}

#possible-count {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
}

#possible-words {
  font-size: 16px;
  line-height: 1.8;
  color: #4a5568;
  word-break: break-word;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
}

#possible-words:empty:after {
  content: 'Enter letters to see matching words...';
  color: #a0aec0;
  font-style: italic;
}

#possible-words::-webkit-scrollbar {
  width: 6px;
}

#possible-words::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 10px;
}

#possible-words::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 10px;
}

#possible-words::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

.close-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .container {
    padding: 24px;
  }

  h1 {
    font-size: 24px;
  }

  input:not([type]),
  input[type='text']:not(#incorrect-letters) {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .input-row,
  .close-row {
    gap: 6px;
  }
}
