:root {
  --wm-bg: #eef5f1;
  --wm-surface: #ffffff;
  --wm-ink: #17312b;
  --wm-muted: #6e817b;
  --wm-line: #d8e5df;
  --wm-green: #176b52;
  --wm-green-soft: #e6f4ee;
  --wm-blue: #3569e8;
  --wm-blue-soft: #eaf0ff;
  --wm-amber: #a76510;
  --wm-red: #b53c45;
  --wm-violet: #7655b5;
  --wm-shadow: 0 18px 50px rgba(28, 65, 52, 0.12);
}

* {
  box-sizing: border-box;
}

body.wm-complete-mode #studyPanel {
  display: none !important;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--wm-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--wm-ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(83, 184, 146, 0.14), transparent 28rem),
    radial-gradient(circle at 95% 8%, rgba(87, 129, 240, 0.12), transparent 28rem),
    var(--wm-bg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.wm-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.wm-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.wm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wm-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, #176b52, #48a984);
  box-shadow: 0 10px 24px rgba(23, 107, 82, 0.24);
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 800;
}

.wm-brand h1 {
  margin: 0;
  font-size: clamp(21px, 3vw, 30px);
  letter-spacing: -0.04em;
}

.wm-brand p {
  margin: 4px 0 0;
  color: var(--wm-muted);
  font-size: 13px;
}

.wm-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.wm-nav a,
.wm-button,
.wm-ghost,
.wm-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--wm-line);
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  transition: 150ms ease;
}

.wm-nav a,
.wm-nav-button,
.wm-ghost {
  color: #31564a;
  background: rgba(255, 255, 255, 0.82);
}

.wm-nav a:hover,
.wm-nav-button:hover,
.wm-ghost:hover {
  border-color: #97c8b3;
  color: var(--wm-green);
  transform: translateY(-1px);
}

.wm-button {
  border-color: transparent;
  color: #fff;
  background: var(--wm-green);
  box-shadow: 0 10px 20px rgba(23, 107, 82, 0.18);
}

.wm-button:hover {
  background: #0f5b45;
  transform: translateY(-1px);
}

.wm-button.secondary {
  color: var(--wm-green);
  background: var(--wm-green-soft);
  box-shadow: none;
}

.wm-card {
  border: 1px solid rgba(216, 229, 223, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--wm-shadow);
}

.wm-card-pad {
  padding: 24px;
}

.wm-grid {
  display: grid;
  gap: 18px;
}

.wm-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wm-grid.stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.wm-kicker {
  color: var(--wm-green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wm-muted {
  color: var(--wm-muted);
}

.wm-form {
  display: grid;
  gap: 14px;
}

.wm-field {
  display: grid;
  gap: 7px;
  color: #38574e;
  font-size: 13px;
  font-weight: 750;
}

.wm-field input,
.wm-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--wm-line);
  border-radius: 12px;
  color: var(--wm-ink);
  background: #fbfdfc;
  outline: none;
}

.wm-field input:focus,
.wm-field select:focus {
  border-color: #6eb89d;
  box-shadow: 0 0 0 4px rgba(110, 184, 157, 0.16);
}

.wm-message {
  min-height: 22px;
  margin: 0;
  color: var(--wm-red);
  font-size: 13px;
}

.wm-secondary-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.wm-secondary-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid var(--wm-line);
  border-radius: 999px;
  color: var(--wm-muted);
  background: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 750;
}

.wm-secondary-stat b {
  color: var(--wm-green);
  font-size: 13px;
}

.wm-stat {
  padding: 18px;
  border: 1px solid var(--wm-line);
  border-radius: 18px;
  background: #fff;
}

.wm-stat strong {
  display: block;
  margin-bottom: 4px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.wm-stat span {
  color: var(--wm-muted);
  font-size: 12px;
  font-weight: 750;
}

.wm-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f0ec;
}

.wm-auto-speak {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--wm-muted);
  font-size: 12px;
  font-weight: 750;
}

.wm-auto-speak input {
  width: 16px;
  height: 16px;
}

.wm-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #48a984, #3569e8);
  transition: width 220ms ease;
}

.wm-flashcard {
  position: relative;
  min-height: 390px;
  perspective: 1200px;
}

.wm-flashcard-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 480ms cubic-bezier(.2, .75, .2, 1);
  will-change: transform;
}

.wm-flashcard.is-flipped .wm-flashcard-inner {
  transform: rotateY(180deg);
}

.wm-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 30px;
  border: 1px solid var(--wm-line);
  border-radius: 24px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  background: #fff;
  box-shadow: var(--wm-shadow);
}

.wm-face.back {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, #fff, #fbfefc);
}

.wm-flashcard:not(.is-flipped) .wm-face.back,
.wm-flashcard.is-flipped .wm-face.front {
  pointer-events: none;
}

.wm-wordbook-toggle {
  position: absolute;
  top: 12px;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #efd2d8;
  border-radius: 999px;
  color: #c44b64;
  background: #fff6f8;
  font-size: 24px;
  line-height: 1;
  transition: 150ms ease;
}

.wm-wordbook-toggle:hover,
.wm-wordbook-toggle.is-active {
  border-color: #e69cac;
  color: #fff;
  background: #d85e78;
  transform: scale(1.04);
}

.wm-retry-mark {
  position: absolute;
  top: 16px;
  left: 18px;
  display: inline-flex;
  min-height: 25px;
  padding: 0 9px;
  align-items: center;
  border-radius: 999px;
  color: #8a5a10;
  background: #fff2d2;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
}

.wm-item-type {
  position: absolute;
  top: 16px;
  right: 66px;
  display: inline-flex;
  min-height: 25px;
  padding: 0 9px;
  align-items: center;
  border-radius: 999px;
  color: #2b5c9e;
  background: #eaf1ff;
  font-size: 11px;
  font-weight: 850;
}

.wm-word.is-phrase {
  font-size: clamp(28px, 5vw, 54px);
}

.wm-wordline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 180px;
  text-align: center;
}

.wm-word {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 74px);
  font-weight: 800;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.wm-pronunciation {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 2px;
}

.wm-phonetic {
  margin: 0;
  color: var(--wm-muted);
  font-size: 18px;
  text-align: center;
}

.wm-speak {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--wm-green);
  background: var(--wm-green-soft);
  font-size: 20px;
}

.wm-flip-hint {
  margin: auto 0 0;
  color: var(--wm-muted);
  font-size: 13px;
  text-align: center;
}

.wm-meaning {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 850;
}

.wm-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--wm-line);
}

