

body.play {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cream);
}
body.play > .stage {
  flex: 1 0 auto;
}

.play-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #ffefc6 0%, #fff8ec 60%);
}
.play-sky__sun {
  position: absolute;
  right: 9vw;
  top: 14vh;
  width: 13.75rem;
  height: 13.75rem;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff3c4, #ffd27a 45%, rgba(255, 185, 56, 0) 70%);
  opacity: 0.7;
}

body:not(.is-cover) .play-sky__sun {
  display: none;
}
@media (max-width: 760px) {
  .play-sky__sun {
    right: -3.125rem;
    top: 2vh;
    width: 9.375rem;
    height: 9.375rem;
    opacity: 0.5;
  }
}

.chapterbar {
  flex: 1;
  align-items: center;
  gap: var(--s4);
  min-width: 0;
}
.chapterbar__tools {
  display: flex;
  align-items: center;
  gap: var(--s1);
  flex: none;
}
.chapterbar__sections .topbar__burger {
  display: none;
}
@media (max-width: 900px) {
  .chapterbar {
    gap: var(--s2);
  }
  .chapterbar__long {
    display: none;
  }
  .chapterbar__sections {
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0;
  }
  .chapterbar__sections .topbar__burger {
    display: block;
  }
}

.nb__clear {
  display: none;
}
@media (max-width: 599px) {
  .topbar[data-fold][data-show="chapters"] .topbar__row {
    width: 100%;
    padding-left: 0.5rem;
  }
  .chapterbar__mark,
  .thumb:not(.is-current),
  .chapterbar__clear {
    display: none;
  }
  body.is-closing .chapterbar__clear {
    display: inline-flex;
  }
  .nb__clear {
    display: block;
    margin: var(--s2) 0 0 -0.9rem;
  }
  .thumbs {
    justify-content: flex-start;
  }
  .thumbs ol,
  .thumb.is-current {
    max-width: 100%;
  }
  .thumb.is-current .thumb__name {
    max-width: none;
  }
  .chapterbar__sections {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
}
.thumbs {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.thumbs ol {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  list-style: none;
  min-width: 0;
}
.thumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  height: 2.25rem;
  padding: 0.25rem;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px var(--hairline);
  color: var(--ink-soft);
  transition: background-color var(--t-turn) var(--ease), color var(--t-turn) var(--ease);
}
.thumb__no {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--ground-shade);
  font-size: var(--fs-micro);
  font-weight: 700;
}
.thumb__name {
  display: none;
  font-size: var(--fs-small);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.thumb.is-done .thumb__no {
  background: var(--honey-soft);
  color: var(--honey-ink);
}
.thumb.is-current {
  padding-right: 0.875rem;
  background: var(--plum);
  color: var(--on-plum);
  box-shadow: var(--shadow-ink);
}
.thumb.is-current .thumb__no {
  background: var(--honey);
  color: var(--plum);
}
.thumb.is-current .thumb__name {
  display: block;
}

.thumbs__current {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-soft);
}
.thumbs__current:not(:only-child) {
  display: none;
}
.linkbtn {
  min-height: 2.375rem;
  padding: 0 0.9rem;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-quick) var(--ease), color var(--t-quick) var(--ease);
}
@media (hover: hover) {
  .linkbtn:hover {
    background: rgba(255, 255, 255, 0.7);
    color: var(--plum);
  }
}
.notebook-toggle {
  display: none;
  background: var(--honey-tint);
  color: var(--honey-ink);
  box-shadow: 0 0 0 1px rgba(242, 181, 58, 0.35);
}

.stage {
  position: relative;
  
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18.75rem;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  width: 100%;
  max-width: 72.5rem;
  margin-inline: auto;
  padding: var(--s9) var(--pad) var(--s10);
}
body.is-cover .stage {
  grid-template-columns: minmax(0, 1fr);
  max-width: var(--wrap);
  padding-bottom: var(--s10);
}

