/* ============================================================
   Regular Wizards Co — shared styles (modern layout)
   Brand: #FF694A coral (accent) · #315A6E teal (ink) · #FFF5DE cream (bg)
   Fonts: Roboto Condensed (everywhere)
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;500;700&display=swap");

:root {
  --bg: #fff5de;
  --surface: #fffdf6;
  --surface-2: #fffbef;
  --ink: #315a6e;
  --grey: #4f6f79;
  --muted: #7c949c;
  --pink: #ff694a;
  --line: #ead9ae;
  --btn-ink: #14333d;
  --cond: "Roboto Condensed", system-ui, sans-serif;
  --mono: "Roboto Condensed", system-ui, sans-serif;
  --radius: 20px;
  --shadow-sm: 0 4px 14px rgba(49, 90, 110, 0.08);
  --shadow-md: 0 14px 34px rgba(49, 90, 110, 0.14);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--cond);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  transition: opacity 0.3s ease;
  overflow-x: hidden;
}
/* hide the page until web fonts are ready (set by the inline script in <head>);
   no-JS users never get the .wait-fonts class, so they always see content */
html.wait-fonts body {
  opacity: 0;
}
html.fonts-loaded body {
  opacity: 1;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.mono {
  font-family: var(--mono);
}
.pink {
  color: var(--pink);
}
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
::selection {
  background: var(--pink);
  color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------- SCROLL REVEALS (fx.js adds .is-in) ---------------- */
[data-reveal] {
  transition:
    opacity 0.7s ease var(--d, 0ms),
    transform 0.7s var(--ease-out) var(--d, 0ms);
}
html.fonts-loaded [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(28px);
}

/* ---------------- HEADER ---------------- */
.rwz-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.rwz-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(49, 90, 110, 0.08);
}
.rwz-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 54px;
  padding-top: 6px;
  padding-bottom: 6px;
}
/* large screens: logo left, nav links truly centred, CTA on the right */
.rwz-nav .nav-links {
  display: contents;
}
@media (min-width: 761px) {
  .rwz-header .wrap {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .rwz-header .rwz-logo {
    justify-self: start;
    align-self: center;
  }
  .rwz-header .rwz-nav {
    display: contents;
  }
  .rwz-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    justify-self: center;
    align-self: center;
  }
  .rwz-header .rwz-nav .rwz-btn {
    justify-self: end;
    align-self: center;
  }
}
/* logo lockup: emblem mark + wordmark image */
.rwz-logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rwz-logo img {
  display: block;
  width: auto;
  transition: transform 0.3s var(--ease-out);
}
.rwz-logo:hover .rwz-mark {
  transform: rotate(-6deg) scale(1.06);
}
.rwz-logo .rwz-mark {
  height: 64px;
}
.rwz-logo .rwz-wordmark {
  height: 76px;
}
.rwz-footer .rwz-logo .rwz-mark {
  height: 36px;
}
.rwz-footer .rwz-logo .rwz-wordmark {
  height: 68px;
}
.rwz-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.rwz-nav a.link {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--grey);
  padding: 5px 0 3px;
  border-bottom: 2px solid transparent;
  transition: all 0.18s;
}
.rwz-nav a.link:hover,
.rwz-nav a.link.active {
  color: var(--pink);
  border-color: var(--pink);
}
/* burger (mobile only) */
.rwz-burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
}
.rwz-burger span {
  display: block;
  width: 23px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  margin: 5px 0;
  transition:
    transform 0.25s var(--ease-out),
    opacity 0.2s;
}
.rwz-burger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.rwz-burger.open span:nth-child(2) {
  opacity: 0;
}
.rwz-burger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* mobile: nav collapses into a dropdown under the header, CTA included */
@media (max-width: 760px) {
  .rwz-burger {
    display: block;
  }
  .rwz-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 19;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 20px 28px 24px;
    box-shadow: var(--shadow-md);
  }
  .rwz-nav.open {
    display: flex;
  }
  .rwz-nav .rwz-btn {
    display: flex;
    width: 100%;
    justify-content: center;
  }
}

