.pfm-entry {
  margin-top: 0.8rem;
  border: 1px dashed #b89d6f;
  border-radius: 0.9rem;
  background: rgba(244, 234, 210, 0.74);
  padding: 0.8rem;
  color: #6b543a;
  font-family: serif;
}

.pfm-entry strong { color: #4a3823; }
.pfm-entry p { margin: 0.28rem 0 0.65rem; font-size: 0.78rem; line-height: 1.55; }

.pfm-entry button,
.pfm-button {
  min-height: 44px;
  border: 2px solid #8a6a45;
  border-radius: 999px;
  background: linear-gradient(#fbf5e6, #ead8b2);
  padding: 0.48rem 1rem;
  color: #5d472f;
  font: 700 0.9rem/1.2 serif;
  cursor: pointer;
}

.pfm-entry button { width: 100%; }
.pfm-button:disabled { cursor: wait; opacity: 0.6; }
.pfm-entry button:focus-visible,
.pfm-button:focus-visible,
.pfm-fish:focus-visible {
  outline: 3px solid #d8a63c;
  outline-offset: 2px;
}

.pfm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(18, 30, 29, 0.62);
  backdrop-filter: blur(3px);
}

.pfm-dialog {
  position: relative;
  width: min(94vw, 31rem);
  max-height: min(88vh, 46rem);
  overflow: auto;
  border: 2px solid #8a6a45;
  border-radius: 1.25rem;
  background: #fbf5e6;
  box-shadow: 0 16px 50px rgba(20, 30, 25, 0.36);
  color: #513e29;
  font-family: serif;
}

.pfm-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d8c49a;
  background: rgba(251, 245, 230, 0.96);
  padding: 0.85rem 1rem;
}

.pfm-head h2 { margin: 0; font-size: 1.25rem; letter-spacing: 0.08em; }
.pfm-close {
  width: 44px;
  height: 44px;
  border: 1px solid #9c7b50;
  border-radius: 50%;
  background: #f4ead2;
  color: #6b543a;
  font-size: 1rem;
  cursor: pointer;
}

.pfm-body { padding: 1rem; }
.pfm-lead { margin: 0 0 0.8rem; color: #735d42; font-size: 0.86rem; line-height: 1.6; }
.pfm-label { margin: 0.8rem 0 0.45rem; font-weight: 700; color: #4a3823; }
.pfm-fishes { display: flex; gap: 0.55rem; overflow-x: auto; padding: 0.1rem 0.1rem 0.45rem; }
.pfm-fish {
  flex: 0 0 auto;
  min-width: 7rem;
  min-height: 60px;
  border: 2px solid #d8c49a;
  border-radius: 0.85rem;
  background: #f7edd7;
  padding: 0.55rem 0.7rem;
  color: #5d472f;
  text-align: left;
  cursor: pointer;
}
.pfm-fish[aria-pressed="true"] { border-color: #8b5f35; background: #ead7ad; box-shadow: inset 0 0 0 1px #8b5f35; }
.pfm-fish small { display: block; margin-top: 0.18rem; color: #806b4d; }

.pfm-signs { display: grid; gap: 0.65rem; }
.pfm-sign,
.pfm-quote,
.pfm-empty,
.pfm-success {
  border: 1px solid #d1bb90;
  border-radius: 0.9rem;
  background: #f5ead2;
  padding: 0.8rem;
}
.pfm-sign h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.pfm-sign p { margin: 0.18rem 0; color: #745e42; font-size: 0.82rem; line-height: 1.5; }
.pfm-sign .pfm-button { width: 100%; margin-top: 0.55rem; }
.pfm-quote strong { color: #8a4d20; font-size: 1.08rem; }
.pfm-quote .pfm-actions { display: flex; gap: 0.55rem; margin-top: 0.7rem; }
.pfm-quote .pfm-actions button { flex: 1; }
.pfm-muted { color: #88775e; font-size: 0.8rem; line-height: 1.55; }
.pfm-error { margin-top: 0.65rem; color: #8b2f2f; font-size: 0.82rem; }
.pfm-success { text-align: center; line-height: 1.7; }
.pfm-success .pfm-button { width: 100%; margin-top: 0.7rem; }

.pfm-toast {
  position: fixed;
  z-index: 10000;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(90vw, 28rem);
  border: 1px solid #8a6a45;
  border-radius: 999px;
  background: #fbf5e6;
  padding: 0.7rem 1rem;
  color: #513e29;
  text-align: center;
  box-shadow: 0 8px 24px rgba(20, 30, 25, 0.28);
  font: 700 0.86rem/1.35 serif;
}

@media (max-width: 380px) {
  .pfm-overlay { padding: 0.45rem; }
  .pfm-body { padding: 0.8rem; }
  .pfm-dialog { width: 98vw; }
}
