/* Max's field guide: scoped tokens share the application's light/dark switch. */
body {
  --guide-paper: #fcfdfc;
  --guide-ink: #183c40;
  --guide-muted: #596b6d;
  --guide-mint: #e8f2ef;
  --guide-gold: #996724;
  --guide-gold-soft: #f8edd1;
  --guide-line: #d6e2df;
}
body.theme-dark {
  --guide-paper: #182b2e;
  --guide-ink: #eef1de;
  --guide-muted: #b4c6c0;
  --guide-mint: #243e39;
  --guide-gold: #f0ce84;
  --guide-gold-soft: #3a3524;
  --guide-line: #3f5852;
}
.guide-page .guide-main {
  display: block;
  width: 100%;
  max-width: none;
  padding: 120px clamp(20px, 3.4vw, 60px) 40px !important;
  color: var(--guide-ink);
  font-family: var(--font-body, sans-serif);
}
.guide-main h1,
.guide-main h2,
.guide-main h3,
.max-tour h2,
.max-tour p {
  color: inherit;
}
.guide-main p {
  line-height: 1.85;
}
.guide-main h2 {
  font-size: clamp(1.45rem, 2.1vw, 2.15rem);
  letter-spacing: -0.045em;
  line-height: 1.45;
}
.guide-main h3 {
  font-size: 1.2rem;
  line-height: 1.5;
}
.guide-main a {
  color: var(--ui-accent);
}
/* The legacy shell applies an important text color; scope its token per role. */
.guide-main {
  --bbs-shell-text: var(--guide-ink);
}
.guide-main :is(.guide-primary, .guide-primary span) {
  --bbs-shell-text: var(--ui-accent-contrast);
}
.guide-main :is(.guide-eyebrow, .guide-spark, .guide-quote, .guide-values article > span) {
  --bbs-shell-text: var(--guide-gold);
}
.guide-main
  :is(
    .guide-small,
    .guide-hero-description,
    .guide-hero-foot,
    .guide-place p,
    .guide-values p,
    .guide-community p,
    .guide-future-grid p,
    .guide-mission-foot p
  ) {
  --bbs-shell-text: var(--guide-muted);
}
.guide-main :is(.guide-place .guide-quote, .guide-community .guide-quote) {
  --bbs-shell-text: var(--guide-gold);
}
.guide-main
  :is(.guide-tag, .guide-progress-label, .guide-place a, .guide-text-link, .guide-economy-card a) {
  --bbs-shell-text: var(--ui-accent);
}
.guide-main .guide-tag-future {
  --bbs-shell-text: var(--guide-gold);
}
.guide-main :is(.guide-secondary, .guide-task) {
  --bbs-shell-text: var(--guide-ink);
}
.guide-main .guide-task small {
  --bbs-shell-text: var(--guide-muted);
}
.guide-main .guide-task > span {
  --bbs-shell-text: var(--guide-gold);
}
.guide-main :is(button, a):focus-visible,
.max-tour :is(button, a):focus-visible {
  outline: 3px solid var(--ui-focus);
  outline-offset: 5px;
}
.guide-eyebrow {
  margin: 0 0 20px;
  color: var(--guide-gold);
  font: 700 0.75rem/1.6 var(--font-ui, sans-serif);
  letter-spacing: 0.14em;
}
.guide-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #5a8872;
  box-shadow: 0 0 0 4px #6d99741c;
}
.guide-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
  border: 1px solid var(--guide-line);
  border-radius: 30px;
  background:
    radial-gradient(ellipse at 83% 29%, var(--guide-mint), transparent 60%), var(--guide-paper);
  box-shadow: 0 22px 70px #213c3710;
}
.guide-hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(30px, 4vw, 65px) 0 35px clamp(28px, 4vw, 65px);
}
.guide-hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 3.6vw, 4.7rem);
  font-family: var(--font-display, var(--font-ui));
  font-weight: 750;
  line-height: 1.26;
  letter-spacing: -0.055em;
}
.guide-hero h1 em {
  font-style: normal;
  color: var(--ui-accent);
}
.guide-hero-description {
  margin: 24px 0;
  max-width: 480px;
  font-size: 1rem;
  color: var(--guide-muted);
}
.guide-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.guide-primary,
.guide-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  font: 650 0.95rem/1.5 var(--font-ui, sans-serif);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s,
    background 0.18s;
}
.guide-primary {
  background: var(--action-fill, var(--ui-accent));
  color: var(--action-foreground, var(--ui-accent-contrast)) !important;
  box-shadow: 0 8px 20px #1648401a;
}
.guide-primary:hover {
  background: var(--action-hover-fill, var(--ui-accent-hover));
  transform: var(--action-target-transform, translateY(-2px));
}
.guide-secondary {
  background: transparent;
  color: var(--guide-ink) !important;
  border-color: var(--guide-line);
}
.guide-secondary:hover {
  background: var(--guide-mint);
}
.guide-primary:disabled,
.guide-secondary:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}
.guide-small {
  font-size: 0.8rem;
  color: var(--guide-muted);
}
.guide-reward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-top: 24px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--guide-line);
  border-radius: 22px;
  background: var(--guide-gold-soft);
}
.guide-reward > div {
  flex: 1 1 420px;
  min-width: 0;
}
.guide-reward .guide-eyebrow {
  margin-bottom: 8px;
}
.guide-reward h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}
.guide-reward p {
  margin: 10px 0 0;
}
.guide-reward .guide-reward-status {
  color: var(--guide-ink);
  font-weight: 600;
}
.guide-reward [hidden] {
  display: none;
}
.guide-mascot-scene {
  position: relative;
  min-height: 490px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 48px 28px 22px;
}
.guide-mascot {
  position: relative;
  z-index: 2;
  height: min(470px, 40vw);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 12px #2b322b16);
  transform: rotate(2deg);
}
.guide-orbit {
  position: absolute;
  border: 1px solid var(--guide-line);
  border-radius: 50%;
}
.guide-orbit-one {
  width: 350px;
  height: 350px;
  top: 120px;
  transform: rotate(-20deg) scaleX(1.1);
}
.guide-orbit-two {
  width: 435px;
  height: 435px;
  top: 75px;
  border-style: dashed;
  opacity: 0.8;
}
.guide-spark {
  position: absolute;
  color: var(--guide-gold);
  font-size: 32px;
  animation: guide-twinkle 5s ease-in-out infinite;
}
.guide-spark-one {
  top: 25%;
  left: 9%;
}
.guide-spark-two {
  bottom: 21%;
  right: 9%;
  animation-delay: -2s;
}
.guide-spark-three {
  top: 17%;
  right: 11%;
  font-size: 19px;
  animation-delay: -1s;
}
.guide-speech {
  position: absolute;
  z-index: 3;
  top: 40px;
  right: 25px;
  padding: 12px 20px;
  border: 1px solid var(--guide-line);
  border-radius: 18px 18px 18px 3px;
  background: var(--guide-paper);
  font-size: 0.9rem;
  transform: rotate(5deg);
  box-shadow: 0 6px 20px #253e3b0c;
}
.guide-mascot-label {
  z-index: 3;
  position: absolute;
  bottom: 24px;
  left: 25px;
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid var(--guide-line);
  background: var(--guide-paper);
  font-weight: 750;
  transform: rotate(-5deg);
}
.guide-mascot-label small {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--guide-muted);
}
.guide-hero-foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-around;
  gap: 12px;
  border-top: 1px solid var(--guide-line);
  padding: 17px 28px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--guide-muted);
}
.guide-manifesto {
  max-width: 1080px;
  margin: 70px auto;
  text-align: center;
}
.guide-manifesto > p:not(.guide-eyebrow) {
  max-width: 820px;
  margin: 20px auto 35px;
  color: var(--guide-muted);
}
.guide-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: left;
}
.guide-values article {
  padding: 12px 30px;
  border-right: 1px solid var(--guide-line);
}
.guide-values article:last-child {
  border: 0;
}
.guide-values article > span {
  color: var(--guide-gold);
  font-size: 0.8rem;
}
.guide-values h3 {
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.guide-values strong {
  font-size: 0.9rem;
}
.guide-values p {
  font-size: 0.88rem;
  color: var(--guide-muted);
}
.guide-section {
  margin: 60px 0;
  scroll-margin-top: 120px;
}
.guide-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
  margin-bottom: 26px;
}
.guide-section-heading h2 {
  margin: 0;
}
.guide-section-heading .guide-eyebrow {
  margin-bottom: 10px;
}
.guide-section-heading > p {
  font-size: 0.88rem;
  color: var(--guide-muted);
}
.guide-atlas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.guide-place {
  padding: 28px;
  border: 1px solid var(--guide-line);
  border-radius: 22px;
  background: var(--guide-paper);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.guide-place:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px #16362d0c;
}
.guide-place-world {
  background: var(--guide-mint);
}
.guide-place-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.guide-place-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid var(--guide-line);
  border-radius: 50%;
  font-size: 27px;
  color: var(--ui-accent);
}
.guide-tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--guide-line);
  border-radius: 20px;
  color: var(--ui-accent);
  font: 600 0.72rem/1.7 var(--font-ui, sans-serif);
  white-space: nowrap;
}
.guide-tag-future {
  color: var(--guide-gold);
  background: var(--guide-gold-soft);
}
.guide-place h3 {
  margin: 22px 0 6px;
}
.guide-place p {
  margin: 8px 0;
  font-size: 0.9rem;
  color: var(--guide-muted);
}
.guide-place .guide-quote {
  font-size: 0.83rem;
  color: var(--guide-gold);
  min-height: 3.7em;
}
.guide-place a {
  padding-top: 20px;
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}
.guide-missions {
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid var(--guide-line);
  border-radius: 24px;
  background: var(--guide-paper);
}
.guide-missions > p {
  color: var(--guide-muted);
  font-size: 0.9rem;
}
.guide-progress-label {
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--ui-accent);
}
.guide-progress-track {
  height: 6px;
  background: var(--guide-mint);
  border-radius: 10px;
  margin: 25px 0;
  overflow: hidden;
}
.guide-progress-track span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ui-accent);
  transition: width 0.35s;
  border-radius: inherit;
}
.guide-task-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.guide-task {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 15px;
  border-radius: 16px;
  border: 1px solid var(--guide-line);
  text-decoration: none;
  color: var(--guide-ink) !important;
}
.guide-task:hover,
.guide-task.is-complete {
  background: var(--guide-mint);
}
.guide-task > span {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--guide-gold-soft);
  color: var(--guide-gold);
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
}
.guide-task strong {
  font-size: 0.93rem;
}
.guide-task small {
  font-size: 0.75rem;
  color: var(--guide-muted);
}
.guide-mission-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
}
.guide-mission-foot p {
  font-size: 0.82rem;
  color: var(--guide-muted);
}
.guide-community {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
}
.guide-community > div:first-child {
  padding-top: 20px;
}
.guide-community p {
  color: var(--guide-muted);
}
.guide-community .guide-quote {
  color: var(--guide-gold);
}
.guide-text-link {
  font-size: 0.87rem;
}
.guide-economy-card {
  padding: 32px;
  border-radius: 22px;
  background: var(--guide-gold-soft);
  border: 1px solid var(--guide-line);
}
.guide-economy-card p {
  font-size: 0.88rem;
}
.guide-economy-card a {
  font-size: 0.9rem;
  font-weight: 650;
}
.guide-horizon {
  padding: clamp(24px, 3vw, 42px);
  border-radius: 24px;
  background: var(--guide-mint);
}
.guide-horizon > p {
  max-width: 900px;
  color: var(--guide-muted);
}
.guide-future-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 28px;
}
.guide-future-grid article {
  border-top: 1px solid var(--guide-line);
}
.guide-future-grid h3 {
  font-size: 1rem;
}
.guide-future-grid p {
  font-size: 0.87rem;
  color: var(--guide-muted);
}
.guide-farewell {
  text-align: center;
  padding: 25px 0 50px;
}
.guide-farewell > span {
  color: var(--guide-gold);
  font-size: 28px;
}
.guide-farewell p {
  color: var(--guide-muted);
}
.guide-farewell > a {
  display: block;
  margin-top: 24px;
  font-size: 0.85rem;
}

