:root {
  --bg: #000000;
  --panel: rgba(5, 5, 5, 0.92);
  --border: rgba(177, 255, 76, 0.22);
  --text: #f5f7f1;
  --muted: rgba(245, 247, 241, 0.72);
  --lime-1: #c7ff62;
  --lime-2: #97e639;
  --lime-3: #5ea91b;
  --glow: rgba(142, 224, 53, 0.18);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius-xl: 34px;
  --radius-lg: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #000000;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: #000000;
  color: var(--text);
  font-family: "M PLUS Rounded 1c", "Trebuchet MS", sans-serif;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

.telegram-link {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.88);
  box-shadow:
    0 0 0 1px rgba(151, 230, 57, 0.18),
    0 0 30px rgba(151, 230, 57, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.telegram-link svg {
  width: 24px;
  height: 24px;
  fill: #97e639;
}

.telegram-link:hover,
.telegram-link:focus-visible {
  transform: translateY(-2px) scale(1.03);
  background: rgba(12, 12, 12, 0.94);
  box-shadow:
    0 0 0 1px rgba(151, 230, 57, 0.28),
    0 0 40px rgba(151, 230, 57, 0.16);
}

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

.particle {
  position: absolute;
  left: var(--left);
  top: var(--top);
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: #97e639;
  box-shadow: 0 0 10px rgba(151, 230, 57, 0.22);
  opacity: 0.3;
  animation:
    screenRun var(--duration) linear infinite alternate,
    blink var(--blink-duration) ease-in-out infinite;
  animation-delay: var(--delay);
}

.page {
  position: relative;
  z-index: 1;
  width: min(1400px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 2rem) 0 5rem;
}

.hero,
.manga,
.gallery {
  position: relative;
}

.hero {
  min-height: min(100svh, 920px);
  display: grid;
  grid-template-columns: minmax(320px, 500px) 1fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: 1rem 0 2rem;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.9rem, 7vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 600;
  color: transparent;
  background: linear-gradient(90deg, var(--lime-1), var(--lime-2), var(--lime-3), var(--lime-1));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradientShift 9s ease-in-out infinite alternate;
}

.hero__info {
  width: min(100%, 420px);
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow:
    0 0 0 1px rgba(177, 255, 76, 0.05),
    0 0 48px rgba(116, 191, 31, 0.08),
    var(--shadow);
  overflow: visible;
}

.hero__info p {
  margin: 0;
  font-size: clamp(1.65rem, 3.5vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 400;
}

.hero__info p + p {
  margin-top: 0.6rem;
}

.hero__accent {
  display: block;
  padding-bottom: 0.16em;
  color: transparent;
  background: linear-gradient(90deg, var(--lime-1), var(--lime-2), var(--lime-3), var(--lime-1));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradientShift 8s ease-in-out infinite alternate;
}

.hero__visual {
  position: relative;
  min-height: min(58svh, 520px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-left: -6.8rem;
}

.hero__image-shell {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
}

.hero__image-shell::before {
  content: "";
  position: absolute;
  left: 22%;
  top: 50%;
  width: min(42%, 300px);
  height: min(22%, 82px);
  transform: translateY(-50%) scale(1.02);
  border-radius: 999px;
  background: rgba(151, 230, 57, 0.12);
  box-shadow:
    0 0 42px 18px rgba(151, 230, 57, 0.14),
    0 0 92px 28px rgba(151, 230, 57, 0.06);
  opacity: 0.62;
}

.cloud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.hero__image {
  position: relative;
  z-index: 1;
  width: min(94%, 760px);
  max-height: min(44svh, 360px);
  object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse 90% 88% at 50% 50%, #000 60%, rgba(0, 0, 0, 0.98) 75%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 88% at 50% 50%, #000 60%, rgba(0, 0, 0, 0.98) 75%, transparent 100%);
  filter:
    drop-shadow(0 12px 34px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 28px rgba(133, 218, 41, 0.12));
  animation: floatImage 6s ease-in-out infinite;
}

.cloud__particle {
  position: absolute;
  left: var(--left);
  top: var(--top);
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #97e639;
  box-shadow: 0 0 12px rgba(151, 230, 57, 0.24);
  opacity: 0.38;
  animation:
    heroOrbit var(--duration) ease-in-out infinite alternate,
    blink var(--blink-duration) ease-in-out infinite;
  animation-delay: var(--delay);
}

.manga {
  display: flex;
  justify-content: center;
  padding: 1rem 0 2.25rem;
}

.manga__shell {
  position: relative;
  width: min(100%, 980px);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.manga__glow {
  position: absolute;
  inset: 8% 16%;
  background:
    radial-gradient(circle at center, rgba(151, 230, 57, 0.14) 0%, rgba(151, 230, 57, 0.08) 28%, rgba(151, 230, 57, 0.03) 46%, transparent 72%);
  filter: blur(32px);
  opacity: 0.92;
}

.manga__panel {
  position: absolute;
  width: min(38vw, 390px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.38),
    0 0 36px rgba(151, 230, 57, 0.12);
  cursor: grab;
  touch-action: none;
  user-select: none;
  will-change: transform;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
  transform:
    translate3d(
      calc(var(--base-x) + var(--drag-x, 0px)),
      calc(var(--base-y) + var(--drag-y, 0px)),
      0
    )
    rotate(calc(var(--base-r) + var(--drag-r, 0deg)))
    scale(var(--drag-scale, 1));
}

.manga__panel--three {
  --base-x: -250px;
  --base-y: -8px;
  --base-r: -8deg;
  z-index: 1;
}

.manga__panel--two {
  --base-x: 0px;
  --base-y: 0px;
  --base-r: -2deg;
  z-index: 2;
}

.manga__panel--one {
  --base-x: 250px;
  --base-y: 10px;
  --base-r: 7deg;
  z-index: 3;
}

.manga__panel.is-dragging {
  cursor: grabbing;
  --drag-scale: 1.06;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.48),
    0 0 52px rgba(151, 230, 57, 0.22);
  transition: none;
}

.gallery {
  padding-top: 0.25rem;
}

.gallery__layout {
  display: grid;
  grid-template-columns: minmax(320px, 620px) minmax(280px, 1fr);
  gap: clamp(1rem, 5vw, 5rem);
  align-items: start;
}

.gallery__stack {
  width: min(100%, 600px);
  margin-left: -3.4rem;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.gallery__card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 300px;
  padding: 0.35rem 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.gallery__card::before {
  content: "";
  position: absolute;
  inset: 12% 12%;
  background: radial-gradient(circle at center, rgba(151, 230, 57, 0.18) 0%, rgba(151, 230, 57, 0.08) 36%, transparent 74%);
  filter: blur(28px);
  opacity: 0.95;
  z-index: 0;
}

.gallery__card img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 86%;
  max-height: 420px;
  object-fit: contain;
  filter:
    drop-shadow(0 10px 24px rgba(0, 0, 0, 0.56))
    drop-shadow(0 0 42px rgba(123, 194, 41, 0.2));
  transition: transform 320ms ease, filter 320ms ease;
}

.gallery__copy {
  position: sticky;
  top: 5.6rem;
  align-self: start;
  padding-top: 3.4rem;
}

.gallery__copy p {
  margin: 0;
}

.gallery__copy p + p {
  margin-top: 0.6rem;
}

.gallery__copy-main {
  font-size: clamp(2.1rem, 4vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 600;
  color: transparent;
  background: linear-gradient(90deg, var(--lime-1), var(--lime-2), var(--lime-3));
  -webkit-background-clip: text;
  background-clip: text;
}

.gallery__copy-sub {
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  line-height: 1.08;
  color: rgba(245, 247, 241, 0.8);
}

.bottom-gif {
  display: flex;
  justify-content: center;
  padding: 3rem 0 0.5rem;
}

.bottom-gif img {
  width: min(100%, 460px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 34px rgba(0, 0, 0, 0.42));
}

.gallery__card--wide img {
  max-width: 90%;
  max-height: 280px;
}

.gallery__card:hover img {
  transform: translateY(-4px) scale(1.02);
  filter:
    drop-shadow(0 14px 28px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 28px rgba(123, 194, 41, 0.13));
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes floatImage {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes screenRun {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  35% {
    transform: translate3d(calc(var(--shift-x) * 0.48), calc(var(--shift-y) * -0.24), 0) scale(1.05);
  }
  68% {
    transform: translate3d(calc(var(--shift-x) * -0.36), calc(var(--shift-y) * 0.62), 0) scale(0.96);
  }
  100% {
    transform: translate3d(var(--shift-x), var(--shift-y), 0) scale(1.08);
  }
}

@keyframes heroOrbit {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(var(--shift-x), var(--shift-y), 0) scale(1.15);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.56;
  }
}

@media (max-width: 980px) {
  .page {
    width: min(100% - 1.2rem, 1400px);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-top: 0.5rem;
  }

  .hero__content {
    order: 1;
  }

  .hero__visual {
    order: 2;
    min-height: 34svh;
    justify-content: flex-start;
    margin-left: -2.6rem;
  }

  .manga__shell {
    min-height: 520px;
  }

  .manga__panel {
    width: min(38vw, 310px);
  }

  .manga__panel--three {
    --base-x: -170px;
    --base-y: -8px;
  }

  .manga__panel--one {
    --base-x: 170px;
    --base-y: 10px;
  }

  .gallery__layout {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .gallery__stack {
    margin-left: -2rem;
    width: min(100%, 580px);
  }

  .gallery__copy {
    position: static;
    padding-top: 0.6rem;
    max-width: 680px;
  }

  .bottom-gif {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .page {
    width: calc(100% - 1rem);
    padding-bottom: 3rem;
  }

  .hero__title {
    font-size: clamp(2.5rem, 12vw, 3.6rem);
    margin-bottom: 1rem;
  }

  .hero__info {
    width: 100%;
    border-radius: 26px;
  }

  .hero__info p {
    font-size: clamp(1.45rem, 7vw, 2.3rem);
  }

  .hero__visual {
    min-height: 24svh;
    margin-left: -1.3rem;
  }

  .hero__image {
    width: min(96%, 380px);
    max-height: 24svh;
  }

  .manga {
    padding-top: 0.4rem;
  }

  .manga__shell {
    min-height: 460px;
  }

  .manga__glow {
    inset: 16% 0%;
  }

  .manga__panel {
    width: min(58vw, 250px);
    border-radius: 14px;
  }

  .manga__panel--three {
    --base-x: -82px;
    --base-y: -26px;
    --base-r: -10deg;
  }

  .manga__panel--two {
    --base-x: 0px;
    --base-y: 0px;
    --base-r: -2deg;
  }

  .manga__panel--one {
    --base-x: 82px;
    --base-y: 22px;
    --base-r: 9deg;
  }

  .gallery__stack {
    width: 100%;
    margin-left: -1rem;
  }

  .gallery__copy {
    padding-top: 0.2rem;
  }

  .gallery__copy-main {
    font-size: clamp(1.7rem, 9vw, 2.4rem);
  }

  .gallery__copy-sub {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
  }

  .bottom-gif {
    padding-top: 2.2rem;
  }

  .bottom-gif img {
    width: min(100%, 320px);
  }

  .gallery__card {
    min-height: 250px;
    padding: 0.2rem 0;
  }

  .gallery__card img {
    max-width: 88%;
    max-height: 330px;
  }

  .gallery__card--wide img {
    max-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
