/* Desktop only (see index.html). Phones keep the plain card layout in style.css. */

/* ---------- landing page ---------- */
#app:has(.home) { max-width: none; }
#feed:has(.home) { padding: 0; overflow: hidden; }
.center.home { position: relative; max-width: none; width: 100%; height: 100%; margin: 0; padding: 0 24px 2vh; gap: 0;
  align-items: center; justify-content: flex-end; text-align: center; font-family: "Barlow", system-ui, sans-serif; }
.home > * { position: relative; z-index: 1; }

/* backdrop: the artwork keeps its own shape and always covers the window */
.home .homebg { display: block; position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #070506; }
.home .art { position: absolute; left: 50%; top: 50%; width: max(100vw, 177.3vh); aspect-ratio: 2000 / 1128; transform: translate(-50%, -50%);
  background:
    linear-gradient(#070506 0 8%, #07050600 17%),
    linear-gradient(#07050600 33%, #070506e6 41.5%, #070506 46%),
    url(img/landing-ref.jpg) center / 100% 100% no-repeat; }
.home .homebg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 45% at 12% 88%, #6d0d1433, #0000 70%), radial-gradient(ellipse 50% 40% at 90% 80%, #6d0d141f, #0000 70%),
    radial-gradient(ellipse 90% 90% at 50% 40%, #0000 55%, #000a); }

/* top bar */
.home .homenav { display: flex; position: absolute; inset: 0 0 auto 0; padding: 26px 48px; align-items: center; justify-content: space-between; }
.home .navlink { background: none; padding: 8px 4px; min-height: 0; border-radius: 0; font: 500 19px "Barlow", sans-serif; color: #f5ebdd; border-bottom: 2px solid #0000; }
.home .navlink:hover { border-bottom-color: #e8313b; }

/* wordmark */
.wordmark { display: inline-flex; align-items: baseline; gap: .16em; margin: 0; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.home .wordmark b { font: italic 900 1em "Playfair Display", Georgia, serif; letter-spacing: -.01em; color: #f1ead9; text-shadow: 0 4px 24px #000; }
.home .wordmark i { position: relative; font: 400 1.08em "Permanent Marker", "Marker Felt", cursive; color: #e02a26; transform: rotate(-5deg) translateY(-.04em); text-shadow: 0 4px 24px #000; }
.home .wordmark i::after { content: ""; position: absolute; left: -32%; right: -4%; bottom: .1em; height: .06em; background: linear-gradient(90deg, #e02a2600, #e02a26 18% 82%, #e02a2600);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%); }
.home .wordmark.sm { font-size: 30px; }
.home h1.logo { font-size: clamp(64px, 9.4vw, 170px); margin-bottom: .34em; }
.home .tag { display: none; }
.home .tagline { display: block; font-size: clamp(13px, 1.25vw, 22px); letter-spacing: .5em; text-transform: uppercase; color: #cfc6b8; margin-bottom: 2.6em; padding-left: .5em; }
.home .verbs { display: block; font-size: clamp(12px, 1.1vw, 19px); letter-spacing: .42em; text-transform: uppercase; color: #a79f93; margin-bottom: 2.6em; padding-left: .42em; }
.home .verbs span { margin: 0 1.6em; color: #6d665d; }

/* the two big buttons */
.home .cta { display: flex; gap: 44px; height: 200px; align-items: flex-start; }
.home .cta button { width: min(24vw, 430px); min-width: 250px; height: clamp(56px, 6.2vh, 78px); border-radius: 999px; font: 600 clamp(17px, 1.5vw, 26px) "Barlow", sans-serif;
  letter-spacing: .04em; text-transform: uppercase; color: #f5ebdd; transition: box-shadow .2s, background .2s, transform .1s; }
.home .cta .primary { background: linear-gradient(#7d141a99, #4a0b10cc); border: 2px solid #e8313b; box-shadow: 0 0 26px #e8313b55, inset 0 0 18px #e8313b33; }
.home .cta .primary:hover { background: linear-gradient(#a01b22cc, #6a1016e6); box-shadow: 0 0 40px #e8313b88, inset 0 0 18px #e8313b55; }
.home .cta .ghostly { background: #0b090acc; border: 2px solid #cfc6b8; }
.home .cta .ghostly:hover { background: #1c1819e6; box-shadow: 0 0 26px #f5ebdd22; }
.home .cta .ico { color: #ff5a5f; margin-right: .5em; }

/* after choosing Host or Join: the form takes the buttons' place */
.home .homeform { display: none; }
.home.m-host .cta, .home.m-join .cta, .home.m-how .cta, .home.m-how .verbs { display: none; }
.home.m-host .homeform, .home.m-join .homeform { display: flex; flex-direction: column; gap: 10px; width: min(420px, 90vw); height: 200px; }
.home .homeform .or, .home.m-host .joinonly, .home.m-join .hostonly { display: none; }
.home .homeform .backbtn { display: block; align-self: center; border: 0; color: #a79f93; }
.home .homeform input { background: #0b090ae6; border-color: #4a4144; height: 56px; font-size: 18px; text-align: center; }
.home .homeform input:focus { border-color: #e8313b; }
.home .homeform .primary { height: 56px; border-radius: 999px; font: 600 18px "Barlow", sans-serif; letter-spacing: .04em; text-transform: uppercase; background: #e8313b; }
.home .homeform .gold { height: 56px; border-radius: 999px; padding: 0 28px; font: 600 18px "Barlow", sans-serif; text-transform: uppercase; }
.home .err { margin-top: 10px; }
.home .howto { max-width: 620px; text-align: left; background: #0b090ae6; border: 1px solid #4a4144; border-radius: 16px; padding: 22px 28px; font-size: 17px; line-height: 1.5; color: #e7ded0; }
.home.m-how .howto { display: block; }
.home .howto h2 { font: italic 900 26px "Playfair Display", Georgia, serif; color: #f1ead9; margin-bottom: 8px; }
.home .howto ol { margin: 0 0 14px; padding-left: 22px; }
.home .howto li { margin: 6px 0; }
