/* Compact heading scale and icon-led controls. Loaded after the main theme. */
.main-nav {
  gap: 16px;
  font-size: 13px;
}

.main-nav a,
.menu-toggle,
.button {
  display: inline-flex;
  align-items: center;
}

/* Desktop uses the full navigation; the compact menu is mobile-only. */
.menu-toggle {
  display: none;
}

.main-nav a {
  gap: 6px;
  white-space: nowrap;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, text-shadow .2s ease, box-shadow .2s ease, transform .2s ease;
}

.main-nav a:not(.nav-cta):hover,
.main-nav a:not(.nav-cta):focus-visible {
  color: var(--rose-dark);
  border-color: rgba(185, 93, 139, .72);
  background: rgba(255, 255, 255, .68);
  text-shadow: 0 0 9px rgba(185, 93, 139, .52);
  box-shadow: 0 0 12px rgba(185, 93, 139, .18), inset 0 0 8px rgba(255, 255, 255, .65);
  outline: none;
}

.nav-cta {
  padding: 8px 15px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(240, 163, 60, .32);
  outline: none;
}

.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle {
  gap: 6px;
}

.menu-toggle .icon {
  width: 18px;
  height: 18px;
  transition: transform .2s ease;
}

.menu-toggle.is-open .menu-icon {
  transform: rotate(90deg);
}

.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
}

.section h2 {
  font-size: clamp(25px, 3.2vw, 38px);
}

.guide-copy h2 {
  font-size: clamp(25px, 3.2vw, 36px);
}

.final-cta h2 {
  font-size: clamp(24px, 3.2vw, 34px);
}

.floating-detail {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(126, 70, 24, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}

.floating-detail:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(126, 70, 24, .34);
}

/* Force the detail shortcut to the viewport's lower-right corner. */
body > .floating-detail {
  position: fixed !important;
  z-index: 9999 !important;
  top: auto !important;
  left: auto !important;
  right: max(24px, env(safe-area-inset-right)) !important;
  bottom: max(24px, env(safe-area-inset-bottom)) !important;
}

.scene-strip {
  padding: 80px 0;
  background: #fff;
}

.scene-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.scene-grid figure {
  margin: 0;
}

.scene-grid img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.scene-grid figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.scene-grid h2 {
  margin: 0 0 16px;
  color: var(--rose-dark);
  font-size: clamp(25px, 3.2vw, 36px);
}

.scene-grid p:last-child {
  color: var(--muted);
}

.gallery-heading {
  margin-bottom: 28px;
  text-align: center;
}

.gallery-heading h2 {
  margin: 0;
  color: var(--rose-dark);
  font-size: clamp(25px, 3.2vw, 36px);
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr);
  gap: 22px;
  align-items: stretch;
}

.gallery-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(185, 93, 139, .2);
  border-radius: var(--radius);
  background: var(--lav);
  box-shadow: var(--shadow);
}

.gallery-main img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #30283a;
  transition: opacity .2s ease, filter .25s ease;
}

.gallery-main figcaption {
  padding: 10px 14px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gallery-thumb {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--lav);
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(98, 54, 96, .1);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.gallery-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.42);
  pointer-events: none;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  filter: saturate(.82) brightness(.88);
  transition: transform .28s ease, filter .28s ease;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible,
.gallery-thumb.is-active {
  transform: translateY(-3px);
  border-color: var(--orange);
  box-shadow: 0 11px 24px rgba(98, 54, 96, .2), 0 0 0 3px rgba(240,163,60,.14);
  outline: none;
}

.gallery-thumb:hover img,
.gallery-thumb:focus-visible img,
.gallery-thumb.is-active img {
  transform: scale(1.045);
  filter: saturate(1.05) brightness(1);
}

/* Keep the FAQ heading above the question list on every viewport. */
.faq-layout {
  display: block;
}

.faq-layout > div:first-child {
  max-width: 720px;
  margin-bottom: 28px;
}

.faq-layout .faq-list {
  max-width: 900px;
}