/* ---------------- BUTTONS ---------------- */
.rwz-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-out),
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    box-shadow 0.25s;
  will-change: transform;
}
.rwz-btn.solid {
  background: var(--pink);
  color: var(--btn-ink);
  border: none;
  box-shadow: 0 6px 18px rgba(255, 105, 74, 0.28);
}
.rwz-btn.solid:hover {
  background: #ff8468;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 26px rgba(255, 105, 74, 0.36);
}
.rwz-btn.solid:active {
  transform: translateY(0) scale(0.99);
}
.rwz-btn.ghost {
  background: transparent;
  border: 1px solid rgba(49, 90, 110, 0.35);
  color: var(--ink);
}
.rwz-btn.ghost:hover {
  border-color: var(--pink);
  color: var(--pink);
  background: rgba(255, 105, 74, 0.06);
  transform: translateY(-2px);
}
.rwz-btn.sm {
  padding: 10px 17px;
  font-size: 13px;
}
.rwz-btn.block {
  display: flex;
  width: 100%;
  text-align: center;
}

/* "or" divider between the signup form and the Gamefound button */
.rwz-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rwz-or::before,
.rwz-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------------- HERO ---------------- */
.rwz-hero {
  position: relative;
  padding: 100px 0 76px;
  overflow: hidden;
  background: radial-gradient(
    120% 80% at 78% -10%,
    rgba(255, 105, 74, 0.16),
    transparent 58%
  );
}
/* floating colour blob */
.rwz-hero::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  width: 520px;
  height: 520px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(255, 105, 74, 0.2), transparent 65%);
  animation: blob-drift 16s ease-in-out infinite alternate;
}
@keyframes blob-drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-60px, 40px) scale(1.15);
  }
}
.rwz-hero .wrap {
  position: relative;
  z-index: 1;
}
/* staggered load-in */
html.fonts-loaded .rwz-hero .wrap > *,
html.fonts-loaded .rwz-game-hero .wrap > *,
html.fonts-loaded .rwz-z2h .wrap > .head > * {
  animation: hero-up 0.8s var(--ease-out) both;
}
html.fonts-loaded .rwz-hero .wrap > *:nth-child(2),
html.fonts-loaded .rwz-game-hero .wrap > *:nth-child(2),
html.fonts-loaded .rwz-z2h .wrap > .head > *:nth-child(2) {
  animation-delay: 0.1s;
}
html.fonts-loaded .rwz-hero .wrap > *:nth-child(3),
html.fonts-loaded .rwz-game-hero .wrap > *:nth-child(3) {
  animation-delay: 0.2s;
}
html.fonts-loaded .rwz-hero .wrap > *:nth-child(4),
html.fonts-loaded .rwz-game-hero .wrap > *:nth-child(4) {
  animation-delay: 0.3s;
}
html.fonts-loaded .rwz-hero .wrap > *:nth-child(5),
html.fonts-loaded .rwz-game-hero .wrap > *:nth-child(5) {
  animation-delay: 0.4s;
}
@keyframes hero-up {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.rwz-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  color: var(--grey);
  font-size: 15px;
  letter-spacing: 0.02em;
  margin-bottom: 30px;
  text-transform: capitalize;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 18px;
  box-shadow: var(--shadow-sm);
}
.rwz-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
}
.rwz-hero h1 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  font-size: clamp(56px, 9vw, 118px);
  line-height: 0.94;
  margin-bottom: 30px;
  max-width: 15ch;
}
.rwz-hero h1 .pink {
  background: linear-gradient(100deg, var(--pink), #ff8f5e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--pink);
}
.rwz-hero p.lead {
  color: var(--grey);
  font-weight: 300;
  font-size: clamp(19px, 2.5vw, 24px);
  max-width: 52ch;
  line-height: 1.6;
  margin-bottom: 40px;
}
.rwz-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 34px;
}
.rwz-meta {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.03em;
}

