@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,650;9..144,760;9..144,820&family=Nunito:wght@500;650;750;800;850;950&display=swap");

:root {
  --app-ink: #192833;
  --app-muted: #66757d;
  --app-paper: #fffdf8;
  --app-wash: #fff5e7;
  --app-mint: #eaf7ef;
  --app-mint-strong: #75b789;
  --app-coral: #f06b61;
  --app-coral-soft: #ffe2dc;
  --app-gold: #ffd36f;
  --app-blue: #123242;
  --app-sky: #eaf7fb;
  --app-line: rgba(25, 40, 51, .12);
  --app-shadow: 0 18px 48px rgba(25, 40, 51, .11);
}

.alpha-app {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 211, 111, .22), transparent 28%),
    linear-gradient(135deg, #fffdf8 0%, #fff7eb 46%, #f3fbf6 100%);
  color: var(--app-ink);
  font-family: Nunito, "Avenir Next", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.alpha-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 294px;
  min-height: 100vh;
}

.alpha-sidebar,
.alpha-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 24px 20px;
}

.alpha-sidebar {
  border-right: 1px solid rgba(25, 40, 51, .08);
  background: rgba(255, 253, 248, .76);
  backdrop-filter: blur(16px);
}

.alpha-rail {
  border-left: 1px solid rgba(25, 40, 51, .08);
  background: rgba(255, 253, 248, .58);
}

.alpha-main {
  min-width: 0;
  padding: 28px clamp(18px, 3vw, 34px) 42px;
}

.alpha-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
  font-size: 18px;
  font-weight: 800;
}

.alpha-brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--app-coral), var(--app-blue));
  color: white;
  box-shadow: 0 12px 24px rgba(240, 107, 97, .24);
}

.alpha-nav {
  display: grid;
  gap: 8px;
}

.alpha-nav button,
.mobile-tab,
.icon-button,
.plain-button,
.lesson-node,
.chip,
.choice,
.match-card,
.reaction-chip,
.mark-chip,
.community-action,
.portfolio-row,
.clip-card,
.modal-close {
  font: inherit;
}

.alpha-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #4a5a63;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.alpha-nav button:hover,
.alpha-nav button.active {
  border-color: rgba(117, 183, 137, .26);
  background: rgba(234, 247, 239, .84);
  color: var(--app-blue);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
}

.sidebar-card,
.rail-card,
.lesson-path-card,
.practice-card,
.lesson-card,
.soft-panel,
.modal-card {
  border: 1px solid var(--app-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--app-shadow);
}

.sidebar-card {
  margin-top: 30px;
  padding: 16px;
}

.sidebar-card h3,
.rail-card h3,
.soft-panel h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.sidebar-card p,
.rail-card p,
.soft-panel p {
  margin: 8px 0 0;
  color: var(--app-muted);
  line-height: 1.55;
}

.user-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--app-coral-soft);
  color: #8c382f;
  font-weight: 800;
}

.user-strip strong,
.user-strip span {
  display: block;
}

.user-strip span {
  color: var(--app-muted);
  font-size: 13px;
}

.alpha-topbar {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
}

.top-logo {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 4px 12px 4px 4px;
  border: 1px solid rgba(25, 40, 51, .1);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: var(--app-ink);
  box-shadow: 0 12px 26px rgba(25, 40, 51, .08);
  cursor: pointer;
  font: inherit;
}

.top-logo .alpha-brand-mark {
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 50%;
}

.top-logo strong,
.top-logo small {
  display: block;
  text-align: left;
}

.top-logo strong {
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
}

.top-logo small {
  margin-top: 3px;
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.topbar-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.alpha-topbar h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: 0;
}

.alpha-topbar p {
  margin: 8px 0 0;
  color: #3f515b;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--app-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  color: var(--app-ink);
  font-weight: 800;
  white-space: nowrap;
}

.stat-pill span {
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(260px, .86fr) minmax(0, 1.64fr);
  gap: 22px;
  align-items: start;
}

.lesson-path-card {
  overflow: hidden;
}

.path-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--app-line);
  background: rgba(234, 247, 239, .66);
}

.path-head span {
  display: block;
  color: #577065;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.path-head strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.lesson-list {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.lesson-list::before {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 40px;
  border-left: 2px dashed rgba(117, 183, 137, .34);
}

.lesson-node {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(25, 40, 51, .1);
  border-radius: 14px;
  background: rgba(255,255,255,.82);
  color: var(--app-ink);
  cursor: pointer;
  text-align: left;
}

.lesson-node:hover,
.lesson-node.active {
  border-color: rgba(240, 107, 97, .44);
  background: #fff5e8;
}

.lesson-node.locked {
  cursor: not-allowed;
  opacity: .68;
}

.lesson-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--app-mint);
  color: #347449;
  font-weight: 800;
}

.lesson-node.active .lesson-badge {
  background: var(--app-coral);
  color: white;
}

.lesson-node.next-up .lesson-badge::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 2px solid rgba(240, 107, 97, .42);
  border-radius: inherit;
  animation: pathPulse 1.9s ease-in-out infinite;
}

@keyframes pathPulse {
  0%, 100% {
    opacity: .22;
    transform: scale(.92);
  }
  50% {
    opacity: .72;
    transform: scale(1.08);
  }
}

.lesson-node strong,
.lesson-node small {
  display: block;
}

.lesson-node small {
  color: var(--app-muted);
  line-height: 1.35;
}

.lock-label {
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 900;
}

.hero-card {
  position: relative;
  min-height: 286px;
  overflow: hidden;
  border-radius: 14px;
  background: #193241;
  box-shadow: var(--app-shadow);
}

.hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 43, 55, .86), rgba(18, 43, 55, .34), rgba(18, 43, 55, .1));
}

.hero-card-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-height: 286px;
  max-width: 560px;
  padding: clamp(24px, 4vw, 42px);
  color: white;
}

.hero-card-content h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
}

.hero-card-content p {
  margin: 12px 0 22px;
  color: rgba(255,255,255,.88);
  font-size: 18px;
}

.small-label,
.tag-row span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.word-hint {
  margin: 8px 0 0;
  color: var(--app-muted);
  font-size: 13px;
  font-weight: 700;
}

.small-label {
  margin-bottom: 12px;
  padding: 7px 10px;
  background: rgba(255,255,255,.22);
  color: white;
}

.primary-action,
.secondary-action,
.danger-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.primary-action,
.secondary-action {
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease, background .15s ease;
}

.primary-action {
  background: var(--app-coral);
  color: white;
}

.primary-action:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(240, 107, 97, .28);
}

.primary-action:active:not(:disabled) {
  transform: translateY(0);
  filter: brightness(.95);
  box-shadow: none;
}

.secondary-action {
  background: white;
  border-color: var(--app-line);
  color: var(--app-blue);
}

.secondary-action:hover:not(:disabled) {
  border-color: rgba(240, 107, 97, .4);
  background: #fff7f0;
}

.secondary-action:active:not(:disabled) {
  background: #fff0e4;
}

.primary-action:disabled,
.secondary-action:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.danger-action {
  background: #fff0ed;
  color: #9e3a31;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.today-stack {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.practice-card,
.lesson-card,
.soft-panel {
  padding: 20px;
}

.practice-card h2,
.lesson-card h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
}

.practice-card > p,
.lesson-card > p {
  margin: 9px 0 0;
  color: var(--app-muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  padding: 6px 10px;
  background: var(--app-mint);
  color: #376847;
}

.lesson-card {
  display: grid;
  gap: 18px;
}

.step-shell {
  border: 1px solid rgba(25, 40, 51, .1);
  border-radius: 14px;
  background: #fffaf2;
  overflow: hidden;
}

.step-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(25, 40, 51, .1);
  background: rgba(255, 255, 255, .7);
}

.step-head strong {
  display: block;
}

.step-head span {
  color: var(--app-muted);
  font-size: 13px;
  font-weight: 800;
}

.step-body {
  padding: 18px;
}

.lesson-copy {
  display: grid;
  gap: 14px;
}

.lesson-copy p,
.feedback-box p,
.reflection-box p {
  margin: 0;
  color: #40525c;
  line-height: 1.68;
}

.lesson-copy blockquote {
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid var(--app-coral);
  background: #fff;
  color: #2b3c46;
  line-height: 1.55;
}

.choice-list,
.match-grid,
.reaction-row,
.mark-row {
  display: grid;
  gap: 10px;
}

.choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid rgba(25, 40, 51, .12);
  border-radius: 14px;
  background: white;
  color: var(--app-ink);
  cursor: pointer;
  text-align: left;
}

.choice.selected {
  border-color: var(--app-coral);
  background: #fff0e9;
}

.choice.correct {
  border-color: rgba(87, 158, 103, .58);
  background: #eef9ef;
}

.choice.incorrect {
  border-color: rgba(240, 107, 97, .58);
  background: #fff0ed;
}

.choice-letter {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eef3ef;
  color: #4b6357;
  font-size: 13px;
  font-weight: 800;
}

.match-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.match-card {
  padding: 13px;
  border: 1px solid var(--app-line);
  border-radius: 14px;
  background: white;
  cursor: pointer;
  text-align: left;
}

.match-card.selected {
  border-color: var(--app-coral);
  background: #fff4e9;
}

.match-card.matched {
  border-color: rgba(87, 158, 103, .52);
  background: #eef9ef;
}

.write-area {
  width: 100%;
  min-height: 178px;
  resize: vertical;
  padding: 16px;
  border: 1px solid rgba(25,40,51,.16);
  border-radius: 14px;
  background: white;
  color: var(--app-ink);
  font: inherit;
  line-height: 1.6;
}

.write-area:focus-visible,
.choice:focus-visible,
.match-card:focus-visible,
.primary-action:focus-visible,
.secondary-action:focus-visible,
.danger-action:focus-visible,
.alpha-nav button:focus-visible,
.chip:focus-visible {
  outline: 3px solid rgba(255, 211, 111, .64);
  outline-offset: 2px;
}

.feedback-box,
.reflection-box,
.completion-card,
.toast {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(117, 183, 137, .24);
  border-radius: 14px;
  background: #f1faf3;
}

.feedback-box strong,
.reflection-box strong {
  display: block;
  margin-bottom: 6px;
}

.completion-card {
  display: grid;
  gap: 10px;
  background: linear-gradient(135deg, #f1faf3, #fff7ec);
}

.completion-card h3 {
  margin: 0;
  font-size: 24px;
}

.completion-card p {
  margin: 0;
  color: #40525c;
  line-height: 1.55;
}

.completion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.completion-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: white;
  color: #376847;
  font-size: 13px;
  font-weight: 900;
}

.piece-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-bars {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.score-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 38px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 850;
}

.bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eee8;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--app-coral), var(--app-gold));
}

.reaction-row,
.mark-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.reaction-chip,
.mark-chip,
.chip {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--app-line);
  border-radius: 999px;
  background: white;
  color: var(--app-ink);
  cursor: pointer;
  font-weight: 900;
}

.reaction-chip.active,
.mark-chip.active,
.chip.active {
  border-color: var(--app-coral);
  background: #fff0e8;
}

.lesson-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.progress-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(25, 40, 51, .1);
}

.progress-track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--app-coral), var(--app-gold));
  transition: width .25s ease;
}

.rail-stack {
  display: grid;
  gap: 14px;
}

.rail-card {
  padding: 18px;
}

.streak-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.streak-days span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff3cf;
  color: #9c6b00;
  font-size: 12px;
  font-weight: 800;
}

.hearts {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  font-size: 24px;
}

.heart-empty {
  filter: grayscale(1);
  opacity: .34;
}

.portfolio-list,
.community-list,
.clip-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.portfolio-row {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--app-line);
  border-radius: 14px;
  background: white;
  color: var(--app-ink);
  cursor: pointer;
  text-align: left;
}

.portfolio-row small,
.community-note small,
.clip-card small {
  color: var(--app-muted);
  font-weight: 800;
}

.community-note {
  padding: 12px;
  border: 1px solid var(--app-line);
  border-radius: 14px;
  background: white;
}

.community-action {
  min-height: 34px;
  margin-top: 8px;
  padding: 0 10px;
  border: 1px solid rgba(240, 107, 97, .28);
  border-radius: 999px;
  background: #fff6ef;
  color: #8e3c32;
  cursor: pointer;
  font-weight: 900;
}

.clip-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--app-line);
  border-radius: 14px;
  background: #193241;
  color: white;
}

.clip-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clip-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 43, 55, .08), rgba(18, 43, 55, .82));
}

.clip-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 16px;
}

.clip-content h3 {
  margin: 0;
  color: white;
}

.clip-content p,
.clip-content small {
  color: rgba(255,255,255,.84);
}

.clip-script {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 12px;
  background: rgba(255,255,255,.13);
}

.view-grid {
  display: grid;
  gap: 18px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  gap: 18px;
  align-items: start;
}

.premium-panel {
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 211, 111, .34), transparent 28%),
    linear-gradient(135deg, #f1faf3, #fff4df);
}

.onboarding {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .62fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding: clamp(24px, 6vw, 70px);
}

.onboard-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 7vw, 84px);
}

.onboard-copy p {
  max-width: 640px;
  color: #3f515b;
  font-size: 20px;
}

.onboard-card {
  padding: 22px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 900;
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(25,40,51,.16);
  border-radius: 14px;
  background: white;
  color: var(--app-ink);
  font: inherit;
}

.empty-state {
  padding: 20px;
  border: 1px dashed rgba(25, 40, 51, .2);
  border-radius: 14px;
  background: rgba(255,255,255,.54);
  text-align: center;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 29, 39, .52);
}

.modal-card {
  position: relative;
  width: min(620px, 100%);
  max-height: min(760px, 90vh);
  overflow-y: auto;
  padding: 24px;
  background: #fffdf8;
}

.modal-card h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
}

.premium-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.premium-compare section {
  padding: 14px;
  border: 1px solid var(--app-line);
  border-radius: 14px;
  background: rgba(255,255,255,.7);
}

.premium-compare h3 {
  margin: 0 0 8px;
}

.premium-compare ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: #40525c;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--app-line);
  border-radius: 50%;
  background: white;
  cursor: pointer;
  font-weight: 800;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 36px));
}

.toast {
  margin: 0;
  box-shadow: var(--app-shadow);
}

.mobile-tabs {
  display: none;
}

@media (max-width: 1180px) {
  .alpha-shell {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .alpha-rail {
    position: static;
    grid-column: 2;
    height: auto;
    border-left: 0;
    border-top: 1px solid rgba(25,40,51,.08);
  }
  .alpha-nav span:not(.nav-icon),
  .alpha-brand strong,
  .sidebar-card,
  .user-strip div {
    display: none;
  }
  .alpha-sidebar {
    padding: 18px 14px;
  }
  .alpha-nav button {
    justify-content: center;
    padding: 0;
  }
  .alpha-brand {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .alpha-shell,
  .dashboard-grid,
  .two-col,
  .onboarding {
    grid-template-columns: 1fr;
  }
  .alpha-sidebar {
    display: none;
  }
  .alpha-rail {
    grid-column: auto;
    padding-bottom: 86px;
  }
  .alpha-main {
    padding-bottom: 90px;
  }
  .alpha-topbar {
    display: grid;
  }
  .topbar-content {
    display: grid;
  }
  .stat-row {
    justify-content: flex-start;
  }
  .mobile-tabs {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--app-line);
    border-radius: 18px;
    background: rgba(255,253,248,.94);
    box-shadow: var(--app-shadow);
    backdrop-filter: blur(16px);
  }
  .mobile-tab {
    display: grid;
    place-items: center;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--app-muted);
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
  }
  .mobile-tab.active {
    background: var(--app-mint);
    color: var(--app-blue);
  }
  .match-grid,
  .reaction-row,
  .mark-row,
  .premium-compare {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .alpha-main,
  .alpha-rail,
  .onboarding {
    padding-inline: 14px;
  }
  .top-logo {
    min-height: 44px;
    padding-right: 10px;
  }
  .top-logo .alpha-brand-mark {
    width: 36px;
    height: 36px;
  }
  .hero-card-content {
    min-height: 340px;
    padding: 22px;
  }
  .lesson-node {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .lock-label {
    grid-column: 2;
  }
  .lesson-footer {
    display: grid;
  }
  .lesson-footer .action-row {
    justify-content: stretch;
  }
  .primary-action,
  .secondary-action,
  .danger-action {
    width: 100%;
  }
  .score-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .lesson-node.next-up .lesson-badge::after {
    animation: none;
  }
}

/* Alpha11 directed loop redesign */
.alpha-shell {
  grid-template-columns: 236px minmax(0, 1fr);
}

.alpha-main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.plain-button {
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #526872;
  cursor: pointer;
  font-weight: 900;
}

.plain-button:hover:not(:disabled) {
  color: var(--app-blue);
}

.plain-button:disabled {
  cursor: default;
  opacity: .4;
}

.today-view,
.today-focus,
.reward-layout {
  display: grid;
  gap: 18px;
}

.back-link {
  justify-self: start;
}

.image-bleed {
  position: relative;
  overflow: hidden;
  background: #173141;
  color: white;
}

.image-bleed > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19, 41, 53, .9), rgba(19, 41, 53, .46), rgba(19, 41, 53, .18));
}

.mood-m0::after {
  background: linear-gradient(90deg, rgba(96, 39, 38, .9), rgba(240, 107, 97, .42), rgba(20, 43, 54, .24));
}

.mood-imagery::after {
  background: linear-gradient(90deg, rgba(30, 83, 63, .9), rgba(117, 183, 137, .42), rgba(20, 43, 54, .18));
}

.mood-metaphor::after {
  background: linear-gradient(90deg, rgba(101, 69, 11, .92), rgba(255, 211, 111, .42), rgba(20, 43, 54, .2));
}

.mood-personification::after {
  background: linear-gradient(90deg, rgba(26, 69, 88, .92), rgba(129, 198, 222, .42), rgba(20, 43, 54, .18));
}

.today-hero,
.today-reward {
  min-height: min(680px, calc(100vh - 170px));
  border-radius: 18px;
  box-shadow: var(--app-shadow);
}

.today-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: inherit;
  max-width: 720px;
  padding: clamp(26px, 6vw, 70px);
}

.today-hero-content h2 {
  margin: 0;
  max-width: 760px;
  color: white;
  font-size: clamp(38px, 7vw, 82px);
  line-height: .95;
  letter-spacing: 0;
}

.today-hero-content p {
  max-width: 600px;
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
}

.day-chip {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.quiet-actions .secondary-action {
  background: rgba(255,255,255,.9);
}

.today-inline-rep {
  max-width: 920px;
}

.lesson-focus-card {
  max-width: 980px;
  margin-inline: auto;
}

.lesson-focus-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.lesson-focus-head h2 {
  margin-top: 0;
}

.step-count {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff4e8;
  color: #8d4338;
  font-weight: 900;
  white-space: nowrap;
}

.step-shell {
  animation: stepSlide .2s ease both;
}

@keyframes stepSlide {
  from {
    opacity: .6;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.lesson-back {
  min-width: 74px;
  text-align: left;
}

.inline-reel {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 16px;
  background: #183241;
  color: white;
}

.inline-reel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inline-reel::after {
  content: "";
  position: absolute;
  inset: 0;
}

.inline-reel-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: 360px;
  padding: 22px;
}

.inline-reel-content h3,
.inline-reel-content p {
  margin: 0;
  color: white;
}

.inline-reel-content h3 {
  max-width: 680px;
  font-size: clamp(27px, 4vw, 46px);
  line-height: 1;
}

.inline-reel-content p {
  max-width: 620px;
  color: rgba(255,255,255,.88);
  line-height: 1.55;
}

.reels-view {
  justify-items: center;
}

.reels-view .soft-panel {
  width: min(100%, 720px);
}

.reel-stack {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: 100%;
  max-height: calc(100vh - 184px);
  overflow-y: auto;
  padding: 4px 0 22px;
}

.reel-card {
  width: min(420px, 100%);
  min-height: min(760px, calc(100vh - 200px));
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  box-shadow: var(--app-shadow);
}

.tap-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 50%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.tap-left {
  left: 0;
}

.tap-right {
  right: 0;
}

.reel-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  display: grid;
  gap: 12px;
  padding: 24px;
  pointer-events: none;
}

.reel-content button {
  pointer-events: auto;
}

.reel-content small,
.reel-content h3,
.reel-content p {
  margin: 0;
  color: white;
}

.reel-content small {
  color: rgba(255,255,255,.75);
  font-weight: 900;
}

.reel-content h3 {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1;
}

.reel-content p {
  color: rgba(255,255,255,.88);
  line-height: 1.5;
}

.reel-dots {
  display: flex;
  gap: 6px;
}

.reel-dots span {
  width: 22px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.36);
}

.reel-dots span.active {
  background: white;
}

.reel-watch {
  justify-self: start;
  color: rgba(255,255,255,.82);
}

.garden-view {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.garden-premium {
  grid-column: 1 / -1;
}

@media (max-width: 1180px) {
  .alpha-shell {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .alpha-shell,
  .garden-view {
    grid-template-columns: 1fr;
  }

  .mobile-tabs {
    grid-template-columns: repeat(4, 1fr);
  }

  .today-hero,
  .today-reward {
    min-height: min(610px, calc(100vh - 168px));
    border-radius: 14px;
  }

  .reel-stack {
    max-height: calc(100vh - 214px);
  }
}

@media (max-width: 560px) {
  .today-hero-content {
    padding: 24px;
  }

  .today-hero-content h2 {
    font-size: 42px;
  }

  .lesson-focus-head,
  .lesson-footer {
    display: grid;
  }

  .reel-card {
    width: min(100%, 360px);
    min-height: min(640px, calc(100vh - 220px));
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .step-shell {
    animation: none !important;
  }
}

/* Alpha13 light app frame, graphic progression, and stronger upsells */
.alpha-app {
  background: #f6f7f8;
}

.alpha-sidebar {
  background: rgba(255,255,255,.92);
}

.alpha-main {
  overflow: visible;
}

.today-light-view {
  gap: 20px;
}

.today-card-hero,
.progress-board,
.skill-map-card,
.premium-upsell-card {
  border: 1px solid rgba(25, 40, 51, .1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(25, 40, 51, .08);
}

.today-card-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .72fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
  min-height: 0;
  padding: clamp(18px, 3vw, 28px);
  color: var(--app-ink);
}

.today-copy {
  display: grid;
  align-content: center;
  gap: 15px;
  min-width: 0;
}

.quest-chip {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: #edf2f7;
  color: #344a55;
  font-size: 12px;
  font-weight: 950;
}

.today-copy h2 {
  max-width: 620px;
  margin: 0;
  color: var(--app-ink);
  font-size: clamp(34px, 5vw, 64px);
  line-height: .96;
  letter-spacing: 0;
}

.today-copy p {
  max-width: 600px;
  margin: 0;
  color: #526872;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
}

.quest-summary {
  display: grid;
  gap: 4px;
  max-width: 580px;
  padding: 14px 16px;
  border: 1px solid rgba(117, 183, 137, .28);
  border-radius: 14px;
  background: #f1faf3;
}

.quest-summary strong {
  color: #2f7144;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.quest-summary span {
  color: #20333d;
  font-weight: 850;
  line-height: 1.4;
}

.today-image-frame {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 16px;
  background: #e8ecef;
}

.today-image-frame img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.progress-board {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.35fr) minmax(260px, .72fr);
  gap: 16px;
  padding: 16px;
  align-items: stretch;
}

.progress-board .progress-runway,
.premium-upsell-card,
.skill-map-card {
  box-shadow: none;
}

.progress-board .progress-runway {
  border: 1px solid rgba(25, 40, 51, .1);
  background: #f8fafb;
  backdrop-filter: none;
}

.progress-board .progress-runway li {
  background: #fff;
}

.progress-board .progress-runway li.current {
  background: #fff7da;
}

.progress-board .progress-runway li::before {
  border-color: #c7d0d6;
  background: #fff;
}

.progress-board .progress-runway span {
  color: #66757d;
}

.progress-board .progress-runway strong {
  color: var(--app-ink);
}

.skill-map-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #fff, #f7f9fa);
}

.path-headline h3,
.premium-upsell-card h3 {
  margin: 0;
  color: var(--app-ink);
  font-size: 20px;
}

.path-headline p,
.premium-upsell-card p {
  margin: 5px 0 0;
  color: #66757d;
  line-height: 1.5;
}

.skill-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.skill-map::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 42px;
  border-top: 4px dotted rgba(117, 183, 137, .42);
}

.skill-node {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--app-ink);
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.skill-node > span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 5px solid #dce7df;
  border-radius: 50%;
  background: #fff;
  color: #4d6a58;
  box-shadow: 0 8px 0 #dce7df;
  font-size: 24px;
  font-weight: 950;
}

.skill-node.current > span {
  border-color: var(--app-coral);
  background: var(--app-coral);
  color: white;
  box-shadow: 0 8px 0 #c9544c;
}

.skill-node.done > span {
  border-color: var(--app-mint-strong);
  background: var(--app-mint-strong);
  color: white;
  box-shadow: 0 8px 0 #5e9e71;
}

.skill-node.locked {
  cursor: not-allowed;
}

.skill-node.locked > span {
  border-color: #d9dee2;
  background: #eef1f3;
  color: #8a98a0;
  box-shadow: 0 8px 0 #d4dade;
}

.skill-node strong {
  max-width: 120px;
  overflow: hidden;
  color: var(--app-ink);
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-node small {
  color: #66757d;
  font-size: 12px;
  font-weight: 850;
}

.premium-upsell-card {
  display: grid;
  gap: 14px;
  align-content: space-between;
  padding: 18px;
  background:
    linear-gradient(135deg, #fff, #fff8e4);
}

.premium-chip {
  background: #fff0c1;
  color: #8a5f00;
}

.premium-upsell-card ul {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: #40525c;
  line-height: 1.4;
}

.reward-card {
  background: linear-gradient(135deg, #fff, #f1faf3);
}

@media (max-width: 1180px) {
  .progress-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .today-card-hero {
    grid-template-columns: 1fr;
  }

  .today-image-frame {
    order: -1;
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  .today-card-hero,
  .progress-board,
  .skill-map-card,
  .premium-upsell-card {
    border-radius: 14px;
  }

  .today-card-hero {
    padding: 14px;
  }

  .today-image-frame {
    order: 2;
    min-height: 150px;
  }

  .today-copy h2 {
    font-size: 34px;
  }

  .today-copy p {
    font-size: 15px;
  }

  .quest-summary {
    padding: 11px 12px;
  }

  .skill-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }

  .skill-map::before {
    display: none;
  }

  .skill-node > span {
    width: 74px;
    height: 74px;
  }
}

/* Alpha12 hero-first Today loop */
.today-shell {
  display: block;
  min-height: 100vh;
}

.today-shell .hero-main {
  min-height: 100vh;
  padding: 0;
}

.today-shell .today-view {
  min-height: 100vh;
}

.today-shell .today-hero,
.today-shell .today-reward {
  min-height: 100vh;
  border-radius: 0;
  box-shadow: none;
}

.today-shell .image-bleed::after {
  background:
    linear-gradient(180deg, rgba(18, 37, 47, .7), rgba(18, 37, 47, .12) 24%, rgba(18, 37, 47, .78) 100%),
    linear-gradient(90deg, rgba(20, 37, 48, .92), rgba(78, 43, 42, .44), rgba(20, 37, 48, .16));
}

.today-shell .mood-m0::after {
  background:
    linear-gradient(180deg, rgba(68, 31, 34, .78), rgba(68, 31, 34, .1) 24%, rgba(68, 31, 34, .78) 100%),
    linear-gradient(90deg, rgba(68, 31, 34, .94), rgba(240, 107, 97, .42), rgba(19, 41, 53, .12));
}

.hero-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(210px, auto) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 22px clamp(18px, 4vw, 54px);
}

.hero-brand,
.hero-menu,
.hero-stat-strip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.13);
  color: white;
  box-shadow: 0 14px 36px rgba(0,0,0,.12);
  backdrop-filter: blur(16px);
}