.wm-section h3 {
  margin: 0 0 8px;
  color: var(--wm-green);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.wm-section p {
  margin: 0 0 8px;
  line-height: 1.75;
}

.wm-example-en {
  color: #253f38;
  font-family: Georgia, "Times New Roman", serif;
}

.wm-example-zh {
  color: var(--wm-muted);
}

.wm-collocation {
  display: inline-flex;
  margin: 3px 6px 3px 0;
  padding: 6px 9px;
  border-radius: 9px;
  color: #2c5b4a;
  background: #edf8f3;
  font-size: 12px;
}

.wm-context-list {
  display: grid;
  gap: 9px;
}

.wm-context-item {
  padding: 10px;
  border: 1px solid #d8e5e0;
  border-radius: 10px;
  background: #f7fcf9;
}

.wm-context-item small {
  color: #5e7d72;
  font-size: 11px;
  font-weight: 800;
}

.wm-context-item p {
  margin: 5px 0 8px;
  color: #27443b;
  font: 13px/1.65 Georgia, "Times New Roman", serif;
  text-indent: 2em;
}

.wm-context-item button {
  border: 1px solid #9bc7b7;
  border-radius: 8px;
  padding: 5px 9px;
  color: #245d49;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}

.wm-context-item button:hover {
  background: #eaf7f1;
}

.wm-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.wm-rating {
  min-height: 54px;
  border: 0;
  color: #fff;
  background: #345d51;
}

.wm-rating:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  transform: none;
}

.wm-rating.forgot { background: var(--wm-red); }
.wm-rating.fuzzy { background: var(--wm-amber); }
.wm-rating.know { background: var(--wm-green); }
.wm-rating.mastered { background: var(--wm-violet); }

.wm-empty {
  display: grid;
  min-height: 330px;
  place-items: center;
  padding: 28px;
  color: var(--wm-muted);
  text-align: center;
}

.wm-level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.wm-level-card {
  padding: 18px;
  border: 1px solid var(--wm-line);
  border-radius: 18px;
  background: #fff;
}

.wm-level-card.is-three-star {
  border-color: #e6c36c;
  background: linear-gradient(145deg, #fffdf6, #fff5d9);
  box-shadow: 0 12px 30px rgba(183, 137, 31, 0.12);
}

.wm-level-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.wm-level-title {
  font-size: 18px;
  font-weight: 900;
}

.wm-level-meta,
.wm-level-detail,
.wm-level-next {
  margin-top: 6px;
  color: var(--wm-muted);
  font-size: 12px;
  line-height: 1.55;
}

.wm-level-next {
  color: #365d50;
  font-weight: 750;
}

.wm-stars {
  flex: 0 0 auto;
  color: #d89e24;
  font-size: 22px;
  letter-spacing: 2px;
}

.wm-set-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--wm-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(28, 65, 52, 0.09);
}

.wm-set-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.wm-set-card h2 {
  margin: 8px 0 8px;
  font-size: 22px;
}

.wm-set-card p {
  margin: 0;
  color: var(--wm-muted);
  font-size: 12px;
  line-height: 1.55;
}

.wm-set-meta,
.wm-set-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.wm-set-meta span,
.wm-set-stats span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #2c5b4a;
  background: #edf8f3;
  font-size: 11px;
  font-weight: 800;
}

.wm-set-stats span {
  color: var(--wm-muted);
  background: #f5f8f6;
}

.wm-set-card .wm-button {
  margin-top: auto;
  align-self: flex-start;
}

.wm-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.wm-collect-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 18px;
  border: 2px solid var(--wm-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(28, 65, 52, 0.08);
}

.wm-collect-card::before {
  position: absolute;
  top: -42px;
  right: -38px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: rgba(53, 105, 232, 0.10);
  content: "";
}

