.marketing-home {
  --home-night: #100d19;
  --home-night-soft: #1b1628;
  --home-ink: #23212b;
  --home-muted: #6f6a79;
  --home-paper: #f7f5fa;
  --home-paper-bright: #fff;
  --home-line: rgba(40, 34, 60, 0.1);
  --home-light-line: rgba(255, 255, 255, 0.14);
  background: var(--home-paper);
  color: var(--home-ink);
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

.marketing-home.variant-questweaver {
  --home-night: #0f172a;
  --home-night-soft: #172032;
  --home-ink: #212e3f;
  --home-muted: #687080;
  --home-paper: #f9f7f3;
  --home-paper-bright: #fff;
  --home-line: rgba(50, 44, 38, 0.12);
}

.marketing-home .site-nav {
  background: color-mix(in srgb, var(--home-night) 86%, transparent);
  border-bottom-color: var(--home-light-line);
  box-shadow: 0 12px 40px rgba(5, 5, 18, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.marketing-home .site-nav-brand,
.marketing-home .site-nav-links a:not(.btn) {
  color: #fff;
}

.marketing-home .site-nav-brand {
  font-family: "Playfair Display", serif;
  letter-spacing: -0.015em;
}

.marketing-home .site-nav-icon {
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.marketing-home .site-nav-cta {
  color: #fff;
  box-shadow: none;
}

.marketing-home .site-subnav {
  background: var(--home-night-soft);
  border-bottom-color: var(--home-light-line);
}

.marketing-home .site-subnav a {
  color: rgba(255, 255, 255, 0.8);
}

.marketing-home .site-nav-links a:not(.btn):is(:hover, :focus-visible),
.marketing-home .site-subnav a:is(:hover, :focus-visible) {
  color: color-mix(in srgb, var(--primary) 54%, white);
}

.marketing-home .site-nav .container,
.marketing-home .site-subnav .container {
  width: min(1240px, calc(100% - 48px));
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.marketing-home .footer {
  background: #080812;
  border-top-color: var(--home-light-line);
}

.marketing-home.variant-questweaver .footer {
  background: #0b1222;
}

.marketing-home .footer-col h4,
.marketing-home .footer-link {
  color: #fff;
}

.marketing-home .footer-copy {
  color: rgba(255, 255, 255, 0.52);
}

.marketing-home .footer-sibling-app {
  color: rgba(255, 255, 255, 0.58);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.025);
}

.marketing-home .footer-sibling-app strong {
  color: #fff;
}

.marketing-home .footer-sibling-app:hover {
  color: rgba(255, 255, 255, 0.82);
  border-color: color-mix(in srgb, var(--home-accent) 50%, rgba(255, 255, 255, 0.14));
  background: color-mix(in srgb, var(--home-accent) 8%, transparent);
}

.home-container {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.home-section-kicker,
.home-feature-index,
.home-role-label,
.home-live-label,
.home-note-breadcrumb {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-section-kicker,
.home-feature-index,
.home-role-label {
  color: var(--primary);
}

.home-hero {
  position: relative;
  min-height: 850px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--home-night);
}

.home-hero-backdrop {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  display: block;
  width: 100%;
  height: 72%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.05);
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 68%,
    rgba(0, 0, 0, 0.92) 76%,
    rgba(0, 0, 0, 0.55) 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 68%,
    rgba(0, 0, 0, 0.92) 76%,
    rgba(0, 0, 0, 0.55) 88%,
    transparent 100%
  );
}

.home-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 0 28%;
  background: linear-gradient(90deg, rgba(8, 8, 22, 0.84), rgba(8, 8, 22, 0.5) 52%, rgba(8, 8, 22, 0.28));
}

.home-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 48%, var(--home-night) 82%),
    radial-gradient(circle at 78% 34%, color-mix(in srgb, var(--primary) 34%, transparent), transparent 34%);
}

.home-hero-glow {
  position: absolute;
  z-index: 1;
  width: 540px;
  height: 540px;
  top: 120px;
  left: 61%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  filter: blur(100px);
  pointer-events: none;
}

.home-hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(520px, 1.16fr);
  gap: 44px;
  align-items: center;
  min-height: 700px;
  padding: 78px 0 124px;
}

.home-hero-copy {
  max-width: 610px;
}

.home-kicker {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.home-kicker span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.home-kicker span:first-child {
  color: color-mix(in srgb, var(--primary) 35%, white);
  border-color: color-mix(in srgb, var(--primary) 55%, transparent);
  background: color-mix(in srgb, var(--primary) 18%, transparent);
}

.home-hero h1 {
  max-width: 720px;
  margin: 0 0 24px;
  font-family: "Playfair Display", serif;
  font-size: clamp(52px, 5.3vw, 82px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.home-hero-lede {
  max-width: 580px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.65;
}

.home-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}

.home-btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--primary) 38%, transparent);
}

.home-btn-primary:hover {
  color: #fff;
  background: var(--primary-dark);
}

.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.home-text-link span {
  transition: transform 240ms cubic-bezier(0.32, 0.72, 0.25, 1);
}

.home-text-link:hover span {
  transform: translateX(3px);
}

.home-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

.home-hero-proof li {
  position: relative;
  padding-left: 20px;
}

.home-hero-proof li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: color-mix(in srgb, var(--primary) 48%, white);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-shadow: 0 0 10px color-mix(in srgb, var(--primary) 62%, transparent);
}

.home-hero-stage {
  position: relative;
  height: 590px;
  align-self: end;
  perspective: 1400px;
}

.home-app-window {
  position: absolute;
  top: 80px;
  left: 0;
  width: min(650px, 94%);
  height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(15, 15, 29, 0.92);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.48);
  transform: rotateY(-5deg) rotateX(1deg);
  backdrop-filter: blur(20px);
}

.variant-questweaver .home-app-window {
  background: rgba(23, 32, 50, 0.94);
}

.home-app-bar {
  display: flex;
  height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.home-app-brand,
.home-app-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-app-brand {
  color: #fff;
  font-weight: 700;
}

.home-app-brand img {
  border-radius: 6px;
}

.home-app-status i,
.home-party-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #48d994;
  box-shadow: 0 0 12px rgba(72, 217, 148, 0.75);
}

.home-app-body {
  display: grid;
  grid-template-columns: 150px 1fr;
  height: calc(100% - 54px);
}

.home-app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 22px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.home-app-sidebar span {
  padding: 9px 11px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
}

.home-app-sidebar .is-active {
  color: #fff;
  background: color-mix(in srgb, var(--primary) 25%, transparent);
}

.home-app-note {
  position: relative;
  padding: 46px 54px;
  color: rgba(255, 255, 255, 0.68);
  background:
    radial-gradient(circle at 75% 80%, color-mix(in srgb, var(--primary) 13%, transparent), transparent 42%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.03), transparent 44%);
}

.home-note-breadcrumb {
  margin-bottom: 18px;
  color: color-mix(in srgb, var(--primary) 50%, white);
}

.home-app-note h2 {
  margin: 0 0 12px;
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: 40px;
  font-weight: 600;
}

.home-app-note p {
  max-width: 390px;
  font-size: 15px;
  line-height: 1.7;
}

.home-note-tags {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.home-note-tags span {
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--primary) 36%, transparent);
  border-radius: 6px;
  color: color-mix(in srgb, var(--primary) 35%, white);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  font-size: 11px;
}

.home-note-link {
  position: absolute;
  right: 26px;
  bottom: 24px;
  left: 54px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
}

.home-note-link strong {
  color: rgba(255, 255, 255, 0.76);
}

.home-hero-phone {
  position: absolute;
  z-index: 3;
  width: 188px;
  height: auto;
  right: 4px;
  bottom: 4px;
  border-radius: 26px;
  filter: drop-shadow(0 30px 38px rgba(0, 0, 0, 0.54));
  transform: rotate(2deg);
}

.home-section-heading h2,
.home-faq-heading h2,
.home-final-cta h2,
.home-collab-copy h2 {
  margin: 0;
  color: var(--home-ink);
  font-family: "Playfair Display", serif;
  font-size: clamp(38px, 4.3vw, 64px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.home-section-heading > p,
.home-section-heading--split > div > p,
.home-faq-heading > p,
.home-collab-copy > p {
  color: var(--home-muted);
  font-size: 17px;
  line-height: 1.7;
}

.home-toolkit {
  position: relative;
  padding: 128px 0 138px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 15% 28%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 25%),
    radial-gradient(circle at 88% 70%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 28%),
    var(--home-night);
}

.home-toolkit::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(rgba(255, 255, 255, 0.9) 0.6px, transparent 0.6px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, black, transparent 65%);
}

.home-section-heading {
  max-width: 760px;
  margin-bottom: 64px;
}

.home-section-heading h2 {
  margin: 10px 0 20px;
}

.home-section-heading--light h2 {
  color: #fff;
}

.home-section-heading--light > p {
  color: rgba(255, 255, 255, 0.58);
}

.home-bento {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.home-bento-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--home-light-line);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
  transition: border-color 240ms cubic-bezier(0.32, 0.72, 0.25, 1), transform 240ms cubic-bezier(0.32, 0.72, 0.25, 1);
}

.home-bento-card:hover {
  border-color: color-mix(in srgb, var(--primary) 46%, rgba(255, 255, 255, 0.2));
  transform: translateY(-3px);
}

.home-bento-copy {
  position: relative;
  z-index: 3;
  padding: 34px;
}

.home-bento-copy h3 {
  margin: 10px 0 12px;
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.12;
}

.home-bento-copy p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
  line-height: 1.7;
}

.home-bento-card--links { grid-column: span 7; min-height: 500px; }
.home-bento-card--map { grid-column: span 5; min-height: 430px; }
.home-bento-card--canvas,
.home-bento-card--timeline,
.home-bento-card--sound { grid-column: span 4; min-height: 400px; }

.home-link-demo {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: grid;
  height: 258px;
  grid-template-rows: 34px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 17px;
  color: #fff;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 7%, transparent), transparent 46%),
    color-mix(in srgb, var(--home-night-soft) 95%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 22px 42px rgba(0, 0, 0, 0.23);
}

.home-link-demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.035);
  font-size: 8.5px;
}

.home-link-demo-bar span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-link-demo-bar span > i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--primary) 70%, white);
  box-shadow: 0 0 8px color-mix(in srgb, var(--primary) 50%, transparent);
}

.home-link-demo-bar b {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 400;
}

.home-link-demo-bar small {
  color: color-mix(in srgb, var(--primary) 32%, white);
  font-size: 8px;
}

.home-link-workspace {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1.35fr) minmax(205px, 0.8fr);
}

.home-link-editor {
  min-width: 0;
  padding: 16px 18px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.home-link-kicker {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 7.5px;
}

.home-link-title {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Playfair Display", serif;
  font-size: 14px;
  font-weight: 600;
}

.home-link-editor > p {
  color: rgba(255, 255, 255, 0.56);
  font-size: 9.25px;
  line-height: 1.68;
}

.home-entity-mention {
  --mention-color: var(--primary);
  display: inline;
  margin: 0 1px;
  padding: 1px 4px 2px;
  border: 0;
  border-radius: 4px;
  color: color-mix(in srgb, var(--mention-color) 36%, white);
  background: color-mix(in srgb, var(--mention-color) 12%, transparent);
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--mention-color) 38%, transparent);
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  line-height: inherit;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.home-entity-mention--npc { --mention-color: #a47fc5; }
.home-entity-mention--location { --mention-color: #55a998; }
.home-entity-mention--quest { --mention-color: #d18a67; }
.home-entity-mention--encounter { --mention-color: #d96976; }

.home-entity-mention:hover,
.home-entity-mention:focus-visible,
.home-entity-mention.is-active {
  outline: none;
  color: #fff;
  background: color-mix(in srgb, var(--mention-color) 25%, transparent);
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--mention-color) 74%, white), 0 0 0 2px color-mix(in srgb, var(--mention-color) 16%, transparent);
}

.home-link-backlinks {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 7.5px;
}

.home-link-backlinks strong {
  color: color-mix(in srgb, var(--primary) 30%, white);
  font-weight: 600;
}

.home-link-backlinks > i {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
}

.home-link-inspector {
  --entity-color: #a47fc5;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 16px 15px 14px;
  background: rgba(255, 255, 255, 0.022);
}

.home-link-inspector[data-entity-tone="location"] { --entity-color: #55a998; }
.home-link-inspector[data-entity-tone="quest"] { --entity-color: #d18a67; }
.home-link-inspector[data-entity-tone="encounter"] { --entity-color: #d96976; }

.home-link-entity-type {
  display: flex;
  align-items: center;
  gap: 6px;
  color: color-mix(in srgb, var(--entity-color) 54%, white);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-link-entity-type > i {
  width: 7px;
  height: 7px;
  border: 1px solid color-mix(in srgb, var(--entity-color) 72%, white);
  border-radius: 50%;
  background: color-mix(in srgb, var(--entity-color) 58%, transparent);
  box-shadow: 0 0 9px color-mix(in srgb, var(--entity-color) 36%, transparent);
}

.home-link-inspector > strong {
  overflow: hidden;
  margin: 8px 0 5px;
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-link-inspector > p {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.48);
  font-size: 8.5px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-link-inspector > small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 7.5px;
}

.home-link-inspector > button {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--entity-color) 34%, transparent);
  border-radius: 8px;
  color: color-mix(in srgb, var(--entity-color) 40%, white);
  background: color-mix(in srgb, var(--entity-color) 13%, transparent);
  cursor: pointer;
  font-size: 8.5px;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.home-link-inspector > button:hover,
.home-link-inspector > button:focus-visible {
  outline: none;
  color: #fff;
  background: color-mix(in srgb, var(--entity-color) 24%, transparent);
  transform: translateY(-1px);
}

.home-link-inspector > button.is-confirmed {
  color: #fff;
  background: color-mix(in srgb, var(--entity-color) 38%, transparent);
}

.home-link-inspector.is-changing > :not(button) {
  animation: home-link-entity-in 220ms cubic-bezier(0.32, 0.72, 0.25, 1);
}

@keyframes home-link-entity-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-map-visual {
  position: absolute;
  inset: 0;
}

.home-map-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 10, 24, 0.04) 22%, var(--home-night) 90%);
}

.home-map-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) sepia(0.18);
}

.home-bento-card--map .home-bento-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
}

.home-map-pin {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.36);
  font-size: 10px;
  font-weight: 700;
}

.home-map-pin--one { top: 28%; left: 5%; }
.home-map-pin--two { top: 44%; right: 15%; }

.home-canvas-demo {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  height: 145px;
  border: 1px dashed rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 16px 16px;
}

.home-canvas-node {
  position: absolute;
  z-index: 2;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  background: var(--home-night-soft);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  font-size: 10px;
}

.home-canvas-node--one { top: 16px; left: 18px; }
.home-canvas-node--two { top: 62px; left: 42%; border-color: color-mix(in srgb, var(--primary) 55%, transparent); }
.home-canvas-node--three { right: 16px; bottom: 17px; }

.home-canvas-demo i,
.home-canvas-demo b {
  position: absolute;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  transform-origin: left;
}

.home-canvas-demo i { top: 50px; left: 36%; width: 30%; transform: rotate(20deg); }
.home-canvas-demo b { right: 22%; bottom: 46px; width: 29%; transform: rotate(-12deg); }

