@font-face {
  font-family: "Berkshire Swash";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/berkshire-swash-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/nunito-sans-latin.woff2") format("woff2");
}

:root {
  --gold: #FFDF7D;
  --parchment: #E9D8A6;
  --cream: #FFF1BD;
  --butter: #FFE9A8;
  --purple: #4A3A66;
  --violet: #A486FF;
  --lilac: #D6A8FF;
  --cyan: #9FE8FF;
  --cyan-strong: #8BE7FF;
  --leaf: #B8F28A;
  --leaf-strong: #9AF18D;
  --ink: #2A2140;
  --radius: 8px;
  --shadow: 0 18px 55px rgba(42, 33, 64, 0.34);
  --max: 1180px;
  color-scheme: dark;
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--purple);
  color: var(--cream);
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(74, 58, 102, 0.98), rgba(42, 33, 64, 1) 44%, rgba(74, 58, 102, 1)),
    var(--purple);
  color: var(--cream);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(circle at 12% 18%, rgba(159, 232, 255, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 14%, rgba(255, 241, 189, 0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 38% 78%, rgba(214, 168, 255, 0.16) 0 1px, transparent 2px),
    linear-gradient(120deg, transparent 0 22%, rgba(164, 134, 255, 0.12) 38%, transparent 62% 100%);
  background-size: 170px 170px, 230px 230px, 200px 200px, 100% 100%;
  opacity: 0.78;
}

.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.42;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
}

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  padding-top: 18px;
  background: transparent;
  border-bottom: 0;
  pointer-events: none;
}

.nav-inner {
  width: min(100% - 52px, 1320px);
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid rgba(255, 241, 189, 0.28);
  border-radius: 999px;
  background: rgba(42, 33, 64, 0.58);
  box-shadow: 0 22px 70px rgba(42, 33, 64, 0.34);
  backdrop-filter: blur(18px);
  padding: 0 26px;
  pointer-events: auto;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  min-width: 152px;
}

.nav-logo img {
  width: 136px;
  height: auto;
  filter: drop-shadow(0 5px 10px rgba(42, 33, 64, 0.5));
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 54px);
}

.nav-links a {
  color: var(--cream);
  font-weight: 800;
  font-size: 1.04rem;
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(42, 33, 64, 0.75);
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-store {
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--radius);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 180ms ease;
}

.store-badge img {
  height: 42px;
  width: auto;
}

.store-badge.google img {
  height: 44px;
}

.store-badge:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 14px rgba(255, 223, 125, 0.45));
}

.steam-badge {
  min-width: 128px;
  min-height: 42px;
  gap: 8px;
  border: 1px solid rgba(255, 223, 125, 0.5);
  padding: 0 12px;
  background:
    radial-gradient(circle at 18% 18%, rgba(159, 232, 255, 0.32), transparent 32%),
    linear-gradient(135deg, rgba(42, 33, 64, 0.98), rgba(74, 58, 102, 0.94));
  box-shadow:
    0 10px 26px rgba(42, 33, 64, 0.32),
    inset 0 1px 0 rgba(255, 241, 189, 0.28);
  color: var(--cream);
  white-space: nowrap;
}

.steam-badge:hover {
  filter: drop-shadow(0 0 16px rgba(159, 232, 255, 0.34));
}

.steam-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--cyan);
}

.steam-mark svg,
.steam-orb svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.steam-copy {
  display: grid;
  gap: 1px;
  line-height: 1;
  text-align: left;
}

