:root {
  --bg: #f3f0e7;
  --bg-deep: #eae5d9;
  --surface: #fffdf8;
  --surface-soft: #f8f5ed;
  --surface-tint: #eef1e8;
  --ink: #172a23;
  --ink-soft: #32453d;
  --muted: #748078;
  --muted-soft: #98a29b;
  --line: rgba(23, 42, 35, 0.11);
  --line-strong: rgba(23, 42, 35, 0.19);
  --green: #173f34;
  --green-2: #205244;
  --green-3: #2d6554;
  --mint: #dce9df;
  --mint-strong: #b9d3c2;
  --coral: #ee6b4d;
  --coral-dark: #cf5135;
  --coral-soft: #fbe2da;
  --gold: #f3b85e;
  --gold-soft: #faefd7;
  --white: #fffdf8;
  --shadow-sm: 0 8px 25px -16px rgba(23, 63, 52, 0.38);
  --shadow-md: 0 28px 60px -34px rgba(23, 63, 52, 0.4);
  --shadow-lg: 0 40px 100px -42px rgba(23, 63, 52, 0.55);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --sidebar: 252px;
  --font-sans: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Bodoni 72", "Didot", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

html[data-font-family="serif"] {
  --font-sans: "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-display: "Bodoni 72", "Didot", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-mono: "Courier New", "Cascadia Code", Consolas, "SimSun", monospace;
}

html[data-font-family="mono"] {
  --font-sans: "Cascadia Code", "SFMono-Regular", Consolas, "Microsoft YaHei", "PingFang SC", monospace;
  --font-display: "Cascadia Code", "SFMono-Regular", Consolas, "Microsoft YaHei", monospace;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #0e1713;
  --bg-deep: #0b120f;
  --surface: #15211c;
  --surface-soft: #1a2822;
  --surface-tint: #1c2d26;
  --ink: #f2efe5;
  --ink-soft: #d8ddd6;
  --muted: #97a59d;
  --muted-soft: #74837b;
  --line: rgba(242, 239, 229, 0.1);
  --line-strong: rgba(242, 239, 229, 0.19);
  --green: #0c1a15;
  --green-2: #16382e;
  --green-3: #225a48;
  --mint: #1e382e;
  --mint-strong: #315745;
  --coral: #f1795b;
  --coral-dark: #ff8f72;
  --coral-soft: #3a221c;
  --gold: #efb75c;
  --gold-soft: #352d1a;
  --white: #f6f2e7;
  --shadow-sm: 0 8px 25px -16px rgba(0, 0, 0, 0.7);
  --shadow-md: 0 28px 60px -34px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 40px 100px -42px rgba(0, 0, 0, 0.9);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 8%, rgba(243, 184, 94, 0.12), transparent 26rem),
    radial-gradient(circle at 18% 92%, rgba(46, 107, 89, 0.08), transparent 30rem);
  content: "";
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(238, 107, 77, 0.5);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

h1,
h2,
h3,
p {
  margin: 0;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

::selection {
  background: var(--gold);
  color: var(--green);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 10px;
  background: var(--line-strong);
  background-clip: padding-box;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  padding: 28px 18px 22px;
  overflow: hidden;
  background: var(--green);
  color: #f9f5e9;
}

.sidebar::before {
  position: absolute;
  right: -100px;
  bottom: -90px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(255, 253, 248, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255, 253, 248, 0.025), 0 0 0 90px rgba(255, 253, 248, 0.018);
  content: "";
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 8px;
  border: 0;
  background: none;
  color: #fffdf8;
  text-align: left;
}

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  border-radius: 14px;
  background: var(--gold);
  color: var(--green);
}

.brand-mark svg {
  width: 33px;
  height: 33px;
  stroke: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  margin-left: 12px;
  line-height: 1;
}

.brand-text strong {
  font-family: "Songti SC", "STSong", var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-text small {
  margin-top: 7px;
  color: rgba(255, 253, 248, 0.5);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.main-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 44px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 253, 248, 0.55);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-item svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.65;
}

.nav-item:hover {
  background: rgba(255, 253, 248, 0.055);
  color: rgba(255, 253, 248, 0.88);
}

.nav-item.is-active {
  background: rgba(255, 253, 248, 0.105);
  color: #fffdf8;
}

.nav-dot {
  width: 5px;
  height: 5px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transform: scale(0);
  transition: 180ms ease;
}

.nav-item.is-active .nav-dot {
  opacity: 1;
  transform: scale(1);
}

.sidebar-spacer {
  flex: 1;
  min-height: 24px;
}

.sidebar-goal {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid rgba(255, 253, 248, 0.08);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.045);
}

.goal-ring {
  --progress: 0;
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--progress) * 1%), var(--line-strong) 0);
  box-shadow: inset 0 0 0 1px rgba(23, 63, 52, 0.04);
}

.sidebar-goal .goal-ring {
  background: conic-gradient(var(--gold) calc(var(--progress) * 1%), rgba(255, 253, 248, 0.11) 0);
  box-shadow: none;
}

.goal-ring::before {
  position: absolute;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.goal-ring > div {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.goal-ring strong {
  font-family: var(--font-mono);
  font-weight: 600;
}

.goal-ring span {
  color: var(--muted);
  font-size: 11px;
}

.goal-ring-sm {
  width: 54px;
  height: 54px;
}

.goal-ring-sm::before {
  inset: 5px;
}

.goal-ring-sm strong {
  color: #fffdf8;
  font-size: 12px;
}

.goal-ring-sm span {
  color: rgba(255, 253, 248, 0.44);
}

.goal-ring-lg {
  width: 166px;
  height: 166px;
}

.goal-ring-lg::before {
  inset: 12px;
  background: var(--surface);
}

.goal-ring-lg strong {
  color: var(--ink);
  font-size: 27px;
}

.goal-ring-lg span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.sidebar-goal-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.sidebar-goal-copy span {
  color: rgba(255, 253, 248, 0.45);
  font-size: 11.5px;
}

.sidebar-goal-copy strong {
  overflow: hidden;
  color: #fffdf8;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-bottom {
  position: relative;
  margin-top: 18px;
}

.theme-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 8px;
  border: 0;
  background: transparent;
  color: rgba(255, 253, 248, 0.55);
  font-size: 12px;
  text-align: left;
}

.theme-row-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.07);
}

.theme-row-icon svg {
  width: 15px;
  height: 15px;
}

.theme-row-text {
  flex: 1;
}

.switch {
  position: relative;
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.14);
  transition: background 180ms ease;
}

.switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.65);
  transition: transform 180ms ease, background 180ms ease;
}

[data-theme="dark"] .switch {
  background: var(--gold);
}

[data-theme="dark"] .switch i {
  background: var(--green);
  transform: translateX(13px);
}