.home-timeline-demo {
  position: absolute;
  right: 30px;
  bottom: 27px;
  left: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.home-timeline-demo > div {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-timeline-demo i {
  position: absolute;
  width: 9px;
  height: 9px;
  top: -25px;
  border: 2px solid var(--home-night);
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.home-timeline-demo span {
  color: color-mix(in srgb, var(--primary) 38%, white);
  font-size: 10px;
}

.home-timeline-demo strong {
  max-width: 90px;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Playfair Display", serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
}

.home-player-demo {
  position: absolute;
  right: 24px;
  bottom: 28px;
  left: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  background: color-mix(in srgb, var(--home-night) 72%, transparent);
}

.home-play-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
}

.home-player-demo strong,
.home-player-demo > div:nth-child(2) span {
  display: block;
}

.home-player-demo strong { color: rgba(255, 255, 255, 0.85); font-size: 12px; }
.home-player-demo > div:nth-child(2) span { color: rgba(255, 255, 255, 0.4); font-size: 10px; }

.home-wave {
  grid-column: 1 / -1;
  display: flex;
  height: 32px;
  align-items: center;
  gap: 5px;
  padding-left: 3px;
}

.home-wave i {
  width: 3px;
  height: 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--primary) 45%, white);
}

.home-wave i:nth-child(2), .home-wave i:nth-child(7) { height: 19px; }
.home-wave i:nth-child(3), .home-wave i:nth-child(6) { height: 28px; }
.home-wave i:nth-child(4) { height: 15px; }
.home-wave i:nth-child(5) { height: 23px; }

.home-player-demo:has(.home-play-button.is-playing) .home-wave i {
  animation: home-wave 700ms ease-in-out infinite alternate;
}

.home-wave i:nth-child(2n) { animation-delay: -300ms; }

@keyframes home-wave {
  to { transform: scaleY(0.45); }
}

.home-table {
  padding: 126px 0 136px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 28%),
    var(--home-paper);
}

.home-table-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.home-role-card {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 28px;
  background: var(--home-paper-bright);
  box-shadow: 0 28px 70px rgba(38, 28, 48, 0.08);
}

.home-role-copy {
  position: relative;
  z-index: 2;
  max-width: 62%;
  padding: 48px 0 48px 48px;
}

.home-role-copy h3 {
  margin: 12px 0 16px;
  color: var(--home-ink);
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.08;
}

.home-role-copy > p {
  margin-bottom: 24px;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.7;
}

.home-role-copy ul,
.home-collab-copy ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-role-copy li,
.home-collab-copy li {
  position: relative;
  padding-left: 20px;
  color: var(--home-ink);
  font-size: 13px;
  font-weight: 600;
}

.home-role-copy li::before,
.home-collab-copy li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent);
}

.home-role-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.home-role-action span {
  transition: transform 160ms ease;
}

.home-role-action:hover span,
.home-role-action:focus-visible span {
  transform: translateX(3px);
}

.home-role-action:focus-visible {
  border-radius: 3px;
  outline: 2px solid color-mix(in srgb, var(--primary) 45%, transparent);
  outline-offset: 4px;
}

.home-role-card--gm {
  background:
    radial-gradient(circle at 84% 76%, color-mix(in srgb, var(--primary) 15%, transparent), transparent 32%),
    var(--home-paper-bright);
}

.home-role-phone-wrap {
  position: absolute;
  right: -18px;
  bottom: -66px;
  width: 245px;
  transform: rotate(2deg);
  filter: drop-shadow(0 24px 34px rgba(28, 20, 38, 0.2));
}

.home-role-phone-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
}

.home-role-card--player {
  background:
    radial-gradient(circle at 80% 68%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 34%),
    var(--home-paper-bright);
}

.home-sheet-demo {
  position: absolute;
  right: 28px;
  bottom: 32px;
  left: 42%;
  padding: 20px;
  border: 1px solid var(--home-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 50px rgba(33, 23, 43, 0.1);
  transform: rotate(-1deg);
}

.home-sheet-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--home-line);
}

.home-sheet-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-family: "Playfair Display", serif;
  font-size: 13px;
  font-weight: 700;
}

.home-sheet-top strong,
.home-sheet-top small { display: block; }
.home-sheet-top strong { color: var(--home-ink); font-size: 12px; }
.home-sheet-top small { color: var(--home-muted); font-size: 9px; }

.home-sheet-level {
  padding: 4px 7px;
  border-radius: 5px;
  color: var(--primary-dark);
  background: var(--primary-light);
  font-size: 8px;
  font-weight: 700;
}

.home-resource {
  display: grid;
  grid-template-columns: 62px 1fr 42px;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  color: var(--home-muted);
  font-size: 9px;
}

.home-resource > div,
.home-party-resource > div {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: color-mix(in srgb, var(--primary) 10%, #e8e4ec);
}

.home-resource i,
.home-party-resource i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 58%, white));
}

.home-resource strong {
  color: var(--home-ink);
  font-size: 9px;
  text-align: right;
}

.home-sheet-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.home-sheet-stats div {
  padding: 11px 6px;
  border-radius: 10px;
  text-align: center;
  background: color-mix(in srgb, var(--primary) 6%, white);
}

.home-sheet-stats span,
.home-sheet-stats strong { display: block; }
.home-sheet-stats span { color: var(--home-muted); font-size: 8px; text-transform: uppercase; }
.home-sheet-stats strong { color: var(--home-ink); font-family: "Playfair Display", serif; font-size: 18px; }

.home-collab {
  position: relative;
  padding: 126px 0;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 48%, color-mix(in srgb, var(--primary) 24%, transparent), transparent 34%),
    linear-gradient(135deg, var(--home-night-soft), var(--home-night) 62%);
}

.home-collab::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: -260px;
  left: -160px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.018), 0 0 0 120px rgba(255, 255, 255, 0.012);
}

.home-collab-layout {
  position: relative;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 84px;
  align-items: center;
}

.home-collab-copy h2 {
  margin: 18px 0 22px;
  color: #fff;
}

.home-collab-copy > p {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.58);
}

.home-collab-copy li {
  color: rgba(255, 255, 255, 0.82);
}

.home-coming-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-right: 9px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.home-party-demo {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.home-party-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.home-party-head div span,
.home-party-head div strong { display: block; }

.home-party-head div span {
  margin-bottom: 4px;
  color: color-mix(in srgb, var(--primary) 45%, white);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.home-party-head div strong {
  font-family: "Playfair Display", serif;
  font-size: 21px;
}

.home-party-live {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
}

.home-party-list { padding: 10px 24px 6px; }

.home-party-member {
  display: grid;
  grid-template-columns: auto minmax(110px, 1fr) minmax(130px, 0.9fr) 48px;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-party-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--primary) 48%, transparent);
  border-radius: 50%;
  color: color-mix(in srgb, var(--primary) 35%, white);
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  font-size: 10px;
  font-weight: 700;
}

.home-party-name strong,
.home-party-name small,
.home-party-resource > span { display: block; }
.home-party-name strong { color: rgba(255, 255, 255, 0.86); font-size: 11px; }
.home-party-name small,
.home-party-resource > span { color: rgba(255, 255, 255, 0.38); font-size: 8px; }
.home-party-resource > div { margin-top: 5px; background: rgba(255, 255, 255, 0.09); }
.home-party-value { color: rgba(255, 255, 255, 0.66); font-size: 9px; text-align: right; }

.home-party-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 24px 24px;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--primary) 32%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 11%, transparent);
}

.home-party-share span { color: rgba(255, 255, 255, 0.42); font-size: 9px; }
.home-party-share strong { color: color-mix(in srgb, var(--primary) 35%, white); font-size: 10px; }

.home-homebrew {
  margin-top: 112px;
  padding: 62px 0 0;
  border-top: 1px solid var(--home-line);
  background: transparent;
}

.home-homebrew-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: clamp(40px, 7vw, 92px);
  align-items: end;
  margin-bottom: 44px;
}

.home-homebrew-heading > div:first-child > span {
  display: block;
  margin-bottom: 10px;
  color: color-mix(in srgb, var(--primary) 72%, var(--home-muted));
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-homebrew-heading h3 {
  max-width: 720px;
  margin: 0;
  color: var(--home-ink);
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 4.2vw, 50px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.home-homebrew-heading p {
  margin: 0;
  color: var(--home-muted);
  font-size: 15px;
  line-height: 1.68;
}

.home-text-link--dark { color: var(--home-ink); }

.home-drop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.home-drop-card {
  position: relative;
  display: flex;
  min-height: 350px;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border-radius: 22px;
  color: #fff;
  text-decoration: none;
  background: var(--home-night-soft);
  box-shadow: 0 24px 56px rgba(28, 21, 39, 0.12);
  transition: transform 240ms cubic-bezier(0.32, 0.72, 0.25, 1), box-shadow 240ms cubic-bezier(0.32, 0.72, 0.25, 1);
}

.home-drop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 32px 68px rgba(28, 21, 39, 0.18);
}

.home-drop-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms cubic-bezier(0.32, 0.72, 0.25, 1);
}

.home-drop-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 25%, rgba(9, 10, 20, 0.9) 100%);
}

.home-drop-card:hover .home-drop-art { transform: scale(1.035); }

.home-drop-type,
.home-drop-name,
.home-drop-meta { position: relative; z-index: 2; }

.home-drop-type {
  margin-bottom: 8px;
  color: color-mix(in srgb, var(--primary) 30%, white);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.home-drop-name {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.05;
}

.home-drop-meta { margin-top: 8px; color: rgba(255, 255, 255, 0.55); font-size: 11px; }

.home-pricing {
  position: relative;
  padding: 126px 0 132px;
  overflow: hidden;
  border-top: 1px solid var(--home-line);
  background:
    radial-gradient(circle at 86% 18%, color-mix(in srgb, var(--primary) 9%, transparent), transparent 30%),
    radial-gradient(circle at 12% 78%, color-mix(in srgb, var(--secondary) 7%, transparent), transparent 27%),
    var(--home-paper);
}

.home-pricing-heading {
  max-width: 790px;
  margin: 0 auto 54px;
  text-align: center;
}

.home-pricing-heading h2 {
  margin: 0;
  color: var(--home-ink);
  font-family: "Playfair Display", serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 600;
  line-height: 1.02;
}

.home-pricing-heading p {
  max-width: 680px;
  margin: 20px auto 0;
  color: var(--home-muted);
  font-size: 16px;
  line-height: 1.7;
}

.home-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 28px;
  background: color-mix(in srgb, var(--home-paper-bright) 94%, transparent);
  box-shadow: 0 24px 65px rgba(38, 28, 48, 0.08);
}

.home-plan {
  position: relative;
  padding: clamp(30px, 4vw, 48px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-plan + .home-plan {
  border-left: 1px solid var(--home-line);
}

.home-plan-heading {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--home-line);
}

.home-plan-heading h3 {
  margin: 0;
  color: var(--home-ink);
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 600;
  line-height: 1;
}

.home-plan-heading p {
  max-width: none;
  margin: 12px 0 0;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.55;
}

.home-plan-free-price,
.home-plan-premium-prices {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--home-line));
  border-radius: 13px;
  background: color-mix(in srgb, var(--primary) 5%, var(--home-paper-bright));
}

.home-plan-free-price {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 18px;
  color: var(--home-ink);
  font-size: 14px;
  font-weight: 760;
}

.home-plan-premium-prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-plan-premium-prices span {
  min-width: 0;
  padding: 12px 10px;
  color: var(--home-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
}

.home-plan-premium-prices span + span {
  border-left: 1px solid var(--home-line);
}

.home-plan-premium-prices strong {
  color: var(--home-ink);
  font-size: 13px;
  font-weight: 780;
}

.home-plan ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.home-plan-feature-leadin {
  margin: 30px 0 0;
  color: var(--home-muted);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.45;
}

.home-plan-feature-leadin + ul {
  margin-top: 14px;
}

.home-plan li {
  position: relative;
  padding-left: 28px;
  color: var(--home-ink);
  font-size: 14px;
  font-weight: 570;
  line-height: 1.45;
}

.home-plan li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-dark);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  font-size: 11px;
  font-weight: 850;
}

.home-pricing-action {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.home-pricing-action .home-btn-primary {
  min-width: 190px;
  justify-content: center;
}

.home-faq {
  padding: 122px 0 132px;
  border-top: 1px solid var(--home-line);
  background: var(--home-paper);
}

.home-faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 110px;
  align-items: start;
}

.home-faq-heading {
  position: sticky;
  top: 116px;
}

.home-faq-heading h2 {
  margin: 12px 0 18px;
  font-size: clamp(38px, 4vw, 56px);
}

.marketing-home .faq-accordion {
  max-width: none;
  margin: 0;
}

.marketing-home .faq-item {
  border-color: var(--home-line);
  border-radius: 0;
  background: transparent;
}

.marketing-home .faq-item:first-child { border-top: 1px solid var(--home-line); }

.marketing-home .faq-item summary {
  padding: 22px 4px;
  color: var(--home-ink);
  font-family: "Playfair Display", serif;
  font-size: 19px;
  font-weight: 600;
}

.marketing-home .faq-answer {
  padding: 0 4px 22px;
  color: var(--home-muted);
}

.home-final-cta {
  position: relative;
  padding: 132px 0 116px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, color-mix(in srgb, var(--primary) 24%, transparent), transparent 38%),
    var(--home-night);
}

.home-final-cta .home-container { position: relative; z-index: 1; }

.home-final-icon {
  display: block;
  margin: 0 auto 20px;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 20px 50px rgba(0, 0, 0, 0.28);
}

.home-final-cta h2 {
  max-width: 760px;
  margin: 12px auto 18px;
  color: #fff;
}

.home-final-cta > .home-container > p:not(.home-section-kicker) {
  max-width: 580px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 17px;
}

.home-final-cta .btn { margin-inline: auto; }
.home-final-cta small { display: block; margin-top: 18px; color: rgba(255, 255, 255, 0.38); font-size: 11px; }

.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.32, 0.72, 0.25, 1);
}

.has-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .home-hero-layout { grid-template-columns: 0.9fr 1.1fr; }
  .home-hero-stage { height: 540px; }
  .home-app-window { height: 400px; }
  .home-app-sidebar { display: none; }
  .home-app-body { grid-template-columns: 1fr; }
  .home-role-copy { max-width: 69%; padding-left: 36px; }
  .home-role-phone-wrap { width: 210px; }
  .home-sheet-demo { left: 37%; }
}

@media (max-width: 900px) {
  .home-hero { min-height: auto; }
  .home-hero-layout { grid-template-columns: 1fr; gap: 18px; padding-top: 72px; }
  .home-hero-copy { max-width: 720px; }
  .home-hero-stage { width: 100%; max-width: 720px; margin-inline: auto; }
  .home-bento-card--links,
  .home-bento-card--map,
  .home-bento-card--canvas,
  .home-bento-card--timeline,
  .home-bento-card--sound { grid-column: span 6; }
  .home-bento-card--links { grid-column: span 12; }
  .home-table-grid,
  .home-collab-layout,
  .home-faq-layout { grid-template-columns: 1fr; }
  .home-pricing-grid { grid-template-columns: 1fr; }
  .home-plan + .home-plan {
    border-top: 1px solid var(--home-line);
    border-left: 0;
  }
  .home-role-card { min-height: 560px; }
  .home-collab-layout { gap: 60px; }
  .home-section-heading--split { grid-template-columns: 1fr; gap: 20px; }
  .home-faq-layout { gap: 55px; }
  .home-faq-heading { position: static; max-width: 640px; }
}