.steam-copy span {
  color: rgba(255, 241, 189, 0.78);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.steam-copy strong {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 223, 125, 0.4);
  border-radius: var(--radius);
  color: var(--cream);
  background: rgba(74, 58, 102, 0.55);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle span::before {
  transform: translateY(-7px);
}

.menu-toggle span::after {
  transform: translateY(5px);
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  transform: translateY(2px) rotate(45deg);
  background: currentColor;
}

.menu-toggle[aria-expanded="true"] span::after {
  transform: translateY(0) rotate(-45deg);
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 120px 0 92px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background-image: url("/assets/images/wwr-website-hero-wide-960.png");
  background-position: center calc(50% + var(--parallax-y, 0px));
  background-size: cover;
  transform: scale(1.018);
}

@supports (background-image: image-set(url("/assets/images/wwr-website-hero-wide-960.webp") type("image/webp") 1x)) {
  .hero::before {
    background-image: image-set(
      url("/assets/images/wwr-website-hero-wide-960.webp") type("image/webp") 1x,
      url("/assets/images/wwr-website-hero-wide-1659.webp") type("image/webp") 2x
    );
  }
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 28%;
  content: "";
  background: linear-gradient(180deg, rgba(74, 58, 102, 0), rgba(74, 58, 102, 0.18) 46%, var(--purple));
}

.sparkle-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  width: min(100% - 52px, 1320px);
  min-height: calc(100svh - 212px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-copy {
  max-width: 710px;
  padding: 16px 0 88px;
}

.hero-title-art {
  width: min(700px, 100%);
  margin-bottom: 24px;
}

.tagline {
  max-width: 660px;
  margin: 0 0 30px;
  color: var(--cream);
  font-size: clamp(1.2rem, 1.8vw, 1.62rem);
  line-height: 1.45;
  font-weight: 800;
  text-shadow: 0 2px 14px rgba(42, 33, 64, 0.95), 0 0 18px rgba(42, 33, 64, 0.72);
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-actions .store-badge img,
.download-actions .store-badge img {
  height: 58px;
}

.hero-actions .store-badge.google img,
.download-actions .store-badge.google img {
  height: 60px;
}

.hero-actions .steam-badge,
.download-actions .steam-badge {
  min-width: 178px;
  min-height: 58px;
  border-radius: 10px;
  padding: 0 17px;
}

.hero-actions .steam-mark,
.download-actions .steam-mark {
  width: 30px;
  height: 30px;
}

.hero-actions .steam-copy span,
.download-actions .steam-copy span {
  font-size: 0.72rem;
}

.hero-actions .steam-copy strong,
.download-actions .steam-copy strong {
  font-size: 1rem;
}

.hero-note {
  display: inline-flex;
  margin: 20px 0 0;
  border: 1px solid rgba(255, 223, 125, 0.22);
  border-radius: 999px;
  background: rgba(42, 33, 64, 0.38);
  color: rgba(255, 241, 189, 0.92);
  padding: 7px 12px;
  font-size: 0.95rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(42, 33, 64, 0.78);
}

.next-peek {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 42px;
  background: linear-gradient(180deg, rgba(255, 241, 189, 0), rgba(255, 241, 189, 0.18));
  opacity: 0.68;
}

.section {
  position: relative;
  scroll-margin-top: 118px;
  padding: 96px 0;
  overflow: hidden;
  isolation: isolate;
}

.section-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.section-heading {
  position: relative;
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.rights-content h1,
.rights-content h2 {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: "Berkshire Swash", Georgia, serif;
  font-size: 2.5rem;
  line-height: 1.14;
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: 0 8px 24px rgba(42, 33, 64, 0.45);
}

.section-heading p {
  margin: 0;
  color: rgba(255, 241, 189, 0.86);
  font-size: 1.05rem;
}

.features {
  background:
    radial-gradient(circle at 8% 18%, rgba(184, 242, 138, 0.24), transparent 24%),
    radial-gradient(circle at 88% 16%, rgba(159, 232, 255, 0.2), transparent 26%),
    radial-gradient(circle at 50% 112%, rgba(255, 223, 125, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(74, 58, 102, 0.98), rgba(42, 33, 64, 0.98) 62%, rgba(74, 58, 102, 0.96)),
    var(--purple);
  color: var(--cream);
}

.features::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 16% 42%, rgba(255, 223, 125, 0.28) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 28%, rgba(159, 232, 255, 0.26) 0 1px, transparent 2px),
    linear-gradient(90deg, transparent, rgba(255, 223, 125, 0.12), transparent);
  background-size: 150px 150px, 210px 210px, 100% 100%;
  animation: star-drift 18s linear infinite;
}

.features::after {
  position: absolute;
  right: -80px;
  bottom: -160px;
  z-index: -1;
  width: min(58vw, 760px);
  height: min(58vw, 760px);
  content: "";
  border: 1px solid rgba(255, 223, 125, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(159, 232, 255, 0.12), transparent 34%),
    conic-gradient(from 20deg, transparent, rgba(214, 168, 255, 0.18), transparent, rgba(255, 223, 125, 0.12), transparent);
  filter: blur(0.2px);
  opacity: 0.8;
  animation: slow-spin 38s linear infinite;
}

.features .section-heading h2 {
  color: var(--gold);
  text-shadow: 0 8px 26px rgba(42, 33, 64, 0.6), 0 0 22px rgba(255, 223, 125, 0.18);
}

.features .section-heading p {
  color: rgba(255, 241, 189, 0.84);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  perspective: 1200px;
}

.feature-card {
  position: relative;
  min-height: 272px;
  overflow: hidden;
  border: 1px solid rgba(255, 223, 125, 0.28);
  border-radius: 18px 10px 20px 12px;
  background:
    radial-gradient(circle at 22% 14%, rgba(255, 223, 125, 0.34), transparent 30%),
    linear-gradient(180deg, rgba(255, 241, 189, 0.94), rgba(255, 233, 168, 0.86)),
    var(--cream);
  color: var(--ink);
  padding: 28px 24px 24px;
  box-shadow:
    0 24px 70px rgba(42, 33, 64, 0.32),
    inset 0 1px 0 rgba(255, 241, 189, 0.88);
  transform: translateY(0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, filter 220ms ease;
  animation: soft-float 7s ease-in-out infinite;
}

.feature-card:nth-child(2) {
  animation-delay: -1.4s;
}

.feature-card:nth-child(3) {
  animation-delay: -2.8s;
}

.feature-card:nth-child(4) {
  animation-delay: -4.2s;
}

.feature-card::before {
  position: absolute;
  inset: -40%;
  content: "";
  background: linear-gradient(115deg, transparent 38%, rgba(255, 241, 189, 0.58), transparent 56%);
  transform: translateX(-65%) rotate(8deg);
  opacity: 0;
  transition: opacity 220ms ease;
}

.feature-card::after {
  position: absolute;
  right: -42px;
  bottom: -48px;
  width: 132px;
  height: 132px;
  content: "";
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(159, 232, 255, 0.34), transparent 58%),
    radial-gradient(circle, rgba(164, 134, 255, 0.26), transparent 68%);
  filter: blur(1px);
  opacity: 0.72;
}

.feature-card:hover {
  transform: translateY(-7px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  border-color: rgba(159, 232, 255, 0.72);
  box-shadow:
    0 30px 90px rgba(159, 232, 255, 0.18),
    0 18px 56px rgba(42, 33, 64, 0.38),
    inset 0 1px 0 rgba(255, 241, 189, 0.9);
  filter: saturate(1.06);
}

.feature-card:hover::before {
  opacity: 0.72;
  animation: card-shine 760ms ease forwards;
}

.card-spark {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 9px;
  height: 9px;
  color: var(--cyan);
  border-radius: 50%;
  background: currentColor;
  box-shadow:
    0 0 16px currentColor,
    20px 28px 0 -3px var(--gold),
    -18px 58px 0 -4px var(--lilac);
  animation: twinkle 2.8s ease-in-out infinite;
}

.feature-icon {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--purple);
  filter: drop-shadow(0 0 12px rgba(164, 134, 255, 0.2));
}

.feature-card.garden .feature-icon {
  color: var(--leaf-strong);
}

.feature-card.casting .feature-icon {
  color: var(--cyan-strong);
}

.feature-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.16rem;
  line-height: 1.24;
}

.feature-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(42, 33, 64, 0.84);
}

.worlds {
  background:
    radial-gradient(circle at 14% 20%, rgba(159, 232, 255, 0.2), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(255, 223, 125, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(42, 33, 64, 1), rgba(74, 58, 102, 0.96) 52%, rgba(42, 33, 64, 0.98)),
    var(--ink);
}

.worlds::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(135deg, transparent 0 34%, rgba(159, 232, 255, 0.08) 48%, transparent 62% 100%),
    radial-gradient(circle at 50% 52%, rgba(184, 242, 138, 0.13), transparent 34%);
  animation: aurora-sway 14s ease-in-out infinite alternate;
}

.world-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  perspective: 1300px;
}