body.is-closing .stage {
  grid-template-columns: minmax(0, 1fr);
}
body.is-cover .notebook,
body.is-cover .notebook-toggle,
body.is-closing .notebook,
body.is-closing .notebook-toggle {
  display: none;
}

.site-footer {
  z-index: 1;
  background: linear-gradient(rgba(255, 235, 208, 0), var(--cream-deep) 10rem);
}

.page {
  --col: 3.125rem;
  display: flex;
  flex-direction: column;
  gap: var(--s5);
  width: 100%;
  max-width: 45rem;
  margin-inline: auto;
}
.page:focus {
  outline: none;
}
.page--cover {
  max-width: none;
}
.noscript {
  max-width: 36rem;
  font-size: var(--fs-lead);
}

.avatar {
  position: relative;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd98a, var(--honey) 60%, #e59a2e);
  box-shadow: 0 6px 14px -6px rgba(229, 154, 46, 0.7);
  animation: breathe 3.2s ease-in-out infinite;
}
.avatar--big {
  width: 3.25rem;
  height: 3.25rem;
}
.avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(242, 181, 58, 0.15);
  opacity: 0;
  animation: breathe-halo 3.2s ease-in-out infinite;
}

@keyframes breathe {
  50% {
    transform: scale(1.08);
  }
}
@keyframes breathe-halo {
  50% {
    opacity: 1;
  }
}

.turn {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}
.turn > .avatar {
  margin-top: 0.375rem;
}
.turn__body {
  display: grid;
  justify-items: start;
  gap: var(--s2);
  min-width: 0;
  max-width: 92%;
}
.bubble {
  margin: 0;
  padding: 1rem 1.25rem;
  border-radius: var(--r-inner);
  line-height: 1.5;
  overflow-wrap: break-word;
  animation: rise 0.45s var(--ease) both;
}
.bubble--ai {
  background: var(--honey-tint);
  box-shadow: 0 0 0 1px rgba(242, 181, 58, 0.22), 0 10px 24px -16px rgba(122, 84, 16, 0.35);
  border-bottom-left-radius: var(--r-code);
}

.says {
  max-width: 40rem;
  padding-top: 2px;
  animation: rise 0.45s var(--ease) both;
}
.says h1 {
  font-size: var(--fs-day);
  font-variation-settings: "opsz" 96;
  line-height: var(--lh-act);
  letter-spacing: -0.025em;
}
.says h1:focus {
  outline: none;
}
.says p:not(.bubble__label):not(.binomial) {
  max-width: var(--measure);
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--plum-body);
}
.says h1 + p,
.says p + p,
.says h1 + ul {
  margin-top: var(--s3);
}
.turn--lead .avatar {
  margin-top: 0.25rem;
}
.turn--lead .why {
  max-width: var(--measure);
  margin-top: var(--s1);
  padding-inline: 0;
}
.bubble--you {
  align-self: flex-end;
  max-width: 80%;
  background: var(--plum);
  color: var(--on-plum);
  border-bottom-right-radius: var(--r-code);
  box-shadow: var(--shadow-ink);
}
.bubble--you.is-skipped {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink-soft);
  font-style: italic;
  box-shadow: 0 0 0 1px var(--hairline-strong);
}
.bubble__label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.375rem;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--honey-ink);
}

.bubble__label.is-spotted {
  padding: 0.2em 0.75em;
  border-radius: var(--pill);
  background: var(--rose-tint);
  color: var(--rose-ink);
  animation: pop 0.5s var(--ease) both;
}
.bubble__label.is-spotted::after {
  content: "· spotted";
  margin-left: 0.4em;
}
@keyframes pop {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.625rem);
  }
}

.past {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding-left: var(--col);
}
.past__q {
  align-self: flex-start;
  max-width: 80%;
  padding: 0.625rem 1rem;
  border-radius: var(--r-inner);
  border-bottom-left-radius: var(--r-code);
  background: rgba(255, 243, 218, 0.6);
  color: var(--ink-soft);
  font-size: var(--fs-small);
  line-height: 1.45;
}
.past .bubble--you {
  padding: 0.625rem 1rem;
  font-size: var(--fs-small);
  animation-delay: 0.05s;
}

