@charset "utf-8";

/* Only the test page's one-column story. Shared UI is not changed. */
.yumail-test-page .yumail-story-section {
  background: radial-gradient(ellipse at 50% 60%, #eaf7ff, #fff 72%);
  scroll-margin-top: 90px;
}
@media (min-width: 768px) {
  .yumail-test-page .yumail-story-section {
    scroll-margin-top: 130px;
  }
}

.yumail-story-section .yumail-story-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.yumail-story-section .yt-heading p,
.yumail-story-section .yumail-story-intro p {
  text-wrap: balance;
}

.yumail-story-section .yumail-story-keep {
  white-space: nowrap;
}

.yumail-story-section .yumail-story-sentence {
  display: block;
  text-wrap: balance;
}
@media (min-width: 768px) {
  .yumail-story-section .yumail-story-sentence {
    display: inline;
  }
}

.yumail-story-section .yumail-story-intro h3 {
  margin: 0;
  color: #075795;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.7;
}
@media (min-width: 768px) {
  .yumail-story-section .yumail-story-intro h3 {
    font-size: 30px;
  }
}

.yumail-story-section .sp-only {
  display: inline;
}
@media (min-width: 768px) {
  .yumail-story-section .sp-only {
    display: none;
  }
}

.yumail-story-section .yumail-story-intro p {
  margin: 16px 0 0;
  color: #536b7d;
  font-size: 15px;
  line-height: 1.9;
}
@media (min-width: 768px) {
  .yumail-story-section .yumail-story-intro p {
    font-size: 16px;
  }
}

.yumail-story-section .yumail-story {
  max-width: 940px;
  margin: 32px auto 0;
}
@media (min-width: 768px) {
  .yumail-story-section .yumail-story {
    margin-top: 40px;
  }
}

.yumail-story-section .yumail-story-cue {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 4px 18px;
  text-align: center;
}
@media (min-width: 768px) {
  .yumail-story-section .yumail-story-cue {
    min-height: 138px;
    padding-bottom: 24px;
  }
}

.yumail-story-section .yumail-story-chapter {
  color: #075795;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.7;
}
@media (min-width: 768px) {
  .yumail-story-section .yumail-story-chapter {
    font-size: 16px;
  }
}

.yumail-story-section .yumail-story-word {
  display: block;
  margin-top: 8px;
  color: #0065b6;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.4;
}
@media (min-width: 768px) {
  .yumail-story-section .yumail-story-word {
    font-size: 32px;
  }
}

.yumail-story-section .yumail-story[data-effect="pluck"] .yumail-story-word,
.yumail-story-section .yumail-story[data-effect="pull"] .yumail-story-word,
.yumail-story-section .yumail-story[data-effect="open"] .yumail-story-word {
  color: #ed618b;
  font-size: 44px;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .yumail-story-section .yumail-story[data-effect="pluck"] .yumail-story-word,
  .yumail-story-section .yumail-story[data-effect="pull"] .yumail-story-word,
  .yumail-story-section .yumail-story[data-effect="open"] .yumail-story-word {
    font-size: 72px;
  }
}

.yumail-story-section .yumail-story-paper {
  position: relative;
  padding: 22px 12px 16px;
  border: 1px solid #cee5f4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 0 -3px #e4f0f9, 0 16px 0 -6px #d5e9f6, 0 24px 50px rgb(7 87 149 / 12%);
}
@media (min-width: 768px) {
  .yumail-story-section .yumail-story-paper {
    padding: 32px 32px 24px;
    border-radius: 24px;
  }
}

/* The moving paper edge stays in the gutter, outside the illustration. */
.yumail-story-section .yumail-story-paper::after {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 0 8px 0 8px;
  background: linear-gradient(45deg, #d9ecf8 48%, #fff 50%);
  content: "";
  pointer-events: none;
}
@media (min-width: 768px) {
  .yumail-story-section .yumail-story-paper::after {
    width: 25px;
    height: 25px;
  }
}

.yumail-story-section .yumail-story-slide {
  margin: 0;
}

.yumail-story-section .yumail-story-slide[hidden],
.yumail-story-section .yumail-story-controls[hidden] {
  display: none;
}

.yumail-story-section .yumail-story-art {
  display: flex;
  height: min(66vw, 270px);
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .yumail-story-section .yumail-story-art {
    height: 420px;
  }
}
@media (min-width: 1025px) {
  .yumail-story-section .yumail-story-art {
    height: 520px;
  }
}

.yumail-story-section .yumail-story-art img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  flex: 0 1 auto;
  object-fit: contain;
}

.yumail-story-section .yumail-story-slide figcaption {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: center;
  margin: 12px 0 0;
  color: #16344d;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
  text-wrap: pretty;
}
@media (min-width: 768px) {
  .yumail-story-section .yumail-story-slide figcaption {
    min-height: 66px;
    font-size: 17px;
  }
}

.yumail-story-section .yumail-story-progress {
  display: flex;
  gap: 5px;
  max-width: 360px;
  margin: 8px auto 0;
}

.yumail-story-section .yumail-story-progress-item {
  height: 4px;
  border-radius: 10px;
  background: #e0edf6;
  flex: 1;
}

.yumail-story-section .yumail-story-progress-item.is-past {
  background: #9dcae9;
}

.yumail-story-section .yumail-story-progress-item.is-current {
  background: #ed618b;
}

.yumail-story-section .yumail-story-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
}

