/* Emberwild — marketing site. One continuous sky: dawn at the top, night at the bottom.
   Brand: ember is the one glow; gold is for Origin only; money is plain mono ink and never moves. */

:root {
  --sky: #F6F1E7;
  --cloud: #FFFFFF;
  --line: #E7DFD0;
  --dusk: #2B2342;
  --ink: #2A2430;
  --ink-dim: #6E6578;
  --ember: #FF8A3D;
  --ember-deep: #E86A1C;
  --gold: #F7C948;
  --good: #4CC38A;
  --hurt: #F25C5C;
  --locked: #C9C1B3;

  --el-ember: #FF6B4A; --el-tide: #3FB8E6; --el-stone: #A98B6A;
  --el-gale: #5FCFD9;  --el-bloom: #6FD08C; --el-void: #9B7FE8;

  --f-display: 'Fredoka', ui-rounded, system-ui, sans-serif;
  --f-body: 'Nunito Sans', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --lift: 0 5px 0 var(--ink);
  --lift-sm: 0 3px 0 var(--ink);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pop: cubic-bezier(.2, 1.4, .4, 1);
  --scroll: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--sky); color: var(--ink);
  font: 400 17px/1.6 var(--f-body); overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 10px; }

/* ---------- the sky ---------- */
.sky { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.sky__layer { position: absolute; inset: 0; opacity: 0; transition: opacity .2s linear; }
.sky__layer--dawn { opacity: 1; background: linear-gradient(180deg, #FCE6D3 0%, #FDF0E2 38%, #F6F1E7 70%, #EAF3F1 100%); }
.sky__layer--gold { background: linear-gradient(180deg, #FFD9A8 0%, #FFE9CC 40%, #F9E2D2 75%, #F2D6E0 100%); }
.sky__layer--dusk { background: linear-gradient(180deg, #8E7BC9 0%, #C49BC8 40%, #F2B8A6 80%, #FFD3A0 100%); }
.sky__layer--night { background: linear-gradient(180deg, #1E1834 0%, #2B2342 45%, #3B2F5C 100%); }
.sky__stars {
  position: absolute; inset: 0; opacity: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 42%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 44% 12%, #FFE7C2 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 33%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 48%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 52% 62%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 72%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 92% 78%, #FFE7C2 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 86%, #fff 50%, transparent 51%);
  background-size: 640px 520px;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { filter: brightness(.7); } to { filter: brightness(1.2); } }
.motes { position: fixed; inset: 0; z-index: -1; pointer-events: none; width: 100%; height: 100%; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--cloud);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--bg); color: var(--ink); text-decoration: none; cursor: pointer;
  font: 600 18px/1 var(--f-display); letter-spacing: .01em;
  box-shadow: var(--lift); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn--ember { --bg: var(--ember); }
.btn--ember:hover { box-shadow: 0 8px 0 var(--ink), 0 0 36px rgba(255, 138, 61, .55); }
.btn--cloud { --bg: rgba(255, 255, 255, .92); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; box-shadow: var(--lift-sm); }
.btn--sm:hover { box-shadow: 0 5px 0 var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 800 13px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 12px var(--ember); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .6; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 12px; left: 50%; translate: -50% 0; z-index: 50;
  width: min(calc(100% - 24px), 1180px); height: 64px; padding: 0 10px 0 20px;
  display: flex; align-items: center; gap: 20px;
  background: rgba(255, 252, 246, .78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 2px solid var(--ink); border-radius: 999px; box-shadow: var(--lift-sm);
  transition: transform .4s var(--ease);
}
.nav.is-hidden { transform: translateY(-120%); }
.wordmark { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; font: 700 22px/1 var(--f-display); letter-spacing: .04em; }
.wordmark__e { width: 15px; height: 22px; }
.wordmark__e rect { fill: var(--ink); }
.wordmark__flame { fill: var(--ember); filter: drop-shadow(0 0 4px rgba(255, 138, 61, .8)); }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; transition: background .2s; }
.nav__links a:hover { background: rgba(42, 36, 48, .07); }
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: max(720px, 100svh); padding: 120px var(--gutter) 60px;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); align-items: center; gap: 24px;
  max-width: 1480px; margin: 0 auto;
}
.hero__copy { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 22px; max-width: 560px; }
.hero__title { font-size: clamp(48px, 7.4vw, 104px); font-weight: 700; line-height: .95; }
.hero__title .line { display: block; animation: rise .9s var(--pop) both; }
.hero__title .line:nth-child(2) { animation-delay: .12s; }
.hero__title .line--em { animation-delay: .24s; color: var(--ember-deep); text-shadow: 0 0 40px rgba(255, 138, 61, .35); }
@keyframes rise { from { opacity: 0; transform: translateY(40px) rotate(-2deg); } to { opacity: 1; transform: none; } }
.hero__sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-dim); max-width: 470px; animation: rise .9s .36s var(--pop) both; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; animation: rise .9s .46s var(--pop) both; }

.hero__stage { position: relative; z-index: 2; animation: float-in 1.4s .1s var(--ease) both; }
@keyframes float-in { from { opacity: 0; transform: translateY(60px) scale(.94); } to { opacity: 1; transform: none; } }

/* A painted island lifted out of its own sky: the edges fade into the page's sky. */
.world { position: relative; width: 100%; aspect-ratio: 1376 / 768; animation: bob 7s ease-in-out infinite; }
.world__art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 50% 52% at 50% 54%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 52% at 50% 54%, #000 62%, transparent 100%);
}
@keyframes bob { 50% { transform: translateY(-14px); } }
.world__spot {
  position: absolute; left: var(--x); top: var(--y); height: var(--h); aspect-ratio: .9;
  translate: -50% -100%; z-index: 2;
}

/* A live dragon (iframe of the game's own renderer) with its still behind it until it's ready. */
.live { position: relative; width: 100%; height: 100%; }
.live__still, .live iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.live__still { object-fit: contain; object-position: 50% 100%; transition: opacity .5s; }
.live iframe { opacity: 0; transition: opacity .6s; color-scheme: normal; }
.live.is-ready iframe { opacity: 1; }
.live.is-ready .live__still { opacity: 0; }
.live::after {
  content: ''; position: absolute; left: 50%; bottom: -2%; width: 62%; height: 9%; translate: -50% 0; z-index: -1;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(42, 36, 48, .3), transparent);
}

.hint {
  position: absolute; left: 50%; bottom: 4%; translate: -50% 0; z-index: 3;
  font: 800 12px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
}
.hint span { display: inline-block; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .85); border: 2px solid var(--ink); animation: nudge 2.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(-5px); } }

