/* web/styles/i18n.css */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: auto;
}
.language-picker {
  display: inline-flex;
  align-items: center;
  position: relative;
  gap: 7px;
  color: #1f4033;
  flex-shrink: 0;
}
.language-picker svg {
  width: 17px;
  height: 17px;
  pointer-events: none;
}
.language-picker select {
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  color: inherit;
  background: transparent;
  border: 1px solid #dbe1d8;
  border-radius: 8px;
  padding: 10px 22px 10px 9px;
  min-height: 40px;
  max-width: 112px;
  cursor: pointer;
}
.language-picker select:focus-visible {
  outline: 2px solid #796030;
  outline-offset: 3px;
}
.privacy-language {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}
.language-trigger {
  display: none;
}
#language-sheet {
  box-sizing: border-box;
  position: fixed;
  inset: auto 0 0;
  width: calc(100% - 24px);
  max-width: 440px;
  max-height: calc(100dvh - 24px);
  margin: 12px auto max(12px, env(safe-area-inset-bottom));
  padding: 20px;
  border: 1px solid #dbe1d8;
  border-radius: 24px;
  background: #fafbf7;
  color: #1f4033;
  box-shadow: 0 20px 80px #142d2438;
  overflow: auto;
  overscroll-behavior: contain;
}
#language-sheet::backdrop {
  background: #142d246b;
  backdrop-filter: blur(4px);
}
.language-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
#language-sheet-title {
  margin: 0;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
}
#language-sheet .language-sheet-close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #edf0e7;
  color: #1f4033;
  font: inherit;
  font-size: 27px;
  cursor: pointer;
}
.language-options {
  display: grid;
  gap: 8px;
}
#language-sheet .language-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-sizing: border-box;
  width: 100%;
  min-height: 60px;
  padding: 16px 18px;
  border: 1px solid #e0e5db;
  border-radius: 14px;
  background: #fff;
  color: #254336;
  font: inherit;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}
#language-sheet .language-options button[aria-pressed=true] {
  border-color: #4c6c50;
  background: #eaf0e4;
  font-weight: 600;
}
.language-check {
  visibility: hidden;
  font-size: 20px;
  color: #3b6145;
}
[aria-pressed=true] .language-check {
  visibility: visible;
}
#language-sheet button:focus-visible,
.language-trigger:focus-visible {
  outline: 2px solid #796030;
  outline-offset: 3px;
}
@media (max-width: 740px) {
  .has-language-sheet select {
    display: none;
  }
  .has-language-sheet .language-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    min-height: 44px;
    padding: 10px;
    border: 1px solid #dbe1d8;
    border-radius: 9px;
    background: transparent;
    color: #1f4033;
    font: inherit;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
  }
}
html[lang=ja] {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;
}
html[lang=ko] {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.world-copy {
  max-width: 85%;
}
.world-copy small {
  white-space: normal !important;
  line-height: 1.5;
}
html[lang=en] .hero h1 {
  max-width: 960px;
  margin-inline: auto;
  text-wrap: balance;
}
.hero h1,
.section-title {
  text-wrap: balance;
}
html[lang=en] .world strong {
  font-size: 24px;
}
.panel-heading h2,
.dashboard-heading h1 {
  overflow-wrap: normal;
  text-wrap: balance;
}
.countdown-caption {
  flex-wrap: wrap;
  gap: 6px 12px;
}
.countdown-digits small {
  white-space: nowrap;
}
@media (max-width: 1100px) and (min-width: 721px) {
  .site-nav {
    gap: 16px;
  }
  .site-links {
    gap: 16px;
  }
  .site-links a {
    font-size: 12px;
  }
  .nav-actions {
    gap: 10px;
  }
  .site-nav .btn {
    padding: 12px 16px;
  }
}
@media (max-width: 740px) {
  .nav-actions {
    gap: 8px;
  }
  .language-picker {
    gap: 0;
  }
  .language-picker svg {
    display: none;
  }
  .language-picker select {
    font-size: 11px;
    max-width: 98px;
    min-height: 38px;
    padding: 8px 16px 8px 6px;
  }
  .navigation #account-button {
    padding: 9px 10px;
    font-size: 11px;
    max-width: 120px;
    min-height: 38px;
    white-space: normal;
  }
  .site-nav .btn {
    gap: 8px;
    padding: 10px 12px;
  }
  .dashboard-heading h1 {
    font-size: clamp(22px, 6vw, 28px);
  }
  .panel-heading {
    align-items: flex-start;
  }
  .panel-heading h2 {
    font-size: 20px;
  }
  .panel-heading .quiet-button {
    white-space: normal;
    text-align: right;
    max-width: 105px;
  }
  .world-label {
    font-size: 10px;
    padding: 2px 3px;
  }
  .world small {
    font-size: 10px;
    max-width: 90%;
  }
  .world strong,
  html[lang=en] .world strong {
    font-size: 17px;
  }
  .world-scene {
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  }
  .world .label-top,
  .world .label-bottom {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  .world .label-top {
    top: -8px;
  }
  .world .label-bottom {
    bottom: -8px;
    top: auto;
  }
  .world .label-left {
    left: 0;
    top: 70%;
    bottom: auto;
    transform: translateX(-8%);
  }
  .world .label-right {
    right: 0;
    top: 20%;
    transform: translateX(8%);
  }
  .world-copy {
    max-width: 88%;
  }
  .hero .hero-actions {
    gap: 12px;
  }
  .hero .hero-actions .btn {
    white-space: normal;
  }
  .footer > span {
    line-height: 1.8;
  }
}
@media (max-width: 380px) {
  .site-nav,
  .community-page .navigation {
    gap: 8px;
  }
  .site-nav .wordmark img,
  .navigation .logo img {
    width: 29px;
    height: 29px;
    margin-right: 5px;
  }
  .navigation .logo,
  .site-nav .wordmark {
    font-size: 25px;
  }
  .nav-actions {
    gap: 6px;
  }
  .site-nav .btn {
    padding: 9px;
    font-size: 11px;
  }
  .language-picker select {
    max-width: 88px;
  }
  .world-label {
    font-size: 9px;
  }
}