.sidebar-note {
  margin: 10px 8px 0;
  color: rgba(255, 253, 248, 0.28);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

.mobile-header,
.mobile-nav {
  display: none;
}

.main {
  width: calc(100% - var(--sidebar));
  min-height: 100vh;
  margin-left: var(--sidebar);
  padding: 34px clamp(28px, 4vw, 60px) 34px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1420px;
  margin: 0 auto 30px;
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.topbar h1 {
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.streak-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
}

.streak-pill svg {
  width: 15px;
  height: 15px;
  color: var(--coral);
  fill: var(--coral-soft);
}

.streak-pill strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
}

.round-action {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, background 180ms ease;
}

.round-action svg {
  width: 17px;
  height: 17px;
}

.round-action:hover {
  background: var(--gold-soft);
  transform: rotate(8deg) scale(1.04);
}

.view {
  display: none;
  max-width: 1420px;
  margin: 0 auto;
}

.view.is-active {
  display: block;
  animation: view-rise 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes view-rise {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

.dashboard-top {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(262px, 0.72fr);
  gap: 18px;
}

.hero-card {
  position: relative;
  display: flex;
  min-height: 336px;
  padding: 36px 38px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.035), transparent 48%),
    var(--green);
  color: #fffdf8;
  box-shadow: var(--shadow-md);
}

.hero-card::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 253, 248, 0.08) 0.7px, transparent 0.7px);
  background-size: 15px 15px;
  content: "";
  mask-image: linear-gradient(90deg, #000, transparent 70%);
  opacity: 0.42;
}

.hero-card::after {
  position: absolute;
  right: -100px;
  bottom: -175px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255, 253, 248, 0.11);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255, 253, 248, 0.03), 0 0 0 90px rgba(255, 253, 248, 0.02);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 380px;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 253, 248, 0.13);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.075);
  color: rgba(255, 253, 248, 0.72);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.hero-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(243, 184, 94, 0.18);
}

.hero-badge-dark {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--muted);
}

.hero-badge-dark i {
  background: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-soft);
}

.hero-copy h2 {
  margin-top: 22px;
  font-size: clamp(34px, 3.8vw, 50px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.hero-copy p {
  max-width: 335px;
  margin-top: 16px;
  color: rgba(255, 253, 248, 0.57);
  font-size: 12px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
  padding-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button svg {
  width: 16px;
  height: 16px;
  transition: transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:hover svg {
  transform: translateX(3px);
}

.button-light {
  background: var(--gold);
  color: var(--green);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.55);
}

.button-light:hover {
  background: #f7c675;
}

.button-ghost-light {
  border-color: rgba(255, 253, 248, 0.19);
  background: transparent;
  color: rgba(255, 253, 248, 0.8);
}

.button-ghost-light:hover {
  background: rgba(255, 253, 248, 0.07);
}

.button-dark {
  background: var(--green);
  color: #fffdf8;
}

.button-accent {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 12px 28px -18px var(--coral);
}

.button-accent:hover {
  background: var(--coral-dark);
}

.button-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.button-wide {
  width: 100%;
}

.hero-art {
  position: absolute;
  top: 50%;
  right: 5%;
  z-index: 1;
  width: 330px;
  height: 260px;
  transform: translateY(-50%);
}

.art-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  border: 1px dashed rgba(243, 184, 94, 0.27);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.art-orbit::before {
  position: absolute;
  top: 12px;
  right: 32px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(243, 184, 94, 0.12);
  content: "";
}

.word-tile {
  position: absolute;
  display: flex;
  flex-direction: column;
  padding: 17px 20px;
  border: 1px solid rgba(255, 253, 248, 0.12);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.08);
  box-shadow: 0 22px 40px -30px #000;
  backdrop-filter: blur(8px);
  animation: float-card 6s ease-in-out infinite;
}

.word-tile small {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
}

.word-tile strong {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.word-tile span {
  margin-top: 2px;
  color: rgba(255, 253, 248, 0.45);
  font-size: 11px;
}

.tile-one {
  top: 30px;
  left: 1px;
  width: 155px;
  transform: rotate(-7deg);
}

.tile-two {
  right: -5px;
  bottom: 28px;
  width: 183px;
  background: rgba(243, 184, 94, 0.93);
  border-color: transparent;
  color: var(--green);
  animation-delay: -3s;
  transform: rotate(6deg);
}

.tile-two small,
.tile-two span {
  color: rgba(23, 63, 52, 0.55);
}

.tile-two strong {
  color: var(--green);
  font-size: 25px;
}

.art-badge {
  position: absolute;
  top: 4px;
  right: 33px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11.5px;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.6);
  animation: float-badge 4s ease-in-out infinite;
}

.art-badge svg {
  width: 11px;
  height: 11px;
}

@keyframes float-card {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-7px) rotate(4deg); }
}

