:root {
  color-scheme: dark;
  --ink: #070914;
  --night: #0d1228;
  --panel: rgba(18, 23, 45, 0.78);
  --panel-strong: rgba(23, 28, 52, 0.94);
  --line: rgba(255, 210, 126, 0.28);
  --sakura: #ff77b7;
  --sakura-soft: #ffc3dd;
  --gold: #ffd36b;
  --cyan: #80f4ff;
  --text: #f9f1ff;
  --muted: #bfc3dd;
  --danger: #ff7b86;
  --success: #94ffcf;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
  --pixel-border: 0 0 0 2px rgba(255, 211, 107, 0.44), inset 0 0 0 2px rgba(255, 119, 183, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 70% 10%, rgba(255, 119, 183, 0.17), transparent 25rem),
    radial-gradient(circle at 10% 45%, rgba(128, 244, 255, 0.1), transparent 28rem),
    linear-gradient(180deg, #060711 0%, #10132a 52%, #070914 100%);
  color: var(--text);
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.particles {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 211, 107, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 119, 183, 0.76) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(128, 244, 255, 0.8) 0 1px, transparent 2px);
  background-size: 120px 120px, 190px 190px, 260px 260px;
  animation: particleDrift 26s linear infinite;
}

.petal-field {
  position: fixed;
  inset: -10vh 0 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
}

.petal-field span {
  position: absolute;
  top: -40px;
  width: 12px;
  height: 8px;
  border-radius: 12px 0 12px 0;
  background: linear-gradient(135deg, #ffe1ee, var(--sakura));
  opacity: 0.78;
  animation: petalFall linear infinite;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 211, 107, 0.14);
  background: rgba(7, 9, 20, 0.66);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  overflow: hidden;
  border: 2px solid rgba(255, 211, 107, 0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 32%, rgba(255, 196, 118, 0.5), transparent 26%),
    radial-gradient(circle, rgba(255, 119, 183, 0.24), rgba(7, 9, 20, 0.96));
  box-shadow:
    0 0 18px rgba(255, 119, 183, 0.32),
    0 0 0 3px rgba(255, 255, 255, 0.05),
    inset 0 0 18px rgba(255, 211, 107, 0.12);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  transform-origin: center;
  image-rendering: auto;
}

.brand > span:last-child {
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.5vw, 28px);
  color: var(--muted);
  font-size: 0.92rem;
}

nav a {
  transition: color 180ms ease, text-shadow 180ms ease;
}

nav a:hover {
  color: var(--text);
  text-shadow: 0 0 16px rgba(255, 119, 183, 0.8);
}

.nav-cta {
  padding: 10px 14px;
  border: 1px solid rgba(255, 211, 107, 0.45);
  background: rgba(255, 211, 107, 0.1);
  color: var(--gold);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 6vw, 96px);
  padding: 110px clamp(20px, 6vw, 90px) 70px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.24;
  background: url("/assets/banner.png") center bottom / cover no-repeat;
  filter: saturate(1.1) contrast(1.08);
}

.hero::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -18%;
  height: 42%;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(255, 119, 183, 0.22), transparent 58%),
    linear-gradient(0deg, rgba(7, 9, 20, 0.96), rgba(7, 9, 20, 0));
  filter: blur(10px);
  animation: fogPulse 7s ease-in-out infinite alternate;
}

.moon {
  position: absolute;
  top: 12%;
  right: 16%;
  width: clamp(112px, 16vw, 210px);
  aspect-ratio: 1;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffdf0 0 10%, #ffe8a8 32%, #f7b8dd 72%);
  box-shadow: 0 0 90px rgba(255, 211, 107, 0.62), 0 0 160px rgba(255, 119, 183, 0.3);
  opacity: 0.8;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(255, 119, 183, 0.28), 0 10px 0 rgba(0,0,0,0.22);
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2.1rem, 4.4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.subheadline {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.launch-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 720px;
  margin: -8px 0 26px;
}

.launch-strip span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 211, 107, 0.38);
  color: var(--gold);
  background:
    linear-gradient(90deg, rgba(255, 119, 183, 0.12), rgba(255, 211, 107, 0.08)),
    rgba(7, 9, 20, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 22px rgba(255, 119, 183, 0.12);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
}

