:root {
  font-family: "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  color: #111;
  background-color: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.panel {
  width: min(960px, 100%);
  padding: 2rem 1.5rem 3rem;
  background-color: #ffffff;
}

.panel--center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.panel__header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
}

.panel__subtitle {
  margin: 0.25rem 0 1.25rem;
  color: #5d5d5d;
}

.panel__footer {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #777;
}

.panel__footer a {
  color: #1f6feb;
  text-decoration: none;
}

.panel__footer a:hover {
  text-decoration: underline;
}

.note-wrapper {
  position: relative;
  width: min(520px, 100%);
  padding: 2.5rem 2rem 1.75rem;
  background: #fffefa;
  border: 1px solid #f1eedd;
  border-radius: 20px 20px 60px 20px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.note-pin {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffaf45;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.note-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.note-form label {
  font-weight: 600;
  font-size: 0.9rem;
}

.note-form input,
.note-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #ffffff;
  transition: border-color 0.2s ease;
}

.note-form input:focus,
.note-form textarea:focus {
  border-color: #1f6feb;
  outline: none;
  background-color: #fff;
}

.note-submit {
  margin-top: 0.5rem;
  padding: 0.9rem 1.2rem;
  border: none;
  border-radius: 999px;
  background-color: #111;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
  align-self: flex-end;
  min-width: 120px;
}

.note-submit:hover {
  opacity: 0.9;
}

.note-form.submitting .note-submit {
  opacity: 0.6;
  cursor: not-allowed;
}

.feedback {
  padding: 0.9rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  width: min(520px, 100%);
  margin: 0 0 1rem 0;
}

.feedback.success {
  background-color: #e5f5ec;
  color: #145c32;
  border: 1px solid #b7e1c5;
}

.feedback.error {
  background-color: #fdeeed;
  color: #8a1f11;
  border: 1px solid #f3c8c3;
}

.reports {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.reports th,
.reports td {
  border-bottom: 1px solid #e3e3e3;
  text-align: left;
  padding: 0.75rem 0.5rem;
}

.reports th {
  font-weight: 600;
  color: #333;
  letter-spacing: 0.01em;
}

.reports tbody tr:last-child td {
  border-bottom: none;
}

.reports td form {
  margin: 0;
}

.ghost {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: #ffffff;
  color: #555;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.ghost:hover {
  border-color: #777;
  color: #222;
}

.empty {
  margin: 1.5rem 0;
  font-size: 1rem;
  color: #666;
}

.drop-scene {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 10;
}

.drop-scene.show {
  opacity: 1;
  pointer-events: all;
}

.drop-scene__note {
  width: 180px;
  height: 120px;
  background: linear-gradient(135deg, #fffef5 0%, #fff5dd 100%);
  border: 1px solid #f3dcab;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #c17e1f;
  position: absolute;
  transform: translateY(-150px) rotate(-4deg) scale(0.85);
  opacity: 0;
  text-align: center;
  padding: 0.5rem;
}

.drop-scene__note::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 16px;
  width: 60px;
  height: 12px;
  background: rgba(0, 0, 0, 0.045);
  transform: rotate(12deg);
}

.drop-scene__note span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drop-scene__note.drop {
  animation: drop-note 1.4s ease forwards;
}

.drop-scene__box {
  width: 240px;
  height: 150px;
  position: relative;
}

.drop-scene__lid {
  width: 220px;
  height: 16px;
  background: #f0b66a;
  border-radius: 14px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.drop-scene__slot {
  width: 160px;
  height: 18px;
  background: #111;
  border-radius: 12px;
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
}

.drop-scene__body {
  width: 240px;
  height: 130px;
  background: #f3c892;
  border-radius: 16px 16px 36px 36px;
  position: absolute;
  bottom: 0;
  left: 0;
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.05);
}

.drop-scene__sparkles {
  position: absolute;
  width: 120px;
  height: 80px;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.6), transparent 70%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.5), transparent 65%);
  opacity: 0;
  pointer-events: none;
}

.drop-scene.animate .drop-scene__lid {
  animation: lid-open 1.4s ease forwards;
}

.drop-scene.animate .drop-scene__sparkles {
  animation: sparkles 1.4s ease forwards;
}

@keyframes drop-note {
  0% {
    transform: translateY(-150px) rotate(-6deg) scale(0.85);
    opacity: 0;
  }
  25% {
    opacity: 1;
    transform: translateY(-90px) rotate(-3deg) scale(1);
  }
  60% {
    transform: translateY(-10px) rotate(3deg);
  }
  100% {
    transform: translateY(25px) rotate(0deg) scale(0.65);
    opacity: 0;
  }
}

@keyframes lid-open {
  0% {
    transform: translateX(-50%) rotateX(0deg);
  }
  20% {
    transform: translateX(-50%) rotateX(35deg);
  }
  60% {
    transform: translateX(-50%) rotateX(5deg);
  }
  100% {
    transform: translateX(-50%) rotateX(0deg);
  }
}

@keyframes sparkles {
  0% {
    opacity: 0;
    transform: translate(-50%, 20px) scale(0.4);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -10px) scale(1);
  }
}

@media (max-width: 640px) {
  body {
    padding: 1.25rem;
  }

  .panel {
    padding: 1.5rem;
  }
}
