:root {
  --tg-bg: #000000;
  --tg-bg-card: #1e1e1e;
  --tg-bg-header: #222222;
  --tg-blue: #1c93e3;
  --tg-text-main: #ffffff;
  --tg-text-muted: #7d7f81;
  --tg-radius-card: 16px;
  --tg-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* БАЗА */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--tg-font);
  color: var(--tg-text-main);
  background: #000 url("pattern.svg");
  background-size: 30%;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

/* HEADER */

.tg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 16px;
  background-color: var(--tg-bg-header);
}

.tg-header__left,
.tg-header__right {
  display: flex;
  align-items: center;
}

.tg-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tg-logo__icon {
  width: 32px;
  height: 32px;
  color: #ffffff;
}

.tg-logo__icon circle {
  fill: var(--tg-blue);
}

.tg-logo__text {
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* КНОПКА DOWNLOAD */

.download {
  background: var(--tg-blue);
  border-radius: 17px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 9px 16px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* MAIN + CARD */

.tg-main {
  flex: 1 1 auto;
  display: block;
  padding: 40px 16px 40px;
}

.tg-card {
  position: relative;
  width: 100%;
  max-width: 400px;              
  margin: 16px auto;             
  padding: 32px 32px 28px;       
  border-radius: var(--tg-radius-card);
  background-color: var(--tg-bg-card);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* АВАТАР */

.tg-avatar {
  width: 122px;
  height: 122px;
  margin: 0 auto;
  border-radius: 50%;
  background: url("antex-avatar.jpg") no-repeat center/cover;
}

/* ТЕКСТ */

.tg-name {
  margin-top: 18px;
  font-size: 22px;
  font-weight: 700;
}

.tg-meta {
  margin: 6px 0;
  font-size: 14px;
  color: var(--tg-text-muted);
}

.tg-meta--secondary {
  margin-top: 0;
}

/* кликабельный @antexmd */

.tg-meta--link {
  color: var(--tg-blue);
  cursor: pointer;
}

.tg-meta--link:hover {
  text-decoration: underline;
}

/* описание */

.tg-description {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.tg-description p {
  margin: 0;
}

/* блок с кнопкой */

.tg-page_action {
  margin-top: 22px;
}

/* КНОПКА как у t.me */

.tgme_action_button_new {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  font: 12px/18px "Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, Verdana, sans-serif;
  --text-color: #000;
  --second-text-color: #7d7f81;
  --accent-btn-color: #2481cc;
  --accent-color-hover: #1a8ad5;
  --body-bg: #fff;
  --box-bg: #fff;
  --box-bg-blured: rgba(255, 255, 255, .84);
  --tme-logo-color: #363b40;
  --tme-desc-color: #808080;
  --tme-table-bg-color: #fff;
  --tme-table-border-color: #e6e6e6;
  --tme-table-head-color: #f7f7f7;
  --tme-table-accent-color: #1482d1;
  --tme-table-accent-bg-color: #e5f1fa;
  --accent-link-color: #2481cc;
  font-family: 'Roboto', sans-serif;
  text-align: center;
  box-sizing: border-box;
  text-decoration: none;
  font-size: 14px;
  line-height: 17px;
  font-weight: bold;
  -webkit-font-smoothing: antialiased;
  color: #FFF;
  border-radius: 22px;
  overflow: hidden;
  display: inline-block;
  padding: 13px 24px;
  height: 42px;
  text-transform: uppercase;
  vertical-align: top;
  background-color: var(--accent-btn-color);
  background-image: linear-gradient(
    270deg,
    rgba(100, 181, 239, 0) 48.44%,
    #64b5ef 75.52%,
    rgba(100, 181, 239, 0) 100%
  );
  background-repeat: no-repeat;
  background-position: -500px 0; /* старт далеко слева */
}

.tgme_action_button_new.shine {
  animation: bg-move linear 5s infinite;
}

.tgme_action_button_new:hover {
  background-color: var(--accent-color-hover);
}

/* как у оригинального telegram.css */
@-webkit-keyframes bg-move {
  0%   { background-position: -500px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes bg-move {
  0%   { background-position: -500px 0; }
  100% { background-position: 1000px 0; }
}

/* ПОДСКАЗКА */

.tg-mobile-hint {
  margin-top: 20px;
  font-size: 13px;
  color: var(--tg-text-muted);
  display: none;
}

/* АДАПТИВ */

@media screen and (max-width: 425px) {
  .tg-main {
    padding: 40px 12px 32px;
  }

  .tg-card {
    padding: 20px 16px 22px;
    max-width: 100%;
  }

  .tg-avatar {
    width: 122px;
    height: 122px;
  }

  .tg-name {
    font-size: 20px;
  }

  .tg-mobile-hint {
    display: block;
  }
}