.world-strip::before {
  position: absolute;
  top: 48%;
  right: 4%;
  left: 4%;
  z-index: -1;
  height: 4px;
  content: "";
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(159, 232, 255, 0), rgba(159, 232, 255, 0.9), rgba(255, 223, 125, 0.88), rgba(184, 242, 138, 0.72), rgba(159, 232, 255, 0));
  box-shadow: 0 0 24px rgba(159, 232, 255, 0.5);
  transform: translateY(-50%);
  animation: route-pulse 4.8s ease-in-out infinite;
}

.world-panel {
  position: relative;
  grid-column: span 2;
  min-height: 324px;
  overflow: hidden;
  border: 1px solid rgba(255, 223, 125, 0.38);
  border-radius: 22px 22px 18px 18px;
  background: rgba(255, 241, 189, 0.1);
  padding: 30px;
  box-shadow:
    0 24px 72px rgba(42, 33, 64, 0.46),
    inset 0 1px 0 rgba(255, 241, 189, 0.18);
  transform: translateY(0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease, filter 240ms ease;
  animation: soft-float 8s ease-in-out infinite;
}

.world-panel:nth-child(2) {
  animation-delay: -1.2s;
}

.world-panel:nth-child(3) {
  animation-delay: -2.4s;
}

.world-panel:nth-child(4) {
  animation-delay: -3.6s;
}

.world-panel:nth-child(5) {
  animation-delay: -4.8s;
}

.world-panel::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 241, 189, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 241, 189, 0.14), rgba(159, 232, 255, 0.1)),
    rgba(74, 58, 102, 0.82);
}