.yumail-story-section .yumail-story-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid #075795;
  border-radius: 9px;
  background: #fff;
  color: #075795;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
@media (min-width: 768px) {
  .yumail-story-section .yumail-story-button {
    padding: 10px 18px;
    font-size: 16px;
  }
}

.yumail-story-section .yumail-story-button-primary {
  min-width: 108px;
  background: #075795;
  color: #fff;
}

.yumail-story-section .yumail-story-button:hover:not(:disabled) {
  background: #eaf7ff;
  color: #075795;
}

.yumail-story-section .yumail-story-button:disabled {
  border-color: #cbdbe5;
  background: #f5f9fc;
  color: #647888;
  cursor: default;
}

.yumail-story-section .yumail-story-button:focus {
  outline: 3px solid #f2c94c;
  outline-offset: 3px;
}

.yumail-story-section .yumail-story-button:focus:not(:focus-visible) {
  outline: none;
}

.yumail-story-section .yumail-story-button:focus-visible {
  outline: 3px solid #f2c94c;
  outline-offset: 3px;
}

.yumail-story-section .yumail-story-status {
  min-width: 46px;
  color: #536b7d;
  font-size: 14px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.yumail-story-section .yumail-story-replay {
  margin: 4px 24px 0;
}
@media (min-width: 768px) {
  .yumail-story-section .yumail-story-replay {
    margin: 0 0 0 8px;
  }
}

.yumail-story-section .yumail-story-hint {
  margin: 18px 0 0;
  color: #536b7d;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
  text-wrap: balance;
}

.yumail-story-section .yumail-story-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .yumail-story-section .yumail-story.is-changing .yumail-story-art {
    animation: yumail-paper-arrive .65s ease-out both;
  }

  .yumail-story-section .yumail-story.is-changing .yumail-story-paper::after {
    animation: yumail-paper-edge .65s ease-out;
  }

  .yumail-story-section .yumail-story.is-changing .yumail-story-word {
    animation: yumail-word-arrive .65s ease-out both;
  }

  .yumail-story-section .yumail-story.is-changing[data-effect="pluck"] .yumail-story-word {
    animation: yumail-word-pluck .65s ease-out both;
  }

  .yumail-story-section .yumail-story.is-changing[data-effect="pull"] .yumail-story-word {
    animation: yumail-word-pull .65s ease-out both;
  }

  .yumail-story-section .yumail-story.is-changing[data-effect="open"] .yumail-story-word {
    animation: yumail-word-open .75s ease-out both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yumail-story-section .yumail-story-button {
    transition: none;
  }
}

@keyframes yumail-paper-arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes yumail-paper-edge {
  50% {
    transform: translate(-5px, 5px);
  }
}

@keyframes yumail-word-arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes yumail-word-pluck {
  0% {
    opacity: 0;
    transform: scale(.8);
  }
  45% {
    opacity: 1;
    transform: scale(1.12);
  }
  70% {
    transform: scale(.96);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes yumail-word-pull {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes yumail-word-open {
  0% {
    opacity: 0;
    transform: scale(.65);
  }
  55% {
    opacity: 1;
    transform: scale(1.16);
  }
  100% {
    transform: scale(1);
  }
}
