.web-install-hint {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  z-index: 1000;
  width: min(680px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: min(820px, calc(100dvh - 32px));
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--accent-border);
  border-radius: 24px;
  color: var(--text);
  background: var(--surface-glass);
  box-shadow: 0 28px 100px #000a;
  backdrop-filter: blur(24px);
  transition: background-color .22s ease, border-color .22s ease, color .22s ease;
}

.web-install-hint::-webkit-scrollbar {
  display: none;
}

html.web-install-open,
html.web-install-open body {
  overflow: hidden;
}

.web-install-hint::backdrop {
  background: rgb(3 7 14 / 72%);
  backdrop-filter: blur(7px);
}

.web-install-logo {
  display: block;
  width: 148px;
  height: 63px;
  margin: 0 auto 18px;
}

.web-install-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.web-install-hint > h2 {
  margin: 0;
  padding: 0 34px;
  font-size: clamp(22px, 4vw, 28px);
  letter-spacing: -.04em;
  line-height: 1.2;
  text-align: center;
}

.web-install-hint > p {
  max-width: 500px;
  margin: 11px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.web-install-hint .web-install-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  color: var(--muted);
  font-size: 21px;
  cursor: pointer;
}

.web-install-hint .web-install-close:hover,
.web-install-hint .web-install-close:focus-visible {
  border-color: var(--accent-border);
  color: var(--text);
}

.web-install-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.web-install-option {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
}

.web-install-option-kicker {
  color: var(--accent);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .15em;
}

.web-install-option h3 {
  min-height: 2.6em;
  margin: 9px 0 4px;
  font-size: 17px;
  letter-spacing: -.025em;
  line-height: 1.3;
}

.web-install-option > p {
  min-height: 62px;
  margin: 5px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.web-install-option .web-install-release {
  min-height: 16px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.web-install-detail {
  display: flex;
  width: 100%;
  min-height: 67px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 74%, transparent);
}

.web-install-detail-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.web-install-detail-copy .web-install-option-kicker {
  font-size: 8px;
}

.web-install-detail-copy strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.15;
}

.web-install-detail-copy .web-install-detail-code {
  font-size: 16px;
  letter-spacing: .14em;
}

.web-install-detail-copy small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.web-install-code-copy {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--text);
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.web-install-code-copy:hover,
.web-install-code-copy:focus-visible {
  border-color: var(--accent-border);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.web-install-option .web-install-action {
  width: 100%;
  min-height: 46px;
  margin-top: 0;
  padding: 0 14px;
  border-radius: 13px;
  text-align: center;
  text-decoration: none;
}

.web-install-option .web-install-action[hidden] {
  display: none !important;
}

.web-install-steps {
  width: 100%;
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.web-install-steps p {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 11px;
  line-height: 1.65;
}

.web-install-steps small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.web-install-feedback {
  min-height: 15px;
  margin: 0 0 10px !important;
  color: var(--muted);
  font-size: 10px !important;
  line-height: 1.5 !important;
  text-align: left !important;
}

.web-install-feedback:empty {
  display: block;
  visibility: hidden;
}

.web-install-hint > .web-install-reminder {
  margin-top: 15px;
  font-size: 11px;
}

.install-platform-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

@media (max-width: 560px) {
  .web-install-hint {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    padding: 21px 17px;
    border-radius: 20px;
  }

  .web-install-logo {
    width: 126px;
    height: 54px;
    margin-bottom: 15px;
  }

  .web-install-hint > h2 {
    padding: 0 24px;
  }

  .web-install-hint > p {
    font-size: 12px;
  }

  .web-install-options {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
  }

  .web-install-option {
    padding: 16px;
  }

  .web-install-option > p {
    min-height: 0;
    margin-bottom: 12px;
  }

  .web-install-option .web-install-action {
    margin-top: 0;
  }

  .web-install-feedback:empty {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .web-install-hint {
    transition: none;
  }
}
