/* Styles for the Sitter student app; loaded by sitter.html. */
:root {
  --paper: #fffaf2;
  --paper-strong: #fffdf8;
  --ink: #17171d;
  --muted: #686a72;
  --line: #252b3a;
  --soft-line: #ded9cf;
  --blue: #50648f;
  --blue-soft: #e7ebf3;
  --green: #2d6a52;
  --green-soft: #e4efe9;
  --magenta: #9a4a72;
  --magenta-soft: #f2e5eb;
  --warning: #9a633e;
  --warning-soft: #f5e9dc;
  --danger: #a84444;
  --shadow: 0 22px 70px rgba(31, 31, 39, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 11px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #e8e4dc;
  color: var(--ink);
  font-family: Montserrat, "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(154, 74, 114, 0.09), transparent 26rem),
    radial-gradient(circle at 82% 4%, rgba(80, 100, 143, 0.11), transparent 28rem),
    #e8e4dc;
}

button,
textarea,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
textarea:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(80, 100, 143, 0.35);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.sitter-app {
  position: relative;
  width: min(100%, 1100px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sitter-topbar {
  position: relative;
  z-index: 31;
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(22px, 5vw, 64px);
  border-bottom: 1px solid rgba(37, 43, 58, 0.12);
}

.sitter-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--magenta);
  text-align: left;
}

.sitter-wordmark span {
  display: inline-block;
  color: #a64e79;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  text-shadow:
    1px 1px 0 #8d3d67,
    2px 2px 0 #80375e,
    3px 3px 0 #733056,
    4px 4px 0 #662a4d,
    5px 5px 0 #592344,
    7px 9px 13px rgba(63, 20, 42, 0.2);
  transform: translate(0, 0);
  transition: transform 120ms ease, text-shadow 120ms ease;
}

.sitter-wordmark:active span {
  text-shadow:
    1px 1px 0 #80375e,
    2px 2px 0 #733056,
    3px 3px 0 #662a4d,
    4px 5px 9px rgba(63, 20, 42, 0.18);
  transform: translate(2px, 2px);
}

.sitter-wordmark small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sitter-menu-toggle {
  position: relative;
  display: inline-flex;
  min-width: 72px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(23, 23, 29, 0.16);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  box-shadow: 0 8px 20px rgba(23, 23, 29, 0.14);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: min-width 220ms ease, padding 220ms ease, transform 120ms ease;
}

.sitter-menu-toggle .menu-label,
.sitter-menu-toggle .menu-close-mark {
  display: block;
  line-height: 1;
  transition: opacity 150ms ease, transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.sitter-menu-toggle .menu-close-mark {
  position: absolute;
  opacity: 0;
  font-size: 1.45rem;
  font-weight: 500;
  transform: rotate(-75deg) scale(0.65);
}

.sitter-menu-toggle.is-open {
  min-width: 42px;
  padding-inline: 0;
}

.sitter-menu-toggle.is-open .menu-label {
  opacity: 0;
  transform: scale(0.7);
}

.sitter-menu-toggle.is-open .menu-close-mark {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.sitter-menu-toggle:active {
  transform: scale(0.96);
}

.binder-tabs {
  position: absolute;
  z-index: 30;
  top: 76px;
  left: 50%;
  display: grid;
  width: min(360px, calc(100% - 44px));
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(37, 43, 58, 0.13);
  border-radius: 20px;
  background: var(--paper-strong);
  box-shadow: 0 22px 60px rgba(31, 31, 39, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px) scale(0.96);
  transform-origin: top center;
  transition: opacity 180ms ease, transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s linear 260ms;
  visibility: hidden;
}

.sitter-app.menu-open .binder-tabs {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
  transition-delay: 0s;
  visibility: visible;
}

.nav-menu-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 7px 8px 10px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.binder-tabs button {
  --nav-color: var(--blue);
  min-height: 50px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(104, 106, 114, 0.055);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-align: center;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.binder-tabs button:hover {
  color: var(--ink);
  transform: translateX(3px);
}

.binder-tabs button.active {
  min-height: 50px;
  border-color: color-mix(in srgb, var(--nav-color) 42%, white);
  background: color-mix(in srgb, var(--nav-color) 10%, white);
  color: var(--ink);
}

.binder-tabs .tab-home {
  --nav-color: var(--blue);
}

.binder-tabs .tab-memory {
  --nav-color: var(--green);
}

.binder-tabs .tab-followup {
  --nav-color: var(--magenta);
}

.sitter-screen {
  min-height: calc(100vh - 88px);
  padding: clamp(40px, 7vw, 78px) clamp(22px, 7vw, 78px) 88px;
}

.screen-home {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(rgba(80, 100, 143, 0.035), rgba(80, 100, 143, 0) 23rem),
    var(--paper);
}

.screen-memory {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(rgba(45, 106, 82, 0.05), rgba(45, 106, 82, 0) 23rem),
    var(--paper);
}

.screen-followup {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(rgba(154, 74, 114, 0.05), rgba(154, 74, 114, 0) 23rem),
    var(--paper);
}

.surface-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: -0.035em;
}

h1 {
  max-width: 18ch;
  margin-bottom: 0;
  font-size: clamp(2.3rem, 6.2vw, 4.8rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.04;
}

.today-date {
  max-width: 12ch;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: right;
  text-transform: uppercase;
}

.start-card {
  --hero-color: var(--blue);
  --card-depth: 36px;
  --home-flip-duration: 1040ms;
  --home-flip-ease: cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  min-height: 330px;
  margin-top: 64px;
  isolation: isolate;
  perspective: 1250px;
  -webkit-perspective: 1250px;
  perspective-origin: 50% 42%;
}

.start-card::after {
  position: absolute;
  z-index: -1;
  right: 8%;
  bottom: -12px;
  left: 8%;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(35, 45, 68, 0.28) 0%, rgba(35, 45, 68, 0.13) 43%, transparent 74%);
  content: "";
  opacity: 0.34;
  pointer-events: none;
  transform: scaleX(1);
  transition: opacity 220ms ease, transform 380ms ease;
}

.start-card.is-turning::after {
  opacity: 0.58;
  transform: translateY(13px) scaleX(0.7);
}

.start-card-motion {
  position: relative;
  z-index: 2;
  min-height: inherit;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform;
}

.start-card-inner {
  position: relative;
  min-height: inherit;
  transform: rotateY(0deg);
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform var(--home-flip-duration) var(--home-flip-ease);
  will-change: transform;
}

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

.start-card.is-turning .start-card-motion {
  z-index: 8;
  animation: home-card-lift-settle var(--home-flip-duration) var(--home-flip-ease) both;
}

.start-card.is-turning .start-card-slab i:nth-child(even) {
  display: none;
}

.start-card-slab {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.start-card-slab i {
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--hero-color) 64%, #11141d);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--hero-color) 72%, #151925);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), inset 0 -1px rgba(0, 0, 0, 0.18);
  transform: translateZ(var(--slab-z));
}

.start-card-face {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.42fr);
  gap: 48px;
  align-items: center;
  min-height: inherit;
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--hero-color) 91%, white),
    var(--hero-color) 52%,
    color-mix(in srgb, var(--hero-color) 88%, #11141d)
  );
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(17, 20, 29, 0.14),
    0 18px 48px rgba(80, 100, 143, 0.23);
}

