/* === PROTO BOARD === */
.board-hp { position: absolute; left: -9999px; width: 0; height: 0; opacity: 0; overflow: hidden; }
.answer-count.is-loading { opacity: 0.5; }
.proto-board textarea:disabled, .proto-board button:disabled { opacity: 0.55; cursor: default; }

/* gate card fades out as the board is revealed */
.proto-board { transition: opacity .35s ease, transform .35s ease; }
.proto-board.is-hiding { opacity: 0; transform: scale(.97); pointer-events: none; }

/* the revealed board */
.board-stage { display: none; }
.board-stage.is-open { display: block; animation: boardIn .55s ease both; }
@keyframes boardIn { from { opacity: 0; } to { opacity: 1; } }

.board-caption {
  text-align: center; font-size: 14px; color: var(--bark-light);
  letter-spacing: 0.3px; margin-bottom: 30px; font-style: italic;
}

.board-wall {
  position: relative; max-height: 68vh; overflow-y: auto;
  padding: 16px 10px 34px; display: flex; flex-direction: column; gap: 32px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}

/* scraps of paper pinned to the board */
.scrap {
  position: relative; max-width: 66%; padding: 20px 24px 22px;
  border-radius: 2px; color: #2A2117; line-height: 1.4;
  font-size: 22px; font-family: 'Caveat', cursive;
  box-shadow: 0 8px 20px rgba(42,31,20,0.14), 0 1px 2px rgba(42,31,20,0.10);
  opacity: 0; transform: translateY(16px) rotate(var(--rot, 0deg)) scale(.98);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.3,1);
}
.scrap.in { opacity: 1; transform: translateY(0) rotate(var(--rot, 0deg)) scale(1); }
.scrap.left { align-self: flex-start; }
.scrap.right { align-self: flex-end; }

/* pushpin */
.scrap::before {
  content: ''; position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--pin, var(--ember));
  box-shadow: 0 2px 3px rgba(0,0,0,0.35), inset 0 -2px 2px rgba(0,0,0,0.22), inset 0 2px 2px rgba(255,255,255,0.45);
}

/* character counter under the textarea */
.char-count { text-align: right; font-size: 12px; color: var(--stone); margin-top: 6px; letter-spacing: 0.3px; }
.char-count.near { color: var(--ember); font-weight: 500; }

/* notify sits below the board (outside the scroll area), revealed after the scraps land */
.board-notify { margin: 32px auto 0; max-width: 560px; padding-top: 24px; border-top: 1px solid rgba(42,31,20,0.12); text-align: left; opacity: 0; transform: translateY(8px); transition: opacity .55s ease, transform .55s ease; }
.board-notify.in { opacity: 1; transform: none; }
.board-notify-copy { font-size: 14px; color: var(--bark-light); line-height: 1.6; margin-bottom: 12px; }
.board-notify-form { display: flex; gap: 10px; flex-wrap: wrap; }
.board-notify-form input[type=email] { flex: 1; min-width: 200px; border: 1.5px solid var(--cream-deep); border-radius: 10px; padding: 11px 14px; font-family: 'DM Sans', sans-serif; font-size: 15px; background: var(--white); color: var(--bark); outline: none; transition: border-color 0.2s; }
.board-notify-form input[type=email]:focus { border-color: var(--ember-soft); }
.board-notify-note { font-size: 13px; margin-top: 10px; min-height: 16px; }
.board-notify-note.ok { color: var(--leaf); }
.board-notify-note.err { color: var(--ember); }

@media (max-width: 768px) {
  .scrap { max-width: 90%; font-size: 20px; padding: 16px 18px 18px; }
  .board-wall { gap: 26px; max-height: 72vh; }
}
