* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background: #eee7e9;
  color: #fff;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

#app {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 30px rgba(56, 49, 54, 0.12);
}

.tp23-page {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  background-color: #fff;
  background-image: var(--tp23-page-bg);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.tp23-header {
  padding: 15px 20px 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.tp23-logo,
.tp23-banner-copy,
.tp23-people {
  display: block;
  width: 100%;
  height: auto;
  margin-right: auto;
  margin-left: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.tp23-logo {
  margin-top: 10px;
  margin-bottom: 15px;
}

.tp23-content {
  padding: 0 20px calc(20px + env(safe-area-inset-bottom));
}

.tp23-people {
  margin-bottom: -35px;
}

.tp23-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tp23-button {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 10px 8px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--tp23-theme);
  box-shadow: 0 6px 14px rgba(56, 176, 222, 0.2);
  cursor: pointer;
  touch-action: manipulation;
  transition:
    filter 0.18s ease,
    transform 0.18s ease;
}

.tp23-button:active:not(:disabled) {
  transform: translateY(1px) scale(0.99);
  filter: brightness(0.94);
}

.tp23-button:focus-visible {
  outline: 3px solid rgba(56, 176, 222, 0.35);
  outline-offset: 3px;
}

.tp23-button:disabled {
  cursor: default;
}

.tp23-site-button {
  display: flex;
  min-height: 58px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.tp23-button-label {
  overflow: hidden;
  width: 100%;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp23-latency {
  color: rgba(255, 255, 255, 0.94);
  font-size: 11px;
  line-height: 1.2;
}

.tp23-action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.tp23-action-button img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

@media (max-width: 360px) {
  .tp23-header,
  .tp23-content {
    padding-right: 15px;
    padding-left: 15px;
  }

  .tp23-actions {
    gap: 10px;
  }

  .tp23-button-label,
  .tp23-action-button {
    font-size: 13px;
  }
}
