/* Winner dark/green 登录面板 */
#yf-login-panel-root {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}
#yf-login-panel-root.yf-lp-show {
  display: flex;
}
.yf-lp-mask {
  position: absolute;
  inset: 0;
  background: rgba(3, 12, 9, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.yf-lp-card {
  position: relative;
  width: min(420px, 100%);
  background: linear-gradient(180deg, rgba(18, 42, 34, 0.96), rgba(8, 22, 17, 0.98));
  border: 1px solid rgba(50, 220, 130, 0.35);
  border-radius: 16px;
  box-shadow: 0 0 24px rgba(50, 220, 130, 0.18), 0 18px 48px rgba(0, 0, 0, 0.45);
  padding: 22px 18px 18px;
  color: #f5f7f6;
}
.yf-lp-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: rgba(245, 247, 246, 0.7);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.yf-lp-brand {
  text-align: center;
  margin-bottom: 14px;
}
.yf-lp-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: inline-block;
}
.yf-lp-title {
  margin: 6px 0 0;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.yf-lp-sub {
  margin: 6px 0 16px;
  text-align: center;
  font-size: 13px;
  color: rgba(245, 247, 246, 0.72);
}
.yf-lp-sub a {
  color: #3ee990;
  text-decoration: none;
  font-weight: 600;
}
.yf-lp-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  padding: 4px;
}
.yf-lp-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: rgba(245, 247, 246, 0.7);
  border-radius: 999px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.yf-lp-tab.active {
  background: linear-gradient(180deg, #3ee990, #21b96d);
  color: #062015;
  box-shadow: 0 0 12px rgba(47, 230, 132, 0.35);
}
.yf-lp-field {
  margin-bottom: 12px;
}
.yf-lp-field input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
  color: #f5f7f6;
  padding: 13px 14px;
  font-size: 15px;
  outline: none;
}
.yf-lp-field input:focus {
  border-color: rgba(50, 220, 130, 0.65);
  box-shadow: 0 0 0 2px rgba(50, 220, 130, 0.15);
}
.yf-lp-field input::placeholder {
  color: rgba(245, 247, 246, 0.42);
}
.yf-lp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 14px;
  font-size: 13px;
  color: rgba(245, 247, 246, 0.78);
}
.yf-lp-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}
.yf-lp-row input[type="checkbox"] {
  accent-color: #32dc82;
  width: 16px;
  height: 16px;
}
.yf-lp-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  color: #062015;
  background: linear-gradient(180deg, #3ee990, #21b96d);
  box-shadow: 0 0 14px rgba(47, 230, 132, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.yf-lp-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.yf-lp-msg {
  min-height: 20px;
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
  color: #ff8f8f;
}
.yf-lp-msg.ok {
  color: #3ee990;
}
.yf-lp-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 10px;
  color: rgba(245, 247, 246, 0.45);
  font-size: 12px;
}
.yf-lp-divider::before,
.yf-lp-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.yf-lp-hint {
  text-align: center;
  font-size: 12px;
  color: rgba(245, 247, 246, 0.55);
  line-height: 1.5;
}
.yf-lp-fab {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 12px;
  z-index: 2147483500;
  display: none;
  border: 1px solid rgba(50, 220, 130, 0.45);
  background: rgba(8, 23, 18, 0.92);
  color: #3ee990;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(50, 220, 130, 0.22);
}
.yf-lp-fab.yf-lp-fab-show {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
html.yf-ingame .yf-lp-fab,
html.yf-ingame #yf-login-panel-root {
  display: none !important;
}
