/* Lotuswake coming soon page (Studio 1.3, Build 4d). One calm screen: slow aurora light over night
   water, a frosted "liquid glass" card, kinetic words, Toya hopping with excitement, a countdown and
   the waiting list. Three layouts (glass, bento, split) over the website's five colour designs.
   No outside fonts or scripts; letters come from fonts.css (the game's own files). With "reduce
   motion" nothing moves. Mobile first, 16 px gutters, WCAG AA contrast. */

:root {
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 28px;
  --gutter: 16px;
}

/* ------------------------------------------------------------------ the five colour designs */
body[data-design='moonlit'] {
  --bg: #0b1a1f;
  --ink: #f6efe2;
  --soft: #c9d8d3;
  --faint: #93aba5;
  --accent: #f2c46d;
  --accent-ink: #1d1406;
  --accent2: #f3a6bd;
  --teal: #7fd4c6;
  --glass: rgb(16 41 45 / 0.55);
  --glass-edge: rgb(255 255 255 / 0.16);
  --glass-shine: rgb(255 255 255 / 0.1);
  --tile: rgb(255 255 255 / 0.06);
  --a1: rgb(127 212 198 / 0.42);
  --a2: rgb(243 166 189 / 0.32);
  --a3: rgb(242 196 109 / 0.22);
}
body[data-design='dawn'] {
  --bg: #fff6ef;
  --ink: #3a2c35;
  --soft: #5d4a55;
  --faint: #7d6773;
  --accent: #b94a3f;
  --accent-ink: #fff8f2;
  --accent2: #9a6bc4;
  --teal: #3f7d7a;
  --glass: rgb(255 255 255 / 0.55);
  --glass-edge: rgb(255 255 255 / 0.8);
  --glass-shine: rgb(255 255 255 / 0.6);
  --tile: rgb(255 255 255 / 0.6);
  --a1: rgb(255 196 150 / 0.65);
  --a2: rgb(214 186 240 / 0.6);
  --a3: rgb(255 170 180 / 0.45);
}
body[data-design='garden'] {
  --bg: #f1f7ef;
  --ink: #1d3a2b;
  --soft: #355a45;
  --faint: #56735f;
  --accent: #2f7a4f;
  --accent-ink: #f7fbf5;
  --accent2: #b8467a;
  --teal: #2f7a73;
  --glass: rgb(255 255 255 / 0.6);
  --glass-edge: rgb(255 255 255 / 0.85);
  --glass-shine: rgb(255 255 255 / 0.6);
  --tile: rgb(255 255 255 / 0.65);
  --a1: rgb(111 174 123 / 0.45);
  --a2: rgb(229 127 163 / 0.35);
  --a3: rgb(150 205 190 / 0.45);
}
body[data-design='zen'] {
  --bg: #f5f0e7;
  --ink: #2b2925;
  --soft: #4a463f;
  --faint: #6c6555;
  --accent: #2b2925;
  --accent-ink: #f5f0e7;
  --accent2: #8f704a;
  --teal: #546f68;
  --glass: rgb(255 255 255 / 0.55);
  --glass-edge: rgb(43 41 37 / 0.12);
  --glass-shine: rgb(255 255 255 / 0.5);
  --tile: rgb(255 255 255 / 0.6);
  --a1: rgb(190 176 150 / 0.4);
  --a2: rgb(155 123 82 / 0.22);
  --a3: rgb(120 150 140 / 0.25);
  --radius: 10px;
}
body[data-design='starlit'] {
  --bg: #0b0d2a;
  --ink: #eef0ff;
  --soft: #c7ccef;
  --faint: #9aa0cc;
  --accent: #e9d38b;
  --accent-ink: #13152f;
  --accent2: #a9b8ff;
  --teal: #8fd6e8;
  --glass: rgb(21 26 69 / 0.55);
  --glass-edge: rgb(255 255 255 / 0.18);
  --glass-shine: rgb(255 255 255 / 0.1);
  --tile: rgb(255 255 255 / 0.07);
  --a1: rgb(169 184 255 / 0.45);
  --a2: rgb(143 214 232 / 0.3);
  --a3: rgb(233 211 139 / 0.2);
}

