/* The landing (/ and /en/): the canvas design "Landing", one responsive page. Builds on /ds/ds.css.
   Every rule reaches only inside the landing (:where(.lp), the #landing root): the
   app's own screens share this page and use some of the same class names.
   Layout: phone first; the page is a container, so it changes at 600 and 900 px of its own width. */

.lp { container-type: inline-size; }
html.boot-room #landing { display: none; }
html.leaving body { visibility: hidden; } /* /ds/boot.js is taking the visitor to the other language */
:where(.lp) .games [hidden] { display: none; }
html:not(.js) .filters { display: none; }

/* ---------- top bar: only the language ---------- */
:where(.lp) .top { display: flex; justify-content: flex-end; padding-top: calc(14px + env(safe-area-inset-top)); position: relative; z-index: 5; }

/* ---------- hero ---------- */
:where(.lp) .hero { display: grid; gap: 28px; padding: 4px 0 40px; }
:where(.lp) .logo {
  font-size: min(13.8cqw, 54px); margin: 22px 0 30px; /* the brand logo (ds.css .brand): this is the name's size */
  justify-content: center; /* one column: the logo stands in the middle; beside the phones (900+) it starts on the left */
}
:where(.lp) .lead { font-size: 20px; line-height: 1.45; font-weight: 800; max-width: 36ch; }
:where(.lp) .lead span { color: var(--text-dim); font-weight: 700; }
:where(.lp) .join {
  margin-top: 24px; max-width: 460px; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--stroke); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
