/* The start page: the pitch for new players and the showcase of demos, while the world loads behind it. Plain and fast: no blur, no glass.
   (The page as it was before the showcase is at /original, with its own copy of these styles in original/landing.css.)
   Brand: black, warm white and sand gold, Lexend, the progress bar with three slashes. Returning players see only #landingResume. */
#loading {
  --bg: #0b0c0e; --bg-2: #141619; --tx: #f5f3ed; --tx-2: #aaa69c; --tx-3: #75736d; --gold: #d4b483; --gold-2: #bfb29a; --grey: #8f8f8f; --hair: #ffffff1c;
  position: fixed; inset: 0; z-index: 40; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
  background: var(--bg); color: var(--tx); font-family: var(--font); text-align: left; -webkit-font-smoothing: antialiased; user-select: text; -webkit-user-select: text;
  --load: 0;
}
#loading * { box-sizing: border-box; }
#loading :is(h1, h2, h3, p, ol, ul, figure) { margin: 0; padding: 0; }
#loading button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#loading :is(a, button, input, [tabindex]):focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.pm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pm { --pad: clamp(20px, 5.5vw, 64px); max-width: 1240px; margin: 0 auto; padding: 0 var(--pad) 96px; }

/* the logo: the mountain mark and "Player Me" */
.pm-mark { width: 1.6em; height: auto; color: var(--tx); flex: none; }
.pm-logo { display: inline-flex; align-items: center; gap: .55em; color: var(--tx); text-decoration: none; font-size: 21px; font-weight: 700; letter-spacing: -.035em; }
.pm-logo b, .pm-hero h1 span, .pm-end h2 span { color: var(--gold); font-weight: inherit; }
.pm-top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; margin: 0 calc(-1 * var(--pad)); padding: max(14px, env(safe-area-inset-top)) var(--pad) 14px; background: linear-gradient(var(--bg) 62%, #0b0c0e00); }
.pm-top-play { min-height: 40px; padding: 0 18px; border: 1px solid var(--hair); border-radius: 999px; background: transparent; color: var(--tx); font-size: 14px; font-weight: 500; transition: background .2s, border-color .2s; }
.pm-top-play:hover { background: #ffffff12; border-color: #ffffff40; }

/* the hero */
.pm-hero { position: relative; display: grid; gap: 0; padding: clamp(30px, 7vh, 80px) 0 20px; }
.pm-kicker { color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.pm-hero h1 { margin-top: 16px !important; font-size: clamp(38px, 10.4vw, 112px); font-weight: 700; line-height: .98; letter-spacing: -.055em; text-wrap: balance; }
.pm-hero h1 span { display: block; color: var(--tx); }
.pm-lead { max-width: 30em; margin-top: 22px !important; color: var(--tx-2); font-size: clamp(16px, 4.3vw, 19px); line-height: 1.55; }

/* the brand bar doubles as the loading bar of the world */
.pm-load { display: flex; align-items: center; gap: 14px; width: 100%; padding-right: 6px; max-width: 560px; margin-top: 30px; }
.pm-bar { position: relative; flex: 1; height: 5px; border-radius: 3px; background: #ffffff30; overflow: hidden; }
.pm-bar b { position: absolute; inset: -1px auto -1px 0; width: calc(8% + var(--load) * 92%); background: var(--tx); border-radius: 2px; transition: width .5s cubic-bezier(.2,.7,.2,1); }
.pm-slash { display: flex; gap: 5px; flex: none; }
.pm-slash b { width: 16px; height: 13px; transform: skewX(-38deg); background: var(--grey); animation: pmSlash 1.8s ease-in-out infinite; }
.pm-slash b:nth-child(2) { background: var(--gold-2); animation-delay: .18s; }
.pm-slash b:nth-child(3) { background: var(--gold); animation-delay: .36s; }
#loading.world-ready .pm-slash b { animation: none; }
@keyframes pmSlash { 0%, 60%, 100% { opacity: 1; } 30% { opacity: .35; } }
.pm-load-txt { margin-top: 10px !important; color: var(--tx-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
#loading.world-ready .pm-load-txt { color: var(--gold); }

/* the two choices: play, or stay up to date */
.pm-ctas { display: grid; gap: 12px; width: 100%; max-width: 460px; margin-top: 26px; }
.pm-play { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 10px 22px; border: 0; border-radius: 14px; background: var(--tx); color: #0b0c0e; font-size: 17px; font-weight: 600; letter-spacing: -.01em; transition: transform .15s, background .2s; }
.pm-play small { color: #0b0c0e99; font-size: 13px; font-weight: 400; }
.pm-play:hover { background: #fff; transform: translateY(-1px); }
.pm-play:active { transform: translateY(1px); }
#loading [data-play][aria-disabled="true"] { cursor: progress; opacity: .85; }
.pm-or { color: var(--tx-3); font-size: 13px; text-align: center; }
.pm-news { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.pm-news input { min-width: 0; height: 52px; padding: 0 16px; border: 1px solid #ffffff2e; border-radius: 12px; background: var(--bg-2); color: var(--tx); font: inherit; font-size: 16px; }
.pm-news input::placeholder { color: var(--tx-3); }
.pm-news input:focus { outline: none; border-color: var(--gold); }
.pm-news button { height: 52px; padding: 0 16px; border: 1px solid var(--gold); border-radius: 12px; background: transparent; color: var(--gold); font-size: 14.5px; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s; }
.pm-news button:hover { background: var(--gold); color: #0b0c0e; }
.pm-news-note { grid-column: 1 / -1; color: var(--tx-3); font-size: 12px; line-height: 1.5; }
.pm-news.sent input, .pm-news.sent button { display: none; }
.pm-news.sent .pm-news-note { color: var(--gold); font-size: 15px; font-weight: 500; }
.pm-news.bad .pm-news-note { color: #e5a08a; }

.pm-hero-shot { position: relative; margin: 40px calc(-1 * var(--pad)) 0 !important; }
.pm-hero-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.pm-hero-shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#0b0c0e 0, #0b0c0e00 22%, #0b0c0e00 70%, #0b0c0e); pointer-events: none; }

/* sections */
.pm-sec { position: relative; padding-top: clamp(56px, 11vw, 128px); scroll-margin-top: 60px; }
.pm-sec h2 { max-width: 16em; margin-top: 12px !important; font-size: clamp(32px, 8.4vw, 60px); font-weight: 700; line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.pm-sub { max-width: 36em; margin-top: 16px !important; color: var(--tx-2); font-size: 16px; line-height: 1.6; }
#loading h3 { font-size: 20px; font-weight: 600; letter-spacing: -.025em; }

/* the showcase: one part of the game per section, a real picture, a few plain sentences and "Try this out" */
.pm-peek { justify-self: center; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--gold); font-size: 15px; font-weight: 500; text-decoration: none; }
.pm-peek::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.pm-peek:hover { color: var(--tx); }
.pm-jump { display: flex; gap: 8px; margin: 26px calc(-1 * var(--pad)) 0; padding: 0 var(--pad) 4px; overflow-x: auto; scrollbar-width: none; }
.pm-jump::-webkit-scrollbar { display: none; }
.pm-jump a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--hair); border-radius: 999px; color: var(--tx-2); font-size: 14px; text-decoration: none; transition: color .2s, border-color .2s; }
.pm-jump a:hover { color: var(--tx); border-color: #ffffff40; }
.pm-demos { display: grid; gap: 64px; margin-top: 44px; }
.pm-demo { display: grid; gap: 20px; scroll-margin-top: 76px; }
.pm-demo-shot { display: block; margin: 0 calc(-1 * var(--pad)); }
.pm-demo-shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-2); }
.pm-demo-txt { display: grid; justify-items: start; gap: 10px; }
.pm-demo-txt b { display: inline-flex; align-items: center; gap: 9px; color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.pm-demo-txt b i { width: 9px; height: 9px; transform: skewX(-38deg); background: var(--gold); }
.pm-demo-txt h3 { font-size: clamp(26px, 6.6vw, 38px) !important; font-weight: 700 !important; line-height: 1.08; letter-spacing: -.04em !important; text-wrap: balance; }
.pm-demo-txt p { max-width: 32em; color: var(--tx-2); font-size: 16px; line-height: 1.6; }
.pm-try { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin-top: 8px; padding: 0 24px; border-radius: 14px; background: var(--gold); color: #0b0c0e; font-size: 16px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; transition: transform .15s, background .2s; }
.pm-try::after { content: ""; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.pm-try:hover { background: #e3c79a; transform: translateY(-1px); }
.pm-try:active { transform: translateY(1px); }
@media (max-width: 520px) { .pm-try { width: 100%; } }

.pm-end { display: grid; justify-items: start; }
.pm-end h2 span { display: inline; }
.pm-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 90px; padding-top: 24px; border-top: 1px solid var(--hair); color: var(--tx-3); font-size: 13px; }
.pm-foot span { display: inline-flex; align-items: center; gap: 8px; color: var(--tx-2); font-weight: 600; }
.pm-foot .pm-mark { width: 22px; }
.pm-foot nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.pm-foot a { display: inline-flex; align-items: center; min-height: 32px; color: var(--tx-3); text-decoration: none; transition: color .2s; }
.pm-foot a:hover { color: var(--gold); }

/* questions: plain details, one open at a time is fine */
/* small wonders: two pictures of the world moving, then a short list */
.pm-alive-grid { display: grid; gap: 40px; margin-top: 40px; }
.pm-alive-card { display: grid; gap: 16px; }
.pm-alive-card img { display: block; width: calc(100% + 2 * var(--pad)); margin: 0 calc(-1 * var(--pad)); height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-2); }
.pm-alive-card h3 { font-size: clamp(22px, 5.4vw, 28px); font-weight: 700; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.pm-alive-card p { max-width: 32em; margin-top: 8px !important; color: var(--tx-2); font-size: 16px; line-height: 1.6; }
.pm-wonders { display: grid; margin-top: 40px !important; list-style: none; border-top: 1px solid var(--hair); }
.pm-wonders li { position: relative; padding: 18px 0 18px 24px; border-bottom: 1px solid var(--hair); color: var(--tx-2); font-size: 16px; line-height: 1.6; }
.pm-wonders li::before { content: ""; position: absolute; left: 2px; top: 27px; width: 9px; height: 9px; transform: skewX(-38deg); background: var(--gold); }
.pm-wonders b { color: var(--tx); font-weight: 600; }
.pm-qa { margin-top: 28px; border-top: 1px solid var(--hair); }
.pm-qa details { border-bottom: 1px solid var(--hair); }
.pm-qa summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.pm-qa summary::-webkit-details-marker { display: none; }
.pm-qa summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(-3px) rotate(45deg); transition: transform .25s; }
.pm-qa details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.pm-qa p { max-width: 40em; padding: 0 0 20px; color: var(--tx-2); font-size: 15.5px; line-height: 1.65; }
.pm-qa p b { color: var(--tx); font-weight: 600; }
.pm-qa a { color: var(--gold); }

/* the dock: once the hero is out of view, Play stays one tap away on a phone */
.pm-dock { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 4; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px; border: 1px solid #ffffff1f; border-radius: 18px; background: #16181cf2; box-shadow: 0 10px 40px #0008; transform: translateY(130%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.pm-dock.show { transform: none; }
.pm-dock-load { flex: 1; display: flex; }
.pm-dock button { min-height: 46px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--tx); color: #0b0c0e; font-size: 15px; font-weight: 600; }

/* entrance and scroll reveals: transform and opacity only */
/* The headline and buttons never wait for an animation: the world loads at the same time and can hold up the first frames. */
/* movement only: the text stays readable even when loading the world holds up a frame */
.pm-js .pm-rise { transform: translateY(26px); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.pm-js .pm-rise.on { transform: none; }

/* returning players: only a calm loading card */
#landingResume { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; }
.pm-resume { display: grid; justify-items: center; gap: 18px; width: min(100%, 360px); text-align: center; }
.pm-resume .pm-mark { width: 56px; }
.pm-resume h2 { font-size: 26px; font-weight: 600; letter-spacing: -.035em; }
.pm-resume .pm-load { margin-top: 4px; }
#resumeStatus { color: var(--tx-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.landing-returning #landingEntry { display: none; }
.landing-returning #landingResume[hidden] { display: grid !important; }

@media (min-width: 720px) {
  .pm-demo-txt p { font-size: 16.5px; }
}
@media (min-width: 980px) {
  .pm-alive-grid { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .pm-alive-card img { width: 100%; margin: 0; border-radius: 20px; }
  .pm-wonders { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .pm-hero { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); column-gap: 48px; align-items: center; min-height: min(86vh, 820px); }
  .pm-hero > :not(.pm-hero-shot):not(.pm-corner):not(progress) { grid-column: 1; }
  .pm-hero h1 { font-size: clamp(50px, 4.8vw, 74px); }
  .pm-hero-shot { grid-column: 2; grid-row: 1 / span 8; margin: 0 !important; }
  .pm-hero-shot img { border-radius: 22px; aspect-ratio: 4 / 3.4; }
  .pm-hero-shot::after { display: none; }
  .pm-dock { display: none; }
  /* a picture and its words side by side; every second one the other way round */
  .pm-demos { gap: 96px; }
  .pm-demo { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 56px; align-items: center; }
  .pm-demo:nth-child(even) .pm-demo-shot { order: 2; }
  .pm-demo-shot { margin: 0; }
  .pm-demo-shot img { border-radius: 20px; }
  .pm-jump { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #loading { scroll-behavior: auto; }
  .pm-slash b { animation: none; }
  .pm-js .pm-rise { transform: none; transition: none; }
  .pm-bar b, .pm-dock { transition: none; }
}
