:root {
  color-scheme: dark;
  --ink: #fffdf6;
  --ink-soft: #f0eee2;
  --lime: #d9ed67;
  --coral: #ff8f7d;
  --green-dark: #10382e;
  --serif: Georgia, "Times New Roman", var(--ja, serif);
  --age-row: 900px;
  font-family: "Trebuchet MS", Verdana, var(--ja, sans-serif);
}

html[lang="ja"] {
  --ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", YuGothic, "Noto Sans JP", Meiryo, sans-serif;
  line-break: strict;
}

html[lang="ja"] :is(h1, h2, h3) {
  word-break: auto-phrase;
}

html[lang="ja"] :not(:lang(la)) {
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.is-away,
.is-away *,
.is-away *::before,
.is-away *::after {
  animation-play-state: paused !important;
}

html,
body {
  overflow-x: clip;
}

body {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background: var(--green-dark);
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.art {
  position: fixed;
  z-index: -2;
  inset: 0;
  overflow: hidden;
}

.art picture {
  display: block;
  width: 100%;
  height: 100%;
}

.art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform-origin: 0 0;
  transition: transform 1100ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.art.is-walking img {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  max-width: none;
  object-fit: fill;
}

.art span {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 55%, rgb(10 29 25 / 45%), rgb(10 29 25 / 78%) 80%),
    linear-gradient(0deg, rgb(10 29 25 / 40%), transparent 60%);
}

.fireflies {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.fireflies span {
  --x: calc(var(--i) * 7.3% + 3%);
  --dur: calc(9s + var(--i) * 0.9s);
  position: absolute;
  bottom: -10px;
  left: var(--x);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(closest-side, #f4f9c4 0 30%, rgb(217 237 103 / 60%) 42%, rgb(217 237 103 / 18%) 65%, transparent);
  opacity: 0;
  animation: firefly-rise-a var(--dur) ease-in-out calc(var(--i) * -1.7s) infinite;
}

.fireflies span:nth-child(3n) {
  width: 10px;
  height: 10px;
}

.fireflies span:nth-child(n + 9) {
  display: none;
}

.fireflies span:nth-child(4n + 2) { animation-name: firefly-rise-b; }
.fireflies span:nth-child(4n + 3) { animation-name: firefly-rise-c; }
.fireflies span:nth-child(4n) { animation-name: firefly-rise-d; }

@media (max-width: 700px) {
  .fireflies span:nth-child(n + 7) {
    display: none;
  }
}

@keyframes firefly-rise-a {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  15% { opacity: 0.9; }
  50% { opacity: 0.3; transform: translate3d(40px, -50vh, 0); }
  70% { opacity: 0.85; }
  100% { opacity: 0; transform: translate3d(-20px, -105vh, 0); }
}

@keyframes firefly-rise-b {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  20% { opacity: 0.8; }
  45% { opacity: 0.2; transform: translate3d(-48px, -45vh, 0); }
  75% { opacity: 0.9; }
  100% { opacity: 0; transform: translate3d(30px, -105vh, 0); }
}

@keyframes firefly-rise-c {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  15% { opacity: 0.85; }
  50% { opacity: 0.3; transform: translate3d(-28px, -50vh, 0); }
  70% { opacity: 0.8; }
  100% { opacity: 0; transform: translate3d(44px, -105vh, 0); }
}

@keyframes firefly-rise-d {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  20% { opacity: 0.8; }
  45% { opacity: 0.25; transform: translate3d(56px, -45vh, 0); }
  75% { opacity: 0.9; }
  100% { opacity: 0; transform: translate3d(-12px, -105vh, 0); }
}

header,
main {
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

header {
  padding-block: 12px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 92px;
}

.wordmark-logo {
  display: none;
  width: auto;
  height: 92px;
}

.wordmark-logo--lat,
.wordmark-logo--ja {
  height: 70px;
}

html[data-lang="bg"] .wordmark-logo--cyr,
html[data-lang="ru"] .wordmark-logo--cyr,
html[data-lang="en"] .wordmark-logo--lat,
html[data-lang="de"] .wordmark-logo--lat,
html[data-lang="cs"] .wordmark-logo--lat,
html[data-lang="ja"] .wordmark-logo--ja {
  display: block;
}

.lang-switch {
  position: relative;
  z-index: 10;
}

.lang-switch summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgb(10 29 25 / 90%);
  border: 1px solid rgb(255 253 246 / 30%);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.lang-switch summary::-webkit-details-marker,
.lang-switch summary::marker {
  display: none;
}

.lang-switch summary:hover,
.lang-switch[open] summary {
  border-color: var(--lime);
  box-shadow: 0 0 20px rgb(217 237 103 / 25%);
}

.lang-switch-globe {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--lime);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.lang-switch-caret {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  opacity: 0.7;
  transition: transform 200ms ease;
}

.lang-switch[open] .lang-switch-caret {
  transform: rotate(180deg);
}

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 185px;
  padding: 6px;
  background: rgb(10 29 25 / 98%);
  border: 1px solid rgb(255 253 246 / 20%);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgb(0 0 0 / 50%);
  animation: lang-menu-open 180ms ease-out;
}

@keyframes lang-menu-open {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
}

.lang-switch-menu :is(button, a) {
  display: flex;
  text-decoration: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink-soft);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.lang-switch-menu :is(button, a):hover {
  background: rgb(255 253 246 / 10%);
  color: var(--ink);
}

.lang-switch-menu :is(button[aria-pressed="true"], a[aria-current="page"]) {
  color: var(--lime);
  background: rgb(217 237 103 / 12%);
  font-weight: 800;
}

.lang-switch-menu :is(button, a) small {
  color: rgb(255 253 246 / 50%);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.lang-switch-menu :is(button[aria-pressed="true"], a[aria-current="page"]) small {
  color: var(--lime);
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(calc(var(--sh, 1svh) * 100) - 140px);
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding-block: clamp(20px, calc(var(--sh, 1vh) * 4), 48px);
  --title-gap: 16px;
  --note-gap: clamp(20px, calc(var(--sh, 1vh) * 3), 32px);
  --orb-extra: clamp(36px, calc(var(--sh, 1vh) * 5), 56px);
}

.hero-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.series-about {
  text-align: center;
}

.series-about {
  width: min(100%, var(--cover-row));
  margin: 0 auto clamp(32px, calc(var(--sh, 1vh) * 6), 56px);
}

.series-about h3:first-child {
  margin-top: 0;
}

.series-about p:last-child {
  margin-bottom: 0;
}

.about-text p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  text-shadow: 0 1px 10px rgb(0 0 0 / 80%), 0 1px 2px rgb(0 0 0 / 60%);
  text-wrap: pretty;
}

.about-text h3 {
  margin: 28px 0 10px;
  color: rgb(var(--c, 217 237 103));
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgb(0 0 0 / 80%);
  text-wrap: balance;
}

.about-text:lang(ja) p {
  word-break: auto-phrase;
  text-wrap: balance;
}

@media (max-width: 760px) {
  .series-about {
    margin-top: 10px;
    margin-bottom: 32px;
  }

  .about-text p {
    font-size: 15px;
  }
}

.home-hubs {
  --c: 217 237 103;
  width: min(100% - 48px, 1180px);
  margin: clamp(56px, calc(var(--sh, 1vh) * 9), 96px) auto clamp(16px, calc(var(--sh, 1vh) * 3), 32px);
  text-align: center;
}

.home-hubs .book-hub {
  margin: 0;
}

.home-hubs .book-hub + .book-hub {
  margin-top: 2px;
}

.book-hub a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.book-hub a span {
  text-decoration: underline dotted;
  text-decoration-color: rgb(var(--c) / 60%);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}

.hub-mark {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 3px;
  box-sizing: border-box;
  overflow: visible;
  fill: none;
  stroke: rgb(var(--c));
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: radial-gradient(circle, rgb(var(--c) / 20%), rgb(var(--c) / 0%) 68%);
  border-radius: 50%;
}

.hub-board {
  transition: transform 260ms cubic-bezier(0.3, 0.7, 0.3, 1.4);
}

.book-hub a:hover span,
.book-hub a:focus-visible span {
  color: rgb(var(--c));
  text-decoration-style: solid;
  text-decoration-color: rgb(var(--c));
}

.book-hub a:hover .hub-board,
.book-hub a:focus-visible .hub-board {
  transform: translateX(2.5px);
}

.book-hub a:focus-visible {
  border-radius: 4px;
  outline: 2px solid rgb(var(--c));
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .hub-board,
  .book-hub a span {
    transition: none !important;
  }

  .book-hub a:hover .hub-board,
  .book-hub a:focus-visible .hub-board {
    transform: none;
  }
}

@media (max-width: 760px) {
  .home-hubs {
    width: calc(100% - 32px);
  }

  .book-hub a {
    font-size: 17px;
  }
}

.signup-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(var(--sh, 1svh) * 100);
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: clamp(60px, calc(var(--sh, 1vh) * 10), 110px) 0 clamp(50px, calc(var(--sh, 1vh) * 8), 90px);
  scroll-margin-top: 20px;
}

.signup-card {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
}

.signup-orb {
  display: flex;
  justify-content: center;
  margin: 0 auto 18px;
  scroll-margin-top: calc(36px + env(safe-area-inset-top, 0px));
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.signup-orb-light {
  --size: 130px;
  --float: 5.5s;
  position: relative;
  isolation: isolate;
  display: grid;
  width: var(--size);
  aspect-ratio: 1;
  place-items: center;
  color: rgb(var(--c));
  background:
    radial-gradient(circle at 50% 50%, rgb(var(--c) / 24%), rgb(var(--c) / 9%) 26%, transparent 42%),
    radial-gradient(circle, transparent 50%, rgb(var(--c) / 16%) 70%, transparent 71%),
    radial-gradient(circle at 50% 45%, rgb(var(--c) / 32%), rgb(var(--c) / 6%) 62%, transparent 72%);
  border: 1px solid rgb(var(--c) / 45%);
  border-radius: 50%;
  animation: orb-float var(--float) ease-in-out 2s infinite;
  transition: transform 300ms ease;
  will-change: transform;
}

.signup-orb-light::before,
.signup-orb-light::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transition: opacity 300ms ease;
}

.signup-orb-light::before {
  inset: -38%;
  background: radial-gradient(closest-side, transparent 55%, rgb(var(--c) / 26%) 58%, rgb(var(--c) / 9%) 76%, transparent);
  opacity: 1;
  animation: orb-glow 7s ease-in-out -2s infinite alternate;
}

.signup-orb-light::after {
  inset: 0;
  background: radial-gradient(circle, transparent 42%, rgb(var(--c) / 30%) 70%, transparent 71%);
  opacity: 0;
}

.signup-orb-light svg {
  width: 62%;
  height: 62%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.signup-orb-light svg .fill {
  fill: currentColor;
  stroke: none;
}

.signup-orb:focus-visible .signup-orb-light,
.signup-orb.is-touched .signup-orb-light {
  transform: translateY(-14px) scale(1.06);
}

.signup-orb:focus-visible .signup-orb-light::before,
.signup-orb.is-touched .signup-orb-light::before {
  opacity: 1;
  background: radial-gradient(closest-side, transparent 55%, rgb(var(--c) / 45%) 58%, rgb(var(--c) / 16%) 80%, transparent);
}

.signup-orb:focus-visible .signup-orb-light::after,
.signup-orb.is-touched .signup-orb-light::after {
  opacity: 1;
}

.signup-orb:focus-visible svg,
.signup-orb.is-touched svg {
  transform: rotate(-8deg) scale(1.12);
}

@media (hover: hover) and (pointer: fine) {
  .signup-orb:hover .signup-orb-light {
    transform: translateY(-14px) scale(1.06);
  }

  .signup-orb:hover .signup-orb-light::before {
    opacity: 1;
    background: radial-gradient(closest-side, transparent 55%, rgb(var(--c) / 45%) 58%, rgb(var(--c) / 16%) 80%, transparent);
  }

  .signup-orb:hover .signup-orb-light::after {
    opacity: 1;
  }

  .signup-orb:hover svg {
    transform: rotate(-8deg) scale(1.12);
  }
}

.signup-eyebrow {
  display: block;
  margin: 0 0 10px;
  color: rgb(var(--c));
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgb(var(--c) / 50%);
}

.pane,
.t {
  display: none;
}

html[data-lang="en"] .pane[lang="en"],
html[data-lang="bg"] .pane[lang="bg"],
html[data-lang="ru"] .pane[lang="ru"],
html[data-lang="de"] .pane[lang="de"],
html[data-lang="cs"] .pane[lang="cs"],
html[data-lang="ja"] .pane[lang="ja"] {
  display: block;
}

html[data-lang="en"] .t[lang="en"],
html[data-lang="bg"] .t[lang="bg"],
html[data-lang="ru"] .t[lang="ru"],
html[data-lang="de"] .t[lang="de"],
html[data-lang="cs"] .t[lang="cs"],
html[data-lang="ja"] .t[lang="ja"] {
  display: inline;
}

h1 {
  max-width: 820px;
  margin: 0 auto var(--title-gap);
  font-family: var(--serif);
  font-size: 60px;
  font-weight: 500;
  line-height: 1.05;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgb(0 0 0 / 45%);
}

.age-orbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(20px, 5vw, 72px);
  width: min(100%, var(--age-row));
  margin-top: calc(var(--title-gap) + var(--note-gap) + var(--orb-extra));
  scroll-margin-top: 72px;
}

.age-orb {
  --c: 217 237 103;
  --size: 140px;
  --float: 5.5s;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.age-orb--medium {
  --c: 246 178 92;
}

.age-orb--large {
  --c: 232 236 246;
}

.age-orb-light {
  position: relative;
  isolation: isolate;
  display: grid;
  width: var(--size);
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 12px;
  color: rgb(var(--c));
  background:
    radial-gradient(circle at 50% 50%, rgb(var(--c) / 24%), rgb(var(--c) / 9%) 26%, transparent 42%),
    radial-gradient(circle, transparent 50%, rgb(var(--c) / 16%) 70%, transparent 71%),
    radial-gradient(circle at 50% 45%, rgb(var(--c) / 32%), rgb(var(--c) / 6%) 62%, transparent 72%);
  border: 1px solid rgb(var(--c) / 45%);
  border-radius: 50%;
  animation: orb-float var(--float) ease-in-out var(--float-delay) infinite;
  transition: transform 300ms ease;
  will-change: transform;
}

.age-orb-light::before,
.age-orb-light::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transition: opacity 300ms ease;
}

.age-orb-light::before {
  inset: -38%;
  background: radial-gradient(closest-side, transparent 55%, rgb(var(--c) / 26%) 58%, rgb(var(--c) / 9%) 76%, transparent);
  opacity: 1;
  animation: orb-glow 7s ease-in-out calc(var(--float-delay) * -1) infinite alternate;
}

.age-orb-light::after {
  inset: 0;
  background: radial-gradient(circle, transparent 42%, rgb(var(--c) / 30%) 70%, transparent 71%);
  opacity: 0;
}

.age-orb--small { --float-delay: 1.5s; }
.age-orb--medium { --float-delay: 2.75s; }
.age-orb--large { --float-delay: 4s; }

.age-orb-light svg {
  width: 62%;
  height: 62%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.age-orb-light .fill {
  fill: currentColor;
  stroke: none;
}

.age-orb-light .chosen-path {
  stroke: #f2d38c;
}

.age-orb-light .flame {
  transform-origin: 32px 40px;
  animation: flame-flicker 1.4s ease-in-out infinite alternate;
}

.age-orb-label {
  font-family: var(--serif);
  font-size: clamp(19px, 3.15vw - 2px, 26px);
  line-height: 1.1;
  white-space: nowrap;
  color: rgb(var(--c));
  text-shadow: 0 2px 10px rgb(0 0 0 / 80%), 0 1px 3px rgb(0 0 0 / 90%);
  transition: color 300ms ease, text-shadow 300ms ease;
}

.age-orb-age {
  margin-top: -4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.01em;
  line-height: 1.25;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgb(0 0 0 / 95%), 0 2px 10px rgb(0 0 0 / 80%);
}

.age-orb-text {
  max-width: 240px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-wrap: balance;
  text-shadow: 0 1px 3px rgb(0 0 0 / 95%), 0 2px 8px rgb(0 0 0 / 85%), 0 4px 16px rgb(0 0 0 / 60%);
  transition: color 300ms ease, text-shadow 300ms ease;
}

.age-orb:has(:focus-visible) .age-orb-light,
.age-orb.is-touched .age-orb-light {
  transform: translateY(-14px) scale(1.06);
}

.age-orb:has(:focus-visible) .age-orb-light::before,
.age-orb.is-touched .age-orb-light::before {
  opacity: 1;
  background: radial-gradient(closest-side, transparent 55%, rgb(var(--c) / 45%) 58%, rgb(var(--c) / 16%) 80%, transparent);
}

.age-orb:has(:focus-visible) .age-orb-light::after,
.age-orb.is-touched .age-orb-light::after {
  opacity: 1;
}

.age-orb:has(:focus-visible) svg,
.age-orb.is-touched svg {
  transform: rotate(-8deg) scale(1.12);
}

.age-orb:has(:focus-visible) .age-orb-label,
.age-orb.is-touched .age-orb-label {
  color: rgb(var(--c));
  text-shadow: 0 0 20px rgb(var(--c) / 75%), 0 2px 8px rgb(0 0 0 / 90%);
}

.age-orb:has(:focus-visible) .age-orb-text,
.age-orb.is-touched .age-orb-text {
  color: #ffffff;
  text-shadow: 0 1px 3px rgb(0 0 0 / 98%), 0 2px 10px rgb(0 0 0 / 90%), 0 4px 18px rgb(0 0 0 / 75%);
}

@media (hover: hover) and (pointer: fine) {
  .age-orb:hover .age-orb-light {
    transform: translateY(-14px) scale(1.06);
  }

  .age-orb:hover .age-orb-light::before {
    opacity: 1;
    background: radial-gradient(closest-side, transparent 55%, rgb(var(--c) / 45%) 58%, rgb(var(--c) / 16%) 80%, transparent);
  }

  .age-orb:hover .age-orb-light::after {
    opacity: 1;
  }

  .age-orb:hover svg {
    transform: rotate(-8deg) scale(1.12);
  }

  .age-orb:hover .age-orb-label {
    color: rgb(var(--c));
    text-shadow: 0 0 20px rgb(var(--c) / 75%), 0 2px 8px rgb(0 0 0 / 90%);
  }

  .age-orb:hover .age-orb-text {
    color: #ffffff;
    text-shadow: 0 1px 3px rgb(0 0 0 / 98%), 0 2px 10px rgb(0 0 0 / 90%), 0 4px 18px rgb(0 0 0 / 75%);
  }
}

.age-orb-link {
  color: inherit;
  text-decoration: none;
}

.age-orb-link::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: 24px;
}

.age-orb-link:focus-visible {
  outline: none;
}

.age-orb-link:focus-visible::after {
  outline: 3px solid var(--coral);
  outline-offset: 6px;
}

@keyframes orb-float {
  50% { translate: 0 var(--bob, -12px); }
}

@keyframes orb-glow {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

@keyframes flame-flicker {
  from { transform: scale(1, 1); opacity: 1; }
  to { transform: scale(0.88, 1.08); opacity: 0.8; }
}

.reveal {
  animation: reveal-in 1100ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.age-orb.reveal {
  animation-name: orb-in;
}

.age-orb:nth-child(1) { animation-delay: 550ms; }
.age-orb:nth-child(2) { animation-delay: 800ms; }
.age-orb:nth-child(3) { animation-delay: 1050ms; }

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(40px); }
}

@keyframes orb-in {
  from { opacity: 0; transform: translateY(70px) scale(0.6); }
}

.signup {
  width: 100%;
  margin: 0;
  text-align: left;
}

.signup-title {
  margin: 0 auto 22px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(20px, 2.7vw, 30px);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 4px 24px rgb(0 0 0 / 70%);
}

.signup-row {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}

.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgb(255 253 246 / 26%);
  border-radius: 999px;
  background: rgb(8 24 20 / 88%);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  box-shadow: 0 4px 20px rgb(0 0 0 / 25%);
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.signup input[type="email"]:-webkit-autofill,
.signup input[type="email"]:-webkit-autofill:hover,
.signup input[type="email"]:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  transition: background-color 100000s 0s, border-color 200ms ease, box-shadow 200ms ease;
}

.signup input[type="email"]::placeholder {
  color: rgb(255 253 246 / 45%);
}

.signup input[type="email"]:focus {
  border-color: rgb(var(--c));
  box-shadow: 0 0 18px rgb(var(--c) / 30%);
  outline: none;
}

.signup input[type="email"][aria-invalid="true"] {
  border-color: #ff8f7d;
}

.signup input[type="email"][aria-invalid="true"]:focus {
  box-shadow: 0 0 18px rgb(255 143 125 / 30%);
}

.signup-section.is-called .signup-orb {
  animation: signup-call 1.2s ease-out 2;
}

.signup-section.is-called .signup input[type="email"] {
  border-color: rgb(var(--c));
  box-shadow: 0 0 22px rgb(var(--c) / 45%);
}

@keyframes signup-call {
  40% {
    transform: scale(1.1);
  }
}

.signup button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid rgb(var(--c) / 70%);
  border-radius: 999px;
  background-color: rgb(8 24 20 / 88%);
  background-image: linear-gradient(rgb(var(--c) / 12%), rgb(var(--c) / 12%));
  color: rgb(var(--c));
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgb(0 0 0 / 25%);
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.signup button:is(:hover, :focus-visible):not(:disabled) {
  background-color: rgb(var(--c));
  border-color: rgb(var(--c));
  color: var(--green-dark);
}

.signup button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.signup-consent {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  max-width: 540px;
  margin: 4px auto 0;
  padding: 10px 8px;
  color: rgb(255 253 246 / 92%);
  font-size: 15px;
  line-height: 1.45;
  text-shadow: 0 2px 10px rgb(0 0 0 / 70%);
  cursor: pointer;
}

.signup-consent .drawn-check {
  margin-top: -1px;
}

.signup-consent a {
  color: var(--lime);
  text-underline-offset: 3px;
}

.signup-guard {
  display: flex;
  justify-content: center;
  margin: 0;
}

.signup-guard.is-shown {
  margin-top: 10px;
}

.signup-guard:empty {
  display: none;
}

.signup-status {
  min-height: 1.5em;
  margin: 10px 0 0;
  font-size: 14px;
  text-align: center;
}

.signup-status.is-ok {
  color: var(--lime);
}

.signup-status.is-error {
  color: #ffb4a6;
}

.nw {
  white-space: nowrap;
}

.signup-trap,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 460px) {
  .signup-row {
    flex-direction: column;
  }

  .signup button {
    width: 100%;
  }
}