.goal-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.card-heading select {
  padding: 4px 22px 4px 8px;
  border: 0;
  border-radius: 7px;
  appearance: none;
  background: var(--surface-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23748078' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 7px center;
  color: var(--muted);
  font-size: 11.5px;
  cursor: pointer;
}

.goal-card .goal-ring {
  margin: 20px 0 15px;
}

.goal-count {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.goal-count strong {
  color: var(--ink);
  font-size: 14px;
}

.goal-count span {
  color: var(--ink);
}

.goal-message {
  min-height: 33px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.text-button svg {
  width: 13px;
  height: 13px;
  transition: transform 180ms ease;
}

.text-button:hover svg {
  transform: translateX(3px);
}

.text-button-light {
  color: rgba(255, 253, 248, 0.65);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.mini-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.mini-stat-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 12px;
}

.mini-stat-icon svg {
  width: 18px;
  height: 18px;
}

.mini-stat-icon.coral {
  background: var(--coral-soft);
  color: var(--coral);
}

.mini-stat-icon.green {
  background: var(--mint);
  color: var(--green-3);
}

.mini-stat-icon.gold {
  background: var(--gold-soft);
  color: #a97724;
}

.mini-stat > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.35;
}

.mini-stat > div span {
  color: var(--muted);
  font-size: 11px;
}

.mini-stat > div strong {
  font-size: 12px;
  font-weight: 600;
}

.mini-stat > div b {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
}

.mini-stat > small {
  margin-left: auto;
  overflow: hidden;
  color: var(--muted-soft);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(280px, 0.78fr);
  gap: 16px;
  margin-top: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.plan-panel {
  padding: 23px 24px 16px;
}

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

.panel-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--muted-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.panel-head h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.panel-date {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
}

.plan-list {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.plan-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
}

.plan-item:last-child {
  border-bottom: 0;
}

.plan-index {
  color: var(--muted-soft);
  font-family: var(--font-mono);
  font-size: 11px;
}

.plan-main {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.plan-main strong {
  font-size: 12px;
  font-weight: 600;
}

.plan-main small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-status {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: 180ms ease;
}

.plan-status svg {
  width: 12px;
  height: 12px;
}

.plan-item:hover .plan-status {
  border-color: transparent;
  background: var(--green);
  color: #fff;
  transform: translateX(2px);
}

.plan-status.is-done {
  border-color: transparent;
  background: var(--mint);
  color: var(--green-3);
}

.quote-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  background: var(--green);
  color: #fffdf8;
}

.quote-panel::after {
  position: absolute;
  right: -54px;
  bottom: -74px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(255, 253, 248, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(255, 253, 248, 0.02);
  content: "";
}

.quote-panel .panel-kicker {
  color: rgba(255, 253, 248, 0.36);
}

.daily-word {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.daily-word h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.daily-word p {
  margin-top: 6px;
  color: rgba(255, 253, 248, 0.4);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.sound-button {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition: 180ms ease;
}

.sound-button svg {
  width: 15px;
  height: 15px;
}

.sound-button:hover {
  border-color: transparent;
  background: var(--gold);
  color: var(--green);
  transform: scale(1.05);
}

.quote-panel .sound-button {
  border-color: rgba(255, 253, 248, 0.14);
  color: rgba(255, 253, 248, 0.7);
}

.quote-panel .sound-button:hover {
  background: var(--gold);
  color: var(--green);
}

.daily-meaning {
  margin-top: 9px;
  color: rgba(255, 253, 248, 0.68);
  font-size: 12px;
}

.quote-rule {
  width: 100%;
  height: 1px;
  margin: 17px 0 13px;
  background: rgba(255, 253, 248, 0.1);
}

.daily-quote {
  color: rgba(255, 253, 248, 0.46);
  font-family: var(--font-display);
  font-size: 12px;
  font-style: italic;
  line-height: 1.6;
}

.daily-word-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
}

.daily-word-foot > span {
  padding: 4px 8px;
  border: 1px solid rgba(255, 253, 248, 0.13);
  border-radius: 999px;
  color: rgba(255, 253, 248, 0.55);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.daily-word-foot .text-button {
  margin-top: 0;
}

.study-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto 20px;
}

.level-switch,
.filter-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.chip {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: 160ms ease;
}

.chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.chip.is-active {
  border-color: var(--green);
  background: var(--green);
  color: #fffdf8;
}

.segmented {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.segmented button {
  min-width: 68px;
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  transition: 160ms ease;
}

.segmented button.is-active {
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .segmented button.is-active {
  background: var(--gold);
  color: var(--green);
}

.study-shell {
  max-width: 960px;
  margin: 0 auto;
}

.study-progress-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 4px;
}

.study-progress-copy {
  display: flex;
  min-width: 82px;
  flex-direction: column;
  gap: 2px;
}

.study-progress-copy span {
  color: var(--muted);
  font-size: 11px;
}

.study-progress-copy strong {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.progress-track {
  height: 5px;
  flex: 1;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-deep);
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--gold));
  transition: width 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.study-session-stats {
  display: flex;
  gap: 13px;
  color: var(--muted);
  font-size: 11px;
}

.study-session-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.study-session-stats b {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot.know,
.dot.mastered {
  background: #4f8d72;
}

.dot.again {
  background: var(--coral);
}

.dot.learning {
  background: var(--gold);
}

.dot.fresh {
  background: var(--muted-soft);
}

.study-stage {
  min-height: 458px;
  padding: 24px 0 6px;
}

.flashcard {
  position: relative;
  width: 100%;
  height: 390px;
  perspective: 1600px;
  outline: none;
  cursor: pointer;
}

.flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
}

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

.flashcard-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 34px 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  backface-visibility: hidden;
}

.flashcard-front::before {
  position: absolute;
  top: -140px;
  right: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-soft), transparent 63%);
  content: "";
}

.flashcard-front::after {
  position: absolute;
  right: 36px;
  bottom: 30px;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(243, 184, 94, 0.06);
  content: "";
}

.flashcard-back {
  transform: rotateY(180deg);
  background: var(--green);
  color: #fffdf8;
}

.flashcard-back::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 253, 248, 0.07) 0.7px, transparent 0.7px);
  background-size: 14px 14px;
  content: "";
  opacity: 0.45;
}

.card-topline,
.word-core,
.card-tip,
.back-meaning,
.example-block,
.card-back-foot {
  position: relative;
  z-index: 1;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-topline .level-tag,
.level-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.level-tag::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.level-tag.level-6::before {
  background: var(--gold);
}

.flashcard-back .level-tag {
  background: rgba(255, 253, 248, 0.09);
  color: rgba(255, 253, 248, 0.6);
}

.card-index {
  color: var(--muted-soft);
  font-family: var(--font-mono);
  font-size: 11px;
}

.word-core {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 20px;
}

.word-core h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-align: center;
  overflow-wrap: anywhere;
}

.word-core .phonetic {
  margin-top: 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.word-pronounce {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  transition: 160ms ease;
}

.word-pronounce svg {
  width: 12px;
  height: 12px;
}

.word-pronounce:hover {
  border-color: transparent;
  background: var(--gold);
  color: var(--green);
}

.card-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--muted-soft);
  font-size: 11px;
}

kbd {
  display: inline-block;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.2;
}

.back-meaning {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}

.pos-chip {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--coral-soft);
  color: var(--coral-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.flashcard-back .pos-chip {
  background: rgba(243, 184, 94, 0.15);
  color: var(--gold);
}

.back-meaning h3 {
  font-size: clamp(24px, 3.2vw, 33px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.example-block {
  margin-top: 30px;
  padding-left: 16px;
  border-left: 2px solid rgba(243, 184, 94, 0.5);
}

.example-block p {
  color: rgba(255, 253, 248, 0.9);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
}

.example-block span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 253, 248, 0.45);
  font-size: 11.5px;
}

.example-empty {
  border-left-color: rgba(243, 184, 94, 0.25);
  opacity: 0.78;
}

.example-empty p {
  font-size: 15px;
  font-style: italic;
}

.card-back-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 253, 248, 0.09);
}

.card-back-foot span {
  color: rgba(255, 253, 248, 0.35);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.card-back-foot .sound-button {
  border-color: rgba(255, 253, 248, 0.14);
  color: rgba(255, 253, 248, 0.7);
}

.study-actionbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 58px;
  padding-top: 14px;
}

.reveal-button {
  min-width: 200px;
}

.grade-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 165px;
  height: 47px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: 180ms ease;
}

.grade-button svg {
  width: 15px;
  height: 15px;
}

.grade-button small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
}

.grade-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.grade-again:hover {
  border-color: rgba(238, 107, 77, 0.4);
  background: var(--coral-soft);
  color: var(--coral-dark);
}

.grade-know {
  border-color: transparent;
  background: var(--green);
  color: #fffdf8;
}

.grade-know:hover {
  background: var(--green-2);
}

.study-shortcuts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 14px 0 0;
  color: var(--muted-soft);
  font-size: 10.5px;
}

.study-shortcuts > span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.shortcut-sound {
  margin-left: 5px;
}

.shortcut-sound svg {
  width: 11px;
  height: 11px;
}

.spell-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: 28px 34px 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.spell-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  text-align: center;
}

