/* birthday-detail-v1: proportionate artwork, readable scrollable rules. */
.birthday-detail { margin: 0; background: #ffe9c0; color: #302c21; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.birthday-detail .mobile-page {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 560px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  background: #ffe9c0;
}
.birthday-detail .detail-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}
.birthday-detail .detail-content {
  width: 90%;
  margin: clamp(40px, 10vh, 88px) auto 0;
  margin-top: clamp(40px, 10svh, 88px);
  flex: 0 0 auto;
}
.birthday-detail .rules-card { position: relative; width: 100%; aspect-ratio: 1087 / 1415; }
.birthday-detail .rules-background { display: block; width: 100%; height: auto; }
.birthday-detail .rules-content { position: absolute; inset: 6% 7% 5%; display: flex; flex-direction: column; min-height: 0; }
.birthday-detail .rules-title { flex: 0 0 auto; margin: 0 0 clamp(14px, 4vw, 22px); text-align: center; font-size: clamp(18px, 4.8vw, 24px); line-height: 1.4; font-weight: 600; }
.birthday-detail .notice {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 4px 4px 0;
  font-size: clamp(13px, 3.5vw, 16px);
  line-height: 1.8;
  color: #504643;
  overflow-wrap: anywhere;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c69089 transparent;
}
.birthday-detail .notice:focus-visible { outline: 2px solid #c69089; outline-offset: 2px; }
.birthday-detail .notice p { margin: 0 0 12px; }
.birthday-detail .notice h1,
.birthday-detail .notice h2,
.birthday-detail .notice h3,
.birthday-detail .notice h4 { margin: 16px 0 8px; font-size: 1.1em; line-height: 1.5; color: #513532; }
.birthday-detail .notice ul,
.birthday-detail .notice ol { margin: 0 0 12px; padding-left: 1.5em; }
.birthday-detail .notice li + li { margin-top: 6px; }
.birthday-detail .notice > :first-child { margin-top: 0; }
.birthday-detail .notice > :last-child { margin-bottom: 0; }
.birthday-detail .notice img { max-width: 100%; height: auto; }
.birthday-detail .notice table { max-width: 100%; width: 100%; table-layout: fixed; }
.birthday-detail .notice a { color: #89494d; }
.birthday-detail .bottom-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7%; margin-top: 16%; }
.birthday-detail .action-button { display: block; min-width: 0; border-radius: 10px; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.birthday-detail .action-button img { display: block; width: 100%; height: auto; }
.birthday-detail .action-button:focus-visible { outline: 3px solid #81454a; outline-offset: 5px; }
.birthday-detail .action-button:active { transform: scale(.98); }
.birthday-detail .page-footer-note {
  width: 94%;
  margin: auto auto 0;
  padding: clamp(36px, 7vh, 70px) 0 max(22px, env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: clamp(8px, 2.25vw, 12px);
  line-height: 1.6;
  font-weight: 600;
}
.birthday-detail .page-footer-note .global-footer-note__license { display: flex; flex-wrap: wrap; gap: 0 8px; margin-top: 4px; font-size: clamp(7px, 1.9vw, 9px); font-weight: 400; }
.birthday-detail .page-footer-note .global-footer-note__license img { width: 12px; height: 12px; }
@media (max-height: 700px) {
  .birthday-detail .detail-content { margin-top: clamp(36px, 7vh, 48px); margin-top: clamp(36px, 7svh, 48px); }
  .birthday-detail .page-footer-note { padding-top: 30px; }
}
