:root {
  --ink: #121826;
  --muted: #667085;
  --line: #e7ecf3;
  --surface: #ffffff;
  --soft: #f6f8fb;
  --navy: #14213d;
  --blue: #1976d2;
  --sky: #dff3ff;
  --red: #e22b3c;
  --red-dark: #b80f24;
  --gold: #f6b73c;
  --green: #1f9d78;
  --shadow: 0 24px 70px rgba(18, 24, 38, 0.14);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0, #f7f9fc 520px),
    radial-gradient(circle at top left, rgba(226, 43, 60, 0.08), transparent 360px),
    #f7f9fc;
}

html,
body {
  overflow-x: hidden;
}

button {
  font: inherit;
}

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

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 24, 49, 0.9) 0%, rgba(10, 24, 49, 0.7) 43%, rgba(10, 24, 49, 0.2) 72%, rgba(10, 24, 49, 0.04) 100%),
    linear-gradient(180deg, rgba(10, 24, 49, 0.08), rgba(10, 24, 49, 0.42));
  z-index: -2;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--red);
  background: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.ghost-button,
.round-button,
.answer-button {
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.icon-button:hover,
.ghost-button:hover,
.round-button:hover,
.answer-button:hover {
  transform: translateY(-1px);
}

.icon-button,
.round-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.icon-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ghost-button {
  min-width: 82px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 86px auto 0;
  color: #fff;
}

.eyebrow,
.mini-label {
  margin: 0 0 10px;
  color: #dff3ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.7;
}

.workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 280px;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: -86px auto 48px;
  position: relative;
  z-index: 2;
}

.deck-panel,
.study-panel,
.progress-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(231, 236, 243, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.deck-panel,
.progress-panel {
  border-radius: 8px;
  padding: 18px;
  align-self: start;
}

.section-title,
.study-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-title strong {
  font-size: 13px;
  color: var(--red);
}

.group-tabs {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.group-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.group-tab span {
  font-size: 12px;
  font-weight: 900;
}

.group-tab strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  border-radius: 6px;
  color: var(--red);
  background: #fff4f5;
  font-size: 12px;
  font-weight: 900;
}

.group-tab.active {
  color: #fff;
  border-color: transparent;
  background: var(--navy);
}

.group-tab.active strong {
  color: var(--navy);
  background: #fff;
}

.deck-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  max-height: 430px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(226, 43, 60, 0.36) transparent;
}

.deck-item {
  width: 100%;
  min-height: 74px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.deck-item strong,
.deck-item span {
  display: block;
}

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

.deck-item span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.deck-item.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 16px 36px rgba(226, 43, 60, 0.28);
}

.deck-item.active span {
  color: rgba(255, 255, 255, 0.75);
}

.study-panel {
  border-radius: 8px;
  padding: 24px;
}

.study-header {
  margin-bottom: 20px;
}

.study-header h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.mini-label {
  color: var(--blue);
}

.streak {
  display: grid;
  place-items: center;
  min-width: 86px;
  height: 70px;
  border-radius: 8px;
  color: var(--red);
  background: #fff4f5;
}

.streak span {
  font-size: 25px;
  font-weight: 900;
}

.streak small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.flashcard {
  display: grid;
  width: 100%;
  min-height: 360px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  perspective: 1200px;
}

.card-side {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 420ms ease;
}

.front {
  background:
    linear-gradient(135deg, rgba(223, 243, 255, 0.85), rgba(255, 255, 255, 0.94)),
    repeating-linear-gradient(90deg, rgba(25, 118, 210, 0.08) 0 1px, transparent 1px 42px);
}

.back {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(20, 33, 61, 0.96), rgba(226, 43, 60, 0.92)),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12));
  transform: rotateY(180deg);
}

.flashcard.flipped .front {
  transform: rotateY(180deg);
}

.flashcard.flipped .back {
  transform: rotateY(360deg);
}

.tag {
  align-self: flex-start;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--red);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back .tag {
  color: var(--navy);
}

