.page-ending {
  background-color: #f7f4ee;
  color: #222523;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

.ending-wrapper {
  max-width: 700px;
}

.ending-title {
  font-size: clamp(4rem, 10vw, 7rem);
  color: #2c4a3e;
  margin-bottom: 2rem;
}

.ending-line {
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeIn 1s forwards var(--transition-smooth);
}

.fade-1 { animation-delay: 0.3s; }
.fade-2 { animation-delay: 1.2s; }
.fade-3 { animation-delay: 2.2s; }
.fade-4 { animation-delay: 3.2s; }
.fade-5 { animation-delay: 4.2s; }

.ending-line.bold-line {
  color: var(--text-main);
  font-weight: 600;
  margin-top: 1.5rem;
}

.ending-signature {
  margin-top: 3rem;
  font-size: 1.2rem;
  color: var(--accent-gold);
  letter-spacing: 0.2em;
  opacity: 0;
  animation: fadeIn 1s forwards var(--transition-smooth);
}

.ending-actions {
  margin-top: 4rem;
  opacity: 0;
  animation: fadeIn 1s forwards var(--transition-smooth);
}

.btn-restart {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 40px;
  border: 1px solid var(--text-main);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  transition: all 0.3s;
}

.btn-restart:hover {
  background: var(--text-main);
  color: #f7f4ee;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
  from {
    opacity: 0;
    transform: translateY(15px);
  }
}