/* ---------------- SECTION HEADINGS ---------------- */
.rwz-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  color: var(--pink);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}
.rwz-label::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--pink);
  border-radius: 2px;
}
/* keep labels styled as labels inside sections whose broad `p` rules restyle text */
.rwz-studio .rwz-label,
.rwz-about .rwz-label {
  color: var(--pink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.14em;
}
.rwz-h2 {
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(30px, 4.2vw, 44px);
  letter-spacing: 0.01em;
  line-height: 1.05;
}

/* ---------------- LATEST / CARDS ---------------- */
.rwz-latest {
  padding: 40px 0 50px;
}
.rwz-latest .head {
  margin-bottom: 28px;
}
.rwz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px;
}
.rwz-card {
  --lift: 0px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: perspective(900px) rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg)) translateY(var(--lift));
  transition:
    border-color 0.25s,
    box-shadow 0.3s,
    transform 0.25s var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.rwz-card:hover {
  --lift: -6px;
  border-color: rgba(255, 105, 74, 0.5);
  box-shadow: var(--shadow-md);
}
.rwz-card .media {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  color: #b8a67f;
  font-size: 12px;
  letter-spacing: 0.05em;
  overflow: hidden;
}
.rwz-card .media img {
  transition: transform 0.6s var(--ease-out);
}
.rwz-card:hover .media img {
  transform: scale(1.05);
}
/* game media matches the book art's ratio (1080x608) so the whole image fits */
.media.m-game {
  background: linear-gradient(150deg, #ffe0d2, #fff5de);
  aspect-ratio: 1080/608;
  height: auto;
}
.media.m-studio {
  background: linear-gradient(150deg, #e4edef, #fff5de);
}
.media.m-community {
  background: linear-gradient(150deg, #ffe6db, #fff5de);
}
.media.m-z2h {
  background: linear-gradient(150deg, #fbe9c4, #fff5de);
}
.rwz-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
  border: 1px solid var(--pink);
  border-radius: 20px;
  padding: 4px 11px;
  background: rgba(255, 253, 246, 0.85);
  backdrop-filter: blur(4px);
}
.rwz-tag::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.rwz-card .body {
  padding: 26px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.rwz-card .cat {
  font-family: var(--mono);
  color: var(--pink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.rwz-card h3 {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 24px;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.rwz-card p {
  color: var(--grey);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 22px;
  flex: 1;
}
.rwz-card .more {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rwz-card .more .arw {
  color: var(--pink);
  transition: transform 0.25s var(--ease-out);
}
.rwz-card:hover .more {
  color: var(--pink);
}
.rwz-card:hover .more .arw {
  transform: translateX(6px);
}

/* feature card: the debut game spans wide with a big media panel.
   The media's aspect-ratio drives the card height; the text column
   matches it, so the image never letterboxes. */
@media (min-width: 881px) {
  .rwz-card.feature {
    flex-direction: row;
  }
  .rwz-card.feature .media {
    flex: 1.1;
  }
  .rwz-card.feature .body {
    flex: 1;
    justify-content: center;
    padding: 28px 40px;
  }
  .rwz-card.feature h3 {
    font-size: clamp(22px, 2.4vw, 30px);
  }
  .rwz-card.feature p {
    font-size: 15px;
    flex: 0 1 auto;
    margin-bottom: 16px;
  }
}
/* Lights, Dice, Action! book art fills the ratio-matched media */
.media.m-game .game-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Zero 2 Hero logo inside the homepage series card */
.media.m-z2h .z2h-art {
  width: auto;
  height: 84px;
  filter: drop-shadow(0 6px 14px rgba(49, 90, 110, 0.22));
}

/* sections after Latest open with the shared horizontal divider */
.rwz-sep .wrap > :first-child {
  border-top: 1px solid var(--line);
  padding-top: 44px;
}

/* ---------------- STUDIO BAND ---------------- */
.rwz-studio {
  padding: 0 0 56px;
}
.rwz-studio .head {
  margin-bottom: 18px;
}
.rwz-studio p {
  color: var(--grey);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  max-width: 78ch;
}
/* desktop: title on the left, text on the right, vertically centred */
@media (min-width: 881px) {
  .rwz-studio .wrap {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    column-gap: 44px;
    align-items: center;
  }
  /* the separator becomes its own full-width row above both columns */
  .rwz-studio .wrap::before {
    content: "";
    grid-column: 1 / -1;
    height: 1px;
    background: var(--line);
    margin-bottom: 44px;
  }
  .rwz-studio.rwz-sep .wrap > :first-child {
    border-top: 0;
    padding-top: 0;
  }
  .rwz-studio .head {
    margin-bottom: 0;
  }
}

/* ---------------- ABOUT US ---------------- */
.rwz-about {
  padding: 0 0 70px;
}
.rwz-about .head {
  margin-bottom: 18px;
}
/* desktop: origin title on the left, origin text on the right, centred;
   quest and wizard-code blocks span the full width below */
@media (min-width: 881px) {
  .rwz-about .wrap {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    column-gap: 44px;
    row-gap: 48px;
    align-items: center;
  }
  .rwz-about .wrap::before {
    content: "";
    grid-column: 1 / -1;
    height: 1px;
    background: var(--line);
  }
  .rwz-about.rwz-sep .wrap > :first-child {
    border-top: 0;
    padding-top: 0;
  }
  .rwz-about .wrap > .head {
    margin-bottom: 0;
    align-self: center;
  }
  .rwz-about .wrap > .block {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
  .rwz-about .wrap > .head + .block {
    grid-column: auto;
    align-self: center;
  }
  /* quest block mirrored: text on the left, title on the right, centred */
  .rwz-about .wrap > .block.b-quest {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    column-gap: 44px;
    align-items: center;
  }
  .rwz-about .wrap > .block.b-quest .rwz-h2 {
    order: 2;
    margin-bottom: 0;
  }
  .rwz-about .wrap > .block.b-quest p {
    order: 1;
  }
}
.rwz-about .block {
  margin-bottom: 48px;
}
.rwz-about .block:last-child {
  margin-bottom: 0;
}
.rwz-about .block .rwz-h2 {
  max-width: 60ch;
  margin-bottom: 14px;
}
.rwz-about p {
  color: var(--grey);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  max-width: 78ch;
}
.rwz-about .code-intro {
  margin-bottom: 22px;
}
.rwz-about .rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.rwz-about .rule {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.25s,
    box-shadow 0.3s,
    transform 0.25s var(--ease-out);
}
.rwz-about .rule:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 105, 74, 0.5);
  box-shadow: var(--shadow-md);
}
.rwz-about .rule .num {
  display: block;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--pink);
  opacity: 0.7;
  margin-bottom: 12px;
}
.rwz-about .rule h4 {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.rwz-about .rule p {
  font-size: 15px;
  line-height: 1.6;
}

/* ---------------- NEWSLETTER ---------------- */
.rwz-news {
  padding: 0 0 64px;
}
.rwz-news .inner {
  position: relative;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  padding: 54px 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background:
    radial-gradient(
      120% 130% at 0% 0%,
      rgba(255, 105, 74, 0.12),
      transparent 60%
    ),
    var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.rwz-news .inner::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49, 90, 110, 0.1), transparent 65%);
  pointer-events: none;
}
.rwz-news .head {
  margin-bottom: 28px;
}
.rwz-news p.note {
  color: var(--grey);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  max-width: 42ch;
}

/* ---------------- FORMS ---------------- */
.rwz-form {
  width: 100%;
  position: relative;
  z-index: 1;
}
.rwz-form .row {
  display: flex;
  gap: 10px;
}
.rwz-form input[type="email"] {
  flex: 1;
  min-width: 0;
  background: var(--surface-2);
  border: 1px solid rgba(49, 90, 110, 0.3);
  color: var(--ink);
  font-family: var(--cond);
  font-size: 16px;
  padding: 14px 20px;
  border-radius: 999px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.rwz-form input[type="email"]::placeholder {
  color: var(--muted);
}
.rwz-form input[type="email"]:focus {
  border-color: var(--pink);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 105, 74, 0.15);
}
.rwz-form .form-msg {
  font-family: var(--mono);
  font-size: 13px;
  margin-top: 12px;
  min-height: 18px;
}
.rwz-form .form-msg.ok {
  color: #1e9d63;
}
.rwz-form .form-msg.error {
  color: #d23b2f;
}
.rwz-form .fineprint {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
}
.hp {
  position: absolute;
  left: -9999px;
}

/* ---------------- GAME / CAMPAIGN PAGE ---------------- */
.rwz-game-hero {
  position: relative;
  padding: 70px 0 56px;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(
    120% 80% at 78% -10%,
    rgba(255, 105, 74, 0.16),
    transparent 58%
  );
}
.rwz-game-hero::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  top: -160px;
  left: 50%;
  margin-left: -240px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(255, 105, 74, 0.16),
    transparent 65%
  );
  animation: blob-drift 18s ease-in-out infinite alternate;
}
.rwz-game-hero .wrap {
  position: relative;
  z-index: 1;
}
.rwz-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--pink);
  border: 1px solid var(--pink);
  border-radius: 20px;
  padding: 7px 16px;
  margin-bottom: 30px;
  background: rgba(255, 253, 246, 0.8);
}
.rwz-badge::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}
.rwz-game-hero h1 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.96;
  margin: 0 auto 20px;
  max-width: 16ch;
}
.rwz-game-hero .pitch {
  color: var(--grey);
  font-weight: 300;
  font-size: clamp(17px, 2.2vw, 21px);
  max-width: 44ch;
  margin: 0 auto 30px;
  line-height: 1.6;
}
.rwz-game-hero .when {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 36px;
}
.lda-hero-art {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto 44px;
  border-radius: 14px;
  filter: drop-shadow(0 22px 44px rgba(49, 90, 110, 0.3));
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.6deg);
  }
}

