/* Fan Message Board: Exact Notecard Popup (with vertical scroll) + Compose Modal */

.fan-note-modal .v-note[data-layout="notecard"] {
  flex: 0 1 560px;
  width: min(560px, 100%);
  max-height: min(82vh, 660px);
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.fan-note-modal .v-note-to {
  font-family: var(--hand);
  font-size: 16px;
  color: #c2577a;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  flex: none;
}

.fan-note-modal .v-note-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  font-size: 20px;
  line-height: 1.9;
  padding: 2px 10px 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(170, 205, 120, 0.6) transparent;
}

.fan-note-modal .v-note-body::-webkit-scrollbar {
  width: 6px;
}

.fan-note-modal .v-note-body::-webkit-scrollbar-track {
  background: transparent;
}

.fan-note-modal .v-note-body::-webkit-scrollbar-thumb {
  background: rgba(170, 205, 120, 0.55);
  border-radius: 999px;
}

.fan-note-modal .v-note-body p {
  margin: 0 0 1.1em;
}

.fan-note-modal .v-note-body p:last-child {
  margin-bottom: 0;
}

.fan-note-modal .fan-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  max-height: 100%;
}

.fan-note-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.fan-note-count {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.fan-write-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.06em;
  border-radius: 999px;
  transition: background 0.18s, color 0.18s;
}

.fan-write-pill:hover {
  background: var(--ink);
  color: #fff;
}

/* Compose Modal matching notecard paper */
.fan-compose-modal .v-note[data-layout="notecard"] {
  width: min(560px, 100%);
  max-height: min(88vh, 720px);
  transform: rotate(0.4deg);
  padding: 40px 28px 24px;
}

.fan-compose-title {
  font-family: var(--hand);
  font-size: 22px;
  color: #c2577a;
  text-align: center;
  margin: 0 0 14px;
}

.fan-compose-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
}

.fan-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fan-field label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.fan-field select,
.fan-field input,
.fan-field textarea {
  font-family: var(--hand);
  font-size: 18px;
  line-height: 1.65;
  color: #222;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e3ded4;
  border-radius: 3px;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.15s;
}

.fan-field select:focus,
.fan-field input:focus,
.fan-field textarea:focus {
  border-color: #aacd78;
}

.fan-field textarea {
  min-height: 150px;
  max-height: 280px;
  resize: vertical;
  text-align: center;
}

.fan-compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.fan-compose-hint {
  font-size: 11.5px;
  color: var(--muted);
}

.fan-submit-btn {
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.1em;
  border-radius: 0;
  transition: background 0.18s, color 0.18s, opacity 0.18s;
}

.fan-submit-btn:hover:not(:disabled) {
  background: #fff;
  color: var(--ink);
}

.fan-submit-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.fan-toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: calc(var(--safe-b) + 28px);
  transform: translateX(-50%);
  padding: 10px 20px;
  background: #141414d9;
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.04em;
  pointer-events: none;
  animation: fadein 0.2s ease;
}

@media (max-width: 760px) {
  .fan-note-modal .v-note[data-layout="notecard"] {
    padding: 34px 20px 18px;
    max-height: 78vh;
  }
  .fan-note-modal .v-note-body {
    font-size: 16px;
  }
  .fan-compose-modal .v-note[data-layout="notecard"] {
    padding: 32px 18px 18px;
  }
  .fan-field select,
  .fan-field input,
  .fan-field textarea {
    font-size: 16px;
  }
}
