/* Static clone additions */
* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body.cp-locked { overflow: hidden; }
button, [role="button"] { touch-action: manipulation; }
button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #f78c4d;
  outline-offset: 2px;
}
.wallet-sheet-panel {
  max-height: none;
  overflow: visible;
}
.cp-toast {
  position: fixed;
  top: 84px;
  left: 50%;
  z-index: 80;
  max-width: calc(100vw - 32px);
  transform: translate(-50%, -12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(45, 30, 23, 0.94);
  padding: 10px 16px;
  color: #fff6f0;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 12px 32px rgba(45, 30, 23, 0.2);
}
.cp-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.cp-spin { animation: spin 1s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
@media (max-height: 620px) {
  .wallet-sheet-panel {
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Brand header */
.cp-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(250, 244, 236, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.cp-site-header.is-scrolled {
  border-bottom-color: rgba(43, 26, 21, 0.08);
  background: rgba(250, 244, 236, 0.96);
  box-shadow: 0 8px 24px rgba(60, 34, 22, 0.06);
}
.cp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 12px 16px;
}
.cp-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cp-vip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid #f3c9b2;
  border-radius: 999px;
  background: #fff2e8;
  color: #ea6a27;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.cp-vip-badge.hidden {
  display: none;
}
.cp-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}
.cp-brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(43, 26, 21, 0.07);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 14px rgba(60, 34, 22, 0.07);
}
.cp-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
}
.cp-brand-name {
  overflow: hidden;
  color: #2d1e17;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cp-connect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  flex-shrink: 0;
  padding: 0 18px;
  border: 1px solid #2d1e17;
  border-radius: 999px;
  background: #2b1a15;
  color: #fff6f0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(43, 26, 21, 0.1);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cp-connect:hover {
  background: #3a241d;
}
.cp-connect:active {
  transform: scale(0.97);
}
.cp-connect.is-connected {
  border-color: #f3dccd;
  background: #fff3e9;
  color: #ea6a27;
  box-shadow: 0 4px 12px rgba(234, 106, 39, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monospace;
  font-size: 11px;
}
.cp-connect:disabled {
  cursor: wait;
  opacity: 0.75;
}
@media (max-width: 360px) {
  .cp-header-inner {
    gap: 8px;
    padding-inline: 14px;
  }
  .cp-brand {
    gap: 9px;
  }
  .cp-brand-mark {
    width: 40px;
    height: 40px;
  }
  .cp-brand-name {
    font-size: 14px;
  }
  .cp-connect {
    min-height: 38px;
    padding-inline: 14px;
    font-size: 11px;
  }
}

/* Member state */
#buyButton:disabled {
  cursor: not-allowed;
  transform: none;
}
#buyButton.cp-buy-owned {
  border: 1px solid #ecd7c7;
  background-color: #f5e8dc;
  background-image: none;
  color: #9a7864;
  box-shadow: none;
}
#buyButton.cp-buy-checking {
  background-image: none;
  background-color: #f5e8dc;
  color: #9a7864;
  box-shadow: none;
  opacity: 0.8;
}
.direct-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 4px 9px;
  border: 1px solid #f7d7c2;
  border-radius: 999px;
  background: #fff2e8;
  color: #ea6a27;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.direct-level-badge.is-empty {
  border-color: #f1e4dc;
  background: #faf6f3;
  color: #9e8679;
}