.wm-collect-card.rarity-common { border-color: #bdd9cd; }
.wm-collect-card.rarity-rare { border-color: #8eb0ef; }
.wm-collect-card.rarity-epic { border-color: #c09ae8; }
.wm-collect-card.rarity-legendary { border-color: #e8bd62; }
.wm-collect-card.is-locked { filter: saturate(.35); opacity: .72; }
.wm-collect-card.is-unlocked.rarity-common { background: linear-gradient(145deg, #f5fff9, #e4f5ec); }
.wm-collect-card.is-unlocked.rarity-rare { background: linear-gradient(145deg, #f4f8ff, #e4edff); }
.wm-collect-card.is-unlocked.rarity-epic { background: linear-gradient(145deg, #fbf6ff, #eee1ff); }
.wm-collect-card.is-unlocked.rarity-legendary { background: linear-gradient(145deg, #fffaf0, #ffe9b7); }
.wm-collect-icon { position: relative; font-size: 42px; line-height: 1; }
.wm-collect-title { position: relative; margin-top: 14px; font-size: 19px; font-weight: 900; }
.wm-collect-subtitle { position: relative; margin-top: 6px; color: var(--wm-muted); font-size: 12px; line-height: 1.55; }
.wm-collect-earned { position: relative; margin-top: 22px; color: var(--wm-green); font-size: 11px; font-weight: 850; }
.wm-collect-progress { position: relative; margin-top: 7px; color: var(--wm-muted); font-size: 11px; font-weight: 800; text-align: right; }

.wm-list {
  display: grid;
  gap: 10px;
}

.wm-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--wm-line);
  border-radius: 14px;
  background: #fff;
}

.wm-list-row strong {
  display: block;
  font-size: 15px;
}

.wm-list-row span {
  color: var(--wm-muted);
  font-size: 12px;
}

.wm-table-wrap {
  overflow-x: auto;
}

.wm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.wm-table th,
.wm-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--wm-line);
  text-align: left;
  white-space: nowrap;
}

.wm-table th {
  color: var(--wm-muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.wm-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--wm-green);
  background: var(--wm-green-soft);
  font-size: 11px;
  font-weight: 800;
}

.wm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 49, 43, 0.34);
  backdrop-filter: blur(6px);
}

.wm-checkin-modal {
  position: relative;
  width: min(420px, 100%);
  padding: 34px 28px 28px;
  border: 1px solid rgba(216, 229, 223, 0.95);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(20, 55, 45, 0.24);
  text-align: center;
}

.wm-checkin-modal h2 {
  margin: 8px 0 6px;
  font-size: 27px;
  letter-spacing: -0.04em;
}

.wm-checkin-modal > p {
  margin: 0 0 20px;
  color: var(--wm-muted);
}

.stamp-color-0 { color: #c58d13; }
.stamp-color-1 { color: #c44b64; }
.stamp-color-2 { color: #5f67b8; }
.stamp-color-3 { color: #3d936d; }
.stamp-color-4 { color: #4c86ad; }

.wm-checkin-seal.stamp-color-0 { border-color: #c58d13; background: #fffaf0; }
.wm-checkin-seal.stamp-color-1 { border-color: #c44b64; background: #fff5f7; }
.wm-checkin-seal.stamp-color-2 { border-color: #5f67b8; background: #f6f6ff; }
.wm-checkin-seal.stamp-color-3 { border-color: #3d936d; background: #f2fbf6; }
.wm-checkin-seal.stamp-color-4 { border-color: #4c86ad; background: #f3f9fd; }

.stamp-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wm-checkin-seal .stamp-svg {
  width: 82px;
  height: 82px;
}

.wm-checkin-seal {
  display: grid;
  width: 116px;
  height: 116px;
  margin: 0 auto 18px;
  place-items: center;
  border: 4px double #c84b4b;
  border-radius: 999px;
  color: #c84b4b;
  background: #fff5f5;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 900;
  transform: rotate(-8deg);
}

.wm-checkin-modal.is-stamping .wm-checkin-seal {
  animation: stampFall 620ms cubic-bezier(.2, .8, .2, 1) both;
}

.wm-stamp-button {
  width: 100%;
  min-height: 54px;
  font-size: 17px;
}

.wm-checkin-sentence {
  min-height: 36px;
  margin: 14px 0 0;
  color: #365d50;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(6px);
  transition: 260ms ease;
}

.wm-checkin-sentence.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.wm-checkin-mute {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: var(--wm-muted);
  font-size: 12px;
  font-weight: 700;
}

.wm-checkin-mute input {
  width: 16px;
  height: 16px;
}

@keyframes stampFall {
  0% { transform: translateY(-120px) rotate(-14deg) scale(1.22); opacity: 0; }
  62% { transform: translateY(8px) rotate(3deg) scale(0.96); opacity: 1; }
  100% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
}

.wm-stamp-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.wm-stamp-gallery-item {
  display: grid;
  justify-items: center;
  padding: 18px 14px;
  border: 1px solid var(--wm-line);
  border-radius: 16px;
  background: #fbfdfc;
  text-align: center;
}

.wm-stamp-gallery-item strong {
  margin-top: 10px;
  font-size: 14px;
}

.wm-stamp-gallery-item p {
  margin: 7px 0 0;
  color: var(--wm-muted);
  font-size: 11px;
  line-height: 1.55;
}

.wm-stamp-gallery-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  color: inherit;
}

.wm-calendar-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.wm-calendar-weekdays,
.wm-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.wm-calendar-weekdays {
  margin-bottom: 8px;
  color: var(--wm-muted);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.wm-calendar-day {
  display: grid;
  min-height: 76px;
  place-items: center;
  padding: 7px;
  border: 1px solid var(--wm-line);
  border-radius: 13px;
  color: var(--wm-ink);
  background: #fff;
}

.wm-calendar-day strong {
  font-size: 12px;
}

.wm-calendar-day.is-empty {
  min-height: 76px;
  border: 0;
  background: transparent;
}

.wm-calendar-day.is-today {
  box-shadow: 0 0 0 3px rgba(53, 105, 232, 0.14);
}

.wm-calendar-day.has-stamp {
  border-color: #e1b957;
  color: #8a5a10;
  background: linear-gradient(145deg, #fffdf5, #fff1c9);
  cursor: pointer;
}

.wm-calendar-day.has-stamp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(183, 137, 31, 0.14);
}

.wm-calendar-stamp {
  display: grid;
  cursor: pointer;
  width: 34px;
  height: 34px;
  place-items: center;
  color: inherit;
  font-size: 26px;
  filter: drop-shadow(0 2px 1px rgba(78, 61, 29, 0.16));
  line-height: 1;
}

.wm-detail-stamp {
  display: grid;
  width: 86px;
  height: 86px;
  margin: 0 auto 12px;
  place-items: center;
  color: #b1771a;
}

.wm-calendar-note {
  margin: 16px 0 0;
  color: var(--wm-muted);
  font-size: 12px;
  line-height: 1.6;
}

.wm-detail-seal {
  margin: 0 auto 16px;
  font-size: 44px;
}

.wm-detail-sentence {
  margin: -4px 0 16px;
  color: #365d50;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.6;
}

.wm-detail-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}

.wm-detail-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--wm-line);
  border-radius: 12px;
  background: #fbfdfc;
}

.wm-detail-list span {
  color: var(--wm-muted);
  font-size: 13px;
}

.wm-detail-list strong {
  color: var(--wm-green);
  font-size: 18px;
}

.wm-landing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wm-landing-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  text-decoration: none;
  transition: 180ms ease;
}

.wm-landing-card:hover {
  border-color: #8dc7b0;
  transform: translateY(-3px);
}

.wm-landing-card h2 {
  margin: 12px 0 8px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.wm-landing-card p {
  margin: 0;
  color: var(--wm-muted);
  line-height: 1.7;
}

.wm-landing-card .wm-arrow {
  margin-top: 28px;
  color: var(--wm-green);
  font-weight: 850;
}

.wm-pk-toolbar-actions .wm-button,
#newPkButton {
  background: #6366f1;
  box-shadow: 0 10px 22px rgba(99, 102, 241, .24);
}

.wm-pk-toolbar-actions .wm-button:hover,
#newPkButton:hover {
  background: #4f46e5;
}

.wm-pk-toolbar-actions .wm-button:active,
#newPkButton:active {
  background: #4338ca;
  transform: translateY(1px);
}

@media (max-width: 900px) {
  .wm-grid.stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wm-grid.two,
  .wm-landing-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .checkin-page #checkinContent {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    gap: 18px;
    align-items: start;
  }

  .checkin-page #checkinContent > .wm-grid {
    grid-column: 1 / -1;
  }

  .checkin-page #checkinContent > .wm-card {
    margin-top: 0 !important;
  }
}

@media (max-width: 640px) {
  .checkin-page .wm-shell {
    padding-top: 8px;
    padding-bottom: 12px;
  }

  .checkin-page .wm-topbar {
    display: block;
    padding: 7px 8px;
    margin-bottom: 8px;
  }

  .checkin-page .wm-brand {
    margin-bottom: 6px;
  }

  .checkin-page .wm-nav {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-left: 0;
  }

  .checkin-page .wm-nav a,
  .checkin-page .wm-nav-button {
    flex: 0 0 auto;
    min-height: 26px;
    padding: 0 6px;
    font-size: 9.5px;
  }

  .checkin-page .wm-brand h1 {
    font-size: 20px;
  }

  .checkin-page .wm-brand p {
    display: none;
  }

  .checkin-page .wm-nav {
    gap: 4px;
  }

  .checkin-page .wm-nav a,
  .checkin-page .wm-nav-button {
    min-height: 30px;
    padding: 0 7px;
    font-size: 10px;
  }

  .checkin-page .wm-grid.stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px !important;
  }

  .checkin-page .wm-stat {
    padding: 5px 4px;
    border-radius: 9px;
  }

  .checkin-page .wm-stat strong {
    margin-bottom: 1px;
    font-size: 15px;
  }

  .checkin-page .wm-stat span {
    font-size: 8px;
  }

  .checkin-page .wm-card-pad {
    padding: 12px;
    border-radius: 14px;
  }

  .checkin-page .wm-calendar-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
  }

  .checkin-page .wm-calendar-head h2 {
    margin-top: 2px !important;
    font-size: 15px !important;
  }

  .checkin-page .wm-calendar-head .wm-kicker {
    display: none;
  }

  .checkin-page .wm-calendar-head .wm-checkin-mute {
    margin: 0;
    font-size: 9.5px;
  }

  .checkin-page .wm-calendar-head .wm-calendar-mute {
    font-size: 9.5px;
  }

  .checkin-page .wm-calendar-weekdays,
  .checkin-page .wm-calendar-grid {
    gap: 2px;
  }

  .checkin-page .wm-calendar-day,
  .checkin-page .wm-calendar-day.is-empty {
    min-height: 30px;
    padding: 2px;
    border-radius: 6px;
  }

  .checkin-page .wm-calendar-day strong {
    font-size: 10px;
  }

  .checkin-page .wm-calendar-stamp {
    width: 23px;
    height: 23px;
  }

  .checkin-page .wm-calendar-note {
    margin-top: 8px;
    font-size: 10px;
  }

  .checkin-page .wm-stamp-gallery-card {
    padding: 8px;
  }

  .checkin-page .wm-stamp-gallery-card .wm-calendar-head {
    display: none;
  }

  .checkin-page .wm-stamp-gallery {
    grid-auto-flow: column;
    grid-auto-columns: 78px;
    grid-template-columns: none;
    gap: 5px;
    padding-bottom: 2px;
    overflow-x: auto;
  }

  .checkin-page .wm-stamp-gallery-item {
    padding: 5px 3px;
    border-radius: 10px;
  }

  .checkin-page .wm-stamp-gallery-icon {
    width: 34px;
    height: 34px;
  }

  .checkin-page .wm-stamp-gallery-item strong {
    margin-top: 4px;
    font-size: 9px;
  }

  .checkin-page .wm-stamp-gallery-item p {
    margin-top: 3px;
    font-size: 7.5px;
    line-height: 1.35;
  }

  .checkin-page .wm-calendar-head .wm-pill {
    display: none;
  }
}

button.wm-nav-button {
  border: 1px solid var(--wm-line);
}

@media (max-width: 640px) {
  .wm-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .wm-topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .wm-nav {
    width: 100%;
    margin-left: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .wm-nav a,
  .wm-nav-button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 10px;
  }

  .wm-grid.stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wm-card-pad {
    padding: 17px;
  }

  .wm-face {
    padding: 20px;
  }

  .wm-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wm-wordline {
    min-height: 130px;
  }
}

/* Word Match PK v2 */
.wm-pk-toolbar,
.wm-pk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wm-pk-round-picker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #648277;
  font-size: 12px;
  font-weight: 750;
}

.wm-pk-round-picker .wm-select {
  min-width: 156px;
  padding-right: 36px;
  border-color: #bed2c8;
  background-color: #fff;
  color: #173f33;
  font-weight: 850;
  opacity: 1;
  -webkit-text-fill-color: #173f33;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23173f33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.wm-pk-round-picker .wm-select:disabled {
  border-color: #cbd9d2;
  background-color: #f4f7f5;
  color: #173f33;
  opacity: 1;
  -webkit-text-fill-color: #173f33;
}

.wm-pk-round-picker .wm-select option {
  background: #fff;
  color: #173f33;
}

.wm-pk-challenge-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #d8e4de;
  border-radius: 14px;
  background: #fbfdfc;
}

.wm-pk-challenge-row .wm-select {
  flex: 1 1 260px;
  min-width: 0;
}

.wm-pk-challenge-row .wm-button {
  flex: 0 0 auto;
}

.wm-pk-toolbar-actions,
.wm-pk-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.wm-select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--wm-line);
  border-radius: 12px;
  background: #fff;
  color: var(--wm-ink);
}

#matchPanel {
  position: relative;
  overflow: hidden;
}

