:root {
  color-scheme: light;
  --ink: var(--color-ink);
  --lime: var(--color-primary);
  --blue: var(--color-secondary);
  --coral: var(--color-attention);
  --sky: #dff4ff;
  --sky-deep: color-mix(in srgb, var(--blue) 22%, var(--sky));
  --cloud: color-mix(in srgb, white 92%, var(--sky));
  --grass: color-mix(in srgb, var(--lime) 76%, white);
  --soil: color-mix(in srgb, var(--coral) 25%, var(--ink));
  --surface: color-mix(in srgb, white 86%, var(--sky));
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --shadow: 0 22px 52px color-mix(in srgb, var(--blue) 18%, transparent);
  font-family: Inter, ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--sky);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.92) 0 3%, transparent 12%),
    linear-gradient(180deg, var(--sky) 0%, color-mix(in srgb, var(--sky) 72%, white) 56%, #f3f5f2 100%);
  transition: background 700ms ease;
}

body[data-era="sunset"] {
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.9) 0 3%, transparent 12%),
    linear-gradient(180deg, color-mix(in srgb, var(--coral) 22%, var(--sky)), var(--sky) 58%, #f3f5f2);
}

body[data-era="twilight"] {
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.95) 0 2.5%, transparent 10%),
    linear-gradient(180deg, color-mix(in srgb, var(--blue) 34%, var(--sky)), var(--sky) 60%, #f3f5f2);
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.home-link {
  position: fixed;
  z-index: 80;
  top: 16px;
  left: 16px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 7px 0 color-mix(in srgb, var(--ink) 13%, transparent);
  font-size: 1.25rem;
  font-weight: 900;
  text-decoration: none;
}

.sky-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.cloud,
.hero-cloud,
.stage-cloud {
  display: block;
  border-radius: 999px;
  background: var(--cloud);
  box-shadow:
    24px -13px 0 1px var(--cloud),
    52px -3px 0 -3px var(--cloud),
    77px 4px 0 -10px var(--cloud);
}

.cloud {
  position: absolute;
  width: 68px;
  height: 23px;
  opacity: 0.78;
}

.cloud--one {
  top: 18%;
  left: -100px;
  animation: cloud-drift 28s linear infinite;
}

.cloud--two {
  top: 43%;
  left: -160px;
  scale: 0.72;
  animation: cloud-drift 37s 5s linear infinite;
}

.cloud--three {
  top: 72%;
  left: -120px;
  scale: 1.2;
  animation: cloud-drift 44s 13s linear infinite;
}

.sun {
  position: absolute;
  top: 8vh;
  right: 8vw;
  width: 92px;
  height: 92px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 18px color-mix(in srgb, var(--lime) 22%, transparent);
  animation: sun-pulse 5s ease-in-out infinite;
}

.app-shell {
  width: min(1440px, calc(100% - 42px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 0 34px;
}

.start-screen {
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: minmax(330px, 0.8fr) minmax(500px, 1.2fr);
  align-items: center;
  gap: clamp(36px, 6vw, 90px);
  padding: 50px clamp(20px, 5vw, 70px);
}

.start-copy {
  position: relative;
  z-index: 2;
}

.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-brand i {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--lime);
  font-style: normal;
}

.start-copy > p {
  margin: 35px 0 7px;
  color: color-mix(in srgb, var(--ink) 63%, transparent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.06em;
}

h1 {
  margin: 0;
  font-size: clamp(5rem, 10vw, 9.5rem);
  line-height: 0.78;
}

h1 em {
  display: block;
  margin-left: 0.42em;
  color: var(--blue);
  font-weight: inherit;
}

.start-tagline {
  display: block;
  max-width: 410px;
  margin-top: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.1;
}

.start-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.play-button {
  min-width: 190px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 7px 8px 7px 22px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--lime);
  box-shadow: 0 8px 0 var(--ink);
  font-size: 0.84rem;
  font-weight: 950;
  cursor: pointer;
  transition: translate 130ms ease, box-shadow 130ms ease;
}

.play-button:hover {
  translate: 0 3px;
  box-shadow: 0 5px 0 var(--ink);
}

.play-button b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--surface);
  background: var(--ink);
}

.start-actions .play-button + .play-button {
  min-width: 138px;
  color: var(--ink);
  background: var(--surface);
}

.start-copy > small {
  display: block;
  margin-top: 18px;
  color: color-mix(in srgb, var(--ink) 58%, transparent);
  font-size: 0.61rem;
  font-weight: 750;
}

.hero-island {
  position: relative;
  min-height: 570px;
  display: grid;
  place-items: center;
  animation: island-float 4.6s ease-in-out infinite;
}

.hero-island__top {
  position: relative;
  z-index: 3;
  width: min(590px, 90%);
  aspect-ratio: 1.22;
  border: 4px solid var(--ink);
  border-radius: 48% 52% 46% 54% / 54% 45% 55% 46%;
  background:
    radial-gradient(circle at 25% 28%, rgba(255,255,255,.42) 0 4px, transparent 5px),
    linear-gradient(135deg, color-mix(in srgb, var(--lime) 82%, white), var(--grass));
  box-shadow:
    inset 0 -24px 0 color-mix(in srgb, var(--lime) 58%, var(--ink)),
    0 24px 0 -7px var(--soil),
    0 46px 0 -19px color-mix(in srgb, var(--soil) 80%, var(--ink)),
    var(--shadow);
  transform: rotate(-3deg);
}

.hero-island__base {
  position: absolute;
  z-index: 1;
  top: 53%;
  width: 64%;
  height: 34%;
  clip-path: polygon(4% 0, 96% 0, 68% 100%, 37% 90%);
  background: linear-gradient(160deg, var(--soil), color-mix(in srgb, var(--ink) 76%, var(--coral)));
}

.hero-island .building-art {
  position: absolute;
  width: 90px;
  height: 90px;
}

.hero-island .building-art--station { top: 30%; left: 42%; scale: 1.24; }
.hero-island .building-art--housing { top: 13%; left: 17%; }
.hero-island .building-art--park { top: 53%; left: 18%; scale: 1.08; }
.hero-island .building-art--solar { top: 12%; right: 17%; }
.hero-island .building-art--cafe { right: 19%; bottom: 13%; }

.hero-friend {
  position: absolute;
  z-index: 5;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50% 50% 44% 44%;
  background: var(--coral);
  font-size: 0.58rem;
  font-weight: 900;
  animation: friend-hop 1.8s ease-in-out infinite;
}

.hero-friend--one { left: 35%; bottom: 17%; }
.hero-friend--two { right: 34%; top: 20%; animation-delay: -0.8s; background: var(--blue); color: white; }

.hero-cloud {
  position: absolute;
  z-index: 0;
  width: 84px;
  height: 28px;
}

.hero-cloud--left { left: 3%; bottom: 19%; }
.hero-cloud--right { right: 4%; top: 20%; scale: 0.8; }

@keyframes cloud-drift {
  to { transform: translateX(calc(100vw + 260px)); }
}

@keyframes island-float {
  0%, 100% { transform: translateY(0) rotate(-0.3deg); }
  50% { transform: translateY(-13px) rotate(0.4deg); }
}

@keyframes friend-hop {
  0%, 60%, 100% { transform: translateY(0) scaleY(1); }
  72% { transform: translateY(-10px) scaleY(1.04); }
}

@keyframes sun-pulse {
  50% { box-shadow: 0 0 0 26px color-mix(in srgb, var(--lime) 13%, transparent); }
}

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