.st-standalone-language,
.st-standalone-language *,
.st-standalone-language *::before,
.st-standalone-language *::after {
  box-sizing: border-box;
}

.st-standalone-language {
  position: fixed;
  z-index: 2147482998;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  display: grid;
  width: min(230px, calc(100vw - 20px));
  padding: 9px;
  border: 1px solid rgba(0, 63, 63, 0.68);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 7px 24px rgba(0, 25, 25, 0.28);
  color: #061414;
  color-scheme: light;
  font: 600 14px/1.3 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}

.st-standalone-language__label {
  display: block;
  margin: 0 0 5px;
  color: #001f1f;
  font: 800 13px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.st-standalone-language .st-standalone-language__select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 7px 32px 7px 9px;
  border: 2px solid #006b6b;
  border-radius: 8px;
  background-color: #fff;
  color: #061414;
  font: 700 14px/1.25 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
}

.st-standalone-language .st-standalone-language__select:hover {
  border-color: #004f4f;
}

.st-standalone-language .st-standalone-language__select:focus-visible,
.st-standalone-language__credit:focus-visible {
  outline: 3px solid #ff7f50;
  outline-offset: 2px;
}

.st-standalone-language[aria-busy="true"] .st-standalone-language__select {
  cursor: progress;
}

.st-standalone-language__credit {
  justify-self: start;
  margin-top: 5px;
  color: #004f4f;
  font: 650 11px/1.25 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.st-standalone-language__credit:hover {
  color: #873211;
}

.st-standalone-language__status {
  position: fixed !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.st-standalone-language__google {
  position: fixed !important;
  top: auto !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

iframe.VIpgJd-ZVi9od-ORHb-OEVmcd.skiptranslate,
iframe.goog-te-banner-frame.skiptranslate {
  display: none !important;
  visibility: hidden !important;
}

html.translated-ltr body,
html.translated-rtl body {
  top: 0 !important;
}

@media (max-width: 520px) {
  .st-standalone-language {
    top: max(6px, env(safe-area-inset-top));
    right: max(6px, env(safe-area-inset-right));
    width: min(205px, calc(100vw - 12px));
    padding: 7px;
  }

  .st-standalone-language .st-standalone-language__select {
    min-height: 40px;
    font-size: 13px;
  }
}

/*
 * Arcade pages keep the chooser in their shared header. Only the current flag
 * is visible until it is activated, so it cannot cover the neighbouring Quit
 * action. Non-game standalone pages retain the fixed selector card above.
 */
body[data-arcade-game] .st-standalone-language--arcade {
  position: relative;
  z-index: 251;
  top: auto;
  right: auto;
  flex: 0 0 auto;
  display: block;
  width: 48px;
  min-width: 48px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: #061414;
  font: 600 14px/1.3 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body[data-arcade-game] .st-standalone-language__toggle {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-items: center;
  width: 48px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: inherit;
  line-height: 0;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 120ms ease, border-color 120ms ease, filter 120ms ease;
}

body[data-arcade-game] .st-standalone-language__toggle:hover,
body[data-arcade-game] .st-standalone-language__toggle[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.72);
  background: #171717;
  filter: brightness(1.08);
}

body[data-arcade-game] .st-standalone-language__toggle:focus-visible {
  outline: none;
  border-color: #fbbf24;
  box-shadow: 0 0 0 2px #fbbf24;
}

body[data-arcade-game] .st-standalone-language__flag {
  display: block;
  width: 40px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.58);
  object-fit: contain;
  pointer-events: none;
}

body[data-arcade-game] .st-standalone-language[aria-busy="true"] .st-standalone-language__toggle {
  cursor: progress;
  opacity: 0.72;
}

body[data-arcade-game] .st-standalone-language__popup {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 252;
  display: grid;
  width: min(230px, calc(100vw - 12px));
  padding: 9px;
  border: 1px solid rgba(0, 63, 63, 0.68);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 7px 24px rgba(0, 25, 25, 0.42);
  color: #061414;
  color-scheme: light;
  text-align: left;
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}

body[data-arcade-game] .st-standalone-language__popup[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  body[data-arcade-game] .st-standalone-language--arcade {
    width: 44px;
    min-width: 44px;
    height: 40px;
  }

  body[data-arcade-game] .st-standalone-language__toggle {
    width: 44px;
    height: 40px;
    min-height: 40px;
    padding: 3px;
  }

  body[data-arcade-game] .st-standalone-language__flag {
    width: 36px;
    height: 27px;
  }

  body[data-arcade-game] .st-standalone-language__popup {
    position: fixed;
    top: max(54px, calc(env(safe-area-inset-top) + 48px));
    right: max(6px, env(safe-area-inset-right));
    width: min(230px, calc(100vw - 12px));
    padding: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .st-standalone-language,
  .st-standalone-language * {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (forced-colors: active) {
  .st-standalone-language,
  .st-standalone-language .st-standalone-language__select {
    border-color: ButtonText;
    forced-color-adjust: auto;
  }

  body[data-arcade-game] .st-standalone-language__toggle {
    border-color: ButtonText;
  }
}

@media print {
  .st-standalone-language {
    display: none !important;
  }
}

/* Preserve the complete image, including fixed-size and cropped WordPress blocks. */
img {
  max-width: 100%;
  object-fit: contain !important;
}
