/* "Run VorSpill full screen" (install.js) */
.install-tip {
  position: fixed;
  left: 50%;
  bottom: max(56px, calc(env(safe-area-inset-bottom) + 48px));
  z-index: 950;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 420px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 14px 16px;
  border-radius: 18px;
  background: rgba(20, 25, 35, 0.97);
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  color: #f3f5f8;
  font: 500 15px/1.4 Montserrat, system-ui, -apple-system, sans-serif;
  text-align: left;
  animation: install-tip-in 0.3s ease-out;
}

.install-tip > b {
  padding-right: 34px;
  font-size: 17px;
}

.install-how {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  color: #b6bfcc;
}

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

.install-how b {
  color: #f3f5f8;
}

/* One step of the way there, drawn like the button to tap */
.install-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.install-chip svg {
  width: 1.05em;
  height: 1.05em;
}

.install-then {
  color: #64748b;
  font-weight: 800;
}

.install-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #b6bfcc;
  font: 700 14px system-ui, sans-serif;
}

.install-go {
  padding: 10px 12px;
  border: none;
  border-radius: 12px;
  font: 700 15px Montserrat, system-ui, sans-serif;
  background: #38bdf8;
  color: #04131d;
}

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

@keyframes install-tip-in {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
}

/* Points at the browser's own button (outside the page) */
.install-arrow {
  position: fixed;
  z-index: 951;
  font: 900 40px/1 system-ui, sans-serif;
  color: #38bdf8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  animation: install-bounce 0.9s ease-in-out infinite;
}

.install-arrow.bottom {
  left: 50%;
  bottom: max(4px, env(safe-area-inset-bottom));
  margin-left: -12px;
}

.install-arrow.bottom-right {
  right: 20px;
  bottom: max(4px, env(safe-area-inset-bottom));
}

/* Safari 26: the ≡ menu at the left of the address bar */
.install-arrow.bottom-left {
  left: 25%;
  bottom: max(4px, env(safe-area-inset-bottom));
  margin-left: -12px;
}

.install-arrow.top {
  right: 20px;
  top: max(4px, env(safe-area-inset-top));
  animation-name: install-bounce-up;
}

@keyframes install-bounce {
  50% { transform: translateY(8px); }
}

@keyframes install-bounce-up {
  50% { transform: translateY(-8px); }
}

/* A phone on its side (the mirror page): small, in the corner, clear of the party code */
@media (max-height: 520px) and (orientation: landscape) {
  .install-tip {
    left: auto;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(44px, calc(env(safe-area-inset-bottom) + 36px));
    transform: none;
    width: min(46%, 340px);
    gap: 6px;
    padding: 10px 10px 10px 12px;
    font-size: 13px;
    animation: none;
  }

  .install-tip > b {
    font-size: 14px;
  }

  .install-go {
    padding: 8px 10px;
    font-size: 13px;
  }
}
