.morning {
  background: #f8f4ed;
  color: #344b49;
}
.morning-header {
  max-width: 1020px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 28px;
  border-bottom: 1px solid #e3dfd5;
}
.morning-brand {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 600;
}
.morning-brand span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #687976;
  margin-top: 4px;
}
.notebook-link {
  font-size: 12px;
  padding: 12px 0;
  text-underline-offset: 5px;
}
.morning-main {
  max-width: 650px;
  margin: auto;
  padding: 42px 24px 10px;
  text-align: center;
}
.morning-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #718781;
}
.morning-date {
  font-size: 12px;
  margin: 20px 0;
}
.morning h1 {
  font-family: Georgia, "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(32px, 7vw, 46px);
  line-height: 1.55;
  font-weight: 500;
}
.morning h1 em {
  color: #54756a;
  font-style: normal;
}
.morning-lead {
  font-size: 14px;
  color: #6b7770;
  margin: 20px 0;
}
#morning-status {
  font-size: 12px;
  color: #705b40;
  min-height: 22px;
}
#daily-greeting {
  font-size: 14px;
}
.daily-color {
  font-size: 11px;
  color: #65766e;
}
.daily-color strong {
  display: inline-block;
  padding: 3px 11px;
  background: #ede8dc;
  border-radius: 20px;
  color: #344b49;
}
#morning-refresh {
  font-size: 11px;
  min-height: 44px;
  color: #627970;
  padding: 6px 12px;
}
.morning-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
  perspective: 900px;
}
.tarot-back {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  aspect-ratio: 0.6;
  border: 1px solid #acb7a5;
  border-radius: 65px 65px 12px 12px;
  padding: 25px 8px 20px;
  background: linear-gradient(145deg, #456e60, #294e45);
  color: #f5e3b6;
  box-shadow: 0 8px 16px #344b4912;
  position: relative;
  transition:
    transform 0.3s,
    background 0.3s;
}
.tarot-back::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid #d8c9a766;
  border-radius: 58px 58px 7px 7px;
  pointer-events: none;
}
.tarot-back:nth-child(2) {
  background: linear-gradient(145deg, #6e7d63, #4c6356);
}
.tarot-back:nth-child(3) {
  background: linear-gradient(145deg, #657f7c, #3e6260);
}
.tarot-back:not(:disabled):hover {
  transform: translateY(-6px);
}
.card-letter {
  font:
    18px Georgia,
    serif;
}
.card-orbit {
  border: 1px solid #d9c59b;
  border-radius: 50%;
  width: 62%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 34px;
  position: relative;
}
.card-orbit::after {
  content: "";
  position: absolute;
  width: 72%;
  height: 130%;
  border: 1px solid #d9c59b77;
  border-radius: 50%;
  transform: rotate(35deg);
}
.card-caption {
  font-size: 9px;
  letter-spacing: 0.12em;
}
.tarot-back:disabled {
  opacity: 0.5;
  cursor: default;
}
.tarot-back.selected {
  opacity: 1;
  background: #efe4ca;
  color: #355549;
  border-color: #b59c69;
  animation: reveal-card 0.65s ease both;
}
.tarot-back.selected .card-orbit {
  border-color: #b59c69;
}
.tarot-back.selected .card-caption {
  font-size: 10px;
  letter-spacing: 0;
}
@keyframes reveal-card {
  0% {
    transform: rotateY(0);
  }
  45% {
    transform: rotateY(90deg);
  }
  100% {
    transform: rotateY(0);
  }
}
.morning-small {
  font-size: 11px;
  color: #738178;
}
.morning-result {
  background: #fffdf8;
  border: 1px solid #e3dccb;
  border-radius: 24px;
  margin-top: 34px;
  padding: 28px;
  text-align: left;
}
.morning-result > .morning-kicker,
.card-name,
.result-emblem,
.morning-result > h2 {
  text-align: center;
}
.result-emblem {
  font:
    64px Georgia,
    serif;
  color: #a58b54;
  margin: 4px 0;
}
.card-name {
  font-size: 12px;
  color: #62766a;
}
.morning-result > h2 {
  font-size: 23px;
  line-height: 1.55;
  margin: 12px 0 22px;
}
#card-message {
  font-size: 15px;
  line-height: 2;
}
.morning-detail {
  border-top: 1px solid #ebe5d7;
  padding-top: 17px;
  margin-top: 23px;
}
.detail-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #778276;
}
.morning-detail h3 {
  font-size: 14px;
}
.morning-detail p:not(.detail-label) {
  font-size: 14px;
}
.morning-question {
  background: #f0f2e9;
  border-radius: 16px;
  padding: 22px 18px;
  margin: 25px -10px 5px;
}
.morning-question h3 {
  font-size: 17px;
  font-weight: 500;
}
.morning-question p,
.morning-question label {
  font-size: 11px;
}
.morning-question input {
  margin-top: 10px;
  background: #fffefa;
  border-color: #bbc6b4;
}
.morning-question details {
  margin-top: 16px;
}
.morning-question summary {
  font-size: 12px;
}
.morning .quiet {
  color: #546f60;
}
#note-status {
  overflow-wrap: anywhere;
}
.morning-history,
.morning-about,
.morning-offer {
  text-align: left;
  margin-top: 30px;
  font-size: 11px;
  color: #69776e;
}
.morning-history summary,
.morning-offer summary {
  font-size: 12px;
  min-height: 44px;
  padding: 10px 0;
}
.morning-history select {
  display: block;
  width: 100%;
  padding: 10px;
  font: inherit;
  font-size: 16px;
  background: #fffdf8;
  border: 1px solid #d0d3c4;
  border-radius: 8px;
  margin: 8px 0;
}
.morning-about {
  padding-top: 20px;
  border-top: 1px solid #dddccc;
}
.morning footer {
  color: #718276;
  font-size: 11px;
  border-color: #dddccc;
}
@media (max-width: 400px) {
  .morning-header {
    padding: 18px;
  }
  .morning-main {
    padding: 28px 18px 10px;
  }
  .morning-choices {
    gap: 10px;
  }
  .tarot-back {
    padding-top: 22px;
  }
  .card-orbit {
    font-size: 26px;
  }
  .morning-result {
    padding: 23px 20px;
  }
  .notebook-link {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tarot-back,
  .tarot-back.selected {
    animation: none;
    transition: none;
  }
}
