:root {
  --bg: #451e7b;
  --title: #79f3b1;
  --text: #f5f5f5;
  --muted: rgba(188, 177, 201, 0.55);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.side-art {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.side-character {
  position: absolute;
  top: 0;
  height: 100svh;
  width: auto;
  max-width: none;
}

.side-character-left {
  left: 0;
  transform: translateX(-55%);
}

.side-character-right {
  right: 0;
  transform: translateX(55%) scaleX(-1);
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.hero-stage {
  min-height: 100svh;
  padding: 24px 0 36px;
}

.site-header {
  position: relative;
  z-index: 2;
  text-align: center;
}

.site-header h1 {
  margin: 0;
  color: var(--title);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 2.35vw, 2.75rem);
  line-height: 1.05;
  font-weight: 700;
}

.meme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    ". kol ."
    "cboyz logo btd"
    "coffee cto rod";
  column-gap: clamp(18px, 3vw, 52px);
  row-gap: clamp(38px, 5vh, 70px);
  align-items: center;
  min-height: calc(100svh - 110px);
  margin-top: -4px;
}

.meme-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mouse-float {
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.meme-item img {
  width: min(100%, 245px);
  max-height: 190px;
  object-fit: contain;
}

.item-kol {
  grid-area: kol;
  align-self: start;
  padding-top: 2px;
}

.item-kol img {
  width: min(100%, 230px);
  max-height: 135px;
}

.item-cboyz {
  grid-area: cboyz;
}

.item-logo {
  grid-area: logo;
}

.item-logo img {
  width: min(100%, 390px);
  max-height: 360px;
}

.item-btd {
  grid-area: btd;
}

.item-coffee {
  grid-area: coffee;
  align-self: end;
}

.item-cto {
  grid-area: cto;
  align-self: end;
}

.item-rod {
  grid-area: rod;
  align-self: end;
}

.contract {
  margin: 10px 0 0;
  max-width: 100%;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.72rem, 1vw, 1rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.site-footer {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  padding: 44px 0 36px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  text-align: center;
}

.copyright {
  color: var(--text);
}

.disclaimer {
  margin: 22px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-align: left;
}

.disclaimer p {
  margin: 0 0 14px;
}

.cache-note {
  margin: 20px auto 0;
  font-size: 0.8rem;
}

@media (max-width: 1100px) {
  .side-character {
    opacity: 0.82;
  }

  .side-character-left {
    transform: translateX(-66%);
  }

  .side-character-right {
    transform: translateX(66%) scaleX(-1);
  }

  .site-shell {
    width: min(100% - 28px, 960px);
  }
}

@media (max-width: 820px) {
  .side-art {
    display: none;
  }

  .hero-stage {
    padding-top: 28px;
  }

  .meme-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kol"
      "cboyz"
      "logo"
      "btd"
      "coffee"
      "cto"
      "rod";
    min-height: 0;
    gap: 36px;
    margin-top: 34px;
  }

  .meme-item,
  .item-kol,
  .item-coffee,
  .item-cto,
  .item-rod {
    align-self: center;
    padding-top: 0;
  }

  .mouse-float {
    transform: none !important;
  }

  .meme-item img,
  .item-kol img {
    width: min(72vw, 260px);
    max-height: 210px;
  }

  .item-logo img {
    width: min(82vw, 390px);
    max-height: 340px;
  }

  .contract {
    width: min(100%, 520px);
    font-size: 0.78rem;
  }

  .site-footer {
    padding-top: 58px;
  }
}
