/* ==================== 15. AUTHOR TAG & FIRST-VISIT NAME PROMPT ==================== */
/* Handwritten paper label stuck on the card's lower-right edge */
.by-tag {
  position: absolute;
  right: calc(14px * var(--z) * 0.8);
  bottom: calc(-12px * var(--z) * 0.8);
  z-index: 6;
  max-width: 62%;
  padding: calc(1px * var(--z)) calc(10px * var(--z) * 0.8) calc(2px * var(--z)) calc(10px * var(--z) * 0.8);
  background: #fbf7ea;
  background-image: linear-gradient(180deg, #fffdf6 0%, #f4eed9 100%);
  border-bottom: calc(2.5px * var(--z) * 0.8) solid var(--by, #94a3b8);
  border-radius: calc(1.5px * var(--z));
  color: #3b4050;
  font: 600 calc(17px * var(--z) * 0.8) / 1.15 var(--hand);
  white-space: nowrap;
  pointer-events: none;
  transform: rotate(-1.6deg);
  transform-origin: 100% 0;
  box-shadow: 0 calc(2px * var(--z)) calc(5px * var(--z)) rgba(0, 0, 0, 0.22),
              inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.by-tag i { display: none; }

.by-tag span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

#nameGate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: rgba(10, 12, 16, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
}

#nameForm {
  width: min(380px, 100%);
  padding: 24px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#nameForm h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

#nameForm p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--chrome-mute);
}

#nameInput {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--chrome-border-strong);
  background: var(--input-bg);
  color: var(--chrome-text);
  font-size: 14px;
}

#nameInput:focus {
  outline: none;
  border-color: var(--accent);
}

#nameForm .d {
  justify-content: center;
  min-height: 42px;
}
