﻿:root {
  --green: #0d8a38;
  --yellow: #f2d51d;
  --red: #cb1029;
  --dark: #07140a;
  --panel: rgba(7, 20, 10, 0.88);
  --border: rgba(255, 255, 255, 0.25);
  --text: #f5ffe8;
  --muted: #d6ebbf;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: "Changa", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, var(--green) 0%, var(--green) 34%, var(--yellow) 34%, var(--yellow) 66%, var(--red) 66%, var(--red) 100%);
}

.site-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.2), transparent 28%),
    radial-gradient(circle at 88% 70%, rgba(0, 0, 0, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.46));
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1150px, calc(100% - 26px));
  margin: 16px auto 34px;
  display: grid;
  gap: 14px;
}

.panel,
.card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.3);
}

.hero {
  overflow: hidden;
}

.hero__content {
  padding: clamp(16px, 3.2vw, 30px);
  text-align: center;
}

.hero__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--muted);
}

.hero__logo {
  width: min(360px, 78%);
  margin-top: 8px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.3));
}

h1 {
  margin: 2px 0 0;
  font-family: "Bungee", "Changa", sans-serif;
  font-size: clamp(34px, 6vw, 76px);
  line-height: 0.96;
  color: #f4ffc9;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.24);
}

.hero__caWrap {
  width: min(920px, 100%);
  margin: 10px auto 0;
}

.label--center {
  text-align: center;
}

.ca-pill {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  border-radius: 12px;
  padding: 12px;
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.ca-pill:hover {
  border-color: rgba(255, 255, 255, 0.72);
}

.ca-pill code {
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: clamp(16px, 2vw, 26px);
  font-weight: 700;
  width: 100%;
}

.hero__text {
  margin: 12px auto 0;
  max-width: 760px;
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.34;
  color: #f6fddf;
}

.hero__links {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.22);
  color: #f3ffe1;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.hero__links a:hover {
  border-color: rgba(255, 255, 255, 0.75);
}

.hero__links a img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.meme-carousel {
  padding: 12px;
}

.carousel__head {
  margin-bottom: 10px;
}

.carousel__body {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.carousel__viewport {
  overflow: hidden;
}

.carousel__track {
  display: flex;
  gap: 10px;
  transition: transform 220ms ease;
  will-change: transform;
}

.carousel__item {
  all: unset;
  display: block;
  width: calc((100% - 40px) / 5);
  flex: 0 0 calc((100% - 40px) / 5);
  cursor: pointer;
}

.carousel__item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: border-color 120ms ease, transform 120ms ease;
}

.carousel__item:hover img,
.carousel__item:focus-visible img {
  border-color: rgba(245, 255, 160, 0.95);
  transform: translateY(-2px);
}

.carousel__arrow {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.38);
  color: #f3ffe1;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.carousel__arrow:hover {
  border-color: rgba(255, 255, 255, 0.9);
}

.carousel__arrow:disabled {
  opacity: 0.45;
  cursor: default;
}

.meme-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.84);
  display: grid;
  place-items: center;
  padding: 20px;
}

.meme-modal[hidden] {
  display: none;
}

.meme-modal__dialog {
  position: relative;
  width: min(980px, 96vw);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.meme-modal__image {
  width: 100%;
  max-height: min(82vh, 820px);
  object-fit: contain;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  background: rgba(0, 0, 0, 0.35);
}

.meme-modal__arrow,
.meme-modal__close {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.52);
  color: #f4ffe6;
  cursor: pointer;
}

.meme-modal__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
}

.meme-modal__close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 20px;
}

.meme-modal__arrow:hover,
.meme-modal__close:hover {
  border-color: rgba(255, 255, 255, 0.95);
}

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

.card {
  padding: 14px;
}

.label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  color: #d9f6bc;
}

.value {
  margin: 8px 0 0;
  font-family: "Bungee", "Changa", sans-serif;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 0.95;
  word-break: break-word;
}

.value--small {
  font-size: clamp(24px, 2.9vw, 38px);
}

.sub {
  margin: 8px 0 0;
  color: #e4f7cb;
  font-size: 14px;
  line-height: 1.35;
}

.mint__copy {
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 700;
}

.mint__toast {
  margin: 7px 0 0;
  min-height: 14px;
  color: #f7ff8f;
  opacity: 0;
  transition: opacity 120ms ease;
}

.mint__toast.show {
  opacity: 1;
}

.leaf {
  position: fixed;
  width: clamp(58px, 7vw, 132px);
  opacity: 0.32;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.25));
  animation: floaty 8s ease-in-out infinite;
}

.leaf:nth-of-type(2) {
  animation-duration: 11s;
}

.leaf:nth-of-type(3) {
  animation-duration: 13s;
}

.leaf:nth-of-type(4) {
  animation-duration: 9s;
}

.leaf:nth-of-type(5) {
  animation-duration: 12s;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@media (max-width: 920px) {
  .carousel__item {
    width: calc((100% - 20px) / 3);
    flex-basis: calc((100% - 20px) / 3);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .meme-modal__dialog {
    grid-template-columns: 1fr;
  }

  .meme-modal__arrow {
    position: absolute;
    top: calc(50% - 22px);
    z-index: 1;
  }

  .meme-modal__arrow--left {
    left: 4px;
  }

  .meme-modal__arrow--right {
    right: 4px;
  }
}

@media (max-width: 560px) {
  .carousel__item {
    width: calc((100% - 10px) / 2);
    flex-basis: calc((100% - 10px) / 2);
  }
}