.spell-kicker {
  color: var(--muted-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.15em;
}

.spell-clue {
  display: flex;
  margin-top: 12px;
  flex-direction: column;
  align-items: center;
}

.spell-clue h3 {
  margin-top: 10px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.spell-clue .phonetic {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.spell-hint {
  margin-top: 12px;
  color: var(--muted-soft);
  font-size: 11px;
}

.spell-form {
  display: flex;
  width: min(100%, 430px);
  gap: 8px;
  margin-top: 24px;
}

.spell-input {
  width: 100%;
  height: 50px;
  padding: 0 17px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.02em;
  text-align: center;
  transition: border 160ms ease, box-shadow 160ms ease;
}

.spell-input::placeholder {
  color: var(--muted-soft);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0;
}

.spell-input:focus {
  border-color: var(--green-3);
  outline: 0;
  box-shadow: 0 0 0 3px var(--mint);
}

.spell-form .button {
  flex: 0 0 auto;
  height: 50px;
}

.spell-feedback {
  width: min(100%, 550px);
  margin-top: 20px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
  text-align: left;
  animation: view-rise 300ms ease both;
}

.spell-feedback.correct {
  border-color: rgba(79, 141, 114, 0.32);
  background: var(--mint);
}

.spell-feedback.incorrect {
  border-color: rgba(238, 107, 77, 0.3);
  background: var(--coral-soft);
}

.feedback-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}

.feedback-head svg {
  width: 15px;
  height: 15px;
}

.spell-feedback.correct .feedback-head {
  color: var(--green-3);
}

.spell-feedback.incorrect .feedback-head {
  color: var(--coral-dark);
}

.spell-feedback .feedback-word {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 20px;
}

.spell-feedback .feedback-example {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.spell-next-row {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.study-finished {
  display: flex;
  min-height: 460px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.finished-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green);
  box-shadow: 0 0 0 12px var(--gold-soft);
}

.finished-mark svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.4;
}

.study-finished h2 {
  margin-top: 30px;
  font-size: 29px;
  letter-spacing: -0.04em;
}

.study-finished p {
  max-width: 340px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.finished-stats {
  display: flex;
  gap: 36px;
  margin-top: 23px;
}

.finished-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.finished-stats strong {
  font-family: var(--font-mono);
  font-size: 24px;
}

.finished-stats span {
  color: var(--muted);
  font-size: 10.5px;
}

.finished-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
}

.library-toolbar {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--muted);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-box:focus-within {
  border-color: var(--green-3);
  box-shadow: 0 0 0 3px var(--mint);
}

.search-box svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.search-box input::placeholder {
  color: var(--muted-soft);
}

.search-count {
  color: var(--muted-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

.library-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
}

.filter-reset {
  margin-left: auto;
  padding: 5px 0;
  border: 0;
  background: none;
  color: var(--coral);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.filter-reset:hover {
  color: var(--coral-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.word-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(234px, 1fr));
  gap: 11px;
  margin-top: 16px;
}

.library-more {
  display: flex;
  justify-content: center;
  padding: 22px 0 6px;
}

.library-more[hidden] {
  display: none;
}

.library-more .button {
  gap: 9px;
  min-width: 170px;
}

.library-more small {
  color: var(--muted-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
}

.word-card {
  position: relative;
  display: flex;
  min-height: 167px;
  flex-direction: column;
  padding: 17px 18px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.word-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.word-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.word-card .level-tag {
  background: transparent;
  padding-left: 0;
}

.star-button {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted-soft);
  transition: 160ms ease;
}

.star-button svg {
  width: 14px;
  height: 14px;
}

.star-button:hover {
  background: var(--gold-soft);
  color: #a97724;
}

.star-button.is-favorite {
  color: #d3952f;
}

.star-button.is-favorite svg {
  fill: currentColor;
}

.word-card h3 {
  margin-top: 10px;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.word-card .phonetic {
  margin-top: 3px;
  color: var(--muted-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.word-card-meaning {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.word-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 11px;
}

.word-status {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-soft);
  font-size: 10.5px;
}

.word-card-foot > svg {
  width: 13px;
  height: 13px;
  color: var(--muted-soft);
  transition: transform 160ms ease;
}

.word-card:hover .word-card-foot > svg {
  color: var(--ink);
  transform: translateX(3px);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 70px 20px;
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
}

.empty-state h3 {
  margin-top: 17px;
  font-size: 17px;
}

.empty-state p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
}

.empty-state .button {
  margin-top: 18px;
}

.quiz-setup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 16px;
  min-height: 535px;
}

.quiz-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(30px, 5vw, 60px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 15%, rgba(243, 184, 94, 0.1), transparent 17rem),
    var(--green);
  color: #fffdf8;
  box-shadow: var(--shadow-md);
}

.quiz-intro h2 {
  margin-top: 20px;
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.13;
}

.quiz-intro > p {
  max-width: 355px;
  margin-top: 16px;
  color: rgba(255, 253, 248, 0.52);
  font-size: 12px;
  line-height: 1.8;
}

.quiz-rules {
  display: flex;
  width: 100%;
  gap: 24px;
  margin-top: auto;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 253, 248, 0.11);
}

.quiz-rules span {
  display: flex;
  flex-direction: column;
  color: rgba(255, 253, 248, 0.38);
  font-size: 10.5px;
}

.quiz-rules b {
  margin-bottom: 1px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
}

.quiz-config {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.config-block {
  margin-bottom: 22px;
}

.config-label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.option-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  text-align: left;
  transition: 160ms ease;
}

.option-card:hover {
  border-color: var(--line-strong);
}

.option-card.is-active {
  border-color: var(--green-3);
  background: var(--mint);
}

.option-mark {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 14px;
}

.option-card.is-active .option-mark {
  background: var(--green);
  color: var(--gold);
}

.option-card strong {
  font-size: 11.5px;
  font-weight: 700;
}

.option-card small {
  margin-left: auto;
  color: var(--muted-soft);
  font-size: 10.5px;
}

.direction-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.direction-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease;
}

.direction-card:hover {
  border-color: var(--line-strong);
}

.direction-card.is-active {
  border-color: var(--green-3);
  background: var(--mint);
}

.direction-code {
  color: var(--muted-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.direction-card.is-active .direction-code {
  color: var(--green-3);
}

.direction-card strong {
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quiz-mode-note {
  margin-top: 7px;
  color: var(--muted-soft);
  font-size: 10.5px;
}

.quiz-config .button-wide {
  margin-top: auto;
  height: 46px;
}

.quiz-play {
  max-width: 820px;
  margin: 0 auto;
}

.quiz-topline {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
}

.quiz-progress-wrap {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 15px;
}

.quiz-score {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.quiz-score strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 19px;
}

.quiet-button {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.quiet-button:hover {
  color: var(--ink);
}

.quiet-button.danger:hover {
  color: var(--coral);
}

.quiz-card {
  position: relative;
  padding: clamp(27px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  animation: view-rise 330ms ease both;
}

.quiz-question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-question-meta > span:last-child {
  color: var(--muted-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.quiz-word-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 27px 0 30px;
  text-align: center;
}

.quiz-word {
  font-family: var(--font-display);
  font-size: clamp(46px, 6.5vw, 67px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.quiz-meaning-prompt {
  display: flex;
  max-width: 640px;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}

.quiz-meaning {
  font-size: clamp(25px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.38;
  text-align: center;
  overflow-wrap: anywhere;
}

.quiz-choice .choice-word {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.01em;
}

.quiz-phonetic-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
}

.quiz-phonetic-row span {
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.quiz-phonetic-row .sound-button {
  width: 27px;
  height: 27px;
  border: 0;
}

.quiz-phonetic-row .sound-button svg {
  width: 12px;
  height: 12px;
}

.quiz-prompt {
  color: var(--muted-soft);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.quiz-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quiz-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 12px;
  text-align: left;
  transition: 160ms ease;
}

.quiz-choice:hover:not(:disabled) {
  border-color: var(--green-3);
  background: var(--mint);
}

.choice-letter {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.quiz-choice:hover:not(:disabled) .choice-letter {
  background: var(--green);
  color: #fff;
}

.quiz-choice.is-correct {
  border-color: #63987c;
  background: var(--mint);
  color: var(--green);
}

.quiz-choice.is-correct .choice-letter {
  background: #4f8d72;
  color: #fff;
}

.quiz-choice.is-wrong {
  border-color: var(--coral);
  background: var(--coral-soft);
  color: var(--coral-dark);
}

.quiz-choice.is-wrong .choice-letter {
  background: var(--coral);
  color: #fff;
}

.quiz-feedback {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 21px;
  padding: 14px 15px;
  border-radius: 12px;
  background: var(--surface-soft);
  animation: view-rise 260ms ease both;
}

.feedback-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border-radius: 50%;
}

.feedback-icon svg {
  width: 15px;
  height: 15px;
}

.quiz-feedback.correct .feedback-icon {
  background: var(--mint);
  color: var(--green-3);
}

.quiz-feedback.wrong .feedback-icon {
  background: var(--coral-soft);
  color: var(--coral);
}

.quiz-feedback-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.quiz-feedback-copy strong {
  font-size: 11.5px;
}

.quiz-feedback-copy span {
  color: var(--muted);
  font-size: 11px;
}

.quiz-feedback .button {
  min-height: 35px;
  margin-left: auto;
  padding: 0 14px;
  font-size: 11.5px;
}

.quiz-result {
  position: relative;
  display: flex;
  max-width: 720px;
  min-height: 560px;
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.quiz-result[hidden],
.quiz-play[hidden],
.quiz-setup[hidden],
.modal-backdrop[hidden] {
  display: none;
}

.result-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 520px;
  height: 520px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.result-orbit::before {
  position: absolute;
  inset: 55px;
  border: 1px dashed var(--line);
  border-radius: 50%;
  content: "";
}

.result-orbit i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.result-orbit i:nth-child(1) {
  top: 55px;
  left: 100px;
}

.result-orbit i:nth-child(2) {
  right: 42px;
  bottom: 160px;
  background: var(--coral);
}

.result-orbit i:nth-child(3) {
  bottom: 78px;
  left: 100px;
  background: var(--green-3);
}

.result-mark {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green);
  box-shadow: 0 0 0 10px var(--gold-soft);
}

.result-mark svg {
  width: 24px;
  height: 24px;
}

.quiz-result > .panel-kicker {
  margin-top: 28px;
}

.quiz-result h2 {
  margin-top: 5px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.quiz-result > p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
}

.result-score {
  display: flex;
  align-items: baseline;
  margin-top: 12px;
}

.result-score strong {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.result-score span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.result-stats {
  display: flex;
  gap: 38px;
  margin-top: 22px;
  padding: 18px 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.result-stats span {
  color: var(--muted-soft);
  font-size: 10.5px;
}

.result-stats strong {
  font-family: var(--font-mono);
  font-size: 14px;
}

.result-actions {
  display: flex;
  gap: 8px;
  margin-top: 25px;
}

.stats-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.big-stat {
  position: relative;
  display: flex;
  min-height: 178px;
  flex-direction: column;
  padding: 23px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.big-stat > span:first-child {
  color: var(--muted);
  font-size: 11.5px;
}

.big-stat > strong {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.big-stat > strong b {
  font-weight: inherit;
}

.big-stat > strong small {
  margin-left: 4px;
  color: var(--muted-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0;
}

.big-stat > p {
  margin-top: auto;
  color: var(--muted);
  font-size: 11px;
}

.big-stat-bar {
  width: 100%;
  height: 4px;
  margin-top: 15px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--bg-deep);
}

.big-stat-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green-3);
  transition: width 500ms ease;
}

.big-stat.accent {
  border-color: transparent;
  background: var(--green);
  color: #fffdf8;
}

.big-stat.accent > span:first-child,
.big-stat.accent > p {
  color: rgba(255, 253, 248, 0.45);
}

.big-stat.accent > strong small {
  color: rgba(255, 253, 248, 0.42);
}

.big-stat-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 253, 248, 0.08);
  color: var(--gold);
}

.big-stat-icon.green {
  background: var(--mint);
  color: var(--green-3);
}

.big-stat-icon svg {
  width: 18px;
  height: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, 0.7fr);
  gap: 13px;
  margin-top: 13px;
}

.chart-panel,
.mastery-panel {
  padding: 23px;
}

.chart-total {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.chart-total strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  height: 178px;
  margin-top: 22px;
  padding: 0 8px;
}

.bar-col {
  display: flex;
  height: 100%;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.bar-track {
  position: relative;
  width: min(100%, 30px);
  flex: 1;
  overflow: hidden;
  border-radius: 7px 7px 3px 3px;
  background: var(--surface-soft);
}

.bar-value {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  min-height: 3px;
  border-radius: inherit;
  background: var(--mint-strong);
  transition: height 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-col.is-today .bar-value {
  background: var(--coral);
}

.bar-col.is-today .bar-count {
  color: var(--coral);
  font-weight: 700;
}

.bar-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.bar-label {
  color: var(--muted-soft);
  font-size: 10.5px;
}

.mastery-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 210px;
  margin-top: 10px;
}

.mastery-ring .goal-ring-lg {
  width: 142px;
  height: 142px;
}

.mastery-ring .goal-ring-lg::before {
  inset: 10px;
}

.mastery-ring .goal-ring-lg strong {
  font-size: 22px;
}

.mastery-legend {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.mastery-legend div {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 7px;
  min-width: 103px;
  color: var(--muted);
  font-size: 11px;
}

.mastery-legend b {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
}

.heatmap-panel {
  margin-top: 13px;
  padding: 23px;
}

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--muted-soft);
  font-size: 10.5px;
}

.heatmap-legend i {
  width: 9px;
  height: 9px;
  margin-left: 2px;
  border-radius: 2px;
  background: var(--surface-tint);
}

.heatmap-legend i:nth-of-type(2) {
  background: var(--mint-strong);
  opacity: 0.35;
}

.heatmap-legend i:nth-of-type(3) {
  background: var(--mint-strong);
  opacity: 0.6;
}

.heatmap-legend i:nth-of-type(4) {
  background: var(--green-3);
  opacity: 0.75;
}

.heatmap-legend i:nth-of-type(5) {
  background: var(--green-3);
}

.heatmap-months {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 700px;
  margin: 22px auto 6px;
  color: var(--muted-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.heatmap {
  display: grid;
  grid-template-rows: repeat(7, 12px);
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  max-width: 700px;
  margin: 0 auto;
}

.heat-cell {
  border-radius: 3px;
  background: var(--surface-tint);
  transition: transform 140ms ease;
}

.heat-cell:hover {
  transform: scale(1.25);
}

.heat-cell[data-level="1"] { background: color-mix(in srgb, var(--mint-strong) 40%, var(--surface-tint)); }
.heat-cell[data-level="2"] { background: color-mix(in srgb, var(--mint-strong) 75%, var(--surface-tint)); }
.heat-cell[data-level="3"] { background: var(--green-3); opacity: 0.72; }
.heat-cell[data-level="4"] { background: var(--green-3); }

.heatmap-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 700px;
  margin: 15px auto 0;
}

.heatmap-foot > span {
  color: var(--muted-soft);
  font-size: 10.5px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-card {
  padding: 25px;
}

.settings-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.settings-symbol {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--mint);
  color: var(--green-3);
}

.settings-symbol.gold {
  background: var(--gold-soft);
  color: #9a6d20;
}

.settings-symbol.coral {
  background: var(--coral-soft);
  color: var(--coral);
}

.settings-symbol svg {
  width: 18px;
  height: 18px;
}

.settings-card-head .panel-kicker {
  margin-bottom: 3px;
}

.settings-card-head h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.settings-card-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.theme-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: transparent;
  text-align: left;
  transition: 160ms ease;
}

.theme-option:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.theme-option.is-active {
  border-color: var(--green-3);
  background: var(--mint);
}

.theme-preview {
  position: relative;
  display: flex;
  height: 70px;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  overflow: hidden;
  border-radius: 8px;
}

.theme-preview::before {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  content: "";
}

.theme-preview i {
  display: block;
  height: 5px;
  border-radius: 4px;
}

.theme-preview i:nth-child(1) {
  width: 48%;
}

.theme-preview i:nth-child(2) {
  width: 78%;
}

.theme-preview i:nth-child(3) {
  width: 62%;
  margin-top: 5px;
}

.theme-preview-light {
  border: 1px solid rgba(23, 63, 52, 0.08);
  background: #f7f4eb;
}

.theme-preview-light::before {
  background: #f3b85e;
}

.theme-preview-light i {
  background: rgba(23, 63, 52, 0.19);
}

.theme-preview-dark {
  border: 1px solid rgba(255, 253, 248, 0.08);
  background: #12211b;
}

.theme-preview-dark::before {
  background: #ee6b4d;
}

.theme-preview-dark i {
  background: rgba(255, 253, 248, 0.23);
}

.theme-option-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 1px 2px;
}

.theme-option-copy strong {
  font-size: 11.5px;
  font-weight: 700;
}

.theme-option-copy small {
  color: var(--muted);
  font-size: 10.5px;
}

.theme-check {
  position: absolute;
  right: 10px;
  bottom: 18px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  opacity: 0;
  transform: scale(0.7);
  transition: 160ms ease;
}

.theme-check svg {
  width: 10px;
  height: 10px;
  stroke-width: 2.6;
}

.theme-option.is-active .theme-check {
  opacity: 1;
  transform: scale(1);
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.setting-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.setting-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.setting-label strong {
  font-size: 11.5px;
  font-weight: 600;
}

.setting-label small {
  color: var(--muted);
  font-size: 10.5px;
}

.setting-pills {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: var(--surface-soft);
}

.setting-pills button {
  min-width: 38px;
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: 150ms ease;
}

.setting-pills button:hover {
  color: var(--ink);
}

.setting-pills button.is-active {
  background: var(--green);
  color: #fffdf8;
  box-shadow: 0 3px 10px -4px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .setting-pills button.is-active {
  background: var(--gold);
  color: var(--green);
}

.settings-data-panel {
  grid-column: 1 / -1;
}

.settings-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--line);
}

.settings-summary > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 15px 17px;
  background: var(--surface-soft);
}

.settings-summary span {
  color: var(--muted);
  font-size: 10.5px;
}

.settings-summary strong {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.settings-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.settings-action {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-align: left;
  transition: 160ms ease;
}

.settings-action:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  transform: translateY(-1px);
}

.settings-action-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--muted);
}

.settings-action:hover .settings-action-icon {
  background: var(--mint);
  color: var(--green-3);
}

.settings-action-icon svg {
  width: 15px;
  height: 15px;
}

.settings-action > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.settings-action strong {
  font-size: 11.5px;
  font-weight: 600;
}

.settings-action small {
  color: var(--muted);
  font-size: 10.5px;
}

.settings-action-arrow {
  width: 13px;
  height: 13px;
  color: var(--muted-soft);
  transition: transform 160ms ease;
}

.settings-action:hover .settings-action-arrow {
  transform: translateX(2px);
}

.settings-danger-list {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.settings-danger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.settings-danger-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.settings-danger-row > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-danger-row strong {
  font-size: 11.5px;
  font-weight: 600;
}

.settings-danger-row small {
  color: var(--muted);
  font-size: 10.5px;
}

.button-danger {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid rgba(238, 107, 77, 0.28);
  border-radius: 8px;
  background: var(--coral-soft);
  color: var(--coral-dark);
  font-size: 11px;
  font-weight: 700;
  transition: 160ms ease;
}

.button-danger:hover {
  border-color: transparent;
  background: var(--coral);
  color: #fff;
}

.settings-about-panel {
  grid-column: 1 / -1;
  padding-bottom: 21px;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 19px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--line);
}

.about-facts > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 15px;
  background: var(--surface-soft);
}

.about-facts span {
  color: var(--muted);
  font-size: 10.5px;
}

.about-facts strong {
  font-size: 12px;
  font-weight: 600;
}

.about-facts small {
  color: var(--muted-soft);
  font-size: 10.5px;
}

.about-license {
  margin-top: 13px;
  color: var(--muted-soft);
  font-size: 10.5px;
}

.site-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1420px;
  margin: 36px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-soft);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  padding: 22px;
  place-items: center;
  background: rgba(8, 20, 16, 0.48);
  backdrop-filter: blur(12px) saturate(0.9);
  animation: fade-in 200ms ease both;
}

.confirm-card {
  position: relative;
  width: min(100%, 416px);
  padding: 30px 30px 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: modal-in 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.confirm-card::before {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--coral-soft), transparent 68%);
  content: "";
  pointer-events: none;
}

.confirm-icon {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 21px;
  place-items: center;
  border-radius: 14px;
  background: var(--coral-soft);
  color: var(--coral);
  box-shadow: 0 0 0 7px rgba(238, 107, 77, 0.06);
}

.confirm-icon.neutral {
  background: var(--mint);
  color: var(--green-3);
  box-shadow: 0 0 0 7px rgba(79, 141, 114, 0.07);
}

.confirm-icon svg {
  width: 21px;
  height: 21px;
}

.confirm-card .panel-kicker {
  position: relative;
  margin-bottom: 6px;
}

.confirm-card h2 {
  position: relative;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.confirm-card > p {
  position: relative;
  max-width: 340px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.75;
}

.confirm-meta {
  position: relative;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.confirm-actions {
  position: relative;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.confirm-actions .button {
  min-width: 104px;
}

.button-confirm-danger {
  border-color: transparent;
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(238, 107, 77, 0.8);
}

.button-confirm-danger:hover {
  background: var(--coral-dark);
}

.confirm-actions .button-ghost {
  background: transparent;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  padding: 22px;
  place-items: center;
  background: rgba(10, 22, 18, 0.56);
  backdrop-filter: blur(8px);
  animation: fade-in 180ms ease both;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.word-modal {
  position: relative;
  width: min(100%, 555px);
  max-height: min(90vh, 650px);
  padding: 34px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: modal-in 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(13px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
}

.modal-close svg {
  width: 14px;
  height: 14px;
}

.modal-close:hover {
  background: var(--coral-soft);
  color: var(--coral);
}

.modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding-right: 38px;
}

.modal-word {
  font-family: var(--font-display);
  font-size: clamp(43px, 7vw, 60px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.modal-phonetic-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  color: var(--muted);
}

.modal-phonetic-row span {
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 19px;
}

.modal-tags .level-tag {
  background: var(--surface-soft);
}

.modal-meaning {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 27px;
}

.modal-meaning h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.modal-example {
  margin-top: 20px;
  padding: 17px 18px;
  border-radius: 12px;
  background: var(--surface-soft);
}

.modal-example p {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.55;
}

.modal-example span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.modal-phrases {
  margin-top: 18px;
}

.modal-section-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.phrase-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phrase-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--surface-soft);
}

.phrase-item strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.phrase-item span {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.modal-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.modal-progress-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.modal-progress-copy span {
  color: var(--muted-soft);
  font-size: 10.5px;
}

.modal-progress-copy strong {
  font-size: 11.5px;
}

.modal-actions {
  display: flex;
  gap: 7px;
  margin-top: 20px;
}

.modal-actions .button {
  flex: 1;
}

.modal-actions .star-button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 200;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: 11.5px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1180px) {
  .hero-art {
    right: 1%;
    transform: translateY(-50%) scale(0.88);
  }

  .dashboard-top {
    grid-template-columns: minmax(0, 1.5fr) minmax(248px, 0.72fr);
  }

  .hero-card {
    padding: 32px;
  }

  .word-grid {
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  }
}

@media (max-width: 1020px) {
  :root {
    --sidebar: 224px;
  }

  .main {
    padding-right: 28px;
    padding-left: 28px;
  }

  .hero-art {
    right: -44px;
    opacity: 0.78;
    transform: translateY(-50%) scale(0.8);
  }

  .hero-copy {
    max-width: 340px;
  }

  .dashboard-top {
    grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.7fr);
  }

  .goal-card {
    padding-right: 15px;
    padding-left: 15px;
  }

  .goal-ring-lg {
    width: 140px;
    height: 140px;
  }

  .goal-ring-lg::before {
    inset: 10px;
  }

  .goal-ring-lg strong {
    font-size: 23px;
  }

  .dashboard-bottom,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .quote-panel {
    min-height: 270px;
  }

  .quiz-setup {
    grid-template-columns: 1fr;
  }

  .quiz-intro {
    min-height: 360px;
  }

  .quiz-rules {
    padding-top: 28px;
  }
}

@media (max-width: 860px) {
  :root {
    --sidebar: 0px;
  }

  body {
    padding-bottom: 73px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 20px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(16px);
  }

  .brand-mobile {
    width: auto;
    padding: 0;
    color: var(--ink);
  }

  .brand-mobile .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 11px;
  }

  .brand-mobile .brand-mark svg {
    width: 28px;
    height: 28px;
  }

  .brand-mobile .brand-text strong {
    color: var(--ink);
    font-size: 20px;
  }

  .brand-mobile .brand-text small {
    color: var(--muted);
  }

  .icon-button {
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
  }

  .icon-button svg {
    width: 16px;
    height: 16px;
  }

  .main {
    width: 100%;
    margin-left: 0;
    padding: 22px 20px 20px;
  }

  .topbar {
    margin-bottom: 20px;
  }

  .topbar h1 {
    font-size: 23px;
  }

  .topbar-right .round-action {
    display: none;
  }

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

  .goal-card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    align-items: center;
    padding: 20px;
  }

  .goal-card .card-heading {
    grid-column: 1 / -1;
  }

  .goal-card .goal-ring {
    grid-row: 2 / span 2;
    grid-column: 2;
    margin: 10px 0 0;
  }

  .goal-card .goal-count {
    grid-column: 1;
    align-self: end;
    margin-top: 11px;
  }

  .goal-card .goal-message {
    grid-column: 1;
    min-height: auto;
    margin-top: 2px;
    text-align: left;
  }

  .goal-card .text-button {
    grid-column: 1;
    justify-self: start;
    margin-top: 8px;
  }

  .hero-card {
    min-height: 330px;
  }

  .hero-art {
    right: -30px;
    transform: translateY(-50%) scale(0.82);
  }

  .stat-strip {
    gap: 8px;
  }

  .mini-stat {
    gap: 9px;
    padding: 12px;
  }

  .mini-stat-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 9px;
  }

  .mini-stat > small {
    display: none;
  }

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

  .library-filters {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .study-stage {
    min-height: 430px;
    padding-top: 18px;
  }

  .flashcard {
    height: 360px;
  }

  .spell-card {
    min-height: 360px;
  }

  .stats-overview {
    grid-template-columns: 1fr 1fr;
  }

  .big-stat:first-child {
    grid-column: 1 / -1;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-data-panel,
  .settings-about-panel {
    grid-column: auto;
  }

  .mobile-nav {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 40;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    padding: 7px 5px;
    border: 1px solid rgba(255, 253, 248, 0.08);
    border-radius: 20px;
    background: color-mix(in srgb, var(--green) 94%, transparent);
    box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(18px);
  }

  .mobile-nav button {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 3px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: rgba(255, 253, 248, 0.47);
    font-size: 10.5px;
    transition: 160ms ease;
  }

  .mobile-nav button svg {
    width: 18px;
    height: 18px;
  }

  .mobile-nav button.is-active {
    background: rgba(255, 253, 248, 0.1);
    color: var(--gold);
  }

  .site-foot {
    margin-bottom: 0;
  }
}

@media (max-width: 640px) {
  .main {
    padding-right: 14px;
    padding-left: 14px;
  }

  .mobile-header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .topbar {
    align-items: flex-end;
  }

  .topbar h1 {
    font-size: 21px;
  }

  .streak-pill {
    padding: 6px 9px;
    font-size: 10.5px;
  }

  .streak-pill strong {
    font-size: 12px;
  }

  .hero-card {
    min-height: 365px;
    padding: 25px 23px;
    border-radius: 22px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-copy h2 {
    margin-top: 18px;
    font-size: 38px;
  }

  .hero-copy p {
    max-width: 300px;
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.7;
  }

  .hero-art {
    display: none;
  }

  .hero-actions {
    padding-top: 24px;
  }

  .hero-actions .button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 12px;
  }

  .goal-card {
    border-radius: 22px;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .mini-stat {
    padding: 12px 14px;
  }

  .mini-stat > small {
    display: block;
  }

  .panel {
    border-radius: 18px;
  }

  .plan-panel {
    padding: 20px 18px 12px;
  }

  .quote-panel {
    padding: 20px;
  }

  .study-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 15px;
  }

  .study-header > * {
    width: 100%;
  }

  .segmented {
    justify-content: space-between;
  }

  .segmented button {
    flex: 1;
  }

  .study-progress-row {
    flex-wrap: wrap;
    gap: 9px 13px;
  }

  .study-progress-copy {
    min-width: 70px;
  }

  .progress-track {
    min-width: 120px;
  }

  .study-session-stats {
    width: 100%;
    justify-content: flex-end;
  }

  .study-stage {
    min-height: 385px;
    padding-top: 14px;
  }

  .flashcard {
    height: 330px;
  }

  .flashcard-face {
    padding: 22px 20px 19px;
    border-radius: 21px;
  }

  .word-core h2 {
    font-size: 45px;
  }

  .word-core .phonetic {
    font-size: 11.5px;
  }

  .word-pronounce {
    margin-top: 10px;
  }

  .back-meaning {
    margin-top: 28px;
  }

  .back-meaning h3 {
    font-size: 23px;
  }

  .example-block {
    margin-top: 23px;
    padding-left: 12px;
  }

  .example-block p {
    font-size: 14px;
  }

  .example-block span {
    font-size: 11px;
  }

  .card-back-foot {
    padding-top: 13px;
  }

  .flashcard-front::after {
    display: none;
  }

  .spell-card {
    min-height: 330px;
    padding: 22px 20px;
    border-radius: 21px;
  }

  .spell-body {
    padding: 12px 0;
  }

  .spell-clue h3 {
    font-size: 24px;
  }

  .spell-form {
    flex-direction: column;
    margin-top: 20px;
  }

  .spell-input {
    height: 48px;
    font-size: 19px;
  }

  .spell-form .button {
    height: 44px;
  }

  .study-actionbar {
    padding-top: 11px;
  }

  .reveal-button {
    width: 100%;
  }

  .grade-button {
    min-width: 0;
    flex: 1;
    height: 44px;
    padding: 0 8px;
    font-size: 11.5px;
  }

  .grade-button small {
    display: none;
  }

  .study-shortcuts {
    display: none;
  }

  .study-finished {
    min-height: 400px;
    padding: 28px 20px;
    border-radius: 21px;
  }

  .finished-stats {
    gap: 25px;
  }

  .library-toolbar {
    padding: 14px;
    border-radius: 18px;
  }

  .word-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .word-card {
    min-height: 145px;
  }

  .quiz-intro {
    min-height: 330px;
    padding: 28px 23px;
    border-radius: 22px;
  }

  .quiz-intro h2 {
    font-size: 41px;
  }

  .quiz-rules {
    padding-top: 24px;
  }

  .quiz-config {
    padding: 20px;
    border-radius: 22px;
  }

  .quiz-play {
    margin-top: 5px;
  }

  .quiz-topline {
    gap: 10px;
    margin-bottom: 14px;
  }

  .quiz-topline .quiet-button {
    align-self: flex-start;
  }

  .quiz-card {
    padding: 22px 16px;
    border-radius: 22px;
  }

  .quiz-word-area {
    padding: 24px 0 25px;
  }

  .quiz-word {
    font-size: 45px;
  }

  .quiz-choices {
    grid-template-columns: 1fr;
  }

  .quiz-choice {
    min-height: 48px;
  }

  .quiz-feedback {
    flex-wrap: wrap;
  }

  .quiz-feedback .button {
    width: 100%;
    margin-left: 0;
  }

  .quiz-result {
    min-height: 530px;
    padding: 35px 18px;
    border-radius: 22px;
  }

  .result-stats {
    gap: 22px;
    padding: 16px 18px;
  }

  .result-actions {
    flex-direction: column;
    width: 100%;
    max-width: 260px;
  }

  .stats-overview {
    grid-template-columns: 1fr;
  }

  .big-stat:first-child {
    grid-column: auto;
  }

  .settings-card {
    padding: 20px 17px;
  }

  .settings-summary {
    grid-template-columns: 1fr 1fr;
  }

  .settings-actions {
    grid-template-columns: 1fr;
  }

  .settings-danger-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .about-facts {
    grid-template-columns: 1fr;
  }

  .setting-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .setting-pills {
    width: 100%;
  }

  .setting-pills button {
    flex: 1;
  }

  .theme-options {
    gap: 6px;
  }

  .big-stat {
    min-height: 155px;
    padding: 20px;
  }

  .chart-panel,
  .mastery-panel,
  .heatmap-panel {
    padding: 19px 17px;
  }

  .bar-chart {
    gap: 5px;
    height: 150px;
    padding: 0;
  }

  .bar-track {
    width: 100%;
    max-width: 22px;
  }

  .mastery-ring {
    gap: 17px;
  }

  .mastery-ring .goal-ring-lg {
    width: 125px;
    height: 125px;
  }

  .heatmap {
    gap: 3px;
  }

  .heatmap-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .site-foot {
    flex-direction: column;
    gap: 3px;
  }

  .confirm-card {
    padding: 26px 20px 20px;
    border-radius: 21px;
  }

  .confirm-card h2 {
    font-size: 22px;
  }

  .confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .confirm-actions .button {
    min-width: 0;
  }

  .word-modal {
    padding: 27px 20px;
    border-radius: 22px;
  }

  .phrase-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .phrase-item span {
    text-align: left;
  }

  .modal-close {
    top: 11px;
    right: 11px;
  }

  .modal-actions {
    flex-wrap: wrap;
  }

  .modal-actions .button {
    min-width: 0;
  }

  .toast {
    bottom: 88px;
    max-width: calc(100% - 32px);
    text-align: center;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.result-orbit,
.hero-art,
.quote-panel::after,
.hero-card::after,
.result-orbit::before {
  pointer-events: none;
}
