:root {
  color-scheme: dark;
  --bg: #060606;
  --panel: rgba(15, 15, 20, 0.84);
  --text: #f7f8fb;
  --muted: #b4b6c7;
  --accent: #ff7a00;
  --accent-2: #ffb347;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Lucida Console", "Courier New", monospace;
  color: var(--text);
  background: #000000;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.background-glow {
  position: fixed;
  inset: 0;
  /* slow, subtle dark-gray gradient that drifts back and forth */
  background: linear-gradient(120deg, #0b0b0b 0%, #141414 25%, #0f0f0f 50%, #141414 75%, #0b0b0b 100%);
  background-size: 200% 200%;
  pointer-events: none;
  z-index: 0;
  filter: blur(36px) saturate(120%);
  animation: darkGradient 20s ease-in-out infinite alternate;
}

@keyframes darkGradient {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.hero,
.content {
  position: relative;
  /*z-index: 1;*/
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.2rem 3rem;
}

/* Ensure the main header stays on top of all overlays and icons */
.hero {
  z-index: 10010;
}

.hero {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
  padding-top: 2.5rem;
}

.hero-image {
  width: min(92vw, 760px);
  border: none;
  box-shadow: none;
}

.hero-content {
  text-align: center;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.78rem;
  color: var(--accent-2);
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-copy,
.panel-copy {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.pill-group {
  position: fixed;
  top: 0.8rem;
  right: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-end;
  z-index: 9999;
    max-width: calc(100vw - 1.6rem);
  }

.pill-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
}

.pill-row.bottom-row {
  margin-top: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  min-width: 0;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  transition: background 180ms ease;
  z-index: 10000;
}
#copy-label {
max-width: 5%;
fill: white;
}

.button-icon {
  width: 32px;
  height: 32px;
  display: block;
}

.pill .button-icon {
  margin: auto;
}

.pill-row.top-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  z-index: 9999999;
  width: 100%;
}

.pill-row.top-row .pill {
  width: 65px;
  height: 65px;
  border-radius: 20px;
  padding: 0;
}

.pill-row.top-row .pill:not(.audio-toggle) span {
  display: none;
}

#audio-icon {
  display: inline;
  color: var(--text);
  font-size: 1.2rem;
}

@media (max-width: 700px) {

  .hero-image {
    width: min(84vw, 260px);
  }

  .pill-group {
    left: 0.4rem;
    right: 0.4rem;
    top: 0.4rem;
    max-width: calc(100vw - 0.8rem);
    align-items: center;
  }

  .pill-row.top-row {
    justify-content: center;
    gap: 0.35rem;
    width: auto;
  }

  .pill-row.top-row .pill {
    width: 48px;
    height: 48px;
  }

  .pill-row.top-row .button-icon {
    width: 20px;
    height: 20px;
  }

  #copy-contract {
    padding: 0.45rem 0.8rem;
    font-size: 0.88rem;
    width: calc(100vw - 1.4rem);
    max-width: calc(100vw - 1.4rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #copy-label {
    width: 16px;
    margin-right: 0.35rem;
  }
}

@media (max-width: 640px) {
  .hero-image {
    width: min(80vw, 260px);
  }

  .pill-group {
    right: 0.35rem;
    top: 0.35rem;
  }

  .pill-row.top-row {
    gap: 0.3rem;
  }

  .pill-row.top-row .pill {
    width: 44px;
    height: 44px;
  }

  .pill-row.top-row .button-icon {
    width: 18px;
    height: 18px;
  }

  #copy-contract {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
    width: calc(100vw - 1.2rem);
    max-width: calc(100vw - 1.2rem);
  }

  #copy-label {
    width: 14px;
    margin-right: 0.3rem;
  }
}

.pill-row.bottom-row .pill {
  min-width: 260px;
  width: 100%;
}

.hero-contract {
  margin: 1rem;
  max-width: 100%;
  display: inline-flex;
  justify-content: center;
}

