/* A centred specimen, with Play attached to the Canvas nucleus. */
body:has(#landing:not([hidden])) { display: flex; flex-direction: column; height: 100svh; min-height: 640px; }
body:has(#landing:not([hidden])) > .site-header { flex-shrink: 0; }
#landing { flex: 1; min-height: 0; overflow: clip; background: radial-gradient(ellipse at 50% 48%, #143b3466, transparent 59%); }
#landing .landing-layout { width: 100%; height: 100%; margin: 0; display: grid; grid-template-rows: 94px minmax(0, 1fr) 116px; }
.landing-intro { position: relative; z-index: 3; text-align: center; padding: 12px 20px 0; }
#landing .hero-manifesto { margin: 0; color: #a1efcb; font-size: clamp(32px, 3.3vw, 48px); font-weight: 550; line-height: 1.12; letter-spacing: -.025em; }
#landing .hero-intro { max-width: none; margin: 8px auto 0; color: var(--sub); font-size: 14px; line-height: 1.45; }
#landing .hero { --scene-size: clamp(680px, calc((100svh - 236px) * 1.75), 1180px); display: block; position: relative; min-height: 0; padding: 0; }
#landing .hero-copy { position: absolute; z-index: 2; left: max(32px, calc((100vw - 1440px) / 2)); top: 50%; transform: translateY(-50%); width: clamp(220px, 22vw, 320px); padding: 0; pointer-events: none; }
#landing .hero-slogan { margin: 0; font-size: clamp(32px, 3vw, 48px); font-weight: 450; line-height: 1.08; letter-spacing: -.055em; }
#landing .hero-slogan em { display: inline-block; padding-right: .08em; color: var(--gold); font: italic 1.54em/1.05 Georgia, 'Times New Roman', serif; letter-spacing: -.065em; }
#landing .hero-slogan > span { display: block; margin-top: 13px; color: var(--text); font-size: .78em; line-height: 1.3; }
#landing .hero-copy.hero-copy--future { left: auto; right: max(32px, calc((100vw - 1440px) / 2)); text-align: right; }
#landing .hero-copy--future .hero-slogan em { display: block; }
#landing .hero-art { position: absolute; isolation: isolate; width: var(--scene-size); height: calc(var(--scene-size) * 650 / 720); left: 50%; top: calc(50% - 14px); margin: 0; transform: translate(-50.972222%, -50%); }
.cell-interaction { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 48%; background: none; cursor: pointer; }
.cell-interaction:focus-visible { outline: none; }
.cell-interaction:focus-visible::after { content: ''; position: absolute; left: 22%; right: 20%; top: 20%; bottom: 20%; border: 1px solid var(--mint); border-radius: 50%; }
#cell-canvas, #landing .cell-fallback { display: none; width: 100%; height: 100%; pointer-events: none; }
#landing .cell-fallback { display: block; }
.cell-ready #cell-canvas { display: block; }
#landing .cell-ready .cell-fallback { display: none; }
#landing .play { position: absolute; z-index: 2; left: 50.972222%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 8.333333%; aspect-ratio: 1; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: radial-gradient(circle, #f9d99b99, #f4ce8333 68%, transparent 72%); color: #302112; font-size: clamp(18px, 1.5vw, 24px); font-weight: 750; line-height: 1; text-shadow: 0 1px 5px #fff0c2; box-shadow: none; }
#landing .play:hover:not(:disabled) { background: #ffe2a95c; }
#landing .play:focus-visible { outline: 2px solid #ffe9ba; outline-offset: 3px; }
#cell-motion { position: absolute; z-index: 2; left: 75%; top: 68%; display: grid; place-items: center; width: 40px; height: 40px; padding: 10px; border: 1px solid #46655a77; border-radius: 50%; background: #10282399; color: #b6ccc2; opacity: .7; }
#cell-motion:hover, #cell-motion:focus-visible { color: var(--text); border-color: var(--mint); opacity: 1; }
#cell-motion svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#cell-motion .motion-play { display: none; }
#cell-motion[aria-pressed="true"] .motion-play { display: block; }
#cell-motion[aria-pressed="true"] .motion-pause { display: none; }
#landing .cycle { position: relative; z-index: 3; width: min(1360px, calc(100% - 80px)); margin-inline: auto; padding: 12px 0 16px; border-top: 1px solid #42625566; }
#landing .cycle ol { height: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
#landing .cycle li { position: relative; display: flex; align-items: center; gap: 13px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; }
#landing .cycle li + li { padding-left: 22px; border-left: 1px solid var(--line); }
#landing .cycle li > div { min-width: 0; }
.cycle-glyph { width: 78px; height: 74px; flex-shrink: 0; fill: none; stroke: var(--mint); stroke-width: 1; opacity: .9; overflow: visible; }
#landing .cycle li:nth-child(2) .cycle-glyph { stroke: var(--gold); }
#landing .cycle li:nth-child(3) .cycle-glyph { stroke: #afd4db; }
#landing .step-no { position: absolute; left: 0; top: 0; color: var(--muted); font: 8px ui-monospace, Consolas, monospace; }
#landing .cycle li + li .step-no { left: 22px; }
#landing .cycle h3 { margin: 0 0 5px; font-size: 16px; font-weight: 550; }
#landing .cycle li p { margin: 0; max-width: 245px; color: var(--sub); font-size: 13px; line-height: 1.45; }
.account-open { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 13px; border: 1px solid #38574e; border-radius: 100px; background: #12231f; color: #deebe1; font-size: 14px; }
.account-open svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.account-open:hover { border-color: var(--mint); }
body:has(.entry-dialog[open]) { overflow: hidden; }
.entry-dialog { width: min(530px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 34px; border: 1px solid #4a6759; border-radius: 22px; background: radial-gradient(ellipse at 0 0, #20443955, transparent 75%), #101e24; color: var(--text); box-shadow: 0 30px 100px #0009; }
.entry-dialog::backdrop { background: #041013c9; backdrop-filter: blur(8px); }
.entry-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 42px; height: 42px; padding: 10px; border: 0; border-radius: 50%; background: #27423c66; color: #bed2c6; }
.entry-close:hover { background: #35584d; color: white; }
.entry-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.entry-heading { margin-bottom: 28px; padding-right: 25px; }
.entry-kicker { margin: 0 0 10px; color: var(--mint); font: 10px ui-monospace, Consolas, monospace; letter-spacing: .15em; }
.entry-heading h2 { margin: 0; font-size: 30px; font-weight: 500; line-height: 1.2; letter-spacing: -.035em; }
.entry-dialog .google { width: 100%; min-height: 54px; font-size: 16px; background: #1b312c; border-color: #56766a; border-radius: 12px; }
.entry-dialog .google svg { width: 20px; height: 20px; }
.entry-divider { display: flex; align-items: center; gap: 15px; margin: 23px 0; color: var(--muted); font-size: 14px; }
.entry-divider::before, .entry-divider::after { content: ''; height: 1px; flex: 1; background: #355047; }
.entry-dialog .credentials { margin: 0; max-width: none; border-radius: 12px; background: #0b191e; }
.entry-dialog .credentials > summary { padding: 17px; font-size: 16px; font-weight: 500; }
.entry-dialog .credentials form { padding: 0 17px 17px; }
.entry-dialog .auth-fields { grid-template-columns: 1fr; gap: 14px; }
.entry-dialog .auth-fields label { font-size: 14px; gap: 7px; }
.entry-dialog .auth-fields input { min-height: 48px; border-radius: 8px; padding: 10px 12px; }
.entry-dialog .auth-actions { margin-top: 19px; gap: 14px; }
.entry-dialog .auth-actions .primary { min-height: 44px; padding: 10px 18px; font-size: 15px; border-radius: 8px; }
.entry-dialog .auth-actions .text-button { font-size: 14px; min-height: 44px; }
.entry-dialog .panel-hint { font-size: 13px; line-height: 1.6; margin-top: 14px; }
.entry-dialog .entry-note { color: #cbdbcf; font-size: 14px; line-height: 1.6; margin: 20px 0 0; min-height: 0; }
.entry-dialog .entry-note:empty { display: none; }
.entry-credits { display: block; width: fit-content; margin: 25px auto 0; color: #91a99d; font-size: 12px; text-underline-offset: 4px; }
.entry-modes { display: grid; gap: 12px; }
.mode-choice { display: flex; align-items: center; gap: 15px; width: 100%; text-align: left; min-height: 82px; padding: 14px 16px; border: 1px solid #355249; border-radius: 12px; background: #13272a; }
.mode-choice:hover:not(:disabled) { background: #1c3933; border-color: #80c3a4; }
.mode-choice:disabled { opacity: .5; cursor: wait; }
.mode-choice > svg { width: 42px; height: 42px; flex-shrink: 0; stroke: var(--mint); stroke-width: 1.2; fill: none; }
.mode-choice strong, .mode-choice small { display: block; }
.mode-choice strong { font-size: 17px; font-weight: 550; }
.mode-choice small { margin-top: 5px; font-size: 13px; line-height: 1.45; color: #adc5b7; }
.choice-arrow { margin-left: auto; color: var(--mint); font-size: 24px; }
.mode-featured { background: #26372c; border-color: #8e8256; }
.mode-featured > svg, .mode-featured .choice-arrow { color: var(--gold); stroke: var(--gold); }
.mode-friends-label { margin: 15px 0 2px; color: #a6beb1; font: 10px ui-monospace, Consolas, monospace; letter-spacing: .12em; }
.friends-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.friends-choices .mode-choice { align-items: flex-start; flex-direction: column; gap: 12px; padding: 17px; }
.friends-choices .mode-choice strong { font-size: 15px; }
.entry-account { text-align: center; }
.account-specimen { width: 95px; height: 95px; fill: #5ca68d18; stroke: #bbd59c; stroke-width: 1.1; }
.account-name { margin: 15px 0 25px; font-size: 26px; overflow-wrap: anywhere; }
.account-play { display: inline-flex; align-items: center; gap: 30px; min-height: 50px; border-radius: 100px; font-size: 16px; padding-inline: 24px; }
.account-extras { display: flex; flex-direction: column; align-items: center; gap: 15px; margin-top: 28px; padding-top: 22px; border-top: 1px solid #355047; font-size: 14px; }
.account-extras .text-button { margin: 0; color: #b5c8bb; font-size: 14px; }

.cycle-animated * { animation-play-state: paused !important; }
.cycle-visible * { animation-play-state: running !important; }
.motion-paused .cycle-animated * { animation-play-state: paused !important; }
.absorb-membrane { transform-box: fill-box; transform-origin: center; animation: absorb-breathe 5.5s ease-in-out infinite; }
.intake-prey, .intake-particle { transform-box: fill-box; transform-origin: center; animation: intake-drift 5.5s cubic-bezier(.5, 0, .2, 1) var(--delay, 0s) infinite both; }
.intake-prey { --dx: 45px; --dy: 4px; }
.intake-upper { --dx: 49px; --dy: 23px; --delay: 1.2s; }
.intake-lower { --dx: 53px; --dy: -24px; --delay: 2.5s; }
.intake-core { animation: intake-flash 5.5s ease-in-out infinite; }
.colony-cell { animation: colony-arrival 6s ease-in-out infinite; }
.stasis-ring { transform-box: fill-box; transform-origin: center; animation: stasis-halo 6s ease-in-out infinite; }
.stasis-evolution { animation: stasis-change 6s ease-in-out infinite; }
.deposit-token { animation: colony-deposit 6s ease-in-out infinite; }
.deposit-left { --dx: -21px; }
.deposit-right { --dx: 21px; animation-delay: .45s; }
.colony-store { animation: store-light 6s ease-in-out infinite; }
.gene-rail { stroke-dasharray: 150; animation: gene-scaffold 6.5s ease-in-out infinite; }
.gene-segment { --from: 23px; --delay: 0s; animation: gene-assemble 6.5s ease-in-out var(--delay) infinite both; }
.gene-segment:nth-of-type(2n) { --from: -23px; }
.gene-segment:nth-of-type(2) { --delay: .28s; }
.gene-segment:nth-of-type(3) { --delay: .56s; }
.gene-segment:nth-of-type(4) { --delay: .84s; }
.gene-segment:nth-of-type(5) { --delay: 1.12s; }
.gene-segment:nth-of-type(6) { --delay: 1.4s; }
.gene-segment:nth-of-type(7) { --delay: 1.68s; }
.gene-segment:nth-of-type(8) { --delay: 1.96s; }
.gene-seed { animation: gene-seeds 6.5s ease-in-out infinite; }
.seed-second { animation-delay: .8s; }
@keyframes absorb-breathe { 0%, 85%, 100% { transform: scale(1); } 45% { transform: scale(1.07, .96); } 65% { transform: scale(.98, 1.04); } }
@keyframes intake-drift { 0%, 9% { opacity: 0; transform: translate(0, 0) scale(1); } 18% { opacity: .9; } 57% { opacity: .9; transform: translate(calc(var(--dx) * .64), calc(var(--dy) * .64)) scale(.8); } 72%, 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.12); } }
@keyframes intake-flash { 0%, 45%, 100% { fill-opacity: .16; } 70% { fill-opacity: .65; } }
@keyframes colony-arrival { 0%, 100% { transform: translateY(-12px); opacity: .15; } 22%, 78% { transform: translateY(0); opacity: 1; } }
@keyframes stasis-halo { 0%, 15%, 100% { opacity: .15; transform: scale(.88); } 35%, 70% { opacity: .85; transform: scale(1.05); } }
@keyframes stasis-change { 0%, 25%, 100% { opacity: .15; } 60%, 85% { opacity: 1; stroke-width: 1.7; } }
@keyframes colony-deposit { 0%, 30%, 100% { opacity: 0; transform: translate(0, 0); } 38% { opacity: 1; } 66% { opacity: 1; transform: translate(var(--dx), 31px); } 80% { opacity: 0; transform: translate(var(--dx), 31px); } }
@keyframes store-light { 0%, 35%, 100% { opacity: .3; } 65%, 85% { opacity: 1; } }
@keyframes gene-scaffold { 0%, 100% { stroke-dashoffset: 150; opacity: .15; } 45%, 85% { stroke-dashoffset: 0; opacity: .75; } }
@keyframes gene-assemble { 0%, 7%, 100% { opacity: 0; transform: translateX(var(--from)); } 30%, 78% { opacity: 1; transform: translateX(0); } 91% { opacity: 0; transform: translateX(0); } }
@keyframes gene-seeds { 0%, 100% { opacity: 0; transform: translateY(0); } 20% { opacity: .7; } 65% { opacity: 0; transform: translateY(20px); } }

@media (max-width: 1000px) {
  .masthead .beta-badge { display: none; }
  #landing .hero-copy { left: 24px; width: 205px; }
  #landing .hero-copy.hero-copy--future { right: 24px; }
  #landing .hero-slogan { font-size: 31px; }
  #landing .cycle { width: calc(100% - 40px); }
  #landing .cycle ol { gap: 14px; }
  #landing .cycle li { gap: 7px; }
  #landing .cycle li + li { padding-left: 12px; }
  #landing .cycle li + li .step-no { left: 12px; }
  .cycle-glyph { width: 58px; height: 60px; }
  #landing .cycle h3 { font-size: 14px; }
  #landing .cycle li p { font-size: 12px; }
}
@media (max-width: 680px) {
  body:has(#landing:not([hidden])) { min-height: 790px; }
  #landing .landing-layout { grid-template-rows: 88px minmax(0, 1fr) 194px; }
  .landing-intro { padding: 12px 16px 0; }
  #landing .hero-manifesto { font-size: 31px; }
  #landing .hero-intro { max-width: 340px; margin: 7px auto 0; font-size: 13px; }
  #landing .hero { --scene-size: 650px; }
  #landing .hero-copy { left: 16px; top: 0; width: calc((100% - 48px) / 2); max-width: 180px; transform: none; }
  #landing .hero-slogan { font-size: 23px; line-height: 1.05; }
  #landing .hero-slogan em { font-size: 1.23em; }
  #landing .hero-slogan > span { margin-top: 5px; font-size: .78em; }
  #landing .hero-copy.hero-copy--future { right: 16px; }
  #landing .hero-art { top: calc(50% + 20px); }
  #landing .play { font-size: 17px; }
  #cell-motion { left: 73%; top: 66%; }
  #landing .cycle { width: calc(100% - 32px); padding: 8px 0 10px; }
  #landing .cycle ol { grid-template-columns: 1fr; gap: 4px; }
  #landing .cycle li, #landing .cycle li + li { border: 0; padding: 0 0 0 15px; gap: 12px; }
  #landing .cycle li .step-no, #landing .cycle li + li .step-no { left: 0; top: 5px; }
  .cycle-glyph { width: 55px; height: 54px; }
  #landing .cycle h3 { margin-bottom: 2px; font-size: 14px; }
  #landing .cycle li p { max-width: none; font-size: 12px; }
  .account-open { min-height: 40px; padding-inline: 12px; font-size: 13px; }
  .account-open svg { display: none; }
  .entry-dialog { padding: 28px 22px; max-height: calc(100dvh - 24px); border-radius: 18px; }
  .entry-heading h2 { font-size: 27px; }
  .entry-heading { margin-bottom: 25px; }
  .entry-close { top: 8px; right: 8px; }
  .mode-choice { min-height: 82px; padding: 12px; gap: 12px; }
  .mode-choice strong { font-size: 16px; }
  .friends-choices { grid-template-columns: 1fr; }
  .friends-choices .mode-choice { flex-direction: row; align-items: center; padding: 12px; }
}
/* Desktop browser chrome consumes much of a 1080p display at 150% scaling. */
@media (min-width: 681px) and (max-height: 680px) {
  body:has(#landing:not([hidden])) { min-height: 480px; }
  body:has(#landing:not([hidden])) > .site-header .masthead { height: 56px; }
  #landing .landing-layout { grid-template-rows: 76px minmax(0, 1fr) 100px; }
  .landing-intro { padding-top: 6px; }
  #landing .hero-manifesto { font-size: clamp(30px, 3.2vw, 38px); }
  #landing .hero-intro { margin-top: 5px; font-size: 14px; }
  #landing .hero { --scene-size: clamp(528px, calc((100svh - 230px) * 1.65), 820px); }
  #landing .hero-art { top: 50%; }
  #landing .hero-copy { left: 24px; width: clamp(175px, 20vw, 260px); }
  #landing .hero-copy.hero-copy--future { right: 24px; }
  #landing .hero-slogan { font-size: clamp(26px, 2.6vw, 34px); }
  #landing .hero-slogan > span { margin-top: 10px; }
  #landing .play { min-width: 44px; min-height: 44px; font-size: clamp(18px, 1.7vw, 22px); }
  #landing .cycle { width: min(1360px, calc(100% - 64px)); padding: 8px 0 10px; }
  #landing .cycle ol { gap: 18px; }
  #landing .cycle li { gap: 10px; }
  #landing .cycle li + li { padding-left: 16px; }
  #landing .cycle li + li .step-no { left: 16px; }
  #landing .cycle h3 { font-size: 15px; }
  #landing .cycle li p { font-size: 12px; }
  .cycle-glyph { width: 62px; height: 62px; }
}
@media (min-width: 681px) and (max-width: 900px) and (max-height: 680px) {
  #landing .cycle { width: calc(100% - 40px); }
  #landing .cycle ol { gap: 12px; }
  #landing .cycle li { gap: 7px; }
  #landing .cycle li + li { padding-left: 10px; }
  #landing .cycle li + li .step-no { left: 10px; }
  #landing .cycle h3 { font-size: 14px; }
  .cycle-glyph { width: 52px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .cycle-animated * { animation: none !important; }
  .deposit-token { opacity: 0; }
}
