:root {
  color-scheme: dark;
  --bg: #101426;
  --ink: #f7fbff;
  --muted: #9aa8c7;
  --surface: rgba(20, 27, 50, 0.82);
  --surface-strong: rgba(29, 38, 70, 0.92);
  --line: rgba(137, 225, 255, 0.18);
  --hawthorn: #ff6b8f;
  --hawthorn-deep: #ff8fa8;
  --hawthorn-soft: rgba(255, 107, 143, 0.18);
  --hawthorn-pale: rgba(255, 107, 143, 0.12);
  --lavender: rgba(141, 119, 255, 0.22);
  --purple: #8d77ff;
  --purple-deep: #c8c0ff;
  --yellow: #ffd166;
  --yellow-pale: rgba(255, 209, 102, 0.14);
  --mint: #56f2c2;
  --cyan: #55d6ff;
  --win-green: #56f2c2;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 14%, rgba(85, 214, 255, 0.24), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(255, 107, 143, 0.22), transparent 32%),
    radial-gradient(circle at 58% 92%, rgba(255, 209, 102, 0.16), transparent 34%),
    linear-gradient(135deg, #101426, #171b33 52%, #111827),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(85, 214, 255, 0.32);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.workspace {
  width: min(1180px, 100%);
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid rgba(137, 225, 255, 0.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(1.22);
}

.workspace::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--cyan), var(--mint), var(--yellow), var(--hawthorn), var(--purple), var(--cyan));
  background-size: 220% 100%;
  animation: colorRun 5s linear infinite;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1.22fr);
  align-items: stretch;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(85, 214, 255, 0.11), rgba(255, 107, 143, 0.1), rgba(255, 209, 102, 0.08));
}

.user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(137, 225, 255, 0.18);
  border-radius: 24px;
  background: rgba(8, 12, 26, 0.5);
  color: var(--ink);
  padding: 16px;
  text-align: left;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.user-card:hover {
  transform: translateY(-2px);
  border-color: rgba(85, 214, 255, 0.44);
  box-shadow: 0 22px 54px rgba(85, 214, 255, 0.14);
}

.hero-user-card {
  min-width: 0;
  height: 100%;
}

.avatar {
  display: grid;
  place-items: center;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.72), transparent 20%),
    linear-gradient(135deg, var(--cyan), var(--mint), var(--yellow), var(--hawthorn));
  color: #101426;
  font-weight: 950;
  box-shadow: 0 14px 32px rgba(85, 214, 255, 0.22);
}

.avatar {
  width: 58px;
  height: 58px;
  font-size: 30px;
}

.user-copy {
  display: grid;
  gap: 5px;
}

.user-copy strong {
  font-size: 22px;
  line-height: 1;
}

.user-copy small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.92;
  background: linear-gradient(100deg, #ffffff, var(--cyan), var(--yellow), var(--hawthorn));
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 34px;
  line-height: 1;
}

.subtitle {
  max-width: 500px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 680;
  line-height: 1.5;
}

.top-dashboard {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border: 1px solid rgba(137, 225, 255, 0.14);
  border-radius: 24px;
  background: rgba(8, 12, 26, 0.42);
  padding: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.target-control {
  width: 100%;
  max-width: 180px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.topbar-session-inline {
  width: fit-content;
  border: 1px solid rgba(85, 214, 255, 0.24);
  border-radius: 999px;
  background: rgba(85, 214, 255, 0.1);
  color: var(--cyan);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.daily-goal {
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: 18px;
  background: rgba(255, 209, 102, 0.07);
  padding: 12px;
}

.daily-goal-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.daily-goal-text strong {
  color: var(--yellow);
  font-size: 15px;
}

.daily-goal-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.daily-goal-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5cff87, #21f58a);
  box-shadow: 0 0 18px rgba(60, 255, 136, 0.42);
  transition: width 360ms ease;
}

label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.target-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.target-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.target-grade {
  width: fit-content;
  border: 1px solid rgba(86, 242, 194, 0.24);
  border-radius: 999px;
  background: rgba(86, 242, 194, 0.1);
  color: var(--mint);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.target-grade.unknown {
  border-color: rgba(255, 107, 143, 0.24);
  background: rgba(255, 107, 143, 0.12);
  color: var(--hawthorn-deep);
}

.target-review-badge {
  width: fit-content;
  border: 1px solid rgba(255, 107, 143, 0.28);
  border-radius: 999px;
  background: rgba(255, 107, 143, 0.14);
  color: var(--hawthorn-deep);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.target-row,
.input-row {
  display: flex;
  gap: 10px;
}

.target-row {
  align-items: stretch;
}

.target-input-wrap {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(8, 12, 26, 0.58);
  padding: 8px 10px 8px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.target-translation {
  display: none;
}

#addToVocabButton {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
  padding: 0 !important;
  line-height: 1 !important;
}
#addToVocabButton.added {
  color: #62ff7f;
  border-color: rgba(98, 255, 127, 0.5) !important;
}

.target-translation.unknown {
  display: none;
}

.target-complaint {
  justify-self: start;
  width: fit-content;
  border: 1px solid rgba(255, 107, 143, 0.32);
  border-radius: 999px;
  background: rgba(255, 107, 143, 0.12);
  color: #ff9ab2;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(255, 107, 143, 0.12);
}

.target-complaint:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 107, 143, 0.52);
}

input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 12, 26, 0.58);
  color: var(--ink);
  outline: none;
  padding: 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.target-input-wrap input {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 6px 0;
  box-shadow: none;
}

.target-input-wrap:focus-within {
  border-color: rgba(85, 214, 255, 0.68);
  box-shadow: 0 0 0 5px rgba(85, 214, 255, 0.12), 0 0 24px rgba(85, 214, 255, 0.16);
}

input:focus {
  border-color: rgba(85, 214, 255, 0.68);
  box-shadow: 0 0 0 5px rgba(85, 214, 255, 0.12), 0 0 24px rgba(85, 214, 255, 0.16);
}

.target-row button {
  width: 50px;
  min-width: 50px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  font-size: 20px;
  box-shadow: 0 12px 26px rgba(85, 214, 255, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.target-row button:hover,
.input-row button:hover,
.pick-box:hover {
  transform: translateY(-2px);
}

.play-area {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  align-items: stretch;
}

.prompt-panel,
.results-panel {
  padding: 26px;
}

.prompt-panel,
.results-panel {
  border-radius: 26px;
  background: rgba(16, 22, 42, 0.62);
  box-shadow: inset 0 0 0 1px rgba(137, 225, 255, 0.14), 0 18px 48px rgba(0, 0, 0, 0.18);
}

.prompt-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.results-panel {
  display: flex;
  flex-direction: column;
}

.status-card {
  display: grid;
  gap: 8px;
  border-radius: 24px;
  padding: 20px;
  border: 1px solid rgba(85, 214, 255, 0.18);
  background: linear-gradient(135deg, rgba(85, 214, 255, 0.14), rgba(141, 119, 255, 0.16));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16), 0 0 30px rgba(85, 214, 255, 0.08);
  min-height: 108px;
  align-content: center;
  position: relative;
  overflow: hidden;
}

.status-card::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 56px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), var(--hawthorn));
  opacity: 0.78;
}

.status-label {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.status-card strong {
  line-height: 1.4;
}

.engine-badge {
  width: fit-content;
  border: 1px solid rgba(86, 242, 194, 0.2);
  border-radius: 999px;
  background: rgba(86, 242, 194, 0.1);
  color: var(--mint);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.clue-form {
  display: grid;
  gap: 9px;
}

.input-card,
.vocab-stack {
  border: 1px solid rgba(137, 225, 255, 0.14);
  border-radius: 24px;
  background: rgba(21, 29, 54, 0.66);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  padding: 18px;
}

.vocab-stack {
  width: 100%;
  color: inherit;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.vocab-stack:hover {
  transform: translateY(-2px);
  border-color: rgba(85, 214, 255, 0.38);
  background: rgba(29, 40, 76, 0.78);
  box-shadow: 0 18px 42px rgba(85, 214, 255, 0.12);
}

.input-card {
  display: grid;
  gap: 14px;
}

.input-row button {
  border-radius: 18px;
  padding: 0 18px;
  min-height: 50px;
  font-weight: 900;
}

.input-row button {
  background: linear-gradient(135deg, var(--hawthorn), var(--purple));
  color: #fff;
  box-shadow: 0 14px 28px rgba(255, 107, 143, 0.22);
  min-width: 76px;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.assist-row {
  display: flex;
}

.assist-button {
  min-height: 42px;
  border: 1px solid rgba(137, 225, 255, 0.18);
  border-radius: 16px;
  color: #f8fbff;
  font-weight: 900;
  background: rgba(9, 13, 30, 0.52);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.assist-button.help {
  border-color: rgba(255, 209, 102, 0.38);
  color: var(--yellow);
}

.assist-button:hover {
  transform: translateY(-1px);
  border-color: rgba(137, 225, 255, 0.38);
  background: rgba(24, 35, 66, 0.72);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.section-title small {
  min-width: 28px;
  border-radius: 999px;
  background: rgba(85, 214, 255, 0.18);
  color: var(--cyan);
  text-align: center;
  padding: 4px 8px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 42px;
  margin-top: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.14), rgba(85, 214, 255, 0.12));
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  padding: 8px 8px 8px 12px;
}

.chip span {
  display: grid;
  gap: 2px;
}

.chip em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.chip.new-word {
  background: linear-gradient(135deg, rgba(255, 107, 143, 0.2), rgba(141, 119, 255, 0.18));
  color: var(--hawthorn-deep);
  box-shadow: 0 10px 20px rgba(255, 107, 143, 0.12);
}

.chip-remove {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 107, 143, 0.18);
  color: var(--hawthorn-deep);
  line-height: 1;
}

.empty {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.translation-list,
.vocab-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  min-height: 42px;
}

.translation-item,
.vocab-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 18px;
  background: rgba(8, 12, 26, 0.34);
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-size: 14px;
}

.translation-item strong {
  color: var(--purple);
}

.translation-item.new-word-row strong,
.vocab-item strong {
  color: var(--yellow);
}

.vocab-item strong {
  font-size: 15px;
}

.vocab-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.results-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.round-counter {
  border: 1px solid rgba(85, 214, 255, 0.22);
  border-radius: 999px;
  background: rgba(85, 214, 255, 0.1);
  padding: 10px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.results-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-strong);
  padding: 13px 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.result-card.selected {
  border-color: rgba(86, 242, 194, 0.78);
  box-shadow: 0 16px 34px rgba(86, 242, 194, 0.16);
}

.rank {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(85, 214, 255, 0.24), rgba(141, 119, 255, 0.28));
  color: var(--ink);
  font-weight: 900;
}

.word-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.word-name strong {
  overflow-wrap: anywhere;
  font-size: 20px;
}

.word-name span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.grade-badge {
  flex: 0 0 auto;
  border: 1px solid rgba(86, 242, 194, 0.24);
  border-radius: 999px;
  background: rgba(86, 242, 194, 0.1);
  color: var(--mint);
  padding: 3px 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.word-tags {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score {
  display: grid;
  gap: 2px;
  justify-items: end;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.score span {
  color: var(--yellow);
  font-size: 18px;
}

.score small {
  color: var(--muted);
  font-size: 11px;
}

.meter {
  width: 82px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--hawthorn), var(--purple));
}

.result-card.hit {
  border-color: rgba(255, 209, 102, 0.42);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.14), rgba(85, 214, 255, 0.12), rgba(255, 107, 143, 0.12));
}

.result-card.hit .rank {
  background: var(--yellow);
  color: #111827;
}

.pick-box {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(137, 225, 255, 0.26);
  border-radius: 10px;
  background: rgba(8, 12, 26, 0.46);
}

.pick-box::after {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  opacity: 0;
  transform: rotate(-45deg) translate(1px, -1px) scale(0.7);
}

.pick-box.selected {
  border-color: var(--win-green);
  background: var(--win-green);
}

.pick-box.selected::after {
  opacity: 1;
  transform: rotate(-45deg) translate(1px, -1px) scale(1);
}

.favorite-box {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 178, 73, 0.35);
  border-radius: 9px;
  background: rgba(255, 178, 73, 0.08);
  color: rgba(255, 210, 92, 0.76);
  font-size: 18px;
  line-height: 1;
}

.favorite-box.saved {
  border-color: rgba(255, 210, 92, 0.68);
  background: rgba(255, 178, 73, 0.18);
  color: #ffd85a;
}

.favorite-box.placeholder {
  pointer-events: none;
  opacity: 0.34;
}

.poster-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  background: rgba(4, 8, 22, 0.64);
  backdrop-filter: blur(18px) saturate(1.1);
}

.poster-overlay.show {
  display: grid;
}

.grade-overlay,
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: none;
  place-items: center;
  overflow: auto;
  padding: 24px;
  background: rgba(4, 8, 22, 0.72);
  backdrop-filter: blur(18px) saturate(1.1);
}

.grade-overlay.show,
.confirm-overlay.show {
  display: grid;
}

.grade-panel,
.confirm-panel {
  position: relative;
  width: min(760px, 100%);
  border: 1px solid rgba(65, 76, 112, 0.62);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 0%, rgba(217, 158, 71, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(13, 18, 34, 0.98), rgba(7, 11, 24, 0.98));
  color: var(--ink);
  padding: 24px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.46), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.confirm-panel {
  width: min(430px, 100%);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 22px;
}

.modal-head {
  padding-right: 44px;
}

.modal-head h2 {
  color: #fff8ee;
  font-size: 30px;
}

.modal-head p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.grade-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.grade-tabs button,
.grade-word-card,
.confirm-actions button {
  border: 1px solid rgba(120, 132, 166, 0.28);
  border-radius: 14px;
  background: rgba(11, 16, 31, 0.78);
  color: #d7ddeb;
  font-weight: 900;
}

.grade-tabs button {
  min-height: 36px;
  padding: 0 12px;
}

.grade-tabs button.active {
  border-color: rgba(213, 168, 81, 0.45);
  background: rgba(197, 143, 55, 0.16);
  color: #e6c789;
}

.grade-word-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 10px;
  max-height: min(430px, 48vh);
  overflow: auto;
  margin-top: 16px;
  padding-right: 4px;
}

.grade-word-card {
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  text-align: left;
}

.grade-word-card:hover {
  border-color: rgba(213, 168, 81, 0.48);
  background: rgba(197, 143, 55, 0.12);
}

.grade-word-card strong {
  color: #fff8ee;
  font-size: 17px;
}

.grade-word-card span {
  color: var(--muted);
  font-size: 13px;
}

