/* Tennis Player OS — PWA Install Assistant */

.tpos-install-button {
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}

.tpos-install-button > span:first-child {
  display:grid;
  width:20px;
  height:20px;
  place-items:center;
  border-radius:6px;
  background:rgba(11,31,58,.08);
  font-size:.84rem;
  font-weight:900;
}

.tpos-install-banner {
  position:fixed;
  z-index:1200;
  right:18px;
  bottom:18px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto auto;
  gap:12px;
  align-items:center;
  width:min(510px,calc(100vw - 28px));
  padding:12px;
  border:1px solid rgba(11,31,58,.12);
  border-radius:18px;
  background:rgba(255,255,255,.97);
  box-shadow:0 18px 55px rgba(11,31,58,.18);
  backdrop-filter:blur(14px);
}

.tpos-install-banner-mark,
.tpos-install-appmark {
  display:grid;
  place-items:center;
  background:#0b1f3a;
  color:#d7ee5c;
  font-weight:950;
  letter-spacing:.035em;
}

.tpos-install-banner-mark {
  width:46px;
  height:46px;
  border-radius:13px;
  font-size:.68rem;
}

.tpos-install-banner-copy {
  display:grid;
  gap:2px;
  min-width:0;
}

.tpos-install-banner-copy strong {
  color:#0b1f3a;
  font-size:.82rem;
}

.tpos-install-banner-copy span {
  color:#69788a;
  font-size:.69rem;
}

.tpos-install-primary {
  min-height:38px;
  padding:8px 13px;
  border-color:#0b1f3a;
  background:#0b1f3a;
  color:#fff;
}

.tpos-install-dismiss,
.tpos-install-close {
  border:0;
  background:transparent;
  color:#6d7987;
  cursor:pointer;
  font:inherit;
}

.tpos-install-dismiss {
  width:30px;
  height:30px;
  border-radius:9px;
  font-size:1.2rem;
}

.tpos-install-overlay {
  position:fixed;
  z-index:1400;
  inset:0;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(7,18,34,.48);
  backdrop-filter:blur(5px);
}

.tpos-install-overlay[hidden] {
  display:none;
}

.tpos-install-dialog {
  position:relative;
  width:min(470px,100%);
  padding:28px;
  border:1px solid rgba(11,31,58,.12);
  border-radius:22px;
  background:#fff;
  box-shadow:0 28px 80px rgba(7,18,34,.28);
}

.tpos-install-close {
  position:absolute;
  top:12px;
  right:12px;
  width:34px;
  height:34px;
  border-radius:10px;
  font-size:1.35rem;
}

.tpos-install-appmark {
  width:58px;
  height:58px;
  margin-bottom:17px;
  border-radius:16px;
  font-size:.82rem;
}

.tpos-install-kicker {
  margin-bottom:5px;
  color:#72852e;
  font-size:.66rem;
  font-weight:950;
  letter-spacing:.065em;
  text-transform:uppercase;
}

.tpos-install-dialog h2 {
  margin:0 0 8px;
  color:#0b1f3a;
  font-size:1.35rem;
  letter-spacing:-.025em;
}

.tpos-install-dialog p {
  margin:0;
  color:#657487;
  font-size:.82rem;
  line-height:1.5;
}

.tpos-install-steps {
  display:grid;
  gap:9px;
  margin:18px 0;
  padding:0;
  list-style:none;
  counter-reset:tpos-install-step;
}

.tpos-install-steps li {
  position:relative;
  min-height:36px;
  padding:8px 10px 8px 44px;
  border:1px solid #e0e7ee;
  border-radius:12px;
  background:#f8fafc;
  color:#34465a;
  font-size:.78rem;
  line-height:1.45;
  counter-increment:tpos-install-step;
}

.tpos-install-steps li::before {
  content:counter(tpos-install-step);
  position:absolute;
  left:9px;
  top:8px;
  display:grid;
  width:24px;
  height:24px;
  place-items:center;
  border-radius:8px;
  background:#0b1f3a;
  color:#fff;
  font-size:.68rem;
  font-weight:900;
}

.tpos-share-symbol {
  display:inline-grid;
  width:20px;
  height:20px;
  place-items:center;
  border:1px solid #cdd8e3;
  border-radius:6px;
  background:#fff;
  color:#2869a4;
  font-weight:900;
}

.tpos-install-done {
  width:100%;
  min-height:42px;
  background:#0b1f3a;
  color:#fff;
}

@media (max-width:650px) {
  .tpos-install-button {
    padding-inline:9px;
  }

  .tpos-install-button > span:last-child {
    display:none;
  }

  .tpos-install-banner {
    right:14px;
    bottom:14px;
    grid-template-columns:auto minmax(0,1fr) auto;
    gap:9px;
    padding:10px;
  }

  .tpos-install-banner-mark {
    width:40px;
    height:40px;
    border-radius:11px;
    font-size:.61rem;
  }

  .tpos-install-banner-copy span {
    display:none;
  }

  .tpos-install-dismiss {
    position:absolute;
    top:-9px;
    right:-6px;
    width:27px;
    height:27px;
    border:1px solid #dfe6ed;
    background:#fff;
    box-shadow:0 5px 14px rgba(11,31,58,.12);
  }

  .tpos-install-primary {
    padding-inline:11px;
  }

  .tpos-install-dialog {
    padding:24px 20px 20px;
  }
}
