/*
 * The landing page (pristatymas.html, at / on mokausi.app): the app's tokens, font and checked background from
 * app.css, the scrolling page, the cards and the form from site.css. It looks like the game's world: the hero and the
 * islands on the hub's sea, the kingdom under the town's sky, the cubies on a gift's warm yellow. A phone held upright
 * gets one column with „Žaisti naršyklėje“ above the fold; wider screens put the hero side by side.
 * The cubies, gifts, dragons and islands are drawn into their placeholders by src/landing/landing-page.ts.
 * The about page (apie.html, at /apie) is a text page from site.css that borrows the landing's buttons, ages and footer.
 */
.lp {
  width: min(100%, 1200px); margin: 0 auto; display: flex; flex-direction: column; gap: clamp(24px, 4vw, 48px);
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left));
  font-size: 18px; line-height: 1.5;
}
.lp h2, .lp .site-card h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; font-weight: 800; }
.lp-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* „5-7“ never breaks at its hyphen. */
.lp-nowrap { white-space: nowrap; }

/* Art placeholders keep their size before the script draws into them, so nothing jumps. */
.lp-art { display: inline-block; flex: none; aspect-ratio: 120 / 130; }
.lp-art > .kb { --kb: 100%; display: block; }

/* ---------- Hero: the hub's sea, the text on it and the real island hub in a tablet's frame ---------- */
.lp-hero {
  --sea: #8fcaff;
  position: relative; display: grid; gap: 24px; align-items: center; padding: clamp(18px, 3.4vw, 40px);
  border-radius: clamp(24px, 4vw, 40px); overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.35), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(35, 120, 212, 0.18), transparent 60%),
    var(--sea);
  box-shadow: 0 8px 0 var(--line-strong), inset 0 0 0 6px rgba(255, 255, 255, 0.8);
}
/* The hub's little white waves, drawn as the hub draws them (world-art WAVE). */
.lp-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.45;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='160'%3E%3Cg fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M20 30 Q26 24 32 30 T44 30 T56 30'/%3E%3Cpath d='M140 110 Q146 104 152 110 T164 110 T176 110'/%3E%3C/g%3E%3C/svg%3E");
}
.lp-hero > * { position: relative; }
.lp-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.lp-title { display: flex; align-items: center; gap: clamp(12px, 2vw, 20px); }
/* The app icon, ringed like one on a home screen so its own checks stand apart from the page's. */
.lp-logo {
  width: clamp(56px, min(10vw, 14vh), 96px); height: auto; border-radius: 24%; flex: none;
  box-shadow: 0 0 0 3px var(--paper), 0 6px 0 3px var(--sky-deep);
}
.lp-hero h1 {
  font-size: clamp(44px, min(10vw, 13vh), 88px); line-height: 1; font-weight: 800; letter-spacing: -0.01em; color: var(--paper);
  text-shadow: 0 4px 0 var(--sky-deep);
}
.lp-tagline { font-size: clamp(22px, min(3.4vw, 5.6vh), 34px); line-height: 1.15; font-weight: 800; color: var(--ink); }
.lp-lead { max-width: 32em; color: var(--ink); font-size: clamp(17px, 1.6vw, 20px); }
/* The white ring wraps the whole button, its 3D edge too (owner 2026-11-03: a ring round the face alone looked broken). */
.lp-play {
  min-height: 64px; margin: 6px 0 4px; padding: 0 34px; font-size: 22px; text-decoration: none;
  box-shadow: 0 6px 0 var(--cd), 0 0 0 4px var(--paper), 0 6px 0 4px var(--paper);
}
.lp-play:active { transform: translateY(6px); box-shadow: 0 0 0 var(--cd), 0 0 0 4px var(--paper), 0 0 0 4px var(--paper); }
.lp-play:focus-visible, .lp a:focus-visible, .lp-foot a:focus-visible { outline: 4px solid var(--ink); outline-offset: 4px; }
/* Apple's „Atsisiųskite iš App Store“ badge as Apple draws it (public/landing/app-store-lt.svg, unmodified), as tall
   as „Žaisti naršyklėje“ and with at least a quarter of its height clear around it. */