.world-panel::after {
  position: absolute;
  inset: auto 20px 18px;
  height: 2px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 223, 125, 0.76), rgba(159, 232, 255, 0.66), transparent);
  opacity: 0.84;
  animation: route-pulse 5.2s ease-in-out infinite;
}

.world-panel.farm::before {
  background:
    radial-gradient(circle at 18% 10%, rgba(184, 242, 138, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(184, 242, 138, 0.18), rgba(255, 223, 125, 0.12)),
    rgba(74, 58, 102, 0.82);
}

.world-panel.decoration::before {
  background:
    radial-gradient(circle at 18% 10%, rgba(214, 168, 255, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(214, 168, 255, 0.2), rgba(255, 223, 125, 0.12)),
    rgba(74, 58, 102, 0.82);
}

.world-panel.pet,
.world-panel.adventure {
  grid-column: span 3;
}

.world-panel.pet::before {
  background:
    radial-gradient(circle at 18% 10%, rgba(159, 232, 255, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(159, 232, 255, 0.18), rgba(214, 168, 255, 0.14)),
    rgba(74, 58, 102, 0.82);
}

.world-panel.adventure::before {
  background:
    radial-gradient(circle at 18% 10%, rgba(164, 134, 255, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(164, 134, 255, 0.24), rgba(255, 223, 125, 0.12)),
    rgba(74, 58, 102, 0.82);
}

.world-panel:hover {
  transform: translateY(-8px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  border-color: rgba(255, 223, 125, 0.72);
  box-shadow:
    0 34px 90px rgba(42, 33, 64, 0.52),
    0 0 46px rgba(159, 232, 255, 0.18),
    inset 0 1px 0 rgba(255, 241, 189, 0.24);
  filter: saturate(1.12);
}

.world-logo {
  width: min(100%, 520px);
  min-height: 116px;
  display: flex;
  align-items: center;
  filter: drop-shadow(0 8px 16px rgba(42, 33, 64, 0.5)) drop-shadow(0 0 18px rgba(255, 223, 125, 0.12));
}

.world-panel p {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 22px 0 0;
  color: rgba(255, 241, 189, 0.88);
  font-size: 1.05rem;
}

.gallery {
  background:
    radial-gradient(circle at 15% 12%, rgba(214, 168, 255, 0.16), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(159, 232, 255, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(74, 58, 102, 1), rgba(42, 33, 64, 0.98)),
    var(--purple);
}

.gallery::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 28% 34%, rgba(255, 223, 125, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 68% 58%, rgba(159, 232, 255, 0.2) 0 1px, transparent 2px);
  background-size: 180px 180px, 230px 230px;
  animation: star-drift 20s linear infinite reverse;
}

.gallery-showcase,
.gallery-grid {
  display: grid;
  gap: 18px;
}

.gallery-showcase {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  align-items: stretch;
  margin-bottom: 18px;
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.gallery-stack {
  display: grid;
  gap: 18px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 223, 125, 0.32);
  border-radius: 18px 10px 18px 10px;
  background:
    linear-gradient(180deg, rgba(255, 241, 189, 0.11), rgba(74, 58, 102, 0.22)),
    rgba(255, 241, 189, 0.09);
  box-shadow:
    0 24px 72px rgba(42, 33, 64, 0.42),
    inset 0 1px 0 rgba(255, 241, 189, 0.16);
  transform: translateY(0);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.gallery-card picture {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(42, 33, 64, 0.78);
}

.gallery-card picture::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(120deg, transparent 24%, rgba(255, 241, 189, 0.2), transparent 46%),
    radial-gradient(circle at 82% 16%, rgba(159, 232, 255, 0.24), transparent 22%);
  opacity: 0;
  transform: translateX(-16%);
  transition: opacity 240ms ease, transform 520ms ease;
}

.gallery-card.gameplay picture {
  aspect-ratio: 1434 / 660;
}

.gallery-card img {
  width: 100%;
  height: 100%;
}

.gallery-card img {
  object-fit: cover;
  transform: scale(1.004);
  transition: transform 520ms ease, filter 520ms ease;
}

.gallery-card:hover {
  transform: translateY(-7px);
  border-color: rgba(159, 232, 255, 0.64);
  box-shadow:
    0 30px 86px rgba(42, 33, 64, 0.5),
    0 0 42px rgba(159, 232, 255, 0.16),
    inset 0 1px 0 rgba(255, 241, 189, 0.2);
}

.gallery-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.1) contrast(1.04);
}

.gallery-card:hover picture::after {
  opacity: 1;
  transform: translateX(18%);
}

.gallery-caption {
  border-top: 1px solid rgba(255, 223, 125, 0.24);
  padding: 14px 16px;
  color: var(--cream);
  font-weight: 800;
}

.gallery-caption span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 241, 189, 0.72);
  font-size: 0.92rem;
  font-weight: 600;
}

.download {
  background:
    radial-gradient(circle at 12% 22%, rgba(159, 232, 255, 0.22), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(214, 168, 255, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(255, 223, 125, 0.88), rgba(255, 233, 168, 0.92) 45%, rgba(184, 242, 138, 0.68)),
    var(--gold);
  color: var(--ink);
}

.download-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  overflow: hidden;
  border: 1px solid rgba(42, 33, 64, 0.2);
  border-radius: 18px;
  padding: 38px;
  background:
    radial-gradient(circle at 86% 50%, rgba(159, 232, 255, 0.34), transparent 28%),
    linear-gradient(180deg, rgba(255, 241, 189, 0.68), rgba(255, 233, 168, 0.52));
  box-shadow:
    0 24px 66px rgba(42, 33, 64, 0.22),
    inset 0 1px 0 rgba(255, 241, 189, 0.9);
}

.download-band::before {
  position: absolute;
  inset: -40% -20%;
  content: "";
  background:
    linear-gradient(115deg, transparent 40%, rgba(159, 232, 255, 0.28), transparent 58%),
    radial-gradient(circle at 76% 50%, rgba(164, 134, 255, 0.18), transparent 24%);
  animation: download-shimmer 5.8s ease-in-out infinite;
}

.download-band > * {
  position: relative;
  z-index: 1;
}

.download h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: "Berkshire Swash", Georgia, serif;
  font-size: 2.28rem;
  font-weight: 400;
  line-height: 1.14;
}

