.home { background: #152238; }
.home .play-dock { display: none; }
.home-away .home .play-dock { display: inline-flex; position: fixed; z-index: 30; left: auto; right: 1.5rem; bottom: max(1rem, env(safe-area-inset-bottom)); box-shadow: 0 10px 35px #050e2499; }
.home > footer { padding-bottom: 6rem; }
.home #main { overflow: clip; }
.home-hero { position: relative; isolation: isolate; overflow: hidden; overflow: clip; background: #142238; color: var(--cloud); }
.home-hero-landscape { position: absolute; inset: -5% 0; z-index: 0; transform: translate3d(0, var(--home-drift, 0px), 0) scale(var(--home-scale, 1)); }
.home-hero-art { width: 100%; height: 100%; object-fit: cover; object-position: 65% 45%; transform: scale(1.06); }
.home-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #101e33e0, #14223899 38%, #1422380a 80%), linear-gradient(0deg, #152238, #15223826 35%, transparent 65%); z-index: 1; pointer-events: none; }
.home-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); grid-template-rows: 1fr auto; gap: 1.5rem 3rem; align-items: center; min-height: calc(100vh - var(--home-header-height, 4.25rem)); min-height: calc(100svh - var(--home-header-height, 4.25rem)); padding-block: clamp(3rem, 7vh, 6rem) 2.25rem; }
.home-hero-copy { align-self: center; transform: translate3d(0, var(--home-copy-drift, 0px), 0); }
.home-hero-inner { z-index: 2; }
.home-hero .eyebrow { font-size: .75rem; }
.home-hero h1 { font-size: clamp(3rem, 5.6vw, 5.5rem); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 1.4rem; }
.home-hero h1 em { color: var(--gold); font-weight: inherit; }
.home-intro { font-size: 1.05rem; color: #e0e9f6; line-height: 1.8; max-width: 31rem; margin-bottom: 1.75rem; }
.home-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.4rem; }
.home-actions .btn { font-size: .9rem; }
.home-hero .home-actions > .btn { min-width: 12rem; }
.home-secondary { font-weight: 800; font-size: .85rem; color: #e2ecfb; text-decoration: none; }
.home-secondary:hover { text-decoration: underline; }
.home-returning { display: inline-flex; gap: .6rem; margin-top: 1.25rem; min-height: 32px; align-items: center; color: #c3d1e3; text-decoration: none; font-size: .76rem; }
.home-returning:hover { color: var(--gold); }
.home-details { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 1.6rem; color: #c3d1e3; font-size: .75rem; letter-spacing: .02em; }
.home-details span + span::before { content: '✦'; color: var(--gold); margin-right: 1rem; font-size: .5rem; }
.home-join { align-self: center; margin: 0; border: 1px solid #f4c76b40; background: #142238bd; backdrop-filter: blur(12px); padding: 1.6rem; border-radius: 16px; box-shadow: 0 18px 45px #07101e40; }
.home-join h2 { font-size: 1.7rem; }
.home-join .eyebrow { font-size: .75rem; }
.home-join .server-card { border: 0; padding: 0; background: transparent; box-shadow: none; margin: 1.25rem 0 .85rem; }
.home-join .server-entry { display: none; }
.home-join .server-health { margin-top: 0; padding-top: 0; border-top: 0; }
.home-join .server-icon { width: 48px; height: 48px; }
.home-join .server-name { font-size: 1rem; }
.home-join .motd-1 { font-size: .8rem; }
.home-join .motd-2 { display: none; }
.home-join .server-status { font-size: .72rem; margin-top: .9rem; }
.home-join .server-players { font-size: .8rem; }
.home-join .address-row { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.2rem; }
.home-join .address { min-width: 0; flex: 1 1 100%; font-size: 1rem; padding: .85rem 1rem; border: 1px solid #a6c3e42b; background: #111e32; }
.home-join .btn-copy { width: 100%; min-width: 0; font-size: .85rem; padding: .8rem 1rem; }
.home-join-help { color: #b7c9e0; font-size: .7rem; text-decoration: none; }
.home-join-help:hover { color: var(--sky); text-decoration: underline; }
.home-join-note { font-size: .74rem; color: #c3d1e3; margin: .8rem 0 .45rem; }
.home-scroll-cue { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; justify-self: start; color: #d1dff0; font: 700 .66rem var(--body); text-transform: uppercase; letter-spacing: .19em; text-decoration: none; min-height: 44px; }
.home-scroll-cue:hover { color: var(--gold); }
.home-scroll-line { width: 3.5rem; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.home-scroll-cue > span:last-child { color: var(--gold); font-size: 1.25rem; }
.home-horizon { position: absolute; pointer-events: none; z-index: 1; inset: auto -10% -8rem; height: 15rem; background: radial-gradient(ellipse at 15% 80%, #405e7d75, transparent 42%), radial-gradient(ellipse at 80% 100%, #6d7ca64d, transparent 45%); filter: blur(20px); }
.home-section-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.home-section-heading h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); margin-bottom: 0; }
.home-section-heading .eyebrow { margin-bottom: .5rem; font-size: .75rem; }
.home-section-heading > p { font-size: .85rem; margin: 0; }
.home-discover { position: relative; background: radial-gradient(ellipse at 0% 28%, #30576a30, transparent 32%), radial-gradient(ellipse at 100% 58%, #7652a82b, transparent 35%), radial-gradient(ellipse at 5% 90%, #407b9c24, transparent 32%), #152238; scroll-margin-top: 4rem; }
.home-discover-intro { padding-top: clamp(3.5rem, 9vh, 6rem); text-align: center; }
.home-discover-intro h2 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); margin-bottom: 1rem; }
.home-discover-intro > p:not(.eyebrow) { color: #b7c9df; font-size: 1rem; line-height: 1.8; }
.home-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2rem; text-align: left; }
.home-paths a { display: flex; align-items: center; gap: .8rem; padding-block: 1rem; border-block: 1px solid #91b4d72b; color: var(--cloud); text-decoration: none; }
.home-paths a:hover { border-color: var(--gold); }
.home-paths img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.home-paths a > span:first-of-type { flex: 1; }
.home-paths strong { display: block; font-size: .86rem; }
.home-paths small { display: block; color: #b7c9df; font-size: .73rem; margin-top: .2rem; }
.home-paths a > span:last-child { color: var(--gold); }
.home-scene { position: relative; scroll-margin-top: 0; }
.home-scene-inner { min-height: 34rem; padding-block: 3.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.home-scene-art { position: relative; display: grid; place-items: center; min-height: 23rem; isolation: isolate; }
.home-scene-art::before { content: ''; position: absolute; inset: 5%; z-index: -1; border-radius: 50%; background: radial-gradient(ellipse, #77c8f522, transparent 68%); }
.home-scene-art > img { display: block; width: min(100%, 360px); height: auto; object-fit: contain; filter: drop-shadow(0 25px 35px #050f244d); }
.home-orbit { position: absolute; z-index: -1; width: 85%; aspect-ratio: 1; border: 1px solid #77c8f51a; border-radius: 50%; transform: rotate(-25deg) scaleY(.6); }
.home-orbit::after { content: '✦'; position: absolute; left: 12%; top: 9%; color: #f4c76b99; font-size: 1.1rem; }
.home-scene-copy { max-width: 29rem; }
.home-scene-copy .eyebrow { margin-bottom: 1.5rem; }
.home-scene h3 { font-size: clamp(2.25rem, 3.8vw, 3.6rem); line-height: 1.12; letter-spacing: -.02em; margin-bottom: 1.5rem; }
.home-scene-copy > p:not(.eyebrow) { color: #b7c9df; line-height: 1.9; font-size: 1rem; max-width: 26rem; }
.home-scene-points { padding: 0; list-style: none; margin: 1rem 0; color: #d5e3f1; font-size: .82rem; display: grid; gap: .5rem; }
.home-scene-points li::before { content: '✦'; color: var(--gold); font-size: .6rem; margin-right: .7rem; }
.home-scene-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.5rem; }
.home-quiet-link { display: inline-flex; align-items: center; min-height: 44px; color: #b9d9f2; font-size: .8rem; text-underline-offset: .35em; }
.home-game-loop { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1.25rem; font-size: .8rem !important; }
.home-game-loop span:nth-child(odd) { color: #dec9fd; font-weight: 800; }
.home-game-loop span:nth-child(even) { color: #9d87b9; }
.home-scene-copy .home-scene-aside { font-size: .84rem !important; padding-left: 1rem; border-left: 2px solid #77c8f555; }
.home-scene-link { display: inline-flex; align-items: center; gap: 1.8rem; min-height: 48px; margin-top: 1rem; border-bottom: 1px solid #f4c76b4d; color: var(--gold); text-decoration: none; font-size: .85rem; font-weight: 800; }
.home-scene-link:hover { color: #ffe0a0; border-color: currentColor; }
.home-scene-link > span { transition: transform .25s; }
.home-scene-link:hover > span { transform: translate(3px, -3px); }
.home-scene-magic .home-scene-art { order: 2; }
.home-scene-magic .home-scene-copy { order: 1; }
.home-scene-magic .home-scene-art::before { background: radial-gradient(ellipse, #b381fb2e, transparent 65%); }
.home-scene-magic .home-scene-art > img { width: min(70%, 260px); filter: drop-shadow(0 0 50px #a36cef40); }
.home-scene-magic .eyebrow { color: var(--lavender); }
.home-scene-magic .home-orbit { border-color: #c59afa24; transform: rotate(25deg) scaleY(.7); }
.home-art-star { position: absolute; color: var(--gold); }
.home-art-star-one { font-size: 2rem; top: 18%; right: 18%; }
.home-art-star-two { font-size: 1.3rem; bottom: 18%; left: 20%; color: var(--lavender); }
.home-scene-people { padding-bottom: 2rem; }
.home-scene-people .home-scene-art > img { width: min(100%, 400px); }
.home-next { scroll-margin-top: 5rem; padding-block: 4.5rem; border-block: 1px solid #90b1d325; background: radial-gradient(ellipse at 0 50%, #6e578f22, transparent 70%), #192840; }
.home-next-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4rem; align-items: center; }
.home-next h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); }
.home-next-copy > p:not(.eyebrow) { max-width: 25rem; color: #c0d0e3; line-height: 1.85; }
.home-next-copy > .home-quiet-link { max-width: 26rem; }
.home-next-goals { display: grid; }
.home-next-goals > a { display: flex; align-items: flex-start; gap: 1.2rem; padding: 1.5rem 0; border-bottom: 1px solid #90b1d32e; color: var(--cloud); text-decoration: none; }
.home-next-goals > a:first-child { border-top: 1px solid #90b1d32e; }
.home-next-goals > a:hover h3 { color: var(--gold); }
.home-goal-number { color: var(--gold); font: 800 .72rem var(--mono); padding-top: .25rem; }
.home-next-goals small { display: block; color: #b5cae2; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .4rem; }
.home-next-goals h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.home-next-goals p { color: #b7c9df; font-size: .84rem; line-height: 1.8; margin: 0; }
.home-next-goals a > span:last-child { margin-left: auto; color: var(--gold); }
.home-news { padding-block: 4rem; background: #152238; }
.home-news .news-card { border-radius: 14px; overflow: hidden; background: #20314b; border-color: #9ab1d230; }
.home-news .news-card h3 { font-size: 1.45rem; }
.home-news .news-card h3 a { color: #eef4ff; }
.home-news .news-card p { font-size: .88rem; color: #becde1; }
.home-news .news-card .cat { color: #f4c76b; }
.home-news .news-card-img { height: 160px; }
.home-news .news-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.home-news .news-grid:has(> :only-child) .news-card { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1fr); }
.home-news .news-grid:has(> :only-child) .news-card-img { height: 100%; min-height: 200px; background-image: linear-gradient(90deg, #15223844, #15223822), url('../img/forum/hero.png'); background-size: cover; background-position: center; }
.home-news .news-card-body { padding: 1.5rem; }
.home-arcade-note { padding-block: 1.25rem; font-size: .82rem; color: #b7c9df; text-align: center; }
.home-arcade-note p { margin: 0; }
.home-showcases { padding-block: 4rem; }
.home-community { scroll-margin-top: 5rem; padding-block: 5rem; background: linear-gradient(#152238e8, #152238f5), url('../img/forum/hero.png') center / cover; }
.home-community-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
.home-community-portraits { display: flex; margin-bottom: 1.3rem; }
.home-community-portraits img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 5px 10px #07101e40); }
.home-community-portraits img + img { margin-left: -.7rem; }
.home-community .eyebrow { font-size: .75rem; }
.home-community h2 { font-size: clamp(2.4rem, 4vw, 3.5rem); }
.home-community p:not(.eyebrow) { color: #b7c9df; font-size: .95rem; }
.home-community .home-actions { margin-top: 1.5rem; }
.home-community .home-final-address { margin-top: 1rem; font-size: .82rem; }
.home-final-address input { display: block; color: var(--gold); background: none; padding: 0; border: 0; width: 100%; max-width: 22rem; font: 700 .85rem var(--mono); }
.home-final-address > span { display: block; color: #a9bed7; margin-top: .5rem; font-size: .72rem; }
.home-community-link { display: inline-flex; align-items: center; gap: .55rem; color: #c8b6f6; font-size: .8rem; min-height: 44px; margin-top: .3rem; text-decoration: none; }
.home-community-link svg { width: 20px; height: 20px; fill: currentColor; }
.home-start-steps { list-style: none; padding: 1.5rem 0 1.5rem 2rem; margin: 0; border-left: 1px solid #f4c76b3b; display: grid; gap: 1.8rem; }
.home-start-steps li { display: flex; align-items: flex-start; gap: 1rem; }
.home-start-steps li > span { color: var(--gold); font: 800 .72rem var(--mono); margin-top: .3rem; }
.home-start-steps h3 { font: 800 1rem var(--body); margin-bottom: .5rem; }
.home-start-steps p { color: #b7c9df; font-size: .84rem; line-height: 1.85; margin: 0; }
.home-start-help a { color: var(--sky); font-size: .76rem; }
.home-discover, .home-next, .home-community { scroll-margin-top: 0; }
/* Reveal styles are enabled only after the controller has measured the page. */
.home-motion [data-home-reveal] { opacity: var(--reveal-opacity, 1); transform: translate3d(0, var(--reveal-y, 0px), 0) scale(var(--reveal-scale, 1)); }
.home-motion [data-home-reveal]:focus-within { opacity: 1; transform: none; }
.home-intro-skip { display: none; }
.intro-pending .home-intro-skip { display: inline-flex; align-items: center; gap: .8rem; position: fixed; z-index: 101; bottom: 1.5rem; right: 1.5rem; padding: .7rem 1rem; border: 1px solid #273b5755; border-radius: 30px; background: #f4f9ffe8; color: #233650; font: 800 .75rem var(--body); cursor: pointer; animation: intro-out .01s linear 2.9s forwards; }
.intro-pending .home-intro-skip:focus-visible { outline-color: #233650; }
.intro-pending .home-hero-art { animation: home-world-arrive 2.9s cubic-bezier(.16, 1, .3, 1) both; }
.intro-pending .home-hero-copy > *, .intro-pending .home-join, .intro-pending .home-scroll-cue { animation: rise 1s cubic-bezier(.16, 1, .3, 1) both; }
.intro-pending .home-hero-copy > :nth-child(1) { animation-delay: 1.35s; }
.intro-pending .home-hero-copy > :nth-child(2) { animation-delay: 1.5s; }
.intro-pending .home-hero-copy > :nth-child(3) { animation-delay: 1.65s; }
.intro-pending .home-hero-copy > :nth-child(4) { animation-delay: 1.8s; }
.intro-pending .home-hero-copy > :nth-child(5) { animation-delay: 1.95s; }
.intro-pending .home-hero-copy > :nth-child(6) { animation-delay: 2.05s; }
.intro-pending .home-join { animation-delay: 1.8s; }
.intro-pending .home-scroll-cue { animation-delay: 2s; }
@keyframes home-world-arrive { from { transform: scale(.97); filter: blur(4px); } to { transform: scale(1.06); filter: blur(0); } }

@media (max-width: 1100px) { .home-hero-inner { gap: 1.5rem; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); } .home-join { padding: 1.2rem; } .home-scene-art { min-height: 22rem; } }
@media (max-width: 900px) {
  .home-hero-inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto auto; padding-block: 3rem 1.25rem; gap: 1.5rem; }
  .home-hero-copy { max-width: 38rem; }
  .home-hero-art { object-position: 72% center; }
  .home-join { width: min(100%, 30rem); margin: 0; padding: 1rem; }
  .home-join > .eyebrow, .home-join > h2, .home-join-help, .home-join-note, .home-join .server-entry, .home-join .server-status { display: none; }
  .home-join .server-card { margin: 0; }
  .home-join .server-health { margin-top: 0; }
  .home-join .address-row { flex-wrap: nowrap; gap: .5rem; margin-top: .7rem; }
  .home-join .address { flex: 1 1 auto; padding: .7rem; font-size: .85rem; }
  .home-join .btn-copy { width: auto; flex: none; padding: .6rem .8rem; font-size: .75rem; }
  .home-paths { gap: 1rem; }
  .home-paths img { width: 40px; height: 40px; }
  .home-paths strong { font-size: .76rem; }
  .home-paths small { font-size: .68rem; }
  .home-scene-inner { gap: 2rem; min-height: 0; padding-block: 3rem; }
  .home-scene-art { min-height: 19rem; }
  .home-scene h3 { font-size: 2.4rem; }
  .home-scene h3 br { display: none; }
  .home-next-inner, .home-community-inner { gap: 2rem; }
  .home-next-inner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .home-away .home .play-dock { left: 1rem; right: 1rem; }
}
@media (max-width: 600px) {
  .home-hero h1 { font-size: clamp(2.8rem, 10.5vw, 3.6rem); }
  .home-hero-inner { padding-block: 2rem 1rem; gap: 1rem; }
  .home-hero .eyebrow { font-size: .65rem; }
  .home-intro { font-size: .95rem; }
  .home-intro br { display: none; }
  .home-hero-shade { background: linear-gradient(90deg, #101e33e6, #14223899), linear-gradient(0deg, #152238, transparent 65%); }
  .home-details { gap: .6rem; font-size: .75rem; }
  .home-details span + span::before { margin-right: .6rem; }
  .home-returning { margin-top: .7rem; font-size: .72rem; }
  .home-hero .home-actions { gap: .8rem; }
  .home-hero .home-secondary { font-size: .78rem; }
  .home-scroll-cue { gap: .75rem; font-size: .6rem; }
  .home-scroll-line { width: 2rem; }
  .home-discover-intro { padding-top: 3.5rem; }
  .home-discover-intro br { display: none; }
  .home-paths { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 1.5rem; }
  .home-paths a { border-top: 0; padding-block: .8rem; gap: 1rem; }
  .home-paths a:first-child { border-top: 1px solid #91b4d72b; }
  .home-paths img { width: 48px; height: 48px; }
  .home-paths strong { font-size: .9rem; }
  .home-paths small { font-size: .74rem; }
  .home-scene-inner { grid-template-columns: minmax(0, 1fr); gap: .7rem; padding-block: 1.5rem 3rem; }
  .home-scene-art, .home-scene-magic .home-scene-art { order: 0; min-height: 16rem; }
  .home-scene-art > img { max-width: 270px; }
  .home-scene-magic .home-scene-art > img { max-width: 190px; }
  .home-scene-people .home-scene-art > img { max-width: 300px; }
  .home-orbit { width: 70%; max-width: 300px; }
  .home-scene-copy { margin-inline: auto; width: 100%; max-width: 25rem; }
  .home-scene-copy .eyebrow { margin-bottom: 1rem; font-size: .65rem; }
  .home-scene h3 { font-size: 2.3rem; }
  .home-scene-copy > p:not(.eyebrow) { font-size: .95rem; }
  .home-next, .home-community { padding-block: 3rem; }
  .home-next-inner, .home-community-inner { grid-template-columns: minmax(0, 1fr); }
  .home-next-copy h2 br { display: none; }
  .home-next-goals > a { gap: .9rem; padding-block: 1.2rem; }
  .home-next-goals h3 { font-size: 1.35rem; }
  .home-start-steps { padding: 1.5rem 0 0; border-left: 0; border-top: 1px solid #f4c76b3b; }
  .home-news { padding-block: 2.5rem; }
  .home-news .news-grid:has(> :only-child) .news-card { grid-template-columns: minmax(0, 1fr); }
  .home-news .news-grid:has(> :only-child) .news-card-img { min-height: 140px; height: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-motion [data-home-reveal], .home-hero-copy, .home-hero-landscape { opacity: 1; transform: none; }
  .home-scene-link > span { transition: none; }
  .intro-pending .home-intro-skip { display: none; }
  .intro-pending .home-hero-art, .intro-pending .home-hero-copy > *, .intro-pending .home-join, .intro-pending .home-scroll-cue { animation: none; }
}
