/* Страница входа went.emptyoverlord.com: один экран без прокрутки, цвета и шрифты как в приложении */
@font-face { font-family: 'Montserrat'; src: url('/fonts/Montserrat-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/Poppins-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #0b1012;
  --card: #152024;
  --card2: #1b282d;
  --line: #26353c;
  --ink: #e9efed;
  --muted: #93a39e;
  --dim: #6c7d78;
  --teal: #1f7a68;
  --mint: #74d8c1;
  --gold: #f2c14e;
  --red: #e5645d;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--ink); overscroll-behavior: none; }
body {
  font-family: 'Montserrat', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  background: radial-gradient(90% 55% at 30% -8%, #12302a 0%, rgba(11,16,18,0) 62%), var(--bg);
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }

.page {
  height: 100vh; height: 100dvh;
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-rows: auto auto minmax(0, 1fr);
  padding-top: env(safe-area-inset-top, 0px);
}

.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 0; }
.logo { font-family: 'Poppins', 'Montserrat', sans-serif; font-weight: 700; font-size: 30px; letter-spacing: -.02em; }
.logo span { color: var(--mint); }
.lang { display: flex; gap: 3px; padding: 3px; border-radius: 11px; background: var(--card2); }
.lang button { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.lang button.on { background: var(--teal); color: #fff; }

.hero { display: flex; flex-direction: column; gap: 12px; padding: 8px 20px 0; min-width: 0; }
h1 { margin: 8px 0 0; font-family: 'Poppins', 'Montserrat', sans-serif; font-weight: 700; letter-spacing: -.025em;
  font-size: clamp(30px, 8vw, 54px); line-height: 1.04; }
h1 em { font-style: normal; color: var(--mint); }
.lead { margin: 0; max-width: 34em; color: var(--muted); font-size: clamp(15px, 3.9vw, 18px); line-height: 1.4; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.facts li { padding: 5px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; }

.login { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; max-width: 400px; }
.gbtn { position: relative; min-height: 44px; }
.gbtn .g { min-height: 44px; transition: opacity .25s, filter .25s; }
/* у страницы тёмная схема, у кнопки Google светлая: без этого Chrome заливает рамку вокруг кнопки белым */
.gbtn iframe { color-scheme: light; }
.gbtn.wait .g { opacity: .3; filter: grayscale(1); pointer-events: none; }
.gwait { display: none; margin-top: 6px; font-size: 13px; color: var(--muted); }
.gbtn.wait .gwait { display: block; }
.gbtn.busy .g { opacity: .4; pointer-events: none; }
.ts:empty { display: none; }
.err { padding: 9px 12px; border-radius: 12px; font-size: 14px; color: #ffbdb8; background: rgba(229,100,93,.12); border: 1px solid rgba(229,100,93,.35); }
.full { padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.35; color: #f7dc95; background: rgba(242,193,78,.1); border: 1px solid rgba(242,193,78,.35); }
.imp { padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.35; color: #bdf3e4; background: rgba(116,216,193,.1); border: 1px solid rgba(116,216,193,.35); }
.fine { margin: 0; font-size: 12.5px; color: var(--dim); }
.fine a { color: var(--muted); }
[hidden] { display: none !important; }

/* скриншоты поднимаются из-под нижнего края экрана */
.shots { position: relative; min-height: 0; margin-top: 16px; --off: 34vw; }
.phone {
  position: absolute; left: 50%; top: 10px; margin: 0;
  height: 122%; aspect-ratio: 390 / 844;
  border-radius: 26px; overflow: hidden; background: var(--bg);
  border: 5px solid #1e2c31; box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px #2c3d44;
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.p2 { z-index: 2; transform: translateX(-50%); }
.p1 { z-index: 1; top: 34px; transform: translateX(calc(-50% - var(--off))) rotate(-7deg) scale(.86); }
.p3 { z-index: 1; top: 34px; transform: translateX(calc(-50% + var(--off))) rotate(7deg) scale(.86); }

/* совсем низкий экран (телефон боком): без скриншотов, чтобы кнопка входа влезла */
@media (max-height: 600px) and (max-width: 899px) { .shots { display: none; } }
@media (max-width: 360px) { .facts li:nth-child(3) { display: none; } }

/* компьютер: текст слева, телефоны справа целиком */
@media (min-width: 900px) and (min-height: 520px) {
  .page { grid-template-columns: minmax(400px, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: 28px; }
  .top { grid-column: 1 / -1; padding: 22px 32px 0; }
  .hero { justify-content: center; gap: 16px; padding: 0 0 6vh 32px; }
  .shots { grid-column: 2; grid-row: 2; margin: 0; --off: min(150px, 13vw); }
  .phone { top: 9%; height: 78%; }
  .p1, .p3 { top: 14%; }
}