@media (max-width: 680px) {
  .home-container { width: min(100% - 32px, 1240px); }
  .marketing-home .site-nav .container,
  .marketing-home .site-subnav .container { width: min(100% - 32px, 1240px); }
  .home-hero::before {
    inset: 0 0 38%;
    background: linear-gradient(180deg, rgba(8, 8, 22, 0.58), rgba(8, 8, 22, 0.92) 72%);
  }
  .home-hero-backdrop { height: 62%; }
  .home-hero-layout { padding: 58px 0 108px; }
  .home-hero h1 { font-size: clamp(44px, 14vw, 64px); }
  .home-hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .home-hero-stage { height: 450px; margin-top: 18px; }
  .home-app-window { top: 38px; left: -8px; width: calc(100% - 34px); height: 330px; transform: none; }
  .home-app-note { padding: 34px 28px; }
  .home-app-note h2 { font-size: 31px; }
  .home-app-note p { font-size: 13px; }
  .home-note-link { left: 28px; }
  .home-hero-phone { width: 132px; right: -2px; bottom: 4px; }
  .home-toolkit,
  .home-table,
  .home-collab,
  .home-homebrew,
  .home-faq { padding-top: 88px; padding-bottom: 94px; }
  .home-section-heading h2,
  .home-faq-heading h2,
  .home-final-cta h2,
  .home-collab-copy h2 { font-size: 42px; }
  .home-bento { grid-template-columns: 1fr; }
  .home-bento-card--links,
  .home-bento-card--map,
  .home-bento-card--canvas,
  .home-bento-card--timeline,
  .home-bento-card--sound { grid-column: auto; min-height: 410px; }
  .home-bento-card--links { min-height: 630px; }
  .home-bento-copy { padding: 28px; }
  .home-bento-copy h3 { font-size: 28px; }
  .home-link-demo {
    right: 16px;
    bottom: 18px;
    left: 16px;
    height: 372px;
  }
  .home-link-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
  .home-link-editor {
    padding: 14px 15px 11px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .home-link-editor > p { font-size: 9px; line-height: 1.57; }
  .home-link-backlinks { margin-top: 7px; }
  .home-link-inspector { padding: 13px 14px 12px; }
  .home-link-inspector > strong { margin: 5px 0 3px; font-size: 15px; }
  .home-link-inspector > p { -webkit-line-clamp: 2; }
  .home-link-inspector > small { margin-top: 5px; }
  .home-link-inspector > button { min-height: 26px; margin-top: 7px; }
  .home-role-card { min-height: 680px; }
  .home-role-copy { max-width: none; padding: 34px 30px 0; }
  .home-role-phone-wrap { right: 12px; bottom: -78px; width: 220px; }
  .home-sheet-demo { right: 22px; bottom: 26px; left: 22px; }
  .home-party-member { grid-template-columns: auto 1fr 42px; }
  .home-party-resource { grid-column: 2 / -1; }
  .home-party-value { grid-column: 3; grid-row: 1; }
  .home-party-share { align-items: flex-start; flex-direction: column; gap: 4px; }
  .home-drop-grid { grid-template-columns: 1fr; }
  .home-drop-card { min-height: 390px; }
  .home-final-cta { padding-top: 102px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-bento-card,
  .home-drop-card,
  .home-drop-art,
  .home-text-link span {
    transition: none;
  }

  .home-player-demo:has(.home-play-button.is-playing) .home-wave i {
    animation: none;
  }
}

/* Interactive adventure tool demos */

.home-bento-card--canvas,
.home-bento-card--timeline,
.home-bento-card--sound {
  min-height: 500px;
}

.home-canvas-demo,
.home-timeline-demo,
.home-soundscape-demo {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: block;
  height: 228px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background-color: color-mix(in srgb, var(--home-night) 80%, transparent);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.home-canvas-demo {
  border-style: solid;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 15px 15px;
}

.home-graph-lines {
  position: absolute;
  inset: 0 0 auto;
  display: block;
  width: 100%;
  height: 145px;
}

.home-graph-lines line {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1.2;
  transition: stroke 220ms ease, stroke-opacity 220ms ease;
}

.home-graph-lines line.is-related {
  stroke: color-mix(in srgb, var(--primary) 62%, white);
  stroke-opacity: 0.76;
}

.home-graph-node {
  --node-color: #9b6a79;
  position: absolute;
  z-index: 2;
  top: var(--node-y);
  left: var(--node-x);
  display: flex;
  width: 82px;
  height: 42px;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  padding: 5px 0 0;
  border: 0;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  cursor: pointer;
  opacity: 0.28;
  transform: translate(-50%, -50%);
  transition: opacity 220ms ease, transform 220ms ease;
}

.home-graph-node i {
  position: relative;
  z-index: 2;
  display: block;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  background: var(--node-color);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.home-graph-node span {
  overflow: hidden;
  max-width: 82px;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-graph-node::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -2px;
  left: 50%;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--node-color) 34%, transparent);
  opacity: 0;
  transform: translateX(-50%) scale(0.78);
}

.home-graph-node.is-related {
  opacity: 0.86;
}

.home-graph-node.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}

.home-graph-node.is-active::before {
  opacity: 0.8;
  animation: home-node-halo 2.4s ease-in-out infinite;
}

.home-graph-node.is-active i {
  border: 2px solid #fff;
}

.home-graph-node:hover,
.home-graph-node:focus-visible {
  outline: none;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.home-graph-node--event { --node-color: #9b6a79; }
.home-graph-node--lore { --node-color: #6b79a2; }
.home-graph-node--faction { --node-color: #4d8398; }
.home-graph-node--person { --node-color: #896f96; }
.home-graph-node--place { --node-color: #4b877c; }
.home-graph-node--object { --node-color: #9c6e5a; }

@keyframes home-node-halo {
  0%, 100% { transform: translateX(-50%) scale(0.82); opacity: 0.52; }
  50% { transform: translateX(-50%) scale(1.12); opacity: 0.9; }
}

.home-mini-inspector {
  position: absolute;
  z-index: 5;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: grid;
  min-height: 54px;
  align-content: center;
  gap: 3px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  color: #fff;
  background: color-mix(in srgb, var(--home-night) 88%, transparent);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.home-mini-inspector strong {
  font-family: "Playfair Display", serif;
  font-size: 12px;
  font-weight: 600;
}

.home-mini-inspector span {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.52);
  font-size: 8.5px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-mini-inspector.is-changing {
  animation: home-map-inspector-in 240ms cubic-bezier(0.32, 0.72, 0.25, 1);
}

.home-timeline-demo > .home-mini-inspector {
  position: absolute;
  display: grid;
  flex-direction: initial;
  gap: 3px;
}

.home-timeline-demo {
  background:
    linear-gradient(90deg, transparent 33.2%, rgba(255, 255, 255, 0.08) 33.4%, transparent 33.7%, transparent 66.3%, rgba(255, 255, 255, 0.08) 66.5%, transparent 66.8%),
    color-mix(in srgb, var(--home-night) 80%, transparent);
}

.home-timeline-grid {
  position: absolute;
  inset: 0 0 auto;
  display: grid;
  height: 31px;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.home-timeline-grid span {
  padding: 9px 10px 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
  font-weight: 700;
}

.home-timeline-event {
  position: absolute;
  z-index: 2;
  top: var(--event-top);
  left: var(--event-left);
  display: flex;
  width: var(--event-width);
  height: 29px;
  min-width: 0;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  background: color-mix(in srgb, var(--event-color) 55%, var(--home-night));
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.home-timeline-event i {
  flex: 0 0 auto;
  font-size: 10px;
  font-style: normal;
}

.home-timeline-event strong {
  overflow: hidden;
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-timeline-event:hover,
.home-timeline-event:focus-visible,
.home-timeline-event.is-active {
  z-index: 3;
  outline: none;
  opacity: 1;
  transform: translateY(-2px);
}

.home-timeline-event.is-active {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--event-color) 24%, transparent), 0 10px 22px rgba(0, 0, 0, 0.3);
}

.home-timeline-event--era { --event-color: #896f96; }
.home-timeline-event--crisis { --event-color: #9b6a79; }
.home-timeline-event--session { --event-color: var(--primary); }

.home-soundscape-demo {
  padding: 12px;
}

.home-soundscape-now {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.home-soundscape-now .home-play-button {
  width: 35px;
  height: 35px;
  font-size: 10px;
}

.home-soundscape-now div {
  min-width: 0;
}

.home-soundscape-now small,
.home-soundscape-now strong {
  display: block;
}

.home-soundscape-now small {
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 7.5px;
}

.home-soundscape-now strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-family: "Playfair Display", serif;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-soundscape-now > span {
  color: rgba(255, 255, 255, 0.38);
  font-size: 8px;
}

.home-sound-wave {
  display: flex;
  height: 36px;
  align-items: center;
  gap: 3px;
  padding: 2px 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.home-sound-wave i {
  width: 3px;
  height: 8px;
  flex: 1 1 auto;
  border-radius: 3px;
  background: color-mix(in srgb, var(--primary) 46%, white);
  transform-origin: center;
}

@keyframes home-sound-wave {
  to { transform: scaleY(0.32); opacity: 0.5; }
}

.home-sound-tracks {
  display: grid;
  gap: 2px;
  padding-top: 5px;
}

.home-sound-tracks button {
  display: grid;
  height: 29px;
  min-width: 0;
  grid-template-columns: 18px 1fr auto;
  gap: 6px;
  align-items: center;
  padding: 0 7px;
  border: 0;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: color 160ms ease, background 160ms ease;
}

.home-sound-tracks button:hover,
.home-sound-tracks button:focus-visible {
  outline: none;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.05);
}

.home-sound-tracks button.is-active {
  color: color-mix(in srgb, var(--primary) 35%, white);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
}

.home-sound-tracks button span {
  font-size: 12px;
  text-align: center;
}

.home-sound-tracks button strong {
  overflow: hidden;
  font-size: 9px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-sound-tracks button small {
  color: inherit;
  font-size: 7.5px;
  opacity: 0.62;
}

@media (max-width: 680px) {
  .home-bento-card--canvas,
  .home-bento-card--timeline,
  .home-bento-card--sound {
    min-height: 500px;
  }

  .home-canvas-demo,
  .home-timeline-demo,
  .home-soundscape-demo {
    right: 16px;
    bottom: 18px;
    left: 16px;
    height: 232px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-graph-node,
  .home-graph-lines line,
  .home-timeline-event,
  .home-sound-tracks button {
    transition: none;
  }

  .home-graph-node.is-active::before,
  .home-mini-inspector.is-changing,
  .home-soundscape-demo.is-playing .home-sound-wave i {
    animation: none;
  }
}

/* Interactive demo polish */

.home-bento-card--canvas,
.home-bento-card--timeline,
.home-bento-card--sound {
  min-height: 558px;
}

.home-canvas-demo,
.home-timeline-demo,
.home-soundscape-demo {
  height: 286px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background-color: color-mix(in srgb, var(--home-night-soft) 94%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 22px 42px rgba(0, 0, 0, 0.23);
}

.home-canvas-demo {
  background-image:
    radial-gradient(circle at 48% 38%, color-mix(in srgb, var(--primary) 11%, transparent), transparent 43%),
    radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: auto, 16px 16px;
}

.home-canvas-demo::after {
  content: "Plot board";
  position: absolute;
  top: 12px;
  left: 14px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 8.5px;
  font-weight: 650;
}

.home-graph-lines {
  top: 0;
  right: 0;
  left: 0;
  height: 190px;
  inset: 0 0 auto;
}

.home-graph-lines line {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1.35;
}

.home-graph-lines line.is-related {
  stroke-opacity: 0.9;
  stroke-width: 1.85;
}

.home-graph-node {
  width: 90px;
  height: 48px;
  gap: 5px;
  padding-top: 6px;
  opacity: 0.34;
}

.home-graph-node i {
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 16px;
  height: 16px;
  transform: none;
  transform-origin: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.34);
}

.home-graph-node span {
  max-width: 90px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 9.5px;
}

.home-graph-node::before {
  top: -4px;
  width: 37px;
  height: 37px;
}

.home-graph-node.is-related {
  opacity: 0.9;
}

.home-graph-node.is-active,
.home-graph-node:hover,
.home-graph-node:focus-visible {
  transform: translate(-50%, -50%);
}

.home-graph-node.is-active i {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--node-color) 32%, transparent), 0 8px 16px rgba(0, 0, 0, 0.4);
}

.home-graph-node[data-node-id="pact"] i {
  transform: scale(1.25);
}

.home-graph-node[data-node-id="court"] i,
.home-graph-node[data-node-id="mara"] i {
  transform: scale(1.125);
}

.home-mini-inspector {
  min-height: 68px;
  padding: 11px 14px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--home-night) 91%, transparent);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.home-mini-inspector strong {
  font-size: 14px;
}

.home-mini-inspector span {
  font-size: 9.5px;
  line-height: 1.42;
}

.home-timeline-demo {
  background:
    linear-gradient(90deg, transparent 33.2%, rgba(255, 255, 255, 0.1) 33.4%, transparent 33.7%, transparent 66.3%, rgba(255, 255, 255, 0.1) 66.5%, transparent 66.8%),
    linear-gradient(180deg, transparent 87px, rgba(255, 255, 255, 0.075) 88px, transparent 89px, transparent 132px, rgba(255, 255, 255, 0.075) 133px, transparent 134px, transparent 178px, rgba(255, 255, 255, 0.075) 179px, transparent 180px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 72%),
    color-mix(in srgb, var(--home-night-soft) 94%, transparent);
}

.home-timeline-grid {
  height: 38px;
  background: rgba(255, 255, 255, 0.045);
}

.home-timeline-demo > .home-timeline-grid {
  position: absolute;
  display: grid;
  flex-direction: initial;
  gap: 0;
}

.home-timeline-grid span {
  padding: 11px 11px 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 9.5px;
}

.home-timeline-event {
  display: grid;
  height: 38px;
  grid-template-columns: 17px minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  column-gap: 7px;
  align-items: center;
  padding: 5px 12px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.88);
  background: color-mix(in srgb, var(--event-color) 70%, var(--home-night));
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.26);
}

.home-timeline-event i {
  position: relative;
  top: auto;
  grid-row: 1 / 3;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
}

.home-timeline-event::before,
.home-timeline-event::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--event-color) 48%, white);
  opacity: 0.72;
}

.home-timeline-event::before {
  left: 5px;
}

.home-timeline-event::after {
  right: 5px;
}

.home-timeline-event strong {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  max-width: none;
  font-size: 10px;
  line-height: 1;
}

.home-timeline-event span {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.55);
  font-size: 7.5px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-timeline-event.is-active {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--event-color) 30%, transparent), 0 13px 24px rgba(0, 0, 0, 0.34);
}

.home-soundscape-demo {
  padding: 16px;
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--primary) 15%, transparent), transparent 38%),
    color-mix(in srgb, var(--home-night-soft) 94%, transparent);
}

.home-soundscape-now {
  gap: 12px;
}

.home-sound-controls {
  display: grid;
  grid-template-columns: 26px 42px 26px;
  gap: 4px;
  align-items: center;
}

.home-sound-controls > button {
  display: grid;
  width: 26px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.52);
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.home-sound-controls > button svg {
  width: 14px;
  height: 14px;
  overflow: visible;
}

.home-sound-controls > button svg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.home-sound-controls > button:hover,
.home-sound-controls > button:focus-visible {
  outline: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.home-soundscape-now .home-play-button {
  width: 42px;
  height: 42px;
  font-size: 11px;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 30%, transparent);
}

.home-soundscape-now .home-play-button span {
  position: relative;
  display: block;
  width: 13px;
  height: 14px;
}

.home-soundscape-now .home-play-button span::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 3px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}

.home-soundscape-demo.is-playing .home-play-button span::before,
.home-soundscape-demo.is-playing .home-play-button span::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 4px;
  height: 12px;
  border: 0;
  border-radius: 1px;
  background: currentColor;
}