@media (max-height: 820px) and (min-width: 761px) {
  h1 {
    --h1-size: 48px;
  }

  .age-orb {
    --size: 96px;
  }

  .signup-orb-light {
    --size: 104px;
  }
}

@media (max-width: 760px) {
  header,
  .hero-section,
  .signup-section {
    width: calc(100% - 32px);
  }

  .wordmark {
    min-height: 66px;
  }

  .wordmark-logo {
    height: 66px;
  }

  .wordmark-logo--lat,
  .wordmark-logo--ja {
    height: 52px;
  }

  .art span {
    background:
      radial-gradient(ellipse at 50% 55%, rgb(10 29 25 / 62%), rgb(10 29 25 / 88%) 85%),
      linear-gradient(0deg, rgb(10 29 25 / 65%), rgb(10 29 25 / 35%) 50%, rgb(10 29 25 / 60%) 100%);
  }

  .hero-section {
    min-height: calc(calc(var(--sh, 1svh) * 100) - 70px);
  }

  .signup-section {
    min-height: auto;
    padding: 64px 0 40px;
  }

  h1 {
    font-size: 38px;
  }

  .age-orbs {
    gap: 12px;
  }

  .age-orb {
    --size: 88px;
  }

  .signup-orb-light {
    --size: 92px;
  }

  .age-orb-label {
    font-size: 19px;
    text-shadow: 0 2px 8px rgb(0 0 0 / 90%), 0 1px 3px rgb(0 0 0 / 95%);
  }

  .age-orb-age {
    font-size: 19px;
  }

  .age-orb-text {
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.45;
    text-shadow: 0 1px 3px rgb(0 0 0 / 98%), 0 2px 8px rgb(0 0 0 / 90%), 0 4px 14px rgb(0 0 0 / 75%);
  }
}