.rwz-signup {
  max-width: 540px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 34px 32px;
  text-align: left;
  box-shadow: var(--shadow-md);
}
.rwz-signup h2 {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 22px;
  margin-bottom: 6px;
}
.rwz-signup p.note {
  color: var(--grey);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 18px;
}

/* highlight rows on the game page */
.rwz-pillars {
  padding: 24px 0 56px;
}
.rwz-pillars .row {
  border-top: 1px solid var(--line);
  padding: 30px 18px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: baseline;
  border-radius: 12px;
  transition:
    background 0.25s,
    transform 0.25s var(--ease-out);
}
.rwz-pillars .row:hover {
  background: var(--surface);
  transform: translateX(6px);
}
.rwz-pillars .row:last-child {
  border-bottom: 1px solid var(--line);
}
.rwz-pillars .row .k {
  font-family: var(--mono);
  color: var(--pink);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.25s;
}
.rwz-pillars .row:hover .k {
  opacity: 1;
}
.rwz-pillars .row h3 {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 21px;
  margin-bottom: 7px;
}
.rwz-pillars .row p {
  color: var(--grey);
  font-weight: 300;
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 72ch;
}

/* centred back-to-studio link on the game page */
.rwz-back {
  padding: 0 0 64px;
  text-align: center;
}