.why {
  padding-inline: 0.375rem;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink-soft);
}
.why__label {
  font-weight: 600;
  color: var(--plum);
}

.echo:empty,
.reveal:empty {
  padding: 0;
  background: none;
  box-shadow: none;
}
.turn--echo:has(.echo:empty),
.turn--reply:has(.reveal:empty) {
  margin-top: calc(var(--s5) * -1);
}
.turn--echo:has(.echo:empty) .avatar,
.turn--reply:has(.reveal:empty) .avatar {
  visibility: hidden;
  height: 0;
}
.reveal p + p {
  margin-top: 0.7em;
}
.reveal__spot {
  font-weight: 600;
}
.spotted {
  display: inline-block;
  padding: 0 0.55em;
  border-radius: var(--pill);
  background: var(--rose-tint);
  color: var(--rose-ink);
}

.promises-list {
  display: grid;
  gap: var(--s2);
  list-style: none;
}
.promises-list li {
  position: relative;
  padding-left: 1.375rem;
}
.promises-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 0.5625rem;
  height: 0.5625rem;
  border-radius: 50%;
  background: var(--honey);
}

.reply {
  display: grid;
  gap: var(--s3);
  margin: var(--s2) 0 0 var(--col);
  border: 0;
  padding: 0;
  min-width: 0;
}
.reply .choices,
.reply .scale,
.reply .field {
  max-width: none;
}
.reply--scale {
  max-width: 32rem;
}

.choices.reply {
  max-width: none;
}

.choices {
  border: 0;
  padding: 0;
  min-width: 0;
}
.page .reply {
  margin: var(--s2) 0 0 var(--col);
}
.choice {
  animation: rise 0.4s var(--ease) both;
}
.choice:nth-of-type(2) {
  animation-delay: 0.04s;
}
.choice:nth-of-type(3) {
  animation-delay: 0.08s;
}
.choice:nth-of-type(4) {
  animation-delay: 0.12s;
}
.choice:nth-of-type(n + 5) {
  animation-delay: 0.16s;
}
.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.choice__label {
  min-width: 0;
  line-height: 1.4;
}
.choice__label code {
  white-space: normal;
}

.choice:has(input:checked) {
  --choice-bg: var(--plum);
  color: var(--on-plum);
  box-shadow: var(--shadow-ink);
}
.choice:has(input:checked) .choice__key {
  background: var(--honey);
  color: var(--plum);
}
.choice:has(input:focus-visible) {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
}
.choice__notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.375rem;
}
.choice__note {
  padding: 0.15em 0.7em;
  border-radius: var(--pill);
  white-space: nowrap;
}

.choices .choice.is-locked {
  --choice-bg: var(--card);
  color: var(--plum);
  box-shadow: 0 0 0 1px var(--hairline-strong);
  opacity: 0.6;
  transform: none;
  animation: none;
  cursor: default;
  pointer-events: none;
}
.choices .choice.is-locked .choice__key {
  background: var(--ground-shade);
  color: var(--ink-soft);
}
.choices .choice.is-locked.is-mine {
  box-shadow: 0 0 0 2px var(--plum);
  opacity: 1;
}
.choices .choice.is-locked.is-good {
  --choice-bg: var(--ev-verified-tint);
  box-shadow: none;
  opacity: 1;
}
.choices .choice.is-locked.is-good.is-mine {
  box-shadow: 0 0 0 2px var(--plum);
}
.choices .choice.is-locked.is-good .choice__key {
  background: var(--ev-verified);
  color: #ffffff;
}
.choices .choice.is-locked .choice__note--good {
  background: #ffffff;
  color: var(--ev-verified);
}
.choices .choice.is-locked .choice__note--mine {
  background: var(--plum);
  color: var(--on-plum);
}

