* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  background: #f7f5ef;
  color: #2c2a26;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.mirror-wrap {
  width: min(92vw, 520px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.mirror {
  width: min(82vw, 360px);
  aspect-ratio: 1 / 1.25;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 38px;
  text-align: center;
  transition: all 1.2s ease;
  box-shadow:
    inset 0 0 45px rgba(255, 255, 255, 0.35),
    0 18px 45px rgba(0, 0, 0, 0.12);
}

.mirror-idle {
  background:
    radial-gradient(circle at 35% 25%, #d7d4cc, #8e8c86 58%, #6f6d68);
  opacity: 0.58;
  filter: grayscale(0.25);
}

.mirror-awake {
  background:
    radial-gradient(circle at 35% 25%, #fffdf4, #d8cfae 48%, #a6a093 100%);
  opacity: 1;
  filter: none;
}

.mirror-text {
  max-width: 88%;
  font-size: clamp(1.05rem, 3.1vw, 1.55rem);
  line-height: 1.42;
  color: rgba(30, 28, 24, 0.88);
  opacity: 0;
  transition: opacity 1.8s ease;
}

.mirror-text.visible {
  opacity: 1;
}

.mirror-text.fade {
  opacity: 0;
}

.control {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.mirror-input {
  width: 100%;
  max-width: 440px;
  min-height: 48px;
  border: 1px solid rgba(80, 72, 55, 0.28);
  border-radius: 999px;
  padding: 13px 18px;
  font-size: 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.74);
  color: #2c2a26;
  outline: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.mirror-input:focus {
  border-color: rgba(130, 104, 45, 0.55);
}

.input-idle {
  opacity: 0;
  pointer-events: none;
}

.input-active {
  opacity: 1;
  pointer-events: auto;
}

.mirror-button {
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 1rem;
  cursor: pointer;
  color: #f7f5ef;
  background: #37342d;
  transition: all 0.5s ease;
}

.mirror-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #4b463b;
}

.mirror-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.hint {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(44, 42, 38, 0.55);
  text-align: center;
}

.info {
  margin-top: 10px;
  max-width: 440px;
  font-size: 0.82rem;
  color: rgba(44, 42, 38, 0.58);
  text-align: center;
}

.info summary {
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info summary::-webkit-details-marker {
  display: none;
}

.info p {
  margin: 10px 0 0;
  line-height: 1.5;
}