.home-soundscape-demo.is-playing .home-play-button span::before {
  left: 1px;
}

.home-soundscape-demo.is-playing .home-play-button span::after {
  right: 1px;
}

.home-soundscape-now small {
  font-size: 8.5px;
}

.home-soundscape-now strong {
  font-size: 14px;
}

.home-soundscape-now > span {
  font-size: 9px;
}

.home-sound-wave {
  position: relative;
  isolation: isolate;
  height: 52px;
  gap: 3px;
  overflow: hidden;
  padding: 4px 3px;
}

.home-sound-wave::before,
.home-sound-wave::after {
  content: "";
  position: absolute;
  pointer-events: none;
  animation-duration: 14s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  animation-play-state: paused;
}

.home-sound-wave::before {
  z-index: 0;
  top: 5px;
  bottom: 5px;
  left: 36%;
  width: 48px;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--primary) 24%, transparent), transparent 72%);
  filter: blur(5px);
  transform: translateX(-50%);
  animation-name: home-sound-wave-glow;
}

.home-sound-wave::after {
  z-index: 2;
  top: 8px;
  bottom: 8px;
  left: 36%;
  width: 1px;
  border-radius: 1px;
  background: color-mix(in srgb, var(--primary) 42%, white);
  box-shadow: 0 0 8px color-mix(in srgb, var(--primary) 58%, transparent);
  opacity: 0.78;
  animation-name: home-sound-wave-playhead;
}

.home-sound-wave i {
  --wave-width: 0.44;
  position: relative;
  z-index: 1;
  width: 3px;
  height: var(--wave-height);
  opacity: 0.74;
  background: color-mix(in srgb, var(--primary) 66%, white);
  transform: scale(var(--wave-width), 0.78);
  will-change: transform, opacity;
  animation: home-sound-wave-live var(--wave-speed, 1.9s) cubic-bezier(0.42, 0, 0.28, 1) var(--wave-delay) infinite both;
  animation-play-state: paused;
}

.home-sound-wave i:nth-child(3n) {
  --wave-speed: 2.1s;
}

.home-sound-wave i:nth-child(4n) {
  --wave-speed: 1.72s;
}

.home-sound-wave i:nth-child(5n) {
  --wave-speed: 2.28s;
}

.home-soundscape-demo.is-playing .home-sound-wave i,
.home-soundscape-demo.is-playing .home-sound-wave::before,
.home-soundscape-demo.is-playing .home-sound-wave::after {
  animation-play-state: running;
}

@keyframes home-sound-wave-live {
  0%, 100% { transform: scale(var(--wave-width), 0.74); opacity: 0.64; }
  16% { transform: scale(var(--wave-width), 1.04); opacity: 0.92; }
  37% { transform: scale(var(--wave-width), 0.61); opacity: 0.7; }
  58% { transform: scale(var(--wave-width), 0.94); opacity: 0.86; }
  77% { transform: scale(var(--wave-width), 0.7); opacity: 0.68; }
  91% { transform: scale(var(--wave-width), 1); opacity: 0.88; }
}

@keyframes home-sound-wave-glow {
  from { left: 36%; }
  to { left: calc(100% - 3px); }
}

@keyframes home-sound-wave-playhead {
  from { left: 36%; }
  to { left: calc(100% - 3px); }
}

.home-sound-progress {
  position: relative;
  height: 3px;
  margin: -1px 3px 0;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.09);
}

.home-sound-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: inherit;
  background: color-mix(in srgb, var(--primary) 72%, white);
  transform: scaleX(0.36);
  transform-origin: left;
  animation: home-sound-progress 14s linear infinite;
  animation-play-state: paused;
}

.home-soundscape-demo.is-playing .home-sound-progress span {
  animation-play-state: running;
}

@keyframes home-sound-progress {
  from { transform: scaleX(0.36); }
  to { transform: scaleX(1); }
}

.home-soundscape-demo.is-resetting .home-sound-wave i,
.home-soundscape-demo.is-resetting .home-sound-wave::before,
.home-soundscape-demo.is-resetting .home-sound-wave::after,
.home-soundscape-demo.is-resetting .home-sound-progress span {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .home-sound-wave i,
  .home-sound-wave::before,
  .home-sound-wave::after,
  .home-sound-progress span {
    animation: none;
  }
}

.home-sound-tracks {
  gap: 3px;
  padding-top: 7px;
}

.home-sound-tracks button {
  height: 37px;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 9px;
}

.home-sound-tracks button.is-active {
  border-color: color-mix(in srgb, var(--primary) 26%, transparent);
}

.home-track-visual {
  display: flex;
  height: 16px;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.home-track-visual i {
  display: block;
  width: 2px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
}

.home-track-visual i:nth-child(2) {
  height: 13px;
}

.home-sound-tracks button strong {
  font-size: 10px;
}

.home-sound-tracks button small {
  font-size: 8.5px;
}

.home-sound-preview-note {
  margin: 8px 3px 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 8.5px;
  line-height: 1.3;
  text-align: right;
}

.home-soundscape-demo.is-playing .home-sound-tracks button.is-active .home-track-visual i {
  animation: home-sound-wave 620ms ease-in-out infinite alternate;
}

.home-soundscape-demo.is-playing .home-sound-tracks button.is-active .home-track-visual i:nth-child(2) {
  animation-delay: -310ms;
}

@media (max-width: 680px) {
  .home-bento-card--canvas,
  .home-bento-card--timeline,
  .home-bento-card--sound {
    min-height: 548px;
  }

  .home-bento-card--sound {
    display: flex;
    flex-direction: column;
  }

  .home-bento-card--sound .home-soundscape-demo {
    position: relative;
    inset: auto;
    flex-shrink: 0;
    margin: auto 24px 24px;
  }

  .home-canvas-demo,
  .home-timeline-demo,
  .home-soundscape-demo {
    height: 286px;
  }
}

/* Keep foreground characters inside dedicated, text-free bays. */

.home-hero-characters {
  inset: auto -210px 0 -150px;
  height: 390px;
}

.home-hero-character--1,
.home-hero-character--2 {
  top: auto;
  bottom: -4px;
  width: 270px;
}

.home-hero-character--1 {
  right: -6px;
}

.home-hero-character--2 {
  left: 0;
}

.home-party-stage {
  min-height: 465px;
  padding-right: 195px;
}

.home-collab-character {
  right: -2px;
  bottom: -18px;
  width: 220px;
}

.home-collab-art-credit {
  right: 226px;
  bottom: 0;
  width: max-content;
}

@media (min-width: 1081px) {
  .home-app-sidebar {
    padding-left: 44px;
  }

  .home-app-note {
    padding-right: 120px;
  }

  .home-note-link {
    right: 100px;
  }

  .home-art-credit {
    right: auto;
    left: 320px;
    width: max-content;
  }
}

@media (min-width: 901px) and (max-width: 1080px) {
  .home-hero-character--2 {
    display: none;
  }

  .home-hero-characters {
    left: 0;
  }

  .home-hero-character--1 {
    right: -80px;
    width: 245px;
  }

  .home-party-stage {
    width: 100%;
    min-height: 440px;
    padding-right: 170px;
  }

  .home-collab-character {
    right: -6px;
    bottom: -14px;
    width: 205px;
  }
}

@media (max-width: 900px) {
  .home-hero-characters {
    right: -40px;
    left: -40px;
  }

  .home-hero-character--1,
  .home-hero-character--2 {
    display: block;
    top: auto;
    bottom: 0;
    width: 245px;
  }

  .home-hero-character--1 {
    right: -42px;
  }

  .home-hero-character--2 {
    left: -42px;
  }
}

@media (max-width: 680px) {
  .home-hero-characters {
    inset: auto -28px 0;
    height: 300px;
  }

  .home-hero-character--1 {
    right: -88px;
    bottom: 0;
    width: 215px;
  }

  .home-hero-character--2 {
    display: none;
  }

  .home-party-stage {
    min-height: 0;
    padding-right: 0;
    padding-bottom: 245px;
  }

  .home-collab-character {
    right: 50%;
    bottom: 6px;
    width: 205px;
    opacity: 1;
    transform: translateX(50%);
  }

  .home-collab-art-credit {
    right: 50%;
    bottom: -14px;
    transform: translateX(50%);
    white-space: nowrap;
  }
}

/* Collision-safe character bays */

@media (min-width: 1081px) {
  .home-hero-layout {
    grid-template-columns: minmax(0, 430px) minmax(0, 650px);
    gap: 160px;
  }

  .home-app-window {
    left: -20px;
    width: 560px;
  }
}

.home-hero-copy {
  min-width: 0;
}

.home-hero-characters {
  top: auto;
  right: -210px;
  bottom: 0;
  left: -150px;
  height: 390px;
}

.home-hero-character--1,
.home-hero-character--2 {
  top: auto;
  bottom: -4px;
  width: 270px;
}

.home-hero-character--1 {
  right: -6px;
}

.home-hero-character--2 {
  left: 0;
}

.home-character-stage {
  position: relative;
  height: 410px;
  margin-top: 76px;
  overflow: hidden;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(ellipse at 50% 92%, color-mix(in srgb, var(--primary) 28%, transparent), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
}

.home-character-lineup {
  position: absolute;
  inset: 0 0 24px;
}

.home-character-lineup::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 0;
  left: 8%;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.48), transparent 68%);
  filter: blur(7px);
}

.home-mid-character {
  position: absolute;
  z-index: 2;
  bottom: 0;
  width: 300px;
  height: auto;
  filter: drop-shadow(0 28px 24px rgba(0, 0, 0, 0.42));
}

.home-mid-character--1 {
  left: 10%;
  width: 285px;
  transform: rotate(-2deg);
}

.home-mid-character--2 {
  z-index: 3;
  left: 50%;
  width: 320px;
  transform: translateX(-50%);
}

.home-mid-character--3 {
  right: 10%;
  width: 300px;
  transform: rotate(2deg);
}

.home-character-stage > small {
  position: absolute;
  z-index: 6;
  right: 12px;
  bottom: 4px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 8px;
}

.home-character-stage > small a {
  color: inherit;
  text-underline-offset: 2px;
}

.home-party-stage {
  min-height: 465px;
  padding-right: 195px;
}

.home-collab-character {
  right: -2px;
  bottom: -18px;
  width: 220px;
}

.home-collab-art-credit {
  right: 4px;
  bottom: -10px;
}

@media (min-width: 901px) and (max-width: 1080px) {
  .home-hero-character--2 {
    display: none;
  }

  .home-hero-characters {
    left: 0;
  }

  .home-hero-character--1 {
    right: -80px;
    width: 245px;
  }
}

@media (max-width: 900px) {
  .home-hero-characters {
    right: -40px;
    left: -40px;
  }

  .home-hero-character--1,
  .home-hero-character--2 {
    display: block;
    bottom: 0;
    width: 245px;
  }

  .home-hero-character--1 {
    right: -42px;
  }

  .home-hero-character--2 {
    left: -42px;
  }

  .home-character-stage {
    height: 370px;
  }

  .home-mid-character--1 {
    left: 2%;
    width: 260px;
  }

  .home-mid-character--2 {
    width: 285px;
  }

  .home-mid-character--3 {
    right: 2%;
    width: 270px;
  }

  .home-party-stage {
    width: 100%;
    min-height: 440px;
    padding-right: 170px;
  }

  .home-collab-character {
    right: -6px;
    bottom: -14px;
    width: 205px;
  }
}

@media (max-width: 680px) {
  .home-hero-characters {
    right: -28px;
    left: -28px;
    height: 300px;
  }

  .home-hero-character--1 {
    right: -88px;
    bottom: 0;
    width: 215px;
  }

  .home-hero-character--2 {
    display: none;
  }

  .home-character-stage {
    height: 310px;
    margin-top: 58px;
  }

  .home-mid-character--1 {
    left: -64px;
    width: 215px;
  }

  .home-mid-character--2 {
    width: 235px;
  }

  .home-mid-character--3 {
    right: -64px;
    width: 220px;
  }

  .home-party-stage {
    min-height: 0;
    padding-right: 0;
    padding-bottom: 245px;
  }

  .home-collab-character {
    right: 50%;
    bottom: 6px;
    width: 205px;
    opacity: 1;
    transform: translateX(50%);
  }

  .home-collab-art-credit {
    right: 50%;
    bottom: 4px;
    transform: translateX(50%);
    white-space: nowrap;
  }
}

/* Player-first character sheet section */

.home-table-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: end;
  margin-bottom: 72px;
}

.home-table-intro .home-section-heading {
  margin-bottom: 22px;
}

.home-import-bar {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--home-line));
  border-radius: 14px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--primary) 8%, white), rgba(255, 255, 255, 0.78));
  box-shadow: 0 12px 30px color-mix(in srgb, var(--primary) 7%, transparent);
}

.home-import-bar > i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: var(--primary-dark);
  background: color-mix(in srgb, var(--primary) 13%, white);
  font-size: 15px;
  font-style: normal;
  font-weight: 800;
}

.home-import-bar strong,
.home-import-bar span {
  display: block;
}

.home-import-bar strong {
  color: var(--home-ink);
  font-size: 13.5px;
  font-weight: 760;
  line-height: 1.35;
}

.home-import-bar span {
  margin-top: 3px;
  color: var(--home-muted);
  font-size: 12px;
  line-height: 1.5;
}

.home-character-stage {
  height: 350px;
  margin-top: 0;
  overflow: hidden;
  padding-bottom: 22px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--home-ink) 13%, transparent);
  border-radius: 0;
  background:
    linear-gradient(90deg, var(--home-paper) 0%, transparent 15%, transparent 85%, var(--home-paper) 100%),
    radial-gradient(ellipse at 55% 100%, color-mix(in srgb, var(--primary) 13%, transparent), transparent 55%);
}

.home-character-lineup {
  inset: 0 0 22px;
}

.home-character-lineup::after {
  right: 5%;
  bottom: -3px;
  left: 5%;
  height: 25px;
  background: radial-gradient(ellipse, rgba(36, 25, 45, 0.2), transparent 70%);
  filter: blur(6px);
}

.home-mid-character {
  bottom: 0;
  filter: drop-shadow(0 22px 18px rgba(36, 25, 45, 0.2));
}

.home-mid-character--1 {
  left: 8%;
  width: 250px;
  transform: rotate(-1.5deg);
}

.home-mid-character--2 {
  z-index: 3;
  left: 50%;
  width: 292px;
  transform: translateX(-50%);
}

.home-mid-character--3 {
  right: 8%;
  width: 255px;
  transform: rotate(1.5deg);
}

.home-character-stage > small {
  right: 0;
  bottom: 3px;
  color: color-mix(in srgb, var(--home-muted) 72%, transparent);
}

.home-table-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
}

.home-import-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1.18fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
  margin-top: 18px;
  padding: clamp(36px, 5vw, 62px);
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 30%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 34%),
    var(--home-paper-bright);
  box-shadow: 0 28px 70px rgba(38, 28, 48, 0.08);
}