#pkOpponent {
  margin: 8px 0 0;
  color: #8aa39a;
  font-size: 12px;
  line-height: 1.35;
}

.wm-pk-rematch-invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #a7f3d0;
  border-radius: 16px;
  background: #ecfdf5;
}

.wm-pk-rematch-invite strong,
.wm-pk-rematch-invite span {
  display: block;
}

.wm-pk-rematch-invite strong {
  color: #047857;
  font-size: 14px;
}

.wm-pk-rematch-invite span {
  margin-top: 3px;
  color: #557267;
  font-size: 12px;
}

.wm-pk-ranking {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #d8e4de;
  border-radius: 16px;
  background: #fbfdfc;
}

.wm-pk-ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: #31564a;
  font-size: 13px;
}

.wm-pk-ranking-head span {
  min-width: 0;
  overflow: hidden;
  color: #8aa39a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wm-pk-ranking-list {
  display: grid;
  gap: 6px;
}

.wm-pk-ranking-row {
  display: grid;
  grid-template-columns: 28px minmax(90px, 1.2fr) repeat(4, minmax(62px, .72fr));
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 8px;
  border-radius: 10px;
  background: #f4f8f6;
  color: #647a71;
  font-size: 11px;
}

.wm-pk-ranking-row strong {
  min-width: 0;
  overflow: hidden;
  color: #244d40;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wm-pk-ranking-row b {
  color: #176b52;
  font-size: 12px;
}

.wm-pk-ranking-place {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #e8f0eb;
  color: #557267;
  font-weight: 900;
}

.wm-pk-ranking-row:first-child .wm-pk-ranking-place {
  background: #fde68a;
  color: #92400e;
}

@media (max-width: 680px) {
  .wm-pk-ranking-row {
    grid-template-columns: 26px minmax(80px, 1fr) repeat(2, minmax(52px, .65fr));
  }

  .wm-pk-ranking-row span:nth-last-child(-n + 2) {
    display: none;
  }
}

.wm-pk-sessionbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
  gap: 12px;
  margin-top: 16px;
}

.wm-pk-coach {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 9px 14px 9px 10px;
  border: 1px solid #d9e8df;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfefc 0%, #f4faf7 100%);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.wm-pk-coach[data-tone="selected"] {
  border-color: #6366f1;
  background: #e0e7ff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .10);
}

.wm-pk-coach[data-tone="success"] {
  border-color: #10b981;
  background: #d1fae5;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .10);
}

.wm-pk-coach[data-tone="combo"] {
  border-color: #f59e0b;
  background: #fef9c3;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .11);
}

.wm-pk-coach[data-tone="wrong"] {
  border-color: #ef4444;
  background: #fee2e2;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .10);
}

.wm-pk-coach img {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  object-fit: contain;
  filter: drop-shadow(0 5px 5px rgba(36, 105, 82, .13));
}

.wm-pk-coach div {
  min-width: 0;
}

.wm-pk-coach strong,
.wm-pk-coach span {
  display: block;
}