.start-card-face[aria-hidden="true"] {
  pointer-events: none;
}

.start-card-front {
  transform: translateZ(calc(var(--card-depth) / 2));
}

.start-card-back {
  position: absolute;
  inset: 0;
  grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.28fr);
  transform: rotateY(180deg) translateZ(calc(var(--card-depth) / 2));
}

.start-card-face::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, 0.04) 37%, rgba(255, 255, 255, 0.3) 49%, rgba(255, 255, 255, 0.05) 61%, transparent 80%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-65%);
}

.start-card-face::after {
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.start-card-copy {
  position: relative;
  z-index: 3;
}

.start-card.is-resting .start-card-face {
  background:
    radial-gradient(circle at 82% 32%, rgba(255, 226, 112, 0.2), transparent 25%),
    linear-gradient(145deg, #176b4b, #23805d 58%, #14563e);
  box-shadow: 0 24px 70px rgba(23, 107, 75, 0.28);
}

.start-card.is-resting .start-card-slab i {
  border-color: #0f422f;
  background: #14553e;
}

.start-card.is-resting .start-card-face::after {
  border-color: rgba(255, 226, 112, 0.3);
  box-shadow: 0 0 0 24px rgba(255, 226, 112, 0.035), 0 0 0 50px rgba(255, 226, 112, 0.025);
}

.start-card.is-resting .status-pill {
  background: #ffe270;
  color: #174b39;
}

.start-card.is-resting .binder-stack {
  border-color: rgba(255, 226, 112, 0.62);
  box-shadow: 0 0 50px rgba(255, 226, 112, 0.17);
}

.start-card.is-resting .binder-stack i {
  border-color: rgba(255, 226, 112, 0.25);
}

.start-card.is-resting .binder-stack strong {
  max-width: 86%;
  margin-top: -10px;
  color: #fff4c2;
  font-size: clamp(2rem, 5.5vw, 3.7rem);
  letter-spacing: -0.07em;
  text-align: center;
}

.status-pill,
.quiet-badge,
.importance-tag,
.memory-chip,
.adult-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.status-pill {
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.hero-selection-label {
  margin: -10px 0 10px !important;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

.start-card h2 {
  max-width: 12ch;
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.start-card p {
  max-width: 48ch;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.hero-actions {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-flip-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.hero-flip-button span {
  font-size: 1.05rem;
}

.hero-flip-button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hero-progress-copy {
  position: relative;
  z-index: 1;
  align-self: start;
}

.hero-progress-copy .hero-selection-label {
  margin-top: 0 !important;
}

.hero-progress-copy p:last-child {
  margin-bottom: 0;
}

.hero-stage-progress {
  position: relative;
  z-index: 1;
  display: grid;
  grid-row: 1 / span 2;
  grid-column: 2;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-self: stretch;
}

.hero-stage-progress div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.065));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(17, 20, 29, 0.08);
}

.hero-stage-progress span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero-stage-progress strong {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: -0.07em;
}

.hero-flip-back {
  position: relative;
  z-index: 1;
  grid-column: 1;
  align-self: end;
  justify-self: start;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 20px rgba(17, 20, 29, 0.08);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 900;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(23, 23, 29, 0.16);
}

.button:active:not(:disabled) {
  transform: translateY(1px) scale(0.985);
  box-shadow: none;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.button.primary {
  background: var(--ink);
  color: white;
}

.start-card .button.primary {
  border-color: white;
  background: white;
  color: var(--ink);
}

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

.button.full {
  width: 100%;
}

.binder-stack {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 230px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  pointer-events: none;
}

.binder-stack i {
  position: absolute;
  inset: calc(10px * var(--i, 1));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.binder-stack i:nth-child(1) { --i: 1; }
.binder-stack i:nth-child(2) { --i: 2; }
.binder-stack i:nth-child(3) { --i: 3; }
.binder-stack i:nth-child(4) { --i: 4; }
.binder-stack i:nth-child(5) { --i: 5; }

.binder-stack strong {
  margin-top: -16px;
  font-size: clamp(4rem, 10vw, 6rem);
  letter-spacing: -0.09em;
}

.binder-stack small {
  position: absolute;
  bottom: 58px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 68px 0 24px;
}

.text-button,
.back-button,
.danger-link {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
}

.text-button.centered {
  display: block;
  margin: 18px auto 0;
}

.memory-subjects,
.history-list {
  display: grid;
  gap: 12px;
}

.hero-subject-control {
  position: relative;
  z-index: 1;
  margin-top: 38px;
}

.hero-subject-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 0 8px 12px;
}

.hero-subject-heading p {
  margin: 0;
}

.hero-subject-heading > p:last-child {
  color: var(--muted);
  font-size: 0.72rem;
}

.subject-earmarks {
  position: absolute;
  z-index: 0;
  top: -63px;
  right: 0;
  left: 0;
  display: flex;
  align-items: end;
  gap: 0;
  margin: 0 clamp(42px, 4.8vw, 54px) -22px;
  overflow-x: auto;
  padding: 8px 0 10px;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 12px;
  scrollbar-width: none;
  touch-action: pan-x;
  transform-origin: 50% 100%;
}

.start-card.is-turning .subject-earmarks {
  animation: subject-ears-recede var(--home-flip-duration) var(--home-flip-ease) both;
  pointer-events: none;
  will-change: transform, opacity;
}

.subject-earmarks::-webkit-scrollbar {
  display: none;
}

.subject-earmark {
  position: relative;
  z-index: 1;
  display: block;
  min-width: max-content;
  min-height: 54px;
  padding: 10px 21px 9px;
  border: 1px solid color-mix(in srgb, var(--subject-color) 70%, white);
  border-radius: 14px 14px 9px 9px;
  background: color-mix(in srgb, var(--subject-color) 14%, var(--paper-strong));
  box-shadow:
    inset 0 -4px 0 color-mix(in srgb, var(--subject-color) 12%, transparent),
    0 4px 9px rgba(32, 36, 48, 0.08);
  color: var(--subject-color);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  text-align: left;
  touch-action: manipulation;
  transition: min-height 180ms ease, background 160ms ease, color 160ms ease;
}

.subject-earmark::after {
  position: absolute;
  z-index: -1;
  right: 4px;
  bottom: -4px;
  left: 4px;
  height: 7px;
  border: 1px solid color-mix(in srgb, var(--subject-color) 32%, transparent);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: color-mix(in srgb, var(--subject-color) 24%, var(--paper-strong));
  content: "";
}

.subject-earmark + .subject-earmark {
  margin-left: -10px;
}

.subject-earmark.is-selected {
  z-index: 3;
  min-height: 68px;
  background: var(--subject-color);
  box-shadow: inset 0 -5px 0 rgba(20, 24, 34, 0.13), 0 5px 11px rgba(32, 36, 48, 0.14);
  color: white;
}

.subject-earmark.is-selected::after {
  border-color: color-mix(in srgb, var(--subject-color) 72%, #151925);
  background: color-mix(in srgb, var(--subject-color) 78%, #151925);
}

.subject-earmark strong,
.subject-earmark small {
  display: block;
}

.subject-earmark strong {
  max-width: 10ch;
  overflow: hidden;
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subject-earmark small {
  margin-top: 3px;
  color: currentColor;
  font-size: 0.58rem;
  font-weight: 800;
  opacity: 0.72;
}

.subject-row,
.history-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 78px;
  padding: 14px 18px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
}

.subject-row {
  width: 100%;
  color: var(--ink);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.subject-row:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--subject-color) 48%, var(--soft-line));
}

.subject-row.is-selected {
  border-color: var(--subject-color);
  background: color-mix(in srgb, var(--subject-color) 13%, white);
  box-shadow: inset 5px 0 0 var(--subject-color), 0 9px 24px color-mix(in srgb, var(--subject-color) 11%, transparent);
}

.subject-choice {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.subject-row.is-selected .subject-choice {
  color: var(--subject-color);
}

.subject-check {
  color: var(--subject-color);
  font-size: 1.35rem !important;
  line-height: 1;
}

.subject-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--subject-color) 14%, white);
  color: var(--subject-color);
  font-weight: 900;
}

.subject-row strong,
.history-row strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.92rem;
}

.subject-row small,
.history-row small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.mini-progress {
  width: 94px;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6e1d8;
}

.mini-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--subject-color);
}