.home-import-copy {
  position: relative;
  z-index: 2;
}

.home-import-copy h3 {
  max-width: 520px;
  margin: 0 0 18px;
  color: var(--home-ink);
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.05;
}

.home-import-copy p {
  max-width: 520px;
  margin: 0;
  color: var(--home-muted);
  font-size: 15px;
  line-height: 1.75;
}

.home-import-demo {
  position: relative;
  z-index: 2;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--home-line) 82%, var(--primary));
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 55px rgba(38, 28, 48, 0.12);
}

.home-import-file {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding-bottom: 19px;
}

.home-import-file-icon {
  position: relative;
  display: block;
  width: 38px;
  height: 44px;
  border: 2px solid color-mix(in srgb, var(--primary) 78%, white);
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 8%, white);
}

.home-import-file-icon::before {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-bottom: 2px solid color-mix(in srgb, var(--primary) 78%, white);
  border-left: 2px solid color-mix(in srgb, var(--primary) 78%, white);
  border-radius: 0 7px 0 4px;
  background: #fff;
}

.home-import-file strong,
.home-import-file small {
  display: block;
}

.home-import-file strong {
  overflow: hidden;
  color: var(--home-ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-import-file small {
  margin-top: 3px;
  color: var(--home-muted);
  font-size: 11px;
}

.home-import-ready {
  position: relative;
  padding-left: 15px;
  color: color-mix(in srgb, var(--accent-green) 82%, var(--home-ink));
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.home-import-ready::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-green) 14%, transparent);
  transform: translateY(-50%);
}

.home-import-sources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.home-import-sources > div {
  padding: 18px 18px 18px 0;
}

.home-import-sources > div + div {
  padding-right: 0;
  padding-left: 20px;
  border-left: 1px solid var(--home-line);
}

.home-import-sources span,
.home-import-sources strong,
.home-import-sources small {
  display: block;
}

.home-import-sources span {
  margin-bottom: 5px;
  color: var(--home-muted);
  font-size: 10px;
}

.home-import-sources strong {
  color: var(--home-ink);
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 650;
}

.home-import-sources small {
  margin-top: 4px;
  color: color-mix(in srgb, var(--primary) 72%, var(--home-muted));
  font-size: 10px;
  font-weight: 650;
}

.home-import-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 13px;
}

.home-import-summary span {
  color: var(--home-muted);
  font-size: 10px;
}

.home-import-summary strong {
  color: var(--home-ink);
  font-size: 11px;
  text-align: right;
}

.home-import-progress {
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: color-mix(in srgb, var(--primary) 10%, var(--home-line));
}

.home-import-progress i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 46%, var(--secondary)));
}

.home-role-card--gm .home-role-copy {
  max-width: 67%;
  padding-left: 38px;
}

.home-role-card--gm .home-role-phone-wrap {
  right: -70px;
  width: 190px;
}

.home-collab-art-credit {
  right: 226px;
  bottom: 0;
  width: max-content;
}

@media (max-width: 1080px) {
  .home-table-intro {
    grid-template-columns: minmax(0, 0.82fr) minmax(450px, 1.18fr);
    gap: 36px;
  }

  .home-mid-character--1 { left: 6%; width: 225px; }
  .home-mid-character--2 { left: 50%; width: 265px; }
  .home-mid-character--3 { right: 6%; width: 230px; }

  .home-import-card {
    grid-template-columns: minmax(0, 0.78fr) minmax(410px, 1.22fr);
    gap: 34px;
  }
}

@media (max-width: 900px) {
  .home-table-intro {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 64px;
  }

  .home-table-intro .home-section-heading {
    max-width: 690px;
    margin-bottom: 0;
  }

  .home-character-stage {
    width: min(720px, 100%);
    height: 350px;
    margin-inline: auto;
  }

  .home-mid-character--1 { left: 8%; width: 235px; }
  .home-mid-character--2 { left: 50%; width: 270px; }
  .home-mid-character--3 { right: 8%; width: 245px; }

  .home-table-grid {
    grid-template-columns: 1fr;
  }

  .home-import-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .home-import-copy p {
    max-width: 650px;
  }

  .home-role-card--gm .home-role-copy {
    max-width: 69%;
  }

  .home-role-card--gm .home-role-phone-wrap {
    right: -18px;
    width: 220px;
  }
}

@media (max-width: 680px) {
  .home-table-intro {
    gap: 8px;
    margin-bottom: 50px;
  }

  .home-character-stage {
    height: 286px;
    margin-top: 0;
  }

  .home-mid-character--1 { left: -28px; width: 205px; }
  .home-mid-character--2 { left: 50%; width: 228px; }
  .home-mid-character--3 { right: -28px; width: 210px; }

  .home-import-card {
    padding: 30px 24px;
  }

  .home-import-file {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .home-import-ready {
    grid-column: 2;
  }

  .home-import-sources {
    grid-template-columns: 1fr;
  }

  .home-import-sources > div {
    padding: 16px 0;
  }

  .home-import-sources > div + div {
    padding: 16px 0;
    border-top: 1px solid var(--home-line);
    border-left: 0;
  }

  .home-import-summary {
    flex-direction: column;
    gap: 6px;
  }

  .home-import-summary strong {
    text-align: left;
  }

  .home-role-card--gm .home-role-copy {
    max-width: none;
    padding-right: 32px;
    padding-left: 32px;
  }

  .home-role-card--gm .home-role-phone-wrap {
    right: 50%;
    width: 210px;
    transform: translateX(50%) rotate(2deg);
  }

  .home-collab-art-credit {
    right: 50%;
    bottom: -14px;
    transform: translateX(50%);
    white-space: nowrap;
  }
}

/* Editorial art pass */

.home-hero-stage {
  isolation: isolate;
}

.home-hero-characters {
  position: absolute;
  z-index: -1;
  inset: -30px -80px 0 -55px;
  pointer-events: none;
}

.home-hero-character {
  position: absolute;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.42));
}

.home-hero-character--1 {
  top: -18px;
  right: -10px;
  width: 335px;
  transform: rotate(2deg);
}

.home-hero-character--2 {
  bottom: 14px;
  left: -62px;
  width: 310px;
  transform: rotate(-3deg);
}

.home-app-window {
  z-index: 1;
  background: rgba(15, 15, 29, 0.88);
}

.variant-questweaver .home-app-window {
  background: rgba(23, 32, 50, 0.9);
}

.home-note-context {
  margin: 0 0 15px;
  color: color-mix(in srgb, var(--primary) 35%, white);
  font-family: "Playfair Display", serif;
  font-size: 13px;
  font-style: italic;
}

.home-art-credit {
  position: absolute;
  z-index: 5;
  right: 8px;
  bottom: -22px;
  margin: 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 9px;
}

.home-art-credit a {
  color: inherit;
  text-underline-offset: 2px;
}

.home-section-heading h2,
.home-faq-heading h2,
.home-collab-copy h2 {
  margin-top: 0;
}

.home-bento-copy h3,
.home-role-copy h3 {
  margin-top: 0;
}

.home-sheet-demo {
  z-index: 3;
}

.home-collab-context {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.72) !important;
  font-family: "Playfair Display", serif;
  font-size: 18px !important;
  font-style: italic;
}

.home-collab-context strong {
  color: color-mix(in srgb, var(--primary) 45%, white);
  font-weight: 600;
}

.home-party-head div span {
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.48);
  font-family: "Playfair Display", serif;
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.home-drop-type {
  color: rgba(255, 255, 255, 0.7);
  font-family: "Playfair Display", serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.home-final-cta {
  min-height: 570px;
  display: grid;
  place-items: center;
}

.home-final-cta .home-container {
  max-width: 780px;
}

@media (max-width: 1080px) {
  .home-hero-character--1 {
    right: -70px;
    width: 290px;
  }

  .home-hero-character--2 {
    left: -74px;
    width: 270px;
  }

}

@media (max-width: 900px) {
  .home-hero-characters {
    inset: -35px -20px 0;
  }

  .home-hero-character--1 {
    right: -15px;
  }

  .home-hero-character--2 {
    left: -35px;
  }

}

@media (max-width: 680px) {
  .home-hero-characters {
    inset: 0 -25px 0;
  }

  .home-hero-character--1 {
    top: -18px;
    right: -16px;
    width: 210px;
    opacity: 0.92;
  }

  .home-hero-character--2 {
    bottom: 34px;
    left: -42px;
    width: 205px;
    opacity: 0.86;
  }

  .home-art-credit {
    right: 0;
    bottom: -14px;
  }

  .home-final-cta {
    min-height: 610px;
  }
}

/* Layered scenery, foreground art, and conversion actions */

.home-store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.home-store-badges a {
  display: block;
  line-height: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.home-store-badges a:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.home-store-badges img {
  display: block;
  width: auto;
  height: 40px;
}

.home-store-badges--hero {
  justify-content: flex-start;
  margin: -10px 0 24px;
}

.home-hero-characters {
  z-index: 4;
  inset: -30px -90px 0 -90px;
}

.home-hero-character--1 {
  top: -14px;
  right: -92px;
  width: 330px;
}

.home-hero-character--2 {
  bottom: -8px;
  left: -104px;
  width: 300px;
}

.home-app-window {
  z-index: 2;
}

.home-art-credit {
  z-index: 7;
}

.home-toolkit {
  isolation: isolate;
  background: var(--home-night);
}

.home-toolkit-backdrop {
  position: absolute;
  z-index: -3;
  inset: 0;
  display: block;
  width: 100%;
  height: min(920px, 54%);
  object-fit: cover;
  object-position: center top;
}

.home-toolkit::before {
  z-index: -2;
  opacity: 1;
  background-image:
    linear-gradient(180deg, rgba(8, 8, 18, 0.54) 0%, rgba(8, 8, 18, 0.88) 44%, var(--home-night) 88%),
    linear-gradient(90deg, rgba(8, 8, 18, 0.68), rgba(8, 8, 18, 0.18) 72%);
  background-position: center top;
  background-size: cover;
  mask-image: none;
}

.home-toolkit::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 22%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 29%),
    linear-gradient(180deg, transparent 42%, var(--home-night) 92%);
}

.home-toolkit .home-section-heading {
  max-width: 880px;
}

.home-map-visual::after {
  z-index: 1;
  pointer-events: none;
}

.home-map-pin {
  appearance: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.home-map-pin::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid color-mix(in srgb, var(--primary) 68%, white);
  border-radius: 50%;
  opacity: 0;
}

.home-map-pin:hover,
.home-map-pin:focus-visible {
  z-index: 5;
  transform: translateY(-3px) scale(1.08);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2), 0 12px 28px rgba(0, 0, 0, 0.48);
}

.home-map-pin.is-active {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 34%, transparent), 0 10px 26px rgba(0, 0, 0, 0.42);
}

.home-map-pin.is-active::before {
  animation: home-map-pulse 1.8s ease-out infinite;
}

.home-map-pin--three {
  top: 35%;
  left: 47%;
}

.home-map-inspector {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  display: flex;
  width: min(190px, 44%);
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 12px;
  color: #fff;
  background: color-mix(in srgb, var(--home-night) 86%, transparent);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.home-map-inspector strong {
  font-family: "Playfair Display", serif;
  font-size: 14px;
}

.home-map-inspector span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  line-height: 1.45;
}

.home-map-inspector.is-changing {
  animation: home-map-inspector-in 240ms ease;
}

@keyframes home-map-pulse {
  0% { opacity: 0.7; transform: scale(0.72); }
  80%, 100% { opacity: 0; transform: scale(1.35); }
}

@keyframes home-map-inspector-in {
  from { opacity: 0.35; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-role-card--player .home-role-copy {
  max-width: 59%;
}

.home-role-card--player .home-sheet-demo {
  right: 32px;
  bottom: 36px;
  left: auto;
  width: 51%;
}

.home-collab {
  isolation: isolate;
  background: var(--home-night);
}

.home-collab-backdrop {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.78);
}

.home-collab::before {
  z-index: -1;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background-image:
    linear-gradient(90deg, var(--home-night) 0%, rgba(8, 8, 18, 0.88) 37%, rgba(8, 8, 18, 0.55) 72%, var(--home-night) 100%),
    linear-gradient(180deg, var(--home-night) 0%, transparent 28%, var(--home-night) 100%);
  background-position: center;
  background-size: cover;
  box-shadow: none;
  filter: none;
}

.home-party-stage {
  position: relative;
  padding-right: 72px;
}

.home-party-demo {
  position: relative;
  z-index: 2;
}

.home-collab-character {
  position: absolute;
  z-index: 4;
  right: -86px;
  bottom: -100px;
  width: 250px;
  height: auto;
  filter: drop-shadow(0 26px 26px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.home-collab-art-credit {
  position: absolute;
  z-index: 5;
  right: -64px;
  bottom: -78px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 8px;
}

.home-collab-art-credit a {
  color: inherit;
  text-underline-offset: 2px;
}

.home-final-cta {
  isolation: isolate;
  background: var(--home-night);
}

.home-final-backdrop {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82);
}

.home-final-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 42%, rgba(8, 8, 18, 0.42), rgba(8, 8, 18, 0.82) 64%),
    linear-gradient(180deg, var(--home-night), transparent 25%, var(--home-night));
  background-position: center;
  background-size: cover;
  filter: none;
}

.home-final-cta .home-container {
  z-index: 2;
}

.home-final-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.home-final-actions .home-btn-primary {
  margin-inline: 0;
}

@media (max-width: 1080px) {
  .home-hero-character--1 {
    right: -118px;
    width: 300px;
  }

  .home-hero-character--2 {
    left: -114px;
    width: 270px;
  }

  .home-party-stage {
    width: min(760px, 100%);
    padding-right: 76px;
  }
}

@media (max-width: 900px) {
  .home-hero-character--1 {
    right: -82px;
  }

  .home-hero-character--2 {
    left: -80px;
  }

  .home-collab::before {
    background: linear-gradient(180deg, var(--home-night) 0%, rgba(8, 8, 18, 0.68) 44%, var(--home-night) 100%);
  }
}