.wm-pk-coach strong {
  margin-bottom: 4px;
  color: #173f33;
  font-size: 15px;
}

.wm-pk-coach span {
  color: #648277;
  font-size: 13px;
  line-height: 1.45;
}

.wm-pk-progress-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid #d9e8df;
  border-radius: 18px;
  background: #fbfefc;
}

.wm-pk-progress-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #648277;
  font-size: 12px;
  font-weight: 750;
}

.wm-pk-progress-card strong {
  color: #176b52;
  font-size: 16px;
  letter-spacing: .02em;
}

.wm-pk-progress-card.is-hot {
  border-color: #e3c777;
  box-shadow: 0 0 0 3px rgba(197, 138, 43, .08);
}

.wm-pk-progress-card.is-hot .wm-pk-progress-track span {
  animation: wm-pk-progress-glow 620ms ease-in-out 2;
}

.wm-pk-progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f0eb;
  box-shadow: inset 0 1px 2px rgba(25, 67, 53, .07);
}

.wm-pk-progress-track span {
  position: relative;
  display: block;
  width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: #34d399;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .38) inset;
  transition: width 260ms cubic-bezier(.2, .8, .2, 1);
}

@keyframes wm-pk-stage-flash {
  0%, 100% { opacity: 0; }
  35% { opacity: .82; }
}

@keyframes wm-pk-progress-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .38) inset; }
  50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .7) inset, 0 0 14px rgba(73, 176, 137, .55); }
}

.wm-pk-stage {
  position: relative;
  margin-top: 14px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #cfdfd6;
  border-radius: 24px;
  background-color: #f8fcf9;
  background-image: url("/word-memory/assets/word-match/ui/board-bg.svg");
  background-position: center;
  background-size: cover;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .96),
    0 18px 40px rgba(27, 82, 62, .08);
}

.wm-pk-stage::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 68px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, 0));
}

.wm-pk-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 48%, rgba(255, 247, 207, .42) 0%, rgba(255, 255, 255, 0) 62%);
}

.wm-pk-stage.is-combo-flash::after {
  animation: wm-pk-stage-flash 820ms ease both;
}

.wm-pk-board {
  --pk-columns: 4;
  --pk-gap: 16px;
  --pk-card-height: 84px;
  --pk-card-font-size: 15px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(var(--pk-columns), minmax(0, 1fr));
  gap: var(--pk-gap);
  margin: 0;
}

.wm-pk-board.is-resolving .wm-pk-tile {
  pointer-events: none;
}

.wm-pk-tile[data-theme="sky"] {
  --card-accent: #2563eb;
  --card-accent-2: #60a5fa;
  --card-soft: #93c5fd;
  --card-soft-2: #bfdbfe;
  --card-edge: #60a5fa;
  --card-glow: rgba(59, 130, 246, .25);
  --card-shadow: rgba(37, 99, 235, .16);
}

.wm-pk-tile[data-theme="mint"] {
  --card-accent: #059669;
  --card-accent-2: #34d399;
  --card-soft: #86efac;
  --card-soft-2: #a7f3d0;
  --card-edge: #34d399;
  --card-glow: rgba(16, 185, 129, .23);
  --card-shadow: rgba(5, 150, 105, .15);
}

.wm-pk-tile[data-theme="lilac"] {
  --card-accent: #6d28d9;
  --card-accent-2: #a78bfa;
  --card-soft: #c4b5fd;
  --card-soft-2: #ddd6fe;
  --card-edge: #a78bfa;
  --card-glow: rgba(124, 58, 237, .22);
  --card-shadow: rgba(109, 40, 217, .14);
}

.wm-pk-tile[data-theme="cream"] {
  --card-accent: #b45309;
  --card-accent-2: #f59e0b;
  --card-soft: #fde68a;
  --card-soft-2: #fef3c7;
  --card-edge: #f59e0b;
  --card-glow: rgba(245, 158, 11, .22);
  --card-shadow: rgba(180, 83, 9, .14);
}

.wm-pk-tile[data-theme="coral"] {
  --card-accent: #be185d;
  --card-accent-2: #f472b6;
  --card-soft: #fbcfe8;
  --card-soft-2: #fce7f3;
  --card-edge: #f472b6;
  --card-glow: rgba(236, 72, 153, .20);
  --card-shadow: rgba(190, 24, 93, .13);
}

.wm-pk-tile[data-theme="apricot"] {
  --card-accent: #c2410c;
  --card-accent-2: #fb923c;
  --card-soft: #fed7aa;
  --card-soft-2: #ffedd5;
  --card-edge: #fb923c;
  --card-glow: rgba(249, 115, 22, .20);
  --card-shadow: rgba(194, 65, 12, .13);
}

.wm-pk-tile[data-theme="red"] {
  --card-accent: #b91c1c;
  --card-accent-2: #f87171;
  --card-soft: #fecaca;
  --card-soft-2: #fee2e2;
  --card-edge: #f87171;
  --card-glow: rgba(239, 68, 68, .19);
  --card-shadow: rgba(185, 28, 28, .12);
}