.hero-brand {
  gap: 12px;
  min-height: 58px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}

.hero-brand .alpha-brand-mark {
  width: 42px;
  height: 42px;
  margin: 0;
}

.hero-brand strong,
.hero-brand small {
  display: block;
  line-height: 1.1;
  text-align: left;
}

.hero-brand strong {
  font-size: 17px;
  font-weight: 900;
}

.hero-brand small {
  margin-top: 2px;
  color: rgba(255,255,255,.74);
  font-size: 12px;
  font-weight: 800;
}

.hero-menu {
  justify-self: center;
  min-height: 48px;
  padding: 5px;
  border-radius: 999px;
}

.hero-menu button {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.78);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.hero-menu button:hover,
.hero-menu button.active {
  background: rgba(255,255,255,.88);
  color: var(--app-blue);
}

.hero-stat-strip {
  gap: 8px;
  justify-self: end;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.hero-stat-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
}

.today-shell .today-hero-content {
  grid-template-columns: minmax(0, .95fr) minmax(320px, .55fr);
  align-content: end;
  align-items: end;
  gap: clamp(22px, 4vw, 54px);
  min-height: 100vh;
  max-width: none;
  padding: clamp(120px, 18vh, 190px) clamp(18px, 5vw, 72px) clamp(34px, 8vh, 76px);
}

.hero-copy {
  display: grid;
  gap: 18px;
  max-width: 820px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 830px;
  color: white;
  font-size: clamp(54px, 9vw, 126px);
  line-height: .86;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 650px;
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.4;
}

.hero-goal {
  display: grid;
  gap: 4px;
  max-width: 620px;
  padding-left: 16px;
  border-left: 4px solid rgba(255, 211, 111, .92);
}

.hero-goal strong {
  color: var(--app-gold);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-goal span {
  color: white;
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 850;
  line-height: 1.35;
}

.hero-cta {
  justify-self: start;
  min-width: min(100%, 420px);
  min-height: 58px;
  box-shadow: 0 18px 34px rgba(240, 107, 97, .34);
}

.hero-game-panel {
  display: grid;
  gap: 14px;
  align-self: end;
}

.progress-runway,
.game-meters {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  background: rgba(255,255,255,.14);
  box-shadow: 0 18px 44px rgba(0,0,0,.16);
  backdrop-filter: blur(18px);
}

.progress-runway {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  list-style: none;
}

.progress-runway li {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 12px 12px 12px 46px;
  border-radius: 14px;
  background: rgba(255,255,255,.1);
}

.progress-runway li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 16px;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}

.progress-runway li.done::before {
  background: var(--app-mint-strong);
  border-color: var(--app-mint-strong);
}

.progress-runway li.current {
  background: rgba(255, 211, 111, .24);
}

.progress-runway li.current::before {
  background: var(--app-gold);
  border-color: var(--app-gold);
  box-shadow: 0 0 0 6px rgba(255, 211, 111, .2);
}

.progress-runway span {
  color: rgba(255,255,255,.66);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.progress-runway strong {
  color: white;
  font-size: 15px;
  line-height: 1.25;
}

.game-meters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
}

.game-meters > div:not(.hero-level-meter) {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: rgba(255,255,255,.08);
}

.game-meters span {
  color: rgba(255,255,255,.68);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.game-meters strong {
  overflow: hidden;
  color: white;
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-level-meter {
  grid-column: 1 / -1;
  height: 9px;
  background: rgba(255,255,255,.16);
}

.hero-level-meter i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--app-coral), var(--app-gold), var(--app-mint-strong));
}

@media (max-width: 980px) {
  .hero-nav {
    grid-template-columns: 1fr auto;
  }

  .hero-menu {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: space-between;
    order: 3;
  }

  .hero-menu button {
    flex: 1;
    padding-inline: 8px;
  }

  .hero-stat-strip {
    justify-self: end;
  }

  .today-shell .today-hero-content {
    grid-template-columns: 1fr;
    align-content: end;
  }

  .hero-game-panel {
    max-width: 680px;
  }
}

@media (max-width: 560px) {
  .hero-nav {
    gap: 10px;
    padding: 12px;
  }

  .hero-brand {
    min-height: 48px;
    padding: 6px 10px 6px 7px;
  }

  .hero-brand .alpha-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .hero-brand small {
    display: none;
  }

  .hero-stat-strip {
    min-height: 42px;
    padding: 0 6px;
  }

  .hero-stat-strip span {
    padding-inline: 6px;
  }

  .hero-menu {
    min-height: 44px;
    padding: 4px;
  }

  .hero-menu button {
    min-height: 36px;
    font-size: 12px;
  }

  .today-shell .today-hero-content {
    padding: 132px 14px 20px;
  }

  .hero-copy {
    gap: 13px;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 15vw, 66px);
  }

  .hero-copy p,
  .hero-goal span {
    font-size: 16px;
  }

  .hero-cta {
    width: 100%;
    min-width: 0;
  }

  .progress-runway {
    padding: 11px;
  }

  .progress-runway li {
    padding: 10px 10px 10px 38px;
  }

  .progress-runway li::before {
    left: 11px;
    top: 13px;
  }

  .game-meters {
    grid-template-columns: 1fr;
  }
}

/* Alpha15 brand hero header */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--app-ink);
}

.brand-logo strong {
  color: currentColor;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.brand-logo-light {
  color: #fff;
}

.brand-logo-dark {
  color: var(--app-ink);
}

.brand-mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 10px 20px rgba(25, 40, 51, .16));
}

.brand-logo-large {
  gap: 12px;
}

.brand-logo-large .brand-mark {
  width: 58px;
  height: 58px;
}

.brand-logo-large strong {
  font-size: 28px;
}

.brand-logo-nav .brand-mark {
  width: 44px;
  height: 44px;
}

.brand-logo-hero {
  gap: 11px;
  text-shadow: 0 2px 14px rgba(0,0,0,.28);
}

.brand-logo-hero .brand-mark {
  width: 46px;
  height: 46px;
}

.brand-logo-hero strong {
  font-size: 22px;
}

.alpha-brand {
  color: var(--app-ink);
  text-decoration: none;
}

.alpha-sidebar .alpha-brand {
  margin-bottom: 32px;
}

.alpha-main {
  padding-top: 0;
}

.brand-hero.alpha-topbar {
  position: relative;
  isolation: isolate;
  display: block;
  height: 33vh;
  min-height: 220px;
  max-height: 360px;
  margin: 0 calc(clamp(18px, 3vw, 34px) * -1) 54px;
  overflow: visible;
  border-radius: 0 0 24px 24px;
  background: #20333d;
  box-shadow: 0 16px 34px rgba(25, 40, 51, .12);
}

.brand-hero > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.brand-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(18, 37, 47, .7), rgba(18, 37, 47, .18) 42%, rgba(18, 37, 47, .78)),
    linear-gradient(90deg, rgba(18, 50, 66, .84), rgba(240, 107, 97, .26), rgba(255, 211, 111, .16));
}

.brand-hero.mood-m0::after {
  background:
    linear-gradient(180deg, rgba(64, 30, 36, .72), rgba(64, 30, 36, .14) 42%, rgba(45, 30, 34, .82)),
    linear-gradient(90deg, rgba(64, 30, 36, .9), rgba(240, 107, 97, .34), rgba(255, 211, 111, .18));
}

.brand-hero.mood-imagery::after {
  background:
    linear-gradient(180deg, rgba(28, 72, 54, .72), rgba(28, 72, 54, .16) 42%, rgba(20, 52, 45, .82)),
    linear-gradient(90deg, rgba(28, 72, 54, .88), rgba(117, 183, 137, .34), rgba(255, 211, 111, .16));
}

.brand-hero.mood-metaphor::after,
.brand-hero.mood-personification::after {
  background:
    linear-gradient(180deg, rgba(18, 50, 66, .72), rgba(18, 50, 66, .16) 42%, rgba(18, 50, 66, .84)),
    linear-gradient(90deg, rgba(18, 50, 66, .88), rgba(255, 211, 111, .3), rgba(117, 183, 137, .18));
}

.brand-hero-logo.top-logo {
  position: absolute;
  top: 18px;
  left: calc(50% - 118px);
  z-index: 3;
  display: inline-flex;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
  transform: translateX(-50%);
}

.brand-hero-logo.top-logo:hover,
.brand-hero-logo.top-logo:focus-visible {
  background: transparent;
  box-shadow: none;
}

.account-button {
  position: absolute;
  top: 18px;
  right: clamp(18px, 3vw, 34px);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: #fff;
  box-shadow: 0 12px 26px rgba(0,0,0,.14);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.account-button:hover {
  background: rgba(255,255,255,.24);
}

.brand-hero-copy {
  position: absolute;
  left: clamp(18px, 4vw, 54px);
  right: clamp(18px, 4vw, 54px);
  bottom: 58px;
  z-index: 2;
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.brand-hero .day-chip {
  background: rgba(255,255,255,.9);
  color: #25404d;
}

.brand-hero h1 {
  margin: 0;
  max-width: 760px;
  color: #fff;
  font-size: clamp(32px, 5.2vw, 58px);
  line-height: .98;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(0,0,0,.22);
}

.brand-hero p {
  max-width: 600px;
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 750;
  line-height: 1.42;
}

.brand-hero-stats.stat-row {
  position: absolute;
  left: clamp(18px, 4vw, 54px);
  right: clamp(18px, 4vw, 54px);
  bottom: -22px;
  z-index: 3;
  justify-content: flex-start;
}

.brand-hero .stat-pill {
  min-height: 44px;
  border-color: rgba(25, 40, 51, .08);
  background: #fff;
  box-shadow: 0 12px 24px rgba(25, 40, 51, .13);
}

.account-modal {
  display: grid;
  gap: 18px;
}

.account-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-avatar {
  width: 54px;
  height: 54px;
  font-size: 20px;
}

.account-head h2 {
  margin: 0;
}

.account-head p {
  margin: 5px 0 0;
  color: var(--app-muted);
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.account-stats > div,
.confirm-box {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid var(--app-line);
  border-radius: 14px;
  background: #f8fafb;
}

.account-stats span {
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-stats strong {
  color: var(--app-ink);
}

.account-stats small,
.confirm-box p {
  color: var(--app-muted);
  line-height: 1.35;
}

.account-edit {
  display: grid;
  gap: 12px;
}

.confirm-box {
  background: #fff7f0;
}

.mobile-tabs {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .brand-hero.alpha-topbar {
    margin-inline: -14px;
    margin-bottom: 52px;
  }

  .brand-hero-logo.top-logo {
    left: 50%;
  }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .brand-hero-logo.top-logo {
    left: calc(50% - 44px);
  }
}

@media (max-width: 560px) {
  .brand-logo-hero .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-logo-hero strong {
    font-size: 19px;
  }

  .brand-hero.alpha-topbar {
    min-height: 220px;
    border-radius: 0 0 18px 18px;
  }

  .brand-hero-logo.top-logo {
    top: 14px;
  }

  .account-button {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
  }

  .brand-hero-copy {
    left: 14px;
    right: 14px;
    bottom: 30px;
  }

  .brand-hero h1 {
    font-size: 30px;
  }

  .brand-hero p {
    font-size: 14px;
  }

  .brand-hero-stats.stat-row {
    left: 14px;
    right: 14px;
    gap: 7px;
  }

  .brand-hero .stat-pill {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .brand-hero .stat-pill span {
    display: none;
  }

  .account-stats {
    grid-template-columns: 1fr;
  }
}

/* Alpha16 fixed app shell and TikTok-style reel takeover */
html,
body {
  height: 100%;
  overflow: hidden;
}

.app-active {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.app-shell {
  grid-template-columns: 236px minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.app-shell .alpha-sidebar {
  position: static;
  height: 100%;
  overflow: hidden;
}

.app-shell .alpha-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding: 0 clamp(16px, 2.4vw, 30px);
}

.alpha-content {
  min-height: 0;
  overflow: hidden;
}

.app-shell .brand-hero.alpha-topbar {
  height: 30vh;
  height: 30dvh;
  min-height: 176px;
  max-height: 250px;
  margin-bottom: 28px;
}

.app-shell.lesson-open .brand-hero.alpha-topbar {
  height: 18vh;
  height: 18dvh;
  min-height: 120px;
  max-height: 158px;
  margin-bottom: 14px;
}

.app-shell.lesson-open .brand-hero-copy p,
.app-shell.lesson-open .brand-hero-stats {
  display: none;
}

.today-view,
.today-light-view,
.view-path .view-grid,
.today-focus {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.today-light-view {
  display: grid;
  grid-template-rows: minmax(0, .98fr) minmax(0, .72fr);
  gap: 12px;
}

.today-card-hero {
  min-height: 0;
  padding: clamp(12px, 1.7vw, 18px);
}

.today-copy {
  gap: 10px;
}

.today-copy h2 {
  font-size: clamp(28px, 4.4vw, 50px);
}

.today-copy p {
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.4;
}

.quest-summary {
  padding: 10px 12px;
}

.today-image-frame {
  min-height: 0;
}

.progress-board {
  min-height: 0;
  gap: 10px;
  padding: 10px;
  overflow: hidden;
}

.reward-layout {
  grid-template-rows: minmax(0, 1fr);
}

.reward-layout .progress-board {
  display: none;
}

.today-inline-rep {
  position: absolute;
  inset: clamp(10px, 2vw, 24px);
  z-index: 18;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: #fff;
}

.today-inline-rep .write-area {
  min-height: 0;
  resize: none;
  overflow-y: auto;
}

.progress-board .progress-runway {
  min-height: 0;
  padding: 10px;
}

.progress-board .progress-runway li {
  gap: 1px;
  padding: 9px 9px 9px 38px;
}

.progress-board .progress-runway li::before {
  left: 11px;
  top: 12px;
}

.progress-board .progress-runway strong {
  font-size: 13px;
}

.skill-map-card,
.premium-upsell-card {
  min-height: 0;
  padding: 12px;
}

.skill-map-card {
  gap: 10px;
}

.skill-node > span {
  width: 64px;
  height: 64px;
  box-shadow: 0 6px 0 #dce7df;
}

.skill-node.current > span {
  box-shadow: 0 6px 0 #c9544c;
}

.skill-node.done > span {
  box-shadow: 0 6px 0 #5e9e71;
}

.skill-node.locked > span {
  box-shadow: 0 6px 0 #d4dade;
}

.premium-upsell-card ul {
  display: none;
}

.view-path .view-grid {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
}

.view-path .soft-panel,
.view-path .premium-upsell-card,
.view-path .lesson-card,
.view-path .lesson-path-card {
  min-height: 0;
  padding: 12px;
}

.view-path .soft-panel h2,
.view-path .lesson-card h2 {
  font-size: 22px;
}

.view-path .soft-panel p {
  display: none;
}

.view-path .two-col {
  min-height: 0;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .48fr);
  gap: 10px;
}

.view-path .lesson-list {
  gap: 8px;
  padding: 10px;
}

.view-path .lesson-node {
  min-height: 0;
  padding: 8px 10px;
}

.view-path .lesson-badge {
  width: 36px;
  height: 36px;
}

.view-path .lesson-node small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.view-path .level-card {
  gap: 10px;
}

.view-path .streak-days {
  margin-top: 6px;
}

.today-focus {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
}

.lesson-focus-card {
  min-height: 0;
  overflow: hidden;
}

.lesson-open .lesson-focus-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
}

.lesson-open .lesson-focus-head {
  gap: 8px;
}

.lesson-open .lesson-focus-head h2 {
  font-size: clamp(22px, 2.5vw, 30px);
}

.lesson-open .step-shell {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.lesson-open .step-head,
.lesson-open .step-body {
  padding: 10px 12px;
}

.lesson-open .step-body {
  min-height: 0;
  overflow: hidden;
}

.lesson-open .choice-list,
.lesson-open .match-grid,
.lesson-open .reaction-row,
.lesson-open .mark-row {
  gap: 6px;
}

.lesson-open .choice,
.lesson-open .match-card {
  min-height: 0;
  padding: 8px 10px;
  border-radius: 11px;
}

.lesson-open .write-area {
  min-height: 92px;
  max-height: 18vh;
  max-height: 18dvh;
  resize: none;
  overflow-y: auto;
}

.lesson-open .feedback-box,
.lesson-open .reflection-box {
  max-height: 112px;
  overflow: hidden;
  padding: 10px 12px;
}

.lesson-open .lesson-footer {
  min-height: 0;
}

.view-garden .garden-view {
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
}

.view-garden .garden-view .lesson-card {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  overflow: hidden;
}

.view-garden .portfolio-list,
.view-garden .community-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.view-garden .garden-premium {
  display: none;
}

.reels-takeover {
  position: relative;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 18%, rgba(240, 107, 97, .18), transparent 24%),
    linear-gradient(145deg, #050607, #13232c 58%, #050607);
  color: #fff;
}

.reel-stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  transition: transform .25s ease;
}

.reel-stage.reel-bump-up {
  transform: translateY(12px);
}

.reel-stage.reel-bump-down {
  transform: translateY(-12px);
}

.reels-takeover .reel-card {
  width: min(420px, calc((100dvh - 40px) * .5625));
  height: min(760px, calc(100dvh - 40px));
  min-height: 0;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0,0,0,.42);
}

.reels-close,
.reels-counter,
.reel-flip-controls {
  position: absolute;
  z-index: 8;
}

.reels-close {
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 30px;
  line-height: 1;
}

.reels-counter {
  top: 22px;
  right: 22px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 900;
}

.reel-flip-controls {
  right: clamp(18px, 5vw, 64px);
  top: 50%;
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
}

.reel-flip-controls button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
}

.reel-flip-controls button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-shell .alpha-sidebar {
    display: none;
  }

  .app-shell .alpha-main {
    height: calc(100vh - 76px);
    height: calc(100dvh - 76px);
    padding: 0 14px;
  }

  .app-shell .brand-hero.alpha-topbar {
    height: 28vh;
    height: 28dvh;
    min-height: 184px;
    max-height: 210px;
    margin-bottom: 28px;
  }

  .today-light-view {
    grid-template-rows: minmax(0, 1fr);
  }

  .active-today .progress-board {
    display: none;
  }

  .today-card-hero {
    height: 100%;
    grid-template-columns: 1fr;
  }

  .today-image-frame {
    display: none;
  }

  .today-copy h2 {
    font-size: clamp(30px, 9vw, 46px);
  }

  .view-path .view-grid {
    grid-template-rows: minmax(0, 1fr);
  }

  .view-path .soft-panel,
  .view-path .premium-upsell-card {
    display: none;
  }

  .view-path .two-col {
    height: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
  }

  .view-path .level-card {
    order: -1;
    gap: 5px;
    padding: 8px 10px;
  }

  .view-path .level-card h2,
  .view-path .level-card p,
  .view-path .level-card .streak-days,
  .view-path .level-card button {
    display: none;
  }

  .view-path .lesson-list {
    height: 100%;
    align-content: center;
    gap: 5px;
    padding: 7px;
  }

  .view-path .lesson-path-card {
    height: 100%;
    overflow: hidden;
  }

  .view-path .path-head {
    display: none;
  }

  .view-path .lesson-node {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 5px 8px;
  }

  .view-path .lesson-badge {
    width: 32px;
    height: 32px;
  }

  .view-path .lesson-node small {
    display: none;
  }

  .lesson-open .brand-hero.alpha-topbar {
    min-height: 108px;
    max-height: 124px;
  }

  .lesson-open .brand-hero-copy {
    bottom: 28px;
  }

  .lesson-open .brand-hero h1 {
    font-size: 24px;
  }

  .lesson-open .match-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lesson-open .reaction-row,
  .lesson-open .mark-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lesson-open .reflection-box p,
  .lesson-open .feedback-box p {
    line-height: 1.35;
  }

  .view-garden .garden-view {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }

  .view-garden .garden-premium {
    display: none;
  }

  .reels-takeover .reel-card {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    aspect-ratio: auto;
  }

  .reel-flip-controls {
    right: 10px;
  }

  .reel-flip-controls button {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 560px) {
  .app-shell .brand-hero.alpha-topbar {
    min-height: 180px;
  }

  .brand-hero h1 {
    font-size: 28px;
  }

  .today-copy p {
    font-size: 14px;
  }

  .quest-summary span {
    line-height: 1.3;
  }

  .lesson-open .lesson-focus-card {
    padding: 9px;
  }

  .lesson-open .step-head,
  .lesson-open .step-body {
    padding: 8px;
  }

  .lesson-open .choice,
  .lesson-open .match-card {
    font-size: 13px;
  }
}

/* Alpha17 fixed-shell overflow hotfix */
.today-light-view {
  grid-template-rows: minmax(0, 1fr) auto;
  isolation: isolate;
}

.today-card-hero,
.progress-board,
.view-path .lesson-path-card,
.view-path .lesson-list,
.view-path .two-col,
.view-path .level-card,
.view-path .premium-upsell-card {
  min-height: 0;
}

.today-card-hero {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.today-copy {
  min-height: 0;
}

.progress-board {
  position: relative;
  z-index: 1;
  max-height: min(32vh, 190px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.progress-board,
.view-path .lesson-list,
.view-garden .portfolio-list,
.view-garden .community-list {
  scrollbar-color: rgba(117, 183, 137, .5) transparent;
  scrollbar-width: thin;
}

.view-path .view-grid {
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.view-path .two-col {
  overflow: hidden;
}

.view-path .lesson-path-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.view-path .two-col,
.view-path .two-col > *,
.view-path .lesson-path-card {
  height: 100%;
  max-height: 100%;
}

.view-path .lesson-list {
  align-content: start;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.view-path .premium-upsell-card {
  position: relative;
  z-index: 2;
}

.garden-actions {
  align-items: center;
  align-self: start;
  min-height: 0;
}

.garden-actions .primary-action,
.view-garden [data-action="share-latest"] {
  flex: 0 0 auto;
  width: auto;
  min-height: 44px;
  max-height: 54px;
  padding-block: 0;
  align-self: start;
  justify-self: start;
}

@media (min-width: 901px) {
  .app-shell .brand-hero-copy {
    right: auto;
    width: min(430px, calc(50% - 270px));
    max-width: min(430px, calc(50% - 270px));
  }

  .app-shell .brand-hero h1 {
    font-size: clamp(30px, 3.6vw, 52px);
  }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .app-shell .brand-hero-copy {
    width: min(360px, calc(50% - 180px));
    max-width: min(360px, calc(50% - 180px));
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .app-shell .alpha-main {
    padding-inline: clamp(12px, 2vw, 24px);
  }

  .app-shell .brand-hero.alpha-topbar {
    height: 26vh;
    height: 26dvh;
    min-height: 146px;
    max-height: 198px;
    margin-bottom: 16px;
  }

  .app-shell .brand-hero-logo.top-logo {
    top: 12px;
  }

  .account-button {
    top: 12px;
    width: 42px;
    height: 42px;
  }

  .brand-hero-copy {
    bottom: 24px;
    gap: 5px;
  }

  .brand-hero h1 {
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1;
  }

  .brand-hero p {
    font-size: 14px;
    line-height: 1.3;
  }

  .brand-hero-stats.stat-row {
    bottom: -18px;
  }

  .brand-hero .stat-pill {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .today-light-view {
    gap: 8px;
  }

  .today-card-hero {
    grid-template-columns: 1fr;
    padding: 12px 14px;
  }

  .today-copy {
    align-content: center;
    gap: 7px;
  }

  .today-copy h2 {
    font-size: clamp(27px, 3.8vw, 40px);
    line-height: 1;
  }

  .today-copy p {
    font-size: 14px;
    line-height: 1.32;
  }

  .quest-chip {
    min-height: 26px;
    padding-inline: 9px;
  }

  .quest-summary {
    padding: 8px 10px;
  }

  .quest-summary span {
    line-height: 1.25;
  }

  .today-card-hero .action-row {
    gap: 8px;
  }

  .today-card-hero .primary-action,
  .today-card-hero .secondary-action {
    min-height: 40px;
    padding-inline: 14px;
  }

  .today-image-frame {
    display: none;
  }

  .progress-board {
    grid-template-columns: minmax(188px, .7fr) minmax(0, 1.1fr) minmax(210px, .65fr);
    max-height: 124px;
    gap: 8px;
    padding: 8px;
  }

  .progress-board .progress-runway,
  .skill-map-card,
  .premium-upsell-card {
    padding: 8px;
  }

  .progress-board .progress-runway {
    display: grid;
    gap: 4px;
  }

  .progress-board .progress-runway li {
    padding: 6px 7px 6px 30px;
  }

  .progress-board .progress-runway li::before {
    left: 9px;
    top: 9px;
  }

  .progress-board .progress-runway span,
  .path-headline p,
  .premium-upsell-card p,
  .skill-node small {
    display: none;
  }

  .path-headline h3,
  .premium-upsell-card h3 {
    font-size: 16px;
  }

  .skill-map-card {
    gap: 7px;
  }

  .skill-map {
    gap: 8px;
  }

  .skill-map::before {
    top: 29px;
  }

  .skill-node {
    gap: 4px;
  }

  .skill-node > span {
    width: 54px;
    height: 54px;
    border-width: 4px;
    font-size: 18px;
  }

  .premium-upsell-card {
    gap: 8px;
  }

  .premium-upsell-card .primary-action {
    min-height: 38px;
    padding-inline: 12px;
  }

  .view-path .view-grid {
    gap: 8px;
  }

  .view-path .soft-panel,
  .view-path .lesson-card,
  .view-path .lesson-path-card,
  .view-path .premium-upsell-card {
    padding: 9px 10px;
  }

  .view-path .two-col {
    gap: 8px;
  }

  .view-path .lesson-list {
    align-content: center;
    gap: 5px;
    padding: 8px;
  }

  .view-path .path-head {
    display: none;
  }

  .view-path .lesson-node {
    min-height: 40px;
    padding: 4px 8px;
  }

  .view-path .lesson-badge {
    width: 30px;
    height: 30px;
  }

  .view-path .lesson-node small {
    display: none;
  }
}

/* Alpha18 local business quick-wins */
.example-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 6px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eaf7ef;
  color: #376847;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.premium-interest-modal {
  display: grid;
  gap: 14px;
}

.interest-count {
  margin: 0;
  color: var(--app-muted);
  font-weight: 850;
}

.account-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--app-line);
  border-radius: 14px;
  background: #f8fafb;
}

.compact-field {
  min-width: 130px;
}

.compact-field select {
  min-height: 42px;
}

.account-tools .secondary-action {
  min-height: 42px;
}

@media (min-width: 720px) {
  .account-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .view-garden .garden-view {
    gap: 8px;
  }

  .view-garden .garden-view .lesson-card {
    gap: 6px;
    padding: 12px;
  }

  .view-garden .garden-view h2 {
    font-size: 22px;
    line-height: 1.05;
  }

  .view-garden .garden-view .lesson-card > p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--app-muted);
    font-size: 13px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .view-garden .portfolio-list,
  .view-garden .community-list {
    gap: 6px;
    margin-top: 2px;
  }

  .view-garden .portfolio-list .empty-state {
    display: none;
  }

  .community-note {
    padding: 8px;
  }

  .community-note p {
    margin: 4px 0;
    font-size: 13px;
    line-height: 1.25;
  }

  .community-action {
    min-height: 30px;
    margin-top: 4px;
  }
}

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

/* Alpha19 garden redesign */
:root {
  --garden-deep: #103c2b;
  --garden-leaf: #2f7a45;
  --garden-moss: #6fa34f;
  --garden-petal: #f26f68;
  --garden-sun: #f6c95f;
  --garden-lavender: #8d86cf;
  --garden-paper: #fffef9;
  --garden-mist: #eef7ed;
}

.alpha-app {
  background:
    radial-gradient(circle at 12% 10%, rgba(246, 201, 95, .24), transparent 22%),
    radial-gradient(circle at 88% 18%, rgba(141, 134, 207, .16), transparent 24%),
    linear-gradient(145deg, #f7faf4 0%, #f8f8f3 48%, #eef7ed 100%);
  font-family: Nunito, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.onboard-copy h1,
.brand-hero h1,
.today-copy h2,
.lesson-focus-head h2,
.practice-card h2,
.lesson-card h2,
.soft-panel h2,
.modal-card h2,
.reel-content h3,
.path-head strong,
.path-headline h3 {
  font-family: Georgia, "Times New Roman", ui-serif, serif;
  font-weight: 700;
}

.primary-action {
  background: linear-gradient(135deg, #2f7a45, #215f36);
  box-shadow: 0 12px 24px rgba(47, 122, 69, .22);
}

.secondary-action {
  border-color: rgba(47, 122, 69, .18);
  background: rgba(255, 255, 255, .92);
  color: var(--garden-deep);
}

.secondary-action:hover:not(:disabled) {
  border-color: rgba(47, 122, 69, .35);
  background: #f3fbef;
}

.onboarding {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, .52fr);
  gap: clamp(14px, 2.8vw, 34px);
  padding: clamp(14px, 2.8vw, 34px);
}

.onboard-copy {
  min-height: 0;
  height: 100%;
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(16, 60, 43, .18);
}

.onboard-copy::after {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(16, 60, 43, .86), rgba(16, 60, 43, .28) 58%, rgba(16, 60, 43, .08)),
    radial-gradient(circle at 20% 78%, rgba(246, 201, 95, .34), transparent 28%);
}

.onboard-copy-inner {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 18px;
  height: 100%;
  max-width: 720px;
  padding: clamp(24px, 5vw, 72px);
  color: white;
}

.onboard-copy .alpha-brand {
  justify-content: start;
  margin: 0;
  color: white;
}

.onboard-copy h1 {
  max-width: 680px;
  color: white;
  font-size: clamp(44px, 6.8vw, 94px);
  line-height: .9;
}

.onboard-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(17px, 1.8vw, 23px);
  line-height: 1.42;
}

.onboard-mini-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
  margin-top: 8px;
}

.onboard-mini-path span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: white;
  font-weight: 950;
  backdrop-filter: blur(12px);
}

.onboard-mini-path span::before {
  content: "✿";
  margin-right: 4px;
  color: var(--garden-sun);
}

.onboard-card {
  align-self: center;
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,254,249,.92)),
    radial-gradient(circle at 90% 0%, rgba(246, 201, 95, .22), transparent 28%);
}

.onboard-card h2 {
  color: var(--garden-deep);
  font-size: clamp(30px, 3.4vw, 44px);
}

.brand-hero.alpha-topbar {
  border-radius: 0 0 30px 30px;
  box-shadow: 0 18px 44px rgba(16, 60, 43, .18);
}

.app-shell .brand-hero-copy {
  bottom: 30px;
}

.app-shell .brand-hero h1 {
  max-width: 390px;
  font-size: clamp(28px, 3.3vw, 40px);
  line-height: .96;
}

.brand-hero::after,
.brand-hero.mood-m0::after,
.brand-hero.mood-imagery::after,
.brand-hero.mood-metaphor::after,
.brand-hero.mood-personification::after {
  background:
    linear-gradient(180deg, rgba(16, 60, 43, .62), rgba(16, 60, 43, .12) 42%, rgba(16, 60, 43, .78)),
    linear-gradient(90deg, rgba(16, 60, 43, .86), rgba(47, 122, 69, .3), rgba(246, 201, 95, .12));
}

.today-card-hero,
.progress-board,
.skill-map-card,
.premium-upsell-card,
.lesson-path-card,
.lesson-card,
.soft-panel,
.modal-card {
  border-color: rgba(47, 122, 69, .14);
  border-radius: 22px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 16px 44px rgba(16, 60, 43, .1);
}

.today-card-hero {
  background:
    linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.86) 54%, rgba(244,251,239,.55)),
    url("../assets/garden-writing-hero-alpha19.png") right center / auto 100% no-repeat,
    radial-gradient(circle at 6% 12%, rgba(246, 201, 95, .16), transparent 28%);
  background-color: #fff;
}

