* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #182f55;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

button {
  font: inherit;
}

.tp10-page {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top)) clamp(14px, 5vw, 26px)
    calc(30px + env(safe-area-inset-bottom));
  background: #eceff5 var(--tp10-background) center top / cover no-repeat;
}

.tp10-logo,
.tp10-hero {
  display: block;
  height: auto;
  margin-inline: auto;
}

.tp10-logo {
  width: min(54%, 230px);
  aspect-ratio: 315 / 100;
  object-fit: contain;
}

.tp10-hero {
  width: 100%;
  aspect-ratio: 689 / 715;
  object-fit: contain;
}

.tp10-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.tp10-action {
  min-height: clamp(46px, 13vw, 62px);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 11px;
  background: var(--tp10-theme) var(--tp10-button) center / 100% 100% no-repeat;
  color: #fff;
  text-shadow: 0 1px 2px #16294d;
  font-size: clamp(13px, 3.8vw, 17px);
  font-weight: 600;
  cursor: pointer;
}

.tp10-action img {
  width: 22px;
  height: 24px;
  object-fit: contain;
}

.tp10-action:disabled {
  opacity: 0.62;
  cursor: default;
}

:where(.tp10-action, .tp10-site-link, .tp10-dialog a, .tp10-dialog button):focus-visible {
  outline: 2px solid #c9ddff;
  outline-offset: 3px;
}

.tp10-sites {
  margin-top: 18px;
}

.tp10-sites h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 11px;
  color: #254781;
  font-size: 16px;
}

.tp10-sites h1::before,
.tp10-sites h1::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--tp10-theme);
  opacity: 0.6;
}

.tp10-site-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp10-site {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 8px 6px 12px;
  border: 1px solid #91b8ff99;
  border-radius: 22px;
  background: #fffc;
  font-size: 13px;
}

.tp10-site-host {
  overflow-wrap: anywhere;
}

.tp10-speed {
  color: #405981;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.tp10-site-link,
.tp10-download-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--tp10-theme);
  color: #fff;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.tp10-dialog {
  width: min(400px, calc(100% - 36px));
  max-height: calc(100% - 40px);
  padding: 20px;
  border: 1px solid var(--tp10-theme);
  border-radius: 16px;
  background: #142746;
  color: #fff;
  text-align: center;
}

.tp10-dialog::backdrop {
  background: #050b178c;
}

.tp10-dialog h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.tp10-download-list {
  display: grid;
  gap: 10px;
}

.tp10-dialog button {
  margin-top: 12px;
  padding: 6px 18px;
  color: #d9e7ff;
  border: 0;
  background: transparent;
  cursor: pointer;
}