@media (max-width: 680px) {
  .home-store-badges--hero {
    margin-top: 0;
  }

  .home-hero-characters {
    inset: 0 -28px 0;
  }

  .home-hero-character--1 {
    top: -8px;
    right: -92px;
    width: 215px;
  }

  .home-hero-character--2 {
    display: none;
  }

  .home-map-inspector {
    top: 14px;
    right: 14px;
    width: min(176px, 50%);
  }

  .home-role-card--player .home-role-copy {
    max-width: none;
  }

  .home-role-card--player .home-sheet-demo {
    right: 22px;
    bottom: 26px;
    left: 22px;
    width: auto;
  }

  .home-party-stage {
    padding-right: 28px;
  }

  .home-collab-character {
    right: -76px;
    bottom: -54px;
    width: 180px;
    opacity: 0.82;
  }

  .home-collab-art-credit {
    right: -34px;
    bottom: -38px;
  }

  .home-final-cta::before {
    background: linear-gradient(180deg, var(--home-night), rgba(8, 8, 18, 0.66) 45%, var(--home-night));
  }

  .home-final-actions {
    flex-direction: column;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-store-badges a,
  .home-map-pin,
  .home-map-inspector {
    transition: none;
  }

  .home-map-pin.is-active::before,
  .home-map-inspector.is-changing {
    animation: none;
  }
}

/* Final collision-safe positioning overrides */

.home-hero-characters {
  inset: auto -210px 0 -150px;
  right: max(-210px, calc(632px - 50vw));
  height: 390px;
}

.home-hero-character--1,
.home-hero-character--2 {
  top: auto;
  bottom: -4px;
  width: 270px;
}

.home-hero-character--1 { right: -6px; }
.home-hero-character--2 { left: 0; }

.home-party-stage {
  min-height: 465px;
  padding-right: 195px;
}

.home-collab-character {
  right: -2px;
  bottom: -18px;
  width: 220px;
}

.home-collab-art-credit {
  right: 226px;
  bottom: 0;
  width: max-content;
}

@media (min-width: 901px) and (max-width: 1080px) {
  .home-hero-character--2 { display: none; }
  .home-hero-characters { left: 0; }
  .home-hero-character--1 { right: -80px; width: 245px; }
  .home-party-stage { width: 100%; min-height: 440px; padding-right: 170px; }
  .home-collab-character { right: -6px; bottom: -14px; width: 205px; }
}

@media (max-width: 900px) {
  .home-hero-characters,
  .home-art-credit {
    display: none;
  }
}

@media (max-width: 680px) {
  .home-hero-characters { inset: auto -28px 0; height: 300px; }
  .home-hero-character--1 { right: -88px; bottom: 0; width: 215px; }
  .home-hero-character--2 { display: none; }
  .home-app-note { padding-right: 100px; }
  .home-note-link { right: 92px; }
  .home-art-credit { right: auto; left: 0; }
  .home-party-stage { min-height: 0; padding-right: 0; padding-bottom: 245px; }
  .home-collab-character {
    right: 50%;
    bottom: 6px;
    width: 205px;
    opacity: 1;
    transform: translateX(50%);
  }
  .home-collab-art-credit {
    right: 50%;
    bottom: -16px;
    transform: translateX(50%);
    white-space: nowrap;
  }
}

/* Conversion hierarchy */

.home-hero h1 > span {
  display: block;
  max-width: 24ch;
  margin-top: 18px;
  color: color-mix(in srgb, var(--primary) 30%, white);
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.home-section-cta {
  margin-top: 26px;
}

.home-role-action {
  min-height: 40px;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 24%, transparent);
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.home-role-action:hover,
.home-role-action:focus-visible {
  color: #fff;
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--primary) 34%, transparent);
  transform: translateY(-1px);
}

.home-feature-heading-link {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--primary) 28%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.home-feature-heading-link:hover,
.home-feature-heading-link:focus-visible {
  color: color-mix(in srgb, var(--primary) 76%, var(--home-ink));
  text-decoration-color: currentColor;
}

.home-feature-heading-link:focus-visible,
.home-feature-text-link:focus-visible {
  border-radius: 3px;
  outline: 2px solid color-mix(in srgb, var(--primary) 45%, transparent);
  outline-offset: 4px;
}

.home-feature-text-link {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.home-feature-text-link:hover,
.home-feature-text-link:focus-visible {
  color: var(--primary-dark);
  text-decoration-color: currentColor;
}

.home-homebrew-all {
  width: max-content;
  margin-top: 22px;
}

@media (max-width: 680px) {
  .home-hero h1 > span {
    max-width: 22ch;
    margin-top: 14px;
    font-size: 20px;
  }

  .home-section-cta {
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-feature-heading-link,
  .home-feature-text-link {
    transition: none;
  }
}

/* Keep the shared character trio fully visible above one ground line. */

.home-character-stage {
  height: 410px;
}

@media (max-width: 1080px) {
  .home-character-stage {
    height: 380px;
  }
}

@media (max-width: 680px) {
  .home-character-stage {
    height: 330px;
  }
}

/* Character-sheet spotlights */

.home-role-card--player .home-role-copy {
  max-width: 48%;
}

.home-role-card--player .home-sheet-demo {
  --sheet-accent: var(--primary);
  position: absolute;
  z-index: 1;
  top: 32px;
  right: -14px;
  bottom: auto;
  left: auto;
  width: 52%;
  min-height: 660px;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--home-line) 78%, var(--sheet-accent));
  border-radius: 22px 0 0 22px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--sheet-accent) 3%, white), #f7f5fa 24%),
    #f7f5fa;
  box-shadow: 0 28px 64px rgba(33, 23, 43, 0.15);
  transform: rotate(-0.45deg);
  transform-origin: right bottom;
}

.variant-questweaver .home-role-card--player .home-sheet-demo {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--sheet-accent) 3%, white), #faf7f4 24%),
    #faf7f4;
}

.home-sheet-demo *,
.home-sheet-demo *::before,
.home-sheet-demo *::after {
  box-sizing: border-box;
}

.home-sheet-chrome {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border-bottom: 1px solid color-mix(in srgb, var(--home-line) 82%, var(--sheet-accent));
  color: color-mix(in srgb, var(--home-muted) 88%, transparent);
  background: rgba(255, 255, 255, 0.76);
  font-size: 8px;
}

.home-sheet-chrome > span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-sheet-chrome i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--sheet-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sheet-accent) 10%, transparent);
}

.home-sheet-chrome small {
  color: color-mix(in srgb, var(--sheet-accent) 72%, var(--home-muted));
  font-size: 8px;
  font-weight: 700;
}

.home-sheet-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 15px 13px;
}

.home-sheet-identity .home-sheet-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px dashed color-mix(in srgb, var(--sheet-accent) 30%, var(--home-line));
  border-radius: 50%;
  color: var(--sheet-accent);
  background: color-mix(in srgb, var(--sheet-accent) 6%, white);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.58);
  font-family: "Playfair Display", serif;
  font-size: 13px;
  font-weight: 700;
}

.home-sheet-identity strong,
.home-sheet-identity span,
.home-sheet-identity small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-sheet-identity strong {
  margin-bottom: 2px;
  color: var(--home-ink);
  font-family: "Playfair Display", serif;
  font-size: 14px;
  font-weight: 650;
}

.home-sheet-identity div > span {
  color: color-mix(in srgb, var(--sheet-accent) 84%, var(--home-ink));
  font-size: 9px;
  font-weight: 700;
}

.home-sheet-identity small {
  margin-top: 3px;
  color: var(--home-muted);
  font-size: 8px;
}

.home-sheet-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 0 10px 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--home-line) 82%, var(--sheet-accent));
}

.home-sheet-tabs > span {
  display: flex;
  min-width: 0;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  overflow: hidden;
  padding: 5px 6px;
  border: 1px solid color-mix(in srgb, var(--home-line) 88%, var(--sheet-accent));
  border-radius: 999px;
  color: var(--home-muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 8px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-sheet-tabs > span > i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  transform: rotate(45deg);
}

.home-sheet-tabs > .is-active {
  color: var(--sheet-accent);
  border-color: var(--sheet-accent);
  background: color-mix(in srgb, var(--sheet-accent) 8%, white);
}

.home-sheet-panel {
  margin: 10px 10px 0;
  padding: 13px 12px;
  border: 1px solid rgba(42, 33, 58, 0.055);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(33, 23, 43, 0.045);
}

.home-sheet-ability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.home-sheet-ability {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 61px;
  align-content: center;
  justify-items: center;
  padding: 6px 2px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.home-sheet-ability:hover {
  border-color: color-mix(in srgb, var(--sheet-accent) 16%, var(--home-line));
  background: color-mix(in srgb, var(--sheet-accent) 5%, white);
}

.home-sheet-ability:active {
  transform: translateY(1px) scale(0.98);
}

.home-sheet-ability:focus-visible {
  outline: 2px solid var(--sheet-accent);
  outline-offset: 1px;
}

.home-sheet-ability > span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--home-muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-sheet-ability > strong {
  display: block;
  margin-top: 3px;
  color: var(--sheet-accent);
  font-family: "Playfair Display", serif;
  font-size: 23px;
  font-weight: 650;
  line-height: 1;
}

.home-sheet-ability > small,
.home-sheet-ability > em {
  display: none;
}

.home-sheet-roll-result {
  display: grid;
  min-height: 39px;
  grid-template-columns: 27px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  margin-top: 7px;
  padding: 6px 8px;
  border: 1px solid color-mix(in srgb, var(--sheet-accent) 14%, var(--home-line));
  border-radius: 11px;
  color: var(--home-muted);
  background: color-mix(in srgb, var(--sheet-accent) 4%, white);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.home-sheet-roll-result::before {
  content: "";
  width: 25px;
  height: 25px;
  grid-row: 1 / 3;
  border: 1px solid color-mix(in srgb, var(--sheet-accent) 34%, var(--home-line));
  border-radius: 7px;
  color: var(--sheet-accent);
  background:
    radial-gradient(circle at 30% 30%, currentColor 0 1.3px, transparent 1.6px),
    radial-gradient(circle at 70% 30%, currentColor 0 1.3px, transparent 1.6px),
    radial-gradient(circle at 50% 50%, currentColor 0 1.3px, transparent 1.6px),
    radial-gradient(circle at 30% 70%, currentColor 0 1.3px, transparent 1.6px),
    radial-gradient(circle at 70% 70%, currentColor 0 1.3px, transparent 1.6px),
    white;
  box-shadow: 0 3px 8px color-mix(in srgb, var(--sheet-accent) 12%, transparent);
}

.home-sheet-roll-result > span,
.home-sheet-roll-result > strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-sheet-roll-result > span {
  align-self: end;
  color: color-mix(in srgb, var(--sheet-accent) 70%, var(--home-muted));
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-sheet-roll-result > strong {
  align-self: start;
  color: var(--home-ink);
  font-size: 7.5px;
  font-weight: 700;
}

.home-sheet-roll-result.is-result {
  border-color: color-mix(in srgb, var(--sheet-accent) 32%, var(--home-line));
  background: color-mix(in srgb, var(--sheet-accent) 7%, white);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--sheet-accent) 8%, transparent);
}

.home-sheet-roll-result.is-rolling::before {
  animation: home-sheet-die-roll 320ms cubic-bezier(0.22, 0.8, 0.32, 1);
}

@keyframes home-sheet-die-roll {
  0% { transform: rotate(0deg) scale(1); }
  45% { transform: rotate(105deg) scale(0.82); }
  100% { transform: rotate(180deg) scale(1); }
}

.home-sheet-experience {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 4px 0;
  border-top: 1px solid color-mix(in srgb, var(--home-line) 82%, var(--sheet-accent));
  font-size: 8px;
}

.home-sheet-experience span {
  color: var(--home-muted);
  font-weight: 700;
}

.home-sheet-experience strong {
  overflow: hidden;
  color: var(--sheet-accent);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-sheet-demo--questweaver .home-sheet-ability {
  min-height: 67px;
  padding: 7px 4px;
  border: 1px solid color-mix(in srgb, var(--sheet-accent) 9%, var(--home-line));
  border-radius: 11px;
  background: color-mix(in srgb, var(--sheet-accent) 3%, white);
}

.home-sheet-demo--questweaver .home-sheet-ability > small {
  display: block;
  color: color-mix(in srgb, var(--sheet-accent) 68%, var(--home-muted));
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.home-sheet-demo--questweaver .home-sheet-ability > span {
  font-size: 7px;
}

.home-sheet-demo--questweaver .home-sheet-ability > em {
  display: block;
  position: absolute;
  right: 7px;
  bottom: 7px;
  color: var(--home-muted);
  font-size: 8px;
  font-style: normal;
}

.home-sheet-demo--questweaver .home-sheet-ability > strong {
  margin-top: 2px;
  font-size: 20px;
}

.home-sheet-summary,
.home-sheet-continuation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.home-sheet-summary > div,
.home-sheet-continuation > div {
  min-width: 0;
  text-align: center;
}

.home-sheet-summary span,
.home-sheet-summary strong,
.home-sheet-continuation span,
.home-sheet-continuation strong {
  display: block;
}

.home-sheet-summary span,
.home-sheet-continuation span {
  overflow: hidden;
  color: var(--home-muted);
  font-size: 7.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-sheet-summary strong,
.home-sheet-continuation strong {
  margin-top: 3px;
  color: var(--home-ink);
  font-family: "Playfair Display", serif;
  font-size: 17px;
}

.home-sheet-counter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--home-ink);
  font-size: 9px;
}

.home-sheet-counter-head > span {
  color: var(--home-muted);
  font-size: 8px;
}

.home-sheet-hitbar {
  height: 5px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sheet-accent) 8%, #e8e4ec);
}

.home-sheet-hitbar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-green);
}

.home-sheet-stepper {
  display: grid;
  min-height: 38px;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--sheet-accent) 16%, var(--home-line));
  border-radius: 10px;
  text-align: center;
  background: #fff;
}

.home-sheet-stepper > span {
  display: grid;
  height: 100%;
  place-items: center;
  color: color-mix(in srgb, var(--sheet-accent) 68%, white);
  background: color-mix(in srgb, var(--sheet-accent) 8%, white);
  font-size: 18px;
}

.home-sheet-stepper > button {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 0;
  border: 0;
  color: color-mix(in srgb, var(--sheet-accent) 72%, white);
  background: color-mix(in srgb, var(--sheet-accent) 8%, white);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.home-sheet-stepper > button:hover {
  color: var(--sheet-accent);
  background: color-mix(in srgb, var(--sheet-accent) 14%, white);
}

.home-sheet-stepper > button:active {
  transform: scale(0.92);
}

.home-sheet-stepper > button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--sheet-accent);
  outline-offset: -2px;
}

.home-sheet-stepper > button:disabled {
  color: color-mix(in srgb, var(--home-muted) 38%, white);
  background: color-mix(in srgb, var(--home-line) 34%, white);
  cursor: default;
}

.home-sheet-stepper > strong {
  color: var(--home-ink);
  font-family: "Playfair Display", serif;
  font-size: 17px;
}

.home-sheet-stepper.is-updating > strong {
  animation: home-sheet-counter-pop 220ms ease-out;
}

@keyframes home-sheet-counter-pop {
  0% { transform: scale(0.84); color: var(--sheet-accent); }
  100% { transform: scale(1); color: var(--home-ink); }
}

@media (prefers-reduced-motion: reduce) {
  .home-sheet-roll-result.is-rolling::before,
  .home-sheet-stepper.is-updating > strong {
    animation: none;
  }
}

.home-sheet-continuation {
  min-height: 102px;
  align-items: start;
  padding-top: 22px;
}

.home-sheet-continuation strong {
  color: var(--sheet-accent);
  font-size: 22px;
}

@media (max-width: 900px) {
  .home-role-card--player {
    min-height: 620px;
  }

  .home-role-card--player .home-role-copy {
    max-width: 48%;
  }

  .home-role-card--player .home-sheet-demo {
    top: 28px;
    right: -8px;
    bottom: auto;
    left: auto;
    width: 50%;
  }
}

@media (max-width: 680px) {
  .home-role-card--player {
    min-height: 980px;
  }

  .home-role-card--gm {
    min-height: 945px;
  }

  .home-role-card--player .home-role-copy {
    max-width: none;
  }

  .home-role-card--player .home-sheet-demo {
    top: 480px;
    right: 14px;
    bottom: auto;
    left: 14px;
    width: auto;
    min-height: 660px;
    border-radius: 22px 22px 0 0;
    transform: rotate(-0.25deg);
  }
}

/* Conversion proof and light-touch follow-through */