.today-copy h2 {
  color: var(--garden-deep);
}

.quest-chip,
.small-label,
.tag-row span {
  background: #eaf6e8;
  color: var(--garden-deep);
}

.quest-summary {
  border-color: rgba(47, 122, 69, .18);
  background:
    linear-gradient(135deg, #f4fbef, #fffaf0);
}

.today-image-frame {
  border: 8px solid rgba(255, 255, 255, .86);
  box-shadow: inset 0 0 0 1px rgba(47, 122, 69, .12), 0 16px 34px rgba(16, 60, 43, .16);
}

.garden-path-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(247, 252, 240, .96), rgba(234, 247, 239, .9)),
    radial-gradient(circle at 8% 82%, rgba(242, 111, 104, .18), transparent 24%),
    radial-gradient(circle at 92% 20%, rgba(246, 201, 95, .2), transparent 26%);
}

.garden-path-card::before,
.garden-lesson-path .lesson-list::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.garden-path-card::before {
  left: -8%;
  right: -8%;
  bottom: -24px;
  height: 72px;
  background:
    radial-gradient(circle at 8% 50%, #f26f68 0 7px, transparent 8px),
    radial-gradient(circle at 20% 30%, #f6c95f 0 6px, transparent 7px),
    radial-gradient(circle at 35% 58%, #8d86cf 0 6px, transparent 7px),
    radial-gradient(circle at 62% 44%, #f26f68 0 7px, transparent 8px),
    radial-gradient(circle at 82% 58%, #f6c95f 0 6px, transparent 7px),
    linear-gradient(90deg, rgba(47,122,69,.24), rgba(111,163,79,.18));
  opacity: .78;
}

.garden-vines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.garden-vines span {
  position: absolute;
  width: 92px;
  height: 92px;
  border: 2px solid rgba(47, 122, 69, .22);
  border-left: 0;
  border-bottom: 0;
  border-radius: 50%;
}

.garden-vines span:nth-child(1) { top: 12px; right: 12%; transform: rotate(18deg); }
.garden-vines span:nth-child(2) { bottom: 8px; left: 8%; transform: rotate(210deg); }
.garden-vines span:nth-child(3) { bottom: 28px; right: 4%; transform: rotate(120deg); }

.skill-map {
  align-items: end;
  padding: 8px 8px 18px;
}

.skill-map::before {
  top: 46px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background:
    repeating-linear-gradient(90deg, transparent 0 5%, rgba(47, 122, 69, .34) 5% 7%, transparent 7% 12%),
    linear-gradient(90deg, transparent, rgba(111, 163, 79, .22), transparent);
  transform: skewY(-2deg);
}

.skill-node {
  transform: translateY(var(--node-hop, 0));
}

.skill-node:nth-child(2) { --node-hop: 12px; }
.skill-node:nth-child(3) { --node-hop: -6px; }
.skill-node:nth-child(4) { --node-hop: 10px; }

.skill-node > span {
  border-color: rgba(255,255,255,.86);
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,.94), rgba(255,255,255,.28) 36%, transparent 37%),
    linear-gradient(145deg, #d9c09b, #f5e1ba);
  color: var(--garden-deep);
  box-shadow: 0 8px 0 #bda077, 0 14px 26px rgba(16, 60, 43, .16);
}

.skill-node > span i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.66);
  font-style: normal;
}

.skill-node.current > span {
  border-color: #fff7d7;
  background: linear-gradient(145deg, var(--garden-sun), #ef8f4a);
  color: #513713;
  box-shadow: 0 8px 0 #c57535, 0 0 0 8px rgba(246, 201, 95, .18);
}

.skill-node.done > span {
  background: linear-gradient(145deg, #7fbd65, #2f7a45);
  box-shadow: 0 8px 0 #276a3a, 0 14px 26px rgba(16, 60, 43, .18);
}

.skill-node.done > span i {
  color: white;
  background: rgba(255,255,255,.18);
}

.garden-lesson-path {
  position: relative;
  background:
    linear-gradient(180deg, rgba(247,252,240,.98), rgba(238,247,237,.94)),
    radial-gradient(circle at 12% 18%, rgba(246,201,95,.2), transparent 24%),
    radial-gradient(circle at 86% 78%, rgba(242,111,104,.18), transparent 24%);
}

.garden-lesson-path .lesson-list {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  align-content: center;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 18px;
}

.garden-lesson-path .lesson-list::before {
  left: 54px;
  right: 54px;
  top: 50%;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(101, 128, 67, .28), rgba(47, 122, 69, .4), rgba(101, 128, 67, .28)),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,.66) 38px 48px, transparent 48px 86px);
}

.garden-lesson-path .lesson-node {
  grid-template-columns: 1fr;
  justify-items: center;
  min-width: 120px;
  min-height: 176px;
  padding: 12px 10px;
  border: 1px solid rgba(47, 122, 69, .18);
  border-radius: 28px 28px 20px 20px;
  background: rgba(255,255,255,.76);
  text-align: center;
  box-shadow: 0 14px 24px rgba(16, 60, 43, .09);
}

.garden-lesson-path .lesson-node:nth-child(even) {
  transform: translateY(18px);
}

.garden-lesson-path .lesson-node.active,
.garden-lesson-path .lesson-node:hover {
  border-color: rgba(246, 201, 95, .72);
  background: rgba(255, 251, 230, .92);
}

.garden-lesson-path .lesson-badge {
  width: 62px;
  height: 62px;
  border: 5px solid rgba(255,255,255,.9);
  background: linear-gradient(145deg, #d8c09a, #f6e2b8);
  color: var(--garden-deep);
  box-shadow: 0 7px 0 #b99d76;
}

.garden-lesson-path .lesson-node.active .lesson-badge {
  background: linear-gradient(145deg, var(--garden-sun), #f08d4c);
  color: #4b3310;
}

.module-stages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
}

.module-stages i,
.lesson-stage-trail span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(47, 122, 69, .1);
  color: var(--garden-deep);
  font-style: normal;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.module-stages i.muted {
  opacity: .55;
}

.lesson-stage-trail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.lesson-stage-trail span.done {
  background: rgba(47, 122, 69, .18);
}

.lesson-stage-trail span.active {
  background: #fff0c1;
  color: #7b5600;
}

.step-shell {
  background:
    linear-gradient(180deg, rgba(255,254,249,.98), rgba(244,251,239,.94));
}

.step-head {
  background: rgba(255,255,255,.76);
}

.inline-reel::after,
.reel-card::after {
  background:
    linear-gradient(180deg, rgba(5,18,13,.12), rgba(5,18,13,.08) 36%, rgba(5,18,13,.84)),
    linear-gradient(90deg, rgba(5,18,13,.58), transparent 55%);
}

.reels-takeover {
  background:
    radial-gradient(circle at 18% 12%, rgba(246, 201, 95, .16), transparent 24%),
    radial-gradient(circle at 82% 88%, rgba(242, 111, 104, .16), transparent 22%),
    linear-gradient(145deg, #04120d, #103c2b 58%, #071b13);
}

.reels-takeover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.08), transparent 8%),
    radial-gradient(circle at 88% 20%, rgba(255,255,255,.07), transparent 9%);
  pointer-events: none;
}

.reels-takeover .reel-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  background: #071b13;
}

.reel-phone-top,
.reel-bottom-tabs,
.reel-social-rail {
  position: absolute;
  z-index: 4;
}

.reel-phone-top {
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 18px 18px 10px;
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 950;
  pointer-events: none;
}

.reel-social-rail {
  right: 12px;
  bottom: 96px;
  display: grid;
  gap: 12px;
}

.reel-social-rail button {
  display: grid;
  place-items: center;
  width: 48px;
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  background: rgba(255,255,255,.14);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  font-weight: 950;
  backdrop-filter: blur(12px);
}

.reel-social-rail small {
  font-size: 10px;
  font-weight: 900;
}

.reel-content {
  right: 58px;
  padding-bottom: 96px;
}

.reel-content h3 {
  max-width: 340px;
  text-shadow: 0 3px 18px rgba(0,0,0,.36);
}

.reel-bottom-tabs {
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  align-items: center;
  min-height: 54px;
  padding: 7px;
  border-radius: 22px;
  background: rgba(5,18,13,.62);
  color: rgba(255,255,255,.82);
  font-size: 10px;
  font-weight: 950;
  text-align: center;
  backdrop-filter: blur(16px);
}

.reel-bottom-tabs strong {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-inline: auto;
  border-radius: 50%;
  background: #eaf6d9;
  color: var(--garden-deep);
  font-size: 24px;
}

@media (min-width: 901px) and (max-height: 820px) {
  .garden-lesson-path .lesson-node {
    min-height: 124px;
    border-radius: 20px;
  }

  .garden-lesson-path .lesson-badge {
    width: 44px;
    height: 44px;
    border-width: 4px;
  }

  .module-stages,
  .garden-lesson-path .lock-label {
    display: none;
  }
}

@media (max-width: 900px) {
  .onboarding {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(210px, 38vh) minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .onboard-copy {
    min-height: 0;
    border-radius: 22px;
  }

  .onboard-copy-inner {
    align-content: end;
    padding: 18px 22px;
  }

  .onboard-copy h1 {
    font-size: clamp(34px, 9.4vw, 54px);
  }

  .onboard-mini-path {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .onboard-mini-path span {
    min-height: 38px;
    font-size: 12px;
  }

  .onboard-card {
    align-self: stretch;
    max-height: none;
    padding: 16px;
    overflow: hidden;
  }

  .garden-lesson-path .lesson-list {
    grid-template-columns: 1fr;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .garden-lesson-path .lesson-list::before {
    left: 30px;
    right: auto;
    top: 18px;
    bottom: 18px;
    width: 18px;
    height: auto;
  }

  .garden-lesson-path .lesson-node,
  .garden-lesson-path .lesson-node:nth-child(even) {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    justify-items: stretch;
    min-height: 74px;
    text-align: left;
    transform: none;
  }

  .garden-lesson-path .lesson-badge {
    width: 46px;
    height: 46px;
  }

  .garden-lesson-path .module-stages {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .onboard-card h2 {
    font-size: 25px;
  }

  .onboard-card p,
  .onboard-card .field {
    font-size: 12px;
  }

  .onboard-card .field {
    gap: 5px;
    margin-bottom: 7px;
  }

  .onboard-card .field input,
  .onboard-card .field select {
    min-height: 38px;
    border-radius: 12px;
    font-size: 13px;
  }

  .onboard-card .primary-action {
    min-height: 40px;
  }

  .skill-node > span {
    width: 66px;
    height: 66px;
  }

  .reel-content {
    right: 48px;
    padding: 18px 62px 86px 18px;
  }

  .reel-content h3 {
    font-size: 34px;
  }

  .reel-social-rail {
    right: 8px;
  }

  .reel-social-rail button {
    width: 44px;
  }
}

/* alpha21: softer first-run screen and friendlier typography */
.alpha-app {
  font-family: Nunito, "Avenir Next", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 650;
}

.onboard-copy h1,
.brand-hero h1,
.today-copy h2,
.lesson-focus-head h2,
.practice-card h2,
.lesson-card h2,
.soft-panel h2,
.modal-card h2,
.reel-content h3,
.path-head strong,
.path-headline h3 {
  font-family: Fraunces, "Iowan Old Style", Charter, Georgia, ui-serif, serif;
  letter-spacing: 0;
}

.onboarding {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(16px, 3vw, 38px);
  padding: clamp(14px, 3vw, 36px);
  background:
    radial-gradient(circle at 11% 13%, rgba(246, 201, 95, .2), transparent 24%),
    radial-gradient(circle at 92% 14%, rgba(242, 111, 104, .13), transparent 22%),
    linear-gradient(135deg, #f7fbf3 0%, #fffdf8 52%, #edf7ed 100%);
}

.onboard-copy {
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(16, 60, 43, .2);
}

.onboard-copy::after {
  background:
    linear-gradient(90deg, rgba(16, 54, 38, .78), rgba(16, 54, 38, .38) 52%, rgba(16, 54, 38, .1)),
    linear-gradient(180deg, rgba(16, 54, 38, .16), rgba(16, 54, 38, .54)),
    radial-gradient(circle at 23% 78%, rgba(246, 201, 95, .42), transparent 25%);
}

.onboard-copy-inner {
  align-content: end;
  gap: 14px;
  padding: clamp(26px, 5.8vw, 72px);
}

.onboard-copy .alpha-brand {
  margin-bottom: auto;
}

.onboard-kicker {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff7d7;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.onboard-copy h1 {
  max-width: 650px;
  font-size: clamp(42px, 5.8vw, 84px);
  line-height: .94;
  text-wrap: balance;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .22);
}

.onboard-copy p:not(.onboard-kicker) {
  max-width: 570px;
  color: rgba(255, 255, 255, .92);
  font-size: clamp(16px, 1.6vw, 21px);
  font-weight: 750;
}

.onboard-mini-path {
  max-width: 540px;
  gap: 8px;
}

.onboard-mini-path span {
  min-height: 48px;
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}

.onboard-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 540px;
}

.onboard-proof span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 250, 230, .92);
  color: #315233;
  font-size: 12px;
  font-weight: 950;
}

.onboard-card {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(47, 122, 69, .16);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 253, 248, .94)),
    radial-gradient(circle at 100% 0%, rgba(246, 201, 95, .2), transparent 26%);
  box-shadow: 0 24px 56px rgba(16, 60, 43, .16);
}