.subject-count {
  min-width: 72px;
  text-align: right;
}

.subject-count b {
  display: block;
  font-size: 1.1rem;
}

.subject-count span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.how-sitter-works {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 0.65fr) minmax(0, 1.35fr);
  gap: 28px 46px;
  margin-top: 26px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.66);
}

.how-dismiss {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--soft-line);
  border-radius: 50%;
  background: var(--paper-strong);
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 800;
}

.how-compact {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding: 16px 19px;
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  text-align: left;
}

.how-compact span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.how-compact b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}

.how-compact strong,
.how-compact i {
  font-size: 0.72rem;
  font-style: normal;
}

.how-compact i {
  color: var(--muted);
  font-weight: 800;
}

.how-copy h2 {
  max-width: 13ch;
  margin-bottom: 14px;
}

.how-copy > p:last-child {
  max-width: 34ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.how-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 58px;
  padding: 9px 13px;
  border-radius: 13px;
  border-left: 4px solid var(--step-color, var(--blue));
  background: color-mix(in srgb, var(--step-color, var(--blue)) 11%, white);
}

.how-steps li:nth-child(1) { --step-color: var(--blue); }
.how-steps li:nth-child(2) { --step-color: var(--magenta); }
.how-steps li:nth-child(3) { --step-color: var(--green); }

.how-steps b {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  background: var(--step-color, var(--blue));
  color: white;
  font-size: 0.72rem;
}

.how-steps strong,
.how-steps small {
  display: block;
}

.how-steps strong {
  margin-bottom: 3px;
  font-size: 0.78rem;
}

.how-steps small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.memory-journey {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 13px;
  align-items: center;
  padding-top: 19px;
  border-top: 1px solid var(--soft-line);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.memory-journey i {
  position: relative;
  height: 2px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--soft-line);
}

.memory-journey i::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--blue), var(--green));
  content: "";
  transform: translateX(-100%);
  animation: journey-fill 1.2s 350ms ease-out forwards;
}

.memory-journey strong {
  color: var(--green);
}

.sitter-app[data-screen="session"] .sitter-topbar,
.sitter-app[data-screen="session"] .binder-tabs,
.sitter-app[data-screen="result"] .sitter-topbar,
.sitter-app[data-screen="result"] .binder-tabs,
.sitter-app[data-screen="complete"] .sitter-topbar,
.sitter-app[data-screen="complete"] .binder-tabs,
.sitter-app[data-screen="empty"] .sitter-topbar,
.sitter-app[data-screen="empty"] .binder-tabs {
  display: none;
}

.screen-session,
.screen-result,
.screen-complete,
.screen-empty {
  min-height: 100vh;
}

.screen-session {
  padding-top: 28px;
  background: var(--paper);
}

.focus-topbar {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 18px;
  align-items: center;
  max-width: 760px;
  margin: 0 auto 22px;
}

.icon-button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--soft-line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 1.6rem;
}

.session-progress-copy span,
.session-progress-copy strong {
  display: block;
}

.session-progress-copy span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.session-progress-copy strong {
  font-size: 0.82rem;
}

.quiet-badge {
  background: var(--blue-soft);
  color: var(--blue);
}

.binder-progress {
  display: grid;
  grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr));
  gap: 7px;
  max-width: 760px;
  margin: 0 auto 28px;
}

.binder-progress i {
  display: block;
  height: 8px;
  border: 1px solid var(--soft-line);
  border-radius: 8px 8px 2px 2px;
  background: white;
}

.binder-progress i.done {
  border-color: var(--green);
  background: var(--green);
}

.binder-progress i.current {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(80, 100, 143, 0.12);
  animation: current-step 1.8s ease-in-out infinite;
}

