:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5f6f8;
  background: #07090e;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 45%, rgb(0 255 133 / 7%), transparent 65%);
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 448px;
  padding: 40px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 32px;
  background: rgb(255 255 255 / 2%);
  box-shadow: 0 24px 64px rgb(0 0 0 / 25%);
  text-align: center;
}

.status-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border: 1px solid rgb(0 255 133 / 20%);
  border-radius: 50%;
  background: rgb(0 255 133 / 10%);
  color: #00ff85;
}

.spinner { width: 32px; height: 32px; animation: spin 1s linear infinite; }
h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.025em; line-height: 1.4; }
p { margin: 8px 0 0; color: #adb3be; font-size: 14px; line-height: 1.6; }

.telegram-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #00ff85;
  color: #04190d;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 24px rgb(0 255 133 / 15%);
  transition: background .2s, transform .2s;
}

.telegram-button:hover { background: #70ffb8; }
.telegram-button:active { transform: scale(.98); }
.telegram-button:focus-visible { outline: 3px solid #f5f6f8; outline-offset: 4px; }
noscript { width: 100%; }
noscript .telegram-button { margin-top: 16px; }

@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) { .card { padding: 32px 24px; } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
  .telegram-button { transition: none; }
}
