/* MindArc — a daily connection. Presentation tokens and responsive product shell. */
:root {
  --bg: #101418;
  --surface: #1a2026;
  --surface-raised: #222a30;
  --line: #364047;
  --text: #f5f6ee;
  --muted: #abb7bd;
  --accent: #c7f76b;
  --arc-radius: 26px;
  --page-width: 1184px;
  --focus: #ecffcb;
}
body {
  min-width: 0;
  background:
    radial-gradient(
      ellipse at 80% 0,
      rgba(110, 138, 170, 0.075),
      transparent 42rem
    ),
    var(--bg);
  font-size: 1rem;
}
.site-header,
.site-footer,
main {
  width: min(var(--page-width), calc(100% - 64px));
}
.site-header {
  height: 90px;
  border-bottom-color: #2b343c;
  gap: 24px;
}
.wordmark {
  font-size: 1.65rem;
  letter-spacing: -0.06em;
}
.brand-mark {
  grid-template-columns: repeat(2, 10px);
  gap: 3px;
}
.brand-mark i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.top-nav {
  display: flex;
  gap: 5px;
  flex-wrap: nowrap;
}
.top-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 13px;
  min-height: 46px;
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.top-nav a > span {
  font-size: 1.25rem;
  line-height: 1;
}
.top-nav a[aria-current="page"] {
  background: #26302c;
  color: var(--accent);
}
.top-nav a:hover {
  color: var(--text);
  background: #242d32;
}
.header-actions {
  gap: 8px;
}
.account-header,
.sound-toggle {
  min-width: 44px;
  min-height: 44px;
  border-radius: 13px;
  background: transparent;
  font-size: 0.875rem;
}
.sound-icon {
  font-size: 1rem;
}
.account-header > span:first-child {
  font-size: 1.25rem;
}
main {
  min-height: calc(100svh - 230px);
}
h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.045em;
}
h1 {
  line-height: 1.08;
}
.page-heading h1,
.home-heading h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.055em;
  max-width: 19ch;
}
h1 > span {
  color: var(--accent);
}
.page-heading,
.home-heading {
  padding: 38px 0 28px;
  align-items: center;
  gap: 24px;
}
.page-heading p {
  max-width: 56ch;
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
}
.eyebrow {
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.12em;
}
.primary,
.secondary,
.quiet,
.text-link {
  font-size: 0.9375rem;
  line-height: 1.4;
  min-height: 48px;
  align-items: center;
  justify-content: center;
}
.primary {
  display: inline-flex;
  gap: 10px;
  background: var(--accent);
  color: #182011;
  font-weight: 700;
  border-radius: 14px;
  padding: 14px 22px;
  box-shadow: 0 4px 0 #7eaa38;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  text-decoration: none;
  text-align: center;
}
.primary:hover:not(:disabled) {
  background: #d5ff8b;
  filter: none;
  transform: translateY(-1px);
}
.primary:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #7eaa38;
}
.secondary {
  display: inline-flex;
  border-radius: 13px;
  border: 1px solid #45515a;
  background: #2b353c;
  padding: 12px 18px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 2px 0 #0d1215;
}
.quiet {
  border-radius: 12px;
  padding: 12px 16px;
}
.text-link {
  display: inline-flex;
  color: var(--accent);
  font-weight: 600;
  text-underline-offset: 5px;
  padding-block: 9px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
[role="tab"]:focus-visible,
[role="tabpanel"]:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 10000;
  background: var(--accent);
  color: #142014;
  padding: 12px 20px;
  border-radius: 12px;
}
.skip-link:focus {
  top: 12px;
}
.habit-pill {
  border: 1px solid #3d4738;
  background: #20291f;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  font-size: 0.875rem;
  white-space: nowrap;
  color: #d9e7c7;
}
.habit-pill > span:first-child {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
}
.habit-pill strong {
  color: var(--text);
  font-size: 1rem;
}
.habit-label {
  color: #aebca4;
}
.today-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(270px, 1fr);
  gap: 22px;
  align-items: start;
}
.daily-panel {
  position: relative;
  display: block;
  border: 1px solid #4a5a39;
  background:
    radial-gradient(
      ellipse at 95% 0,
      rgba(199, 247, 107, 0.12),
      transparent 55%
    ),
    linear-gradient(135deg, #202a26, #192126);
  border-radius: var(--arc-radius);
  overflow: hidden;
  padding: 0;
}
.daily-main {
  padding: 30px 32px 28px;
  max-width: none;
  border: 0;
}
.daily-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}
.daily-topline .eyebrow {
  color: var(--accent);
}
.free-pill {
  font-size: 0.75rem;
  background: #2c3929;
  border: 1px solid #4c6040;
  color: #d9efbe;
  border-radius: 999px;
  padding: 4px 9px;
  white-space: nowrap;
}
.daily-main h2 {
  font-size: clamp(2rem, 3.7vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.06em;
  margin: 0 0 14px;
  max-width: none;
}
.daily-main h2 span {
  color: var(--accent);
}
.daily-main > p {
  font-size: 1rem;
  line-height: 1.55;
  max-width: 42ch;
  margin: 0 0 23px;
  color: #bdc8c2;
}
.daily-main .primary {
  min-width: 260px;
}
.journey-footnote {
  display: block;
  font-size: 0.8125rem;
  color: #adbbae;
  margin-top: 13px;
}
.daily-main > .quiet {
  margin-left: 8px;
  font-size: 0.875rem;
}
.daily-side {
  display: block;
  background: #121a1cb3;
  padding: 24px 32px;
  border-top: 1px solid #3b4936;
  border-left: 0;
}
.daily-path {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.daily-path .circuit-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 14px;
  position: relative;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #344044;
  border-radius: 16px;
  min-height: 80px;
  color: var(--text);
  background: #1c2529;
}
.daily-path .circuit-row:before {
  content: "";
  position: absolute;
  top: calc(100% + 1px);
  left: 31px;
  width: 2px;
  height: 10px;
  background: #536748;
  z-index: 1;
}
.daily-path .circuit-row:last-child:before {
  height: 27px;
}
.daily-path .is-current {
  border-color: #91b859;
  background: linear-gradient(115deg, #2c3928, #212d2c);
  box-shadow: 0 0 0 3px #c7f76b0a;
}
.journey-node {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #677654;
  color: #c7d7b8;
  font-size: 0.875rem;
  font-weight: 700;
  background: #202925;
}
.is-current .journey-node {
  background: var(--accent);
  color: #1c2914;
  border-color: var(--accent);
  box-shadow: 0 0 22px #c7f76b24;
}
.is-complete .journey-node {
  background: #364c29;
  color: var(--accent);
  border-color: #607e43;
}
.daily-path .circuit-symbol {
  display: none;
}
.journey-step-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.journey-state {
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  font-weight: 700;
  color: #9cac9c;
}
.is-current .journey-state {
  color: var(--accent);
}
.circuit-name {
  font-size: 1rem;
  font-family: var(--heading);
  font-weight: 600;
  line-height: 1.4;
}
.circuit-caption {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}
.journey-end-symbol {
  color: var(--game-color);
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1.5rem;
  text-align: center;
}
.is-upcoming .journey-end-symbol {
  opacity: 0.7;
}
.journey-finish {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 24px;
  padding-left: 14px;
  position: relative;
}
.finish-mark {
  display: grid;
  place-items: center;
  border: 1px dashed #657950;
  color: #acbd98;
  border-radius: 12px;
  width: 36px;
  height: 36px;
  flex: none;
  font-size: 1.4rem;
}
.journey-finish > div {
  display: flex;
  flex-direction: column;
}
.journey-finish strong {
  font-size: 0.9375rem;
  font-weight: 600;
}
.journey-finish div > span {
  color: var(--muted);
  font-size: 0.8125rem;
}
.journey-complete .finish-mark {
  background: var(--accent);
  color: #1c2914;
  border-style: solid;
}
.journey-complete .daily-main h2 {
  color: var(--accent);
}
.today-companion {
  display: grid;
  gap: 16px;
}
.arc-card {
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 35%, #2b343c66, transparent 70%), #191f25;
  border-radius: var(--arc-radius);
  padding: 24px;
  text-align: center;
}
.arc-card h2 {
  font-size: 1.25rem;
  letter-spacing: -0.035em;
  margin: 15px 0 7px;
}
.arc-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.arc-card .text-link {
  font-size: 0.875rem;
  margin-top: 8px;
}
.mindarc-object {
  width: 100%;
  max-width: 300px;
  margin: auto;
  position: relative;
}
.mindarc-object svg {
  display: block;
  width: 100%;
  overflow: visible;
}
.mindarc-object.compact {
  max-width: 255px;
  margin-top: 8px;
}
.arc-orbit {
  fill: none;
  stroke: #38434c;
  stroke-width: 1;
  stroke-dasharray: 2 8;
}
.arc-orbit.inner {
  stroke-dasharray: none;
  stroke: #3b473a;
}
.arc-memory-mark {
  fill: #344047;
  stroke: #11171b;
  stroke-width: 1.5;
  opacity: 0.55;
}
.arc-memory-mark.earned {
  fill: var(--accent);
  stroke: #dfffa0;
  stroke-width: 1.2;
  opacity: 1;
  filter: drop-shadow(0 0 7px #c7f76b55);
}
.arc-spoke {
  fill: none;
  stroke: #53626e;
  stroke-width: 1.3;
  stroke-dasharray: 2 5;
  opacity: 0.45;
}
.arc-track {
  fill: none;
  stroke: var(--game-color);
  stroke-opacity: 0.18;
  stroke-width: 9;
  stroke-linecap: round;
}
.arc-growth {
  fill: none;
  stroke: var(--game-color);
  stroke-width: 9;
  stroke-linecap: round;
}
.arc-node {
  fill: var(--game-color);
  stroke: #121a1e;
  stroke-width: 2;
  opacity: 0.45;
}
.arc-sector.growing .arc-node {
  opacity: 1;
}
.arc-sector.growing .arc-spoke {
  stroke: var(--game-color);
  opacity: 0.7;
  stroke-dasharray: none;
}
.arc-sector.mastered .arc-growth {
  stroke-width: 12;
}
.arc-sector.mastered .arc-node {
  stroke: var(--text);
  stroke-width: 2;
}
.arc-sector text {
  fill: #b7c3c9;
  font: 12px var(--body);
}
.arc-core {
  color: var(--accent);
  filter: drop-shadow(0 0 16px #c7f76b25);
}
.arc-caption {
  display: block;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 0 6px;
}
.browse-invitation {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  text-decoration: none;
  align-items: center;
  background: #1a2127;
}
.browse-invitation:hover {
  border-color: #657b88;
}
.browse-mark {
  font-size: 2rem;
  line-height: 1;
  color: #a6c0dd;
}
.browse-invitation > span:last-child {
  display: grid;
  gap: 4px;
}
.browse-invitation strong {
  font-size: 0.9375rem;
  font-weight: 600;
}
.browse-invitation small {
  color: var(--muted);
  font-size: 0.8125rem;
}
.today-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #2d373e;
  padding: 22px 4px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.today-bottom .text-link {
  font-size: 0.875rem;
}
.account-note {
  font-size: 0.8125rem;
  margin: 20px 0;
  color: var(--muted);
}
.account-inline {
  min-height: 44px;
  font-size: inherit;
}
.section-heading {
  align-items: center;
  gap: 12px;
  margin: 26px 0 18px;
}
.section-heading h2 {
  font-size: 1.45rem;
}
.section-heading > span,
.section-heading > p {
  color: var(--muted);
  font-size: 0.875rem;
}
.train-view .page-heading {
  padding-bottom: 6px;
}
.train-view .page-heading h1 {
  max-width: none;
}
.game-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.game-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--game-color) 5%, #1a2128),
    #192027
  );
  padding: 22px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.game-card:hover {
  border-color: color-mix(in srgb, var(--game-color) 45%, #364047);
  transform: none;
}
.game-card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.game-card-heading .eyebrow {
  color: var(--game-color);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
}
.daily-free-label {
  margin-left: auto;
  font-size: 0.75rem;
  color: #b2c1b2;
  border: 0;
  background: #273328;
  white-space: nowrap;
}
.arc-game-glyph {
  display: inline-grid;
  place-items: center;
  font: 600 1.65rem var(--heading);
  color: var(--game-color);
  width: 44px;
  height: 44px;
  background: color-mix(in srgb, var(--game-color) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--game-color) 30%, transparent);
  border-radius: 13px;
  flex: none;
}
.arc-game-glyph svg {
  width: 58%;
  height: 58%;
  overflow: visible;
}
.arc-game-glyph svg .icon-fill {
  fill: currentColor;
  stroke: currentColor;
}
.arc-game-glyph svg .icon-accent {
  stroke-width: 2.2;
}
.arc-game-glyph[data-glyph-game="route"] svg .icon-accent,
.arc-game-glyph[data-glyph-game="switch"] svg .icon-accent {
  stroke-width: 1.15;
}
.game-card h3 {
  font-size: 1.55rem;
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--text);
}
.game-card .game-curiosity {
  color: var(--game-color);
  font-size: 0.9375rem;
  margin: 0;
  min-height: 0;
  line-height: 1.5;
}
.game-card .card-bottom {
  min-height: 90px;
  padding: 20px 0;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.game-card .game-instruction {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
  min-height: 44px;
  margin: 0 0 14px;
  max-width: none;
}
.game-level-seed {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--muted);
  font-size: 0.75rem;
}
.game-level-seed strong {
  color: var(--text);
  font: 600 1.8rem var(--heading);
}
.sample-grid {
  grid-template-columns: repeat(3, 13px);
  gap: 4px;
}
.sample-grid i {
  height: 13px;
  width: 13px;
  border-radius: 4px;
}
.sample-grid i.on {
  background: var(--game-color);
}
.sample-math {
  font-size: 1.8rem;
  color: var(--game-color);
}
.sample-sequence {
  font-size: 1.2rem;
  color: var(--game-color);
}
.sample-sequence span {
  min-width: 30px;
  height: 34px;
}
.game-card .best-note {
  font-size: 0.75rem;
  margin-top: auto;
  margin-bottom: 14px;
  color: #abb8bf;
}
.game-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.game-card-actions .secondary {
  background: color-mix(in srgb, var(--game-color) 15%, #263139);
  border-color: color-mix(in srgb, var(--game-color) 35%, #33404a);
  font-size: 0.875rem;
  padding: 11px 9px;
}
.game-card-actions .quiet {
  font-size: 0.8125rem;
  padding: 10px 5px;
  line-height: 1.4;
  color: #c2cbd0;
}
.plus-mode-row {
  margin-top: 14px;
}
.game-training-more {
  border-color: #36414a;
  border-radius: 12px;
}
.game-training-more summary {
  font-size: 0.8125rem;
  min-height: 44px;
  padding: 12px;
  color: #b4c0c6;
}
.plus-mode-row-inner {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
}
.plus-mode-row-inner > button {
  min-height: 44px;
  font-size: 0.8125rem;
}
.plus-mode-row-inner .infinity-launch {
  grid-column: 1/-1;
  margin: 0;
  min-height: 44px;
}
.training-depth {
  border-top: 1px solid var(--line);
  margin-top: 38px;
  padding-top: 4px;
}
.training-depth .section-heading {
  align-items: end;
}
.training-depth .eyebrow {
  margin-bottom: 5px;
}
.coach-panel {
  border-radius: 22px;
  padding: 24px;
  background: #1b2229;
  margin: 0 0 16px;
}
.coach-head h2 {
  font-size: 1.6rem;
}
.coach-head p {
  font-size: 0.9375rem;
  max-width: 55ch;
}
.coach-head .eyebrow {
  color: #c3b2f1;
}
.coach-card {
  border-radius: 16px;
  background: #242b33;
}
.coach-card strong {
  font-size: 1.05rem;
}
.coach-card span,
.coach-card small {
  font-size: 0.875rem;
}
.coach-note {
  font-size: 0.8125rem;
  line-height: 1.5;
}
.coach-more summary,
.plus-feature-drawer summary {
  font-size: 0.9375rem;
  min-height: 52px;
}
.plus-feature-drawer {
  border-radius: 18px;
  background: #1a2229;
}
.plus-feature-drawer > summary {
  padding: 18px 22px;
}
.plus-feature-drawer summary small {
  font-size: 0.8125rem;
}
.plus-feature {
  min-height: 80px;
  border-radius: 14px;
}
.plus-feature strong {
  font-size: 1rem;
}
.plus-feature small {
  font-size: 0.8125rem;
}
/* Growth keeps the analytical views available, with a legible visual overview. */
.progress-v2-heading {
  padding: 36px 0 22px;
  gap: 24px;
}
.progress-v2-heading h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: 8px 0 12px;
}
.progress-v2-heading p {
  font-size: 1rem;
  max-width: 50ch;
}
.progress-sync {
  font-size: 0.8125rem;
}
.progress-mastered-count {
  min-width: 145px;
  border-radius: 20px;
  padding: 18px 22px;
  background: #1d2727;
  text-align: left;
  align-self: center;
}
.progress-mastered-count strong {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.progress-mastered-count b {
  font-size: 2.5rem;
  color: var(--accent);
}
.progress-mastered-count small {
  font-size: 1rem;
  white-space: nowrap;
}
.progress-mastered-count > span {
  font-size: 0.8125rem;
  margin-top: 0;
}
.progress-arc {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--arc-radius);
  padding: 24px 36px;
  background:
    radial-gradient(ellipse at 12% 45%, #2d3b3066, transparent 65%), #192128;
  margin-bottom: 26px;
}
.progress-arc h2 {
  font-size: 1.8rem;
  margin: 6px 0 10px;
}
.progress-arc p {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 54ch;
}
.arc-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 22px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.arc-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  min-width: 0;
}
.arc-legend-number {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid color-mix(in srgb, var(--game-color) 40%, transparent);
  color: var(--game-color);
  border-radius: 50%;
  font-size: 0.75rem;
  flex: none;
}
.arc-legend li > span:nth-child(2) {
  flex: 1;
}
.arc-legend strong {
  font-size: 0.75rem;
  color: #c5d0d5;
  white-space: nowrap;
}
.progress-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 5px;
  gap: 5px;
  border-radius: 16px;
  background: #1b232a;
  border-color: var(--line);
  margin: 0 0 24px;
}
.progress-tabs button {
  min-width: 0;
  min-height: 46px;
  font-size: 0.9375rem;
  border-radius: 11px;
  padding: 9px 10px;
  white-space: nowrap;
}
.progress-tabs button.active {
  background: #35432d;
  color: #d7f7aa;
}
.progress-panel-v2 {
  outline-offset: 5px;
}
.progress-first-round {
  padding: 28px;
  border-radius: 22px;
  border-color: #526640;
  background: linear-gradient(130deg, #263226, #1d272b);
}
.progress-first-round h2 {
  font-size: 1.8rem;
  line-height: 1.2;
  max-width: 23ch;
}
.progress-first-round p {
  font-size: 1rem;
  max-width: 50ch;
}
.progress-first-round .primary {
  margin-top: 22px;
}
.progress-section-heading h2 {
  font-size: 1.35rem;
}
.progress-section-heading > span {
  font-size: 0.8125rem;
}
.progress-summary-grid article,
.progress-focus-card,
.progress-signal-card,
.journey-card,
.milestone-v2,
.progress-skill-card,
.premium-skill-teaser,
.challenge-progress-card {
  background: #1b232a;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.progress-summary-grid article span,
.progress-summary-grid article small {
  font-size: 0.8125rem;
}
.progress-summary-grid article strong {
  font-size: 2rem;
}
.progress-focus-card p,
.signal-line small,
.journey-next p {
  font-size: 0.875rem;
  line-height: 1.6;
}
.journey-head h3 {
  font-size: 1.2rem;
}
.journey-track small,
.journey-metrics span {
  font-size: 0.75rem;
}
.journey-status {
  font-size: 0.75rem;
}
.journey-grid {
  gap: 18px;
}
.progress-game-icon {
  border-radius: 14px;
}
.progress-detail-drawer {
  border: 1px solid var(--line);
  border-radius: 18px;
  margin: 18px 0;
  overflow: hidden;
  background: #171f25;
}
.progress-detail-drawer > summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  min-height: 56px;
  font-size: 1rem;
}
.progress-detail-drawer > summary > span {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8125rem;
  margin-left: 10px;
}
.progress-detail-drawer[open] > summary {
  border-bottom: 1px solid var(--line);
}
.progress-detail-drawer .retention-goals,
.progress-detail-drawer .retention-weekly {
  border: 0;
  margin: 0;
  padding: 22px;
  background: none;
}
.retention-goal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.retention-goal p,
.retention-report-stories p {
  font-size: 0.875rem;
}
.retention-goal h3 {
  font-size: 1.1rem;
}
.retention-goal-actions button {
  font-size: 0.8125rem;
  padding: 8px 12px;
  min-height: 44px;
}
.retention-section-head h2 {
  font-size: 1.4rem;
}
.milestone-hero {
  border: 1px solid #525a3c;
  background: linear-gradient(120deg, #2a3524, #1d2729);
  border-radius: 22px;
  padding: 24px;
  align-items: center;
}
.milestone-hero h2 {
  font-size: 1.8rem;
}
.milestone-hero p {
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 48ch;
}
.milestone-hero > strong {
  color: var(--accent);
  font-size: 2.5rem;
}
.milestone-v2 {
  padding: 20px;
}
.milestone-v2.done {
  border-color: #597142;
  background: linear-gradient(135deg, #293827, #1d2829);
}
.milestone-v2-top {
  gap: 13px;
}
.milestone-v2-top > span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #27313a;
  font-size: 1.3rem;
  display: grid;
  place-items: center;
  flex: none;
}
.milestone-v2.done .milestone-v2-top > span {
  background: var(--accent);
  color: #1a2b16;
  box-shadow: 0 3px 0 #829d4b;
}
.milestone-v2-top strong {
  font-size: 1rem;
}
.milestone-v2-top p {
  font-size: 0.875rem;
  line-height: 1.5;
}
.milestone-v2-top > small {
  font-size: 0.75rem;
}
.milestone-v2-track {
  margin-top: 18px;
}
/* Gameplay stays familiar, but shares the connected journey and reward language. */
.session-shell {
  max-width: 800px;
  padding-top: 26px;
}
.session-top {
  margin-bottom: 12px;
}
.session-time,
.back-button {
  font-size: 0.8125rem;
}
.back-button {
  min-height: 44px;
}
.stage-track {
  margin: 6px 0 18px;
  gap: 5px;
}
.stage-track span {
  height: 5px;
  border-radius: 5px;
}
.stage-track .current {
  background: #708753;
}
.game-panel {
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 50% 0, #29333e55, transparent 80%), #1a2128;
  border-color: #3c4851;
}
.game-meta {
  padding: 18px 24px;
  border-bottom-color: #35414a;
}
.round-count {
  font-size: 0.8125rem;
}
.game-content {
  padding: 28px 24px;
}
.game-title,
#game-title {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  line-height: 1.2;
}
.instruction {
  font-size: 1rem;
  line-height: 1.5;
}
.answer {
  border-radius: 16px;
  min-height: 66px;
  background: #29353e;
  border-color: #596772;
  box-shadow: 0 4px 0 #11191e;
  font-size: 1.35rem;
}
.answer:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #11191e;
}
.answer.correct {
  background: #32462b;
  border-color: #bedf7f;
  color: #efffe0;
}
.answer.incorrect {
  border-color: #edacba;
  background: #4b2f39;
}
.feedback {
  border-radius: 16px;
  font-size: 0.9375rem;
  padding: 16px 20px;
}
.feedback strong {
  display: block;
  margin-bottom: 3px;
}
.game-footer,
.results-note {
  font-size: 0.8125rem;
  line-height: 1.6;
}
.memory-grid,
.hunt-grid {
  max-width: 420px;
}
.tile,
.hunt-tile {
  border-radius: 12px;
}
.session-journey {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.session-journey .circuit-row {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px 12px;
  background: #192127;
  border: 1px solid #34414a;
  border-radius: 14px;
  min-width: 0;
  margin: 0;
}
.session-journey .journey-node {
  width: 25px;
  height: 25px;
  font-size: 0.75rem;
  flex: none;
}
.session-journey .circuit-symbol {
  display: none;
}
.session-journey .circuit-name {
  font-size: 0.8125rem;
  line-height: 1.25;
}
.session-journey .journey-state {
  font-size: 0.75rem;
  line-height: 1.8;
}
.session-journey .is-current {
  border-color: #879f52;
  background: #283323;
}
.session-journey .is-complete {
  border-color: #536548;
}
.transition-panel {
  padding: 34px 32px;
}
.transition-panel h1 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.05em;
}
.connection-seal {
  position: relative;
  width: 88px;
  margin: 0 auto 20px;
}
.connection-seal .arc-game-glyph {
  height: 88px;
  width: 88px;
  font-size: 3.2rem;
  border-radius: 26px;
}
.connection-seal > span:last-child {
  position: absolute;
  right: -7px;
  bottom: -7px;
  background: var(--accent);
  color: #1e2c17;
  border: 5px solid #1a2228;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 700;
}
.next-name {
  margin: 24px auto 20px;
  display: grid;
  gap: 7px;
}
.next-name > span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.next-name > strong {
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 500;
}
.stage-save-note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 17px;
}
.curiosity-reveal,
.circuit-recap {
  max-width: 550px;
  margin: 22px auto;
  text-align: left;
  background: #212e34;
  border: 1px solid #41525a;
  border-radius: 16px;
  padding: 16px 18px;
}
.curiosity-label {
  display: block;
  margin-bottom: 7px;
  color: #9fb3bc;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.curiosity-reveal > strong {
  display: block;
  color: #e8f1f3;
  font-size: 1rem;
}
.curiosity-reveal p {
  margin: 8px 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #d0dadd;
}
.result-insight small {
  display: block;
  max-width: 56ch;
  margin: 12px auto 0;
  color: #9eaaa6;
  font-size: .78rem;
  line-height: 1.55;
}
.result-insight-accuracy {
  display: inline-flex;
  margin-top: 14px;
  padding: 4px 9px;
  border: 1px solid #46524f;
  border-radius: 999px;
  color: #cbd5d1;
  font-size: .72rem;
  font-weight: 650;
}
.circuit-recap-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.circuit-recap-list > div {
  display: grid;
  grid-template-columns: 8px 1fr;
  align-items: start;
  gap: 10px;
}
.circuit-recap-list i {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--game-color);
}
.circuit-recap-list span {
  display: grid;
  gap: 2px;
}
.circuit-recap-list strong {
  color: #edf4f5;
  font-size: 0.9rem;
}
.circuit-recap-list small,
.circuit-recap-note {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}
.circuit-recap-note {
  display: block;
  margin-top: 12px;
}
.completion-mark {
  display: grid;
  place-items: center;
  border: 1px solid #728e4f;
  background: radial-gradient(circle, #3d572b, #28362a);
  box-shadow: 0 0 40px #c7f76b13;
  color: var(--accent);
  font-size: 3rem;
  width: 84px;
  height: 84px;
  border-radius: 28px;
  margin: 0 auto 22px;
  transform: rotate(-5deg);
}
.result-score {
  font-size: clamp(3rem, 8vw, 4.5rem);
  letter-spacing: -0.07em;
  margin-top: 20px;
}
.result-total {
  font-size: 0.875rem;
}
.result-stats {
  margin-top: 20px;
}
.result-stats strong {
  font-size: 1.4rem;
}
.result-stats span {
  font-size: 0.8125rem;
}
.result-breakdown {
  font-size: 0.875rem;
}
.save-state {
  font-size: 0.875rem;
  margin: 18px 0;
}
.result-actions {
  gap: 10px;
}
.result-actions .primary,
.result-actions .secondary {
  font-size: 0.875rem;
}
.round-rewards {
  display: grid;
  gap: 10px;
  max-width: 560px;
  margin: 24px auto 0;
  text-align: left;
}
.reward-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #435237;
  background: linear-gradient(115deg, #293724, #1d2a2a);
  border-radius: 16px;
  padding: 14px 18px;
}
.reward-item > div {
  display: grid;
  gap: 3px;
}
.reward-item strong {
  font-size: 0.9375rem;
  color: #e5f4d7;
}
.reward-item div > span {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #b5c5af;
}
.reward-emblem {
  font-size: 1.5rem;
  color: var(--accent);
  flex: none;
}
.reward-item.milestone {
  border-color: #615a7b;
  background: linear-gradient(115deg, #332d42, #232938);
}
.reward-item.milestone .reward-emblem {
  color: #cab7ff;
}
.reward-item.milestone-award {
  display: grid;
  grid-template-columns: 74px minmax(0,1fr) auto;
  gap: 18px;
  padding: 18px 20px;
  border-color: #7669a3;
  background: linear-gradient(120deg, #342d49, #202735 70%);
  box-shadow: inset 0 0 0 1px rgba(202,183,255,.08);
}
.reward-medal {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 1px solid #7d70aa;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 35%, rgba(202,183,255,.2), rgba(202,183,255,.04));
  color: #cab7ff;
}
.reward-medal b {
  font: 700 1.4rem/1 var(--heading);
  letter-spacing: -.05em;
}
.reward-medal small {
  color: currentColor;
  font: 700 .56rem/1 var(--heading);
  letter-spacing: .05em;
}
.reward-medal svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.reward-kicker {
  color: #cab7ff !important;
  font: 700 .68rem var(--heading);
  letter-spacing: .14em;
}
.achievement-award.difficulty-starter {
  --achievement-tone: #8fa49c;
  border-color: color-mix(in srgb, var(--achievement-tone) 60%, #4e4a4a);
  background: linear-gradient(120deg, rgba(143,164,156,.11), #202735 72%);
}
.achievement-award.difficulty-skilled {
  --achievement-tone: #83c9d2;
  border-color: color-mix(in srgb, var(--achievement-tone) 56%, #505866);
  background: linear-gradient(120deg, rgba(131,201,210,.11), #202735 72%);
}
.achievement-award.difficulty-elite {
  --achievement-tone: #c7f76b;
  border-color: color-mix(in srgb, var(--achievement-tone) 62%, #5b5540);
  background: linear-gradient(120deg, rgba(199,247,107,.11), #202735 72%);
}
.achievement-award.difficulty-legendary {
  --achievement-tone: #d6b6ff;
  border-color: color-mix(in srgb, var(--achievement-tone) 62%, #5b5069);
  background: linear-gradient(120deg, rgba(214,182,255,.12), #202735 72%);
}
.achievement-award .reward-medal {
  border-color: color-mix(in srgb, var(--achievement-tone, #cab7ff) 65%, #59606a);
  background: radial-gradient(circle at 45% 35%, color-mix(in srgb, var(--achievement-tone, #cab7ff) 20%, transparent), rgba(255,255,255,.025));
  color: var(--achievement-tone, #cab7ff);
}
.achievement-award .reward-kicker,
.achievement-award .reward-link {
  color: var(--achievement-tone, #cab7ff) !important;
}
.achievement-award .achievement-reward-glyph {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.achievement-award .achievement-reward-glyph svg {
  width: 70%;
  height: 70%;
}
.milestone-award strong {
  font-size: 1.18rem;
}
.reward-link {
  align-self: center;
  color: #ddd2ff;
  font-size: .78rem;
  text-underline-offset: 4px;
}
.result-insight {
  margin-top: 22px;
}
.round-rewards.just-earned {
  animation: connection-arrive 0.55s ease-out both;
}
@media (max-width: 620px) {
  .reward-item.milestone-award {
    grid-template-columns: 58px minmax(0,1fr);
  }
  .reward-medal {
    width: 54px;
    height: 54px;
  }
  .reward-medal svg {
    width: 34px;
    height: 34px;
  }
  .reward-link {
    grid-column: 2;
    justify-self: start;
  }
}
.level-transition-card {
  border-radius: 18px;
}
.level-transition-card p {
  font-size: 0.875rem;
}
.adaptive-result-insight {
  border-radius: 16px;
  font-size: 0.875rem;
}
@keyframes connection-arrive {
  from {
    opacity: 0.25;
    transform: translateY(10px) scale(0.985);
    filter: brightness(1.5);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
/* Account, subscriptions and product information share the same quiet shell. */
.you-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.9fr) minmax(0, 1.3fr);
  gap: 24px;
}
.you-account {
  border: 1px solid #4b5940;
  border-radius: 26px;
  padding: 32px;
  background:
    radial-gradient(ellipse at 50% 0, #3b4d2d80, transparent 80%), #1b2426;
  text-align: center;
}
.profile-mark {
  width: max-content;
  margin: 0 auto 25px;
  grid-template-columns: repeat(2, 22px);
  gap: 6px;
}
.profile-mark i {
  height: 22px;
  width: 22px;
  border-radius: 7px;
}
.you-account h2 {
  font-size: 1.6rem;
  line-height: 1.25;
  margin-bottom: 12px;
}
.you-account > p {
  font-size: 0.9375rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.you-record {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 26px 0;
  border-block: 1px solid #3c4844;
  padding: 19px 0;
}
.you-record > strong {
  display: grid;
  font: 600 2rem var(--heading);
  color: var(--accent);
}
.you-record span {
  font: 400 0.8125rem var(--body);
  color: var(--muted);
  margin-top: 6px;
}
.you-account .you-sync {
  font-size: 0.8125rem;
  margin: 18px auto 0;
  max-width: 30ch;
}
.you-options {
  display: grid;
  gap: 12px;
  align-content: start;
}
.you-option {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #1c242c;
  text-decoration: none;
}
.you-option:hover {
  border-color: #6a7984;
}
.you-option > span:first-child {
  font-size: 1.8rem;
  color: #bdcbb0;
  width: 36px;
  text-align: center;
  flex: none;
}
.you-option > span:last-child {
  display: grid;
  gap: 5px;
}
.you-option strong {
  font-size: 1rem;
}
.you-option small {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}
.you-about {
  padding: 24px 6px;
}
.you-about h2 {
  font-size: 1.4rem;
}
.you-about p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 8px 0;
}
.you-about > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.you-about a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  text-underline-offset: 4px;
}
.shop-view .page-heading h1 {
  font-size: clamp(2rem, 3.3vw, 3rem);
  max-width: 24ch;
}
.pack-badge {
  font-size: 0.75rem;
  white-space: nowrap;
}
.pack-game,
.premium-price-card {
  border-radius: 22px;
}
.pack-game h2 {
  font-size: 1.7rem;
}
.pack-game p {
  font-size: 1rem;
}
.premium-price-card h2 {
  font-size: 2.3rem;
}
.premium-price-card p {
  font-size: 0.9375rem;
}
.purchase-panel {
  border-radius: 20px;
}
.purchase-panel p {
  font-size: 0.9375rem;
}
.premium-renewal-note {
  font-size: 0.8125rem;
}
.modal-open {
  overflow: hidden;
}
.plus-modal {
  z-index: 500;
  padding: 24px;
}
.plus-modal-backdrop {
  background: #080e15c9;
  backdrop-filter: blur(8px);
}
.plus-modal-card {
  border: 1px solid #53606b;
  border-radius: 26px;
  background: #202830;
  padding: 30px;
  max-height: calc(100dvh - 48px);
  overflow: auto;
}
.plus-modal-card h2 {
  font-size: 1.8rem;
  line-height: 1.2;
  letter-spacing: -0.045em;
}
.plus-toggle {
  gap: 20px;
  padding: 18px 0;
  align-items: center;
}
.plus-toggle strong {
  font-size: 1rem;
}
.plus-toggle small {
  font-size: 0.875rem;
  line-height: 1.5;
}
.plus-toggle input {
  width: 24px;
  height: 24px;
  accent-color: var(--accent);
  flex: none;
}
.auth-field > span {
  font-size: 0.875rem;
}
.auth-field input {
  border-radius: 12px;
  min-height: 50px;
  font-size: 1rem;
}
.account-data-copy {
  font-size: 1rem;
  line-height: 1.6;
}
.account-data-note {
  font-size: 0.875rem;
  line-height: 1.6;
}
.account-data-actions button {
  border-radius: 16px;
  min-height: 65px;
}
.account-data-actions small {
  font-size: 0.8125rem;
}
.info-modal-scroll {
  font-size: 1rem;
}
.info-modal-scroll h2 {
  font-size: 1.4rem;
}
.site-footer {
  font-size: 0.8125rem;
  margin-top: 36px;
  padding: 24px 0 28px;
  gap: 20px;
}
.footer-copy {
  line-height: 1.6;
}
.footer-links a,
.footer-actions button {
  font-size: 0.8125rem;
  min-height: 44px;
}
.toast {
  font-size: 0.9375rem;
  border-radius: 14px;
  border: 1px solid #6a7c56;
  padding: 14px 20px;
  z-index: 1000;
  max-width: calc(100% - 32px);
}
/* Every breakpoint changes composition, not just overflow handling. */
@media (min-width: 1440px) {
  .today-layout {
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr);
  }
  .daily-main {
    padding: 34px 38px 28px;
  }
  .daily-side {
    padding: 26px 38px;
  }
  .arc-card {
    padding: 30px;
  }
  .mindarc-object.compact {
    max-width: 285px;
  }
}
@media (max-width: 1100px) {
  .site-header,
  .site-footer,
  main {
    width: calc(100% - 48px);
  }
  .top-nav a {
    padding: 11px 12px;
  }
  .account-header-label,
  .sound-label {
    display: none;
  }
  .account-header,
  .sound-toggle {
    padding: 9px;
    width: 44px;
  }
  .today-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(255px, 1fr);
    gap: 18px;
  }
  .daily-main,
  .daily-side {
    padding-inline: 25px;
  }
  .habit-label {
    display: none;
  }
  .arc-card {
    padding: 21px;
  }
  .game-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .progress-arc {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
  }
  .arc-legend {
    gap: 10px 12px;
  }
  .retention-goal-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 800px) {
  .today-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .daily-panel {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
  }
  .daily-main {
    padding: 26px;
  }
  .daily-main h2 {
    font-size: 2.2rem;
  }
  .daily-main > p {
    font-size: 0.9375rem;
  }
  .daily-main .primary {
    min-width: 0;
    width: 100%;
    padding: 14px 13px;
  }
  .daily-side {
    padding: 26px 20px;
    border-left: 1px solid #3b4936;
    border-top: 0;
  }
  .daily-path .circuit-row {
    grid-template-columns: 30px 1fr;
    gap: 10px;
    padding: 10px;
    min-height: 80px;
  }
  .daily-path .journey-node {
    width: 30px;
    height: 30px;
  }
  .daily-path .circuit-row:before {
    left: 24px;
  }
  .journey-end-symbol {
    display: none;
  }
  .journey-finish {
    padding-left: 10px;
    gap: 10px;
  }
  .finish-mark {
    width: 30px;
    height: 30px;
  }
  .journey-finish div > span {
    font-size: 0.75rem;
  }
  .today-companion {
    grid-template-columns: 1.5fr 1fr;
    align-items: stretch;
  }
  .arc-card {
    position: relative;
    text-align: left;
    padding: 22px 20px 22px 160px;
    min-height: 205px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .arc-card .mindarc-object {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 145px;
    margin: 0;
  }
  .arc-card .arc-caption {
    display: none;
  }
  .arc-card h2 {
    margin-top: 8px;
    font-size: 1.15rem;
  }
  .arc-card p {
    font-size: 0.875rem;
  }
  .arc-card .text-link {
    align-self: flex-start;
    padding: 6px 0;
    min-height: 40px;
  }
  .arc-card > .eyebrow {
    font-size: 0.75rem;
  }
  .browse-invitation {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 23px;
  }
  .progress-arc {
    grid-template-columns: 200px 1fr;
    gap: 18px;
  }
  .progress-arc h2 {
    font-size: 1.5rem;
  }
  .progress-arc p {
    font-size: 0.875rem;
  }
  .arc-legend {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .arc-legend li {
    font-size: 0.75rem;
  }
  .arc-caption {
    font-size: 0.75rem;
  }
  .progress-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .top-nav a {
    padding: 11px 10px;
    gap: 6px;
  }
  .you-layout {
    grid-template-columns: 1fr 1.2fr;
    gap: 18px;
  }
  .you-account {
    padding: 26px 20px;
  }
  .plus-feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .coach-recommended {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .coach-recommended button {
    grid-column: 1/-1;
  }
  .progress-v2-heading h1 {
    font-size: 2.4rem;
  }
}
@media (max-width: 600px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
    background:
      radial-gradient(ellipse at 90% 0, #35402a30, transparent 35rem), var(--bg);
  }
  .site-header,
  .site-footer,
  main {
    width: calc(100% - 32px);
  }
  .site-header {
    height: 72px;
    padding: 12px 0;
    display: flex;
    flex-wrap: nowrap;
    border-bottom: 1px solid #2d373d;
    gap: 12px;
  }
  .wordmark {
    font-size: 1.5rem;
    flex: none;
  }
  .header-actions {
    margin-left: auto;
    gap: 7px;
  }
  .account-header,
  .sound-toggle {
    min-width: 44px;
    width: 44px;
    min-height: 44px;
    border: 1px solid #3b454c;
  }
  .top-nav {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    z-index: 100;
    padding: 7px 12px calc(7px + env(safe-area-inset-bottom));
    margin: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    border-top: 1px solid #45513f;
    background: #161e24f5;
    backdrop-filter: blur(18px);
  }
  .top-nav a {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-radius: 14px;
    min-height: 55px;
    padding: 7px 3px;
    font-size: 0.75rem;
    line-height: 1.1;
  }
  .top-nav a > span {
    font-size: 1.5rem;
    line-height: 1;
  }
  .top-nav a[aria-current="page"] {
    background: #2d3a28;
    color: var(--accent);
  }
  .home-heading {
    padding: 24px 0 20px;
    gap: 12px;
  }
  .home-heading h1 {
    font-size: 1.9rem;
    margin-top: 7px;
    max-width: none;
  }
  .home-heading .eyebrow {
    font-size: 0.75rem;
  }
  .habit-pill {
    padding: 7px 10px;
    gap: 4px;
    font-size: 0.75rem;
    align-self: flex-end;
    margin-bottom: 2px;
  }
  .habit-pill > span:first-child {
    font-size: 1.2rem;
  }
  .habit-pill strong {
    font-size: 0.875rem;
  }
  .today-layout {
    gap: 18px;
  }
  .daily-panel {
    display: block;
    border-radius: 23px;
  }
  .daily-main {
    padding: 23px 22px 20px;
  }
  .daily-topline {
    margin-bottom: 15px;
  }
  .daily-topline .eyebrow {
    font-size: 0.75rem;
  }
  .free-pill {
    font-size: 0.75rem;
    padding: 4px 7px;
  }
  .daily-main h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    max-width: 14ch;
  }
  .daily-main > p {
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 18px;
    max-width: 32ch;
  }
  .daily-main .primary {
    min-height: 52px;
    width: 100%;
    font-size: 1rem;
  }
  .journey-footnote {
    text-align: center;
    font-size: 0.75rem;
    margin-top: 12px;
  }
  .daily-main > .quiet {
    display: block;
    margin: 12px 0 0;
    width: 100%;
  }
  .daily-side {
    display: block;
    border-left: 0;
    border-top: 1px solid #3b4936;
    padding: 20px 22px;
  }
  .daily-path {
    gap: 8px;
  }
  .daily-path .circuit-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 34px;
    gap: 12px;
    padding: 10px 12px;
    min-height: 75px;
    border-radius: 14px;
  }
  .daily-path .journey-node {
    width: 32px;
    height: 32px;
  }
  .daily-path .circuit-row:before {
    left: 27px;
    height: 8px;
  }
  .daily-path .circuit-row:last-child:before {
    height: 24px;
  }
  .journey-state {
    font-size: 0.75rem;
  }
  .circuit-name {
    font-size: 0.9375rem;
  }
  .circuit-caption {
    font-size: 0.75rem;
  }
  .journey-end-symbol {
    display: block;
    font-size: 1.3rem;
  }
  .journey-finish {
    margin-top: 22px;
    padding-left: 12px;
    gap: 13px;
  }
  .finish-mark {
    width: 32px;
    height: 32px;
  }
  .journey-finish strong {
    font-size: 0.875rem;
  }
  .journey-finish div > span {
    font-size: 0.75rem;
  }
  .today-companion {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .arc-card {
    min-height: 190px;
    padding: 22px 20px 22px 160px;
    border-radius: 23px;
  }
  .arc-card .mindarc-object {
    width: 150px;
  }
  .arc-card h2 {
    font-size: 1.2rem;
  }
  .arc-card p {
    font-size: 0.8125rem;
  }
  .arc-card .text-link {
    font-size: 0.8125rem;
  }
  .browse-invitation {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 17px 20px;
    border-radius: 17px;
  }
  .browse-mark {
    font-size: 1.6rem;
  }
  .browse-invitation small {
    font-size: 0.75rem;
  }
  .today-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 19px 2px 12px;
    font-size: 0.875rem;
  }
  .today-bottom .text-link {
    font-size: 0.875rem;
  }
  .account-note {
    font-size: 0.75rem;
    line-height: 1.5;
    margin: 18px 0;
  }
  .page-heading {
    padding: 28px 0 22px;
    display: block;
  }
  .page-heading h1 {
    font-size: 2.1rem;
    max-width: 16ch;
  }
  .page-heading p {
    font-size: 0.9375rem;
  }
  .page-heading > .text-link {
    font-size: 0.8125rem;
    min-height: 42px;
    margin-top: 5px;
  }
  .section-heading {
    gap: 8px;
    align-items: flex-start;
    margin: 23px 0 15px;
  }
  .section-heading h2 {
    font-size: 1.35rem;
  }
  .section-heading > span {
    font-size: 0.75rem;
    max-width: 20ch;
    text-align: right;
  }
  .game-cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .game-card {
    padding: 21px;
    border-radius: 22px;
  }
  .game-card-heading {
    margin-bottom: 16px;
    flex-wrap: nowrap;
  }
  .game-card h3 {
    font-size: 1.6rem;
  }
  .game-card .game-instruction {
    min-height: 0;
  }
  .game-card .card-bottom {
    min-height: 78px;
    padding: 16px 0;
  }
  .game-card-actions .secondary {
    font-size: 0.9375rem;
  }
  .game-card-actions .quiet {
    font-size: 0.875rem;
  }
  .game-card-heading .eyebrow {
    font-size: 0.75rem;
  }
  .daily-free-label {
    font-size: 0.75rem;
  }
  .game-card .best-note {
    font-size: 0.75rem;
  }
  .game-training-more summary {
    font-size: 0.8125rem;
  }
  .training-depth {
    margin-top: 28px;
  }
  .training-depth .section-heading {
    display: block;
  }
  .training-depth .section-heading > span {
    display: block;
    max-width: none;
    text-align: left;
    margin-top: 7px;
  }
  .coach-panel {
    padding: 21px;
    border-radius: 22px;
  }
  .coach-head {
    align-items: flex-start;
    gap: 12px;
  }
  .coach-head h2 {
    font-size: 1.5rem;
  }
  .coach-head p {
    font-size: 0.875rem;
    line-height: 1.5;
  }
  .coach-status {
    font-size: 0.75rem;
    padding: 5px 8px;
  }
  .coach-card {
    padding: 18px 15px;
  }
  .coach-card small {
    font-size: 0.8125rem;
  }
  .coach-icon {
    width: 36px;
    height: 36px;
  }
  .coach-recommended {
    grid-template-columns: 36px 1fr;
    gap: 12px;
  }
  .coach-more summary {
    font-size: 0.875rem;
    padding: 14px 12px;
  }
  .coach-secondary-grid {
    grid-template-columns: 1fr;
  }
  .coach-note {
    font-size: 0.75rem;
  }
  .plus-feature-drawer > summary {
    padding: 16px 18px;
  }
  .plus-feature-drawer summary strong {
    font-size: 0.875rem;
  }
  .plus-feature-drawer summary small {
    font-size: 0.75rem;
  }
  .plus-feature-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .plus-feature {
    min-height: 76px;
  }
  .plus-feature strong {
    font-size: 1rem;
  }
  .plus-feature small {
    font-size: 0.8125rem;
  }
  .progress-v2-heading {
    padding: 28px 0 21px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .progress-v2-heading h1 {
    font-size: 2.1rem;
  }
  .progress-v2-heading p {
    font-size: 0.9375rem;
  }
  .progress-sync {
    font-size: 0.75rem;
    line-height: 1.5;
  }
  .progress-mastered-count {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    width: 100%;
    padding: 13px 18px;
    border-radius: 15px;
  }
  .progress-mastered-count strong {
    gap: 5px;
  }
  .progress-mastered-count b {
    font-size: 1.6rem;
  }
  .progress-mastered-count small {
    font-size: 0.875rem;
  }
  .progress-mastered-count > span {
    font-size: 0.8125rem;
  }
  .progress-arc {
    display: block;
    padding: 22px;
    border-radius: 23px;
    margin-bottom: 20px;
  }
  .progress-arc .mindarc-object {
    max-width: 240px;
  }
  .progress-arc > .mindarc-object {
    width: 100%;
  }
  .progress-arc > div:last-child {
    margin-top: 20px;
  }
  .progress-arc h2 {
    font-size: 1.6rem;
  }
  .progress-arc p {
    font-size: 0.875rem;
  }
  .arc-legend {
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
  }
  .arc-legend li {
    font-size: 0.75rem;
    gap: 6px;
    flex-wrap: wrap;
  }
  .arc-legend li > span:nth-child(2) {
    flex-basis: calc(100% - 31px);
  }
  .arc-legend strong {
    padding-left: 29px;
    font-size: 0.75rem;
  }
  .arc-legend-number {
    width: 23px;
    height: 23px;
  }
  .progress-tabs {
    gap: 3px;
    padding: 4px;
    border-radius: 14px;
  }
  .progress-tabs button {
    font-size: 0.75rem;
    min-height: 44px;
    padding: 9px 2px;
    border-radius: 10px;
  }
  .progress-first-round {
    padding: 23px;
  }
  .progress-first-round h2 {
    font-size: 1.5rem;
  }
  .progress-first-round p {
    font-size: 0.9375rem;
  }
  .progress-first-round .primary {
    width: 100%;
    font-size: 0.9375rem;
  }
  .progress-section-heading {
    display: block;
  }
  .progress-section-heading > span {
    display: block;
    margin-top: 5px;
  }
  .progress-summary-grid {
    gap: 10px;
  }
  .progress-summary-grid article {
    padding: 17px;
  }
  .progress-summary-grid article span,
  .progress-summary-grid article small {
    font-size: 0.75rem;
  }
  .progress-summary-grid article strong {
    font-size: 1.8rem;
  }
  .progress-two-col,
  .journey-grid,
  .milestone-v2-grid,
  .skill-card-grid {
    grid-template-columns: 1fr;
  }
  .progress-detail-drawer > summary {
    padding: 16px 18px;
    font-size: 0.9375rem;
  }
  .progress-detail-drawer > summary > span {
    display: block;
    margin: 5px 0 0;
    font-size: 0.75rem;
  }
  .progress-detail-drawer .retention-goals,
  .progress-detail-drawer .retention-weekly {
    padding: 17px;
  }
  .retention-goal-grid {
    grid-template-columns: 1fr;
  }
  .retention-section-head {
    display: block;
  }
  .retention-section-head h2 {
    font-size: 1.2rem;
  }
  .retention-report-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .retention-report-stories {
    grid-template-columns: 1fr;
  }
  .milestone-hero {
    padding: 21px;
    gap: 12px;
  }
  .milestone-hero h2 {
    font-size: 1.5rem;
  }
  .milestone-hero > strong {
    font-size: 2rem;
  }
  .milestone-hero p {
    font-size: 0.875rem;
  }
  .milestone-v2 {
    padding: 18px;
  }
  .milestone-v2-top {
    gap: 10px;
    flex-wrap: wrap;
  }
  .milestone-v2-top > span {
    height: 36px;
    width: 36px;
    border-radius: 12px;
  }
  .milestone-v2-top > div {
    flex: 1;
    min-width: 150px;
  }
  .milestone-v2-top > small {
    margin-left: 46px;
    font-size: 0.75rem;
  }
  .milestone-v2-top strong {
    font-size: 0.9375rem;
  }
  .milestone-v2-top p {
    font-size: 0.8125rem;
  }
  .you-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .you-account {
    padding: 28px 23px;
  }
  .you-account h2 {
    font-size: 1.6rem;
  }
  .you-options {
    gap: 10px;
  }
  .you-option {
    padding: 20px;
    gap: 15px;
  }
  .you-option small {
    font-size: 0.8125rem;
  }
  .you-about {
    padding: 20px 4px;
  }
  .shop-view .page-heading h1 {
    font-size: 2rem;
    max-width: 21ch;
  }
  .pack-badge {
    display: inline-block;
    margin-top: 18px;
  }
  .pack-game,
  .premium-price-card {
    padding: 24px;
  }
  .pack-game h2 {
    font-size: 1.55rem;
  }
  .pack-game p {
    font-size: 0.9375rem;
  }
  .purchase-panel {
    padding: 22px;
  }
  .purchase-panel h2 {
    font-size: 1.5rem;
  }
  .purchase-panel p {
    font-size: 0.875rem;
  }
  .session-shell {
    padding: 15px 0 0;
    max-width: 100%;
  }
  .session-top {
    margin-bottom: 4px;
  }
  .session-time,
  .back-button {
    font-size: 0.75rem;
  }
  .stage-track {
    margin-bottom: 14px;
    gap: 3px;
  }
  .stage-track span {
    height: 4px;
  }
  .session-journey {
    gap: 5px;
    margin-bottom: 13px;
  }
  .session-journey .circuit-row {
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
    border-radius: 12px;
    align-items: center;
  }
  .session-journey .journey-node {
    width: 21px;
    height: 21px;
    font-size: 0.75rem;
  }
  .session-journey .journey-state {
    font-size: 0.75rem;
  }
  .session-journey .circuit-name {
    font-size: 0.75rem;
    line-height: 1.3;
    min-height: 1.3em;
    letter-spacing: 0;
  }
  .game-panel {
    border-radius: 21px;
  }
  .game-meta {
    padding: 16px 18px;
    gap: 10px;
  }
  .game-meta .eyebrow {
    font-size: 0.75rem;
  }
  .round-count {
    font-size: 0.75rem;
  }
  .game-content {
    padding: 24px 18px;
  }
  .game-title,
  #game-title {
    font-size: 1.6rem;
  }
  .instruction {
    font-size: 0.9375rem;
    line-height: 1.5;
  }
  .formula {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }
  .answers {
    gap: 10px;
  }
  .answer {
    font-size: 1.2rem;
    min-height: 60px;
    border-radius: 13px;
  }
  .feedback {
    padding: 14px 16px;
    font-size: 0.875rem;
  }
  .game-controls .primary {
    min-height: 50px;
    font-size: 0.9375rem;
  }
  .sequence {
    gap: 6px;
  }
  .sequence > span {
    font-size: 1.2rem;
  }
  .tile,
  .hunt-tile {
    border-radius: 9px;
  }
  .transition-panel {
    padding: 28px 20px;
  }
  .transition-panel h1 {
    font-size: 1.9rem;
  }
  .transition-panel > p {
    font-size: 0.9375rem;
  }
  .next-name strong {
    font-size: 1.1rem;
  }
  .next-name {
    margin: 22px 0 18px;
  }
  .curiosity-reveal,
  .circuit-recap {
    margin: 20px 0;
    padding: 14px 16px;
  }
  .curiosity-reveal p,
  .circuit-recap-list strong {
    font-size: 0.875rem;
  }
  .circuit-recap-list small,
  .circuit-recap-note {
    font-size: 0.75rem;
  }
  .round-rewards {
    margin-top: 22px;
    gap: 9px;
  }
  .reward-item {
    padding: 13px 15px;
    gap: 11px;
  }
  .reward-item strong {
    font-size: 0.875rem;
  }
  .reward-item div > span {
    font-size: 0.75rem;
  }
  .result-score {
    font-size: 3.6rem;
  }
  .result-stats {
    gap: 8px;
  }
  .result-stats strong {
    font-size: 1.2rem;
  }
  .result-stats span {
    font-size: 0.75rem;
  }
  .result-breakdown {
    font-size: 0.8125rem;
  }
  .result-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .result-actions button {
    width: 100%;
  }
  .save-state {
    font-size: 0.8125rem;
  }
  .results-note {
    font-size: 0.75rem;
  }
  .plus-modal {
    padding: 12px;
  }
  .plus-modal-card {
    max-height: calc(100dvh - 24px);
    padding: 25px 22px;
    border-radius: 23px;
  }
  .plus-modal-card h2 {
    font-size: 1.6rem;
  }
  .plus-toggle {
    padding: 16px 0;
    gap: 18px;
  }
  .plus-toggle strong {
    font-size: 0.9375rem;
  }
  .plus-toggle small {
    font-size: 0.8125rem;
  }
  .account-data-copy {
    font-size: 0.9375rem;
  }
  .account-data-note {
    font-size: 0.8125rem;
  }
  .site-footer {
    margin-top: 26px;
    padding: 22px 0 18px;
    gap: 16px;
  }
  .footer-links a,
  .footer-actions button {
    min-height: 44px;
    font-size: 0.8125rem;
    border-radius: 11px;
  }
  .toast {
    bottom: calc(90px + env(safe-area-inset-bottom));
    font-size: 0.875rem;
    padding: 13px 17px;
  }
  body[data-view="play"] .top-nav a {
    opacity: 0.85;
  }
}
@media (max-width: 359px) {
  .site-header,
  .site-footer,
  main {
    width: calc(100% - 24px);
  }
  .home-heading {
    gap: 8px;
  }
  .home-heading h1 {
    font-size: 1.6rem;
  }
  .habit-pill {
    font-size: 0.75rem;
    padding: 6px 8px;
  }
  .daily-main,
  .daily-side {
    padding-inline: 18px;
  }
  .daily-main h2 {
    font-size: 2rem;
  }
  .daily-main > p {
    font-size: 0.875rem;
  }
  .daily-topline .eyebrow {
    font-size: 0.75rem;
  }
  .free-pill {
    font-size: 0.75rem;
  }
  .journey-footnote {
    font-size: 0.75rem;
  }
  .daily-path .circuit-row {
    grid-template-columns: 28px 1fr 27px;
    gap: 9px;
    padding: 10px;
  }
  .daily-path .journey-node {
    width: 28px;
    height: 28px;
  }
  .daily-path .circuit-row:before {
    left: 23px;
  }
  .journey-finish {
    padding-left: 9px;
    gap: 10px;
  }
  .finish-mark {
    width: 30px;
    height: 30px;
  }
  .journey-finish div > span {
    font-size: 0.75rem;
  }
  .arc-card {
    padding-left: 134px;
  }
  .arc-card .mindarc-object {
    width: 124px;
    left: 4px;
  }
  .arc-card h2 {
    font-size: 1.1rem;
  }
  .arc-card p {
    font-size: 0.75rem;
  }
  .arc-card .text-link {
    font-size: 0.75rem;
  }
  .game-card {
    padding: 18px;
  }
  .game-card-heading {
    gap: 7px;
  }
  .game-card-heading .arc-game-glyph {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }
  .game-card h3 {
    font-size: 1.4rem;
  }
  .progress-arc {
    padding: 18px;
  }
  .progress-arc .mindarc-object {
    max-width: 215px;
  }
  .arc-legend {
    column-gap: 8px;
  }
  .progress-tabs button {
    font-size: 0.75rem;
  }
  .transition-panel {
    padding: 24px 17px;
  }
  .game-meta {
    padding: 15px;
  }
  .game-content {
    padding: 22px 15px;
  }
  .plus-modal-card {
    padding: 22px 18px;
  }
}
@media (max-height: 500px) and (min-width: 600px) {
  .site-header {
    height: 64px;
  }
  .home-heading,
  .page-heading {
    padding-top: 20px;
    padding-bottom: 18px;
  }
  .session-shell {
    padding-top: 12px;
  }
  .game-meta {
    padding: 11px 20px;
  }
  .game-content {
    padding: 18px;
  }
  .formula {
    margin-block: 18px;
  }
  .session-journey .circuit-row {
    padding: 6px 10px;
  }
  .plus-modal {
    padding: 10px;
  }
  .plus-modal-card {
    max-height: calc(100dvh - 20px);
    padding: 22px;
  }
  .memory-grid,
  .hunt-grid {
    max-width: 310px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
  .round-rewards.just-earned {
    animation: none;
  }
  .primary {
    transition: none;
  }
  .primary:hover:not(:disabled),
  .primary:active:not(:disabled) {
    transform: none;
  }
}
.plus-reduced-motion .round-rewards.just-earned {
  animation: none;
}
.plus-reduced-motion .primary {
  transition: none;
}
.plus-reduced-motion .primary:hover,
.plus-reduced-motion .primary:active {
  transform: none;
}
.plus-high-contrast {
  --line: #81919b;
  --muted: #d1dbe0;
}
.plus-high-contrast .arc-track {
  stroke-opacity: 0.5;
}
.plus-high-contrast .arc-node {
  opacity: 1;
}
.plus-high-contrast .daily-panel,
.plus-high-contrast .game-card,
.plus-high-contrast .progress-arc {
  border-color: #a4b2a7;
}
/* Reset inherited compact-shell rules that would crowd the new mobile composition. */
.site-header {
  min-height: 0;
}
.home-heading {
  display: flex;
}
.game-card .card-bottom {
  position: static;
  inset: auto;
  width: auto;
}
.home-heading {
  padding-inline: 0;
}
@media (max-width: 600px) {
  .home-heading {
    align-items: center;
    flex-direction: row;
  }
  .home-heading h1 {
    white-space: normal;
  }
  .habit-pill {
    align-self: center;
    margin: 0;
  }
  .daily-main {
    padding-top: 21px;
  }
  .daily-main > p {
    margin-bottom: 17px;
  }
  .daily-side {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .daily-path .circuit-row {
    min-height: 70px;
  }
  .daily-main h2 {
    font-size: 2.05rem;
  }
  .daily-main h2 br {
    display: none;
  }
  .daily-main h2 span {
    display: block;
  }
  .daily-main .journey-footnote {
    font-size: 0.75rem;
  }
  .site-header .brand-mark {
    margin-right: 10px;
  }
}

/* Controls share the same simple line geometry as the progression object. */
.top-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.daily-main .primary {
  justify-content: center;
}
.session-journey .journey-state {
  letter-spacing: 0.03em;
}
@media (max-width: 600px) {
  .daily-panel {
    grid-template-columns: 1fr;
  }
  .daily-topline {
    flex-wrap: wrap;
  }
  .game-card-heading {
    flex-wrap: wrap;
  }
  .game-card-heading .eyebrow {
    letter-spacing: 0.06em;
  }
  .daily-main .journey-footnote {
    font-size: 0.75rem;
  }
  .session-journey .journey-state {
    font-size: 0.75rem;
  }
  .session-journey .circuit-name {
    font-size: 0.75rem;
  }
  .arc-legend li,
  .arc-legend strong {
    font-size: 0.75rem;
  }
  .top-nav svg {
    width: 23px;
    height: 23px;
  }
}
@media (max-height: 500px) {
  .plus-modal-card {
    max-height: min(94dvh, calc(100dvh - 24px));
  }
}

.header-actions svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 359px) {
  .wordmark {
    font-size: 1.3rem;
  }
  .site-header {
    gap: 8px;
  }
  .header-actions {
    gap: 5px;
  }
}

/* Intermediate windows need the same clear navigation separation as phones. */
@media (min-width: 601px) and (max-width: 700px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .site-header {
    height: 76px;
    display: flex;
    flex-wrap: nowrap;
  }
  .header-actions {
    margin-left: auto;
  }
  .top-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 100;
    width: 100%;
    margin: 0;
    padding: 7px 12px calc(7px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    border-top: 1px solid #45513f;
    background: #161e24f5;
    backdrop-filter: blur(18px);
  }
  .top-nav a {
    flex-direction: column;
    gap: 5px;
    min-height: 55px;
    padding: 7px 3px;
    font-size: 0.75rem;
  }
  .home-heading {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }
  .daily-main h2 {
    font-size: 1.85rem;
  }
  .toast {
    bottom: 90px;
  }
}
@media (max-width: 600px) {
  .home-heading > div:first-child {
    min-width: 0;
  }
  .home-heading h1 {
    font-size: clamp(1.5rem, 6.2vw, 1.8rem);
  }
  .game-card .card-bottom {
    flex-direction: row;
    text-align: left;
  }
  .progress-arc {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 14px;
    padding: 20px;
  }
  .progress-arc > .mindarc-object,
  .progress-arc .mindarc-object {
    max-width: 130px;
  }
  .progress-arc .arc-caption {
    display: none;
  }
  .progress-arc > div:first-child {
    align-self: start;
    padding-top: 25px;
  }
  .progress-arc > div:last-child {
    margin-top: 0;
  }
  .progress-arc h2 {
    font-size: 1.25rem;
  }
  .progress-arc .eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
  }
  .progress-arc p {
    font-size: 0.8125rem;
  }
  .progress-arc .arc-legend {
    margin-left: -104px;
    padding-top: 5px;
  }
  .progress-tabs {
    margin-bottom: 18px;
  }
}

.skip-link:not(:focus){width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}


/* Keep active challenges focused: global navigation returns after the round. */
body[data-view="play"] .top-nav {
  display: none;
}
@media (max-width: 700px) {
  body[data-view="play"] {
    padding-bottom: env(safe-area-inset-bottom);
  }
}


/* Post-launch mobile polish: keep lime special and make fresh states feel intentional. */
body {
  background: #101418;
}

.progress-fresh-dashboard {
  padding: 38px 0 28px;
}
.progress-fresh-heading {
  max-width: 760px;
  margin-bottom: 26px;
}
.progress-fresh-heading h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.04;
  margin: 8px 0 12px;
}
.progress-fresh-heading h1 span {
  color: var(--accent);
}
.progress-fresh-heading > p {
  max-width: 52ch;
  color: var(--muted);
  font-size: 1rem;
}
.progress-fresh-heading .progress-sync {
  margin-top: 16px;
}
.progress-fresh-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 44px;
  min-height: 470px;
  padding: 38px 48px;
  border: 1px solid #48583c;
  border-radius: 30px;
  background:
    radial-gradient(ellipse at 22% 45%, rgba(199, 247, 107, 0.11), transparent 44%),
    #182126;
}
.progress-fresh-arc .mindarc-object {
  max-width: 390px;
}
.progress-fresh-arc .arc-caption {
  margin-top: 8px;
}
.progress-fresh-copy {
  max-width: 470px;
}
.progress-fresh-copy h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.08;
  margin: 10px 0 14px;
}
.progress-fresh-copy > p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.progress-fresh-copy .primary {
  min-width: 220px;
}
.you-account.is-fresh > p {
  max-width: 34ch;
  margin-inline: auto;
}
.you-account.is-fresh .primary {
  margin-top: 28px;
}

@media (max-width: 700px) {
  html,
  body {
    background: #101418;
  }
  body {
    background-image: none;
  }
  .site-footer {
    display: none;
  }
  .account-header {
    display: none;
  }
  .site-header {
    justify-content: space-between;
  }
  .header-actions {
    margin-left: auto;
  }
  .progress-fresh-dashboard {
    padding: 24px 0 10px;
  }
  .progress-fresh-heading {
    margin-bottom: 20px;
  }
  .progress-fresh-heading h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }
  .progress-fresh-heading > p {
    font-size: 0.9375rem;
  }
  .progress-fresh-hero {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 24px 20px 26px;
    text-align: center;
    border-radius: 24px;
  }
  .progress-fresh-arc .mindarc-object {
    max-width: 270px;
  }
  .progress-fresh-copy {
    margin-inline: auto;
  }
  .progress-fresh-copy .eyebrow {
    margin-top: 2px;
  }
  .progress-fresh-copy h2 {
    font-size: 1.8rem;
  }
  .progress-fresh-copy > p {
    font-size: 0.9375rem;
    margin-bottom: 20px;
  }
  .progress-fresh-copy .primary {
    width: 100%;
  }
  .you-account.is-fresh {
    padding-block: 34px;
  }
}

/* Keep the app shell visible above safe areas without reserving space for a hidden footer. */
@media (max-width: 700px) {
  body:not([data-view="play"]) {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }
}


/* Game actions use the current game's own raised edge, not the global lime edge. */
.game-actions .primary {
  box-shadow: 0 4px 0 color-mix(in srgb, var(--game-color) 62%, #101418);
}
.game-actions .primary:active:not(:disabled) {
  box-shadow: 0 1px 0 color-mix(in srgb, var(--game-color) 62%, #101418);
}