.wm-pk-tile {
  position: relative;
  isolation: isolate;
  display: flex;
  height: var(--pk-card-height, 84px);
  min-height: 54px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding: 10px 12px 9px;
  overflow: hidden;
  border: 1px solid var(--card-edge, #cfddd5);
  border-radius: 16px;
  background:
    radial-gradient(120% 92% at 102% -8%, var(--card-glow, rgba(80, 150, 120, .14)) 0%, transparent 48%),
    linear-gradient(148deg, var(--card-soft-2, #ffffff) 0%, var(--card-soft, #f3faf7) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 2px 8px rgba(0, 0, 0, .10),
    0 7px 18px var(--card-shadow, rgba(35, 83, 66, .08));
  color: #22483c;
  font-weight: 850;
  line-height: 1.38;
  text-align: left;
  overflow-wrap: anywhere;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  transform: translateY(0);
  transition:
    transform 130ms ease,
    border-color 130ms ease,
    background 130ms ease,
    box-shadow 130ms ease,
    opacity 180ms ease;
}

.wm-pk-tile::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 13px;
  bottom: 0;
  left: 13px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--card-accent, #6f91df), var(--card-accent-2, #9db4ef));
  opacity: .9;
}

.wm-pk-tile > * {
  position: relative;
  z-index: 2;
}

.wm-pk-tile:hover:not(:disabled) {
  border-color: var(--card-accent, #8db9a7);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .14), 0 0 0 1px var(--card-accent, #6366f1) inset;
}

.wm-pk-tile:focus-visible {
  outline: 3px solid var(--card-glow, rgba(53, 105, 232, .20));
  outline-offset: 3px;
}

.wm-pk-tile.is-selected {
  border-color: var(--card-accent, #4f79d8);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .44)),
    linear-gradient(148deg, var(--card-soft-2, #ffffff), var(--card-soft, #edf3ff));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .92),
    0 0 0 4px var(--card-glow, rgba(99, 102, 241, .14)),
    0 6px 16px rgba(99, 102, 241, .30);
}

.wm-pk-tile.is-selected .wm-pk-tile-kind {
  background: var(--card-accent, #547bd2);
  color: #fff;
}

.wm-pk-tile.is-selected .wm-pk-tile-kind b {
  background: rgba(255, 255, 255, .22);
}

.wm-pk-tile.is-matched {
  border-color: var(--card-accent, #8bc9ad);
  background: var(--card-soft, #eaf8f1);
  color: var(--card-accent, #6d9d89);
  box-shadow: 0 0 0 7px var(--card-glow, rgba(77, 171, 133, .12));
  opacity: 0;
  pointer-events: none;
  transform: scale(.78) rotate(2deg);
  animation: wm-pk-card-match 380ms cubic-bezier(.2, .82, .24, 1) both;
}

.wm-pk-tile.is-wrong {
  border-color: #e5a0aa;
  background: #fff5f6;
  box-shadow:
    0 3px 0 rgba(203, 111, 126, .18),
    0 0 0 4px rgba(220, 82, 102, .09);
}

.wm-pk-tile-kind {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 17px;
  padding: 0 7px 0 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  color: var(--card-accent, #4167b5);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
}

.wm-pk-tile-kind b {
  display: grid;
  width: 13px;
  height: 13px;
  place-items: center;
  border-radius: 999px;
  background: var(--card-accent, #4167b5);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7.5px;
  letter-spacing: 0;
}

.wm-pk-tile-text {
  display: block;
  width: calc(100% - 4px);
  color: #1e40af;
  font-size: var(--pk-card-font-size, 15px);
  font-weight: 900;
  letter-spacing: -.005em;
  line-height: 1.26;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .76);
}

.wm-pk-tile[data-language="中文"] .wm-pk-tile-text {
  color: #78350f;
  font-weight: 750;
  letter-spacing: .005em;
}

.wm-pk-tile-sound {
  position: absolute;
  z-index: 3;
  top: 11px;
  right: 11px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 9px;
  background: rgba(255, 255, 255, .52);
  box-shadow: 0 3px 8px var(--card-shadow, rgba(35, 83, 66, .08));
  color: var(--card-accent, #26765b);
  font-size: 13px;
  font-weight: 950;
  backdrop-filter: blur(3px);
  transition: transform 150ms ease, background 150ms ease, color 150ms ease;
}

.wm-pk-tile:hover .wm-pk-tile-sound {
  background: rgba(255, 255, 255, .78);
  color: var(--card-accent, #26765b);
  transform: scale(1.08);
}

.wm-pk-tile.is-speaking .wm-pk-tile-sound {
  background: var(--card-accent, #26765b);
  color: #fff;
}

.wm-pk-board.is-compact .wm-pk-tile-kind {
  opacity: .68;
}

.wm-pk-board.is-compact .wm-pk-tile {
  padding-top: 8px;
  padding-bottom: 8px;
}

@keyframes wm-pk-speak-pulse {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.16) rotate(-4deg); }
  70% { transform: scale(1.06) rotate(3deg); }
}

@keyframes wm-pk-card-deal {
  0% { opacity: 0; transform: translateY(12px) scale(.94) rotate(-.8deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

@keyframes wm-pk-card-match {
  0% { opacity: 1; transform: scale(1); }
  42% { opacity: 1; transform: scale(1.055) rotate(-1deg); }
  100% { opacity: 0; transform: scale(.78) rotate(3deg); }
}

.wm-pk-combo {
  color: #8a5813;
  background: #fff7e8;
}

.wm-pk-result-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.wm-result-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #d8e4de;
  border-radius: 18px;
  background: #f8fbfa;
}

.wm-result-hero[data-tone="win"] {
  border-color: #34d399;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.wm-result-hero[data-tone="lose"] {
  border-color: #93c5fd;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.wm-result-hero[data-tone="tie"] {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.wm-result-hero[data-tone="wait"] {
  border-color: #cbd5e1;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}

.wm-result-emblem {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 20px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 8px 18px rgba(35, 83, 66, .1);
  font-size: 31px;
}

.wm-result-heading {
  min-width: 0;
}

.wm-result-heading h2 {
  margin: 6px 0 4px;
  color: #173f33;
  font-size: 25px;
  line-height: 1.12;
}

.wm-result-heading p {
  margin: 0;
  color: #557267;
  font-size: 13px;
}

.wm-result-heading .wm-result-rank-line {
  margin-top: 5px;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 800;
}

.wm-result-set {
  max-width: 230px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  color: #31564a;
  font-size: 12px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wm-result-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
  color: #557267;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

.wm-result-section-title b {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef2f7;
  color: #52677a;
  font-size: 11px;
}

.wm-result-section-title small {
  color: #8aa39a;
  font-size: 11px;
}

.wm-result-mini-button {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 11px;
  font-weight: 800;
}

.wm-result-mini-button:disabled {
  cursor: default;
  opacity: .7;
}

.wm-result-review-message {
  min-height: 18px;
  margin: 8px 0 0;
  color: #557267;
  font-size: 12px;
}

.wm-result-vs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
}

.wm-result-player {
  position: relative;
  min-width: 0;
  padding: 15px 16px 14px;
  border: 1px solid #d8e4de;
  border-radius: 17px;
  background: #fbfdfc;
  box-shadow: 0 5px 14px rgba(35, 83, 66, .07);
}

.wm-result-player.is-me {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .08), 0 5px 14px rgba(35, 83, 66, .07);
}

.wm-result-player.is-winner {
  border-color: #34d399;
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .08), 0 7px 18px rgba(16, 185, 129, .12);
}

.wm-result-player.is-waiting {
  border-style: dashed;
  color: #8aa39a;
  background: #f8fafc;
}

.wm-result-player-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.wm-result-player-head b {
  min-width: 0;
  overflow: hidden;
  color: #1f493c;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wm-result-player-head em {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f0eb;
  color: #557267;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.wm-result-player.is-winner .wm-result-player-head em {
  background: #34d399;
  color: #fff;
}

.wm-result-role {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: #6366f1;
  color: #fff;
  font-size: 10px;
  font-weight: 850;
}

.wm-result-player:not(.is-me) .wm-result-role {
  background: #64748b;
}

.wm-result-score {
  display: block;
  margin-top: 10px;
  color: #1e40af;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.04em;
}

.wm-result-player.is-winner .wm-result-score {
  color: #047857;
}

.wm-result-score-label {
  display: block;
  margin-top: 4px;
  color: #8aa39a;
  font-size: 10px;
  font-weight: 750;
}

.wm-result-metrics {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(203, 219, 211, .65);
  color: #5d776d;
  font-size: 11px;
  font-weight: 750;
}

.wm-result-vs-label {
  display: grid;
  align-self: center;
  justify-self: center;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 999px;
  background: #6366f1;
  box-shadow: 0 5px 14px rgba(99, 102, 241, .22);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.wm-result-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.wm-result-stat {
  padding: 12px 13px;
  border: 1px solid #d8e4de;
  border-radius: 15px;
  background: #fbfdfc;
}

.wm-result-stat span {
  display: block;
  color: #789087;
  font-size: 11px;
  font-weight: 750;
}

.wm-result-stat strong {
  display: block;
  margin-top: 5px;
  color: #173f33;
  font-size: 19px;
}

.wm-result-wrong-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wm-result-wrong-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #fecaca;
  border-radius: 15px;
  background: #fff7f7;
}

.wm-result-wrong-item div {
  min-width: 0;
}

.wm-result-wrong-item strong,
.wm-result-wrong-item span {
  display: block;
}

.wm-result-wrong-item strong {
  overflow: hidden;
  color: #991b1b;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wm-result-wrong-item span {
  margin-top: 3px;
  overflow: hidden;
  color: #78350f;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wm-result-wrong-sound {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 16px;
  font-weight: 900;
}

.wm-result-wrong-item.is-speaking .wm-result-wrong-sound {
  background: #ef4444;
  color: #fff;
}

.wm-result-perfect {
  margin: 0;
  padding: 13px 15px;
  border: 1px solid #a7f3d0;
  border-radius: 15px;
  background: #ecfdf5;
  color: #047857;
  font-size: 13px;
  font-weight: 750;
}

.wm-pk-compare {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--wm-line);
  border-radius: 12px;
  background: #fbfdff;
}

.wm-pk-effect {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.wm-pk-effect-label {
  position: absolute;
  top: 43%;
  left: 50%;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 999px;
  background: rgba(27, 118, 87, .94);
  box-shadow: 0 10px 28px rgba(24, 88, 66, .24);
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: .02em;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.72);
}

.wm-pk-effect[data-tone="combo"] .wm-pk-effect-label {
  background: rgba(195, 126, 25, .96);
}

.wm-pk-effect[data-tone="wrong"] .wm-pk-effect-label {
  background: rgba(184, 72, 89, .94);
}

.wm-pk-effect.show .wm-pk-effect-label {
  animation: wm-pk-effect-pop 820ms cubic-bezier(.2, .9, .25, 1) both;
}

.wm-pk-particle {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  background: url("/word-memory/assets/word-match/effects/sparkle.svg") center / contain no-repeat;
  opacity: 0;
  animation: wm-pk-particle-pop 720ms cubic-bezier(.18, .82, .24, 1) both;
}

@keyframes wm-pk-shake {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-6px) rotate(-1deg); }
  48% { transform: translateX(6px) rotate(1deg); }
  72% { transform: translateX(-3px); }
}

@keyframes wm-pk-effect-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.72); }
  22% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
  74% { opacity: 1; transform: translate(-50%, -58%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -78%) scale(.96); }
}

@keyframes wm-pk-particle-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(0deg); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.12) rotate(95deg); }
}

@media (max-width: 900px) {
  .wm-pk-sessionbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .wm-pk-stage { padding: 12px; border-radius: 20px; }
  .wm-pk-tile { padding: 9px 10px 8px; }
}

@media (max-width: 520px) {
  .wm-result-wrong-list {
    grid-template-columns: 1fr;
  }

  .wm-pk-toolbar-actions,
  .wm-select,
  .wm-pk-toolbar-actions .wm-button { width: 100%; }
  .wm-pk-meta { gap: 6px; }
  .wm-pk-meta .wm-pill,
  .wm-pk-meta button { min-height: 34px; padding: 0 10px; font-size: 12px; }
  .wm-pk-tile { padding: 8px 9px 7px; border-radius: 14px; }
  .wm-pk-tile-kind { font-size: 8.5px; }
  .wm-pk-tile-sound { top: 9px; right: 9px; width: 21px; height: 21px; }
  .wm-pk-coach img { width: 46px; height: 46px; flex-basis: 46px; }
}

@media (max-width: 680px) {
  .wm-result-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .wm-result-set {
    grid-column: 1 / -1;
    max-width: none;
  }

  .wm-result-vs {
    grid-template-columns: 1fr;
  }

  .wm-result-vs-label {
    width: 44px;
    height: 44px;
  }

  .wm-result-stats,
  .wm-result-wrong-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Fullscreen game focus */
body.wm-game-focus {
  background: #f2f8f5;
}

body.wm-game-focus .wm-topbar {
  display: none;
}

body.wm-game-focus .wm-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.wm-game-focus #pkPanel {
  min-height: 100vh;
  min-height: 100dvh;
}

body.wm-game-focus #pkSetPanel {
  display: none !important;
}

body.wm-game-focus #matchPanel:not([hidden]) {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  padding: 16px clamp(12px, 3vw, 34px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.wm-game-focus #matchPanel:not([hidden]) .wm-pk-stage {
  min-height: 0;
  flex: 1;
}

body.wm-game-focus #resultPanel:not([hidden]) {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 18px clamp(12px, 3vw, 34px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .wm-pk-tile,
  .wm-pk-progress-track span {
    transition: none;
  }

  .wm-pk-tile,
  .wm-pk-tile.is-wrong,
  .wm-pk-tile.is-matched,
  .wm-pk-effect.show .wm-pk-effect-label,
  .wm-pk-particle {
    animation: none;
  }

  .wm-pk-effect.show .wm-pk-effect-label {
    opacity: 1;
  }
}

/* Word Match action contrast */
#soloMatchButton {
  border-color: #74c69d;
  color: #064e3b;
  background: #dcfce7;
  box-shadow: none;
}