.onboard-card::before {
  content: "";
  display: block;
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 32%, #fff7cf 0 18%, transparent 19%),
    radial-gradient(circle at 38% 61%, #f26f68 0 18%, transparent 19%),
    radial-gradient(circle at 63% 61%, #8d86cf 0 18%, transparent 19%),
    linear-gradient(145deg, #eef7ed, #d9efcf);
  box-shadow: inset 0 0 0 1px rgba(47, 122, 69, .12), 0 12px 22px rgba(47, 122, 69, .12);
}

.onboard-card h2 {
  margin-bottom: 4px;
  color: var(--garden-deep);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
}

.onboard-card p {
  margin-top: 0;
  margin-bottom: 18px;
  color: #52645c;
  font-weight: 750;
}

.onboard-card .field {
  color: #294537;
  font-size: 13px;
  font-weight: 950;
}

.onboard-card .field input,
.onboard-card .field select {
  border-color: rgba(47, 122, 69, .18);
  background: #fbfffa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.onboard-card .field input:focus,
.onboard-card .field select:focus {
  border-color: rgba(47, 122, 69, .54);
  outline: 3px solid rgba(246, 201, 95, .34);
}

.onboard-card .primary-action {
  min-height: 48px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2f7a45, #1f6336);
  color: #fff;
  font-weight: 950;
}

@media (max-width: 900px) {
  .onboarding {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(208px, 36vh) minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .onboard-copy {
    border-radius: 24px;
  }

  .onboard-copy-inner {
    gap: 7px;
    padding: 14px 16px;
  }

  .onboard-copy .alpha-brand {
    position: absolute;
    top: 12px;
    left: 16px;
    margin: 0;
    transform: none;
  }

  .onboard-copy .alpha-brand strong {
    display: block;
    font-size: 18px;
  }

  .onboard-copy .brand-logo-large {
    gap: 8px;
  }

  .onboard-copy .brand-logo-large .brand-mark {
    width: 34px;
    height: 34px;
  }

  .onboard-kicker {
    min-height: 26px;
    padding: 0 10px;
    font-size: 10px;
  }

  .onboard-copy h1 {
    font-size: clamp(31px, 8.4vw, 42px);
    line-height: .97;
  }

  .onboard-copy p:not(.onboard-kicker) {
    max-width: 310px;
    font-size: 13px;
    line-height: 1.25;
  }

  .onboard-mini-path {
    gap: 5px;
  }

  .onboard-mini-path span {
    min-height: 31px;
    font-size: 10px;
  }

  .onboard-mini-path span::before {
    display: none;
  }

  .onboard-proof {
    display: none;
  }

  .onboard-card {
    align-self: start;
    min-height: 0;
    padding: 14px;
    border-radius: 22px;
  }

  .onboard-card::before {
    position: absolute;
    top: 13px;
    right: 14px;
    width: 36px;
    height: 36px;
    margin: 0;
    border-radius: 14px;
  }

  .onboard-card h2 {
    max-width: calc(100% - 46px);
    font-size: 23px;
  }

  .onboard-card p {
    max-width: calc(100% - 46px);
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.25;
  }
}

@media (max-width: 560px) {
  .onboarding {
    grid-template-rows: minmax(205px, 35vh) minmax(0, 1fr);
  }

  .onboard-card .field {
    margin-bottom: 6px;
  }

  .onboard-card .field input,
  .onboard-card .field select {
    min-height: 36px;
  }

  .onboard-card .primary-action {
    min-height: 39px;
  }
}

/* alpha22: onboarding-only app-polish pass */
.onboarding {
  --onboard-display-font: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --onboard-ui-font: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
  width: 100%;
  max-width: none;
  height: 100vh;
  min-height: 0;
  padding: clamp(16px, 3vw, 36px);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 14%, rgba(246, 201, 95, .24), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(242, 111, 104, .13), transparent 24%),
    radial-gradient(circle at 72% 92%, rgba(47, 122, 69, .18), transparent 28%),
    linear-gradient(135deg, #f8fbf3 0%, #fffdf8 48%, #edf7ed 100%);
  font-family: var(--onboard-ui-font);
}

.onboarding-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
  width: min(100%, 1100px);
  height: min(640px, calc(100vh - 72px));
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 34px;
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 30px 82px rgba(16, 60, 43, .18);
}

.onboarding .onboard-copy,
.onboarding .onboard-card {
  height: 100%;
  min-height: 0;
  border: 0;
  box-shadow: none;
}

.onboarding .onboard-copy {
  border-radius: 0;
}

.onboarding .onboard-copy::after {
  background:
    linear-gradient(90deg, rgba(16, 54, 38, .62), rgba(16, 54, 38, .26) 56%, rgba(16, 54, 38, .04)),
    linear-gradient(180deg, rgba(16, 54, 38, .28), rgba(16, 54, 38, .46));
}

.onboarding .onboard-copy-inner {
  position: relative;
  align-content: end;
  gap: 13px;
  height: 100%;
  padding: clamp(34px, 5vw, 62px);
}

.onboarding .onboard-copy-inner > :not(.onboard-text-scrim) {
  position: relative;
  z-index: 1;
}

.onboard-text-scrim {
  position: absolute;
  z-index: 0;
  left: clamp(18px, 3vw, 40px);
  right: clamp(18px, 22vw, 220px);
  bottom: clamp(18px, 4vw, 42px);
  height: min(78%, 390px);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(10, 43, 30, .88), rgba(10, 43, 30, .66) 48%, rgba(10, 43, 30, .22)),
    radial-gradient(circle at 18% 18%, rgba(246, 201, 95, .18), transparent 34%);
  filter: blur(.1px);
}

.onboarding .onboard-copy .alpha-brand {
  margin-bottom: auto;
}

.onboarding .onboard-copy h1,
.onboarding .onboard-card h2 {
  font-family: var(--onboard-display-font);
}

.onboarding .onboard-copy h1 {
  font-size: clamp(46px, 5.4vw, 78px);
}

.onboarding .onboard-copy p:not(.onboard-kicker) {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .32);
}

.onboarding .onboard-card {
  display: grid;
  align-content: center;
  gap: 13px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(246, 201, 95, .18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 253, 248, .95));
  font-family: var(--onboard-ui-font);
}

.onboarding .onboard-card::before {
  content: none;
}

.onboard-form-mark {
  width: 54px;
  height: 54px;
}

.onboard-form-mark .brand-logo {
  display: block;
}

.onboard-form-mark .brand-logo strong {
  display: none;
}

.onboard-form-mark .brand-mark {
  width: 54px;
  height: 54px;
}

.onboarding .onboard-card h2 {
  margin: 0;
  font-size: clamp(29px, 3vw, 38px);
}

.onboarding .onboard-card p {
  margin: -5px 0 2px;
  color: #52645c;
}

.onboard-name-field {
  margin: 0;
}

.onboard-name-field input {
  min-height: 48px;
  border-radius: 18px;
  font-family: var(--onboard-ui-font);
}

.profile-choice {
  display: grid;
  gap: 8px;
}

.profile-choice-label {
  color: #294537;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(47, 122, 69, .22);
  border-radius: 999px;
  background: #fbfffa;
  color: #294537;
  cursor: pointer;
  font-family: var(--onboard-ui-font);
  font-size: 13px;
  font-weight: 850;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}

.profile-chip:hover,
.profile-chip:focus-visible {
  outline: 3px solid rgba(246, 201, 95, .3);
  transform: translateY(-1px);
}

.profile-chip[aria-checked="true"] {
  border-color: #236d3e;
  background: linear-gradient(135deg, #2f7a45, #1f6336);
  color: #fff;
  box-shadow: 0 10px 20px rgba(47, 122, 69, .2);
}

.chip-mark {
  display: none;
  color: #fff7d7;
  font-size: 12px;
  line-height: 1;
}

.profile-chip[aria-checked="true"] .chip-mark {
  display: inline;
}

.onboarding .onboard-start {
  width: 100%;
  min-height: 54px;
  margin-top: 2px;
  gap: 9px;
  border-radius: 20px;
  font-family: var(--onboard-ui-font);
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 16px 26px rgba(47, 122, 69, .22);
}

.onboarding .onboard-start:hover,
.onboarding .onboard-start:focus-visible {
  transform: translateY(-1px);
}

.onboarding .onboard-start:active {
  transform: translateY(1px);
}

.cta-bloom {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff7d7;
  font-size: 13px;
}

@media (max-width: 900px) {
  .onboarding {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    padding: 8px;
  }

  .onboarding-frame {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(205px, 35vh) auto;
    gap: 8px;
    height: auto;
    max-height: calc(100vh - 16px);
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .onboarding .onboard-copy,
  .onboarding .onboard-card {
    height: auto;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 24px;
  }

  .onboarding .onboard-copy {
    height: 100%;
    min-height: 0;
  }

  .onboarding .onboard-copy-inner {
    gap: 7px;
    padding: 14px 16px;
  }

  .onboarding .onboard-copy .alpha-brand {
    position: absolute;
    top: 12px;
    left: 16px;
    margin: 0;
  }

  .onboarding .onboard-copy .alpha-brand strong {
    display: block;
    font-size: 18px;
  }

  .onboarding .brand-logo-large {
    gap: 8px;
  }

  .onboarding .brand-logo-large .brand-mark {
    width: 34px;
    height: 34px;
  }

  .onboard-text-scrim {
    left: 10px;
    right: 10px;
    bottom: 8px;
    height: 76%;
    border-radius: 22px;
  }

  .onboarding .onboard-copy h1 {
    font-size: clamp(31px, 8.4vw, 42px);
  }

  .onboarding .onboard-copy p:not(.onboard-kicker) {
    max-width: 315px;
    font-size: 13px;
    line-height: 1.25;
  }

  .onboarding .onboard-mini-path span {
    min-height: 31px;
    font-size: 10px;
  }

  .onboarding .onboard-card {
    align-content: start;
    gap: 8px;
    padding: 13px 14px 14px;
    box-shadow: 0 18px 42px rgba(16, 60, 43, .1);
  }

  .onboard-form-mark {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
  }

  .onboard-form-mark .brand-mark {
    width: 34px;
    height: 34px;
  }

  .onboarding .onboard-card h2,
  .onboarding .onboard-card p {
    max-width: calc(100% - 46px);
  }

  .onboarding .onboard-card h2 {
    font-size: 23px;
  }

  .onboarding .onboard-card p {
    margin: -2px 0 0;
    font-size: 12px;
    line-height: 1.25;
  }

  .onboard-name-field input {
    min-height: 37px;
    border-radius: 14px;
    font-size: 13px;
  }

  .profile-choice {
    gap: 5px;
  }

  .profile-choice-label {
    font-size: 10px;
  }

  .profile-chip-group {
    gap: 5px;
  }

  .profile-chip {
    min-height: 31px;
    padding: 0 10px;
    font-size: 11px;
  }

  .onboarding .onboard-start {
    min-height: 40px;
    border-radius: 16px;
    font-size: 15px;
  }
}

/* alpha23: keep opened modules reachable on short Safari/mobile viewports */
.app-shell.lesson-open .alpha-content {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 14px;
}

.app-shell.lesson-open .today-view,
.app-shell.lesson-open .today-focus {
  height: auto;
  min-height: 100%;
  overflow: visible;
}

.app-shell.lesson-open .today-focus {
  display: block;
}

.app-shell.lesson-open .lesson-focus-card {
  display: grid;
  grid-template-rows: auto auto auto auto;
  min-height: min-content;
  overflow: visible;
}

.app-shell.lesson-open .step-shell {
  min-height: 0;
  grid-template-rows: auto auto;
}

.app-shell.lesson-open .step-body,
.app-shell.lesson-open .feedback-box,
.app-shell.lesson-open .reflection-box {
  max-height: none;
  overflow: visible;
}

.app-shell.lesson-open .write-area {
  max-height: none;
}

@media (max-width: 900px), (max-height: 680px) {
  .app-shell.lesson-open .alpha-content {
    padding-bottom: 22px;
  }

  .app-shell.lesson-open .brand-hero.alpha-topbar {
    height: 16vh;
    height: 16dvh;
    min-height: 86px;
    max-height: 112px;
    margin-bottom: 10px;
  }

  .app-shell.lesson-open .brand-hero h1 {
    font-size: clamp(20px, 6vw, 26px);
  }

  .app-shell.lesson-open .brand-hero-copy {
    display: none;
  }

  .app-shell.lesson-open .lesson-focus-card {
    gap: 9px;
    padding: 12px;
  }

  .app-shell.lesson-open .lesson-focus-head {
    align-items: start;
  }

  .app-shell.lesson-open .lesson-stage-trail {
    gap: 4px;
    margin-top: 7px;
  }

  .app-shell.lesson-open .lesson-stage-trail span {
    min-height: 20px;
    padding-inline: 6px;
    font-size: 9px;
  }

  .app-shell.lesson-open .step-head,
  .app-shell.lesson-open .step-body {
    padding: 10px;
  }
}

/* alpha24: garden-game path, expandable module info, and calmer reels */
.view-path .two-col {
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, .55fr);
}

.path-quest-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.garden-lesson-path {
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr);
  overflow: hidden;
}

.garden-lesson-path .lesson-map {
  position: relative;
  grid-row: 2;
  align-self: stretch;
  height: auto;
  min-height: 220px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 15% 20%, rgba(246, 201, 95, .28), transparent 18%),
    radial-gradient(circle at 82% 16%, rgba(242, 111, 104, .18), transparent 20%),
    radial-gradient(circle at 70% 82%, rgba(47, 122, 69, .18), transparent 20%),
    linear-gradient(180deg, #f8fff3, #e8f5df);
}

.winding-trail {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  filter: drop-shadow(0 12px 18px rgba(71, 86, 42, .13));
}

.winding-trail path {
  fill: none;
  stroke: #c9ad76;
  stroke-width: 11;
  stroke-linecap: round;
  stroke-dasharray: 1 3;
}

.winding-trail path + path {
  stroke: rgba(255,255,255,.7);
  stroke-width: 3;
}

.path-flower {
  position: absolute;
  z-index: 1;
  color: #f26f68;
  font-size: 22px;
  text-shadow: 0 2px 10px rgba(255,255,255,.9);
}

.flower-a { left: 18%; top: 24%; }
.flower-b { left: 77%; top: 68%; color: #f6c95f; }
.flower-c { left: 56%; top: 16%; }

.garden-lesson-path .lesson-map .lesson-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  width: clamp(150px, 18vw, 210px);
  min-height: 82px;
  padding: 10px 12px 10px 9px;
  border-radius: 22px;
  transform: translate(-50%, -50%);
  text-align: left;
}

.garden-lesson-path .lesson-map .lesson-node::after {
  content: "";
  position: absolute;
  inset: auto 18px -9px 18px;
  height: 10px;
  border-radius: 50%;
  background: rgba(56, 83, 45, .16);
  filter: blur(3px);
}

.garden-lesson-path .lesson-map .lesson-node:nth-child(even) {
  transform: translate(-50%, -50%);
}

.garden-lesson-path .lesson-map .lesson-badge {
  width: 54px;
  height: 54px;
}

.garden-lesson-path .lesson-map .lock-label {
  grid-column: 2;
  justify-self: start;
  min-height: 22px;
  margin-top: 4px;
}

.module-inspector {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  gap: 12px;
}

.module-rewards,
.lesson-info-dock {
  display: grid;
  gap: 8px;
}

.module-rewards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-rewards span {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 14px;
  background: #f5fbef;
  color: var(--garden-deep);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.module-inspector details,
.lesson-info-dock details {
  border: 1px solid rgba(47, 122, 69, .14);
  border-radius: 16px;
  background: rgba(255,255,255,.82);
}

.module-inspector summary,
.lesson-info-dock summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--garden-deep);
  font-weight: 950;
}

.module-inspector details p,
.lesson-info-dock details p {
  margin: 0;
  padding: 0 12px 10px;
  color: #50645a;
  font-size: 13px;
  line-height: 1.45;
}

.lesson-info-dock {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px 10px 0;
}

.reels-hub {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.reels-layout {
  grid-template-columns: minmax(280px, .7fr) minmax(260px, .5fr);
  align-items: stretch;
}

.reel-preview-panel {
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
}

.reel-preview-panel .reel-card {
  width: min(100%, 390px);
  min-height: 0;
  height: min(560px, calc(100dvh - 330px));
  min-height: 360px;
}

.reel-library {
  min-height: 0;
}

.reel-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.reel-list-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 78px;
  padding: 8px;
  border: 1px solid rgba(47, 122, 69, .14);
  border-radius: 18px;
  background: rgba(255,255,255,.85);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.reel-list-item.active {
  border-color: rgba(47, 122, 69, .46);
  background: #f3fbef;
  box-shadow: 0 10px 24px rgba(47, 122, 69, .1);
}

.reel-list-item img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
}

.reel-list-item span {
  display: grid;
  gap: 3px;
}

.reel-list-item small {
  color: #607168;
  font-weight: 800;
}

.reel-social-rail,
.reel-bottom-tabs,
.reel-flip-controls {
  display: none !important;
}

.reel-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: auto;
}

.reel-cta-row .primary-action,
.reel-cta-row .secondary-action {
  min-height: 40px;
  padding: 0 14px;
}

.reel-premium {
  justify-self: start;
  color: rgba(255,255,255,.82);
  pointer-events: auto;
}

.reels-takeover {
  position: fixed;
  z-index: 80;
  inset: 0;
}

.reels-takeover .reel-card {
  overflow: hidden;
  width: min(420px, calc((100dvh - 40px) * .5625));
  height: min(760px, calc(100dvh - 40px));
  min-height: 0;
}

.reels-takeover .reel-content,
.reels-takeover .reel-cta-row {
  z-index: 7;
}

@media (max-width: 900px) {
  .view-path .two-col,
  .reels-layout {
    grid-template-columns: 1fr;
  }

  .path-quest-panel {
    grid-template-columns: 1fr;
  }

  .garden-lesson-path .lesson-map {
    min-height: 420px;
  }

  .garden-lesson-path .lesson-map .lesson-node {
    width: 142px;
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 8px;
  }

  .garden-lesson-path .lesson-map .lesson-badge {
    width: 42px;
    height: 42px;
  }

  .garden-lesson-path .lesson-map .lesson-node small,
  .garden-lesson-path .lesson-map .module-stages {
    display: none;
  }

  .lesson-info-dock {
    grid-template-columns: 1fr;
  }

  .reels-hub {
    padding-bottom: 80px;
  }

  .reel-preview-panel .reel-card {
    height: min(520px, calc(100dvh - 300px));
  }
}

/* alpha25: Insight Timer calm + Duolingo-style daily game loop */
.app-active {
  background:
    radial-gradient(circle at 18% 12%, rgba(246, 201, 95, .12), transparent 24%),
    linear-gradient(180deg, #f8faf5 0%, #eef5ec 100%);
  font-family: Nunito, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell .alpha-main {
  background: transparent;
}

.alpha-sidebar {
  border-right: 1px solid rgba(39, 88, 61, .08);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(18px);
}

.alpha-nav button.active,
.mobile-tabs button.active {
  background: #e9f6ec;
  color: #245f3f;
  box-shadow: inset 0 0 0 1px rgba(47, 122, 69, .14);
}

.today-duo-retreat {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.today-duo-retreat .today-card-hero,
.today-duo-retreat .progress-board,
.module-focus-card,
.teacher-practice-row {
  border: 1px solid rgba(38, 81, 58, .11);
  border-radius: 26px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 38px rgba(27, 64, 46, .09);
}

.today-duo-retreat .daily-practice-card {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(92px, 118px);
  grid-template-rows: auto minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  height: 100%;
  overflow: hidden;
  padding: clamp(18px, 2.5vw, 28px);
  background:
    radial-gradient(circle at 85% 22%, rgba(246, 201, 95, .18), transparent 18%),
    radial-gradient(circle at 92% 80%, rgba(242, 111, 104, .13), transparent 24%),
    linear-gradient(145deg, #fefff9 0%, #eef8ea 100%);
}

.daily-practice-card .today-copy {
  align-content: start;
  gap: 13px;
}

.daily-practice-card .quest-chip {
  background: #edf7e9;
  color: #286245;
}

.daily-practice-card .today-copy h2 {
  max-width: 540px;
  color: #15272b;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: .98;
}

.daily-practice-card .today-copy p {
  max-width: 480px;
  color: #435b50;
  font-weight: 760;
}

.daily-practice-card .quest-summary {
  border-color: rgba(47, 122, 69, .15);
  border-radius: 20px;
  background: rgba(255, 255, 255, .74);
}

.daily-practice-card .primary-action {
  min-height: 54px;
  padding-inline: 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2f7a45, #24633a);
  box-shadow: 0 6px 0 #1a4d2f, 0 18px 28px rgba(34, 96, 57, .2);
}

.daily-practice-card .secondary-action,
.today-path-preview .plain-button {
  border-color: rgba(47, 122, 69, .18);
  background: rgba(255, 255, 255, .8);
  color: #245f3f;
}

.daily-goal-ring,
.module-progress-ring {
  display: grid;
  place-items: center;
  align-self: start;
  justify-self: end;
  width: 112px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 58%, transparent 59%),
    conic-gradient(#6aaa58 calc(var(--goal) * 1%), #e3eadf 0);
  color: #15272b;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(38, 81, 58, .08);
}

.daily-goal-ring strong,
.module-progress-ring strong {
  font-family: Nunito, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 28px;
  line-height: 1;
}

.daily-goal-ring span,
.module-progress-ring span {
  margin-top: -22px;
  color: #52665a;
  font-size: 12px;
  font-weight: 900;
}

.daily-practice-card .today-image-frame {
  grid-column: 1 / -1;
  height: min(220px, 28dvh);
  min-height: 120px;
  border-radius: 26px;
  background: #e9f4e4;
  box-shadow: inset 0 0 0 1px rgba(47, 122, 69, .1);
}

.daily-practice-card .today-image-frame img {
  filter: saturate(.94) brightness(1.04);
}

.today-duo-retreat .progress-board {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  align-self: stretch;
  gap: 12px;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px;
}

.today-learning-stack .progress-runway {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 8px;
  border-radius: 22px;
  background: #f7fbf4;
}

.today-learning-stack .progress-runway li {
  min-height: 58px;
  border-radius: 18px;
  background: #fff;
}

.today-path-preview {
  display: grid;
  gap: 8px;
  min-height: 0;
}

.today-path-preview > .path-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.today-path-preview > .path-headline h3 {
  font-size: 18px;
}

.today-path-preview .skill-map-card {
  padding: 12px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 30%, rgba(246, 201, 95, .2), transparent 22%),
    linear-gradient(180deg, #f7fff2, #e7f2df);
  box-shadow: none;
}

.today-path-preview .skill-map-card .path-headline {
  display: none;
}

.today-path-preview .skill-map {
  min-height: 112px;
  align-items: center;
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(196, 172, 117, .5) 7% 88%, transparent 88%),
    radial-gradient(circle at 75% 75%, rgba(242, 111, 104, .12), transparent 24%);
  background-size: 100% 12px, auto;
  background-position: center, center;
  background-repeat: no-repeat;
}

.today-path-preview .skill-node > span {
  width: 54px;
  height: 54px;
}

.today-path-preview .skill-node strong {
  font-size: 12px;
}

.today-path-preview .skill-node small {
  font-size: 11px;
}

.today-path-preview .skill-node.current::after {
  content: "★ ★ ★";
  color: #f2b43f;
  font-size: 13px;
  font-weight: 950;
}

.module-focus-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 78px;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.module-focus-card > img {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  object-fit: cover;
}

.module-focus-card h3,
.teacher-practice-row h3 {
  margin: 0;
  color: #15272b;
  font-size: 18px;
}

.module-focus-card p,
.teacher-practice-row p {
  margin: 4px 0 0;
  color: #53675b;
  font-weight: 750;
  line-height: 1.35;
}

.module-focus-card .module-stages {
  margin-top: 8px;
  justify-content: flex-start;
}

.module-focus-card .secondary-action {
  grid-column: 1 / -1;
  min-height: 42px;
  border-radius: 18px;
}

.module-progress-ring {
  width: 72px;
}

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

.module-progress-ring span {
  margin-top: -12px;
  font-size: 9px;
}

.teacher-practice-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.teacher-practice-row > img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.teacher-practice-row .secondary-action {
  min-height: 42px;
  padding-inline: 16px;
  border-radius: 18px;
}

.today-duo-retreat .premium-upsell-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 14px;
  border-color: rgba(246, 201, 95, .38);
  border-radius: 24px;
  background: linear-gradient(120deg, #fffdf3, #fff3c8);
}

.today-duo-retreat .premium-upsell-card p {
  display: block;
  margin-top: 3px;
}

.today-duo-retreat .premium-upsell-card h3 {
  font-size: 18px;
}

.view-path .path-quest-panel {
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
}

.view-path .path-quest-panel h2 {
  font-size: clamp(24px, 2.6vw, 34px);
}

.garden-lesson-path .lesson-map {
  background:
    radial-gradient(circle at 12% 18%, rgba(246, 201, 95, .3), transparent 18%),
    radial-gradient(circle at 82% 24%, rgba(242, 111, 104, .16), transparent 19%),
    radial-gradient(circle at 45% 88%, rgba(106, 170, 88, .16), transparent 22%),
    linear-gradient(180deg, #fbfff6, #e5f3dc);
}

.garden-lesson-path .lesson-map .lesson-node.active,
.garden-lesson-path .lesson-map .lesson-node.next-up {
  border-color: rgba(246, 201, 95, .72);
  background: rgba(255, 250, 229, .94);
  box-shadow: 0 18px 34px rgba(47, 122, 69, .14);
}

.module-inspector {
  border-radius: 24px;
}

.module-inspector details,
.lesson-info-dock details {
  background: #fbfdf8;
}

.reels-hub .reels-intro,
.reel-library,
.reel-preview-panel {
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
}

.reels-hub .reels-intro h2 {
  font-size: clamp(28px, 3.2vw, 42px);
}

.reel-list-item {
  border-radius: 20px;
  background: #fbfdf8;
}

@media (max-width: 900px) {
  .active-today .app-shell .brand-hero.alpha-topbar {
    height: 26vh;
    height: 26dvh;
    min-height: 158px;
    max-height: 184px;
    margin-bottom: 10px;
  }

  .today-duo-retreat {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 238px) minmax(0, 1fr);
    gap: 10px;
    overflow: hidden;
    overscroll-behavior: contain;
    padding: 0 0 78px;
  }

  .today-duo-retreat .daily-practice-card {
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 9px;
    padding: 14px;
    border-radius: 24px;
  }

  .daily-practice-card .today-copy {
    gap: 7px;
  }

  .daily-practice-card .today-copy h2 {
    font-size: clamp(25px, 8vw, 32px);
  }

  .daily-practice-card .today-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 13px;
    line-height: 1.35;
  }

  .daily-practice-card .quest-summary {
    display: none;
  }

  .daily-practice-card .action-row {
    gap: 8px;
  }

  .daily-practice-card .primary-action,
  .daily-practice-card .secondary-action {
    min-height: 42px;
    padding-inline: 13px;
    font-size: 13px;
  }

  .daily-practice-card .secondary-action {
    display: none;
  }

  .daily-goal-ring {
    width: 82px;
  }

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

  .daily-goal-ring span {
    margin-top: -16px;
    font-size: 10px;
  }

  .daily-practice-card .today-image-frame {
    display: none;
  }

  .today-duo-retreat .progress-board {
    padding: 10px;
    border-radius: 24px;
  }

  .today-learning-stack .progress-runway {
    display: none;
  }

  .today-path-preview {
    display: none;
  }

  .today-path-preview .skill-map {
    min-height: 92px;
  }

  .module-focus-card {
    grid-template-columns: 56px minmax(0, 1fr) 54px;
    gap: 10px;
    padding: 10px;
  }

  .module-focus-card > img {
    width: 56px;
    height: 56px;
    border-radius: 17px;
  }

  .module-focus-card h3,
  .teacher-practice-row h3 {
    font-size: 16px;
  }

  .module-focus-card p,
  .teacher-practice-row p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 12px;
  }

  .module-focus-card .module-stages {
    display: none;
  }

  .module-focus-card .module-stages i {
    padding-inline: 7px;
    font-size: 9px;
  }

  .module-focus-card .secondary-action {
    display: none;
  }

  .teacher-practice-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .teacher-practice-row > img {
    width: 56px;
    height: 56px;
  }

  .teacher-practice-row .secondary-action {
    grid-column: 1 / -1;
  }

  .today-duo-retreat .premium-upsell-card {
    grid-template-columns: 1fr;
  }

  .today-duo-retreat .premium-upsell-card p {
    display: none;
  }
}

@media (min-width: 901px) and (max-height: 700px) {
  .app-shell .brand-hero.alpha-topbar {
    height: 26vh;
    height: 26dvh;
    min-height: 146px;
    margin-bottom: 12px;
  }

  .today-duo-retreat {
    gap: 12px;
  }

  .today-duo-retreat .daily-practice-card {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 10px;
    padding: 15px;
  }

  .daily-practice-card .today-copy {
    gap: 8px;
  }

  .daily-practice-card .today-copy h2 {
    font-size: clamp(28px, 3.4vw, 40px);
  }

  .daily-practice-card .today-copy p {
    font-size: 13px;
    line-height: 1.3;
  }

  .daily-practice-card .quest-summary {
    padding: 8px 10px;
  }

  .daily-practice-card .primary-action,
  .daily-practice-card .secondary-action {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 13px;
  }

  .daily-goal-ring {
    width: 82px;
  }

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

  .daily-goal-ring span {
    margin-top: -16px;
    font-size: 10px;
  }

  .daily-practice-card .today-image-frame {
    display: none;
  }

  .today-duo-retreat .progress-board {
    gap: 9px;
    padding: 10px;
  }

  .today-duo-retreat .premium-upsell-card p {
    display: none;
  }
}

/* Alpha26: Insight Timer calm + Duolingo-style learning game shell */
:root {
  --duo-green: #24763f;
  --duo-green-dark: #15552d;
  --duo-lime: #75c64d;
  --duo-gold: #f6bd24;
  --duo-coral: #f06658;
  --duo-blue: #4ba3c7;
  --calm-bg: #f6f8f3;
  --calm-surface: #ffffff;
  --calm-line: rgba(21, 58, 43, .12);
  --calm-shadow: 0 16px 36px rgba(34, 63, 48, .12);
}

.app-active {
  background:
    linear-gradient(180deg, #fbfcf8 0%, var(--calm-bg) 100%);
  font-family: Nunito, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.learn-game-shell {
  display: block;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.learn-game-shell .alpha-main {
  width: min(1120px, 100%);
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 18px clamp(14px, 2.4vw, 28px) 16px;
  overflow: hidden;
}

.learn-game-shell .alpha-content {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 4px 4px;
  scrollbar-width: thin;
}

.learn-game-shell .today-view,
.learn-game-shell .view-path .view-grid,
.learn-game-shell .today-light-view {
  height: auto;
  min-height: 100%;
  overflow: visible;
}

.learn-game-shell.lesson-open .today-focus {
  height: 100%;
  overflow: hidden;
}

.app-status-bar {
  display: grid;
  grid-template-columns: minmax(172px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 8px 12px;
  border: 1px solid var(--calm-line);
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 26px rgba(34, 63, 48, .08);
}

.status-brand,
.status-avatar,
.premium-mini-card,
.teacher-mini-card,
.premium-shelf-strip {
  font: inherit;
  cursor: pointer;
}

.status-brand {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 10px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--duo-green-dark);
}

.status-brand .brand-logo {
  margin: 0;
}

.status-brand .brand-mark {
  width: 40px;
  height: 40px;
}

.status-brand strong {
  font-size: 19px;
  font-weight: 950;
}

.status-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 118px;
  min-height: 50px;
  padding: 0 14px;
  border-left: 1px solid var(--calm-line);
  color: var(--app-ink);
}

.status-pill b {
  font-size: 18px;
  font-weight: 950;
  white-space: nowrap;
}

.status-pill small {
  color: #566b60;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.1;
}

.status-avatar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 10px 0 6px;
  border: 1px solid var(--calm-line);
  border-radius: 999px;
  background: #fff;
  color: var(--duo-green-dark);
}

.status-avatar span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe0d8, #fff1b7);
  color: #9a4037;
  font-weight: 950;
}

.status-avatar small {
  color: #566b60;
  font-size: 12px;
  font-weight: 950;
}

.learn-game-shell .mobile-tabs {
  position: static;
  z-index: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 8px;
  border: 1px solid var(--calm-line);
  border-radius: 26px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 24px rgba(34, 63, 48, .1);
  backdrop-filter: blur(14px);
}

.learn-game-shell .mobile-tab {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #6d7d75;
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
}

.learn-game-shell .mobile-tab.active {
  background: #ecf8ec;
  color: var(--duo-green);
}

.duo-learning-screen {
  display: grid;
  grid-template-columns: minmax(360px, .88fr) minmax(380px, 1.12fr);
  gap: 18px;
  min-height: 100%;
  align-items: stretch;
}

.daily-lesson-card,
.duo-path-preview,
.path-map-panel,
.course-sheet,
.reel-phone-panel,
.reel-bridge-card,
.garden-shelf-card,
.community-shelf-card {
  border: 1px solid var(--calm-line);
  border-radius: 28px;
  background: var(--calm-surface);
  box-shadow: var(--calm-shadow);
}

.daily-lesson-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 190px;
  min-height: 0;
  background:
    linear-gradient(180deg, #fbfff7, #eef9eb);
}

.lesson-card-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(18px, 3vw, 30px);
}

.daily-card-topline,
.path-preview-copy,
.path-screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.daily-goal-mini {
  color: var(--duo-green);
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
}

.daily-lesson-card h2,
.path-screen h2,
.course-sheet h2,
.reel-bridge-card h2,
.garden-screen h2 {
  margin: 0;
  color: var(--duo-green-dark);
  font-family: Fraunces, Georgia, serif;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.02;
}