:where(.lp) .perks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 460px; }
:where(.lp) .pk {
  display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 13px 4px 11px; border-radius: 18px;
  background: rgba(var(--rgb), 0.14); border: 1px solid rgba(var(--rgb), 0.4); color: var(--c); text-align: center;
}
:where(.lp) .pk span { font-size: 12.5px; font-weight: 900; line-height: 1.1; color: #fff; }
:where(.lp) .pk .i { width: 26px; height: 26px; }
:where(.lp) .pk1 { --c: #ffd23f; --rgb: 255, 210, 63; transform: rotate(-3deg); }
:where(.lp) .pk2 { --c: #3fd0f0; --rgb: 63, 208, 240; transform: rotate(2deg); }
:where(.lp) .pk3 { --c: #ff6fae; --rgb: 255, 111, 174; transform: rotate(-2deg); }
:where(.lp) .pk4 { --c: #3ad38a; --rgb: 58, 211, 138; transform: rotate(3deg); }
:where(.lp) .art { display: none; position: relative; height: 600px; }
:where(.lp) .art .phone { position: absolute; }
:where(.lp) .art .p1 { left: 2%; top: 84px; transform: rotate(-8deg); }
:where(.lp) .art .p2 { left: 29%; top: 18px; z-index: 2; }
:where(.lp) .art .p3 { left: 56%; top: 124px; transform: rotate(7deg); }

/* ---------- sections ---------- */
:where(.lp) .sec { padding: 40px 0; }
:where(.lp) .sec.flush { padding-top: 0; }

/* the newest game, big */
:where(.lp) .feat {
  position: relative; overflow: hidden; display: grid; gap: 12px; margin-top: 26px; padding: 22px 22px 0; border-radius: 26px;
  border: 1px solid rgba(var(--rgb), 0.45);
  background: radial-gradient(80% 120% at 100% 0%, rgba(var(--rgb), 0.36), rgba(var(--rgb), 0) 70%), linear-gradient(160deg, rgba(var(--rgb), 0.2), rgba(var(--rgb), 0.03)), rgba(255, 255, 255, 0.04);
}
:where(.lp) .feat-text { display: flex; flex-direction: column; gap: 12px; }
:where(.lp) .feat-title { display: flex; align-items: center; gap: 14px; }
:where(.lp) .feat h3 { font-size: 30px; line-height: 1.05; font-weight: 1000; letter-spacing: -0.6px; }
:where(.lp) .feat h3 a { color: #fff; text-decoration: none; }
:where(.lp) .feat h3 a::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: inherit; }
:where(.lp) .feat h3 a:focus-visible { outline: none; }
:where(.lp) .feat:focus-within { outline: 3px solid var(--sun); outline-offset: 3px; }
:where(.lp) .feat .pills { margin-top: 4px; }
:where(.lp) .feat .tag { font-size: 19px; line-height: 1.35; font-weight: 800; color: var(--c); }
:where(.lp) .feat .d { font-size: 16px; line-height: 1.5; color: var(--text-body); }
:where(.lp) .more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 900; color: #fff; }
:where(.lp) .more .i { width: 17px; height: 17px; }
:where(.lp) .feat-shot {
  justify-self: center; width: 74%; max-width: 300px; height: 190px; overflow: hidden; padding: 7px 7px 0; border-radius: 30px 30px 0 0;
  background: var(--frame); box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.35), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
  transform: translateY(6px) rotate(-2deg);
}
:where(.lp) .feat-shot img { display: block; width: 100%; height: auto; border-radius: 23px 23px 0 0; }

/* filters: they matter more with every new game */
:where(.lp) .filters { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
:where(.lp) .fgroup { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
:where(.lp) .flabel { font-size: 12px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); }
:where(.lp) .filters .chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
:where(.lp) .filters .chips::-webkit-scrollbar { display: none; }
:where(.lp) .fcount { font-size: 14px; font-weight: 800; color: var(--text-faint); }
:where(.lp) .games { display: grid; gap: 10px; margin-top: 14px; }
:where(.lp) .empty { grid-column: 1 / -1; padding: 24px; border-radius: 20px; border: 1px dashed rgba(255, 255, 255, 0.22); color: var(--text-dim); text-align: center; font-weight: 700; }

/* three steps */
:where(.lp) .steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
:where(.lp) .steps li { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--stroke); }
:where(.lp) .num { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 12px; background: var(--sun); color: var(--on-light); font-size: 20px; font-weight: 900; }
:where(.lp) .steps b { font-size: 20px; line-height: 1.25; }
:where(.lp) .steps .t { color: var(--text-dim); font-size: 16px; }

/* the TV gets its own place */
:where(.lp) .tvband {
  display: grid; gap: 30px; padding: 24px; border-radius: 28px; border: 1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(63, 208, 240, 0.14), rgba(124, 77, 255, 0.12) 55%, rgba(255, 95, 162, 0.1));
}
:where(.lp) .tvband .kicker { color: var(--sky); }
:where(.lp) .tvsteps { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 12px; }
:where(.lp) .tvsteps li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.45; color: var(--text-soft); }
:where(.lp) .tvsteps .n { flex: none; width: 30px; height: 30px; margin-top: -2px; border-radius: 10px; display: grid; place-items: center; background: var(--sky); color: var(--on-light); font-weight: 900; font-size: 15px; }
:where(.lp) .tvsteps b { color: #fff; }
:where(.lp) .tvart { display: flex; flex-direction: column; align-items: center; }
:where(.lp) .tv { container-type: inline-size; width: 100%; max-width: 540px; aspect-ratio: 16 / 9; padding: 10px; border-radius: 18px; background: #0b0618; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.1); }
:where(.lp) .tvscreen { width: 100%; height: 100%; overflow: hidden; display: flex; flex-direction: column; gap: 5cqw; padding: 5cqw 6cqw; border-radius: 10px; background: radial-gradient(80% 90% at 75% 0%, var(--night-glow), var(--night) 70%); }
:where(.lp) .tvlogo { align-self: flex-start; font-size: 4.4cqw; }
:where(.lp) .tvroom { display: flex; align-items: center; gap: 5cqw; }
:where(.lp) .tvqr { width: 22cqw; height: 22cqw; flex: none; padding: 1.4cqw; border-radius: 1.6cqw; background: #fff; }
:where(.lp) .tvqr svg { width: 100%; height: 100%; display: block; }
:where(.lp) .tvlabel { font-size: 2.5cqw; font-weight: 900; letter-spacing: 0.3cqw; text-transform: uppercase; color: var(--text-dim); }
:where(.lp) .tvcode { font-size: 12cqw; font-weight: 1000; letter-spacing: 1.4cqw; line-height: 1; color: var(--sun); }
:where(.lp) .tvurl { margin-top: 1cqw; font-size: 3cqw; font-weight: 800; color: #fff; }
:where(.lp) .tvchips { display: flex; flex-wrap: wrap; gap: 1.4cqw; margin-top: auto; }
:where(.lp) .tvchips span { font-size: 2.7cqw; font-weight: 800; padding: 0.8cqw 2.2cqw; border-radius: 99px; background: rgba(255, 255, 255, 0.1); }
:where(.lp) .tvneck { width: 18%; max-width: 96px; height: 16px; background: #0b0618; }
:where(.lp) .tvfoot { width: 42%; max-width: 220px; height: 8px; border-radius: 8px; background: #0b0618; }

/* voice chat and why it is free */
:where(.lp) .info { display: grid; gap: 14px; }
:where(.lp) .info section { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--stroke); }
:where(.lp) .info .ib { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 210, 63, 0.14); color: var(--sun); }
:where(.lp) .info .ib .i { width: 26px; height: 26px; }
:where(.lp) .info h2 { margin-top: 4px; font-size: 21px; line-height: 1.2; font-weight: 900; }
:where(.lp) .info p { font-size: 16px; color: var(--text-dim); }

/* questions: open one at a time or all, plain <details> */
:where(.lp) .faq { display: grid; gap: 10px; margin-top: 26px; }
:where(.lp) .qa { border-radius: 16px; background: var(--surface); border: 1px solid var(--stroke); padding: 0 18px; }
:where(.lp) .qa summary { list-style: none; cursor: pointer; position: relative; padding: 16px 34px 16px 0; font-size: 17px; line-height: 1.35; font-weight: 800; }
:where(.lp) .qa summary::-webkit-details-marker { display: none; }
:where(.lp) .qa summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 26px; font-weight: 700; color: var(--text-dim); }
:where(.lp) .qa[open] summary::after { content: "\2212"; }
:where(.lp) .qa p { padding: 0 0 16px; font-size: 16px; color: var(--text-dim); }

/* who made this */
:where(.lp) .note { display: grid; gap: 12px; padding: 26px; border-radius: 22px; border: 1px solid var(--stroke); background: linear-gradient(135deg, rgba(255, 95, 162, 0.16), rgba(124, 77, 255, 0.12)); }
:where(.lp) .note p { font-size: 17px; color: var(--text-soft); }
:where(.lp) .endcta { display: flex; justify-content: center; margin-top: 30px; }
:where(.lp) .endcta .primary { width: 100%; max-width: 420px; }

@container (min-width: 600px) {
  :where(.lp) .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :where(.lp) .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  :where(.lp) .info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 900px) {
  :where(.lp) .top { padding-top: calc(22px + env(safe-area-inset-top)); }
  :where(.lp) .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding: 24px 0 72px; }
  :where(.lp) .logo { font-size: 82px; margin: 10px 0 36px; justify-content: flex-start; }
  :where(.lp) .lead { font-size: 24px; }
  :where(.lp) .art { display: block; }
  :where(.lp) .sec { padding: 56px 0; }
  :where(.lp) .sec.flush { padding-top: 0; }
  :where(.lp) .h2 { font-size: 44px; letter-spacing: -1.5px; }
  :where(.lp) .feat { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; column-gap: 40px; padding: 34px 44px 0; }
  :where(.lp) .feat-text { align-self: center; padding-bottom: 34px; }
  :where(.lp) .feat h3 { font-size: 38px; }
  :where(.lp) .feat-shot { width: 100%; max-width: 310px; height: 300px; }
  :where(.lp) .filters { flex-direction: row; align-items: flex-end; gap: 36px; }
  :where(.lp) .filters .chips { margin: 0; padding: 0; overflow: visible; flex-wrap: wrap; }
  :where(.lp) .fcount { margin-left: auto; padding-bottom: 10px; }
  :where(.lp) .games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  :where(.lp) .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  :where(.lp) .tvband { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 48px; padding: 48px; }
  :where(.lp) .note { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; padding: 40px; }
  :where(.lp) .note h2 { grid-column: 1 / -1; }
}
