:root {
  --bg: var(--tg-theme-bg-color, #0f1419);
  --text: var(--tg-theme-text-color, #e8eaed);
  --hint: var(--tg-theme-hint-color, #8b939e);
  --link: var(--tg-theme-link-color, #6ab7ff);
  --btn: var(--tg-theme-button-color, #3390ec);
  --btn-text: var(--tg-theme-button-text-color, #fff);
  --secondary: var(--tg-theme-secondary-bg-color, #1b222c);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.app {
  max-width: 420px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 20px;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--btn);
}

.tagline {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--hint);
}

.card {
  background: var(--secondary);
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 14px;
}

.title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
}

.subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: var(--hint);
  line-height: 1.45;
}

.h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
}

.hint {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--hint);
  line-height: 1.45;
}

.list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.list li {
  margin-bottom: 8px;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.btn.primary {
  background: var(--btn);
  color: var(--btn-text);
}

.btn.ghost {
  background: transparent;
  color: var(--link);
  border: 1px solid rgba(139, 147, 158, 0.35);
}