/* the far islands span the whole window, not just the hero's column, so none gets a hard edge */
.hero__far { position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: 0; pointer-events: none; overflow: hidden; }
.isle--far {
  position: absolute; width: 30vw; max-width: 420px; opacity: .55; filter: blur(1.5px) saturate(.85);
  -webkit-mask-image: radial-gradient(ellipse 46% 48% at 50% 54%, #000 50%, transparent 100%);
  mask-image: radial-gradient(ellipse 46% 48% at 50% 54%, #000 50%, transparent 100%);
  animation: bob 9s ease-in-out infinite;
}
.isle--a { top: 9%; right: 2%; width: 20vw; animation-delay: -3s; }
.isle--b { bottom: 4%; left: 1%; width: 24vw; opacity: .4; animation-delay: -6s; }
.isle--c { top: 14%; left: 34%; width: 14vw; opacity: .35; filter: blur(2.5px); }

.cloud {
  position: absolute; z-index: 1; pointer-events: none; border-radius: 999px; background: #fff; filter: blur(8px); opacity: .8;
}
.cloud::before, .cloud::after { content: ''; position: absolute; border-radius: 50%; background: inherit; }
.cloud--1 { width: 280px; height: 70px; top: 22%; left: -300px; animation: drift 70s linear infinite; }
.cloud--1::before { width: 140px; height: 110px; left: 40px; top: -50px; }
.cloud--1::after { width: 110px; height: 90px; left: 130px; top: -36px; }
.cloud--2 { width: 200px; height: 52px; top: 64%; left: -260px; animation: drift 90s linear -40s infinite; opacity: .6; }
.cloud--2::before { width: 100px; height: 80px; left: 30px; top: -36px; }
.cloud--3 { width: 340px; height: 80px; bottom: 6%; left: -380px; animation: drift 110s linear -70s infinite; opacity: .7; }
.cloud--3::before { width: 160px; height: 120px; left: 70px; top: -60px; }
.cloud--3::after { width: 120px; height: 100px; left: 190px; top: -44px; }
@keyframes drift { to { transform: translateX(calc(100vw + 760px)); } }

.scroll-cue { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; width: 30px; height: 48px; border: 2px solid var(--ink); border-radius: 999px; z-index: 3; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 6px; height: 10px; translate: -50% 0; border-radius: 4px; background: var(--ember); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 60% { transform: translateY(14px); opacity: 0; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 104px; gap: 8px; text-align: center; min-height: auto; }
  .hero__copy { margin: 0 auto; align-items: center; }
  .hero__stage { margin: 0 -12vw; }
  .isle--a { width: 34vw; top: 4%; }
  .isle--b { width: 40vw; }
  .isle--c { display: none; }
  .scroll-cue { display: none; }
}


/* ---------- shared section bits ---------- */
section { position: relative; }
.head { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.display { font-size: clamp(36px, 5.2vw, 68px); font-weight: 700; }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-dim); max-width: 620px; }
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- six islands ---------- */
.islands { padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 120px); }
.islands__picker {
  display: flex; justify-content: center; gap: clamp(6px, 1.6vw, 22px); flex-wrap: wrap;
  margin: 36px auto 26px; padding: 0 var(--gutter);
}
.egg-btn {
  all: unset; cursor: pointer; position: relative; display: grid; justify-items: center; gap: 8px;
  width: clamp(64px, 9vw, 104px); -webkit-tap-highlight-color: transparent;
}
.egg-btn img { width: 74%; aspect-ratio: 105 / 128; object-fit: contain; transition: transform .4s var(--pop), filter .3s; filter: drop-shadow(0 8px 8px rgba(42, 36, 48, .15)); transform-origin: 50% 90%; }
.egg-btn span { font: 600 15px/1 var(--f-display); color: var(--ink-dim); transition: color .2s; }
.egg-btn:hover img { transform: rotate(-8deg) translateY(-4px); animation: wobble .6s ease-in-out; }
@keyframes wobble { 25% { rotate: -9deg; } 50% { rotate: 7deg; } 75% { rotate: -4deg; } }
.egg-btn::before {
  content: ''; position: absolute; top: 4%; left: 50%; width: 92%; aspect-ratio: 1; translate: -50% 0; z-index: -1;
  border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--el) 45%, transparent), transparent);
  opacity: 0; transform: scale(.6); transition: opacity .3s, transform .4s var(--pop);
}
.egg-btn[aria-selected='true']::before { opacity: 1; transform: scale(1.15); }
.egg-btn[aria-selected='true'] img { transform: translateY(-8px) scale(1.08); }
.egg-btn[aria-selected='true'] span { color: var(--ink); }
.egg-btn:focus-visible { outline: 3px solid var(--ember); outline-offset: 4px; border-radius: 16px; }