@media (max-width: 760px) and (max-height: 700px) {
  h1 {
    font-size: 30px;
  }

  .age-orb {
    --size: 72px;
  }

  .age-orb-label {
    font-size: 16px;
  }

  .age-orb-text {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fireflies {
    display: none;
  }

  .art img {
    transition: none !important;
    transform: none !important;
  }

  .age-orb-light,
  .age-orb-light::before,
  .age-orb-light .flame,
  .signup-orb-light,
  .signup-orb-light::before,
  .signup-section.is-called .signup-orb {
    animation: none;
  }

  .reveal {
    animation: none;
  }

  .lang-switch-menu {
    animation: none;
  }

  .lang-switch summary,
  .lang-switch-caret,
  .lang-switch-menu :is(button, a) {
    transition: none;
  }
}

.signup-section--all {
  --c: 217 237 103;
}

.signup-card {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.signup-eyebrow {
  display: block;
  margin: 0 0 10px;
  color: rgb(var(--c));
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgb(var(--c) / 50%);
}

.signup-title {
  margin: 0 auto 20px;
  max-width: 820px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(20px, 2.7vw, 30px);
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
  text-shadow: 0 4px 24px rgb(0 0 0 / 75%);
}

@media (min-width: 720px) {
  .signup-title {
    white-space: nowrap;
  }
}

.signup-desc {
  max-width: 520px;
  margin: 0 auto 24px;
  color: var(--ink-soft);
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.55;
  text-wrap: balance;
  text-shadow: 0 2px 14px rgb(0 0 0 / 70%);
}

.signup-orb-light .chosen-path {
  stroke: #f2d38c;
}


.section-nav {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}


.author-note-wrap {
  width: min(100%, 760px);
  margin: var(--note-gap) auto 0;
  animation-delay: 250ms;
}

.author-note {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.6;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 2px 16px rgb(0 0 0 / 55%);
}

@media (max-width: 760px) {
  .author-note {
    font-size: 16px;
  }
}

@media (min-width: 761px) {
  h1 {
    width: max-content;
    max-width: calc(100vw - 80px);
    font-size: min(var(--h1-size, 60px), max(32px, calc((100vw - 80px) / var(--h1-em, 19.5))));
  }

  html[lang="bg"] h1 {
    --h1-em: 23.3;
  }

  html[lang="en"] h1 {
    --h1-em: 21.9;
  }

  html[lang="ru"] h1 {
    --h1-em: 26.3;
  }

  html[lang="de"] h1 {
    --h1-em: 23.3;
  }

  html[lang="cs"] h1 {
    --h1-em: 23.2;
  }
}

@media (max-height: 960px) and (min-width: 761px) {
  .age-orb-light {
    margin-bottom: 4px;
  }

  .hero-section {
    --note-gap: 24px;
  }
}

@media (max-width: 480px) {
  header {
    padding-block: 6px;
  }

  .wordmark-logo--ja {
    height: 38px;
  }

  @media (max-width: 360px) {
    .wordmark-logo--ja {
      height: 30px;
    }
  }

  .hero-section {
    padding-block: 0 16px;
    --title-gap: 4px;
    --note-gap: 8px;
    --orb-extra: 4px;
  }

  @media (min-height: 701px) {
    .hero-section {
      --orb-extra: 12px;
    }
  }

  .age-orbs {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    width: 100%;
    scroll-margin-top: 28px;
  }

  .age-orb {
    --size: 60px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: 1fr auto auto auto 1fr;
    grid-template-areas:
      "icon ."
      "icon label"
      "icon age"
      "icon text"
      "icon .";
    align-items: center;
    column-gap: 16px;
    row-gap: 0;
    min-height: 62px;
    text-align: left;
  }

  .age-orb-light {
    --bob: -5px;
    grid-area: icon;
    align-self: start;
    margin: 0;
  }

  .age-orb-label {
    grid-area: label;
  }

  .age-orb-label {
    font-size: clamp(16px, 5vw, 19px);
  }

  .age-orb-age {
    grid-area: age;
    margin: 0;
    line-height: 1.1;
    font-size: 19px;
  }

  .age-orb-text {
    grid-area: text;
    margin-top: 2px;
    max-width: none;
  }

  .age-orb:has(:focus-visible) .age-orb-light,
  .age-orb.is-touched .age-orb-light {
    transform: translateY(-3px) scale(1.06);
  }

  @media (hover: hover) and (pointer: fine) {
    .age-orb:hover .age-orb-light {
      transform: translateY(-3px) scale(1.06);
    }
  }

  .age-orb-link::after {
    border-radius: 20px;
  }

  .age-orb-link:focus-visible::after {
    outline-offset: 2px;
  }
}

@media (min-width: 481px) {
  .age-orb-age {
    margin-top: -3px;
  }

  .age-orb-text {
    max-width: 24ch;
    margin: 7px auto 16px;
  }
}

@media (min-width: 761px) and (max-height: 820px) {
  .hero-section {
    --orb-extra: 22px;
  }

  .age-orb-age {
    line-height: 1.1;
  }

  .age-orb-text {
    margin: 5px auto 12px;
    line-height: 1.4;
  }
}

@media (max-width: 480px) and (max-height: 700px) {
  .author-note {
    font-size: 15px;
    line-height: 1.5;
  }

  .age-orb-label {
    font-size: 16px;
  }

  .age-orb-age {
    font-size: 16px;
  }
}

.signup-consent-text {
  text-wrap: balance;
}
