:root {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: #333;
  background: #fff;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { padding-bottom: 72px; background: #f3f4f6; }

.download-page {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
}

.banner { display: block; width: 100%; height: auto; }
.game-info { padding: 12px 15px 28px; }

h1 {
  margin: 0 0 20px;
  color: #555;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
}

.game-row { display: flex; align-items: center; gap: 12px; }
.game-icon { width: 58px; height: 58px; border-radius: 8px; object-fit: cover; }
.game-row strong { display: block; margin-bottom: 6px; font-size: 16px; }
.game-row p { margin: 0; color: #777; font-size: 14px; }

.fixed-actions {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 68px 68px;
  align-items: center;
  gap: 8px;
  width: min(100%, 430px);
  min-height: 70px;
  transform: translateX(-50%);
  padding: 8px 9px;
  color: #fff;
  background: #050505;
}

.fixed-actions > img { width: 54px; height: 54px; border-radius: 7px; object-fit: cover; }
.fixed-title { min-width: 0; }
.fixed-title strong, .fixed-title span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fixed-title strong { font-size: 17px; font-weight: 500; }
.fixed-title span { margin-top: 5px; color: #ddd; font-size: 13px; }

.register-button, .download-button {
  display: grid;
  place-items: center;
  height: 39px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}

.register-button { background: #f39a23; }
.download-button { background: #168ce1; }

dialog {
  width: min(calc(100% - 30px), 380px);
  border: 0;
  border-radius: 7px;
  padding: 0;
  box-shadow: 0 16px 45px #0006;
}

dialog::backdrop { background: #0008; }
.register-form { padding: 0 20px 22px; }

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border-bottom: 1px solid #eceef1;
}

.dialog-head h2 { margin: 0; color: #222; font-size: 19px; letter-spacing: 0; }
.dialog-head button { border: 0; padding: 8px; color: #777; background: transparent; font-size: 27px; cursor: pointer; }
.register-form label { display: block; margin-top: 16px; color: #555; font-size: 14px; }

.register-form input {
  width: 100%;
  height: 43px;
  margin-top: 7px;
  border: 1px solid #d8dce2;
  border-radius: 4px;
  padding: 0 11px;
  outline: none;
  font: inherit;
}

.register-form input:focus { border-color: #168ce1; }
#register-message { min-height: 20px; margin: 10px 0 0; color: #d94848; font-size: 13px; }
#register-message.success { color: #339245; }

.confirm-register {
  width: 100%;
  height: 43px;
  margin-top: 4px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: #168ce1;
  font-size: 16px;
  cursor: pointer;
}

@media (min-width: 431px) {
  .download-page { box-shadow: 0 0 24px #0002; }
}
