:root {
  --cream: #fff7e8;
  --surface: #fffcf6;
  --surface-blue: #edf6ff;
  --benny-gold: #e0ad69;
  --gold-deep: #c98b45;
  --sky-blue: #5891c5;
  --benny-blue: #2148a0;
  --orange: #c26d40;
  --warm-ink: #2c2012;
  --muted-ink: #746452;
  --line: #eadac3;
  --live-green: #2e9e62;
  --warning: #c1782e;
  --danger: #ba4d45;
  --shadow: 0 22px 55px rgba(91, 60, 24, 0.13);
  --small-shadow: 0 10px 28px rgba(91, 60, 24, 0.09);
  --radius-xl: 2rem;
  --radius-lg: 1.4rem;
  color-scheme: light;
  font-family: ui-rounded, "Avenir Next Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--warm-ink);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
code {
  font: inherit;
}

a {
  color: inherit;
}

.page-paw {
  position: fixed;
  z-index: -1;
  color: var(--benny-gold);
  opacity: 0.13;
  filter: grayscale(1) sepia(1);
  pointer-events: none;
  user-select: none;
}

.page-paw-one {
  top: 9rem;
  left: -2.2rem;
  font-size: 8rem;
  transform: rotate(-22deg);
}

.page-paw-two {
  right: -1.8rem;
  bottom: 5rem;
  font-size: 6rem;
  transform: rotate(17deg);
}

.site-header,
.site-shell,
.site-footer {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.85rem;
  height: 2.85rem;
  place-items: center;
  border: 2px solid rgba(33, 72, 160, 0.1);
  border-radius: 50%;
  background: #ffd95f;
  box-shadow: 0 5px 0 rgba(33, 72, 160, 0.12);
  font-size: 1.35rem;
  transform: rotate(-8deg);
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  color: var(--benny-blue);
  font-size: 1.08rem;
  letter-spacing: 0.08em;
}

.brand-copy span {
  margin-top: 0.2rem;
  color: var(--muted-ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.refresh-note {
  color: var(--muted-ink);
  font-size: 0.8rem;
  font-weight: 750;
}

.site-shell {
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
}

.hero-card,
.contract-card,
.info-card {
  border: 1px solid rgba(201, 139, 69, 0.22);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.25rem;
  gap: 1.25rem 0.65rem;
  overflow: hidden;
  padding: 1.45rem;
  border-radius: var(--radius-xl);
}

.hero-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.42rem;
  background: var(--orange);
  content: "";
}

.hero-paw {
  position: absolute;
  top: -1.2rem;
  right: 5.8rem;
  color: var(--benny-gold);
  opacity: 0.12;
  font-size: 5rem;
  transform: rotate(16deg);
  user-select: none;
}

.hero-copy {
  z-index: 1;
  align-self: center;
  min-width: 0;
  padding-left: 0.25rem;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.8rem;
  padding: 0.35rem 0.72rem;
  border: 1px solid rgba(46, 158, 98, 0.2);
  border-radius: 999px;
  background: #eaf8f0;
  color: #1c7045;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  line-height: 1;
  text-transform: uppercase;
}

.live-badge.is-loading {
  border-color: rgba(88, 145, 197, 0.25);
  background: var(--surface-blue);
  color: #3d6f9c;
}

.live-badge.is-warning {
  border-color: rgba(193, 120, 46, 0.25);
  background: #fff4e3;
  color: #92551d;
}

.live-badge.is-error {
  border-color: rgba(186, 77, 69, 0.22);
  background: #fff0ee;
  color: #9d3e38;
}

.live-dot {
  width: 0.48rem;
  height: 0.48rem;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0.22rem color-mix(in srgb, currentColor 14%, transparent);
}

.live-badge.is-loading .live-dot {
  animation: breathe 1.25s ease-in-out infinite;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 8.7vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.donation-total {
  min-height: 6.6rem;
}

.usd-total {
  max-width: 100%;
  margin-bottom: 0.2rem;
  color: var(--benny-blue);
  font-size: clamp(2.65rem, 11.2vw, 6.2rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.92;
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
}

.usd-total.is-loading {
  max-width: 16ch;
  color: var(--muted-ink);
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1.3;
  white-space: normal;
}

.bnb-total {
  margin-bottom: 0;
  color: var(--warm-ink);
  font-size: clamp(0.83rem, 2.75vw, 1.1rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums lining-nums;
  overflow-wrap: anywhere;
}

.bnb-total code {
  padding: 0;
  background: none;
  color: inherit;
}

.session-delta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.28rem;
  margin-top: 0.78rem;
  color: var(--live-green);
  font-size: 0.73rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.session-delta[hidden] {
  display: none;
}

.mascot-wrap {
  z-index: 1;
  align-self: center;
  margin: 0;
}

.mascot-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 1.45rem;
  background: var(--benny-gold);
  box-shadow: 0 12px 28px rgba(78, 48, 19, 0.19), 0 0 0 1px rgba(91, 60, 24, 0.08);
  transform: rotate(2.2deg);
}

.mascot-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
  transform: scale(1.25);
}

.mascot-note {
  width: 112%;
  margin-top: -0.2rem;
  margin-left: -6%;
  padding: 0.42rem 0.35rem;
  border-radius: 0.72rem;
  background: var(--benny-blue);
  box-shadow: 0 5px 0 rgba(33, 72, 160, 0.15);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  transform: rotate(-2deg);
}

.hero-meta {
  z-index: 1;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}

.hero-meta > div {
  display: grid;
  gap: 0.08rem;
}

.meta-label,
.stat-label {
  color: var(--muted-ink);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.hero-meta strong {
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.data-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(193, 120, 46, 0.2);
  border-radius: 1rem;
  background: #fff4e3;
  color: #83501f;
  font-size: 0.84rem;
  font-weight: 720;
}

.data-notice[hidden] {
  display: none;
}

.data-notice > span {
  font-size: 1.2rem;
}

.data-notice p {
  margin-bottom: 0;
}

.stats-grid {
  display: grid;
  gap: 0.75rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 5rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(201, 139, 69, 0.18);
  border-radius: 1.15rem;
  background: rgba(255, 252, 246, 0.82);
  box-shadow: var(--small-shadow);
}

.stat-card > div {
  display: grid;
  min-width: 0;
}

.stat-card strong {
  margin-top: 0.05rem;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.stat-icon {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  flex: none;
  place-items: center;
  border-radius: 0.85rem;
  font-size: 1.05rem;
  font-weight: 900;
}

.stat-icon.blue {
  background: #e8f3ff;
  color: var(--benny-blue);
}

.stat-icon.orange {
  background: #fff0e8;
  color: var(--orange);
}

.stat-icon.gold {
  background: #fff3ce;
  color: #a16a20;
}

.contract-card,
.info-card {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
}

.section-kicker {
  margin-bottom: 0.35rem;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contract-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

h2 {
  margin-bottom: 0.25rem;
  font-size: clamp(1.55rem, 5vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.contract-heading-row p {
  margin-bottom: 1rem;
  color: var(--muted-ink);
  font-size: 0.9rem;
}

.chain-chip {
  flex: none;
  padding: 0.34rem 0.65rem;
  border-radius: 999px;
  background: #fff3ce;
  color: #81541c;
  font-size: 0.7rem;
  font-weight: 850;
}

.address-box {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem;
  border: 1px solid #d9e7f5;
  border-radius: 1rem;
  background: var(--surface-blue);
}

.address-box code {
  color: #294b69;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.copy-button,
.explorer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  min-height: 2.75rem;
  border-radius: 0.85rem;
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.copy-button {
  width: 100%;
  border: 1px solid rgba(33, 72, 160, 0.18);
  background: #fff;
  color: var(--benny-blue);
}

.copy-icon {
  position: relative;
  width: 0.85rem;
  height: 0.85rem;
  border: 1.5px solid currentColor;
  border-radius: 0.18rem;
}

.copy-icon::before {
  position: absolute;
  top: -0.28rem;
  left: 0.23rem;
  width: 0.62rem;
  height: 0.62rem;
  border: 1.5px solid currentColor;
  border-radius: 0.18rem;
  background: #fff;
  content: "";
}

.explorer-button {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--benny-blue);
  box-shadow: 0 6px 0 #173575;
  color: #fff;
}

.copy-button:hover,
.explorer-button:hover {
  transform: translateY(-1px);
}

.copy-button:active,
.explorer-button:active {
  transform: translateY(2px);
  box-shadow: none;
}

.copy-button:focus-visible,
.explorer-button:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(88, 145, 197, 0.45);
  outline-offset: 3px;
}

.info-card {
  display: grid;
  gap: 1.35rem;
}

.about-copy > p {
  margin-bottom: 0.9rem;
  color: #5e4f3f;
  font-size: 1rem;
}

.about-copy code {
  padding: 0.12rem 0.32rem;
  border-radius: 0.35rem;
  background: #f3eadb;
  color: #5a3f25;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86em;
  font-weight: 700;
}

.allocation-note {
  padding: 0.9rem 1rem;
  border-left: 0.28rem solid var(--benny-gold);
  border-radius: 0 0.8rem 0.8rem 0;
  background: #fff8e5;
}

.flow-wrap {
  padding: 1rem;
  border-radius: 1.1rem;
  background: #edf6ff;
}

.flow-wrap h3 {
  margin-bottom: 0.8rem;
  color: var(--benny-blue);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.flow-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.15rem;
  padding-bottom: 0.55rem;
  color: #34566f;
  font-size: 0.86rem;
}

.flow-list li:not(:last-child)::after {
  position: absolute;
  top: 2.2rem;
  bottom: -0.15rem;
  left: 0.86rem;
  width: 2px;
  background: #b9d0e5;
  content: "";
}

.flow-list li > span {
  z-index: 1;
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--benny-blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 0.12rem;
  padding: 1.25rem 1rem 2.5rem;
  color: var(--muted-ink);
  text-align: center;
}

.site-footer p {
  margin-bottom: 0;
  font-size: 0.75rem;
}

.footer-paw {
  margin-bottom: 0.28rem;
  font-size: 1.15rem;
  filter: grayscale(1) sepia(1);
  opacity: 0.55;
}

.copy-toast {
  position: fixed;
  z-index: 20;
  right: 1rem;
  bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  background: var(--warm-ink);
  box-shadow: 0 10px 35px rgba(44, 32, 18, 0.25);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

.copy-toast[hidden] {
  display: none;
}

.noscript-message {
  position: fixed;
  z-index: 30;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background: var(--warm-ink);
  color: #fff;
  text-align: center;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.82);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (min-width: 43rem) {
  .site-header,
  .site-shell,
  .site-footer {
    width: min(100% - 3rem, 70rem);
  }

  .site-header {
    min-height: 6.5rem;
  }

  .hero-card {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 18.5rem);
    gap: 1.5rem 2.3rem;
    padding: 2.4rem 2.4rem 1.7rem;
  }

  .hero-copy {
    padding-left: 0.6rem;
  }

  h1 {
    margin-top: 1.1rem;
  }

  .donation-total {
    min-height: 8.5rem;
  }

  .mascot-note {
    font-size: 0.76rem;
  }

  .hero-meta {
    grid-template-columns: 1fr 1fr;
    padding: 1rem 0.6rem 0;
  }

  .hero-meta strong {
    font-size: 0.92rem;
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contract-card,
  .info-card {
    padding: 2rem;
  }

  .address-box {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 0.7rem 0.7rem 0.7rem 1rem;
  }

  .address-box code {
    font-size: 0.86rem;
  }

  .copy-button {
    width: auto;
    min-width: 6.2rem;
    padding-inline: 1rem;
  }

  .explorer-button {
    width: auto;
    min-width: 11.5rem;
  }

  .info-card {
    grid-template-columns: minmax(0, 1.22fr) minmax(16rem, 0.78fr);
    gap: 2rem;
  }
}

@media (min-width: 64rem) {
  .hero-card {
    grid-template-columns: minmax(0, 1fr) 20rem;
    min-height: 34rem;
    padding: 3.2rem 3rem 1.8rem;
  }

  .usd-total {
    font-size: 6.2rem;
  }

  .mascot-frame {
    border-radius: 2rem;
  }

  .stat-card {
    padding-inline: 1.2rem;
  }
}

@media (max-width: 23.5rem) {
  .site-header,
  .site-shell,
  .site-footer {
    width: min(100% - 1.25rem, 70rem);
  }

  .refresh-note {
    display: none;
  }

  .hero-card {
    grid-template-columns: minmax(0, 1fr) 6.4rem;
    padding: 1.2rem 1rem;
  }

  .live-badge {
    font-size: 0.65rem;
  }

  .mascot-note {
    font-size: 0.57rem;
  }

  .contract-heading-row {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