.focus-guide {
  display: flex;
  max-width: 760px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: -5px auto 22px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.focus-guide span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.focus-guide span.active {
  color: var(--blue);
}

.focus-guide b {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  font-size: 0.6rem;
}

.focus-guide i {
  color: #bbb6ad;
  font-style: normal;
}

.question-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-strong);
  box-shadow: 0 18px 50px rgba(31, 31, 39, 0.08);
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 52px;
}

.importance-tag {
  border: 1px solid var(--line);
  color: var(--ink);
}

.memory-chip {
  background: var(--blue-soft);
  color: var(--blue);
}

.question-card h1 {
  max-width: 19ch;
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.04;
}

.question-helper {
  max-width: 54ch;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.answer-field,
.settings-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.answer-field textarea,
.settings-card input,
.settings-card select {
  width: 100%;
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.answer-field textarea {
  min-height: 120px;
  padding: 18px;
  resize: vertical;
}

.settings-card input,
.settings-card select {
  min-height: 50px;
  padding: 12px 14px;
}

.focus-note {
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}

.screen-result {
  display: grid;
  place-items: center;
  background: var(--paper);
}

.sitter-screen:not([hidden]) {
  animation: screen-followup-enter 420ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.result-shell {
  width: min(100%, 720px);
  text-align: center;
}

.celebration {
  position: relative;
  width: 180px;
  height: 120px;
  margin: 0 auto 18px;
}

.celebration .result-mark {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
}

.celebration > span {
  --burst-x: 0px;
  --burst-y: 0px;
  position: absolute;
  z-index: 1;
  top: 55px;
  left: 86px;
  width: 9px;
  height: 18px;
  border-radius: 3px;
  background: var(--blue);
  opacity: 0;
}

.celebration > span:nth-child(1) { --burst-x: -72px; --burst-y: -46px; background: var(--magenta); transform: rotate(-32deg); }
.celebration > span:nth-child(2) { --burst-x: -86px; --burst-y: 8px; background: var(--blue); transform: rotate(72deg); }
.celebration > span:nth-child(3) { --burst-x: -54px; --burst-y: 58px; background: var(--warning); transform: rotate(18deg); }
.celebration > span:nth-child(4) { --burst-x: -8px; --burst-y: -66px; background: var(--green); transform: rotate(42deg); }
.celebration > span:nth-child(5) { --burst-x: 54px; --burst-y: -54px; background: var(--warning); transform: rotate(-24deg); }
.celebration > span:nth-child(6) { --burst-x: 82px; --burst-y: -2px; background: var(--magenta); transform: rotate(62deg); }
.celebration > span:nth-child(7) { --burst-x: 57px; --burst-y: 55px; background: var(--blue); transform: rotate(-46deg); }
.celebration > span:nth-child(8) { --burst-x: 4px; --burst-y: 71px; background: var(--green); transform: rotate(14deg); }

.result-shell.is-celebrating[data-tone="success"] .result-mark {
  animation: result-pop 720ms cubic-bezier(0.16, 1.35, 0.42, 1) both;
}

.result-shell.is-celebrating[data-tone="success"] .celebration > span {
  animation: burst-piece 820ms cubic-bezier(0.18, 0.7, 0.34, 1) both;
}

.result-shell.is-celebrating[data-tone="success"] .celebration > span:nth-child(2n) {
  animation-delay: 60ms;
}

.result-shell[data-tone="warning"] .celebration > span,
.result-shell[data-tone="again"] .celebration > span {
  display: none;
}

.result-shell[data-tone="warning"] .result-mark,
.result-shell[data-tone="again"] .result-mark {
  animation: gentle-wobble 520ms ease-out both;
}

.reward-unlock {
  display: grid;
  width: fit-content;
  min-width: min(100%, 300px);
  grid-template-columns: auto auto;
  gap: 4px 12px;
  align-items: center;
  margin: -6px auto 28px;
  padding: 12px 17px;
  border: 1px solid rgba(45, 106, 82, 0.2);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  text-align: left;
}

.reward-unlock span {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reward-unlock strong {
  font-size: 0.82rem;
}

.reward-unlock small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.35;
}

.result-shell[data-tone="warning"] .reward-unlock,
.result-shell[data-tone="again"] .reward-unlock {
  border-color: rgba(154, 99, 62, 0.2);
  background: var(--warning-soft);
  color: var(--warning);
}

.result-mark,
.completion-ring,
.empty-icon {
  display: grid;
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 2.7rem;
  font-weight: 900;
}

.result-shell[data-tone="warning"] .result-mark {
  background: var(--warning);
}

.result-shell[data-tone="again"] .result-mark {
  background: var(--danger);
}

.result-shell h1,
.screen-complete h1,
.screen-empty h1 {
  margin: 0 auto 22px;
  text-align: center;
}

.result-message,
.screen-complete > p:not(.eyebrow),
.screen-empty > p:not(.eyebrow) {
  max-width: 48ch;
  margin: 0 auto 32px;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

.answer-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 34px 0 14px;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-md);
  background: white;
  text-align: left;
}

.answer-comparison div {
  min-height: 112px;
  padding: 22px;
}

.answer-comparison div + div {
  border-left: 1px solid var(--soft-line);
}

.answer-comparison span,
.next-review-card span,
.history-question > span,
.history-context-grid span,
.attempt-list span,
.recommendation-card span,
.source-note span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.answer-comparison strong {
  line-height: 1.45;
}

.next-review-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--green-soft);
}

.result-shell[data-tone="warning"] .next-review-card,
.result-shell[data-tone="again"] .next-review-card {
  background: var(--warning-soft);
}

.next-review-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.next-review-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.screen-complete,
.screen-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.completion-ring {
  background: var(--blue);
  animation: completion-pop 720ms cubic-bezier(0.16, 1.35, 0.42, 1) both;
}

.completion-ring {
  position: relative;
}

.completion-ring i {
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(80, 100, 143, 0.28);
  border-radius: 50%;
  animation: completion-ripple 1.8s ease-out infinite;
}

.completion-ring i:last-child {
  animation-delay: 700ms;
}

.completion-stats {
  display: grid;
  width: min(100%, 560px);
  grid-template-columns: repeat(3, 1fr);
  margin: 8px 0 34px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-md);
  background: white;
}

.completion-stats div {
  padding: 22px 14px;
}

.completion-stats div + div {
  border-left: 1px solid var(--soft-line);
}

.completion-stats strong,
.completion-stats span {
  display: block;
}

.completion-stats strong {
  margin-bottom: 4px;
  font-size: 2rem;
}

