@font-face {
  font-family: Nunito;
  src: url("./assets/fonts/nunito-heavy.ttf");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("./assets/fonts/dm-regular.ttf");
  font-weight: 400 550;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("./assets/fonts/dm-bold.ttf");
  font-weight: 600 900;
  font-display: swap;
}
:root {
  --ink: #193c30;
  --muted: #54655c;
  --green: #19583e;
  --lime: #d7f683;
  --edge: #dce4d9;
  --paper: #f7f8f2;
  --heading: Nunito, ui-rounded, "Trebuchet MS", sans-serif;
  font:
    16px/1.5 "DM Sans",
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #2275a2;
  outline-offset: 4px;
}
button {
  transition:
    background 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
.icon {
  vertical-align: middle;
  flex: none;
}
.shell {
  max-width: 1256px;
  margin: auto;
  padding-inline: 38px;
}
header {
  background: #fff;
  border-bottom: 1px solid var(--edge);
}
#bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 77px;
  gap: 18px;
}
.brand,
.nav-link,
.head-right,
.profile,
.xp,
.hero-label,
.hero-actions,
.hero-actions > span,
.primary,
.kicker,
.switch,
.switch button,
.card-count,
.category,
.round-play,
.dark-button,
.button-row,
.quiet,
.text-button,
.game-tag,
.result-stats b,
.celebration,
.secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand {
  font: 900 1.65rem/1 var(--heading);
  letter-spacing: -1.2px;
  padding: 0;
  gap: 10px;
}
nav {
  display: flex;
  gap: 5px;
}
.nav-link {
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 11px;
  color: #56655d;
  padding: 10px 14px;
}
.nav-link:hover,
.profile:hover {
  background: #f1f5ed;
}
.nav-link.active {
  color: #225e40;
  background: #e8f2df;
}
.head-right {
  gap: 15px;
}
.xp,
.card-count {
  white-space: nowrap;
}
.xp {
  border: 1px solid #e2e4be;
  background: #f7f7dc;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 5px 10px;
  border-radius: 50px;
  color: #665620;
}
.xp .icon {
  fill: #eaba48;
  stroke: #956f14;
}
.profile {
  font-weight: 700;
  font-size: 0.91rem;
  padding: 4px 2px 4px 6px;
  border-radius: 25px;
  gap: 7px;
}
.profile span {
  max-width: 125px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile > svg:first-child {
  flex: none;
}
main {
  min-height: 70vh;
  padding-block: 28px 30px;
}
main:focus {
  outline: none;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 350px;
  border-radius: 24px;
  background: #183f31;
  color: #fff;
  display: flex;
  align-items: center;
  box-shadow: 0 5px 16px #2c472212;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 57% 54%;
  z-index: -2;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    #0c302ce8 0%,
    #10383094 34%,
    #102e2610 62%,
    transparent 79%
  );
}
.hero-copy {
  padding: 33px 44px 35px;
  max-width: 550px;
  animation: arrive 0.5s ease-out;
}
.hero-label {
  font-size: 0.74rem;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  font-weight: 700;
  color: #effacb;
  border: 1px solid #ebffc543;
  background: #1b453596;
  padding: 5px 12px;
  border-radius: 30px;
  gap: 7px;
}
.hero h1 {
  font: 900 clamp(2.8rem, 4.4vw, 4.25rem) / 0.99 var(--heading);
  letter-spacing: -0.055em;
  margin: 18px 0 12px;
}
.hero em {
  font-style: normal;
  color: #dcf692;
}
.hero p {
  max-width: 365px;
  margin: 0;
  color: #f1f5e9;
  font-size: 1rem;
  line-height: 1.45;
}
.hero-actions {
  margin-top: 23px;
  gap: 16px;
}
.hero-actions > span {
  color: #f3f5e9;
  font-size: 0.84rem;
  gap: 6px;
}
.primary,
.dark-button,
.secondary {
  font-weight: 700;
  border-radius: 12px;
  justify-content: center;
  padding: 12px 18px;
}
.primary {
  color: #213b24;
  background: var(--lime);
  box-shadow: 0 3px 0 #8baf5c;
  gap: 9px;
}
.primary:hover {
  background: #e5ff9f;
  transform: translateY(-2px);
}
.primary .icon,
.round-play .icon {
  stroke-width: 1;
  transform: translateX(1px);
}
h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 900;
}
h2 {
  letter-spacing: -0.045em;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  line-height: 1.15;
  margin: 0;
}
h3 {
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin: 31px 0 17px;
}
.kicker,
.category,
.question-type,
.badge small {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.11em;
}
.kicker {
  color: #5a725e;
  gap: 7px;
  margin-bottom: 6px;
}
.switch {
  padding: 4px;
  border-radius: 11px;
  background: #edf0e7;
  gap: 0;
  border: 1px solid #dfe4d9;
}
.switch button {
  color: #516054;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.83rem;
  padding: 6px 11px;
  gap: 6px;
}
.switch button[aria-pressed="true"] {
  background: #fff;
  color: #224f35;
  box-shadow: 0 1px 4px #12351a1f;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.green {
  --accent: #417a40;
  --tint: #e7f0dd;
}
.blue {
  --accent: #346e88;
  --tint: #e2eff4;
}
.gold {
  --accent: #a06b2e;
  --tint: #f8eed8;
}
.topic {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  min-width: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #dce2d5;
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 3px 0 #354a2a09;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s,
    border-color 0.22s;
}
.topic:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px #25472a17;
  border-color: var(--accent);
}
.card-image {
  position: relative;
  aspect-ratio: 2.95;
  overflow: hidden;
  background: var(--tint);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s;
}
.topic:hover .card-image img {
  transform: scale(1.045);
}
.card-count {
  position: absolute;
  right: 10px;
  top: 10px;
  background: #fffbedf2;
  color: #294334;
  box-shadow: 0 1px 5px #19271912;
  padding: 3px 8px;
  border-radius: 16px;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
}
.card-body {
  padding: 16px 19px 17px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.category {
  letter-spacing: 0.09em;
  color: var(--accent);
  font-size: 0.69rem;
  gap: 6px;
}
.category i {
  background: var(--accent);
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.card-body h3 {
  margin: 7px 0;
  font-size: clamp(1.22rem, 1.65vw, 1.55rem);
}
.card-body p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.43;
}
.card-bottom {
  margin-top: auto;
  display: flex;
  align-items: end;
  gap: 18px;
}
.card-progress {
  flex: 1;
  padding-bottom: 3px;
}
.card-progress span {
  font-size: 0.76rem;
  color: #56695b;
  font-weight: 600;
}
.rail,
.game-rail {
  height: 5px;
  background: #eaf0e5;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 6px;
}
.rail i,
.game-rail i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.4s;
}
.round-play {
  height: 34px;
  width: 34px;
  background: var(--tint);
  color: var(--accent);
  justify-content: center;
  border-radius: 50%;
}
.goal {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: #eef3e5;
  border: 1px solid #dbe5d0;
  border-radius: 16px;
  margin-top: 24px;
}
.goal-symbol {
  color: #477043;
  background: #dfebcc;
  display: grid;
  place-items: center;
  border-radius: 13px;
  width: 46px;
  height: 46px;
}
.goal h3 {
  margin: 0;
  font-size: 1.1rem;
}
.goal p {
  margin: 3px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.goal-track {
  margin-left: auto;
  width: 180px;
  color: #4f6651;
  font-size: 0.8rem;
  font-weight: 700;
}
.segments {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.segments i {
  background: #d6dfcd;
  border-radius: 3px;
  height: 7px;
  flex: 1;
}
.segments .done {
  background: #659647;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #617066;
  font-size: 0.82rem;
  padding-block: 14px 25px;
}
footer button,
.text-button {
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #335f48;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(100%);
}
.skip:focus {
  display: block;
  padding: 10px;
  background: #fff;
}
.page-heading {
  padding: 22px 0;
  max-width: 720px;
}
.page-heading h1,
.result h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  letter-spacing: -0.06em;
  line-height: 1.05;
  margin: 8px 0;
}
.page-heading p,
.modal-head + p,
.result p,
.badge p {
  color: var(--muted);
}
.numbers,
.badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.numbers article,
.badge,
.result,
.game-card {
  border: 1px solid var(--edge);
  background: white;
  border-radius: 20px;
  box-shadow: 0 3px 0 #354a2a09;
}
.numbers article {
  padding: 22px;
  display: grid;
  color: #446e48;
}
.numbers strong {
  font: 900 2rem var(--heading);
  color: var(--ink);
  margin-top: 8px;
}
.numbers span {
  color: var(--muted);
}
.subhead {
  margin: 30px 0 16px;
}
.badge {
  padding: 25px;
  display: flex;
  align-items: flex-start;
  gap: 17px;
}
.badge-medal,
.reward-icon {
  background: #e9ede6;
  color: #647366;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 65px;
  height: 65px;
  border: 4px double #c4cec3;
}
.badge.earned .badge-medal,
.reward-icon {
  background: #fbefbd;
  border-color: #dfbf63;
  color: #926621;
}
.badge h3 {
  font-size: 1.25rem;
  margin: 4px 0;
}
.badge small {
  color: #637364;
}
.badge p {
  margin: 0;
  font-size: 0.9rem;
}
.badges {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.game-shell,
.result {
  max-width: 730px;
  margin: 6px auto 30px;
}
.game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}
.quiet {
  border-radius: 9px;
  padding: 8px 12px;
  font-weight: 600;
  background: white;
  border: 1px solid var(--edge);
}
.game-rail {
  margin: 12px 0 20px;
  height: 8px;
}
.game-rail i {
  background: #76a454;
}
.game-card,
.result {
  padding: clamp(20px, 4vw, 42px);
  animation: arrive 0.28s ease-out;
}
.game-tag {
  font-size: 0.83rem;
  background: var(--tint);
  color: var(--accent);
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
}
.question-type {
  color: #5b715e;
  margin: 24px 0 7px;
}
.game-card h1 {
  font-size: clamp(1.55rem, 3.1vw, 2.1rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0 0 23px;
}
.options {
  display: grid;
  gap: 10px;
}
.option {
  display: flex;
  gap: 13px;
  align-items: center;
  text-align: left;
  background: #f9faf5;
  border: 1.5px solid #d9e1d4;
  border-radius: 12px;
  font-weight: 600;
  padding: 12px 14px;
  width: 100%;
}
.option b {
  background: #e8ede2;
  border-radius: 8px;
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}
.option > .icon {
  margin-left: auto;
}
.option:hover:not(:disabled) {
  border-color: #6f9567;
  background: #f2f7e9;
}
.option:disabled {
  cursor: default;
  opacity: 1;
}
.option.correct,
.good {
  background: #edf6e4;
  border-color: #a5c48a;
}
.option.incorrect,
.try {
  background: #fff1df;
  border-color: #e8c38d;
}
.feedback {
  margin-top: 17px;
  padding: 16px 18px;
  border-radius: 12px;
  animation: arrive 0.24s;
}
.feedback p {
  margin: 6px 0 0;
}
.feedback small {
  font-size: 0.78rem;
  margin-left: 8px;
}
.neutral {
  background: #eef3ec;
}
.next {
  margin-top: 17px;
}
.dark-button {
  background: #20573d;
  color: white;
}
.dark-button:hover {
  background: #17432f;
}
.secondary {
  border: 1px solid #cedbcb;
  background: #fff;
}
.button-row {
  flex-wrap: wrap;
  margin-top: 15px;
}
.result {
  margin-top: 40px;
  text-align: center;
}
.reward-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  animation: pop 0.45s ease;
}
.result .result-stats {
  display: flex;
  justify-content: center;
  gap: 13px;
  margin: 15px 0;
}
.result-stats b,
.celebration {
  padding: 8px 15px;
  border-radius: 20px;
  background: #eff3df;
  color: #47613c;
}
.result .celebration {
  display: flex;
  width: fit-content;
  margin: 7px auto;
}
.result .button-row {
  justify-content: center;
}
dialog {
  color: var(--ink);
  border: 1px solid #cfdcc9;
  border-radius: 20px;
  width: min(470px, calc(100vw - 28px));
  padding: 24px;
  box-shadow: 0 20px 80px #152d2350;
  max-height: 85svh;
}
dialog:modal {
  overscroll-behavior: contain;
  animation: arrive 0.2s;
}
dialog::backdrop {
  background: #102c2680;
  backdrop-filter: blur(3px);
  overflow: hidden;
  overscroll-behavior: contain;
}
.modal-head,
.profile-row,
.input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-head {
  justify-content: space-between;
}
.modal-head h2 {
  font-size: 1.65rem;
}
.close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #f0f2eb;
  border-radius: 50%;
}
.profile-list {
  display: grid;
  gap: 6px;
}
.profile-row {
  width: 100%;
  text-align: left;
  background: #f4f7ef;
  border-radius: 10px;
  padding: 7px 10px;
  font-weight: 700;
}
.profile-row span {
  overflow-wrap: anywhere;
}
.profile-row > .icon {
  margin-left: auto;
}
.text-button {
  margin: 8px 0 12px;
  padding: 5px;
}
.input-row > input {
  min-width: 0;
  flex: 1;
}
label {
  display: block;
  font-weight: 700;
  margin: 10px 0 6px;
}
input,
textarea {
  border: 1px solid #a5b7a5;
  padding: 9px 12px;
  border-radius: 10px;
  width: 100%;
  background: #fff;
}
textarea {
  resize: vertical;
  display: block;
  margin-bottom: 12px;
}
dialog a {
  color: #21583a;
}
dialog li {
  margin-bottom: 8px;
}
.game-shell {
  overflow-wrap: anywhere;
}
@keyframes arrive {
  from {
    opacity: 0.3;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pop {
  from {
    transform: scale(0.75) rotate(-12deg);
  }
  to {
    transform: scale(1);
  }
}
@media (max-width: 940px) {
  .shell {
    padding-inline: 24px;
  }
  .nav-link {
    padding: 9px;
  }
  .head-right {
    gap: 6px;
  }
  .cards {
    gap: 13px;
  }
  .card-body {
    padding: 14px;
  }
  .hero-copy {
    padding-left: 32px;
  }
  .brand {
    font-size: 1.45rem;
  }
  .profile span {
    max-width: 80px;
  }
}
@media (max-width: 750px) {
  .shell {
    padding-inline: 16px;
  }
  #bar {
    flex-wrap: wrap;
    gap: 0;
    min-height: auto;
    padding-top: 10px;
  }
  .brand {
    font-size: 1.35rem;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .head-right {
    margin-left: auto;
  }
  nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding: 8px 0 6px;
    gap: 8px;
  }
  .nav-link {
    font-size: 0.84rem;
    padding: 6px 12px;
  }
  .profile {
    font-size: 0.8rem;
  }
  .profile svg:first-child {
    width: 29px;
    height: 29px;
  }
  main {
    padding-block: 16px;
  }
  .hero {
    min-height: 312px;
  }
  .hero-img {
    object-position: 65% 50%;
  }
  .hero-copy {
    padding: 25px 24px;
  }
  .hero:after {
    background: linear-gradient(
      90deg,
      #10362cec 0%,
      #10362caa 40%,
      #10362c15 85%
    );
  }
  .hero h1 {
    font-size: 3rem;
  }
  .hero p {
    max-width: 300px;
  }
  .section-head {
    margin-top: 25px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-head {
    align-items: center;
  }
  .numbers article {
    padding: 15px;
  }
  .badge {
    padding: 16px;
    gap: 10px;
  }
  .badge-medal {
    width: 47px;
    height: 47px;
  }
  .badge-medal svg {
    width: 28px;
  }
}
@media (max-width: 540px) {
  .cards,
  .badges {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 318px;
    border-radius: 18px;
  }
  .hero-img {
    object-position: 74% 50%;
  }
  .hero:after {
    background:
      linear-gradient(0deg, #103a30fa 0%, #103a30dd 35%, #103a3055 82%),
      linear-gradient(90deg, #16382b9c, transparent 72%);
  }
  .hero-copy {
    padding: 20px;
    align-self: end;
  }
  .hero h1 {
    font-size: 2.85rem;
    margin: 17px 0 9px;
  }
  .hero-label {
    font-size: 0.65rem;
  }
  .hero p {
    font-size: 0.92rem;
    max-width: 270px;
  }
  .hero-actions {
    margin-top: 16px;
    gap: 11px;
  }
  .hero-actions > span {
    font-size: 0.76rem;
  }
  .primary {
    padding: 10px 13px;
    font-size: 0.9rem;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .section-head h2 {
    font-size: 1.9rem;
  }
  .card-image {
    aspect-ratio: 3.1;
  }
  .card-body {
    padding: 15px 17px;
  }
  .card-body h3 {
    font-size: 1.48rem;
  }
  .card-body p {
    margin-bottom: 12px;
  }
  .goal {
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
  }
  .goal-track {
    width: 100%;
    padding-left: 0;
  }
  .numbers {
    gap: 7px;
  }
  .numbers article {
    padding: 12px 8px;
    border-radius: 12px;
  }
  .numbers strong {
    font-size: 1.35rem;
  }
  .numbers span {
    font-size: 0.73rem;
  }
  .game-shell {
    margin-top: 0;
  }
  .game-card {
    padding: 19px 16px;
  }
  .result {
    margin-top: 10px;
  }
  .card-progress span {
    font-size: 0.78rem;
  }
  .xp {
    font-size: 0.73rem;
    padding: 4px 7px;
  }
  .profile span {
    max-width: 72px;
  }
  .profile {
    gap: 4px;
  }
  .brand {
    gap: 6px;
  }
  .hero-actions,
  .switch {
    flex-wrap: wrap;
  }
  .profile-list .profile-row {
    min-height: 44px;
  }
  .badges {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.learning-log {
  margin: 28px 0;
}
.learning-log > p {
  color: var(--muted);
  margin: 6px 0 15px;
}
.learning-log details {
  border: 1px solid var(--edge);
  background: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  margin: 10px 0;
}
.learning-log summary {
  cursor: pointer;
}
.learning-log summary > .icon {
  margin: 0 7px;
}
.learning-log small {
  color: var(--muted);
  float: right;
}
.learning-log ul {
  padding: 0;
  list-style: none;
}
.learning-log li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--edge);
  font-size: 0.92rem;
}
.learning-log li b {
  flex-shrink: 0;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 20px;
}
.known {
  background: #e7f1df;
  color: #315735;
}
.review {
  background: #fff0d7;
  color: #805a27;
}
.learning-log .secondary {
  font-size: 0.85rem;
  padding: 7px 12px;
}
.learning-log .secondary:hover {
  background: #eef3e9;
}
@media (max-width: 480px) {
  .learning-log summary b {
    font-size: 0.9rem;
  }
  .learning-log summary > .icon {
    width: 15px;
    margin: 0 3px;
  }
  .learning-log small {
    font-size: 0.72rem;
  }
  .learning-log details {
    padding-inline: 10px;
  }
}

.cloze-hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}
.cloze-sentence {
  background: #f5f8ee;
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 15px 17px;
  line-height: 2.15;
  font-size: 1.15rem;
}
.word-slot,
.word-chip,
.word-ghost {
  border-radius: 9px;
  font-weight: 700;
  max-width: 100%;
  line-height: 1.25;
}
.word-slot {
  display: inline-block;
  vertical-align: middle;
  min-width: 5.8em;
  min-height: 44px;
  padding: 5px 10px;
  margin: 3px 1px;
  border: 2px dashed #809779;
  background: white;
  color: #536b51;
  font-size: 0.94rem;
}
.word-slot.filled {
  background: #e6f2d6;
  border: 2px solid #92ad73;
  color: #214734;
}
.word-slot.filled,
.word-chip {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.word-slot.drag-over {
  background: #d8efac;
  border-color: #426c37;
  transform: scale(1.04);
}
.word-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 16px 0;
}
.word-chip,
.word-ghost {
  padding: 9px 13px;
  min-height: 44px;
  border: 1.5px solid #a1b98f;
  background: #fff;
  color: #254832;
  box-shadow: 0 2px 0 #ccd9bf;
}
.word-chip[aria-pressed="true"] {
  background: #dbefb4;
  border-color: var(--green);
}
.word-chip:disabled {
  opacity: 0.42;
  cursor: default;
  box-shadow: none;
}
.word-slot:disabled {
  cursor: default;
  opacity: 1;
}
.word-slot.correct {
  background: #e4f3d7;
  border-color: #8caf70;
}
.word-slot.incorrect {
  background: #fff0df;
  border-color: #cf9871;
  color: #7c451d;
}
.word-ghost {
  position: fixed;
  pointer-events: none;
  z-index: 5;
  transform: translate(-50%, -110%);
  box-shadow: 0 8px 18px #20342133;
}
.cloze-check:disabled {
  opacity: 0.5;
  cursor: default;
}
.cloze-board [hidden] {
  display: none;
}