.download p {
  margin: 0;
  max-width: 690px;
  color: rgba(42, 33, 64, 0.82);
  font-weight: 700;
}

.steam-coming-soon {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid rgba(255, 223, 125, 0.34);
  border-radius: 18px;
  padding: 24px;
  background:
    radial-gradient(circle at 8% 18%, rgba(159, 232, 255, 0.3), transparent 28%),
    radial-gradient(circle at 92% 24%, rgba(214, 168, 255, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(42, 33, 64, 0.94), rgba(74, 58, 102, 0.9));
  box-shadow:
    0 24px 66px rgba(42, 33, 64, 0.24),
    inset 0 1px 0 rgba(255, 241, 189, 0.18);
  color: var(--cream);
}

.steam-coming-soon::before {
  position: absolute;
  inset: -35% -10%;
  content: "";
  background:
    linear-gradient(115deg, transparent 42%, rgba(159, 232, 255, 0.2), transparent 58%),
    radial-gradient(circle at 72% 50%, rgba(255, 223, 125, 0.16), transparent 18%);
  animation: download-shimmer 7s ease-in-out infinite;
}

.steam-coming-soon > * {
  position: relative;
  z-index: 1;
}

.steam-orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(159, 232, 255, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 241, 189, 0.24), transparent 34%),
    rgba(42, 33, 64, 0.64);
  color: var(--cyan);
  box-shadow: 0 0 30px rgba(159, 232, 255, 0.2);
  animation: soft-float 4.4s ease-in-out infinite;
}

