/* Localization additions, loaded after the existing site styles. */
.language-picker {
  max-width: 124px;
  min-height: 42px;
  padding: 8px 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.language-picker:focus-visible { outline: 3px solid #c06be6; outline-offset: 3px; }
.language-picker:disabled { cursor: default; }
.topbar nav { min-width: 0; }
.world-tag { align-items: center; gap: 6px; }
.world-tag svg { width: 16px; height: 16px; }

/* Translated copy can wrap without colliding with the card previews. */
.feature-card { display: flex; flex-direction: column; }
.feature-icon { flex-shrink: 0; }
.question-preview, .answer-stack, .connection-rings {
  position: relative;
  inset: auto;
  margin-top: auto;
}
.question-preview { margin-top: 24px; }
.answer-stack { height: auto; padding-top: 24px; }
.answer-card { position: relative; inset: auto; }
.answer-card.offset { inset: auto; margin: 8px 0 0 14%; }
.answer-match { position: relative; inset: auto; width: fit-content; margin: 10px 0 0 auto; }
.connection-rings { align-self: center; transform: none; min-height: 170px; }
.bond-stats > span > [data-i18n] { padding: 0; border: 0; background: none; color: inherit; font: inherit; }
.phone-screen .app-greeting strong { line-height: 1.22; }
.phone-screen .app-card-main > div:nth-child(2) { min-width: 0; }
.phone-screen .mini-card { min-width: 0; }
.hero-message { overflow-wrap: anywhere; }
html:lang(ja) .hero-message, html:lang(th) .hero-message { line-height: 1.2; letter-spacing: -.025em; }
html:lang(th) .eyebrow, html:lang(th) .feature-kicker { letter-spacing: normal; }
html:lang(th) :is(h2, h3) { line-height: 1.3; letter-spacing: normal; }

/* Two identical groups make a seamless, gently moving decorative strip. */
.language-card { min-width: 0; }
.language-copy { min-width: 0; }
.flag-ticker {
  min-width: 0;
  overflow: hidden;
  padding: 32px 0;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.flag-ticker__track { display: flex; width: max-content; animation: flag-ticker 52s linear infinite; }
.flag-ticker__group { display: flex; align-items: center; gap: 22px; padding-right: 22px; flex-shrink: 0; }
.flag-ticker__group img {
  flex: 0 0 54px;
  width: 54px;
  height: 36px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(53,25,74,.14);
  object-fit: cover;
}
@keyframes flag-ticker { to { transform: translateX(-50%); } }

/* Store tiles are information, so neither has link/button semantics. */
.beta-actions { display: flex; flex-wrap: wrap; align-items: center; }
.store-statuses { display: flex; flex-wrap: wrap; gap: 11px; }
.play-status { min-width: 0; }
.play-status small { white-space: normal; line-height: 1.45; }
.app-store-status {
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.85);
  cursor: default;
  box-shadow: none;
}
.app-store-status > svg { flex-shrink: 0; opacity: .85; }
.app-store-status small { color: rgba(255,255,255,.76); }
.footer-center .legal-language-note { max-width: 560px; color: #c9bbd5; font-size: 11px; line-height: 1.5; }
.legal-language-note[hidden] { display: none; }
.privacy-notice__actions { white-space: normal; flex-wrap: wrap; }
.privacy-notice__actions button, .privacy-notice__actions a { text-align: center; }

@media (max-width: 1040px) {
  .topbar nav a { padding-inline: 9px; }
  .topbar .toggle-label { display: none; }
  .language-picker { max-width: 108px; }
}
@media (max-width: 860px) {
  .topbar nav a:not(.nav-cta) { display: none; }
}
@media (max-width: 720px) {
  .language-picker { width: 98px; min-height: 39px; font-size: 12px; }
  .beta-actions { gap: 12px; }
  .beta-actions > .button { flex-basis: auto; width: 100%; }
  .play-status { flex: 1 1 135px; justify-content: center; }
  .flag-ticker { padding: 22px 0; }
  .hero-message { font-size: clamp(44px, 12vw, 78px); }
  html:lang(ja) .hero-message, html:lang(th) .hero-message { font-size: clamp(34px, 9vw, 60px); }
}
@media (max-width: 390px) {
  .topbar > .brand span { display: none; }
  .topbar nav { gap: 6px; }
  .language-picker { width: 94px; }
  .privacy-notice__actions button { flex: 1 1 100px; }
}
@media (prefers-reduced-motion: reduce) {
  .flag-ticker__track { animation: none !important; transform: none; width: 100%; }
  .flag-ticker__group { flex-wrap: wrap; justify-content: center; padding-right: 0; width: 100%; gap: 16px; }
  .flag-ticker__group + .flag-ticker__group { display: none; }
}
