:root {
  --green: #00ff66;
  --green-soft: rgba(0, 255, 102, 0.38);
  --black: #000000;
  --white: #ffffff;
  --border: rgba(0, 255, 102, 0.32);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Courier New", Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: var(--font-main);
  touch-action: pan-x pan-y;
  -ms-touch-action: pan-x pan-y;
}

body {
  overscroll-behavior: none;
}

a,
button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

.vc-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 255, 102, 0.14), transparent 32%),
    radial-gradient(circle at 88% 75%, rgba(0, 255, 102, 0.10), transparent 34%),
    url("../img/background.png") center center / cover repeat;
  filter: contrast(1.16) brightness(0.78) saturate(1.25);
  animation: bgMove 35s linear infinite;
}

@keyframes bgMove {
  0% {
    background-position: center center, center center, 0 0;
  }

  50% {
    background-position: 45% 54%, 55% 48%, 140px 80px;
  }

  100% {
    background-position: center center, center center, 280px 160px;
  }
}

#matrixCanvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  opacity: 0.52;
  mix-blend-mode: screen;
  pointer-events: none;
}

.vc-vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.16) 36%, rgba(0,0,0,0.88) 88%),
    linear-gradient(90deg, rgba(0,0,0,0.82), transparent 35%, transparent 65%, rgba(0,0,0,0.82));
  pointer-events: none;
}

.vc-noise {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.09;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  animation: noise 0.22s steps(2) infinite;
}

@keyframes noise {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(2px, -2px);
  }
}

.flying-finger {
  position: fixed;
  z-index: 4;
  top: 37vh;
  left: -260px;
  width: clamp(90px, 10vw, 170px);
  pointer-events: none;
  opacity: 0.72;
  filter:
    drop-shadow(0 0 20px rgba(0,255,102,0.20))
    drop-shadow(0 20px 34px rgba(0,0,0,0.72));
  animation: fingerFly 24s linear infinite;
  transform-origin: center center;
}

@keyframes fingerFly {
  0% {
    transform: translate(-18vw, 7vh) rotate(-15deg) scale(0.7);
    opacity: 0;
  }

  6% {
    opacity: 0.72;
  }

  22% {
    transform: translate(22vw, -7vh) rotate(10deg) scale(1.15);
  }

  43% {
    transform: translate(48vw, 9vh) rotate(-18deg) scale(0.72);
  }

  66% {
    transform: translate(79vw, -5vh) rotate(15deg) scale(1.22);
  }

  90% {
    opacity: 0.72;
  }

  100% {
    transform: translate(122vw, 5vh) rotate(2deg) scale(0.88);
    opacity: 0;
  }
}

.desktop-header {
  position: fixed;
  z-index: 80;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 36px));
  min-height: 58px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0,0,0,0.66);
  backdrop-filter: blur(18px);
  box-shadow:
    0 0 30px rgba(0,255,102,0.12),
    inset 0 0 22px rgba(0,255,102,0.035);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green);
  text-shadow: 0 0 18px var(--green-soft);
}

.brand-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green), 0 0 35px var(--green);
  animation: blink 1.15s infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.25;
  }
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.desktop-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: rgba(255,255,255,0.74);
  transition: 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #000;
  background: var(--green);
  box-shadow: 0 0 26px rgba(0,255,102,0.35);
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: hidden;
}

.world {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100vh;
  display: flex;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.panel {
  position: relative;
  width: 100vw;
  height: 100vh;
  flex: 0 0 100vw;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 10vh 6vw;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,102,0.12), transparent 66%);
  filter: blur(14px);
  transform: scale(0.8);
  opacity: 0.8;
}

.full-video-panel::before {
  display: none;
}

.panel-content {
  position: absolute;
  z-index: 20;
  top: 142px;
  width: min(46vw, 760px);
  transform: none;
  will-change: transform;
}

.content-left {
  left: clamp(24px, 6vw, 95px);
}

.content-right {
  right: clamp(24px, 6vw, 95px);
}

.small-content {
  width: min(42vw, 650px);
}

.youtube-panel .youtube-text {
  right: clamp(8px, 2.2vw, 34px);
  width: min(40vw, 690px);
}

.text-box {
  position: relative;
  padding: clamp(22px, 2.8vw, 38px);
  border: 1px solid var(--border);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(0,255,102,0.10), rgba(0,0,0,0.70) 38%, rgba(0,0,0,0.92)),
    rgba(0,0,0,0.72);
  backdrop-filter: blur(19px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.035) inset,
    0 0 55px rgba(0,255,102,0.13),
    0 34px 80px rgba(0,0,0,0.55);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  padding: 8px 13px;
  border: 1px solid rgba(0,255,102,0.28);
  border-radius: 999px;
  background: rgba(0,255,102,0.07);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

h1,
h2 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.065em;
  color: #fff;
  text-shadow:
    0 0 18px rgba(0,255,102,0.32),
    0 0 55px rgba(0,255,102,0.14);
}