.other {
  margin-top: calc(var(--s1) * -1);
}
.field__label span {
  font-weight: 400;
  color: var(--ink-soft);
}
.field__input--big {
  min-height: 3.875rem;
  font-size: var(--fs-lead);
}
.reply .field__input {
  border-bottom-right-radius: var(--r-code);
}
.hint {
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.date-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--s4);
}
.scale__stops {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
}
.chips {
  margin-top: var(--s1);
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin: 0 0 0 var(--col);
}

.actions .btn--back {
  margin-left: -1rem;
}
.actions__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--s3);
  margin-left: auto;
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-shadow: none;
  padding-inline: 1rem;
}
@media (hover: hover) {
  .btn--ghost:hover {
    --btn-bg: rgba(255, 255, 255, 0.7);
  }
}
@media (hover: hover) {
  .btn--back:hover svg {
    transform: translateX(-3px);
  }
}
.btn .key {
  margin-left: 0.25rem;
  background: rgba(255, 247, 234, 0.14);
  color: var(--on-plum-soft);
  box-shadow: 0 0 0 1px rgba(255, 247, 234, 0.2);
}
.btn:not(.btn--primary) .key {
  background: var(--card);
  color: var(--ink-soft);
  box-shadow: 0 0 0 1px var(--hairline-strong);
}
.key-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
@media (hover: none) {
  .btn .key,
  .key-hint,
  .choice__key[aria-hidden="true"] {
    display: none;
  }
  .choice {
    grid-template-columns: 1fr auto;
    padding-left: var(--s5);
  }
}

.cover {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  
  min-height: min(calc(100svh - var(--bar-h) - var(--s9) - var(--s10)), 48rem);
}
.cover__title {
  font-size: var(--fs-act);
  font-variation-settings: "opsz" 96;
  line-height: var(--lh-act);
  letter-spacing: -0.03em;
}
.cover__kicker {
  margin-bottom: var(--s4);
}
.cover__kicker code {
  font-weight: 500;
  color: var(--plum);
}
.cover__title:focus {
  outline: none;
}
.cover__body {
  max-width: 34rem;
  margin-top: var(--s6);
  font-size: var(--fs-lead);
  color: var(--ink-soft);
}
.cover__body em {
  color: var(--plum);
}
.cover__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s8);
}
.cover__practice {
  margin-top: var(--s5);
  font-weight: 600;
}
.cover__demo {
  margin-top: var(--s4);
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.cover__card {
  padding: 1.375rem 1.375rem 1.5rem;
}
.cover__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.875rem;
  margin-bottom: 0.875rem;
  border-bottom: 1px solid var(--hairline);
}
.cover__who {
  font-weight: 600;
  font-size: var(--fs-small);
  line-height: 1.25;
}
.cover__who small {
  display: block;
  font-weight: 400;
  font-size: var(--fs-micro);
  color: var(--ink-soft);
}
.cover__map {
  display: grid;
  gap: 0.5rem;
  list-style: none;
}
.cover__map li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: start;
  padding: 0.5625rem 1rem 0.5625rem 0.5625rem;
  border-radius: var(--r-inner);
  border-bottom-left-radius: var(--r-code);
  background: var(--honey-tint);
  font-weight: 600;
  line-height: 1.35;
  animation: rise 0.5s var(--ease) both;
}
.cover__map li:nth-child(2) {
  animation-delay: 0.08s;
}
.cover__map li:nth-child(3) {
  animation-delay: 0.16s;
}
.cover__map li:nth-child(4) {
  animation-delay: 0.24s;
}
.cover__map li:nth-child(5) {
  animation-delay: 0.32s;
}
.cover__map li:nth-child(6) {
  animation-delay: 0.4s;
}
.cover__no {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #ffffff;
  font-size: var(--fs-micro);
  font-weight: 700;
  color: var(--honey-ink);
}

.cover__map .cover__meet {
  justify-self: end;
  max-width: 88%;
  margin-top: 0.375rem;
  padding: 0.75rem 1.125rem;
  border-bottom-left-radius: var(--r-inner);
  border-bottom-right-radius: var(--r-code);
  background: var(--plum);
  color: var(--on-plum);
  box-shadow: var(--shadow-ink);
}
.cover__meet .cover__no {
  display: none;
}

