/* 本地测试：隐藏 MetaMask 品牌 Logo */
[class*="main_logo"],
[class*="footer_logo"],
[class*="updates-bar_qr-logo"],
[class*="ccard-mm-logo"],
[class*="loader_frame"] > svg,
a[aria-label*="home" i] svg,
a[href="/"][aria-label] svg {
  visibility: hidden !important;
  pointer-events: none;
}

/* Local fallback controls for the mirrored static page.  The captured Next.js
   handlers in this mirror can swallow UI clicks before target handlers run, so
   these classes make the visible cookie and navigation controls usable. */
html.ll-cookie-hidden .osano-cm-window {
  display: none !important;
}

html.ll-local-nav-open [class*="header_header"],
html.ll-local-nav-open [class*="header_header-main"],
html.ll-local-nav-open [class*="main_main-nav"],
html.ll-local-nav-open [class*="main_container"],
html.ll-local-nav-open [class*="main_holder"],
html.ll-local-nav-open [class*="main_main-items"],
html.ll-local-nav-open [class*="main_main-item"],
html.ll-local-nav-open [class*="main_btns-wrapper"],
html.ll-local-nav-open [class*="main_hamburger-wrapper"],
html.ll-local-nav-open [class*="button_button"],
html.ll-local-nav-open [class*="dropdown_"] {
  pointer-events: auto !important;
}

html.ll-local-nav-open [class*="main_holder"],
html.ll-local-nav-open [class*="main_main-items"],
html.ll-local-nav-open [class*="main_main-item"],
html.ll-local-nav-open [class*="main_btns-wrapper"],
html.ll-local-nav-open [class*="main_hamburger-wrapper"],
html.ll-local-nav-open [class*="button_button"] {
  visibility: visible !important;
  opacity: 1 !important;
}


html.ll-local-nav-open [class*="main_sec-layer"] {
  pointer-events: none !important;
}

html.ll-local-nav-open [class*="main_sec-layer"] [class*="main_hamburger-wrapper"],
html.ll-local-nav-open [class*="main_sec-layer"] [class*="main_btn-download-wrapper"] {
  pointer-events: auto !important;
}

html.ll-local-nav-open [class*="main_background"] {
  pointer-events: auto !important;
  opacity: 1 !important;
}

html.ll-local-nav-open .ll-local-dropdown-active,
html.ll-local-nav-open .ll-local-dropdown-active * {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

html.ll-local-nav-open .ll-local-dropdown-active {
  z-index: 30 !important;
}

html.ll-local-nav-open .ll-local-dropdown-active [class*="dropdown_grid-wrapper"] {
  display: flex !important;
  transform: none !important;
}

.ll-local-hamburger-open [class*="main_hamburger-inner"] span:first-child {
  transform: rotate(45deg) !important;
}

.ll-local-hamburger-open [class*="main_hamburger-inner"] span:nth-child(2) {
  transform: rotate(-45deg) !important;
}

/* 主页面悬浮弹窗：半透明遮罩 + 居中卡片 */
.ll-root {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #e5fff3;
  pointer-events: none;
}

.ll-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 30%, rgba(134, 239, 172, 0.1), transparent 18rem),
    radial-gradient(circle at 78% 18%, rgba(56, 189, 248, 0.08), transparent 16rem),
    rgba(0, 20, 16, 0.1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ll-modal {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  max-height: min(520px, 88vh);
  overflow: hidden;
  border: 1px solid rgba(210, 235, 247, 0.34);
  border-radius: 20px;
  background:
    linear-gradient(120deg, rgba(210, 235, 247, 0.055) 0 1px, transparent 1px 36px),
    linear-gradient(210deg, rgba(210, 235, 247, 0.04) 0 1px, transparent 1px 42px),
    radial-gradient(circle at 22% 0%, rgba(210, 235, 247, 0.1), transparent 12rem),
    linear-gradient(165deg, rgba(13, 57, 48, 0.94) 0%, rgba(8, 42, 37, 0.955) 58%, rgba(4, 23, 21, 0.97) 100%);
  box-shadow:
    0 0 0 1px rgba(210, 235, 247, 0.08) inset,
    0 0 30px rgba(210, 235, 247, 0.08),
    0 4px 24px rgba(0, 0, 0, 0.25),
    0 24px 64px rgba(0, 0, 0, 0.45);
  animation: ll-pop-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ll-modal::before,
.ll-modal::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.ll-modal::before {
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, transparent, rgba(134, 239, 172, 0.18), transparent),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.028) 0 1px,
      transparent 1px 8px
    );
  mix-blend-mode: screen;
  opacity: 0.8;
  animation: ll-scan 3.6s linear infinite;
}