.home-toolkit-repeat {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.home-toolkit-repeat a {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.home-toolkit-repeat a span {
  transition: transform 160ms ease;
}

.home-toolkit-repeat a:hover,
.home-toolkit-repeat a:focus-visible {
  color: #fff;
  border-color: color-mix(in srgb, var(--primary) 76%, white);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  transform: translateY(-1px);
}

.home-toolkit-repeat a:hover span,
.home-toolkit-repeat a:focus-visible span {
  transform: translateX(3px);
}

.home-toolkit-repeat a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 60%, white);
  outline-offset: 3px;
}

.home-collab-copy .home-premium-price {
  margin: 21px 0 -4px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  line-height: 1.5;
}

.home-premium-price strong {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

@media (max-width: 680px) {
  .home-toolkit-repeat {
    justify-content: flex-start;
    margin-top: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-toolkit-repeat a,
  .home-toolkit-repeat a span {
    transition: none;
  }
}

/* Module-led homepage walkthrough */

.home-experience .home-toolkit .home-section-heading {
  max-width: 900px;
}

.home-experience .home-toolkit .home-section-heading h2 {
  font-size: clamp(68px, 9vw, 132px);
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.home-experience .home-toolkit .home-section-heading > p {
  max-width: 720px;
  font-size: 18px;
}

.home-experience .home-collab {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-module-section {
  position: relative;
  padding: 128px 0 138px;
  overflow: hidden;
}

.home-module-section--characters {
  background:
    radial-gradient(circle at 14% 24%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 30%),
    var(--home-paper);
}

.home-module-header {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
  margin-bottom: 76px;
}

.home-module-header h2 {
  margin: 0;
  color: var(--home-ink);
  font-family: "Playfair Display", serif;
  font-size: clamp(62px, 8vw, 112px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.home-module-header strong {
  display: block;
  max-width: 720px;
  margin-bottom: 15px;
  color: var(--home-ink);
  font-family: "Playfair Display", serif;
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.08;
}

.home-module-header p {
  max-width: 700px;
  color: var(--home-muted);
  font-size: 16px;
  line-height: 1.75;
}

.home-module-character-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(38px, 7vw, 96px);
  align-items: center;
}

.home-module-character-scene {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 30px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.86), color-mix(in srgb, var(--primary) 8%, var(--home-paper))),
    var(--home-paper-bright);
  box-shadow: 0 32px 76px rgba(35, 26, 48, 0.1);
}

.home-module-character-scene::after {
  content: "";
  position: absolute;
  right: 6%;
  bottom: 44px;
  left: 6%;
  height: 34px;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(32, 23, 44, 0.2), transparent 70%);
  filter: blur(8px);
}

.home-module-character-art {
  position: absolute;
  z-index: 1;
  inset: 20px 12px 58px;
  width: calc(100% - 24px);
  height: calc(100% - 78px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 22px 24px rgba(32, 23, 44, 0.15));
}

.variant-questweaver .home-module-character-art {
  inset: 0 38px 36px auto;
  width: 66%;
  height: calc(100% - 36px);
  object-position: right bottom;
}

.home-module-character-card {
  position: absolute;
  z-index: 3;
  right: 26px;
  bottom: 24px;
  left: 26px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 15px 17px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--home-line));
  border-radius: 15px;
  background: color-mix(in srgb, var(--home-paper-bright) 90%, transparent);
  box-shadow: 0 15px 36px rgba(30, 22, 42, 0.14);
  backdrop-filter: blur(16px);
}

.home-module-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  font-size: 11px;
  font-weight: 800;
}

.home-module-character-card strong,
.home-module-character-card span {
  display: block;
}

.home-module-character-card strong {
  color: var(--home-ink);
  font-family: "Playfair Display", serif;
  font-size: 16px;
}

.home-module-character-card div > span,
.home-module-character-card small {
  margin-top: 2px;
  color: var(--home-muted);
  font-size: 10px;
}

.home-module-character-card small {
  margin: 0;
  color: color-mix(in srgb, var(--accent-green) 72%, var(--home-ink));
  font-weight: 700;
}

.home-module-feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}

.home-module-feature-list article {
  min-height: 156px;
  padding: 27px 0 25px;
  border-top: 1px solid var(--home-line);
}

.home-module-feature-list h3 {
  margin: 0 0 9px;
  color: var(--home-ink);
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 600;
}

.home-module-feature-list p {
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.68;
}

.home-module-feature-list > .btn {
  grid-column: 1 / -1;
  width: max-content;
}

.home-module-section--compendium {
  border-top: 1px solid var(--home-line);
  background:
    radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--primary) 9%, transparent), transparent 27%),
    var(--home-paper-bright);
}

.home-module-compendium-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.52fr) minmax(0, 1.48fr);
  gap: clamp(42px, 7vw, 98px);
  align-items: center;
}

.home-module-compendium-copy p {
  max-width: 340px;
  color: var(--home-muted);
  font-size: 15px;
  line-height: 1.72;
}

.home-module-compendium-surface {
  overflow: hidden;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--home-line));
  border-radius: 25px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--primary) 4%, white));
  box-shadow: 0 28px 72px rgba(35, 26, 48, 0.1);
}

.home-module-compendium-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid var(--home-line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--home-paper) 72%, white);
}

.home-module-compendium-bar > span {
  position: relative;
  width: 14px;
  height: 14px;
  border: 1.7px solid var(--home-muted);
  border-radius: 50%;
}

.home-module-compendium-bar > span::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 6px;
  height: 1.7px;
  border-radius: 2px;
  background: var(--home-muted);
  transform: rotate(45deg);
}

.home-module-compendium-bar strong {
  color: var(--home-muted);
  font-size: 12px;
  font-weight: 600;
}

.home-module-compendium-bar small {
  padding: 4px 7px;
  border: 1px solid var(--home-line);
  border-radius: 6px;
  color: var(--home-muted);
  background: white;
  font-size: 9px;
}

.home-module-compendium-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.home-module-compendium-grid article {
  display: grid;
  min-height: 78px;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
}

.home-module-compendium-grid article > span {
  color: color-mix(in srgb, var(--primary) 56%, var(--home-muted));
  font-family: "Playfair Display", serif;
  font-size: 12px;
}

.home-module-compendium-grid strong,
.home-module-compendium-grid small {
  display: block;
}

.home-module-compendium-grid strong {
  color: var(--home-ink);
  font-family: "Playfair Display", serif;
  font-size: 15px;
  font-weight: 600;
}

.home-module-compendium-grid small {
  margin-top: 3px;
  color: var(--home-muted);
  font-size: 9px;
}

.home-module-compendium-grid i {
  color: var(--primary);
  font-size: 11px;
  font-style: normal;
}

.home-module-compendium-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 5px 2px;
  color: var(--home-muted);
  font-size: 10px;
}

.home-module-compendium-status span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.home-module-compendium-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-green) 13%, transparent);
}

.home-module-compendium-status strong {
  color: var(--home-ink);
  font-weight: 700;
}

.home-module-section--encounter {
  min-height: 860px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 28%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 31%),
    linear-gradient(150deg, var(--home-night-soft), var(--home-night));
}

.home-module-section--encounter::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 8, 18, 0.94), rgba(7, 8, 18, 0.5) 55%, rgba(7, 8, 18, 0.78)),
    radial-gradient(rgba(255, 255, 255, 0.2) 0.6px, transparent 0.6px);
  background-size: auto, 23px 23px;
}

.home-module-encounter-art {
  position: absolute;
  z-index: 0;
  top: 80px;
  right: -70px;
  width: min(58vw, 720px);
  height: auto;
  opacity: 0.42;
  mix-blend-mode: screen;
  filter: saturate(0.84);
}

.home-module-section--encounter .home-container {
  position: relative;
  z-index: 2;
}

.home-module-header--light h2,
.home-module-header--light strong {
  color: #fff;
}

.home-module-header--light p {
  color: rgba(255, 255, 255, 0.58);
}

.home-module-encounter-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(480px, 1.4fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: end;
}

.home-module-encounter-copy {
  padding-bottom: 18px;
}

.home-module-encounter-tracker {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, rgba(255, 255, 255, 0.16));
  border-radius: 24px;
  background: color-mix(in srgb, var(--home-night-soft) 88%, transparent);
  box-shadow: 0 34px 84px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px);
}

.home-module-encounter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px 21px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.home-module-encounter-bar small,
.home-module-encounter-bar strong {
  display: block;
}

.home-module-encounter-bar small {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
}

.home-module-encounter-bar strong {
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 600;
}

.home-module-encounter-bar > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: color-mix(in srgb, var(--accent-green) 70%, white);
  font-size: 10px;
  font-weight: 700;
}

.home-module-encounter-bar > span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-green) 13%, transparent);
}

.home-module-encounter-list {
  padding: 10px;
}

.home-module-encounter-list article {
  display: grid;
  min-height: 74px;
  grid-template-columns: 40px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 15px;
  border: 1px solid transparent;
  border-radius: 13px;
}

.home-module-encounter-list article + article {
  margin-top: 4px;
}

.home-module-encounter-list article.is-active {
  border-color: color-mix(in srgb, var(--primary) 38%, transparent);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.home-module-encounter-list article > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: color-mix(in srgb, var(--primary) 48%, white);
  background: rgba(255, 255, 255, 0.05);
  font-size: 10px;
  font-weight: 800;
}

.home-module-encounter-list strong,
.home-module-encounter-list small {
  display: block;
}

.home-module-encounter-list strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

.home-module-encounter-list small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 9px;
}

.home-module-encounter-list b {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 650;
}

.home-module-encounter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
}

.home-module-encounter-actions strong {
  color: color-mix(in srgb, var(--primary) 42%, white);
  font-weight: 700;
}

.home-module-encounter-actions i {
  margin-left: 5px;
  font-style: normal;
}

@media (max-width: 900px) {
  .home-module-header,
  .home-module-character-layout,
  .home-module-compendium-layout,
  .home-module-encounter-layout {
    grid-template-columns: 1fr;
  }

  .home-module-header {
    gap: 24px;
    margin-bottom: 58px;
  }

  .home-module-header > div {
    max-width: 720px;
  }

  .home-module-character-scene {
    min-height: 510px;
  }

  .home-module-compendium-copy p {
    max-width: 620px;
  }

  .home-module-encounter-layout {
    gap: 36px;
  }

  .home-module-encounter-copy {
    padding-bottom: 0;
  }

  .home-module-encounter-tracker {
    width: min(100%, 760px);
  }
}

@media (max-width: 680px) {
  .home-experience .home-toolkit .home-section-heading h2 {
    font-size: 70px;
  }

  .home-module-section {
    padding: 88px 0 94px;
  }

  .home-module-header {
    margin-bottom: 42px;
  }

  .home-module-header h2 {
    font-size: 60px;
  }

  .home-module-header strong {
    font-size: 27px;
  }

  .home-module-header p {
    font-size: 15px;
  }

  .home-module-character-scene {
    min-height: 430px;
    border-radius: 22px;
  }

  .home-module-character-art {
    inset: 18px 0 62px;
    width: 100%;
    height: calc(100% - 80px);
  }

  .variant-questweaver .home-module-character-art {
    right: 10px;
    bottom: 48px;
    width: 82%;
    height: calc(100% - 48px);
  }

  .home-module-character-card {
    right: 14px;
    bottom: 14px;
    left: 14px;
    grid-template-columns: auto 1fr;
  }

  .home-module-character-card > small {
    display: none;
  }

  .home-module-feature-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home-module-feature-list article {
    min-height: 0;
  }

  .home-module-compendium-surface {
    padding: 12px;
    border-radius: 20px;
  }

  .home-module-compendium-grid {
    grid-template-columns: 1fr;
  }

  .home-module-compendium-status {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .home-module-section--encounter {
    min-height: 840px;
  }

  .home-module-encounter-art {
    top: 180px;
    right: -110px;
    width: 620px;
    max-width: none;
    opacity: 0.28;
  }

  .home-module-encounter-bar {
    align-items: flex-start;
    padding: 20px;
  }

  .home-module-encounter-bar strong {
    font-size: 20px;
  }

  .home-module-encounter-list article {
    min-height: 76px;
    grid-template-columns: 38px 1fr;
  }

  .home-module-encounter-list b {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-module-character-art {
    transition: none;
  }
}

/* Screenshot-led module variation */

.home-experience .home-toolkit {
  padding-top: 118px;
}

.home-module-adventure-intro {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(46px, 7vw, 96px);
  align-items: center;
  margin-bottom: 72px;
}

.home-module-adventure-copy {
  max-width: 760px;
  margin: 0;
}

.home-module-adventure-copy h2,
.home-module-header h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(44px, 5.4vw, 68px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.home-experience .home-toolkit .home-module-adventure-copy h2 {
  color: #fff;
  font-size: clamp(44px, 5.4vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.home-module-subtitle,
.home-module-header strong {
  display: block;
  max-width: 760px;
  margin: 18px 0 14px;
  font-family: "Playfair Display", serif;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.home-module-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.home-experience .home-toolkit .home-module-adventure-copy > p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 17px;
  line-height: 1.7;
}

.home-module-section {
  padding: 112px 0 122px;
}

.home-module-header {
  grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1.58fr);
  gap: clamp(32px, 6vw, 84px);
  margin-bottom: 58px;
}

.home-module-header h2 {
  color: var(--home-ink);
}

.home-module-header strong {
  margin-top: 0;
  color: var(--home-ink);
}

.home-module-header p {
  max-width: 680px;
  font-size: 16px;
  line-height: 1.7;
}

.home-module-showcase {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
}

.home-module-showcase--reverse .home-module-screenshot-frame {
  order: 2;
}

.home-module-screenshot-frame {
  position: relative;
  display: grid;
  min-height: 570px;
  margin: 0;
  place-items: end center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--home-line));
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--primary) 14%, white), transparent 52%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--primary) 5%, var(--home-paper)));
  box-shadow: 0 30px 74px rgba(35, 26, 48, 0.1);
}

.home-module-screenshot-frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 74px;
  pointer-events: none;
  background: linear-gradient(transparent, color-mix(in srgb, var(--home-paper-bright) 94%, transparent));
}

.home-module-screenshot {
  position: absolute;
  z-index: 1;
  top: 28px;
  left: 50%;
  width: min(76%, 390px);
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 26px 30px rgba(26, 19, 38, 0.18));
}

.home-module-screenshot-frame--dark {
  border-color: rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 54%),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
}

.home-module-screenshot-frame--dark::after {
  background: linear-gradient(transparent, color-mix(in srgb, var(--home-night) 96%, transparent));
}

.home-module-screenshot-frame--adventure {
  min-height: 430px;
}

.home-module-screenshot-frame--adventure .home-module-screenshot {
  top: 24px;
  width: min(72%, 300px);
}

.home-module-screenshot-frame--character-art {
  min-height: 520px;
  place-items: end center;
}

.home-module-character-illustration {
  position: absolute;
  z-index: 1;
  right: 3%;
  bottom: 34px;
  width: 88%;
  height: 92%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 24px 26px rgba(26, 19, 38, 0.16));
}

