:root {
  color-scheme: light;
  --paper: #f7f5fb;
  --ink: #241b36;
  --muted: #615770;
  --purple: #5431a0;
  --line: #e4deee;
  --lime: #dcf997;
  --display: "Trebuchet MS", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 var(--body); }
button, textarea { font: inherit; color: inherit; }
button, a { touch-action: manipulation; }
button, .button { cursor: pointer; user-select: none; -webkit-user-select: none; }
a { color: inherit; }
button:active, .button:active { transform: translateY(2px); }
:focus-visible { outline: 3px solid #7548cf; outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--display); line-height: 1.08; letter-spacing: -.035em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 1.55rem + 2vw, 3.2rem); }
h2 { font-size: clamp(1.58rem, 1.32rem + 1.15vw, 2.15rem); }
.topbar { padding-top: env(safe-area-inset-top, 0px); background: var(--paper); }
.topbar-inner, #app, .site-footer {
  width: min(100%, 1060px);
  margin-inline: auto;
  padding-inline: max(18px, env(safe-area-inset-left, 0px)) max(18px, env(safe-area-inset-right, 0px));
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 70px; }
.brand, .saved-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px; }
.brand { font-size: .8rem; font-weight: 650; letter-spacing: .055em; white-space: nowrap; }
.brand strong { color: var(--purple); }
.brand-mark { width: 32px; aspect-ratio: 1; border-radius: 11px; display: grid; place-items: center; background: #2a1947; }
.brand-mark::after { content: ""; width: 16px; height: 16px; background: var(--lime); clip-path: polygon(50% 0,61% 38%,100% 50%,61% 62%,50% 100%,39% 62%,0 50%,39% 38%); }
.saved-link { padding-inline: 10px; font-size: .86rem; font-weight: 750; }
.bookmark { width: 12px; height: 16px; background: var(--purple); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }
.site-footer { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding-top: 22px; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: .79rem; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; }
.hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; background: radial-gradient(ellipse at 86% 54%, #392666, transparent 67%), #201631; color: #fff; }
.hero-copy { position: relative; z-index: 1; padding: clamp(25px, 5vw, 62px); }
.hero h1 { font-size: clamp(3rem, 2.25rem + 4.5vw, 5.8rem); line-height: .96; margin-top: 23px; }
.hero h1 em { color: var(--lime); font-style: normal; }
.eyebrow { font-size: .73rem; color: var(--purple); letter-spacing: .09em; font-weight: 800; }
.hero .eyebrow { color: #e7dafa; display: flex; gap: 9px; align-items: center; }
.launch-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px #e2fa9a99; }
.hero-lead { max-width: 310px; margin: 18px 0 22px; color: #f0eafa; font-size: 1rem; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 17px; border: 1px solid transparent; border-radius: 13px; text-decoration: none; font-weight: 800; text-align: left; }
.hero-button { background: var(--lime); color: #251d35; }
.arrow { flex: 0 0 9px; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); margin-right: 3px; }
.orbit-art { position: absolute; pointer-events: none; z-index: 0; width: min(54%, 490px); aspect-ratio: 1.3; right: 4%; top: 50%; transform: translateY(-50%); }
.orbit { position: absolute; inset: 18% 1%; border: 1px solid #d1b7ff73; border-radius: 50%; transform: rotate(-30deg); }
.orbit-two { transform: rotate(27deg); inset: 22% 7%; opacity: .65; }
.planet { position: absolute; left: 28%; top: 17%; width: 47%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 27% 25%, #e6d6ff 1%, #b79be7 29%, #8460ca 56%, #4a2f84 82%); box-shadow: 0 0 40px #a981eb47; }
.moon { position: absolute; top: 36%; right: 5%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px #bce96f55; }
.star { position: absolute; width: 7%; aspect-ratio: 1; background: #efdfff; clip-path: polygon(50% 0,61% 38%,100% 50%,61% 62%,50% 100%,39% 62%,0 50%,39% 38%); }
.star-one { top: 6%; left: 21%; }
.star-two { top: 70%; right: 9%; width: 5%; background: #f7baba; }
.star-three { top: 64%; left: 14%; width: 5%; }
.situation-section { margin-top: clamp(23px,4vw,38px); scroll-margin-top: 14px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 7px; margin-bottom: 15px; }
.section-heading > span { color: var(--muted); font-size: .81rem; font-weight: 700; }
.situation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.lilac { --tint: #eee6fb; --accent: #5b3599; }
.mint { --tint: #def4e9; --accent: #17634d; }
.rose { --tint: #f8e5ee; --accent: #893a60; }
.sand { --tint: #f8ead6; --accent: #835116; }
.blue { --tint: #e1ecfa; --accent: #365981; }
.situation { display: grid; grid-template-columns: 43px minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 80px; width: 100%; background: white; border: 1px solid var(--line); border-radius: 17px; padding: 12px; text-align: left; }
.category-icon { display: grid; place-items: center; width: 43px; height: 43px; background: var(--tint); border-radius: 12px; color: var(--accent); }
.category-icon i { display: block; width: 17px; height: 17px; border: 2px solid currentColor; border-radius: 6px; transform: rotate(45deg); position: relative; }
.category-icon i::after { content: ""; background: currentColor; width: 5px; border-radius: 50%; aspect-ratio: 1; position: absolute; inset: 4px; }
.mint .category-icon i { border-radius: 50%; }
.rose .category-icon i { border-radius: 50% 50% 6px 50%; }
.sand .category-icon i { border-radius: 3px; }
.blue .category-icon i { transform: none; border-radius: 50% 50% 8px 8px; }
.situation-text { min-width: 0; }
.situation-text small { display: block; color: var(--accent); font-size: .71rem; font-weight: 800; }
.situation-text strong { display: block; font-size: 1rem; line-height: 1.35; overflow-wrap: anywhere; }
.situation > .arrow { color: var(--accent); }
.play, .saved-page { max-width: 655px; margin: 0 auto; }
.play-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--purple); font-weight: 750; font-size: .92rem; text-decoration: none; }
.back > span { font-size: 1.55rem; line-height: 1; }
.category-tag, .tool-pill { display: inline-block; color: var(--accent, var(--purple)); background: var(--tint, #eee6fb); font-size: .79rem; font-weight: 780; border-radius: 9px; padding: 6px 9px; overflow-wrap: anywhere; }
.progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 9px 0 21px; }
.progress span { padding: 7px 0 0; border-top: 4px solid #e5deed; color: var(--muted); font-size: .75rem; font-weight: 650; }
.progress .filled { border-color: #9278cc; }
.progress span[aria-current] { border-color: var(--purple); color: var(--purple); font-weight: 850; }
.work-card, .saved-card, .empty { border: 1px solid var(--line); background: white; border-radius: 23px; padding: clamp(17px, 4vw, 32px); }
.work-card h1 { margin: 10px 0 13px; }
.context { color: var(--muted); margin: 0 0 15px; font-size: .98rem; }
.instruction { margin: 14px 0 19px; }
.step-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.option-grid, .choice-list { display: grid; gap: 9px; margin: 11px 0 17px; }
.option { min-height: 53px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; text-align: left; padding: 8px 13px; width: 100%; background: #f8f5fd; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; }
.level { display: flex; gap: 4px; }
.level i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid #8e75ad; }
.level-1 i:nth-child(1), .level-2 i:nth-child(-n+2), .level-3 i { background: #7050a6; }
fieldset { min-width: 0; border: 0; padding: 0; margin-inline: 0; }
.choice { display: flex; align-items: center; gap: 10px; padding: 9px 12px; min-height: 49px; border-radius: 11px; border: 1px solid var(--line); cursor: pointer; }
.choice:has(:checked) { background: #f0e9fd; border-color: #7548cf; font-weight: 700; }
.choice input { flex: 0 0 18px; margin: 0; width: 18px; height: 18px; accent-color: var(--purple); }
.primary { background: var(--purple); color: white; min-width: min(220px,100%); }
.work-card .primary { width: 100%; }
.text-button { background: transparent; display: inline-flex; align-items: center; min-height: 44px; padding: 5px 0; color: var(--purple); font-weight: 750; font-size: .9rem; border: 0; text-decoration: underline; text-underline-offset: 3px; margin-top: 6px; text-align: left; }
.feedback-result { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 16px; align-items: center; padding: 12px 14px; background: #f1eafb; border-radius: 13px; margin-bottom: 21px; }
.feedback-result span { color: var(--muted); font-size: .88rem; }
.feedback-result strong { color: var(--purple); overflow-wrap: anywhere; }
.field-label { font-weight: 820; font-size: 1.05rem; }
.field-hint, .private-note { color: var(--muted); font-size: .84rem; margin: 5px 0 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.field-label { display: block; }
textarea { display: block; width: 100%; resize: vertical; min-height: 70px; border: 1px solid #cec2df; padding: 10px; border-radius: 10px; font-size: 16px; background: #fcfafe; }
.private-note { margin: 8px 0 14px; }
.advice { margin-top: 15px; background: var(--tint); border-radius: 13px; padding: 13px; font-size: .92rem; }
.advice strong { color: var(--accent); }
.error { margin: 9px 0; color: #a02753; font-weight: 700; font-size: .9rem; }
.saved-page h1 { margin-bottom: 13px; }
.saved-confirm { padding: 10px 13px; background: #e2f4e7; color: #205645; border-radius: 10px; margin-bottom: 12px; font-weight: 800; }
.stats { display: flex; align-items: center; gap: 13px; background: #eee6fb; color: var(--purple); border-radius: 13px; padding: 12px; margin-bottom: 14px; }
.stats strong { white-space: nowrap; font-family: var(--display); font-size: 1.5rem; }
.stats span { font-size: .86rem; }
.saved-list { display: grid; gap: 12px; }
.saved-card h2 { font-size: 1.42rem; margin: 5px 0 10px; }
.saved-card .eyebrow { color: var(--accent); }
.saved-note { overflow-wrap: anywhere; white-space: pre-wrap; margin: 7px 0; }
.status { display: inline-block; background: var(--tint); color: var(--accent); border-radius: 8px; font-weight: 700; font-size: .83rem; padding: 4px 8px; margin-top: 8px; }
.saved-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 15px; }
.quiet { color: var(--muted); }
.empty p { margin-bottom: 16px; }
@media (max-width: 640px) {
  .topbar-inner { min-height: 58px; }
  .hero { border-radius: 23px; }
  .hero-copy { padding: 25px 21px 24px; }
  .hero h1 { margin-top: 19px; }
  .hero-lead { max-width: 233px; margin: 15px 0 17px; font-size: .94rem; }
  .orbit-art { width: 51%; right: -3%; top: 36%; opacity: .77; }
  .situation-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .situation { min-height: 71px; }
}
@media (max-width: 365px) {
  .topbar-inner, #app, .site-footer { padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px)); }
  .hero h1 { font-size: 2.85rem; }
  .orbit-art { right: -8%; opacity: .63; }
}
@media (hover:hover) and (pointer:fine) {
  .situation:hover, .option:hover, .choice:hover { border-color: #a48bc9; }
  .primary:hover { background: #452382; }
  .hero-button:hover { background: #eefebd; }
  .saved-link:hover, .back:hover { color: #723bd1; }
}

.exercise-tool {
  margin-bottom: 19px;
  padding: 12px 14px;
  background: var(--tint);
  border-radius: 13px;
}
.exercise-tool .eyebrow { color: var(--accent); }
.exercise-tool strong { display: block; margin: 2px 0 3px; font-size: 1.07rem; }
.exercise-tool p:last-child { font-size: .9rem; }
.exercise-example, .reflection {
  border-left: 3px solid var(--accent);
  border-radius: 0 9px 9px 0;
  background: var(--tint);
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: .95rem;
}
.reflection span { display: block; margin-top: 3px; }
.tool-list { display: grid; gap: 10px; margin: 17px 0 5px; }
.tool-option { grid-template-columns: minmax(0, 1fr) auto; min-height: 74px; }
.tool-option .situation-text > span { display: block; font-size: .86rem; color: var(--muted); margin-top: 4px; }
.suggested-tool { background: var(--tint); border-color: #cdb9ec; }
.practice-check { margin: 13px 0 0; }
.practice-check legend { font-size: .94rem; font-weight: 750; }
.practice-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.practice-option {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 6px 10px;
  font-size: .82rem;
  font-weight: 700;
}
.practice-option[aria-pressed="true"] { background: var(--tint); border-color: var(--accent); }
.practice-option[aria-pressed="true"]::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 5px;
  margin-right: 6px;
  vertical-align: 3px;
  border: solid var(--accent);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.rehearsal-phrase {
  background: var(--tint);
  border-radius: 13px;
  padding: 15px;
  font-family: var(--display);
  font-size: clamp(1.25rem, 4vw, 1.8rem);
  font-weight: 750;
  margin-bottom: 16px;
}
.feeling-field { margin: 0 0 22px; }
.rating-title { margin: 10px 0 12px; font-size: clamp(1.3rem, 4vw, 1.65rem); }

/* Orbit — one visual system for the game, its steps and the personal log. */
:root {
  color-scheme: dark;
  --paper:#141025; --ink:#f7f1ff; --muted:#c9bedc; --purple:#dac6ff;
  --line:#473965; --lime:#def990; --panel:#201833; --card:#292040;
  --ease-out:cubic-bezier(.23,1,.32,1);
}
body { background:var(--paper); }
.topbar { background:#171127; border-bottom:1px solid #ffffff13; margin-bottom:18px; }
.topbar-inner { min-height:63px; }
.brand { letter-spacing:.075em; }
.brand strong { margin-left:3px; color:var(--lime); }
.brand-mark { background:#32214d; border:1px solid #6b4a98; }
.saved-link { color:var(--ink); border-radius:10px; background:#29203e; }
.bookmark { background:var(--lime); }
main[data-catalog="loading"] { padding-block:34px; }
.loading { color:var(--muted); margin-top:13px; }
.hero { border:1px solid #68479d; border-radius:28px; background:radial-gradient(ellipse at 82% 46%,#452e72 0,transparent 52%),linear-gradient(125deg,#211337,#1b1636 66%,#2a194b); box-shadow:0 14px 42px #09011655; }
.hero-copy { padding:clamp(23px, 4.8vw, 62px); }
.hero h1 { font-size:clamp(2.65rem, 6.6cqw, 5.15rem); line-height:1.01; }
.hero { container-type:inline-size; }
.hero h1 em { color:#e1cfff; }
.hero-lead { max-width:320px; color:#e7ddf5; }
.hero-button { color:#21142d; }
.orbit-art { right:4%; width:min(52%,480px); }
.orbit-three { transform:rotate(-7deg); inset:14% 12%; opacity:.29; }
.planet { background:radial-gradient(circle at 30% 23%,#faf0ff 1%,#c1a2f4 26%,#9360dc 51%,#6240a2 70%,#3c255e); box-shadow:0 0 64px #a270f377; }
.star-four { top:9%; right:16%; width:4%; background:#e1ff97; }
.star-one,.star-three { opacity:.83; }
.lilac { --tint:#382950; --accent:#e1caff; }
.mint { --tint:#173c39; --accent:#9eefd4; }
.rose { --tint:#44263b; --accent:#ffc1d9; }
.sand { --tint:#47321f; --accent:#ffdaac; }
.blue { --tint:#223851; --accent:#b6dbff; }
.situation { background:var(--panel); border:1px solid var(--line); min-height:80px; }
.category-icon { border:1px solid color-mix(in srgb,var(--accent) 30%,transparent); }
.work-card,.saved-card,.empty { background:var(--panel); border-color:var(--line); }
.option,.choice,.practice-option { background:var(--card); border-color:#534470; }
.choice:has(:checked) { background:#443062; border-color:#c5aaff; }
.choice input { accent-color:var(--lime); }
.primary { background:var(--lime); color:#21182b; }
.back,.text-button { color:#e2ceff; }
.progress span { border-color:#423554; }
.progress .filled { border-color:#ab82ec; }
.progress span[aria-current] { color:#eacfff; border-color:var(--lime); }
.suggested-tool { background:#35264f; border-color:#ac87e6; }
.level i { border-color:#bca8d6; }
.level-1 i:nth-child(1),.level-2 i:nth-child(-n+2),.level-3 i { background:#d5bbff; }
.feedback-result,.stats { background:#35274d; }
textarea { background:#29203e; border-color:#604d80; color:var(--ink); }
textarea::placeholder { color:var(--muted); }
.error { color:#ffb4cc; }
.saved-confirm { background:#1b3e30; color:#b9f5d0; }
.rehearsal-phrase { margin-bottom:20px; border:1px solid #73579c; }
.rehearsal-orbit { list-style:none; padding:0; margin:0 0 16px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; align-items:start; }
.rehearsal-orbit li { position:relative; display:grid; justify-items:center; gap:5px; font-size:.8rem; color:var(--muted); font-weight:750; text-align:center; }
.rehearsal-orbit li:not(:last-child)::before { content:""; position:absolute; width:calc(100% - 32px); height:1px; background:#735f95; top:16px; left:calc(50% + 16px); }
.rehearsal-point { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; border:1px solid #9f83c5; background:#292040; color:#f2e8fc; }
.rehearsal-orbit .done { color:var(--ink); }
.rehearsal-orbit .done .rehearsal-point { background:var(--lime); border-color:var(--lime); color:#201628; }
.mark-animation { animation:orbit-mark .2s var(--ease-out) both; }
@keyframes orbit-mark { from {opacity:.72;transform:scale(.91)} to {opacity:1;transform:scale(1)} }
.legal-page { width:min(650px,100% - 36px); margin:35px auto; }
.legal-page h1 { margin:10px 0 18px; }
.legal-page h2 { font-size:1.42rem; margin:25px 0 9px; }
.legal-page address { margin:12px 0; }
.legal-page p { margin-bottom:12px; }
@media(max-width:640px) {
  .topbar { margin-bottom:13px; }
  .topbar-inner { min-height:57px; }
  .hero { border-radius:22px; }
  .hero h1 { font-size:clamp(2.35rem,11.1cqw,3.45rem); max-width:11ch; }
  .hero-copy { padding:22px 17px; }
  .hero-lead { max-width:23ch; margin-bottom:18px; }
  .orbit-art { width:54%; right:-4%; opacity:.72; top:34%; }
  .situation { min-height:74px; }
}
@media(hover:hover) and (pointer:fine) {
  .primary:hover { background:#efffbf; color:#21182b; }
  .situation:hover,.option:hover,.choice:hover { border-color:#a58bbf; }
  .saved-link:hover,.back:hover { color:var(--lime); }
}
@media(prefers-reduced-motion:reduce) {
  .mark-animation { animation:none; }
  button:active,.button:active { transform:none; }
}