.cta {
  border: 0;
  cursor: pointer;
  color: #160812;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  background: linear-gradient(135deg, #ff85c1, #ffd36b 58%, #fff0a8);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12), 0 0 36px rgba(255, 119, 183, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.glow-button,
.submit-button {
  min-height: 56px;
  padding: 0 26px;
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
  animation: ctaGlow 2.8s ease-in-out infinite;
}

.cta:hover {
  transform: translateY(-2px);
  filter: saturate(1.12);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), 0 0 52px rgba(255, 211, 107, 0.5);
}

.reward-note {
  margin-top: 18px;
  color: var(--sakura-soft);
  font-weight: 700;
}

.hero-character {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.character-aura {
  position: absolute;
  width: min(90vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 211, 107, 0.3), transparent 38%),
    conic-gradient(from 0deg, rgba(255,119,183,0.05), rgba(128,244,255,0.2), rgba(255,211,107,0.18), rgba(255,119,183,0.05));
  filter: blur(2px);
  animation: auraSpin 15s linear infinite;
}

.hero-character img {
  position: relative;
  width: min(78vw, 560px);
  max-height: 76vh;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.58)) drop-shadow(0 0 34px rgba(255, 119, 183, 0.24));
  animation: floatHero 4.8s ease-in-out infinite;
  user-select: none;
}

.section {
  padding: clamp(70px, 10vw, 130px) clamp(20px, 6vw, 90px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.character-grid,
.reward-grid,
.mission-grid {
  display: grid;
  gap: 20px;
}

.character-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.character-card,
.reward-card,
.mission-card,
.form-shell {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24, 28, 55, 0.92), rgba(10, 13, 27, 0.9));
  box-shadow: var(--pixel-border), var(--shadow);
}

.character-card {
  min-height: 330px;
  padding: 22px 16px 18px;
  overflow: hidden;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.character-card::after {
  content: "Pixel Ronin";
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: rgba(255, 255, 255, 0.18);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.character-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 119, 183, 0.72);
  box-shadow: var(--pixel-border), 0 30px 90px rgba(255, 119, 183, 0.14);
}

.sprite-frame {
  display: grid;
  place-items: center;
  margin: 8px auto 20px;
  width: min(100%, 188px);
  aspect-ratio: 1;
  background:
    linear-gradient(45deg, rgba(255, 211, 107, 0.14), rgba(255, 119, 183, 0.11)),
    rgba(5, 7, 15, 0.74);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.07), 0 0 26px rgba(255, 119, 183, 0.18);
}

.sprite-frame img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  image-rendering: pixelated;
  user-select: none;
}

.character-card p,
.mission-card p,
.rule-copy,
.form-copy p {
  color: var(--muted);
  line-height: 1.55;
}

.reward-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.reward-card {
  min-height: 220px;
  padding: 26px;
  overflow: hidden;
}

.reward-card span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--sakura-soft);
  font-weight: 900;
}

.reward-card h3 {
  max-width: 360px;
  color: var(--gold);
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  line-height: 1.05;
}

.top-tier {
  border-color: rgba(255, 211, 107, 0.78);
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 211, 107, 0.28), transparent 36%),
    linear-gradient(180deg, rgba(38, 30, 60, 0.96), rgba(16, 12, 30, 0.94));
  animation: premiumPulse 3.4s ease-in-out infinite;
}

.rule-copy {
  max-width: 840px;
  margin-top: 22px;
}

.mission-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mission-card {
  min-height: 250px;
  padding: 24px;
}

.task-check {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  border: 2px solid rgba(148, 255, 207, 0.7);
  background: rgba(148, 255, 207, 0.08);
}

.task-check::before {
  content: "";
  width: 15px;
  height: 9px;
  border-left: 3px solid var(--success);
  border-bottom: 3px solid var(--success);
  transform: rotate(-45deg) translateY(-1px);
}

