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

body {
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 500px;
}

h1 {
  color: var(--color-primary);
  margin-bottom: 30px;
  text-align: center;
  font-size: 2.5em;
  font-family: var(--font-heading);
}

.input-section {
  margin-bottom: 30px;
}

input {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-badge);
  transition: border-color 0.3s;
}

input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.button {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: var(--radius-badge);
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 15px;
}

.button-primary {
  background: var(--color-primary);
  color: white;
}

.button-primary:active {
  background: var(--color-secondary);
}

.button-secondary {
  background: #48bb78;
  color: white;
}

.button-secondary:active {
  background: #38a169;
}

.button-danger {
  background: #f56565;
  color: white;
}

.button-danger:active {
  background: #e53e3e;
}

.word-list {
  margin: 20px 0;
  max-height: 300px;
  overflow-y: auto;
}

.word-item {
  background: var(--color-surface-alt);
  padding: 12px 15px;
  margin-bottom: 10px;
  border-radius: var(--radius-badge);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.word-text {
  font-size: 16px;
  color: var(--color-text);
}

.delete-btn {
  background: #fc8181;
  color: white;
  border: none;
  padding: 5px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

.delete-btn:active {
  background: #f56565;
}

.word-count {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  font-size: 14px;
}

.reveal-section {
  text-align: center;
}

.current-word {
  background: var(--color-primary);
  color: white;
  padding: 60px 30px;
  border-radius: var(--radius-card);
  font-size: 2em;
  font-weight: bold;
  margin: 30px 0;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-word;
}

.word-counter {
  color: var(--color-text-muted);
  font-size: 16px;
  margin-bottom: 20px;
}

.button-group {
  display: flex;
  gap: 10px;
}

.button-group .button {
  margin-top: 0;
}

.hidden {
  display: none;
}

@media (max-width: 480px) {
  .container {
    padding: 30px 20px;
  }

  h1 {
    font-size: 2em;
  }

  .current-word {
    font-size: 1.5em;
    padding: 40px 20px;
  }
}
