:root {
  color-scheme: light;
  --ink: #17254b;
  --ink-soft: #596782;
  --paper: #f7f8fc;
  --paper-blue: #edf1fb;
  --line: #d8dfef;
  --cobalt: #2855c7;
  --vermilion: #e5573f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  width: 380px;
  min-height: 535px;
  color: var(--ink);
  background:
    linear-gradient(rgba(40, 85, 199, .035) 1px, transparent 1px) 0 0 / 100% 28px,
    var(--paper);
  font-family: "Segoe UI", system-ui, sans-serif;
}

.shell { padding: 20px; }

.topbar,
.brand,
.word-meta,
.progress-card,
.stats {
  display: flex;
  align-items: center;
}

.topbar { justify-content: space-between; margin-bottom: 20px; }

.brand {
  gap: 8px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px 8px 8px 2px;
  color: white;
  background: var(--cobalt);
  font: 700 15px/1 Georgia, "Times New Roman", serif;
}

.day-label,
.word-meta {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.word-card {
  position: relative;
  overflow: hidden;
  min-height: 285px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px 22px 22px 7px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 12px 35px rgba(23, 37, 75, .07);
}

.word-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 28px;
  width: 1px;
  height: 100%;
  background: rgba(229, 87, 63, .18);
}

.word-meta { justify-content: space-between; padding-right: 24px; }

h1 {
  margin: 24px 0 2px;
  max-width: 285px;
  font: 700 clamp(36px, 11vw, 48px)/.98 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

h1.long-word { font-size: 40px; }
h1.very-long-word { font-size: 34px; letter-spacing: -.025em; }

.pronunciation {
  margin: 9px 0 19px;
  color: var(--cobalt);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .055em;
}

.pronunciation-fallback {
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.definition {
  max-width: 290px;
  margin: 0;
  color: #33415f;
  font-size: 14px;
  line-height: 1.52;
}

blockquote {
  position: relative;
  max-width: 288px;
  margin: 17px 0 0;
  padding-left: 14px;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-style: italic;
  line-height: 1.45;
}

blockquote::before {
  content: "";
  position: absolute;
  inset: 2px auto 2px 0;
  width: 3px;
  border-radius: 3px;
  background: var(--vermilion);
}

.progress-card {
  gap: 15px;
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper-blue);
}

.seal {
  position: relative;
  display: grid;
  flex: 0 0 55px;
  place-items: center;
  width: 55px;
  height: 55px;
}

.seal svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.seal circle {
  fill: none;
  stroke-width: 8;
}

.seal-track { stroke: #d4dcec; }
.seal-progress {
  stroke: var(--cobalt);
  stroke-linecap: round;
  stroke-dasharray: 270;
  stroke-dashoffset: 210;
  transition: stroke-dashoffset .55s cubic-bezier(.2, .8, .2, 1), stroke .3s ease;
}

.seal span { font: 700 13px/1 "Segoe UI", sans-serif; }

.seal.complete .seal-progress {
  stroke: var(--vermilion);
  stroke-dashoffset: 0;
}

.seal.complete span { color: var(--vermilion); font-size: 19px; }

.progress-copy { min-width: 0; }
.progress-copy p { margin: 0; }
.status { font-size: 13px; font-weight: 750; }
.hint { margin-top: 4px !important; color: var(--ink-soft); font-size: 11px; line-height: 1.35; }

.stats {
  justify-content: space-around;
  margin-top: 14px;
  padding: 8px 12px 0;
  text-align: center;
}

.stats > div:not(.rule) { flex: 1; }
.stat-value { display: block; font: 700 23px/1.1 Georgia, serif; }
.stat-label { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.rule { width: 1px; height: 28px; background: var(--line); }
.privacy-line {
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: .025em;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .seal-progress { transition: none; }
}