.scene {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  margin-left: var(--col);
  box-shadow: var(--shadow-lift);
  animation: rise 0.5s var(--ease) both;
}
.scene__body {
  position: relative;
  display: grid;
  gap: var(--s4);
}
.scene__body > *,
.specimen > * {
  min-width: 0;
}
.scene__text,
.scene__after {
  color: var(--ink-soft);
}
.scene__after {
  font-size: var(--fs-small);
}

.specimen {
  margin: 0;
  padding: 0.875rem 1.125rem;
  border-radius: var(--r-inner);
  border-bottom-left-radius: var(--r-code);
  background: #f6efe6;
  box-shadow: 0 0 0 1px var(--hairline);
}
.specimen__who {
  margin-bottom: 0.25rem;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.specimen-code {
  margin: 0.5rem 0 0;
  padding: 0.875rem 1rem;
  border-radius: var(--r-inner);
  background: var(--plum);
  color: var(--on-plum);
  font-size: var(--fs-micro);
  line-height: 1.55;
  overflow-x: auto;
  scrollbar-width: thin;
}
.fm-badge {
  display: none;
}
.is-marked .fm {
  border-radius: var(--r-code);
  background: var(--rose-tint);
  box-shadow: inset 0 -2px 0 var(--rose);
  color: var(--rose-ink);
}
.specimen-code .fm,
.is-marked .specimen-code .fm {
  background: rgba(238, 143, 166, 0.22);
  color: #ffd3de;
}
.is-marked .fm-badge {
  display: inline-grid;
  margin-left: 3px;
  vertical-align: 0.15em;
}
.fm-no {
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--rose-ink);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1;
}
.fieldmarks {
  display: grid;
  gap: 0.625rem;
  margin-top: var(--s2);
  list-style: none;
  font-size: var(--fs-small);
}
.fieldmarks li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  line-height: 1.45;
}
.fieldmarks .fm-no {
  display: grid;
  flex: none;
  margin-top: 1px;
}

.leaders {
  display: none;
}

.scene__prompt {
  float: left;
  width: 100%;
  margin: var(--s4) 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 700;
  line-height: var(--lh-title);
  letter-spacing: -0.01em;
}
.scene__prompt + * {
  clear: both;
}
.choices--scene {
  display: grid;
  gap: var(--s2);
}
.choices--scene .choice__key {
  font-weight: 700;
}
.binomial {
  font-size: var(--fs-small);
  font-style: italic;
  color: var(--ink-soft);
}
.says .binomial {
  margin-top: var(--s1);
}

.mirror {
  display: grid;
  margin-left: var(--col);
  padding: 0.5rem 1.375rem;
  list-style: none;
}
.mirror li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s4);
  padding-block: 0.875rem;
}
.mirror li + li {
  border-top: 1px solid var(--hairline);
}
.mirror__no {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.mirror__name {
  font-weight: 600;
}
.mirror__state {
  padding: 0.2em 0.8em;
  border-radius: var(--pill);
  background: var(--ground-shade);
  color: var(--ink-soft);
  font-size: var(--fs-small);
  font-weight: 600;
  white-space: nowrap;
}
.is-caught .mirror__state {
  background: var(--rose-tint);
  color: var(--rose-ink);
}

.reward {
  display: grid;
  gap: var(--s7);
  padding-top: var(--s4);
}
.reward__title {
  font-size: var(--fs-act);
  font-variation-settings: "opsz" 96;
  line-height: var(--lh-act);
  letter-spacing: -0.03em;
}
.reward__title:focus {
  outline: none;
}
.reward__save {
  justify-self: end;
  margin-top: calc(-1 * var(--s3));
}
.companion-card {
  position: relative;
  padding: clamp(1.375rem, 3.5vw, 2.25rem);
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: 0 40px 70px -30px rgba(120, 60, 70, 0.35);
  animation: glow-in 1.2s var(--ease) both;
}

.companion-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--glow-honey);
  pointer-events: none;
  animation: fade-in 1.2s var(--ease) both;
}
@keyframes glow-in {
  from {
    transform: translateY(0.75rem);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
.companion-card__head {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-bottom: var(--s5);
}
.companion-card__title {
  font-size: var(--fs-title);
  line-height: var(--lh-title);
  letter-spacing: -0.015em;
}
.companion-card__lines {
  display: grid;
  gap: var(--s3);
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--fs-card);
  line-height: var(--lh-card);
}
.companion-card__lines li {
  position: relative;
  padding-left: 1.375rem;
}
.companion-card__lines li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--honey);
}
.companion-card__lines b,
.companion-card__lines strong {
  font-weight: 700;
}
.companion-card__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2) var(--s5);
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid var(--hairline);
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

