
/* Localized navigation and the illustrated overseas landing cards. */
html[data-overseas-ui]:not([lang="zh-CN"]) .brand-zh,
html[lang="zh-CN"][data-overseas-ui] .brand-en {
  display: none;
}
html[data-overseas-ui] .qiqu-hub-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
html[data-overseas-ui] [data-customer-support],
html[data-overseas-ui] #previewContactSupportBtn {
  display: none !important;
}
.overseas-language {
  position: fixed;
  z-index: 150;
  bottom: max(8px, env(safe-area-inset-bottom));
  left: max(8px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 42px;
  padding: 4px 8px;
  border: 1px solid #e4d8b6;
  border-radius: 99px;
  background: #fffaf0f2;
  color: #30513b;
  box-shadow: 0 3px 10px #183e3024;
}
.overseas-language select {
  max-width: 100%;
  width: clamp(88px,10vw,160px);
  min-height: 32px;
  padding: 0 2px 0 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: 700 13px/1 system-ui,sans-serif;
  cursor: pointer;
}
.overseas-language select option {
  background: #fffaf0;
  color: #263f31;
  font-weight: 500;
}
.license-home-tools .overseas-language {
  position: static;
  z-index: auto;
  min-height: 38px;
  box-shadow: 0 3px 10px #183e3024;
}
@media (max-width: 480px) {
  html[data-overseas-ui] .qiqu-hub-grid { gap: 10px; }
  .overseas-language select { font-size: 12px; }
}
html[data-overseas-ui]:not([lang="zh-CN"]) .home-screen.home-five-portals .home-brand-logo {
  clip-path: inset(0 0 35% 0);
}
html[data-overseas-ui]:not([lang="zh-CN"]) .home-screen.home-five-portals .home-title strong {
  font-size: clamp(17px, 2.1vw, 61px);
  line-height: 1;
  letter-spacing: .02em;
  text-align: center;
}
html[data-overseas-ui]:not([lang="zh-CN"]) .home-screen.home-five-portals .home-title small {
  display: block;
  margin-top: .22em;
  font-size: .59em;
  letter-spacing: .015em;
}
.home-screen.home-five-portals.home-overseas-cards {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  grid-template-rows: auto minmax(112px,1fr) auto;
  align-content: start;
  position: absolute;
  inset: 0;
  padding: max(12px,var(--game-safe-top)) max(clamp(12px,4vw,80px),var(--game-safe-right),var(--game-safe-left)) max(66px,var(--game-safe-bottom));
  gap: 0;
  overflow: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}
.home-overseas-cards.home-five-portals > .backdrop {
  position: fixed;
  object-position: center;
}
.home-overseas-cards.home-five-portals::before {
  position: fixed;
  background: linear-gradient(180deg,#14372124,transparent 22%,transparent 44%,#19412d50);
}
.home-overseas-cards.home-five-portals .home-brand-logo {
  display: none;
}
.home-overseas-cards.home-five-portals .home-title {
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
  align-self: start;
  position: relative;
  inset: auto;
  transform: none;
  width: min(100%,clamp(240px,27vw,420px));
  height: clamp(98px,17vh,165px);
}
.home-overseas-cards.home-five-portals .home-title strong {
  font-size: clamp(23px,3vw,38px);
}
.home-overseas-cards.home-five-portals .home-portals {
  grid-column: 1;
  grid-row: 3;
  position: relative;
  inset: auto;
  transform: none;
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  align-items: stretch;
  gap: clamp(10px,1.45vw,24px);
  width: min(100%,1120px);
  max-width: none;
  height: auto;
  margin: 0;
}
.home-overseas-cards.home-five-portals .home-portals .home-adventure-card {
  --card-paper: #fffbef;
  --card-accent: #32593d;
  --card-soft: #e0edcf;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  min-width: 0;
  border: 1px solid #fff9;
  border-radius: clamp(13px,1.9vw,26px);
  background: var(--card-paper);
  color: #263f31;
  overflow: hidden;
  box-shadow: 0 12px 24px #16362b39,0 2px 4px #16362b30;
  text-align: left;
  transition: transform .18s ease,box-shadow .18s ease;
}
.home-overseas-cards.home-five-portals .home-portals .home-adventure-park {
  --card-paper: #eff8ff;
  --card-accent: #205568;
  --card-soft: #d4e9f4;
}
.home-overseas-cards.home-five-portals .home-portals .home-adventure-classroom {
  --card-paper: #f6f0fc;
  --card-accent: #554274;
  --card-soft: #e8ddf5;
}
.home-overseas-cards.home-five-portals .home-portals .home-adventure-growth {
  --card-paper: #fff6e6;
  --card-accent: #794b29;
  --card-soft: #f5e3c7;
}
.home-overseas-cards .adventure-art {
  display: block;
  aspect-ratio: 3/2;
  background: var(--card-soft);
  overflow: hidden;
}
.home-overseas-cards .adventure-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-overseas-cards .adventure-label {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 6px clamp(4px,.9vw,12px);
  min-height: 70px;
  padding: clamp(9px,1.35vw,18px);
}
.home-overseas-cards .adventure-label strong,
.home-overseas-cards .adventure-label small {
  display: block;
  position: static;
  white-space: normal;
  overflow-wrap: break-word;
}
html[dir="rtl"][data-overseas-ui] body {
  direction: ltr;
}
html[dir="rtl"][data-overseas-ui] .adventure-label,
html[dir="rtl"][data-overseas-ui] .license-copy {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"][data-overseas-ui] .adventure-arrow {
  transform: scaleX(-1);
}
html[dir="rtl"][data-overseas-ui] .license-copy input[type="email"] {
  direction: ltr;
}
.home-overseas-cards .adventure-label strong {
  grid-column: 1/-1;
  color: var(--card-accent);
  font-size: clamp(16px,1.55vw,23px);
  line-height: 1.12;
  font-weight: 850;
}
.home-overseas-cards.home-five-portals .adventure-label small {
  grid-column: 1;
  grid-row: 2;
  color: #45554a;
  font-size: clamp(12px,1vw,15px);
  line-height: 1.35;
}
.home-overseas-cards .adventure-arrow {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  display: grid;
  place-items: center;
  width: clamp(22px,2.45vw,34px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--card-soft);
  color: var(--card-accent);
  font-size: clamp(14px,1.65vw,23px);
}
.home-overseas-cards.home-five-portals .home-portals .home-adventure-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px #16362b5c;
}
.home-overseas-cards.home-five-portals .home-portals .home-adventure-card:focus-visible {
  outline: 3px solid #fff1ad;
  outline-offset: 3px;
}
body .home-screen.home-overseas-cards.home-five-portals .license-home-tools {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
  inset: auto;
  justify-self: end;
  width: auto;
  max-width: 100%;
}
body .home-screen.home-overseas-cards.home-five-portals .license-home-tools button {
  min-height: 38px;
  padding: 6px 10px;
  font-size: clamp(11px,2vw,13px);
  margin: 0;
}
body .home-screen.home-overseas-cards.home-five-portals .home-parent-entry {
  position: relative;
  inset: auto;
  grid-column: 1;
  grid-row: 4;
  justify-self: end;
  margin-top: 10px;
}
@media (max-width: 700px) {
  .home-screen.home-five-portals.home-overseas-cards { grid-template-rows: auto auto auto; row-gap: 12px; }
  .home-overseas-cards.home-five-portals .home-portals { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 560px; }
  .home-overseas-cards .adventure-label { min-height: 65px; }
  .home-overseas-cards .adventure-label strong { font-size: clamp(15px,3.6vw,20px); }
}
@media (max-height: 480px) and (orientation: landscape) {
  .home-screen.home-five-portals.home-overseas-cards { grid-template-rows: auto auto auto; }
  .home-overseas-cards.home-five-portals .home-title { height: 76px; }
  .home-overseas-cards.home-five-portals .home-portals { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .home-overseas-cards .adventure-label { min-height: 56px; }
  .home-overseas-cards .adventure-label strong { font-size: 14px; }
  .home-overseas-cards.home-five-portals .adventure-label small { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-overseas-cards .home-adventure-card { transition: none; }
}
