:root {
  color-scheme: light;
  --ink: #35174f;
  --purple: #6f3ca2;
  --purple-dark: #4b246f;
  --pink: #ed5ba8;
  --pink-dark: #c83e8d;
  --cream: #fff9f3;
  --sky: #f2e8ff;
  --line: rgba(111, 60, 162, 0.22);
  --shadow: 0 20px 55px rgba(67, 25, 100, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Trebuchet MS", system-ui, sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 166, 207, 0.42), transparent 28rem),
    radial-gradient(circle at 84% 4%, rgba(160, 233, 255, 0.42), transparent 30rem),
    linear-gradient(180deg, #fff9f3 0%, #f7efff 52%, #eaf8ff 100%);
  text-align: center;
}

a { color: var(--purple-dark); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.75);
  background: rgba(255, 249, 243, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(67, 25, 100, 0.22);
}

nav { display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; }

nav a,
.pill-button {
  display: inline-block;
  padding: 0.72rem 1.1rem;
  border: 2px solid var(--purple);
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  color: var(--purple-dark);
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

nav a:hover,
nav a:focus-visible,
.pill-button:hover,
.pill-button:focus-visible {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 8px 20px rgba(67, 25, 100, 0.16);
}

.hero {
  display: grid;
  grid-template-columns: minmax(260px, 430px) minmax(280px, 630px);
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5.5rem);
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 7rem) 0 4rem;
}

.hero-copy h1,
.page-intro h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--purple-dark);
  text-shadow: 0 5px 0 rgba(255,255,255,0.9);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--pink-dark);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy p,
.page-intro p {
  max-width: 38rem;
  margin: 1.35rem auto;
  font-size: clamp(1.08rem, 2.4vw, 1.35rem);
  line-height: 1.65;
}

.button-row { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.7rem; }

.pill-button.primary {
  border-color: var(--pink-dark);
  background: linear-gradient(180deg, #ff8bc6, #e550a3);
  color: white;
  box-shadow: 0 10px 24px rgba(200, 62, 141, 0.3);
}

.game-still {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  overflow: hidden;
  border: 9px solid rgba(255,255,255,0.92);
  border-radius: 46px;
  background: url("assets/light-sunset-iphone14.jpg") center / cover no-repeat;
  box-shadow: var(--shadow), 0 0 0 3px var(--purple);
}

.game-still::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 70px rgba(68, 27, 95, 0.14);
  pointer-events: none;
}

.hud {
  position: absolute;
  top: 4.5%;
  z-index: 2;
  min-width: 30%;
  padding: 0.5rem 0.65rem;
  border: 3px solid var(--purple);
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: var(--purple-dark);
  font-size: clamp(0.6rem, 2vw, 0.9rem);
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(67, 25, 100, 0.18);
}

.hud.left { left: 4%; }
.hud.right { right: 4%; }

.level-label {
  position: absolute;
  top: 14%;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  color: #f43fa1;
  font-size: clamp(1.15rem, 4vw, 1.8rem);
  font-weight: 1000;
  text-shadow: 0 2px 0 white, 0 4px 9px rgba(67, 25, 100, 0.25);
  white-space: nowrap;
}

.cloud {
  position: absolute;
  z-index: 3;
  width: 39%;
  filter: drop-shadow(0 12px 12px rgba(67, 25, 100, 0.18));
}

.cloud.one { top: 29%; left: 5%; transform: rotate(-7deg); }
.cloud.two { top: 48%; right: 4%; width: 32%; transform: rotate(8deg); }
.cloud.three { top: 67%; left: 23%; width: 29%; transform: rotate(-3deg); }

.content,
.cards {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  padding: 1rem 0 5rem;
}

.card,
.policy-section {
  border: 2px solid rgba(111, 60, 162, 0.2);
  border-radius: 30px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 16px 42px rgba(67, 25, 100, 0.1);
}

.card { padding: 2rem; }
.card h2, .policy-section h2 { color: var(--purple-dark); }
.card p, .policy-section p, .policy-section li { line-height: 1.7; }

.page-intro {
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) 0 2rem;
}

.page-intro h1 { font-size: clamp(3rem, 8vw, 5.7rem); }

.mini-still {
  width: min(720px, calc(100% - 2rem));
  height: clamp(240px, 42vw, 430px);
  margin: 1rem auto 3rem;
  overflow: hidden;
  border: 7px solid white;
  border-radius: 36px;
  background: url("assets/light-sunset-iphone14.jpg") center 62% / cover no-repeat;
  box-shadow: var(--shadow), 0 0 0 3px var(--purple);
}

.mini-still img {
  width: min(320px, 48%);
  margin-top: 12%;
  filter: drop-shadow(0 18px 12px rgba(67, 25, 100, 0.2));
}

.policy { padding-bottom: 4rem; }

.policy-section {
  margin: 1rem 0;
  padding: clamp(1.35rem, 4vw, 2.25rem);
}

.policy-section ul {
  max-width: 720px;
  margin: 1rem auto;
  padding: 0;
  list-style-position: inside;
}

.contact-box {
  margin: 1.5rem auto;
  padding: 1.25rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #f9d3eb, #e1d2ff);
  border: 2px solid var(--purple);
}

.contact-email {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: clamp(1rem, 3.4vw, 1.35rem);
  font-weight: 900;
  word-break: break-word;
}

footer {
  padding: 2.5rem 1rem 3rem;
  border-top: 1px solid var(--line);
  color: rgba(53, 23, 79, 0.76);
}

footer p { margin: 0.35rem; }

@media (max-width: 760px) {
  .site-header { flex-direction: column; gap: 0.65rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { order: -1; }
  .cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