.takeaway {
  display: grid;
  gap: var(--s4);
  margin-top: var(--s9);
}
.takeaway h2,
.after h2 {
  font-size: var(--fs-title);
  line-height: var(--lh-title);
  letter-spacing: -0.015em;
}
.takeaway__lead {
  color: var(--ink-soft);
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.tabs [role="tab"] {
  min-height: 2.625rem;
  padding: 0 1.1rem;
  border: 0;
  border-radius: var(--pill);
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--hairline-strong);
  color: var(--plum);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--t-quick) var(--ease), box-shadow var(--t-quick) var(--ease);
}
@media (hover: hover) {
  .tabs [role="tab"]:hover {
    box-shadow: 0 0 0 1px var(--honey);
  }
}
.tabs [role="tab"][aria-selected="true"] {
  background: var(--plum);
  color: var(--on-plum);
  box-shadow: var(--shadow-ink);
}
.tabs--small [role="tab"] {
  min-height: 2.25rem;
  padding: 0 0.9rem;
}
.take-panel {
  display: grid;
  gap: var(--s6);
  margin-top: var(--s2);
}
.steps {
  display: grid;
  gap: var(--s7);
  list-style: none;
  counter-reset: step;
}
.steps > li {
  position: relative;
  display: grid;
  gap: var(--s3);
  min-width: 0;
  padding-left: 2.75rem;
  counter-increment: step;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background: var(--plum);
  color: var(--on-plum);
  font-size: var(--fs-small);
  font-weight: 600;
}
.steps :not(pre) > code {
  white-space: normal;
}
.editor {
  border-radius: var(--r-inner);
  background: var(--cream);
  box-shadow: 0 0 0 1px var(--hairline-strong);
  overflow: hidden;
  transition: box-shadow var(--t-quick) var(--ease);
}
.editor:focus-within {
  box-shadow: 0 0 0 2px var(--honey), 0 0 0 6px rgba(242, 181, 58, 0.2);
}
.editor__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2);
  padding: 0.625rem 1.125rem;
  background: var(--ground-shade);
  font-size: var(--fs-micro);
}
.editor__bar label {
  font-family: var(--font-mono);
  font-weight: 600;
}
.count {
  color: var(--ink-soft);
}
.count.is-over {
  color: var(--rose-ink);
  font-weight: 700;
}
.editor__text {
  display: block;
  width: 100%;
  min-height: 12em;
  padding: 0.875rem 1.125rem;
  border: 0;
  background: transparent;
  color: var(--plum);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  line-height: 1.55;
  resize: vertical;
}
.editor__text:focus-visible {
  outline: none;
}