/* ------------------------------------------------------------------ base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  overflow-x: clip;
  position: relative;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
[hidden] {
  display: none !important;
}

/* The light: three soft aurora clouds drifting very slowly (blurred, behind everything). */
.aurora {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora span {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.9;
}
.aurora .a1 {
  background: radial-gradient(circle, var(--a1), transparent 65%);
  top: -30vmax;
  left: -20vmax;
  animation: drift1 26s ease-in-out infinite alternate;
}
.aurora .a2 {
  background: radial-gradient(circle, var(--a2), transparent 65%);
  top: 10vmax;
  right: -30vmax;
  animation: drift2 31s ease-in-out infinite alternate;
}
.aurora .a3 {
  background: radial-gradient(circle, var(--a3), transparent 65%);
  bottom: -40vmax;
  left: 10vmax;
  animation: drift3 37s ease-in-out infinite alternate;
}
@keyframes drift1 {
  to {
    transform: translate(18vmax, 10vmax) scale(1.15);
  }
}
@keyframes drift2 {
  to {
    transform: translate(-16vmax, 8vmax) scale(0.9);
  }
}
@keyframes drift3 {
  to {
    transform: translate(10vmax, -14vmax) scale(1.1);
  }
}
.soon-pond {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ------------------------------------------------------------------ frame */
.soon-top,
.soon,
.soon-foot {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.soon-top {
  padding-block: 18px 6px;
  padding-top: calc(18px + env(safe-area-inset-top, 0px));
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 600 1.15rem/1 var(--font-heading);
  letter-spacing: 0.02em;
}
.soon {
  padding-block: 12px 28px;
}
.soon-foot {
  padding-block: 10px 26px;
  padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  color: var(--faint);
  font-size: 0.88rem;
  text-align: center;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 6px;
}
.foot-links a {
  color: var(--soft);
}

/* ------------------------------------------------------------------ words */
.eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
h1 {
  margin: 0 0 14px;
  font: 600 clamp(2.1rem, 7.5vw, 3.6rem) / 1.06 var(--font-heading);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 {
  margin: 0 0 8px;
  font: 600 1.35rem/1.2 var(--font-heading);
  text-wrap: balance;
}
.lead {
  margin: 0;
  color: var(--soft);
  max-width: 60ch;
}
.small {
  font-size: 0.86rem;
  color: var(--faint);
}
.small a {
  color: var(--soft);
}
.kinetic .w {
  display: inline-block;
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.kinetic .w:nth-child(2) {
  animation-delay: 0.08s;
}
.kinetic .w:nth-child(3) {
  animation-delay: 0.16s;
}
.kinetic .w:nth-child(4) {
  animation-delay: 0.24s;
}
.kinetic .w:nth-child(5) {
  animation-delay: 0.32s;
}
.kinetic .w:nth-child(6) {
  animation-delay: 0.4s;
}
.kinetic .w:nth-child(n + 7) {
  animation-delay: 0.48s;
}
.kinetic .w:last-child {
  background: linear-gradient(100deg, var(--ink) 20%, var(--accent2) 50%, var(--teal) 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation:
    rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both,
    shimmer 6s ease-in-out 1.2s infinite;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.45em);
    filter: blur(6px);
  }
}
@keyframes shimmer {
  0%,
  100% {
    background-position: 100% 0;
  }
  50% {
    background-position: 0 0;
  }
}

/* ------------------------------------------------------------------ the card (liquid glass) */
.soon-card {
  display: grid;
  gap: 22px;
}
.soon-words,
.soon-count,
.soon-state,
.soon-form,
.soon-pic,
.toya-wrap {
  min-width: 0;
}
body[data-layout='glass'] .soon-card {
  max-width: 620px;
  margin: 70px auto 0;
  padding: 92px 26px 28px;
  border-radius: calc(var(--radius) + 8px);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow:
    inset 0 1px 0 var(--glass-shine),
    inset 0 -30px 60px -40px var(--a1),
    0 30px 80px -30px rgb(0 0 0 / 0.45);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  text-align: center;
  position: relative;
}
body[data-layout='glass'] .lead {
  margin-inline: auto;
}
body[data-layout='glass'] .toya-wrap {
  position: absolute;
  top: -78px;
  left: 50%;
  translate: -50% 0;
}
body[data-layout='glass'] .soon-pic {
  order: 10;
  max-width: 230px;
  margin: 4px auto 0;
  rotate: -4deg;
}
@media (min-width: 1000px) {
  body[data-layout='glass'] .soon-pic {
    position: absolute;
    right: -270px;
    top: 120px;
    width: 230px;
    order: 0;
    rotate: 6deg;
  }
  body[data-layout='glass'] .soon-card {
    margin-left: max(var(--gutter), calc(50% - 470px));
  }
}

/* Bento: tidy rounded tiles. */
body[data-layout='bento'] .soon-card {
  margin-top: 18px;
  grid-template-columns: 1fr;
}
body[data-layout='bento'] .soon-card > * {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  padding: 22px;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 var(--glass-shine);
}
body[data-layout='bento'] .toya-wrap {
  display: grid;
  place-items: center;
}
@media (min-width: 760px) {
  body[data-layout='bento'] .soon-card {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
  }
  body[data-layout='bento'] .soon-words {
    grid-column: span 2;
  }
  body[data-layout='bento'] .soon-count,
  body[data-layout='bento'] .soon-state,
  body[data-layout='bento'] .soon-form {
    grid-column: span 2;
  }
  body[data-layout='bento'] .soon-pic {
    grid-row: span 2;
    padding: 12px;
  }
}

/* Split: the picture large on one side, everything else on the other. */
body[data-layout='split'] .soon-card {
  margin-top: 18px;
}
body[data-layout='split'] .toya-wrap {
  justify-self: start;
}
@media (min-width: 900px) {
  body[data-layout='split'] .soon-card {
    grid-template-columns: minmax(260px, 380px) 1fr;
    column-gap: 56px;
    align-items: center;
  }
  body[data-layout='split'] .soon-pic {
    grid-column: 1;
    grid-row: 1 / span 6;
    rotate: -3deg;
  }
  body[data-layout='split'] .soon-card > :not(.soon-pic) {
    grid-column: 2;
  }
}

/* ------------------------------------------------------------------ picture */
.soon-pic {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 320px;
}
.soon-pic img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 30px;
  border: 6px solid var(--glass-edge);
  box-shadow: 0 30px 70px -28px rgb(0 0 0 / 0.55);
}

/* ------------------------------------------------------------------ countdown */
.count-label {
  margin: 0 0 10px;
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.tile {
  background: var(--tile);
  border: 1px solid var(--glass-edge);
  border-radius: calc(var(--radius) - 8px);
  padding: 14px 6px 10px;
  display: grid;
  gap: 2px;
  box-shadow: inset 0 1px 0 var(--glass-shine);
}
.tile b {
  font: 600 clamp(1.7rem, 7vw, 2.6rem) / 1 var(--font-heading);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.tile b.tick {
  animation: tick 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes tick {
  from {
    transform: translateY(-0.25em) scale(0.92);
    opacity: 0.35;
  }
}
.tile span {
  color: var(--faint);
  font-size: 0.78rem;
  text-transform: lowercase;
}
.count-when {
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 0.88rem;
}
.no-tiles .count-when {
  margin: 0;
}
.soon-state h2 {
  color: var(--accent2);
}

/* ------------------------------------------------------------------ buttons and form */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 1.02rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 30px -12px var(--accent);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px -12px var(--accent);
}
.cta:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}
.soon-form {
  display: grid;
  gap: 12px;
  text-align: left;
}
body[data-layout='glass'] .soon-form h2,
body[data-layout='glass'] .soon-form > p:first-of-type {
  text-align: center;
}
.soon-form > p {
  margin: 0;
}
.join-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.field {
  display: grid;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--soft);
}
.field.grow {
  flex: 1 1 220px;
}
.join-row .cta {
  flex: 0 0 auto;
}
input[type='email'],
input[name='name'] {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--glass-edge);
  background: var(--tile);
  color: var(--ink);
  font: inherit;
}
input::placeholder {
  color: var(--faint);
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--soft);
  cursor: pointer;
}
.check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--accent);
}
.soon-msg {
  min-height: 1.4em;
  font-weight: 600;
  color: var(--teal);
  text-align: center;
}
.soon-msg.bad {
  color: var(--accent2);
}