.lp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.lp-store { display: inline-flex; flex: none; border-radius: 12px; }
.lp-store img { display: block; width: auto; height: 64px; }
/* Where on the page: the kingdom, the cubies, the games. */
.lp-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-jump a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.85); color: var(--ink); font-weight: 800; font-size: 17px; text-decoration: none;
  box-shadow: 0 4px 0 rgba(35, 120, 212, 0.35);
}

/* The hub screenshot in a tablet's ink frame, two cubies peeking over its top edge (never over the screen) */
.lp-device {
  --peek: clamp(64px, 9vw, 112px);
  position: relative; margin: calc(var(--peek) * 0.85) 6px 0; padding: clamp(8px, 1.3vw, 14px); background: var(--ink);
  border-radius: clamp(20px, 3vw, 34px); box-shadow: 0 14px 34px rgba(35, 60, 120, 0.3);
}
.lp-device img { display: block; width: 100%; height: auto; border-radius: clamp(12px, 1.8vw, 22px); }
.lp-peek { position: absolute; top: calc(var(--peek) * -0.92); width: var(--peek); pointer-events: none; }
.lp-peek-start { left: 8%; }
.lp-peek-end { right: 8%; }

/* One column, the screenshot centred under the text; side by side on a wide screen and on a phone held sideways,
   where „Žaisti naršyklėje“ would otherwise fall below the fold. */
.lp-device { justify-self: center; width: min(100% - 12px, 680px); }
@media (min-width: 1000px), (orientation: landscape) and (min-width: 700px) {
  .lp-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 56px); }
  .lp-device { width: auto; justify-self: stretch; }
}
/* A phone held sideways: the text tighter, so „Žaisti naršyklėje“ stays above the fold. */
@media (orientation: landscape) and (max-height: 500px) {
  .lp-hero { padding: 14px 18px; }
  .lp-hero-text { gap: 8px; }
  .lp-lead { font-size: 16px; line-height: 1.4; }
}

