* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Iowan Old Style", "Charter", Georgia, "Times New Roman", serif;
  color: #1c1917;
  background: linear-gradient(135deg, #a8d0ee 0%, #d9c2ee 60%, #f4c2c2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  -webkit-font-smoothing: antialiased;
}

.tgme_page_wrap {
  width: 100%;
  max-width: 460px;
}

.tgme_page {
  background: #fbf6ea;
  border: 1px solid #1c1917;
  padding: 40px 36px 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(30, 40, 80, .18);
}

.tgme_page::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid #1c1917;
  pointer-events: none;
  opacity: .15;
}

.tgme_page_photo {
  margin: 0 0 20px;
  display: flex;
  justify-content: center;
}
.tgme_page_photo img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  background: #e6dcc7;
  border: 1px solid #1c1917;
  filter: grayscale(.15) contrast(1.02);
}
.logo_big {
  width: 64px !important;
  height: 64px !important;
  border: 0 !important;
  background: transparent !important;
  filter: none !important;
}
.default_avatar { filter: none !important; }

.tgme_page_title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  word-break: break-word;
}

.tgme_page_extra {
  margin-top: 10px;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #78716c;
  text-align: center;
}

.tgme_page_description {
  margin: 22px 0 0;
  padding: 18px 0;
  border-top: 1px solid #d6cdb8;
  border-bottom: 1px solid #d6cdb8;
  font-size: 16px;
  line-height: 1.55;
  color: #1c1917;
  white-space: pre-wrap;
  text-align: left;
}

.tgme_page_meta {
  margin-top: 20px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: #57534e;
  text-align: center;
  line-height: 1.9;
}
.tgme_page_meta span {
  display: inline;
}
.tgme_page_meta span + span::before {
  content: " / ";
  color: #a8a29e;
  margin: 0 4px;
}

.verified {
  color: #b45309;
  background: transparent;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
}
.premium {
  color: #b45309;
  font-style: normal;
}
.badge.scam {
  background: #7f1d1d;
  color: #fbf6ea;
  font-family: -apple-system, sans-serif;
  font-size: 10px;
  font-style: normal;
  padding: 2px 6px;
  letter-spacing: .12em;
  font-weight: 700;
}

.tgme_action_button_new {
  display: block;
  margin: 28px auto 0;
  background: #1c1917;
  color: #fbf6ea;
  text-decoration: none;
  padding: 14px 20px;
  text-align: center;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .22em;
  border: 1px solid #1c1917;
  transition: background .15s;
}
.tgme_action_button_new:hover {
  background: #b45309;
  border-color: #b45309;
}

.tgme_action_link {
  display: inline-block;
  margin-top: 18px;
  color: #b45309;
  text-decoration: none;
  font-family: -apple-system, sans-serif;
  font-size: 13px;
  border-bottom: 1px solid #b45309;
}
.tgme_action_link:hover { color: #1c1917; border-bottom-color: #1c1917; }

.muted {
  font-family: -apple-system, sans-serif;
  font-size: 11px !important;
  margin-top: 22px;
  color: #a8a29e !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1.55;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  background: #ede4d3;
  padding: 1px 5px;
  border: 1px solid #d6cdb8;
}

.lookup {
  display: flex;
  gap: 0;
  margin: 24px auto 0;
  border: 1px solid #1c1917;
}
.lookup input {
  flex: 1;
  padding: 12px 14px;
  border: 0;
  background: #fbf6ea;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  color: #1c1917;
}
.lookup input::placeholder { color: #a8a29e; font-style: italic; }
.lookup button {
  background: #1c1917;
  color: #fbf6ea;
  border: 0;
  padding: 0 20px;
  font-family: -apple-system, sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .2em;
  cursor: pointer;
}
.lookup button:hover { background: #b45309; }

.tgme_foot {
  margin-top: 24px;
  text-align: center;
  font-family: -apple-system, sans-serif;
}
.tgme_foot_logo {
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .2em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  text-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.tgme_foot_logo:hover { border-bottom-color: #fff; }
.tgme_foot_copy {
  color: rgba(255,255,255,.9);
  font-size: 12px;
  margin-top: 4px;
  font-style: italic;
  text-shadow: 0 1px 2px rgba(0,0,0,.12);
}

@media (prefers-color-scheme: dark) {
  body {
    background: #1c1917;
    color: #ede4d3;
  }
  .tgme_page {
    background: #292524;
    border-color: #ede4d3;
  }
  .tgme_page::before { border-color: #ede4d3; }
  .tgme_page_photo img { background: #44403c; border-color: #78716c; }
  .tgme_page_description { color: #ede4d3; border-color: #44403c; }
  .tgme_page_extra { color: #a8a29e; }
  .tgme_page_meta { color: #a8a29e; }
  .tgme_page_meta span + span::before { color: #57534e; }
  .tgme_action_button_new { background: #ede4d3; color: #1c1917; border-color: #ede4d3; }
  .tgme_action_button_new:hover { background: #f59e0b; border-color: #f59e0b; color: #1c1917; }
  .tgme_action_link { color: #f59e0b; border-bottom-color: #f59e0b; }
  .tgme_action_link:hover { color: #ede4d3; border-bottom-color: #ede4d3; }
  .muted { color: #78716c !important; }
  code { background: #1c1917; border-color: #44403c; color: #ede4d3; }
  .lookup { border-color: #ede4d3; }
  .lookup input { background: #292524; color: #ede4d3; }
  .lookup button { background: #ede4d3; color: #1c1917; }
  .lookup button:hover { background: #f59e0b; }
  .tgme_foot_logo { color: #ede4d3; }
  .tgme_foot_copy { color: #a8a29e; }
}