/* ------------------------------------------------------------------ Toya */
.toya-wrap {
  justify-self: center;
  width: 150px;
  cursor: pointer;
}
.toya {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.toya-shadow {
  fill: rgb(0 0 0 / 0.18);
  transform-box: fill-box;
  transform-origin: center;
}
.toya-hop,
.toya-squash,
.petal,
.spark {
  transform-box: fill-box;
}
.toya-hop {
  transform-origin: center bottom;
}
.toya-squash {
  transform-origin: 50% 100%;
}
.petal {
  transform-origin: 50% 100%;
}
.spark {
  transform-origin: center;
  opacity: 0;
}
.toya-eyes-happy {
  opacity: 0;
}

/* Excited: little hops with a squash on landing, petals waving, sparkles all around. */
[data-mood='excited'] .toya-hop {
  animation: hop 1.5s cubic-bezier(0.3, 0, 0.3, 1) infinite;
}
[data-mood='excited'] .toya-squash {
  animation: squash 1.5s ease-in-out infinite;
}
[data-mood='excited'] .toya-shadow {
  animation: shadow 1.5s ease-in-out infinite;
}
[data-mood='excited'] .petal {
  animation: wave 0.75s ease-in-out infinite alternate;
}
[data-mood='excited'] .p2 {
  animation-delay: 0.12s;
}
[data-mood='excited'] .p3 {
  animation-delay: 0.24s;
}
[data-mood='excited'] .spark {
  animation: twinkle 2.2s ease-in-out infinite;
}
[data-mood='excited'] .toya-eyes-happy {
  animation: eyesOn 4.5s steps(1) infinite;
}
[data-mood='excited'] .toya-eyes-open {
  animation: eyesOff 4.5s steps(1) infinite;
}
.s2 {
  animation-delay: 0.5s !important;
}
.s3 {
  animation-delay: 1s !important;
}
.s4 {
  animation-delay: 1.4s !important;
}
.s5 {
  animation-delay: 1.8s !important;
}
@keyframes hop {
  0%,
  55%,
  100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-22px);
  }
  40% {
    transform: translateY(-4px);
  }
}
@keyframes squash {
  0%,
  100% {
    transform: scale(1.06, 0.94);
  }
  12%,
  50% {
    transform: scale(0.96, 1.05);
  }
  58% {
    transform: scale(1.08, 0.92);
  }
  70% {
    transform: scale(1, 1);
  }
}
@keyframes shadow {
  25% {
    transform: scale(0.7);
    opacity: 0.5;
  }
}
@keyframes wave {
  from {
    transform: rotate(-9deg);
  }
  to {
    transform: rotate(9deg);
  }
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.4) rotate(0);
  }
  50% {
    opacity: 1;
    transform: scale(1.15) rotate(45deg);
  }
}
@keyframes eyesOn {
  0% {
    opacity: 1;
  }
  70% {
    opacity: 0;
  }
}
@keyframes eyesOff {
  0% {
    opacity: 0;
  }
  70% {
    opacity: 1;
  }
}