#soloMatchButton:hover,
#soloMatchButton:active {
  border-color: #15803d;
  color: #ffffff;
  background: #15803d;
}

#startPkButton,
#newMatchButton {
  border-color: #818cf8;
  color: #312e81;
  background: #e0e7ff;
  box-shadow: none;
}

#startPkButton:hover,
#startPkButton:active,
#newMatchButton:hover,
#newMatchButton:active {
  border-color: #4338ca;
  color: #ffffff;
  background: #4338ca;
}

#cancelOpenMatchButton {
  border-color: #fca5a5;
  color: #991b1b;
  background: #fee2e2;
  box-shadow: none;
}

#cancelOpenMatchButton:hover,
#cancelOpenMatchButton:active {
  border-color: #dc2626;
  color: #ffffff;
  background: #dc2626;
}

/* Inline challenge code generator */
.wm-pk-generated-code {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 13px 14px;
  border: 1px solid #86c8ad;
  border-radius: 14px;
  background: #e8f8f1;
  box-shadow: 0 7px 18px rgba(22, 101, 76, .08);
  flex-wrap: wrap;
}

.wm-pk-generated-code-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 180px;
  color: #145a46;
}

.wm-pk-generated-code-main span {
  font-size: 13px;
  font-weight: 800;
}

.wm-pk-generated-code-main strong {
  color: #0b3d2e;
  font-size: 26px;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1.1;
}