/* A window onto a painted island. The painting covers the frame; the spot stays in view. */
.stage { position: relative; width: calc(100% - 2 * var(--gutter)); max-width: 1320px; margin: 0 auto; }
.frame {
  --fx: .5; --fy: .66; --cx: .34;
  position: relative; height: clamp(520px, 72vh, 760px); border-radius: 40px; overflow: hidden;
  border: 2px solid var(--ink); box-shadow: 0 8px 0 var(--ink), 0 40px 80px -30px rgba(42, 36, 48, .45);
  container-type: size; isolation: isolate; background: var(--dusk); cursor: pointer;
}
.frame__world {
  --ar: 1.7917;
  --W: max(100cqw, calc(100cqh * var(--ar)));
  --H: calc(var(--W) / var(--ar));
  position: absolute; width: var(--W); height: var(--H);
  left: clamp(calc(100cqw - var(--W)), calc(var(--cx, .5) * 100cqw - var(--fx) * var(--W)), 0px);
  top: clamp(calc(100cqh - var(--H)), calc(58cqh - var(--fy) * var(--H)), 0px);
  transition: left 1s var(--ease), top 1s var(--ease);
}
.frame__art { position: absolute; inset: 0; width: 100%; height: 100%; animation: breathe 16s ease-in-out infinite alternate; }
.frame__art--next { opacity: 0; transition: opacity .7s ease; }
.frame__art--next.is-on { opacity: 1; }
@keyframes breathe { to { transform: scale(1.03); } }
.frame__spot { position: absolute; height: 46%; aspect-ratio: .9; translate: -50% -100%; z-index: 2; transition: opacity .35s, transform .5s var(--pop); }
.frame__spot.is-out { opacity: 0; transform: translateY(30px) scale(.85); }
.frame__bubble {
  position: absolute; z-index: 4; left: 50%; top: 16%; translate: -50% 0; max-width: min(360px, 80%);
  padding: 12px 18px; border-radius: 20px; border: 2px solid var(--ink); background: #fff; box-shadow: var(--lift-sm);
  font: 700 15px/1.35 var(--f-body); text-align: center; animation: pop .45s var(--pop) both;
}
.frame__bubble b { display: block; font: 600 20px/1.1 var(--f-display); margin-bottom: 2px; }
@keyframes pop { from { opacity: 0; transform: scale(.7) translateY(14px); } to { opacity: 1; transform: none; } }

.el-card {
  position: absolute; z-index: 5; right: 22px; top: 22px; bottom: 22px; width: min(380px, 38%);
  display: flex; flex-direction: column; gap: 10px; padding: 24px; overflow: auto; cursor: default;
  border-radius: 28px; border: 2px solid var(--ink); background: rgba(255, 252, 246, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--lift-sm);
}
.stage.is-flip .frame { --cx: .66; }
.stage.is-flip .el-card { right: auto; left: 22px; }
.el-card { transition: left .5s var(--ease), right .5s var(--ease); }
.el-card__home { font: 800 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--el); filter: brightness(.8); }
.el-card__name { font-size: 44px; font-weight: 700; }
.el-card__blurb { color: var(--ink-dim); font-size: 16px; }
.el-card__moves { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.move {
  all: unset; cursor: pointer; display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 10px;
  min-height: 60px; padding: 6px 10px 6px 6px; border-radius: 18px; border: 2px solid var(--ink); background: #fff;
  box-shadow: var(--lift-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.move img { width: 48px; height: 48px; border-radius: 12px; }
.move b { font: 600 15px/1.1 var(--f-display); display: block; }
.move i { font: 800 10px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); font-style: normal; }
.move:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--ink); }
.move:active, .move.is-on { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); background: color-mix(in srgb, var(--el) 22%, #fff); }
.move:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }
.el-card__wheel { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--ink-dim); }
.el-card__wheel b { color: var(--ink); }

