:root {
  color-scheme: light;
  --paper: #f2eee3;
  --paper-deep: #e5dece;
  --surface: #fffdf7;
  --ink: #17231f;
  --ink-muted: #65706a;
  --line: #bdb7aa;
  --red: #d34934;
  --teal: #176d68;
  --yellow: #e5b941;
  --blue: #315d85;
  --white: #fffdf7;
  --radius: 6px;
  --sans: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --serif: "Noto Serif SC", "STSong", serif;
  --display: "Space Grotesk", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(23, 35, 31, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 35, 31, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
}

button,
select,
input {
  font: inherit;
}

button,
select,
label {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
select:focus-visible,
input:focus-visible + span {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.app-shell {
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  border-inline: 1px solid rgba(23, 35, 31, 0.14);
  background: rgba(242, 238, 227, 0.93);
}

.topbar {
  min-height: 76px;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 2px solid var(--ink);
  background: rgba(255, 253, 247, 0.94);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-stamp {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  background: var(--red);
  color: var(--white);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--ink);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
}

.brand small {
  margin-top: 3px;
  color: var(--ink-muted);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}

.topbar-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
}

.topbar-progress__label {
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
}

.topbar-progress strong {
  min-width: 64px;
  font-size: 14px;
  text-align: right;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.account-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
}

.account-name i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--teal);
}

.logout-button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.logout-button:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--yellow);
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.icon-button:hover {
  background: var(--yellow);
}

.workspace {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.control-panel {
  padding: 34px 28px;
  border-right: 1px solid var(--line);
  background-color: var(--paper-deep);
  background-image: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 10px,
    rgba(23, 35, 31, 0.025) 10px,
    rgba(23, 35, 31, 0.025) 20px
  );
  animation: panel-in 420ms ease-out both;
}

.panel-heading {
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--red);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.panel-heading h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.25;
}

.filter-group {
  min-width: 0;
  margin: 0 0 25px;
  padding: 0;
  border: 0;
}

.filter-group > label,
.filter-group legend {
  display: block;
  margin: 0 0 9px;
  padding: 0;
  color: #3e4944;
  font-size: 13px;
  font-weight: 700;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.segment {
  min-width: 0;
  min-height: 40px;
  padding: 7px 4px;
  border: 0;
  border-right: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.segment:last-child {
  border-right: 0;
}

.segment:hover,
.segment.is-active {
  background: var(--ink);
  color: var(--white);
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "\2304";
  position: absolute;
  top: 50%;
  right: 13px;
  pointer-events: none;
  transform: translateY(-57%);
  font-size: 18px;
}

select {
  width: 100%;
  min-height: 42px;
  padding: 8px 38px 8px 12px;
  appearance: none;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
}

.priority-toggles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.priority-toggle {
  min-width: 0;
  cursor: pointer;
}

.priority-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.priority-toggle span {
  min-height: 38px;
  padding: 7px 4px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.6);
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.priority-toggle input:checked + span {
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--yellow);
}

.priority-toggle--p0 input:checked + span {
  box-shadow: inset 0 -3px 0 var(--red);
}

.priority-toggle--p1 input:checked + span {
  box-shadow: inset 0 -3px 0 var(--teal);
}

.deck-progress {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.deck-progress__header,
.progress-breakdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.deck-progress__header {
  font-size: 13px;
}

.deck-progress__header strong {
  font-family: var(--display);
}

.progress-track {
  height: 7px;
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--surface);
}

.progress-track span {
  width: 0;
  height: 100%;
  display: block;
  background: var(--teal);
  transition: width 280ms ease;
}

.progress-breakdown {
  color: var(--ink-muted);
  font-size: 11px;
}

.progress-breakdown span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.progress-breakdown b {
  color: var(--ink);
}

.status-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
}

.status-dot--mastered {
  background: var(--teal);
}

.status-dot--review {
  background: var(--red);
}

.study-stage {
  min-width: 0;
  padding: 34px 48px 42px;
  display: flex;
  flex-direction: column;
}

.stage-bar {
  width: min(840px, 100%);
  margin: 0 auto 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.stage-bar h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
}

.session-stats {
  display: flex;
  gap: 18px;
  color: var(--ink-muted);
  font-size: 12px;
}

.session-stats strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 14px;
}

.card-area {
  width: min(840px, 100%);
  margin: auto;
  animation: stage-in 520ms 80ms ease-out both;
}

.flashcard {
  width: 100%;
  min-height: 470px;
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  text-align: left;
  perspective: 1400px;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  min-height: inherit;
  display: block;
  transform-style: preserve-3d;
  transition: transform 560ms cubic-bezier(0.2, 0.72, 0.18, 1);
}

.flashcard.is-flipped .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  padding: 40px 46px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  backface-visibility: hidden;
  box-shadow: 9px 9px 0 var(--ink);
}