.jp {
  margin-top: 34px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(44px, 7vw, 78px);
  font-weight: 900;
  line-height: 1.18;
}

.romaji,
.meaning,
.example {
  display: block;
}

.romaji {
  margin-top: 18px;
  color: var(--muted);
  font-size: 22px;
  font-weight: 700;
}

.meaning {
  margin-top: 34px;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
}

.example {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 22px;
  line-height: 1.6;
}

.controls {
  display: grid;
  grid-template-columns: 52px 1fr 1fr 52px;
  gap: 12px;
  margin-top: 18px;
}

.round-button {
  width: 52px;
  height: 52px;
  color: var(--navy);
  background: #eef3f8;
}

.answer-button {
  height: 52px;
  border-radius: 8px;
  font-weight: 900;
}

.answer-button.soft {
  color: var(--navy);
  background: #fff2c8;
}

.answer-button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 14px 30px rgba(226, 43, 60, 0.22);
}

.progress-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  margin: 26px auto 18px;
}

.progress-ring svg {
  width: 180px;
  height: 180px;
  transform: rotate(-90deg);
}

.ring-track,
.ring-value {
  fill: none;
  stroke-width: 12;
}

.ring-track {
  stroke: #ecf1f5;
}

.ring-value {
  stroke: var(--red);
  stroke-dasharray: 302;
  stroke-dashoffset: 302;
  transition: stroke-dashoffset 260ms ease;
}

.progress-ring div {
  position: absolute;
  display: grid;
  place-items: center;
}

.progress-ring strong {
  font-size: 32px;
  font-weight: 900;
}

