* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #fff;
  color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  text-align: center;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
}

.date {
  font-size: 1.3rem;
  color: #888;
  margin-bottom: 3rem;
  letter-spacing: 0.5px;
}

.streak-label {
  font-size: 1.5rem;
  color: #333;
  line-height: 1.5;
  font-weight: 700;
  text-align: center;
}

.streak-number {
  font-size: 5rem;
  font-weight: 700;
  color: #111;
  margin: 0.5rem 0 2.5rem;
  line-height: 1;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 2px solid #1a1a1a;
  background: #fff;
  color: #1a1a1a;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.5px;
}

.btn:hover {
  background: #1a1a1a;
  color: #fff;
}

.btn-veto {
  border-color: #c0392b;
  background: #c0392b;
  color: #fff;
}

.btn-veto:hover {
  background: #a93226;
  border-color: #a93226;
  color: #fff;
}

.btn-small {
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
  border-width: 1px;
}

.best-streak {
  margin-top: 2.5rem;
  font-size: 1.05rem;
  color: #999;
  font-weight: 700;
}

.history-btn-wrap {
  margin-top: 1rem;
  display: none;
}

/* Modal overlay */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 100;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #fff;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.modal h2 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.modal input,
.modal textarea {
  display: block;
  width: 100%;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.8rem;
  border: 1px solid #ddd;
  font-size: 0.9rem;
  font-family: inherit;
}

.modal textarea {
  min-height: 80px;
  resize: vertical;
}

.modal .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.modal .error {
  color: #c0392b;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  display: none;
}

.modal .close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.8rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
}

.modal-inner {
  position: relative;
}

/* History panel */
.history-panel {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 200;
  overflow-y: auto;
  padding: 2rem 1.5rem;
}

.history-panel.active {
  display: block;
}

.history-panel h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-panel .close-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #999;
}

.history-item {
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}

.history-item .history-date {
  font-size: 0.8rem;
  color: #999;
}

.history-item .history-nickname {
  font-size: 0.85rem;
  color: #555;
  font-weight: 600;
  margin-top: 0.25rem;
}

.history-item .history-reason {
  font-size: 0.9rem;
  color: #333;
  margin-top: 0.3rem;
  font-style: italic;
}

.no-history {
  color: #999;
  font-size: 0.9rem;
}
