:root {
  background: #090e20;
  color: #f3f6ff;
  color-scheme: dark;
  --marketing-link: #f478d6;
  --marketing-link-hover: #ffb5e8;
}
body {
  margin: 0;
  min-width: 320px;
}
/* Load the canvas before JavaScript; show the readable fallback only without scripting. */
@media (scripting: enabled) {
  #root > .home-page[data-prerender] {
    visibility: hidden;
  }
}
.home-page {
  background: #090e20;
  color: #f3f6ff;
  min-height: 100svh;
}
.home-hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
}
.home-page .library-page .library-backdrop {
  position: absolute;
}
.home-content {
  position: relative;
  background: transparent;
  border-top: 1px solid #b8c7ee24;
  font-family: Geologica, system-ui, sans-serif;
  color: #f3f6ff;
}
.home-content-inner {
  max-width: 1260px;
  padding: 0 48px;
  margin: auto;
}
.home-content h2 {
  font-family: Geologica, system-ui, sans-serif;
  font-weight: 550;
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0 0 26px;
  text-wrap: balance;
}
.home-content h3 {
  font-family: Geologica, system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 0 0 14px;
}
.home-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: #acbad3;
  max-width: 68ch;
  margin: 0 0 20px;
}
.home-content .home-lead {
  font-size: 1.1rem;
  line-height: 1.8;
}
.home-about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 64px;
  padding: 76px 0;
}
.home-about h2 {
  max-width: 18ch;
  margin-bottom: 24px;
}
.home-about-art {
  min-width: 0;
  width: 100%;
  max-width: 540px;
  justify-self: end;
}
.home-facts {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 12px 24px;
  flex-wrap: wrap;
  color: #b6ed98;
  font-size: 0.9rem;
  margin: 28px 0 0;
}
.home-section {
  padding: 64px 0;
  border-top: 1px solid #b8c7ee24;
  scroll-margin-top: 30px;
}
.home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}
.home-steps > li {
  min-width: 0;
  padding: 0;
}
.home-steps > li::marker {
  content: none;
}
.home-step-art {
  width: 100%;
  max-width: 340px;
  margin: 0 auto 22px;
}
.home-steps h3 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.home-step-number {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 50%;
  background: #b6ed98;
  color: #173322;
  font-size: 0.9rem;
  font-weight: 600;
}
.home-steps p {
  margin: 0;
}
.home-game-stories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.home-game-story {
  min-width: 0;
  padding: 24px 26px 28px;
  border: 1px solid #a4b8e139;
  border-radius: 26px;
  background: linear-gradient(135deg, #25395a66, #1b203b55);
}
.home-game-story[data-game='most'] {
  border-color: #eaa5d73d;
}
.home-game-story[data-game='guilty'] {
  border-color: #e6bf863d;
}
.home-game-story[data-game='same'] {
  border-color: #8ecfff3d;
}
.home-game-icon {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 760 / 540;
  margin: 0 auto 22px;
}
.home-game-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.home-game-heading h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.home-game-heading span {
  display: block;
  font-size: 0.85rem;
  color: #a6b4ce;
  margin-bottom: 20px;
}
.home-game-story p {
  font-size: 0.95rem;
}
.home-text-link {
  color: var(--marketing-link);
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 5px;
  line-height: 1.6;
}
.home-content a:hover {
  color: var(--marketing-link-hover);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.home-text-link:focus-visible,
.home-content a:hover .home-text-link,
.home-content a:focus-visible .home-text-link,
.library-info-link:focus-visible {
  color: var(--marketing-link-hover);
}
.home-content a:focus-visible,
.home-content summary:focus-visible {
  outline: 2px solid #b6ed98;
  outline-offset: 6px;
}
.home-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}
.home-guides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.home-guides > a {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.home-guide-art {
  width: 100%;
  max-width: 430px;
  margin: 0 auto 26px;
}
.home-guides h3 {
  font-size: 1.45rem;
  max-width: 28ch;
}
.home-guides > a:hover h3 {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.home-guides > a > .home-text-link {
  margin-top: auto;
}
.home-faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}
.home-faq-art {
  width: min(100%, 260px);
  margin-top: 30px;
}
.home-faq details {
  border-bottom: 1px solid #b8c7ee24;
  padding: 20px 0;
}
.home-faq details:first-child {
  padding-top: 0;
}
.home-faq summary {
  font-size: 1.05rem;
  cursor: pointer;
  line-height: 1.6;
}
.home-faq details p {
  margin: 18px 0 0;
}
.home-footer {
  border-top: 1px solid #b8c7ee24;
  padding: 30px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}
.home-footer p {
  font-size: 0.85rem;
  margin: 0;
}
.home-footer div {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.home-footer a {
  font-size: 0.85rem;
  color: #acbad3;
}
.library-info-link {
  display: inline-block;
  color: var(--marketing-link);
  text-decoration: underline;
  text-underline-offset: 5px;
  margin-top: 12px;
  font-size: 16px;
}
.library-info-link:hover {
  color: var(--marketing-link-hover);
  text-decoration: underline;
}
.home-scroll-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: fit-content;
  min-height: 44px;
  margin: 18px auto 0;
  color: #b4c4df;
  font: 450 15px/1.4 var(--font-ui);
  text-decoration: none;
  white-space: nowrap;
  z-index: 1;
}
.home-scroll-link > span {
  position: relative;
}
.home-scroll-link > span::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms var(--ease-out);
}
.home-scroll-link svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}
.home-scroll-link:focus-visible {
  color: #dcecff;
  border-radius: 5px;
}
.home-scroll-link:focus-visible > span::after {
  transform: scaleX(1);
  transition: none;
}
@media (hover: hover) and (pointer: fine) {
  .home-scroll-link:hover {
    color: #dcecff;
  }
  .home-scroll-link:hover > span::after {
    transform: scaleX(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-scroll-link > span::after {
    transition: none;
  }
}
.home-fallback {
  min-height: 100svh;
  padding: 56px max(24px, calc((100vw - 1164px) / 2));
  background: #090e20;
}
.home-fallback h1 {
  font-family: Geologica, system-ui, sans-serif;
  font-size: 3rem;
}
.home-fallback nav {
  display: flex;
  gap: 32px;
  overflow-x: auto;
}
.home-fallback nav a {
  flex: 0 0 min(65vw, 250px);
}
.home-fallback a {
  color: var(--marketing-link);
}
.home-fallback img {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
  margin: 24px 0;
}
@media (min-width: 901px) {
  .home-page .library-page.desktop-scene-page {
    position: absolute;
    inset: 0;
    min-height: 100%;
    overflow: clip;
  }
}
@media (max-width: 1000px) {
  .home-content-inner {
    padding: 0 30px;
  }
  .home-about {
    gap: 36px;
  }
  .home-steps {
    gap: 24px;
  }
  .home-steps h3 {
    font-size: 1.1rem;
  }
  .home-game-story {
    padding: 22px;
  }
  .home-game-heading h3 {
    font-size: 1.2rem;
  }
  .home-faq {
    gap: 36px;
  }
}
@media (max-width: 700px) {
  .home-content-inner {
    padding: 0 24px;
  }
  .home-about {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 42px 0;
  }
  .home-about-art {
    justify-self: center;
    max-width: 440px;
  }
  .home-about h2 {
    max-width: 18ch;
  }
  .home-facts {
    gap: 12px 20px;
  }
  .home-section {
    padding: 40px 0;
  }
  .home-steps,
  .home-game-stories,
  .home-guides {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .home-step-art {
    max-width: 350px;
    margin-bottom: 20px;
  }
  .home-steps h3 {
    font-size: 1.2rem;
  }
  .home-game-story {
    padding: 24px;
  }
  .home-game-icon {
    max-width: 180px;
    margin-bottom: 16px;
  }
  .home-game-heading h3 {
    font-size: 1.35rem;
  }
  .home-game-heading span {
    margin-bottom: 16px;
  }
  .home-game-story p {
    margin-bottom: 14px;
  }
  .home-section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
  }
  .home-section-header h2 {
    margin-bottom: 14px;
  }
  .home-guide-art {
    max-width: 390px;
    margin-bottom: 20px;
  }
  .home-guides h3 {
    font-size: 1.35rem;
  }
  .home-faq {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .home-faq > div:first-child {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 18px;
    align-items: center;
  }
  .home-faq h2 {
    margin: 0;
  }
  .home-faq-art {
    width: 100%;
    margin: 0;
  }
  .home-footer {
    flex-direction: column;
    gap: 20px;
  }
  .library-info-link {
    grid-column: 1 / -1;
    font-size: 15px;
    margin-top: 0;
  }
}

/* Equal stages keep the three explanatory captions aligned. */
.home-step-art > .scene-illustration {
  aspect-ratio: 1;
}

.home-guide-art:has(.blog-photo) {
  max-width: none;
}
.home-guide-art > .blog-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 16px 40px #02081933;
}