@media (max-width: 900px) {
  .frame, .stage.is-flip .frame { --cx: .5; height: min(62vh, 440px); border-radius: 30px 30px 0 0; box-shadow: none; }
  .el-card, .stage.is-flip .el-card { position: relative; inset: auto; width: auto; border-radius: 0 0 30px 30px; border-top: 0; box-shadow: 0 8px 0 var(--ink); padding: 20px; }
  .el-card__name { font-size: 34px; }
  .frame__spot { height: 52%; }
  .frame__bubble { top: 5%; font-size: 13px; }
}
}

/* ---------- hatch ---------- */
.hatch { padding: clamp(60px, 10vw, 140px) var(--gutter); }
.hatch__grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hatch__copy { display: flex; flex-direction: column; gap: 18px; }
.hatch__eggs { display: flex; gap: 8px; flex-wrap: wrap; }
.hatch__eggs .egg-btn { width: 54px; }
.hatch__eggs .egg-btn span { display: none; }
.care { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.care__btn {
  all: unset; cursor: pointer; display: grid; justify-items: center; gap: 2px; padding: 14px 8px 12px; min-height: 44px;
  border-radius: 22px; border: 2px solid var(--ink); background: #fff; box-shadow: var(--lift-sm); text-align: center;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .2s;
}
.care__btn:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--ink); }
.care__btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.care__btn[disabled] { opacity: .45; cursor: default; transform: none; box-shadow: var(--lift-sm); }
.care__btn:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }
.care__icon { font-size: 26px; line-height: 1.1; }
.care__btn b { font: 600 18px/1 var(--f-display); }
.care__btn i { font: 800 10px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); font-style: normal; }
.traits { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; }
.traits li { padding: 8px 14px; border-radius: 999px; background: #fff; border: 2px solid var(--line); font-weight: 800; font-size: 14px; animation: pop .4s var(--pop) both; }
.traits li em { font-style: normal; color: var(--ink-dim); font-weight: 600; margin-right: 6px; }
.hatch__days { display: flex; gap: 8px; }
.hatch__days span { flex: 1; height: 8px; border-radius: 999px; background: var(--line); transition: background .3s; }
.hatch__days span.is-on { background: var(--ember); box-shadow: 0 0 12px rgba(255, 138, 61, .6); }

.hatchery { position: relative; aspect-ratio: 1376 / 768; border-radius: 36px; overflow: hidden; border: 2px solid var(--ink); box-shadow: 0 8px 0 var(--ink), 0 40px 80px -30px rgba(42, 36, 48, .45); }
.hatchery__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hatchery__nest { position: absolute; left: 50%; top: 66%; width: 30%; aspect-ratio: 1; translate: -50% -86%; display: grid; place-items: end center; }
.hatchery__egg { position: relative; width: 44%; transform-origin: 50% 92%; transition: filter .4s; z-index: 2; }
.hatchery__egg.is-wobble { animation: wobble .7s ease-in-out; }
.hatchery__egg.is-shake { animation: shake .12s linear infinite; }
@keyframes shake { 0% { rotate: -5deg; } 50% { rotate: 5deg; } 100% { rotate: -5deg; } }
.hatchery__egg.is-gone { animation: crack-out .5s ease-in forwards; }
@keyframes crack-out { to { transform: scale(1.4); opacity: 0; filter: brightness(2.5); } }
.hatchery__glow { position: absolute; left: 50%; bottom: 8%; width: 90%; aspect-ratio: 1; translate: -50% 20%; border-radius: 50%; z-index: 1;
  background: radial-gradient(closest-side, rgba(255, 170, 90, calc(.25 + var(--warm, 0) * .2)), transparent); animation: pulse-glow 4s ease-in-out infinite; }
@keyframes pulse-glow { 50% { transform: scale(1.12); } }
.hatchery__burst { position: absolute; left: 50%; bottom: 20%; width: 10px; height: 10px; translate: -50% 0; border-radius: 50%; z-index: 3; pointer-events: none;
  background: radial-gradient(closest-side, #fff, rgba(255, 190, 120, .9) 40%, rgba(255, 138, 61, 0)); opacity: 0; }
.hatchery__burst.is-on { animation: burst 1.1s var(--ease) forwards; }
@keyframes burst { 0% { opacity: 1; transform: scale(1); } 40% { opacity: 1; transform: scale(60); } 100% { opacity: 0; transform: scale(80); } }
.hatchery__baby { position: absolute; inset: -10% -20% 0; z-index: 2; animation: pop .7s var(--pop) both; }
.hatchery__go { position: absolute; right: 20px; bottom: 20px; z-index: 4; }
.hatchery__go[disabled] { opacity: .5; cursor: default; transform: none; box-shadow: var(--lift); }
@media (max-width: 900px) { .hatch__grid { grid-template-columns: 1fr; } .hatchery { order: -1; border-radius: 28px; } .hatchery__go { right: 12px; bottom: 12px; min-height: 46px; font-size: 16px; } }

/* ---------- breed ---------- */
.breed { padding: clamp(60px, 9vw, 120px) 0; }
.shrine { position: relative; margin: 34px auto 0; width: calc(100% - 2 * var(--gutter)); max-width: 1320px; aspect-ratio: 16 / 9; border-radius: 40px; overflow: hidden; border: 2px solid var(--ink); box-shadow: 0 8px 0 var(--ink), 0 40px 80px -30px rgba(42, 36, 48, .5); background: var(--dusk); }
.shrine__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; filter: saturate(1.05); }
.shrine::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(43, 35, 66, .55)); }
.shrine__toy { position: absolute; inset: 0; z-index: 2; }
.shrine__toy .live__still { width: 30%; left: 35%; top: 30%; height: 50%; }
.live--toy::after { display: none; }
@media (max-width: 900px) { .shrine { aspect-ratio: auto; height: 760px; border-radius: 30px; } }