/* Reopen entry on the homepage. */
.home-guide-entry {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 24px;
  padding: 14px 20px;
  border: 1px solid var(--guide-line);
  border-radius: 18px;
  background: var(--guide-paper);
  text-decoration: none;
  color: var(--guide-ink) !important;
}
.home-guide-entry img {
  width: 48px;
  height: 63px;
  object-fit: contain;
}
.home-guide-entry span {
  flex: 1;
}
.home-guide-entry strong {
  display: block;
  font-size: 0.96rem;
}
.home-guide-entry small {
  display: block;
  margin-top: 5px;
  font-size: 0.8rem;
  color: var(--guide-muted);
}
.home-guide-entry b {
  font-size: 1.25rem;
  color: var(--ui-accent);
}
.max-guide-reopen {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--guide-line);
  background: var(--guide-paper);
  border-radius: 30px;
  color: var(--guide-ink);
  text-decoration: none;
  font: 600 0.8rem/1.4 var(--font-ui, sans-serif);
  box-shadow: var(--ui-shadow);
}
.max-guide-reopen img {
  height: 30px;
  width: 23px;
  object-fit: contain;
}

/* Native modal owns focus; four curtains leave the current feature illuminated. */
.max-tour-focus-hidden {
  visibility: hidden !important;
}
.max-tour [hidden],
.guide-main [hidden] {
  display: none !important;
}
.max-tour {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--guide-ink);
  overflow: hidden;
  /* Unlike hidden, clip also prevents focus/scrollIntoView from scrolling the
   * full-screen overlay and moving viewport-positioned controls underneath it. */
  overflow: clip;
  font-family: var(--font-body, sans-serif);
}
/* The same guide is mounted on both scenic and ordinary pages. Keep its
 * typography roles independent of page-specific world/title overrides. */
