:root { color-scheme: light dark; }
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  font: 16px/1.45 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--tg-theme-bg-color, #ffffff); color: var(--tg-theme-text-color, #16181c);
}
main { width: 100%; max-width: 420px; padding: 28px 20px 36px; text-align: center; }
h1 { margin: 14px 0 8px; font-size: 22px; line-height: 1.25; }
p { margin: 0 0 14px; }
.note { color: var(--tg-theme-hint-color, #7b8794); }
.warn { color: var(--tg-theme-destructive-text-color, #d93025); }
.mark { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--tg-theme-secondary-bg-color, #eef1f5); }
.mark svg { width: 44px; height: 44px; }
.mark.ok { animation: pop .45s ease-out; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.12); } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mark.ok { animation: none; } }
button.main, a.main {
  display: block; width: 100%; margin-top: 10px; padding: 14px 16px; border: 0; border-radius: 12px; cursor: pointer;
  font: inherit; font-weight: 600; text-decoration: none;
  background: var(--tg-theme-button-color, #2f7cf6); color: var(--tg-theme-button-text-color, #ffffff);
}
a.main.soft, button.main.soft { background: var(--tg-theme-secondary-bg-color, #eef1f5); color: var(--tg-theme-text-color, #16181c); }
button:disabled { opacity: .55; cursor: default; }
ul.list { list-style: none; margin: 0 0 6px; padding: 0; text-align: left; }
ul.list li { padding: 10px 12px; margin-bottom: 8px; border-radius: 10px; background: var(--tg-theme-secondary-bg-color, #eef1f5); }
.shapes { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 18px 0 6px; }
.shapes button { width: 68px; height: 68px; padding: 10px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--tg-theme-secondary-bg-color, #eef1f5); }
.shapes svg { width: 100%; height: 100%; display: block; }