.grade-dev-note {
  margin: 16px 0 0;
  border-top: 1px solid rgba(120, 132, 166, 0.18);
  padding-top: 14px;
  color: #d7a66f;
  font-weight: 900;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.confirm-actions button {
  min-height: 44px;
}

.confirm-actions button.primary {
  border-color: rgba(213, 168, 81, 0.42);
  background: rgba(197, 143, 55, 0.18);
  color: #e6c789;
}

.confirm-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.victory-poster {
  position: relative;
  width: min(500px, 100%);
  min-height: 590px;
  display: grid;
  align-content: space-between;
  gap: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 30px;
  padding: 30px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 24%),
    linear-gradient(145deg, #55d6ff 0%, #56f2c2 22%, #ffd166 42%, #ff6b8f 68%, #8d77ff 100%);
  color: #fffaf4;
  box-shadow: 0 34px 100px rgba(85, 214, 255, 0.22);
  animation: posterPop 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.victory-poster::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  pointer-events: none;
}

.poster-close {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #4f3d86;
  font-size: 24px;
  line-height: 1;
}

.poster-kicker {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #111827;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.victory-poster h2 {
  position: relative;
  z-index: 1;
  max-width: 340px;
  margin-top: 28px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 850;
  text-shadow: 0 3px 14px rgba(4, 8, 22, 0.28);
}

.poster-scoreline {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: -8px 0 22px;
  border-radius: 999px;
  background: rgba(12, 18, 38, 0.56);
  color: #fff;
  padding: 12px 18px;
  font-size: 20px;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(4, 8, 22, 0.26);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
}

.poster-word-wrap {
  position: relative;
  z-index: 1;
  margin: 36px 0 24px;
}

.poster-word {
  color: #fff;
  font-size: clamp(56px, 14vw, 94px);
  font-weight: 950;
  line-height: 0.9;
  overflow-wrap: anywhere;
  text-shadow: 0 7px 0 rgba(4, 8, 22, 0.08), 0 18px 38px rgba(4, 8, 22, 0.34);
}

.poster-translation {
  width: fit-content;
  margin-top: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: #4f3d86;
  padding: 9px 12px;
  font-size: 22px;
  font-weight: 900;
}

.poster-meta {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 13px;
  border-radius: 22px;
  background: rgba(12, 18, 38, 0.72);
  color: var(--yellow);
  padding: 22px;
  box-shadow: 0 20px 42px rgba(4, 8, 22, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.poster-meta span,
.poster-footer {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.poster-meta strong {
  color: #ffffff;
  font-size: 24px;
  line-height: 1.45;
  text-shadow: 0 2px 12px rgba(4, 8, 22, 0.35);
}

.poster-share {
  position: relative;
  z-index: 1;
  justify-self: stretch;
  min-height: 50px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.7)),
    rgba(255, 255, 255, 0.82);
  color: #211c3d;
  font-size: 17px;
  font-weight: 950;
  box-shadow: 0 18px 34px rgba(4, 8, 22, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.poster-share:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.82)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 42px rgba(4, 8, 22, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.poster-share.shared {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(86, 242, 194, 0.92), rgba(85, 214, 255, 0.86));
}

.poster-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(4, 8, 22, 0.3);
}

.firework-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.firework-burst {
  position: absolute;
  left: var(--burst-x);
  top: var(--burst-y);
  width: 10px;
  height: 10px;
  transform: scale(var(--burst-scale));
  animation: fireworkPulse 2.2s ease-out var(--burst-delay) infinite;
}

.firework-burst::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 28px rgba(255, 209, 102, 0.72), 0 0 46px rgba(85, 214, 255, 0.34);
}

.firework-ring {
  position: absolute;
  left: -34px;
  top: -34px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 28px rgba(85, 214, 255, 0.45);
  animation: fireworkRing 2.2s ease-out var(--burst-delay) infinite;
}

.firework-spark {
  position: absolute;
  left: 4px;
  top: 4px;
  width: var(--spark-width);
  height: 4px;
  border-radius: 999px;
  background: var(--spark-color);
  box-shadow: 0 0 12px var(--spark-color);
  transform-origin: left center;
  animation: fireworkSpark 2.2s ease-out var(--burst-delay) infinite;
}

@keyframes fireworkPulse {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  12%,
  70% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

@keyframes fireworkRing {
  0% {
    transform: scale(0.1);
    opacity: 0;
  }
  12% {
    opacity: 0.8;
  }
  100% {
    transform: scale(2.15);
    opacity: 0;
  }
}

@keyframes fireworkSpark {
  0% {
    transform: rotate(var(--spark-angle)) translateX(0) scaleX(0.15);
    opacity: 0;
  }
  16% {
    opacity: 1;
  }
  58% {
    opacity: 1;
  }
  100% {
    transform: rotate(var(--spark-angle)) translateX(var(--spark-distance)) scaleX(1);
    opacity: 0;
  }
}

@keyframes posterPop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .app-shell {
    padding: 14px;
    align-items: stretch;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .top-dashboard {
    grid-template-columns: 1fr;
  }

  .results-header {
    align-items: stretch;
    flex-direction: column;
  }

  .play-area {
    grid-template-columns: 1fr;
  }

  .hero-user-card {
    min-width: 0;
  }
}

@media (max-width: 540px) {
  .topbar,
  .prompt-panel,
  .results-panel {
    padding: 20px;
  }

  .workspace {
    border-radius: 24px;
  }

  .user-card {
    align-items: flex-start;
  }

  .avatar {
    width: 52px;
    height: 52px;
  }

  .target-row {
    display: grid;
  }

  .input-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .result-card {
    grid-template-columns: 36px minmax(0, 1fr) 34px;
  }

  .score {
    grid-column: 2;
    justify-items: start;
  }

  .pick-box {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .victory-poster {
    min-height: 540px;
    padding: 28px;
  }

}

/* Game dashboard skin */
:root {
  --bg: #050917;
  --ink: #fff8ee;
  --muted: #8f98b3;
  --surface: rgba(9, 14, 29, 0.88);
  --surface-strong: rgba(13, 18, 34, 0.94);
  --line: rgba(91, 105, 145, 0.36);
  --orange: #ff8a00;
  --orange-hot: #ff3d1d;
  --orange-soft: rgba(255, 111, 0, 0.18);
  --yellow: #ffb000;
  --cyan: #13d8d4;
  --mint: #43f0b4;
  --purple: #7627ff;
  --pink: #ff2b9c;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.44);
}

body {
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 97, 24, 0.13), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(70, 103, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #070b18 0%, #050917 58%, #030610 100%);
}

.app-shell {
  align-items: stretch;
  padding: 22px;
}

.workspace {
  width: min(1460px, 100%);
  min-height: calc(100vh - 44px);
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 30px;
  border: 1px solid rgba(70, 85, 128, 0.62);
  background:
    radial-gradient(circle at 18% 6%, rgba(255, 75, 25, 0.08), transparent 25%),
    linear-gradient(180deg, rgba(12, 18, 36, 0.94), rgba(6, 10, 22, 0.96));
  box-shadow: 0 0 0 1px rgba(119, 136, 190, 0.08) inset, 0 26px 80px rgba(0, 0, 0, 0.58);
  overflow: hidden;
}

.workspace::before {
  display: none;
}

.topbar {
  grid-template-columns: minmax(360px, 0.92fr) minmax(620px, 1.55fr);
  gap: 28px;
  padding: 28px 32px 20px;
  border-bottom: 0;
  background: transparent;
}

.user-card {
  min-height: 132px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.user-card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.avatar {
  width: 126px;
  height: 126px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 74% 78%, rgba(255, 222, 93, 0.92), transparent 26%),
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.22), transparent 22%),
    linear-gradient(145deg, #ff291e 0%, #ff6a00 58%, #ffd444 100%);
  color: #fff7ee;
  font-size: 78px;
  text-shadow: 0 4px 14px rgba(82, 21, 0, 0.38);
  box-shadow: 0 18px 46px rgba(255, 85, 15, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.user-copy {
  gap: 14px;
}

.user-copy strong {
  color: #fff8ee;
  font-size: clamp(42px, 4vw, 56px);
  line-height: 0.96;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
}

.user-copy small {
  color: var(--orange);
  font-size: 22px;
  font-weight: 950;
}

.top-dashboard {
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.96fr) auto;
  align-items: stretch;
  gap: 24px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.daily-goal,
.target-control {
  min-height: 132px;
  border: 1px solid rgba(65, 76, 112, 0.48);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(16, 22, 42, 0.86), rgba(7, 11, 24, 0.92)),
    rgba(9, 14, 29, 0.92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.daily-goal {
  position: relative;
  grid-template-columns: 72px 1fr;
  align-content: center;
  column-gap: 22px;
  padding: 24px 28px;
}

.daily-goal::before {
  content: "◎";
  grid-row: 1 / span 2;
  align-self: center;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  color: var(--orange);
  font-size: 56px;
  font-weight: 950;
  text-shadow: 0 0 18px rgba(255, 138, 0, 0.45);
}

.daily-goal-text {
  display: grid;
  justify-content: start;
  gap: 5px;
  color: #b6bed3;
  font-size: 20px;
}

.daily-goal-text strong {
  color: #fff8ee;
  font-size: 30px;
}

.daily-goal-bar {
  height: 13px;
  align-self: end;
  background: rgba(80, 84, 112, 0.5);
}

.daily-goal-bar span {
  background: linear-gradient(90deg, #ffb000, #ff4a1f);
  box-shadow: 0 0 18px rgba(255, 99, 18, 0.52);
}

.target-control {
  padding: 24px 28px;
}

.target-label-row label {
  color: #b6bed3;
  font-size: 20px;
  font-weight: 900;
}

.target-meta {
  position: fixed;
  top: 36px;
  right: 52px;
  z-index: 2;
}

.target-grade {
  border-color: rgba(255, 111, 0, 0.42);
  background: rgba(255, 90, 17, 0.12);
  color: #fff2dc;
  padding: 11px 20px;
  font-size: 19px;
  box-shadow: inset 0 0 0 1px rgba(255, 181, 80, 0.08);
}

.target-grade::before {
  content: "🎓";
  margin-right: 8px;
}

.target-review-badge {
  border-color: rgba(255, 138, 0, 0.42);
  background: rgba(255, 138, 0, 0.16);
  color: #ffb564;
  padding: 10px 16px;
  font-size: 15px;
}

.target-row {
  margin-top: 10px;
}

.target-input-wrap {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.target-input-wrap input {
  color: #fff8ee;
  font-size: 34px;
  font-weight: 950;
}

.target-translation {
  border-color: rgba(255, 111, 0, 0.3);
  background: rgba(255, 91, 20, 0.19);
  color: #ffcc70;
  padding: 10px 22px;
  font-size: 19px;
}

.target-row button {
  position: fixed;
  top: 96px;
  right: 58px;
  z-index: 2;
  width: 84px;
  height: 74px;
  border-radius: 24px;
  background: linear-gradient(145deg, #ff9222, #ff361d 68%, #aa2330);
  color: #fff8ee;
  font-size: 38px;
  box-shadow: 0 18px 38px rgba(255, 70, 20, 0.38), inset 0 0 0 1px rgba(255, 226, 184, 0.2);
}

.play-area {
  grid-template-columns: minmax(390px, 0.62fr) minmax(620px, 1fr);
  gap: 26px;
  padding: 0 32px 28px;
}

.prompt-panel,
.results-panel {
  border-radius: 28px;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.prompt-panel {
  gap: 18px;
}

.status-card,
.input-card,
.vocab-stack,
.results-panel {
  border: 1px solid rgba(65, 76, 112, 0.52);
  background:
    linear-gradient(180deg, rgba(13, 18, 34, 0.82), rgba(7, 11, 24, 0.92)),
    rgba(9, 14, 29, 0.92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.status-card {
  min-height: 312px;
  align-content: start;
  gap: 22px;
  padding: 34px 30px;
  background:
    linear-gradient(90deg, rgba(7, 11, 24, 0.92) 0%, rgba(7, 11, 24, 0.78) 46%, rgba(7, 11, 24, 0.08) 100%),
    url("./assets/status-sky.png") right bottom / cover no-repeat,
    #080d1c;
  overflow: hidden;
}

.status-card::before {
  content: "⌁";
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(145deg, #ff3e20, #ff9a00);
  color: #fff8ee;
  font-size: 36px;
  box-shadow: 0 12px 24px rgba(255, 66, 22, 0.32);
}

.status-card::after {
  display: none;
}

.status-label {
  position: relative;
  color: #fff8ee;
  font-size: 21px;
}

.status-label::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--orange);
}

.status-card strong {
  width: min(310px, 70%);
  color: #fff8ee;
  font-size: 23px;
  line-height: 1.65;
}

.engine-badge,
.assist-button.help {
  border-color: rgba(255, 92, 16, 0.3);
  background: rgba(255, 87, 15, 0.12);
  color: var(--orange);
}

.engine-badge {
  padding: 11px 18px;
  font-size: 16px;
}

.engine-badge::before {
  content: "◉";
  margin-right: 8px;
}

.input-card,
.vocab-stack {
  border-radius: 28px;
  padding: 26px;
}

.section-title {
  color: #fff8ee;
  font-size: 22px;
}

.section-title span::before {
  margin-right: 10px;
  color: var(--orange);
}

.input-card .section-title span::before {
  content: "💡";
}

.vocab-stack .section-title span::before {
  content: "●";
}

.section-title small {
  min-width: 52px;
  color: var(--orange);
  background: rgba(255, 91, 20, 0.09);
  padding: 7px 12px;
  font-size: 17px;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 26px;
  align-items: center;
}

input {
  min-height: 58px;
  border-color: rgba(79, 91, 128, 0.55);
  border-radius: 20px;
  background: rgba(6, 10, 22, 0.7);
  color: #fff8ee;
  font-size: 22px;
}

.input-row button {
  min-height: 58px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffb000 0%, #ff681b 42%, #ff2f1b 100%);
  font-size: 23px;
  box-shadow: 0 18px 32px rgba(255, 75, 20, 0.28);
}

.assist-row {
  margin-top: 6px;
}

.assist-button {
  min-height: 42px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 20px;
}

.chips,
.vocab-list {
  min-height: 40px;
  margin-top: 8px;
  color: #8f98b3;
  font-size: 18px;
}

.chip {
  border-radius: 18px;
  background: rgba(75, 85, 110, 0.42);
  padding: 9px 8px 9px 16px;
  font-size: 18px;
}

.vocab-stack {
  position: relative;
  min-height: 136px;
  padding-right: 58px;
}

.vocab-stack::after {
  content: "›";
  position: absolute;
  right: 24px;
  bottom: 28px;
  color: rgba(178, 186, 209, 0.72);
  font-size: 46px;
  line-height: 1;
}

.vocab-stack:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 111, 0, 0.34);
  background: rgba(13, 18, 34, 0.96);
  box-shadow: 0 18px 42px rgba(255, 81, 16, 0.08);
}

.results-panel {
  min-height: 100%;
  padding: 28px;
}

.results-header {
  align-items: start;
  margin-bottom: 24px;
}

.eyebrow {
  color: var(--orange);
  font-size: 18px;
}

.results-header h2 {
  color: #fff8ee;
  font-size: 40px;
}

.round-counter {
  border: 0;
  background: transparent;
  color: #8f98b3;
  font-size: 22px;
  padding: 0;
}

.results-list {
  gap: 10px;
}

.result-card {
  grid-template-columns: 66px minmax(0, 1fr) 112px 36px;
  gap: 20px;
  min-height: 88px;
  border-color: rgba(65, 76, 112, 0.5);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18, 24, 43, 0.88), rgba(10, 15, 29, 0.94));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  padding: 14px 22px;
}

.rank {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(145deg, #ff3d1d, #ff8a00);
  color: #fff8ee;
  font-size: 30px;
  box-shadow: 0 12px 26px rgba(255, 77, 20, 0.22);
}

.result-card:nth-child(2) .rank {
  background: linear-gradient(145deg, #ffcc00, #ff9400);
}

.result-card:nth-child(3) .rank {
  background: linear-gradient(145deg, #13d8d4, #119baa);
}

.result-card:nth-child(4) .rank {
  background: linear-gradient(145deg, #8d35ff, #4e18db);
}

.result-card:nth-child(5) .rank {
  background: linear-gradient(145deg, #ff3eb3, #c30f72);
}

.result-card:nth-child(6) .rank {
  background: linear-gradient(145deg, #2d7cff, #074ee6);
}

.word-name strong {
  color: #fff8ee;
  font-size: 24px;
}

.word-name span {
  color: #949db8;
  font-size: 17px;
}

.grade-badge {
  border-color: rgba(255, 111, 0, 0.28);
  background: rgba(255, 91, 20, 0.12);
  color: #ffb45f;
  padding: 5px 10px;
  font-size: 13px;
}

.word-tags {
  color: #8f98b3;
  font-size: 16px;
}

.score span {
  color: var(--orange);
  font-size: 25px;
}

.meter {
  display: none;
}

.pick-box {
  width: 34px;
  height: 34px;
  border-color: rgba(112, 124, 161, 0.44);
  border-radius: 9px;
  background: rgba(10, 15, 29, 0.74);
}

.result-card.hit {
  border-color: rgba(255, 111, 0, 0.5);
  background: linear-gradient(180deg, rgba(45, 27, 21, 0.92), rgba(12, 16, 29, 0.96));
}

.victory-poster {
  border-color: rgba(65, 76, 112, 0.62);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 91, 20, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(13, 18, 34, 0.96), rgba(7, 11, 24, 0.98));
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .top-dashboard {
    grid-template-columns: 1fr 1fr auto;
  }

  .target-meta,
  .target-row button {
    position: static;
  }
}

@media (max-width: 900px) {
  .app-shell {
    padding: 12px;
  }

  .workspace {
    min-height: auto;
  }

  .top-dashboard,
  .play-area {
    grid-template-columns: 1fr;
  }

  .target-meta,
  .target-row button {
    position: static;
  }

  .user-card {
    min-height: auto;
  }

  .avatar {
    width: 82px;
    height: 82px;
    font-size: 48px;
  }

  .user-copy strong {
    font-size: 34px;
  }

  .user-copy small {
    font-size: 16px;
  }

  .status-card {
    min-height: 240px;
  }

  .input-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 540px) {
  .topbar,
  .play-area {
    padding-left: 16px;
    padding-right: 16px;
  }

  .result-card {
    grid-template-columns: 54px minmax(0, 1fr) 34px;
  }

  .score {
    grid-column: 2;
  }

  .target-input-wrap {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) {
  .app-shell {
    padding: 16px;
  }

  .workspace {
    min-height: calc(100vh - 32px);
    border-radius: 24px;
  }

  .topbar {
    grid-template-columns: minmax(290px, 0.72fr) minmax(520px, 1.28fr);
    gap: 18px;
    padding: 18px 22px 14px;
  }

  .top-dashboard {
    grid-template-columns: minmax(210px, 0.88fr) minmax(250px, 1fr) 58px;
    gap: 12px;
  }

  .avatar {
    width: 78px;
    height: 78px;
    border-radius: 22px;
    font-size: 48px;
  }

  .user-card {
    min-height: 88px;
    gap: 16px;
  }

  .user-copy strong {
    font-size: clamp(28px, 3vw, 38px);
  }

  .user-copy small {
    font-size: 15px;
  }

  .daily-goal,
  .target-control {
    min-height: 88px;
    padding: 14px 16px;
    border-radius: 20px;
  }

  .daily-goal {
    grid-template-columns: 42px 1fr;
    column-gap: 13px;
  }

  .daily-goal::before {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    font-size: 34px;
  }

  .daily-goal-text {
    font-size: 14px;
  }

  .daily-goal-text strong {
    font-size: 22px;
  }

  .daily-goal-bar {
    height: 9px;
  }

  .target-label-row label {
    font-size: 14px;
  }

  .target-input-wrap input {
    font-size: 26px;
  }

  .target-row button {
    position: static;
    width: 50px;
    min-width: 50px;
    height: auto;
    border-radius: 16px;
    font-size: 22px;
  }

  .target-meta {
    position: fixed;
    top: 24px;
    right: 30px;
  }

  .target-grade {
    padding: 7px 12px;
    font-size: 14px;
  }

  .target-translation {
    padding: 7px 13px;
    font-size: 15px;
  }

  .play-area {
    grid-template-columns: minmax(310px, 0.56fr) minmax(0, 1fr);
    gap: 18px;
    padding: 0 22px 18px;
  }

  .status-card {
    min-height: 198px;
    padding: 20px 22px;
    gap: 12px;
    border-radius: 22px;
  }

  .status-card::before {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 28px;
  }

  .status-label {
    font-size: 17px;
  }

  .status-card strong {
    width: min(270px, 74%);
    font-size: 16px;
    line-height: 1.5;
  }

  .engine-badge {
    padding: 8px 13px;
    font-size: 13px;
  }

  .input-card,
  .vocab-stack {
    border-radius: 22px;
    padding: 18px;
  }

  .section-title {
    font-size: 17px;
  }

  .section-title small {
    min-width: 38px;
    padding: 5px 9px;
    font-size: 13px;
  }

  .input-row {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 12px;
  }

  input {
    min-height: 42px;
    border-radius: 16px;
    padding: 10px 14px;
    font-size: 15px;
  }

  .input-row button {
    min-height: 42px;
    border-radius: 16px;
    font-size: 16px;
  }

  .assist-button {
    min-height: 30px;
    padding: 0 14px;
    font-size: 14px;
  }

  .chips,
  .vocab-list {
    min-height: 34px;
    font-size: 14px;
  }

  .chip {
    font-size: 14px;
  }

  .vocab-stack {
    min-height: 96px;
  }

  .vocab-stack::after {
    right: 18px;
    bottom: 20px;
    font-size: 34px;
  }

  .results-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .results-header {
    margin-bottom: 16px;
  }

  .eyebrow {
    font-size: 14px;
  }

  .results-header h2 {
    font-size: 32px;
  }

  .round-counter {
    font-size: 17px;
  }

  .results-list {
    gap: 8px;
  }

  .result-card {
    grid-template-columns: 50px minmax(0, 1fr) 78px 30px 30px;
    gap: 14px;
    min-height: 66px;
    border-radius: 18px;
    padding: 9px 14px;
  }

  .rank {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    font-size: 22px;
  }

  .word-name strong {
    font-size: 20px;
  }

  .word-name span {
    font-size: 13px;
  }

  .grade-badge {
    padding: 3px 7px;
    font-size: 11px;
  }

  .word-tags {
    font-size: 12px;
  }

  .score span {
    font-size: 20px;
  }

  .pick-box {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .favorite-box {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 178, 73, 0.35);
    border-radius: 8px;
    background: rgba(255, 178, 73, 0.08);
    color: rgba(255, 210, 92, 0.76);
    font-size: 17px;
    line-height: 1;
  }

  .favorite-box.saved {
    border-color: rgba(255, 210, 92, 0.68);
    background: rgba(255, 178, 73, 0.18);
    color: #ffd85a;
  }
}

/* Night comfort refinements */
@media (min-width: 901px) {
  .topbar,
  .play-area {
    grid-template-columns: minmax(310px, 0.56fr) minmax(0, 1fr);
  }

  .top-dashboard {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  }

  .target-control {
    position: relative;
    overflow: hidden;
    padding: 14px 16px;
  }

  .target-meta {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 1;
  }

  .target-grade,
  .target-review-badge {
    border-color: rgba(223, 151, 92, 0.2);
    background: rgba(202, 105, 52, 0.08);
    color: #d7b38b;
    box-shadow: none;
  }

  .target-grade {
    padding: 5px 10px;
    font-size: 12px;
  }

  .target-review-badge {
    padding: 5px 10px;
    font-size: 12px;
  }

  .target-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: end;
    gap: 10px;
    margin-top: 16px;
  }

  .target-input-wrap {
    grid-template-columns: minmax(0, 1fr) auto;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .target-input-wrap input {
    font-size: 25px;
  }

  .target-translation {
    border-color: rgba(223, 151, 92, 0.18);
    background: rgba(202, 105, 52, 0.08);
    color: #d7b38b;
    padding: 6px 11px;
    font-size: 13px;
    box-shadow: none;
  }

  .target-row button {
    position: static;
    z-index: auto;
    width: 44px;
    min-width: 44px;
    height: 44px;
    border: 1px solid rgba(223, 151, 92, 0.18);
    border-radius: 14px;
    background: rgba(202, 105, 52, 0.12);
    color: #d7b38b;
    font-size: 20px;
    box-shadow: none;
  }

  .target-row button:hover,
  .input-row button:hover,
  .assist-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
  }

  .input-row button {
    border: 1px solid rgba(223, 151, 92, 0.2);
    background: rgba(204, 158, 72, 0.16);
    color: #e6c789;
    box-shadow: none;
  }

  .target-row button,
  .assist-button.help,
  .engine-badge,
  .section-title small {
    border-color: rgba(213, 168, 81, 0.22);
    background: rgba(204, 158, 72, 0.11);
    color: #e6c789;
  }

  .assist-button.help,
  .engine-badge,
  .section-title small {
    color: #d5b775;
  }
}

/* Color cleanup: yellow controls, orange text accents */
@media (min-width: 901px) {
  .target-grade,
  .target-review-badge,
  .target-translation,
  .section-title small {
    border-color: rgba(255, 136, 35, 0.24);
    background: rgba(255, 104, 24, 0.09);
    color: #ff8a2a;
    box-shadow: none;
  }

  .target-row button,
  .input-row button,
  .assist-button.help,
  .confirm-actions button.primary,
  .grade-tabs button.active {
    border-color: rgba(255, 214, 92, 0.34);
    background: rgba(255, 205, 71, 0.18);
    color: #ffd85a;
    box-shadow: none;
  }

  .target-row button:hover,
  .input-row button:hover,
  .assist-button.help:hover {
    border-color: rgba(255, 222, 104, 0.52);
    background: rgba(255, 211, 77, 0.24);
    filter: none;
  }

  .engine-badge {
    border-color: rgba(255, 136, 35, 0.22);
    background: rgba(255, 104, 24, 0.08);
    color: #ff8a2a;
  }

  .engine-badge em {
    margin-left: 6px;
    color: #43f0b4;
    font-style: normal;
    font-weight: 950;
  }

  .eyebrow,
  .user-copy small,
  .score span,
  .grade-dev-note {
    color: #ff8a2a;
  }
}

/* Saturated button pass */
.target-row button,
.input-row button,
.assist-button.help,
.confirm-actions button.primary,
.grade-tabs button.active,
.grade-word-card:hover {
  border-color: rgba(255, 161, 48, 0.68);
  background: linear-gradient(135deg, #ffb233, #ff7a18);
  color: #ffffff;
  text-shadow: none;
  box-shadow: 0 10px 22px rgba(255, 122, 24, 0.2);
}

.target-row button:hover,
.input-row button:hover,
.assist-button.help:hover,
.confirm-actions button.primary:hover,
.grade-tabs button.active:hover,
.grade-word-card:hover {
  border-color: rgba(255, 178, 73, 0.78);
  background: linear-gradient(135deg, #ffc04f, #ff8a22);
  color: #ffffff;
}

.target-grade,
.target-review-badge {
  border-color: rgba(67, 240, 180, 0.42);
  background: rgba(67, 240, 180, 0.12);
  color: #43f0b4;
}

@media (min-width: 901px) {
  .target-grade,
  .target-review-badge {
    border-color: rgba(67, 240, 180, 0.42);
    background: rgba(67, 240, 180, 0.12);
    color: #43f0b4;
  }
}

@media (min-width: 901px) {
  .target-label-row label {
    font-size: 18px;
  }

  .target-grade::before {
    content: none;
    margin: 0;
  }

  .target-translation {
    font-size: 16px;
    padding: 7px 13px;
  }

  .target-row {
    grid-template-columns: minmax(0, 1fr) 38px;
  }

  .target-row button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 18px;
  }

  .pick-box.selected {
    border-color: #43f0b4;
    background: #43f0b4;
    animation: checkPop 360ms cubic-bezier(0.2, 0.9, 0.2, 1);
  }

  .pick-box.selected::after {
    border-color: #06251c;
    animation: checkDraw 360ms cubic-bezier(0.2, 0.9, 0.2, 1);
  }
}

@keyframes checkPop {
  0% {
    transform: scale(0.78);
    box-shadow: 0 0 0 rgba(67, 240, 180, 0);
  }
  55% {
    transform: scale(1.12);
    box-shadow: 0 0 18px rgba(67, 240, 180, 0.38);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(67, 240, 180, 0);
  }
}

@keyframes checkDraw {
  0% {
    opacity: 0;
    transform: rotate(-45deg) translate(1px, -1px) scale(0.25);
  }
  100% {
    opacity: 1;
    transform: rotate(-45deg) translate(1px, -1px) scale(1);
  }
}

/* Victory poster polish */
.victory-poster {
  width: min(430px, calc(100vw - 32px));
  min-height: 0;
  gap: 14px;
  align-content: start;
  border-radius: 30px;
  border-color: rgba(255, 255, 255, 0.78);
  padding: 22px;
  background:
    radial-gradient(circle at 16% 16%, rgba(255, 196, 92, 0.42), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(87, 179, 255, 0.26), transparent 20%),
    radial-gradient(circle at 72% 78%, rgba(137, 97, 255, 0.46), transparent 30%),
    linear-gradient(145deg, #ff8a1f 0%, #ff5b46 34%, #9b4cff 74%, #5b6dff 100%);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.5), 0 0 52px rgba(155, 76, 255, 0.22);
}

.victory-poster::before {
  inset: 10px;
  border-color: rgba(255, 255, 255, 0.34);
  border-radius: 24px;
}

.victory-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%),
    radial-gradient(circle at 36% 58%, rgba(70, 28, 80, 0.26), transparent 28%);
}

.poster-close {
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.86);
  color: #503c8f;
  font-size: 21px;
}

.sound-toggle {
  position: fixed;
  z-index: 3;
  right: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(13, 18, 34, 0.24);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 900;
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.sound-toggle.muted {
  opacity: 0.56;
}

.sound-toggle:hover {
  background: rgba(13, 18, 34, 0.38);
  color: #fff;
}

.poster-kicker {
  padding: 7px 12px;
  font-size: 11px;
}

.victory-poster h2 {
  margin-top: 12px;
  font-size: 19px;
}

.poster-word-wrap {
  margin: 22px 0 18px;
}

.poster-word {
  font-size: clamp(48px, 11vw, 72px);
  text-shadow: 0 12px 0 rgba(48, 56, 40, 0.14), 0 18px 34px rgba(57, 42, 48, 0.22);
}

.poster-translation {
  margin-top: 22px;
  border-radius: 14px;
  padding: 7px 11px;
  font-size: 18px;
  color: #503c8f;
}

.poster-scoreline {
  margin: 6px 0 8px;
  padding: 9px 14px;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(80, 58, 52, 0.62);
}

.poster-meta {
  gap: 9px;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(54, 35, 65, 0.78);
}

.poster-meta span {
  color: #ffe477;
}

.poster-meta strong {
  font-size: 20px;
}

.poster-share {
  min-height: 44px;
  border-radius: 16px;
  font-size: 16px;
}

.poster-footer {
  margin-top: 2px;
}

/* Final progress color */
.daily-goal-bar span {
  background: linear-gradient(90deg, #62ff7f, #20f08a);
  box-shadow: 0 0 18px rgba(69, 255, 135, 0.46);
}

/* Profile editing and target alignment */
.avatar {
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

.avatar-upload {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid rgba(255, 161, 48, 0.68);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffb233, #ff7a18);
  color: #fff;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

@media (min-width: 901px) {
  .target-row {
    align-items: center;
  }

  .target-input-wrap {
    align-items: center;
  }

  .target-translation,
  .target-row button {
    align-self: center;
  }
}

@media (max-width: 540px) {
  

  

  

  .result-card {
    grid-template-columns: 44px minmax(0, 1fr) 58px 28px 28px;
    gap: 8px;
    padding: 10px;
  }

  .rank {
    width: 38px;
    height: 38px;
  }

  .score {
    grid-column: auto;
    justify-items: end;
  }

  .score span {
    font-size: 17px;
  }

  .favorite-box,
  .pick-box {
    width: 28px;
    height: 28px;
  }

  .pick-box {
    grid-column: auto;
    grid-row: auto;
  }
}

/* Profile fullscreen and victory path refinements */
.poster-meta span {
  font-size: 16px;
}

.poster-meta strong {
  font-size: 25px;
  line-height: 1.5;
}

.poster-meta .poster-target-word {
  color: #62ff7f;
  font-size: inherit;
  text-transform: none;
  text-shadow: 0 0 18px rgba(98, 255, 127, 0.38);
}

.poster-meta .poster-arrow {
  color: rgba(255, 255, 255, 0.92);
  text-transform: none;
}

.favorite-box {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 28px;
  line-height: 1;
  padding: 0;
  box-shadow: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease, color 160ms ease, filter 160ms ease;
}

.favorite-box:hover {
  transform: scale(1.08);
  color: rgba(255, 226, 116, 0.78);
  background: transparent;
}

.favorite-box.saved {
  border: 0;
  background: transparent;
  color: #ffd84d;
  filter: drop-shadow(0 0 10px rgba(255, 216, 77, 0.36));
}

.favorite-box.placeholder {
  opacity: 0.22;
}

/* Profile dashboard pass */

.streak-dots {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.streak-dots i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb233, #ff6a18);
  box-shadow: 0 0 14px rgba(255, 122, 24, 0.28);
}

.section-title button {
  min-height: 44px;
  border: 1px solid rgba(255, 138, 31, 0.34);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff8ee;
  padding: 0 18px;
  font-weight: 900;
}

.vocab-review-actions button.primary {
  background: linear-gradient(135deg, #ffb233, #ff6a18);
  color: #fff;
}

/* Stable profile layout recovery */

/* Copy reference profile layout */

.vocab-review-actions button.primary {
  background: linear-gradient(135deg, #ff8f22, #ff6817);
  color: #fff;
}

/* Deep statistic cards */

.stat-chart {
  width: 100%;
}

.stat-line {
  height: 58px;
  overflow: visible;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(98, 255, 127, 0.08), rgba(98, 255, 127, 0.015));
}

.stat-bars {
  height: 58px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 7px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 122, 24, 0.08), rgba(255, 122, 24, 0.015));
  padding: 8px;
}

.stat-bars.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stat-bars span {
  position: relative;
  min-height: 10px;
  border-radius: 999px 999px 5px 5px;
  background: linear-gradient(180deg, #ff9b2f, #ff6817);
  box-shadow: 0 0 16px rgba(255, 122, 24, 0.22);
}

.stat-bars span b {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  color: rgba(255, 248, 238, 0.56);
  font-size: 10px;
  line-height: 1;
}

.stat-pie {
  justify-self: start;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  --pie-progress: 0deg;
  background:
    radial-gradient(circle at center, #11161d 0 50%, transparent 52%),
    conic-gradient(#62ff7f var(--pie-progress), rgba(255, 255, 255, 0.13) 0);
  box-shadow: 0 0 18px rgba(98, 255, 127, 0.16);
}

/* Profile rescue: keep dashboard readable */

.stat-line,
.stat-bars {
  height: 52px;
}

.stat-pie {
  width: 52px;
  height: 52px;
}

/* Final absolute goal overrides - keep this at EOF */

/* Absolute final profile alignment overrides */
@media (min-width: 901px) {
  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  
  
  
  

  

  

  

  

  

  

  

  

  

  

  .section-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    margin: 0 0 26px !important;
  }

  .section-title span {
    color: #fff !important;
    font-size: 32px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
  }

  .section-title button {
    min-width: 128px !important;
    min-height: 48px !important;
    padding: 0 22px !important;
    border-radius: 15px !important;
    border: 1px solid rgba(255, 129, 38, 0.42) !important;
    background: rgba(255, 129, 38, 0.1) !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
  }

  

  

  .checkin-week {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: clamp(8px, 1.35vw, 14px) !important;
    align-items: start !important;
    margin: 0 !important;
  }

  .checkin-week span {
    min-height: clamp(58px, 7vh, 82px) !important;
    display: grid !important;
    place-items: center !important;
    gap: clamp(7px, 1.2vh, 12px) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.055) !important;
    color: var(--profile-muted) !important;
    font-size: clamp(14px, 1.75vw, 18px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  .checkin-week i {
    width: clamp(22px, 2.8vw, 30px) !important;
    height: clamp(22px, 2.8vw, 30px) !important;
    border: 2px solid rgba(255, 255, 255, 0.16) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    box-shadow: none !important;
  }

  .checkin-week .today i {
    border-color: rgba(255, 129, 38, 0.58) !important;
    background: linear-gradient(135deg, #ff6a1a, #ff9b30) !important;
    box-shadow: 0 0 18px rgba(255, 129, 38, 0.32) !important;
  }

  .checkin-note {
    min-height: clamp(48px, 6.2vh, 62px) !important;
    display: flex !important;
    align-items: center !important;
    gap: clamp(8px, 1.2vw, 12px) !important;
    margin: clamp(12px, 2.2vh, 22px) 0 0 !important;
    padding: 0 clamp(18px, 2.5vw, 26px) !important;
    border-radius: 16px !important;
    background: linear-gradient(90deg, rgba(255, 129, 38, 0.16), rgba(154, 92, 255, 0.18)) !important;
    color: #fff !important;
    font-size: clamp(14px, 1.75vw, 18px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  .checkin-note-icon {
    color: var(--profile-orange) !important;
    font-size: 1.15em !important;
    line-height: 1 !important;
  }
}

/* FINAL 2026-05-31: clone light dashboard geometry, keep dark theme colors */
@media (min-width: 901px) {
  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  
  
  
  

  

  

  

  

  

  

  

  

  

  .section-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 22px !important;
    margin: 0 0 38px !important;
  }

  .section-title span {
    color: var(--dash-main) !important;
    font-size: 44px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
  }

  .section-title button {
    min-width: 184px !important;
    min-height: 68px !important;
    padding: 0 30px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255, 129, 38, 0.42) !important;
    background: rgba(255, 129, 38, 0.1) !important;
    color: var(--dash-main) !important;
    font-size: 24px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
  }

  

  .checkin-week {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 28px !important;
    align-items: start !important;
    margin: 0 !important;
  }

  .checkin-week span {
    min-height: 116px !important;
    display: grid !important;
    place-items: center !important;
    gap: 22px !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.055) !important;
    color: var(--dash-muted) !important;
    font-size: 26px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  .checkin-week i {
    width: 42px !important;
    height: 42px !important;
    border: 3px solid rgba(255, 255, 255, 0.16) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    box-shadow: none !important;
  }

  .checkin-week .today i {
    border-color: rgba(255, 129, 38, 0.58) !important;
    background: linear-gradient(135deg, #ff6a1a, #ff9b30) !important;
    box-shadow: 0 0 18px rgba(255, 129, 38, 0.32) !important;
  }

  .checkin-note {
    min-height: 86px !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    margin: 34px 0 0 !important;
    padding: 0 42px !important;
    border-radius: 18px !important;
    background: linear-gradient(90deg, rgba(255, 129, 38, 0.16), rgba(154, 92, 255, 0.18)) !important;
    color: var(--dash-main) !important;
    font-size: 26px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  .checkin-note-icon {
    color: var(--dash-orange) !important;
    font-size: 1.15em !important;
    line-height: 1 !important;
  }
}

/* Final light-layout clone for dark profile theme. Keep this block at EOF. */
@media (min-width: 901px) {
  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  
  
  
  

  

  

  

  

  

  

  

  

  

  

  .section-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    margin: 0 0 clamp(24px, 3.4vh, 42px) !important;
  }

  .section-title span {
    color: var(--profile-main) !important;
    font-size: clamp(30px, 3.1vw, 48px) !important;
    font-weight: 950 !important;
    line-height: 1 !important;
  }

  .section-title button {
    min-width: clamp(126px, 11vw, 184px) !important;
    min-height: clamp(48px, 5.4vh, 72px) !important;
    padding: 0 clamp(18px, 2vw, 30px) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 129, 38, 0.42) !important;
    background: rgba(255, 129, 38, 0.1) !important;
    color: var(--profile-main) !important;
    font-size: clamp(16px, 1.65vw, 24px) !important;
    font-weight: 950 !important;
    line-height: 1 !important;
  }

  

  

  .checkin-week {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: clamp(16px, 2vw, 30px) !important;
    align-items: start !important;
    margin: 0 !important;
  }

  .checkin-week span {
    min-height: clamp(82px, 9vh, 124px) !important;
    display: grid !important;
    place-items: center !important;
    gap: clamp(14px, 2vh, 24px) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.055) !important;
    color: var(--profile-muted) !important;
    font-size: clamp(18px, 1.8vw, 26px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  .checkin-week i {
    width: clamp(28px, 3vw, 42px) !important;
    height: clamp(28px, 3vw, 42px) !important;
    border: 2px solid rgba(255, 255, 255, 0.16) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    box-shadow: none !important;
  }

  .checkin-week .today i {
    border-color: rgba(255, 129, 38, 0.58) !important;
    background: linear-gradient(135deg, #ff6a1a, #ff9b30) !important;
    box-shadow: 0 0 18px rgba(255, 129, 38, 0.32) !important;
  }

  .checkin-note {
    margin: clamp(18px, 3vh, 36px) 0 0 !important;
    min-height: clamp(58px, 7vh, 88px) !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 0 clamp(24px, 3vw, 44px) !important;
    border-radius: 16px !important;
    background: linear-gradient(90deg, rgba(255, 129, 38, 0.16), rgba(154, 92, 255, 0.18)) !important;
    color: var(--profile-main) !important;
    font-size: clamp(17px, 1.7vw, 26px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  .checkin-note-icon {
    color: var(--profile-orange) !important;
    font-size: 1.24em !important;
    line-height: 1 !important;
  }
}

/* Reference-locked profile geometry */
@media (min-width: 901px) {
  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  .section-title {
    margin-bottom: clamp(24px, 3vh, 38px) !important;
  }

  .section-title span {
    font-size: clamp(30px, 3.2vw, 48px) !important;
  }

  .section-title button {
    min-width: clamp(120px, 11vw, 184px) !important;
    min-height: clamp(48px, 5.4vh, 72px) !important;
    padding: 0 clamp(18px, 2vw, 30px) !important;
    font-size: clamp(16px, 1.65vw, 24px) !important;
  }

  

  .checkin-week {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: clamp(16px, 2vw, 30px) !important;
    align-items: start !important;
  }

  .checkin-week span {
    min-height: clamp(82px, 9vh, 124px) !important;
    gap: clamp(14px, 2vh, 24px) !important;
    background: transparent !important;
    font-size: clamp(18px, 1.8vw, 26px) !important;
  }

  .checkin-week i {
    width: clamp(28px, 3vw, 42px) !important;
    height: clamp(28px, 3vw, 42px) !important;
    border: 2px solid rgba(255, 255, 255, 0.16) !important;
    background: rgba(255, 255, 255, 0.04) !important;
  }

  .checkin-week .today i {
    border-color: rgba(255, 129, 38, 0.56) !important;
    background: linear-gradient(135deg, #ff6a1a, #ff9b30) !important;
  }

  .checkin-note {
    margin-top: clamp(20px, 3vh, 36px) !important;
    min-height: clamp(58px, 7vh, 88px) !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 clamp(24px, 3vw, 44px) !important;
    font-size: clamp(17px, 1.7vw, 26px) !important;
  }
}

/* Final unified profile pass: dark night, orange primary, purple secondary */
@media (min-width: 901px) {
  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  
  
  
  

  

  

  

  

  

  

  

  

  

  .section-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-bottom: 14px !important;
  }

  .section-title span {
    color: #fff !important;
    font-size: 22px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
  }

  .section-title button {
    min-height: 34px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 129, 38, 0.36) !important;
    background: rgba(255, 129, 38, 0.12) !important;
    color: #ffd9bd !important;
    font-size: 13px !important;
    font-weight: 950 !important;
  }

  

  

  .vocab-item-copy strong {
    color: #ffcc49 !important;
    font-size: 24px !important;
    line-height: 1.1 !important;
  }

  .vocab-item-copy span {
    color: var(--profile-muted) !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
  }

  .vocab-due {
    min-width: 104px !important;
    padding: 8px 12px !important;
    border-radius: 999px !important;
    color: #8fe8ff !important;
    background: rgba(56, 215, 255, 0.12) !important;
    font-size: 18px !important;
    font-weight: 950 !important;
    text-align: center !important;
  }

  .vocab-due.ready {
    color: #ff6b6b !important;
    background: rgba(255, 84, 84, 0.14) !important;
  }

  .checkin-week {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 0 !important;
    align-self: stretch !important;
  }

  .checkin-week span {
    min-height: 0 !important;
    display: grid !important;
    place-items: center !important;
    gap: 10px !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.055) !important;
    color: var(--profile-muted) !important;
    font-size: 14px !important;
    font-weight: 900 !important;
  }

  .checkin-week i {
    width: 22px !important;
    height: 22px !important;
  }

  .checkin-note {
    margin-top: 14px !important;
    padding: 14px 16px !important;
    border-radius: 16px !important;
    background: linear-gradient(90deg, rgba(255, 129, 38, 0.14), rgba(154, 92, 255, 0.14)) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 900 !important;
  }
}

/* Final stat-row optical alignment */

/* Dark orange/purple profile layout */
@media (min-width: 901px) {
  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  
  
  
  

  

  

  

  

  

  

  

  
  

  

  .section-title button {
    min-height: 38px !important;
    padding: 0 20px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
  }
}

.top-dashboard .daily-goal .daily-goal-bar span {
  background: linear-gradient(90deg, #62ff7f, #20f08a) !important;
  box-shadow: 0 0 18px rgba(98, 255, 127, 0.42) !important;
}

.top-dashboard .daily-goal .daily-goal-bar.over span {
  background: linear-gradient(90deg, #38d7ff, #22b7ff) !important;
  box-shadow: 0 0 20px rgba(56, 215, 255, 0.45) !important;
}

.top-dashboard .daily-goal .daily-goal-bar.super-over span {
  background: linear-gradient(90deg, #b45cff, #d070ff) !important;
  box-shadow: 0 0 22px rgba(180, 92, 255, 0.5) !important;
}

/* Hard override for file:// cache-visible profile goal state */

/* Keep the four statistic cards horizontal on tablet/desktop widths */
@media (min-width: 761px) {
  

  

  

  

  

  

  

  .stat-line,
  .stat-bars {
    height: 58px;
  }

  .stat-pie {
    width: 48px;
    height: 48px;
  }

  
}

/* Target favorite and timed vocab review */
.target-row {
  align-items: center;
}

.target-favorite-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.46) !important;
  box-shadow: none !important;
  padding: 0;
  font-size: 25px;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.target-favorite-button.saved {
  color: #ffd84d !important;
  filter: drop-shadow(0 0 10px rgba(255, 216, 77, 0.36));
}

.target-favorite-button:disabled {
  cursor: not-allowed;
  opacity: 0.32;
}

.vocab-item-head {
  position: relative;
}

.vocab-ready-count {
  position: absolute;
  top: -12px;
  right: -12px;
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #ff3d3d;
  color: #fff;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 0 18px rgba(255, 61, 61, 0.34);
}

.vocab-review-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  filter: grayscale(0.25);
}

@media (min-width: 901px) {
  .target-row {
    grid-template-columns: minmax(0, 1fr) 38px 38px;
  }
}

@media (max-width: 540px) {
  .target-row {
    grid-template-columns: minmax(0, 1fr) 38px 38px;
  }
}

/* Profile layout: goal in hero image area, favorite card moves to lower-left */
@media (min-width: 901px) {
  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  .stat-line,
  .stat-bars {
    height: 90px;
  }

  .stat-pie {
    width: 120px;
    height: 120px;
    justify-self: center;
    align-self: center;
  }

  
}

/* Statistic card hierarchy */

.stat-line,
.stat-bars {
  height: 74px;
}

.stat-pie {
  width: 74px;
  height: 74px;
  justify-self: center;
  align-self: center;
}

/* Chart cleanup */
.stat-bars {
  overflow: hidden;
  align-items: end;
}

.stat-bars span.zero {
  opacity: 0.45;
}

.stat-bars span.zero b {
  display: none;
}

.stat-bars span b {
  bottom: auto;
  top: -14px;
}

/* Final profile rearrangement */

/* Full-screen profile fit and fused goal header */

/* Profile proportion repair for the in-app preview viewport */

/* Final profile redesign: firework dashboard + readable vocab library */

@media (min-width: 901px) {
  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  
  
  
  

  

  
  

  

  

  

  

  

  

  .checkin-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
  }

  .checkin-week span {
    display: grid;
    gap: 12px;
    place-items: center;
    min-height: 72px;
    border-radius: 15px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.78);
    font-weight: 900;
  }

  .checkin-week i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
  }

  .checkin-week .today i {
    background: linear-gradient(135deg, #ff6a18, #ffd236);
    box-shadow: 0 0 20px rgba(255, 138, 31, 0.5);
  }

  .checkin-note {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(255, 117, 24, 0.18), rgba(125, 51, 255, 0.18));
    color: #fff8ee;
  }

  

  

  

  

  

  

  

  

  

  

  

  

  

  
}

/* Profile balance pass: avatar back, bigger middle cards, no text collisions */
@media (min-width: 901px) {
  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  .checkin-week {
    margin-top: 14px !important;
  }

  .checkin-week span {
    min-height: 58px !important;
    gap: 8px !important;
    font-size: 15px !important;
  }

  .checkin-note {
    margin-top: 14px !important;
    padding: 13px 18px !important;
  }

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  
}

/* Goal progress color rules */

/* EOF goal override: this must stay after profile redesign rules */

/* True EOF profile alignment overrides */
@media (min-width: 901px) {
  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  
  
  
  

  

  

  

  

  

  

  

  

  

  .section-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    margin: 0 0 26px !important;
  }

  .section-title span {
    color: #fff !important;
    font-size: 32px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
  }

  .section-title button {
    min-width: 128px !important;
    min-height: 48px !important;
    padding: 0 22px !important;
    border-radius: 15px !important;
    border: 1px solid rgba(255, 129, 38, 0.42) !important;
    background: rgba(255, 129, 38, 0.1) !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
  }

  

  

  .checkin-week {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: clamp(8px, 1.35vw, 14px) !important;
    align-items: start !important;
    margin: 0 !important;
  }

  .checkin-week span {
    min-height: clamp(58px, 7vh, 82px) !important;
    display: grid !important;
    place-items: center !important;
    gap: clamp(7px, 1.2vh, 12px) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.055) !important;
    color: var(--profile-muted) !important;
    font-size: clamp(14px, 1.75vw, 18px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  .checkin-week i {
    width: clamp(22px, 2.8vw, 30px) !important;
    height: clamp(22px, 2.8vw, 30px) !important;
    border: 2px solid rgba(255, 255, 255, 0.16) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    box-shadow: none !important;
  }

  .checkin-week .today i {
    border-color: rgba(255, 129, 38, 0.58) !important;
    background: linear-gradient(135deg, #ff6a1a, #ff9b30) !important;
    box-shadow: 0 0 18px rgba(255, 129, 38, 0.32) !important;
  }

  .checkin-note {
    min-height: clamp(48px, 6.2vh, 62px) !important;
    display: flex !important;
    align-items: center !important;
    gap: clamp(8px, 1.2vw, 12px) !important;
    margin: clamp(12px, 2.2vh, 22px) 0 0 !important;
    padding: 0 clamp(18px, 2.5vw, 26px) !important;
    border-radius: 16px !important;
    background: linear-gradient(90deg, rgba(255, 129, 38, 0.16), rgba(154, 92, 255, 0.18)) !important;
    color: #fff !important;
    font-size: clamp(14px, 1.75vw, 18px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  .checkin-note-icon {
    color: var(--profile-orange) !important;
    font-size: 1.15em !important;
    line-height: 1 !important;
  }
}

/* Absolute last-mile overrides for compact preview and real dashboard */
@media (min-width: 901px) {
  

  

  .checkin-week {
    gap: clamp(7px, 1.2vw, 14px) !important;
  }

  .checkin-week span {
    min-height: clamp(48px, 6.4vh, 82px) !important;
    gap: clamp(5px, 0.9vh, 12px) !important;
    font-size: clamp(13px, 1.55vw, 18px) !important;
  }

  .checkin-week i {
    width: clamp(20px, 2.5vw, 30px) !important;
    height: clamp(20px, 2.5vw, 30px) !important;
  }

  .checkin-note {
    min-height: clamp(42px, 5.6vh, 62px) !important;
    margin-top: clamp(8px, 1.5vh, 22px) !important;
    font-size: clamp(13px, 1.5vw, 18px) !important;
  }
}

/* Home dashboard rebuilt from the learning-data reference, keeping the dark theme. */
.home-overlay.show {
  align-items: stretch !important;
  justify-content: center !important;
  padding: 16px !important;
  overflow: hidden !important;
}

.home-page {
  width: min(1480px, calc(100vw - 32px)) !important;
  height: calc(100dvh - 32px) !important;
  max-height: none !important;
  display: grid !important;
  grid-template-rows: 128px auto minmax(0, 1fr) auto 168px !important;
  gap: 14px !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.home-card {
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: linear-gradient(145deg, rgba(20, 25, 46, 0.94), rgba(12, 16, 31, 0.96)) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.home-hero {
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 112px minmax(0, 1fr) 390px !important;
  align-items: center !important;
  gap: 26px !important;
  padding: 20px 54px 20px 28px !important;
  position: relative !important;
}

.home-close {
  top: 26px !important;
  right: 28px !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 30px !important;
  z-index: 4 !important;
}

.home-avatar {
  width: 94px !important;
  height: 94px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 28% 22%, #ffd47a, #ff8126 42%, #9a5cff 78%) !important;
  color: #fff !important;
  font-size: 56px !important;
  font-weight: 950 !important;
  box-shadow: 0 18px 38px rgba(154, 92, 255, 0.28) !important;
}

.home-identity {
  min-width: 0 !important;
  align-self: center !important;
}

.home-nickname {
  width: auto !important;
  padding: 0 !important;
  background: transparent !important;
  color: #fffaf1 !important;
  font-size: clamp(34px, 3.8vw, 54px) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-align: left !important;
}

.home-nickname-input {
  width: min(460px, 100%) !important;
  height: 58px !important;
  border-radius: 16px !important;
  font-size: 34px !important;
  font-weight: 950 !important;
}

.home-identity p {
  margin: 14px 0 0 !important;
  color: rgba(255, 250, 241, 0.64) !important;
  font-size: 19px !important;
  font-weight: 850 !important;
}

.home-grade-button {
  display: inline-flex !important;
  align-items: center !important;
  margin: 10px 0 0 !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  border: 1.5px solid rgba(255, 180, 80, 0.5) !important;
  background: rgba(255, 150, 40, 0.12) !important;
  color: #ffb060 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.home-goal {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: 122px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 26px !important;
  padding-right: 42px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.home-goal-ring,
.home-rate-ring {
  --home-ring-progress: 0deg;
  --home-ring-color: #62ff7f;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  background:
    radial-gradient(circle at center, rgba(12, 16, 31, 0.96) 58%, transparent 59%),
    conic-gradient(var(--home-ring-color) var(--home-ring-progress), rgba(255, 255, 255, 0.09) 0) !important;
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.03), 0 0 28px rgba(154, 92, 255, 0.14) !important;
}

.home-goal-ring {
  width: 116px !important;
  height: 116px !important;
}

.home-goal-ring strong {
  color: var(--home-ring-color) !important;
  font-size: 28px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

.home-goal-ring span {
  margin-top: -30px !important;
  color: rgba(255, 250, 241, 0.7) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

.home-goal-copy span {
  color: rgba(255, 250, 241, 0.72) !important;
  font-size: 20px !important;
  font-weight: 900 !important;
}

.home-goal-score {
  margin-top: 10px !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 14px !important;
  color: rgba(255, 250, 241, 0.8) !important;
}

.home-goal-score strong {
  color: #ff8126 !important;
  font-size: 46px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

.home-goal-score em {
  color: rgba(255, 250, 241, 0.78) !important;
  font-size: 30px !important;
  font-style: normal !important;
  font-weight: 950 !important;
}

.home-goal-copy b {
  display: block !important;
  margin-top: 8px !important;
  font-size: 15px !important;
  font-weight: 950 !important;
}

.home-block-heading {
  margin: 4px 0 0 !important;
  padding-left: 24px !important;
  color: #fffaf1 !important;
  font-size: 26px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  position: relative !important;
}

.home-block-heading::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 2px !important;
  width: 6px !important;
  height: 24px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ffb02e, #ff6f1f) !important;
}

.home-data-grid {
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  grid-template-rows: minmax(156px, 1fr) minmax(140px, 0.92fr) !important;
  gap: 14px !important;
}

.home-data-card,
.home-small-card,
.home-score-card {
  min-height: 0 !important;
  padding: 22px !important;
  position: relative !important;
  overflow: hidden !important;
}

.home-wide-card {
  grid-column: span 4 !important;
}

.home-rate-card {
  grid-column: span 4 !important;
}

.home-small-card {
  grid-column: span 2 !important;
}

.home-score-card {
  grid-column: span 6 !important;
}

.home-data-head {
  display: flex !important;
  align-items: flex-start !important;
  gap: 18px !important;
  position: relative !important;
  z-index: 1 !important;
}

.home-data-head.compact {
  gap: 14px !important;
}

.home-data-head i,
.home-mode-icon {
  width: 58px !important;
  height: 58px !important;
  flex: 0 0 58px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(255, 129, 38, 0.22), rgba(154, 92, 255, 0.24)) !important;
  color: #fff !important;
  font-style: normal !important;
  font-size: 27px !important;
  font-weight: 950 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.home-data-head span,
.home-section-title span {
  color: #fffaf1 !important;
  font-size: 19px !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
}

.home-data-head strong {
  display: block !important;
  margin-top: 16px !important;
  color: #ff8126 !important;
  font-size: 42px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

.home-data-head.compact strong {
  margin-top: 10px !important;
  color: #fffaf1 !important;
  font-size: 28px !important;
}

.home-data-card p,
.home-small-card p {
  margin: 28px 0 0 !important;
  color: rgba(255, 250, 241, 0.65) !important;
  font-size: 17px !important;
  font-weight: 850 !important;
}

.home-data-card p b,
.home-small-card p b {
  color: #fffaf1 !important;
  font-size: 28px !important;
  font-weight: 950 !important;
}

.home-arc {
  position: absolute !important;
  right: 28px !important;
  bottom: 24px !important;
  width: 112px !important;
  height: 112px !important;
  border-radius: 50% !important;
  border: 13px solid transparent !important;
  transform: rotate(-28deg) !important;
  opacity: 0.95 !important;
}

.home-arc-orange {
  border-right-color: #ff9a2f !important;
  border-bottom-color: rgba(255, 154, 47, 0.22) !important;
}

.home-arc-purple {
  border-right-color: #8d6cff !important;
  border-bottom-color: rgba(141, 108, 255, 0.22) !important;
}

.home-section-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 !important;
}

.home-section-title small {
  color: rgba(255, 250, 241, 0.58) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

.home-rate-row {
  display: grid !important;
  grid-template-columns: 132px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 28px !important;
  height: calc(100% - 28px) !important;
}

.home-rate-ring {
  width: 126px !important;
  height: 126px !important;
  --home-ring-color: #8d6cff;
}

.home-rate-ring strong {
  color: #fffaf1 !important;
  font-size: 32px !important;
  font-weight: 950 !important;
}

.home-rate-legend {
  display: grid !important;
  gap: 15px !important;
  color: rgba(255, 250, 241, 0.78) !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

.home-rate-legend span {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.home-rate-legend i {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background: #8d6cff !important;
}

.home-rate-legend span:nth-child(2) i {
  background: #ff8126 !important;
}

.home-bars,
.home-mini-bars,
.home-vocab-bars {
  height: 48px !important;
  display: flex !important;
  align-items: end !important;
  gap: 10px !important;
  margin-top: 20px !important;
}

.home-bars span,
.home-mini-bars span,
.home-vocab-bars span {
  flex: 1 !important;
  min-width: 10px !important;
  display: flex !important;
  align-items: end !important;
  justify-content: center !important;
  height: 100% !important;
}

.home-bars i,
.home-mini-bars i,
.home-vocab-bars i,
.home-bars span {
  border-radius: 8px 8px 2px 2px !important;
}

.home-bars i,
.home-mini-bars i,
.home-vocab-bars i {
  width: 100% !important;
  min-height: 8px !important;
  background: linear-gradient(180deg, #8d6cff, rgba(141, 108, 255, 0.35)) !important;
}

.home-bars b,
.home-mini-bars b,
.home-vocab-bars b {
  display: none !important;
}

.home-vocab-bars i {
  background: linear-gradient(180deg, #ff8126, rgba(255, 129, 38, 0.35)) !important;
}

.home-score-card {
  display: flex !important;
  flex-direction: column !important;
}

.home-score-left {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

.home-score-card .home-line-chart {
  width: 100% !important;
  height: 86px !important;
  margin-top: 8px !important;
}

.home-score-value {
  margin-top: 10px !important;
  color: #fffaf1 !important;
  font-weight: 950 !important;
}

.home-score-value b {
  color: #8d6cff !important;
  font-size: 34px !important;
}

.home-score-value span {
  margin-left: 4px !important;
  color: rgba(255, 250, 241, 0.72) !important;
  font-size: 18px !important;
}

.home-mode-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  min-height: 0 !important;
}

.home-mode-card {
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 86px minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  column-gap: 22px !important;
  padding: 24px !important;
  cursor: pointer !important;
}

.home-mode-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(255, 129, 38, 0.32) !important;
}

.home-mode-icon {
  width: 76px !important;
  height: 76px !important;
  border-radius: 50% !important;
  font-size: 34px !important;
}

.home-mode-card h3 {
  margin: 0 0 10px !important;
  color: #fffaf1 !important;
  font-size: 24px !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
}

.home-mode-card p {
  margin: 0 !important;
  color: rgba(255, 250, 241, 0.62) !important;
  font-size: 17px !important;
  font-weight: 850 !important;
  line-height: 1.45 !important;
}

.home-mode-card footer {
  grid-column: 1 / -1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin-top: 18px !important;
  color: rgba(255, 250, 241, 0.72) !important;
  font-size: 16px !important;
  font-weight: 900 !important;
}

.home-mode-card footer b {
  color: #fffaf1 !important;
}

@media (max-width: 980px) {
  .home-overlay.show {
    overflow: auto !important;
    padding: 12px !important;
  }

  .home-page {
    width: 100% !important;
    height: auto !important;
    min-height: calc(100dvh - 24px) !important;
    grid-template-rows: auto auto auto auto auto !important;
    overflow: visible !important;
  }

  .home-hero {
    grid-template-columns: 76px 1fr !important;
    padding: 20px !important;
  }

  .home-goal {
    grid-column: 1 / -1 !important;
    grid-template-columns: 100px 1fr !important;
    padding-right: 0 !important;
  }

  .home-data-grid,
  .home-mode-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
  }

  .home-wide-card,
  .home-rate-card,
  .home-small-card,
  .home-score-card {
    grid-column: auto !important;
    min-height: 160px !important;
  }
}

/* Home dashboard typography tune-up */
.home-page {
  grid-template-rows: 112px auto minmax(0, 1fr) auto 152px !important;
  gap: 12px !important;
}

.home-hero {
  grid-template-columns: 96px minmax(0, 1fr) 360px !important;
  gap: 22px !important;
  padding: 18px 58px 18px 28px !important;
}

.home-avatar {
  width: 82px !important;
  height: 82px !important;
  font-size: 48px !important;
}

.home-nickname {
  font-size: clamp(32px, 3.2vw, 46px) !important;
  letter-spacing: 0 !important;
}

.home-identity p {
  margin-top: 10px !important;
  font-size: 17px !important;
}

.home-goal {
  grid-template-columns: 104px minmax(0, 1fr) !important;
  gap: 20px !important;
}

.home-goal-ring {
  width: 96px !important;
  height: 96px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
}

.home-goal-ring strong {
  font-size: 25px !important;
}

.home-goal-ring span {
  margin: 0 !important;
  font-size: 13px !important;
}

.home-goal-copy span {
  font-size: 21px !important;
}

.home-goal-score {
  margin-top: 8px !important;
  gap: 12px !important;
}

.home-goal-score strong {
  font-size: 42px !important;
}

.home-goal-score em {
  font-size: 29px !important;
}

.home-block-heading {
  font-size: 30px !important;
}

.home-data-grid {
  grid-template-rows: minmax(140px, 0.9fr) minmax(126px, 0.78fr) !important;
}

.home-data-card,
.home-small-card,
.home-score-card {
  padding: 20px 22px !important;
}

.home-data-head {
  gap: 16px !important;
}

.home-data-head i,
.home-mode-icon {
  width: 50px !important;
  height: 50px !important;
  flex-basis: 50px !important;
  border-radius: 14px !important;
  font-size: 23px !important;
}

.home-data-head.compact {
  display: grid !important;
  grid-template-columns: 50px minmax(0, 1fr) !important;
  align-items: start !important;
}

.home-data-head span,
.home-section-title span {
  font-size: 22px !important;
  line-height: 1.15 !important;
}

.home-data-head.compact span {
  max-width: 6em !important;
  font-size: 21px !important;
}

.home-data-head strong {
  margin-top: 12px !important;
  font-size: 39px !important;
}

.home-data-head.compact strong {
  margin-top: 8px !important;
  font-size: 26px !important;
  line-height: 1.05 !important;
}

.home-data-head.compact strong b {
  font-size: 31px !important;
}

.home-data-card p,
.home-small-card p {
  margin-top: 22px !important;
  font-size: 17px !important;
  white-space: nowrap !important;
}

.home-data-card p b,
.home-small-card p b {
  font-size: 26px !important;
}

.home-arc {
  right: 24px !important;
  bottom: 20px !important;
  width: 96px !important;
  height: 96px !important;
  border-width: 12px !important;
}

.home-rate-row {
  grid-template-columns: 118px minmax(0, 1fr) !important;
  gap: 24px !important;
}

.home-rate-ring {
  width: 116px !important;
  height: 116px !important;
}

.home-rate-ring strong {
  font-size: 30px !important;
}

.home-rate-legend {
  gap: 12px !important;
  font-size: 18px !important;
}

.home-rate-legend span {
  justify-content: flex-start !important;
}

.home-rate-legend b {
  margin-left: auto !important;
  min-width: 82px !important;
  text-align: left !important;
}

.home-small-card {
  display: grid !important;
  grid-template-rows: auto auto minmax(34px, 1fr) !important;
}

.home-bars,
.home-mini-bars,
.home-vocab-bars {
  height: 38px !important;
  margin-top: 12px !important;
  gap: 8px !important;
}

.home-score-card {
  display: grid !important;
  grid-template-columns: 170px minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  column-gap: 18px !important;
  align-items: start !important;
}

.home-score-card .home-section-title {
  grid-column: 1 / -1 !important;
}

.home-score-value {
  align-self: center !important;
  margin-top: 0 !important;
}

.home-score-value b {
  font-size: 40px !important;
}

.home-score-card .home-line-chart {
  align-self: center !important;
  height: 96px !important;
  margin-top: 0 !important;
}

.home-mode-card {
  grid-template-columns: 78px minmax(0, 1fr) !important;
  column-gap: 20px !important;
  padding: 22px 26px !important;
}

.home-mode-icon {
  width: 68px !important;
  height: 68px !important;
  border-radius: 50% !important;
  font-size: 31px !important;
}

.home-mode-card h3 {
  font-size: 28px !important;
  line-height: 1.08 !important;
  margin-bottom: 10px !important;
}

.home-mode-card p {
  max-width: 15em !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
}

.home-mode-card footer {
  font-size: 17px !important;
  margin-top: 14px !important;
}

/* Final home dashboard polish: denser iOS-like spacing and calmer type scale. */
.home-page {
  grid-template-rows: 124px auto minmax(0, 1fr) auto 184px !important;
  gap: 10px !important;
}

.home-hero {
  grid-template-columns: 92px minmax(0, 1fr) 430px !important;
  padding: 18px 42px 18px 28px !important;
}

.home-goal {
  width: 390px !important;
  justify-self: end !important;
  grid-template-columns: 118px minmax(0, 1fr) !important;
  gap: 22px !important;
}

.home-goal-ring {
  width: 110px !important;
  height: 110px !important;
}

.home-goal-ring strong {
  font-size: 28px !important;
}

.home-goal-copy span {
  font-size: 19px !important;
}

.home-goal-score strong {
  font-size: 38px !important;
}

.home-goal-score em {
  font-size: 25px !important;
}

.home-block-heading {
  margin-top: 2px !important;
  font-size: 24px !important;
}

.home-data-grid {
  grid-template-rows: minmax(128px, 0.84fr) minmax(104px, 0.58fr) !important;
  gap: 12px !important;
}

.home-small-card {
  grid-column: span 2 !important;
  align-content: start !important;
  gap: 10px !important;
}

.home-score-card {
  grid-column: span 6 !important;
}

.home-data-card,
.home-small-card,
.home-score-card {
  padding: 18px 20px !important;
}

.home-data-head span,
.home-section-title span {
  font-size: 18px !important;
}

.home-data-head.compact span {
  max-width: none !important;
  font-size: 17px !important;
  line-height: 1.22 !important;
}

.home-data-head strong {
  font-size: 34px !important;
}

.home-data-head.compact strong {
  font-size: 22px !important;
}

.home-data-head.compact strong b {
  font-size: 27px !important;
}

.home-data-card p,
.home-small-card p {
  margin-top: 8px !important;
  font-size: 14px !important;
}

.home-data-card p b,
.home-small-card p b {
  font-size: 22px !important;
}

.home-rate-ring {
  width: 108px !important;
  height: 108px !important;
}

.home-rate-ring strong {
  font-size: 27px !important;
}

.home-rate-legend {
  font-size: 15px !important;
}

.home-score-card {
  grid-template-columns: 116px minmax(0, 1fr) !important;
  column-gap: 18px !important;
}

.home-score-value {
  display: flex !important;
  align-items: baseline !important;
  gap: 4px !important;
}

.home-score-value b {
  font-size: 30px !important;
}

.home-score-value span {
  font-size: 14px !important;
}

.home-score-card .home-line-chart {
  width: 100% !important;
  height: 104px !important;
}

.home-mode-card {
  grid-template-columns: 64px minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) auto auto !important;
  column-gap: 18px !important;
  padding: 22px 24px !important;
}

.home-mode-icon {
  width: 58px !important;
  height: 58px !important;
  font-size: 27px !important;
}

.home-mode-card h3 {
  font-size: 22px !important;
}

.home-mode-card p {
  font-size: 15px !important;
  line-height: 1.35 !important;
}

.home-mode-card footer {
  font-size: 14px !important;
  margin-top: 10px !important;
}

.home-mode-card > button {
  grid-column: 1 / -1 !important;
  justify-self: end !important;
  min-width: 126px !important;
  height: 42px !important;
  margin-top: 10px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg, #ff9e2f, #ff741f) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  box-shadow: 0 12px 26px rgba(255, 117, 31, 0.22) !important;
}

/* Dashboard compact pass: prevent clipping and restore symmetry. */
.home-page {
  grid-template-rows: 136px 30px minmax(0, 1fr) 30px 210px !important;
  gap: 8px !important;
}

.home-hero {
  grid-template-columns: 86px minmax(0, 1fr) 420px !important;
  min-height: 136px !important;
  padding: 14px 42px 14px 28px !important;
}

.home-avatar {
  width: 74px !important;
  height: 74px !important;
  font-size: 42px !important;
}

.home-nickname {
  font-size: 38px !important;
}

.home-identity p {
  font-size: 15px !important;
}

.home-goal {
  width: 382px !important;
  grid-template-columns: 104px minmax(0, 1fr) !important;
  gap: 20px !important;
}

.home-goal-ring {
  width: 100px !important;
  height: 100px !important;
}

.home-goal-ring strong {
  font-size: 25px !important;
}

.home-goal-ring span {
  font-size: 12px !important;
}

.home-goal-copy span {
  font-size: 18px !important;
}

.home-goal-score strong {
  font-size: 34px !important;
}

.home-goal-score em {
  font-size: 23px !important;
}

.home-block-heading {
  align-self: center !important;
  margin: 0 !important;
  font-size: 20px !important;
  line-height: 1 !important;
}

.home-block-heading::before {
  height: 22px !important;
}

.home-data-grid {
  grid-template-rows: minmax(112px, 0.7fr) minmax(84px, 0.42fr) !important;
  gap: 10px !important;
}

.home-data-card,
.home-small-card,
.home-score-card {
  padding: 15px 18px !important;
  border-radius: 16px !important;
}

.home-data-head i,
.home-mode-icon {
  width: 44px !important;
  height: 44px !important;
  flex-basis: 44px !important;
  border-radius: 13px !important;
  font-size: 20px !important;
}

.home-data-head,
.home-data-head.compact {
  gap: 12px !important;
}

.home-data-head.compact {
  grid-template-columns: 44px minmax(0, 1fr) !important;
}

.home-data-head span,
.home-section-title span {
  font-size: 16px !important;
  line-height: 1.12 !important;
}

.home-data-head.compact span {
  font-size: 15px !important;
  line-height: 1.16 !important;
}

.home-data-head strong {
  margin-top: 8px !important;
  font-size: 28px !important;
}

.home-data-head.compact strong,
.home-data-head.compact strong b {
  margin-top: 6px !important;
  font-size: 23px !important;
}

.home-data-card p,
.home-small-card p {
  margin-top: 6px !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
}

.home-data-card p b,
.home-small-card p b {
  font-size: 18px !important;
}

.home-arc {
  width: 82px !important;
  height: 82px !important;
  right: 20px !important;
  bottom: 16px !important;
  border-width: 10px !important;
}

.home-rate-row {
  grid-template-columns: 96px minmax(0, 1fr) !important;
  gap: 18px !important;
}

.home-rate-ring {
  width: 92px !important;
  height: 92px !important;
}

.home-rate-ring strong {
  font-size: 23px !important;
}

.home-rate-legend {
  gap: 8px !important;
  font-size: 13px !important;
}

.home-rate-legend b {
  min-width: 66px !important;
}

.home-small-card {
  grid-template-rows: auto auto !important;
  align-content: center !important;
}

.home-score-card {
  grid-template-columns: 90px minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  column-gap: 12px !important;
}

.home-score-value b {
  font-size: 26px !important;
}

.home-score-value span {
  font-size: 12px !important;
}

.home-score-card .home-line-chart {
  height: 74px !important;
}

.home-mode-card {
  grid-template-columns: 54px minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  column-gap: 14px !important;
  row-gap: 8px !important;
  padding: 16px 18px !important;
  border-radius: 16px !important;
}

.home-mode-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  font-size: 22px !important;
}

.home-mode-card h3 {
  margin: 0 0 6px !important;
  font-size: 19px !important;
}

.home-mode-card p {
  max-width: none !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.home-mode-card footer {
  grid-column: 1 / -1 !important;
  margin-top: 0 !important;
  font-size: 12px !important;
}

.home-mode-card > button {
  grid-column: 1 / -1 !important;
  justify-self: end !important;
  min-width: 106px !important;
  height: 34px !important;
  margin-top: 0 !important;
  border-radius: 11px !important;
  font-size: 13px !important;
}

/* Mode cards final alignment: icon / copy / action in a stable grid. */
.home-mode-card {
  grid-template-columns: 52px minmax(0, 1fr) 112px !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  align-items: start !important;
  column-gap: 14px !important;
  row-gap: 8px !important;
}

.home-mode-card .home-mode-icon {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
}

.home-mode-card > div:not(.home-mode-icon) {
  grid-column: 2 / -1 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
}

.home-mode-card footer {
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: end !important;
  display: flex !important;
  justify-content: flex-start !important;
  gap: 18px !important;
}

.home-mode-card > button {
  grid-column: 3 !important;
  grid-row: 2 !important;
  align-self: end !important;
  justify-self: end !important;
  min-width: 104px !important;
}

.home-mode-card h3 {
  white-space: nowrap !important;
}

.home-mode-card p {
  max-width: 22em !important;
}

/* Reference-layout pass: match the provided dashboard proportions. */
.home-overlay.show {
  padding: 24px !important;
}

.home-page {
  width: min(1540px, calc(100vw - 48px)) !important;
  height: calc(100dvh - 48px) !important;
  grid-template-rows: clamp(138px, 16.5vh, 184px) 38px minmax(360px, 1fr) 54px clamp(210px, 23vh, 270px) !important;
  gap: 14px !important;
}

.home-card {
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 129, 38, 0.08), transparent 32%),
    linear-gradient(145deg, rgba(18, 25, 45, 0.96), rgba(10, 14, 28, 0.98)) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.home-hero {
  min-height: 0 !important;
  grid-template-columns: 150px minmax(0, 1fr) 620px !important;
  padding: 24px 74px 24px 44px !important;
  gap: 28px !important;
}

.home-avatar {
  width: clamp(86px, 8vw, 116px) !important;
  height: clamp(86px, 8vw, 116px) !important;
  font-size: clamp(48px, 5vw, 70px) !important;
}

.home-nickname {
  font-size: clamp(38px, 4vw, 58px) !important;
}

.home-identity p {
  margin-top: 14px !important;
  font-size: clamp(16px, 1.6vw, 22px) !important;
}

.home-goal {
  width: 100% !important;
  justify-self: stretch !important;
  grid-template-columns: 150px 1px minmax(0, 1fr) !important;
  gap: 34px !important;
  padding-right: 0 !important;
}

.home-goal::before {
  content: "" !important;
  grid-column: 2 !important;
  width: 1px !important;
  height: 72px !important;
  align-self: center !important;
  background: rgba(255, 255, 255, 0.15) !important;
}

.home-goal-ring {
  grid-column: 1 !important;
  width: clamp(104px, 9vw, 126px) !important;
  height: clamp(104px, 9vw, 126px) !important;
  border: 1px solid rgba(154, 92, 255, 0.48) !important;
  box-shadow: 0 0 28px rgba(154, 92, 255, 0.25), inset 0 0 0 12px rgba(255, 255, 255, 0.035) !important;
}

.home-goal-copy {
  grid-column: 3 !important;
  align-self: center !important;
}

.home-goal-ring strong {
  font-size: clamp(26px, 2.5vw, 38px) !important;
}

.home-goal-ring span {
  font-size: clamp(12px, 1.1vw, 16px) !important;
}

.home-goal-copy span {
  font-size: clamp(20px, 2vw, 28px) !important;
}

.home-goal-score strong {
  font-size: clamp(38px, 4vw, 56px) !important;
}

.home-goal-score em {
  font-size: clamp(28px, 3vw, 42px) !important;
}

.home-close {
  width: 52px !important;
  height: 52px !important;
  top: 24px !important;
  right: 28px !important;
}

.home-block-heading {
  padding-left: 34px !important;
  font-size: clamp(24px, 2.3vw, 34px) !important;
}

.home-block-heading::before {
  width: 7px !important;
  height: 30px !important;
  top: 0 !important;
}

.home-data-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, minmax(170px, 1fr)) !important;
  gap: 14px !important;
}

.home-wide-card,
.home-rate-card {
  grid-column: span 4 !important;
}

.home-small-card {
  grid-column: span 2 !important;
}

.home-score-card {
  grid-column: span 6 !important;
}

.home-data-card,
.home-small-card,
.home-score-card {
  padding: clamp(20px, 2vw, 30px) !important;
  border-radius: 20px !important;
}

.home-data-head i,
.home-mode-icon {
  width: clamp(56px, 5vw, 72px) !important;
  height: clamp(56px, 5vw, 72px) !important;
  flex-basis: clamp(56px, 5vw, 72px) !important;
  border-radius: 18px !important;
  font-size: clamp(24px, 2.6vw, 36px) !important;
}

.home-data-head span,
.home-section-title span {
  font-size: clamp(19px, 1.8vw, 26px) !important;
}

.home-data-head strong {
  margin-top: 24px !important;
  font-size: clamp(38px, 4vw, 58px) !important;
}

.home-data-card p {
  margin-top: 26px !important;
  font-size: clamp(16px, 1.45vw, 21px) !important;
}

.home-data-card p b {
  font-size: clamp(24px, 2.3vw, 34px) !important;
}

.home-arc {
  right: 38px !important;
  bottom: 36px !important;
  width: clamp(118px, 10vw, 150px) !important;
  height: clamp(118px, 10vw, 150px) !important;
  border: 0 !important;
  transform: none !important;
  display: grid !important;
  place-items: center !important;
  background:
    radial-gradient(circle at center, rgba(9, 14, 29, 0.98) 55%, transparent 56%),
    conic-gradient(#ff9828 0deg, rgba(255, 255, 255, 0.12) 0) !important;
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.035) !important;
}

.home-arc::after {
  content: "0%" !important;
  color: #fffaf1 !important;
  font-size: clamp(24px, 2.3vw, 34px) !important;
  font-weight: 950 !important;
}

.home-arc-purple {
  background:
    radial-gradient(circle at center, rgba(9, 14, 29, 0.98) 55%, transparent 56%),
    conic-gradient(#8b68ff 0deg, rgba(255, 255, 255, 0.12) 0) !important;
}

.home-rate-row {
  grid-template-columns: minmax(112px, 140px) minmax(0, 1fr) !important;
  gap: 26px !important;
  height: calc(100% - 28px) !important;
}

.home-rate-ring {
  width: clamp(100px, 9vw, 134px) !important;
  height: clamp(100px, 9vw, 134px) !important;
}

.home-rate-ring strong {
  font-size: clamp(24px, 2.4vw, 36px) !important;
}

.home-rate-legend {
  font-size: clamp(15px, 1.35vw, 20px) !important;
}

.home-data-head.compact {
  grid-template-columns: clamp(46px, 4.5vw, 60px) minmax(0, 1fr) !important;
}

.home-data-head.compact span {
  font-size: clamp(16px, 1.45vw, 21px) !important;
}

.home-data-head.compact strong,
.home-data-head.compact strong b {
  font-size: clamp(26px, 2.7vw, 38px) !important;
}

.home-small-card p {
  margin-top: 16px !important;
  font-size: clamp(14px, 1.25vw, 18px) !important;
}

.home-small-card p b {
  font-size: clamp(20px, 2vw, 28px) !important;
}

.home-score-card {
  grid-template-columns: 170px minmax(0, 1fr) !important;
  column-gap: 24px !important;
}

.home-score-card .home-line-chart {
  height: 108px !important;
}

.home-score-value b {
  font-size: clamp(30px, 3vw, 44px) !important;
}

.home-score-value span {
  font-size: clamp(15px, 1.35vw, 20px) !important;
}

.home-mode-grid {
  gap: 14px !important;
  margin-top: 6px !important;
}

.home-mode-card {
  grid-template-columns: 90px minmax(0, 1fr) 150px !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  padding: clamp(24px, 2.2vw, 34px) !important;
  border-radius: 20px !important;
  column-gap: 24px !important;
  align-items: center !important;
}

.home-mode-icon {
  width: clamp(70px, 6vw, 92px) !important;
  height: clamp(70px, 6vw, 92px) !important;
  border-radius: 50% !important;
}

.home-mode-card h3 {
  font-size: clamp(24px, 2.3vw, 34px) !important;
}

.home-mode-card p {
  font-size: clamp(15px, 1.35vw, 20px) !important;
}

.home-mode-card footer {
  display: none !important;
}

.home-mode-card > button {
  grid-column: 3 !important;
  grid-row: 2 !important;
  min-width: clamp(120px, 10vw, 160px) !important;
  height: clamp(42px, 4vw, 54px) !important;
  border-radius: 14px !important;
  font-size: clamp(16px, 1.4vw, 20px) !important;
}

/* Stable home layout override: compact, symmetric, no clipping. */
.home-overlay.show {
  padding: 18px !important;
  overflow: hidden !important;
}

.home-page {
  width: min(1500px, calc(100vw - 36px)) !important;
  height: calc(100dvh - 36px) !important;
  grid-template-rows: 132px 30px minmax(330px, 1fr) 30px 190px !important;
  gap: 10px !important;
  overflow: hidden !important;
}

.home-hero {
  grid-template-columns: 92px minmax(360px, 1fr) 410px !important;
  min-height: 0 !important;
  align-items: start !important;
  gap: 26px !important;
  padding: 12px 72px 18px 30px !important;
}

.home-avatar {
  width: 78px !important;
  height: 78px !important;
  font-size: 44px !important;
}

.home-nickname {
  white-space: nowrap !important;
  font-size: 38px !important;
  line-height: 1 !important;
}

.home-identity p {
  margin-top: 10px !important;
  font-size: 15px !important;
  white-space: nowrap !important;
}

.home-goal {
  width: 100% !important;
  grid-template-columns: 104px 1px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 24px !important;
  margin-top: 0 !important;
}

.home-goal::before {
  content: "" !important;
  grid-column: 2 !important;
  width: 1px !important;
  height: 70px !important;
  background: rgba(255, 255, 255, 0.14) !important;
}

.home-goal-ring {
  grid-column: 1 !important;
  width: 94px !important;
  height: 94px !important;
}

.home-goal-copy {
  grid-column: 3 !important;
}

.home-goal-ring strong {
  font-size: 24px !important;
}

.home-goal-ring span {
  font-size: 12px !important;
}

.home-goal-copy span {
  font-size: 18px !important;
}

.home-goal-score strong {
  font-size: 34px !important;
}

.home-goal-score em {
  font-size: 24px !important;
}

.home-close {
  width: 46px !important;
  height: 46px !important;
  top: 24px !important;
  right: 28px !important;
  font-size: 28px !important;
}

.home-block-heading {
  align-self: center !important;
  margin: 0 !important;
  padding-left: 30px !important;
  font-size: 22px !important;
  line-height: 1 !important;
}

.home-block-heading::before {
  width: 6px !important;
  height: 24px !important;
}

.home-data-grid {
  min-height: 0 !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.home-wide-card,
.home-rate-card {
  grid-column: span 4 !important;
}

.home-small-card {
  grid-column: span 2 !important;
}

.home-score-card {
  grid-column: span 6 !important;
}

.home-data-card,
.home-small-card,
.home-score-card {
  min-height: 0 !important;
  padding: 18px !important;
  border-radius: 16px !important;
}

.home-data-head i,
.home-mode-icon {
  width: 50px !important;
  height: 50px !important;
  flex-basis: 50px !important;
  border-radius: 14px !important;
  font-size: 22px !important;
}

.home-data-head {
  gap: 14px !important;
}

.home-data-head.compact {
  grid-template-columns: 50px minmax(0, 1fr) !important;
  gap: 12px !important;
}

.home-data-head span,
.home-section-title span {
  font-size: 17px !important;
  line-height: 1.18 !important;
}

.home-data-head.compact span {
  font-size: 15px !important;
}

.home-data-head strong {
  margin-top: 14px !important;
  font-size: 34px !important;
  line-height: 1 !important;
}

.home-data-head.compact strong,
.home-data-head.compact strong b {
  margin-top: 8px !important;
  font-size: 26px !important;
}

.home-data-card p,
.home-small-card p {
  margin-top: 14px !important;
  font-size: 13px !important;
}

.home-data-card p b,
.home-small-card p b {
  font-size: 20px !important;
}

.home-arc {
  width: 96px !important;
  height: 96px !important;
  right: 24px !important;
  bottom: 22px !important;
}

.home-arc::after {
  font-size: 24px !important;
}

.home-rate-row {
  grid-template-columns: 96px minmax(0, 1fr) !important;
  gap: 22px !important;
}

.home-rate-ring {
  width: 94px !important;
  height: 94px !important;
}

.home-rate-ring strong {
  font-size: 24px !important;
}

.home-rate-legend {
  font-size: 13px !important;
  gap: 10px !important;
}

.home-score-card {
  grid-template-columns: 92px minmax(0, 1fr) !important;
  column-gap: 16px !important;
}

.home-score-value b {
  font-size: 28px !important;
}

.home-score-value span {
  font-size: 13px !important;
}

.home-score-card .home-line-chart {
  height: 86px !important;
}

.home-mode-grid {
  min-height: 0 !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 0 !important;
}

.home-mode-card {
  min-height: 0 !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  gap: 12px 16px !important;
  align-items: start !important;
  padding: 18px !important;
  border-radius: 16px !important;
}

.home-mode-card .home-mode-icon {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  font-size: 24px !important;
}

.home-mode-card > div:not(.home-mode-icon) {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.home-mode-card h3 {
  margin: 0 0 8px !important;
  font-size: 22px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.home-mode-card p {
  max-width: none !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

.home-mode-card footer {
  display: none !important;
}

.home-mode-card > button {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  align-self: end !important;
  justify-self: center !important;
  min-width: 132px !important;
  height: 38px !important;
  margin: 0 !important;
  border-radius: 12px !important;
  font-size: 14px !important;
}

/* Header visibility and mode button spacing fix. */
.home-hero {
  align-items: center !important;
  overflow: hidden !important;
}

.home-avatar,
.home-identity,
.home-goal {
  transform: translateY(-18px) !important;
}

.home-nickname {
  font-size: 34px !important;
}

.home-identity p {
  margin-top: 8px !important;
  font-size: 14px !important;
}

.home-goal-ring {
  width: 88px !important;
  height: 88px !important;
}

.home-goal-ring strong {
  font-size: 22px !important;
}

.home-goal-ring span {
  font-size: 11px !important;
}

.home-goal-score strong {
  font-size: 30px !important;
}

.home-goal-score em {
  font-size: 21px !important;
}

.home-mode-card {
  grid-template-rows: auto auto !important;
  align-content: start !important;
}

.home-mode-card > button {
  align-self: start !important;
  margin-top: 20px !important;
  height: 40px !important;
}

/* Review choice quiz: four addable clues plus random options. */
.review-quiz-page {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  display: grid;
  gap: 18px;
  padding: 22px;
  overflow: auto;
}

.review-quiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.review-quiz-head p {
  margin: 0 0 5px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.review-quiz-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
}

#reviewQuizProgress {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 161, 48, 0.14);
  color: var(--yellow);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 900;
}

.review-quiz-clues {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  min-height: 100px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  padding: 18px 20px;
  color: var(--ink);
  font-size: 64px;
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.review-quiz-clues b {
  color: rgba(255, 255, 255, 0.32);
}

/* Alternating clue word colours */
.review-quiz-clues .clue-word--a {
  color: #62ff7f !important;
}
.review-quiz-clues .clue-word--b {
  color: #ffa130 !important;
}

.inline-vocab-add {
  border: 0;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.16);
  color: var(--ink);
  padding: 3px 7px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.inline-vocab-add:hover {
  background: rgba(255, 161, 48, 0.18);
  color: var(--yellow);
}

.review-quiz-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.review-answer-option {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 0 14px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(10, 16, 34, 0.72);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.review-answer-option span {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 161, 48, 0.18);
  color: var(--yellow);
  font-size: 14px;
}

.review-answer-option strong {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 18px;
  line-height: 1.15;
}

.review-answer-option em.option-add {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 138, 31, 0.4);
  background: rgba(255, 122, 24, 0.12);
  color: #ffb060;
  font-size: 16px;
  font-style: normal;
  cursor: pointer;
}

.review-answer-option em.option-add:hover {
  background: rgba(255, 122, 24, 0.35);
  color: #fff;
}

.review-answer-option.correct {
  border-color: rgba(86, 242, 194, 0.6);
  background: rgba(86, 242, 194, 0.16);
}

.review-answer-option.wrong {
  border-color: rgba(255, 87, 87, 0.56);
  background: rgba(255, 87, 87, 0.12);
}

.vocab-learn-answer-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0 8px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(10, 16, 34, 0.72);
  color: var(--ink);
  font-weight: 900;
  font-size: 17px;
  cursor: pointer;
  text-align: left;
  gap: 8px;
}

.vocab-learn-answer-option .option-word {
  flex: 1;
}

.vocab-learn-answer-option .option-add {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 138, 31, 0.4);
  background: rgba(255, 122, 24, 0.12);
  color: #ffb060;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.vocab-learn-answer-option .option-add:hover {
  background: rgba(255, 122, 24, 0.35);
  color: #fff;
}

.review-quiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-quiz-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.review-quiz-footer button {
  min-width: 104px;
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffb433, #ff7a18);
  color: #150b02;
  font-size: 14px;
  font-weight: 950;
}

@media (max-width: 680px) {
  .review-quiz-options {
    grid-template-columns: 1fr;
  }

  .review-quiz-clues {
    font-size: 32px;
  }
}

.random-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.random-refresh-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 161, 48, 0.32);
  border-radius: 13px;
  background: rgba(255, 161, 48, 0.13);
  color: var(--yellow);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.random-refresh-button:hover {
  background: rgba(255, 161, 48, 0.22);
}

/* Keep target word and Chinese meaning from colliding. */
.target-input-wrap {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: start !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.target-input-wrap input {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.target-translation {
  grid-column: 1 !important;
  width: fit-content !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Make the target word itself read as an editable input box. */
.target-input-wrap input#targetInput {
  min-height: 64px !important;
  border: 1px solid rgba(255, 139, 35, 0.52) !important;
  border-radius: 20px !important;
  background:
    linear-gradient(180deg, rgba(255, 139, 35, 0.11), rgba(255, 139, 35, 0.045)),
    rgba(8, 12, 26, 0.72) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 10px 22px rgba(0, 0, 0, 0.18) !important;
  color: #fff8ee !important;
  padding: 0 22px !important;
  font-size: clamp(30px, 3.2vw, 46px) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  outline: none !important;
  cursor: text !important;
}

.target-input-wrap input#targetInput:focus {
  border-color: rgba(255, 172, 52, 0.92) !important;
  box-shadow: 0 0 0 4px rgba(255, 139, 35, 0.16), 0 12px 28px rgba(255, 139, 35, 0.16) !important;
}

/* Final home header visibility fix: keep the full goal ring inside the hero. */
.home-page {
  grid-template-rows: 176px 28px minmax(300px, 1fr) 26px 178px !important;
  gap: 8px !important;
}

.home-hero {
  min-height: 176px !important;
  height: 176px !important;
  grid-template-columns: 104px minmax(320px, 1fr) minmax(430px, 560px) !important;
  align-items: center !important;
  overflow: visible !important;
  padding: 22px 84px 22px 42px !important;
  gap: 28px !important;
}

.home-avatar,
.home-identity,
.home-goal {
  transform: none !important;
}

.home-avatar {
  width: 94px !important;
  height: 94px !important;
  font-size: 54px !important;
}

.home-nickname {
  font-size: 42px !important;
  line-height: 1.05 !important;
}

.home-identity p {
  margin-top: 10px !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
}

.home-goal {
  display: grid !important;
  grid-template-columns: 122px 1px minmax(0, 1fr) !important;
  align-items: center !important;
  justify-self: stretch !important;
  gap: 26px !important;
  min-height: 126px !important;
  margin: 0 !important;
}

.home-goal::before {
  content: "" !important;
  grid-column: 2 !important;
  width: 1px !important;
  height: 96px !important;
  align-self: center !important;
  background: rgba(255, 255, 255, 0.14) !important;
}

.home-goal-ring {
  grid-column: 1 !important;
  width: 112px !important;
  height: 112px !important;
}

.home-goal-copy {
  grid-column: 3 !important;
  min-width: 0 !important;
  align-self: center !important;
}

.home-goal-ring strong {
  font-size: 30px !important;
}

.home-goal-ring span {
  font-size: 12px !important;
}

.home-goal-copy span {
  font-size: 20px !important;
}

.home-goal-score strong {
  font-size: 36px !important;
}

.home-goal-score em {
  font-size: 24px !important;
}

.home-close {
  top: 20px !important;
  right: 20px !important;
}

/* Study page compact repair: layout only, no functional selectors changed. */
.app-shell {
  padding: 16px !important;
}

.workspace {
  min-height: calc(100vh - 32px) !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
}

.topbar {
  grid-template-columns: minmax(300px, 0.72fr) minmax(620px, 1.45fr) !important;
  gap: 18px !important;
  padding: 18px 24px 14px !important;
}

.user-card {
  min-height: 104px !important;
  gap: 18px !important;
}

.avatar {
  width: 92px !important;
  height: 92px !important;
  border-radius: 28px !important;
  font-size: 56px !important;
}

.user-copy {
  gap: 8px !important;
}

.user-copy strong {
  font-size: clamp(34px, 3vw, 44px) !important;
}

.user-copy small {
  font-size: 18px !important;
}

.top-dashboard {
  grid-template-columns: minmax(220px, 0.72fr) minmax(360px, 1fr) !important;
  gap: 16px !important;
}

.daily-goal,
.target-control {
  min-height: 104px !important;
  border-radius: 22px !important;
  padding: 16px 20px !important;
}

.daily-goal {
  grid-template-columns: 48px 1fr !important;
  column-gap: 14px !important;
}

.daily-goal::before {
  width: 44px !important;
  height: 44px !important;
  border-radius: 16px !important;
  font-size: 40px !important;
}

.daily-goal-text {
  gap: 3px !important;
  font-size: 16px !important;
}

.daily-goal-text strong {
  font-size: 26px !important;
}

.daily-goal-bar {
  height: 9px !important;
}

.target-label-row label {
  font-size: 18px !important;
}

.target-grade {
  padding: 5px 11px !important;
  font-size: 14px !important;
}

.target-row {
  gap: 12px !important;
  margin-top: 12px !important;
}

.target-input-wrap {
  gap: 7px !important;
}

.target-input-wrap input#targetInput {
  min-height: 54px !important;
  border-radius: 17px !important;
  padding: 0 18px !important;
  font-size: clamp(30px, 2.7vw, 40px) !important;
}

.target-translation {
  padding: 5px 12px !important;
  font-size: 16px !important;
}

.target-row button {
  min-height: 54px !important;
}

.target-favorite-button {
  width: 42px !important;
  height: 42px !important;
  font-size: 30px !important;
}

#randomTargetButton {
  width: 54px !important;
  height: 54px !important;
}

.play-area {
  grid-template-columns: minmax(360px, 0.58fr) minmax(560px, 1fr) !important;
  gap: 20px !important;
  padding: 0 24px 20px !important;
  min-height: 0 !important;
}

.prompt-panel {
  gap: 14px !important;
  min-height: 0 !important;
}

.status-card {
  min-height: 220px !important;
  gap: 16px !important;
  padding: 24px 26px !important;
}

.status-card::before {
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
  font-size: 30px !important;
}

.status-label {
  font-size: 19px !important;
}

.status-label::after {
  margin-top: 9px !important;
}

.status-card strong {
  width: min(300px, 76%) !important;
  font-size: 20px !important;
  line-height: 1.48 !important;
}

.engine-badge {
  padding: 8px 14px !important;
  font-size: 14px !important;
}

.input-card {
  padding: 20px 22px !important;
  border-radius: 24px !important;
}

.section-title {
  font-size: 28px !important;
}

.section-title small {
  min-width: 42px !important;
  padding: 5px 10px !important;
  font-size: 15px !important;
}

.input-row {
  grid-template-columns: minmax(0, 1fr) 128px !important;
  gap: 14px !important;
}

input {
  min-height: 50px !important;
  font-size: 18px !important;
}

.input-row button {
  min-height: 50px !important;
  border-radius: 18px !important;
  font-size: 20px !important;
}

.assist-button {
  min-height: 36px !important;
  padding: 0 20px !important;
  font-size: 17px !important;
}

.chips,
.vocab-list {
  min-height: 34px !important;
  font-size: 15px !important;
}

.chip {
  padding: 7px 8px 7px 14px !important;
  font-size: 15px !important;
}

.results-panel {
  padding: 24px !important;
}

.results-header {
  margin-bottom: 18px !important;
}

.results-header h2 {
  font-size: 34px !important;
}

.round-counter {
  font-size: 20px !important;
}

.result-card {
  min-height: 80px !important;
  border-radius: 22px !important;
  padding: 12px 20px !important;
}

.rank,
.result-card:nth-child(2) .rank,
.result-card:nth-child(3) .rank,
.result-card:nth-child(4) .rank,
.result-card:nth-child(5) .rank,
.result-card:nth-child(6) .rank,
.result-card.hit .rank {
  width: 52px !important;
  height: 52px !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, #f2b94a, #d8892a) !important;
  color: #17110a !important;
  font-size: 27px !important;
  box-shadow: 0 10px 22px rgba(216, 137, 42, 0.16) !important;
}

/* Study page compact repair v2: reveal prompt area without changing behavior. */
.app-shell {
  padding: 12px !important;
}

.workspace {
  min-height: calc(100vh - 24px) !important;
}

.topbar {
  grid-template-columns: minmax(260px, 0.62fr) minmax(620px, 1.5fr) !important;
  gap: 14px !important;
  padding: 12px 18px 10px !important;
}

.user-card {
  min-height: 76px !important;
  gap: 14px !important;
}

.avatar {
  width: 68px !important;
  height: 68px !important;
  border-radius: 22px !important;
  font-size: 42px !important;
}

.user-copy {
  gap: 4px !important;
}

.user-copy strong {
  font-size: clamp(26px, 2.4vw, 34px) !important;
}

.user-copy small {
  font-size: 15px !important;
}

.top-dashboard {
  grid-template-columns: minmax(180px, 0.54fr) minmax(420px, 1fr) !important;
  gap: 12px !important;
}

.daily-goal,
.target-control {
  min-height: 76px !important;
  border-radius: 18px !important;
  padding: 11px 15px !important;
}

.daily-goal {
  grid-template-columns: 34px 1fr !important;
  column-gap: 10px !important;
}

.daily-goal::before {
  width: 32px !important;
  height: 32px !important;
  border-radius: 12px !important;
  font-size: 30px !important;
}

.daily-goal-text {
  font-size: 13px !important;
}

.daily-goal-text strong {
  font-size: 21px !important;
}

.daily-goal-bar {
  height: 7px !important;
}

.target-label-row label {
  font-size: 15px !important;
}

.target-grade {
  padding: 4px 9px !important;
  font-size: 12px !important;
}

.target-row {
  gap: 10px !important;
  margin-top: 7px !important;
}

.target-input-wrap input#targetInput {
  min-height: 42px !important;
  border-radius: 14px !important;
  padding: 0 14px !important;
  font-size: clamp(24px, 2.2vw, 32px) !important;
}

.target-translation {
  padding: 3px 10px !important;
  font-size: 13px !important;
}

.target-row button {
  min-height: 42px !important;
}

.target-favorite-button {
  width: 34px !important;
  height: 34px !important;
  font-size: 25px !important;
}

#randomTargetButton {
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
}

.play-area {
  grid-template-columns: minmax(340px, 0.56fr) minmax(560px, 1fr) !important;
  gap: 18px !important;
  padding: 0 18px 14px !important;
}

.prompt-panel {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) !important;
  gap: 0 !important;
}

.status-card {
  display: none !important;
}

.input-card {
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto auto auto minmax(0, 1fr) !important;
  align-content: start !important;
  padding: 18px 20px !important;
}

.section-title {
  font-size: 24px !important;
  margin-bottom: 2px !important;
}

.input-row {
  grid-template-columns: minmax(0, 1fr) 118px !important;
  gap: 12px !important;
}

input {
  min-height: 46px !important;
  font-size: 16px !important;
}

.input-row button {
  min-height: 46px !important;
  font-size: 18px !important;
}

.assist-row {
  margin-top: 10px !important;
}

.assist-button {
  min-height: 34px !important;
  padding: 0 18px !important;
  font-size: 15px !important;
}

.chips {
  max-height: none !important;
  overflow: auto !important;
  align-content: start !important;
  margin-top: 14px !important;
  padding-bottom: 4px !important;
}

.chip {
  max-width: 100% !important;
}

.results-panel {
  padding: 20px !important;
}

.results-header {
  margin-bottom: 14px !important;
}

.results-header h2 {
  font-size: 30px !important;
}

.round-counter {
  font-size: 18px !important;
}

.results-list {
  overflow: auto !important;
}

.result-card {
  min-height: 74px !important;
  padding: 10px 18px !important;
}

.rank,
.result-card:nth-child(2) .rank,
.result-card:nth-child(3) .rank,
.result-card:nth-child(4) .rank,
.result-card:nth-child(5) .rank,
.result-card:nth-child(6) .rank,
.result-card.hit .rank {
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
  font-size: 24px !important;
}

/* Target card alignment repair: keep grade near title and shorten input. */
.target-control {
  align-content: start !important;
}

.target-label-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
}

.target-meta {
  position: static !important;
  inset: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-left: 2px !important;
}

.target-row {
  display: grid !important;
  grid-template-columns: minmax(220px, 460px) 38px 48px !important;
  justify-content: start !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 9px !important;
}

.target-input-wrap {
  width: min(460px, 100%) !important;
}

.target-input-wrap input#targetInput {
  width: 100% !important;
  max-width: 460px !important;
}

.target-favorite-button {
  justify-self: center !important;
}

#randomTargetButton {
  justify-self: center !important;
}

/* Target and daily-goal final alignment: layout-only repair. */
.avatar,
.home-avatar {
  border-radius: 999px !important;
}

.topbar {
  grid-template-columns: minmax(230px, 0.45fr) minmax(660px, 1fr) !important;
  align-items: stretch !important;
}

.top-dashboard {
  grid-template-columns: repeat(2, minmax(300px, 360px)) !important;
  justify-content: end !important;
  align-items: stretch !important;
}

.top-dashboard .daily-goal,
.top-dashboard .target-control {
  width: 100% !important;
  max-width: 180px !important;
  min-height: 78px !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

.top-dashboard .target-control {
  padding: 10px 13px !important;
}

.target-label-row {
  min-height: 24px !important;
  gap: 8px !important;
}

.target-label-row label {
  flex: 0 0 auto !important;
  line-height: 1 !important;
}

.target-meta {
  flex: 0 1 auto !important;
  max-width: 158px !important;
}

.target-grade {
  white-space: nowrap !important;
}

.target-row {
  grid-template-columns: minmax(0, 218px) 34px 38px !important;
  width: 100% !important;
  gap: 8px !important;
  margin-top: 8px !important;
}

.target-input-wrap {
  width: 218px !important;
  max-width: 218px !important;
  min-width: 0 !important;
}

.target-input-wrap input#targetInput {
  width: 218px !important;
  max-width: 218px !important;
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 11px !important;
  font-size: clamp(20px, 1.75vw, 26px) !important;
  line-height: 1 !important;
}

.target-favorite-button {
  width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  align-self: center !important;
  justify-self: center !important;
  border-radius: 50% !important;
  line-height: 1 !important;
}

#randomTargetButton {
  width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  align-self: center !important;
  justify-self: center !important;
  border-radius: 13px !important;
}

.top-dashboard .daily-goal {
  position: relative !important;
  grid-template-columns: 54px minmax(0, 1fr) !important;
  column-gap: 10px !important;
  padding: 10px 13px !important;
  align-items: center !important;
}

.top-dashboard .daily-goal::before {
  content: "" !important;
  display: block !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at center, rgba(14, 17, 31, 0.96) 54%, transparent 56%),
    conic-gradient(#45f58a 0 78%, rgba(255, 255, 255, 0.13) 78% 100%) !important;
  border: 1px solid rgba(69, 245, 138, 0.38) !important;
  box-shadow: 0 0 18px rgba(69, 245, 138, 0.18) !important;
}

.top-dashboard .daily-goal:has(.daily-goal-bar.over)::before {
  background:
    radial-gradient(circle at center, rgba(14, 17, 31, 0.96) 54%, transparent 56%),
    conic-gradient(#26c8ff 0 100%, rgba(255, 255, 255, 0.13) 0 100%) !important;
  border-color: rgba(38, 200, 255, 0.55) !important;
  box-shadow: 0 0 20px rgba(38, 200, 255, 0.24) !important;
}

.top-dashboard .daily-goal:has(.daily-goal-bar.super-over)::before {
  background:
    radial-gradient(circle at center, rgba(14, 17, 31, 0.96) 54%, transparent 56%),
    conic-gradient(#b45cff 0 100%, rgba(255, 255, 255, 0.13) 0 100%) !important;
  border-color: rgba(180, 92, 255, 0.58) !important;
  box-shadow: 0 0 22px rgba(180, 92, 255, 0.27) !important;
}

.daily-goal-text {
  min-width: 0 !important;
  gap: 2px !important;
}

.daily-goal-text strong {
  font-size: 20px !important;
  line-height: 1.05 !important;
}

.daily-goal-text span {
  font-size: 12px !important;
  line-height: 1.15 !important;
}

.daily-goal-bar {
  height: 5px !important;
  margin-top: 5px !important;
}

.daily-goal-bar span {
  background: linear-gradient(90deg, #45f58a, #6dff9a) !important;
}

.daily-goal-bar.over span {
  background: linear-gradient(90deg, #26c8ff, #75e7ff) !important;
}

.daily-goal-bar.super-over span {
  background: linear-gradient(90deg, #b45cff, #e89bff) !important;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr !important;
  }

  .top-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
  }

  .top-dashboard .daily-goal,
  .top-dashboard .target-control {
    max-width: none !important;
  }

  .target-row {
    grid-template-columns: minmax(0, 1fr) 34px 38px !important;
  }

  .target-input-wrap,
  .target-input-wrap input#targetInput {
    width: 100% !important;
    max-width: none !important;
  }
}

/* Target action height + daily date badge repair. */
.target-row {
  grid-template-columns: minmax(0, 218px) 46px 46px !important;
  align-items: center !important;
  gap: 9px !important;
}

.target-input-wrap,
.target-input-wrap input#targetInput,
.target-favorite-button,
#randomTargetButton {
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  box-sizing: border-box !important;
}

.target-favorite-button,
#randomTargetButton {
  width: 46px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  justify-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

.target-favorite-button {
  font-size: 34px !important;
  line-height: 1 !important;
}

#randomTargetButton {
  border-radius: 16px !important;
  font-size: 24px !important;
}

.top-dashboard .daily-goal {
  grid-template-columns: 66px minmax(0, 1fr) !important;
}

.top-dashboard .daily-goal::before,
.top-dashboard .daily-goal:has(.daily-goal-bar.over)::before,
.top-dashboard .daily-goal:has(.daily-goal-bar.super-over)::before {
  content: attr(data-date) !important;
  width: 58px !important;
  height: 46px !important;
  border-radius: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 139, 35, 0.14) !important;
  border: 1px solid rgba(255, 139, 35, 0.42) !important;
  box-shadow: 0 12px 24px rgba(255, 139, 35, 0.12) !important;
  color: #ff9b30 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

@media (max-width: 980px) {
  .target-row {
    grid-template-columns: minmax(0, 1fr) 46px 46px !important;
  }
}

/* Repair target action alignment without clipping the Chinese meaning. */
.top-dashboard .target-control {
  align-content: start !important;
  overflow: visible !important;
}

.target-row {
  align-items: start !important;
}

.target-input-wrap {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  gap: 7px !important;
}

.target-input-wrap input#targetInput {
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
}

.target-favorite-button,
#randomTargetButton {
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  margin-top: 0 !important;
}

.target-translation {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  max-height: none !important;
  overflow: hidden !important;
  font-size: 15px !important;
  line-height: 1.15 !important;
}

.chip {
  font-size: 15px !important;
  line-height: 1.18 !important;
}

.chip em {
  font-size: 13px !important;
  line-height: 1.18 !important;
}

/* Hard fix: target buttons align to the English input row, not the whole target block. */
.top-dashboard .target-control {
  min-height: 0 !important;
  overflow: visible !important;
}

.target-row {
  display: grid !important;
  grid-template-columns: minmax(0, 374px) 60px 60px !important;
  grid-template-rows: 60px auto !important;
  align-items: start !important;
  column-gap: 14px !important;
  row-gap: 8px !important;
  margin-top: 12px !important;
}

.target-input-wrap {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  display: grid !important;
  grid-template-rows: 60px auto !important;
  align-items: start !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

.target-input-wrap input#targetInput {
  grid-row: 1 !important;
  width: 100% !important;
  max-width: none !important;
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  padding: 0 20px !important;
  font-size: clamp(31px, 2.45vw, 40px) !important;
  line-height: 1 !important;
}

.target-translation {
  grid-row: 2 !important;
  justify-self: start !important;
  min-height: 30px !important;
  padding: 5px 14px !important;
  font-size: 18px !important;
  line-height: 1.1 !important;
  overflow: visible !important;
}

.target-favorite-button,
#randomTargetButton {
  grid-row: 1 !important;
  width: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  align-self: start !important;
  justify-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateY(0) !important;
}

.target-favorite-button {
  grid-column: 2 !important;
  font-size: 40px !important;
}

#randomTargetButton {
  grid-column: 3 !important;
  border-radius: 20px !important;
  font-size: 29px !important;
}

.prompt-panel .chips .chip,
.input-card .chips .chip,
.chips .chip {
  font-size: 19px !important;
  line-height: 1.15 !important;
  padding: 10px 10px 10px 14px !important;
  gap: 10px !important;
}

.prompt-panel .chips .chip em,
.input-card .chips .chip em,
.chips .chip em {
  font-size: 17px !important;
  line-height: 1.15 !important;
}

.prompt-panel .chips .chip-remove,
.input-card .chips .chip-remove,
.chips .chip-remove {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  font-size: 20px !important;
}

@media (max-width: 980px) {
  .target-row {
    grid-template-columns: minmax(0, 1fr) 60px 60px !important;
  }
}

/* Goal ring + wider target card repair. */
.top-dashboard {
  grid-template-columns: minmax(250px, 315px) minmax(600px, 1fr) !important;
  justify-content: stretch !important;
}

.top-dashboard .daily-goal {
  max-width: 315px !important;
  grid-template-columns: 60px minmax(0, 1fr) !important;
  padding: 14px 16px !important;
}

.top-dashboard .target-control {
  max-width: none !important;
  min-width: 0 !important;
}

.top-dashboard .daily-goal::before,
.top-dashboard .daily-goal:has(.daily-goal-bar.over)::before,
.top-dashboard .daily-goal:has(.daily-goal-bar.super-over)::before,
.top-dashboard .daily-goal.over::before,
.top-dashboard .daily-goal.super-over::before {
  content: "" !important;
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  display: block !important;
  background:
    radial-gradient(circle at center, rgba(9, 13, 27, 0.98) 54%, transparent 56%),
    conic-gradient(#45f58a 0 var(--goal-progress, 0%), rgba(255, 255, 255, 0.13) var(--goal-progress, 0%) 100%) !important;
  border: 1px solid rgba(69, 245, 138, 0.42) !important;
  box-shadow: 0 0 18px rgba(69, 245, 138, 0.18) !important;
  color: transparent !important;
  font-size: 0 !important;
}

.top-dashboard .daily-goal:has(.daily-goal-bar.over)::before,
.top-dashboard .daily-goal.over::before {
  background:
    radial-gradient(circle at center, rgba(9, 13, 27, 0.98) 54%, transparent 56%),
    conic-gradient(#26c8ff 0 var(--goal-progress, 0%), rgba(255, 255, 255, 0.13) var(--goal-progress, 0%) 100%) !important;
  border-color: rgba(38, 200, 255, 0.56) !important;
  box-shadow: 0 0 20px rgba(38, 200, 255, 0.24) !important;
}

.top-dashboard .daily-goal:has(.daily-goal-bar.super-over)::before,
.top-dashboard .daily-goal.super-over::before {
  background:
    radial-gradient(circle at center, rgba(9, 13, 27, 0.98) 54%, transparent 56%),
    conic-gradient(#b45cff 0 var(--goal-progress, 0%), rgba(255, 255, 255, 0.13) var(--goal-progress, 0%) 100%) !important;
  border-color: rgba(180, 92, 255, 0.58) !important;
  box-shadow: 0 0 22px rgba(180, 92, 255, 0.27) !important;
}

.top-dashboard .daily-goal .daily-goal-bar {
  display: none !important;
}

.daily-goal-text {
  justify-content: center !important;
  align-items: flex-start !important;
}

.daily-goal-text strong {
  font-size: 24px !important;
}

.target-row {
  grid-template-columns: minmax(0, 500px) 60px 60px !important;
}

.target-input-wrap input#targetInput {
  font-size: clamp(30px, 2.2vw, 38px) !important;
}

@media (max-width: 980px) {
  .top-dashboard {
    grid-template-columns: 1fr !important;
  }

  .top-dashboard .daily-goal,
  .top-dashboard .target-control {
    max-width: none !important;
  }

  .target-row {
    grid-template-columns: minmax(0, 1fr) 60px 60px !important;
  }
}

/* Top dashboard fit repair: move cards left, keep target actions visible, polish goal ring. */
.topbar {
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr) !important;
  gap: 16px !important;
}

.top-dashboard {
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: minmax(270px, 310px) minmax(0, 1fr) !important;
  justify-content: start !important;
  gap: 14px !important;
}

.top-dashboard .daily-goal {
  max-width: 310px !important;
  min-width: 270px !important;
  grid-template-columns: 88px minmax(0, 1fr) !important;
  column-gap: 14px !important;
  padding: 14px 18px !important;
}

.top-dashboard .target-control {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  padding-right: 18px !important;
  overflow: hidden !important;
}

.top-dashboard .daily-goal::before,
.top-dashboard .daily-goal:has(.daily-goal-bar.over)::before,
.top-dashboard .daily-goal:has(.daily-goal-bar.super-over)::before,
.top-dashboard .daily-goal.over::before,
.top-dashboard .daily-goal.super-over::before {
  width: 76px !important;
  height: 76px !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at center, rgba(8, 12, 26, 0.98) 58%, transparent 60%),
    conic-gradient(#45f58a 0 var(--goal-progress, 0%), rgba(87, 96, 132, 0.36) var(--goal-progress, 0%) 100%) !important;
  border: 1px solid rgba(69, 245, 138, 0.34) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 0 8px rgba(69, 245, 138, 0.055),
    0 14px 26px rgba(0, 0, 0, 0.18) !important;
}

.top-dashboard .daily-goal:has(.daily-goal-bar.over)::before,
.top-dashboard .daily-goal.over::before {
  background:
    radial-gradient(circle at center, rgba(8, 12, 26, 0.98) 58%, transparent 60%),
    conic-gradient(#26c8ff 0 var(--goal-progress, 0%), rgba(87, 96, 132, 0.36) var(--goal-progress, 0%) 100%) !important;
  border-color: rgba(38, 200, 255, 0.44) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 0 8px rgba(38, 200, 255, 0.055),
    0 14px 26px rgba(0, 0, 0, 0.18) !important;
}

.top-dashboard .daily-goal:has(.daily-goal-bar.super-over)::before,
.top-dashboard .daily-goal.super-over::before {
  background:
    radial-gradient(circle at center, rgba(8, 12, 26, 0.98) 58%, transparent 60%),
    conic-gradient(#b45cff 0 var(--goal-progress, 0%), rgba(87, 96, 132, 0.36) var(--goal-progress, 0%) 100%) !important;
  border-color: rgba(180, 92, 255, 0.46) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 0 8px rgba(180, 92, 255, 0.06),
    0 14px 26px rgba(0, 0, 0, 0.18) !important;
}

.daily-goal-text strong {
  font-size: 23px !important;
  white-space: nowrap !important;
}

.target-row {
  grid-template-columns: minmax(0, 1fr) 60px 60px !important;
  width: 100% !important;
  max-width: 100% !important;
  column-gap: 14px !important;
}

.target-input-wrap {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

.target-input-wrap input#targetInput {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  font-size: clamp(28px, 2vw, 36px) !important;
  text-overflow: clip !important;
}

.target-favorite-button,
#randomTargetButton {
  width: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;
  flex: 0 0 60px !important;
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: minmax(220px, 0.28fr) minmax(0, 1fr) !important;
  }

  .top-dashboard {
    grid-template-columns: minmax(250px, 290px) minmax(0, 1fr) !important;
  }

  .top-dashboard .daily-goal {
    min-width: 250px !important;
    max-width: 290px !important;
  }
}

.study-close-button {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 12 !important;
  width: 34px !important;
  height: 34px !important;
  border: 0 !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(255, 255, 255, 0.075) !important;
  color: rgba(255, 250, 241, 0.72) !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.study-close-button:hover {
  background: rgba(255, 139, 35, 0.2) !important;
  color: #fffaf1 !important;
}

/* ── History Page ── */
.history-page-overlay {
  z-index: 120;
}
.history-page {
  display: flex;
  flex-direction: column;
  max-width: 760px;
  width: 96vw;
  max-height: 90vh;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(170deg, #0e1228 0%, #13102a 55%, #0e1228 100%);
  border: 1px solid rgba(168, 85, 247, 0.22);
  box-shadow: 0 32px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ── Pride banner ── */
.history-page-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 28px 28px 20px;
  background: linear-gradient(135deg, rgba(168,85,247,0.14) 0%, rgba(255,140,30,0.08) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.history-page-head::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.history-page-head h2 {
  font-size: 26px;
  font-weight: 950;
  color: #fffaf1;
  letter-spacing: -0.01em;
  margin: 0;
}
.history-page-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,140,30,0.22), rgba(168,85,247,0.22));
  border: 1px solid rgba(255,140,30,0.3);
  font-size: 15px;
  font-weight: 900;
  color: #ffb060;
  letter-spacing: 0.04em;
}

/* ── Word list ── */
.history-word-grid {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
}
.history-word-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.055);
  transition: background 0.15s;
  position: relative;
}
.history-word-row::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #ffa130, #a855f7);
  opacity: 0;
  transition: opacity 0.15s;
}
.history-word-row:last-child {
  border-bottom: none;
}
.history-word-row:hover {
  background: rgba(255,255,255,0.04);
}
.history-word-row:hover::before {
  opacity: 1;
}
.hw-word {
  font-size: 24px;
  font-weight: 950;
  color: #ffa130;
  letter-spacing: -0.01em;
  min-width: 110px;
  flex-shrink: 0;
  text-shadow: 0 0 20px rgba(255,161,48,0.3);
}
.hw-clues {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  flex: 1;
}
.hw-clue-chip {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(56,215,255,0.10);
  border: 1px solid rgba(56,215,255,0.35);
  color: rgba(255,250,241,0.85);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.hw-clue-arrow {
  color: rgba(255,255,255,0.28);
  font-size: 13px;
  font-weight: 700;
}
.hw-sentence {
  font-size: 15px;
  color: rgba(255,250,241,0.88);
  font-style: normal;
  line-height: 1.6;
  flex: 1;
}

/* ── Footer ── */
.history-page-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 28px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.history-export-btn {
  padding: 11px 28px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,140,30,0.5);
  background: linear-gradient(90deg, rgba(255,140,30,0.18), rgba(168,85,247,0.14));
  color: #ffb060;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.18s, box-shadow 0.18s;
}
.history-export-btn:hover {
  background: linear-gradient(90deg, rgba(255,140,30,0.32), rgba(168,85,247,0.26));
  box-shadow: 0 4px 18px rgba(255,140,30,0.22);
}

/* ── Poster clues chip row ── */
.poster-meta {
  padding: 14px 16px !important;
}
.poster-clues-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.poster-clue-chip {
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-transform: none !important;
}
.poster-clue-chip--sentence {
  white-space: normal;
  line-height: 1.5;
  text-transform: none !important;
}
.poster-clue-chip.is-target {
  background: rgba(255,220,80,0.22);
  border-color: rgba(255,220,80,0.5);
  color: #ffe477;
}
.poster-clue-arrow {
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  font-weight: 700;
}

/* ── Export panel redesign ── */
.export-step { display: flex; flex-direction: column; gap: 12px; }
.export-date-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding: 4px 0;
}
.export-date-chip {
  padding: 7px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.12);
  color: rgba(255,250,241,0.75);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.export-date-chip.active {
  background: rgba(255,140,26,0.22);
  border-color: rgba(255,140,26,0.6);
  color: #ff8c1a;
}
.export-date-chip:hover { border-color: rgba(255,255,255,0.28); }
.export-confirm-btn {
  align-self: flex-end;
  padding: 9px 22px;
  border-radius: 20px;
  background: #ff8c1a;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.15s;
}
.export-confirm-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.export-confirm-btn:not(:disabled):hover { opacity: 0.85; }

.export-type-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.export-type-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.1);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.export-type-btn:hover {
  background: rgba(255,140,26,0.15);
  border-color: rgba(255,140,26,0.4);
}
.et-icon { font-size: 22px; flex-shrink: 0; }
.export-type-btn strong { font-size: 15px; font-weight: 800; display: block; }
.export-type-btn small { font-size: 11px; color: rgba(255,255,255,0.45); display: block; margin-top: 2px; }
.export-back-btn {
  align-self: flex-start;
  padding: 7px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.export-back-btn:hover { background: rgba(255,255,255,0.12); }

/* ── Sentence mode picker modal ─────────────────────────────────── */
.sentence-mode-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.sentence-mode-overlay.show {
  opacity: 1;
  pointer-events: all;
}
.sentence-mode-picker {
  position: relative;
  width: min(400px, calc(100vw - 32px));
  background: rgba(18, 24, 42, 0.94);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 28px;
  padding: 32px 20px 24px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.08);
  text-align: center;
}
.sentence-mode-picker .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
  font-size: 16px;
  line-height: 30px;
  cursor: pointer;
  transition: background 0.15s;
}
.sentence-mode-picker .modal-close:hover {
  background: rgba(255,255,255,0.18);
}
.sentence-mode-picker h2 {
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  margin: 0 0 6px;
  letter-spacing: -0.4px;
}
.sentence-mode-sub {
  color: rgba(255,255,255,0.35);
  font-size: 15px;
  margin: 0 0 24px;
  letter-spacing: 0.1px;
}
.sentence-mode-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sentence-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px 14px 22px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.sentence-mode-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 20px 20px 0 0;
}
.sentence-mode-btn:active {
  transform: scale(0.97);
}
.sentence-mode-btn--semantic {
  border-color: rgba(98,255,127,0.3);
  background: linear-gradient(170deg, rgba(98,255,127,0.1) 0%, rgba(98,255,127,0.03) 100%);
}
.sentence-mode-btn--semantic::before {
  background: linear-gradient(90deg, #62ff7f, #00d96a);
}
.sentence-mode-btn--semantic:hover {
  border-color: rgba(98,255,127,0.55);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(98,255,127,0.18);
}
.sentence-mode-btn--scenario {
  border-color: rgba(56,215,255,0.3);
  background: linear-gradient(170deg, rgba(56,215,255,0.1) 0%, rgba(56,215,255,0.03) 100%);
}
.sentence-mode-btn--scenario::before {
  background: linear-gradient(90deg, #38d7ff, #0094cc);
}
.sentence-mode-btn--scenario:hover {
  border-color: rgba(56,215,255,0.55);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(56,215,255,0.18);
}
.sentence-mode-btn strong { font-size: 22px; font-weight: 900; letter-spacing: -0.3px; }
.sentence-mode-btn small { font-size: 14px; color: rgba(255,255,255,0.45); letter-spacing: 0.1px; }
.sentence-mode-btn--semantic strong { color: #62ff7f; }
.sentence-mode-btn--scenario strong { color: #38d7ff; }

/* ── Scenario mode overlay ──────────────────────────────────────── */
.scenario-overlay { z-index: 100 !important; }
.scenario-overlay.show { display: block !important; overflow: auto !important; }
.scenario-page .vocab-learn-head p { display: block !important; }

/* Sentence lines inside scenario reuse vocab-learn-question colors */
#scenarioSentences .sentence-line {
  display: block;
  font-size: 26px;
  font-weight: 850;
  line-height: 1.35;
  margin: 0 0 14px;
  color: #fffaf1;
}
#scenarioSentences .sentence-line:last-child { margin-bottom: 0; }
#scenarioSentences .sentence-line:nth-child(2) { color: #ff9b30; }
#scenarioSentences .sentence-line:nth-child(3) { color: #b45cff; }

/* T/F question area */
.scenario-tf-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 22px;
}
.scenario-tf-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,0.04);
  border-radius: 22px;
  padding: 20px 24px;
}
.scenario-tf-item.correct { background: rgba(98,255,127,0.07); }
.scenario-tf-item.wrong   { background: rgba(255,80,80,0.07); }
.scenario-tf-statement {
  flex: 1;
  color: rgba(255,250,241,0.88);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.4;
  margin: 0;
}
.scenario-tf-buttons { display: flex; gap: 12px; flex-shrink: 0; }
.scenario-tf-btn {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 950;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.1s, opacity 0.15s;
}
.scenario-tf-true  { background: #62ff7f; color: #0e1020; box-shadow: 0 8px 24px rgba(98,255,127,0.28); }
.scenario-tf-false { background: #ff5050; color: #fff;    box-shadow: 0 8px 24px rgba(255,80,80,0.28); }
.scenario-tf-btn:hover:not(:disabled) { transform: scale(1.1); }
.scenario-tf-btn:disabled { cursor: default; transform: none; }
.scenario-tf-btn.selected-correct { outline: 3px solid rgba(255,255,255,0.6); outline-offset: 2px; }
.scenario-tf-btn.selected-wrong   { opacity: 0.22; }
.scenario-tf-btn.reveal-correct   { opacity: 0.55; }

/* Quiz accuracy area + refresh button */
.quiz-accuracy-area { display: flex; align-items: center; gap: 8px; }
.quiz-refresh-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,250,241,0.7);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.quiz-refresh-btn:hover { background: rgba(255,255,255,0.18); transform: rotate(180deg); }
.round-counter-area { display: flex; align-items: center; gap: 8px; }
.profile-refresh-btn { width: 30px; height: 30px; font-size: 15px; }

/* Larger home trend charts */
.home-data-grid .home-wide-card { grid-template-columns: minmax(0, 1fr) 220px !important; }
.home-data-grid .home-wide-card .home-arc {
  width: 208px !important;
  height: 118px !important;
  border-radius: 104px 104px 16px 16px !important;
}
.home-mini-trend { height: 130px !important; }
.home-rate-card .home-rate-ring { width: 208px !important; height: 118px !important; }

/* --- Redesigned home goal section v2 --- */
/* Copy column: flex column, fill space */
.home-hero.home-card .home-goal-copy,
.home-goal-copy {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 2px 0 !important;
}

/* ── TODAY section (hero) ─────────────────────── */
.home-goal-daily-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}
.home-goal-daily-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,250,241,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}
.home-goal-daily-hero {
  line-height: 1;
  margin: 2px 0 4px;
}
.home-goal-daily-hero strong {
  font-size: 30px !important;
  font-weight: 950 !important;
  color: rgba(255,250,241,0.97) !important;
  letter-spacing: -0.5px;
}
.home-goal-daily-track {
  width: 100%;
  height: 9px;
  background: rgba(255,255,255,0.1);
  border-radius: 5px;
  overflow: hidden;
}
.home-goal-daily-bar {
  height: 100%;
  border-radius: 5px;
  width: 0%;
  background: #38d7ff;
  transition: width 0.45s ease, background 0.3s ease;
}
#homeGoalBadge {
  font-size: 11px !important;
  font-weight: 800 !important;
  margin-top: 1px !important;
  color: rgba(255,250,241,0.75) !important;
  display: block !important;
}
#homeGoalBadge[hidden] { display: none !important; }

/* ── TOTAL section (secondary) ───────────────── */
.home-goal-total-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.home-goal-total-label {
  font-size: 11px !important;
  color: rgba(255,250,241,0.42) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  white-space: nowrap;
}
.home-goal-score {
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.home-goal-score strong {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: rgba(255,250,241,0.65) !important;
}
.home-goal-score em {
  font-size: 13px !important;
  font-style: normal !important;
  color: rgba(255,250,241,0.38) !important;
  font-weight: 600 !important;
}

/* === Topbar layout: flex, goal-area left + target-control right === */
.topbar {
  display: flex !important;
  align-items: stretch !important;
  gap: 14px !important;
  grid-template-columns: none !important;
}

/* === Target control narrow + button fix (must stay last) === */
.top-dashboard {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  grid-template-columns: none !important;
}
.top-dashboard .target-control {
  max-width: 440px !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
  padding: 10px 14px !important;
  gap: 8px !important;
}
.top-dashboard .target-control .target-row {
  grid-template-columns: minmax(0, 1fr) 38px 38px !important;
  column-gap: 8px !important;
  align-items: center !important;
}
.top-dashboard .target-control .target-input-wrap {
  padding: 6px 10px 6px 14px !important;
  border-radius: 16px !important;
}
.top-dashboard .target-control .target-input-wrap input#targetInput {
  font-size: clamp(18px, 1.8vw, 26px) !important;
}
.top-dashboard .target-control .target-favorite-button,
.top-dashboard .target-control #randomTargetButton {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  flex: 0 0 38px !important;
  align-self: center !important;
}
#addToVocabButton {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 20px !important;
}
.top-dashboard .target-control .target-label-row {
  align-items: center !important;
  gap: 6px !important;
}
.top-dashboard .target-control .target-meta {
  gap: 5px !important;
}

/* === Topbar goal area card === */
.topbar-goal-area {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border: 1px solid rgba(137, 225, 255, 0.14);
  border-radius: 24px;
  background: rgba(8, 12, 26, 0.42);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  text-align: left;
}
.topbar-goal-area:hover {
  border-color: rgba(85, 214, 255, 0.38);
  transform: translateY(-1px);
  box-shadow: 0 22px 54px rgba(85, 214, 255, 0.1);
}
.topbar-goal-ring-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  background:
    radial-gradient(circle at center, rgba(8, 12, 26, 0.97) 58%, transparent 60%),
    conic-gradient(var(--ring-color, #62ff7f) 0 var(--goal-progress, 0%), rgba(255, 255, 255, 0.09) 0 100%);
  box-shadow: 0 0 18px color-mix(in srgb, var(--ring-color, #62ff7f) 20%, transparent);
}
.topbar-goal-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.topbar-goal-ring-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1;
  letter-spacing: 0.04em;
}
.topbar-goal-ring-score {
  font-size: 24px;
  font-weight: 900;
  color: var(--ring-color, #62ff7f);
  line-height: 1;
  letter-spacing: -0.02em;
}
.topbar-goal-ring-status {
  font-size: 11px;
  font-weight: 700;
  color: var(--ring-color, #62ff7f);
  line-height: 1;
  min-height: 13px;
  opacity: 0.8;
}

/* === Goal ring SVG === */
#goalRingSvg {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

/* === Session vocab rate card === */
.topbar-vocab-card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border: 1px solid rgba(77, 166, 255, 0.22);
  border-radius: 24px;
  background: rgba(8, 12, 26, 0.42);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: border-color 300ms ease;
}
.vocab-rate-num {
  font-size: 24px;
  font-weight: 900;
  color: #4da6ff;
  line-height: 1;
  letter-spacing: -0.02em;
  transition: color 300ms ease;
}