/* ---------- Shared: a section's heading and its framed screenshots with a caption ---------- */
.lp-head { display: flex; flex-direction: column; gap: 10px; max-width: 780px; }
.lp-shots { display: grid; gap: clamp(16px, 2.4vw, 28px); }
@media (min-width: 700px) { .lp-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lp-shot { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-shot img {
  --frame: clamp(5px, 0.8vw, 8px);
  display: block; width: calc(100% - 2 * var(--frame)); height: auto; margin: var(--frame); border-radius: 18px;
  background: var(--bg); box-shadow: 0 0 0 var(--frame) var(--ink), 0 10px 24px rgba(45, 36, 69, 0.18);
}
.lp-shot figcaption { padding: 0 6px; font-size: 16px; line-height: 1.4; font-weight: 700; color: var(--ink-soft); }

/* ---------- The kingdom: the town's sky and grass, the dragon growing, how it builds, real shots ---------- */
.lp-kingdom {
  display: flex; flex-direction: column; gap: clamp(18px, 2.6vw, 28px); padding: clamp(18px, 3.4vw, 40px);
  border-radius: clamp(24px, 4vw, 40px);
  background: linear-gradient(180deg, #dfe6f6 0%, #eef0fb 38%, #e3f2c6 100%);
  box-shadow: 0 8px 0 var(--line-strong), inset 0 0 0 6px rgba(255, 255, 255, 0.8);
}
.lp-growth {
  list-style: none; margin: 0; padding: 16px 12px 12px; display: flex; justify-content: space-around; align-items: flex-end;
  gap: 4px; border-radius: 24px; background: rgba(255, 255, 255, 0.7);
}
.lp-growth li { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lp-growth .lp-art { width: 100%; max-width: clamp(52px, 11vw, 132px); }
.lp-growth li > span:last-child {
  padding: 2px 10px; border-radius: var(--r-pill); background: var(--mint-soft); color: var(--ink);
  font-size: clamp(13px, 1.6vw, 17px); font-weight: 800; white-space: nowrap;
}
.lp .lp-steps, .lp .lp-ways, .lp .lp-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 700px) { .lp .lp-steps, .lp .lp-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lp .lp-steps, .lp .lp-ways { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lp-steps { counter-reset: step; }
.lp-steps li, .lp-ways li {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; border-radius: 22px;
  background: var(--paper); box-shadow: 0 6px 0 var(--cd), inset 0 0 0 4px var(--c);
}
/* The step's number beside its title, the sentence under both. */
.lp-steps li {
  counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center;
  align-content: start; gap: 8px 12px;
}
.lp-steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--c); color: var(--paper); font-size: 22px; font-weight: 800; box-shadow: 0 3px 0 var(--cd);
}
.lp-steps li > span { grid-column: 1 / -1; align-self: start; }
.lp-steps b, .lp-ways b { font-size: 21px; line-height: 1.2; font-weight: 800; }
.lp-steps span, .lp-ways li > span:last-child { font-size: 17px; line-height: 1.45; color: var(--ink-soft); }
.lp-notes li {
  padding: 12px 16px 12px 46px; border-radius: 18px; background: rgba(255, 255, 255, 0.75); position: relative;
  font-size: 17px; line-height: 1.45;
}
.lp-notes li::before { content: '✨'; position: absolute; left: 14px; top: 11px; }

/* ---------- The cubies: the count, a playful spread of real cubies, the ways to get them and the album ---------- */
.lp-cubies {
  display: flex; flex-direction: column; gap: clamp(18px, 2.6vw, 28px); padding: clamp(18px, 3.4vw, 40px);
  border-radius: clamp(24px, 4vw, 40px);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.7), transparent 30%),
    radial-gradient(circle at 88% 60%, rgba(255, 119, 176, 0.14), transparent 40%),
    var(--sun-soft);
  box-shadow: 0 8px 0 #f2d58a, inset 0 0 0 6px rgba(255, 255, 255, 0.8);
}
.lp-cubies-head { align-items: center; text-align: center; max-width: 820px; align-self: center; }
.lp .lp-cubies-head h2 { font-size: clamp(34px, 5.4vw, 56px); }
.lp-count {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px;
  font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; line-height: 1.2; color: var(--ink);
}
.lp-count b {
  display: inline-block; padding: 2px 16px; border-radius: var(--r-pill); background: var(--tomato); color: var(--paper);
  box-shadow: 0 4px 0 var(--tomato-deep); transform: rotate(-2deg);
}
.lp-cubies-head b[data-cubie-name] { color: var(--grape-deep); }
/* The spread: every cubie a little tilted, each bobbing in its own time (app.css kb-bob). */
.lp-spread {
  --size: clamp(54px, 9vw, 104px);
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(4px, 1vw, 12px) clamp(6px, 1.4vw, 18px);
  padding: clamp(8px, 2vw, 20px) 0;
}
.lp-spread .lp-art { width: var(--size); transform: rotate(var(--tilt, 0deg)); }
.lp-spread .lp-art:nth-child(4n + 1) { --tilt: -6deg; }
.lp-spread .lp-art:nth-child(4n + 2) { --tilt: 4deg; margin-top: 10px; }
.lp-spread .lp-art:nth-child(4n + 3) { --tilt: -2deg; }
.lp-spread .lp-art:nth-child(4n) { --tilt: 7deg; margin-top: 6px; }
/* The gift (or the cubie) beside the way's title, the sentence under both. */
.lp-ways li {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; align-content: start; gap: 8px 12px;
}
.lp-ways li > span:last-child { grid-column: 1 / -1; align-self: start; }
.lp-way-art { width: 56px; }
.lp-way-art > .kb-gift { --kb: 100%; display: block; }
.lp-album { display: grid; gap: 16px 32px; align-items: center; }
@media (min-width: 900px) { .lp-album { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.lp-album-text { font-size: clamp(17px, 1.6vw, 20px); }

/* ---------- What the child learns: the hub's four islands, each with its games ---------- */
.lp-games { display: flex; flex-direction: column; gap: clamp(18px, 2.6vw, 28px); }
.lp-games-head { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.lp-isle {
  display: flex; flex-direction: column; gap: 14px; padding: clamp(14px, 2.6vw, 28px);
  border-radius: clamp(24px, 4vw, 40px);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.35), transparent 55%),
    #8fcaff;
  box-shadow: 0 8px 0 var(--line-strong), inset 0 0 0 6px rgba(255, 255, 255, 0.8);
}
.lp-isle-head { display: flex; align-items: center; gap: clamp(10px, 2vw, 20px); }
.lp-isle-art { flex: none; width: clamp(104px, 20vw, 200px); aspect-ratio: 440 / 300; margin-top: 12px; }
.lp-isle-art svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lp .lp-isle h3 {
  padding: 6px 20px; border-radius: var(--r-pill); background: var(--paper); color: var(--cd);
  font-size: clamp(22px, 3.4vw, 34px); line-height: 1.15; font-weight: 800; box-shadow: 0 5px 0 var(--c);
}
.lp-isle-games { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(12px, 2vw, 22px); }
/* Rows always full: three games side by side, four in two rows of two or in one row on a wide screen. */
@media (min-width: 700px) {
  .lp-isle-games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-isle[data-count="4"] .lp-isle-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) { .lp-isle[data-count="4"] .lp-isle-games { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lp .lp-game {
  padding: 10px 10px 16px; gap: 10px; box-shadow: 0 6px 0 var(--cd), inset 0 0 0 4px var(--c);
}
.lp-game img { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--bg); }
/* The age goes under the title only where the longest word of the title would not fit beside it. */
.lp-game-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 0 4px; }
.lp-game-cubie { width: 40px; }
/* The title keeps its line; the age goes under it when both do not fit. */
.lp-game h3, .lp-game h4 { flex: 1 1 auto; font-size: 21px; line-height: 1.1; font-weight: 800; margin: 0; }
.lp-age {
  flex: none; padding: 3px 10px; border-radius: var(--r-pill); background: var(--cs); color: var(--ink);
  font-size: 15px; font-weight: 800; white-space: nowrap;
}
.lp-game p { padding: 0 4px; font-size: 16px; line-height: 1.45; }
/* An island's card: the cubie beside the title, the age under the title. */
@media (min-width: 700px) {
  .lp-isle-games .lp-game-head {
    display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'cubie title' 'cubie age';
    align-items: center; justify-items: start; gap: 4px 10px;
  }
  .lp-isle-games .lp-game-cubie { grid-area: cubie; width: 48px; }
  .lp-isle-games .lp-game h4 { grid-area: title; }
  .lp-isle-games .lp-age { grid-area: age; }
}
/* A phone: the screenshot small beside the title, the sentence under both. */
@media (max-width: 699px) {
  .lp-isle-games .lp-game {
    display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); grid-template-areas: 'shot head' 'text text';
    align-items: center; column-gap: 12px;
  }
  .lp-isle-games .lp-game img { grid-area: shot; }
  .lp-isle-games .lp-game-head { grid-area: head; flex-direction: column; align-items: flex-start; padding: 0; }
  .lp-isle-games .lp-game h4 { flex: none; min-width: 0; }
  .lp-isle-games .lp-game p { grid-area: text; }
}
.lp-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Why Mokausi: the grown fire dragon beside the story ---------- */
.lp-story { display: grid; gap: 8px 32px; justify-items: center; }
.lp-dragon { width: clamp(128px, 18vw, 220px); }
.lp-sign { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.lp-sign p { margin-left: 6px; font-weight: 800; font-size: 20px; color: var(--grape-deep); }
.lp-sign-cubie { width: 44px; }
@media (min-width: 700px) {
  .lp-story { grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: stretch; }
}

/* ---------- Ruošiame: the games being made, the game cards' look with an emoji for the cubie ---------- */
.lp-game-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 2.4vw, 28px); }
@media (min-width: 600px) { .lp-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lp-game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lp-upcoming-emoji { flex: none; font-size: 40px; line-height: 1; }

/* ---------- Trust: a mint tick before each point ---------- */
.lp .lp-trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 700px) { .lp .lp-trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lp-trust-list li {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px;
  padding: 12px 16px 12px 58px; border-radius: 18px; background: var(--mint-soft);
}
.lp-trust-list li::before {
  content: ''; position: absolute; left: 14px; top: 50%; width: 30px; height: 30px; margin-top: -15px;
  border-radius: 50%; background: var(--mint); box-shadow: 0 3px 0 var(--mint-deep);
}
.lp-trust-list li::after {
  content: ''; position: absolute; left: 24px; top: 50%; width: 9px; height: 15px; margin-top: -10px;
  border-right: 4px solid #fff; border-bottom: 4px solid #fff; transform: rotate(45deg);
}
/* An odd last point takes the whole row. */
@media (min-width: 700px) { .lp-trust-list li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.lp-trust-list b { line-height: 1.3; }
.lp-trust-list span { color: var(--ink-soft); font-size: 16px; line-height: 1.35; }

/* ---------- Who it is for: an egg still to hatch ---------- */
.lp-audience { display: grid; gap: 8px 28px; justify-items: center; }
.lp-egg { width: clamp(96px, 12vw, 140px); }
@media (min-width: 700px) {
  .lp-audience { grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: stretch; }
}

/* ---------- Write to us ---------- */
.lp-write { display: grid; gap: 8px 40px; }
.lp-write-head { display: flex; align-items: center; gap: 16px; }
.lp-write-cubie { width: clamp(64px, 9vw, 110px); }
.lp-write-body { min-width: 0; }
.lp-write .site-form > .site-hint { margin-top: 2px; }
@media (min-width: 900px) {
  .lp-write { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
  .lp-write-head { flex-direction: column; align-items: flex-start; padding-top: 8px; }
}

/* ---------- Footer ---------- */
.lp-foot {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 17px;
  padding: 8px max(16px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.lp-foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
.lp-foot a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: var(--r-pill);
  color: var(--link); font-weight: 800; text-decoration: none; background: var(--paper);
  box-shadow: 0 4px 0 var(--line-strong), inset 0 0 0 3px var(--line);
}
.lp-foot a.lp-store { min-height: 0; margin: 16px 0; padding: 0; border-radius: 12px; background: none; box-shadow: none; }
/* Instagram's glyph in black, as Instagram's brand rules allow, before „Sekite mus Instagram“. */
.lp-foot a.lp-ig { gap: 8px; }
.lp-ig-glyph { flex: none; }
.lp-foot-sign { font-weight: 800; }
.lp-foot p { color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  .lp .kb, .lp .kb * { animation: none; }
}

/* ---------- The about page (apie.html): site.css's text page with the hub, the games by island and the footer ---------- */
.lp-about-shot { display: block; width: 100%; height: auto; border-radius: 16px; background: var(--bg); }
.lp-about-isle {
  display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; border-radius: 16px; background: var(--cs);
}
.lp-about-isle h3 { font-size: 22px; line-height: 1.15; font-weight: 800; color: var(--cd); }
.site-card .lp-about-isle ul { padding: 0; list-style: none; gap: 10px; }
.lp-about-isle li { padding: 10px 14px; border-radius: 12px; background: var(--paper); }
.lp-about-isle li > b { margin-right: 6px; font-size: 20px; }
.lp-about-isle .lp-age { display: inline-block; font-size: 16px; background: var(--cs); }
.lp-about-isle li > span:last-child { display: block; margin-top: 4px; }