.completion-stats span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.memory-total {
  text-align: right;
}

.memory-total strong,
.memory-total span {
  display: block;
}

.memory-total strong {
  color: var(--green);
  font-size: clamp(3.5rem, 9vw, 6rem);
  letter-spacing: -0.08em;
  line-height: 0.85;
}

.memory-total span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.memory-ladder {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-lg);
  background: white;
}

.memory-ladder div {
  min-width: 82px;
  text-align: center;
}

.memory-ladder span,
.memory-ladder strong {
  display: block;
}

.memory-ladder span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.memory-ladder strong {
  font-size: 2.2rem;
}

.memory-ladder i {
  height: 1px;
  background: var(--soft-line);
}

.memory-ladder .active {
  color: var(--green);
}

.memory-subject-row {
  padding: 20px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-md);
  background: white;
}

.memory-subject-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

.memory-subject-head strong {
  font-size: 0.9rem;
}

.memory-subject-head span {
  color: var(--muted);
  font-size: 0.7rem;
}

.memory-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e3da;
}

.memory-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--subject-color);
}

.history-row {
  width: 100%;
  border-color: var(--soft-line);
  color: var(--ink);
  text-align: left;
}

.history-row:hover {
  border-color: var(--green);
}

.history-result {
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.screen-history {
  min-height: calc(100vh - 88px);
}

.back-button {
  margin-bottom: 48px;
}

.history-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.history-header h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.history-question,
.history-context-grid article,
.attempt-row {
  padding: 26px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-md);
  background: white;
}

.history-question {
  margin-top: 40px;
}

.history-question strong {
  display: block;
  max-width: 35ch;
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  line-height: 1.3;
}

.history-question p,
.history-context-grid p,
.attempt-row p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.history-context-grid,
.followup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.attempt-list {
  display: grid;
  gap: 12px;
}

.attempt-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.attempt-row b {
  font-size: 0.8rem;
}

.adult-badge {
  background: var(--magenta-soft);
  color: var(--magenta);
}

.recommendation-card {
  padding: clamp(26px, 5vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--magenta);
  color: white;
}

.recommendation-card span {
  color: rgba(255, 255, 255, 0.72);
}

.recommendation-card strong {
  display: block;
  max-width: 48ch;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.35;
}

.followup-grid {
  margin-top: 18px;
}

.settings-card,
.adult-status-card {
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-lg);
  background: white;
}

.settings-card h2,
.adult-status-card h2 {
  margin-bottom: 28px;
}

.adult-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.adult-metrics div {
  padding: 17px;
  border-radius: 12px;
  background: var(--magenta-soft);
}

.adult-metrics strong,
.adult-metrics span {
  display: block;
}

.followup-subject-table {
  grid-column: 1 / -1;
  padding: 19px !important;
  background: rgba(154, 74, 114, 0.08) !important;
}

.followup-subject-table h3 {
  margin: 0 0 13px;
  font-size: 0.8rem;
}

.followup-subject-table p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid rgba(154, 74, 114, 0.15);
}

.followup-subject-table p span,
.followup-subject-table p b {
  margin: 0;
  font-size: 0.66rem;
}

.followup-subject-table p b {
  color: var(--muted);
  text-align: right;
}

.adult-metrics strong {
  margin-bottom: 5px;
  font-size: 1.65rem;
}

.adult-metrics span {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.source-note {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--soft-line);
}

.source-note p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.danger-link {
  margin-top: 24px;
  color: var(--danger);
}

.empty-icon {
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
}

.next-due {
  min-width: min(100%, 360px);
  margin: 0 auto 32px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 900;
}

.toast {
  position: fixed;
  z-index: 20;
  right: max(18px, calc((100vw - 1060px) / 2));
  bottom: 20px;
  max-width: min(420px, calc(100vw - 36px));
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  font-size: 0.78rem;
  font-weight: 750;
}