.download .steam-eyebrow {
  margin: 0 0 4px;
  color: var(--cyan-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(159, 232, 255, 0.5);
}

.steam-coming-soon h3 {
  margin: 0 0 6px;
  color: var(--gold);
  font-family: "Berkshire Swash", Georgia, serif;
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  font-weight: 400;
  line-height: 1.08;
}

.steam-coming-soon p:not(.steam-eyebrow) {
  color: rgba(255, 241, 189, 0.78);
}

.steam-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(255, 223, 125, 0.48);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 223, 125, 0.12);
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(255, 223, 125, 0.14);
}

.site-footer {
  border-top: 1px solid rgba(255, 223, 125, 0.26);
  background: rgba(42, 33, 64, 0.96);
  padding: 32px 0;
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-logo img {
  width: 180px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.footer-links a {
  color: var(--cream);
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  margin: 8px 0 0;
  color: rgba(255, 241, 189, 0.68);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes star-drift {
  from {
    background-position: 0 0, 0 0, 0 0;
  }

  to {
    background-position: 160px -120px, -210px 180px, 0 0;
  }
}

@keyframes slow-spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes soft-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -7px;
  }
}

@keyframes card-shine {
  from {
    transform: translateX(-65%) rotate(8deg);
  }

  to {
    transform: translateX(65%) rotate(8deg);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.46;
    transform: scale(0.82);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes aurora-sway {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
    opacity: 0.72;
  }

  to {
    transform: translate3d(2%, 1%, 0) scale(1.04);
    opacity: 1;
  }
}

@keyframes route-pulse {
  0%,
  100% {
    opacity: 0.46;
    filter: blur(0);
  }

  50% {
    opacity: 1;
    filter: blur(0.4px);
  }
}

@keyframes download-shimmer {
  0%,
  100% {
    transform: translateX(-22%);
    opacity: 0.52;
  }

  50% {
    transform: translateX(20%);
    opacity: 0.9;
  }
}

.rights-main {
  min-height: 100vh;
  padding: 122px 0 70px;
  background:
    linear-gradient(180deg, rgba(42, 33, 64, 0.96), rgba(74, 58, 102, 1)),
    var(--purple);
}

.rights-content {
  width: min(100% - 32px, 880px);
  margin: 0 auto;
  border: 1px solid rgba(255, 223, 125, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 241, 189, 0.08);
  box-shadow: var(--shadow);
  padding: 34px;
}

.rights-content p,
.rights-content li {
  color: rgba(255, 241, 189, 0.86);
}

.rights-content h2 {
  margin-top: 34px;
  font-size: 1.75rem;
}

.rights-content a {
  color: var(--cyan);
  font-weight: 800;
}

@media (max-width: 1020px) {
  .site-nav {
    padding-top: 14px;
  }

  .nav-inner {
    width: min(100% - 28px, var(--max));
    min-height: 70px;
    padding: 0 16px 0 20px;
  }

  .nav-menu {
    position: fixed;
    top: 94px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    border: 1px solid rgba(255, 223, 125, 0.32);
    border-radius: 22px;
    background: rgba(42, 33, 64, 0.96);
    backdrop-filter: blur(18px);
    padding: 18px;
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-links,
  .nav-store {
    justify-content: center;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-inner {
    min-height: calc(100svh - 204px);
    align-items: center;
  }

  .hero-copy {
    max-width: min(680px, 58vw);
    padding-bottom: 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .world-strip {
    grid-template-columns: 1fr 1fr;
  }

  .world-panel,
  .world-panel.pet,
  .world-panel.adventure {
    grid-column: auto;
  }

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

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

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

  .download-band {
    grid-template-columns: 1fr;
  }

  .steam-coming-soon {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .steam-status {
    grid-column: 2;
    justify-self: start;
  }

  .download-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-nav {
    padding-top: 12px;
  }

  .nav-inner {
    width: min(100% - 24px, var(--max));
    min-height: 66px;
    padding: 0 12px 0 14px;
  }

  .nav-logo img {
    width: 132px;
  }

  .nav-menu {
    top: 88px;
  }

  .nav-links {
    flex-direction: column;
  }

  .nav-store,
  .hero-actions,
  .download-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 100svh;
    padding: 104px 0 94px;
  }

  .hero::before {
    background-image: url("/assets/images/wwr-website-hero-mobile-640.png");
    background-position: center -72px;
    transform: scale(1.01);
  }

  @supports (background-image: image-set(url("/assets/images/wwr-website-hero-mobile-640.webp") type("image/webp") 1x)) {
    .hero::before {
      background-image: image-set(
        url("/assets/images/wwr-website-hero-mobile-640.webp") type("image/webp") 1x,
        url("/assets/images/wwr-website-hero-mobile-780.webp") type("image/webp") 2x
      );
    }
  }

  .hero-inner {
    width: min(100% - 32px, var(--max));
    min-height: calc(100svh - 198px);
    align-items: flex-start;
  }

  .hero-copy {
    max-width: 100%;
    padding-top: 6px;
  }

  body.menu-open .hero-copy {
    opacity: 0.18;
    transition: opacity 160ms ease;
  }

  .hero-title-art {
    width: min(100%, 520px);
  }

  .tagline {
    font-size: 1.08rem;
  }

  .hero-actions .store-badge img,
  .download-actions .store-badge img {
    height: 48px;
  }

  .hero-actions .store-badge.google img,
  .download-actions .store-badge.google img {
    height: 50px;
  }

  .hero-actions .steam-badge,
  .download-actions .steam-badge {
    min-width: 210px;
    min-height: 50px;
  }

  .hero-actions .steam-mark,
  .download-actions .steam-mark {
    width: 26px;
    height: 26px;
  }

  .section {
    scroll-margin-top: 92px;
    padding: 66px 0;
  }

  .section-heading h2,
  .download h2,
  .rights-content h1 {
    font-size: 2rem;
  }

  .feature-grid,
  .world-strip,
  .gallery-showcase,
  .gallery-stack,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .world-logo {
    min-height: 92px;
  }

  .download-band,
  .rights-content {
    padding: 24px;
  }

  .steam-coming-soon {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .steam-status {
    grid-column: auto;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  .ambient-canvas {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