.ll-modal::after {
  inset: -2px;
  z-index: 0;
  border-radius: inherit;
  background: conic-gradient(
    from var(--ll-angle, 0deg),
    rgba(210, 235, 247, 0.02),
    rgba(210, 235, 247, 0.42),
    rgba(255, 255, 255, 0.22),
    rgba(210, 235, 247, 0.02)
  );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 2px;
  opacity: 0.8;
  animation: ll-border-spin 4s linear infinite;
}

.ll-modal.ll-modal-expanded {
  width: min(640px, 100%);
  max-height: min(720px, 90vh);
}

@keyframes ll-pop-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ll-scan {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes ll-border-spin {
  to {
    --ll-angle: 360deg;
  }
}

.ll-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.ll-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.ll-modal-close:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.ll-banner {
  position: absolute;
  right: 0.65rem;
  bottom: 0.55rem;
  z-index: 3;
  padding: 0.22rem 0.55rem;
  font-size: 0.55rem;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.08em;
  color: rgba(229, 255, 243, 0.62);
  pointer-events: none;
  border: 1px solid rgba(134, 239, 172, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: none;
}

.ll-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  padding: 1.25rem 1.25rem 1.25rem;
  overflow: auto;
}

.ll-phase-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ecfeff;
  text-shadow: 0 0 18px rgba(210, 235, 247, 0.24);
}

.ll-block-meta {
  margin-bottom: 0.35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: rgba(210, 235, 247, 0.74);
  text-shadow: 0 0 10px rgba(210, 235, 247, 0.24);
}

.ll-countdown {
  margin: 0.25rem 0 1rem;
  font-size: 3.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #f0fdf4;
  text-shadow:
    0 0 12px rgba(210, 235, 247, 0.52),
    0 0 28px rgba(255, 255, 255, 0.12);
}

.ll-progress {
  width: min(420px, 90vw);
  height: 10px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.55);
  box-shadow:
    0 0 0 1px rgba(210, 235, 247, 0.18),
    0 0 18px rgba(210, 235, 247, 0.08) inset;
}

.ll-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d2ebf7, #ffffff);
  box-shadow: 0 0 16px rgba(210, 235, 247, 0.42);
  transition: width 0.15s linear;
}

.ll-stats {
  width: min(520px, 100%);
  margin-bottom: 1rem;
  padding: 0.58rem 0.95rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  color: rgba(245, 252, 255, 0.95);
  text-align: center;
  letter-spacing: 0.01em;
  border: 1px solid rgba(210, 235, 247, 0.16);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
  text-shadow: 0 0 12px rgba(210, 235, 247, 0.24);
  white-space: pre-line;
}

.ll-result {
  width: min(420px, 100%);
  margin: 0.2rem 0 0.9rem;
  padding: 0.9rem 1rem;
  text-align: center;
  border: 1px solid rgba(210, 235, 247, 0.2);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(210, 235, 247, 0.09), transparent 70%),
    rgba(0, 0, 0, 0.22);
  box-shadow: 0 0 24px rgba(210, 235, 247, 0.06) inset;
}

.ll-result-title {
  margin-bottom: 0.3rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ll-result-desc {
  font-size: 0.88rem;
  color: rgba(229, 255, 243, 0.84);
}

.ll-result-win {
  border-color: rgba(210, 235, 247, 0.42);
  box-shadow:
    0 0 24px rgba(210, 235, 247, 0.16),
    0 0 32px rgba(255, 255, 255, 0.08) inset;
}

.ll-result-win .ll-result-title {
  color: #ffffff;
  text-shadow:
    0 0 14px rgba(210, 235, 247, 0.52),
    0 0 28px rgba(255, 255, 255, 0.14);
}

.ll-result-lose {
  border-color: rgba(210, 235, 247, 0.24);
  background:
    radial-gradient(circle at 50% 0%, rgba(210, 235, 247, 0.08), transparent 72%),
    rgba(0, 0, 0, 0.24);
}

.ll-result-lose .ll-result-title {
  color: #eef8ff;
  text-shadow: 0 0 12px rgba(210, 235, 247, 0.2);
}

.ll-panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(210, 235, 247, 0.05), transparent),
    rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 24px rgba(210, 235, 247, 0.06) inset;
}