.rule-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3);
}
.rule-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s2);
  padding: var(--s5);
  border-radius: var(--r-inner);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--hairline-strong);
}
.rule-option__name {
  display: grid;
  gap: 2px;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 600;
}
.rule-option__name code {
  justify-self: start;
}
.rule-option__name span {
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--ink-soft);
}
.rule-option p {
  font-size: var(--fs-micro);
}
.rule-option__size {
  color: var(--ink-soft);
}
.rule-option .btn {
  margin-top: auto;
}
@media (max-width: 640px) {
  .rule-options {
    grid-template-columns: minmax(0, 1fr);
  }
}
.apps {
  display: grid;
  gap: var(--s3);
}
.app-panel {
  padding: var(--s4) var(--s5);
  border-radius: var(--r-inner);
  background: var(--cream);
  font-size: var(--fs-small);
  line-height: 1.55;
}
.app-panel h3 {
  margin-bottom: var(--s2);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 600;
}
.app-panel ol,
.app-panel ul {
  display: grid;
  gap: 0.375rem;
  padding-left: 1.3em;
}
.app-panel p + p {
  margin-top: 0.6em;
}
.more {
  margin-top: var(--s3);
}
.more summary {
  font-weight: 600;
  cursor: pointer;
}
.more summary::marker {
  color: var(--honey-ink);
}
.more[open] summary {
  margin-bottom: var(--s2);
}
.works {
  padding: var(--s4) var(--s5);
  border-radius: var(--r-inner);
  background: var(--lilac-tint);
  font-size: var(--fs-small);
}
.works__title {
  margin-bottom: 0.25rem;
  font-weight: 700;
}
.cmd {
  max-width: none;
}

.after {
  display: grid;
  gap: var(--s4);
  margin-top: var(--s10);
}

.after__get {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s5) var(--s6);
  border-radius: var(--r-inner);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--honey), var(--shadow-rest);
  color: var(--ink-soft);
  font-size: var(--fs-small);
  line-height: 1.45;
  text-decoration: none;
  transition: transform var(--t-quick) var(--ease);
}
.after__get > span {
  display: grid;
  gap: 0.25rem;
}
.after__get .after__name {
  font-size: var(--fs-body);
}
.after__get svg {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  color: var(--plum);
}
@media (hover: hover) {
  .after__get:hover {
    transform: translateY(-2px);
  }
}
.after__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
}
.after__item {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  padding: 1.125rem 1.25rem;
  border: 0;
  border-radius: var(--r-inner);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-rest);
  color: var(--ink-soft);
  font: inherit;
  font-size: var(--fs-small);
  line-height: 1.45;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-quick) var(--ease), box-shadow var(--t-quick) var(--ease);
}
@media (hover: hover) {
  .after__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px var(--honey), 0 10px 20px -10px rgba(242, 181, 58, 0.6);
  }
}
.after__name {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--plum);
}

.slips {
  display: grid;
  gap: var(--s4);
  margin-left: var(--col);
}
.slips__group {
  padding: 1.25rem 1.5rem;
}
.slips__family {
  margin-bottom: var(--s2);
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.slips ol {
  display: grid;
  list-style: none;
}
.slips li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s4);
  padding-block: 0.75rem;
}
.slips li + li {
  border-top: 1px solid var(--hairline);
}
.slips__no {
  display: grid;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  background: var(--ground-shade);
  font-size: var(--fs-micro);
  font-weight: 700;
  color: var(--ink-soft);
}
.slips__names {
  display: grid;
  line-height: 1.35;
}
.slips__name {
  font-weight: 600;
}
.slips__state {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  white-space: nowrap;
}
.slips li.is-seen .slips__no {
  background: var(--honey-soft);
  color: var(--honey-ink);
}
.slips li.is-spotted .slips__no {
  background: var(--rose-tint);
  color: var(--rose-ink);
}
.slips li.is-spotted .slips__state {
  padding: 0.15em 0.75em;
  border-radius: var(--pill);
  background: var(--rose-tint);
  color: var(--rose-ink);
  font-weight: 600;
}

.notebook {
  position: sticky;
  top: 6rem;
}

.notebook__inner {
  position: relative;
  isolation: isolate;
  padding: 1.375rem;
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: var(--shadow-rest);
}

.notebook__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(120% 70% at 85% 0%, var(--honey-soft), transparent 70%);
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.notebook__inner[data-warm="1"]::before {
  opacity: 0.2;
}
.notebook__inner[data-warm="2"]::before {
  opacity: 0.4;
}
.notebook__inner[data-warm="3"]::before {
  opacity: 0.6;
}
.notebook__inner[data-warm="4"]::before {
  opacity: 0.8;
}
.notebook__inner[data-warm="5"]::before {
  opacity: 1;
}