/* ---------- arena ---------- */
.arena { padding: clamp(60px, 9vw, 120px) 0; }
.field { position: relative; margin: 34px auto 0; width: calc(100% - 2 * var(--gutter)); max-width: 1320px; aspect-ratio: 16 / 8; min-height: 460px; border-radius: 40px; overflow: hidden; border: 2px solid var(--ink); box-shadow: 0 8px 0 var(--ink), 0 40px 80px -30px rgba(42, 36, 48, .5); container-type: size; }
.field__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
/* main.js lays the field out like the game's battle stage (game/src/ui/Stage.tsx): the floor
   painting is placed by its own pixels and each dragon's feet stand on the game's spots */
.field.is-laid .field__art { inset: auto; max-width: none; object-fit: fill; }
.field__side { position: absolute; inset: 0; }
.fighter { position: absolute; margin: 0; width: 22cqh; max-width: 40%; translate: -50% -100%; transition: transform .35s var(--ease); }
.field:not(.is-laid) .fighter { visibility: hidden; }
.field.is-laid .fighter { max-width: none; }
.fighter img { width: 100%; filter: drop-shadow(0 12px 10px rgba(42, 36, 48, .3)); animation: idle 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
.fighter:nth-child(2) img { animation-delay: -1s; }
.fighter:nth-child(3) img { animation-delay: -2s; }
@keyframes idle { 50% { transform: scaleY(.97) scaleX(1.02); } }
.field__side--them .fighter img { transform: scaleX(-1); animation-name: idle-flip; }
@keyframes idle-flip { 0%, 100% { transform: scaleX(-1); } 50% { transform: scaleX(-1.02) scaleY(.97); } }
.fighter.is-lunge { transform: translateX(28%) scale(1.06); }
.field__side--them .fighter.is-lunge { transform: translateX(-28%) scale(1.06); }
.fighter.is-hit img { animation: hit .5s ease-out; }
@keyframes hit { 20% { transform: translateX(10px) rotate(4deg); filter: brightness(1.8); } 60% { transform: translateX(-6px); } }
.field__side--them .fighter.is-hit img { animation-name: hit-flip; }
@keyframes hit-flip { 0%, 100% { transform: scaleX(-1); } 20% { transform: scaleX(-1) translateX(-10px) rotate(-4deg); filter: brightness(1.8); } }
.hp { position: absolute; left: 15%; right: 15%; top: -6px; height: 8px; border-radius: 999px; background: rgba(42, 36, 48, .25); border: 2px solid var(--ink); overflow: hidden; }
.hp i { display: block; height: 100%; width: var(--hp); background: var(--good); transition: width .6s var(--ease); }
.dmg { position: absolute; z-index: 2001; font: 700 34px/1 var(--f-display); color: var(--hurt); -webkit-text-stroke: 2px var(--ink); paint-order: stroke; pointer-events: none; animation: arc 1.1s var(--ease) forwards; }
.dmg--heal { color: var(--good); }
@keyframes arc { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 15% { opacity: 1; transform: translate(6px, -30px) scale(1.15); } 100% { opacity: 0; transform: translate(26px, -70px) scale(1); } }
/* the live battle (main.js): over the scripted field once the game has drawn it */
.field__live { position: absolute; inset: 0; z-index: 3000; opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.field__live iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: transparent; opacity: 0; transition: opacity .4s ease; }
.field.is-booting .field__live { opacity: 1; }
.field.is-live .field__live { pointer-events: auto; }
.field.is-live .field__live iframe { opacity: 1; }
.field.is-booting > :not(.field__live):not(.field__art) { visibility: hidden; }
.field__wait { position: absolute; left: 50%; top: 50%; translate: -50% -50%; margin: 0; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .9); border: 2px solid var(--ink); font-weight: 800; font-size: 15px; white-space: nowrap; animation: wait-breathe 1.6s ease-in-out infinite; }
.field.is-live .field__wait { display: none; }
@keyframes wait-breathe { 50% { opacity: .55; } }
.field__log { position: absolute; left: 50%; top: 18px; translate: -50% 0; z-index: 2000; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .92); border: 2px solid var(--ink); font-weight: 800; font-size: 15px; white-space: nowrap; }
.field__moves { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; z-index: 2000; display: flex; gap: 10px; }
.field__moves .move { min-width: 170px; }
.field__moves .move[disabled] { opacity: .55; cursor: default; }
.arena__facts { max-width: 1100px; margin: 50px auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; }
.wheel { position: relative; width: 300px; height: 300px; margin: 0 auto; color: var(--ink-dim); }
.wheel svg { position: absolute; inset: 0; animation: spin 60s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.wheel__egg { all: unset; cursor: pointer; position: absolute; width: 58px; translate: -50% -50%; text-align: center; transition: transform .3s var(--pop); }
.wheel__egg img { width: 100%; filter: drop-shadow(0 6px 6px rgba(42, 36, 48, .2)); }
.wheel__egg:hover, .wheel__egg.is-on { transform: scale(1.18); }
.wheel__egg:focus-visible { outline: 3px solid var(--ember); outline-offset: 4px; border-radius: 50%; }
.wheel__egg.is-prey::after { content: "x1.25"; position: absolute; left: 50%; top: -14px; translate: -50% 0; font: 700 13px/1 var(--f-display); background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 7px; }
.wheel__label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font: 600 17px/1.2 var(--f-display); color: var(--ink); pointer-events: none; padding: 80px; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stats li { padding: 20px 22px; border-radius: 24px; background: rgba(255, 255, 255, .8); border: 2px solid var(--ink); box-shadow: var(--lift-sm); }
.stats b { display: block; font: 700 42px/1 var(--f-display); }
.stats span { color: var(--ink-dim); font-weight: 700; font-size: 15px; }
@media (max-width: 900px) {
  .field { aspect-ratio: auto; height: 640px; border-radius: 30px; }
  .field__moves { left: 10px; right: 10px; bottom: 10px; translate: none; gap: 6px; }
  .field__moves .move { display: flex; align-items: center; flex: 1 1 0; min-width: 0; min-height: 0; padding: 6px; flex-direction: column; gap: 4px; text-align: center; }
  .field__moves .move img { width: 34px; height: 34px; border-radius: 9px; }
  .field__moves .move i { display: none; }
  .field__moves .move b { font-size: 13px; }
  .field__log { font-size: 13px; white-space: normal; text-align: center; width: max-content; max-width: 90%; }
  .arena__facts { grid-template-columns: 1fr; }
}

/* ---------- grow ---------- */
.grow { padding: clamp(60px, 9vw, 120px) var(--gutter); }
.grow__inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grow__copy { display: flex; flex-direction: column; gap: 20px; }
.grow__range { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--ember) calc(var(--p, 0) * 100%), var(--line) 0); border: 2px solid var(--ink); cursor: pointer; }
.grow__range::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.grow__range::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }
.grow__stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.grow__stops li { padding: 12px; border-radius: 18px; border: 2px solid transparent; transition: border-color .3s, background .3s; cursor: pointer; }
.grow__stops li b { display: block; font: 600 18px/1.1 var(--f-display); }
.grow__stops li span { font-size: 13px; color: var(--ink-dim); font-weight: 600; }
.grow__stops li.is-on { border-color: var(--ink); background: #fff; box-shadow: var(--lift-sm); }
.grow__stage { position: relative; height: 460px; display: grid; place-items: end center; }
.grow__disc { position: absolute; left: 50%; bottom: 0; width: 76%; height: 18%; translate: -50% 30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(95, 207, 217, .35), transparent); }
.grow__img { position: relative; height: 100%; width: auto; object-fit: contain; transform-origin: 50% 100%; transition: transform .6s var(--pop), opacity .25s; filter: drop-shadow(0 14px 12px rgba(42, 36, 48, .2)); }
@media (max-width: 900px) { .grow__inner { grid-template-columns: 1fr; } .grow__stage { height: 320px; order: -1; } .grow__stops { grid-template-columns: repeat(2, 1fr); } }

