* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: #f6f3ef;
  color: #2b2b2b;
}
.hidden { display: none !important; }
.view { min-height: 100vh; display: flex; flex-direction: column; align-items: center; }

#login-form {
  margin-top: 20vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 280px;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
#login-form input, #login-form button {
  padding: 10px 12px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ddd;
}
#login-form button { background: #b05c4a; color: #fff; border: none; cursor: pointer; }
.error { color: #c0392b; font-size: 14px; }

header {
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}
header button { background: none; border: 1px solid #ccc; border-radius: 6px; padding: 6px 12px; cursor: pointer; }

main { width: 100%; max-width: 480px; padding: 0 20px; }

.card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  min-height: 220px;
}
.word { font-size: 48px; font-weight: 600; }
.reading { font-size: 20px; color: #777; margin-top: 8px; }
.pos { font-size: 13px; color: #aaa; margin-top: 4px; text-transform: uppercase; }

#enrichment { margin-top: 20px; text-align: left; border-top: 1px solid #eee; padding-top: 16px; }
#enrichment h3 { font-size: 13px; color: #b05c4a; margin: 12px 0 2px; text-transform: uppercase; }
#enrichment p { margin: 0; font-size: 16px; }
#pending { color: #999; font-style: italic; }

.actions { display: flex; gap: 12px; margin-top: 20px; }
.actions button {
  flex: 1;
  padding: 14px;
  font-size: 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}
.btn-know { background: #4a8f5c; color: #fff; }
.btn-dont-know { background: #c0392b; color: #fff; }

.actions-secondary { margin-top: 12px; text-align: center; }
.actions-secondary button {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}
