/* The link page (/links/): the one address the game's social profiles point to. Most visitors arrive from an app on a
   phone, in the app's own browser; a few from a computer. Built on style.css: its faces, colours, .btn, .lead, the
   launch announcement (.soon) and the trailer player (.film). The phone's layout comes first, the wide screen's after.

   The first screen is the key art with the one thing the page asks for: wishlist on Steam (and the trailer under it).
   The knight and the background drift apart slowly and embers rise through both (js/links.js); the shade that keeps the
   words readable reaches the screen's edges, so it stays still while the picture moves. Then the places to follow. */

body.lp { -webkit-tap-highlight-color: transparent; }
.lp-main { position: relative; z-index: 1; }
.lp-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.lp-glyph { flex: none; width: 1.25em; height: 1.25em; fill: currentColor; }

/* ---------- The first screen ---------- */

/* A little shorter than the window: the top of the places below shows that there is more. */
.lp-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-height: calc(100svh - 2.75rem);
  padding: 0 var(--gutter) 1.4rem;
  overflow: hidden;
  text-align: center;
}
.lp-art { position: absolute; inset: 0; z-index: -2; background: #12090b; }
.lp-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; will-change: transform; }
.lp-art__bg { animation: drift-far 18s ease-in-out infinite alternate; }
.lp-art__knight { animation: drift-near 18s ease-in-out infinite alternate; }
@keyframes drift-far { from { transform: scale(1.06) translate(0.8%, 0); } to { transform: scale(1.1) translate(-0.8%, -0.6%); } }
@keyframes drift-near { from { transform: scale(1.02) translate(-0.6%, 0.4%); } to { transform: scale(1.05) translate(0.6%, -0.4%); } }
.lp-embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, #000 0%, rgb(0 0 0 / 0.9) 30%, rgb(0 0 0 / 0.5) 46%, transparent 62%),
    linear-gradient(to bottom, rgb(0 0 0 / 0.55), transparent 16%);
  pointer-events: none;
}

.lp-logo { width: min(84vw, 21rem); margin: 0; }
.lp-logo img { width: 100%; height: auto; }
.lp-hero .lead { margin-top: 0.75rem; }
.lp-word { display: inline-block; }               /* a Japanese or Chinese word, kept whole on its line (js/links.js) */

.lp-cta { display: grid; gap: 0.75rem; width: 100%; max-width: 30rem; margin-top: 1.4rem; }
/* Wishlist: as wide as the column, the Steam mark before its words. Its rings stay inside the margin: round a button
   as wide as the screen the first page's (1.25rem) would reach the screen's edges and flash as a band across it. */
.lp-wish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  padding-inline: 1em;
  font-size: min(1.0625rem, 4.4vw);          /* its words stay on one line down to a 320 px screen */
  white-space: nowrap;
  animation-name: rings-near, swell;
}
.lp-wish:lang(ja) { font-size: min(1.0625rem, 3.9vw); }        /* the longest of the four: Steamでウィッシュリストに追加 */
.lp-wish .lp-glyph { width: 1.35em; height: 1.35em; }
@keyframes rings-near {
  0% { box-shadow: 0 0 0 0 rgb(247 247 247 / 0.6), 0 0 0 0 rgb(247 247 247 / 0); }
  50% { box-shadow: 0 0 0 0.75rem rgb(247 247 247 / 0), 0 0 0 0 rgb(247 247 247 / 0.6); }
  100% { box-shadow: 0 0 0 0.75rem rgb(247 247 247 / 0), 0 0 0 0.75rem rgb(247 247 247 / 0); }
}
.lp .btn:active { scale: 0.98; }
/* The trailer: a hairline button under the solid one, a play mark, and how long it runs. */
.lp-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  padding: 1em 1.3em 0.95em;
  border: 1px solid rgb(247 247 247 / 0.38);
  background: rgb(0 0 0 / 0.35);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
  transition: border-color 0.2s, background-color 0.2s;
}
.lp-ghost:is(:hover, :active, :focus-visible) { border-color: var(--steel); background: rgb(247 247 247 / 0.1); }
.lp-play { width: 0; height: 0; border-left: 0.6em solid currentColor; border-block: 0.36em solid transparent; }
.lp-dur { font-stretch: 100%; font-weight: 500; color: var(--haze); }

/* ---------- Where else the game lives ---------- */

/* A word for the group, the site across, then the six places two by two, then the press kit across. Each fills with
   the key art's red, from the bottom up, while it is pointed at or pressed. */
