/* The site's first page (and the legal page): plain HTML, no game code, no 3D. One screen on a desktop: the logo, the
   name, what the game is, one button into the game, three pictures. Built by tools/site/landing.mjs. */
:root { --green: #57e38d; --soft: rgba(255, 255, 255, 0.72); --faint: rgba(255, 255, 255, 0.5); --edge: rgba(255, 255, 255, 0.14); --gold: #ffc24a; --red: #ff5a4e;
  --disp: 'Rajdhani', 'Arial Narrow', sans-serif; --body: 'Barlow', -apple-system, 'Segoe UI', sans-serif; }
:root[lang="ru"], [data-lang="ru"] { --disp: 'Sofia Sans Condensed', 'Rajdhani', 'Arial Narrow', sans-serif; --body: 'Sofia Sans', 'Barlow', -apple-system, 'Segoe UI', sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #07090b; color: #fff; font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
[hidden] { display: none !important; }

#land { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(20px, 4.2vh, 48px);
  padding: clamp(20px, 4vh, 44px) 24px clamp(14px, 2.4vh, 26px); text-align: center; overflow: hidden; }
/* a still of the game behind everything, dimmed so the words stay the first thing read */
.l-bg { position: absolute; inset: 0; z-index: 0; background: #07090b; }
.l-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.l-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 34%, rgba(7, 9, 11, 0.72) 0%, rgba(7, 9, 11, 0.9) 62%, #07090b 100%); }
#land > :not(.l-bg):not(.l-dim) { position: relative; z-index: 1; }

.l-hero { display: flex; flex-direction: column; align-items: center; }
.l-logo { display: block; width: auto; height: clamp(84px, 14vh, 150px); aspect-ratio: 1; object-fit: contain; }
.l-hero h1 { margin: clamp(2px, 0.8vh, 10px) 0 0; font-family: var(--disp); font-weight: 700; font-size: clamp(34px, min(8.2vh, 11.5vw), 88px); line-height: 1; letter-spacing: 0.01em; }
.l-hero h1 b { font-weight: inherit; color: var(--green); }
.l-tag { margin: clamp(8px, 1.4vh, 14px) 0 0; font-family: var(--disp); font-weight: 600; font-size: clamp(20px, 3.1vh, 32px); line-height: 1.15; }
.l-about { max-width: 660px; margin: clamp(8px, 1.4vh, 14px) 0 0; font-size: clamp(15px, 1.9vh, 19px); line-height: 1.5; color: var(--soft); }
.l-play { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-width: min(340px, 86vw); height: clamp(56px, 7.4vh, 78px); margin-top: clamp(16px, 3vh, 32px); padding: 0 36px;
  border: 0; background: var(--green); color: #06180d; font-family: var(--disp); font-weight: 700; font-size: clamp(24px, 3.2vh, 32px); cursor: pointer; transition: filter 0.12s;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.l-play:hover { filter: brightness(1.08); }
.l-play svg { width: 0.8em; height: 0.8em; flex: none; }

.l-sub { margin: clamp(8px, 1.4vh, 14px) 0 0; font-size: clamp(13px, 1.6vh, 15px); line-height: 1.4; color: var(--faint); }

.l-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); width: min(1180px, 100%, 122vh); margin: 0; padding: 0; }
.l-shots figure { margin: 0; display: flex; flex-direction: column; background: rgba(13, 17, 20, 0.92); text-align: left;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.l-shots img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.l-shots figcaption { padding: 11px 16px 13px; font-size: clamp(14px, 1.7vh, 17px); line-height: 1.3; color: rgba(255, 255, 255, 0.88); }

.l-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 28px; font-size: 14px; color: var(--faint); }
.l-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.l-langs a { text-decoration: none; }
.l-langs span { color: rgba(255, 255, 255, 0.82); }
.l-foot a { text-underline-offset: 3px; }
.l-foot a:hover { color: #fff; }

/* signing in: a small window over the page */
.l-dim { position: fixed; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(5, 8, 10, 0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.l-box { position: relative; width: min(500px, 100%); padding: 36px 40px 36px; background: #0d1114; box-shadow: inset 0 0 0 1px var(--edge); text-align: left; }
.l-box h2 { margin: 0; font-family: var(--disp); font-weight: 700; font-size: 44px; line-height: 1; }
.l-box .l-mark { display: block; width: 92px; height: 92px; margin: -8px 0 8px -10px; object-fit: contain; }
.l-x { position: absolute; right: 14px; top: 14px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border: 0; background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; transition: background 0.12s; }
.l-x:hover { background: rgba(255, 255, 255, 0.2); }
.l-x svg { width: 26px; height: 26px; }
.l-tick { display: flex; align-items: flex-start; gap: 14px; margin-top: 24px; font-size: 17px; line-height: 1.4; color: var(--soft); cursor: pointer; }
.l-tick input { flex: none; width: 28px; height: 28px; margin: -1px 0 0; accent-color: var(--green); cursor: pointer; }
.l-ways { margin-top: 22px; min-height: 60px; }
.l-google { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; height: 60px; border: 0; background: #fff; color: #1f1f1f; font-family: var(--body); font-weight: 600; font-size: 19px; cursor: pointer; transition: filter 0.12s, opacity 0.12s;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.l-google svg { width: 24px; height: 24px; flex: none; }
.l-google:hover:not(:disabled) { filter: brightness(0.94); }
.l-google:disabled { opacity: 0.35; cursor: default; }
.l-gis { display: flex; justify-content: center; min-height: 44px; transition: opacity 0.12s; }
.l-gis.off { opacity: 0.35; pointer-events: none; }
.l-note, .l-err, .l-test { margin-top: 16px; padding: 11px 15px; font-size: 16px; line-height: 1.3; }
.l-note { background: rgba(255, 255, 255, 0.06); color: var(--soft); }
.l-err { background: rgba(255, 90, 78, 0.14); color: var(--red); }
.l-test { background: rgba(255, 194, 74, 0.12); color: var(--gold); }

/* the legal page */
#legal { max-width: 860px; margin: 0 auto; padding: 36px 24px 60px; }
#legal .l-back { display: inline-flex; align-items: center; gap: 12px; font-family: var(--disp); font-weight: 700; font-size: 26px; text-decoration: none; }
#legal .l-back img { width: 44px; height: 44px; }
#legal .l-back b { font-weight: inherit; color: var(--green); }
#legal h1 { margin: 28px 0 0; font-family: var(--disp); font-weight: 700; font-size: 44px; line-height: 1.05; }
#legal h2 { margin: 34px 0 12px; font-family: var(--disp); font-weight: 700; font-size: 28px; line-height: 1.1; }
#legal p { margin: 0 0 12px; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, 0.82); }

/* a narrow window (a phone): the pictures go one under another and the page scrolls */
@media (max-width: 760px) {
  #land { justify-content: flex-start; }
  .l-shots { grid-template-columns: minmax(0, 1fr); width: min(420px, 100%); }
}
