.top-logo,
.quick-actions,
.install-guide {
  display: none !important;
}

.page-with-tab {
  min-height: 100dvh;
  padding-bottom: calc(var(--u-rem) * 2.7 + env(safe-area-inset-bottom));
}

.origin-game-page.page-with-tab {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding-bottom: calc(var(--u-rem) * 1.78 + env(safe-area-inset-bottom));
}

.origin-game-page .origin-top {
  flex-shrink: 0;
}

.origin-game-layout {
  flex: 1;
  height: auto;
  min-height: 0;
}

.origin-game-list {
  padding-bottom: calc(var(--u-rem) * 1.28);
}

.phone-shell[data-page="home"],
.phone-shell[data-page="home"] .app-view {
  min-height: 100dvh;
}

.home-page.page-with-tab {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-bottom: calc(var(--u-rem) * 1.78 + env(safe-area-inset-bottom));
}

.tab-bar {
  height: calc(var(--u-rem) * 1.78 + env(safe-area-inset-bottom));
  background: #fff;
}

.bottom-menus-box {
  background: #fff;
}

.bottom-menus-service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #acb3c9;
  font-size: calc(var(--u-rem) * .62);
}

.home-page .hero-wrap {
  flex-shrink: 0;
}

.home-page .game-lobby {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.home-page .main-game-grid {
  flex: 1;
}

.origin-top img:first-child {
  height: calc(var(--u-rem) * .9);
  object-fit: contain;
  object-position: left center;
}

.login-sheet-hero img {
  width: calc(var(--u-rem) * 1.6);
}

.home-page .game-lobby {
  flex: 0 0 auto;
}

.home-page .main-game-grid {
  flex: 0 0 auto;
}

.auth-page {
  box-sizing: border-box;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  margin: 0 auto;
  width: min(500px, 100vw);
  height: 100dvh;
  padding: 70px 20px calc(30px + env(safe-area-inset-bottom));
  border-radius: 0;
  background: linear-gradient(180deg, #a7c1e3, #e1eeff);
  color: #303e50;
  overflow-y: auto;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f6fbff;
  color: #4388e9;
  font-size: 22px;
  box-shadow: 0 6px 15px #6896cf26;
}

.auth-tabs {
  display: flex;
  height: 44px;
  padding: 3px;
  box-sizing: border-box;
  border-radius: 24px;
  background: #f7fbffe6;
  margin-bottom: 16px;
}

.auth-tabs button {
  flex: 1;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: #818996;
  font-size: 16px;
}

.auth-tabs button.active,
.auth-primary {
  background: linear-gradient(110deg, #58a9fa, #3478f6);
  color: #fff;
  box-shadow: 0 10px 20px #548ee52e;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-input {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: 46px;
  gap: 12px;
  padding: 0 16px;
  border-radius: 25px;
  background: #f8fbfff2;
  box-shadow: 0 8px 18px #6896cf26;
  color: #3d82ec;
  font-size: 18px;
}

.auth-input input {
  width: 0;
  min-width: 0;
  flex: 1;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #303e50;
  font-size: 14px;
}

.auth-input input::placeholder {
  color: #98a2b1;
}

.auth-eye {
  display: grid;
  place-items: center;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #5790e8;
  font-size: 18px;
}

.auth-agreement {
  display: flex;
  align-items: center;
  gap: 18px;
  box-sizing: border-box;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #f8fbfff2;
  box-shadow: 0 8px 18px #6896cf26;
  font-size: 12px;
  line-height: 18px;
}

.auth-agreement input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #3582ee;
}

.auth-primary {
  height: 46px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
}

.auth-error {
  margin: 0;
  color: #ae2837;
  font-size: 12px;
}

.auth-form button:disabled {
  opacity: .65;
}

.guest-account-label {
  color: #3478f6;
  font-size: calc(var(--u-rem) * .4);
  font-weight: 700;
}

.guest-account-hint {
  margin-top: calc(var(--u-rem) * .16);
  color: #8592ab;
  font-size: calc(var(--u-rem) * .28);
}

/* Customer service entry beside the game logo. */
.origin-top > img:first-child {
  width: calc(var(--u-rem) * 1.35);
}

.customer-service-link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: calc(var(--u-rem) * .12);
  color: #3798ee;
  font-size: calc(var(--u-rem) * .3);
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.customer-service-link > img {
  width: calc(var(--u-rem) * .65) !important;
  height: calc(var(--u-rem) * .65) !important;
  object-fit: contain;
}

.service-svg-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
