/* SendKey view page (the receiving end), 1-bit edition. */

body {
  background: var(--paper);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.view-wrap { flex: 1; }
/* a restrained dither strip along the top edge only */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 72px;
  background: url("/assets/px/fade.png") repeat-x top / 8px 64px;
  image-rendering: pixelated;
  transform: scaleY(-1);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

.view-wrap {
  max-width: 580px;
  margin: 0 auto;
  padding: 26px 20px 72px;
}

.view-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* dark theme swaps the ink-pixel fade for the paper-pixel one */
:root[data-theme="dark"] body::before {
  background-image: url("/assets/px/fade-inv.png");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body::before {
    background-image: url("/assets/px/fade-inv.png");
  }
}

.view-main {
  margin-top: 64px;
  text-align: center;
}
.view-main h1 {
  font-size: clamp(16px, 10px + 2.6vw, 24px);
  line-height: 1.55;
}
.view-tag {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 14px;
}

.view-main .win {
  margin-top: 36px;
  text-align: left;
}
.view-main .win-body { padding: 24px; background: var(--paper); }

.banner {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}
.banner strong { color: var(--ink); }

.meta-line {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-3);
  margin: 14px 0 20px;
}

.pass-field { margin: 18px 0 16px; }

.secret-out {
  margin: 16px 0;
  padding: 16px 18px;
  background: var(--field);
  border: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.65;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
  text-align: left;
  user-select: all;
}

#gone .note { margin-top: 12px; }

.view-foot {
  margin-top: 32px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 480px) {
  .view-wrap { padding: 20px 16px 56px; }
  .view-main { margin-top: 40px; }
  .view-main .win-body { padding: 18px 16px; }
}

/* ---- ask page ------------------------------------------------------------- */

.ask-list {
  margin: 16px 0 20px;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.9;
}

.fingerprint {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 18px 0;
}
.identicon {
  flex: none;
  width: 56px;
  height: 56px;
  border: 2px solid var(--ink);
  background: var(--field);
  padding: 6px;
  display: block;
}
.identicon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: var(--ink);
  image-rendering: pixelated;
}
.fingerprint .note { text-align: left; }

.ask-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-2);
}
.ask-status .dot {
  width: 7px;
  height: 7px;
  background: var(--ink);
  animation: blink 1.1s steps(1) infinite;
}
.ask-status.arrived .dot { animation: none; }

.ans-row { margin: 14px 0 16px; }
#owner .linkbox { margin-top: 14px; }