.pill:hover {
  background: rgba(255, 255, 255, 0.14);
}

.pill.social,
.pill.buy,
.pill.contract {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.pill.social,
.pill.buy {
  background: rgba(91, 209, 28, 0.4);
  border-color: rgba(91, 209, 28, 0.18);
}

.pill.contract {
  background: rgba(91, 209, 28, 0.8);
}

.pill.social:hover,
.pill.buy:hover,
.pill.contract:hover {
  background: rgba(255, 255, 255, 0.2);
}

.pill.contract {
  color: var(--text);
}

/* Contract link highlight */
#copy-contract {
  color: var(--text);
  border-color: rgba(91, 209, 28, 0.18);
  background: rgba(91, 209, 28, 0.8);
  position: relative;
  z-index: 10030;
}

/* Make the external SVG icon appear white */
#copy-label {
  filter: brightness(0) invert(1);
  width: 20px;
  height: auto;
  margin-right: 0.6rem;
  display: inline-block;
  vertical-align: middle;
}

.audio-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  min-width: 0;
  color: var(--text);
  background: rgba(91, 209, 28, 0.8);
  border: 1px solid rgba(91, 209, 28, 0.18);
  border-radius: 999px;
  padding: 0;
  transition: background 180ms ease;
}

.audio-toggle:hover,
.audio-toggle:focus {
  background: rgba(91, 209, 28, 0.95);
}

#audio-icon {
  font-size: 1.1rem;
}

.icon {
  font-size: 1rem;
}

.content {
  display: grid;
  gap: 1.2rem;
}

.panel {
  padding: 1.2rem;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}


.meme-grid {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 2500px;
  margin: 0 auto 2.5rem;
  padding: 0;
  overflow: hidden;
  z-index: 1;
}

.meme-tile {
  position: absolute;
  margin: 0;
  padding: 0;
}

.meme-tile img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.size-xxl { width: 600px; }
.size-xl { width: 500px; }
.size-large { width: 380px; }
.size-med { width: 300px; }
.size-sm { width: 220px; }
.size-xs { width: 160px; }

.pos1  { top: 0;   left: 12px; }
.pos2  { top: 24px;  left: 520px; }
.pos3  { top: 40px;  right: 16px; }
.pos4  { top: 240px; left: 40px; }
.pos5  { top: 260px; left: 460px; }
.pos6  { top: 220px; right: 110px; }
.pos7  { top: 540px; left: 24px; }
.pos8  { top: 520px; right: 24px; }
.pos9  { top: 840px; left: 180px; }
.pos10 { top: 900px; left: 560px; }
.pos11 { top: 920px; right: 120px; }
.pos12 { top: 1190px; left: 120px; }
.pos13 { top: 1120px; right: 320px; }
.pos14 { top: 1380px; left: 40px; }
.pos15 { top: 1440px; left: 560px; }
.pos16 { top: 1500px; right: 16px; }
.pos17 { top: 1640px; left: 260px; }
.pos18 { top: 1680px; right: 180px; }
.pos19 { top: 1800px; left: 0; }
.pos20 { top: 1840px; left: 420px; }
.pos21 { top: 2000px; right: 16px; }
.pos22 { top: 2020px; left: 180px; }
.pos23 { top: 2140px; left: 520px; }
.pos24 { top: 2210px; right: 120px; }

.icon-layer {
  position: fixed;
  inset: 0;
  /* put all icon-layer content above UI (pills, panels) */
  z-index: 10001;
  pointer-events: none;
}

/* Rotating overlay images that appear one at a time */
.rotator-image {
  position: fixed;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease-in-out;
  z-index: 6;
  max-width: 55vw;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

.floating-icon {
  position: absolute;
  width: 90px;
  height: 90px;
  pointer-events: none;
  z-index: 10002;
}

.floating-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: none;
  outline: none;
  box-shadow: none;
}

@media (max-width: 700px) {
  .hero,
  .content {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .meme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
}
