.token-site-body {
  --token-accent: var(--token-accent-dark);
  --accent-primary: var(--token-accent);
  --border-strong: var(--token-accent);
  background:
    radial-gradient(70% 48% at 50% -8%, rgb(var(--token-accent) / 0.16), transparent 70%),
    radial-gradient(60% 45% at 84% 40%, rgb(var(--token-accent-soft) / 0.2), transparent 74%),
    rgb(var(--surface-primary));
}

.token-site-body::before {
  background-size: 54px 54px;
  opacity: 0.16;
}

html[data-theme="ethpapers-light"] .token-site-body {
  --token-accent: var(--token-accent-light);
  background:
    radial-gradient(58% 42% at 50% 0%, rgb(var(--token-accent) / 0.14), transparent 72%),
    linear-gradient(180deg, #d8c9b4 0%, #f0e8dc 48%, #e2d2bd 100%);
}

.token-site-shell {
  position: relative;
  width: min(1240px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.4rem 0 2.4rem;
}

.token-site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 50px;
}

.token-site-header .brand-logo {
  width: clamp(100px, 10vw, 132px);
}

.token-site-label,
.token-site-kicker,
.token-section-kicker,
.token-talk-sort {
  color: rgb(var(--text-muted));
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.token-site-label {
  justify-self: center;
}

.token-site-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
}

.token-site-open-app {
  border: 1px solid rgb(var(--token-accent) / 0.72);
  border-radius: 10px;
  color: rgb(var(--token-accent));
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 0.68rem 0.9rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.token-site-open-app:hover,
.token-site-open-app:focus-visible {
  background: rgb(var(--token-accent));
  color: rgb(var(--text-inverse));
  transform: translateY(-1px);
}

.token-site-open-app:focus-visible,
.token-action:focus-visible,
.token-site-address-row button:focus-visible,
.token-site-record button:focus-visible,
.token-share-links > *:focus-visible,
.token-talk-empty a:focus-visible {
  outline: 2px solid rgb(var(--token-accent));
  outline-offset: 3px;
}

.token-site-hero {
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(480px, 1.18fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  min-height: min(680px, calc(100vh - 80px));
  padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 2.5vw, 2rem);
}

.token-site-aura {
  position: relative;
  display: grid;
  width: min(100%, 420px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  isolation: isolate;
}

.token-site-aura::before,
.token-site-aura::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.token-site-aura::before {
  inset: 6%;
  z-index: -2;
  background: radial-gradient(circle, rgb(var(--token-accent) / 0.2), transparent 64%);
  filter: blur(18px);
  animation: tokenGlow 4.8s ease-in-out infinite;
}

.token-site-aura::after {
  inset: 20%;
  z-index: -1;
  border: 1px solid rgb(var(--token-accent) / 0.2);
  box-shadow: 0 0 90px rgb(var(--token-accent) / 0.12);
}

.token-site-orbit {
  position: absolute;
  border: 1px solid rgb(var(--token-accent) / 0.22);
  border-radius: 50%;
}

.token-site-orbit::after {
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(var(--token-accent));
  box-shadow: 0 0 16px rgb(var(--token-accent) / 0.76);
  content: "";
}

.token-site-orbit-one {
  inset: 4%;
  animation: tokenOrbit 24s linear infinite;
}

.token-site-orbit-two {
  inset: 13%;
  border-style: dashed;
  opacity: 0.62;
  animation: tokenOrbit 34s linear reverse infinite;
}

.token-site-logo-frame {
  display: grid;
  width: 46%;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgb(var(--token-accent) / 0.58);
  border-radius: 30%;
  background:
    linear-gradient(145deg, rgb(var(--token-accent) / 0.12), transparent 55%),
    rgb(var(--surface-overlay));
  box-shadow:
    0 30px 80px rgb(0 0 0 / 0.38),
    inset 0 0 40px rgb(var(--token-accent) / 0.06);
  transform: rotate(-3deg);
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.token-site-aura:hover .token-site-logo-frame {
  box-shadow:
    0 34px 90px rgb(0 0 0 / 0.42),
    0 0 46px rgb(var(--token-accent) / 0.12);
  transform: rotate(0deg) scale(1.02);
}

.token-site-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.token-site-monogram {
  color: rgb(var(--token-accent));
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.08em;
}

.token-site-identity {
  max-width: 700px;
}

.token-site-kicker,
.token-section-kicker {
  margin: 0 0 0.7rem;
}

.token-site-title-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.token-site-title-row h1 {
  margin: 0;
  color: rgb(var(--text-primary));
  font-size: clamp(3.4rem, 9vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.92;
  text-shadow: 0 0 34px rgb(var(--token-accent) / 0.12);
}

.token-site-symbol,
.token-site-speed {
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  padding: 0.42rem 0.64rem;
  text-transform: uppercase;
}

.token-site-symbol {
  border: 1px solid rgb(var(--token-accent) / 0.48);
  color: rgb(var(--token-accent));
}

.token-site-speed {
  border: 1px solid rgb(var(--border-subtle));
  color: rgb(var(--text-muted));
}

.token-site-speed-fast::before {
  margin-right: 0.36rem;
  color: rgb(var(--token-accent));
  content: "⚡";
}

.token-site-description {
  max-width: 32rem;
  margin: 1.5rem 0 0;
  color: rgb(var(--text-primary));
  font-size: clamp(1.1rem, 2.1vw, 1.48rem);
  line-height: 1.5;
}

.token-site-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.token-action {
  min-height: 44px;
  border: 1px solid rgb(var(--border-subtle));
  border-radius: 10px;
  background: rgb(var(--surface-primary) / 0.54);
  color: rgb(var(--text-primary));
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 0.76rem 0.92rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.token-action:hover {
  border-color: rgb(var(--token-accent) / 0.72);
  color: rgb(var(--token-accent));
  transform: translateY(-1px);
}

.token-action-primary {
  border-color: rgb(var(--token-accent));
  background: rgb(var(--token-accent));
  color: rgb(var(--text-inverse));
}

.token-action-primary:hover {
  background: rgb(var(--token-accent) / 0.84);
  color: rgb(var(--text-inverse));
}

.token-site-address-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  margin-top: 1.6rem;
  color: rgb(var(--text-muted));
  font-size: 0.72rem;
}

.token-site-address-row a {
  min-width: 0;
  overflow: hidden;
  color: rgb(var(--text-primary));
  text-decoration-color: rgb(var(--token-accent) / 0.42);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-site-address-row button,
.token-site-record button {
  border: 0;
  background: transparent;
  color: rgb(var(--token-accent));
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  padding: 0.2rem;
}

.token-site-market {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(230px, auto);
  align-items: stretch;
  border-top: 1px solid rgb(var(--border-subtle));
  border-bottom: 1px solid rgb(var(--border-subtle));
}

.token-market-item,
.token-market-freshness {
  display: grid;
  gap: 0.42rem;
  align-content: center;
  min-height: 116px;
  border-right: 1px solid rgb(var(--border-subtle));
  padding: 1.15rem 1.4rem;
}

.token-market-item span,
.token-market-freshness {
  color: rgb(var(--text-muted));
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.token-market-item strong {
  color: rgb(var(--text-primary));
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 400;
}

.token-market-item-primary strong {
  color: rgb(var(--token-accent));
}

.token-market-freshness {
  position: relative;
  grid-template-columns: auto 1fr;
  border-right: 0;
  letter-spacing: 0.08em;
  text-transform: none;
}

.token-market-freshness time {
  grid-column: 2;
}

.token-live-dot {
  width: 7px;
  height: 7px;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: rgb(var(--token-accent));
  box-shadow: 0 0 10px rgb(var(--token-accent) / 0.72);
  animation: tokenPulse 2.4s ease-in-out infinite;
}

.token-site-content {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
  gap: 1px;
  margin-top: clamp(5rem, 10vw, 9rem);
  background: rgb(var(--border-subtle));
  border: 1px solid rgb(var(--border-subtle));
}

.token-site-content > section {
  position: relative;
  background: rgb(var(--surface-primary) / 0.94);
  padding: clamp(1.6rem, 4.6vw, 4rem);
}

html[data-theme="ethpapers-light"] .token-site-content > section {
  background: rgb(var(--surface-overlay));
}

.token-site-about,
.token-site-record,
.token-site-talk,
.token-site-share {
  grid-column: 1 / -1;
}

.token-site-about {
  min-height: 430px;
  overflow: hidden;
}

.token-site-about h2,
.token-site-record h2,
.token-site-talk h2,
.token-site-share h2 {
  margin: 0;
  color: rgb(var(--text-primary));
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.token-site-about > p:not(.token-section-kicker),
.token-site-share p {
  max-width: 46rem;
  color: rgb(var(--text-primary));
  font-size: clamp(1rem, 1.7vw, 1.26rem);
  line-height: 1.65;
}

.token-site-about .token-site-context,
.token-site-share p {
  color: rgb(var(--text-muted));
  font-size: 0.9rem;
}

.token-section-mark {
  position: absolute;
  right: clamp(1.5rem, 5vw, 4rem);
  bottom: -3rem;
  display: grid;
  width: clamp(160px, 24vw, 300px);
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgb(var(--token-accent) / 0.18);
  border-radius: 50%;
  color: rgb(var(--token-accent));
  font-size: clamp(4rem, 12vw, 9rem);
  opacity: 0.12;
  transform: rotate(8deg);
}

.token-section-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.token-site-record dl {
  display: grid;
  max-width: 720px;
  margin: 2rem 0 0;
}

.token-site-record dl > div {
  display: grid;
  grid-template-columns: minmax(100px, 0.7fr) minmax(0, 1.3fr);
  gap: 1rem;
  border-top: 1px solid rgb(var(--border-subtle));
  padding: 0.9rem 0;
}

.token-site-record dt {
  color: rgb(var(--text-muted));
  font-size: 0.72rem;
}

.token-site-record dd {
  min-width: 0;
  margin: 0;
  color: rgb(var(--text-primary));
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.token-site-record a,
.token-talk-empty a,
.token-site-footer a {
  color: rgb(var(--token-accent));
  text-underline-offset: 3px;
}

.token-site-talk {
  min-height: 510px;
}

.token-talk-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.token-talk-sort {
  border: 1px solid rgb(var(--border-subtle));
  border-radius: 999px;
  padding: 0.5rem 0.7rem;
}

.token-talk-empty {
  display: grid;
  max-width: 500px;
  min-height: 270px;
  margin: 2.4rem auto 1.3rem;
  place-items: center;
  align-content: center;
  border-top: 1px solid rgb(var(--border-subtle));
  border-bottom: 1px solid rgb(var(--border-subtle));
  padding: 2rem;
  text-align: center;
}

.token-talk-empty-mark {
  display: grid;
  width: 64px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgb(var(--token-accent) / 0.36);
  border-radius: 50%;
  color: rgb(var(--token-accent));
  font-size: 1.5rem;
  opacity: 0.74;
}

.token-talk-empty strong {
  margin-top: 1.1rem;
  color: rgb(var(--text-primary));
  font-size: 1rem;
  font-weight: 400;
}

.token-talk-empty p {
  max-width: 390px;
  margin: 0.6rem 0 1rem;
  color: rgb(var(--text-muted));
  font-size: 0.78rem;
  line-height: 1.55;
}

.token-talk-empty a {
  font-size: 0.72rem;
}

.token-talk-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgb(var(--text-muted));
  font-size: 0.68rem;
}

.token-talk-pagination button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  opacity: 0.45;
}

.token-site-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 260px;
  background:
    linear-gradient(110deg, rgb(var(--token-accent) / 0.08), transparent 60%),
    rgb(var(--surface-primary) / 0.94) !important;
}

.token-share-links {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.token-share-links > * {
  border: 1px solid rgb(var(--border-subtle));
  border-radius: 9px;
  background: transparent;
  color: rgb(var(--text-primary));
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  padding: 0.65rem 0.76rem;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.token-share-links > *:hover {
  border-color: rgb(var(--token-accent) / 0.68);
  color: rgb(var(--token-accent));
  transform: translateY(-1px);
}

.token-site-footer {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1px;
  color: rgb(var(--text-muted));
  font-size: 0.68rem;
  padding: 1.5rem 0;
}

.token-site-footer p {
  margin: 0;
  text-align: center;
}

.token-site-footer > a {
  justify-self: end;
}

.token-site-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgb(var(--text-primary));
}

.token-site-footer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(var(--token-accent));
}

.token-copy-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10;
  max-width: min(360px, calc(100vw - 2rem));
  border: 1px solid rgb(var(--token-accent) / 0.56);
  border-radius: 10px;
  background: rgb(var(--surface-overlay) / 0.96);
  color: rgb(var(--text-primary));
  font-size: 0.72rem;
  padding: 0.72rem 0.9rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.token-copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes tokenOrbit {
  to { transform: rotate(360deg); }
}

@keyframes tokenGlow {
  0%, 100% { opacity: 0.62; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes tokenPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@media (max-width: 920px) {
  .token-site-hero {
    grid-template-columns: 1fr;
    gap: 1rem;
    min-height: auto;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .token-site-aura {
    width: min(70vw, 340px);
  }

  .token-site-identity {
    text-align: center;
  }

  .token-site-title-row,
  .token-site-actions,
  .token-site-address-row {
    justify-content: center;
  }

  .token-site-description {
    margin-right: auto;
    margin-left: auto;
  }

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

  .token-market-freshness {
    grid-column: 1 / -1;
    min-height: 78px;
    border-top: 1px solid rgb(var(--border-subtle));
  }

  .token-market-item:nth-child(3) {
    border-right: 0;
  }

  .token-site-content {
    grid-template-columns: 1fr;
  }

  .token-site-about,
  .token-site-talk,
  .token-site-share {
    grid-column: auto;
  }

  .token-site-share {
    align-items: flex-start;
    flex-direction: column;
  }

  .token-share-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .token-site-shell {
    width: min(100% - 2rem, 430px);
    padding-top: 0.8rem;
  }

  .token-site-header {
    grid-template-columns: 1fr auto;
  }

  .token-site-label {
    display: none;
  }

  .token-site-header .brand-logo {
    width: 84px;
  }

  .token-site-open-app {
    padding: 0.56rem 0.68rem;
  }

  .token-site-hero {
    padding: 3.5rem 0 3rem;
  }

  .token-site-aura {
    width: min(82vw, 300px);
  }

  .token-site-title-row h1 {
    width: 100%;
    font-size: clamp(3rem, 19vw, 5rem);
  }

  .token-site-symbol,
  .token-site-speed {
    margin-top: 0.3rem;
  }

  .token-site-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .token-action-primary {
    grid-column: 1 / -1;
  }

  .token-action {
    display: grid;
    place-items: center;
    width: 100%;
  }

  .token-site-address-row {
    display: grid;
    grid-template-columns: 1fr auto;
    text-align: left;
  }

  .token-site-address-row > span {
    grid-column: 1 / -1;
  }

  .token-site-market {
    grid-template-columns: 1fr;
  }

  .token-market-item,
  .token-market-freshness {
    grid-column: auto;
    min-height: 88px;
    border-right: 0;
    border-bottom: 1px solid rgb(var(--border-subtle));
    padding: 0.9rem 0;
  }

  .token-market-freshness {
    border-top: 0;
    border-bottom: 0;
  }

  .token-site-content {
    margin-top: 4rem;
  }

  .token-site-content > section {
    padding: 1.4rem;
  }

  .token-site-about {
    min-height: 390px;
  }

  .token-section-mark {
    right: -2rem;
  }

  .token-site-record dl > div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .token-talk-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .token-talk-empty {
    padding: 1rem 0.4rem;
  }

  .token-site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .token-site-footer-brand {
    justify-content: center;
  }

  .token-site-footer > a {
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .token-site-orbit,
  .token-site-aura::before,
  .token-live-dot {
    animation: none;
  }
}