.mission-card a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  margin-top: 10px;
  padding: 0 14px;
  border: 1px solid rgba(255, 211, 107, 0.48);
  color: var(--gold);
  background: rgba(255, 211, 107, 0.08);
  font-weight: 900;
}

.form-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(24px, 5vw, 56px);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 119, 183, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(18, 23, 45, 0.96), rgba(8, 11, 24, 0.96));
}

.waitlist-form {
  display: grid;
  gap: 16px;
}

.waitlist-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

.waitlist-form label span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.waitlist-form input[type="email"],
.waitlist-form input[type="text"],
.waitlist-form input[type="url"] {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255, 211, 107, 0.26);
  border-radius: 0;
  padding: 0 14px;
  color: var(--text);
  background: rgba(4, 6, 14, 0.84);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.waitlist-form input:focus {
  border-color: rgba(255, 119, 183, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 119, 183, 0.12);
}

.confirmations {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(128, 244, 255, 0.2);
  background: rgba(128, 244, 255, 0.05);
}

.confirmations label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--muted);
}

.confirmations input {
  width: 18px;
  height: 18px;
  accent-color: var(--sakura);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.submit-button {
  width: 100%;
  margin-top: 6px;
}

.submit-button[disabled] {
  cursor: progress;
  opacity: 0.74;
}

.form-message {
  min-height: 26px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.form-message.error {
  color: var(--danger);
}

.form-message.success {
  color: var(--success);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 34px clamp(20px, 6vw, 90px);
  border-top: 1px solid rgba(255, 211, 107, 0.16);
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: revealIn 800ms ease forwards;
}

.character-grid .reveal:nth-child(2),
.mission-grid .reveal:nth-child(2),
.reward-grid .reveal:nth-child(2) {
  animation-delay: 120ms;
}

.character-grid .reveal:nth-child(3),
.mission-grid .reveal:nth-child(3),
.reward-grid .reveal:nth-child(3) {
  animation-delay: 220ms;
}

.character-grid .reveal:nth-child(4) {
  animation-delay: 320ms;
}

.character-grid .reveal:nth-child(5) {
  animation-delay: 420ms;
}

@keyframes particleDrift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 120px 240px, -190px 190px, 260px 520px; }
}

@keyframes petalFall {
  0% { transform: translate3d(0, -10vh, 0) rotate(0deg); }
  100% { transform: translate3d(var(--sway), 115vh, 0) rotate(540deg); }
}

@keyframes fogPulse {
  from { opacity: 0.42; transform: translateY(0); }
  to { opacity: 0.7; transform: translateY(-14px); }
}

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255,255,255,0.12), 0 0 26px rgba(255,119,183,0.32); }
  50% { box-shadow: 0 0 0 3px rgba(255,255,255,0.18), 0 0 54px rgba(255,211,107,0.48); }
}

@keyframes auraSpin {
  to { transform: rotate(360deg); }
}

@keyframes floatHero {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@keyframes premiumPulse {
  0%, 100% { box-shadow: var(--pixel-border), 0 26px 80px rgba(0, 0, 0, 0.45), 0 0 22px rgba(255, 211, 107, 0.18); }
  50% { box-shadow: var(--pixel-border), 0 30px 95px rgba(0, 0, 0, 0.45), 0 0 50px rgba(255, 211, 107, 0.34); }
}

@keyframes revealIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 120px;
  }

  .hero-character {
    min-height: 320px;
  }

  .hero-copy {
    max-width: 880px;
  }

  .character-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reward-grid,
  .form-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 14px;
    padding: 12px 14px;
  }

  nav {
    width: auto;
    flex: 1;
    justify-content: flex-end;
    overflow-x: auto;
    padding-bottom: 2px;
    gap: 12px;
    font-size: 0.86rem;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand > span:last-child {
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .character-grid,
  .mission-grid,
  .reward-grid {
    grid-template-columns: 1fr;
  }

  .character-card {
    min-height: 292px;
  }

  footer {
    flex-direction: column;
  }
}

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