.daily-lesson-card h2 {
  max-width: 440px;
  font-size: clamp(36px, 5vw, 58px);
}

.daily-lesson-card p,
.path-screen p,
.course-sheet p,
.reel-bridge-card p,
.garden-screen p {
  margin: 0;
  color: #43564c;
  font-size: 16px;
  line-height: 1.52;
}

.teacher-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.teacher-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #f6bd24, #f06658);
  color: white;
  box-shadow: 0 8px 18px rgba(34, 63, 48, .16);
  font-weight: 950;
}

.teacher-line strong,
.teacher-line small {
  display: block;
}

.teacher-line strong {
  color: var(--app-ink);
  font-weight: 950;
}

.teacher-line small {
  color: #61756b;
  font-size: 13px;
  font-weight: 800;
}

.daily-lesson-card .module-stages,
.course-sheet .module-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.daily-lesson-card .module-stages i,
.course-sheet .module-stages i {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--duo-green-dark);
  box-shadow: inset 0 0 0 1px var(--calm-line);
  font-style: normal;
  font-size: 13px;
  font-weight: 950;
}

.daily-lesson-card .module-stages i::before {
  content: "●";
  color: var(--duo-lime);
  font-size: 11px;
}

.start-practice-button {
  justify-self: stretch;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 60px;
  padding: 0 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #2d884b, var(--duo-green-dark));
  box-shadow: 0 8px 0 #0f4826, 0 16px 28px rgba(21, 85, 45, .22);
  text-align: center;
}

.start-practice-button small {
  opacity: .86;
  font-size: 13px;
}

.lesson-card-art {
  position: relative;
  min-height: 170px;
  overflow: hidden;
}

.lesson-card-art::before {
  content: "";
  position: absolute;
  inset: -18% -8% 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(238,249,235,0), #eef9eb 82%);
}

.lesson-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duo-path-preview {
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr) auto;
  gap: 12px;
  min-height: 0;
  padding: clamp(16px, 2.4vw, 22px);
  overflow: hidden;
}

.path-preview-copy h3,
.path-screen-head h2 {
  margin: 0;
}

.path-detail-peek {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(88, 204, 2, .25);
  border-radius: 999px;
  background: #f3ffe7;
  color: var(--duo-green-dark);
  font-size: 12px;
  font-weight: 950;
}

.path-preview-copy h3 {
  color: var(--duo-green-dark);
  font-size: 20px;
}

.garden-route {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 22% 18%, rgba(246, 189, 36, .18), transparent 18%),
    radial-gradient(circle at 76% 68%, rgba(117, 198, 77, .18), transparent 24%),
    linear-gradient(180deg, #fefff9, #edf8e8);
}

.route-today {
  min-height: 360px;
}

.route-path {
  min-height: 620px;
}

.garden-route-trail {
  position: absolute;
  inset: 6%;
  width: 88%;
  height: 88%;
}

.garden-route-trail path {
  fill: none;
  stroke: #d8c79d;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 2 4;
  filter: drop-shadow(0 8px 0 rgba(133, 104, 55, .11));
}

.route-flower {
  position: absolute;
  color: var(--duo-coral);
  font-size: 24px;
  opacity: .82;
}

.flower-one { left: 13%; top: 20%; }
.flower-two { right: 18%; top: 34%; color: var(--duo-gold); }
.flower-three { left: 23%; bottom: 18%; }

.garden-route-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 116px;
  min-height: 116px;
  padding: 6px;
  border: 0;
  background: transparent;
  color: var(--app-ink);
  cursor: pointer;
  font: inherit;
  text-align: center;
  transform: translate(-50%, -50%);
}

.route-badge {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 6px solid #f5ecd5;
  border-radius: 50%;
  background: #fff9ec;
  color: #826944;
  box-shadow: 0 7px 0 #d9c8a8;
  font-size: 25px;
  font-weight: 950;
}

.garden-route-node.done .route-badge {
  border-color: #d8ecd3;
  background: var(--duo-green);
  color: white;
  box-shadow: 0 7px 0 #14562c;
}

.garden-route-node.current .route-badge,
.garden-route-node.active .route-badge {
  border-color: var(--duo-gold);
  background: linear-gradient(180deg, var(--duo-lime), var(--duo-green));
  color: white;
  box-shadow: 0 7px 0 #14562c, 0 0 0 7px rgba(246, 189, 36, .28);
}

.garden-route-node.locked .route-badge {
  border-color: #e5dfd2;
  background: #f7f2e8;
  color: #978b79;
  box-shadow: 0 7px 0 #d8d0c0;
}

.garden-route-node strong {
  max-width: 118px;
  color: var(--app-ink);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.05;
}

.garden-route-node small {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: #53685d;
  font-size: 11px;
  font-weight: 950;
}

.today-lower-row {
  display: grid;
  grid-template-columns: .7fr .9fr 1fr;
  gap: 10px;
}

.reward-tile,
.premium-mini-card,
.teacher-mini-card {
  min-width: 0;
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--calm-line);
  border-radius: 20px;
  background: #fff;
  color: var(--app-ink);
  text-align: left;
}

.reward-tile {
  background: linear-gradient(180deg, #fffaf0, #fff3c5);
}

.reward-tile strong,
.premium-mini-card strong,
.teacher-mini-card strong,
.premium-shelf-strip strong {
  display: block;
  color: var(--duo-green-dark);
  font-weight: 950;
}

.reward-tile span,
.premium-mini-card span,
.teacher-mini-card small,
.premium-shelf-strip span {
  display: block;
  margin-top: 4px;
  color: #596b62;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.premium-mini-card {
  background: linear-gradient(180deg, #fff8df, #fff0b4);
}

.teacher-mini-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.teacher-mini-card img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
}

.path-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  min-height: 100%;
}

.path-map-panel {
  min-height: 0;
  padding: 20px;
  overflow: hidden;
}

.path-screen-head {
  margin-bottom: 12px;
}

.path-screen h2 {
  font-size: clamp(34px, 4vw, 50px);
}

.course-sheet {
  align-self: center;
  display: grid;
  gap: 14px;
  max-height: 100%;
  overflow-y: auto;
  padding: 20px;
  border-radius: 28px;
}

.sheet-handle {
  justify-self: center;
  width: 54px;
  height: 5px;
  border-radius: 999px;
  background: rgba(21, 58, 43, .14);
}

.course-sheet h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.module-rewards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.module-rewards span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 6px;
  border-radius: 14px;
  background: #f4f8f1;
  color: var(--duo-green-dark);
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}

