html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: transparent !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  overflow: hidden;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}

button {
  font-family: inherit;
}

.webview-game-promo {
  --promo-theme: #19d5c1;
  --promo-accent: #ff6b7c;
  --window-width: 900px;
  --window-height: 615px;
  --promo-info-card-opacity: .72;
  --promo-info-card-blur: 10px;
  width: 100vw;
  height: 100vh;
  min-width: var(--window-width);
  min-height: var(--window-height);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #13202b;
}

.promo-window {
  position: relative;
  width: var(--window-width);
  height: var(--window-height);
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.promo-window-clickable {
  cursor: pointer;
}

.promo-bg-img,
.promo-fallback-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.promo-bg-img {
  z-index: 1;
  object-fit: cover;
  object-position: center;
}

.promo-fallback-bg {
  z-index: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .46), rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 82% 72%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 36%),
    linear-gradient(135deg, var(--promo-theme), var(--promo-accent));
}

.has-bg-image .promo-fallback-bg {
  z-index: 2;
  background: linear-gradient(90deg, rgba(10, 18, 28, .08), rgba(10, 18, 28, 0) 38%, rgba(10, 18, 28, .08));
  pointer-events: none;
}

.webview-close-btn {
  position: absolute;
  z-index: 12;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 0 0 0 12px;
  background: rgba(15, 23, 42, .58);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .18);
  transition: background .16s ease, transform .16s ease;
}

.webview-close-btn::before,
.webview-close-btn::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.webview-close-btn::before {
  transform: rotate(45deg);
}

.webview-close-btn::after {
  transform: rotate(-45deg);
}

.webview-close-btn:hover {
  background: rgba(15, 23, 42, .78);
}

.webview-close-btn:active {
  transform: scale(.94);
}

.promo-content {
  position: absolute;
  z-index: 5;
  left: 92px;
  top: 280px;
  width: 704px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  padding: 30px 34px;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 20px;
  background: rgba(255, 255, 255, var(--promo-info-card-opacity));
  box-shadow: 0 22px 46px rgba(15, 23, 42, .18);
  backdrop-filter: blur(var(--promo-info-card-blur));
}

.promo-kicker {
  max-width: 100%;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--promo-theme) 18%, white);
  color: #04786c;
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-content h1 {
  max-width: 100%;
  margin: 0;
  color: #111827;
  font-size: 36px;
  line-height: 44px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-content p {
  max-width: 540px;
  margin: 0;
  color: rgba(17, 24, 39, .72);
  font-size: 16px;
  line-height: 24px;
}

.promo-action {
  min-width: 168px;
  height: 46px;
  margin-top: 4px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background:
    linear-gradient(135deg, var(--promo-theme), #15b8ef 54%, var(--promo-accent));
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow:
    0 16px 28px color-mix(in srgb, var(--promo-theme) 32%, transparent),
    0 1px 0 rgba(255, 255, 255, .45) inset;
  transition: transform .16s ease, box-shadow .16s ease;
}

.promo-action:hover {
  transform: translateY(-1px);
  box-shadow:
    0 20px 34px color-mix(in srgb, var(--promo-theme) 42%, transparent),
    0 1px 0 rgba(255, 255, 255, .55) inset;
}

.promo-action:active {
  transform: translateY(0) scale(.98);
}

.promo-action-arrow {
  position: relative;
  width: 14px;
  height: 14px;
  display: inline-block;
}

.promo-action-arrow::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 3px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