/* ---------- ways ---------- */
.ways { padding: clamp(60px, 9vw, 120px) var(--gutter); }
.ways__grid { max-width: 1180px; margin: 40px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.way { padding: 14px 14px 22px; border-radius: 30px; background: rgba(255, 255, 255, .78); border: 2px solid var(--ink); box-shadow: var(--lift-sm); display: flex; flex-direction: column; gap: 8px; transition: transform .3s var(--ease), box-shadow .3s; }
.way:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 9px 0 var(--ink); }
.way__art { aspect-ratio: 4 / 3; border-radius: 120px 120px 18px 18px; border: 2px solid var(--ink); background: var(--img) 50% 60% / cover; margin-bottom: 6px; transition: background-size .6s var(--ease); }
.way:hover .way__art { background-size: 115%; }
.way h3 { font-size: 26px; padding: 0 8px; }
.way p { color: var(--ink-dim); padding: 0 8px; font-size: 15px; }
@media (max-width: 900px) { .ways__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ways__grid { grid-template-columns: 1fr; } }

/* ---------- origin (gold lives only here) ---------- */
.origin { padding: clamp(60px, 9vw, 120px) var(--gutter); }
.origin__card { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: 40px; background: var(--dusk); color: #FBF6EC; border: 2px solid var(--ink); box-shadow: 0 8px 0 var(--ink); position: relative; overflow: hidden; }
.origin__card::before { content: ''; position: absolute; inset: 10px; border-radius: 32px; border: 1.5px solid rgba(247, 201, 72, .45); pointer-events: none; }
.origin__card .lede { color: rgba(251, 246, 236, .78); }
.eyebrow--gold { color: var(--gold); }
.origin__art { position: relative; display: grid; place-items: center; min-height: 380px; }
.origin__art img { position: relative; width: min(340px, 80%); filter: drop-shadow(0 18px 16px rgba(0, 0, 0, .35)); }
.origin__halo { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(247, 201, 72, .55); animation: spin 50s linear infinite; }
.origin__halo::after { content: ''; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(247, 201, 72, .22), transparent); }
.origin__mark { position: absolute; right: 8%; bottom: 10%; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--gold); color: var(--ink); border: 2px solid var(--ink); font: 700 15px/1 var(--f-display); box-shadow: var(--lift-sm); }
.origin__mark svg { width: 18px; height: 18px; fill: var(--ink); }
.origin__copy { display: flex; flex-direction: column; gap: 16px; position: relative; }
.steps { list-style: none; margin: 6px 0 0; padding: 0; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: start; }
.steps li::before { content: counter(s); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(247, 201, 72, .15); border: 2px solid var(--gold); color: var(--gold); font: 700 16px/1 var(--f-display); }
.steps b { font: 600 19px/1.2 var(--f-display); }
.steps span { color: rgba(251, 246, 236, .7); font-size: 15px; }
.tiers { max-width: 1180px; margin: 24px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tier { padding: 20px; border-radius: 24px; background: #fff; border: 2px solid var(--ink); box-shadow: var(--lift-sm); }
.tier h3 { font-size: 22px; }
.price { font: 600 26px/1.3 var(--f-mono); color: var(--ink); }
.tier p:last-child { color: var(--ink-dim); font-size: 14px; font-weight: 600; }
.fine { max-width: 1180px; margin: 16px auto 0; color: var(--ink-dim); font-size: 14px; }
.mono { font-family: var(--f-mono); }
@media (max-width: 900px) { .origin__card { grid-template-columns: 1fr; } .origin__art { min-height: 280px; } .tiers { grid-template-columns: 1fr 1fr; } }

/* ---------- economy ---------- */
.economy { padding: clamp(60px, 9vw, 120px) var(--gutter); }
.loop { max-width: 1180px; margin: 40px auto 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.loop__node { position: relative; margin: 0 8px; padding: 18px 16px; border-radius: 22px; background: rgba(255, 255, 255, .85); border: 2px solid var(--ink); box-shadow: var(--lift-sm); text-align: center; }
.loop__node b { display: block; font: 600 18px/1.15 var(--f-display); }
.loop__node span { font-size: 13px; color: var(--ink-dim); font-weight: 600; }
.loop__node:not(:last-child)::after { content: "\2192"; position: absolute; right: -16px; top: 50%; translate: 0 -50%; font: 700 20px/1 var(--f-display); z-index: 2; }
.loop__node--hoard { background: var(--dusk); color: #FBF6EC; }
.loop__node--hoard span { color: rgba(251, 246, 236, .7); }
.eco-grid { max-width: 1180px; margin: 22px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.eco { padding: 20px; border-radius: 24px; background: rgba(255, 255, 255, .85); border: 2px solid var(--ink); }
.eco .big { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; margin-bottom: 4px; }
.eco p:last-child { color: var(--ink-dim); font-size: 14px; font-weight: 600; }
.why { max-width: 1180px; margin: 22px auto 0; padding: clamp(22px, 3vw, 36px); border-radius: 30px; background: rgba(255, 255, 255, .88); border: 2px solid var(--ink); box-shadow: var(--lift-sm); }
.why h3 { font-size: 28px; margin-bottom: 12px; }
.why ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.why li { color: var(--ink-dim); }
.why li b { color: var(--ink); }
.glossary { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.glossary summary { cursor: pointer; font: 600 17px/1.3 var(--f-display); }
.glossary dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0 0; font-size: 14px; }
.glossary dt { font-weight: 800; }
.glossary dd { margin: 0; color: var(--ink-dim); }
@media (max-width: 900px) {
  .loop { grid-template-columns: 1fr; gap: 26px; }
  .loop__node:not(:last-child)::after { content: "\2193"; right: auto; left: 50%; top: auto; bottom: -26px; translate: -50% 0; }
  .eco-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- roadmap: an ember trail of eggs on its own dusk panel ---------- */
.roadmap { padding: clamp(60px, 9vw, 120px) var(--gutter); }
.roadmap__panel {
  position: relative; max-width: 1180px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 56px);
  border-radius: 44px; background: radial-gradient(120% 80% at 50% 0%, #3B2F5C 0%, var(--dusk) 60%); color: #FBF6EC;
  border: 2px solid var(--ink); box-shadow: 0 8px 0 var(--ink), 0 50px 90px -40px rgba(43, 35, 66, .7); overflow: hidden;
}
.roadmap__panel::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 24% 40%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 86% 18%, #FFE7C2 50%, transparent 51%), radial-gradient(1px 1px at 70% 52%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 76%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 6% 84%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 92%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 58% 8%, #fff 50%, transparent 51%);
  animation: twinkle 5s ease-in-out infinite alternate;
}
.roadmap .eyebrow { color: rgba(251, 246, 236, .7); }
.roadmap .lede { color: rgba(251, 246, 236, .72); }
.trail { list-style: none; margin: 56px 0 0; padding: 0; position: relative; display: grid; gap: 28px; }
/* the trail: a solid glowing line, ember where we are, cooling to lavender ahead */
.trail::before {
  content: ''; position: absolute; left: 50%; top: 30px; bottom: 30px; width: 4px; translate: -50% 0; border-radius: 4px;
  background: linear-gradient(180deg, var(--ember) 0%, #C99BE0 30%, rgba(155, 127, 232, .35) 100%);
  box-shadow: 0 0 18px rgba(255, 138, 61, .35);
}
.trail__step { position: relative; display: grid; grid-template-columns: 1fr 92px 1fr; align-items: center; }
.trail__egg { grid-column: 2; justify-self: center; width: 58px; filter: saturate(.55) brightness(.85) drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); transition: transform .4s var(--pop), filter .3s; position: relative; z-index: 1; }
.trail__step:hover .trail__egg { transform: rotate(-8deg) scale(1.08); filter: none; }
.trail__card { grid-row: 1; padding: 20px 24px; border-radius: 26px; background: rgba(255, 255, 255, .07); border: 1.5px solid rgba(251, 246, 236, .22); backdrop-filter: blur(4px); }
.trail__step:nth-child(odd) .trail__card { grid-column: 1; text-align: right; }
.trail__step:nth-child(even) .trail__card { grid-column: 3; }
.trail__when { display: inline-block; margin-bottom: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(251, 246, 236, .12); font: 800 11px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(251, 246, 236, .8); }
.trail__card h3 { font-size: 26px; margin-bottom: 6px; }
.trail__card p { font-size: 15px; color: rgba(251, 246, 236, .72); }
.trail__step.is-now .trail__egg { width: 74px; filter: drop-shadow(0 0 22px rgba(255, 138, 61, .85)); animation: wobble 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
.trail__step.is-now .trail__card { background: rgba(255, 138, 61, .14); border-color: rgba(255, 138, 61, .6); }
.trail__step.is-now .trail__when { background: var(--ember); color: var(--ink); }
@media (max-width: 760px) {
  .trail::before { left: 34px; }
  .trail__step { grid-template-columns: 68px 1fr; gap: 6px; }
  .trail__egg { grid-column: 1; width: 46px; }
  .trail__step.is-now .trail__egg { width: 56px; }
  .trail__step:nth-child(n) .trail__card { grid-column: 2; text-align: left; }
}

/* ---------- join ---------- */
.join { padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(80px, 10vw, 140px); color: #FBF6EC; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; max-width: 1240px; margin: 0 auto; }
.join__isle img { width: 100%; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 60%, transparent 100%); animation: bob 8s ease-in-out infinite; }
.join__copy { display: flex; flex-direction: column; gap: 18px; }
.join__copy .lede { color: rgba(251, 246, 236, .78); }
.join__form { display: flex; gap: 10px; flex-wrap: wrap; }
.join__form input { flex: 1 1 220px; min-height: 54px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--ink); font: 600 17px var(--f-body); background: #FBF6EC; color: var(--ink); }
.join__form input:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }
.join__ok { font-weight: 800; color: #FFD3A0; }
.join__social a { color: #FBF6EC; font-weight: 800; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 900px) { .join { grid-template-columns: 1fr; text-align: center; } .join__form { justify-content: center; } }

.foot { padding: 40px var(--gutter) 60px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(251, 246, 236, .7); text-align: center; font-size: 14px; }
.foot .wordmark { color: #FBF6EC; }
.foot .wordmark__e rect { fill: #FBF6EC; }
.foot__small { font-size: 12px; opacity: .7; }

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