h1 {
  font-size: clamp(3.8rem, 7.4vw, 8rem);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(2.35rem, 4.6vw, 4.9rem);
  margin-bottom: 16px;
}

.claim,
.text-box p:not(.kicker) {
  font-size: clamp(0.96rem, 1.06vw, 1.1rem);
  line-height: 1.58;
  color: rgba(255,255,255,0.83);
  margin-bottom: 14px;
}

.terminal-box {
  margin-top: 17px;
  padding: 15px;
  display: grid;
  gap: 7px;
  border-radius: 19px;
  border: 1px solid rgba(0,255,102,0.22);
  background: rgba(0,0,0,0.72);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.42;
  box-shadow: inset 0 0 34px rgba(0,255,102,0.075);
}

.buttons {
  margin-top: 21px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  min-height: 46px;
  padding: 11px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(0,255,102,0.42);
  background: rgba(0,255,102,0.11);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  color: #000;
  background: var(--green);
  box-shadow: 0 0 32px rgba(0,255,102,0.34);
}

.btn.ghost {
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.17);
}

.stage-image {
  position: absolute;
  z-index: 12;
  bottom: 0;
  height: calc(100vh - 95px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  overflow: visible;
  will-change: transform;
}

.stage-left {
  left: clamp(16px, 5vw, 90px);
  width: min(48vw, 760px);
}

.stage-right {
  right: clamp(16px, 5vw, 90px);
  width: min(48vw, 760px);
}

.character {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: center bottom;
  filter:
    drop-shadow(0 0 18px rgba(0,255,102,0.24))
    drop-shadow(0 36px 50px rgba(0,0,0,0.82));
  animation: characterFloat 5.8s ease-in-out infinite;
}

.full-video-wrap {
  position: absolute;
  z-index: 11;
  left: 0;
  right: 0;
  top: 92px;
  bottom: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  background: #000;
}

.full-scrub-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: #000;
  filter:
    contrast(1.08)
    brightness(0.92)
    drop-shadow(0 0 28px rgba(0,255,102,0.16));
}

.video-matrix-canvas {
  position: absolute;
  z-index: 18;
  left: 0;
  right: 0;
  top: 92px;
  bottom: 0;
  width: 100%;
  height: calc(100vh - 92px);
  pointer-events: none;
  opacity: 0.48;
  mix-blend-mode: screen;
}

.mobile-visual {
  display: none;
}

.rabbit-main {
  max-height: calc(100vh - 125px);
  max-width: min(43vw, 620px);
}

.rabbit-mafia,
.rabbit-podcast,
.rabbit-phone,
.rabbit-dirty {
  max-height: calc(100vh - 118px);
  max-width: min(42vw, 600px);
}

.nonna-stage {
  width: min(58vw, 900px);
}

.nonna-img {
  max-height: calc(100vh - 110px);
  max-width: min(56vw, 860px);
}

@keyframes characterFloat {
  0%, 100% {
    transform: translateY(0) rotate(-0.4deg);
  }

  50% {
    transform: translateY(-10px) rotate(0.4deg);
  }
}

.track-list {
  margin-top: 17px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.track-list span {
  padding: 10px 11px;
  border: 1px solid rgba(0,255,102,0.17);
  border-radius: 15px;
  background: rgba(255,255,255,0.045);
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.82);
  font-size: 0.82rem;
}

.spreaker-wrap {
  margin-top: 20px;
  width: min(760px, 100%);
  height: 310px;
  border: 1px solid rgba(0,255,102,0.30);
  border-radius: 25px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 42px rgba(0,255,102,0.14),
    0 35px 70px rgba(0,0,0,0.45);
}

.spreaker-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.glitch-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(0,255,102,0.21);
  background: rgba(0,0,0,0.65);
  color: rgba(255,255,255,0.82);
  font-family: var(--font-mono);
  line-height: 1.48;
  font-size: 0.86rem;
}

.glitch-card strong {
  color: var(--green);
}

.scroll-progress {
  position: fixed;
  z-index: 60;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.06);
}

.scroll-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--green);
  box-shadow:
    0 0 12px var(--green),
    0 0 32px rgba(0,255,102,0.55);
}

.side-hint {
  position: fixed;
  z-index: 60;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0,0,0,0.68);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.side-hint strong {
  display: inline-block;
  animation: hintMove 1.1s infinite;
}

@keyframes hintMove {
  0%, 100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(7px);
  }
}

.mobile-app-menu {
  display: none;
}