.card-face--front {
  background-color: var(--surface);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 31px,
    rgba(49, 93, 133, 0.1) 31px,
    rgba(49, 93, 133, 0.1) 32px
  );
}

.card-face--front::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 1px;
  background: rgba(211, 73, 52, 0.32);
}

.card-face--back {
  border-color: #0d3936;
  background-color: #184d49;
  background-image: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 14px,
    rgba(255, 253, 247, 0.025) 14px,
    rgba(255, 253, 247, 0.025) 28px
  );
  color: var(--white);
  transform: rotateY(180deg);
  box-shadow: 9px 9px 0 #0d3936;
}

.card-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-category {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-face--back .card-category {
  color: rgba(255, 253, 247, 0.68);
}

.priority-badge {
  min-width: 37px;
  padding: 4px 7px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--red);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.priority-badge--p1 {
  color: var(--teal);
}

.priority-badge--p2 {
  color: var(--blue);
}

.priority-badge--light,
.card-face--back .priority-badge {
  color: var(--yellow);
}

.card-id {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  color: var(--red);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
}

.question-text {
  position: relative;
  z-index: 1;
  max-width: 690px;
  margin: 20px 0 72px;
  display: block;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.6;
}

.answer-scroll {
  position: relative;
  z-index: 1;
  max-width: 720px;
  min-height: 0;
  margin: 24px 0;
  display: block;
  flex: 1 1 auto;
  overflow-y: auto;
  scrollbar-color: rgba(255, 253, 247, 0.4) transparent;
  scrollbar-width: thin;
}

.answer-text {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.8;
}

.answer-guide {
  margin-top: 24px;
  padding-top: 20px;
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(255, 253, 247, 0.22);
}

.guide-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  color: rgba(255, 253, 247, 0.82);
  font-size: 13px;
  line-height: 1.65;
}

.guide-item b {
  color: var(--yellow);
  font-size: 12px;
}

.guide-item--pitfall b {
  color: #ffaa99;
}

.answer-source {
  position: relative;
  z-index: 1;
  margin-top: 0;
  color: rgba(255, 253, 247, 0.64);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
}

.face-mark {
  position: absolute;
  right: 26px;
  bottom: 8px;
  color: rgba(23, 35, 31, 0.06);
  font-family: var(--display);
  font-size: 104px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.card-face--back .face-mark {
  color: rgba(255, 253, 247, 0.06);
}

.card-actions {
  min-height: 52px;
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.action-button {
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.action-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 0 var(--ink);
}

.action-button--primary {
  min-width: 126px;
  background: var(--ink);
  color: var(--white);
}

.action-button--review {
  border-color: var(--red);
  color: #9f2f20;
}

.action-button--mastered {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}

.action-button--next {
  margin-left: auto;
  border-color: transparent;
  background: transparent;
}

.empty-state {
  width: min(840px, 100%);
  min-height: 470px;
  margin: auto;
  padding: 48px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  border: 2px dashed var(--line);
  background: rgba(255, 253, 247, 0.58);
  text-align: center;
}

.empty-state__mark {
  color: var(--red);
  font-family: var(--display);
  font-size: 58px;
}

.empty-state h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-page {
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-shell {
  width: min(1120px, 100%);
  min-height: min(720px, calc(100vh - 56px));
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--surface);
  box-shadow: 12px 12px 0 var(--ink);
  animation: stage-in 520ms ease-out both;
}

.login-visual {
  position: relative;
  min-height: 660px;
  padding: 42px 48px;
  overflow: hidden;
  border-right: 1px solid var(--ink);
  background-color: var(--paper-deep);
  background-image:
    linear-gradient(rgba(23, 35, 31, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 35, 31, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
}

.brand--login {
  position: relative;
  z-index: 2;
}

.login-title-block {
  position: relative;
  z-index: 2;
  margin-top: 72px;
}

.login-title-block h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.32;
}

.login-title-block > p:last-child {
  margin: 18px 0 0;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
}

.login-card-stack {
  position: absolute;
  right: -28px;
  bottom: 22px;
  width: 380px;
  height: 245px;
  transform: rotate(-4deg);
}

.preview-card {
  position: absolute;
  inset: 0;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 700;
}

.preview-card--back {
  color: transparent;
  background: var(--yellow);
  transform: translate(-34px, -34px) rotate(-7deg);
}

.preview-card--middle {
  color: transparent;
  background: var(--teal);
  transform: translate(-15px, -17px) rotate(-3deg);
}

.preview-card--front {
  justify-content: space-between;
  background-color: var(--surface);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 27px,
    rgba(49, 93, 133, 0.1) 27px,
    rgba(49, 93, 133, 0.1) 28px
  );
  box-shadow: 7px 7px 0 var(--ink);
}

.preview-card--front i {
  color: var(--red);
  font-size: 13px;
  font-style: normal;
}

.preview-card--front strong {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.55;
}

.preview-card--front small {
  color: var(--ink-muted);
  font-size: 10px;
}

.login-panel {
  padding: 48px;
  display: grid;
  place-items: center;
  background-color: var(--surface);
  background-image: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 16px,
    rgba(23, 35, 31, 0.018) 16px,
    rgba(23, 35, 31, 0.018) 32px
  );
}

.login-form {
  width: min(360px, 100%);
}

.login-form__heading {
  margin-bottom: 48px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.login-form__heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 29px;
}

.login-form__index {
  padding-top: 3px;
  color: var(--red);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
}

.form-field {
  margin-bottom: 24px;
}

.form-field > label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
}

