/* values.io landing (/): pages/landing-markup.js. A small top bar, then one thing in the middle of the window: the
   title, the big chat box with the game you are in at its start and three questions to tap. Asking turns the page into
   the chat: the title goes, the box sits at the bottom of the window and the conversation fills the page. The chat
   itself (the box, the questions, bubbles, answers) is the assistant's, shared with Post a trade:
   app/components/assistant.css. This file is the landing's own frame and first screen. Tokens only.
   Class prefix lp-. Reading width 720px; under 600px 16px gutters. */

.lp { display: flex; flex-direction: column; min-height: calc(100vh / var(--zoom, 1) - var(--f-banner-h, 0px)); min-height: calc(100dvh / var(--zoom, 1) - var(--f-banner-h, 0px)); background: var(--color-snow); }   /* the banner above it (app/banner.js) */

/* ================================================================ the top bar: the app's (frame.css), for a visitor */
/* the notch: the bar's inside starts under the status bar (viewport-fit=cover lets iOS run the page under it) */
.lp-top {
  position: sticky; top: 0; z-index: 300; height: calc(64px + env(safe-area-inset-top, 0px)); flex-shrink: 0; padding-top: env(safe-area-inset-top, 0px);
  background: var(--color-snow); border-bottom: 2px solid var(--color-swan);
}
.lp-top::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: calc(100vh / var(--zoom, 1)); background: var(--color-snow); pointer-events: none; }   /* as the frame's bar (app/frame.css) */
.lp-top .f-top__in { justify-content: flex-start; }
.lp-top__signin { margin-left: auto; }
/* signed in (a friend's trade or items): the app's own bar end, Post and your picture (no live counts here: no Chats);
   a phone your picture only, as the app's bar */
.lp-top__end { margin-left: auto; }
.lp-top__end > .f-icons, .lp-top__end > .f-find { display: none; }
@media (max-width: 899px) { .lp-top__end > .f-ai { display: none; } }
@media (max-width: 899px) {
  .lp-top { height: calc(56px + env(safe-area-inset-top, 0px)); }
  .lp-top .f-top__in { gap: 12px; }
}
/* a phone keeps Trades and Values (a kid who came for the value list must not be stuck in the chat) */
@media (max-width: 559px) {
  .lp-top .f-top__in { gap: 4px; }
  .lp-top .u-logo__word { font-size: 20px; }
  .lp-top .f-link { padding: 0 8px; font-size: 15px; }
}
/* a 320 phone (iPhone SE): the logo a size smaller, the links and Sign in a little narrower, so Sign in stays on the
   screen (it ran 15px past the edge and the page scrolled sideways) */
@media (max-width: 349px) {
  .lp-top .u-logo__word { font-size: 18px; }
  .lp-top .f-link { padding: 0 6px; }
  .lp-top__signin { --pad: 0 12px; }
}

/* ================================================================ the first screen */
.lp-main {
  display: flex; flex-direction: column; align-items: center; flex: 1 0 auto;
  min-height: calc(100vh / var(--zoom, 1) - 64px - var(--f-banner-h, 0px)); min-height: calc(100svh / var(--zoom, 1) - 64px - env(safe-area-inset-top, 0px) - var(--f-banner-h, 0px));
  padding: 0 max(var(--f-gutter), env(safe-area-inset-right, 0px)) 0 max(var(--f-gutter), env(safe-area-inset-left, 0px));
}
/* the free space splits above the title and under the questions: the box sits a little above the middle; 40px under
   the title's line, the room for the quiet "2 messages left today" over the box (assistant.css .as-left) */
.lp-hero { width: 100%; max-width: 720px; margin-top: auto; padding: 40px 0; text-align: center; }
.lp-hero__title { margin: 0; color: var(--color-eel); font: 700 44px/52px var(--font); letter-spacing: -.015em; text-wrap: balance; }
.lp-hero__sub { margin: 12px auto 0; max-width: 32em; color: var(--color-label); font: 400 19px/28px var(--font); text-wrap: balance; }
/* under the questions: 8% of the window and 44px, then the free space's other half (in the chat the box has its own
   padding, assistant.css) */
.lp:not(.is-chat) .as-dock { margin-bottom: auto; padding-bottom: calc(8vh / var(--zoom, 1) + 44px); }

/* ================================================================ the game in the box (landing-markup.js boxGameHTML)
   The box's start: the game's icon and short name on the polar face of a 48px button (the send arrow's height), its
   chevron; open, the soft blue of a picked thing. Phones: the icon and the chevron. Its width glides when the name
   changes (landing.js paintButton). */
