/* ── Friend Hash screen ─────────────────────────────────────────────── */

.hash {
  align-items: center;
  gap: clamp(2px, .6vh, 5px);
  padding: clamp(18px, 2.6vh, 24px) clamp(16px, 4.5vw, 22px) clamp(14px, 2vh, 18px);
  text-align: center;
}

.hash__icon {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(4px, 1vh, 8px);
  color: var(--ink);
}

.hash__icon svg { height: clamp(30px, 8.6vw, 38px); width: auto; }

.hash__title {
  margin: 0;
  font-size: clamp(21px, 6vw, 27px);
  font-weight: 780;
  letter-spacing: -.02em;
}

.hash__sub {
  margin: 3px 0 0;
  font-size: clamp(12.5px, 3.5vw, 14.5px);
  color: var(--ink-soft);
}

/* ── The hash input ─────────────────────────────────────────────────── */

.hash-field {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: clamp(12px, 2vh, 18px);
  padding: 0 clamp(14px, 4vw, 18px);
  min-height: clamp(50px, 7vh, 58px);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.hash-field:focus-within {
  border-color: var(--c-blue-btn);
  box-shadow: 0 0 0 3px rgba(74, 144, 242, .16);
}

.hash-field__prefix {
  font-size: clamp(19px, 5.4vw, 24px);
  font-weight: 800;
  color: var(--ink-mid);
}

/* 16px+ keeps iOS from zooming the page on focus */
.hash-field__input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: clamp(19px, 5.4vw, 24px);
  font-weight: 600;
  letter-spacing: .06em;
}

.hash-field__input:focus { outline: none; }
.hash-field__input::placeholder { color: #b6bdc9; font-weight: 500; }

/* ── Search result ──────────────────────────────────────────────────── */

.hash__result { width: 100%; }

.result {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: clamp(10px, 1.6vh, 14px);
  padding: 9px 10px 9px 11px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-tile);
  background: var(--bg);
  text-align: left;
  animation: result-in .22s cubic-bezier(.2, .8, .3, 1);
}

@keyframes result-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}

.result__avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--c-blue-soft);
  color: var(--c-blue-ink);
  font-size: 16px;
  font-weight: 750;
  transition: background-color .2s ease, color .2s ease;
}

.result__text { display: flex; flex-direction: column; min-width: 0; }

.result__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.result__meta {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: .02em;
}

.send {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-blue-btn);
  color: var(--ink-inverse);
  transition: background-color .16s ease, color .16s ease,
    transform .16s cubic-bezier(.2, .8, .3, 1);
}

.send svg { width: 19px; height: 19px; translate: -1px 1px; }
.send:active { transform: scale(.93); }

.result__done {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  margin-left: auto;
  border-radius: 50%;
  background: var(--c-green-soft);
  color: var(--c-green);
}

.result__done svg { width: 20px; height: 20px; }

.result.is-added { border-color: var(--c-green-line); background: #f6fdf9; }
.result.is-added .result__avatar { background: var(--c-green-soft); color: var(--c-green); }

/* ── Footnote ───────────────────────────────────────────────────────── */

.hash__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin: clamp(12px, 2vh, 16px) 0 0;
  padding-top: clamp(11px, 1.8vh, 15px);
  border-top: 1px solid var(--line);
  font-size: clamp(11px, 3.1vw, 13px);
  color: var(--ink-soft);
}

.hash__note svg { width: 15px; height: 15px; flex: none; }

@media (min-width: 720px) {
  .hash__title { font-size: 29px; }
}