/* (Placed, so that they are drawn after the first screen, whose art stands behind the whole page on a wide screen.) */
.lp-follow { position: relative; max-width: 30rem; margin: 0 auto; padding: 1.25rem var(--gutter) 0; }
.lp-follow__head { margin: 0 0 0.9rem; font-family: "Chakra Petch", "Archivo", sans-serif; font-weight: 500; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--haze); text-align: center; }
.lp-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.lp-tile {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.6rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgb(247 247 247 / 0.16);
  background: rgb(0 0 0 / 0.3);
  text-decoration: none;
  transition: border-color 0.2s;
}
.lp-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blood); transform: scaleY(0); transform-origin: bottom; transition: transform 0.35s var(--out); }
.lp-tile:is(:hover, :focus-visible)::before { transform: scaleY(1); }
.lp-tile:is(:hover, :focus-visible) { border-color: var(--blood); }
.lp-tile:focus-visible { outline-offset: -3px; }
.lp-tile--site, .lp-tile--press { grid-column: 1 / -1; justify-content: center; }
.lp-tile .lp-glyph { width: 1.3rem; height: 1.3rem; }
.lp-tile__name { font-family: var(--title-face); font-stretch: 125%; font-weight: 900; font-size: 0.9375rem; line-height: 1; letter-spacing: var(--title-tight); text-transform: uppercase; }
.lp-tile__what { margin-left: auto; font-size: 0.75rem; color: var(--haze); transition: color 0.2s; }
.lp-tile:is(:hover, :focus-visible) .lp-tile__what { color: var(--steel); }

/* A finger has no hover: on a touch screen the red shows while a button or a place is held, and does not stay after it. */
@media (hover: none) {
  .lp .btn:hover { color: var(--night); }
  .lp .btn:hover::before { transform: scaleY(0); }
  .lp .btn:active { color: var(--steel); }
  .lp .btn:active::before { transform: scaleY(1); transition-duration: 0.12s; }
  .lp-tile:hover::before { transform: scaleY(0); }
  .lp-tile:hover { border-color: rgb(247 247 247 / 0.16); }
  .lp-tile:active::before { transform: scaleY(1); transition-duration: 0.12s; }
}

/* ---------- The foot: languages, the studio, the trademark line ---------- */

.lp-foot { position: relative; display: grid; justify-items: center; gap: 0.9rem; max-width: 30rem; margin: 0 auto; padding: 2.5rem var(--gutter) calc(1.75rem + env(safe-area-inset-bottom)); text-align: center; font-size: 0.75rem; line-height: 1.5; color: rgb(158 171 172 / 0.8); }
.lp-foot a { color: var(--steel); text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.lp-foot .langs a { color: rgb(247 247 247 / 0.5); }
.lp-foot .langs a[aria-current] { color: var(--steel); }
.lp-foot .foot__legal { font-size: inherit; }

/* ---------- A wide screen ---------- */

/* The whole key art, as the first page's field shows it: the knight right of the middle, the dark smoke on the left
   under the words. The art, its embers and its shade stand still behind the page; the words, the places and the foot
   make one column on the left, in the middle of the screen's height, the foot at its bottom. */
@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .lp-main {
    display: grid;
    grid-template-rows: 1fr auto auto 1fr auto;
    min-height: 100vh;
    padding: 0 clamp(2.5rem, 6vw, 7rem);
  }
  .lp-hero {
    grid-row: 2;
    position: static;
    min-height: 0;
    width: min(38rem, 46vw);
    padding: clamp(1.5rem, 5vh, 3rem) 0 0;
    overflow: visible;
    align-items: flex-start;
    text-align: left;
  }
  .lp-art, .lp-embers, .lp-hero::before { position: fixed; }
  .lp-art img { object-position: 72% 0%; }                /* her helmet is never cut */
  .lp-hero::before {
    background:
      linear-gradient(to right, rgb(0 0 0 / 0.82), rgb(0 0 0 / 0.5) 30%, transparent 56%),
      linear-gradient(to top, rgb(0 0 0 / 0.7), transparent 30%);
  }
  .lp-logo { width: clamp(15rem, min(26vw, 42vh), 32rem); }          /* a short laptop screen keeps the places in view */
  .lp-hero .lead { margin-top: 1rem; }
  /* The two buttons one under the other, as wide as the wider of them. */
  .lp-cta { width: max-content; max-width: 100%; margin-top: clamp(1.25rem, 3.5vh, 2rem); }
  .lp-wish { padding-inline: 2.1em; font-size: 1.0625rem; animation-name: rings, swell; }    /* free of the screen's edges: the first page's rings */
  .lp-follow { grid-row: 3; width: min(38rem, 46vw); max-width: none; margin: 0; padding: clamp(1.5rem, 4.5vh, 2.75rem) 0 0; }
  .lp-tile { min-height: 3.3rem; }
  .lp-follow__head { text-align: left; }
  .lp-tiles { grid-template-columns: repeat(3, 1fr); }
  .lp-tile--site, .lp-tile--press { justify-content: flex-start; }
  .lp-foot { grid-row: 5; justify-items: start; max-width: 38rem; margin: 0; padding: 2.5rem 0 1.75rem; text-align: left; }
  .lp-foot .langs { justify-content: flex-start; }
}