/* ---------------- ZERO 2 HERO LIST ---------------- */
/* sticky footer: short page still pushes the footer to the bottom */
body.z2h-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.z2h-page .rwz-z2h {
  flex: 1 0 auto;
}
.rwz-z2h {
  position: relative;
  padding: 70px 0 60px;
  overflow: hidden;
  background: radial-gradient(
    120% 80% at 78% -10%,
    rgba(255, 105, 74, 0.16),
    transparent 58%
  );
}
.rwz-z2h .head {
  display: flex;
  align-items: center;
  gap: 44px;
  margin-bottom: 46px;
}
.rwz-z2h .head .z2h-hero-logo {
  flex: none;
  width: auto;
  height: 250px;
  max-width: 100%;
  filter: drop-shadow(0 14px 28px rgba(49, 90, 110, 0.2));
}
.rwz-z2h .head .head-text {
  max-width: 60ch;
}
.rwz-z2h .head .lead {
  color: var(--grey);
  font-weight: 300;
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.6;
  margin-top: 14px;
}
.z2h-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.z2h-item {
  --lift: 0px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  transform: perspective(900px) rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg)) translateY(var(--lift));
  transition:
    border-color 0.25s,
    box-shadow 0.3s,
    transform 0.25s var(--ease-out);
}
.z2h-item .name {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 21px;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.z2h-item .sub {
  display: block;
  font-family: var(--mono);
  color: var(--grey);
  font-weight: 300;
  font-size: 13px;
  margin-top: 4px;
}
.z2h-item.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
a.z2h-item:hover {
  --lift: -4px;
  border-color: rgba(255, 105, 74, 0.5);
  box-shadow: var(--shadow-md);
}
a.z2h-item:hover .name {
  color: var(--pink);
}
.z2h-item .pill {
  flex: none;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
  border: 1px solid var(--pink);
  border-radius: 20px;
  padding: 5px 13px;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s;
}
a.z2h-item:hover .pill {
  background: var(--pink);
  color: #fff;
}

/* ---------------- FOOTER ---------------- */
.rwz-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 34px;
  background: var(--bg);
}
/* one centred row: logo · social icons · trademark (credit below) */
.rwz-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.rwz-footer .rwz-logo {
  order: 1;
}
.rwz-footer .copy {
  order: 3;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
/* social icons — same colour as the footer text, coral on hover */
.rwz-footer .socials {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}
.rwz-footer .socials a {
  display: inline-flex;
  padding: 10px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--grey);
  background: var(--bg);
  transition:
    color 0.2s,
    border-color 0.2s,
    transform 0.2s var(--ease-out);
}
.rwz-footer .socials a:hover {
  color: var(--pink);
  border-color: var(--pink);
  transform: translateY(-3px);
}
.rwz-footer .socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}
.rwz-footer .credit {
  order: 4;
  flex-basis: 100%;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.rwz-footer .credit a {
  color: var(--grey);
}
.rwz-footer .credit a:hover {
  color: var(--pink);
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 880px) {
  .rwz-grid {
    grid-template-columns: 1fr;
  }
  .z2h-list {
    grid-template-columns: 1fr;
  }
  .rwz-studio .inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .rwz-studio p {
    max-width: none;
  }
  .rwz-news .inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-left: 30px;
    padding-right: 30px;
  }
  .rwz-about .rules {
    grid-template-columns: 1fr;
  }
  .rwz-pillars .row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .rwz-pillars .row .k {
    font-size: 22px;
  }
  .rwz-z2h .head {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .rwz-z2h .head .z2h-hero-logo {
    height: 190px;
  }
}
@media (max-width: 620px) {
  /* keep logo left + burger right on one row */
  .rwz-header .wrap {
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .rwz-logo .rwz-mark {
    height: 56px;
  }
  .rwz-logo .rwz-wordmark {
    height: 64px;
  }
  .rwz-hero {
    padding: 44px 0 52px;
  }
  /* eyebrow pill: smaller, wraps nicely over two lines */
  .rwz-eyebrow {
    font-size: 12px;
    line-height: 1.5;
    padding: 8px 16px;
    margin-bottom: 22px;
    border-radius: 18px;
    text-wrap: balance;
    max-width: 100%;
  }
  .rwz-eyebrow::before {
    flex: none;
  }
  .rwz-form .row {
    flex-direction: column;
  }
  /* footer stacks centred on phones */
  .rwz-footer .wrap {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
  }
  /* smaller "Coming soon" tag inside cards on phones */
  .rwz-tag {
    font-size: 9px;
    gap: 5px;
    padding: 3px 8px;
    top: 10px;
    left: 10px;
  }
  .rwz-tag::before {
    width: 5px;
    height: 5px;
  }
}

/* ---------------- REDUCED MOTION ---------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  html.fonts-loaded [data-reveal]:not(.is-in) {
    opacity: 1;
    transform: none;
  }
}