.course-sheet details {
  border: 1px solid var(--calm-line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.course-sheet summary {
  min-height: 50px;
  padding: 15px 16px;
  color: var(--duo-green-dark);
  cursor: pointer;
  font-weight: 950;
}

.course-sheet details p {
  padding: 0 16px 16px;
  font-size: 14px;
}

.lesson-open .alpha-content {
  overflow: hidden;
}

.today-focus {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.lesson-focus-card {
  width: min(850px, 100%);
  max-height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--calm-shadow);
}

.learn-game-shell.lesson-open .lesson-focus-card {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.lesson-focus-head {
  align-items: center;
}

.lesson-focus-head h2 {
  color: var(--duo-green-dark);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.04;
}

.lesson-focus-head p {
  margin: 6px 0 0;
  color: #556a60;
}

.lesson-focus-card .step-shell {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 22px;
  background: #fbfdf8;
}

.lesson-focus-card .step-body {
  overflow-y: auto;
}

.lesson-focus-card .lesson-footer {
  border-top: 1px solid var(--calm-line);
  padding-top: 10px;
}

.inline-reel {
  min-height: 300px;
  border-radius: 22px;
}

.inline-reel-content {
  min-height: 300px;
}

.reels-screen {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-height: 100%;
}

.reel-phone-panel {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 14px;
}

.reel-phone-panel .reel-card {
  width: min(330px, 100%);
  min-height: 0;
  height: min(650px, calc(100vh - 176px));
  border-radius: 30px;
}

.reel-mode-preview .tap-zone {
  display: none;
}

.reel-bridge-card {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
}

.reel-bridge-card h2 {
  font-size: clamp(34px, 4vw, 52px);
}

.compact-reel-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.reel-list-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 8px;
  border: 1px solid var(--calm-line);
  background: #fff;
  color: var(--app-ink);
  cursor: pointer;
  text-align: left;
}

.reel-list-item img {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
}

.reel-list-item strong,
.reel-list-item small {
  display: block;
}

.reel-list-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reel-list-item.active {
  border-color: rgba(36, 118, 63, .32);
  background: #eff9ed;
}

.garden-screen {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 18px;
  align-items: start;
  min-height: 100%;
}

.garden-shelf-card,
.community-shelf-card {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 30px);
}

.garden-screen h2 {
  font-size: clamp(32px, 4vw, 48px);
}

.premium-shelf-strip {
  grid-column: 1 / -1;
  display: grid;
  gap: 3px;
  padding: 16px 18px;
  border: 1px solid rgba(246, 189, 36, .44);
  border-radius: 22px;
  background: linear-gradient(90deg, #fff8df, #fff);
  text-align: left;
}

.portfolio-row,
.community-note {
  border-radius: 18px;
  box-shadow: none;
}

.primary-action {
  background: linear-gradient(180deg, #2d884b, var(--duo-green-dark));
}

.secondary-action {
  border-color: var(--calm-line);
}

.primary-action:focus-visible,
.secondary-action:focus-visible,
.plain-button:focus-visible,
.garden-route-node:focus-visible,
.reel-list-item:focus-visible,
.premium-mini-card:focus-visible,
.teacher-mini-card:focus-visible,
.premium-shelf-strip:focus-visible,
.status-brand:focus-visible,
.status-avatar:focus-visible,
.mobile-tab:focus-visible {
  outline: 3px solid rgba(246, 189, 36, .62);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .learn-game-shell .alpha-main {
    padding: 12px 10px 10px;
    gap: 10px;
  }

  .app-status-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 58px;
    border-radius: 22px;
  }

  .status-brand strong,
  .status-pill small,
  .status-avatar small {
    display: none;
  }

  .status-brand .brand-mark {
    width: 36px;
    height: 36px;
  }

  .status-pills {
    justify-content: center;
    gap: 4px;
  }

  .status-pill {
    min-width: 0;
    min-height: 42px;
    padding: 0 8px;
    border-left: 0;
  }

  .status-pill b {
    font-size: 15px;
  }

  .status-avatar {
    min-height: 42px;
    padding: 0;
    border: 0;
  }

  .status-avatar span {
    width: 38px;
    height: 38px;
  }

  .duo-learning-screen,
  .path-screen,
  .reels-screen,
  .garden-screen {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .daily-lesson-card {
    grid-template-rows: auto;
    overflow: visible;
  }

  .daily-lesson-card .lesson-card-art {
    display: none;
  }

  .daily-lesson-card h2 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .daily-lesson-card p {
    font-size: 14px;
  }

  .duo-path-preview {
    grid-template-rows: auto minmax(360px, auto) auto;
  }

  .route-path {
    min-height: 610px;
  }

  .course-sheet {
    align-self: auto;
    max-height: none;
  }

  .reel-phone-panel .reel-card {
    height: 560px;
  }

  .compact-reel-list {
    grid-template-columns: 1fr;
  }
}

.app-active .toast-stack {
  bottom: 92px;
  pointer-events: none;
}

.app-active .toast {
  pointer-events: none;
}

@media (max-width: 560px) {
  .learn-game-shell .alpha-content {
    padding-bottom: 2px;
  }

  .learn-game-shell .mobile-tabs {
    min-height: 64px;
    padding: 6px;
    border-radius: 22px;
  }

  .learn-game-shell .mobile-tab {
    min-height: 50px;
    font-size: 11px;
  }

  .daily-card-topline,
  .path-preview-copy,
  .path-screen-head {
    align-items: flex-start;
  }

  .daily-goal-mini,
  .completed-path-button,
  .duo-path-preview .plain-button {
    display: none;
  }

  .daily-lesson-card,
  .duo-path-preview,
  .path-map-panel,
  .course-sheet,
  .reel-phone-panel,
  .reel-bridge-card,
  .garden-shelf-card,
  .community-shelf-card {
    border-radius: 22px;
  }

  .lesson-card-copy,
  .path-map-panel,
  .course-sheet,
  .reel-bridge-card,
  .garden-shelf-card,
  .community-shelf-card {
    padding: 16px;
  }

  .daily-lesson-card .module-stages i {
    min-height: 31px;
    padding-inline: 9px;
    font-size: 12px;
  }

  .start-practice-button {
    min-height: 56px;
  }

  .today-lower-row {
    grid-template-columns: 1fr;
  }

  .route-today {
    min-height: 390px;
  }

  .garden-route-node {
    width: 98px;
    min-height: 100px;
  }

  .route-badge {
    width: 62px;
    height: 62px;
    border-width: 5px;
    font-size: 21px;
  }

  .garden-route-node strong {
    max-width: 98px;
    font-size: 12px;
  }

  .path-map-panel .garden-route-node {
    width: 96px;
  }

  .reel-phone-panel {
    padding: 8px;
  }

  .reel-phone-panel .reel-card {
    width: min(100%, 330px);
    height: min(560px, calc(100vh - 170px));
  }

  .lesson-focus-card {
    padding: 12px;
    border-radius: 22px;
    gap: 8px;
  }

  .lesson-focus-head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }

  .lesson-focus-head .small-label {
    margin-bottom: 5px;
    min-height: 24px;
    padding: 4px 8px;
  }

  .lesson-focus-head h2 {
    font-size: 24px;
  }

  .lesson-focus-head p {
    display: none;
  }

  .step-count {
    min-height: 30px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .lesson-focus-card .step-head {
    padding: 8px 10px;
  }

  .lesson-focus-card .step-head span {
    font-size: 12px;
  }

  .learn-game-shell.lesson-open .inline-reel,
  .learn-game-shell.lesson-open .inline-reel-content {
    min-height: 210px;
  }

  .lesson-focus-card .step-body {
    padding: 12px;
  }
}

/* Alpha27: calm meditation surface + bright language-game palette */
:root {
  --app-ink: #3c3c3c;
  --app-muted: #777777;
  --app-paper: #ffffff;
  --app-wash: #f7f7f7;
  --app-mint: #e5f8d2;
  --app-mint-strong: #58cc02;
  --app-coral: #ff4b4b;
  --app-coral-soft: #ffe1e1;
  --app-gold: #ffc800;
  --app-blue: #1cb0f6;
  --app-sky: #ddf4ff;
  --app-line: rgba(60, 60, 60, .12);
  --app-shadow: 0 16px 34px rgba(60, 60, 60, .10);
  --duo-green: #58cc02;
  --duo-green-dark: #3c8700;
  --duo-lime: #89e219;
  --duo-gold: #ffc800;
  --duo-coral: #ff4b4b;
  --duo-blue: #1cb0f6;
  --insight-teal: #00a79d;
  --insight-deep: #073f47;
  --calm-bg: #f7f7f7;
  --calm-surface: #ffffff;
  --calm-line: rgba(60, 60, 60, .12);
  --calm-shadow: 0 14px 30px rgba(60, 60, 60, .10);
}

.alpha-app,
.app-active {
  background:
    radial-gradient(circle at 7% 4%, rgba(88, 204, 2, .14), transparent 25%),
    radial-gradient(circle at 91% 8%, rgba(28, 176, 246, .12), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
  color: var(--app-ink);
  font-family: Nunito, "Avenir Next", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.learn-game-shell .alpha-main {
  width: min(1180px, 100%);
  padding: 14px clamp(12px, 2.2vw, 24px) 12px;
  gap: 12px;
}

.app-status-bar {
  min-height: 66px;
  border-color: #e5e5e5;
  border-radius: 18px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 2px 0 #e5e5e5, 0 12px 28px rgba(60, 60, 60, .08);
}

.status-brand {
  color: var(--insight-deep);
}

.brand-logo strong,
.status-brand strong {
  color: var(--insight-deep);
  letter-spacing: 0;
}

.brand-mark {
  filter: drop-shadow(0 4px 8px rgba(88, 204, 2, .16));
}

.status-pills {
  gap: 10px;
}

.status-pill {
  justify-content: center;
  min-width: 112px;
  padding: 0 13px;
  border: 2px solid #f1f1f1;
  border-radius: 16px;
  background: #fff;
}

.status-pill b {
  font-size: 17px;
}

.status-pill small {
  color: #777;
}

.streak-pill b { color: #ff9600; }
.heart-pill b { color: var(--duo-coral); }
.xp-pill b { color: var(--duo-blue); }

.status-avatar {
  border: 2px solid #e5e5e5;
  border-radius: 16px;
  box-shadow: 0 2px 0 #d8d8d8;
}

.status-avatar span {
  background: linear-gradient(180deg, #ddf4ff, #b8e7ff);
  color: #116f9f;
}

.learn-game-shell .mobile-tabs {
  border: 2px solid #e5e5e5;
  border-radius: 18px;
  box-shadow: 0 2px 0 #d8d8d8, 0 10px 24px rgba(60, 60, 60, .08);
}

.learn-game-shell .mobile-tab {
  color: #777;
}

.learn-game-shell .mobile-tab.active {
  background: #e5f8d2;
  color: var(--duo-green-dark);
}

.learn-game-shell .mobile-tab.active .nav-icon {
  color: var(--duo-green);
}

.duo-learning-screen {
  grid-template-columns: minmax(360px, .88fr) minmax(420px, 1.12fr);
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.daily-intention-card {
  grid-column: 1 / -1;
  min-height: 132px;
  border: 1px solid rgba(0, 167, 157, .22);
  border-radius: 22px;
  background: var(--insight-deep);
  box-shadow: var(--calm-shadow);
}

.daily-intention-card::after {
  background:
    linear-gradient(90deg, rgba(7, 63, 71, .82), rgba(0, 167, 157, .28) 58%, rgba(88, 204, 2, .08)),
    radial-gradient(circle at 87% 24%, rgba(255, 200, 0, .28), transparent 22%);
}

.daily-intention-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  height: 100%;
  padding: 20px clamp(20px, 4vw, 34px);
}

.daily-intention-copy small {
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.daily-intention-copy h2 {
  max-width: 680px;
  margin: 0;
  color: white;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.02;
}

.daily-intention-copy .plain-button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: white;
  font-size: 12px;
  font-weight: 950;
}

.daily-lesson-card,
.duo-path-preview,
.path-map-panel,
.course-sheet,
.reel-phone-panel,
.reel-bridge-card,
.garden-shelf-card,
.community-shelf-card {
  border: 2px solid #e5e5e5;
  border-radius: 22px;
  box-shadow: 0 3px 0 #d8d8d8, 0 14px 28px rgba(60, 60, 60, .08);
}

.daily-lesson-card {
  grid-template-rows: minmax(0, 1fr) 164px;
  min-height: 0;
  height: 100%;
  background: #fff;
}

.lesson-card-copy {
  min-height: 0;
  gap: 11px;
  padding: clamp(16px, 2.2vw, 24px);
  overflow: hidden;
}

.daily-lesson-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 190px;
  background: linear-gradient(180deg, rgba(229, 248, 210, 0), #e5f8d2 78%);
  pointer-events: none;
}

.quest-chip {
  border: 2px solid #e5e5e5;
  background: #fff;
  color: var(--insight-teal);
  box-shadow: 0 2px 0 #e5e5e5;
  font-weight: 950;
}

.daily-goal-mini {
  color: var(--duo-green-dark);
}

.daily-lesson-card h2,
.path-screen h2,
.course-sheet h2,
.reel-bridge-card h2,
.garden-screen h2 {
  color: var(--insight-deep);
}

.daily-lesson-card h2 {
  font-size: clamp(31px, 3.9vw, 46px);
}

.daily-lesson-card p,
.path-screen p,
.course-sheet p,
.reel-bridge-card p,
.garden-screen p {
  color: #555;
}

.daily-lesson-card p {
  font-size: 14px;
  line-height: 1.42;
}

.teacher-avatar {
  width: 42px;
  height: 42px;
  background: linear-gradient(180deg, var(--duo-gold), #ff9600);
  box-shadow: 0 4px 0 #d97900;
}

.daily-lesson-card .module-stages i,
.course-sheet .module-stages i {
  min-height: 32px;
  border: 2px solid #e5e5e5;
  background: #fff;
  color: #4b4b4b;
  box-shadow: 0 2px 0 #d8d8d8;
}

.daily-lesson-card .module-stages i::before {
  color: var(--duo-green);
}

.daily-lesson-card .module-stages i.muted,
.course-sheet .module-stages i.muted {
  color: #aaa;
}

.start-practice-button,
.primary-action {
  border: 0;
  background: linear-gradient(180deg, #7de000, var(--duo-green));
  color: white;
  box-shadow: 0 5px 0 var(--duo-green-dark), 0 14px 24px rgba(88, 204, 2, .24);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .12);
}

.start-practice-button {
  min-height: 56px;
}

.start-practice-button:hover,
.primary-action:hover:not(:disabled) {
  filter: brightness(1.02);
  transform: translateY(-1px);
}

.start-practice-button:active,
.primary-action:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--duo-green-dark), 0 8px 18px rgba(88, 204, 2, .22);
}

.secondary-action {
  border: 2px solid #e5e5e5;
  background: #fff;
  color: #4b4b4b;
  box-shadow: 0 3px 0 #d8d8d8;
  font-weight: 950;
}

.secondary-action:hover:not(:disabled) {
  border-color: #c7e9b0;
  background: #f7fff1;
  color: var(--duo-green-dark);
}

.lesson-card-art::before {
  background: linear-gradient(180deg, rgba(255,255,255,0), #e5f8d2 85%);
}

.duo-path-preview {
  background: #fff;
  min-height: 0;
  height: 100%;
}

.path-preview-copy h3 {
  color: var(--insight-deep);
  font-size: 22px;
  font-weight: 950;
}

.path-preview-copy .plain-button {
  color: var(--duo-blue);
  font-weight: 950;
}

.garden-route {
  isolation: isolate;
  border: 2px solid #e5e5e5;
  background: #dff4d1;
}

.garden-route::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.22)),
    url("../assets/garden-writing-hero-alpha19.png") center / cover;
  opacity: .92;
  transform: scale(1.02);
}

.garden-route::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 200, 0, .24), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(229,248,210,.38));
}

.garden-route-trail path {
  stroke: rgba(255, 255, 255, .94);
  stroke-width: 8;
  stroke-dasharray: 8 9;
  filter: drop-shadow(0 5px 0 rgba(120, 88, 42, .28));
}

.route-flower {
  color: var(--duo-coral);
  text-shadow: 0 2px 0 white;
}

.route-badge {
  border-color: #fff;
  background: #f1f1f1;
  color: #777;
  box-shadow: 0 6px 0 #b7b7b7, 0 0 0 5px rgba(255, 255, 255, .9);
}

.garden-route-node.done .route-badge {
  background: var(--duo-blue);
  box-shadow: 0 6px 0 #0b78a8, 0 0 0 5px rgba(255, 255, 255, .9);
}

.garden-route-node.current .route-badge,
.garden-route-node.active .route-badge {
  border-color: #fff;
  background: linear-gradient(180deg, #7de000, var(--duo-green));
  box-shadow: 0 6px 0 var(--duo-green-dark), 0 0 0 7px rgba(255, 200, 0, .72), 0 0 28px rgba(88, 204, 2, .40);
}

.garden-route-node.locked .route-badge {
  background: #e5e5e5;
  color: #999;
  box-shadow: 0 6px 0 #b7b7b7, 0 0 0 5px rgba(255, 255, 255, .9);
}

.garden-route-node strong,
.garden-route-node small {
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 2px 8px rgba(60, 60, 60, .10);
}

.garden-route-node strong {
  padding: 3px 8px;
  color: #3c3c3c;
}

.garden-route-node small {
  color: var(--duo-green-dark);
}

.reward-tile,
.premium-mini-card,
.teacher-mini-card {
  border: 2px solid #e5e5e5;
  box-shadow: 0 3px 0 #d8d8d8;
}

.reward-tile {
  background: linear-gradient(180deg, #fff8c8, #fff2a3);
}

.premium-mini-card {
  background: linear-gradient(180deg, #fff7c7, #ffffff);
}

.teacher-mini-card {
  background: #fff;
}

.reward-tile strong,
.premium-mini-card strong,
.teacher-mini-card strong,
.premium-shelf-strip strong {
  color: var(--insight-deep);
}

.path-map-panel,
.course-sheet {
  background: #fff;
}

.module-rewards span {
  border: 2px solid #e5e5e5;
  background: #fff;
  color: var(--duo-green-dark);
  box-shadow: 0 2px 0 #d8d8d8;
}

.course-sheet details {
  border: 2px solid #e5e5e5;
  box-shadow: 0 2px 0 #d8d8d8;
}

.course-sheet summary {
  color: var(--insight-deep);
}

.lesson-focus-card {
  border: 2px solid #e5e5e5;
  box-shadow: 0 4px 0 #d8d8d8, 0 18px 36px rgba(60, 60, 60, .10);
}

.lesson-focus-card .step-shell {
  background: #f7f7f7;
}

.reel-phone-panel {
  background:
    radial-gradient(circle at 50% 0%, rgba(28, 176, 246, .18), transparent 32%),
    #101820;
}

.reel-phone-panel .reel-card {
  border: 8px solid #111;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .32), 0 20px 44px rgba(0, 0, 0, .24);
}

.reel-phone-panel .reel-content {
  right: 0;
  gap: 10px;
  padding: 24px 22px 30px;
}

.reel-phone-panel .reel-content h3 {
  max-width: 100%;
  font-size: clamp(27px, 7vw, 38px);
  line-height: 1.06;
}

.reel-phone-panel .reel-content p {
  font-size: 15px;
  line-height: 1.42;
}

.reel-bridge-card {
  background: #fff;
}

.reel-list-item {
  border: 2px solid #e5e5e5;
  border-radius: 16px;
  box-shadow: 0 2px 0 #d8d8d8;
}

.reel-list-item.active {
  border-color: #b8e7ff;
  background: var(--app-sky);
}

.garden-shelf-card,
.community-shelf-card {
  background: #fff;
}

.premium-shelf-strip {
  border: 2px solid rgba(255, 200, 0, .62);
  background: linear-gradient(90deg, #fff7c7, #ffffff);
  box-shadow: 0 3px 0 #efd36b;
}

.community-action {
  background: var(--app-sky);
  color: #0b78a8;
}

@media (max-height: 820px) {
  .daily-intention-card {
    min-height: 76px;
  }

  .daily-intention-copy {
    gap: 3px;
    padding-block: 12px;
  }

  .daily-intention-copy small,
  .daily-intention-copy .plain-button {
    display: none;
  }

  .daily-intention-copy h2 {
    font-size: clamp(24px, 3vw, 32px);
  }

  .daily-lesson-card {
    grid-template-rows: minmax(0, 1fr) 106px;
  }

  .lesson-card-copy {
    gap: 8px;
    padding: 18px 20px;
  }

  .daily-lesson-card h2 {
    font-size: clamp(29px, 3.4vw, 40px);
  }

  .daily-lesson-card .module-stages i {
    min-height: 29px;
    padding-inline: 10px;
  }
}

@media (max-height: 700px) and (min-width: 961px) {
  .daily-intention-card {
    display: none;
  }

  .duo-learning-screen {
    grid-template-rows: minmax(0, 1fr);
  }

  .daily-lesson-card,
  .duo-path-preview {
    grid-row: 1;
  }
}

@media (max-width: 960px) {
  .daily-intention-card {
    min-height: 108px;
  }

  .daily-intention-copy {
    padding: 16px;
  }

  .daily-intention-copy h2 {
    font-size: clamp(24px, 7vw, 34px);
  }

  .duo-learning-screen {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    height: auto;
  }

  .daily-lesson-card,
  .duo-path-preview {
    height: auto;
  }

  .daily-lesson-card {
    grid-template-rows: auto;
  }
}

@media (max-width: 560px) {
  .learn-game-shell .alpha-main {
    padding: 10px 8px 8px;
    gap: 8px;
  }

  .app-status-bar {
    min-height: 54px;
    padding: 6px 8px;
  }

  .status-pill {
    min-height: 38px;
    padding: 0 6px;
    border-width: 0;
    background: transparent;
    box-shadow: none;
  }

  .status-pill b {
    font-size: 14px;
  }

  .daily-intention-card {
    min-height: 88px;
    border-radius: 18px;
  }

  .daily-intention-copy {
    gap: 4px;
    padding: 12px 14px;
  }

  .daily-intention-copy small,
  .daily-intention-copy .plain-button {
    display: none;
  }

  .daily-intention-copy h2 {
    font-size: 23px;
  }

  .daily-lesson-card {
    border-radius: 18px;
  }

  .lesson-card-copy {
    gap: 10px;
  }

  .teacher-line {
    display: none;
  }

  .daily-lesson-card h2 {
    font-size: clamp(29px, 9vw, 38px);
  }

  .duo-path-preview {
    padding: 12px;
  }
}

@media (max-height: 620px) and (max-width: 560px) {
  .daily-intention-card {
    display: none;
  }
}

/* Alpha28: coherence + reward pass */
.toast-stack,
.app-active .toast-stack {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: auto;
  bottom: auto;
  left: 50%;
  z-index: 90;
  width: min(380px, calc(100vw - 28px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast,
.app-active .toast {
  pointer-events: none;
}

.garden-route-trail path {
  stroke: rgba(7, 63, 71, .46);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1 8;
  filter: none;
}

.garden-route-node {
  color: #3c3c3c;
}

.garden-route-node .route-badge {
  position: relative;
}

.garden-route-node.node--done .route-badge {
  background: linear-gradient(180deg, #75d76a, var(--duo-green));
  color: white;
  box-shadow: 0 6px 0 var(--duo-green-dark), 0 0 0 5px rgba(255, 255, 255, .92);
}

.garden-route-node.node--done .route-badge::before {
  content: "✿";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .24);
  font-size: 44px;
}

.garden-route-node.node--done .route-badge {
  font-size: 23px;
}

.garden-route-node.node--current .route-badge {
  border-color: white;
  background: linear-gradient(180deg, #7de000, var(--duo-green));
  color: white;
  box-shadow: 0 6px 0 var(--duo-green-dark), 0 0 0 8px var(--duo-gold), 0 0 30px rgba(255, 200, 0, .36);
}

.garden-route-node.node--open .route-badge {
  background: white;
  color: #777;
  box-shadow: 0 6px 0 #d8d8d8, 0 0 0 5px rgba(255, 255, 255, .92);
}

.garden-route-node.node--locked .route-badge {
  background: #e5e5e5;
  color: #8b8b8b;
  box-shadow: 0 6px 0 #b7b7b7, 0 0 0 5px rgba(255, 255, 255, .88);
}

.garden-route-node.node--locked small {
  display: none;
}

.garden-route-node.node--current small {
  color: #7a5b00;
  background: #fff6bf;
}

.bloom-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.bloom-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  min-height: 112px;
  padding: 14px;
  border: 2px solid #e5e5e5;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f7fff1);
  color: var(--app-ink);
  box-shadow: 0 3px 0 #d8d8d8;
  text-align: left;
}

.bloom-card-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: #e5f8d2;
  color: var(--duo-green-dark);
  font-size: 23px;
  box-shadow: inset 0 0 0 2px rgba(88, 204, 2, .2);
}

.bloom-card.mood-metaphor .bloom-card-mark {
  background: #fff6bf;
  color: #9b7200;
}

.bloom-card.mood-imagery .bloom-card-mark {
  background: var(--app-sky);
  color: #0b78a8;
}

.bloom-card.mood-m0 .bloom-card-mark {
  background: #ffe1e1;
  color: #c73535;
}

.bloom-card-copy,
.bloom-card-copy strong,
.bloom-card-copy small,
.bloom-card-copy span {
  display: block;
  min-width: 0;
}

.bloom-card-copy strong {
  overflow: hidden;
  color: var(--insight-deep);
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bloom-card-copy small {
  margin-top: 3px;
  color: #6f7b75;
  font-size: 12px;
  font-weight: 850;
}

.bloom-card-copy span {
  margin-top: 8px;
  color: #4d5d55;
  font-size: 13px;
  line-height: 1.35;
}

.garden-seed-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 180px;
  padding: 22px;
  border: 2px dashed rgba(88, 204, 2, .36);
  border-radius: 22px;
  background: linear-gradient(180deg, #fbfff7, #ffffff);
  text-align: center;
}

.garden-seed-empty svg {
  width: 118px;
  max-width: 42vw;
}

.garden-seed-empty strong {
  color: var(--insight-deep);
  font-size: 17px;
  line-height: 1.25;
}

.garden-shelf-card .garden-actions {
  margin-top: 2px;
}

.reel-content {
  padding-right: 84px;
}

.reel-cta-row {
  padding-right: 0;
}

.reel-cta-row .primary-action {
  min-height: 44px;
}

.reel-icon-actions {
  position: absolute;
  right: 22px;
  bottom: 28px;
  z-index: 5;
  display: grid;
  gap: 8px;
  pointer-events: auto;
}

.reel-icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, .68);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #163228;
  cursor: pointer;
  font: inherit;
  font-size: 19px;
  font-weight: 950;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .22);
  backdrop-filter: blur(10px);
}

.reel-icon-button:focus-visible {
  outline: 3px solid rgba(255, 200, 0, .72);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .bloom-shelf {
    grid-template-columns: 1fr;
  }

  .view-garden .portfolio-list .garden-seed-empty {
    display: grid;
  }

  .garden-seed-empty {
    min-height: 152px;
    padding: 18px;
  }

  .garden-seed-empty svg {
    width: 86px;
  }

  .garden-shelf-card .garden-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .garden-shelf-card .garden-actions .primary-action,
  .garden-shelf-card .garden-actions .secondary-action {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding-inline: 8px;
    font-size: 13px;
    white-space: nowrap;
  }

  .reel-content {
    padding-right: 72px;
  }

  .reel-icon-actions {
    right: 18px;
    bottom: 26px;
  }
}

/* Alpha30: dark calm-game theme + scrollability pass */
:root {
  --night-bg: #061512;
  --night-bg-2: #0d211b;
  --night-panel: rgba(14, 31, 26, .91);
  --night-panel-strong: rgba(20, 42, 34, .97);
  --night-line: rgba(232, 222, 195, .20);
  --night-text: #f7efdc;
  --night-muted: #c7bea8;
  --night-dim: #9aa88f;
  --night-gold: #f6c75b;
  --duo-green: #58cc02;
  --duo-green-dark: #3f8f00;
  --duo-lime: #8ee45a;
  --duo-gold: #f6c75b;
}

.app-active {
  background:
    radial-gradient(circle at 16% 7%, rgba(88, 204, 2, .16), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(246, 199, 91, .12), transparent 26%),
    linear-gradient(180deg, #03110f 0%, var(--night-bg) 46%, #0a1915 100%);
  color: var(--night-text);
}

.learn-game-shell {
  background:
    linear-gradient(180deg, rgba(4, 18, 15, .82), rgba(4, 18, 15, .96)),
    url("../assets/garden-writing-hero-alpha19.png") center / cover;
}

.learn-game-shell .alpha-content,
.app-shell.lesson-open .alpha-content,
.learn-game-shell.lesson-open .alpha-content {
  overflow-y: auto !important;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

.app-status-bar,
.daily-lesson-card,
.duo-path-preview,
.path-map-panel,
.course-sheet,
.garden-shelf-card,
.community-shelf-card,
.premium-shelf-strip,
.lesson-focus-card,
.reel-bridge-card,
.reel-phone-panel,
.teacher-mini-card,
.premium-mini-card,
.reward-tile,
.bloom-card,
.garden-seed-empty,
.community-note,
.account-card,
.modal-card {
  border-color: var(--night-line);
  background: linear-gradient(180deg, rgba(21, 43, 35, .96), rgba(9, 24, 20, .94));
  color: var(--night-text);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.app-status-bar {
  background: rgba(8, 24, 20, .88);
  backdrop-filter: blur(18px);
}

.status-brand,
.status-pill,
.status-avatar {
  color: var(--night-text);
}

.status-pill {
  border-color: rgba(246, 199, 91, .20);
  background: rgba(255, 255, 255, .06);
}

.status-pill small,
.teacher-line small,
.daily-lesson-card p,
.path-screen p,
.course-sheet p,
.garden-screen p,
.reel-bridge-card p,
.bloom-card-copy span,
.community-note p,
.lesson-focus-head p,
.step-head span {
  color: var(--night-muted);
}

.daily-intention-card {
  border-color: rgba(246, 199, 91, .22);
  background: #071612;
}

.daily-intention-card::after {
  background:
    linear-gradient(90deg, rgba(4, 18, 15, .88), rgba(4, 18, 15, .38) 62%, rgba(88, 204, 2, .08)),
    radial-gradient(circle at 86% 28%, rgba(246, 199, 91, .24), transparent 23%);
}

.daily-intention-copy h2,
.daily-lesson-card h2,
.path-screen h2,
.course-sheet h2,
.garden-screen h2,
.lesson-focus-head h2,
.reel-bridge-card h2,
.reward-tile strong,
.premium-mini-card strong,
.teacher-mini-card strong,
.bloom-card-copy strong {
  color: var(--night-text);
}

.quest-chip,
.small-label,
.path-detail-peek,
.daily-goal-mini {
  border-color: rgba(88, 204, 2, .34);
  background: rgba(88, 204, 2, .12);
  color: #b8f48c;
}

.teacher-avatar,
.status-avatar span {
  background: linear-gradient(180deg, rgba(246, 199, 91, .96), rgba(230, 132, 42, .95));
  color: #221707;
}

.primary-action,
.start-practice-button {
  background: linear-gradient(180deg, #7de000, #58cc02);
  color: #092011;
  box-shadow: 0 5px 0 var(--duo-green-dark), 0 16px 28px rgba(88, 204, 2, .28);
}

.secondary-action,
.plain-button,
.learn-game-shell .plain-button,
.community-action,
.reel-icon-button {
  border-color: rgba(232, 222, 195, .22);
  background: rgba(255, 255, 255, .08);
  color: var(--night-text);
}

.duo-path-preview h3,
.path-screen h2,
.path-screen h3,
.garden-screen h2,
.garden-screen h3,
.reels-screen h2,
.module-inspector summary {
  color: var(--night-text);
}

.module-stages i,
.daily-lesson-card .module-stages i,
.module-rewards span,
.course-sheet details,
.step-shell,
.step-head,
.feedback-box,
.reflection-box,
.lesson-info-dock details,
.profile-chip,
.bloom-card-mark {
  border-color: rgba(232, 222, 195, .18);
  background: rgba(255, 255, 255, .07);
  color: var(--night-text);
}

.progress-track,
.lesson-focus-card .step-shell {
  background: rgba(255, 255, 255, .08);
}

.progress-track i {
  background: linear-gradient(90deg, #58cc02, #f6c75b);
}

.garden-route::before {
  opacity: .34;
  filter: saturate(.9) brightness(.52);
}

.garden-route::after {
  background: linear-gradient(180deg, rgba(4, 18, 15, .42), rgba(4, 18, 15, .16));
}

.garden-route-trail path {
  stroke: rgba(246, 199, 91, .72);
}

.garden-route-node strong,
.garden-route-node small {
  color: var(--night-text);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .44);
}

.garden-route-node.node--open .route-badge,
.garden-route-node.node--locked .route-badge {
  background: linear-gradient(180deg, #2a3632, #17231f);
  color: #d6cdb9;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .34), 0 0 0 5px rgba(246, 199, 91, .10);
}

.garden-route-node.node--current .route-badge,
.garden-route-node.node--done .route-badge {
  border-color: rgba(255, 255, 255, .92);
  box-shadow: 0 6px 0 var(--duo-green-dark), 0 0 0 8px var(--night-gold), 0 0 34px rgba(246, 199, 91, .42);
}

.bloom-card-copy small {
  color: var(--night-gold);
}

.garden-seed-empty {
  border-style: dashed;
  border-color: rgba(88, 204, 2, .42);
}

.mobile-tabs,
.app-active .mobile-tabs,
.learn-game-shell .mobile-tabs {
  border-color: rgba(232, 222, 195, .18);
  background: rgba(8, 24, 20, .94);
  box-shadow: 0 8px 0 rgba(0, 0, 0, .24), 0 18px 36px rgba(0, 0, 0, .34);
  backdrop-filter: blur(18px);
}

.mobile-tab,
.app-active .mobile-tab,
.learn-game-shell .mobile-tab {
  color: var(--night-muted);
}

.mobile-tab.active,
.app-active .mobile-tab.active,
.learn-game-shell .mobile-tab.active {
  background: rgba(88, 204, 2, .18);
  color: #b8f48c;
}

.app-active .mobile-tab.active .nav-icon,
.learn-game-shell .mobile-tab.active .nav-icon {
  color: #58cc02;
}

.reel-card::after {
  background: linear-gradient(180deg, rgba(3, 15, 12, .24), rgba(3, 15, 12, .78));
}

.write-area,
input,
textarea {
  border-color: rgba(232, 222, 195, .20);
  background: rgba(255, 255, 255, .08);
  color: var(--night-text);
}

.write-area::placeholder,
input::placeholder,
textarea::placeholder {
  color: rgba(247, 239, 220, .58);
}

.toast {
  border: 1px solid rgba(88, 204, 2, .28);
  background: rgba(12, 34, 27, .96);
  color: var(--night-text);
}

.learn-game-shell.lesson-open .today-focus,
.learn-game-shell.lesson-open .lesson-focus-card {
  height: auto;
  max-height: none;
  min-height: min-content;
  overflow: visible;
}

.learn-game-shell.lesson-open .step-shell,
.learn-game-shell.lesson-open .step-body,
.lesson-focus-card .step-shell,
.lesson-focus-card .step-body {
  max-height: none;
  overflow: visible;
}

@media (max-width: 760px) {
  .learn-game-shell .alpha-main {
    padding-bottom: 8px;
  }

  .learn-game-shell .alpha-content {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }

  .daily-lesson-card,
  .path-map-panel,
  .course-sheet,
  .garden-shelf-card,
  .community-shelf-card,
  .reel-phone-panel {
    background: linear-gradient(180deg, rgba(21, 43, 35, .98), rgba(8, 23, 19, .96));
  }
}

/* Alpha31: dark-theme polish, contrast, map readability, and toast discipline */
:root {
  --alpha31-surface: #0d211b;
  --alpha31-surface-2: #132d24;
  --alpha31-cream: #f6eddb;
  --alpha31-muted: #e1d5bd;
  --alpha31-chip: #10261f;
  --alpha31-gold: #f6c75b;
}

.toast-stack,
.app-active .toast-stack {
  top: calc(env(safe-area-inset-top, 0px) + 88px);
  z-index: 82;
  width: min(420px, calc(100vw - 32px));
}

.toast,
.app-active .toast {
  display: block;
  overflow: hidden;
  border-color: rgba(246, 199, 91, .32);
  background: rgba(13, 33, 27, .98);
  color: var(--alpha31-cream);
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .34);
}

.daily-intention-card {
  overflow: hidden;
  border-color: rgba(246, 199, 91, .30);
  background:
    radial-gradient(circle at 82% 26%, rgba(246, 199, 91, .22), transparent 24%),
    linear-gradient(135deg, #12352a 0%, #071713 56%, #0d211b 100%);
}

.daily-intention-card img {
  opacity: 0;
}

.daily-intention-card::after {
  background:
    linear-gradient(90deg, rgba(6, 21, 18, .92), rgba(13, 45, 35, .62) 58%, rgba(246, 199, 91, .18)),
    repeating-linear-gradient(135deg, rgba(246, 199, 91, .10) 0 1px, transparent 1px 22px);
}

.daily-intention-copy small,
.daily-intention-copy h2,
.daily-intention-copy .plain-button {
  color: var(--alpha31-cream);
}

.daily-lesson-card {
  align-self: start;
  height: auto;
  min-height: 0;
  overflow: hidden;
  grid-template-rows: minmax(96px, 132px) auto;
  background: linear-gradient(180deg, #132d24, #0b1e18);
  background-color: var(--alpha31-surface);
}

.daily-lesson-card::before {
  display: none;
}

.lesson-card-art {
  grid-row: 1;
  min-height: 96px;
  overflow: hidden;
}

.lesson-card-art::before {
  background: linear-gradient(180deg, rgba(5, 19, 16, .18), rgba(5, 19, 16, .78));
}

.lesson-card-copy {
  grid-row: 2;
  overflow: visible;
  color: var(--alpha31-cream);
}

.daily-lesson-card p,
.daily-lesson-card .teacher-line strong,
.daily-lesson-card .teacher-line small,
.course-sheet .teacher-line strong,
.course-sheet .teacher-line small,
.path-screen p,
.course-sheet p,
.garden-screen p,
.garden-seed-empty strong,
.bloom-card-copy span,
.community-note p,
.lesson-focus-head p,
.step-head span {
  color: var(--alpha31-muted);
}

.daily-lesson-card h2,
.course-sheet h2,
.path-screen h2,
.garden-screen h2,
.duo-path-preview h3,
.reward-tile strong,
.premium-mini-card strong,
.teacher-mini-card strong {
  color: var(--alpha31-cream);
}

.daily-lesson-card .module-stages i,
.course-sheet .module-stages i,
.module-rewards span,
.quest-chip,
.small-label,
.path-detail-peek,
.daily-goal-mini {
  border-color: rgba(246, 199, 91, .28);
  background: rgba(8, 24, 20, .92);
  color: var(--alpha31-cream);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 0 rgba(0, 0, 0, .18);
}

.daily-lesson-card .module-stages i::before,
.course-sheet .module-stages i::before {
  color: #7de000;
}

.plain-button,
.learn-game-shell .plain-button,
.secondary-action,
.learn-game-shell .secondary-action {
  border-color: rgba(246, 199, 91, .32);
  background: linear-gradient(180deg, rgba(31, 61, 49, .96), rgba(13, 33, 27, .96));
  color: var(--alpha31-cream);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.plain-button:hover:not(:disabled),
.secondary-action:hover:not(:disabled) {
  border-color: rgba(246, 199, 91, .58);
  background: linear-gradient(180deg, rgba(44, 82, 64, .98), rgba(20, 47, 38, .98));
  color: #fff8e8;
}

.duo-path-preview,
.path-map-panel,
.course-sheet,
.garden-shelf-card,
.community-shelf-card,
.premium-shelf-strip,
.reel-bridge-card,
.lesson-focus-card {
  background: linear-gradient(180deg, rgba(18, 43, 34, .98), rgba(8, 24, 20, .96));
  background-color: var(--alpha31-surface);
}

.duo-path-preview {
  height: auto;
}

.path-preview-copy .plain-button,
.completed-path-button {
  min-height: 42px;
  padding-inline: 14px;
}

.garden-route {
  border-color: rgba(246, 199, 91, .28);
  background-color: #15372a;
}

.garden-route::before {
  opacity: .86;
  filter: saturate(1.12) brightness(.92) contrast(1.06);
}

.garden-route::after {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, .06), transparent 42%),
    linear-gradient(180deg, rgba(4, 18, 15, .16), rgba(4, 18, 15, .18)),
    radial-gradient(circle at 8% 8%, rgba(4, 18, 15, .54), transparent 28%),
    radial-gradient(circle at 92% 92%, rgba(4, 18, 15, .48), transparent 30%);
}

.garden-route-trail path {
  stroke: rgba(246, 199, 91, .88);
  stroke-width: 3;
  stroke-dasharray: 1 7;
  filter: drop-shadow(0 2px 0 rgba(37, 25, 7, .22));
}

.garden-route-node strong,
.garden-route-node small {
  border: 1px solid rgba(246, 199, 91, .36);
  background: rgb(11, 31, 25);
  color: #fff8e8;
  text-shadow: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .28);
}

.garden-route-node strong {
  padding: 4px 9px;
}

.garden-route-node small {
  background: rgb(35, 65, 44);
  color: #fff4cf;
}

.garden-route-node.node--open .route-badge {
  border-color: rgba(255, 255, 255, .92);
  background: linear-gradient(180deg, #25533e, #16382c);
  color: #fff8e8;
  box-shadow: 0 6px 0 #0a2119, 0 0 0 5px rgba(255, 255, 255, .12);
}

.garden-route-node.node--locked .route-badge {
  border-color: rgba(255, 255, 255, .32);
  background: linear-gradient(180deg, #242f2b, #121b18);
  color: #e6dcc8;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .42), 0 0 0 5px rgba(255, 255, 255, .08);
}

.garden-route-node.node--current .route-badge {
  border-color: rgba(255, 255, 255, .94);
  background: linear-gradient(180deg, #7de000, #58cc02);
  color: #092011;
  box-shadow: 0 6px 0 var(--duo-green-dark), 0 0 0 8px var(--alpha31-gold), 0 0 34px rgba(246, 199, 91, .48);
}

.garden-route-node.node--done .route-badge {
  border-color: rgba(255, 255, 255, .94);
  background: linear-gradient(180deg, #ff6b7a, #df4f66);
  color: #fff8e8;
  box-shadow: 0 6px 0 #8f2939, 0 0 0 5px rgba(255, 255, 255, .16);
}

.garden-seed-empty {
  border-color: rgba(246, 199, 91, .42);
  background: linear-gradient(180deg, rgba(18, 43, 34, .98), rgba(10, 27, 22, .98));
  background-color: var(--alpha31-surface);
}

.garden-seed-empty svg {
  color: var(--alpha31-gold);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .28));
}

.inline-reel {
  display: grid;
  grid-template-rows: minmax(220px, 1fr) auto;
  min-height: 0;
  border: 1px solid rgba(246, 199, 91, .24);
  background: var(--alpha31-surface);
}

.inline-reel-media {
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

.inline-reel .inline-reel-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inline-reel::after {
  display: none;
}

.inline-reel-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 15, 12, .18), rgba(3, 15, 12, .76));
}

.inline-reel-content {
  position: relative;
  z-index: 1;
  min-height: 260px;
}

.inline-reel-controls {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 14px;
  border-top: 1px solid rgba(246, 199, 91, .18);
  background: linear-gradient(180deg, rgba(18, 43, 34, .98), rgba(10, 27, 22, .98));
}

.mobile-tabs,
.app-active .mobile-tabs,
.learn-game-shell .mobile-tabs {
  border-color: rgba(246, 199, 91, .28);
  box-shadow: 0 8px 0 rgba(0, 0, 0, .26), 0 -10px 30px rgba(246, 199, 91, .10), 0 18px 36px rgba(0, 0, 0, .34);
}

.mobile-tab.active,
.app-active .mobile-tab.active,
.learn-game-shell .mobile-tab.active {
  background: linear-gradient(180deg, rgba(246, 199, 91, .28), rgba(88, 204, 2, .18));
  color: #fff4cf;
  box-shadow: 0 0 0 1px rgba(246, 199, 91, .22), 0 0 22px rgba(246, 199, 91, .22);
}

.mobile-tab.active .nav-icon,
.app-active .mobile-tab.active .nav-icon,
.learn-game-shell .mobile-tab.active .nav-icon {
  color: var(--alpha31-gold);
}

.account-modal {
  gap: 16px;
  max-width: min(560px, calc(100vw - 24px));
  background: linear-gradient(180deg, rgba(23, 50, 40, .99), rgba(9, 24, 20, .99));
}

.account-head {
  padding-right: 44px;
}

.account-head p,
.account-stats span,
.account-stats strong,
.account-stats small,
.confirm-box p {
  color: var(--alpha31-muted);
}

.account-stats strong {
  color: var(--alpha31-cream);
}

.account-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-stat-tile,
.account-stats > div {
  position: relative;
  min-height: 118px;
  padding: 14px 14px 14px 58px;
  border-color: rgba(246, 199, 91, .22);
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
}

.account-stat-icon {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 12px;
  background: rgba(246, 199, 91, .15);
  color: var(--alpha31-gold);
  fill: currentColor;
  box-sizing: border-box;
}

.stat-streak .account-stat-icon { color: #ff9f43; }
.stat-hearts .account-stat-icon { color: #ff6b7a; }
.stat-interest .account-stat-icon { color: #8ee45a; }

.account-tools .secondary-action,
.account-edit .secondary-action,
.account-modal .action-row .secondary-action {
  background: linear-gradient(180deg, rgba(35, 70, 55, .98), rgba(13, 33, 27, .98));
}

.status-pill {
  overflow: visible;
}

@media (max-width: 760px) {
  .toast-stack,
  .app-active .toast-stack {
    top: calc(env(safe-area-inset-top, 0px) + 84px);
    width: calc(100vw - 28px);
  }

  .daily-lesson-card {
    grid-template-rows: auto;
  }

  .lesson-card-art {
    display: none;
  }

  .inline-reel-media,
  .inline-reel-content {
    min-height: 214px;
  }

  .account-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) and (max-height: 600px) {
  .daily-intention-card {
    min-height: 74px;
  }

  .daily-intention-copy {
    gap: 0;
    padding: 12px 18px;
  }

  .daily-intention-copy small,
  .daily-intention-copy .plain-button {
    display: none;
  }

  .daily-intention-copy h2 {
    font-size: 22px;
    line-height: 1.04;
  }

  .daily-lesson-card {
    grid-template-rows: auto;
  }

  .lesson-card-art {
    display: none;
  }

  .lesson-card-copy {
    gap: 8px;
    padding: 14px 18px;
  }

  .daily-lesson-card h2 {
    font-size: 28px;
    line-height: .98;
  }

  .daily-lesson-card p {
    font-size: 13px;
    line-height: 1.32;
  }

  .teacher-line {
    gap: 8px;
  }

  .teacher-avatar {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .daily-lesson-card .module-stages i {
    min-height: 28px;
    padding-inline: 8px;
  }

  .start-practice-button {
    min-height: 52px;
  }
}

/* Alpha32: module teaching cards use a solid Duolingo-like exercise surface, not photo-backed text. */
.lesson-focus-card .inline-reel {
  grid-template-rows: auto auto;
  border: 2px solid rgba(91, 111, 124, .64);
  background: #101f24;
  box-shadow: 0 6px 0 rgba(3, 15, 18, .82);
}

.learn-game-shell.lesson-open {
  background:
    radial-gradient(circle at 12% 0%, rgba(126, 224, 0, .08), transparent 24%),
    linear-gradient(180deg, #102027 0%, #0f1b20 42%, #101f24 100%);
}

.lesson-focus-card .inline-reel-media {
  min-height: 0;
  padding: clamp(18px, 4vw, 30px);
  background:
    radial-gradient(circle at 12% 0%, rgba(126, 224, 0, .12), transparent 24%),
    linear-gradient(180deg, #14282e 0%, #101f24 100%);
}

.lesson-focus-card .inline-reel-media::after {
  display: none;
}

.lesson-focus-card .inline-reel-content {
  min-height: 0;
  gap: 18px;
  padding: 0;
  align-content: start;
}

.lesson-focus-card .inline-reel-content .day-chip {
  width: fit-content;
  border-color: rgba(126, 224, 0, .46);
  background: rgba(126, 224, 0, .14);
  color: #dbffc2;
}

.lesson-focus-card .inline-reel-content h3 {
  color: #f7fbff;
  font-family: Nunito, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.02;
}

.lesson-focus-card .inline-reel-content p {
  max-width: 68ch;
  color: #e5edf0;
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.45;
}

.lesson-focus-card .inline-reel-controls {
  border-top: 2px solid rgba(91, 111, 124, .48);
  background: #101f24;
  padding: 16px;
}

@media (max-width: 760px) {
  .lesson-focus-card .inline-reel-media,
  .lesson-focus-card .inline-reel-content {
    min-height: 0;
  }
}

/* Alpha33: opened modules become a full-screen Duolingo-style lesson mode. */
.learn-game-shell.lesson-open {
  position: fixed;
  inset: 0;
  z-index: 30;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.learn-game-shell.lesson-open .alpha-main {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.learn-game-shell.lesson-open .app-status-bar,
.learn-game-shell.lesson-open .mobile-tabs {
  display: none !important;
}

.learn-game-shell.lesson-open .alpha-content {
  height: 100%;
  min-height: 0;
  overflow: hidden !important;
  padding: 0;
}

.learn-game-shell.lesson-open .today-focus {
  position: relative;
  width: min(900px, 100%);
  height: 100%;
  min-height: 0;
  margin-inline: auto;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  padding:
    calc(env(safe-area-inset-top, 0px) + clamp(70px, 9vh, 92px))
    clamp(14px, 4vw, 34px)
    calc(env(safe-area-inset-bottom, 0px) + clamp(14px, 3vh, 26px));
}

.learn-game-shell.lesson-open .lesson-close-button {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + clamp(16px, 3vh, 28px));
  left: max(16px, calc((100vw - min(900px, 100vw)) / 2 + 16px));
  z-index: 4;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #d6e1e4;
  box-shadow: none;
  font-size: 42px;
  line-height: 1;
}

.learn-game-shell.lesson-open .lesson-close-button span {
  display: block;
  transform: translateY(-2px);
}

.learn-game-shell.lesson-open .lesson-focus-card {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: clamp(10px, 2vh, 16px);
}

.learn-game-shell.lesson-open .lesson-focus-head {
  min-width: 0;
  padding-left: clamp(54px, 8vw, 76px);
}

.learn-game-shell.lesson-open .lesson-focus-head h2 {
  color: #fff8e8;
  font-size: clamp(24px, 5.6vw, 38px);
}

.learn-game-shell.lesson-open .lesson-focus-head p {
  color: #d6e1e4;
}

.learn-game-shell.lesson-open .step-count {
  background: #fff7ec;
  color: #944a3f;
}

.learn-game-shell.lesson-open .progress-track {
  height: 13px;
  border-radius: 999px;
  background: #334650;
}

.learn-game-shell.lesson-open .progress-track i {
  border-radius: inherit;
  background: #8ee45a;
}

.learn-game-shell.lesson-open .step-shell {
  min-height: 0;
  overflow: hidden;
  border: 2px solid rgba(91, 111, 124, .58);
  border-radius: 24px;
  background: #14262c;
}

.learn-game-shell.lesson-open .step-body {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.learn-game-shell.lesson-open .lesson-footer {
  min-height: 0;
  padding-top: 0;
  border-top: 0;
  background: transparent;
}

.learn-game-shell.lesson-open .lesson-footer .action-row {
  align-items: stretch;
}

@media (max-width: 760px) {
  .learn-game-shell.lesson-open .today-focus {
    width: 100%;
    padding:
      calc(env(safe-area-inset-top, 0px) + 76px)
      12px
      calc(env(safe-area-inset-bottom, 0px) + 12px);
  }

  .learn-game-shell.lesson-open .lesson-close-button {
    left: 16px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    font-size: 40px;
  }

  .learn-game-shell.lesson-open .lesson-focus-head {
    padding-left: 48px;
  }
}

/* Alpha34: compact Duolingo-style module question screens. */
.learn-game-shell.lesson-open .lesson-progress-hud {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + clamp(28px, 4vh, 40px));
  left: max(78px, calc((100vw - min(900px, 100vw)) / 2 + 78px));
  right: max(16px, calc((100vw - min(900px, 100vw)) / 2 + 16px));
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.learn-game-shell.lesson-open .lesson-progress-hud .progress-track {
  position: static;
  height: 14px;
  border: 0;
  background: #394c56;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.learn-game-shell.lesson-open .lesson-progress-hud .progress-track i {
  background: linear-gradient(180deg, #a3f63e 0%, #65d80b 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset;
}

.learn-game-shell.lesson-open .lesson-progress-hud .step-count {
  min-width: 86px;
  padding: 9px 12px;
  border: 0;
  border-radius: 999px;
  background: #fff7ec;
  color: #944a3f;
  text-align: center;
  font-size: 14px;
  line-height: 1;
}

.learn-game-shell.lesson-open .lesson-focus-card {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="learn"] {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="single"] .lesson-focus-head,
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="multi"] .lesson-focus-head,
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="match"] .lesson-focus-head {
  display: none;
}

.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="single"] .step-shell,
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="multi"] .step-shell,
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="match"] .step-shell {
  border: 0;
  border-radius: 0;
  background: transparent;
  grid-template-rows: minmax(0, 1fr);
}

.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="single"] .step-head,
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="multi"] .step-head,
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="match"] .step-head {
  display: none;
}

.learn-game-shell.lesson-open .step-body-single,
.learn-game-shell.lesson-open .step-body-multi,
.learn-game-shell.lesson-open .step-body-match {
  display: grid;
  min-height: 0;
  overflow: hidden;
  align-content: center;
  gap: clamp(12px, 2.4vh, 22px);
  padding: 0;
}

.learn-game-shell.lesson-open .step-body-single h3,
.learn-game-shell.lesson-open .step-body-multi h3,
.learn-game-shell.lesson-open .step-body-match h3 {
  max-width: 820px;
  margin: 0;
  color: #f7fbff;
  font-family: Nunito, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(24px, 4.2vw, 42px);
  line-height: 1.08;
}

.learn-game-shell.lesson-open .step-body-single .choice-list,
.learn-game-shell.lesson-open .step-body-multi .choice-list,
.learn-game-shell.lesson-open .step-body-match .match-grid {
  min-height: 0;
  gap: clamp(8px, 1.8vh, 14px);
}

.learn-game-shell.lesson-open .step-body-single .choice-list,
.learn-game-shell.lesson-open .step-body-multi .choice-list {
  align-content: center;
}

.learn-game-shell.lesson-open .step-body-match .match-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
}

.learn-game-shell.lesson-open .step-body-single .choice,
.learn-game-shell.lesson-open .step-body-multi .choice,
.learn-game-shell.lesson-open .step-body-match .match-card {
  min-height: clamp(48px, 8.2vh, 76px);
  padding: clamp(10px, 1.8vh, 16px) clamp(12px, 2.6vw, 22px);
  border: 2px solid #344854;
  border-bottom-width: 5px;
  border-radius: 16px;
  background: #111f25;
  color: #f1f6f8;
  box-shadow: none;
  font-size: clamp(15px, 2.2vw, 20px);
  line-height: 1.24;
}

.learn-game-shell.lesson-open .step-body-single .choice,
.learn-game-shell.lesson-open .step-body-multi .choice {
  align-items: center;
}

.learn-game-shell.lesson-open .step-body-match .match-card {
  display: grid;
  place-items: center;
  text-align: center;
}

.learn-game-shell.lesson-open .step-body-single .choice.selected,
.learn-game-shell.lesson-open .step-body-multi .choice.selected,
.learn-game-shell.lesson-open .step-body-match .match-card.selected {
  border-color: #84d8ff;
  border-bottom-color: #3a9bd1;
  background: #173143;
}

.learn-game-shell.lesson-open .step-body-single .choice.correct,
.learn-game-shell.lesson-open .step-body-multi .choice.correct,
.learn-game-shell.lesson-open .step-body-match .match-card.matched {
  border-color: #93e85d;
  border-bottom-color: #53ad10;
  background: #18331f;
}

.learn-game-shell.lesson-open .step-body-single .choice.incorrect,
.learn-game-shell.lesson-open .step-body-multi .choice.incorrect {
  border-color: #ff8b8b;
  border-bottom-color: #c64e4e;
  background: #381d23;
}

.learn-game-shell.lesson-open .choice-letter {
  flex-basis: 30px;
  width: 30px;
  height: 30px;
  background: #263943;
  color: #cbd8dd;
}

.learn-game-shell.lesson-open .step-body-single .feedback-box,
.learn-game-shell.lesson-open .step-body-multi .feedback-box,
.learn-game-shell.lesson-open .step-body-match .feedback-box,
.learn-game-shell.lesson-open .step-body-match .reflection-box {
  max-height: none;
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.35;
}

.learn-game-shell.lesson-open .step-body-single .feedback-box p,
.learn-game-shell.lesson-open .step-body-multi .feedback-box p,
.learn-game-shell.lesson-open .step-body-match .feedback-box p,
.learn-game-shell.lesson-open .step-body-match .reflection-box p {
  line-height: 1.35;
}

@media (max-width: 760px) {
  .learn-game-shell.lesson-open .lesson-progress-hud {
    top: calc(env(safe-area-inset-top, 0px) + 30px);
    left: 76px;
    right: 12px;
  }

  .learn-game-shell.lesson-open .lesson-progress-hud .step-count {
    min-width: 74px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="single"],
  .learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="multi"],
  .learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="match"] {
    gap: 12px;
  }

  .learn-game-shell.lesson-open .step-body-single h3,
  .learn-game-shell.lesson-open .step-body-multi h3,
  .learn-game-shell.lesson-open .step-body-match h3 {
    font-size: clamp(21px, 7.1vw, 30px);
  }

  .learn-game-shell.lesson-open .step-body-single .choice,
  .learn-game-shell.lesson-open .step-body-multi .choice,
  .learn-game-shell.lesson-open .step-body-match .match-card {
    min-height: clamp(46px, 8vh, 62px);
    padding: 10px 12px;
    font-size: clamp(14px, 4vw, 17px);
  }

  .learn-game-shell.lesson-open .step-body-match .match-grid {
    gap: 8px;
  }
}

@media (max-width: 420px) and (max-height: 620px) {
  .learn-game-shell.lesson-open .today-focus {
    padding-top: calc(env(safe-area-inset-top, 0px) + 66px);
  }

  .learn-game-shell.lesson-open .lesson-progress-hud {
    top: calc(env(safe-area-inset-top, 0px) + 26px);
  }

  .learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="single"],
  .learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="multi"],
  .learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="match"] {
    gap: 8px;
  }

  .learn-game-shell.lesson-open .step-body-single,
  .learn-game-shell.lesson-open .step-body-multi,
  .learn-game-shell.lesson-open .step-body-match {
    gap: 8px;
  }

  .learn-game-shell.lesson-open .step-body-single h3,
  .learn-game-shell.lesson-open .step-body-multi h3,
  .learn-game-shell.lesson-open .step-body-match h3 {
    font-size: 21px;
  }

  .learn-game-shell.lesson-open .step-body-single .choice,
  .learn-game-shell.lesson-open .step-body-multi .choice,
  .learn-game-shell.lesson-open .step-body-match .match-card {
    min-height: 42px;
    border-radius: 13px;
    font-size: 13px;
  }

  .learn-game-shell.lesson-open .lesson-footer .action-row {
    gap: 8px;
  }
}

.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="single"] .lesson-footer,
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="multi"] .lesson-footer,
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="match"] .lesson-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  overflow: visible;
}