.lp .as-ask--lead { padding-left: 8px; }
.lp .as-ask--lead .as-ask__field { padding-left: 4px; }
.lp-game {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; height: 48px; padding: 0 10px 0 6px; overflow: hidden;
  border: 0; border-radius: 14px; background: var(--color-polar); color: var(--color-eel); font: 700 16px/20px var(--font); white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color var(--m-fast) var(--m-ease-out), color var(--m-fast) var(--m-ease-out);
}
.lp-game__ic { display: block; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--color-swan); object-fit: cover; }
.lp-game > .u-ic { flex: none; color: var(--color-hare); transition: rotate var(--m-base) var(--m-ease-out); }
@media (hover: hover) { .lp-game:hover { background: var(--color-swan); } }
.lp-game[aria-expanded="true"] { background: var(--color-iguana); color: var(--color-whale); }
.lp-game[aria-expanded="true"] > .u-ic { rotate: 180deg; color: var(--color-whale); }
.lp-game:focus-visible { outline: 2px solid var(--color-macaw); outline-offset: 2px; }
.lp-game:active { background: var(--color-swan); }
@media (max-width: 559px) {
  .lp-game { gap: 4px; padding: 0 6px; }
  .lp-game__name { display: none; }
}
/* a narrow phone: the box's hint stays one line ("What do you want to trade?": 184px at 16px) beside the game */
@media (max-width: 419px) {
  .lp .as-ask--lead .as-ask__field::placeholder { font-size: 16px; }
}
@media (max-width: 379px) {
  .lp .as-ask--lead { gap: 6px; }
  .lp-game > .u-ic { display: none; }
}
@media (max-width: 339px) {
  .lp .as-ask--lead .as-ask__field::placeholder { font-size: 13px; }
}
/* the questions of the game just picked are on their way: the old ones stay, quiet, not tappable */
.as-qs.lp-wait { opacity: .4; pointer-events: none; transition: opacity var(--m-fast) var(--m-ease-out); }

/* its menu: the nav's game menu's rows (frame.css f-games), here buttons in the site's popover, as wide as that menu */
/* placed from the button, which sits inside the box: moved out past the box's own edge, so the menu never covers it
   (under the box: its 4px lip and 8px padding; over it in the chat: its 2px edge and 8px padding) */
.lp-gamepop { margin-top: 12px; }
.lp-gamepop.is-above { margin-top: -10px; }
.lp-gamepop .u-pop__box { width: 288px; max-width: calc(100vw / var(--zoom, 1) - 32px); max-height: min(480px, calc(100dvh / var(--zoom, 1) - 32px)); overflow-y: auto; overscroll-behavior: contain; }
.lp-picks .f-games__row { width: 100%; border: 0; background: none; text-align: left; }
button.f-games__row { cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { button.f-games__row:not(.is-on):hover { background: var(--color-polar); } }

/* ================================================================ the chat: the page itself (assistant.css) */
.lp.is-chat .lp-hero, .lp.is-chat > .f-foot { display: none; }

/* ================================================================ a friend's link (spec/referrals/SPEC.md §4.1) */
/* an invite: who invited you over the title (their Roblox picture and name, in one outlined pill: its only frame), and
   one quiet line under the questions. While the visit answers, the pill holds its place in grey and the line its
   height, so the title never moves */
.lp-invited {
  /* a block of its own (centred by its margins, not a line of text): it folds away with no line left behind */
  display: flex; align-items: center; gap: 8px; width: fit-content; height: 40px; margin: 0 auto 16px; padding: 0 16px 0 4px; box-sizing: border-box;
  border: 2px solid var(--color-swan); border-radius: 999px; color: var(--color-label); font: 400 15px/20px var(--font);
}
.lp-invited b { color: var(--color-eel); font-weight: 700; }
.lp-invited > .u-avatar { flex-shrink: 0; }
.lp-invited__ghost { height: 20px; color: transparent; }
.lp-gets { margin: 24px 0 0; color: var(--color-label); font: 400 15px/20px var(--font); text-align: center; text-wrap: balance; }
.lp-gets:not(.is-on) { visibility: hidden; }
.lp-gets .as-link { display: inline-block; padding: 12px 0; margin: -12px 0; }   /* a 44px tap target */
.lp.is-chat .lp-gets { display: none; }   /* the chat took the page: the box sits at the bottom, nothing under it */

/* a friend's shared items in the chat, as Shop tiles (UI.tile: the tier tile is each one's only box), as wide as the
   chat's "Harvester = Candy ×8" tiles */
.lp-keep { white-space: nowrap; }
.lp-tiles { display: flex; gap: 16px; }
.lp-tiles__it { width: 104px; min-width: 0; }
@container (max-width: 519px) {
  .lp-tiles { gap: 12px; }
  .lp-tiles__it { width: 88px; }
}

/* ================================================================ phones */
@media (max-width: 899px) {
  .lp-main { min-height: calc(100vh / var(--zoom, 1) - 56px - var(--f-banner-h, 0px)); min-height: calc(100svh / var(--zoom, 1) - 56px - env(safe-area-inset-top, 0px) - var(--f-banner-h, 0px)); }
}
@media (max-width: 599px) {
  .lp-hero { padding: 32px 0 40px; }
  .lp-hero__title { font-size: 32px; line-height: 40px; }
  .lp-hero__sub { font-size: 17px; line-height: 24px; }
}