.home-module-screenshot-frame figcaption {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 18px;
  left: 22px;
  color: var(--home-muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.home-module-feature-list {
  align-content: start;
}

.home-module-feature-list article {
  min-height: 142px;
}

.home-module-feature-list--compact article {
  min-height: 112px;
  padding-top: 22px;
  padding-bottom: 19px;
}

.home-module-feature-list > .btn {
  margin-top: 24px;
}

.home-module-section--encounter {
  min-height: 0;
}

.home-module-section--encounter .home-module-header h2,
.home-module-section--encounter .home-module-header strong {
  color: #fff;
}

.home-module-feature-list--dark article {
  border-color: rgba(255, 255, 255, 0.12);
}

.home-module-feature-list--dark h3 {
  color: #fff;
}

.home-module-feature-list--dark p {
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 900px) {
  .home-module-adventure-intro,
  .home-module-showcase {
    grid-template-columns: 1fr;
  }

  .home-module-adventure-intro {
    gap: 46px;
  }

  .home-module-adventure-intro .home-module-screenshot-frame {
    width: min(100%, 680px);
  }

  .home-module-showcase--reverse .home-module-screenshot-frame {
    order: 0;
  }

  .home-module-screenshot-frame {
    width: min(100%, 680px);
  }
}

@media (max-width: 680px) {
  .home-experience .home-toolkit {
    padding-top: 86px;
  }

  .home-module-adventure-intro {
    margin-bottom: 52px;
  }

  .home-experience .home-toolkit .home-module-adventure-copy h2,
  .home-module-header h2 {
    font-size: 46px;
  }

  .home-module-subtitle,
  .home-module-header strong {
    margin-top: 13px;
    font-size: 25px;
  }

  .home-experience .home-toolkit .home-module-adventure-copy > p,
  .home-module-header p {
    font-size: 15px;
  }

  .home-module-section {
    padding: 86px 0 92px;
  }

  .home-module-header {
    gap: 18px;
    margin-bottom: 40px;
  }

  .home-module-screenshot-frame,
  .home-module-screenshot-frame--character-art {
    min-height: 430px;
    border-radius: 23px;
  }

  .home-module-screenshot-frame--adventure {
    min-height: 380px;
  }

  .home-module-screenshot {
    top: 20px;
    width: min(78%, 300px);
  }

  .home-module-screenshot-frame--adventure .home-module-screenshot {
    width: min(70%, 250px);
  }

  .home-module-feature-list article,
  .home-module-feature-list--compact article {
    min-height: 0;
  }
}

/* Module walkthrough refinements */

.home-experience .home-feature-heading-link,
.home-experience .home-feature-heading-link:hover,
.home-experience .home-feature-heading-link:focus-visible {
  text-decoration: none;
}

.home-experience .home-module-adventure-intro {
  display: block;
  margin-bottom: 64px;
}

.home-experience .home-toolkit .home-module-adventure-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(32px, 5vw, 66px);
  align-items: center;
  width: 100%;
  max-width: none;
}

.home-experience .home-module-adventure-copy > h2,
.home-experience .home-module-adventure-copy > .home-module-subtitle {
  grid-column: 1 / -1;
}

.home-experience .home-module-adventure-copy .home-module-subtitle {
  margin-top: 24px;
}

.home-experience .home-module-adventure-copy > p {
  grid-column: 1;
}

.home-experience .home-module-adventure-copy > .home-module-actions {
  grid-column: 2;
  grid-row: 3;
  flex-wrap: nowrap;
  justify-self: end;
  margin-top: 0;
}

.home-experience .home-module-adventure-copy > .home-module-actions .home-section-cta,
.home-toolkit-ghost {
  white-space: nowrap;
}

.home-experience .home-module-header {
  display: block;
  max-width: 860px;
  margin-bottom: 66px;
}

.home-experience .home-module-header strong {
  margin-top: 26px;
  margin-bottom: 15px;
}

.home-experience .home-module-header p {
  max-width: 720px;
}

.home-experience .home-module-showcase {
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
}

.home-experience .home-module-showcase--reverse .home-module-native-shot {
  order: 2;
}

.home-module-native-shot {
  display: flex;
  min-width: 0;
  margin: 0;
  align-items: flex-start;
  justify-content: center;
}

.home-module-native-screenshot {
  display: block;
  width: min(100%, 340px);
  height: auto;
  border-radius: 20px;
  filter: drop-shadow(0 28px 34px rgba(31, 23, 43, 0.17));
}

.home-module-native-shot--dark .home-module-native-screenshot {
  filter: drop-shadow(0 30px 38px rgba(0, 0, 0, 0.38));
}

.home-module-character-visual {
  display: flex;
  min-height: 550px;
  margin: 0;
  align-items: flex-end;
  flex-direction: column;
  justify-content: flex-end;
}

.home-module-character-visual .home-module-character-illustration {
  position: static;
  width: min(100%, 510px);
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 26px rgba(26, 19, 38, 0.14));
}

.home-module-character-visual figcaption {
  width: 100%;
  margin-top: 12px;
  color: var(--home-muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.home-module-actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 25px;
}

.home-module-actions .home-section-cta {
  margin-top: 0;
}

.home-table-testimonials {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1.55fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
  margin-top: 68px;
  padding-top: 48px;
  border-top: 1px solid var(--home-line);
}

.home-table-testimonials-heading h3 {
  margin: 0;
  color: var(--home-ink);
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.home-table-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
}

.home-table-testimonial {
  margin: 0;
  padding-left: 18px;
  border-left: 1px solid color-mix(in srgb, var(--primary) 22%, var(--home-line));
}

.home-table-testimonial-rating {
  display: block;
  margin-bottom: 9px;
  color: color-mix(in srgb, var(--secondary) 76%, #9f6b19);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.home-table-testimonial blockquote,
.home-table-testimonial blockquote p {
  margin: 0;
}

.home-table-testimonial blockquote p {
  color: color-mix(in srgb, var(--home-ink) 83%, var(--home-muted));
  font-family: "Playfair Display", serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.home-table-testimonials + .home-import-card {
  margin-top: 72px;
}

@media (max-width: 900px) {
  .home-experience .home-module-showcase {
    grid-template-columns: 1fr;
  }

  .home-experience .home-module-showcase--reverse .home-module-native-shot {
    order: 0;
  }

  .home-module-native-shot,
  .home-module-character-visual {
    width: min(100%, 620px);
  }

  .home-table-testimonials {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 680px) {
  .home-experience .home-module-adventure-intro {
    margin-bottom: 54px;
  }

  .home-experience .home-module-adventure-copy .home-module-subtitle,
  .home-experience .home-module-header strong {
    margin-top: 21px;
  }

  .home-experience .home-module-header {
    margin-bottom: 42px;
  }

  .home-module-native-screenshot {
    width: min(78vw, 300px);
  }

  .home-module-character-visual {
    min-height: 0;
  }

  .home-module-actions {
    gap: 13px 17px;
    margin-top: 21px;
  }

  .home-table-testimonials {
    margin-top: 52px;
    padding-top: 36px;
  }

  .home-table-testimonial-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .home-table-testimonial {
    padding-left: 15px;
  }
}

/* Canonical module hierarchy */

.home-module-section--encounter {
  isolation: isolate;
  background: var(--home-night);
}

.home-module-encounter-backdrop {
  position: absolute;
  z-index: -3;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-module-section--encounter::before {
  z-index: -2;
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(8, 8, 18, 0.66) 0%, rgba(8, 8, 18, 0.58) 42%, var(--home-night) 100%),
    linear-gradient(90deg, rgba(8, 8, 18, 0.82), rgba(8, 8, 18, 0.28) 65%, rgba(8, 8, 18, 0.58));
  background-size: cover;
}

.home-module-section--encounter::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 24%, color-mix(in srgb, var(--primary) 24%, transparent), transparent 30%),
    linear-gradient(180deg, transparent 48%, var(--home-night) 96%);
}

.home-module-section--compendium {
  padding-bottom: 118px;
}

.home-compendium-composition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
  gap: 0 clamp(48px, 7vw, 94px);
  align-items: start;
}

.home-compendium-composition > .home-module-native-shot {
  grid-column: 2;
  grid-row: 1;
}

.home-compendium-composition--tablet {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.home-compendium-composition--tablet .home-module-native-screenshot {
  width: 100%;
}

.home-compendium-composition > .home-module-feature-list {
  grid-column: 1;
  grid-row: 1;
}

.home-module-section--compendium .home-homebrew {
  grid-column: 1 / -1;
  grid-row: auto;
  margin-top: 18px;
  padding: 22px 0 0;
  border-top: 1px solid var(--home-line);
}

.home-module-section--compendium .home-homebrew-heading {
  display: block;
  margin-bottom: 22px;
}

.home-module-section--compendium .home-homebrew-heading h3 {
  margin: 0 0 9px;
  color: var(--home-ink);
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
}

.home-module-section--compendium .home-homebrew-heading p {
  max-width: 590px;
  margin: 0;
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.68;
}

.home-module-section--compendium .home-homebrew-all {
  margin-top: 0;
  border-color: color-mix(in srgb, var(--primary) 24%, var(--home-line));
  color: var(--home-ink);
  background: transparent;
  box-shadow: none;
  white-space: nowrap;
}

.home-module-section--compendium .home-homebrew-all:hover,
.home-module-section--compendium .home-homebrew-all:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--home-line));
  color: var(--primary-dark);
  background: color-mix(in srgb, var(--primary) 6%, transparent);
  box-shadow: none;
}

.home-module-section--compendium .home-drop-card {
  min-height: 235px;
  padding: 20px;
}

.home-module-section--compendium .home-drop-name {
  font-size: 21px;
}

.home-import-card {
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(34px, 5vw, 68px);
  align-items: start;
  margin-top: 64px;
  padding: 38px 0 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--home-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-import-card > h3 {
  max-width: 390px;
  margin: 0;
  color: var(--home-ink);
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.08;
}

.home-import-card > p {
  max-width: 650px;
  margin: 2px 0 0;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .home-compendium-composition {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .home-compendium-composition > .home-module-native-shot,
  .home-compendium-composition > .home-module-feature-list {
    grid-column: 1;
  }

  .home-compendium-composition > .home-module-native-shot {
    grid-row: 1;
  }

  .home-compendium-composition > .home-module-feature-list {
    grid-row: 2;
  }

  .home-homebrew-heading,
  .home-import-card {
    grid-template-columns: 1fr;
  }

  .home-homebrew-heading {
    gap: 22px;
  }

  .home-import-card {
    gap: 14px;
  }
}

@media (max-width: 680px) {
  .home-experience .home-module-adventure-copy {
    grid-template-columns: 1fr;
  }

  .home-experience .home-module-adventure-copy > p,
  .home-experience .home-module-adventure-copy > .home-module-actions {
    grid-column: 1;
    grid-row: auto;
  }

  .home-experience .home-module-adventure-copy > .home-module-actions {
    justify-self: start;
    margin-top: 21px;
  }

  .home-module-section--compendium .home-homebrew {
    margin-top: 18px;
    padding-top: 22px;
  }

  .home-homebrew-heading {
    margin-bottom: 22px;
  }

  .home-module-section--compendium .home-drop-card {
    min-height: 270px;
  }

  .home-import-card {
    margin-top: 46px;
    padding: 32px 0 0;
  }

  .home-module-encounter-backdrop {
    object-position: 58% center;
  }
}
/* Shipping product previews: raw device captures and the shared invite modal. */
.home-app-window.home-app-window--capture {
  height: auto;
  aspect-ratio: 4 / 3;
  background: #fff;
  backdrop-filter: none;
}
.home-hero-tablet {
  display: block;
  width: 100%;
  height: auto;
}
.home-role-card--player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-height: 0;
  padding: 32px 24px 32px 32px;
}
.home-role-card--player .home-role-copy {
  max-width: none;
  padding: 0;
}
.home-player-capture {
  width: 100%;
  max-width: 300px;
  margin: 0;
  align-self: center;
}
.home-player-capture img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(33, 23, 43, 0.15);
}
.home-bento--shipping .home-bento-card--timeline,
.home-bento--shipping .home-bento-card--sound {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
}
.home-bento--shipping .home-timeline-demo,
.home-bento--shipping .home-soundscape-demo {
  position: relative;
  inset: auto;
  flex-shrink: 0;
  margin: auto 24px 24px;
}
@media (min-width: 681px) and (max-width: 900px) {
  .home-bento--shipping .home-bento-card--map { grid-column: span 12; }
}
.home-party-stage.home-party-stage--invite {
  min-height: 0;
  padding: 0 0 240px;
}
.home-party-stage--invite .home-collab-character {
  z-index: 6;
  width: 280px;
  bottom: -12px;
  right: -48px;
  transform: none;
}
.home-party-stage--invite .home-collab-art-credit {
  right: 220px;
  bottom: 16px;
}
.home-invite-preview {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 560px;
  margin: 0;
  perspective: 1400px;
}
.home-invite-modal {
  --invite-ink: #23212B;
  --invite-muted: #7A7A8C;
  --invite-accent: #6C3DF4;
  --invite-accent-dark: #4B23B8;
  --invite-border: #EDEBFB;
  --invite-danger: #CE423E;
  padding: 24px;
  border-radius: 16px;
  color: var(--invite-ink);
  background: #fff;
  font-family: "Public Sans", sans-serif;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.25);
  /* Match the hero tablet: this is a product illustration, not a live dialog. */
  transform: rotateY(-5deg) rotateX(1deg);
}
.variant-questweaver .home-invite-modal {
  --invite-ink: #212E3F;
  --invite-muted: #7A7E8C;
  --invite-accent: #233E6B;
  --invite-accent-dark: #192D4D;
  --invite-border: #F7F3F0;
  --invite-danger: #B23A3A;
}
.home-invite-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.home-invite-title {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.home-invite-modal p {
  margin: 4px 0 0;
  color: var(--invite-muted);
  font-size: 12px;
  line-height: 18px;
}
.home-invite-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  color: var(--invite-muted);
}
.home-invite-modal svg:not(.home-invite-qr) {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-invite-body,
.home-invite-footer,
.home-invite-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.home-invite-body { justify-content: space-between; }
.home-invite-code-group { flex: 1; min-width: min(220px, 100%); }
.home-invite-label {
  display: block;
  color: var(--invite-muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.home-invite-code {
  display: block;
  margin: 8px 0;
  font-family: "Playfair Display", serif;
  font-size: 38px;
  line-height: 44px;
  font-weight: 800;
  letter-spacing: 4px;
  white-space: nowrap;
}
.home-invite-actions { gap: 8px; }
.home-invite-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}
.home-invite-action--copy {
  color: var(--invite-accent-dark);
  background: color-mix(in srgb, var(--invite-accent) 10%, transparent);
}
.home-invite-action--share {
  color: var(--invite-accent);
  border: 1px solid var(--invite-accent);
}
.home-invite-action--revoke {
  color: var(--invite-danger);
  background: color-mix(in srgb, var(--invite-danger) 12%, transparent);
}
.home-invite-qr { width: 111px; height: 111px; fill: var(--invite-ink); }
.home-invite-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--invite-border);
}
.home-invite-footer p { flex: 1; min-width: min(220px, 100%); margin: 0; }
@media (max-width: 680px) {
  .home-role-card--player {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 28px;
  }
  .home-player-capture { max-width: 260px; justify-self: center; }
  .home-bento--shipping .home-bento-card--timeline,
  .home-bento--shipping .home-bento-card--sound { grid-column: auto; }
  .home-party-stage.home-party-stage--invite { padding-bottom: 250px; }
  .home-invite-modal { transform: rotateY(-3deg) rotateX(1deg); }
  .home-party-stage--invite .home-collab-character { width: 240px; right: -32px; bottom: 0; }
  .home-party-stage--invite .home-collab-art-credit {
    right: auto;
    left: 0;
    bottom: 0;
    max-width: calc(100% - 195px);
    white-space: normal;
    transform: none;
  }
}