@keyframes screen-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes screen-followup-enter {
  from { opacity: 0; transform: translateY(22px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes home-card-lift-settle {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  18% { transform: translate3d(0, -8px, 0) scale(1.006); }
  48% { transform: translate3d(0, -28px, 0) scale(1.018); }
  74% { transform: translate3d(0, -9px, 0) scale(0.996); }
  90% { transform: translate3d(0, 2px, 0) scale(0.99); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes subject-ears-recede {
  0%, 100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  18% { opacity: 0.96; transform: translate3d(0, 2px, 0) scale(0.99); }
  48% { opacity: 0.84; transform: translate3d(0, 8px, 0) scale(0.965); }
  74% { opacity: 0.9; transform: translate3d(0, 3px, 0) scale(0.976); }
  90% { opacity: 0.96; transform: translate3d(0, 1px, 0) scale(0.99); }
}

@keyframes result-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.25) rotate(-14deg); }
  58% { opacity: 1; transform: translate(-50%, -50%) scale(1.13) rotate(4deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
}

@keyframes completion-pop {
  0% { opacity: 0; transform: scale(0.25) rotate(-14deg); }
  58% { opacity: 1; transform: scale(1.13) rotate(4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes burst-piece {
  0% { opacity: 0; translate: 0 0; scale: 0.2; }
  24% { opacity: 1; }
  100% { opacity: 0; translate: var(--burst-x) var(--burst-y); scale: 1; }
}

@keyframes gentle-wobble {
  0% { transform: translate(-50%, -50%) scale(0.65); opacity: 0; }
  55% { transform: translate(-50%, -50%) scale(1.04) rotate(-3deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0); opacity: 1; }
}

@keyframes current-step {
  0%, 100% { box-shadow: 0 0 0 3px rgba(80, 100, 143, 0.11); }
  50% { box-shadow: 0 0 0 7px rgba(80, 100, 143, 0.02); }
}

@keyframes journey-fill {
  to { transform: translateX(0); }
}

@keyframes completion-ripple {
  0% { opacity: 0.55; transform: scale(0.76); }
  100% { opacity: 0; transform: scale(1.42); }
}

@media (max-width: 760px) {
  body {
    background: var(--paper);
  }

  .hero-subject-control {
    margin-top: 28px;
  }

  .hero-subject-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-inline: 0;
  }

  .subject-earmarks {
    margin-inline: 24px;
    margin-bottom: -20px;
    padding-top: 7px;
    scroll-padding-inline: 12px;
  }

  .subject-earmark {
    min-height: 48px;
    padding: 9px 17px 8px;
  }

  .subject-earmark.is-selected {
    min-height: 62px;
  }

  .how-compact {
    align-items: flex-start;
  }

  .how-compact i {
    display: none;
  }

  .start-card.is-resting .binder-stack {
    display: grid;
    width: min(64vw, 210px);
    justify-self: center;
  }

  .sitter-app {
    width: 100%;
    box-shadow: none;
  }

  .sitter-topbar {
    min-height: 70px;
    padding: 14px 18px;
  }

  .sitter-wordmark span {
    font-size: 1.8rem;
  }

  .sitter-wordmark small,
  .nav-menu-meta span {
    display: none;
  }

  .sitter-menu-toggle {
    min-width: 68px;
    height: 38px;
    padding-inline: 16px;
  }

  .sitter-menu-toggle.is-open {
    min-width: 38px;
    padding-inline: 0;
  }

  .binder-tabs {
    top: 62px;
    width: min(330px, calc(100% - 28px));
    gap: 6px;
    padding: 12px;
  }

  .binder-tabs button {
    min-height: 48px;
    padding: 13px 15px;
    font-size: 0.74rem;
  }

  .binder-tabs button.active {
    min-height: 48px;
  }

  .sitter-screen {
    min-height: calc(100vh - 70px);
    padding: 34px 18px 64px;
  }

  .surface-intro {
    margin-bottom: 34px;
  }

  .surface-intro h1 {
    font-size: clamp(2.15rem, 11vw, 3.2rem);
  }

  .today-date,
  .adult-badge {
    display: none;
  }

  .start-card {
    min-height: 440px;
    margin-top: 58px;
  }

  .start-card-face {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 24px;
  }

  .start-card-back {
    grid-template-rows: auto auto auto;
    align-content: space-between;
  }

  .hero-stage-progress {
    grid-row: auto;
    grid-column: 1;
    align-self: auto;
  }

  .hero-stage-progress div {
    gap: 12px;
    padding: 12px 7px;
  }

  .hero-stage-progress span {
    font-size: 0.5rem;
  }

  .hero-stage-progress strong {
    font-size: 1.45rem;
  }

  .hero-flip-back {
    grid-column: 1;
  }

  .how-sitter-works {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 25px 20px;
  }

  .how-copy h2 {
    max-width: none;
  }

  .memory-journey {
    grid-column: auto;
  }

  .start-card h2 {
    font-size: 2.15rem;
  }

  .binder-stack {
    display: none;
  }

  .section-heading {
    margin-top: 48px;
  }

  .subject-row,
  .history-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px;
  }

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

  .mini-progress {
    width: 70px;
  }

  .subject-count {
    min-width: 48px;
  }

  .focus-topbar {
    grid-template-columns: 46px 1fr;
    gap: 12px;
  }

  .focus-topbar .quiet-badge {
    display: none;
  }

  .focus-guide {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
    gap: 6px;
    justify-content: stretch;
    overflow: visible;
    padding: 0 0 4px;
    font-size: 0.58rem;
    white-space: nowrap;
  }

  .focus-guide span {
    gap: 4px;
  }

  .focus-guide b {
    width: 20px;
    height: 20px;
  }

  .focus-guide i {
    text-align: center;
  }

  .screen-session,
  .screen-result,
  .screen-complete,
  .screen-empty {
    min-height: 100vh;
    padding-top: 18px;
  }

  .question-card {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .question-meta {
    margin-bottom: 38px;
  }

  .question-card h1 {
    font-size: clamp(1.9rem, 9vw, 2.65rem);
  }

  .answer-comparison {
    grid-template-columns: 1fr;
  }

  .answer-comparison div + div {
    border-top: 1px solid var(--soft-line);
    border-left: 0;
  }

  .result-actions {
    flex-direction: column;
  }

  .completion-stats {
    width: 100%;
  }

  .completion-stats div {
    padding: 16px 8px;
  }

  .memory-total {
    display: none;
  }

  .memory-ladder {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 20px 14px;
  }

  .memory-ladder i {
    display: none;
  }

  .memory-ladder div {
    min-width: 0;
  }

  .history-context-grid,
  .followup-grid {
    grid-template-columns: 1fr;
  }

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

  .attempt-row b:last-child {
    grid-column: 2;
  }

  .toast {
    right: 18px;
  }
}

/* Result moment: one bold, calm reward surface. */
.sitter-app[data-screen="result"] {
  width: 100%;
  max-width: none;
  background: #176b4b;
  box-shadow: none;
}

.sr-only {
  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;
}

.screen-result {
  --result-green: #176b4b;
  --result-ink: #fffaf0;
  --result-muted: rgba(255, 250, 240, 0.74);
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  overflow: hidden;
  background: var(--result-green);
}

.screen-result .result-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: max(20px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
  overflow: hidden;
  background: var(--result-green);
  color: var(--result-ink);
}

.screen-result .result-shell::before,
.screen-result .result-shell::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 250, 240, 0.13);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.screen-result .result-shell::before {
  top: -24vmin;
  right: -28vmin;
  width: 72vmin;
  height: 72vmin;
}

.screen-result .result-shell::after {
  bottom: -42vmin;
  left: -30vmin;
  width: 86vmin;
  height: 86vmin;
}

.screen-result .result-shell[data-tone="warning"] {
  --result-green: #8a5a2f;
  --result-muted: rgba(255, 247, 235, 0.76);
}

.screen-result .result-shell[data-tone="again"] {
  --result-green: #744252;
  --result-muted: rgba(255, 241, 238, 0.76);
}

.screen-result .result-hero {
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(6px, 2vh, 22px) 0;
}

.screen-result .celebration {
  width: clamp(148px, 22vh, 204px);
  height: clamp(132px, 20vh, 184px);
  margin: 0 auto clamp(2px, 1vh, 10px);
}

.screen-result .celebration::before,
.screen-result .celebration::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255, 250, 240, 0.38);
  border-radius: 50%;
  content: "";
  opacity: 0;
  transform: translate(-50%, -50%);
}

.screen-result .celebration .result-mark {
  top: 50%;
  width: clamp(100px, 15vh, 140px);
  height: clamp(100px, 15vh, 140px);
  border: 2px solid rgba(255, 250, 240, 0.28);
  background: var(--result-ink);
  color: var(--result-green);
  box-shadow: 0 22px 50px rgba(7, 43, 29, 0.2);
  font-size: clamp(3rem, 7vh, 4.5rem);
  transform: translate(-50%, -50%);
}

.screen-result .celebration > span {
  top: 50%;
  left: 50%;
  width: 7px;
  height: 18px;
  border-radius: 99px;
  background: var(--result-ink);
}

.screen-result .celebration > span:nth-child(1) { --burst-x: -76px; --burst-y: -54px; }
.screen-result .celebration > span:nth-child(2) { --burst-x: -94px; --burst-y: 6px; }
.screen-result .celebration > span:nth-child(3) { --burst-x: -58px; --burst-y: 68px; }
.screen-result .celebration > span:nth-child(4) { --burst-x: -8px; --burst-y: -88px; }
.screen-result .celebration > span:nth-child(5) { --burst-x: 62px; --burst-y: -62px; }
.screen-result .celebration > span:nth-child(6) { --burst-x: 96px; --burst-y: -2px; }
.screen-result .celebration > span:nth-child(7) { --burst-x: 64px; --burst-y: 66px; }
.screen-result .celebration > span:nth-child(8) { --burst-x: 4px; --burst-y: 88px; }

.screen-result .result-shell.is-celebrating[data-tone="success"] .celebration::before { animation: result-ripple 1.15s 120ms ease-out both; }
.screen-result .result-shell.is-celebrating[data-tone="success"] .celebration::after { animation: result-ripple 1.15s 320ms ease-out both; }

.screen-result .result-shell[data-tone="warning"] .result-mark,
.screen-result .result-shell[data-tone="again"] .result-mark {
  background: transparent;
  color: var(--result-ink);
}

.screen-result .result-shell .eyebrow {
  margin-bottom: clamp(7px, 1.2vh, 12px);
  color: var(--result-muted);
}

.screen-result .result-shell h1 {
  margin: 0;
  color: var(--result-ink);
  font-size: clamp(3rem, 8.5vh, 6.2rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.screen-result .reward-unlock {
  display: flex;
  width: auto;
  min-width: 0;
  max-width: min(100%, 560px);
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: clamp(12px, 2.5vh, 24px) auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--result-ink);
  text-align: center;
}

.screen-result .reward-unlock strong {
  font-size: clamp(1.02rem, 3.8vw, 1.32rem);
  letter-spacing: -0.02em;
}

.screen-result .reward-unlock small {
  color: var(--result-muted);
  font-size: clamp(0.7rem, 2.6vw, 0.86rem);
  font-weight: 650;
}

.screen-result .result-shell[data-tone="warning"] .reward-unlock,
.screen-result .result-shell[data-tone="again"] .reward-unlock {
  border: 0;
  background: transparent;
  color: var(--result-ink);
}

.screen-result .result-footer {
  width: min(100%, 620px);
  margin: 0 auto;
}

.screen-result .result-details {
  position: relative;
  margin-bottom: clamp(8px, 1.5vh, 14px);
}

.screen-result .result-details summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 4px;
  color: var(--result-muted);
  font-size: 0.7rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.screen-result .result-details summary::-webkit-details-marker { display: none; }

.screen-result .result-details summary:focus-visible {
  outline: 3px solid rgba(255, 250, 240, 0.42);
  outline-offset: 3px;
  border-radius: 6px;
}

.screen-result .result-shell h1:focus {
  outline: 0;
}

.screen-result .result-actions .button:focus-visible {
  outline-color: rgba(255, 250, 240, 0.58);
}

.screen-result .result-details summary span {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(255, 250, 240, 0.35);
  border-radius: 50%;
  transition: transform 180ms ease;
}

.screen-result .result-details[open] summary span { transform: rotate(45deg); }

.screen-result .result-details-panel {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: calc(100% + 8px);
  left: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: 0 22px 60px rgba(8, 42, 29, 0.28);
  animation: detail-reveal 180ms ease-out both;
}

.screen-result .result-detail-heading {
  padding: 18px 20px 16px;
  border-bottom: 1px solid rgba(23, 107, 75, 0.12);
  text-align: left;
}

.screen-result .result-detail-heading span,
.screen-result .result-detail-heading strong {
  display: block;
}

.screen-result .result-detail-heading span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.screen-result .result-detail-heading strong {
  max-width: 42ch;
  font-size: 0.78rem;
  line-height: 1.4;
}

.screen-result .answer-comparison {
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(23, 107, 75, 0.16);
  border-radius: 0;
}

.screen-result .answer-comparison div { min-height: 94px; padding: 17px 20px; }
.screen-result .answer-comparison div + div { border-left: 1px solid rgba(23, 107, 75, 0.16); }
.screen-result .answer-comparison div:last-child { background: rgba(45, 106, 82, 0.075); }
.screen-result .answer-comparison strong { color: var(--ink); font-size: 0.92rem; line-height: 1.35; }

.screen-result .next-review-card {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  border-radius: 0;
  background: rgba(23, 107, 75, 0.06);
}

.screen-result .result-shell[data-tone="warning"] .result-detail-heading,
.screen-result .result-shell[data-tone="again"] .result-detail-heading {
  border-bottom-color: rgba(116, 66, 82, 0.14);
}

.screen-result .result-shell[data-tone="warning"] .answer-comparison div:last-child,
.screen-result .result-shell[data-tone="again"] .answer-comparison div:last-child {
  background: rgba(116, 66, 82, 0.075);
}

.screen-result .result-shell[data-tone="warning"] .next-review-card,
.screen-result .result-shell[data-tone="again"] .next-review-card {
  background: rgba(116, 66, 82, 0.09);
}

.screen-result .next-review-card span { margin: 0; }
.screen-result .next-review-card strong { margin: 0; color: var(--ink); font-size: 0.82rem; }

.screen-result .result-actions {
  display: grid;
  gap: 3px;
  margin: 0;
}

.screen-result .result-actions .button.primary {
  min-height: 60px;
  border-color: var(--result-ink);
  background: var(--result-ink);
  color: var(--result-green);
  box-shadow: 0 14px 30px rgba(7, 43, 29, 0.18);
  font-size: 0.9rem;
}

.screen-result .result-actions .button.ghost {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--result-muted);
  font-size: 0.68rem;
}

.reward-media {
  display: none;
}

.screen-result .result-shell[data-reward="week"] {
  --result-green: #d8ac36;
  --result-ink: #201b0c;
  --result-muted: rgba(32, 27, 12, 0.7);
  background: #d8ac36;
}

.screen-result .result-shell[data-reward="week"] .result-mark {
  border-color: rgba(32, 27, 12, 0.28);
  background: #fff7d7;
  color: #201b0c;
  box-shadow: 0 18px 0 rgba(91, 67, 6, 0.16);
}

.week-binder-badge {
  width: 68%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 6;
}

.screen-result .result-shell[data-reward="sitter"] {
  --result-green: #11172e;
  --result-ink: #f4d657;
  --result-muted: rgba(249, 243, 221, 0.72);
  background: #11172e;
}

.screen-result .result-shell[data-reward="sitter"]::before,
.screen-result .result-shell[data-reward="sitter"]::after {
  border-color: rgba(244, 214, 87, 0.2);
}

.screen-result .result-shell[data-reward="sitter"] .celebration {
  display: none;
}

.screen-result .result-shell[data-reward="sitter"] .result-hero {
  padding-top: 0;
}

.screen-result .result-shell[data-reward="sitter"] .reward-media {
  position: relative;
  display: grid;
  width: min(100%, 560px);
  justify-items: center;
  gap: 8px;
  margin: 0 auto clamp(8px, 1.5vh, 14px);
  color: var(--result-ink);
}

.premium-scene {
  display: grid;
  justify-items: center;
  text-align: center;
}

.premium-transformation {
  width: min(100%, 330px);
  height: clamp(142px, 24vh, 210px);
  overflow: visible;
}

.premium-rays path {
  fill: none;
  stroke: #f4d657;
  stroke-dasharray: 44;
  stroke-dashoffset: 44;
  stroke-linecap: round;
  stroke-width: 5;
}

.premium-orbits circle {
  fill: none;
  stroke: rgba(249, 243, 221, 0.34);
  stroke-dasharray: 8 10;
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
}

.premium-figure {
  transform-box: fill-box;
  transform-origin: center bottom;
}

.premium-cape {
  fill: #3e5385;
  stroke: #f4d657;
  stroke-linejoin: round;
  stroke-width: 4;
}

.premium-head,
.premium-binder {
  fill: #f9f3dd;
}

.premium-hair {
  fill: #f4d657;
  stroke: #11172e;
  stroke-linejoin: round;
  stroke-width: 4;
  transform-box: fill-box;
  transform-origin: center bottom;
}

.premium-spine,
.premium-arm {
  fill: none;
  stroke: #11172e;
  stroke-linecap: round;
  stroke-width: 6;
}

.premium-arm {
  stroke: #f9f3dd;
  stroke-width: 9;
}

.premium-seal {
  fill: #11172e;
  font-family: Montserrat, "Avenir Next", Avenir, sans-serif;
  font-size: 22px;
  font-weight: 900;
  text-anchor: middle;
}

.reward-media[data-variant="month"] .premium-orbits circle:nth-child(2) {
  stroke: #f4d657;
  stroke-dasharray: 2 8;
}

.reward-media[data-variant="memory"] .premium-cape {
  fill: #f4d657;
  stroke: #f9f3dd;
}

.premium-kicker {
  margin-top: -8px;
  color: rgba(249, 243, 221, 0.68);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.premium-scene > strong {
  margin-top: 3px;
  color: #f9f3dd;
  font-size: clamp(1rem, 3.4vw, 1.28rem);
  letter-spacing: -0.025em;
}

.premium-scene > small {
  margin-top: 3px;
  color: var(--result-muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.premium-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 5px;
}

.premium-controls button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(249, 243, 221, 0.32);
  border-radius: 999px;
  background: transparent;
  color: #f9f3dd;
  font-size: 0.62rem;
  font-weight: 850;
}

.premium-controls button:focus-visible {
  outline-color: #f4d657;
}

.premium-controls svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.premium-controls .sound-wave {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.premium-controls button[aria-pressed="false"] .sound-wave {
  display: none;
}

.screen-result .result-shell.is-celebrating[data-reward="sitter"] .premium-figure {
  animation: premium-rise 920ms cubic-bezier(0.15, 0.88, 0.28, 1.2) both;
}

.screen-result .result-shell.is-celebrating[data-reward="sitter"] .premium-hair {
  animation: premium-crown 720ms 220ms cubic-bezier(0.15, 0.88, 0.28, 1.3) both;
}

.screen-result .result-shell.is-celebrating[data-reward="sitter"] .premium-rays path {
  animation: premium-ray 680ms 280ms ease-out both;
}

.screen-result .result-shell.is-celebrating[data-reward="sitter"] .premium-orbits circle:first-child {
  animation: premium-orbit 6s 400ms linear infinite;
}

.screen-result .result-shell.is-celebrating[data-reward="sitter"] .premium-orbits circle:nth-child(2) {
  animation: premium-orbit-reverse 5s 400ms linear infinite;
}

.screen-result .result-shell.premium-skipped .premium-figure,
.screen-result .result-shell.premium-skipped .premium-hair,
.screen-result .result-shell.premium-skipped .premium-rays path,
.screen-result .result-shell.premium-skipped .premium-orbits circle {
  animation: none !important;
  opacity: 1;
  stroke-dashoffset: 0;
  transform: none;
}

@keyframes premium-rise {
  from { opacity: 0; transform: translateY(24px) scale(0.68); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes premium-crown {
  from { transform: scaleY(0.3) translateY(18px); }
  to { transform: scaleY(1) translateY(0); }
}

@keyframes premium-ray {
  from { opacity: 0; stroke-dashoffset: 44; }
  to { opacity: 1; stroke-dashoffset: 0; }
}

@keyframes premium-orbit {
  to { transform: rotate(360deg); }
}

@keyframes premium-orbit-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes result-ripple {
  0% { opacity: 0.58; transform: translate(-50%, -50%) scale(0.65); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2); }
}

@keyframes detail-reveal {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-height: 680px) {
  .screen-result .celebration { width: 130px; height: 116px; }
  .screen-result .celebration .result-mark { width: 88px; height: 88px; font-size: 2.8rem; }
  .screen-result .result-shell h1 { font-size: clamp(2.7rem, 8vh, 4rem); }
  .premium-transformation { height: 125px; }
  .premium-scene > small { display: none; }
  .screen-result .result-actions .button.primary { min-height: 54px; }
  .screen-result .result-actions .button.ghost { min-height: 34px; }
}

@media (max-width: 520px) {
  .screen-result .result-shell[data-reward="sitter"] {
    padding-inline: 16px;
  }

  .premium-transformation {
    width: 290px;
  }

  .premium-controls {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .premium-figure,
  .premium-hair,
  .premium-orbits circle {
    opacity: 1 !important;
    transform: none !important;
  }

  .premium-rays path {
    opacity: 1 !important;
    stroke-dashoffset: 0 !important;
  }
}
