:root {
  --tg-bg: #05070f;
  --tg-text: #f5f1e8;
  --tg-muted: #9aa5a2;
  --tg-button: #31e981;
  --tg-button-text: #06120b;
  --accent-hot: #ff7a59;
  --accent-cool: #46d9ff;
  --line: rgba(245, 241, 232, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--tg-text);
  background:
    linear-gradient(135deg, rgba(70, 217, 255, 0.12), transparent 34%),
    linear-gradient(225deg, rgba(255, 122, 89, 0.14), transparent 38%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 18px
    ),
    var(--tg-bg);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
}

button {
  font: inherit;
}

.shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    max(28px, env(safe-area-inset-top))
    22px
    max(28px, env(safe-area-inset-bottom));
}

.launch {
  width: min(100%, 360px);
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  padding: 22px 0;
}

.brand {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: var(--tg-button);
  font-size: 28px;
  font-weight: 700;
}

.kicker {
  margin: 4px 0 0;
  color: var(--accent-cool);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1;
  font-weight: 700;
}

.status {
  min-height: 22px;
  margin: 2px 0 0;
  color: var(--tg-muted);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
}

.meter {
  width: min(100%, 260px);
  height: 3px;
  margin-top: 6px;
  overflow: hidden;
  background: rgba(245, 241, 232, 0.14);
}

.meter span {
  display: block;
  width: 46%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-hot), var(--tg-button), var(--accent-cool));
  animation: loading 1.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.open-button {
  min-height: 46px;
  margin-top: 8px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  color: var(--tg-button-text);
  background: var(--tg-button);
  cursor: pointer;
}

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  margin: 0;
  color: var(--tg-text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
}

@keyframes loading {
  0% {
    transform: translateX(-115%);
  }

  100% {
    transform: translateX(260%);
  }
}
