/* Install-to-home-screen button and the iOS instruction sheet.
   The button is hidden until the script confirms installing is possible. */
.install-btn {
  display: none; align-items: center; gap: 8px;
  font-family: inherit; font-size: .72rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: #0d0c0a; background: linear-gradient(180deg, #e8c877 0%, #c9a24b 100%);
  border: none; border-radius: 40px; padding: 9px 16px;
  cursor: pointer; white-space: nowrap;
  transition: filter .2s, transform .2s;
}
.install-btn.is-ready { display: inline-flex; }
.install-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.install-btn:focus-visible { outline: 2px solid #f5efe2; outline-offset: 2px; }
.install-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.install-btn.floating {
  position: fixed; z-index: 95;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.9);
}

.install-sheet {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(0,0,0,.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.install-sheet.is-open { display: flex; }
.install-card {
  position: relative; width: 100%; max-width: 420px;
  background: linear-gradient(180deg, #111110, #16150f);
  border: 1px solid rgba(201,162,75,.34); border-radius: 18px;
  padding: 26px 24px 22px; color: #f5efe2;
  font-family: inherit; text-align: left;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 30px 70px -24px rgba(0,0,0,.95);
}
.install-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; color: rgba(245,239,226,.55);
  font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.install-close:hover { color: #f5efe2; }
.install-eyebrow {
  margin: 0 0 8px; font-size: .64rem; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase; color: #d9ab44;
}
.install-card h3 {
  margin: 0 0 16px; font-family: Georgia, "Times New Roman", serif;
  font-weight: 400; font-size: 1.3rem; line-height: 1.3; color: #f5efe2;
}
.install-card ol { margin: 0 0 16px; padding-left: 20px; }
.install-card li {
  margin-bottom: 11px; font-size: .92rem; line-height: 1.6;
  color: rgba(245,239,226,.82);
}
.install-card li strong { color: #f5efe2; font-weight: 600; }
.ios-share {
  width: 16px; height: 16px; vertical-align: -3px;
  margin: 0 1px; color: #5aa9f8;
}
.install-note {
  margin: 0; padding-top: 13px;
  border-top: 1px solid rgba(201,162,75,.16);
  font-size: .78rem; line-height: 1.55; color: rgba(245,239,226,.5);
}