@media (max-width: 900px) {
  html,
  body {
    overflow: hidden;
  }

  .desktop-header {
    display: none;
  }

  .world {
    height: 100dvh;
  }

  .panel {
    height: 100dvh;
    display: grid;
    grid-template-rows: 36dvh minmax(0, 1fr);
    align-items: stretch;
    padding: 14px 14px 88px;
  }

  .full-video-panel {
    display: block;
    padding: 0;
  }

  .stage-image {
    display: none;
  }

  .full-video-wrap {
    top: 0;
    bottom: 66px;
    height: auto;
  }

  .full-scrub-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .video-matrix-canvas {
    top: 0;
    bottom: 66px;
    height: calc(100dvh - 66px);
  }

  .mobile-visual {
    position: relative;
    z-index: 14;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 36dvh;
    min-height: 210px;
    pointer-events: none;
    overflow: visible;
  }

  .mobile-visual-wide {
    height: 34dvh;
  }

  .mobile-character {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center bottom;
    filter:
      drop-shadow(0 0 16px rgba(0,255,102,0.22))
      drop-shadow(0 24px 36px rgba(0,0,0,0.78));
    animation: characterFloat 5.8s ease-in-out infinite;
  }

  .mobile-character.rabbit-main,
  .mobile-character.rabbit-mafia,
  .mobile-character.rabbit-podcast,
  .mobile-character.rabbit-phone,
  .mobile-character.rabbit-dirty {
    max-height: 35dvh;
    max-width: 88vw;
  }

  .mobile-character.nonna-img {
    max-height: 33dvh;
    max-width: 96vw;
  }

  .panel-content,
  .youtube-panel .youtube-text {
    position: relative;
    z-index: 20;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    transform: none !important;
    align-self: start;
  }

  .content-left,
  .content-right,
  .small-content {
    left: auto;
    right: auto;
    width: 100%;
  }

  .text-box {
    max-height: calc(100dvh - 36dvh - 105px);
    overflow-y: auto;
    padding: 16px;
    border-radius: 22px;
    scrollbar-width: thin;
    scrollbar-color: var(--green) rgba(255,255,255,0.08);
  }

  .text-box::-webkit-scrollbar {
    width: 4px;
  }

  .text-box::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.08);
  }

  .text-box::-webkit-scrollbar-thumb {
    background: var(--green);
    border-radius: 999px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 5rem);
    margin-bottom: 12px;
  }

  h2 {
    font-size: clamp(2.1rem, 11vw, 3.8rem);
    margin-bottom: 12px;
  }

  .claim,
  .text-box p:not(.kicker) {
    font-size: 0.9rem;
    line-height: 1.46;
    margin-bottom: 11px;
  }

  .kicker {
    font-size: 0.64rem;
    margin-bottom: 10px;
  }

  .terminal-box {
    margin-top: 12px;
    padding: 12px;
    font-size: 0.72rem;
    border-radius: 15px;
  }

  .buttons {
    margin-top: 13px;
    gap: 8px;
  }

  .btn {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 0.70rem;
  }

  .track-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 12px;
  }

  .track-list span {
    padding: 8px;
    font-size: 0.68rem;
    border-radius: 12px;
  }

  .spreaker-wrap {
    height: 205px;
    border-radius: 18px;
    margin-top: 13px;
  }

  .glitch-card {
    font-size: 0.74rem;
    padding: 12px;
    border-radius: 16px;
    margin-top: 12px;
  }

  .side-hint {
    display: none;
  }

  .flying-finger {
    width: 88px;
    opacity: 0.38;
  }

  .mobile-app-menu {
    position: fixed;
    z-index: 80;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: min(94vw, 470px);
    min-height: 66px;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    border: 1px solid rgba(0,255,102,0.24);
    border-radius: 26px;
    background: rgba(0,0,0,0.78);
    backdrop-filter: blur(18px);
    box-shadow:
      0 0 34px rgba(0,255,102,0.16),
      0 18px 50px rgba(0,0,0,0.68);
  }

  .mobile-app-menu button {
    min-width: 0;
    padding: 7px 4px;
    display: grid;
    place-items: center;
    gap: 2px;
    border-radius: 18px;
    background: transparent;
    color: rgba(255,255,255,0.67);
    font-family: var(--font-main);
    font-size: 0.68rem;
    transition: 0.2s ease;
  }

  .mobile-app-menu button span {
    font-size: 1.08rem;
    line-height: 1;
  }

  .mobile-app-menu button.active {
    background: var(--green);
    color: #000;
    box-shadow: 0 0 24px rgba(0,255,102,0.35);
    font-weight: 800;
  }
}

@media (max-width: 430px) {
  .panel {
    grid-template-rows: 32dvh minmax(0, 1fr);
    padding: 10px 12px 84px;
  }

  .full-video-panel {
    display: block;
    padding: 0;
  }

  .mobile-visual {
    height: 32dvh;
    min-height: 185px;
  }

  .mobile-character.rabbit-main,
  .mobile-character.rabbit-mafia,
  .mobile-character.rabbit-podcast,
  .mobile-character.rabbit-phone,
  .mobile-character.rabbit-dirty {
    max-height: 31dvh;
  }

  .mobile-character.nonna-img {
    max-height: 30dvh;
  }

  .text-box {
    max-height: calc(100dvh - 32dvh - 100px);
    padding: 15px;
  }

  .spreaker-wrap {
    height: 185px;
  }
}