.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="single"] .lesson-footer .action-row,
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="multi"] .lesson-footer .action-row,
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="match"] .lesson-footer .action-row {
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="single"] .lesson-back,
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="multi"] .lesson-back,
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="match"] .lesson-back {
  flex: 0 1 auto;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  white-space: nowrap;
}

.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="single"] .lesson-footer .primary-action,
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="multi"] .lesson-footer .primary-action,
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="match"] .lesson-footer .primary-action {
  width: auto;
  min-width: min(190px, 48vw);
  min-height: 46px;
  padding: 0 16px;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="single"] .lesson-footer,
  .learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="multi"] .lesson-footer,
  .learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="match"] .lesson-footer {
    gap: 8px;
  }

  .learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="single"] .lesson-back,
  .learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="multi"] .lesson-back,
  .learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="match"] .lesson-back {
    min-height: 40px;
    padding: 0 10px;
    font-size: 13px;
  }

  .learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="single"] .lesson-footer .primary-action,
  .learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="multi"] .lesson-footer .primary-action,
  .learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="match"] .lesson-footer .primary-action {
    min-width: min(164px, 48vw);
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
  }
}

/* Alpha35: content-first module shell with minimal chrome. */
.learn-game-shell.lesson-open .today-focus {
  width: min(920px, 100%);
  padding:
    calc(env(safe-area-inset-top, 0px) + clamp(48px, 7vh, 62px))
    clamp(12px, 3vw, 24px)
    calc(env(safe-area-inset-bottom, 0px) + 8px);
}

.learn-game-shell.lesson-open .lesson-close-button {
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: max(12px, calc((100vw - min(920px, 100vw)) / 2 + 12px));
  width: 34px;
  height: 34px;
  min-height: 34px;
  color: #d9e6e9;
  font-size: 32px;
}

.learn-game-shell.lesson-open .lesson-progress-hud {
  top: calc(env(safe-area-inset-top, 0px) + 16px);
  left: max(58px, calc((100vw - min(920px, 100vw)) / 2 + 58px));
  right: max(10px, calc((100vw - min(920px, 100vw)) / 2 + 10px));
  gap: 8px;
}

.learn-game-shell.lesson-open .lesson-progress-hud .progress-track {
  height: 10px;
}

.learn-game-shell.lesson-open .lesson-progress-hud .step-count {
  min-width: 64px;
  padding: 7px 9px;
  font-size: 12px;
}

.learn-game-shell.lesson-open .lesson-focus-card,
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="learn"],
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="single"],
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="multi"],
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="match"],
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="write"] {
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
}

.learn-game-shell.lesson-open .lesson-focus-head,
.learn-game-shell.lesson-open .step-head {
  display: none !important;
}

.learn-game-shell.lesson-open .step-shell,
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="learn"] .step-shell,
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="write"] .step-shell {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.learn-game-shell.lesson-open .step-body {
  padding: 0;
}

.learn-game-shell.lesson-open .step-body-learn,
.learn-game-shell.lesson-open .step-body-single,
.learn-game-shell.lesson-open .step-body-multi,
.learn-game-shell.lesson-open .step-body-match {
  overflow: hidden;
}

.learn-game-shell.lesson-open .step-body-learn {
  display: grid;
  min-height: 0;
}

.learn-game-shell.lesson-open .step-body-learn .inline-reel {
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  border-radius: 18px;
}

.learn-game-shell.lesson-open .step-body-learn .inline-reel-media {
  display: grid;
  min-height: 0;
  padding: clamp(18px, 4vh, 34px) clamp(18px, 5vw, 40px);
}

.learn-game-shell.lesson-open .step-body-learn .inline-reel-content {
  display: grid;
  min-height: 0;
  align-content: center;
  gap: clamp(12px, 2.4vh, 18px);
}

.learn-game-shell.lesson-open .step-body-learn .inline-reel-content h3 {
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.02;
}

.learn-game-shell.lesson-open .step-body-learn .inline-reel-content p {
  max-width: 58ch;
  font-size: clamp(17px, 2.6vw, 22px);
  line-height: 1.38;
}

.learn-game-shell.lesson-open .step-body-learn .inline-reel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 44px;
  padding: 8px;
}

.learn-game-shell.lesson-open .step-body-learn .inline-reel-controls button {
  width: auto;
  min-width: min(136px, 44vw);
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.learn-game-shell.lesson-open .step-body-learn .inline-reel-controls button:disabled {
  display: none;
}

.learn-game-shell.lesson-open .lesson-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  gap: 8px;
}

.learn-game-shell.lesson-open .lesson-back:disabled {
  display: none;
}

.learn-game-shell.lesson-open .lesson-back {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  white-space: nowrap;
}

.learn-game-shell.lesson-open .lesson-footer .action-row {
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
  gap: 8px;
}

.learn-game-shell.lesson-open .lesson-footer .primary-action {
  width: auto;
  min-width: min(188px, 50vw);
  min-height: 44px;
  padding: 0 16px;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .learn-game-shell.lesson-open .today-focus {
    padding:
      calc(env(safe-area-inset-top, 0px) + 48px)
      10px
      calc(env(safe-area-inset-bottom, 0px) + 6px);
  }

  .learn-game-shell.lesson-open .lesson-close-button {
    left: 10px;
    width: 32px;
    height: 32px;
    min-height: 32px;
    font-size: 30px;
  }

  .learn-game-shell.lesson-open .lesson-progress-hud {
    top: calc(env(safe-area-inset-top, 0px) + 15px);
    left: 56px;
    right: 8px;
  }

  .learn-game-shell.lesson-open .lesson-progress-hud .step-count {
    min-width: 58px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .learn-game-shell.lesson-open .step-body-learn .inline-reel-media {
    padding: 16px 18px;
  }

  .learn-game-shell.lesson-open .step-body-learn .inline-reel-content {
    gap: 10px;
  }

  .learn-game-shell.lesson-open .step-body-learn .inline-reel-content h3 {
    font-size: clamp(27px, 8vw, 34px);
  }

  .learn-game-shell.lesson-open .step-body-learn .inline-reel-content p {
    font-size: clamp(16px, 4.8vw, 20px);
    line-height: 1.34;
  }

  .learn-game-shell.lesson-open .step-body-learn .inline-reel-controls {
    min-height: 38px;
    padding: 6px;
  }

  .learn-game-shell.lesson-open .step-body-learn .inline-reel-controls button {
    min-width: min(124px, 44vw);
    min-height: 32px;
    padding-inline: 12px;
  }

  .learn-game-shell.lesson-open .lesson-footer {
    min-height: 42px;
  }

  .learn-game-shell.lesson-open .lesson-footer .primary-action {
    min-width: min(164px, 52vw);
    min-height: 42px;
    padding-inline: 12px;
    font-size: 13px;
  }
}

@media (max-width: 420px) and (max-height: 620px) {
  .learn-game-shell.lesson-open .today-focus {
    padding-top: calc(env(safe-area-inset-top, 0px) + 46px);
  }

  .learn-game-shell.lesson-open .lesson-focus-card,
  .learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="learn"],
  .learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="single"],
  .learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="multi"],
  .learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="match"] {
    gap: 6px;
  }

  .learn-game-shell.lesson-open .step-body-learn .inline-reel {
    border-radius: 14px;
  }

  .learn-game-shell.lesson-open .step-body-learn .inline-reel-content h3 {
    font-size: 26px;
  }

  .learn-game-shell.lesson-open .step-body-learn .inline-reel-content p {
    font-size: 15px;
    line-height: 1.3;
  }

  .learn-game-shell.lesson-open .step-body-single h3,
  .learn-game-shell.lesson-open .step-body-multi h3,
  .learn-game-shell.lesson-open .step-body-match h3 {
    font-size: 20px;
  }
}

/* Alpha36: calmer Duolingo-style writing practice step. */
.learn-game-shell.lesson-open .step-body-write {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 0;
  overflow: hidden;
}

.learn-game-shell.lesson-open .write-practice-card {
  display: grid;
  gap: 8px;
  min-height: 0;
  padding: clamp(12px, 2.4vh, 16px);
  border: 2px solid #344854;
  border-bottom-width: 5px;
  border-radius: 18px;
  background: #111f25;
}

.learn-game-shell.lesson-open .step-body-write h3 {
  margin: 0;
  color: #f7fbff;
  font-family: Nunito, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(22px, 4.5vw, 32px);
  line-height: 1.06;
}

.learn-game-shell.lesson-open .step-body-write .write-area {
  min-height: 96px;
  height: clamp(96px, 17vh, 126px);
  max-height: 126px;
  resize: none;
  padding: 12px 14px;
  border: 2px solid #344854;
  border-radius: 15px;
  background: #1a2b32;
  color: #f3f8fa;
  font-size: clamp(15px, 2.5vw, 18px);
  line-height: 1.42;
}

.learn-game-shell.lesson-open .step-body-write .write-area::placeholder {
  color: rgba(221, 232, 236, .62);
}

.learn-game-shell.lesson-open .write-meter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #a9bac1;
  font-size: 12px;
  font-weight: 900;
}

.learn-game-shell.lesson-open .write-meter-row .word-hint {
  margin: 0;
  color: #d6e1e4;
  font-size: inherit;
}

.learn-game-shell.lesson-open .write-meter-row span {
  color: #8ee45a;
  white-space: nowrap;
}

.learn-game-shell.lesson-open .write-feel-strip {
  display: grid;
  gap: 7px;
}

.learn-game-shell.lesson-open .step-body-write .reaction-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.learn-game-shell.lesson-open .step-body-write .reaction-chip {
  min-height: 34px;
  padding: 0 6px;
  border: 2px solid #344854;
  border-bottom-width: 4px;
  border-radius: 999px;
  background: #f7faf8;
  color: #24333a;
  box-shadow: none;
  font-size: 12px;
  line-height: 1;
}

.learn-game-shell.lesson-open .step-body-write .reaction-chip.active {
  border-color: #ff8b8b;
  border-bottom-color: #cf5858;
  background: #fff0ec;
  color: #3a2825;
}

.learn-game-shell.lesson-open .write-optional-tags {
  min-height: 34px;
  overflow: hidden;
  border: 1px solid rgba(91, 111, 124, .75);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}

.learn-game-shell.lesson-open .write-optional-tags summary {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: #c8d7dc;
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  list-style: none;
}

.learn-game-shell.lesson-open .write-optional-tags summary::-webkit-details-marker {
  display: none;
}

.learn-game-shell.lesson-open .write-optional-tags summary::after {
  content: "+";
  margin-left: auto;
  color: #8ee45a;
}

.learn-game-shell.lesson-open .write-optional-tags[open] summary::after {
  content: "-";
}

.learn-game-shell.lesson-open .write-optional-tags .mark-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0 8px 8px;
}

.learn-game-shell.lesson-open .step-body-write .mark-chip {
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid #344854;
  border-radius: 11px;
  background: #f7faf8;
  color: #24333a;
  font-size: 12px;
}

.learn-game-shell.lesson-open .step-body-write .mark-chip.active {
  border-color: #ff8b8b;
  background: #fff0ec;
}

.learn-game-shell.lesson-open .step-body-write .write-feedback-preview {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  padding: 8px 12px;
  border-color: rgba(91, 111, 124, .72);
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
}

.learn-game-shell.lesson-open .step-body-write .write-feedback-preview strong {
  margin: 0;
  color: #dce9ed;
  font-size: 13px;
}

.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="write"] .lesson-footer [data-action="generate-feedback"]:disabled {
  display: none;
}

.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="write"] .lesson-footer .action-row {
  flex: 0 1 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="write"] .lesson-footer .secondary-action {
  flex: 0 0 auto;
  width: auto;
  min-width: min(104px, 28vw);
  min-height: 38px;
  padding: 0 10px;
  font-size: 12px;
}

.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="write"] .lesson-back {
  min-width: 82px;
  padding-inline: 10px;
}

.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="write"] .lesson-footer .primary-action {
  flex: 0 0 auto;
  width: auto;
  min-width: min(124px, 34vw);
}

.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="write"] .lesson-footer .primary-action:disabled {
  background: #384d58;
  color: rgba(220, 230, 234, .34);
  box-shadow: none;
}

@media (max-width: 420px) {
  .learn-game-shell.lesson-open .step-body-write {
    gap: 7px;
  }

  .learn-game-shell.lesson-open .write-practice-card {
    gap: 7px;
    padding: 11px;
    border-radius: 15px;
  }

  .learn-game-shell.lesson-open .step-body-write h3 {
    font-size: clamp(21px, 6.1vw, 25px);
    line-height: 1.03;
  }

  .learn-game-shell.lesson-open .step-body-write .write-area {
    min-height: 88px;
    height: 88px;
    padding: 10px 12px;
    font-size: 15px;
    line-height: 1.36;
  }

  .learn-game-shell.lesson-open .write-meter-row {
    font-size: 11px;
  }

  .learn-game-shell.lesson-open .step-body-write .reaction-chip {
    min-height: 32px;
    padding: 0 4px;
    font-size: 11px;
  }

  .learn-game-shell.lesson-open .write-optional-tags,
  .learn-game-shell.lesson-open .write-optional-tags summary {
    min-height: 30px;
  }

  .learn-game-shell.lesson-open .write-optional-tags summary {
    padding-inline: 10px;
    font-size: 11px;
  }

  .learn-game-shell.lesson-open .step-body-write .write-feedback-preview {
    min-height: 36px;
    padding: 7px 10px;
  }

  .learn-game-shell.lesson-open .step-body-write .write-feedback-preview strong {
    font-size: 12px;
  }

  .learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="write"] .lesson-back {
    min-width: 78px;
    padding-inline: 8px;
    font-size: 13px;
  }

  .learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="write"] .lesson-footer .secondary-action {
    min-width: min(94px, 27vw);
    min-height: 36px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="write"] .lesson-footer .primary-action {
    min-width: min(116px, 33vw);
  }
}