/* Gentle: a slow float and a soft blink. */
[data-mood='gentle'] .toya-hop {
  animation: float 4.2s ease-in-out infinite;
}
[data-mood='gentle'] .toya-eyes-open {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 5s ease-in-out infinite;
}
[data-mood='gentle'] .spark {
  animation: twinkle 5s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}
@keyframes blink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }
  96% {
    transform: scaleY(0.12);
  }
}

/* When someone joins (or taps her): a happy dance with petals falling. */
.toya-wrap.cheer .toya-hop {
  animation: cheer 0.6s cubic-bezier(0.3, 0, 0.3, 1) 3;
}
.toya-wrap.cheer .toya-eyes-happy {
  opacity: 1;
  animation: none;
}
.toya-wrap.cheer .toya-eyes-open {
  opacity: 0;
  animation: none;
}
@keyframes cheer {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  35% {
    transform: translateY(-34px) rotate(-8deg);
  }
  65% {
    transform: translateY(-20px) rotate(8deg);
  }
}
.confetti {
  position: fixed;
  top: -20px;
  width: 12px;
  height: 18px;
  border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
  background: var(--accent2);
  opacity: 0.9;
  pointer-events: none;
  z-index: 5;
  animation: fall 2.8s cubic-bezier(0.3, 0.6, 0.5, 1) forwards;
}
.confetti.c2 {
  background: var(--accent);
}
.confetti.c3 {
  background: var(--teal);
}
@keyframes fall {
  to {
    transform: translate(var(--dx, 0), 105vh) rotate(var(--rot, 360deg));
    opacity: 0.2;
  }
}

/* ------------------------------------------------------------------ less motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .toya-eyes-open {
    opacity: 1 !important;
  }
}

/* Studio 1.6 (Build 6): an offer you chose to sell before opening day (its real end, no countdown). */
.soon-offer {
  grid-column: 1 / -1;
  padding: 1.1rem 1.2rem;
  border-radius: calc(var(--radius) - 8px);
  background: var(--tile);
  border: 1px solid var(--accent);
  text-align: left;
}
.soon-offer h2 {
  margin: 0 0 0.3rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
}
.soon-offer .offer-price {
  color: var(--accent);
  white-space: nowrap;
}
.soon-offer p {
  margin: 0.35rem 0;
  color: var(--soft);
}
.soon-offer .small {
  font-size: 0.86rem;
  color: var(--faint);
}