.form-field input {
  width: 100%;
  height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: 0;
}

.form-field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(23, 109, 104, 0.16);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 62px;
}

.password-toggle {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 48px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.form-error {
  min-height: 22px;
  margin: -6px 0 12px;
  color: #a82f20;
  font-size: 12px;
  font-weight: 600;
}

.login-submit {
  width: 100%;
  min-height: 50px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--yellow);
}

.login-submit:hover:not(:disabled) {
  background: var(--teal);
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr 380px;
  }

  .login-visual {
    padding-inline: 34px;
  }

  .login-panel {
    padding-inline: 34px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .control-panel {
    padding: 22px 26px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .panel-heading,
  .filter-group,
  .deck-progress {
    margin: 0;
  }

  .panel-heading {
    align-self: center;
  }

  .deck-progress {
    padding-top: 0;
    border-top: 0;
    align-self: end;
  }

  .study-stage {
    min-height: 690px;
    padding: 30px 34px 40px;
  }
}

@media (max-width: 620px) {
  .login-page {
    display: block;
    padding: 0;
  }

  .login-shell {
    width: 100%;
    min-height: 100vh;
    grid-template-columns: 1fr;
    border: 0;
    box-shadow: none;
  }

  .login-visual {
    min-height: 260px;
    padding: 24px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .brand--login .brand-stamp {
    width: 40px;
    height: 40px;
  }

  .login-title-block {
    margin-top: 40px;
  }

  .login-title-block h1 {
    font-size: 32px;
  }

  .login-title-block > p:last-child {
    font-size: 12px;
  }

  .login-card-stack {
    right: -74px;
    bottom: -104px;
    width: 300px;
    height: 190px;
    opacity: 0.48;
  }

  .login-panel {
    min-height: calc(100vh - 260px);
    padding: 38px 22px 48px;
    align-items: start;
  }

  .login-form__heading {
    margin-bottom: 34px;
  }

  .login-form__heading h2 {
    font-size: 25px;
  }

  .topbar {
    min-height: 66px;
    padding: 10px 16px;
  }

  .brand-stamp {
    width: 40px;
    height: 40px;
    font-size: 21px;
  }

  .brand strong {
    font-size: 19px;
  }

  .brand small,
  .topbar-progress__label {
    display: none;
  }

  .topbar-progress {
    gap: 7px;
  }

  .topbar-actions {
    gap: 7px;
  }

  .account-name {
    display: none;
  }

  .logout-button {
    width: 38px;
    min-height: 38px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }

  .logout-button::before {
    content: "⇥";
    color: var(--ink);
    font-family: var(--display);
    font-size: 20px;
  }

  .control-panel {
    padding: 22px 16px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .panel-heading {
    display: none;
  }

  .deck-progress {
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .study-stage {
    min-height: 620px;
    padding: 24px 16px 32px;
  }

  .stage-bar {
    margin-bottom: 16px;
    align-items: start;
  }

  .stage-bar h2 {
    font-size: 21px;
  }

  .session-stats {
    flex-direction: column;
    gap: 3px;
    text-align: right;
  }

  .flashcard,
  .empty-state {
    min-height: 400px;
  }

  .card-face {
    padding: 28px 26px;
    box-shadow: 6px 6px 0 var(--ink);
  }

  .card-face--front::before {
    left: 16px;
  }

  .card-id {
    margin-top: 36px;
  }

  .question-text {
    margin-top: 16px;
    font-size: 24px;
    line-height: 1.6;
  }

  .answer-scroll {
    margin-block: 18px;
  }

  .answer-text {
    font-size: 16px;
    line-height: 1.8;
  }

  .answer-guide {
    margin-top: 18px;
    padding-top: 16px;
  }

  .guide-item {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 9px;
    font-size: 12px;
  }

  .face-mark {
    font-size: 76px;
  }

  .card-actions {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-button {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
  }

  .action-button--next {
    margin-left: 0;
  }
}

@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;
  }
}