.token-reference {
  display: grid;
  align-items: center;
}

.token-reference-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3.1vw, 66px);
  width: min(89%, 1920px);
  margin-inline: auto;
  padding-block: clamp(48px, 4.6vw, 100px);
}

.token-reference-art {
  display: grid;
  place-items: center;
  margin: 0;
}

.token-reference-art img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(400px, 37vw, 950px);
  object-fit: contain;
}

.token-reference-copy {
  min-width: 0;
  padding: clamp(19px, 2.35vw, 49px);
  border: 3px solid #64388d;
  border-radius: clamp(20px, 1.85vw, 42px);
  background: linear-gradient(155deg, #fffaf0 12%, #ffefd9 100%);
  box-shadow: clamp(5px, .52vw, 11px) clamp(6px, .65vw, 14px) 0 #58267f5c;
  color: #452653;
}

.token-reference-title {
  margin: 0;
  color: #632e8c;
  font: 400 clamp(29px, 3.12vw, 69px)/.98 Luckiest, var(--display, sans-serif);
  letter-spacing: .015em;
}

.token-reference-supply {
  display: grid;
  gap: .28em;
  margin: clamp(17px, 2vw, 41px) 0 clamp(13px, 1.55vw, 30px);
}

.token-reference-supply strong {
  color: #46215e;
  font: 400 clamp(27px, 4.35vw, 87px)/1.04 'Archivo Black', var(--body, sans-serif);
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}

.token-reference-supply span {
  color: #704889;
  font: 700 clamp(13px, 1.06vw, 22px)/1.25 var(--body, sans-serif);
}

.token-contract {
  display: grid;
  gap: 7px;
  margin-bottom: clamp(16px, 1.35vw, 26px);
  font: 700 14px/1.3 var(--body, sans-serif);
}

.token-contract p { margin: 0; }

.token-contract-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 7px 9px;
  border: 2px solid #64388d;
  border-radius: 10px;
  background: #fffaf0;
  color: #452653;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.token-contract-copy:hover { background: #fff1cc; }
.token-contract-copy:focus-visible { outline: 2px solid #64388d; outline-offset: 3px; }

.token-contract-copy code {
  min-width: 0;
  font: 600 12px/1.45 ui-monospace, Consolas, Menlo, monospace;
  overflow-wrap: anywhere;
}

.token-contract-copy span {
  padding: 4px 9px;
  border: 1px solid #64388d;
  border-radius: 6px;
  background: var(--yellow, #ffdc4b);
}

.token-contract-status[data-copied] { color: #246049; }

.token-contract-clipboard {
  position: fixed;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.token-reference-chart {
  display: grid;
  grid-template-columns: 71fr 13fr 5fr 5fr 2fr 2fr 2fr;
  gap: 2px;
  height: clamp(12px, 1.03vw, 23px);
  overflow: hidden;
  border: 1px solid #603483;
  border-radius: 100px;
  background: #fff9f1;
}

.token-segment--liquidity,
.token-allocation--liquidity { --allocation-color: #703bb0; }
.token-segment--game,
.token-allocation--game { --allocation-color: #00adbc; }
.token-segment--diego,
.token-allocation--diego { --allocation-color: #d27721; }
.token-segment--dev,
.token-allocation--dev { --allocation-color: #488cbc; }
.token-segment--staking,
.token-allocation--staking { --allocation-color: #418d60; }
.token-segment--amigas,
.token-allocation--amigas { --allocation-color: #e26092; }
.token-segment--airdrop,
.token-allocation--airdrop { --allocation-color: #f2bd29; }

.token-segment { background: var(--allocation-color); }

.token-reference-allocation {
  margin: clamp(10px, 1.3vw, 25px) 0 0;
  padding: 0;
}

.token-allocation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .65em;
  padding-block: .72em;
  border-bottom: 1px solid #d7b9df;
  font: 600 clamp(14px, 1.18vw, 25px)/1.2 var(--body, sans-serif);
  font-variant-numeric: tabular-nums;
}

.token-allocation dt {
  display: flex;
  align-items: center;
  gap: .56em;
  min-width: 0;
  font-weight: 700;
}

.token-allocation dt::before {
  flex: 0 0 .63em;
  height: .63em;
  border: 1px solid #45265340;
  border-radius: 50%;
  background: var(--allocation-color);
  content: "";
}

.token-allocation dd {
  display: grid;
  grid-template-columns: 2.55em 8em;
  align-items: baseline;
  gap: .55em;
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.token-allocation dd strong { color: #632e8c; }
.token-allocation dd span { font-size: .92em; }

.token-stake-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-top: 13px;
  padding-inline: 12px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: var(--cyan);
  box-shadow: 2px 3px 0 var(--ink);
  color: var(--ink);
  font: 400 21px/1.1 var(--display);
  text-decoration: none;
}

.token-stake-link:hover { background: var(--yellow); }

.token-reference-status {
  margin: clamp(11px, 1.2vw, 23px) 0 0;
  color: #654579;
  font: 600 clamp(13px, 1.01vw, 21px)/1.4 var(--body, sans-serif);
}

@media (max-width: 780px) {
  .token-reference {
    min-height: 0;
  }

  .token-reference-inner {
    grid-template-columns: minmax(0, 1fr);
    width: min(88%, 560px);
    gap: 22px;
    padding-block: 36px 44px;
  }

  .token-reference-art img {
    max-height: 350px;
  }

  .token-reference-title {
    font-size: clamp(26px, 6.75vw, 45px);
  }

  .token-reference-supply strong {
    font-size: clamp(30px, 10.28vw, 57px);
  }
}

@media (max-width: 360px) {
  .token-allocation { gap: .35em; }
  .token-allocation dt { gap: .36em; }
  .token-allocation dd {
    grid-template-columns: 2.25em 7.65em;
    gap: .25em;
  }
  .token-allocation dd span { font-size: .89em; }
}