/* Alpha37: Duolingo-like module exercise surface and bottom result tray. */
.learn-game-shell.lesson-open {
  background: #101b20;
}

.learn-game-shell.lesson-open .lesson-progress-hud .progress-track {
  height: 12px;
  background: #354954;
}

.learn-game-shell.lesson-open .lesson-progress-hud .progress-track i {
  background: linear-gradient(90deg, #8ee026, #f5d24b);
}

.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="single"],
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="multi"],
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="match"] {
  gap: 10px;
}

.learn-game-shell.lesson-open .step-body-single,
.learn-game-shell.lesson-open .step-body-multi,
.learn-game-shell.lesson-open .step-body-match {
  align-content: start;
  padding-top: clamp(10px, 5vh, 38px);
}

.learn-game-shell.lesson-open .step-body-single h3,
.learn-game-shell.lesson-open .step-body-multi h3,
.learn-game-shell.lesson-open .step-body-match h3 {
  max-width: 760px;
  font-weight: 950;
  letter-spacing: 0;
}

.learn-game-shell.lesson-open .step-body-single .choice,
.learn-game-shell.lesson-open .step-body-multi .choice {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.learn-game-shell.lesson-open .choice-letter {
  display: none;
}

.learn-game-shell.lesson-open .step-body-single .choice > span:last-child,
.learn-game-shell.lesson-open .step-body-multi .choice > span:last-child {
  max-width: 58ch;
}

.learn-game-shell.lesson-open .step-body-single .choice.selected,
.learn-game-shell.lesson-open .step-body-multi .choice.selected,
.learn-game-shell.lesson-open .step-body-match .match-card.selected {
  border-color: #8bd335;
  border-bottom-color: #4f9a10;
  background: #203321;
  color: #9be24d;
}

.learn-game-shell.lesson-open .lesson-result-tray {
  display: grid;
  gap: 10px;
  min-height: 0;
}

.learn-game-shell.lesson-open .lesson-result-tray.is-pending {
  display: block;
}

.learn-game-shell.lesson-open .duo-check-row {
  display: grid;
}

.learn-game-shell.lesson-open .duo-check-row .primary-action {
  width: 100%;
  min-height: 50px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.learn-game-shell.lesson-open .lesson-result-tray.is-correct,
.learn-game-shell.lesson-open .lesson-result-tray.is-wrong {
  margin-inline: calc(clamp(10px, 3vw, 24px) * -1);
  margin-bottom: calc(env(safe-area-inset-bottom, 0px) * -1);
  padding: 16px clamp(16px, 4vw, 28px) calc(env(safe-area-inset-bottom, 0px) + 16px);
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: #1d3439;
}

.learn-game-shell.lesson-open .lesson-result-tray.is-wrong {
  background: #342329;
}

.learn-game-shell.lesson-open .duo-result-copy {
  display: grid;
  gap: 10px;
}

.learn-game-shell.lesson-open .duo-result-copy > strong {
  color: #8ee026;
  font-size: clamp(24px, 6vw, 34px);
  line-height: 1;
}

.learn-game-shell.lesson-open .lesson-result-tray.is-wrong .duo-result-copy > strong {
  color: #ff8b8b;
}

.learn-game-shell.lesson-open .duo-result-copy details {
  border: 2px solid #78bd26;
  border-bottom-width: 5px;
  border-radius: 14px;
  background: transparent;
  color: #9be24d;
  overflow: hidden;
}

.learn-game-shell.lesson-open .lesson-result-tray.is-wrong .duo-result-copy details {
  border-color: #ff8b8b;
  color: #ffb1b1;
}

.learn-game-shell.lesson-open .duo-result-copy summary {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .05em;
  list-style: none;
  text-transform: uppercase;
}

.learn-game-shell.lesson-open .duo-result-copy summary::-webkit-details-marker {
  display: none;
}

.learn-game-shell.lesson-open .duo-result-copy p {
  margin: 0;
  padding: 0 14px 12px;
  color: #e8f2ef;
  font-size: 13px;
  line-height: 1.35;
}

.learn-game-shell.lesson-open .lesson-result-tray.is-correct > .primary-action,
.learn-game-shell.lesson-open .lesson-result-tray.is-wrong > .primary-action {
  width: 100%;
  min-height: 50px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

@media (max-width: 420px) {
  .learn-game-shell.lesson-open .step-body-single,
  .learn-game-shell.lesson-open .step-body-multi,
  .learn-game-shell.lesson-open .step-body-match {
    padding-top: 10px;
    gap: 10px;
  }

  .learn-game-shell.lesson-open .step-body-single h3,
  .learn-game-shell.lesson-open .step-body-multi h3,
  .learn-game-shell.lesson-open .step-body-match h3 {
    font-size: clamp(22px, 7.8vw, 31px);
    line-height: 1.02;
  }

  .learn-game-shell.lesson-open .step-body-single .choice,
  .learn-game-shell.lesson-open .step-body-multi .choice,
  .learn-game-shell.lesson-open .step-body-match .match-card {
    min-height: 48px;
    font-size: clamp(15px, 4.6vw, 18px);
  }

  .learn-game-shell.lesson-open .lesson-result-tray.is-correct,
  .learn-game-shell.lesson-open .lesson-result-tray.is-wrong {
    gap: 8px;
    padding-top: 12px;
  }

  .learn-game-shell.lesson-open .duo-result-copy > strong {
    font-size: 25px;
  }

  .learn-game-shell.lesson-open .duo-result-copy summary {
    min-height: 40px;
  }
}

/* Alpha38: exact simple Duolingo-style module chrome from owner screenshots. */
.learn-game-shell.lesson-open {
  background: #111f25;
}

.learn-game-shell.lesson-open .today-focus {
  width: min(480px, 100%);
  padding:
    calc(env(safe-area-inset-top, 0px) + 58px)
    clamp(16px, 4vw, 22px)
    calc(env(safe-area-inset-bottom, 0px) + 14px);
}

.learn-game-shell.lesson-open .lesson-close-button {
  top: calc(env(safe-area-inset-top, 0px) + 17px);
  left: max(16px, calc((100vw - min(480px, 100vw)) / 2 + 16px));
  width: 34px;
  height: 34px;
  min-height: 34px;
  color: #b8c7ce;
  font-size: 38px;
  font-weight: 700;
}

.learn-game-shell.lesson-open .lesson-progress-hud {
  top: calc(env(safe-area-inset-top, 0px) + 24px);
  left: max(72px, calc((100vw - min(480px, 100vw)) / 2 + 72px));
  right: max(16px, calc((100vw - min(480px, 100vw)) / 2 + 16px));
  grid-template-columns: minmax(0, 1fr);
}

.learn-game-shell.lesson-open .lesson-progress-hud .progress-track {
  height: 13px;
  background: #354a55;
}

.learn-game-shell.lesson-open .lesson-progress-hud .progress-track i {
  background: linear-gradient(180deg, #a4f341, #68d608);
}

.learn-game-shell.lesson-open .lesson-progress-hud .step-count {
  display: none;
}

.learn-game-shell.lesson-open .lesson-focus-card,
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="learn"],
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="write"],
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="single"],
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="multi"],
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="match"] {
  gap: 0;
}

.learn-game-shell.lesson-open .step-shell {
  min-height: 0;
}

.learn-game-shell.lesson-open .step-body-single,
.learn-game-shell.lesson-open .step-body-multi,
.learn-game-shell.lesson-open .step-body-match {
  align-content: start;
  gap: clamp(12px, 2.2vh, 18px);
  padding-top: clamp(4px, 1.8vh, 16px);
}

.learn-game-shell.lesson-open .step-body-single h3,
.learn-game-shell.lesson-open .step-body-multi h3,
.learn-game-shell.lesson-open .step-body-match h3 {
  max-width: 100%;
  color: #f3f7f8;
  font-size: clamp(25px, 7.4vw, 33px);
  line-height: 1.06;
}

.learn-game-shell.lesson-open .step-body-match h3 {
  margin-bottom: clamp(34px, 9vh, 76px);
}

.learn-game-shell.lesson-open .step-body-single .choice-list,
.learn-game-shell.lesson-open .step-body-multi .choice-list {
  gap: clamp(10px, 2vh, 14px);
}

.learn-game-shell.lesson-open .step-body-match .match-grid {
  gap: clamp(13px, 2.8vh, 22px) clamp(18px, 5vw, 28px);
}

.learn-game-shell.lesson-open .step-body-single .choice,
.learn-game-shell.lesson-open .step-body-multi .choice,
.learn-game-shell.lesson-open .step-body-match .match-card {
  min-height: clamp(56px, 9.5vh, 72px);
  border: 2px solid #334650;
  border-bottom-width: 4px;
  border-radius: 11px;
  background: #111f25;
  color: #dce6ea;
  font-weight: 800;
}

.learn-game-shell.lesson-open .step-body-match .match-card {
  font-size: clamp(16px, 4.4vw, 20px);
}

.learn-game-shell.lesson-open .lesson-result-tray.is-pending:empty {
  display: none;
}

.learn-game-shell.lesson-open .lesson-result-tray.is-pending {
  align-self: end;
  width: 100%;
}

.learn-game-shell.lesson-open .duo-check-row .primary-action,
.learn-game-shell.lesson-open .lesson-result-tray.is-correct > .primary-action,
.learn-game-shell.lesson-open .lesson-result-tray.is-wrong > .primary-action {
  min-height: 54px;
  border-radius: 11px;
}

.learn-game-shell.lesson-open .duo-check-row {
  width: 100%;
}

.learn-game-shell.lesson-open .duo-check-row .primary-action:disabled {
  background: #384d58;
  color: rgba(220, 230, 234, .34);
  box-shadow: none;
}

@media (max-width: 420px) {
  .learn-game-shell.lesson-open .today-focus {
    padding:
      calc(env(safe-area-inset-top, 0px) + 58px)
      16px
      calc(env(safe-area-inset-bottom, 0px) + 12px);
  }

  .learn-game-shell.lesson-open .lesson-close-button {
    left: 16px;
  }

  .learn-game-shell.lesson-open .lesson-progress-hud {
    left: 72px;
    right: 16px;
  }

  .learn-game-shell.lesson-open .step-body-single .choice,
  .learn-game-shell.lesson-open .step-body-multi .choice,
  .learn-game-shell.lesson-open .step-body-match .match-card {
    min-height: clamp(54px, 8.8vh, 68px);
  }
}

@media (max-width: 390px) and (max-height: 620px) {
  .learn-game-shell.lesson-open .today-focus {
    padding-top: calc(env(safe-area-inset-top, 0px) + 54px);
  }

  .learn-game-shell.lesson-open .lesson-progress-hud {
    top: calc(env(safe-area-inset-top, 0px) + 22px);
  }

  .learn-game-shell.lesson-open .step-body-match h3 {
    margin-bottom: 22px;
  }

  .learn-game-shell.lesson-open .step-body-single .choice,
  .learn-game-shell.lesson-open .step-body-multi .choice,
  .learn-game-shell.lesson-open .step-body-match .match-card {
    min-height: 46px;
    font-size: 14px;
  }
}

/* Alpha44: flatten decorative button accents site-wide. */
.start-practice-button,
.primary-action,
.secondary-action,
.plain-button,
.learn-game-shell .plain-button,
.community-action,
.reel-icon-button,
.reel-flip-controls button,
.hero-menu button,
.account-button,
.alpha-nav button,
.mobile-tabs button,
.choice,
.match-card,
.lesson-close-button,
.completed-path-button,
.duo-path-preview .plain-button,
.daily-intention-copy .plain-button,
.path-preview-copy .plain-button,
.view-path .level-card button,
.reel-content button {
  box-shadow: none !important;
  text-shadow: none !important;
}

.start-practice-button:hover,
.primary-action:hover:not(:disabled),
.secondary-action:hover:not(:disabled),
.plain-button:hover:not(:disabled),
.hero-menu button:hover,
.hero-menu button.active,
.alpha-nav button:hover,
.alpha-nav button.active,
.mobile-tabs button.active {
  transform: none !important;
  box-shadow: none !important;
}

.start-practice-button:active,
.primary-action:active:not(:disabled),
.secondary-action:active:not(:disabled),
.plain-button:active:not(:disabled),
.choice:active,
.match-card:active {
  transform: none !important;
  box-shadow: none !important;
}

.garden-route-node .route-badge,
.path-node,
.duo-path-node,
.path-map-node,
.today-path-preview .path-node,
.daily-lesson-card .module-stages i,
.course-sheet .module-stages i,
.status-pill,
.status-pill b {
  box-shadow: none !important;
}

/* Alpha45: temporary admin bypass + simplified write step. */
.admin-bypass-banner {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  z-index: 1400;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 620px);
  padding: 8px 10px 8px 12px;
  border: 1px solid rgba(255, 222, 120, .5);
  border-radius: 999px;
  background: rgba(29, 24, 10, .94);
  color: #fff5c8;
  font-size: 12px;
  font-weight: 900;
  transform: translateX(-50%);
}

.admin-bypass-banner span {
  color: #f8e9a0;
  font-weight: 800;
}

.admin-bypass-banner button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 245, 200, .36);
  border-radius: 999px;
  background: rgba(255, 245, 200, .12);
  color: #fff9db;
  font: inherit;
  cursor: pointer;
}

.learn-game-shell.lesson-open .step-body-write .write-feel-strip,
.learn-game-shell.lesson-open .step-body-write .write-optional-tags,
.learn-game-shell.lesson-open .step-body-write .write-feedback-preview,
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="write"] .lesson-footer [data-action="generate-feedback"] {
  display: none !important;
}

.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="write"] .lesson-footer .action-row {
  width: 100%;
}

.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="write"] .lesson-footer .primary-action {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

@media (max-width: 420px) {
  .admin-bypass-banner {
    align-items: flex-start;
    gap: 6px;
    border-radius: 16px;
    font-size: 11px;
  }

  .admin-bypass-banner span {
    display: none;
  }
}

/* Alpha46: silent admin bypass, readable one-more-rep card, and full format lab screens. */
.admin-bypass-banner {
  display: none !important;
}

.today-inline-rep {
  inset: clamp(10px, 2.5vw, 22px);
  display: flex;
  flex-direction: column;
  gap: clamp(9px, 1.8vh, 14px);
  padding: clamp(18px, 4vw, 28px);
  overflow-y: auto;
  border: 2px solid rgba(44, 82, 65, .18);
  border-radius: 26px;
  background: #fbfffb !important;
  color: #162c23;
  box-shadow: none;
}

.today-inline-rep .small-label {
  width: fit-content;
  border-color: rgba(43, 111, 79, .18);
  background: #e7f8ed !important;
  color: #285f43 !important;
}

.today-inline-rep h2 {
  margin: 0;
  color: #153729 !important;
  font-size: clamp(25px, 6.7vw, 42px);
  line-height: 1.08;
}

.today-inline-rep > p {
  color: #475a50 !important;
  font-size: clamp(15px, 3.8vw, 18px);
  line-height: 1.45;
}

.today-inline-rep .write-area {
  flex: 1 1 108px;
  min-height: 108px;
  max-height: none;
  border: 2px solid #dcebe2;
  background: #fff;
  color: #18342a;
  font-size: 16px;
}

.today-inline-rep .write-area::placeholder {
  color: #809187;
}

.today-inline-rep .feedback-box {
  border: 1px solid #e1ece5;
  background: #fff;
  color: #21372e;
}

.today-inline-rep .feedback-box strong,
.today-inline-rep .feedback-box p,
.today-inline-rep .score-row {
  color: #21372e;
}

.today-inline-rep .action-row {
  flex: 0 0 auto;
  position: static;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-top: 0;
  background: #fbfffb;
}

.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="fill"],
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="wordbank"],
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="order"],
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="categorize"],
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="highlight"] {
  gap: 0;
}

.learn-game-shell.lesson-open .step-body-fill,
.learn-game-shell.lesson-open .step-body-wordbank,
.learn-game-shell.lesson-open .step-body-order,
.learn-game-shell.lesson-open .step-body-categorize,
.learn-game-shell.lesson-open .step-body-highlight {
  display: grid;
  align-content: start;
  gap: clamp(12px, 2.2vh, 18px);
  min-height: 0;
  overflow-y: auto;
  padding-top: clamp(4px, 1.8vh, 14px);
}

.learn-game-shell.lesson-open .step-body-fill h3,
.learn-game-shell.lesson-open .step-body-wordbank h3,
.learn-game-shell.lesson-open .step-body-order h3,
.learn-game-shell.lesson-open .step-body-categorize h3,
.learn-game-shell.lesson-open .step-body-highlight h3 {
  margin: 0;
  color: #f3f7f8;
  font-family: Nunito, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(24px, 6.8vw, 32px);
  font-weight: 950;
  line-height: 1.06;
}

.fill-card,
.token-answer-row,
.ordered-answer-list,
.category-key,
.highlight-passage {
  border: 2px solid #334650;
  border-bottom-width: 4px;
  border-radius: 14px;
  background: #111f25;
  color: #edf5f7;
}

.fill-card {
  display: grid;
  gap: 10px;
  padding: clamp(14px, 3vh, 20px);
  font-size: clamp(17px, 4vw, 21px);
  font-weight: 850;
}

.fill-input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 2px solid #49616c;
  border-radius: 12px;
  background: #1a2b32;
  color: #f7fbff;
  font: inherit;
}

.token-answer-row {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 8px;
  min-height: 72px;
  padding: 10px;
}

.token-answer-row > span,
.empty-order {
  color: #aebec5;
  font-weight: 850;
}

.word-bank,
.order-bank {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.token-chip,
.order-card,
.ordered-answer-list button,
.category-choice,
.highlight-token {
  border: 2px solid #334650;
  border-bottom-width: 4px;
  border-radius: 12px;
  background: #111f25;
  color: #dce6ea;
  box-shadow: none;
  cursor: pointer;
  font-weight: 900;
}

.token-chip {
  min-height: 42px;
  padding: 0 13px;
  font-size: clamp(15px, 4vw, 18px);
}

.token-chip.selected,
.highlight-token.selected {
  border-color: #8bd335;
  color: #9be24d;
  background: #203321;
}

.token-chip.used,
.order-card.used {
  opacity: .34;
}

.ordered-answer-list {
  display: grid;
  gap: 7px;
  min-height: 88px;
  margin: 0;
  padding: 10px;
  list-style: none;
}

.ordered-answer-list button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 12px 0 6px;
  text-align: left;
}

.ordered-answer-list button span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #8ee026;
  color: #0d2115;
  font-size: 12px;
}

.order-card {
  min-height: 42px;
  padding: 0 12px;
  font-size: 14px;
}

.category-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
}

.category-key span {
  color: #cbd8dd;
  font-size: 12px;
  font-weight: 950;
}

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

.category-choice {
  display: grid;
  gap: 8px;
  min-height: 86px;
  padding: 11px;
  text-align: left;
}

.category-choice span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #cbd8dd;
  font-size: 11px;
}

.category-choice.selected {
  border-color: #49616c;
}

.highlight-passage {
  margin: 0;
  padding: clamp(16px, 3vh, 22px);
  font-size: clamp(20px, 5.4vw, 27px);
  font-weight: 850;
  line-height: 1.48;
}

.highlight-token {
  display: inline;
  min-height: 0;
  margin: 0 2px;
  padding: 2px 7px;
  font: inherit;
  line-height: inherit;
}

.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="fill"] .lesson-result-tray.is-pending,
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="wordbank"] .lesson-result-tray.is-pending,
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="order"] .lesson-result-tray.is-pending,
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="categorize"] .lesson-result-tray.is-pending,
.learn-game-shell.lesson-open .lesson-focus-card[data-step-kind="highlight"] .lesson-result-tray.is-pending {
  align-self: end;
  width: 100%;
}

@media (max-width: 420px) {
  .today-inline-rep {
    gap: 8px;
    padding: 16px;
    border-radius: 22px;
  }

  .today-inline-rep h2 {
    font-size: clamp(24px, 7vw, 30px);
  }

  .today-inline-rep .write-area {
    min-height: 94px;
  }

  .learn-game-shell.lesson-open .step-body-fill h3,
  .learn-game-shell.lesson-open .step-body-wordbank h3,
  .learn-game-shell.lesson-open .step-body-order h3,
  .learn-game-shell.lesson-open .step-body-categorize h3,
  .learn-game-shell.lesson-open .step-body-highlight h3 {
    font-size: clamp(22px, 6.8vw, 28px);
  }

  .token-answer-row {
    min-height: 62px;
  }

  .category-grid {
    gap: 8px;
  }

  .category-choice {
    min-height: 76px;
    padding: 9px;
  }

  .highlight-passage {
    font-size: clamp(19px, 5.8vw, 24px);
  }
}

/* Alpha47: tighten Format Lab visual hierarchy without changing mechanics. */
.learn-game-shell.lesson-open .step-body-fill,
.learn-game-shell.lesson-open .step-body-wordbank,
.learn-game-shell.lesson-open .step-body-order,
.learn-game-shell.lesson-open .step-body-categorize,
.learn-game-shell.lesson-open .step-body-highlight {
  gap: clamp(14px, 2.5vh, 20px);
}

.learn-game-shell.lesson-open .step-body-fill h3,
.learn-game-shell.lesson-open .step-body-wordbank h3,
.learn-game-shell.lesson-open .step-body-order h3,
.learn-game-shell.lesson-open .step-body-categorize h3,
.learn-game-shell.lesson-open .step-body-highlight h3 {
  max-width: 720px;
}

.format-card,
.format-answer-line,
.highlight-passage {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.fill-card.format-card {
  grid-template-columns: auto minmax(92px, 1fr) auto;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)),
    #111f25;
}

.fill-input {
  min-width: 0;
  text-align: center;
}

.format-answer-line {
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 34px,
      rgba(151, 172, 181, .34) 34px 36px,
      transparent 36px 58px
    ),
    #111f25;
}

.token-answer-row {
  align-items: flex-start;
}

.token-answer-row > span,
.empty-order {
  align-self: center;
  justify-self: center;
  opacity: .8;
}

.token-chip,
.order-card,
.ordered-answer-list button,
.category-choice,
.highlight-token {
  transition: background-color .12s ease, border-color .12s ease, color .12s ease, opacity .12s ease;
}

.token-chip:hover,
.order-card:hover,
.category-choice:hover,
.highlight-token:hover {
  border-color: #49616c;
}

.order-card.used,
.token-chip.used {
  border-color: #243741;
  color: transparent;
  opacity: 1;
}

.ordered-answer-list button {
  background: #142a2d;
}

.category-key {
  border-bottom-width: 2px;
  background: #0f1d23;
}

.category-key span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
}

.category-choice {
  background: #111f25;
}

.category-choice[data-category="0"] {
  border-color: #74be35;
  background: #172b20;
}

.category-choice[data-category="1"] {
  border-color: #f2c94c;
  background: #2c2815;
}

.category-choice[data-category="0"] span {
  background: rgba(142, 224, 38, .16);
  color: #a8ec73;
}

.category-choice[data-category="1"] span {
  background: rgba(246, 199, 91, .16);
  color: #f8df8a;
}

.highlight-passage {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)),
    #111f25;
}

.highlight-token {
  border-bottom-width: 2px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.highlight-token.selected {
  box-shadow: 0 0 0 2px rgba(142, 224, 38, .12);
}

@media (max-width: 420px) {
  .fill-card.format-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .format-answer-line {
    background:
      repeating-linear-gradient(
        to bottom,
        transparent 0 30px,
        rgba(151, 172, 181, .34) 30px 32px,
        transparent 32px 52px
      ),
      #111f25;
  }
}

/* Alpha48: screenshot fixes for mobile onboarding, Today chrome, and reward cards. */
@media (max-width: 900px) {
  .alpha-app:not(.app-active) {
    min-height: 100svh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .onboarding {
    align-items: start;
    height: auto;
    min-height: 100svh;
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .onboarding-frame {
    grid-template-rows: minmax(168px, 30svh) auto;
    max-height: none;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .onboarding .onboard-copy {
    min-height: 168px;
    max-height: 238px;
  }

  .onboarding .onboard-card {
    gap: 9px;
    padding-bottom: 12px;
  }

  .onboarding .onboard-start {
    position: sticky;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 4;
  }
}

@media (max-width: 900px) and (max-height: 620px) {
  .onboarding {
    padding-top: 6px;
  }

  .onboarding-frame {
    grid-template-rows: minmax(142px, 25svh) auto;
    gap: 7px;
  }

  .onboarding .onboard-copy {
    min-height: 142px;
    max-height: 176px;
  }

  .onboarding .onboard-copy h1 {
    font-size: clamp(27px, 7.6vw, 36px);
  }

  .onboarding .onboard-copy p:not(.onboard-kicker),
  .onboarding .onboard-proof {
    display: none;
  }

  .onboarding .onboard-card {
    gap: 7px;
  }
}

@media (max-width: 760px) {
  .learn-game-shell .alpha-main {
    padding-top: 8px;
  }

  .app-status-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px;
    min-height: 50px;
    padding: 6px;
    border-radius: 18px;
  }

  .status-brand {
    min-height: 40px;
    padding: 0 3px;
  }

  .status-brand .brand-logo {
    gap: 0;
  }

  .status-brand .brand-logo strong {
    display: none;
  }

  .status-brand .brand-mark {
    width: 40px;
    height: 40px;
  }

  .status-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .status-pill {
    min-width: 0;
    min-height: 40px;
    padding: 0 6px;
    border: 1px solid rgba(246, 199, 91, .18);
    border-radius: 14px;
    background: rgba(255, 255, 255, .055);
  }

  .status-pill b {
    font-size: clamp(13px, 3.5vw, 15px);
  }

  .status-pill small,
  .status-avatar small {
    display: none;
  }

  .status-avatar {
    min-height: 42px;
    padding: 0 3px;
    border-radius: 16px;
  }

  .status-avatar span {
    width: 36px;
    height: 36px;
  }

  .daily-card-topline {
    align-items: flex-start;
  }

  .daily-goal-mini {
    max-width: 120px;
    white-space: normal;
    text-align: right;
    line-height: 1.15;
  }

  .daily-lesson-card p {
    font-size: 14px;
    line-height: 1.36;
  }

  .daily-lesson-card .module-stages {
    gap: 7px;
  }

  .daily-lesson-card .module-stages i {
    min-height: 30px;
    padding-inline: 9px;
    font-size: 12px;
  }

  .start-practice-button {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 56px;
    padding: 0 16px;
    border-radius: 16px;
  }

  .today-lower-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .reward-tile,
  .premium-mini-card,
  .teacher-mini-card {
    min-height: 72px;
    padding: 12px 14px;
    border-radius: 18px;
  }

  .reward-tile span,
  .premium-mini-card span,
  .teacher-mini-card small {
    font-size: 13px;
    line-height: 1.32;
  }

  .teacher-mini-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .teacher-mini-card img {
    width: 48px;
    height: 48px;
  }
}
