/* Generated from src/styles/; see manifest.json for cascade order. */
/* The native components translated to the web: ModeTabBarView,
   FlickKeyboardView, StudyDocumentCard and ExpressionDetailScreen. */
.switch-comparison {
  max-width: 1000px;
  margin: auto;
  border: 1px solid #e4e8f3;
  border-radius: 28px;
  overflow: hidden;
}
.journey-shell {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1fr);
  gap: 70px;
  padding: 52px;
  background: #e4ebff;
  border-radius: 28px;
  align-items: center;
  max-width: 1120px;
  margin: auto;
}
.journey-story > img {
  display: block;
  object-fit: contain;
  margin-bottom: 24px;
}
.journey-nav {
  display: grid;
  gap: 12px;
}
.journey-nav button {
  display: flex;
  text-align: left;
  align-items: center;
  gap: 16px;
  padding: 17px 19px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: #ffffff55;
  color: #6d789a;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.journey-nav button > span {
  font-size: 12px;
  border-radius: 10px;
  padding: 7px;
  background: #fff7;
}
.journey-nav button[aria-current] {
  background: white;
  color: #202649;
  border-color: #bccaff;
}
.journey-nav button[aria-current] > span {
  background: #2557ff;
  color: white;
}
.journey-nav button:hover {
  background: #fff;
}
.journey-caption {
  font-size: 14px;
  line-height: 2;
  margin: 25px 0 16px;
  min-height: 84px;
}
.journey-story > small {
  font-size: 11px;
  color: #67769b;
}
.journey-ui {
  border-radius: 24px;
  background: #f5f6fb;
  border: 1px solid #d8dfef;
  overflow: hidden;
  box-shadow: 0 18px 45px #2026490b;
  min-width: 0;
}
:is(#journey-screen, .journey-exit) {
  min-height: 640px;
  outline: none;
}
.journey-ui button {
  font-family: inherit;
}
.journey-ui button:focus-visible,
.journey-nav button:focus-visible,
.photo-try button:focus-visible {
  outline: 3px solid #2557ff;
  outline-offset: 3px;
}
.demo-chat {
  background: #fff;
}
.chat-history {
  padding: 18px 18px 12px;
  min-height: 135px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-history > p {
  padding: 8px 15px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 18px;
  width: max-content;
  max-width: 90%;
  margin: 0;
}
.incoming {
  background: #e9e9ec;
}
.outgoing {
  background: #008bff;
  color: #fff;
  align-self: flex-end;
}
.chat-history > span {
  align-self: center;
  font-size: 10px;
  color: #9398a4;
  margin-top: 4px;
}
.message-compose {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}
.message-compose > span {
  font-size: 23px;
  color: #737781;
}
.message-compose > div {
  flex: 1;
  border: 1px solid #dce0e6;
  border-radius: 25px;
  min-height: 35px;
  padding: 6px 14px;
  color: #7a8294;
  font: 17px var(--latin);
}
.native-keyboard {
  background: #d2d4d9;
  padding: 8px 5px 0;
  color: #151515;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}
.candidate-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 6px;
  font-size: 12px;
  white-space: nowrap;
  overflow: auto;
}
.candidate-row > small {
  font-size: 10px;
  color: #85878b;
}
.candidate-row > span {
  color: #898b90;
  font-size: 10px;
}
.candidate-row > button {
  border: 0;
  background: none;
  font-size: 16px;
  padding: 4px 8px;
  color: #111;
  cursor: pointer;
  border-radius: 6px;
}
.candidate-row > button:hover {
  background: #fff;
}
.kana-preview {
  height: 26px;
  border-radius: 6px;
  background: #eef0f3;
  margin: 4px 2px;
  padding: 2px 12px;
  color: #42464e;
  font-size: 15px;
  line-height: 22px;
}
.keyboard-modes {
  display: flex;
  gap: 4px;
  padding: 3px 1px 6px;
}
.keyboard-modes > span {
  flex: 1;
  background: #fff;
  border-radius: 7px;
  text-align: center;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.2;
}
.keyboard-modes > .selected {
  background: #0095f9;
  color: white;
  font-weight: 700;
}
.kana-keys {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, 44px);
  gap: 6px;
}
.kana-keys > span {
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 7px;
  font-size: 23px;
  box-shadow: 0 1px 0 #a9acb2;
}
.kana-keys > span:nth-child(5n),
.kana-keys > span:nth-child(11),
.kana-keys > span:nth-child(17) {
  font-size: 13px;
}
.kana-keys > .return-key {
  grid-column: 5;
  grid-row: 3/5;
  background: #0095f9;
  color: white;
  font-size: 15px !important;
}
.keyboard-bottom {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px 10px;
  font-size: 25px;
  line-height: 1;
}
.demo-primary {
  display: block;
  width: 100%;
  min-height: 48px;
  border-radius: 18px;
  border: 0;
  background: #2557ff;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  padding: 13px 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.demo-primary > span {
  float: right;
}
.demo-primary:hover {
  background: #1944d9;
}
.native-learning {
  padding: 0 20px 3px;
  color: #202649;
}
.native-card {
  padding: 20px;
  background: #fff;
  border-radius: 20px;
  margin-bottom: 14px;
}
.native-card h4,
.native-section-label {
  font-size: 14px;
  margin: 0 0 13px;
  font-weight: 750;
}
.native-card p {
  font-size: 13px;
  line-height: 1.9;
  margin: 0;
}
.native-card strong {
  font: 800 20px/1.5 var(--latin);
}
.native-card strong em {
  font-style: normal;
  color: #2557ff;
}
.expression-document > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.expression-document > p {
  border-top: 1px solid #eef0f6;
  padding-top: 15px;
  margin-top: 15px;
  font-weight: 700;
}
.demo-audio {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f3ff;
  color: #2557ff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.demo-audio svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.native-card .native-muted {
  color: #8e96ad;
  font-size: 11px;
  margin-top: 10px;
}
.demo-answers {
  display: grid;
  gap: 12px;
}
.demo-answers button {
  min-height: 57px;
  border: 2px solid transparent;
  border-radius: 18px;
  background: #fff;
  color: #202649;
  font: 800 19px var(--latin);
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.demo-answers button:hover {
  border-color: #b7c6ff;
}
.demo-answers button.is-correct {
  background: #e8f5ed;
  border-color: #78b697;
  color: #286948;
}
.demo-answers button.is-wrong {
  border-color: #db9696;
  background: #fff4f4;
}
.flash-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 35px;
  width: 100%;
  min-height: 280px;
  border: 0;
  cursor: pointer;
  color: #202649;
}
.flash-face > span {
  font-size: 12px;
  color: #8c96ae;
}
.flash-face > strong {
  font-size: 30px;
}
.flash-face > small {
  color: #8c96ae;
  font-size: 11px;
}
.extras-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.extras-grid > article {
  border-radius: 26px;
  padding: 36px;
  background: #f0f0f8;
  overflow: hidden;
}
.extras-grid > .recommend-extra {
  background: #e5eff9;
}
.extra-copy h3 {
  font-size: 26px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.extra-copy p {
  font-size: 13px;
  line-height: 2;
  margin: 0;
}
.photo-try {
  margin-top: 26px;
}
.recommend-art {
  padding: 40px 5px 5px;
  display: grid;
  gap: 18px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 1000px) {
  .journey-shell {
    padding: 30px;
    gap: 30px;
  }
  .extras-grid > article {
    padding: 28px;
  }
}
@media (max-width: 760px) {
  .switch-section .section-intro,
  .journey-section .section-intro,
  .extras-section .section-intro {
    text-align: center;
  }
  .switch-section .section-intro h2,
  .journey-section .section-intro h2,
  .extras-section .section-intro h2 {
    font-size: 26px;
  }
  .switch-comparison {
    border-radius: 22px;
  }
  .journey-shell {
    display: flex;
    flex-direction: column;
    padding: 24px 14px 14px;
    gap: 20px;
    border-radius: 23px;
  }
  .journey-story {
    width: 100%;
  }
  .journey-story > img {
    width: 75px;
    height: 70px;
    margin: 0 auto 18px;
  }
  .journey-nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .journey-nav button {
    display: flex;
    flex-direction: column;
    padding: 12px 4px;
    gap: 6px;
    font-size: 10px;
    line-height: 1.6;
    text-align: center;
    border-radius: 14px;
  }
  .journey-nav button > span {
    font-size: 12px;
    padding: 4px 8px;
  }
  .journey-caption {
    font-size: 12px;
    margin: 18px 10px 7px;
    min-height: 0;
    line-height: 1.9;
  }
  .journey-story > small {
    display: block;
    text-align: center;
    font-size: 10px;
  }
  .journey-ui {
    width: 100%;
    border-radius: 18px;
  }
  :is(#journey-screen, .journey-exit) {
    min-height: 620px;
  }
  .native-learning {
    padding-inline: 14px;
  }
  .native-card {
    padding: 17px;
  }
  .native-card strong {
    font-size: 19px;
  }
  .kana-keys {
    grid-template-rows: repeat(4, 42px);
    gap: 5px;
  }
  .candidate-row > button {
    font-size: 15px;
    padding-inline: 4px;
  }
  .candidate-row {
    gap: 6px;
  }
  .extras-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .extras-grid > article {
    padding: 27px 23px;
  }
  .extra-copy h3 {
    font-size: 23px;
  }
  .extra-copy p {
    font-size: 12px;
  }
  .recommend-art {
    padding-top: 28px;
  }
  .journey-section #practice {
    scroll-margin-top: 110px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .journey-shell *,
  .extras-grid * {
    transition: none !important;
  }
}

:is(#journey-screen, .journey-exit) {
  scroll-margin-top: 110px;
}