.nb__lines li.is-new .w {
  display: inline-block;
  animation: write 0.42s var(--ease) var(--d, 0ms) both;
}
@keyframes write {
  from {
    opacity: 0;
    transform: translateY(0.3em);
  }
}
.nb__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--hairline);
}
.nb__head .avatar {
  width: 1.875rem;
  height: 1.875rem;
}
.nb__title {
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  font-weight: 700;
  line-height: 1.2;
}
.nb__title:focus {
  outline: none;
}
.nb__lines {
  display: grid;
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  line-height: 1.5;
}
.nb__lines li {
  padding-block: 0.625rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-soft);
}
.nb__lines li.is-new {
  margin-inline: -0.625rem;
  padding-inline: 0.625rem;
  border-radius: var(--r-code);
  position: relative;
  isolation: isolate;
  color: var(--plum);
}

.nb__lines li.is-new::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--honey-soft);
  opacity: 0;
  animation: fresh 2.4s var(--ease) both;
}
@keyframes fresh {
  from {
    opacity: 1;
  }
}
.nb__empty {
  padding-block: 0.75rem;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.nb__spotted {
  margin-top: var(--s4);
}
.nb__sub {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nb__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: var(--s2);
  list-style: none;
}
.nb__chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.2em 0.75em 0.2em 0.3em;
  border-radius: var(--pill);
  background: var(--rose-tint);
  color: var(--rose-ink);
  font-size: var(--fs-micro);
  font-weight: 600;
}
.nb__chips span {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #ffffff;
  font-size: var(--fs-label);
}
.nb__foot {
  margin-top: var(--s4);
  font-size: var(--fs-micro);
  color: var(--ink-soft);
}

@media (max-width: 1100px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
  }
  .notebook-toggle {
    display: inline-flex;
    align-items: center;
  }
  .notebook {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    top: auto;
    z-index: 60;
    max-width: 26.25rem;
    max-height: min(70vh, 35rem);
    margin-left: auto;
    overflow-y: auto;
    border-radius: var(--r-card);
    visibility: hidden;
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity var(--t-quick) var(--ease), transform var(--t-turn) var(--ease), visibility 0s linear var(--t-turn);
  }
  .notebook.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity var(--t-quick) var(--ease), transform var(--t-turn) var(--ease);
  }
  .notebook__inner {
    background: rgba(255, 253, 249, 0.97);
    box-shadow: var(--glow-honey), var(--shadow-lift);
  }
}

@media (max-width: 900px) {
  .cover {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .thumb.is-current .thumb__name {
    max-width: 22ch;
  }
  .stage {
    padding-top: var(--s7);
  }
  .page {
    --col: 0px;
  }
  .past__q {
    margin-left: 2.75rem;
  }
  .turn {
    gap: 0.625rem;
  }
  .avatar {
    width: 1.875rem;
    height: 1.875rem;
  }
  .avatar--big {
    width: 2.75rem;
    height: 2.75rem;
  }
  .turn__body {
    max-width: calc(100% - 2.5rem);
  }
  .bubble {
    padding: 0.875rem 1rem;
  }
  .date-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .after__row {
    grid-template-columns: minmax(0, 1fr);
  }
  .actions {
    flex-wrap: wrap;
  }
  .steps > li {
    padding-left: 0;
    padding-top: 2.5rem;
  }
}

@media (max-width: 420px) {
  
  .choice__notes {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }
  .linkbtn {
    padding-inline: 0.7rem;
  }
  .cover__actions .btn,
  .actions__right .btn--primary {
    width: 100%;
  }
  .actions__right {
    width: 100%;
  }
  .mirror li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px var(--s3);
  }
  .mirror__no {
    grid-column: 1 / -1;
  }
  .slips li {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .slips__state {
    grid-column: 2;
    justify-self: start;
  }
  .scale__mark {
    width: 2.875rem;
    height: 2.875rem;
  }
  .scale__num {
    top: 0.75rem;
  }
}