.progress-ring span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stats-grid div {
  display: grid;
  gap: 5px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.stats-grid span {
  font-size: 25px;
  font-weight: 900;
}

.stats-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.word-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.word-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.word-pill.done {
  color: var(--green);
  background: #e8f7f1;
}

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

  .study-panel {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

@media (max-width: 1100px) {
  body {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0) 0, #f7f9fc 260px),
      #f7f9fc;
  }

  .app-shell {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .hero {
    min-height: 214px;
    width: 100%;
  }

  .hero-image {
    object-position: 72% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(10, 24, 49, 0.92), rgba(10, 24, 49, 0.58)),
      linear-gradient(90deg, rgba(10, 24, 49, 0.78), rgba(10, 24, 49, 0.2));
  }

  .topbar {
    width: calc(100% - 24px);
    padding: 12px 0;
    gap: 12px;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 16px;
  }

  .nav-actions {
    gap: 8px;
  }

  .icon-button,
  .ghost-button {
    height: 40px;
  }

  .icon-button {
    width: 40px;
  }

  .ghost-button {
    min-width: 70px;
  }

  .hero-content {
    width: calc(100% - 24px);
    margin-top: 18px;
  }

  .hero h1 {
    max-width: 315px;
    font-size: 24px;
    line-height: 1.08;
  }

  .eyebrow {
    font-size: 11px;
  }

  .hero-copy {
    max-width: 310px;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
  }

  .workspace {
    grid-template-columns: 1fr;
    width: calc(100% - 20px);
    gap: 10px;
    margin: -18px auto 24px;
  }

  .deck-panel {
    order: 1;
    padding: 12px;
  }

  .study-panel {
    order: 2;
    grid-column: auto;
    grid-row: auto;
    padding: 12px;
  }

  .progress-panel {
    order: 3;
    padding: 12px;
  }

  .section-title span {
    font-size: 12px;
  }

  .group-tabs {
    display: flex;
    gap: 8px;
    width: 100%;
    margin: 12px 0 0;
    padding: 0 0 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .group-tab {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 10px;
    scroll-snap-align: start;
  }

  .group-tab span {
    white-space: nowrap;
  }

  .deck-list {
    display: flex;
    gap: 10px;
    width: 100%;
    max-height: none;
    margin: 10px 0 0;
    padding: 0 0 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .deck-item {
    flex: 0 0 148px;
    min-height: 68px;
    padding: 10px;
    scroll-snap-align: start;
  }

  .deck-item strong {
    font-size: 14px;
  }

  .study-header {
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
  }

  .study-header h2 {
    font-size: 18px;
  }

  .mini-label {
    max-width: 230px;
    margin-bottom: 8px;
    font-size: 11px;
    line-height: 1.35;
  }

  .streak {
    min-width: 70px;
    height: 62px;
  }

  .streak span {
    font-size: 22px;
  }

  .flashcard,
  .card-side {
    min-height: 232px;
  }

  .card-side {
    padding: 18px;
  }

  .tag {
    font-size: 11px;
  }

  .jp {
    margin-top: 22px;
    font-size: clamp(34px, 13vw, 52px);
    overflow-wrap: anywhere;
  }

  .romaji {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .meaning {
    margin-top: 22px;
    font-size: clamp(28px, 9.5vw, 40px);
    overflow-wrap: anywhere;
  }

  .example {
    margin-top: 14px;
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .controls {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  .round-button,
  .answer-button {
    width: 100%;
    height: 50px;
  }

  .answer-button.soft {
    grid-column: 1;
    grid-row: 1;
  }

  .answer-button.primary {
    grid-column: 2;
    grid-row: 1;
  }

  #prevButton {
    grid-column: 1;
    grid-row: 2;
  }

  #nextButton {
    grid-column: 2;
    grid-row: 2;
  }

  .progress-ring {
    width: 108px;
    height: 108px;
    margin: 14px auto 12px;
  }

  .progress-ring svg {
    width: 108px;
    height: 108px;
  }

  .progress-ring strong {
    font-size: 26px;
  }

  .stats-grid div {
    min-height: 64px;
  }

  .word-list {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-height: 154px;
    overflow-y: auto;
    padding-right: 2px;
  }

  .word-pill {
    min-height: 38px;
    padding: 8px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 26px;
  }

  .hero-copy {
    font-size: 14px;
  }

  .study-panel,
  .deck-panel,
  .progress-panel {
    border-radius: 8px;
  }

  .flashcard,
  .card-side {
    min-height: 224px;
  }

  .card-side {
    padding: 16px;
  }

  .jp {
    font-size: clamp(34px, 13vw, 50px);
  }

  .meaning {
    font-size: clamp(28px, 9.5vw, 38px);
  }

  .deck-item {
    flex-basis: 142px;
  }
}

@media (pointer: coarse) {
  html,
  body,
  .app-shell {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .hero,
  .workspace,
  .topbar,
  .hero-content {
    max-width: 100vw;
  }

  .workspace {
    display: flex;
    flex-direction: column;
  }

  .deck-panel {
    order: 1;
  }

  .study-panel {
    order: 2;
    grid-column: auto;
    grid-row: auto;
  }

  .progress-panel {
    order: 3;
  }

  .group-tabs,
  .deck-list {
    max-width: 100%;
  }
}

body.mobile-ui {
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow-x: hidden;
  background: #f4f7fb;
}

body.mobile-ui .app-shell {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body.mobile-ui .hero {
  min-height: 108px;
  width: 100%;
  overflow: visible;
  background: var(--navy);
}

body.mobile-ui .hero-image,
body.mobile-ui .hero-shade,
body.mobile-ui .hero-content {
  display: none;
}

body.mobile-ui .topbar {
  width: 100%;
  min-height: 108px;
  padding: 16px;
  align-items: flex-start;
  background:
    linear-gradient(135deg, rgba(226, 43, 60, 0.16), transparent 42%),
    var(--navy);
}

body.mobile-ui .brand {
  min-width: 0;
}

body.mobile-ui .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

body.mobile-ui .brand strong {
  font-size: 17px;
}

body.mobile-ui .brand small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

body.mobile-ui .nav-actions {
  flex: 0 0 auto;
}

body.mobile-ui .icon-button,
body.mobile-ui .ghost-button {
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

body.mobile-ui .icon-button {
  width: 42px;
}

body.mobile-ui .ghost-button {
  min-width: 72px;
}

body.mobile-ui .workspace {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100vw;
  gap: 10px;
  margin: 0;
  padding: 10px;
}

body.mobile-ui .deck-panel,
body.mobile-ui .study-panel,
body.mobile-ui .progress-panel {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

body.mobile-ui .deck-panel {
  order: 1;
  padding: 12px;
}

body.mobile-ui .study-panel {
  order: 2;
  grid-column: auto;
  grid-row: auto;
  padding: 12px;
}

body.mobile-ui .progress-panel {
  order: 3;
  padding: 12px;
}

body.mobile-ui .section-title {
  align-items: center;
}

body.mobile-ui .section-title span,
body.mobile-ui .mini-label {
  font-size: 11px;
  letter-spacing: 0.06em;
}

body.mobile-ui .group-tabs,
body.mobile-ui .deck-list {
  display: flex;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

body.mobile-ui .group-tabs::-webkit-scrollbar,
body.mobile-ui .deck-list::-webkit-scrollbar {
  display: none;
}

body.mobile-ui .group-tabs {
  gap: 8px;
  margin: 12px 0 0;
  padding: 0 0 2px;
}

body.mobile-ui .group-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  scroll-snap-align: start;
}

body.mobile-ui .group-tab span {
  max-width: 142px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.mobile-ui .deck-list {
  gap: 8px;
  max-height: none;
  margin: 10px 0 0;
  padding: 0 0 2px;
}

body.mobile-ui .deck-item {
  flex: 0 0 142px;
  min-height: 66px;
  padding: 10px;
  scroll-snap-align: start;
}

body.mobile-ui .deck-item strong {
  font-size: 14px;
  line-height: 1.2;
}

body.mobile-ui .deck-item span {
  margin-top: 5px;
  font-size: 12px;
}

body.mobile-ui .study-header {
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

body.mobile-ui .study-header h2 {
  font-size: 20px;
}

body.mobile-ui .mini-label {
  max-width: 230px;
  margin-bottom: 8px;
  line-height: 1.35;
}

body.mobile-ui .streak {
  min-width: 64px;
  height: 58px;
  border-radius: 8px;
}

body.mobile-ui .streak span {
  font-size: 21px;
}

body.mobile-ui .flashcard,
body.mobile-ui .card-side {
  min-height: 246px;
  border-radius: 8px;
}

body.mobile-ui .card-side {
  padding: 18px;
}

body.mobile-ui .tag {
  font-size: 10px;
  letter-spacing: 0.06em;
}

body.mobile-ui .jp {
  margin-top: 24px;
  font-size: clamp(38px, 14vw, 58px);
  overflow-wrap: anywhere;
}

body.mobile-ui .romaji {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body.mobile-ui .meaning {
  margin-top: 24px;
  font-size: clamp(30px, 10vw, 42px);
  overflow-wrap: anywhere;
}

body.mobile-ui .example {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body.mobile-ui .controls {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

body.mobile-ui .round-button,
body.mobile-ui .answer-button {
  width: 100%;
  height: 50px;
  border-radius: 8px;
}

body.mobile-ui .answer-button.soft {
  grid-column: 1;
  grid-row: 1;
}

body.mobile-ui .answer-button.primary {
  grid-column: 2;
  grid-row: 1;
}

body.mobile-ui #prevButton {
  grid-column: 1;
  grid-row: 2;
}

body.mobile-ui #nextButton {
  grid-column: 2;
  grid-row: 2;
}

body.mobile-ui .progress-ring {
  width: 96px;
  height: 96px;
  margin: 12px auto;
}

body.mobile-ui .progress-ring svg {
  width: 96px;
  height: 96px;
}

body.mobile-ui .progress-ring strong {
  font-size: 24px;
}

body.mobile-ui .stats-grid {
  gap: 8px;
}

body.mobile-ui .stats-grid div {
  min-height: 62px;
  padding: 10px;
}

body.mobile-ui .word-list {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 150px;
  overflow-y: auto;
  margin-top: 12px;
}

body.mobile-ui .word-pill {
  min-height: 36px;
  padding: 8px;
  font-size: 12px;
}