.ll-panel-head {
  display: grid;
  flex-shrink: 0;
  grid-template-columns: 3rem 1fr 6rem;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.65;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ll-list-viewport {
  flex: 1;
  min-height: 160px;
  max-height: min(360px, 42vh);
  overflow: auto;
}

.ll-list-spacer {
  position: relative;
}

.ll-row {
  display: grid;
  position: absolute;
  right: 0;
  left: 0;
  grid-template-columns: 3rem 1fr 6rem;
  gap: 0.5rem;
  align-items: center;
  padding: 0 1rem;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(90deg, rgba(210, 235, 247, 0.035), transparent 45%);
}

.ll-row-addr {
  overflow: hidden;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.9;
}

.ll-row-eth {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: #d2ebf7;
  text-shadow: 0 0 10px rgba(210, 235, 247, 0.28);
}

.ll-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

.ll-btn {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #07110f;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  background: #f4f7f7;
  box-shadow:
    0 0 14px rgba(210, 235, 247, 0.18),
    0 8px 22px rgba(0, 0, 0, 0.24);
}

.ll-btn-secondary {
  color: #e5fff3;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(210, 235, 247, 0.24);
}

.ll-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.ll-hidden {
  display: none !important;
}

body.ll-modal-open {
  overflow: auto;
}

.ll-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ll-eth-rain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ll-eth-drop {
  position: absolute;
  top: -4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.2rem;
  padding: 0.32rem 0.62rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: #07110f;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(210, 235, 247, 0.86));
  box-shadow:
    0 0 18px rgba(210, 235, 247, 0.34),
    0 10px 24px rgba(0, 0, 0, 0.28);
  opacity: 0;
  animation-name: ll-eth-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes ll-eth-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -4rem, 0) rotate(-8deg) scale(0.86);
  }
  8% {
    opacity: 0.92;
  }
  90% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--ll-drift), calc(100vh + 6rem), 0) rotate(12deg) scale(1);
  }
}

.ll-fx::before {
  position: absolute;
  inset: -20%;
  content: "";
  background-image:
    radial-gradient(circle, rgba(210, 235, 247, 0.34) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.5px);
  background-position: 0 0, 18px 22px;
  background-size: 44px 44px, 58px 58px;
  opacity: 0.25;
  animation: ll-particles 12s linear infinite;
}

.ll-node {
  position: absolute;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #d2ebf7;
  box-shadow:
    0 0 10px rgba(210, 235, 247, 0.65),
    0 0 22px rgba(255, 255, 255, 0.18);
}

.ll-node-a {
  top: 28%;
  left: 12%;
  animation: ll-node-float 4.5s ease-in-out infinite;
}

.ll-node-b {
  top: 38%;
  right: 14%;
  animation: ll-node-float 5.2s ease-in-out infinite reverse;
}

.ll-node-c {
  right: 28%;
  bottom: 16%;
  animation: ll-node-float 4.9s ease-in-out infinite 0.6s;
}

.ll-node-d {
  bottom: 22%;
  left: 22%;
  animation: ll-node-float 5.6s ease-in-out infinite 0.2s reverse;
}

.ll-drawing .ll-countdown {
  animation: ll-glitch 0.32s steps(2, jump-none) infinite;
}

.ll-results-live {
  animation:
    ll-pop-in 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    ll-win-pulse 1.4s ease-out 1;
}

@keyframes ll-particles {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(44px, -44px, 0);
  }
}

@keyframes ll-node-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translate3d(10px, -14px, 0) scale(1.35);
    opacity: 1;
  }
}

@keyframes ll-glitch {
  0% {
    transform: translateX(0);
    filter: hue-rotate(0deg);
  }
  33% {
    transform: translateX(-2px);
    filter: hue-rotate(45deg);
  }
  66% {
    transform: translateX(2px);
    filter: hue-rotate(-35deg);
  }
  100% {
    transform: translateX(0);
    filter: hue-rotate(0deg);
  }
}

@keyframes ll-win-pulse {
  0% {
    box-shadow: 0 0 0 rgba(134, 239, 172, 0);
  }
  30% {
    box-shadow:
      0 0 0 999px rgba(210, 235, 247, 0.035),
      0 0 48px rgba(210, 235, 247, 0.22);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(210, 235, 247, 0.08) inset,
      0 24px 64px rgba(0, 0, 0, 0.45);
  }
}
