*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

.meditation-page {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: #f8fafc;
  background: #0f172a;
}

.meditation-bg {
  position: fixed;
  inset: 0;
  background-color: #0f172a;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: meditation-bg-in 1.2s ease forwards;
}

.meditation-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.72) 70%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.82) 100%);
}

.meditation-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem 2.5rem;
}

.meditation-back {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.92);
  text-decoration: none;
  border: 1px solid rgba(248, 250, 252, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.meditation-back:hover {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(248, 250, 252, 0.4);
}

.meditation-content {
  width: min(100%, 28rem);
  text-align: center;
  animation: meditation-fade-up 0.9s ease 0.15s both;
}

.meditation-tag {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.18rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e2e8f0;
  border: 1px solid rgba(226, 232, 240, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.meditation-heading {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.meditation-scene {
  margin: 0.45rem 0 1.75rem;
  font-size: 0.92rem;
  color: rgba(226, 232, 240, 0.82);
}

.meditation-breath {
  position: relative;
  width: 7.5rem;
  height: 7.5rem;
  margin: 0 auto 1.25rem;
}

.meditation-breath-ring,
.meditation-breath-core {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
}

.meditation-breath-ring {
  border: 1px solid rgba(186, 230, 253, 0.45);
  animation: meditation-breathe 8s ease-in-out infinite;
}

.meditation-breath-core {
  width: 42%;
  height: 42%;
  background: radial-gradient(circle, rgba(186, 230, 253, 0.55) 0%, rgba(186, 230, 253, 0.08) 70%);
  animation: meditation-breathe 8s ease-in-out infinite;
}

.meditation-guide {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.92);
  min-height: 1.4em;
}

.meditation-quote {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.72);
  font-style: normal;
}

@keyframes meditation-breathe {
  0%,
  100% {
    transform: scale(0.82);
    opacity: 0.55;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes meditation-bg-in {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes meditation-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .meditation-back {
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.72rem;
  }

  .meditation-breath {
    width: 6.5rem;
    height: 6.5rem;
  }
}
