:root {
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#213b34;
  background:#f7f6ef;
  font-size:20px;
  line-height:1.5;
  font-synthesis:none;
  --green:#216451;
  --muted:#586a63;
  --line:#d9e1d7;
  --red:#a83e38;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  padding-bottom:110px;
}
button,input {
  font:inherit;
}
button,a {
  -webkit-tap-highlight-color:transparent;
}
button {
  cursor:pointer;
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px 20px;
  background:#fff;
  color:inherit;
  min-height:56px;
  font-weight:650;
  touch-action:manipulation;
}
button:hover {
  border-color:var(--green);
  background:#edf3e9;
}
button:disabled {
  opacity:.5;
  cursor:default;
}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible {
  outline:3px solid #c37c27;
  outline-offset:4px;
}
a {
  color:var(--green);
}
header {
  max-width:960px;
  margin:auto;
  padding:30px 32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand {
  display:flex;
  gap:10px;
  align-items:center;
  font-size:29px;
  font-weight:800;
  text-decoration:none;
  letter-spacing:-1px;
}
.brand-icon {
  background:var(--green);
  color:#fff;
  width:42px;
  height:42px;
  line-height:40px;
  text-align:center;
  border-radius:14px;
  font-family:Georgia,serif;
  font-style:italic;
}
.tagline {
  font-size:17px;
  color:var(--muted);
}
main {
  max-width:680px;
  padding:10px 24px 24px;
  margin:auto;
  min-height:55vh;
}
h1 {
  font-family:Georgia,serif;
  font-size:clamp(32px,6vw,44px);
  line-height:1.12;
  font-weight:500;
  letter-spacing:-1px;
  margin:12px 0 18px;
}
h2 {
  font-size:26px;
  line-height:1.3;
  margin:10px 0;
}
p {
  margin:12px 0;
}
.eyebrow {
  text-transform:uppercase;
  font-size:14px;
  font-weight:750;
  letter-spacing:2px;
  color:var(--green);
}
.muted {
  color:var(--muted);
}
.small {
  font-size:16px;
}
.panel {
  background:white;
  border:1px solid var(--line);
  border-radius:24px;
  padding:26px;
  margin:22px 0;
  box-shadow:0 5px 0 #e7ebe233;
}
.primary {
  background:var(--green);
  color:white;
  border-color:var(--green);
  width:100%;
}
.primary:hover {
  background:#184f40;
  color:#fff;
}
.quiet {
  background:transparent;
}
.row {
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
}
.stack {
  display:grid;
  gap:12px;
}
.center {
  text-align:center;
}
.login-art {
  font-family:Georgia,serif;
  color:var(--green);
  background:#e8eedc;
  border-radius:60% 40% 55% 45%;
  width:120px;
  height:120px;
  margin:25px auto;
  font-size:72px;
  font-style:italic;
  line-height:120px;
}
.login label {
  display:block;
  margin-bottom:8px;
  font-weight:650;
}
input {
  width:100%;
  border:2px solid var(--line);
  border-radius:12px;
  padding:14px;
  margin-bottom:18px;
  min-width:0;
}
.speaker {
  width:100%;
  min-height:114px;
  background:#e7efdf;
  border-color:#cbd9c0;
  color:#234c3b;
  display:flex;
  gap:18px;
  justify-content:center;
  align-items:center;
  margin:18px 0;
}
.speaker svg {
  width:42px;
  height:42px;
}
.speaker small {
  display:block;
  font-weight:400;
  font-size:16px;
}
.answer {
  min-height:70px;
  border:2px solid #9aad9d;
  border-radius:16px;
  padding:14px 10px;
  background:white;
  font-size:30px;
  letter-spacing:3px;
  text-align:center;
  overflow-wrap:anywhere;
  margin:16px 0;
}
.answer:empty:before {
  content:'Escribe aquí con los botones';
  font-size:17px;
  letter-spacing:0;
  color:var(--muted);
}
.keyboard {
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:8px;
  margin:14px 0;
}
.keyboard button {
  padding:8px 0;
  font-size:25px;
  border-radius:12px;
  min-height:56px;
  box-shadow:0 3px 0 #dce1d7;
}
.keyboard .erase {
  grid-column:span 1;
  font-size:24px;
  background:#edf0e8;
}
.keyboard button:active {
  transform:translateY(2px);
  box-shadow:none;
}
.accents {
  margin:12px 0;
}
.accents summary {
  font-size:17px;
  color:var(--muted);
  cursor:pointer;
}
.accent-keys {
  display:flex;
  gap:8px;
  padding-top:8px;
}
.accent-keys button {
  flex:1;
  padding:6px;
}
.result {
  border-top:5px solid var(--green);
}
.result.wrong {
  border-top-color:#bf7355;
}
.result-word {
  font-size:34px;
  letter-spacing:2px;
  overflow-wrap:anywhere;
}
.result-word mark {
  background:#e4efcf;
  color:#24472c;
  border-radius:4px;
  padding:0 2px;
}
.result-word del {
  background:#fbe5df;
  color:#923d35;
  text-decoration:line-through;
  border-radius:4px;
}
.badge {
  display:inline-block;
  border-radius:100px;
  background:#e7efdf;
  color:#365c40;
  padding:6px 12px;
  font-size:15px;
  font-weight:700;
}
.meaning {
  border-top:1px solid var(--line);
  padding-top:12px;
  margin-top:18px;
  font-size:18px;
}
.meaning p {
  margin:8px 0;
}
.source {
  font-size:14px;
}
.candidate {
  text-align:left;
}
.candidate h2 {
  font-size:30px;
  overflow-wrap:anywhere;
}
.candidate .row button {
  padding:8px 14px;
}
.empty {
  padding:25px 0;
}
.empty-symbol {
  font-size:60px;
  color:var(--green);
  line-height:1.3;
}
.metrics {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin:24px 0;
}
.metric {
  background:#eaf0e2;
  border-radius:18px;
  padding:15px 6px;
  text-align:center;
  font-size:15px;
}
.metric strong {
  display:block;
  font-size:29px;
}
.word-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  margin:12px 0;
}
.word-card h2 {
  margin:0;
  overflow-wrap:anywhere;
}
.word-card button {
  padding:5px 12px;
  flex-shrink:0;
}
.progress {
  height:10px;
  display:flex;
  border-radius:9px;
  overflow:hidden;
  background:#e5e8e1;
  margin:14px 0 8px;
}
.progress .good {
  background:#50856a;
}
.progress .bad {
  background:#c97568;
}
.progress span {
  height:100%;
}
.progress .good[data-width],.progress .bad[data-width] {
  width:0;
}
nav {
  display:flex;
  justify-content:center;
  gap:6px;
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  background:#f7f6eff5;
  backdrop-filter:blur(12px);
  border-top:1px solid var(--line);
  padding:10px max(12px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom));
  z-index:5;
}
nav button {
  border:0;
  background:none;
  font-size:16px;
  font-weight:650;
  padding:8px 14px;
  min-width:100px;
}
nav button span {
  display:block;
  font-size:25px;
  line-height:1.1;
  margin-bottom:5px;
}
nav button[aria-current=page] {
  background:#e1ebd7;
  color:#184c3a;
}
footer {
  max-width:680px;
  margin:0 auto;
  padding:18px 24px 35px;
  font-size:14px;
  color:var(--muted);
}
footer summary {
  cursor:pointer;
}
#notice:not(:empty) {
  max-width:632px;
  margin:0 auto 15px;
  padding:14px 20px;
  background:#f6e6ca;
  border-radius:14px;
  color:#62431d;
}
#notice:empty {
  display:none;
}
[hidden] {
  display:none!important;
}
.practice-top {
  font-size:16px;
}
.check-note {
  font-size:15px;
  color:var(--muted);
  text-align:center;
  margin:8px 0 12px;
}
@media(max-width:480px) {
  header {
    padding:18px 20px;
  }
  .tagline {
    font-size:15px;
  }
  main {
    padding:4px 16px 16px;
  }
  h1 {
    font-size:34px;
  }
  .panel {
    padding:20px;
    margin:18px 0;
  }
  .keyboard {
    gap:6px;
  }
  .keyboard button {
    min-height:52px;
    font-size:24px;
  }
  .speaker {
    min-height:96px;
    margin:14px 0;
  }
  .answer {
    margin:12px 0;
    min-height:64px;
  }
  .practice-top {
    font-size:14px;
  }
  .accent-keys {
    gap:5px;
  }
  nav button {
    font-size:15px;
    padding:8px 10px;
  }
  .metrics {
    gap:6px;
  }
  .metric {
    font-size:14px;
  }
  #notice:not(:empty) {
    margin:0 16px 12px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
  }
}
@media (max-width:480px) {
  .answer {
    padding:10px;
    line-height:1.2;
  }
  .speaker {
    min-height:86px;
    padding:10px 14px;
  }
  .speaker small {
    font-size:14px;
  }
  .practice-top .eyebrow {
    font-size:12px;
  }
  .check-note {
    margin:4px 0 8px;
  }
}
.install .app-icon {
  border-radius:24px;
  margin:12px 0;
}
.install ol {
  padding-left:26px;
}
.install li {
  margin:16px 0;
}