.wm-pk-generated-code small {
  flex: 1 1 260px;
  color: #356858;
  font-size: 12px;
  font-weight: 700;
}

#copyGeneratedChallengeButton {
  border-color: #2f8f6c;
  color: #0b4a36;
  background: #ffffff;
}

#copyGeneratedChallengeButton:hover,
#copyGeneratedChallengeButton:active {
  border-color: #167453;
  color: #ffffff;
  background: #167453;
}

@media (max-width: 620px) {
  .wm-pk-generated-code,
  .wm-pk-generated-code-main {
    align-items: flex-start;
  }

  .wm-pk-generated-code-main,
  #copyGeneratedChallengeButton {
    width: 100%;
  }
}

/* Event round statistics dialog */
.event-stats-dialog {
  width: min(1080px, 94vw);
  max-height: 88vh;
  padding: 22px;
  overflow: auto;
  border: 1px solid #c7d7cf;
  border-radius: 22px;
  color: #18241f;
  background: #fff;
  box-shadow: 0 28px 70px rgba(20, 55, 43, .28);
}

.event-stats-dialog::backdrop {
  background: rgba(13, 34, 27, .48);
  backdrop-filter: blur(4px);
}

.event-stats-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.event-stats-dialog-head h2 {
  margin: 7px 0 4px;
}

.event-stats-section {
  margin-top: 20px;
}

.event-stats-section h3 {
  margin: 0 0 10px;
}

.event-stats-match {
  padding: 13px 14px;
  border: 1px solid #d8e4de;
  border-radius: 14px;
  background: #fbfdfc;
}

.event-stats-match + .event-stats-match {
  margin-top: 9px;
}

.event-stats-match-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.event-stats-match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.event-stats-player {
  padding: 10px 12px;
  border-radius: 11px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e1eae6;
}

.event-stats-player.is-winner {
  background: #effcf5;
  box-shadow: inset 0 0 0 1px #86d5ad;
}

.event-stats-player strong,
.event-stats-player span {
  display: block;
}

.event-stats-player span {
  margin-top: 4px;
  color: #5d776d;
  font-size: 12px;
}

@media (max-width: 680px) {
  .event-stats-match-grid {
    grid-template-columns: 1fr;
  }
}

/* Student event achievements layout */
.event-achievements-section {
  overflow: hidden;
}

.event-achievements-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .8fr);
  gap: 18px;
  align-items: start;
}

.event-achievement-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid #d8e4de;
  border-radius: 17px;
  background: #fbfdfc;
}

.event-achievement-panel h3 {
  margin: 0 0 12px;
}

.event-honor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.event-honor-card,
.event-personal-stat {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #dde8e3;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(35, 83, 66, .05);
}

.event-honor-card strong,
.event-honor-card span,
.event-personal-stat strong,
.event-personal-stat span {
  display: block;
}

.event-honor-card strong {
  color: #21483c;
  font-size: 13px;
}

.event-honor-card span {
  margin-top: 6px;
  color: #49685f;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.event-personal-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.event-personal-stat strong {
  color: var(--wm-green);
  font-size: 20px;
  line-height: 1.15;
}

.event-personal-stat span {
  margin-top: 4px;
  color: #65736d;
  font-size: 11px;
  font-weight: 750;
}

@media (max-width: 900px) {
  .event-achievements-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .event-honor-grid,
  .event-personal-stats {
    grid-template-columns: 1fr;
  }
}

/* Student flashcard: keep the card itself as the main focus. */
#studyPanel .wm-study-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
  margin-bottom: 0;
}

#studyPanel .wm-study-summary .wm-stat {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 8px 9px;
  border-radius: 12px;
  text-align: center;
}

#studyPanel .wm-study-summary .wm-stat strong {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
}

#studyPanel .wm-study-summary .wm-stat span {
  font-size: 10px;
  white-space: nowrap;
}

#studyPanel .wm-study-toolbar {
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: 16px;
}

#studyPanel .wm-study-toolbar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

#studyPanel .wm-study-toolbar h2 {
  margin: 3px 0 0;
  font-size: 18px;
  line-height: 1.2;
}

#studyPanel .wm-study-toolbar #setMeta {
  margin-top: 2px !important;
  font-size: 11px !important;
}

#studyPanel .wm-study-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

#studyPanel .wm-study-toolbar .wm-select {
  min-height: 32px;
  padding: 0 8px;
  border-radius: 9px;
  font-size: 12px;
}

#studyPanel .wm-study-toolbar #dailyNewLimitControl {
  gap: 4px !important;
  font-size: 11px !important;
}

#studyPanel .wm-study-toolbar .wm-pill {
  min-height: 30px;
  padding: 0 9px;
  font-size: 11px;
}

#studyPanel .wm-study-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

#studyPanel .wm-study-progress-row .wm-progress {
  height: 7px;
}

#studyPanel .wm-study-progress-row .wm-auto-speak {
  margin-top: 0;
  white-space: nowrap;
}

#studyPanel .wm-flashcard {
  height: clamp(390px, calc(100vh - 295px), 560px);
  min-height: 390px;
}

#studyPanel .wm-actions {
  gap: 8px;
  margin-top: 12px;
}

#studyPanel .wm-actions .wm-rating {
  min-height: 48px;
}

@media (max-width: 900px) {
  #studyPanel .wm-study-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #studyPanel .wm-study-summary {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  #studyPanel .wm-study-summary .wm-stat {
    flex: 0 0 82px;
    min-height: 42px;
    padding: 7px 6px;
  }

  #studyPanel .wm-study-toolbar {
    padding: 12px;
  }

  #studyPanel .wm-study-toolbar-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  #studyPanel .wm-study-toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  #studyPanel .wm-study-progress-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  #studyPanel .wm-study-progress-row .wm-auto-speak {
    white-space: normal;
  }

  #studyPanel .wm-flashcard {
    height: clamp(350px, calc(100vh - 285px), 520px);
    min-height: 350px;
  }
}

.wm-pk-async-details{margin-top:16px;padding-top:14px;border-top:1px solid var(--wm-line)}.wm-pk-async-details summary{cursor:pointer;color:#315b4e;font-size:13px;font-weight:900;list-style:none}.wm-pk-async-details summary::-webkit-details-marker{display:none}.wm-pk-async-details summary::before{content:"+";display:inline-block;width:18px;color:var(--wm-green);font-weight:900}.wm-pk-async-details[open] summary::before{content:"−"}.wm-pk-async-details[open] summary{margin-bottom:14px}