.max-tour :is(.max-tour-body, .max-tour-caption, .max-tour-status) {
  font-family: var(--font-body, sans-serif);
}
.max-tour :is(button, select, option, .max-tour-kicker) {
  font-family: var(--font-ui, sans-serif);
}
.max-tour #max-tour-title {
  font-family: var(--font-display, var(--font-body, sans-serif)) !important;
}
.max-tour::backdrop {
  background: transparent;
}
.max-tour-curtain {
  position: absolute;
  background: #07151bc4;
}
body.theme-dark .max-tour-curtain {
  background: #01090cdc;
}
.max-tour-spotlight {
  position: absolute;
  border: 2px solid #82c5bf;
  border-radius: 18px;
  box-shadow:
    0 0 0 4px #82c5bf26,
    inset 0 0 20px #82c5bf16;
  pointer-events: none;
}
.max-tour-target-action {
  position: absolute;
  z-index: 1;
  padding: 0;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  background: transparent;
}
.max-tour-target-action:hover {
  background: #f2d48a0b;
}
.max-tour-target-action:focus-visible {
  outline: 3px solid var(--guide-gold);
  outline-offset: -4px;
}
.max-tour-secondary {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.max-tour-stations {
  min-width: 0;
  max-width: 55%;
  font: inherit;
  font-size: 13px;
  padding: 5px 8px;
  border: 1px solid var(--guide-line);
  border-radius: 8px;
  background: var(--guide-paper);
  color: var(--guide-ink);
}
.max-tour-secondary button {
  font-size: 13px;
  padding: 4px 0;
}
.max-tour-card.is-compact {
  width: min(620px, calc(100vw - 32px));
  min-height: min(180px, calc(100dvh - 32px));
  padding: 12px 18px;
}
.max-tour-card.is-compact .max-tour-caption,
.max-tour-card.is-compact .max-tour-progress-label,
.max-tour-card.is-compact .max-tour-progress,
.max-tour-card.is-compact .max-tour-stations,
.max-tour-card.is-compact .max-tour-secondary > button:not(.max-tour-expand) {
  display: none;
}
.max-tour-card.is-compact .max-tour-mascot {
  display: block;
  position: absolute;
  float: none;
  top: 12px;
  left: 18px;
  width: 34px;
  height: 50px;
  margin: 0;
}
.max-tour-card.is-compact .max-tour-kicker {
  font-size: 11px;
  line-height: 1.3;
  margin: 0 0 3px;
  padding-left: 46px;
  padding-right: 82px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.max-tour-card.is-compact h2 {
  font-size: 17px;
  line-height: 1.4;
  margin: 0;
  padding-left: 46px;
  padding-right: 76px;
  overflow-wrap: anywhere;
}
.max-tour-card.is-compact .max-tour-body {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  max-height: 4.5em;
  margin: 8px 0 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.5;
  color: var(--guide-muted) !important;
}
.max-tour-card.is-compact .max-tour-controls {
  margin-top: 8px;
  gap: 6px;
}
.max-tour-card.is-compact .max-tour-controls button {
  min-height: 32px;
  padding: 5px 9px;
  font-size: 13px;
}
.max-tour-card.is-compact .max-tour-secondary {
  position: absolute;
  top: 14px;
  right: 18px;
  margin: 0;
}
/* The existing expansion action always accompanies the three-line excerpt. */
.max-tour-card.is-compact .max-tour-expand {
  min-height: 28px;
  padding: 3px 8px;
  border: 1px solid var(--guide-line);
  border-radius: 8px;
  background: var(--guide-mint);
  color: var(--guide-ink);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
}
.max-tour-card.is-compact .max-tour-expand:hover {
  border-color: var(--guide-gold);
}
.max-tour-card.is-compact .max-tour-expand:focus-visible {
  outline: 2px solid var(--guide-gold);
  outline-offset: 2px;
}
.max-tour-card.is-compact .max-tour-status:empty {
  display: none;
}
.guide-station-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 12px;
}
.guide-station-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  border: 1px solid var(--guide-line);
  background: var(--guide-paper);
  border-radius: 16px;
  padding: 18px;
  cursor: pointer;
  color: var(--guide-ink);
  font-family: var(--font-ui, sans-serif);
}
.guide-station-number {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--guide-mint);
  color: var(--ui-accent);
  font: 700 0.75rem/1 var(--font-ui, sans-serif);
  font-variant-numeric: tabular-nums;
}
.guide-station-copy {
  min-width: 0;
  flex: 1;
}
.guide-station-arrow {
  color: var(--guide-muted);
}
.guide-station-link:focus-visible {
  outline: 2px solid var(--ui-accent);
  outline-offset: 3px;
}
.guide-station-link:hover {
  background: var(--guide-mint);
  border-color: var(--guide-gold);
}
.guide-station-link strong,
.guide-station-link small {
  display: block;
}
.guide-station-link small {
  font-size: 13px;
  color: var(--guide-muted);
  margin-top: 8px;
}
.guide-release-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  background: var(--guide-gold-soft);
  border: 1px solid var(--guide-line);
  border-radius: 20px;
  margin-top: 24px;
}
.guide-release-card h3 {
  margin: 8px 0;
}
.guide-release-card p {
  font-size: 15px;
}
.guide-release-card button {
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .guide-release-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .guide-station-list {
    grid-template-columns: 1fr;
  }
  .guide-station-link {
    padding: 14px;
  }
}
.max-tour-card {
  position: absolute;
  z-index: 2;
  width: 470px;
  max-width: calc(100vw - 32px);
  padding: 27px;
  border: 1px solid var(--guide-line);
  border-radius: 20px;
  background: var(--guide-paper);
  box-shadow: 0 20px 70px #071d2940;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
.max-tour-card.is-centered {
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%);
}
.max-tour-mascot {
  float: right;
  width: 66px;
  height: 98px;
  object-fit: contain;
  margin: 0 -5px 5px 12px;
}
.max-tour-card.is-welcome .max-tour-mascot {
  width: 125px;
  height: 190px;
}
.max-tour-kicker {
  color: var(--ui-accent) !important;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.max-tour-card h2 {
  font-size: 1.45rem;
  line-height: 1.5;
  letter-spacing: -0.04em;
  margin: 0 0 15px;
}
#max-tour-title:focus {
  outline: none;
}
.max-tour-body {
  color: var(--guide-muted) !important;
  font-size: 0.92rem;
  line-height: 1.85;
  margin: 0;
}
.max-tour-caption {
  clear: both;
  padding: 13px 0 3px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--guide-muted) !important;
}
.max-tour-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  clear: both;
}
.max-tour-controls .guide-primary {
  margin-left: auto;
}
.max-tour-controls button {
  min-height: 42px;
  padding: 9px 13px;
  font-size: 0.84rem;
}
.max-tour-later {
  background: none;
  border: 0;
  color: var(--guide-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.max-tour-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--guide-line);
  margin-top: 8px;
}
.max-tour-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.max-tour-progress span.is-past {
  background: var(--ui-accent);
}
.max-tour-progress-label {
  clear: both;
  margin: 16px 0 0;
  color: var(--guide-muted) !important;
  font: 500 0.72rem/1.5 var(--font-ui, sans-serif);
  font-variant-numeric: tabular-nums;
}
.max-tour-status {
  font-size: 0.8rem;
  color: var(--ui-danger) !important;
  margin-bottom: 0;
}
@keyframes guide-twinkle {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.93);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}
@media (min-width: 1800px) {
  .guide-hero h1 {
    font-size: 4.8rem;
  }
  .guide-mascot {
    height: 520px;
  }
}
@media (max-width: 1100px) {
  .max-guide-reopen {
    bottom: 86px;
    right: 15px;
  }
  .guide-atlas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guide-task-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .guide-mascot-scene {
    min-height: 410px;
  }
  .guide-orbit-one {
    width: 230px;
    height: 230px;
  }
  .guide-orbit-two {
    width: 300px;
    height: 300px;
  }
}
@media (max-width: 700px) {
  .guide-page .guide-main {
    padding: 100px 16px 80px !important;
  }
  .guide-hero {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }
  .guide-hero-copy {
    padding: 28px 24px 12px;
  }
  .guide-hero h1 {
    font-size: 2.7rem;
  }
  .guide-hero-description {
    font-size: 0.9rem;
  }
  .guide-mascot-scene {
    min-height: 270px;
    height: 300px;
    padding: 0 25px 20px;
  }
  .guide-mascot {
    height: 300px;
  }
  .guide-speech {
    top: 8px;
    right: 18px;
    font-size: 0.75rem;
    padding: 9px 12px;
  }
  .guide-orbit-one {
    top: 35px;
  }
  .guide-orbit-two {
    top: 5px;
  }
  .guide-mascot-label {
    left: 25px;
    bottom: 35px;
  }
  .guide-hero-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
    font-size: 0.73rem;
  }
  .guide-values,
  .guide-community,
  .guide-future-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .guide-values article {
    border-right: 0;
    border-top: 1px solid var(--guide-line);
    padding: 18px 8px;
  }
  .guide-atlas-grid {
    grid-template-columns: 1fr;
  }
  .guide-place .guide-quote {
    min-height: 0;
  }
  .guide-task-list {
    grid-template-columns: 1fr 1fr;
  }
  .guide-section-heading,
  .guide-mission-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .guide-manifesto {
    margin-block: 45px;
  }
  .guide-section {
    margin-block: 40px;
    scroll-margin-top: 100px;
  }
  .guide-economy-card {
    padding: 24px;
  }
  .max-guide-reopen {
    bottom: 86px;
    right: 15px;
    font-size: 0.74rem;
  }
  .max-tour-card {
    padding: 21px;
    width: calc(100vw - 24px);
    max-width: none;
  }
  .max-tour-card h2 {
    font-size: 1.25rem;
  }
  .max-tour-mascot {
    width: 70px;
    height: 106px;
  }
  .max-tour-card.is-welcome .max-tour-mascot {
    width: 95px;
    height: 145px;
  }
  .home-guide-entry {
    padding: 12px 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .guide-spark {
    animation: none;
  }
  .guide-place,
  .guide-primary,
  .guide-secondary,
  .guide-progress-track span {
    transition: none;
  }
}