.friends-links {
  padding: 54px 0 58px;
  background: linear-gradient(115deg, #30273a 0%, #76506f 45%, #b95d8b 100%);
  color: #fff;
  text-align: center;
}

.friends-inner .section-kicker {
  margin-bottom: 6px;
  color: #f7c783;
}

.friends-inner h2 {
  margin: 0 0 25px;
  color: #fff;
  font-size: clamp(27px, 3.5vw, 40px);
}

.friends-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.friends-list a {
  min-width: 150px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .22s ease, color .22s ease, border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.friends-list a:hover,
.friends-list a:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 220, 163, .8);
  background: rgba(255, 220, 163, .18);
  color: #fff3d9;
  box-shadow: 0 8px 20px rgba(45, 27, 47, .2);
  outline: none;
}

@media (max-width: 720px) {
  .friends-links {
    padding: 44px 0 48px;
  }

  .friends-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .friends-list a {
    min-width: 0;
    padding: 10px 8px;
    font-size: 13px;
  }
}

/* Modern visual micro-interactions */
body {
  overflow-x: hidden;
}

.hero-art,
.feature-card,
.guide-image,
.scene-grid figure,
.feature-points > div,
.timeline li {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background-color .28s ease;
}

.hero-art:hover {
  transform: translateY(-6px) rotate(.15deg);
  filter: saturate(1.04);
}

.hero-art:hover img {
  box-shadow: 0 26px 70px rgba(98, 54, 96, .2);
}

.feature-card {
  position: relative;
  isolation: isolate;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.72), rgba(242,232,246,.42));
  opacity: 0;
  transition: opacity .28s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(185, 93, 139, .34);
  box-shadow: 0 20px 38px rgba(98, 54, 96, .16);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card img {
  transition: transform .4s ease, filter .4s ease;
}

.feature-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.02);
}

.guide-image:hover,
.scene-grid figure:hover {
  transform: translateY(-6px);
}

/* Keep the guide artwork fully visible; never crop the source image. */
.guide-image {
  overflow: visible;
}

.guide-image img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

.guide-image:hover img,
.scene-grid figure:hover img {
  box-shadow: 0 25px 60px rgba(98, 54, 96, .2);
}

.feature-points > div:hover {
  transform: translateY(-5px);
  border-top-color: var(--orange);
}

/* Eight feature points: four columns on desktop, two on tablet. */
.feature-points {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 34px;
}

@media (max-width: 980px) {
  .feature-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.timeline li {
  border-radius: 12px;
  padding: 10px 12px 14px;
}

.timeline li:hover {
  background: rgba(255, 255, 255, .45);
  border-bottom-color: var(--rose);
  transform: translateX(4px);
}

.button,
.floating-detail {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.button::after,
.floating-detail::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,.4) 48%, transparent 70%);
  transform: translateX(-125%);
  transition: transform .55s ease;
}

.button > *,
.floating-detail > * {
  position: relative;
  z-index: 1;
}

.button:hover::after,
.floating-detail:hover::after {
  transform: translateX(125%);
}

.button:focus-visible,
.floating-detail:focus-visible,
.brand:focus-visible,
.main-nav a:focus-visible,
.faq-list summary:focus-visible,
.guide-list summary:focus-visible {
  outline: 3px solid rgba(240, 163, 60, .55);
  outline-offset: 3px;
}

.faq-list details {
  transition: background-color .25s ease, padding-left .25s ease, border-color .25s ease;
  border-radius: 10px;
}

.faq-list details:hover,
.faq-list details[open] {
  padding-left: 12px;
  padding-right: 12px;
  background: rgba(242, 232, 246, .42);
  border-bottom-color: var(--lav-deep);
}

.faq-list details[open] summary {
  color: var(--rose);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 980px) {
  .main-nav {
    gap: 10px;
    font-size: 12px;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav a {
    gap: 9px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .floating-detail {
    right: 14px;
    bottom: 14px;
    padding: 11px 15px;
  }

  body > .floating-detail {
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: max(14px, env(safe-area-inset-bottom)) !important;
  }

  .section h2,
  .guide-copy h2 {
    font-size: 27px;
  }

  .scene-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .feature-points {
    grid-template-columns: 1fr;
    row-gap: 26px;
  }

  .screenshot-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-main img {
    min-height: 0;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    gap: 8px;
  }
}
