.mw-language-welcome {
  width: min(760px, calc(100vw - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: auto;
  color: #173f34;
  background: transparent;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(13, 45, 36, .34);
}

.mw-language-welcome::backdrop {
  background: rgba(11, 38, 31, .72);
  backdrop-filter: blur(10px) saturate(.85);
}

.mw-language-welcome-inner {
  position: relative;
  padding: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(219, 232, 215, .9), transparent 38%),
    linear-gradient(150deg, #fffefb 0%, #f6f4ed 100%);
  border: 1px solid rgba(44, 94, 75, .18);
  border-radius: inherit;
}

.mw-language-welcome-inner::after {
  position: absolute;
  right: -88px;
  bottom: -112px;
  width: 260px;
  height: 260px;
  content: "";
  pointer-events: none;
  background: rgba(182, 149, 78, .09);
  border: 1px solid rgba(182, 149, 78, .18);
  border-radius: 50%;
}

.mw-language-welcome-brand {
  position: relative;
  z-index: 1;
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  color: #fff;
  font: 700 13px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .08em;
  background: #173f34;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  place-items: center;
}

.mw-language-welcome-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  color: #557469;
  font: 700 12px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mw-language-welcome h2 {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 0;
  color: #173f34;
  font: 600 clamp(28px, 5vw, 43px)/1.08 Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}

.mw-language-welcome-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  max-width: 640px;
  margin: 15px 0 26px;
  color: #60746d;
  font: 500 14px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mw-language-welcome-options {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mw-language-choice {
  display: grid;
  min-height: 142px;
  padding: 18px;
  color: #173f34;
  text-align: left;
  cursor: pointer;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(44, 94, 75, .2);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(25, 69, 55, .06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
  align-content: start;
}

.mw-language-choice:hover {
  background: #fff;
  border-color: #739783;
  box-shadow: 0 12px 28px rgba(25, 69, 55, .12);
  transform: translateY(-2px);
}

.mw-language-choice:focus-visible {
  outline: 3px solid #c69b45;
  outline-offset: 3px;
}

.mw-language-choice:disabled {
  cursor: wait;
  opacity: .66;
  transform: none;
}

.mw-language-choice-code {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  color: #fff;
  font: 700 12px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .05em;
  background: #315f4d;
  border-radius: 12px;
  place-items: center;
}

.mw-language-choice strong {
  font: 700 17px/1.25 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mw-language-choice small {
  display: block;
  margin-top: 6px;
  color: #6a7c75;
  font: 500 12px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mw-language-welcome-note {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  margin: 20px 0 0;
  color: #71837c;
  font: 500 11px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (max-width: 620px) {
  .mw-language-welcome {
    width: min(100% - 20px, 520px);
    max-height: calc(100dvh - 20px);
    border-radius: 22px;
  }

  .mw-language-welcome-inner { padding: 25px 20px 22px; }
  .mw-language-welcome-brand { width: 44px; height: 44px; margin-bottom: 18px; }
  .mw-language-welcome h2 { font-size: clamp(25px, 8vw, 34px); }
  .mw-language-welcome-copy { margin: 12px 0 20px; font-size: 13px; }
  .mw-language-welcome-options { grid-template-columns: 1fr; gap: 9px; }
  .mw-language-choice {
    grid-template-columns: 42px 1fr;
    min-height: 0;
    padding: 14px;
    column-gap: 12px;
    align-items: center;
  }
  .mw-language-choice-code { grid-row: 1 / span 2; margin: 0; }
  .mw-language-choice strong,
  .mw-language-choice small { grid-column: 2; }
  .mw-language-choice small { margin-top: 2px; }
  .mw-language-welcome-note { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .mw-language-choice { transition: none; }
  .mw-language-choice:hover { transform: none; }
}

@media (forced-colors: active) {
  .mw-language-welcome-inner,
  .mw-language-choice { border: 2px solid ButtonText; }
  .mw-language-choice-code { border: 1px solid ButtonText; }
}
